diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7a5c2ab46..f8a51d9b7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -10,19 +10,5 @@ # other than the SDK team. For each one, we add the owning team, # as well as @temporalio/sdk, so the SDK team can continue to # manage repo-wide concerns. -/temporalio/contrib/deepagents/ @temporalio/ai-sdk @temporalio/sdk -/temporalio/contrib/google_adk_agents/ @temporalio/ai-sdk @temporalio/sdk -/temporalio/contrib/google_genai/ @temporalio/ai-sdk @temporalio/sdk -/temporalio/contrib/langgraph/ @temporalio/ai-sdk @temporalio/sdk -/temporalio/contrib/langsmith/ @temporalio/ai-sdk @temporalio/sdk -/temporalio/contrib/openai_agents/ @temporalio/ai-sdk @temporalio/sdk -/temporalio/contrib/strands/ @temporalio/ai-sdk @temporalio/sdk /temporalio/contrib/workflow_streams/ @temporalio/ai-sdk @temporalio/sdk -/tests/contrib/deepagents/ @temporalio/ai-sdk @temporalio/sdk -/tests/contrib/google_adk_agents/ @temporalio/ai-sdk @temporalio/sdk -/tests/contrib/google_genai/ @temporalio/ai-sdk @temporalio/sdk -/tests/contrib/langgraph/ @temporalio/ai-sdk @temporalio/sdk -/tests/contrib/langsmith/ @temporalio/ai-sdk @temporalio/sdk -/tests/contrib/openai_agents/ @temporalio/ai-sdk @temporalio/sdk -/tests/contrib/strands/ @temporalio/ai-sdk @temporalio/sdk /tests/contrib/workflow_streams/ @temporalio/ai-sdk @temporalio/sdk diff --git a/.github/actions/alpine-package-smoke/action.yml b/.github/actions/alpine-package-smoke/action.yml index ad72f2eb9..12291554f 100644 --- a/.github/actions/alpine-package-smoke/action.yml +++ b/.github/actions/alpine-package-smoke/action.yml @@ -20,7 +20,7 @@ inputs: python-image: description: "Alpine Python Docker image" required: false - default: "python:3.10-alpine" + default: "python:3.11-alpine" runs: using: composite steps: diff --git a/.github/actions/release-smoke-package/action.yml b/.github/actions/release-smoke-package/action.yml index bd557cd2b..90bd72235 100644 --- a/.github/actions/release-smoke-package/action.yml +++ b/.github/actions/release-smoke-package/action.yml @@ -16,7 +16,7 @@ runs: steps: - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 with: - python-version: "3.10" + python-version: "3.11" - name: Install package shell: bash env: diff --git a/.github/scripts/cloud_namespace.py b/.github/scripts/cloud_namespace.py index c13d1e65e..e4048cb76 100644 --- a/.github/scripts/cloud_namespace.py +++ b/.github/scripts/cloud_namespace.py @@ -60,6 +60,9 @@ async def create() -> None: name=namespace_name, regions=["aws-ca-central-1"], retention_days=1, + search_attributes={ + "python_test_keyword_list": NamespaceSpec.SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST, + }, mtls_auth=MtlsAuthSpec( accepted_client_ca=Path( os.environ["TEMPORAL_CLOUD_CLIENT_CA_PATH"] diff --git a/.github/scripts/release_verify.py b/.github/scripts/release_verify.py index b3a98e49c..f895839bc 100644 --- a/.github/scripts/release_verify.py +++ b/.github/scripts/release_verify.py @@ -4,13 +4,14 @@ import argparse import ast -import dataclasses -import difflib import pathlib import re -import subprocess +import sys from collections.abc import Sequence +sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[2])) +from scripts.changelog import run_tool + try: import tomllib except ModuleNotFoundError: @@ -113,258 +114,21 @@ def verify_dist(args: argparse.Namespace) -> None: print(f" {name}") -def _git(args: Sequence[str], *, cwd: pathlib.Path | None = None) -> str: - return subprocess.check_output( - ["git", *args], - cwd=cwd, - encoding="utf-8", - stderr=subprocess.STDOUT, - ).strip() - - -def _version_tuple(version: str) -> tuple[int, ...] | None: - match = re.fullmatch(r"([0-9]+(?:\.[0-9]+)+)(?:[a-zA-Z0-9_.+-]+)?", version) - if not match: - return None - return tuple(int(part) for part in match.group(1).split(".")) - - -def _previous_release_tag(version: str) -> str: - current = _version_tuple(version) - if current is None: - raise RuntimeError(f"Cannot determine previous release for {version!r}") - - candidates: list[tuple[int, ...]] = [] - for tag in _git(["tag"]).splitlines(): - tag_version = _version_tuple(tag) - if tag_version is not None and tag_version < current: - candidates.append(tag_version) - if not candidates: - raise RuntimeError(f"Could not find a previous release tag before {version!r}") - return ".".join(str(part) for part in max(candidates)) - - -def _gitlink(rev: str, path: str) -> str: - output = _git(["ls-tree", rev, path]) - parts = output.split() - if len(parts) < 3 or parts[0] != "160000": - raise RuntimeError(f"Could not find submodule gitlink {path!r} at {rev!r}") - return parts[2] - - -def _clean_commit_subject(subject: str) -> str: - subject = subject.encode("ascii", "ignore").decode("ascii") - subject = re.sub(r"\s+", " ", subject).strip() - subject = re.sub(r"^:[a-z0-9_+-]+:\s*", "", subject) - return subject.replace(" : ", ": ") - - -def _link_sdk_core_prs(subject: str) -> str: - return re.sub( - r"\(#([0-9]+)\)", - r"([#\1](https://github.com/temporalio/sdk-rust/pull/\1))", - subject, - ) - - -def _changelog_entries(text: str) -> dict[str, list[list[str]]]: - entries: dict[str, list[list[str]]] = {} - header: str | None = None - entry: list[str] | None = None - - for line in text.splitlines(): - if line.startswith("### "): - if entry is not None: - entries.setdefault(header or "Other", []).append(entry) - entry = None - header = line.removeprefix("### ").strip() - elif line.startswith(("* ", "- ")): - if entry is not None: - entries.setdefault(header or "Other", []).append(entry) - entry = [line] - elif entry is not None: - if line.strip(): - entry.append(line) - else: - entries.setdefault(header or "Other", []).append(entry) - entry = None - - if entry is not None: - entries.setdefault(header or "Other", []).append(entry) - return entries - - -@dataclasses.dataclass -class _ChangelogEntry: - lines: list[str] - introduced_header: str | None = None - - -def _updated_changelog_entries( - previous_entries: dict[str, list[_ChangelogEntry]], - current_entries: dict[str, list[list[str]]], -) -> dict[str, list[_ChangelogEntry]]: - current = [ - (header, entry) - for header, header_entries in current_entries.items() - for entry in header_entries - ] - previous = [ - entry - for category_entries in previous_entries.values() - for entry in category_entries - ] - exact_matches: dict[tuple[str, ...], list[_ChangelogEntry]] = {} - for entry in previous: - exact_matches.setdefault(tuple(entry.lines), []).append(entry) - - matches: dict[int, _ChangelogEntry] = {} - matched_previous: set[int] = set() - for current_index, (_, entry) in enumerate(current): - exact = exact_matches.get(tuple(entry)) - if exact: - previous_entry = exact.pop(0) - matches[current_index] = previous_entry - matched_previous.add(id(previous_entry)) - - candidates: list[tuple[float, int, _ChangelogEntry]] = [] - for current_index, (_, current_entry) in enumerate(current): - if current_index in matches: - continue - for previous_entry in previous: - if id(previous_entry) in matched_previous: - continue - similarity = difflib.SequenceMatcher( - a="\n".join(previous_entry.lines), - b="\n".join(current_entry), - autojunk=False, - ).ratio() - if similarity >= 0.6: - candidates.append((similarity, current_index, previous_entry)) - for _, current_index, previous_entry in sorted( - candidates, key=lambda candidate: candidate[0], reverse=True - ): - if current_index not in matches and id(previous_entry) not in matched_previous: - matches[current_index] = previous_entry - matched_previous.add(id(previous_entry)) - - updated: dict[str, list[_ChangelogEntry]] = {} - for current_index, (header, entry) in enumerate(current): - previous_entry = matches.get(current_index) - updated.setdefault(header, []).append( - _ChangelogEntry( - entry, - previous_entry.introduced_header if previous_entry else header, - ) - ) - return updated - - -def _sdk_core_changelog_entries( - previous_commit: str, - current_commit: str, - path: pathlib.Path, -) -> list[str]: - output = subprocess.check_output( +def changelog_notes(args: argparse.Namespace) -> None: + run_tool( + pathlib.Path.cwd(), [ - "cargo", - "run", - "--quiet", - "-p", - "temporalio-sdk-core", - "--bin", - "changelog-release-notes", - "--", - "--from", - previous_commit, - "--to", - current_commit, + "release-notes", + "--version", + args.version, + "--changelog", + args.changelog, + "--submodule", + args.sdk_core_path, + "--output", + args.output, ], - cwd=path, - encoding="utf-8", - stderr=subprocess.STDOUT, - ).strip() - return output.splitlines() if output else [] - - -def _sdk_core_release_notes(version: str, path: str) -> list[str]: - previous_tag = _previous_release_tag(version) - previous_commit = _gitlink(previous_tag, path) - current_commit = _gitlink("HEAD", path) - if previous_commit == current_commit: - return [] - - submodule_path = pathlib.Path(path) - if not (submodule_path / ".git").exists(): - raise RuntimeError( - f"Submodule {path!r} is not initialized; checkout with submodules" - ) - - try: - notes = _sdk_core_changelog_entries( - previous_commit, - current_commit, - submodule_path, - ) - except subprocess.CalledProcessError: - _git(["fetch", "--quiet", "origin", "main"], cwd=submodule_path) - try: - notes = _sdk_core_changelog_entries( - previous_commit, - current_commit, - submodule_path, - ) - except subprocess.CalledProcessError as error: - output = error.output.strip() if error.output else str(error) - raise RuntimeError( - "SDK Core changelog-release-notes failed after fetching origin/main:\n" - f"{output}" - ) from error - if not notes: - return [] - - return ["### SDK Core", "", *notes] - - -def changelog_notes(args: argparse.Namespace) -> None: - changelog_path = pathlib.Path(args.changelog) - lines = changelog_path.read_text(encoding="utf-8").splitlines() - heading = re.compile(r"^## \[(?P[^\]]+)\](?:\s+-\s+.*)?\s*$") - - start = None - for index, line in enumerate(lines): - match = heading.match(line) - if match and match.group("version") == args.version: - start = index + 1 - break - - if start is None: - raise RuntimeError( - f"Could not find changelog section for version {args.version!r}" - ) - - end = len(lines) - for index in range(start, len(lines)): - if lines[index].startswith("## "): - end = index - break - - section_lines = lines[start:end] - while section_lines and not section_lines[0].strip(): - section_lines.pop(0) - while section_lines and not section_lines[-1].strip(): - section_lines.pop() - - if not section_lines: - raise RuntimeError(f"Changelog section for {args.version!r} is empty") - - note_lines = ["## Notable Changes", "", *section_lines] - sdk_core_notes = _sdk_core_release_notes(args.version, args.sdk_core_path) - if sdk_core_notes: - note_lines.extend(["", *sdk_core_notes]) - - notes = "\n".join(note_lines) + "\n" - pathlib.Path(args.output).write_text(notes, encoding="utf-8") + ) def main(argv: Sequence[str] | None = None) -> None: diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 000000000..3b247f010 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,16 @@ +name: Changelog + +on: + pull_request: + types: [opened, synchronize, reopened, labeled, unlabeled] + +permissions: + contents: read + pull-requests: read + +jobs: + changelog-check: + name: Changelog checkpoint + uses: temporalio/.github/.github/workflows/changelog-fragments.yml@f2a689950aa8b18272aa57f6007fe9cec46b9f47 + with: + sdk-rust-path: temporalio/bridge/sdk-core diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b671f00a3..9e3f5e2da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,20 +16,17 @@ env: jobs: # Build and test the project build-lint-test: - timeout-minutes: 30 + timeout-minutes: 60 strategy: fail-fast: false matrix: - python: ["3.10", "3.14"] + python: ["3.11", "3.15"] os: [ubuntu-latest, ubuntu-arm, macos-arm, windows-latest] include: - os: ubuntu-latest - python: "3.14" + python: "3.15" docsTarget: true - openaiTestTarget: true clippyLinter: true - - python: "3.10" - pytestExtraArgs: '--reruns 3 --only-rerun "RuntimeError: Failed validating workflow"' - os: ubuntu-arm runsOn: ubuntu-24.04-arm64-2-core - os: macos-arm @@ -63,16 +60,9 @@ jobs: - run: poe lint - run: mkdir junit-xml - run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml - timeout-minutes: 15 - # Time skipping doesn't yet support ARM - - if: ${{ !endsWith(matrix.os, '-arm') }} - run: poe test ${{matrix.pytestExtraArgs}} -s --workflow-environment time-skipping --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--time-skipping.xml - timeout-minutes: 10 - - if: ${{ matrix.openaiTestTarget && (github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-python') }} - run: poe test tests/contrib/openai_agents/test_openai.py ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--openai.xml - timeout-minutes: 10 - env: - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + timeout-minutes: 20 + - run: poe test ${{matrix.pytestExtraArgs}} -s --workflow-environment time-skipping-v2 --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--time-skipping-v2.xml + timeout-minutes: 20 - name: "Upload junit-xml artifacts" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 if: always() @@ -114,7 +104,7 @@ jobs: - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 with: - python-version: "3.10" + python-version: "3.11" - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 with: workspaces: temporalio/bridge -> target @@ -189,9 +179,9 @@ jobs: fail-fast: false matrix: include: - - cibw-build: cp310-musllinux_x86_64 + - cibw-build: cp311-musllinux_x86_64 runsOn: ubuntu-latest - - cibw-build: cp310-musllinux_aarch64 + - cibw-build: cp311-musllinux_aarch64 runsOn: ubuntu-24.04-arm64-2-core runs-on: ${{ matrix.runsOn }} steps: @@ -222,7 +212,7 @@ jobs: - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 with: - python-version: "3.10" + python-version: "3.11" - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 with: workspaces: temporalio/bridge -> target @@ -234,20 +224,19 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8 - run: uv tool install poethepoet - - run: uv remove google-adk --optional google-adk - - run: uv add --dev --python 3.10 "googleapis-common-protos==1.70.0" - - run: uv add --python 3.10 "protobuf<4" - run: uv sync --all-extras - - run: cargo install --locked nexgen --version 0.2.2 --features advanced --force + - run: cargo install --locked nexgen --version 0.2.8 --features advanced --force - run: poe build-develop - run: poe gen-protos - name: Check generation unchanged run: | [[ -z $(git status --porcelain temporalio tests) ]] || (git diff temporalio tests; echo "Protos changed"; exit 1) - - name: Test with protobuf 3.x - run: poe test -s --ignore=tests/contrib/google_adk_agents/ - env: - TEMPORAL_TEST_PROTO3: 1 + - run: uv add --dev --python 3.11 "googleapis-common-protos==1.70.0" + - run: uv add --python 3.11 "protobuf==4.21.12" + - run: uv sync --all-extras + - run: poe build-develop + - name: Test with minimum protobuf runtime + run: poe test -s test-latest-deps: timeout-minutes: 30 @@ -288,9 +277,9 @@ jobs: path: junit-xml retention-days: 14 - # Run the test suite against Temporal Cloud (skipped on forks) + # Run the test suite against Temporal Cloud (skipped on forks and Dependabot-triggered runs) cloud-test: - if: ${{ github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-python' }} + if: ${{ github.actor != 'dependabot[bot]' && (github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-python') }} timeout-minutes: 30 runs-on: ubuntu-latest steps: @@ -369,3 +358,21 @@ jobs: python-repo-path: ${{github.event.pull_request.head.repo.full_name}} version: ${{github.event.pull_request.head.ref}} version-is-repo-ref: true + + # The single required status check for merging: a PR can merge only if every job in + # `needs` passed. + required-pr-checks: + name: Required PR Checks + # Without always(), this job would be skipped when a dependency fails, and GitHub + # treats a skipped required check as passing. + if: ${{ always() && github.event_name == 'pull_request' }} + needs: + - build-lint-test + - check-protos + - test-latest-deps + - cloud-test + runs-on: ubuntu-latest + steps: + - name: Fail if any check failed or was cancelled + if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} + run: exit 1 diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml new file mode 100644 index 000000000..ba3932e7b --- /dev/null +++ b/.github/workflows/label-issues.yml @@ -0,0 +1,12 @@ +name: Label issues with repository name + +on: + issues: + types: [opened] + +permissions: + issues: write + +jobs: + label: + uses: temporalio/.github/.github/workflows/label-issues.yml@main diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 6a97c7bc5..0909652f4 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -20,29 +20,29 @@ jobs: include: - os: ubuntu-latest package-suffix: linux-amd64 - cibw-build: cp310-manylinux_x86_64 + cibw-build: cp311-manylinux_x86_64 - os: ubuntu-arm package-suffix: linux-aarch64 - cibw-build: cp310-manylinux_aarch64 + cibw-build: cp311-manylinux_aarch64 runsOn: ubuntu-24.04-arm64-2-core - os: ubuntu-latest package-suffix: linux-musl-amd64 - cibw-build: cp310-musllinux_x86_64 + cibw-build: cp311-musllinux_x86_64 - os: ubuntu-arm package-suffix: linux-musl-aarch64 - cibw-build: cp310-musllinux_aarch64 + cibw-build: cp311-musllinux_aarch64 runsOn: ubuntu-24.04-arm64-2-core - os: macos-intel package-suffix: macos-amd64 - cibw-build: cp310-macosx_x86_64 + cibw-build: cp311-macosx_x86_64 runsOn: macos-15-intel - os: macos-arm package-suffix: macos-aarch64 - cibw-build: cp310-macosx_arm64 - runsOn: macos-14 + cibw-build: cp311-macosx_arm64 + runsOn: macos-15 - os: windows-latest package-suffix: windows-amd64 - cibw-build: cp310-win_amd64 + cibw-build: cp311-win_amd64 runs-on: ${{ matrix.runsOn || matrix.os }} permissions: contents: read @@ -338,6 +338,7 @@ jobs: ref: ${{ needs.verify_artifacts.outputs.release_sha }} fetch-depth: 0 submodules: recursive + - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable - name: Build changelog release notes env: VERSION: ${{ needs.verify_artifacts.outputs.version }} diff --git a/AGENTS.md b/AGENTS.md index 7ecbb40d5..07e2962ef 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -21,8 +21,10 @@ document as a quick reference when submitting pull requests. * Tests that use the workflow environment may start a local Temporal dev server and may download a test server binary on first run. Unit tests that do not use the workflow environment do not start a server. -* Time-skipping tests are run with `poe test -s --workflow-environment - time-skipping`. Time-skipping does not work on Linux ARM or Windows ARM. +* Time-skipping V1 tests are run with `poe test -s --workflow-environment + time-skipping-v1`. Time-skipping V1 does not work on Linux ARM or Windows ARM. +* Time-skipping V2 tests are run with `poe test -s --workflow-environment + time-skipping-v2`. Time-skipping V2 works on both Linux ARM and Windows ARM. * It is extremely important that comments explain why something is necessary, not what the code already says. Avoid comments unless they clarify nonobvious behavior. @@ -30,7 +32,8 @@ document as a quick reference when submitting pull requests. * Avoid unqualified imports from `temporalio` packages except `temporalio.types`. Relative imports are acceptable for private packages. * Do not commit `uv.lock` or `pyproject.toml` changes created only for temporary - protobuf downgrade workflows. Prefer to use poe gen-protos-docker when possible. + protobuf downgrade workflows. Use `poe gen-protos` for generation; uv manages + its isolated tool environment. ## Repo Specific Utilities @@ -41,11 +44,11 @@ document as a quick reference when submitting pull requests. docstyle. * `poe lint-types` - run pyright, mypy, and basedpyright. * `poe bridge-lint` - run clippy for the Rust bridge. + * `poe update-core` - update the Core pin and import its changelog fragments. * `poe format` - run Ruff import sorting, Ruff formatting, and `cargo fmt` for the bridge. - * `poe gen-protos-docker` - regenerate protobuf-related files using Docker. - * `poe gen-protos` - regenerate protobuf-related files without Docker, with - the Python/protobuf constraints documented in `README.md`. + * `poe gen-protos` - regenerate protobuf-related files with a uv-managed tool + environment, as documented in `README.md`. ## Building and Testing @@ -74,8 +77,16 @@ For release artifacts, use `uv build`. Documentation can be generated with * Format and lint code before submitting. * Include tests for behavior changes. * Update public API documentation or doc comments for public behavior changes. -* Add a high-level changelog entry for user-facing changes according to the - existing `CHANGELOG.md` convention. +* For user-facing changes, add a Markdown fragment under `changelog//` + for each applicable category. Use `stabilized/` for features that are no longer + experimental. Use fun, whimsical, unique lowercase kebab-case + filenames, such as `giggling-teapot.md`. The folder supplies the category; + write only the release-note body, without a leading list marker (`-`). Keep + entries concise, ideally one or two sentences. Write each entry entirely on + one line: release tooling turns each nonempty line into a separate list item. + A fragment may contain multiple entries. See `changelog/README.md` for + the convention. + `CHANGELOG.md` contains completed releases and is assembled by release tooling. * Keep commit messages short and in the imperative mood. * Provide a clear PR description outlining what changed, why it changed, and what validation was run. @@ -102,6 +113,7 @@ Reviewers will look for: * `temporalio/bridge/` - Rust bridge and generated bridge bindings. * `tests/` - pytest suites mirroring SDK areas. * `scripts/` - generation, documentation, and helper scripts. +* `changelog/` - pending per-PR release notes in category folders. * `build/apidocs/` - generated API documentation. * `dist/` - built wheels and source distributions. * `temporalio/bridge/target/` - Rust build output. You should not need to inspect @@ -109,9 +121,17 @@ Reviewers will look for: ## Notes -* The SDK supports Python 3.10 and newer. +* The SDK supports Python 3.11 through 3.15. * Generated protobuf and bridge files have specific regeneration workflows; see `README.md` before changing them. * The Rust bridge uses SDK Core from `temporalio/bridge/sdk-core`. +* Update Core with `poe update-core`, which invokes the shared command documented in + `CONTRIBUTING.md` under "Updating SDK Core". It updates the submodule and imports + Core's user-facing changelog entries into category fragments. Review and commit the new Core pin + and generated fragments together; do not update the pin and defer its notes + until release time. The Python task copies Core path dependency versions from the new checkout + and refreshes the bridge lockfile; review both and check Rust API compatibility as needed. + If Core protobuf definitions changed, run `poe gen-protos` and commit the + regenerated bindings with the pin update. * `__pycache__`, `build`, `dist`, and Rust `target` outputs are generated artifacts and should not be reviewed as source changes. diff --git a/CHANGELOG.md b/CHANGELOG.md index be3444177..a4604c4b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,35 +1,392 @@ # Changelog -## [Unreleased] +## [1.36.1] - 2026-11-13 + +### Changed + +- Disable single-batch workflow activation processing (workflow logic flag 2) by default to preserve legacy signal, condition-wait, and cancellation behavior for unflagged workflows. Histories that already recorded flag 2 continue to use single-batch processing. + +## [1.36.0] - 2026-11-10 + +### Added + +- Add experimental Nexus Handler Callbacks for standalone Nexus operations through `NexusClient.start_operation`. Use `temporalio.nexus.create_completion_callback` to send the result or failure and source context to a Nexus handler. + +- Workers that don't configure poller behavior now auto-enroll in poller autoscaling when the server enables it (`frontend.pollerAutoscalingAutoEnroll`); otherwise they keep using a fixed 5-poller maximum. + +- Add experimental envconfig extensions: `ClientConfig.load_client_connect_config` accepts `extensions` that read their own config from `profile..ext.` TOML tables (exposed as `ClientConfigProfile.ext` and never rejected by strict mode) and env vars, and contribute client plugins to the returned config's `plugins`. + +- Core: A local activity's `ActivityTask.Start` has `workflow_task` (field 21), with the started event id, attempt and start time of the workflow task in which Core dispatched it. `workflow_task` also has `previous_started_event_id`, `previous_attempt` and `previous_started_time`, which name the run's last completed workflow task, and `failed_tasks`, the started event ids of the run's last 100 failed or timed out workflow tasks. Retries that Core runs locally keep the value. Core leaves it unset for other activities. +- Core: Client environment config profiles include the raw TOML tables under `profile..ext`, keyed by extension name, for SDK envconfig extensions. Strict mode accepts any content under `ext`. The C bridge's profile JSON includes them as an `ext` object, with TOML datetimes as strings. + +- Client and worker plugins have a new `Plugin.version()` method. Worker plugins report it in worker heartbeats; override it or pass `version` to `SimplePlugin`. + +- Add Python 3.15 support. + +- Nexus operation handlers now propagate their `NexusSerializationContext` to the workflow updates they send, which encode their result, failure and rejection with it. Update handles decode them with the context the server returns. Requires a server that propagates the context. + +- Nexus operation handlers now propagate their `NexusSerializationContext` to the workflows and standalone activities they start, which encode their results and failures (and a standalone activity's heartbeat details) with it because these are returned to the Nexus caller. Clients decode them with the context the server returns, including handles obtained by ID and standalone Nexus operation handles. Requires a server that propagates the context. +- Added `activity.Info.nexus_serialization_context`. To complete a Nexus-started standalone activity asynchronously, pass it to `AsyncActivityHandle.with_context`. + +- Warn when `asyncio.TaskGroup` is created in a sandboxed workflow because its non-deterministic task cancellation order can cause replay failures. + +### Changed + +- Core: Poller pools now report their poller target to the server on each poll and in the worker heartbeat: the current target for autoscaling pools, the configured maximum for fixed-size pools. (We'll use this count on the server side for now for load balancing pollers between workers, and for creating a per-worker poller count metric.) + +- Process workflow activation jobs as a single batch by default (workflow logic flag 2), so signal and update handlers no longer run before other jobs delivered in the same workflow task, such as the random seed update after a reset. Histories that record this flag replay with the new ordering only on SDK 1.31.0 or later. +- Cancelling a Nexus operation handle after its synchronous response has already arrived now raises `CancelledError` when the handle is awaited, matching activities, instead of returning the result. + +- Update the `langsmith` extra to require `temporalio-langsmith>=0.1.1`. + +### :boom: Breaking Changes + +- Drop Python 3.10 support; Python 3.11 or newer is now required. + +- The workflow sandbox now restricts `time.clock_gettime()` and `time.clock_gettime_ns()` at runtime, like `time.time()` and `time.monotonic()`. Calling them from workflow code raises `RestrictedWorkflowAccessError`. + +- Experimental: a Temporal operation handler can now send only one signal (including signal-with-start) per invocation; a second raises a `BAD_REQUEST` error, unless the first signal failed. Signals from other Nexus operation handlers are not limited. + +- Core: Core now rejects activation responses with a nondeterminism error if the activation contained only updates and the response rejects every update but also includes another workflow command. SDKs must return only update rejections when all validators reject an update-only activation. + +- Regenerate Python bindings with grpcio-tools 1.49.1. The SDK now requires protobuf >=4.21.12 (protobuf 3 is no longer supported), and the optional grpc extra requires grpcio >=1.49.1. + +### Fixed + +- `temporalio.contrib.pydantic`: setting `ToJsonOptions` on the Pydantic payload converter no longer drops field aliases or serializes `inf`/`nan` as `null`; the JSON output now matches the default converter apart from the options themselves. + +- Core: Downloading an ephemeral dev or test server binary now retries transient HTTP failures, such as a `503` returned while a release is rolling out, with backoff instead of failing on the first attempt. + +- Fix the payload converter and failure converter losing their serialization context when external storage is configured. A converter that implements WithSerializationContext now gets the workflow, activity or other context whether or not external storage is enabled. + +- `temporalio.contrib.aws.lambda_worker`: `shutdown_hooks` now run before configuration teardown when an invocation fails or is cancelled after configuration setup succeeds, including task queue validation failures. + +- `temporalio.contrib.aws.lambda_worker.otel.apply_defaults` now creates its tracer provider once per process, so warm Lambda invocations no longer leak an OTLP span exporter thread and gRPC channel each time. + +- Core: A workflow task failure reported with the cause `WORKFLOW_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILURE` is now counted on `workflow_task_execution_failed` with `failure_reason="ExternalStorageError"`, matching activity failures with the storage cause. It was previously counted as `WorkflowError`. +- Core: Ephemeral dev and test servers now complete the automatic port reservation handshake on Linux and macOS before starting, preventing intermittent address-in-use errors during TCP teardown. +- Core: Resource-based worker tuners now read CPU usage and quotas from standard cgroup v1 mounts. Workers on cgroup v1 systems no longer fall back to host CPU usage and admit work based on understated container load. + +- `asyncio.sleep()`, `asyncio.wait_for()` and other asyncio timers no longer reuse the `timeout_summary` and Event Groups of an earlier `workflow.wait_condition()` call in the same task. + +- Fix `contrib.opentelemetry` `MetricsExporter` recording a metric under another metric's instrument or another attribute set's labels when instruments or attributes are created per call. It cached them by `id()`, which Python reuses once an object is freed. + +- Calling `Worker.run()` again on the same worker now raises `RuntimeError("Already started")` instead of a bridge panic. + +- Keep an empty TLS table when `ClientConfigProfile` and `ClientConfig` are converted to and from dictionaries, so a profile that enables TLS with default settings does not lose it. + +- Workflow workers without a payload codec or external storage skip the payload codec passes and the per-command serialization-context lookups on every activation and completion, restoring the workflow task and replay performance lost since 1.23. + +- Fix OpenTelemetryPlugin dropping the worker-side span for a rejected update or a failed query. An exception from an update validator or query handler does not fail the workflow task, so its span is now ended and exported with an error status. + +- Experimental: signals and signal-with-start sent from a Temporal operation handler now reuse the Nexus operation request ID, so a retried Nexus task no longer delivers the same signal twice. + +- Fix OpenTelemetry logger attribute typing and logger-provider test collection with OpenTelemetry 1.45 and newer by accepting string-keyed mappings without restricting attribute value types. + +- Core: Preserve queued queries across workflow eviction so requests for the same run are answered instead of silently dropped. +- Core: Rejection-only update tasks no longer dispatch local activities resumed from replay before validation, allowing those tasks to remain unrecorded in workflow history. +- Core: Preparing a legacy query now remains in replay mode, preventing unrecorded local activity attempts that could execute twice or leave the workflow stuck. + +- Fix argument conversion for activity methods that annotate `self` with `Self`. + +## [1.35.0] - 2026-10-28 ### Added +- Nexus links now convert to and from `Link.Callback` instead of raising `NotImplementedError`. + +- Add an experimental Google Cloud Storage external payload storage driver with an optional async `gcloud-aio-storage` adapter. + +- Add experimental notification service models in `temporalio.nexus.notifications`. The SDK does not currently use these models. + +- Worker now warns when an activity method is registered from the class instead of from an instance (i.e. its first parameter is an unbound `self`). + +- Add experimental `versioning_override` to `workflow.start_child_workflow` and `workflow.execute_child_workflow` to override inherited parent versioning, and `common.OneTimeVersioningOverride` to route an execution to a deployment version until its first completed workflow task. Child overrides require Temporal Server 1.32 or newer; invalid child overrides raise `exceptions.InvalidVersioningOverrideError`. + +- Workers and clients can now read external storage reference payloads that were encoded with the configured payload codec and marked with `__temporal_external_storage_reference` metadata. This release does not write encoded references yet; a later release will, so upgrade all workers before then. + +- `WorkflowEnvironment.start_time_skipping_v2()` starts a Temporal CLI dev server with per-workflow virtual-clock time skipping, the eventual replacement to the global-clock Java test server returned by `start_time_skipping()`. +- `TimeSkipper(client, config=TimeSkippingConfig(...))` from `temporalio.testing` wraps an existing `Client` with per-workflow time skipping for use outside the test environment. + +- Core: Child workflow commands, including those submitted through the C bridge, support pinned, auto-upgrade, and one-time worker deployment versioning overrides on Temporal Server 1.32.0 or later. Child-start resolutions distinguish invalid versioning overrides and missing namespaces from other start failures. + +- Expose `connect_timeout` on `Client.connect` and `ConnectConfig` to bound TCP connection attempts independently of RPC timeouts. The default remains unset. + +- `workflow.new_random()` accepts an optional `name` that is mixed into the seed, so differently named generators, and `workflow.random()`, produce different sequences. + +- Add startup timeout options to `WorkflowEnvironment.start_local` and `WorkflowEnvironment.start_time_skipping` to configure how long to wait for the server to become ready after spawning. + +### Stabilized + +- Removed experimental labels from the core plugin APIs. + ### Changed -### Deprecated +- Payload converters exposed by data converters and workflow/activity accessors retain transfer type conversion, so direct use behaves consistently with SDK serialization. ### :boom: Breaking Changes +- `SchedulePolicy.catchup_window` now defaults to `None`. An unspecified window will use the server configured default. + +- **Experimental**: Nexus Workflow Updates now require `wait_for_stage` to be explicitly set to `ACCEPTED`. + +- The Deep Agents, Google ADK, Google GenAI, LangGraph, LangSmith, and Strands Agents integrations have moved to independently versioned packages in [`temporalio/ai-integrations`](https://github.com/temporalio/ai-integrations). The existing SDK extras install the corresponding standalone packages and public `temporalio.contrib` imports forward their APIs; new code should depend on the standalone packages and use their `temporalio.` imports directly. + +- The OpenAI Agents integration has moved to the independently versioned [`temporalio-openai-agents`](https://pypi.org/project/temporalio-openai-agents/) package. The existing `temporalio[openai-agents]` extra now installs that package, and the old public `temporalio.contrib.openai_agents` imports remain available at runtime and retain their static type information. New code should depend on `temporalio-openai-agents` directly and import `temporalio.openai_agents`. + +- `temporalio.contrib.google_adk_agents`: ADK-generated ids and retry jitter now draw from a workflow-private deterministic stream (a `workflow.new_random()` per run) instead of `workflow.random()`. A workflow started under 1.34.0 that generated ADK ids or jitter (for example one waiting on a HITL response) may not replay deterministically across this upgrade; drain such workflows or use worker versioning. + +- Decorating an `async def` function with `@update_method.validator` or passing one as `validator` to `workflow.set_update_handler`/`set_dynamic_update_handler` now raises `ValueError`. Previously the validator was silently never run, so every update was accepted. + +- `temporalio.contrib.opentelemetry`: removed `TemporalIdGenerator.seed_span_id()` and `seed_trace_id()`. + ### Fixed +- Fix `contrib.opentelemetry` `ReplaySafeLoggerProvider.get_logger()` raising `TypeError` with opentelemetry-api 1.45, where `Logger.enabled` became abstract. `enabled()` now returns `False` while replaying history events, matching `emit()`. + +- `contrib.google_adk_agents`: agents with an `output_schema` no longer fail every workflow task when calling the model. The schema type is now sent to the model activity as its JSON schema. Custom Pydantic schema generation is preserved. Integer-valued output enums are normalized to strings to match Google GenAI. + +- Core: Worker heartbeats now report correct task-slot and poller counts when using buffered or custom metrics backends, including the Python SDK's `MetricBuffer`. Previously these counts could remain `0` because heartbeat accounting depended on reading labels from backend-owned attributes. + +- Decode enums that mix in `str` or `int` (for example `class Color(str, Enum)`) to the enum instead of a list of characters or an error, and decode `dict` keys typed as an `int` enum. + +- System Nexus operations without an operation-specific serialization context no longer give custom payload and failure converters the calling workflow's context. + +- `temporalio.contrib.strands` activity and MCP tools now give the model the Activity's failure message and expose its exception to after-tool hooks. + +- Cancelling a workflow, or the task awaiting `ExternalWorkflowHandle.cancel()`, before the external cancel request resolves no longer fails every following workflow task with `InvalidStateError`. + +- Preserve the result of augmented assignments such as `path /= "child"` in the workflow sandbox, while retaining restrictions on replacement objects. + +- Fixed Pydantic constraints being silently ignored inside or outside workflow sandboxes by passing through `annotated_types` by default. + +- Fix S3 external storage object names by preserving empty namespace segments and using namespace-scoped hash keys when names exceed 1,024 bytes. Document the read and bucket-listing permissions required for uploads. + +- Encoding a datetime search attribute without a timezone now raises `ValueError("Timezone must be present on all search attribute dates")` on the typed path, matching the deprecated untyped encoder, instead of sending a naive ISO string that the server rejects with `BadSearchAttributes`. + +- Core: A workflow task that arrives while a workflow waits on a local activity, such as a legacy query, now waits until the current workflow task is reported. Previously it replaced that workflow task ("Trying to send a new WFT for a run which already has one!"), which then timed out on the server and could leave the workflow stuck on a nondeterminism error. + +- Activity heartbeats are now recorded in the order they were sent. With a payload codec that is slow to encode, an older heartbeat could be recorded after a newer one, so a retried activity resumed from stale heartbeat details. + +- Fix `Worker.shutdown()` and `async with Worker(...)` hanging forever when worker validation fails, for example on a namespace that does not exist. `async with` now raises the validation error. + +- Exiting `async with Worker(...)` now waits for the code that plugins run after the Worker stops in `run_worker`, up to the new `plugin_shutdown_timeout` Worker option, instead of cancelling the task that entered the block. + +- A deserialized `ApplicationError` without a next retry delay now has `next_retry_delay` set to `None` instead of a zero `timedelta`. + +- Core: Workers now replay workflows paused before a scheduled task starts, allowing those workflows to make progress after unpause. + +- `temporalio.contrib.opentelemetry`: `TracingInterceptor` and `OpenTelemetryInterceptor` no longer log `Failed to detach context` when a context is torn down on a different thread while OpenTelemetry's threading instrumentation (enabled by strands, among others) is active; a context is now detached exactly when its token is still valid in the current `contextvars.Context`, which it stays when a workflow resumes on another pool thread. + +- Reject unsupported `InterpreterPoolExecutor` activity executors when creating a worker instead of failing during activity execution. + +- Setting `Worker.client` no longer raises "New client is not on the same runtime as the existing client" when both clients connected without a `runtime`, since both use the default runtime. The check now compares the runtime each client actually connected with. + +- Heartbeating an async activity through a task-token `AsyncActivityHandle` now raises `AsyncActivityCancelledError` with `reset=True` when the activity was reset, as handles created from IDs already did. + +- Keep whole-number `Double` values in typed search attributes returned by `list_workflows()` and other visibility results, instead of silently dropping them. + +- Stop `SandboxImportNotificationPolicy.WARN_ON_UNINTENTIONAL_PASSTHROUGH` and `RAISE_ON_UNINTENTIONAL_PASSTHROUGH` from flagging the module that defines the workflow, which the sandbox reloads on purpose. + +- Experimental Workflow Streams background publishing now retries transient signal delivery failures without delaying payload conversion errors. + +- Workflow wait conditions are no longer evaluated in a workflow task that only delivers updates and rejects all of them. + +- Preserve retained Workflow Stream items after workflow completion, failure, cancellation, termination, or timeout by draining them through read-only queries before subscriptions finish. +- Preserve the original Workflow Streams poll error when the follow-up execution description fails with an RPC error. + +- Prevent pending Nexus operations from logging "Task was destroyed but it is pending!" when a worker stops or evicts a workflow. + +- Cancelling a workflow or local activity while the local activity waits on its retry backoff timer now cancels the timer, instead of failing every workflow task with a `Missing associated machine for LocalActivity` nondeterminism error. + +- `WorkflowStreamClient.subscribe` now propagates task cancellation instead of ending the subscription normally. + +- Fix worker shutdown hanging when a Nexus task is cancelled while its failure is still being encoded. + +- Dropping a client or worker no longer stops log forwarding for the other clients and workers that share its `Runtime`. + +- If enabled, time skipping is applied to workflows started through `Client.start_update_with_start_workflow()` or `Client.execute_update_with_start_workflow()`. + +- `ActivityHandle.describe()` now returns `None` as the `expiration_time` of a Standalone Activity that has no schedule-to-close timeout, instead of a naive `datetime.min`. + +- Send a request ID when terminating a standalone activity, so a retried `ActivityHandle.terminate()` call no longer fails after the first attempt already terminated the activity. + +- Evicting a workflow while an activity or local activity cancellation is still unresolved no longer leaves the eviction retrying forever and worker shutdown hung, a regression in 1.33.0. + +- Fix Nexus worker shutdown hanging forever, and the task slot never being released, when a Nexus handler failure can not be converted or encoded, for example when the payload codec raises or the error details are not serializable. The worker now completes the task with an internal handler error. + +- A cancel that arrives while an activity's result or failure is still being encoded no longer interrupts the reporting, so the completion is still sent. + +- `GoogleAdkPlugin`'s deterministic providers now work in read-only contexts (query handlers, update validators), returning the workflow's deterministic time and fresh entropy without touching the workflow's random state. + +- Decoding a dataclass with `field(init=False)` fields no longer raises `TypeError`; those fields are left out of the constructor call and their serialized values are restored afterwards, including on frozen dataclasses. + ### Security +- Updated Rust bridge dependencies, including `rustls` to 0.23.45 and `ringbuf` to 0.5.2 to address RUSTSEC-2026-0285 and RUSTSEC-2026-0293. + +- Core: Ephemeral server downloads now use `zip` 9.0 for ZIP extraction, replacing the 8.x dependency [yanked upstream for security issues](https://github.com/zip-rs/zip2/issues/1075#issuecomment-6209381974). + +## [1.34.0] - 2026-09-30 + +### Added + +- Added `WorkflowAlreadyStartedError.first_run_id` for the first execution run + ID when provided by the server. +- **Experimental**: `temporalio.contrib.google_adk_agents` now supports ADK v2 + graph workflows, dynamic `@node` workflows, and durable HITL. +- **Experimental**: Experimental support for _Event Groups_. **Event Groups** is a new form of + Workflow-level metadata that allows for improved visibility into a Workflow execution's history + by grouping logically related Events together based on user-defined or system-inferred criteria. + `workflow.create_event_group(...)` takes the Event Group's ID as its first and only required + argument; the user-provided ID is used verbatim and should not contain sensitive information. + The label is optional and passed as a keyword argument; it is a codec-encoded Payload. + +- Added `workflow.Info.original_execution_run_id`, the run ID recorded on the workflow + execution started event. Unlike `run_id`, this value is preserved across workflow resets. + +- **Experimental**: `temporalio.contrib.strands` now supports durable, + Workflow-isolated Strands sandboxes through `TemporalSandbox` and + worker-side factories registered with `StrandsPlugin(sandboxes=...)`. + +- Added the `temporalio.contrib.gcp.cloud_run.id` module with the `CloudRunIdPlugin` client plugin to set the worker identity on Cloud Run. + +### Changed + +- The `deepagents` extra now requires `deepagents>=0.7,<0.8` (was `<0.7`). Because + deepagents 0.7 requires `langsmith>=0.10.9`, the `langsmith` extra now allows + `langsmith<0.13` (was `<0.9`). + +### :boom: Breaking Changes + +- The `google-adk` extra now requires `google-adk>=2.8.0,<3`, up from `>=2.2.0`. +- `temporalio.contrib.google_adk_agents`: ADK-generated ids and retry jitter now draw from the + workflow's deterministic random stream. A workflow started under an earlier release that calls + `workflow.random()` or `workflow.uuid4()` after ADK code may not replay deterministically + across the upgrade; drain such workflows or use worker versioning. + +### Fixed + +- `temporalio.contrib.deepagents` now preserves model binding options such as + `response_format` and `tool_choice` when tools are also bound. +- Workflow handles returned when a start attaches to a running workflow now use + the server-provided first execution run ID with Temporal Server 1.32.0 or + later. +- Restore `frozenset` values when decoding JSON payloads with a `frozenset` type hint, + including nested frozen sets. + +- Ordinary absolute imports of already-loaded modules in sandboxed workflows no longer go through + importlib's module locks, fixing intermittent `Failed validating workflow` errors on Python 3.10 + caused by a `KeyError` in `importlib._bootstrap._ModuleLock.acquire` when a garbage-collection + finalizer imported `warnings` during a workflow load + ([#585](https://github.com/temporalio/sdk-python/issues/585)). +- `temporalio.contrib.deepagents.TemporalBackend` is fixed for deepagents 0.7 compatibility + (e.g., adding `delete` / `adelete`). +- `temporalio.contrib.deepagents.TemporalBackend` now forwards the per-command `timeout` of + deepagents' `execute` tool for a wrapped sandbox backend such as `LocalShellBackend`. +- `GoogleAdkPlugin` now passes the optional `anthropic`, `litellm`, and `openai` SDKs through + the workflow sandbox. +- `GoogleAdkPlugin` now passes OpenTelemetry modules through the workflow sandbox so ADK 2.9 + graph workflows can load their context support during execution. +- `contrib.deepagents`: prevent duplicate input messages after continue-as-new. +- `DataConverter.payload_converter` and current workflow and activity payload converter accessors + now return the configured converter without SDK-internal transfer type conversion. +- Restore pickling of Pydantic data converters, preserving the type adapter cache + size limit while excluding cached adapters. +- Current workflow and activity payload converter accessors now return the configured converter + without SDK-internal transfer type conversion. +- A Nexus operation's user metadata is now serialized with `NexusSerializationContext`, the same way + workflow and activity user metadata are serialized with theirs. This covers the static summary + sent when starting an operation, and the summary and details read back from a description. + +## [1.33.0] - 2026-09-14 + +### Added + +#### Standalone Activity operator commands + +- `ActivityHandle` now supports operator commands for standalone activities: `pause`, + `unpause`, `update_options` and `restore_original_options`. +- Added GCP Cloud Run serverless-worker OpenTelemetry plugin in `temporalio.contrib.opentelemetry`. +- Added new options to ActivityHandle.describe() to retrieve associated payloads, such as activity input and outcome. +- New properties and methods in ActivityExecution and ActivityExecutionDescription. +- Added experimental `temporalio.converter.NexusSerializationContext` support for Nexus callers + and handlers. Callers use it for inputs, results, and failures; handlers use it for inputs, + synchronous results, and failures. Asynchronous handler results and detached standalone handles + are not yet supported. Standalone `USE_EXISTING` handles use their start request's context. + +### Changed + +- Standalone Activities are now generally available (GA). (Standalone Activities as Nexus operations + and Standalone Activities operator commands remain experimental. Operator commands are `pause`, + `unpause`, `updateOptions`, `restoreOriginal`.) +- System Nexus Signal-with-Start Workflow operations now use the typed + `WorkflowOutboundInterceptor.start_signal_with_start_workflow` interception point instead of + the generic `WorkflowOutboundInterceptor.start_nexus_operation` method. +- System Nexus Signal-with-Start Workflow operations now invoke + `WorkflowOutboundInterceptor.start_system_nexus_operation` after their typed interception + point. They continue not to invoke `WorkflowOutboundInterceptor.start_nexus_operation`. +- The experimental `GetNexusOperationResultInput` now includes the Nexus endpoint, service, and + operation. + +### :boom: Breaking Changes + +- Experimental external storage: `ExternalStorage.driver_selector` is now called with a + `StorageDriverSelectContext` instead of a `StorageDriverStoreContext`. Update the annotation; + the new type carries the same `target` field. Since selectors are plain callables, a stale + annotation fails type checking rather than at runtime. +- `client.ActivityExecution` and `client.ActivityExecutionDescription` had some fields removed or renamed + to match RPC API. + - Dataclass parameters for these types were changed to `frozen=True, eq=False, kw_only=True`. + - `scheduled_time` was renamed `schedule_time`. + - `last_failure` was changed from field to method that runs data converter on demand. + - `state_transition_count`, `eager_execution_requested`, `paused` and `long_poll_token` were removed. +- ActivityHandle.describe() long-poll token was removed. The functionality can still be used manually + through raw gRPC API. + +### Fixed + +- `temporalio.contrib.google_genai` now requires `google-genai` 2.21.0 or later + and supports its file download API, including video inputs and download + destinations. +- `temporalio.contrib.deepagents` no longer dedups repeated identical tool, + model, and backend-op calls: each dispatch runs its own Activity, and the + continue-as-new result cache is retired for new executions (a continued run + resumes from the carried transcript and never re-executes prior dispatches, + so a carried cache entry could only serve stale results). Patch-gated + (`deepagents.retire-result-cache`), so histories recorded before this change + replay unchanged; note that deferring the patch keeps the full legacy dedup + cache — including the stale-result behavior this entry describes — and that + a chain upgraded mid-continue-as-new re-executes rather than reuses a + repeated identical call (the conservative direction). +- `contrib.deepagents`: summarization middleware configured with a model name string now routes its LLM calls through Activities instead of running them in the Workflow. + +- **Experimental**: External storage metrics now report the wall-clock time storage was in flight. + Previously each batch's duration was summed, over-reporting the time whenever storage operations + ran concurrently. +- System Nexus Signal-with-Start workflow operations now give custom payload + converters the target workflow's serialization context when encoding their + inner request payloads. +- Cancelling an activity from a signal while the workflow itself is cancelled + no longer causes a nondeterminism error from duplicate activity-cancellation + commands. +- `StrandsPlugin` now disables Botocore retries for its default Bedrock model so + model request retries are handled exclusively by Temporal. +- `temporalio.contrib.openai_agents` now honors the `retry-after-ms` and + `retry-after` headers when OpenAI returns `x-should-retry: true`. Previously + the delay the server asked for was discarded on that path and the activity + retried on its configured interval instead. +- Nexus-context workflow/activity starts no longer set `on_conflict_options` when there are no links + or callbacks to attach. +- The workflow sandbox now passes `pydantic_core` through by default, alongside `pydantic`. + ## [1.32.0] - 2026-08-24 ### Added @@ -135,6 +492,10 @@ to include examples, links to docs, or any other relevant information. This lets types with transfer type converters delegate their wire representation to the configured payload converter, preserving SDK behavior such as serialization contexts. +- Added `temporalio.contrib.opentelemetry.MetricsExporter`, which drains a + `temporalio.runtime.MetricBuffer` on a fixed interval and exports through a + real OpenTelemetry `MeterProvider`, giving SDK/Core metrics access to + standard OTel features (views, resource, exemplars). Experimental. - Added `TLSConfig.verification_server_name` to verify the server certificate against a fixed name instead of the connection's server name. Unlike `domain`, it does not change the TLS SNI or HTTP/2 authority values, which keep following the connected host, so it can be used when the diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 057901ff5..b3c1ad28b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,6 +6,9 @@ This guide describes expectations that apply across Temporal SDK repositories. E repository may have additional local conventions, but the guidance below should help you open issues and pull requests that maintainers can evaluate efficiently. +> [!IMPORTANT] +> Non-Temporal contributors must not solicit user or customer information, including but not limited to workload, use-case, or failure information. Doing so will result in a ban from all Temporal repositories at Temporal's sole discretion. + ## Before You Open an Issue Search the existing issues first. If you find an issue that describes the same bug, @@ -61,13 +64,69 @@ Good pull requests are focused and easy to review: * Keep each pull request scoped to one logical change. * Include tests for behavior changes. * Update public API documentation or doc comments when public behavior changes. -* Add a high-level changelog entry for user-facing changes according to the - repository's local changelog convention. +* For user-facing changes, add a Markdown fragment in each applicable + `changelog//` folder. Use `stabilized/` for features that are no longer + experimental. Choose fun, whimsical, unique lowercase + kebab-case filenames, such as `giggling-teapot.md`. Include only the release-note + body without a leading list marker; the folder supplies its category. Keep + entries concise, ideally one or two sentences. Write each entry entirely on + one line: release tooling turns each nonempty line into a separate list item. + A fragment may contain multiple entries. See [the fragment guide](changelog/README.md). + Release tooling assembles `CHANGELOG.md` from these fragments. * Describe what changed, why it changed, and what validation you ran. Run the relevant local checks when practical. CI must pass before a pull request can be merged. +## Updating SDK Core + +Initialize the checked-in submodule, then use the shared update command: + +```bash +git submodule update --init +poe update-core +``` + +This fetches and updates Core to the head of `origin/main`, importing user-facing +entries from `crates/sdk-core/CHANGELOG.md` over the old-to-new revision range. +Use `poe update-core --latest-tag` to fetch tags and select the highest stable +`core-vX.Y.Z` version, or `poe update-core --revision ` to select a particular +locally available revision. These two options are mutually exclusive. +Each affected category gets a fragment with an automatically generated whimsical +filename. Core entries join the language entries in the same categories with a +`Core: ` prefix. Wrapped Core prose becomes one line per entry; unsupported block +Markdown must be rewritten before importing. + +Start with a clean Core checkout. Backward and divergent updates are rejected. +Repeated updates import only the range since the previous checkout; an unchanged +pin creates no fragments. Review and commit the updated pin and generated fragments +together with the bridge manifest and lockfile. Python copies Core path dependency +versions from the updated checkout into `temporalio/bridge/Cargo.toml` and runs +`cargo update` to refresh all bridge dependencies in `Cargo.lock` to the latest +versions allowed by their requirements. +The command does not stage or commit changes or resolve Rust API +compatibility issues. If dependency refresh fails, inspect the updated pin, +fragments, and manifest before retrying. + +The command then runs `poe gen-protos`. Include regenerated bindings in the update +PR. + +## Preparing a Release + +Run `poe prepare-release ` (optionally with `--date YYYY-MM-DD`) from a +clean worktree. This creates `chore/release-` from `origin/main`, runs the +Core update with `--latest-tag`, and then prepares the Python versions, lockfile, and +changelog. It commits the Core and Python changes together, pushes the release +branch, and opens a PR. A failed Core update or proto generation stops preparation +before changelog fragments are consumed. Review any partial changes before retrying. +Rerunning for the same version rebuilds the local release branch from `origin/main`, +replacing prior release-branch commits, and updates the remote branch using an +explicit force-with-lease. If the remote branch changes during preparation, the +push fails rather than overwriting that change. An existing open release PR is +reused, preserving its description and discussion. +The optional `--date` sets the date in the changelog release heading and defaults +to today; it does not schedule publication. + ## Things to Avoid Avoid changes that make review harder without improving the contribution: diff --git a/README.md b/README.md index 7a1caedd9..e0048a088 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ ![Temporal Python SDK](https://assets.temporal.io/w/py.png) -[![Python 3.10+](https://img.shields.io/pypi/pyversions/temporalio.svg?style=for-the-badge)](https://pypi.org/project/temporalio) +[![Python 3.11+](https://img.shields.io/pypi/pyversions/temporalio.svg?style=for-the-badge)](https://pypi.org/project/temporalio) [![PyPI](https://img.shields.io/pypi/v/temporalio.svg?style=for-the-badge)](https://pypi.org/project/temporalio) [![MIT](https://img.shields.io/pypi/l/temporalio.svg?style=for-the-badge)](LICENSE) -**📣 News: Integration between OpenAI Agents SDK and Temporal is now in public preview. [Learn more](temporalio/contrib/openai_agents/README.md).** - [Temporal](https://temporal.io/) is a distributed, scalable, durable, and highly available orchestration engine used to execute asynchronous, long-running business logic in a scalable and resilient way. @@ -113,7 +111,8 @@ informal introduction to the features and their implementation. - [Observability](#observability) - [Metrics](#metrics) - [OpenTelemetry Tracing](#opentelemetry-tracing) - - [Protobuf 3.x vs 4.x](#protobuf-3x-vs-4x) + - [OpenTelemetry Metrics](#opentelemetry-metrics) + - [Protobuf compatibility](#protobuf-compatibility) - [Known Compatibility Issues](#known-compatibility-issues) - [gevent Patching](#gevent-patching) - [Development](#development) @@ -329,7 +328,7 @@ The default data converter supports converting multiple types including: * Anything that [`json.dump`](https://docs.python.org/3/library/json.html#json.dump) supports natively * [dataclasses](https://docs.python.org/3/library/dataclasses.html) * Iterables including ones JSON dump may not support by default, e.g. `set` - * [IntEnum, StrEnum](https://docs.python.org/3/library/enum.html) based enumerates + * [IntEnum, StrEnum](https://docs.python.org/3/library/enum.html) based enumerates, including enums that mix in `int` or `str` * [UUID](https://docs.python.org/3/library/uuid.html) * `datetime.datetime` @@ -475,7 +474,8 @@ A `StorageDriver` handles uploading and downloading payloads. Temporal provides ```python import aioboto3 import dataclasses -from temporalio.client import Client, ClientConfig +from temporalio.client import Client +from temporalio.envconfig import ClientConfig from temporalio.contrib.aws.s3driver import S3StorageDriver from temporalio.contrib.aws.s3driver.aioboto3 import new_aioboto3_client from temporalio.converter import DataConverter @@ -556,6 +556,7 @@ Some things to note about driver selection: ###### Built-in Drivers +- **[GCS Storage Driver](temporalio/contrib/gcp/gcsdriver/)**: ⚠️ **Experimental** ⚠️ Google Cloud Storage driver. Ships with a gcloud-aio-storage client adapter, or bring your own by subclassing `GCSStorageDriverClient`. - **[S3 Storage Driver](temporalio/contrib/aws/s3driver/)**: ⚠️ **Experimental** ⚠️ Amazon S3 driver. Ships with an aioboto3 client, or bring your own by subclassing `S3StorageDriverClient`. ###### Custom Drivers @@ -884,6 +885,10 @@ deterministic: * `asyncio.as_completed()` - use `workflow.as_completed()` * `asyncio.wait()` - use `workflow.wait()` +`asyncio.TaskGroup` tracks tasks in a `set()`, so cancellation order can differ between execution and replay. +This can cause non-determinism errors, even if the workflow catches the task group's exception and completes +successfully. The sandbox warns when a task group is created. + #### Asyncio Cancellation Cancellation is done using `asyncio` [task cancellation](https://docs.python.org/3/library/asyncio-task.html#task-cancellation). @@ -1611,8 +1616,10 @@ code](https://github.com/temporalio/samples-python/blob/main/context_propagation [Nexus](https://github.com/nexus-rpc/) is a synchronous RPC protocol. Arbitrary duration operations that can respond asynchronously are modeled on top of a set of pre-defined synchronous RPCs. -Temporal supports calling Nexus operations **from a workflow**. See https://docs.temporal.io/nexus. There is no support -currently for calling a Nexus operation from non-workflow code. +Temporal supports calling Nexus operations **from a workflow** or directly from a client using +[Standalone Nexus Operations](https://docs.temporal.io/develop/python/nexus/standalone-operations). +Standalone Nexus Operations are in [Public Preview](https://docs.temporal.io/evaluate/development-production-features/release-stages#public-preview). +We aim to preserve backward compatibility and avoid breaking changes. See https://docs.temporal.io/nexus. To get started quickly using Nexus with Temporal, see the Python Nexus sample: https://github.com/temporalio/samples-python/tree/nexus/hello_nexus. @@ -1990,17 +1997,46 @@ as an interceptor on the `interceptors` argument of `Client.connect`. When set, calls and for all activity and workflow invocations on the worker, spans will be created and properly serialized through the server to give one proper trace for a workflow execution. -### Protobuf 3.x vs 4.x +#### OpenTelemetry Metrics + +Metrics support also requires the `opentelemetry` extra (see above). If you want your Temporal SDK/Core metrics (and +any custom metrics recorded via `activity.metric_meter()`/`workflow.metric_meter()`) to flow through the standard +OpenTelemetry metrics pipeline (views, resources, any OTel-compatible backend) rather than only through +`PrometheusConfig`/`OpenTelemetryConfig`, set a `temporalio.runtime.MetricBuffer` as the `metrics` on +`TelemetryConfig`, then drain it into a real OpenTelemetry `MeterProvider` using +`temporalio.contrib.opentelemetry.MetricsExporter`: + +```python +from datetime import timedelta + +from opentelemetry.sdk.metrics import MeterProvider +from opentelemetry.sdk.metrics.export import ConsoleMetricExporter, PeriodicExportingMetricReader + +from temporalio.client import Client +from temporalio.contrib.opentelemetry import MetricsExporter +from temporalio.runtime import MetricBuffer, Runtime, TelemetryConfig + +buffer = MetricBuffer(10_000) +runtime = Runtime(telemetry=TelemetryConfig(metrics=buffer)) +meter_provider = MeterProvider( + metric_readers=[PeriodicExportingMetricReader(ConsoleMetricExporter(), export_interval_millis=5000)] +) + +async with MetricsExporter(buffer, meter_provider): + client = await Client.connect("localhost:7233", runtime=runtime) + # ... run workers/workflows while the exporter drains the buffer in the background +``` + +`MetricsExporter` must be running (via `async with` or manual `run()`/`shutdown()`) for as long as metrics should be +exported, since it works by draining the buffer on a fixed interval (`poll_interval`, default one second) -- per the +warning on `MetricBuffer`, updates are dropped if the buffer isn't drained regularly. -Python currently has two somewhat-incompatible protobuf library versions - the 3.x series and the 4.x series. Python -currently recommends 4.x and that is the primary supported version. Some libraries like -[Pulumi](https://github.com/pulumi/pulumi) require 4.x. Other libraries such as [ONNX](https://github.com/onnx/onnx) and -[Streamlit](https://github.com/streamlit/streamlit), for one reason or another, have/will not leave 3.x. +### Protobuf compatibility -To support these, Temporal Python SDK allows any protobuf library >= 3.19. However, the C extension in older Python -versions can cause issues with the sandbox due to global state sharing. Temporal strongly recommends using the latest -protobuf 4.x library unless you absolutely cannot at which point some proto libraries may have to be marked as -[Passthrough Modules](#passthrough-modules). +The SDK requires `protobuf>=4.21.12,<8` and supports protobuf 4, 5, 6, and 7 runtimes. +Its Python bindings are generated with `grpcio-tools` 1.49.1, which bundles +protoc 3.21.6 (Python protobuf 4.21.6). +The optional `grpc` extra requires `grpcio>=1.49.1,<2`. ### Known Compatibility Issues @@ -2015,7 +2051,7 @@ users are encouraged to not use gevent in asyncio applications (including Tempor # Development -The Python SDK is built to work with Python 3.10 and newer. It is built using +The Python SDK supports Python 3.11 through 3.15. It is built using [SDK Core](https://github.com/temporalio/sdk-rust/) which is written in Rust. ### Building @@ -2211,18 +2247,16 @@ poe test -s --log-cli-level=DEBUG -k test_sync_activity_thread_cancel_caught #### Proto Generation and Testing -If you have docker available, run +Generate protobuf code: ``` -poe gen-protos-docker +poe gen-protos ``` -Alternatively: to generate protobuf code, you must be on Python <= 3.10, and then run `uv add -"protobuf<4"` + `uv sync --all-extras`. Then the protobuf files can be generated via `poe -gen-protos` followed by `poe format`. Do not commit `uv.lock` or `pyproject.toml` changes. To go -back from this downgrade, restore both of those files and run `uv sync --all-extras`. Tests can be -run for protobuf version 3 by setting the `TEMPORAL_TEST_PROTO3` env var to `1` prior to running -tests. +`uv` runs the protobuf compiler in an isolated Python 3.11 environment using the +dependencies declared in `scripts/gen_protos.py` and locked in +`scripts/gen_protos.py.lock`. It downloads Python if needed and leaves the SDK +development environment unchanged. ### Style diff --git a/basedpyrightconfig.json b/basedpyrightconfig.json new file mode 100644 index 000000000..10a478c23 --- /dev/null +++ b/basedpyrightconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "pyproject.toml", + "reportAny": "none", + "reportExplicitAny": "none", + "reportIgnoreCommentWithoutRule": "none", + "reportImplicitAbstractClass": "none", + "reportUnannotatedClassAttribute": "none" +} diff --git a/changelog/README.md b/changelog/README.md new file mode 100644 index 000000000..d9e75ea0d --- /dev/null +++ b/changelog/README.md @@ -0,0 +1,85 @@ +# Changelog fragments + +For each PR with user-facing changes, add a Markdown file in each applicable +category folder. Write high-level release notes describing what users can observe. +Keep entries concise, ideally one or two sentences. Write each entry entirely on +one line: release tooling turns each nonempty line into a separate list item. +A fragment may contain multiple entries; blank lines are ignored. +Use fun, whimsical, unique lowercase kebab-case filenames, such as +`fixed/giggling-teapot.md` or `added/dancing-marshmallow.md`. PR numbers are optional. + +| Folder | Changes | +| --- | --- | +| `added/` | New features | +| `stabilized/` | Features that are no longer experimental | +| `changed/` | Changes in existing functionality | +| `deprecated/` | Soon-to-be-removed features | +| `breaking-changes/` | Removed or backwards-incompatible features | +| `fixed/` | Notable bug fixes | +| `security/` | Notable security fixes | + +Create a category folder when first needed. Place files directly inside it; +use one fragment per category for your PR. The folder supplies the category, so +the file contains only the entries, without a category or version heading or +leading list markers (`-`). Release tooling adds a list marker to each nonempty line: + +```markdown +Reject unsupported activity executors when creating a worker, instead of failing during activity execution. +Preserve cancellation details when reporting activity failures. +``` + +Entries can include inline Markdown and documentation links. Do not edit +`CHANGELOG.md` for pending changes: it contains completed releases only. Maintainers +can apply `skip-changelog` to PRs that need no release note. + +`poe update-core` imports Core changelog entries into category fragments when +updating the submodule. See [Updating SDK Core](../CONTRIBUTING.md#updating-sdk-core) +for contributor instructions. + +## Preparing a release + +Release tooling requires Rust/Cargo and the checked-in sdk-rust submodule: + +```bash +git submodule update --init +python scripts/prepare_release.py 1.35.0 --date 2026-10-02 +``` + +Run preparation from a clean worktree. The script creates a release branch from +`origin/main`, bumps Python versions and refreshes `uv.lock`, then tells the +shared tool to write the dated changelog and consume its fragments. It commits +the resulting version, lockfile, changelog, and fragment-deletion changes. It pushes the branch and opens a PR with the `skip-changelog` label. +Review the assembled notes before merging the release PR. + +Preparation consumes both language and imported Core fragments. Publishing calls +the shared `release-notes` command to read that completed release and append Core +commit links under `### SDK Core Commits`. Core changelog entries are not collected +again during publishing. Both publishing jobs check out the pinned Core tool; +the commit range comes from the previous release tag and the current release's pin. + +Assembly creates a dated section at the top of the changelog, groups notes in the +category order above, and sorts filenames within each category. Empty categories +are omitted. Each nonempty line becomes one list item, in the order it appears +in the fragment. Breaking changes use `### :boom: Breaking Changes`. Older releases +are preserved. Empty releases are allowed; duplicate versions are rejected. +Fragments are retained if validation or lockfile +refresh fails. A changelog validation failure leaves the version and lockfile +updates in the local worktree; inspect or restore those changes before retrying. +File-system errors can leave partial changelog preparation as well; preparation +stops without committing so those changes can be inspected. + +Fragments merged after preparation remain pending for the next release. To +include them in the current release, update the release PR and regenerate its +notes from the intended fragment set before publishing. + +The shared CLI lives in sdk-rust's `changelog-release-notes` crate. To validate +pending notes without making changes: + +```bash +cargo run --manifest-path temporalio/bridge/sdk-core/crates/changelog-release-notes/Cargo.toml \ + --bin changelog-tool -- check --repo "$PWD" +``` + +See that crate's README for the reusable CLI. SDK-specific version and lockfile +updates happen before its `prepare` command; no hook or release-plan exchange is +required. diff --git a/changelog/added/wandering-namespace-otter.md b/changelog/added/wandering-namespace-otter.md new file mode 100644 index 000000000..1bed3ea13 --- /dev/null +++ b/changelog/added/wandering-namespace-otter.md @@ -0,0 +1 @@ +Experimental: external storage store and select contexts now have an optional `namespace` holding the namespace of the client or worker performing the operation. diff --git a/changelog/changed/jaunty-namespace-heron.md b/changelog/changed/jaunty-namespace-heron.md new file mode 100644 index 000000000..123c35fa6 --- /dev/null +++ b/changelog/changed/jaunty-namespace-heron.md @@ -0,0 +1 @@ +Experimental: the S3 and GCS storage drivers now write payloads stored without a target under `v0/ns/{namespace}/d/sha256/...`, using the namespace of the storing client or worker (`null` when it is unknown), instead of `v0/d/sha256/...`. Existing objects remain retrievable. diff --git a/changelog/fixed/fickle-passthrough-ferret.md b/changelog/fixed/fickle-passthrough-ferret.md new file mode 100644 index 000000000..a935fb487 --- /dev/null +++ b/changelog/fixed/fickle-passthrough-ferret.md @@ -0,0 +1 @@ +Fix `workflow.unsafe.imports_passed_through()` reloading a submodule in the sandbox when it is imported with `from package import module` from a workflow in the same package. diff --git a/pyproject.toml b/pyproject.toml index d05d2f8c6..6c41cbba5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,42 +1,37 @@ [project] name = "temporalio" -version = "1.32.0" +version = "1.36.1" description = "Temporal.io Python SDK" authors = [{ name = "Temporal Technologies Inc", email = "sdk@temporal.io" }] -requires-python = ">=3.10" +requires-python = ">=3.11" readme = "README.md" license = "MIT" license-files = ["LICENSE"] keywords = ["temporal", "workflow"] dependencies = [ - "nexus-rpc==1.4.0", - "protobuf>=3.20,<8.0.0", - "python-dateutil>=2.8.2,<3 ; python_version < '3.11'", - "types-protobuf>=3.20,<8.0.0", + "nexus-rpc==1.5.0", + "protobuf>=4.21.12,<8.0.0", + "types-protobuf>=4.24,<8.0.0", "typing-extensions>=4.2.0,<5", ] classifiers = [ "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: 3.15", ] [project.optional-dependencies] -grpc = ["grpcio>=1.48.2,<2"] +grpc = ["grpcio>=1.49.1,<2"] opentelemetry = ["opentelemetry-api>=1.26,<2", "opentelemetry-sdk>=1.26,<2"] pydantic = ["pydantic>=2.0.0,<3"] -openai-agents = ["openai-agents>=0.19.2,<0.20", "mcp>=1.9.4, <2"] -google-adk = ["google-adk>=2.2.0,<3", "mcp>=1.24,<2"] -langgraph = ["langgraph>=1.1.0"] -langsmith = ["langsmith>=0.7.34,<0.9"] -deepagents = [ - "deepagents>=0.6.12,<0.7; python_version >= '3.11'", - "langchain>=1.3.11,<2; python_version >= '3.11'", - "langchain-core>=1.4.8,<2; python_version >= '3.11'", -] +openai-agents = ["temporalio-openai-agents>=1.0.0"] +google-adk = ["temporalio-google-adk[mcp]>=0.0.1"] +langgraph = ["temporalio-langgraph>=0.1.0"] +langsmith = ["temporalio-langsmith>=0.1.1"] +deepagents = ["temporalio-deepagents>=0.0.1"] lambda-worker-otel = [ "opentelemetry-api>=1.26,<2", "opentelemetry-sdk>=1.26,<2", @@ -44,9 +39,18 @@ lambda-worker-otel = [ "opentelemetry-semantic-conventions>=0.40b0,<1", "opentelemetry-sdk-extension-aws>=2.0.0,<3", ] +cloud-run-worker-otel = [ + "opentelemetry-api>=1.26,<2", + "opentelemetry-sdk>=1.26,<2", + "opentelemetry-exporter-otlp-proto-grpc>=1.11.1,<2", + # Keep dependency upgrades from selecting an older OTLP exporter solely + # because its protobuf constraint permits version 7. + "protobuf<7", +] aioboto3 = ["aioboto3>=10.4.0", "types-aioboto3[s3]>=10.4.0"] -google-genai = ["google-genai>=2.10.0,<3.0.0"] -strands-agents = ["strands-agents>=1.39.0"] +gcloud-aio-storage = ["gcloud-aio-storage>=9.6.4,<10"] +google-genai = ["temporalio-google-genai[mcp]>=0.1.0"] +strands-agents = ["temporalio-strands-agents>=0.1.0"] [project.urls] Homepage = "https://github.com/temporalio/sdk-python" @@ -59,47 +63,33 @@ dev = [ "basedpyright==1.34.0", "cibuildwheel>=2.22.0,<3", "cryptography>=46", - "grpcio-tools>=1.48.2,<2", - "mypy==1.18.2", - "mypy-protobuf>=3.3.0,<4", + "mypy==2.4.0", "psutil>=5.9.3,<6", "pydocstyle>=6.3.0,<7", "pydoctor>=25.10.1,<26", - "pyright==1.1.403", - "pytest~=9.0", + "pyright==1.1.414", + # pytest-asyncio 0.21 relies on pytest internals removed in 9.2. + "pytest>=9.0,<9.2", "pytest-asyncio>=0.21,<0.22", "pytest-timeout~=2.2", "ruff>=0.15.12,<0.16", "toml>=0.10.2,<0.11", + "tomlkit>=0.13,<0.14", "twine>=4.0.1,<5", "maturin>=1.8.2", - "openinference-instrumentation-openai-agents>=0.1.0", + "temporalio-openai-agents>=1.0.0", "pytest-cov>=6.1.1", "httpx>=0.28.1", "pytest-pretty>=1.3.0", - "openai-agents>=0.19.2,<0.20; python_version >= '3.14'", - "openai-agents[litellm]>=0.19.2,<0.20; python_version < '3.14'", - "litellm>=1.83.0", - "openinference-instrumentation-google-adk>=0.1.11", "googleapis-common-protos>=1.75.0,<2", "pytest-rerunfailures>=16.1", "pytest-xdist>=3.6,<4", "moto[s3,server]>=5", - "langgraph>=1.1.0", - "langsmith>=0.7.34,<0.9", - "deepagents>=0.6.12,<0.7; python_version >= '3.11'", - "langchain>=1.3.11,<2; python_version >= '3.11'", - "langchain-core>=1.4.8,<2; python_version >= '3.11'", - "langchain-anthropic>=1.4.7; python_version >= '3.11'", "setuptools<82", "opentelemetry-exporter-otlp-proto-grpc>=1.11.1,<2", "opentelemetry-semantic-conventions>=0.40b0,<1", "opentelemetry-sdk-extension-aws>=2.0.0,<3", "pytest-flakefinder>=1.1.0", - "async-timeout>=4.0,<6; python_version < '3.11'", - "strands-agents>=1.39.0", - "strands-agents-tools>=0.5.2", - "mcp>=1.9.4,<2", ] [tool.poe.tasks] @@ -116,14 +106,7 @@ format = [ gen-docs = "uv run scripts/gen_docs.py" gen-nexus-system-api = "uv run scripts/gen_nexus_system_api.py" gen-protos = [ - { cmd = "uv run scripts/gen_protos.py" }, - { ref = "gen-nexus-system-api" }, - { cmd = "uv run scripts/gen_payload_visitor.py" }, - { cmd = "uv run scripts/gen_bridge_client.py" }, - { ref = "format" }, -] -gen-protos-docker = [ - { cmd = "uv run scripts/gen_protos_docker.py" }, + { cmd = "uv run --locked scripts/gen_protos.py" }, { ref = "gen-nexus-system-api" }, { cmd = "uv run scripts/gen_payload_visitor.py" }, { cmd = "uv run scripts/gen_bridge_client.py" }, @@ -142,10 +125,12 @@ lint-docs = "uv run pydocstyle --ignore-decorators=overload" lint-types = [ { cmd = "uv run pyright" }, { cmd = "uv run mypy --namespace-packages --check-untyped-defs ." }, - { cmd = "uv run basedpyright" }, + { cmd = "uv run basedpyright --project basedpyrightconfig.json" }, ] run-bench = "uv run python scripts/run_bench.py" test = "uv run pytest -n auto --dist=worksteal" +update-core = { cmd = "uv run python scripts/update_core.py", help = "Update Core to origin/main (or --latest-tag), import changelog fragments, refresh bridge dependencies, and generate protos" } +prepare-release = { cmd = "uv run python scripts/prepare_release.py --update-core", help = "Update Core and prepare a release PR" } [tool.pytest.ini_options] @@ -166,7 +151,7 @@ filterwarnings = [ [tool.cibuildwheel] before-all = "pip install protoc-wheel-0" -build = "cp310-win_amd64 cp310-manylinux_x86_64 cp310-manylinux_aarch64 cp310-musllinux_x86_64 cp310-musllinux_aarch64 cp310-macosx_x86_64 cp310-macosx_arm64" +build = "cp311-win_amd64 cp311-manylinux_x86_64 cp311-manylinux_aarch64 cp311-musllinux_x86_64 cp311-musllinux_aarch64 cp311-macosx_x86_64 cp311-macosx_arm64" build-verbosity = 1 [tool.cibuildwheel.macos] @@ -187,12 +172,17 @@ exclude = [ # Ignore generated code 'temporalio/api', 'temporalio/bridge/proto', + 'temporalio/nexus/system/workflow_service', ] +[[tool.mypy.overrides]] +module = "temporalio.nexus.system.workflow_service.*" +ignore_errors = true + [tool.pydocstyle] convention = "google" # https://github.com/PyCQA/pydocstyle/issues/363#issuecomment-625563088 -match_dir = "^(?!(docs|scripts|tests|api|proto|system|\\.)).*" +match_dir = "^(?!(docs|scripts|tests|api|proto|system|_support|notifications|\\.)).*" add_ignore = [ # We like to wrap at a certain number of chars, even long summary sentences. # https://github.com/PyCQA/pydocstyle/issues/184 @@ -233,17 +223,12 @@ warnings-as-errors = true [tool.pyright] enableTypeIgnoreComments = true -reportAny = "none" reportCallInDefaultInitializer = "none" -reportExplicitAny = "none" -reportIgnoreCommentWithoutRule = "none" -reportImplicitAbstractClass = "none" reportImplicitOverride = "none" reportImplicitStringConcatenation = "none" reportImportCycles = "none" reportMissingTypeArgument = "none" reportPrivateUsage = "none" -reportUnannotatedClassAttribute = "none" reportUnknownArgumentType = "none" reportUnknownMemberType = "none" reportUnknownParameterType = "none" @@ -262,7 +247,7 @@ exclude = [ ] [tool.ruff] -target-version = "py310" +target-version = "py311" [build-system] requires = ["maturin>=1.0,<2.0"] @@ -279,3 +264,5 @@ exclude = ["temporalio/bridge/target/**/*", "temporalio/bridge/sdk-core/.git"] # Prevent uv commands from building the package by default package = false exclude-newer = "2 weeks" +# Nexus and the SDK compatibility extras need newly published releases. +exclude-newer-package = { nexus-rpc = false, temporalio-deepagents = false, temporalio-google-adk = false, temporalio-google-genai = false, temporalio-langgraph = false, temporalio-langsmith = false, temporalio-strands-agents = false } diff --git a/scripts/_proto/Dockerfile b/scripts/_proto/Dockerfile deleted file mode 100644 index 0bbe18bb3..000000000 --- a/scripts/_proto/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM python:3.10 - -RUN curl -LsSf https://astral.sh/uv/install.sh | sh -ENV PATH="$PATH:/root/.local/bin" -RUN uv tool install poethepoet -VOLUME ["/api_new", "/bridge_new"] - -COPY ./ ./ - -RUN mkdir -p ./temporalio/api -RUN uv remove google-adk --optional google-adk -RUN uv add --dev "googleapis-common-protos==1.70.0" -RUN uv add "protobuf<4" -RUN uv sync --all-extras -RUN uv run scripts/gen_protos.py - -CMD ["sh", "-c", "cp -r ./temporalio/api/* /api_new && cp -r ./temporalio/bridge/proto/* /bridge_new"] diff --git a/scripts/_proto/Dockerfile.dockerignore b/scripts/_proto/Dockerfile.dockerignore deleted file mode 100644 index 00714526a..000000000 --- a/scripts/_proto/Dockerfile.dockerignore +++ /dev/null @@ -1,13 +0,0 @@ -.git/ -.idea/ -.mypy_cache/ -.pytest_cache/ -.ruff_cache/ -.venv/ -build/ -dist/ -temporalio/api/ -temporalio/bridge/**/target/ -temporalio/bridge/**/*.so -Dockerfile -.python-version diff --git a/scripts/changelog.py b/scripts/changelog.py new file mode 100644 index 000000000..412acf473 --- /dev/null +++ b/scripts/changelog.py @@ -0,0 +1,54 @@ +"""Invoke the shared, pinned sdk-rust changelog tooling.""" + +from __future__ import annotations + +import datetime +import pathlib +import subprocess +from collections.abc import Sequence + + +def run_tool(repo_root: pathlib.Path, args: Sequence[str]) -> str: + """Run the pinned tool, retaining diagnostics on failure.""" + core = repo_root / "temporalio/bridge/sdk-core" + if not (core / ".git").exists(): + raise RuntimeError("Initialize sdk-rust with 'git submodule update --init'") + try: + result = subprocess.run( + [ + "cargo", + "run", + "--quiet", + "--manifest-path", + str(core / "crates/changelog-release-notes/Cargo.toml"), + "--bin", + "changelog-tool", + "--", + *args, + "--repo", + str(repo_root.resolve()), + ], + cwd=core, + check=True, + capture_output=True, + text=True, + ) + except subprocess.CalledProcessError as err: + raise RuntimeError(f"Shared changelog tool failed:\n{err.stderr}") from err + return result.stdout + + +def prepare_changelog( + repo_root: pathlib.Path, version: str, release_date: datetime.date +) -> None: + """Write the dated changelog and consume fragments using the shared tool.""" + run_tool( + repo_root, + [ + "prepare", + "--version", + version, + "--date", + release_date.isoformat(), + ], + ) diff --git a/scripts/gen_docs.py b/scripts/gen_docs.py index eb6849986..c00e2b468 100644 --- a/scripts/gen_docs.py +++ b/scripts/gen_docs.py @@ -1,14 +1,48 @@ +import ast import shutil -import subprocess from pathlib import Path +from pydoctor import driver, model + base_dir = Path(__file__).parent.parent + +class ProtobufSystem(model.System): + """Expose dynamic protobuf types as names without documenting their internals. + + Pydoctor discovers .py files, not adjacent .pyi stubs. The generated .py + files create types through runtime builder calls that its static analysis + cannot resolve. Read public top-level class names from the stubs and register + them as attributes so links resolve without generating full class pages. + """ + + def addModule(self, path: Path, parent: model.Package | None) -> None: + super().addModule(path, parent) + stub = path.with_suffix(".pyi") + if path.name.endswith("_pb2.py") and stub.is_file(): + name = f"{parent.fullName()}.{path.stem}" if parent else path.stem + module = self.allobjects[name] + assert isinstance(module, model.Module) + for node in ast.parse(stub.read_text(encoding="utf-8")).body: + if isinstance(node, ast.ClassDef) and not node.name.startswith("_"): + attribute = self.Attribute(self, node.name, module, stub) + attribute.kind = model.DocumentableKind.VARIABLE + attribute.parentMod = module + attribute.setLineNumber(node.lineno) + # The declaration is in the stub, not the runtime module. + if source_href := self._formatSourceHref(stub): + attribute.source_href = self.options.htmlsourcetemplate.format( + mod_source_href=source_href, lineno=str(node.lineno) + ) + self.addObject(attribute) + + if __name__ == "__main__": print("Generating documentation...") - # Run pydoctor - subprocess.check_call(["pydoctor", "--quiet"]) + result = driver.main(["--quiet", "--system-class=__main__.ProtobufSystem"]) + if result: + raise SystemExit(result) # Copy favicon shutil.copyfile( diff --git a/scripts/gen_nexus_system_api.py b/scripts/gen_nexus_system_api.py index 82f40a8f0..3b16ce1bb 100644 --- a/scripts/gen_nexus_system_api.py +++ b/scripts/gen_nexus_system_api.py @@ -1,11 +1,10 @@ +import ast import os import shutil import subprocess import sys import tempfile -from importlib.util import module_from_spec, spec_from_file_location from pathlib import Path -from typing import cast import gen_protos @@ -22,27 +21,35 @@ / "api_upstream" / "nexus" ) -wit_path = wit_input_dir / "workflow-service.wit" wit_deps_dir = wit_input_dir / "deps" -python_support_path = base_dir / "scripts" / "nex_gen_support.py" -output_dir = base_dir / "temporalio" / "nexus" / "system" / "workflow_service" +workflow_output_dir = base_dir / "temporalio" / "nexus" / "system" / "workflow_service" +notification_output_dir = base_dir / "temporalio" / "nexus" / "notifications" workflow_init_path = base_dir / "temporalio" / "workflow" / "__init__.py" -workflowservice_request_response_proto = ( +NEX_GEN_VERSION = "0.2.8" +proto_files = [ gen_protos.api_proto_dir / "temporal" / "api" / "workflowservice" / "v1" - / "request_response.proto" -) -NEX_GEN_VERSION = "0.2.2" + / "request_response.proto", + gen_protos.api_proto_dir + / "temporal" + / "api" + / "notificationservice" + / "v1" + / "request_response.proto", +] def nex_gen_command() -> list[str]: if bin_path := os.environ.get("NEX_GEN_BIN"): return [bin_path] - - if shutil.which("nexgen") is None: + if ( + shutil.which("nexgen") is None + or subprocess.check_output(["nexgen", "--version"], text=True).strip() + != f"nexgen {NEX_GEN_VERSION}" + ): subprocess.check_call( [ "cargo", @@ -62,30 +69,70 @@ def nex_gen_command() -> list[str]: def build_descriptor_set(descriptor_path: Path) -> None: subprocess.check_call( [ - sys.executable, - "-mgrpc_tools.protoc", + "protoc", f"--proto_path={gen_protos.api_proto_dir}", f"--proto_path={gen_protos.proto_dir}", "--include_imports", f"--descriptor_set_out={descriptor_path}", - str(workflowservice_request_response_proto), + *map(str, proto_files), ] ) -def generate_workflow_exports() -> None: - spec = spec_from_file_location( - "temporalio_nexus_system_workflow_service_exports", - output_dir / "__init__.py", - submodule_search_locations=[str(output_dir)], +def generate_package( + command: list[str], + wit_name: str, + output_dir: Path, + descriptor_path: Path, + *, + native_api: bool, +) -> None: + args = [*command, "python", str(wit_input_dir / wit_name), str(wit_deps_dir)] + if native_api: + args.append("--native-api") + subprocess.check_call( + [ + *args, + "--system-nexus", + "--support-package", + "temporalio.nexus.system._support", + "--descriptors", + str(descriptor_path), + "--output", + str(output_dir), + ] ) - if spec is None or spec.loader is None: - raise RuntimeError(f"Cannot load generated workflow service from {output_dir}") - module = module_from_spec(spec) - sys.modules[spec.name] = module - spec.loader.exec_module(module) - exports = cast(list[str], module.__all__) + +def generated_exports(init_path: Path) -> list[str]: + tree = ast.parse(init_path.read_text()) + for statement in tree.body: + if not isinstance(statement, ast.Assign) or not any( + isinstance(target, ast.Name) and target.id == "__all__" + for target in statement.targets + ): + continue + value = ast.literal_eval(statement.value) + if not isinstance(value, list) or not all( + isinstance(item, str) for item in value + ): + raise RuntimeError( + f"generated package {init_path} __all__ must be a list of strings" + ) + return value + raise RuntimeError(f"generated package {init_path} does not define __all__") + + +def replace_marker_block( + content: str, begin: str, end: str, replacement: list[str] +) -> str: + start = content.index(begin) + finish = content.index("\n", content.index(end, start)) + 1 + return content[:start] + "".join(replacement) + content[finish:] + + +def generate_workflow_exports() -> None: + exports = generated_exports(workflow_output_dir / "__init__.py") import_block = [ "# BEGIN GENERATED NEXUS SYSTEM EXPORTS\n", "from temporalio.nexus.system.workflow_service import (\n", @@ -99,72 +146,57 @@ def generate_workflow_exports() -> None: " # END GENERATED NEXUS SYSTEM __ALL__\n", ] content = workflow_init_path.read_text() - start = content.index("# BEGIN GENERATED NEXUS SYSTEM EXPORTS") - end = content.index("# END GENERATED NEXUS SYSTEM EXPORTS", start) - end = content.index("\n", end) + 1 - content = content[:start] + "".join(import_block) + content[end:] - start = content.index(" # BEGIN GENERATED NEXUS SYSTEM __ALL__") - end = content.index(" # END GENERATED NEXUS SYSTEM __ALL__", start) - end = content.index("\n", end) + 1 - workflow_init_path.write_text(content[:start] + "".join(all_block) + content[end:]) + content = replace_marker_block( + content, import_block[0].strip(), import_block[-1].strip(), import_block + ) + workflow_init_path.write_text( + replace_marker_block( + content, + " # BEGIN GENERATED NEXUS SYSTEM __ALL__", + " # END GENERATED NEXUS SYSTEM __ALL__", + all_block, + ) + ) def generate_nexus_system_api() -> None: - if not wit_path.exists(): - raise RuntimeError(f"missing WIT source: {wit_path}") - if not wit_deps_dir.exists(): - raise RuntimeError(f"missing WIT dependency directory: {wit_deps_dir}") - if not python_support_path.exists(): - raise RuntimeError(f"missing Python support source: {python_support_path}") - + required_paths = [ + wit_input_dir / "workflow-service.wit", + wit_input_dir / "notification-service.wit", + wit_deps_dir, + *proto_files, + ] + for path in required_paths: + if not path.exists(): + raise RuntimeError(f"missing generator input: {path}") with tempfile.TemporaryDirectory(dir=base_dir) as temp_dir: descriptor_path = Path(temp_dir) / "temporal_api.bin" build_descriptor_set(descriptor_path) command = nex_gen_command() - - shutil.rmtree(output_dir, ignore_errors=True) - output_dir.parent.mkdir(parents=True, exist_ok=True) - subprocess.check_call( - [ - *command, - "python", - str(wit_path), - str(wit_deps_dir), - "--native-api", - "--support-file", - str(python_support_path), - "--descriptors", - str(descriptor_path), - "--output", - str(output_dir), - ] - ) - - (output_dir.parent / "__init__.py").touch() + for wit_name, output_dir, native_api in ( + ("workflow-service.wit", workflow_output_dir, True), + ("notification-service.wit", notification_output_dir, False), + ): + shutil.rmtree(output_dir, ignore_errors=True) + output_dir.parent.mkdir(parents=True, exist_ok=True) + generate_package( + command, + wit_name, + output_dir, + descriptor_path, + native_api=native_api, + ) + workflow_output_dir.parent.joinpath("__init__.py").touch() generate_workflow_exports() + format_paths = [ + str(workflow_output_dir), + str(notification_output_dir), + str(workflow_init_path), + ] subprocess.check_call( - [ - sys.executable, - "-m", - "ruff", - "check", - "--select", - "I", - "--fix", - str(output_dir), - str(workflow_init_path), - ] - ) - subprocess.check_call( - [ - sys.executable, - "-m", - "ruff", - "format", - str(output_dir), - str(workflow_init_path), - ] + [sys.executable, "-m", "ruff", "check", "--select", "I", "--fix", *format_paths] ) + subprocess.check_call([sys.executable, "-m", "ruff", "format", *format_paths]) if __name__ == "__main__": diff --git a/scripts/gen_payload_visitor.py b/scripts/gen_payload_visitor.py index 7fab85dcd..ba5ddc112 100644 --- a/scripts/gen_payload_visitor.py +++ b/scripts/gen_payload_visitor.py @@ -12,6 +12,7 @@ sys.path.insert(0, str(base_dir)) from temporalio.api.common.v1.message_pb2 import Payload, Payloads, SearchAttributes +from temporalio.api.notificationservice.v1 import OnCompleteRequest, OnCompleteResponse from temporalio.bridge.proto.nexus import NexusTaskCompletion from temporalio.bridge.proto.workflow_activation.workflow_activation_pb2 import ( WorkflowActivation, @@ -440,11 +441,14 @@ def write_bridge_visitors() -> None: out_path = base_dir / "temporalio" / "bridge" / "_visitor.py" # Build root descriptors: WorkflowActivation, WorkflowActivationCompletion, - # NexusTaskCompletion, and the system Nexus operation roots. + # NexusTaskCompletion, the system Nexus operation roots, and the notification + # service messages delivered to Nexus handler callbacks. roots: list[Descriptor] = [ WorkflowActivation.DESCRIPTOR, WorkflowActivationCompletion.DESCRIPTOR, NexusTaskCompletion.DESCRIPTOR, + OnCompleteRequest.DESCRIPTOR, + OnCompleteResponse.DESCRIPTOR, ] + discover_system_nexus_roots() code = VisitorGenerator().generate(roots) diff --git a/scripts/gen_protos.py b/scripts/gen_protos.py index 4b2ea0456..f33981fdc 100644 --- a/scripts/gen_protos.py +++ b/scripts/gen_protos.py @@ -1,4 +1,17 @@ +# /// script +# requires-python = "==3.11.*" +# dependencies = [ +# "grpcio-tools==1.49.1", +# "protobuf==4.25.9", +# "mypy-protobuf==3.6.0", +# "setuptools<82", +# ] +# [tool.uv] +# extra-build-dependencies = { grpcio-tools = ["setuptools<82"] } +# /// + import collections +import importlib.metadata import re import shutil import subprocess @@ -29,7 +42,11 @@ and not "google" in str(v) ] proto_paths.extend(test_proto_dir.glob("**/*.proto")) -proto_paths.extend(additional_proto_dir.glob("**/*.proto")) +proto_paths.extend( + v + for v in additional_proto_dir.glob("**/*.proto") + if ".venv" not in v.relative_to(additional_proto_dir).parts +) api_out_dir = base_dir / "temporalio" / "api" sdk_out_dir = base_dir / "temporalio" / "bridge" / "proto" @@ -50,13 +67,12 @@ partial( re.compile(r"from temporal\.sdk\.core\.").sub, r"from temporalio.bridge.proto." ), + # Pickle must use the installed module, not the upstream proto namespace. partial( - re.compile(r"'__module__' : 'temporal\.api\.").sub, - r"'__module__' : 'temporalio.api.", - ), - partial( - re.compile(r"'__module__' : 'nexusannotations\.").sub, - r"'__module__' : 'temporalio.api.dependencies.nexusannotations.", + re.compile( + r"(_builder\.BuildTopDescriptorsAndMessages\(DESCRIPTOR, )'[^']+'" + ).sub, + r"\1__name__", ), ] @@ -92,12 +108,15 @@ def fix_generated_output(base_path: Path): with p.open(encoding="utf8") as f: content = f.read() if p.suffix == ".py": - # Defs in .py, classes in .pyi imports[p.stem] += find_def_re.findall(content) + # gRPC .pyi files also declare type-only classes. + if p.stem.endswith("_grpc"): + imports[p.stem] += find_class_re.findall(content) for fix in py_fixes: content = fix(content) else: - imports[p.stem] += find_class_re.findall(content) + if not p.stem.endswith("_grpc"): + imports[p.stem] += find_class_re.findall(content) for fix in pyi_fixes: content = fix(content) with p.open("w") as f: @@ -143,33 +162,14 @@ def fix_generated_output(base_path: Path): def check_proto_toolchain_versions(): - """ - Check protobuf and grpcio versions. - - Due to issues with the Python protobuf 3.x vs protobuf 4.x libraries, we - must require that grpcio tools be on 1.48.x and protobuf be on 3.x for - generation of protos. We can't check __version__ on the module (not - present), and we can't use importlib.metadata due to its absence in 3.7, - so we just run pip and check there. - """ - proc = subprocess.run( - ["uv", "pip", "list", "--format", "freeze"], - check=True, - capture_output=True, - text=True, - ) - proto_version = "" - grpcio_tools_version = "" - for line in proc.stdout.splitlines(): - if line.startswith("protobuf"): - _, _, proto_version = line.partition("==") - elif line.startswith("grpcio-tools"): - _, _, grpcio_tools_version = line.partition("==") - assert proto_version.startswith("3."), ( - f"expected 3.x protobuf, found {proto_version}" + """Keep generated runtime requirements aligned with the package minimums.""" + proto_version = importlib.metadata.version("protobuf") + grpcio_tools_version = importlib.metadata.version("grpcio-tools") + assert proto_version.startswith("4."), ( + f"expected 4.x protobuf, found {proto_version}" ) - assert grpcio_tools_version.startswith("1.48."), ( - f"expected 1.48.x grpcio-tools, found {grpcio_tools_version}" + assert grpcio_tools_version == "1.49.1", ( + f"expected 1.49.1 grpcio-tools, found {grpcio_tools_version}" ) diff --git a/scripts/gen_protos.py.lock b/scripts/gen_protos.py.lock new file mode 100644 index 000000000..745b9b974 --- /dev/null +++ b/scripts/gen_protos.py.lock @@ -0,0 +1,120 @@ +version = 1 +revision = 3 +requires-python = "==3.11.*" + +[options] +exclude-newer = "2026-10-22T00:16:05.57603Z" +exclude-newer-span = "P2W" + +[options.exclude-newer-package] +nexus-rpc = false +temporalio-google-genai = false +temporalio-deepagents = false +temporalio-langgraph = false +temporalio-strands-agents = false +temporalio-langsmith = false +temporalio-google-adk = false + +[manifest] +requirements = [ + { name = "grpcio-tools", specifier = "==1.49.1" }, + { name = "mypy-protobuf", specifier = "==3.6.0" }, + { name = "protobuf", specifier = "==4.25.9" }, + { name = "setuptools", specifier = "<82" }, +] + +[[package]] +name = "grpcio" +version = "1.84.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/3f/4f/4435c0aae54657258d9cfcba78598f3d9e5fe4c82ff18d78558567b90faf/grpcio-1.84.0.tar.gz", hash = "sha256:19aaf172fc2edbefccce3f6e92c5150975dbe56c45744e9e87cf72ebdf85bfbe", size = 13493876, upload-time = "2026-09-14T06:59:33.291Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2d/b9/46146728b3f4a5c7e34c17d0ab724d58b5456b116e76dc77d3ef4e79b135/grpcio-1.84.0-cp311-cp311-linux_armv7l.whl", hash = "sha256:4aaeceeb7fa7d824c322d1ec3208c8495c88478a927295553235435fc49043ad", size = 6454572, upload-time = "2026-09-14T06:57:14.651Z" }, + { url = "https://files.pythonhosted.org/packages/e3/63/5d668b4102637410d700153fd12d6a798e3ff8308bd9dcbaeae93f191060/grpcio-1.84.0-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:06619ba1515e5ee69fb2a514e95dd8be05ce74cb3928d5b34f87f87c86fe3c27", size = 12359529, upload-time = "2026-09-14T06:57:17.202Z" }, + { url = "https://files.pythonhosted.org/packages/18/2a/52e29c02047a493f15a78c0502bde4d3fab7c19c7813944d367cd501811c/grpcio-1.84.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:158c1c11cfb61b4849c3caf4d52de6f5ecd376e14446feb4a90dc95a90d616f5", size = 7029927, upload-time = "2026-09-14T06:57:19.767Z" }, + { url = "https://files.pythonhosted.org/packages/0a/11/9962b313553647abb091943e0721e4a1662ecc63cdfe930abf00abcce47a/grpcio-1.84.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:a9383401d9f116f98cacd4eba6c505a6edb80ba65badfc8e8ed8ae64983bcc44", size = 7782268, upload-time = "2026-09-14T06:57:22.381Z" }, + { url = "https://files.pythonhosted.org/packages/e2/b7/14a9413cb7d4b2e782b4f79c81a918610caedf55138ab5916f5fdd4b002f/grpcio-1.84.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bd8ea8eb3817b226057cc1c0e7ec4b378dcda52043b972b6ff12b1152178967d", size = 7187959, upload-time = "2026-09-14T06:57:24.686Z" }, + { url = "https://files.pythonhosted.org/packages/ee/3b/6cc8e6aed8f23be40f52af341e5d4595ec3ec8d7572271a692b5c1212178/grpcio-1.84.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:756ea5c2da00fa65c930284892d2a9706828704ca3ba40b4c51c4834eb39fcfd", size = 7737554, upload-time = "2026-09-14T06:57:27.5Z" }, + { url = "https://files.pythonhosted.org/packages/3c/7e/6f61002a01802ca9675e1b3599c9b0f9f3cf168ded94ebacc02199309f88/grpcio-1.84.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:28d2609691da93051e998495108bbddd2a9f7a561253bae94828d81290f30c15", size = 8792681, upload-time = "2026-09-14T06:57:29.731Z" }, + { url = "https://files.pythonhosted.org/packages/eb/84/8bec1ae7e6732a9b435a394ddfdfffde46c2620ae0109823f7cce1a54455/grpcio-1.84.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:27b8b36200a9fbee6e120246f4a8a41657549107ef19fb2c819c4b2fd524f39a", size = 8145493, upload-time = "2026-09-14T06:57:32.672Z" }, + { url = "https://files.pythonhosted.org/packages/59/84/c8c7bd210d657288f18af06522f150f61e81ea14fd3c7c135beed697c5fd/grpcio-1.84.0-cp311-cp311-win32.whl", hash = "sha256:465eef3d17e59ad22a556fc0138f7c7c799df426734344daec42c797d49fda99", size = 4495596, upload-time = "2026-09-14T06:57:34.799Z" }, + { url = "https://files.pythonhosted.org/packages/da/1e/da99356b3b573af357d059753a47fba54f1ca1a9c0e4deccd0210cb7f4ba/grpcio-1.84.0-cp311-cp311-win_amd64.whl", hash = "sha256:f9a456bdbed52a01c9ab8423bdebab04a5363c78676edc55ab9b58bd13bdf9e1", size = 5259900, upload-time = "2026-09-14T06:57:37.067Z" }, +] + +[[package]] +name = "grpcio-tools" +version = "1.49.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "grpcio" }, + { name = "protobuf" }, + { name = "setuptools" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/6c/e4/3416d25aebc4477141a491fae2c9494c5e0437a706c59103a936aac7d072/grpcio-tools-1.49.1.tar.gz", hash = "sha256:84cc64e5b46bad43d5d7bd2fd772b656eba0366961187a847e908e2cb735db91", size = 2252679, upload-time = "2022-09-22T03:03:00.279Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e4/c1/ba298fe650b67c9e31a7ad88b2fe1d8d22ff2c6a9e131604054835397dfc/grpcio_tools-1.49.1-cp311-cp311-linux_armv7l.whl", hash = "sha256:9e5c13809ab2f245398e8446c4c3b399a62d591db651e46806cccf52a700452e", size = 36912892, upload-time = "2022-09-22T03:00:51.237Z" }, + { url = "https://files.pythonhosted.org/packages/9c/8b/a45a39bf7d1c4956d48179831e4da88c3f6ee14dbdcb273e575bbeb7de20/grpcio_tools-1.49.1-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:ab3d0ee9623720ee585fdf3753b3755d3144a4a8ae35bca8e3655fa2f41056be", size = 2025040, upload-time = "2022-09-22T03:00:55.219Z" }, + { url = "https://files.pythonhosted.org/packages/38/53/63174ffb57e95f32432035ae4d706963e6b5232faa1ef3563fe62aed7fe2/grpcio_tools-1.49.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ba87e3512bc91d78bf9febcfb522eadda171d2d4ddaf886066b0f01aa4929ad", size = 2513622, upload-time = "2022-09-22T03:00:57.304Z" }, + { url = "https://files.pythonhosted.org/packages/6d/7f/89dc6036b91f8cbada98b06801ac2f5db60885000feaf88f9d7cabe665b7/grpcio_tools-1.49.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:13e13b3643e7577a3ec13b79689eb4d7548890b1e104c04b9ed6557a3c3dd452", size = 2370982, upload-time = "2022-09-22T03:00:59.807Z" }, + { url = "https://files.pythonhosted.org/packages/f4/65/5d95b318063b6ff023fdd6d233e91f177afac3018fffffa35ec08bcc4178/grpcio_tools-1.49.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:324f67d9cb4b7058b6ce45352fb64c20cc1fa04c34d97ad44772cfe6a4ae0cf5", size = 2960418, upload-time = "2022-09-22T03:01:02.611Z" }, + { url = "https://files.pythonhosted.org/packages/01/98/4730bfff6bcd3163db8c3d70689e19a1a5f419152316edfc1f13ff06a5d7/grpcio_tools-1.49.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:a64bab81b220c50033f584f57978ebbea575f09c1ccee765cd5c462177988098", size = 2731915, upload-time = "2022-09-22T03:01:05.44Z" }, + { url = "https://files.pythonhosted.org/packages/e0/12/337b3f90f0eaa0b5998134c6f97bbacc89639c371f1e07e5fd2e51331316/grpcio_tools-1.49.1-cp311-cp311-win32.whl", hash = "sha256:f632d376f92f23e5931697a3acf1b38df7eb719774213d93c52e02acd2d529ac", size = 1553171, upload-time = "2022-09-22T03:01:08.287Z" }, + { url = "https://files.pythonhosted.org/packages/1a/14/9f61820a13429c3719741f0810ed4a055c363f84d528c8f957a72605ce86/grpcio_tools-1.49.1-cp311-cp311-win_amd64.whl", hash = "sha256:28ff2b978d9509474928b9c096a0cce4eaa9c8f7046136aee1545f6211ed8126", size = 1844039, upload-time = "2022-09-22T03:01:10.391Z" }, +] + +[[package]] +name = "mypy-protobuf" +version = "3.6.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "protobuf" }, + { name = "types-protobuf" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/4d/6f/282d64d66bf48ce60e38a6560753f784e0f88ab245ac2fb5e93f701a36cd/mypy-protobuf-3.6.0.tar.gz", hash = "sha256:02f242eb3409f66889f2b1a3aa58356ec4d909cdd0f93115622e9e70366eca3c", size = 24445, upload-time = "2024-04-01T20:24:42.837Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/73/d6b999782ae22f16971cc05378b3b33f6a89ede3b9619e8366aa23484bca/mypy_protobuf-3.6.0-py3-none-any.whl", hash = "sha256:56176e4d569070e7350ea620262478b49b7efceba4103d468448f1d21492fd6c", size = 16434, upload-time = "2024-04-01T20:24:40.583Z" }, +] + +[[package]] +name = "protobuf" +version = "4.25.9" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d9/8e/d08c41a8c004e1d437ef467e7c4f9c3295cd784eba48ed5d1d01f94b1dad/protobuf-4.25.9.tar.gz", hash = "sha256:b0dc7e7c68de8b1ce831dacb12fb407e838edbb8b6cc0dc3a2a6b4cbf6de9cff", size = 381040, upload-time = "2026-03-25T23:09:36.423Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a8/e9/59435bd04bdd46cb38c42a336b22f9843e8e586ff83c35a5423f8b14704e/protobuf-4.25.9-cp310-abi3-win32.whl", hash = "sha256:bde396f568b0b46fc8fbfe9f02facf25b6755b2578a3b8ac61e74b9d69499e03", size = 392879, upload-time = "2026-03-25T23:09:21.32Z" }, + { url = "https://files.pythonhosted.org/packages/f3/16/42a5c7f1001783d2b5bfcecde10127f09010f78982c86ae409122ce3ece6/protobuf-4.25.9-cp310-abi3-win_amd64.whl", hash = "sha256:3683c05154252206f7cb2d371626514b3708199d9bcf683b503dabf3a2e38e06", size = 413900, upload-time = "2026-03-25T23:09:23.589Z" }, + { url = "https://files.pythonhosted.org/packages/56/5b/0074a0a9eb01f3d1c4648ca5e81b22090c811b210b61df9018ac6d6c5cda/protobuf-4.25.9-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:9560813560e6ee72c11ca8873878bdb7ee003c96a57ebb013245fe84e2540904", size = 394826, upload-time = "2026-03-25T23:09:25.194Z" }, + { url = "https://files.pythonhosted.org/packages/54/aa/b2dba856f64c36b2a06c67be1472de98cca07a2322d0f0cbf03279a40e5b/protobuf-4.25.9-cp37-abi3-manylinux2014_aarch64.whl", hash = "sha256:999146ef02e7fa6a692477badd1528bcd7268df211852a3df2d834ba2b480791", size = 294191, upload-time = "2026-03-25T23:09:26.613Z" }, + { url = "https://files.pythonhosted.org/packages/a8/5c/53f18822017b8bda6bd8bb4e02048e911fdc79a3dafdc83ab994fe922a84/protobuf-4.25.9-cp37-abi3-manylinux2014_x86_64.whl", hash = "sha256:438c636de8fb706a0de94a12a268ef1ae8f5ba5ae655a7671fcda5968ba3c9be", size = 295178, upload-time = "2026-03-25T23:09:27.839Z" }, + { url = "https://files.pythonhosted.org/packages/16/28/d5065b212685875d3924bcdb3201cbf467cb4d58a18aa19a8dfd99ea80a9/protobuf-4.25.9-py3-none-any.whl", hash = "sha256:d49b615e7c935194ac161f0965699ac84df6112c378e05ec53da65d2e4cbb6d4", size = 156822, upload-time = "2026-03-25T23:09:34.957Z" }, +] + +[[package]] +name = "setuptools" +version = "81.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0d/1c/73e719955c59b8e424d015ab450f51c0af856ae46ea2da83eba51cc88de1/setuptools-81.0.0.tar.gz", hash = "sha256:487b53915f52501f0a79ccfd0c02c165ffe06631443a886740b91af4b7a5845a", size = 1198299, upload-time = "2026-02-06T21:10:39.601Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e1/e3/c164c88b2e5ce7b24d667b9bd83589cf4f3520d97cad01534cd3c4f55fdb/setuptools-81.0.0-py3-none-any.whl", hash = "sha256:fdd925d5c5d9f62e4b74b30d6dd7828ce236fd6ed998a08d81de62ce5a6310d6", size = 1062021, upload-time = "2026-02-06T21:10:37.175Z" }, +] + +[[package]] +name = "types-protobuf" +version = "7.35.1.20260906" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e1/6c/e3e5b3e10bc328126a39637c138f9ebfd734bf14342b9f3540039b4ab995/types_protobuf-7.35.1.20260906.tar.gz", hash = "sha256:efd1a3862d4c967dad5512ef8d56b1530ac84f182c41735b94004756518c4998", size = 69895, upload-time = "2026-09-06T06:35:28.308Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/44/4e/f63e826c68f77ef875506d72f225918800346545ee99847bc28f3394f18d/types_protobuf-7.35.1.20260906-py3-none-any.whl", hash = "sha256:5155e48569e0dabff303fdf578db96cd31ea9a4a63b18018a4ceac6b0ae17462", size = 86419, upload-time = "2026-09-06T06:35:27.247Z" }, +] + +[[package]] +name = "typing-extensions" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, +] diff --git a/scripts/gen_protos_docker.py b/scripts/gen_protos_docker.py deleted file mode 100644 index 6735bdf90..000000000 --- a/scripts/gen_protos_docker.py +++ /dev/null @@ -1,44 +0,0 @@ -import os -import subprocess - -# Build the Docker image and capture its ID -result = subprocess.run( - [ - "docker", - "build", - "-q", - "-f", - os.path.join("scripts", "_proto", "Dockerfile"), - ".", - ], - stdout=subprocess.PIPE, - text=True, - check=True, -) -image_id = result.stdout.strip() - -docker_run_command = [ - "docker", - "run", - "--rm", -] - -getuid = getattr(os, "getuid", None) -getgid = getattr(os, "getgid", None) -if callable(getuid) and callable(getgid): - docker_run_command.extend(["--user", f"{getuid()}:{getgid()}"]) - -docker_run_command.extend( - [ - "-v", - os.path.join(os.getcwd(), "temporalio", "api") + ":/api_new", - "-v", - os.path.join(os.getcwd(), "temporalio", "bridge", "proto") + ":/bridge_new", - image_id, - ] -) - -subprocess.run( - docker_run_command, - check=True, -) diff --git a/scripts/nex_gen_support.py b/scripts/nex_gen_support.py deleted file mode 100644 index fad21151e..000000000 --- a/scripts/nex_gen_support.py +++ /dev/null @@ -1,274 +0,0 @@ -import collections.abc -import typing -from datetime import timedelta - -import google.protobuf.duration_pb2 - -import temporalio.api.common.v1.message_pb2 as common_pb2 -import temporalio.api.enums.v1.workflow_pb2 as workflow_enums_pb2 -import temporalio.api.taskqueue.v1.message_pb2 as taskqueue_pb2 -import temporalio.api.workflow.v1 -import temporalio.common -import temporalio.converter -import temporalio.nexus.system - - -class SignalWithStartWorkflowModelRequest(typing.Protocol): - namespace: str - id: str - - -def retry_policy_from_proto( - proto: common_pb2.RetryPolicy, -) -> temporalio.common.RetryPolicy: - return temporalio.common.RetryPolicy.from_proto(proto) - - -def retry_policy_to_proto( - retry_policy: temporalio.common.RetryPolicy, -) -> common_pb2.RetryPolicy: - proto = common_pb2.RetryPolicy() - retry_policy.apply_to_proto(proto) - return proto - - -def workflow_function_name( - value: str | collections.abc.Callable[..., collections.abc.Awaitable[object]], -) -> str: - from temporalio.workflow import _Definition # pyright: ignore[reportPrivateUsage] - - name, _result_type = _Definition.get_name_and_result_type(value) - return name - - -def signal_function_to_proto( - value: str | collections.abc.Callable[..., typing.Any], -) -> str: - from temporalio.workflow import ( - _SignalDefinition, # pyright: ignore[reportPrivateUsage] - ) - - return _SignalDefinition.must_name_from_fn_or_str(value) # pyright: ignore[reportUnknownMemberType] - - -def workflow_type_to_proto( - workflow_type: str - | collections.abc.Callable[..., collections.abc.Awaitable[object]], -) -> common_pb2.WorkflowType: - return common_pb2.WorkflowType(name=workflow_function_name(workflow_type)) - - -def workflow_type_from_proto( - proto: common_pb2.WorkflowType, -) -> str: - return proto.name - - -def task_queue_from_proto( - proto: taskqueue_pb2.TaskQueue, -) -> str: - return proto.name - - -def task_queue_to_proto( - task_queue: str, -) -> taskqueue_pb2.TaskQueue: - return taskqueue_pb2.TaskQueue(name=task_queue) - - -def workflow_namespace() -> str: - from temporalio.workflow import info - - return info().namespace - - -def signal_with_start_workflow_serialization_context( - request: SignalWithStartWorkflowModelRequest, -) -> temporalio.converter.WorkflowSerializationContext: - return temporalio.converter.WorkflowSerializationContext( - namespace=request.namespace, - workflow_id=request.id, - ) - - -def payloads_to_proto( - values: collections.abc.Sequence[typing.Any], -) -> common_pb2.Payloads: - return ( - temporalio.nexus.system._current_user_payload_converter().to_payloads_wrapper( - values - ) - ) - - -def payloads_from_proto( - proto: common_pb2.Payloads, -) -> list[object]: - return list( - temporalio.nexus.system._current_user_payload_converter().from_payloads_wrapper( - proto - ) - ) - - -def _clone_payload(payload: common_pb2.Payload) -> common_pb2.Payload: - clone = common_pb2.Payload() - clone.CopyFrom(payload) - return clone - - -def _value_to_payload(value: object | common_pb2.Payload) -> common_pb2.Payload: - if isinstance(value, common_pb2.Payload): - return _clone_payload(value) - payloads = ( - temporalio.nexus.system._current_user_payload_converter().to_payloads_wrapper( - [value] - ) - ) - return _clone_payload(payloads.payloads[0]) - - -def _payload_to_value(payload: common_pb2.Payload) -> object: - wrapper = common_pb2.Payloads() - wrapper.payloads.add().CopyFrom(payload) - - return typing.cast( - object, - temporalio.nexus.system._current_user_payload_converter().from_payloads_wrapper( - wrapper - )[0], - ) - - -def payload_from_proto( - proto: common_pb2.Payload, -) -> object: - return _payload_to_value(proto) - - -def payload_to_proto( - payload: object, -) -> common_pb2.Payload: - return _value_to_payload(payload) - - -def memo_from_proto( - proto: common_pb2.Memo, -) -> collections.abc.Mapping[str, object]: - return {key: _payload_to_value(value) for key, value in proto.fields.items()} - - -def memo_to_proto( - memo: collections.abc.Mapping[str, object], -) -> common_pb2.Memo: - message = common_pb2.Memo() - for key, value in memo.items(): - message.fields[key].CopyFrom(_value_to_payload(value)) - return message - - -def header_from_proto( - proto: common_pb2.Header, -) -> collections.abc.Mapping[str, object]: - return {key: _payload_to_value(value) for key, value in proto.fields.items()} - - -def header_to_proto( - header: collections.abc.Mapping[str, object], -) -> common_pb2.Header: - message = common_pb2.Header() - for key, value in header.items(): - message.fields[key].CopyFrom(_value_to_payload(value)) - return message - - -def duration_from_proto(proto: google.protobuf.duration_pb2.Duration) -> timedelta: - return proto.ToTimedelta() - - -def duration_to_proto( - duration: timedelta, -) -> google.protobuf.duration_pb2.Duration: - proto = google.protobuf.duration_pb2.Duration() - proto.FromTimedelta(duration) - return proto - - -def workflow_id_reuse_policy_from_proto( - policy: workflow_enums_pb2.WorkflowIdReusePolicy.ValueType, -) -> temporalio.common.WorkflowIDReusePolicy: - return temporalio.common.WorkflowIDReusePolicy(int(policy)) - - -def workflow_id_reuse_policy_to_proto( - policy: temporalio.common.WorkflowIDReusePolicy, -) -> workflow_enums_pb2.WorkflowIdReusePolicy.ValueType: - return typing.cast(workflow_enums_pb2.WorkflowIdReusePolicy.ValueType, int(policy)) - - -def workflow_id_conflict_policy_from_proto( - policy: workflow_enums_pb2.WorkflowIdConflictPolicy.ValueType, -) -> temporalio.common.WorkflowIDConflictPolicy: - return temporalio.common.WorkflowIDConflictPolicy(int(policy)) - - -def workflow_id_conflict_policy_to_proto( - policy: temporalio.common.WorkflowIDConflictPolicy, -) -> workflow_enums_pb2.WorkflowIdConflictPolicy.ValueType: - return typing.cast( - workflow_enums_pb2.WorkflowIdConflictPolicy.ValueType, int(policy) - ) - - -def search_attributes_to_proto( - search_attributes: temporalio.common.TypedSearchAttributes, -) -> common_pb2.SearchAttributes: - proto = common_pb2.SearchAttributes() - temporalio.converter.encode_search_attributes(search_attributes, proto) - return proto - - -def search_attributes_from_proto( - proto: common_pb2.SearchAttributes, -) -> temporalio.common.TypedSearchAttributes: - return temporalio.converter.decode_typed_search_attributes(proto) - - -def priority_from_proto( - proto: common_pb2.Priority, -) -> temporalio.common.Priority: - return temporalio.common.Priority._from_proto(proto) # pyright: ignore[reportPrivateUsage] - - -def priority_to_proto( - priority: temporalio.common.Priority, -) -> common_pb2.Priority: - return priority._to_proto() # pyright: ignore[reportPrivateUsage] - - -def versioning_override_to_proto( - versioning_override: temporalio.common.VersioningOverride, -) -> temporalio.api.workflow.v1.VersioningOverride: - return versioning_override._to_proto() # pyright: ignore[reportPrivateUsage] - - -def versioning_override_from_proto( - proto: temporalio.api.workflow.v1.VersioningOverride, -) -> temporalio.common.VersioningOverride: - if proto.HasField("pinned") and proto.pinned.HasField("version"): - version = proto.pinned.version - return temporalio.common.PinnedVersioningOverride( - temporalio.common.WorkerDeploymentVersion( - deployment_name=version.deployment_name, - build_id=version.build_id, - ) - ) - if proto.pinned_version: - return temporalio.common.PinnedVersioningOverride( - temporalio.common.WorkerDeploymentVersion.from_canonical_string( - proto.pinned_version - ) - ) - if proto.auto_upgrade: - return temporalio.common.AutoUpgradeVersioningOverride() - raise ValueError("unknown versioning override proto shape") diff --git a/scripts/prepare_release.py b/scripts/prepare_release.py index 51dc34496..6edd82077 100644 --- a/scripts/prepare_release.py +++ b/scripts/prepare_release.py @@ -13,24 +13,16 @@ if __package__ is None or __package__ == "": sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) -CHANGELOG_HEADERS = ( - "Added", - "Changed", - "Deprecated", - ":boom: Breaking Changes", - "Fixed", - "Security", -) +from scripts.changelog import prepare_changelog +from scripts.update_core import update_core + VERSION_RE = re.compile(r"[0-9]+(?:\.[0-9]+)+(?:[a-zA-Z0-9_.+-]+)?") -_CHANGELOG_HEADING_RE = re.compile(r"^## \[(?P[^\]]+)\](?:\s+-\s+.*)?\s*$") -_CHANGELOG_SUBHEADING_RE = re.compile(r"^### (?P
.+?)\s*$") _RELEASE_FILES = ( "CHANGELOG.md", "pyproject.toml", "temporalio/service.py", "uv.lock", ) -_RELEASE_FILE_SET = frozenset(_RELEASE_FILES) def validate_version(version: str) -> str: @@ -48,41 +40,6 @@ def parse_date(date: str) -> datetime.date: raise ValueError(f"Invalid release date {date!r}; expected YYYY-MM-DD") from err -def finalize_changelog_release( - text: str, - *, - version: str, - release_date: datetime.date, -) -> str: - validate_version(version) - lines = text.splitlines() - - if _find_version_section(lines, version) is not None: - raise RuntimeError(f"Changelog already has a section for {version!r}") - - unreleased = _find_version_section(lines, "Unreleased") - if unreleased is None: - raise RuntimeError("Could not find changelog section for 'Unreleased'") - - heading_index, section_start, section_end = unreleased - unreleased_lines = _strip_empty_changelog_headers( - _strip_outer_blank_lines(lines[section_start:section_end]) - ) - if not unreleased_lines: - raise RuntimeError("Changelog section for 'Unreleased' is empty") - - next_lines = [ - *lines[:heading_index], - *_seeded_unreleased_lines(), - f"## [{version}] - {release_date.isoformat()}", - "", - *unreleased_lines, - "", - *lines[section_end:], - ] - return "\n".join(_collapse_blank_lines(next_lines)).rstrip() + "\n" - - def replace_project_version(text: str, version: str) -> str: return _replace_once( r'(?m)^version = "[^"]+"[^\S\r\n]*$', @@ -101,24 +58,36 @@ def replace_service_version(text: str, version: str) -> str: ) -def create_release_branch(repo_root: pathlib.Path, version: str) -> None: +def create_release_branch(repo_root: pathlib.Path, version: str) -> str: + """Rebuild the release branch and return its expected remote commit, if any.""" subprocess.run(["git", "fetch", "origin", "main"], cwd=repo_root, check=True) + branch = f"chore/release-{version}" + result = subprocess.run( + ["git", "ls-remote", "--heads", "origin", f"refs/heads/{branch}"], + cwd=repo_root, + check=True, + capture_output=True, + text=True, + ) + remote_commit = result.stdout.split()[0] if result.stdout.strip() else "" subprocess.run( - ["git", "switch", "--create", f"chore/release-{version}", "origin/main"], + ["git", "switch", "--force-create", branch, "origin/main"], cwd=repo_root, check=True, ) + subprocess.run(["git", "submodule", "update", "--init"], cwd=repo_root, check=True) + return remote_commit def changed_files(repo_root: pathlib.Path) -> set[str]: result = subprocess.run( - ["git", "status", "--porcelain"], + ["git", "status", "--porcelain", "-z", "--untracked-files=all"], cwd=repo_root, check=True, capture_output=True, text=True, ) - return {line[3:] for line in result.stdout.splitlines()} + return {entry[3:] for entry in result.stdout.split("\0") if entry} def ensure_clean_worktree(repo_root: pathlib.Path) -> None: @@ -130,8 +99,12 @@ def ensure_clean_worktree(repo_root: pathlib.Path) -> None: ) -def ensure_only_release_changes(repo_root: pathlib.Path) -> None: - unexpected_files = changed_files(repo_root) - _RELEASE_FILE_SET +def ensure_only_release_changes( + repo_root: pathlib.Path, consumed_paths: Sequence[str] = () +) -> None: + unexpected_files = ( + changed_files(repo_root) - set(_RELEASE_FILES) - set(consumed_paths) + ) if unexpected_files: raise RuntimeError( "Release preparation changed unexpected files: " @@ -139,18 +112,42 @@ def ensure_only_release_changes(repo_root: pathlib.Path) -> None: ) -def commit_release_changes(repo_root: pathlib.Path, version: str) -> None: +def commit_release_changes( + repo_root: pathlib.Path, version: str, consumed_paths: Sequence[str] = () +) -> None: + subprocess.run( + ["git", "add", "--all", "--", *_RELEASE_FILES, *consumed_paths], + cwd=repo_root, + check=True, + ) subprocess.run( - ["git", "commit", "-m", f"Prepare release {version}", "--", *_RELEASE_FILES], + [ + "git", + "commit", + "-m", + f"Prepare release {version}", + "--", + *_RELEASE_FILES, + *consumed_paths, + ], cwd=repo_root, check=True, ) -def push_release_branch(repo_root: pathlib.Path, version: str) -> None: +def push_release_branch( + repo_root: pathlib.Path, version: str, remote_commit: str = "" +) -> None: branch = f"chore/release-{version}" subprocess.run( - ["git", "push", "--set-upstream", "origin", branch], + [ + "git", + "push", + f"--force-with-lease=refs/heads/{branch}:{remote_commit}", + "--set-upstream", + "origin", + branch, + ], cwd=repo_root, check=True, ) @@ -158,6 +155,30 @@ def push_release_branch(repo_root: pathlib.Path, version: str) -> None: def create_release_pr(repo_root: pathlib.Path, version: str) -> None: branch = f"chore/release-{version}" + result = subprocess.run( + [ + "gh", + "pr", + "list", + "--base", + "main", + "--head", + branch, + "--state", + "open", + "--json", + "url", + "--jq", + ".[0].url // empty", + ], + cwd=repo_root, + check=True, + capture_output=True, + text=True, + ) + if result.stdout.strip(): + print(f"Updated existing release PR: {result.stdout.strip()}") + return subprocess.run( [ "gh", @@ -171,78 +192,14 @@ def create_release_pr(repo_root: pathlib.Path, version: str) -> None: f"Prepare release {version}", "--body", f"Prepare release {version}.", + "--label", + "skip-changelog", ], cwd=repo_root, check=True, ) -def _seeded_unreleased_lines() -> list[str]: - lines = ["## [Unreleased]", ""] - for header in CHANGELOG_HEADERS: - lines.extend([f"### {header}", ""]) - return lines - - -def _strip_empty_changelog_headers(lines: list[str]) -> list[str]: - filtered: list[str] = [] - index = 0 - while index < len(lines): - match = _CHANGELOG_SUBHEADING_RE.match(lines[index]) - if not match or match.group("header") not in CHANGELOG_HEADERS: - filtered.append(lines[index]) - index += 1 - continue - - next_index = index + 1 - while next_index < len(lines) and not lines[next_index].startswith("### "): - next_index += 1 - - content = lines[index + 1 : next_index] - if any(line.strip() for line in content): - filtered.append(lines[index]) - filtered.extend(content) - index = next_index - - return _strip_outer_blank_lines(filtered) - - -def _find_version_section( - lines: list[str], - version: str, -) -> tuple[int, int, int] | None: - for index, line in enumerate(lines): - match = _CHANGELOG_HEADING_RE.match(line) - if match and match.group("version") == version: - section_end = len(lines) - for end_index in range(index + 1, len(lines)): - if lines[end_index].startswith("## "): - section_end = end_index - break - return index, index + 1, section_end - return None - - -def _strip_outer_blank_lines(lines: list[str]) -> list[str]: - while lines and not lines[0].strip(): - lines.pop(0) - while lines and not lines[-1].strip(): - lines.pop() - return lines - - -def _collapse_blank_lines(lines: list[str]) -> list[str]: - collapsed: list[str] = [] - previous_blank = False - for line in lines: - blank = not line.strip() - if blank and previous_blank: - continue - collapsed.append(line) - previous_blank = blank - return collapsed - - def _replace_once( pattern: str, replacement: str, @@ -256,12 +213,46 @@ def _replace_once( return updated.rstrip("\n") +def prepare_release_files( + repo_root: pathlib.Path, + version: str, + release_date: datetime.date, + *, + skip_lock: bool = False, + core_changes: Sequence[str] = (), +) -> tuple[str, ...]: + """Update Python versions and lockfile before preparing the shared changelog.""" + pyproject_path = repo_root / "pyproject.toml" + service_path = repo_root / "temporalio/service.py" + pyproject_text = ( + replace_project_version(pyproject_path.read_text(encoding="utf-8"), version) + + "\n" + ) + service_text = ( + replace_service_version(service_path.read_text(encoding="utf-8"), version) + + "\n" + ) + pyproject_path.write_text(pyproject_text, encoding="utf-8") + service_path.write_text(service_text, encoding="utf-8") + if not skip_lock: + subprocess.run(["uv", "lock"], cwd=repo_root, check=True) + ensure_only_release_changes(repo_root, core_changes) + prepare_changelog(repo_root, version, release_date) + result = subprocess.run( + ["git", "ls-files", "--deleted", "-z", "--", "changelog"], + cwd=repo_root, + check=True, + capture_output=True, + text=True, + ) + return tuple(path for path in result.stdout.split("\0") if path) + + def main(argv: Sequence[str] | None = None) -> None: parser = argparse.ArgumentParser( description=( - "Bump the SDK version, roll CHANGELOG.md's Unreleased section into " - "a dated release section, seed a fresh Unreleased section, and " - "refresh uv.lock." + "Collect changelog fragments into a dated release, bump versions, " + "refresh uv.lock, and open a PR." ) ) parser.add_argument("version", help="Release version, for example 1.30.0") @@ -275,51 +266,37 @@ def main(argv: Sequence[str] | None = None) -> None: action="store_true", help="Do not run 'uv lock'. Intended only for local testing.", ) + parser.add_argument( + "--update-core", + action="store_true", + help="Update to the latest Core release and regenerate protos on the release branch.", + ) args = parser.parse_args(argv) repo_root = pathlib.Path(__file__).resolve().parents[1] version = validate_version(args.version) release_date = parse_date(args.date) ensure_clean_worktree(repo_root) - create_release_branch(repo_root, version) - changelog_path = repo_root / "CHANGELOG.md" - pyproject_path = repo_root / "pyproject.toml" - service_path = repo_root / "temporalio" / "service.py" - - changelog_text = finalize_changelog_release( - changelog_path.read_text(encoding="utf-8"), - version=version, - release_date=release_date, - ) - pyproject_text = ( - replace_project_version( - pyproject_path.read_text(encoding="utf-8"), - version, - ) - + "\n" - ) - service_text = ( - replace_service_version( - service_path.read_text(encoding="utf-8"), - version, - ) - + "\n" + remote_commit = create_release_branch(repo_root, version) + core_changes: set[str] = set() + if args.update_core: + update_core(repo_root, ["--latest-tag"]) + core_changes = changed_files(repo_root) + consumed = prepare_release_files( + repo_root, + version, + release_date, + skip_lock=args.skip_lock, + core_changes=tuple(sorted(core_changes)), ) - - changelog_path.write_text(changelog_text, encoding="utf-8") - pyproject_path.write_text(pyproject_text, encoding="utf-8") - service_path.write_text(service_text, encoding="utf-8") - - if not args.skip_lock: - subprocess.run(["uv", "lock"], cwd=repo_root, check=True) - - ensure_only_release_changes(repo_root) - commit_release_changes(repo_root, version) - push_release_branch(repo_root, version) + ensure_only_release_changes(repo_root, (*consumed, *core_changes)) + extra_paths = tuple(sorted(changed_files(repo_root) - set(_RELEASE_FILES))) + commit_release_changes(repo_root, version, extra_paths) + push_release_branch(repo_root, version, remote_commit) create_release_pr(repo_root, version) print( - f"Prepared release {version} dated {release_date.isoformat()} and opened a PR" + f"Prepared release {version} dated {release_date.isoformat()} and created or updated a PR" ) diff --git a/scripts/run_bench.py b/scripts/run_bench.py index ba5a6923e..e98a141df 100644 --- a/scripts/run_bench.py +++ b/scripts/run_bench.py @@ -14,8 +14,6 @@ from temporalio.worker import UnsandboxedWorkflowRunner, Worker from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner -assert sys.version_info >= (3, 9) - @workflow.defn class BenchWorkflow: diff --git a/scripts/update_core.py b/scripts/update_core.py new file mode 100644 index 000000000..d961cbc76 --- /dev/null +++ b/scripts/update_core.py @@ -0,0 +1,110 @@ +"""Update SDK Core, bridge dependencies, and generated protobuf bindings.""" + +from __future__ import annotations + +import argparse +import pathlib +import re +import subprocess +import sys +from collections.abc import MutableMapping, Sequence +from typing import Any, cast + +import tomlkit + +if __package__ is None or __package__ == "": + sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) + +from scripts.changelog import run_tool + + +def update_bridge_dependencies(repo_root: pathlib.Path) -> None: + """Copy Core path dependency versions and refresh the bridge lockfile.""" + bridge = repo_root / "temporalio/bridge" + core = (bridge / "sdk-core").resolve() + manifest_path = bridge / "Cargo.toml" + original = manifest_path.read_text() + manifest = tomlkit.parse(original) + dependencies = cast(MutableMapping[str, Any], manifest["dependencies"]) + for name, dependency in dependencies.items(): + if not isinstance(dependency, MutableMapping): + continue + path = dependency.get("path") + requirement = dependency.get("version") + if not isinstance(path, str): + continue + crate = (bridge / path).resolve() + if not crate.is_relative_to(core): + continue + package = cast( + MutableMapping[str, Any], + tomlkit.parse((crate / "Cargo.toml").read_text())["package"], + ) + version = cast(str, package["version"]) + if requirement != version: + dependency["version"] = version + print(f"Updated {name} requirement: {requirement} -> {version}") + updated = tomlkit.dumps(manifest) + if updated != original: + manifest_path.write_text(updated) + subprocess.run(["cargo", "update"], cwd=bridge, check=True) + + +def latest_core_tag(repo_root: pathlib.Path) -> str: + """Fetch Core tags and select the highest stable Core version.""" + core = repo_root / "temporalio/bridge/sdk-core" + if not (core / ".git").exists(): + raise RuntimeError("Initialize sdk-core with 'git submodule update --init'") + subprocess.run(["git", "fetch", "origin", "--tags"], cwd=core, check=True) + result = subprocess.run( + ["git", "tag", "--list", "core-v*"], + cwd=core, + check=True, + capture_output=True, + text=True, + ) + versions = { + tag: tuple(map(int, match.groups())) + for tag in result.stdout.splitlines() + if (match := re.fullmatch(r"core-v(\d+)\.(\d+)\.(\d+)", tag)) + } + if not versions: + raise RuntimeError("No stable core-v* release tags found in sdk-core") + return max(versions, key=versions.__getitem__) + + +def update_core(repo_root: pathlib.Path, args: Sequence[str]) -> None: + """Import Core changes, refresh bridge dependencies, and generate protos.""" + parser = argparse.ArgumentParser(add_help=False) + target = parser.add_mutually_exclusive_group() + target.add_argument("--latest-tag", action="store_true") + target.add_argument("--revision") + options, args = parser.parse_known_args(args) + if options.latest_tag: + args.extend(["--revision", latest_core_tag(repo_root)]) + elif options.revision is not None: + args.extend(["--revision", options.revision]) + print( + run_tool( + repo_root, + ["update-core", "--submodule", "temporalio/bridge/sdk-core", *args], + ), + end="", + flush=True, + ) + update_bridge_dependencies(repo_root) + subprocess.run(["poe", "gen-protos"], cwd=repo_root, check=True) + + +if __name__ == "__main__": + repo_root = pathlib.Path(__file__).resolve().parents[1] + args = sys.argv[1:] + if "--help" in args or "-h" in args: + print(__doc__) + print( + "Defaults to the fetched origin/main head. Use --latest-tag to select " + "the highest stable core-vX.Y.Z tag instead (cannot combine with --revision)." + ) + print(run_tool(repo_root, ["update-core", "--help"]), end="") + else: + update_core(repo_root, args) diff --git a/temporalio/__init__.py b/temporalio/__init__.py index 2afb165a7..301048ec4 100644 --- a/temporalio/__init__.py +++ b/temporalio/__init__.py @@ -8,6 +8,15 @@ :py:mod:`worker` to run workflows and activities. """ +from pkgutil import extend_path as _extend_path + from .service import __version__ as __sdk_version +# After Python finds this ``temporalio`` package, it does not keep searching for +# other ``temporalio`` directories, such as one containing the separately +# installed AI integration packages. Explicitly extend the search +# path so they can be found. Every package that provides ``temporalio/__init__.py`` +# must do this: https://docs.python.org/3.14/library/pkgutil.html#pkgutil.extend_path +__path__ = _extend_path(__path__, __name__) + __version__ = __sdk_version diff --git a/temporalio/activity.py b/temporalio/activity.py index 3f69bc17f..bf1b4cb73 100644 --- a/temporalio/activity.py +++ b/temporalio/activity.py @@ -141,6 +141,20 @@ class Info: activity_run_id: str | None = None """Run ID of this activity. None for workflow activities.""" + nexus_serialization_context: ( + temporalio.converter.NexusSerializationContext | None + ) = None + """Serialization context of the Nexus operation handler that started this activity, if any. + + Only set for standalone activities. The activity's result, failure and heartbeat details are + encoded with it because they are returned to the Nexus caller. To complete the activity + asynchronously, store this context with the task token and pass it to + :py:meth:`temporalio.client.AsyncActivityHandle.with_context`. + + .. warning:: + This API is experimental and unstable. + """ + @property def in_workflow(self) -> bool: """Was this activity started by a workflow?""" diff --git a/temporalio/api/activity/v1/message_pb2.py b/temporalio/api/activity/v1/message_pb2.py index 59f79a3c5..46c9ac1d0 100644 --- a/temporalio/api/activity/v1/message_pb2.py +++ b/temporalio/api/activity/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -35,6 +34,9 @@ from temporalio.api.failure.v1 import ( message_pb2 as temporal_dot_api_dot_failure_dot_v1_dot_message__pb2, ) +from temporalio.api.nexus.v1 import ( + message_pb2 as temporal_dot_api_dot_nexus_dot_v1_dot_message__pb2, +) from temporalio.api.sdk.v1 import ( user_metadata_pb2 as temporal_dot_api_dot_sdk_dot_v1_dot_user__metadata__pb2, ) @@ -43,109 +45,26 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n&temporal/api/activity/v1/message.proto\x12\x18temporal.api.activity.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a$temporal/api/enums/v1/activity.proto\x1a&temporal/api/callback/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\xc4\x01\n\x18\x41\x63tivityExecutionOutcome\x12\x32\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.PayloadsH\x00\x12\x33\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x36\n\x0bretry_state\x18\x03 \x01(\x0e\x32!.temporal.api.enums.v1.RetryStateB\x07\n\x05value"\xd7\x03\n\x0f\x41\x63tivityOptions\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_close_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x06 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x32\n\x08priority\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12.\n\x0bstart_delay\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration"\xb6\x0e\n\x15\x41\x63tivityExecutionInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12;\n\ractivity_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12>\n\x06status\x18\x04 \x01(\x0e\x32..temporal.api.enums.v1.ActivityExecutionStatus\x12>\n\trun_state\x18\x05 \x01(\x0e\x32+.temporal.api.enums.v1.PendingActivityState\x12\x12\n\ntask_queue\x18\x06 \x01(\t\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12;\n\x11heartbeat_details\x18\x0c \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x13last_heartbeat_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_started_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x0f \x01(\x05\x12\x35\n\x12\x65xecution_duration\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x31\n\rschedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x0clast_failure\x18\x14 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1c\n\x14last_worker_identity\x18\x15 \x01(\t\x12\x39\n\x16\x63urrent_retry_interval\x18\x16 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x1alast_attempt_complete_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1anext_attempt_schedule_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x17last_deployment_version\x18\x19 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x32\n\x08priority\x18\x1a \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\x1e\n\x16state_transition_count\x18\x1b \x01(\x03\x12\x18\n\x10state_size_bytes\x18\x1c \x01(\x03\x12\x43\n\x11search_attributes\x18\x1d \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x1e \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x1f \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12\x17\n\x0f\x63\x61nceled_reason\x18 \x01(\t\x12+\n\x05links\x18! \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x1d\n\x15total_heartbeat_count\x18" \x01(\x03\x12\x10\n\x08sdk_name\x18# \x01(\t\x12\x13\n\x0bsdk_version\x18$ \x01(\t\x12.\n\x0bstart_delay\x18% \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0e\x65xecution_time\x18& \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x9e\x04\n\x19\x41\x63tivityExecutionListInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12;\n\ractivity_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x31\n\rschedule_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x06status\x18\x06 \x01(\x0e\x32..temporal.api.enums.v1.ActivityExecutionStatus\x12\x43\n\x11search_attributes\x18\x07 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x12\n\ntask_queue\x18\x08 \x01(\t\x12\x1e\n\x16state_transition_count\x18\t \x01(\x03\x12\x18\n\x10state_size_bytes\x18\n \x01(\x03\x12\x35\n\x12\x65xecution_duration\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0e\x65xecution_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xff\x01\n\x0c\x43\x61llbackInfo\x12?\n\x07trigger\x18\x01 \x01(\x0b\x32..temporal.api.activity.v1.CallbackInfo.Trigger\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.callback.v1.CallbackInfo\x1a\x10\n\x0e\x41\x63tivityClosed\x1a\x66\n\x07Trigger\x12P\n\x0f\x61\x63tivity_closed\x18\x01 \x01(\x0b\x32\x35.temporal.api.activity.v1.CallbackInfo.ActivityClosedH\x00\x42\t\n\x07variantB\x93\x01\n\x1bio.temporal.api.activity.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/activity/v1;activity\xaa\x02\x1aTemporalio.Api.Activity.V1\xea\x02\x1dTemporalio::Api::Activity::V1b\x06proto3' -) - - -_ACTIVITYEXECUTIONOUTCOME = DESCRIPTOR.message_types_by_name["ActivityExecutionOutcome"] -_ACTIVITYOPTIONS = DESCRIPTOR.message_types_by_name["ActivityOptions"] -_ACTIVITYEXECUTIONINFO = DESCRIPTOR.message_types_by_name["ActivityExecutionInfo"] -_ACTIVITYEXECUTIONLISTINFO = DESCRIPTOR.message_types_by_name[ - "ActivityExecutionListInfo" -] -_CALLBACKINFO = DESCRIPTOR.message_types_by_name["CallbackInfo"] -_CALLBACKINFO_ACTIVITYCLOSED = _CALLBACKINFO.nested_types_by_name["ActivityClosed"] -_CALLBACKINFO_TRIGGER = _CALLBACKINFO.nested_types_by_name["Trigger"] -ActivityExecutionOutcome = _reflection.GeneratedProtocolMessageType( - "ActivityExecutionOutcome", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYEXECUTIONOUTCOME, - "__module__": "temporalio.api.activity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.activity.v1.ActivityExecutionOutcome) - }, -) -_sym_db.RegisterMessage(ActivityExecutionOutcome) - -ActivityOptions = _reflection.GeneratedProtocolMessageType( - "ActivityOptions", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYOPTIONS, - "__module__": "temporalio.api.activity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.activity.v1.ActivityOptions) - }, -) -_sym_db.RegisterMessage(ActivityOptions) - -ActivityExecutionInfo = _reflection.GeneratedProtocolMessageType( - "ActivityExecutionInfo", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYEXECUTIONINFO, - "__module__": "temporalio.api.activity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.activity.v1.ActivityExecutionInfo) - }, -) -_sym_db.RegisterMessage(ActivityExecutionInfo) - -ActivityExecutionListInfo = _reflection.GeneratedProtocolMessageType( - "ActivityExecutionListInfo", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYEXECUTIONLISTINFO, - "__module__": "temporalio.api.activity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.activity.v1.ActivityExecutionListInfo) - }, -) -_sym_db.RegisterMessage(ActivityExecutionListInfo) - -CallbackInfo = _reflection.GeneratedProtocolMessageType( - "CallbackInfo", - (_message.Message,), - { - "ActivityClosed": _reflection.GeneratedProtocolMessageType( - "ActivityClosed", - (_message.Message,), - { - "DESCRIPTOR": _CALLBACKINFO_ACTIVITYCLOSED, - "__module__": "temporalio.api.activity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.activity.v1.CallbackInfo.ActivityClosed) - }, - ), - "Trigger": _reflection.GeneratedProtocolMessageType( - "Trigger", - (_message.Message,), - { - "DESCRIPTOR": _CALLBACKINFO_TRIGGER, - "__module__": "temporalio.api.activity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.activity.v1.CallbackInfo.Trigger) - }, - ), - "DESCRIPTOR": _CALLBACKINFO, - "__module__": "temporalio.api.activity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.activity.v1.CallbackInfo) - }, + b'\n&temporal/api/activity/v1/message.proto\x12\x18temporal.api.activity.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a$temporal/api/enums/v1/activity.proto\x1a&temporal/api/callback/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/failure/v1/message.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\xc4\x01\n\x18\x41\x63tivityExecutionOutcome\x12\x32\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.PayloadsH\x00\x12\x33\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x36\n\x0bretry_state\x18\x03 \x01(\x0e\x32!.temporal.api.enums.v1.RetryStateB\x07\n\x05value"\xd7\x03\n\x0f\x41\x63tivityOptions\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_close_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x06 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x32\n\x08priority\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12.\n\x0bstart_delay\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration"\x9a\x11\n\x15\x41\x63tivityExecutionInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12;\n\ractivity_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12>\n\x06status\x18\x04 \x01(\x0e\x32..temporal.api.enums.v1.ActivityExecutionStatus\x12>\n\trun_state\x18\x05 \x01(\x0e\x32+.temporal.api.enums.v1.PendingActivityState\x12\x12\n\ntask_queue\x18\x06 \x01(\t\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12;\n\x11heartbeat_details\x18\x0c \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x13last_heartbeat_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_started_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x0f \x01(\x05\x12\x35\n\x12\x65xecution_duration\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x31\n\rschedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x0clast_failure\x18\x14 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1c\n\x14last_worker_identity\x18\x15 \x01(\t\x12\x39\n\x16\x63urrent_retry_interval\x18\x16 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x1alast_attempt_complete_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1anext_attempt_schedule_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x17last_deployment_version\x18\x19 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x32\n\x08priority\x18\x1a \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\x1e\n\x16state_transition_count\x18\x1b \x01(\x03\x12\x18\n\x10state_size_bytes\x18\x1c \x01(\x03\x12\x43\n\x11search_attributes\x18\x1d \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x1e \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x1f \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12\x17\n\x0f\x63\x61nceled_reason\x18 \x01(\t\x12+\n\x05links\x18! \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x1d\n\x15total_heartbeat_count\x18" \x01(\x03\x12\x10\n\x08sdk_name\x18# \x01(\t\x12\x13\n\x0bsdk_version\x18$ \x01(\t\x12.\n\x0bstart_delay\x18% \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0e\x65xecution_time\x18& \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x65\n&propagated_nexus_serialization_context\x18\' \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12 \n\x18\x65\x61ger_execution_accepted\x18( \x01(\x08\x12G\n\x14started_by_principal\x18) \x01(\x0b\x32).temporal.api.common.v1.ResolvedPrincipal\x12\x46\n\x13\x63losed_by_principal\x18* \x01(\x0b\x32).temporal.api.common.v1.ResolvedPrincipal\x12H\n\x15last_worker_principal\x18+ \x01(\x0b\x32).temporal.api.common.v1.ResolvedPrincipal"\x9e\x04\n\x19\x41\x63tivityExecutionListInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12;\n\ractivity_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x31\n\rschedule_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x06status\x18\x06 \x01(\x0e\x32..temporal.api.enums.v1.ActivityExecutionStatus\x12\x43\n\x11search_attributes\x18\x07 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x12\n\ntask_queue\x18\x08 \x01(\t\x12\x1e\n\x16state_transition_count\x18\t \x01(\x03\x12\x18\n\x10state_size_bytes\x18\n \x01(\x03\x12\x35\n\x12\x65xecution_duration\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0e\x65xecution_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xff\x01\n\x0c\x43\x61llbackInfo\x12?\n\x07trigger\x18\x01 \x01(\x0b\x32..temporal.api.activity.v1.CallbackInfo.Trigger\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.callback.v1.CallbackInfo\x1a\x10\n\x0e\x41\x63tivityClosed\x1a\x66\n\x07Trigger\x12P\n\x0f\x61\x63tivity_closed\x18\x01 \x01(\x0b\x32\x35.temporal.api.activity.v1.CallbackInfo.ActivityClosedH\x00\x42\t\n\x07variantB\x93\x01\n\x1bio.temporal.api.activity.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/activity/v1;activity\xaa\x02\x1aTemporalio.Api.Activity.V1\xea\x02\x1dTemporalio::Api::Activity::V1b\x06proto3' ) -_sym_db.RegisterMessage(CallbackInfo) -_sym_db.RegisterMessage(CallbackInfo.ActivityClosed) -_sym_db.RegisterMessage(CallbackInfo.Trigger) +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\033io.temporal.api.activity.v1B\014MessageProtoP\001Z'go.temporal.io/api/activity/v1;activity\252\002\032Temporalio.Api.Activity.V1\352\002\035Temporalio::Api::Activity::V1" - _ACTIVITYEXECUTIONOUTCOME._serialized_start = 451 - _ACTIVITYEXECUTIONOUTCOME._serialized_end = 647 - _ACTIVITYOPTIONS._serialized_start = 650 - _ACTIVITYOPTIONS._serialized_end = 1121 - _ACTIVITYEXECUTIONINFO._serialized_start = 1124 - _ACTIVITYEXECUTIONINFO._serialized_end = 2970 - _ACTIVITYEXECUTIONLISTINFO._serialized_start = 2973 - _ACTIVITYEXECUTIONLISTINFO._serialized_end = 3515 - _CALLBACKINFO._serialized_start = 3518 - _CALLBACKINFO._serialized_end = 3773 - _CALLBACKINFO_ACTIVITYCLOSED._serialized_start = 3653 - _CALLBACKINFO_ACTIVITYCLOSED._serialized_end = 3669 - _CALLBACKINFO_TRIGGER._serialized_start = 3671 - _CALLBACKINFO_TRIGGER._serialized_end = 3773 + _ACTIVITYEXECUTIONOUTCOME._serialized_start = 488 + _ACTIVITYEXECUTIONOUTCOME._serialized_end = 684 + _ACTIVITYOPTIONS._serialized_start = 687 + _ACTIVITYOPTIONS._serialized_end = 1158 + _ACTIVITYEXECUTIONINFO._serialized_start = 1161 + _ACTIVITYEXECUTIONINFO._serialized_end = 3363 + _ACTIVITYEXECUTIONLISTINFO._serialized_start = 3366 + _ACTIVITYEXECUTIONLISTINFO._serialized_end = 3908 + _CALLBACKINFO._serialized_start = 3911 + _CALLBACKINFO._serialized_end = 4166 + _CALLBACKINFO_ACTIVITYCLOSED._serialized_start = 4046 + _CALLBACKINFO_ACTIVITYCLOSED._serialized_end = 4062 + _CALLBACKINFO_TRIGGER._serialized_start = 4064 + _CALLBACKINFO_TRIGGER._serialized_end = 4166 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/activity/v1/message_pb2.pyi b/temporalio/api/activity/v1/message_pb2.pyi index 684233f95..24590aecc 100644 --- a/temporalio/api/activity/v1/message_pb2.pyi +++ b/temporalio/api/activity/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -19,16 +19,13 @@ import temporalio.api.deployment.v1.message_pb2 import temporalio.api.enums.v1.activity_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 +import temporalio.api.nexus.v1.message_pb2 import temporalio.api.sdk.v1.user_metadata_pb2 import temporalio.api.taskqueue.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ActivityExecutionOutcome(google.protobuf.message.Message): """The outcome of a completed activity execution: either a successful result or a failure.""" @@ -37,16 +34,18 @@ class ActivityExecutionOutcome(google.protobuf.message.Message): RESULT_FIELD_NUMBER: builtins.int FAILURE_FIELD_NUMBER: builtins.int RETRY_STATE_FIELD_NUMBER: builtins.int + retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType + """The retry state associated with an unsuccessful activity execution. + This field is only meaningful when `failure` is set. + """ @property def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: """The result if the activity completed successfully.""" + @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The failure if the activity completed unsuccessfully.""" - retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType - """The retry state associated with an unsuccessful activity execution. - This field is only meaningful when `failure` is set. - """ + def __init__( self, *, @@ -56,13 +55,13 @@ class ActivityExecutionOutcome(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "result", b"result", "value", b"value" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "result", @@ -74,11 +73,12 @@ class ActivityExecutionOutcome(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["value", b"value"] - ) -> typing_extensions.Literal["result", "failure"] | None: ... + self, oneof_group: typing.Literal["value", b"value"] + ) -> typing.Literal["result", "failure"] | None: ... global___ActivityExecutionOutcome = ActivityExecutionOutcome +@typing.final class ActivityOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -100,6 +100,7 @@ class ActivityOptions(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Limits time an activity task can stay in a task queue before a worker picks it up. This @@ -110,6 +111,7 @@ class ActivityOptions(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum time an activity is allowed to execute after being picked up by a worker. This @@ -119,23 +121,28 @@ class ActivityOptions(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum permitted time between successful worker heartbeats.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.""" + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata. If this message is not present, or any fields are not present, they inherit the values from the workflow. """ + @property def start_delay(self) -> google.protobuf.duration_pb2.Duration: """Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts. When updated, the time is added to the original `schedule_time`, not to the current time. If the resulting time is in the past, the task is made available for dispatch immediately. """ + def __init__( self, *, @@ -150,7 +157,7 @@ class ActivityOptions(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "heartbeat_timeout", b"heartbeat_timeout", "priority", @@ -171,7 +178,7 @@ class ActivityOptions(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "heartbeat_timeout", b"heartbeat_timeout", "priority", @@ -193,6 +200,7 @@ class ActivityOptions(google.protobuf.message.Message): global___ActivityOptions = ActivityOptions +@typing.final class ActivityExecutionInfo(google.protobuf.message.Message): """Information about a standalone activity.""" @@ -236,17 +244,46 @@ class ActivityExecutionInfo(google.protobuf.message.Message): SDK_VERSION_FIELD_NUMBER: builtins.int START_DELAY_FIELD_NUMBER: builtins.int EXECUTION_TIME_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int + EAGER_EXECUTION_ACCEPTED_FIELD_NUMBER: builtins.int + STARTED_BY_PRINCIPAL_FIELD_NUMBER: builtins.int + CLOSED_BY_PRINCIPAL_FIELD_NUMBER: builtins.int + LAST_WORKER_PRINCIPAL_FIELD_NUMBER: builtins.int activity_id: builtins.str """Unique identifier of this activity within its namespace along with run ID (below).""" run_id: builtins.str - @property - def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: - """The type of the activity, a string that maps to a registered activity on a worker.""" status: temporalio.api.enums.v1.activity_pb2.ActivityExecutionStatus.ValueType """A general status for this activity, indicates whether it is currently running or in one of the terminal statuses.""" run_state: temporalio.api.enums.v1.workflow_pb2.PendingActivityState.ValueType """More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING.""" task_queue: builtins.str + attempt: builtins.int + """The attempt this activity is currently on. Incremented each time a new attempt is scheduled.""" + last_worker_identity: builtins.str + state_transition_count: builtins.int + """Incremented each time the activity's state is mutated in persistence.""" + state_size_bytes: builtins.int + """Updated once on scheduled and once on terminal status.""" + canceled_reason: builtins.str + """Set if activity cancelation was requested.""" + total_heartbeat_count: builtins.int + """Total number of heartbeats recorded across all attempts of this activity, including retries.""" + sdk_name: builtins.str + """The name of the SDK of the worker that most recently picked up an attempt of this activity. + Overwritten on each new attempt. Empty if unknown. + """ + sdk_version: builtins.str + """The version of the SDK of the worker that most recently picked up an attempt of this activity. + Overwritten on each new attempt. Empty if unknown. + """ + eager_execution_accepted: builtins.bool + """Indicates whether eager execution was requested for this activity and accepted by the server + for its first task. + """ + @property + def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: + """The type of the activity, a string that maps to a registered activity on a worker.""" + @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Indicates how long the caller is willing to wait for an activity completion. Limits how long @@ -255,6 +292,7 @@ class ActivityExecutionInfo(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Limits time an activity task can stay in a task queue before a worker picks it up. This @@ -264,6 +302,7 @@ class ActivityExecutionInfo(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This @@ -272,45 +311,53 @@ class ActivityExecutionInfo(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum permitted time between successful worker heartbeats.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.""" + @property def heartbeat_details(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Details provided in the last recorded activity heartbeat. DescribeActivityExecution does not set this field unless include_heartbeat_details was true in the request. """ + @property def last_heartbeat_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time the last heartbeat was recorded.""" + @property def last_started_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time the last attempt was started.""" - attempt: builtins.int - """The attempt this activity is currently on. Incremented each time a new attempt is scheduled.""" + @property def execution_duration(self) -> google.protobuf.duration_pb2.Duration: """How long this activity has been running for, including all attempts and backoff between attempts.""" + @property def schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time the activity was originally scheduled via a StartActivityExecution request.""" + @property def expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time at which the activity's Schedule-to-Close timeout expires. Calculated as `schedule_time` + `start_delay` + `schedule_to_close_timeout`. """ + @property def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time when the activity transitioned to a closed state.""" + @property def last_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Failure details from the last failed attempt. DescribeActivityExecution does not set this field unless include_last_failure was true in the request. """ - last_worker_identity: builtins.str + @property def current_retry_interval(self) -> google.protobuf.duration_pb2.Duration: """Time from the last attempt failure to the next activity retry. @@ -320,14 +367,17 @@ class ActivityExecutionInfo(google.protobuf.message.Message): This interval is typically calculated from the specified retry policy, but may be modified if an activity fails with a retryable application failure specifying a retry delay. """ + @property def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the last activity attempt completed. If activity has not been completed yet, it will be null.""" + @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the next activity attempt will be scheduled. If activity is currently scheduled or started, this field will be null. """ + @property def last_deployment_version( self, @@ -335,13 +385,11 @@ class ActivityExecutionInfo(google.protobuf.message.Message): """The Worker Deployment Version this activity was dispatched to most recently. If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker. """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata.""" - state_transition_count: builtins.int - """Incremented each time the activity's state is mutated in persistence.""" - state_size_bytes: builtins.int - """Updated once on scheduled and once on terminal status.""" + @property def search_attributes( self, @@ -351,8 +399,7 @@ class ActivityExecutionInfo(google.protobuf.message.Message): @property def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: """Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.""" - canceled_reason: builtins.str - """Set if activity cancelation was requested.""" + @property def links( self, @@ -360,24 +407,49 @@ class ActivityExecutionInfo(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to related entities, such as the entity that started this activity.""" - total_heartbeat_count: builtins.int - """Total number of heartbeats recorded across all attempts of this activity, including retries.""" - sdk_name: builtins.str - """The name of the SDK of the worker that most recently picked up an attempt of this activity. - Overwritten on each new attempt. Empty if unknown. - """ - sdk_version: builtins.str - """The version of the SDK of the worker that most recently picked up an attempt of this activity. - Overwritten on each new attempt. Empty if unknown. - """ + @property def start_delay(self) -> google.protobuf.duration_pb2.Duration: """Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.""" + @property def execution_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time at which the first activity task is made available for dispatch, computed as `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set. """ + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this activity.""" + + @property + def started_by_principal( + self, + ) -> temporalio.api.common.v1.message_pb2.ResolvedPrincipal: + """Authenticated principal by which this activity execution was started. + + (-- api-linter: core::0140::prepositions=disabled + aip.dev/not-precedent: "by" identifies the authenticated actor. --) + """ + + @property + def closed_by_principal( + self, + ) -> temporalio.api.common.v1.message_pb2.ResolvedPrincipal: + """Authenticated principal by which this activity execution was closed. + + (-- api-linter: core::0140::prepositions=disabled + aip.dev/not-precedent: "by" identifies the authenticated actor. --) + """ + + @property + def last_worker_principal( + self, + ) -> temporalio.api.common.v1.message_pb2.ResolvedPrincipal: + """Authenticated principal of the worker that most recently interacted with this activity execution.""" + def __init__( self, *, @@ -425,14 +497,25 @@ class ActivityExecutionInfo(google.protobuf.message.Message): sdk_version: builtins.str = ..., start_delay: google.protobuf.duration_pb2.Duration | None = ..., execution_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., + eager_execution_accepted: builtins.bool = ..., + started_by_principal: temporalio.api.common.v1.message_pb2.ResolvedPrincipal + | None = ..., + closed_by_principal: temporalio.api.common.v1.message_pb2.ResolvedPrincipal + | None = ..., + last_worker_principal: temporalio.api.common.v1.message_pb2.ResolvedPrincipal + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_type", b"activity_type", "close_time", b"close_time", + "closed_by_principal", + b"closed_by_principal", "current_retry_interval", b"current_retry_interval", "execution_duration", @@ -457,10 +540,14 @@ class ActivityExecutionInfo(google.protobuf.message.Message): b"last_heartbeat_time", "last_started_time", b"last_started_time", + "last_worker_principal", + b"last_worker_principal", "next_attempt_schedule_time", b"next_attempt_schedule_time", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "schedule_time", @@ -475,13 +562,15 @@ class ActivityExecutionInfo(google.protobuf.message.Message): b"start_delay", "start_to_close_timeout", b"start_to_close_timeout", + "started_by_principal", + b"started_by_principal", "user_metadata", b"user_metadata", ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_type", @@ -492,8 +581,12 @@ class ActivityExecutionInfo(google.protobuf.message.Message): b"canceled_reason", "close_time", b"close_time", + "closed_by_principal", + b"closed_by_principal", "current_retry_interval", b"current_retry_interval", + "eager_execution_accepted", + b"eager_execution_accepted", "execution_duration", b"execution_duration", "execution_time", @@ -518,12 +611,16 @@ class ActivityExecutionInfo(google.protobuf.message.Message): b"last_started_time", "last_worker_identity", b"last_worker_identity", + "last_worker_principal", + b"last_worker_principal", "links", b"links", "next_attempt_schedule_time", b"next_attempt_schedule_time", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "run_id", @@ -546,6 +643,8 @@ class ActivityExecutionInfo(google.protobuf.message.Message): b"start_delay", "start_to_close_timeout", b"start_to_close_timeout", + "started_by_principal", + b"started_by_principal", "state_size_bytes", b"state_size_bytes", "state_transition_count", @@ -563,6 +662,7 @@ class ActivityExecutionInfo(google.protobuf.message.Message): global___ActivityExecutionInfo = ActivityExecutionInfo +@typing.final class ActivityExecutionListInfo(google.protobuf.message.Message): """Limited activity information returned in the list response. When adding fields here, ensure that it is also present in ActivityExecutionInfo (note that it @@ -587,40 +687,46 @@ class ActivityExecutionListInfo(google.protobuf.message.Message): """A unique identifier of this activity within its namespace along with run ID (below).""" run_id: builtins.str """The run ID of the standalone activity.""" + status: temporalio.api.enums.v1.activity_pb2.ActivityExecutionStatus.ValueType + """Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not + available in the list response. + """ + task_queue: builtins.str + """The task queue this activity was scheduled on when it was originally started, updated on activity options update.""" + state_transition_count: builtins.int + """Updated on terminal status.""" + state_size_bytes: builtins.int + """Updated once on scheduled and once on terminal status.""" @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: """The type of the activity, a string that maps to a registered activity on a worker.""" + @property def schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time the activity was originally scheduled via a StartActivityExecution request.""" + @property def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """If the activity is in a terminal status, this field represents the time the activity transitioned to that status.""" - status: temporalio.api.enums.v1.activity_pb2.ActivityExecutionStatus.ValueType - """Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not - available in the list response. - """ + @property def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: """Search attributes from the start request.""" - task_queue: builtins.str - """The task queue this activity was scheduled on when it was originally started, updated on activity options update.""" - state_transition_count: builtins.int - """Updated on terminal status.""" - state_size_bytes: builtins.int - """Updated once on scheduled and once on terminal status.""" + @property def execution_duration(self) -> google.protobuf.duration_pb2.Duration: """The difference between close time and scheduled time. This field is only populated if the activity is closed. """ + @property def execution_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time at which the first activity task is made available for dispatch, computed as `schedule_time + start_delay`. Same as `schedule_time` if `start_delay` is not set. """ + def __init__( self, *, @@ -640,7 +746,7 @@ class ActivityExecutionListInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_type", b"activity_type", "close_time", @@ -657,7 +763,7 @@ class ActivityExecutionListInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_type", @@ -687,11 +793,13 @@ class ActivityExecutionListInfo(google.protobuf.message.Message): global___ActivityExecutionListInfo = ActivityExecutionListInfo +@typing.final class CallbackInfo(google.protobuf.message.Message): """CallbackInfo contains the state of an attached activity callback.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ActivityClosed(google.protobuf.message.Message): """Trigger for when the activity is closed.""" @@ -701,6 +809,7 @@ class CallbackInfo(google.protobuf.message.Message): self, ) -> None: ... + @typing.final class Trigger(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -714,28 +823,30 @@ class CallbackInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_closed", b"activity_closed", "variant", b"variant" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_closed", b"activity_closed", "variant", b"variant" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["activity_closed"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["activity_closed"] | None: ... TRIGGER_FIELD_NUMBER: builtins.int INFO_FIELD_NUMBER: builtins.int @property def trigger(self) -> global___CallbackInfo.Trigger: """Trigger for this callback.""" + @property def info(self) -> temporalio.api.callback.v1.message_pb2.CallbackInfo: """Common callback info.""" + def __init__( self, *, @@ -743,12 +854,10 @@ class CallbackInfo(google.protobuf.message.Message): info: temporalio.api.callback.v1.message_pb2.CallbackInfo | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["info", b"info", "trigger", b"trigger"], + self, field_name: typing.Literal["info", b"info", "trigger", b"trigger"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["info", b"info", "trigger", b"trigger"], + self, field_name: typing.Literal["info", b"info", "trigger", b"trigger"] ) -> None: ... global___CallbackInfo = CallbackInfo diff --git a/temporalio/api/batch/v1/message_pb2.py b/temporalio/api/batch/v1/message_pb2.py index 292b2c182..5e83b9ef3 100644 --- a/temporalio/api/batch/v1/message_pb2.py +++ b/temporalio/api/batch/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -41,195 +40,8 @@ b'\n#temporal/api/batch/v1/message.proto\x12\x15temporal.api.batch.v1\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/activity/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a+temporal/api/enums/v1/batch_operation.proto\x1a!temporal/api/enums/v1/reset.proto\x1a#temporal/api/rules/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto"\x82\x02\n\x12\x42\x61tchOperationInfo\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x39\n\x05state\x18\x02 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0eoperation_type\x18\x05 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType"`\n\x19\x42\x61tchOperationTermination\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x02 \x01(\t"E\n!BatchOperationTerminateActivities\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t"\x99\x01\n\x14\x42\x61tchOperationSignal\x12\x0e\n\x06signal\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x10\n\x08identity\x18\x04 \x01(\t".\n\x1a\x42\x61tchOperationCancellation\x12\x10\n\x08identity\x18\x01 \x01(\t"B\n\x1e\x42\x61tchOperationCancelActivities\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t"*\n\x16\x42\x61tchOperationDeletion\x12\x10\n\x08identity\x18\x01 \x01(\t" \n\x1e\x42\x61tchOperationDeleteActivities"\xae\x02\n\x13\x42\x61tchOperationReset\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x35\n\x07options\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.ResetOptions\x12\x38\n\nreset_type\x18\x01 \x01(\x0e\x32 .temporal.api.enums.v1.ResetTypeB\x02\x18\x01\x12G\n\x12reset_reapply_type\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01\x12K\n\x15post_reset_operations\x18\x05 \x03(\x0b\x32,.temporal.api.workflow.v1.PostResetOperation"\xc9\x01\n,BatchOperationUpdateWorkflowExecutionOptions\x12\x10\n\x08identity\x18\x01 \x01(\t\x12V\n\x1aworkflow_execution_options\x18\x02 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\xc0\x01\n\x1f\x42\x61tchOperationUnpauseActivities\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x04type\x18\x02 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\x03 \x01(\x08H\x00\x12\x16\n\x0ereset_attempts\x18\x04 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x05 \x01(\x08\x12)\n\x06jitter\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\n\n\x08\x61\x63tivity"\x84\x01\n!BatchOperationTriggerWorkflowRule\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0c\n\x02id\x18\x02 \x01(\tH\x00\x12\x37\n\x04spec\x18\x03 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpecH\x00\x42\x06\n\x04rule"\xf5\x01\n\x1d\x42\x61tchOperationResetActivities\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x04type\x18\x02 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\x03 \x01(\x08H\x00\x12\x16\n\x0ereset_attempts\x18\x04 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x05 \x01(\x08\x12\x13\n\x0bkeep_paused\x18\x06 \x01(\x08\x12)\n\x06jitter\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18restore_original_options\x18\x08 \x01(\x08\x42\n\n\x08\x61\x63tivity"\xf8\x01\n#BatchOperationUpdateActivityOptions\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x04type\x18\x02 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\x03 \x01(\x08H\x00\x12\x43\n\x10\x61\x63tivity_options\x18\x04 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x18\n\x10restore_original\x18\x06 \x01(\x08\x42\n\n\x08\x61\x63tivityB\x84\x01\n\x18io.temporal.api.batch.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/batch/v1;batch\xaa\x02\x17Temporalio.Api.Batch.V1\xea\x02\x1aTemporalio::Api::Batch::V1b\x06proto3' ) - -_BATCHOPERATIONINFO = DESCRIPTOR.message_types_by_name["BatchOperationInfo"] -_BATCHOPERATIONTERMINATION = DESCRIPTOR.message_types_by_name[ - "BatchOperationTermination" -] -_BATCHOPERATIONTERMINATEACTIVITIES = DESCRIPTOR.message_types_by_name[ - "BatchOperationTerminateActivities" -] -_BATCHOPERATIONSIGNAL = DESCRIPTOR.message_types_by_name["BatchOperationSignal"] -_BATCHOPERATIONCANCELLATION = DESCRIPTOR.message_types_by_name[ - "BatchOperationCancellation" -] -_BATCHOPERATIONCANCELACTIVITIES = DESCRIPTOR.message_types_by_name[ - "BatchOperationCancelActivities" -] -_BATCHOPERATIONDELETION = DESCRIPTOR.message_types_by_name["BatchOperationDeletion"] -_BATCHOPERATIONDELETEACTIVITIES = DESCRIPTOR.message_types_by_name[ - "BatchOperationDeleteActivities" -] -_BATCHOPERATIONRESET = DESCRIPTOR.message_types_by_name["BatchOperationReset"] -_BATCHOPERATIONUPDATEWORKFLOWEXECUTIONOPTIONS = DESCRIPTOR.message_types_by_name[ - "BatchOperationUpdateWorkflowExecutionOptions" -] -_BATCHOPERATIONUNPAUSEACTIVITIES = DESCRIPTOR.message_types_by_name[ - "BatchOperationUnpauseActivities" -] -_BATCHOPERATIONTRIGGERWORKFLOWRULE = DESCRIPTOR.message_types_by_name[ - "BatchOperationTriggerWorkflowRule" -] -_BATCHOPERATIONRESETACTIVITIES = DESCRIPTOR.message_types_by_name[ - "BatchOperationResetActivities" -] -_BATCHOPERATIONUPDATEACTIVITYOPTIONS = DESCRIPTOR.message_types_by_name[ - "BatchOperationUpdateActivityOptions" -] -BatchOperationInfo = _reflection.GeneratedProtocolMessageType( - "BatchOperationInfo", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONINFO, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationInfo) - }, -) -_sym_db.RegisterMessage(BatchOperationInfo) - -BatchOperationTermination = _reflection.GeneratedProtocolMessageType( - "BatchOperationTermination", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONTERMINATION, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationTermination) - }, -) -_sym_db.RegisterMessage(BatchOperationTermination) - -BatchOperationTerminateActivities = _reflection.GeneratedProtocolMessageType( - "BatchOperationTerminateActivities", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONTERMINATEACTIVITIES, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationTerminateActivities) - }, -) -_sym_db.RegisterMessage(BatchOperationTerminateActivities) - -BatchOperationSignal = _reflection.GeneratedProtocolMessageType( - "BatchOperationSignal", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONSIGNAL, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationSignal) - }, -) -_sym_db.RegisterMessage(BatchOperationSignal) - -BatchOperationCancellation = _reflection.GeneratedProtocolMessageType( - "BatchOperationCancellation", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONCANCELLATION, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationCancellation) - }, -) -_sym_db.RegisterMessage(BatchOperationCancellation) - -BatchOperationCancelActivities = _reflection.GeneratedProtocolMessageType( - "BatchOperationCancelActivities", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONCANCELACTIVITIES, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationCancelActivities) - }, -) -_sym_db.RegisterMessage(BatchOperationCancelActivities) - -BatchOperationDeletion = _reflection.GeneratedProtocolMessageType( - "BatchOperationDeletion", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONDELETION, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationDeletion) - }, -) -_sym_db.RegisterMessage(BatchOperationDeletion) - -BatchOperationDeleteActivities = _reflection.GeneratedProtocolMessageType( - "BatchOperationDeleteActivities", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONDELETEACTIVITIES, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationDeleteActivities) - }, -) -_sym_db.RegisterMessage(BatchOperationDeleteActivities) - -BatchOperationReset = _reflection.GeneratedProtocolMessageType( - "BatchOperationReset", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONRESET, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationReset) - }, -) -_sym_db.RegisterMessage(BatchOperationReset) - -BatchOperationUpdateWorkflowExecutionOptions = _reflection.GeneratedProtocolMessageType( - "BatchOperationUpdateWorkflowExecutionOptions", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONUPDATEWORKFLOWEXECUTIONOPTIONS, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions) - }, -) -_sym_db.RegisterMessage(BatchOperationUpdateWorkflowExecutionOptions) - -BatchOperationUnpauseActivities = _reflection.GeneratedProtocolMessageType( - "BatchOperationUnpauseActivities", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONUNPAUSEACTIVITIES, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationUnpauseActivities) - }, -) -_sym_db.RegisterMessage(BatchOperationUnpauseActivities) - -BatchOperationTriggerWorkflowRule = _reflection.GeneratedProtocolMessageType( - "BatchOperationTriggerWorkflowRule", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONTRIGGERWORKFLOWRULE, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationTriggerWorkflowRule) - }, -) -_sym_db.RegisterMessage(BatchOperationTriggerWorkflowRule) - -BatchOperationResetActivities = _reflection.GeneratedProtocolMessageType( - "BatchOperationResetActivities", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONRESETACTIVITIES, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationResetActivities) - }, -) -_sym_db.RegisterMessage(BatchOperationResetActivities) - -BatchOperationUpdateActivityOptions = _reflection.GeneratedProtocolMessageType( - "BatchOperationUpdateActivityOptions", - (_message.Message,), - { - "DESCRIPTOR": _BATCHOPERATIONUPDATEACTIVITYOPTIONS, - "__module__": "temporalio.api.batch.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationUpdateActivityOptions) - }, -) -_sym_db.RegisterMessage(BatchOperationUpdateActivityOptions) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.batch.v1B\014MessageProtoP\001Z!go.temporal.io/api/batch/v1;batch\252\002\027Temporalio.Api.Batch.V1\352\002\032Temporalio::Api::Batch::V1" diff --git a/temporalio/api/batch/v1/message_pb2.pyi b/temporalio/api/batch/v1/message_pb2.pyi index 106b351ef..5a00bea1d 100644 --- a/temporalio/api/batch/v1/message_pb2.pyi +++ b/temporalio/api/batch/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -21,13 +21,9 @@ import temporalio.api.enums.v1.reset_pb2 import temporalio.api.rules.v1.message_pb2 import temporalio.api.workflow.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class BatchOperationInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -40,16 +36,18 @@ class BatchOperationInfo(google.protobuf.message.Message): """Batch job ID""" state: temporalio.api.enums.v1.batch_operation_pb2.BatchOperationState.ValueType """Batch operation state""" + operation_type: ( + temporalio.api.enums.v1.batch_operation_pb2.BatchOperationType.ValueType + ) + """Operation type""" @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Batch operation start time""" + @property def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Batch operation close time""" - operation_type: ( - temporalio.api.enums.v1.batch_operation_pb2.BatchOperationType.ValueType - ) - """Operation type""" + def __init__( self, *, @@ -61,13 +59,13 @@ class BatchOperationInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "close_time", b"close_time", "start_time", b"start_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "close_time", b"close_time", "job_id", @@ -83,6 +81,7 @@ class BatchOperationInfo(google.protobuf.message.Message): global___BatchOperationInfo = BatchOperationInfo +@typing.final class BatchOperationTermination(google.protobuf.message.Message): """BatchOperationTermination sends terminate requests to batch workflows. Keep the parameter in sync with temporalio.api.workflowservice.v1.TerminateWorkflowExecutionRequest. @@ -93,11 +92,12 @@ class BatchOperationTermination(google.protobuf.message.Message): DETAILS_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int + identity: builtins.str + """The identity of the worker/client""" @property def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized value(s) to provide to the termination event""" - identity: builtins.str - """The identity of the worker/client""" + def __init__( self, *, @@ -105,17 +105,15 @@ class BatchOperationTermination(google.protobuf.message.Message): identity: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "details", b"details", "identity", b"identity" - ], + self, field_name: typing.Literal["details", b"details", "identity", b"identity"] ) -> None: ... global___BatchOperationTermination = BatchOperationTermination +@typing.final class BatchOperationTerminateActivities(google.protobuf.message.Message): """BatchOperationTerminateActivities sends terminate requests to a batch of activities. Keep the parameter in sync with temporalio.api.workflowservice.v1.TerminateActivityExecutionRequest. @@ -138,14 +136,12 @@ class BatchOperationTerminateActivities(google.protobuf.message.Message): reason: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "identity", b"identity", "reason", b"reason" - ], + self, field_name: typing.Literal["identity", b"identity", "reason", b"reason"] ) -> None: ... global___BatchOperationTerminateActivities = BatchOperationTerminateActivities +@typing.final class BatchOperationSignal(google.protobuf.message.Message): """BatchOperationSignal sends signals to batch workflows. Keep the parameter in sync with temporalio.api.workflowservice.v1.SignalWorkflowExecutionRequest. @@ -159,16 +155,18 @@ class BatchOperationSignal(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int signal: builtins.str """The workflow author-defined name of the signal to send to the workflow""" + identity: builtins.str + """The identity of the worker/client""" @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized value(s) to provide with the signal""" + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: """Headers that are passed with the signal to the processing workflow. These can include things like auth or tracing tokens. """ - identity: builtins.str - """The identity of the worker/client""" + def __init__( self, *, @@ -178,12 +176,11 @@ class BatchOperationSignal(google.protobuf.message.Message): identity: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["header", b"header", "input", b"input"], + self, field_name: typing.Literal["header", b"header", "input", b"input"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "identity", @@ -197,6 +194,7 @@ class BatchOperationSignal(google.protobuf.message.Message): global___BatchOperationSignal = BatchOperationSignal +@typing.final class BatchOperationCancellation(google.protobuf.message.Message): """BatchOperationCancellation sends cancel requests to batch workflows. Keep the parameter in sync with temporalio.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest. @@ -214,11 +212,12 @@ class BatchOperationCancellation(google.protobuf.message.Message): identity: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["identity", b"identity"] + self, field_name: typing.Literal["identity", b"identity"] ) -> None: ... global___BatchOperationCancellation = BatchOperationCancellation +@typing.final class BatchOperationCancelActivities(google.protobuf.message.Message): """BatchOperationCancelActivities sends cancel requests to a batch of activities. Keep the parameter in sync with temporalio.api.workflowservice.v1.RequestCancelActivityExecutionRequest. @@ -241,14 +240,12 @@ class BatchOperationCancelActivities(google.protobuf.message.Message): reason: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "identity", b"identity", "reason", b"reason" - ], + self, field_name: typing.Literal["identity", b"identity", "reason", b"reason"] ) -> None: ... global___BatchOperationCancelActivities = BatchOperationCancelActivities +@typing.final class BatchOperationDeletion(google.protobuf.message.Message): """BatchOperationDeletion sends deletion requests to batch workflows. Keep the parameter in sync with temporalio.api.workflowservice.v1.DeleteWorkflowExecutionRequest. @@ -265,11 +262,12 @@ class BatchOperationDeletion(google.protobuf.message.Message): identity: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["identity", b"identity"] + self, field_name: typing.Literal["identity", b"identity"] ) -> None: ... global___BatchOperationDeletion = BatchOperationDeletion +@typing.final class BatchOperationDeleteActivities(google.protobuf.message.Message): """BatchOperationDeleteActivities sends deletion requests to a batch of activities. Keep the parameter in sync with temporalio.api.workflowservice.v1.DeleteActivityExecutionRequest. @@ -283,6 +281,7 @@ class BatchOperationDeleteActivities(google.protobuf.message.Message): global___BatchOperationDeleteActivities = BatchOperationDeleteActivities +@typing.final class BatchOperationReset(google.protobuf.message.Message): """BatchOperationReset sends reset requests to batch workflows. Keep the parameter in sync with temporalio.api.workflowservice.v1.ResetWorkflowExecutionRequest. @@ -297,13 +296,14 @@ class BatchOperationReset(google.protobuf.message.Message): POST_RESET_OPERATIONS_FIELD_NUMBER: builtins.int identity: builtins.str """The identity of the worker/client.""" - @property - def options(self) -> temporalio.api.common.v1.message_pb2.ResetOptions: - """Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.""" reset_type: temporalio.api.enums.v1.reset_pb2.ResetType.ValueType """Deprecated. Use `options`.""" reset_reapply_type: temporalio.api.enums.v1.reset_pb2.ResetReapplyType.ValueType """Deprecated. Use `options`.""" + @property + def options(self) -> temporalio.api.common.v1.message_pb2.ResetOptions: + """Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored.""" + @property def post_reset_operations( self, @@ -314,6 +314,7 @@ class BatchOperationReset(google.protobuf.message.Message): to the *new* run of the workflow execution in the order they are provided. All operations are applied to the workflow before the first new workflow task is generated """ + def __init__( self, *, @@ -327,11 +328,11 @@ class BatchOperationReset(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["options", b"options"] + self, field_name: typing.Literal["options", b"options"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "options", @@ -347,6 +348,7 @@ class BatchOperationReset(google.protobuf.message.Message): global___BatchOperationReset = BatchOperationReset +@typing.final class BatchOperationUpdateWorkflowExecutionOptions(google.protobuf.message.Message): """BatchOperationUpdateWorkflowExecutionOptions sends UpdateWorkflowExecutionOptions requests to batch workflows. Keep the parameters in sync with temporalio.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest. @@ -364,11 +366,13 @@ class BatchOperationUpdateWorkflowExecutionOptions(google.protobuf.message.Messa self, ) -> temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions: """Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.""" + @property def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: """Controls which fields from `workflow_execution_options` will be applied. To unset a field, set it to null and use the update mask to indicate that it should be mutated. """ + def __init__( self, *, @@ -379,7 +383,7 @@ class BatchOperationUpdateWorkflowExecutionOptions(google.protobuf.message.Messa ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_mask", b"update_mask", "workflow_execution_options", @@ -388,7 +392,7 @@ class BatchOperationUpdateWorkflowExecutionOptions(google.protobuf.message.Messa ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "update_mask", @@ -402,6 +406,7 @@ global___BatchOperationUpdateWorkflowExecutionOptions = ( BatchOperationUpdateWorkflowExecutionOptions ) +@typing.final class BatchOperationUnpauseActivities(google.protobuf.message.Message): """BatchOperationUnpauseActivities sends unpause requests to batch workflows.""" @@ -426,6 +431,7 @@ class BatchOperationUnpauseActivities(google.protobuf.message.Message): """If set, the activity will start at a random time within the specified jitter duration, introducing variability to the start time. """ + def __init__( self, *, @@ -438,7 +444,7 @@ class BatchOperationUnpauseActivities(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "jitter", @@ -451,7 +457,7 @@ class BatchOperationUnpauseActivities(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "identity", @@ -469,11 +475,12 @@ class BatchOperationUnpauseActivities(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["activity", b"activity"] - ) -> typing_extensions.Literal["type", "match_all"] | None: ... + self, oneof_group: typing.Literal["activity", b"activity"] + ) -> typing.Literal["type", "match_all"] | None: ... global___BatchOperationUnpauseActivities = BatchOperationUnpauseActivities +@typing.final class BatchOperationTriggerWorkflowRule(google.protobuf.message.Message): """BatchOperationTriggerWorkflowRule sends TriggerWorkflowRule requests to batch workflows.""" @@ -489,6 +496,7 @@ class BatchOperationTriggerWorkflowRule(google.protobuf.message.Message): @property def spec(self) -> temporalio.api.rules.v1.message_pb2.WorkflowRuleSpec: """Rule specification to be applied to the workflow without creating a new rule.""" + def __init__( self, *, @@ -497,23 +505,21 @@ class BatchOperationTriggerWorkflowRule(google.protobuf.message.Message): spec: temporalio.api.rules.v1.message_pb2.WorkflowRuleSpec | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "id", b"id", "rule", b"rule", "spec", b"spec" - ], + self, field_name: typing.Literal["id", b"id", "rule", b"rule", "spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "id", b"id", "identity", b"identity", "rule", b"rule", "spec", b"spec" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["rule", b"rule"] - ) -> typing_extensions.Literal["id", "spec"] | None: ... + self, oneof_group: typing.Literal["rule", b"rule"] + ) -> typing.Literal["id", "spec"] | None: ... global___BatchOperationTriggerWorkflowRule = BatchOperationTriggerWorkflowRule +@typing.final class BatchOperationResetActivities(google.protobuf.message.Message): """BatchOperationResetActivities sends activity reset requests in a batch. NOTE: keep in sync with temporalio.api.workflowservice.v1.ResetActivityRequest @@ -539,16 +545,17 @@ class BatchOperationResetActivities(google.protobuf.message.Message): """Setting this flag will also reset the heartbeat details.""" keep_paused: builtins.bool """If activity is paused, it will remain paused after reset""" - @property - def jitter(self) -> google.protobuf.duration_pb2.Duration: - """If set, the activity will start at a random time within the specified jitter - duration, introducing variability to the start time. - """ restore_original_options: builtins.bool """If set, the activity options will be restored to the defaults. Default options are then options activity was created with. They are part of the first ActivityTaskScheduled event. """ + @property + def jitter(self) -> google.protobuf.duration_pb2.Duration: + """If set, the activity will start at a random time within the specified jitter + duration, introducing variability to the start time. + """ + def __init__( self, *, @@ -563,7 +570,7 @@ class BatchOperationResetActivities(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "jitter", @@ -576,7 +583,7 @@ class BatchOperationResetActivities(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "identity", @@ -598,11 +605,12 @@ class BatchOperationResetActivities(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["activity", b"activity"] - ) -> typing_extensions.Literal["type", "match_all"] | None: ... + self, oneof_group: typing.Literal["activity", b"activity"] + ) -> typing.Literal["type", "match_all"] | None: ... global___BatchOperationResetActivities = BatchOperationResetActivities +@typing.final class BatchOperationUpdateActivityOptions(google.protobuf.message.Message): """BatchOperationUpdateActivityOptions sends an update-activity-options requests in a batch. NOTE: keep in sync with temporalio.api.workflowservice.v1.UpdateActivityRequest @@ -620,21 +628,23 @@ class BatchOperationUpdateActivityOptions(google.protobuf.message.Message): """The identity of the worker/client.""" type: builtins.str match_all: builtins.bool + restore_original: builtins.bool + """If set, the activity options will be restored to the default. + Default options are then options activity was created with. + They are part of the first ActivityTaskScheduled event. + This flag cannot be combined with any other option; if you supply + restore_original together with other options, the request will be rejected. + """ @property def activity_options( self, ) -> temporalio.api.activity.v1.message_pb2.ActivityOptions: """Update Activity options. Partial updates are accepted and controlled by update_mask.""" + @property def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: """Controls which fields from `activity_options` will be applied""" - restore_original: builtins.bool - """If set, the activity options will be restored to the default. - Default options are then options activity was created with. - They are part of the first ActivityTaskScheduled event. - This flag cannot be combined with any other option; if you supply - restore_original together with other options, the request will be rejected. - """ + def __init__( self, *, @@ -648,7 +658,7 @@ class BatchOperationUpdateActivityOptions(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "activity_options", @@ -663,7 +673,7 @@ class BatchOperationUpdateActivityOptions(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "activity_options", @@ -681,7 +691,7 @@ class BatchOperationUpdateActivityOptions(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["activity", b"activity"] - ) -> typing_extensions.Literal["type", "match_all"] | None: ... + self, oneof_group: typing.Literal["activity", b"activity"] + ) -> typing.Literal["type", "match_all"] | None: ... global___BatchOperationUpdateActivityOptions = BatchOperationUpdateActivityOptions diff --git a/temporalio/api/callback/v1/message_pb2.py b/temporalio/api/callback/v1/message_pb2.py index 5d4ccb917..03f0f9db7 100644 --- a/temporalio/api/callback/v1/message_pb2.py +++ b/temporalio/api/callback/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -27,25 +26,14 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n&temporal/api/callback/v1/message.proto\x12\x18temporal.api.callback.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a"temporal/api/enums/v1/common.proto\x1a%temporal/api/failure/v1/message.proto"\x97\x03\n\x0c\x43\x61llbackInfo\x12\x32\n\x08\x63\x61llback\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Callback\x12\x35\n\x11registration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x05state\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.CallbackState\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x06 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\x08 \x01(\tB\x93\x01\n\x1bio.temporal.api.callback.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/callback/v1;callback\xaa\x02\x1aTemporalio.Api.Callback.V1\xea\x02\x1dTemporalio::Api::Callback::V1b\x06proto3' + b'\n&temporal/api/callback/v1/message.proto\x12\x18temporal.api.callback.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a"temporal/api/enums/v1/common.proto\x1a%temporal/api/failure/v1/message.proto"\xab\x03\n\x0c\x43\x61llbackInfo\x12\x32\n\x08\x63\x61llback\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Callback\x12\x35\n\x11registration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x05state\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.CallbackState\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x06 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\x08 \x01(\t\x12\x12\n\nrequest_id\x18\t \x01(\tB\x93\x01\n\x1bio.temporal.api.callback.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/callback/v1;callback\xaa\x02\x1aTemporalio.Api.Callback.V1\xea\x02\x1dTemporalio::Api::Callback::V1b\x06proto3' ) - -_CALLBACKINFO = DESCRIPTOR.message_types_by_name["CallbackInfo"] -CallbackInfo = _reflection.GeneratedProtocolMessageType( - "CallbackInfo", - (_message.Message,), - { - "DESCRIPTOR": _CALLBACKINFO, - "__module__": "temporalio.api.callback.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.callback.v1.CallbackInfo) - }, -) -_sym_db.RegisterMessage(CallbackInfo) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\033io.temporal.api.callback.v1B\014MessageProtoP\001Z'go.temporal.io/api/callback/v1;callback\252\002\032Temporalio.Api.Callback.V1\352\002\035Temporalio::Api::Callback::V1" _CALLBACKINFO._serialized_start = 215 - _CALLBACKINFO._serialized_end = 622 + _CALLBACKINFO._serialized_end = 642 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/callback/v1/message_pb2.pyi b/temporalio/api/callback/v1/message_pb2.pyi index ea7d6444b..6b25ba15f 100644 --- a/temporalio/api/callback/v1/message_pb2.pyi +++ b/temporalio/api/callback/v1/message_pb2.pyi @@ -4,7 +4,7 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message @@ -14,13 +14,9 @@ import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.common_pb2 import temporalio.api.failure.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class CallbackInfo(google.protobuf.message.Message): """Common callback information. Specific CallbackInfo messages should embed this and may include additional fields.""" @@ -34,29 +30,39 @@ class CallbackInfo(google.protobuf.message.Message): LAST_ATTEMPT_FAILURE_FIELD_NUMBER: builtins.int NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int BLOCKED_REASON_FIELD_NUMBER: builtins.int - @property - def callback(self) -> temporalio.api.common.v1.message_pb2.Callback: - """Information on how this callback should be invoked (e.g. its URL and type).""" - @property - def registration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """The time when the callback was registered.""" + REQUEST_ID_FIELD_NUMBER: builtins.int state: temporalio.api.enums.v1.common_pb2.CallbackState.ValueType """The current state of the callback.""" attempt: builtins.int """The number of attempts made to deliver the callback. This number represents a minimum bound since the attempt is incremented after the callback request completes. """ + blocked_reason: builtins.str + """If the state is BLOCKED, blocked reason provides additional information.""" + request_id: builtins.str + """Server-generated request ID used as an idempotency token when invoking callbacks. + It has no relation to caller-side request_id sent in operations like StartNexusOperationExecutionRequest. + """ + @property + def callback(self) -> temporalio.api.common.v1.message_pb2.Callback: + """Information on how this callback should be invoked (e.g. its URL and type).""" + + @property + def registration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the callback was registered.""" + @property def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the last attempt completed.""" + @property def last_attempt_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The last attempt's failure, if any.""" + @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the next attempt is scheduled.""" - blocked_reason: builtins.str - """If the state is BLOCKED, blocked reason provides additional information.""" + def __init__( self, *, @@ -71,10 +77,11 @@ class CallbackInfo(google.protobuf.message.Message): next_attempt_schedule_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., blocked_reason: builtins.str = ..., + request_id: builtins.str = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "callback", b"callback", "last_attempt_complete_time", @@ -89,7 +96,7 @@ class CallbackInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "blocked_reason", @@ -104,6 +111,8 @@ class CallbackInfo(google.protobuf.message.Message): b"next_attempt_schedule_time", "registration_time", b"registration_time", + "request_id", + b"request_id", "state", b"state", ], diff --git a/temporalio/api/cloud/account/v1/message_pb2.py b/temporalio/api/cloud/account/v1/message_pb2.py index c31a2d3e7..da7d0429e 100644 --- a/temporalio/api/cloud/account/v1/message_pb2.py +++ b/temporalio/api/cloud/account/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -27,80 +26,8 @@ b'\n+temporal/api/cloud/account/v1/message.proto\x12\x1dtemporal.api.cloud.account.v1\x1a,temporal/api/cloud/resource/v1/message.proto\x1a(temporal/api/cloud/sink/v1/message.proto\x1a\x1fgoogle/protobuf/timestamp.proto")\n\x0bMetricsSpec\x12\x1a\n\x12\x61\x63\x63\x65pted_client_ca\x18\x02 \x01(\x0c"J\n\x0b\x41\x63\x63ountSpec\x12;\n\x07metrics\x18\x01 \x01(\x0b\x32*.temporal.api.cloud.account.v1.MetricsSpec"\x16\n\x07Metrics\x12\x0b\n\x03uri\x18\x01 \x01(\t"\xfc\x01\n\x07\x41\x63\x63ount\x12\n\n\x02id\x18\x01 \x01(\t\x12\x38\n\x04spec\x18\x02 \x01(\x0b\x32*.temporal.api.cloud.account.v1.AccountSpec\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12<\n\x05state\x18\x04 \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t\x12\x37\n\x07metrics\x18\x06 \x01(\x0b\x32&.temporal.api.cloud.account.v1.Metrics"\xbf\x01\n\x10\x41uditLogSinkSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x0ckinesis_sink\x18\x02 \x01(\x0b\x32\'.temporal.api.cloud.sink.v1.KinesisSpecH\x00\x12>\n\x0cpub_sub_sink\x18\x03 \x01(\x0b\x32&.temporal.api.cloud.sink.v1.PubSubSpecH\x00\x12\x0f\n\x07\x65nabled\x18\x04 \x01(\x08\x42\x0b\n\tsink_type"\xb8\x03\n\x0c\x41uditLogSink\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12<\n\x05state\x18\x03 \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12=\n\x04spec\x18\x04 \x01(\x0b\x32/.temporal.api.cloud.account.v1.AuditLogSinkSpec\x12\x42\n\x06health\x18\x05 \x01(\x0e\x32\x32.temporal.api.cloud.account.v1.AuditLogSink.Health\x12\x15\n\rerror_message\x18\x06 \x01(\t\x12\x37\n\x13last_succeeded_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"o\n\x06Health\x12\x16\n\x12HEALTH_UNSPECIFIED\x10\x00\x12\r\n\tHEALTH_OK\x10\x01\x12\x19\n\x15HEALTH_ERROR_INTERNAL\x10\x02\x12#\n\x1fHEALTH_ERROR_USER_CONFIGURATION\x10\x03\x42\xa7\x01\n io.temporal.api.cloud.account.v1B\x0cMessageProtoP\x01Z+go.temporal.io/api/cloud/account/v1;account\xaa\x02\x1fTemporalio.Api.Cloud.Account.V1\xea\x02#Temporalio::Api::Cloud::Account::V1b\x06proto3' ) - -_METRICSSPEC = DESCRIPTOR.message_types_by_name["MetricsSpec"] -_ACCOUNTSPEC = DESCRIPTOR.message_types_by_name["AccountSpec"] -_METRICS = DESCRIPTOR.message_types_by_name["Metrics"] -_ACCOUNT = DESCRIPTOR.message_types_by_name["Account"] -_AUDITLOGSINKSPEC = DESCRIPTOR.message_types_by_name["AuditLogSinkSpec"] -_AUDITLOGSINK = DESCRIPTOR.message_types_by_name["AuditLogSink"] -_AUDITLOGSINK_HEALTH = _AUDITLOGSINK.enum_types_by_name["Health"] -MetricsSpec = _reflection.GeneratedProtocolMessageType( - "MetricsSpec", - (_message.Message,), - { - "DESCRIPTOR": _METRICSSPEC, - "__module__": "temporalio.api.cloud.account.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.account.v1.MetricsSpec) - }, -) -_sym_db.RegisterMessage(MetricsSpec) - -AccountSpec = _reflection.GeneratedProtocolMessageType( - "AccountSpec", - (_message.Message,), - { - "DESCRIPTOR": _ACCOUNTSPEC, - "__module__": "temporalio.api.cloud.account.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.account.v1.AccountSpec) - }, -) -_sym_db.RegisterMessage(AccountSpec) - -Metrics = _reflection.GeneratedProtocolMessageType( - "Metrics", - (_message.Message,), - { - "DESCRIPTOR": _METRICS, - "__module__": "temporalio.api.cloud.account.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.account.v1.Metrics) - }, -) -_sym_db.RegisterMessage(Metrics) - -Account = _reflection.GeneratedProtocolMessageType( - "Account", - (_message.Message,), - { - "DESCRIPTOR": _ACCOUNT, - "__module__": "temporalio.api.cloud.account.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.account.v1.Account) - }, -) -_sym_db.RegisterMessage(Account) - -AuditLogSinkSpec = _reflection.GeneratedProtocolMessageType( - "AuditLogSinkSpec", - (_message.Message,), - { - "DESCRIPTOR": _AUDITLOGSINKSPEC, - "__module__": "temporalio.api.cloud.account.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.account.v1.AuditLogSinkSpec) - }, -) -_sym_db.RegisterMessage(AuditLogSinkSpec) - -AuditLogSink = _reflection.GeneratedProtocolMessageType( - "AuditLogSink", - (_message.Message,), - { - "DESCRIPTOR": _AUDITLOGSINK, - "__module__": "temporalio.api.cloud.account.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.account.v1.AuditLogSink) - }, -) -_sym_db.RegisterMessage(AuditLogSink) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n io.temporal.api.cloud.account.v1B\014MessageProtoP\001Z+go.temporal.io/api/cloud/account/v1;account\252\002\037Temporalio.Api.Cloud.Account.V1\352\002#Temporalio::Api::Cloud::Account::V1" diff --git a/temporalio/api/cloud/account/v1/message_pb2.pyi b/temporalio/api/cloud/account/v1/message_pb2.pyi index 859cd6bd5..138b18e13 100644 --- a/temporalio/api/cloud/account/v1/message_pb2.pyi +++ b/temporalio/api/cloud/account/v1/message_pb2.pyi @@ -22,6 +22,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetricsSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -36,14 +37,12 @@ class MetricsSpec(google.protobuf.message.Message): accepted_client_ca: builtins.bytes = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "accepted_client_ca", b"accepted_client_ca" - ], + self, field_name: typing.Literal["accepted_client_ca", b"accepted_client_ca"] ) -> None: ... global___MetricsSpec = MetricsSpec +@typing.final class AccountSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -53,20 +52,20 @@ class AccountSpec(google.protobuf.message.Message): """The metrics specification for this account. If not specified, metrics will not be enabled. """ + def __init__( self, *, metrics: global___MetricsSpec | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["metrics", b"metrics"] + self, field_name: typing.Literal["metrics", b"metrics"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["metrics", b"metrics"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["metrics", b"metrics"]) -> None: ... global___AccountSpec = AccountSpec +@typing.final class Metrics(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -80,12 +79,11 @@ class Metrics(google.protobuf.message.Message): *, uri: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["uri", b"uri"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["uri", b"uri"]) -> None: ... global___Metrics = Metrics +@typing.final class Account(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -97,9 +95,6 @@ class Account(google.protobuf.message.Message): METRICS_FIELD_NUMBER: builtins.int id: builtins.str """The id of the account.""" - @property - def spec(self) -> global___AccountSpec: - """The account specification.""" resource_version: builtins.str """The current version of the account specification. The next update operation will have to include this version. @@ -108,9 +103,14 @@ class Account(google.protobuf.message.Message): """The current state of the account.""" async_operation_id: builtins.str """The id of the async operation that is updating the account, if any.""" + @property + def spec(self) -> global___AccountSpec: + """The account specification.""" + @property def metrics(self) -> global___Metrics: """Information related to metrics.""" + def __init__( self, *, @@ -122,12 +122,11 @@ class Account(google.protobuf.message.Message): metrics: global___Metrics | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["metrics", b"metrics", "spec", b"spec"], + self, field_name: typing.Literal["metrics", b"metrics", "spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "id", @@ -145,6 +144,7 @@ class Account(google.protobuf.message.Message): global___Account = Account +@typing.final class AuditLogSinkSpec(google.protobuf.message.Message): """AuditLogSinkSpec is only used by Audit Log""" @@ -156,14 +156,16 @@ class AuditLogSinkSpec(google.protobuf.message.Message): ENABLED_FIELD_NUMBER: builtins.int name: builtins.str """Name of the sink e.g. "audit_log_01" """ + enabled: builtins.bool + """Enabled indicates whether the sink is enabled or not.""" @property def kinesis_sink(self) -> temporalio.api.cloud.sink.v1.message_pb2.KinesisSpec: """The KinesisSpec when destination_type is Kinesis""" + @property def pub_sub_sink(self) -> temporalio.api.cloud.sink.v1.message_pb2.PubSubSpec: """The PubSubSpec when destination_type is PubSub""" - enabled: builtins.bool - """Enabled indicates whether the sink is enabled or not.""" + def __init__( self, *, @@ -174,7 +176,7 @@ class AuditLogSinkSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "kinesis_sink", b"kinesis_sink", "pub_sub_sink", @@ -185,7 +187,7 @@ class AuditLogSinkSpec(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "enabled", b"enabled", "kinesis_sink", @@ -199,11 +201,12 @@ class AuditLogSinkSpec(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["sink_type", b"sink_type"] - ) -> typing_extensions.Literal["kinesis_sink", "pub_sub_sink"] | None: ... + self, oneof_group: typing.Literal["sink_type", b"sink_type"] + ) -> typing.Literal["kinesis_sink", "pub_sub_sink"] | None: ... global___AuditLogSinkSpec = AuditLogSinkSpec +@typing.final class AuditLogSink(google.protobuf.message.Message): """AuditLogSink is only used by Audit Log""" @@ -218,7 +221,7 @@ class AuditLogSink(google.protobuf.message.Message): AuditLogSink._Health.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor HEALTH_UNSPECIFIED: AuditLogSink._Health.ValueType # 0 HEALTH_OK: AuditLogSink._Health.ValueType # 1 @@ -252,16 +255,18 @@ class AuditLogSink(google.protobuf.message.Message): """The version of the audit log sink resource.""" state: temporalio.api.cloud.resource.v1.message_pb2.ResourceState.ValueType """The current state of the audit log sink.""" - @property - def spec(self) -> global___AuditLogSinkSpec: - """The specification details of the audit log sink.""" health: global___AuditLogSink.Health.ValueType """The health status of the audit log sink.""" error_message: builtins.str """An error message describing any issues with the audit log sink, if applicable.""" + @property + def spec(self) -> global___AuditLogSinkSpec: + """The specification details of the audit log sink.""" + @property def last_succeeded_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The last succeeded timestamp for the internal workflow responsible for adding data to the sink.""" + def __init__( self, *, @@ -275,13 +280,13 @@ class AuditLogSink(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "last_succeeded_time", b"last_succeeded_time", "spec", b"spec" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "error_message", b"error_message", "health", diff --git a/temporalio/api/cloud/auditlog/v1/message_pb2.py b/temporalio/api/cloud/auditlog/v1/message_pb2.py index 5714d3d23..7a83b841b 100644 --- a/temporalio/api/cloud/auditlog/v1/message_pb2.py +++ b/temporalio/api/cloud/auditlog/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -21,31 +20,8 @@ b'\n,temporal/api/cloud/auditlog/v1/message.proto\x12\x1etemporal.api.cloud.auditlog.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto"\x9f\x02\n\tLogRecord\x12-\n\temit_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\toperation\x18\x05 \x01(\t\x12\x0e\n\x06status\x18\x07 \x01(\t\x12\x0f\n\x07version\x18\t \x01(\x05\x12\x0e\n\x06log_id\x18\n \x01(\t\x12<\n\tprincipal\x18\x0c \x01(\x0b\x32).temporal.api.cloud.auditlog.v1.Principal\x12,\n\x0braw_details\x18\r \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x17\n\x0fx_forwarded_for\x18\x0e \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x0f \x01(\t"G\n\tPrincipal\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x12\n\napi_key_id\x18\x04 \x01(\tB\xac\x01\n!io.temporal.api.cloud.auditlog.v1B\x0cMessageProtoP\x01Z-go.temporal.io/api/cloud/auditlog/v1;auditlog\xaa\x02 Temporalio.Api.Cloud.AuditLog.V1\xea\x02$Temporalio::Api::Cloud::AuditLog::V1b\x06proto3' ) - -_LOGRECORD = DESCRIPTOR.message_types_by_name["LogRecord"] -_PRINCIPAL = DESCRIPTOR.message_types_by_name["Principal"] -LogRecord = _reflection.GeneratedProtocolMessageType( - "LogRecord", - (_message.Message,), - { - "DESCRIPTOR": _LOGRECORD, - "__module__": "temporalio.api.cloud.auditlog.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.auditlog.v1.LogRecord) - }, -) -_sym_db.RegisterMessage(LogRecord) - -Principal = _reflection.GeneratedProtocolMessageType( - "Principal", - (_message.Message,), - { - "DESCRIPTOR": _PRINCIPAL, - "__module__": "temporalio.api.cloud.auditlog.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.auditlog.v1.Principal) - }, -) -_sym_db.RegisterMessage(Principal) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n!io.temporal.api.cloud.auditlog.v1B\014MessageProtoP\001Z-go.temporal.io/api/cloud/auditlog/v1;auditlog\252\002 Temporalio.Api.Cloud.AuditLog.V1\352\002$Temporalio::Api::Cloud::AuditLog::V1" diff --git a/temporalio/api/cloud/auditlog/v1/message_pb2.pyi b/temporalio/api/cloud/auditlog/v1/message_pb2.pyi index 4145313c2..6976f0ca4 100644 --- a/temporalio/api/cloud/auditlog/v1/message_pb2.pyi +++ b/temporalio/api/cloud/auditlog/v1/message_pb2.pyi @@ -4,20 +4,16 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message import google.protobuf.struct_pb2 import google.protobuf.timestamp_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class LogRecord(google.protobuf.message.Message): """LogRecord represents an audit log entry from Temporal, structured for easy parsing and analysis.""" @@ -32,9 +28,6 @@ class LogRecord(google.protobuf.message.Message): RAW_DETAILS_FIELD_NUMBER: builtins.int X_FORWARDED_FOR_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int - @property - def emit_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time when the log was emitted.""" operation: builtins.str """The operation performed.""" status: builtins.str @@ -43,16 +36,22 @@ class LogRecord(google.protobuf.message.Message): """The internal version of the log message. Can be used in deduplication if needed.""" log_id: builtins.str """Unique ID for the log record.""" + x_forwarded_for: builtins.str + """The originating IP address of the request.""" + async_operation_id: builtins.str + """The ID of the async operation.""" + @property + def emit_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time when the log was emitted.""" + @property def principal(self) -> global___Principal: """The principal that performed the operation.""" + @property def raw_details(self) -> google.protobuf.struct_pb2.Struct: """The raw details of the operation.""" - x_forwarded_for: builtins.str - """The originating IP address of the request.""" - async_operation_id: builtins.str - """The ID of the async operation.""" + def __init__( self, *, @@ -68,7 +67,7 @@ class LogRecord(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "emit_time", b"emit_time", "principal", @@ -79,7 +78,7 @@ class LogRecord(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "emit_time", @@ -103,6 +102,7 @@ class LogRecord(google.protobuf.message.Message): global___LogRecord = LogRecord +@typing.final class Principal(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -130,7 +130,7 @@ class Principal(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "api_key_id", b"api_key_id", "id", b"id", "name", b"name", "type", b"type" ], ) -> None: ... diff --git a/temporalio/api/cloud/billing/v1/message_pb2.py b/temporalio/api/cloud/billing/v1/message_pb2.py index 4cbf846f5..16c559b2b 100644 --- a/temporalio/api/cloud/billing/v1/message_pb2.py +++ b/temporalio/api/cloud/billing/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -21,51 +20,8 @@ b'\n+temporal/api/cloud/billing/v1/message.proto\x12\x1dtemporal.api.cloud.billing.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xfd\x03\n\x11\x42illingReportSpec\x12\x38\n\x14start_time_inclusive\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12\x65nd_time_exclusive\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n download_url_expiration_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12^\n\x0bgranularity\x18\x05 \x01(\x0e\x32I.temporal.api.cloud.billing.v1.BillingReportSpec.BillingReportGranularity"\xbb\x01\n\x18\x42illingReportGranularity\x12*\n&BILLING_REPORT_GRANULARITY_UNSPECIFIED\x10\x00\x12%\n!BILLING_REPORT_GRANULARITY_HOURLY\x10\x01\x12$\n BILLING_REPORT_GRANULARITY_DAILY\x10\x02\x12&\n"BILLING_REPORT_GRANULARITY_MONTHLY\x10\x03"\xa8\x06\n\rBillingReport\x12\n\n\x02id\x18\x01 \x01(\t\x12N\n\x05state\x18\x02 \x01(\x0e\x32?.temporal.api.cloud.billing.v1.BillingReport.BillingReportState\x12>\n\x04spec\x18\x03 \x01(\x0b\x32\x30.temporal.api.cloud.billing.v1.BillingReportSpec\x12L\n\rdownload_info\x18\x04 \x03(\x0b\x32\x35.temporal.api.cloud.billing.v1.BillingReport.Download\x12\x32\n\x0erequested_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0egenerated_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12\x61sync_operation_id\x18\x07 \x01(\t\x1a\x80\x02\n\x08\x44ownload\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x37\n\x13url_expiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12U\n\x0b\x66ile_format\x18\x03 \x01(\x0e\x32@.temporal.api.cloud.billing.v1.BillingReport.Download.FileFormat\x12\x17\n\x0f\x66ile_size_bytes\x18\x04 \x01(\x03">\n\nFileFormat\x12\x1b\n\x17\x46ILE_FORMAT_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x46ILE_FORMAT_CSV\x10\x01"\xa5\x01\n\x12\x42illingReportState\x12$\n BILLING_REPORT_STATE_UNSPECIFIED\x10\x00\x12$\n BILLING_REPORT_STATE_IN_PROGRESS\x10\x01\x12"\n\x1e\x42ILLING_REPORT_STATE_GENERATED\x10\x02\x12\x1f\n\x1b\x42ILLING_REPORT_STATE_FAILED\x10\x03\x42\xa7\x01\n io.temporal.api.cloud.billing.v1B\x0cMessageProtoP\x01Z+go.temporal.io/api/cloud/billing/v1;billing\xaa\x02\x1fTemporalio.Api.Cloud.Billing.V1\xea\x02#Temporalio::Api::Cloud::Billing::V1b\x06proto3' ) - -_BILLINGREPORTSPEC = DESCRIPTOR.message_types_by_name["BillingReportSpec"] -_BILLINGREPORT = DESCRIPTOR.message_types_by_name["BillingReport"] -_BILLINGREPORT_DOWNLOAD = _BILLINGREPORT.nested_types_by_name["Download"] -_BILLINGREPORTSPEC_BILLINGREPORTGRANULARITY = _BILLINGREPORTSPEC.enum_types_by_name[ - "BillingReportGranularity" -] -_BILLINGREPORT_DOWNLOAD_FILEFORMAT = _BILLINGREPORT_DOWNLOAD.enum_types_by_name[ - "FileFormat" -] -_BILLINGREPORT_BILLINGREPORTSTATE = _BILLINGREPORT.enum_types_by_name[ - "BillingReportState" -] -BillingReportSpec = _reflection.GeneratedProtocolMessageType( - "BillingReportSpec", - (_message.Message,), - { - "DESCRIPTOR": _BILLINGREPORTSPEC, - "__module__": "temporalio.api.cloud.billing.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.billing.v1.BillingReportSpec) - }, -) -_sym_db.RegisterMessage(BillingReportSpec) - -BillingReport = _reflection.GeneratedProtocolMessageType( - "BillingReport", - (_message.Message,), - { - "Download": _reflection.GeneratedProtocolMessageType( - "Download", - (_message.Message,), - { - "DESCRIPTOR": _BILLINGREPORT_DOWNLOAD, - "__module__": "temporalio.api.cloud.billing.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.billing.v1.BillingReport.Download) - }, - ), - "DESCRIPTOR": _BILLINGREPORT, - "__module__": "temporalio.api.cloud.billing.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.billing.v1.BillingReport) - }, -) -_sym_db.RegisterMessage(BillingReport) -_sym_db.RegisterMessage(BillingReport.Download) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n io.temporal.api.cloud.billing.v1B\014MessageProtoP\001Z+go.temporal.io/api/cloud/billing/v1;billing\252\002\037Temporalio.Api.Cloud.Billing.V1\352\002#Temporalio::Api::Cloud::Billing::V1" diff --git a/temporalio/api/cloud/billing/v1/message_pb2.pyi b/temporalio/api/cloud/billing/v1/message_pb2.pyi index 7828afffa..7f592966b 100644 --- a/temporalio/api/cloud/billing/v1/message_pb2.pyi +++ b/temporalio/api/cloud/billing/v1/message_pb2.pyi @@ -22,6 +22,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class BillingReportSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -34,7 +35,7 @@ class BillingReportSpec(google.protobuf.message.Message): BillingReportSpec._BillingReportGranularity.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor BILLING_REPORT_GRANULARITY_UNSPECIFIED: ( BillingReportSpec._BillingReportGranularity.ValueType @@ -70,26 +71,29 @@ class BillingReportSpec(google.protobuf.message.Message): DOWNLOAD_URL_EXPIRATION_DURATION_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int GRANULARITY_FIELD_NUMBER: builtins.int + description: builtins.str + """The description for the billing report. + Optional, default is empty. + """ + granularity: global___BillingReportSpec.BillingReportGranularity.ValueType + """The data granularity of the billing report. + Optional, default is hourly. + temporal:versioning:min_version=v0.16.0 + """ @property def start_time_inclusive(self) -> google.protobuf.timestamp_pb2.Timestamp: """The start time of the billing report (in UTC).""" + @property def end_time_exclusive(self) -> google.protobuf.timestamp_pb2.Timestamp: """The end time of the billing report (in UTC).""" + @property def download_url_expiration_duration(self) -> google.protobuf.duration_pb2.Duration: """The duration after which the download url will expire. Optional, default is 5 minutes and maximum is 1 hour. """ - description: builtins.str - """The description for the billing report. - Optional, default is empty. - """ - granularity: global___BillingReportSpec.BillingReportGranularity.ValueType - """The data granularity of the billing report. - Optional, default is hourly. - temporal:versioning:min_version=v0.16.0 - """ + def __init__( self, *, @@ -102,7 +106,7 @@ class BillingReportSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "download_url_expiration_duration", b"download_url_expiration_duration", "end_time_exclusive", @@ -113,7 +117,7 @@ class BillingReportSpec(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "download_url_expiration_duration", @@ -129,6 +133,7 @@ class BillingReportSpec(google.protobuf.message.Message): global___BillingReportSpec = BillingReportSpec +@typing.final class BillingReport(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -141,7 +146,7 @@ class BillingReport(google.protobuf.message.Message): BillingReport._BillingReportState.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor BILLING_REPORT_STATE_UNSPECIFIED: ( BillingReport._BillingReportState.ValueType @@ -160,6 +165,7 @@ class BillingReport(google.protobuf.message.Message): BILLING_REPORT_STATE_GENERATED: BillingReport.BillingReportState.ValueType # 2 BILLING_REPORT_STATE_FAILED: BillingReport.BillingReportState.ValueType # 3 + @typing.final class Download(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -172,7 +178,7 @@ class BillingReport(google.protobuf.message.Message): BillingReport.Download._FileFormat.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor FILE_FORMAT_UNSPECIFIED: BillingReport.Download._FileFormat.ValueType # 0 FILE_FORMAT_CSV: BillingReport.Download._FileFormat.ValueType # 1 @@ -187,13 +193,14 @@ class BillingReport(google.protobuf.message.Message): FILE_SIZE_BYTES_FIELD_NUMBER: builtins.int url: builtins.str """The download url.""" - @property - def url_expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """The time when the download url will expire.""" file_format: global___BillingReport.Download.FileFormat.ValueType """The file format of the billing report""" file_size_bytes: builtins.int """The size of the file in bytes. Useful for pre-allocating space, progress indicators, etc.""" + @property + def url_expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when the download url will expire.""" + def __init__( self, *, @@ -204,13 +211,11 @@ class BillingReport(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "url_expiration_time", b"url_expiration_time" - ], + field_name: typing.Literal["url_expiration_time", b"url_expiration_time"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "file_format", b"file_format", "file_size_bytes", @@ -233,9 +238,12 @@ class BillingReport(google.protobuf.message.Message): """The id of the billing report.""" state: global___BillingReport.BillingReportState.ValueType """The current state of the billing report.""" + async_operation_id: builtins.str + """The async operation id associated with the billing report generation.""" @property def spec(self) -> global___BillingReportSpec: """The spec used to generate this billing report.""" + @property def download_info( self, @@ -245,14 +253,15 @@ class BillingReport(google.protobuf.message.Message): """The download information for the billing report. For future-proofness this is repeated as we may return multiple files (e.g. csv+meta/json, split by size/date, etc.) """ + @property def requested_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the billing report was requested.""" + @property def generated_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the billing report generation completed.""" - async_operation_id: builtins.str - """The async operation id associated with the billing report generation.""" + def __init__( self, *, @@ -267,7 +276,7 @@ class BillingReport(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "generated_time", b"generated_time", "requested_time", @@ -278,7 +287,7 @@ class BillingReport(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "download_info", diff --git a/temporalio/api/cloud/cloudservice/v1/__init__.py b/temporalio/api/cloud/cloudservice/v1/__init__.py index 0586a752b..1aba18b06 100644 --- a/temporalio/api/cloud/cloudservice/v1/__init__.py +++ b/temporalio/api/cloud/cloudservice/v1/__init__.py @@ -313,6 +313,7 @@ import grpc from .service_pb2_grpc import ( + CloudService, CloudServiceServicer, CloudServiceStub, add_CloudServiceServicer_to_server, @@ -320,6 +321,7 @@ __all__.extend( [ + "CloudService", "CloudServiceServicer", "CloudServiceStub", "add_CloudServiceServicer_to_server", diff --git a/temporalio/api/cloud/cloudservice/v1/request_response_pb2.py b/temporalio/api/cloud/cloudservice/v1/request_response_pb2.py index 5d7a6a28a..4406cb0e5 100644 --- a/temporalio/api/cloud/cloudservice/v1/request_response_pb2.py +++ b/temporalio/api/cloud/cloudservice/v1/request_response_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -51,2051 +50,8 @@ b'\n9temporal/api/cloud/cloudservice/v1/request_response.proto\x12"temporal.api.cloud.cloudservice.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a-temporal/api/cloud/operation/v1/message.proto\x1a,temporal/api/cloud/identity/v1/message.proto\x1a-temporal/api/cloud/namespace/v1/message.proto\x1a)temporal/api/cloud/nexus/v1/message.proto\x1a*temporal/api/cloud/region/v1/message.proto\x1a+temporal/api/cloud/account/v1/message.proto\x1a)temporal/api/cloud/usage/v1/message.proto\x1a\x34temporal/api/cloud/connectivityrule/v1/message.proto\x1a,temporal/api/cloud/auditlog/v1/message.proto\x1a+temporal/api/cloud/billing/v1/message.proto"\x1b\n\x19GetCurrentIdentityRequest"\xed\x01\n\x1aGetCurrentIdentityResponse\x12\x34\n\x04user\x18\x01 \x01(\x0b\x32$.temporal.api.cloud.identity.v1.UserH\x00\x12I\n\x0fservice_account\x18\x02 \x01(\x0b\x32..temporal.api.cloud.identity.v1.ServiceAccountH\x00\x12\x41\n\x11principal_api_key\x18\x03 \x01(\x0b\x32&.temporal.api.cloud.identity.v1.ApiKeyB\x0b\n\tprincipal"Z\n\x0fGetUsersRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\r\n\x05\x65mail\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t"`\n\x10GetUsersResponse\x12\x33\n\x05users\x18\x01 \x03(\x0b\x32$.temporal.api.cloud.identity.v1.User\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"!\n\x0eGetUserRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t"E\n\x0fGetUserResponse\x12\x32\n\x04user\x18\x01 \x01(\x0b\x32$.temporal.api.cloud.identity.v1.User"g\n\x11\x43reateUserRequest\x12\x36\n\x04spec\x18\x01 \x01(\x0b\x32(.temporal.api.cloud.identity.v1.UserSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"o\n\x12\x43reateUserResponse\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12H\n\x0f\x61sync_operation\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x92\x01\n\x11UpdateUserRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x36\n\x04spec\x18\x02 \x01(\x0b\x32(.temporal.api.cloud.identity.v1.UserSpec\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"^\n\x12UpdateUserResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"Z\n\x11\x44\x65leteUserRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"^\n\x12\x44\x65leteUserResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\xba\x01\n\x1dSetUserNamespaceAccessRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12?\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0b\x32/.temporal.api.cloud.identity.v1.NamespaceAccess\x12\x18\n\x10resource_version\x18\x04 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t"j\n\x1eSetUserNamespaceAccessResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"6\n\x18GetAsyncOperationRequest\x12\x1a\n\x12\x61sync_operation_id\x18\x01 \x01(\t"e\n\x19GetAsyncOperationResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\xf3\x01\n\x16\x43reateNamespaceRequest\x12<\n\x04spec\x18\x02 \x01(\x0b\x32..temporal.api.cloud.namespace.v1.NamespaceSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t\x12R\n\x04tags\x18\x04 \x03(\x0b\x32\x44.temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"v\n\x17\x43reateNamespaceResponse\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12H\n\x0f\x61sync_operation\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"K\n\x14GetNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t"p\n\x15GetNamespacesResponse\x12>\n\nnamespaces\x18\x01 \x03(\x0b\x32*.temporal.api.cloud.namespace.v1.Namespace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"(\n\x13GetNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t"U\n\x14GetNamespaceResponse\x12=\n\tnamespace\x18\x01 \x01(\x0b\x32*.temporal.api.cloud.namespace.v1.Namespace"\x9f\x01\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\x04spec\x18\x02 \x01(\x0b\x32..temporal.api.cloud.namespace.v1.NamespaceSpec\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"c\n\x17UpdateNamespaceResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\xc6\x01\n"RenameCustomSearchAttributeRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12-\n%existing_custom_search_attribute_name\x18\x02 \x01(\t\x12(\n new_custom_search_attribute_name\x18\x03 \x01(\t\x12\x18\n\x10resource_version\x18\x04 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t"o\n#RenameCustomSearchAttributeResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"a\n\x16\x44\x65leteNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"c\n\x17\x44\x65leteNamespaceResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"_\n\x1e\x46\x61iloverNamespaceRegionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"k\n\x1f\x46\x61iloverNamespaceRegionResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"t\n\x19\x41\x64\x64NamespaceRegionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"f\n\x1a\x41\x64\x64NamespaceRegionResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"w\n\x1c\x44\x65leteNamespaceRegionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"i\n\x1d\x44\x65leteNamespaceRegionResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x13\n\x11GetRegionsRequest"K\n\x12GetRegionsResponse\x12\x35\n\x07regions\x18\x01 \x03(\x0b\x32$.temporal.api.cloud.region.v1.Region""\n\x10GetRegionRequest\x12\x0e\n\x06region\x18\x01 \x01(\t"I\n\x11GetRegionResponse\x12\x34\n\x06region\x18\x01 \x01(\x0b\x32$.temporal.api.cloud.region.v1.Region"\xae\x01\n\x11GetApiKeysRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x10\n\x08owner_id\x18\x03 \x01(\t\x12!\n\x15owner_type_deprecated\x18\x04 \x01(\tB\x02\x18\x01\x12=\n\nowner_type\x18\x05 \x01(\x0e\x32).temporal.api.cloud.identity.v1.OwnerType"g\n\x12GetApiKeysResponse\x12\x38\n\x08\x61pi_keys\x18\x01 \x03(\x0b\x32&.temporal.api.cloud.identity.v1.ApiKey\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t""\n\x10GetApiKeyRequest\x12\x0e\n\x06key_id\x18\x01 \x01(\t"L\n\x11GetApiKeyResponse\x12\x37\n\x07\x61pi_key\x18\x01 \x01(\x0b\x32&.temporal.api.cloud.identity.v1.ApiKey"k\n\x13\x43reateApiKeyRequest\x12\x38\n\x04spec\x18\x01 \x01(\x0b\x32*.temporal.api.cloud.identity.v1.ApiKeySpec\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"\x7f\n\x14\x43reateApiKeyResponse\x12\x0e\n\x06key_id\x18\x01 \x01(\t\x12\r\n\x05token\x18\x02 \x01(\t\x12H\n\x0f\x61sync_operation\x18\x03 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x95\x01\n\x13UpdateApiKeyRequest\x12\x0e\n\x06key_id\x18\x01 \x01(\t\x12\x38\n\x04spec\x18\x02 \x01(\x0b\x32*.temporal.api.cloud.identity.v1.ApiKeySpec\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"`\n\x14UpdateApiKeyResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"[\n\x13\x44\x65leteApiKeyRequest\x12\x0e\n\x06key_id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"`\n\x14\x44\x65leteApiKeyResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x87\x01\n\x18GetNexusEndpointsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x1b\n\x13target_namespace_id\x18\x03 \x01(\t\x12\x19\n\x11target_task_queue\x18\x04 \x01(\t\x12\x0c\n\x04name\x18\x05 \x01(\t"n\n\x19GetNexusEndpointsResponse\x12\x38\n\tendpoints\x18\x01 \x03(\x0b\x32%.temporal.api.cloud.nexus.v1.Endpoint\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t".\n\x17GetNexusEndpointRequest\x12\x13\n\x0b\x65ndpoint_id\x18\x01 \x01(\t"S\n\x18GetNexusEndpointResponse\x12\x37\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32%.temporal.api.cloud.nexus.v1.Endpoint"q\n\x1a\x43reateNexusEndpointRequest\x12\x37\n\x04spec\x18\x01 \x01(\x0b\x32).temporal.api.cloud.nexus.v1.EndpointSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"|\n\x1b\x43reateNexusEndpointResponse\x12\x13\n\x0b\x65ndpoint_id\x18\x01 \x01(\t\x12H\n\x0f\x61sync_operation\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\xa0\x01\n\x1aUpdateNexusEndpointRequest\x12\x13\n\x0b\x65ndpoint_id\x18\x01 \x01(\t\x12\x37\n\x04spec\x18\x02 \x01(\x0b\x32).temporal.api.cloud.nexus.v1.EndpointSpec\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"g\n\x1bUpdateNexusEndpointResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"g\n\x1a\x44\x65leteNexusEndpointRequest\x12\x13\n\x0b\x65ndpoint_id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"g\n\x1b\x44\x65leteNexusEndpointResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\xf5\x02\n\x14GetUserGroupsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\t\x12`\n\x0cgoogle_group\x18\x05 \x01(\x0b\x32J.temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest.GoogleGroupFilter\x12\\\n\nscim_group\x18\x06 \x01(\x0b\x32H.temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest.SCIMGroupFilter\x1a*\n\x11GoogleGroupFilter\x12\x15\n\remail_address\x18\x01 \x01(\t\x1a!\n\x0fSCIMGroupFilter\x12\x0e\n\x06idp_id\x18\x01 \x01(\t"k\n\x15GetUserGroupsResponse\x12\x39\n\x06groups\x18\x01 \x03(\x0b\x32).temporal.api.cloud.identity.v1.UserGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\'\n\x13GetUserGroupRequest\x12\x10\n\x08group_id\x18\x01 \x01(\t"P\n\x14GetUserGroupResponse\x12\x38\n\x05group\x18\x01 \x01(\x0b\x32).temporal.api.cloud.identity.v1.UserGroup"q\n\x16\x43reateUserGroupRequest\x12;\n\x04spec\x18\x01 \x01(\x0b\x32-.temporal.api.cloud.identity.v1.UserGroupSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"u\n\x17\x43reateUserGroupResponse\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12H\n\x0f\x61sync_operation\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x9d\x01\n\x16UpdateUserGroupRequest\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12;\n\x04spec\x18\x02 \x01(\x0b\x32-.temporal.api.cloud.identity.v1.UserGroupSpec\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"c\n\x17UpdateUserGroupResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"`\n\x16\x44\x65leteUserGroupRequest\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"c\n\x17\x44\x65leteUserGroupResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\xc0\x01\n"SetUserGroupNamespaceAccessRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x01(\t\x12?\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0b\x32/.temporal.api.cloud.identity.v1.NamespaceAccess\x12\x18\n\x10resource_version\x18\x04 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t"o\n#SetUserGroupNamespaceAccessResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x8f\x01\n\x19\x41\x64\x64UserGroupMemberRequest\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12\x44\n\tmember_id\x18\x02 \x01(\x0b\x32\x31.temporal.api.cloud.identity.v1.UserGroupMemberId\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"f\n\x1a\x41\x64\x64UserGroupMemberResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x92\x01\n\x1cRemoveUserGroupMemberRequest\x12\x10\n\x08group_id\x18\x01 \x01(\t\x12\x44\n\tmember_id\x18\x02 \x01(\x0b\x32\x31.temporal.api.cloud.identity.v1.UserGroupMemberId\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"i\n\x1dRemoveUserGroupMemberResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"U\n\x1aGetUserGroupMembersRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x10\n\x08group_id\x18\x03 \x01(\t"x\n\x1bGetUserGroupMembersResponse\x12@\n\x07members\x18\x01 \x03(\x0b\x32/.temporal.api.cloud.identity.v1.UserGroupMember\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"{\n\x1b\x43reateServiceAccountRequest\x12@\n\x04spec\x18\x01 \x01(\x0b\x32\x32.temporal.api.cloud.identity.v1.ServiceAccountSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"\x84\x01\n\x1c\x43reateServiceAccountResponse\x12\x1a\n\x12service_account_id\x18\x01 \x01(\t\x12H\n\x0f\x61sync_operation\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"6\n\x18GetServiceAccountRequest\x12\x1a\n\x12service_account_id\x18\x01 \x01(\t"d\n\x19GetServiceAccountResponse\x12G\n\x0fservice_account\x18\x01 \x01(\x0b\x32..temporal.api.cloud.identity.v1.ServiceAccount"B\n\x19GetServiceAccountsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t"~\n\x1aGetServiceAccountsResponse\x12G\n\x0fservice_account\x18\x01 \x03(\x0b\x32..temporal.api.cloud.identity.v1.ServiceAccount\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xb1\x01\n\x1bUpdateServiceAccountRequest\x12\x1a\n\x12service_account_id\x18\x01 \x01(\t\x12@\n\x04spec\x18\x02 \x01(\x0b\x32\x32.temporal.api.cloud.identity.v1.ServiceAccountSpec\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"h\n\x1cUpdateServiceAccountResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\xcf\x01\n\'SetServiceAccountNamespaceAccessRequest\x12\x1a\n\x12service_account_id\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12?\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0b\x32/.temporal.api.cloud.identity.v1.NamespaceAccess\x12\x18\n\x10resource_version\x18\x04 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t"t\n(SetServiceAccountNamespaceAccessResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"o\n\x1b\x44\x65leteServiceAccountRequest\x12\x1a\n\x12service_account_id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"h\n\x1c\x44\x65leteServiceAccountResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\xaa\x01\n\x0fGetUsageRequest\x12\x38\n\x14start_time_inclusive\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12\x65nd_time_exclusive\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t"d\n\x10GetUsageResponse\x12\x37\n\tsummaries\x18\x01 \x03(\x0b\x32$.temporal.api.cloud.usage.v1.Summary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x13\n\x11GetAccountRequest"M\n\x12GetAccountResponse\x12\x37\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32&.temporal.api.cloud.account.v1.Account"\x86\x01\n\x14UpdateAccountRequest\x12\x38\n\x04spec\x18\x01 \x01(\x0b\x32*.temporal.api.cloud.account.v1.AccountSpec\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"a\n\x15UpdateAccountResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x90\x01\n CreateNamespaceExportSinkRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12=\n\x04spec\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.namespace.v1.ExportSinkSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"m\n!CreateNamespaceExportSinkResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"@\n\x1dGetNamespaceExportSinkRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t"[\n\x1eGetNamespaceExportSinkResponse\x12\x39\n\x04sink\x18\x01 \x01(\x0b\x32+.temporal.api.cloud.namespace.v1.ExportSink"Z\n\x1eGetNamespaceExportSinksRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"v\n\x1fGetNamespaceExportSinksResponse\x12:\n\x05sinks\x18\x01 \x03(\x0b\x32+.temporal.api.cloud.namespace.v1.ExportSink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xaa\x01\n UpdateNamespaceExportSinkRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12=\n\x04spec\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.namespace.v1.ExportSinkSpec\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"m\n!UpdateNamespaceExportSinkResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"y\n DeleteNamespaceExportSinkRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"m\n!DeleteNamespaceExportSinkResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"v\n"ValidateNamespaceExportSinkRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12=\n\x04spec\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.namespace.v1.ExportSinkSpec"%\n#ValidateNamespaceExportSinkResponse"\x82\x02\n\x1aUpdateNamespaceTagsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12h\n\x0etags_to_upsert\x18\x02 \x03(\x0b\x32P.temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsRequest.TagsToUpsertEntry\x12\x16\n\x0etags_to_remove\x18\x03 \x03(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t\x1a\x33\n\x11TagsToUpsertEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"g\n\x1bUpdateNamespaceTagsResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x87\x01\n\x1d\x43reateConnectivityRuleRequest\x12J\n\x04spec\x18\x01 \x01(\x0b\x32<.temporal.api.cloud.connectivityrule.v1.ConnectivityRuleSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"\x88\x01\n\x1e\x43reateConnectivityRuleResponse\x12\x1c\n\x14\x63onnectivity_rule_id\x18\x01 \x01(\t\x12H\n\x0f\x61sync_operation\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation":\n\x1aGetConnectivityRuleRequest\x12\x1c\n\x14\x63onnectivity_rule_id\x18\x01 \x01(\t"r\n\x1bGetConnectivityRuleResponse\x12S\n\x11\x63onnectivity_rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.cloud.connectivityrule.v1.ConnectivityRule"W\n\x1bGetConnectivityRulesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tnamespace\x18\x03 \x01(\t"\x8d\x01\n\x1cGetConnectivityRulesResponse\x12T\n\x12\x63onnectivity_rules\x18\x01 \x03(\x0b\x32\x38.temporal.api.cloud.connectivityrule.v1.ConnectivityRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"s\n\x1d\x44\x65leteConnectivityRuleRequest\x12\x1c\n\x14\x63onnectivity_rule_id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"j\n\x1e\x44\x65leteConnectivityRuleResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\xae\x01\n\x13GetAuditLogsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x38\n\x14start_time_inclusive\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12\x65nd_time_exclusive\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"h\n\x14GetAuditLogsResponse\x12\x37\n\x04logs\x18\x01 \x03(\x0b\x32).temporal.api.cloud.auditlog.v1.LogRecord\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"c\n"ValidateAccountAuditLogSinkRequest\x12=\n\x04spec\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.account.v1.AuditLogSinkSpec"%\n#ValidateAccountAuditLogSinkResponse"}\n CreateAccountAuditLogSinkRequest\x12=\n\x04spec\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.account.v1.AuditLogSinkSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"m\n!CreateAccountAuditLogSinkResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"-\n\x1dGetAccountAuditLogSinkRequest\x12\x0c\n\x04name\x18\x01 \x01(\t"[\n\x1eGetAccountAuditLogSinkResponse\x12\x39\n\x04sink\x18\x01 \x01(\x0b\x32+.temporal.api.cloud.account.v1.AuditLogSink"G\n\x1eGetAccountAuditLogSinksRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t"v\n\x1fGetAccountAuditLogSinksResponse\x12:\n\x05sinks\x18\x01 \x03(\x0b\x32+.temporal.api.cloud.account.v1.AuditLogSink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\x97\x01\n UpdateAccountAuditLogSinkRequest\x12=\n\x04spec\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.account.v1.AuditLogSinkSpec\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"m\n!UpdateAccountAuditLogSinkResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"f\n DeleteAccountAuditLogSinkRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"m\n!DeleteAccountAuditLogSinkResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"4\n\x1fGetNamespaceCapacityInfoRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t"q\n GetNamespaceCapacityInfoResponse\x12M\n\rcapacity_info\x18\x01 \x01(\x0b\x32\x36.temporal.api.cloud.namespace.v1.NamespaceCapacityInfo"x\n\x1a\x43reateBillingReportRequest\x12>\n\x04spec\x18\x01 \x01(\x0b\x32\x30.temporal.api.cloud.billing.v1.BillingReportSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"\x82\x01\n\x1b\x43reateBillingReportResponse\x12\x19\n\x11\x62illing_report_id\x18\x01 \x01(\t\x12H\n\x0f\x61sync_operation\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"4\n\x17GetBillingReportRequest\x12\x19\n\x11\x62illing_report_id\x18\x01 \x01(\t"`\n\x18GetBillingReportResponse\x12\x44\n\x0e\x62illing_report\x18\x01 \x01(\x0b\x32,.temporal.api.cloud.billing.v1.BillingReport">\n\x15GetCustomRolesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t"s\n\x16GetCustomRolesResponse\x12@\n\x0c\x63ustom_roles\x18\x01 \x03(\x0b\x32*.temporal.api.cloud.identity.v1.CustomRole\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\'\n\x14GetCustomRoleRequest\x12\x0f\n\x07role_id\x18\x01 \x01(\t"X\n\x15GetCustomRoleResponse\x12?\n\x0b\x63ustom_role\x18\x01 \x01(\x0b\x32*.temporal.api.cloud.identity.v1.CustomRole"s\n\x17\x43reateCustomRoleRequest\x12<\n\x04spec\x18\x01 \x01(\x0b\x32..temporal.api.cloud.identity.v1.CustomRoleSpec\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"u\n\x18\x43reateCustomRoleResponse\x12\x0f\n\x07role_id\x18\x01 \x01(\t\x12H\n\x0f\x61sync_operation\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"\x9e\x01\n\x17UpdateCustomRoleRequest\x12\x0f\n\x07role_id\x18\x01 \x01(\t\x12<\n\x04spec\x18\x02 \x01(\x0b\x32..temporal.api.cloud.identity.v1.CustomRoleSpec\x12\x18\n\x10resource_version\x18\x03 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t"d\n\x18UpdateCustomRoleResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"`\n\x17\x44\x65leteCustomRoleRequest\x12\x0f\n\x07role_id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x1a\n\x12\x61sync_operation_id\x18\x03 \x01(\t"d\n\x18\x44\x65leteCustomRoleResponse\x12H\n\x0f\x61sync_operation\x18\x01 \x01(\x0b\x32/.temporal.api.cloud.operation.v1.AsyncOperation"^\n"GetUserNamespaceAssignmentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x86\x01\n#GetUserNamespaceAssignmentsResponse\x12\x46\n\x05users\x18\x01 \x03(\x0b\x32\x37.temporal.api.cloud.identity.v1.UserNamespaceAssignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"h\n,GetServiceAccountNamespaceAssignmentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\xa5\x01\n-GetServiceAccountNamespaceAssignmentsResponse\x12[\n\x10service_accounts\x18\x01 \x03(\x0b\x32\x41.temporal.api.cloud.identity.v1.ServiceAccountNamespaceAssignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"c\n\'GetUserGroupNamespaceAssignmentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"\x91\x01\n(GetUserGroupNamespaceAssignmentsResponse\x12L\n\x06groups\x18\x01 \x03(\x0b\x32<.temporal.api.cloud.identity.v1.UserGroupNamespaceAssignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xc8\x01\n%io.temporal.api.cloud.cloudservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/cloud/cloudservice/v1;cloudservice\xaa\x02$Temporalio.Api.Cloud.CloudService.V1\xea\x02(Temporalio::Api::Cloud::CloudService::V1b\x06proto3' ) - -_GETCURRENTIDENTITYREQUEST = DESCRIPTOR.message_types_by_name[ - "GetCurrentIdentityRequest" -] -_GETCURRENTIDENTITYRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetCurrentIdentityResponse" -] -_GETUSERSREQUEST = DESCRIPTOR.message_types_by_name["GetUsersRequest"] -_GETUSERSRESPONSE = DESCRIPTOR.message_types_by_name["GetUsersResponse"] -_GETUSERREQUEST = DESCRIPTOR.message_types_by_name["GetUserRequest"] -_GETUSERRESPONSE = DESCRIPTOR.message_types_by_name["GetUserResponse"] -_CREATEUSERREQUEST = DESCRIPTOR.message_types_by_name["CreateUserRequest"] -_CREATEUSERRESPONSE = DESCRIPTOR.message_types_by_name["CreateUserResponse"] -_UPDATEUSERREQUEST = DESCRIPTOR.message_types_by_name["UpdateUserRequest"] -_UPDATEUSERRESPONSE = DESCRIPTOR.message_types_by_name["UpdateUserResponse"] -_DELETEUSERREQUEST = DESCRIPTOR.message_types_by_name["DeleteUserRequest"] -_DELETEUSERRESPONSE = DESCRIPTOR.message_types_by_name["DeleteUserResponse"] -_SETUSERNAMESPACEACCESSREQUEST = DESCRIPTOR.message_types_by_name[ - "SetUserNamespaceAccessRequest" -] -_SETUSERNAMESPACEACCESSRESPONSE = DESCRIPTOR.message_types_by_name[ - "SetUserNamespaceAccessResponse" -] -_GETASYNCOPERATIONREQUEST = DESCRIPTOR.message_types_by_name["GetAsyncOperationRequest"] -_GETASYNCOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetAsyncOperationResponse" -] -_CREATENAMESPACEREQUEST = DESCRIPTOR.message_types_by_name["CreateNamespaceRequest"] -_CREATENAMESPACEREQUEST_TAGSENTRY = _CREATENAMESPACEREQUEST.nested_types_by_name[ - "TagsEntry" -] -_CREATENAMESPACERESPONSE = DESCRIPTOR.message_types_by_name["CreateNamespaceResponse"] -_GETNAMESPACESREQUEST = DESCRIPTOR.message_types_by_name["GetNamespacesRequest"] -_GETNAMESPACESRESPONSE = DESCRIPTOR.message_types_by_name["GetNamespacesResponse"] -_GETNAMESPACEREQUEST = DESCRIPTOR.message_types_by_name["GetNamespaceRequest"] -_GETNAMESPACERESPONSE = DESCRIPTOR.message_types_by_name["GetNamespaceResponse"] -_UPDATENAMESPACEREQUEST = DESCRIPTOR.message_types_by_name["UpdateNamespaceRequest"] -_UPDATENAMESPACERESPONSE = DESCRIPTOR.message_types_by_name["UpdateNamespaceResponse"] -_RENAMECUSTOMSEARCHATTRIBUTEREQUEST = DESCRIPTOR.message_types_by_name[ - "RenameCustomSearchAttributeRequest" -] -_RENAMECUSTOMSEARCHATTRIBUTERESPONSE = DESCRIPTOR.message_types_by_name[ - "RenameCustomSearchAttributeResponse" -] -_DELETENAMESPACEREQUEST = DESCRIPTOR.message_types_by_name["DeleteNamespaceRequest"] -_DELETENAMESPACERESPONSE = DESCRIPTOR.message_types_by_name["DeleteNamespaceResponse"] -_FAILOVERNAMESPACEREGIONREQUEST = DESCRIPTOR.message_types_by_name[ - "FailoverNamespaceRegionRequest" -] -_FAILOVERNAMESPACEREGIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "FailoverNamespaceRegionResponse" -] -_ADDNAMESPACEREGIONREQUEST = DESCRIPTOR.message_types_by_name[ - "AddNamespaceRegionRequest" -] -_ADDNAMESPACEREGIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "AddNamespaceRegionResponse" -] -_DELETENAMESPACEREGIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteNamespaceRegionRequest" -] -_DELETENAMESPACEREGIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteNamespaceRegionResponse" -] -_GETREGIONSREQUEST = DESCRIPTOR.message_types_by_name["GetRegionsRequest"] -_GETREGIONSRESPONSE = DESCRIPTOR.message_types_by_name["GetRegionsResponse"] -_GETREGIONREQUEST = DESCRIPTOR.message_types_by_name["GetRegionRequest"] -_GETREGIONRESPONSE = DESCRIPTOR.message_types_by_name["GetRegionResponse"] -_GETAPIKEYSREQUEST = DESCRIPTOR.message_types_by_name["GetApiKeysRequest"] -_GETAPIKEYSRESPONSE = DESCRIPTOR.message_types_by_name["GetApiKeysResponse"] -_GETAPIKEYREQUEST = DESCRIPTOR.message_types_by_name["GetApiKeyRequest"] -_GETAPIKEYRESPONSE = DESCRIPTOR.message_types_by_name["GetApiKeyResponse"] -_CREATEAPIKEYREQUEST = DESCRIPTOR.message_types_by_name["CreateApiKeyRequest"] -_CREATEAPIKEYRESPONSE = DESCRIPTOR.message_types_by_name["CreateApiKeyResponse"] -_UPDATEAPIKEYREQUEST = DESCRIPTOR.message_types_by_name["UpdateApiKeyRequest"] -_UPDATEAPIKEYRESPONSE = DESCRIPTOR.message_types_by_name["UpdateApiKeyResponse"] -_DELETEAPIKEYREQUEST = DESCRIPTOR.message_types_by_name["DeleteApiKeyRequest"] -_DELETEAPIKEYRESPONSE = DESCRIPTOR.message_types_by_name["DeleteApiKeyResponse"] -_GETNEXUSENDPOINTSREQUEST = DESCRIPTOR.message_types_by_name["GetNexusEndpointsRequest"] -_GETNEXUSENDPOINTSRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetNexusEndpointsResponse" -] -_GETNEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name["GetNexusEndpointRequest"] -_GETNEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name["GetNexusEndpointResponse"] -_CREATENEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateNexusEndpointRequest" -] -_CREATENEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateNexusEndpointResponse" -] -_UPDATENEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateNexusEndpointRequest" -] -_UPDATENEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateNexusEndpointResponse" -] -_DELETENEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteNexusEndpointRequest" -] -_DELETENEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteNexusEndpointResponse" -] -_GETUSERGROUPSREQUEST = DESCRIPTOR.message_types_by_name["GetUserGroupsRequest"] -_GETUSERGROUPSREQUEST_GOOGLEGROUPFILTER = _GETUSERGROUPSREQUEST.nested_types_by_name[ - "GoogleGroupFilter" -] -_GETUSERGROUPSREQUEST_SCIMGROUPFILTER = _GETUSERGROUPSREQUEST.nested_types_by_name[ - "SCIMGroupFilter" -] -_GETUSERGROUPSRESPONSE = DESCRIPTOR.message_types_by_name["GetUserGroupsResponse"] -_GETUSERGROUPREQUEST = DESCRIPTOR.message_types_by_name["GetUserGroupRequest"] -_GETUSERGROUPRESPONSE = DESCRIPTOR.message_types_by_name["GetUserGroupResponse"] -_CREATEUSERGROUPREQUEST = DESCRIPTOR.message_types_by_name["CreateUserGroupRequest"] -_CREATEUSERGROUPRESPONSE = DESCRIPTOR.message_types_by_name["CreateUserGroupResponse"] -_UPDATEUSERGROUPREQUEST = DESCRIPTOR.message_types_by_name["UpdateUserGroupRequest"] -_UPDATEUSERGROUPRESPONSE = DESCRIPTOR.message_types_by_name["UpdateUserGroupResponse"] -_DELETEUSERGROUPREQUEST = DESCRIPTOR.message_types_by_name["DeleteUserGroupRequest"] -_DELETEUSERGROUPRESPONSE = DESCRIPTOR.message_types_by_name["DeleteUserGroupResponse"] -_SETUSERGROUPNAMESPACEACCESSREQUEST = DESCRIPTOR.message_types_by_name[ - "SetUserGroupNamespaceAccessRequest" -] -_SETUSERGROUPNAMESPACEACCESSRESPONSE = DESCRIPTOR.message_types_by_name[ - "SetUserGroupNamespaceAccessResponse" -] -_ADDUSERGROUPMEMBERREQUEST = DESCRIPTOR.message_types_by_name[ - "AddUserGroupMemberRequest" -] -_ADDUSERGROUPMEMBERRESPONSE = DESCRIPTOR.message_types_by_name[ - "AddUserGroupMemberResponse" -] -_REMOVEUSERGROUPMEMBERREQUEST = DESCRIPTOR.message_types_by_name[ - "RemoveUserGroupMemberRequest" -] -_REMOVEUSERGROUPMEMBERRESPONSE = DESCRIPTOR.message_types_by_name[ - "RemoveUserGroupMemberResponse" -] -_GETUSERGROUPMEMBERSREQUEST = DESCRIPTOR.message_types_by_name[ - "GetUserGroupMembersRequest" -] -_GETUSERGROUPMEMBERSRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetUserGroupMembersResponse" -] -_CREATESERVICEACCOUNTREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateServiceAccountRequest" -] -_CREATESERVICEACCOUNTRESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateServiceAccountResponse" -] -_GETSERVICEACCOUNTREQUEST = DESCRIPTOR.message_types_by_name["GetServiceAccountRequest"] -_GETSERVICEACCOUNTRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetServiceAccountResponse" -] -_GETSERVICEACCOUNTSREQUEST = DESCRIPTOR.message_types_by_name[ - "GetServiceAccountsRequest" -] -_GETSERVICEACCOUNTSRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetServiceAccountsResponse" -] -_UPDATESERVICEACCOUNTREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateServiceAccountRequest" -] -_UPDATESERVICEACCOUNTRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateServiceAccountResponse" -] -_SETSERVICEACCOUNTNAMESPACEACCESSREQUEST = DESCRIPTOR.message_types_by_name[ - "SetServiceAccountNamespaceAccessRequest" -] -_SETSERVICEACCOUNTNAMESPACEACCESSRESPONSE = DESCRIPTOR.message_types_by_name[ - "SetServiceAccountNamespaceAccessResponse" -] -_DELETESERVICEACCOUNTREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteServiceAccountRequest" -] -_DELETESERVICEACCOUNTRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteServiceAccountResponse" -] -_GETUSAGEREQUEST = DESCRIPTOR.message_types_by_name["GetUsageRequest"] -_GETUSAGERESPONSE = DESCRIPTOR.message_types_by_name["GetUsageResponse"] -_GETACCOUNTREQUEST = DESCRIPTOR.message_types_by_name["GetAccountRequest"] -_GETACCOUNTRESPONSE = DESCRIPTOR.message_types_by_name["GetAccountResponse"] -_UPDATEACCOUNTREQUEST = DESCRIPTOR.message_types_by_name["UpdateAccountRequest"] -_UPDATEACCOUNTRESPONSE = DESCRIPTOR.message_types_by_name["UpdateAccountResponse"] -_CREATENAMESPACEEXPORTSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateNamespaceExportSinkRequest" -] -_CREATENAMESPACEEXPORTSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateNamespaceExportSinkResponse" -] -_GETNAMESPACEEXPORTSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "GetNamespaceExportSinkRequest" -] -_GETNAMESPACEEXPORTSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetNamespaceExportSinkResponse" -] -_GETNAMESPACEEXPORTSINKSREQUEST = DESCRIPTOR.message_types_by_name[ - "GetNamespaceExportSinksRequest" -] -_GETNAMESPACEEXPORTSINKSRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetNamespaceExportSinksResponse" -] -_UPDATENAMESPACEEXPORTSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateNamespaceExportSinkRequest" -] -_UPDATENAMESPACEEXPORTSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateNamespaceExportSinkResponse" -] -_DELETENAMESPACEEXPORTSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteNamespaceExportSinkRequest" -] -_DELETENAMESPACEEXPORTSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteNamespaceExportSinkResponse" -] -_VALIDATENAMESPACEEXPORTSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "ValidateNamespaceExportSinkRequest" -] -_VALIDATENAMESPACEEXPORTSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "ValidateNamespaceExportSinkResponse" -] -_UPDATENAMESPACETAGSREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateNamespaceTagsRequest" -] -_UPDATENAMESPACETAGSREQUEST_TAGSTOUPSERTENTRY = ( - _UPDATENAMESPACETAGSREQUEST.nested_types_by_name["TagsToUpsertEntry"] -) -_UPDATENAMESPACETAGSRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateNamespaceTagsResponse" -] -_CREATECONNECTIVITYRULEREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateConnectivityRuleRequest" -] -_CREATECONNECTIVITYRULERESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateConnectivityRuleResponse" -] -_GETCONNECTIVITYRULEREQUEST = DESCRIPTOR.message_types_by_name[ - "GetConnectivityRuleRequest" -] -_GETCONNECTIVITYRULERESPONSE = DESCRIPTOR.message_types_by_name[ - "GetConnectivityRuleResponse" -] -_GETCONNECTIVITYRULESREQUEST = DESCRIPTOR.message_types_by_name[ - "GetConnectivityRulesRequest" -] -_GETCONNECTIVITYRULESRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetConnectivityRulesResponse" -] -_DELETECONNECTIVITYRULEREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteConnectivityRuleRequest" -] -_DELETECONNECTIVITYRULERESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteConnectivityRuleResponse" -] -_GETAUDITLOGSREQUEST = DESCRIPTOR.message_types_by_name["GetAuditLogsRequest"] -_GETAUDITLOGSRESPONSE = DESCRIPTOR.message_types_by_name["GetAuditLogsResponse"] -_VALIDATEACCOUNTAUDITLOGSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "ValidateAccountAuditLogSinkRequest" -] -_VALIDATEACCOUNTAUDITLOGSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "ValidateAccountAuditLogSinkResponse" -] -_CREATEACCOUNTAUDITLOGSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateAccountAuditLogSinkRequest" -] -_CREATEACCOUNTAUDITLOGSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateAccountAuditLogSinkResponse" -] -_GETACCOUNTAUDITLOGSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "GetAccountAuditLogSinkRequest" -] -_GETACCOUNTAUDITLOGSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetAccountAuditLogSinkResponse" -] -_GETACCOUNTAUDITLOGSINKSREQUEST = DESCRIPTOR.message_types_by_name[ - "GetAccountAuditLogSinksRequest" -] -_GETACCOUNTAUDITLOGSINKSRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetAccountAuditLogSinksResponse" -] -_UPDATEACCOUNTAUDITLOGSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateAccountAuditLogSinkRequest" -] -_UPDATEACCOUNTAUDITLOGSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateAccountAuditLogSinkResponse" -] -_DELETEACCOUNTAUDITLOGSINKREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteAccountAuditLogSinkRequest" -] -_DELETEACCOUNTAUDITLOGSINKRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteAccountAuditLogSinkResponse" -] -_GETNAMESPACECAPACITYINFOREQUEST = DESCRIPTOR.message_types_by_name[ - "GetNamespaceCapacityInfoRequest" -] -_GETNAMESPACECAPACITYINFORESPONSE = DESCRIPTOR.message_types_by_name[ - "GetNamespaceCapacityInfoResponse" -] -_CREATEBILLINGREPORTREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateBillingReportRequest" -] -_CREATEBILLINGREPORTRESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateBillingReportResponse" -] -_GETBILLINGREPORTREQUEST = DESCRIPTOR.message_types_by_name["GetBillingReportRequest"] -_GETBILLINGREPORTRESPONSE = DESCRIPTOR.message_types_by_name["GetBillingReportResponse"] -_GETCUSTOMROLESREQUEST = DESCRIPTOR.message_types_by_name["GetCustomRolesRequest"] -_GETCUSTOMROLESRESPONSE = DESCRIPTOR.message_types_by_name["GetCustomRolesResponse"] -_GETCUSTOMROLEREQUEST = DESCRIPTOR.message_types_by_name["GetCustomRoleRequest"] -_GETCUSTOMROLERESPONSE = DESCRIPTOR.message_types_by_name["GetCustomRoleResponse"] -_CREATECUSTOMROLEREQUEST = DESCRIPTOR.message_types_by_name["CreateCustomRoleRequest"] -_CREATECUSTOMROLERESPONSE = DESCRIPTOR.message_types_by_name["CreateCustomRoleResponse"] -_UPDATECUSTOMROLEREQUEST = DESCRIPTOR.message_types_by_name["UpdateCustomRoleRequest"] -_UPDATECUSTOMROLERESPONSE = DESCRIPTOR.message_types_by_name["UpdateCustomRoleResponse"] -_DELETECUSTOMROLEREQUEST = DESCRIPTOR.message_types_by_name["DeleteCustomRoleRequest"] -_DELETECUSTOMROLERESPONSE = DESCRIPTOR.message_types_by_name["DeleteCustomRoleResponse"] -_GETUSERNAMESPACEASSIGNMENTSREQUEST = DESCRIPTOR.message_types_by_name[ - "GetUserNamespaceAssignmentsRequest" -] -_GETUSERNAMESPACEASSIGNMENTSRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetUserNamespaceAssignmentsResponse" -] -_GETSERVICEACCOUNTNAMESPACEASSIGNMENTSREQUEST = DESCRIPTOR.message_types_by_name[ - "GetServiceAccountNamespaceAssignmentsRequest" -] -_GETSERVICEACCOUNTNAMESPACEASSIGNMENTSRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetServiceAccountNamespaceAssignmentsResponse" -] -_GETUSERGROUPNAMESPACEASSIGNMENTSREQUEST = DESCRIPTOR.message_types_by_name[ - "GetUserGroupNamespaceAssignmentsRequest" -] -_GETUSERGROUPNAMESPACEASSIGNMENTSRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetUserGroupNamespaceAssignmentsResponse" -] -GetCurrentIdentityRequest = _reflection.GeneratedProtocolMessageType( - "GetCurrentIdentityRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETCURRENTIDENTITYREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetCurrentIdentityRequest) - }, -) -_sym_db.RegisterMessage(GetCurrentIdentityRequest) - -GetCurrentIdentityResponse = _reflection.GeneratedProtocolMessageType( - "GetCurrentIdentityResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETCURRENTIDENTITYRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetCurrentIdentityResponse) - }, -) -_sym_db.RegisterMessage(GetCurrentIdentityResponse) - -GetUsersRequest = _reflection.GeneratedProtocolMessageType( - "GetUsersRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUsersRequest) - }, -) -_sym_db.RegisterMessage(GetUsersRequest) - -GetUsersResponse = _reflection.GeneratedProtocolMessageType( - "GetUsersResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUsersResponse) - }, -) -_sym_db.RegisterMessage(GetUsersResponse) - -GetUserRequest = _reflection.GeneratedProtocolMessageType( - "GetUserRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserRequest) - }, -) -_sym_db.RegisterMessage(GetUserRequest) - -GetUserResponse = _reflection.GeneratedProtocolMessageType( - "GetUserResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserResponse) - }, -) -_sym_db.RegisterMessage(GetUserResponse) - -CreateUserRequest = _reflection.GeneratedProtocolMessageType( - "CreateUserRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEUSERREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateUserRequest) - }, -) -_sym_db.RegisterMessage(CreateUserRequest) - -CreateUserResponse = _reflection.GeneratedProtocolMessageType( - "CreateUserResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATEUSERRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateUserResponse) - }, -) -_sym_db.RegisterMessage(CreateUserResponse) - -UpdateUserRequest = _reflection.GeneratedProtocolMessageType( - "UpdateUserRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEUSERREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateUserRequest) - }, -) -_sym_db.RegisterMessage(UpdateUserRequest) - -UpdateUserResponse = _reflection.GeneratedProtocolMessageType( - "UpdateUserResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEUSERRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateUserResponse) - }, -) -_sym_db.RegisterMessage(UpdateUserResponse) - -DeleteUserRequest = _reflection.GeneratedProtocolMessageType( - "DeleteUserRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEUSERREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteUserRequest) - }, -) -_sym_db.RegisterMessage(DeleteUserRequest) - -DeleteUserResponse = _reflection.GeneratedProtocolMessageType( - "DeleteUserResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETEUSERRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteUserResponse) - }, -) -_sym_db.RegisterMessage(DeleteUserResponse) - -SetUserNamespaceAccessRequest = _reflection.GeneratedProtocolMessageType( - "SetUserNamespaceAccessRequest", - (_message.Message,), - { - "DESCRIPTOR": _SETUSERNAMESPACEACCESSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessRequest) - }, -) -_sym_db.RegisterMessage(SetUserNamespaceAccessRequest) - -SetUserNamespaceAccessResponse = _reflection.GeneratedProtocolMessageType( - "SetUserNamespaceAccessResponse", - (_message.Message,), - { - "DESCRIPTOR": _SETUSERNAMESPACEACCESSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessResponse) - }, -) -_sym_db.RegisterMessage(SetUserNamespaceAccessResponse) - -GetAsyncOperationRequest = _reflection.GeneratedProtocolMessageType( - "GetAsyncOperationRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETASYNCOPERATIONREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAsyncOperationRequest) - }, -) -_sym_db.RegisterMessage(GetAsyncOperationRequest) - -GetAsyncOperationResponse = _reflection.GeneratedProtocolMessageType( - "GetAsyncOperationResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETASYNCOPERATIONRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAsyncOperationResponse) - }, -) -_sym_db.RegisterMessage(GetAsyncOperationResponse) - -CreateNamespaceRequest = _reflection.GeneratedProtocolMessageType( - "CreateNamespaceRequest", - (_message.Message,), - { - "TagsEntry": _reflection.GeneratedProtocolMessageType( - "TagsEntry", - (_message.Message,), - { - "DESCRIPTOR": _CREATENAMESPACEREQUEST_TAGSENTRY, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest.TagsEntry) - }, - ), - "DESCRIPTOR": _CREATENAMESPACEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest) - }, -) -_sym_db.RegisterMessage(CreateNamespaceRequest) -_sym_db.RegisterMessage(CreateNamespaceRequest.TagsEntry) - -CreateNamespaceResponse = _reflection.GeneratedProtocolMessageType( - "CreateNamespaceResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATENAMESPACERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse) - }, -) -_sym_db.RegisterMessage(CreateNamespaceResponse) - -GetNamespacesRequest = _reflection.GeneratedProtocolMessageType( - "GetNamespacesRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACESREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespacesRequest) - }, -) -_sym_db.RegisterMessage(GetNamespacesRequest) - -GetNamespacesResponse = _reflection.GeneratedProtocolMessageType( - "GetNamespacesResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACESRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespacesResponse) - }, -) -_sym_db.RegisterMessage(GetNamespacesResponse) - -GetNamespaceRequest = _reflection.GeneratedProtocolMessageType( - "GetNamespaceRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespaceRequest) - }, -) -_sym_db.RegisterMessage(GetNamespaceRequest) - -GetNamespaceResponse = _reflection.GeneratedProtocolMessageType( - "GetNamespaceResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespaceResponse) - }, -) -_sym_db.RegisterMessage(GetNamespaceResponse) - -UpdateNamespaceRequest = _reflection.GeneratedProtocolMessageType( - "UpdateNamespaceRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENAMESPACEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest) - }, -) -_sym_db.RegisterMessage(UpdateNamespaceRequest) - -UpdateNamespaceResponse = _reflection.GeneratedProtocolMessageType( - "UpdateNamespaceResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENAMESPACERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateNamespaceResponse) - }, -) -_sym_db.RegisterMessage(UpdateNamespaceResponse) - -RenameCustomSearchAttributeRequest = _reflection.GeneratedProtocolMessageType( - "RenameCustomSearchAttributeRequest", - (_message.Message,), - { - "DESCRIPTOR": _RENAMECUSTOMSEARCHATTRIBUTEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeRequest) - }, -) -_sym_db.RegisterMessage(RenameCustomSearchAttributeRequest) - -RenameCustomSearchAttributeResponse = _reflection.GeneratedProtocolMessageType( - "RenameCustomSearchAttributeResponse", - (_message.Message,), - { - "DESCRIPTOR": _RENAMECUSTOMSEARCHATTRIBUTERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeResponse) - }, -) -_sym_db.RegisterMessage(RenameCustomSearchAttributeResponse) - -DeleteNamespaceRequest = _reflection.GeneratedProtocolMessageType( - "DeleteNamespaceRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETENAMESPACEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteNamespaceRequest) - }, -) -_sym_db.RegisterMessage(DeleteNamespaceRequest) - -DeleteNamespaceResponse = _reflection.GeneratedProtocolMessageType( - "DeleteNamespaceResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETENAMESPACERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteNamespaceResponse) - }, -) -_sym_db.RegisterMessage(DeleteNamespaceResponse) - -FailoverNamespaceRegionRequest = _reflection.GeneratedProtocolMessageType( - "FailoverNamespaceRegionRequest", - (_message.Message,), - { - "DESCRIPTOR": _FAILOVERNAMESPACEREGIONREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionRequest) - }, -) -_sym_db.RegisterMessage(FailoverNamespaceRegionRequest) - -FailoverNamespaceRegionResponse = _reflection.GeneratedProtocolMessageType( - "FailoverNamespaceRegionResponse", - (_message.Message,), - { - "DESCRIPTOR": _FAILOVERNAMESPACEREGIONRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionResponse) - }, -) -_sym_db.RegisterMessage(FailoverNamespaceRegionResponse) - -AddNamespaceRegionRequest = _reflection.GeneratedProtocolMessageType( - "AddNamespaceRegionRequest", - (_message.Message,), - { - "DESCRIPTOR": _ADDNAMESPACEREGIONREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.AddNamespaceRegionRequest) - }, -) -_sym_db.RegisterMessage(AddNamespaceRegionRequest) - -AddNamespaceRegionResponse = _reflection.GeneratedProtocolMessageType( - "AddNamespaceRegionResponse", - (_message.Message,), - { - "DESCRIPTOR": _ADDNAMESPACEREGIONRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.AddNamespaceRegionResponse) - }, -) -_sym_db.RegisterMessage(AddNamespaceRegionResponse) - -DeleteNamespaceRegionRequest = _reflection.GeneratedProtocolMessageType( - "DeleteNamespaceRegionRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETENAMESPACEREGIONREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteNamespaceRegionRequest) - }, -) -_sym_db.RegisterMessage(DeleteNamespaceRegionRequest) - -DeleteNamespaceRegionResponse = _reflection.GeneratedProtocolMessageType( - "DeleteNamespaceRegionResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETENAMESPACEREGIONRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteNamespaceRegionResponse) - }, -) -_sym_db.RegisterMessage(DeleteNamespaceRegionResponse) - -GetRegionsRequest = _reflection.GeneratedProtocolMessageType( - "GetRegionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETREGIONSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetRegionsRequest) - }, -) -_sym_db.RegisterMessage(GetRegionsRequest) - -GetRegionsResponse = _reflection.GeneratedProtocolMessageType( - "GetRegionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETREGIONSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetRegionsResponse) - }, -) -_sym_db.RegisterMessage(GetRegionsResponse) - -GetRegionRequest = _reflection.GeneratedProtocolMessageType( - "GetRegionRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETREGIONREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetRegionRequest) - }, -) -_sym_db.RegisterMessage(GetRegionRequest) - -GetRegionResponse = _reflection.GeneratedProtocolMessageType( - "GetRegionResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETREGIONRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetRegionResponse) - }, -) -_sym_db.RegisterMessage(GetRegionResponse) - -GetApiKeysRequest = _reflection.GeneratedProtocolMessageType( - "GetApiKeysRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETAPIKEYSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetApiKeysRequest) - }, -) -_sym_db.RegisterMessage(GetApiKeysRequest) - -GetApiKeysResponse = _reflection.GeneratedProtocolMessageType( - "GetApiKeysResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETAPIKEYSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetApiKeysResponse) - }, -) -_sym_db.RegisterMessage(GetApiKeysResponse) - -GetApiKeyRequest = _reflection.GeneratedProtocolMessageType( - "GetApiKeyRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETAPIKEYREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetApiKeyRequest) - }, -) -_sym_db.RegisterMessage(GetApiKeyRequest) - -GetApiKeyResponse = _reflection.GeneratedProtocolMessageType( - "GetApiKeyResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETAPIKEYRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetApiKeyResponse) - }, -) -_sym_db.RegisterMessage(GetApiKeyResponse) - -CreateApiKeyRequest = _reflection.GeneratedProtocolMessageType( - "CreateApiKeyRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEAPIKEYREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest) - }, -) -_sym_db.RegisterMessage(CreateApiKeyRequest) - -CreateApiKeyResponse = _reflection.GeneratedProtocolMessageType( - "CreateApiKeyResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATEAPIKEYRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateApiKeyResponse) - }, -) -_sym_db.RegisterMessage(CreateApiKeyResponse) - -UpdateApiKeyRequest = _reflection.GeneratedProtocolMessageType( - "UpdateApiKeyRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEAPIKEYREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateApiKeyRequest) - }, -) -_sym_db.RegisterMessage(UpdateApiKeyRequest) - -UpdateApiKeyResponse = _reflection.GeneratedProtocolMessageType( - "UpdateApiKeyResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEAPIKEYRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateApiKeyResponse) - }, -) -_sym_db.RegisterMessage(UpdateApiKeyResponse) - -DeleteApiKeyRequest = _reflection.GeneratedProtocolMessageType( - "DeleteApiKeyRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEAPIKEYREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteApiKeyRequest) - }, -) -_sym_db.RegisterMessage(DeleteApiKeyRequest) - -DeleteApiKeyResponse = _reflection.GeneratedProtocolMessageType( - "DeleteApiKeyResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETEAPIKEYRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteApiKeyResponse) - }, -) -_sym_db.RegisterMessage(DeleteApiKeyResponse) - -GetNexusEndpointsRequest = _reflection.GeneratedProtocolMessageType( - "GetNexusEndpointsRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETNEXUSENDPOINTSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNexusEndpointsRequest) - }, -) -_sym_db.RegisterMessage(GetNexusEndpointsRequest) - -GetNexusEndpointsResponse = _reflection.GeneratedProtocolMessageType( - "GetNexusEndpointsResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETNEXUSENDPOINTSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNexusEndpointsResponse) - }, -) -_sym_db.RegisterMessage(GetNexusEndpointsResponse) - -GetNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( - "GetNexusEndpointRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETNEXUSENDPOINTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNexusEndpointRequest) - }, -) -_sym_db.RegisterMessage(GetNexusEndpointRequest) - -GetNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( - "GetNexusEndpointResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETNEXUSENDPOINTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNexusEndpointResponse) - }, -) -_sym_db.RegisterMessage(GetNexusEndpointResponse) - -CreateNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( - "CreateNexusEndpointRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATENEXUSENDPOINTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateNexusEndpointRequest) - }, -) -_sym_db.RegisterMessage(CreateNexusEndpointRequest) - -CreateNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( - "CreateNexusEndpointResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATENEXUSENDPOINTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateNexusEndpointResponse) - }, -) -_sym_db.RegisterMessage(CreateNexusEndpointResponse) - -UpdateNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( - "UpdateNexusEndpointRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENEXUSENDPOINTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointRequest) - }, -) -_sym_db.RegisterMessage(UpdateNexusEndpointRequest) - -UpdateNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( - "UpdateNexusEndpointResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENEXUSENDPOINTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointResponse) - }, -) -_sym_db.RegisterMessage(UpdateNexusEndpointResponse) - -DeleteNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( - "DeleteNexusEndpointRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETENEXUSENDPOINTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointRequest) - }, -) -_sym_db.RegisterMessage(DeleteNexusEndpointRequest) - -DeleteNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( - "DeleteNexusEndpointResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETENEXUSENDPOINTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointResponse) - }, -) -_sym_db.RegisterMessage(DeleteNexusEndpointResponse) - -GetUserGroupsRequest = _reflection.GeneratedProtocolMessageType( - "GetUserGroupsRequest", - (_message.Message,), - { - "GoogleGroupFilter": _reflection.GeneratedProtocolMessageType( - "GoogleGroupFilter", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERGROUPSREQUEST_GOOGLEGROUPFILTER, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest.GoogleGroupFilter) - }, - ), - "SCIMGroupFilter": _reflection.GeneratedProtocolMessageType( - "SCIMGroupFilter", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERGROUPSREQUEST_SCIMGROUPFILTER, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest.SCIMGroupFilter) - }, - ), - "DESCRIPTOR": _GETUSERGROUPSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest) - }, -) -_sym_db.RegisterMessage(GetUserGroupsRequest) -_sym_db.RegisterMessage(GetUserGroupsRequest.GoogleGroupFilter) -_sym_db.RegisterMessage(GetUserGroupsRequest.SCIMGroupFilter) - -GetUserGroupsResponse = _reflection.GeneratedProtocolMessageType( - "GetUserGroupsResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERGROUPSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupsResponse) - }, -) -_sym_db.RegisterMessage(GetUserGroupsResponse) - -GetUserGroupRequest = _reflection.GeneratedProtocolMessageType( - "GetUserGroupRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERGROUPREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupRequest) - }, -) -_sym_db.RegisterMessage(GetUserGroupRequest) - -GetUserGroupResponse = _reflection.GeneratedProtocolMessageType( - "GetUserGroupResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERGROUPRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupResponse) - }, -) -_sym_db.RegisterMessage(GetUserGroupResponse) - -CreateUserGroupRequest = _reflection.GeneratedProtocolMessageType( - "CreateUserGroupRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEUSERGROUPREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateUserGroupRequest) - }, -) -_sym_db.RegisterMessage(CreateUserGroupRequest) - -CreateUserGroupResponse = _reflection.GeneratedProtocolMessageType( - "CreateUserGroupResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATEUSERGROUPRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateUserGroupResponse) - }, -) -_sym_db.RegisterMessage(CreateUserGroupResponse) - -UpdateUserGroupRequest = _reflection.GeneratedProtocolMessageType( - "UpdateUserGroupRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEUSERGROUPREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateUserGroupRequest) - }, -) -_sym_db.RegisterMessage(UpdateUserGroupRequest) - -UpdateUserGroupResponse = _reflection.GeneratedProtocolMessageType( - "UpdateUserGroupResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEUSERGROUPRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateUserGroupResponse) - }, -) -_sym_db.RegisterMessage(UpdateUserGroupResponse) - -DeleteUserGroupRequest = _reflection.GeneratedProtocolMessageType( - "DeleteUserGroupRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEUSERGROUPREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteUserGroupRequest) - }, -) -_sym_db.RegisterMessage(DeleteUserGroupRequest) - -DeleteUserGroupResponse = _reflection.GeneratedProtocolMessageType( - "DeleteUserGroupResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETEUSERGROUPRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteUserGroupResponse) - }, -) -_sym_db.RegisterMessage(DeleteUserGroupResponse) - -SetUserGroupNamespaceAccessRequest = _reflection.GeneratedProtocolMessageType( - "SetUserGroupNamespaceAccessRequest", - (_message.Message,), - { - "DESCRIPTOR": _SETUSERGROUPNAMESPACEACCESSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessRequest) - }, -) -_sym_db.RegisterMessage(SetUserGroupNamespaceAccessRequest) - -SetUserGroupNamespaceAccessResponse = _reflection.GeneratedProtocolMessageType( - "SetUserGroupNamespaceAccessResponse", - (_message.Message,), - { - "DESCRIPTOR": _SETUSERGROUPNAMESPACEACCESSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessResponse) - }, -) -_sym_db.RegisterMessage(SetUserGroupNamespaceAccessResponse) - -AddUserGroupMemberRequest = _reflection.GeneratedProtocolMessageType( - "AddUserGroupMemberRequest", - (_message.Message,), - { - "DESCRIPTOR": _ADDUSERGROUPMEMBERREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.AddUserGroupMemberRequest) - }, -) -_sym_db.RegisterMessage(AddUserGroupMemberRequest) - -AddUserGroupMemberResponse = _reflection.GeneratedProtocolMessageType( - "AddUserGroupMemberResponse", - (_message.Message,), - { - "DESCRIPTOR": _ADDUSERGROUPMEMBERRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.AddUserGroupMemberResponse) - }, -) -_sym_db.RegisterMessage(AddUserGroupMemberResponse) - -RemoveUserGroupMemberRequest = _reflection.GeneratedProtocolMessageType( - "RemoveUserGroupMemberRequest", - (_message.Message,), - { - "DESCRIPTOR": _REMOVEUSERGROUPMEMBERREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.RemoveUserGroupMemberRequest) - }, -) -_sym_db.RegisterMessage(RemoveUserGroupMemberRequest) - -RemoveUserGroupMemberResponse = _reflection.GeneratedProtocolMessageType( - "RemoveUserGroupMemberResponse", - (_message.Message,), - { - "DESCRIPTOR": _REMOVEUSERGROUPMEMBERRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.RemoveUserGroupMemberResponse) - }, -) -_sym_db.RegisterMessage(RemoveUserGroupMemberResponse) - -GetUserGroupMembersRequest = _reflection.GeneratedProtocolMessageType( - "GetUserGroupMembersRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERGROUPMEMBERSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupMembersRequest) - }, -) -_sym_db.RegisterMessage(GetUserGroupMembersRequest) - -GetUserGroupMembersResponse = _reflection.GeneratedProtocolMessageType( - "GetUserGroupMembersResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERGROUPMEMBERSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupMembersResponse) - }, -) -_sym_db.RegisterMessage(GetUserGroupMembersResponse) - -CreateServiceAccountRequest = _reflection.GeneratedProtocolMessageType( - "CreateServiceAccountRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATESERVICEACCOUNTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateServiceAccountRequest) - }, -) -_sym_db.RegisterMessage(CreateServiceAccountRequest) - -CreateServiceAccountResponse = _reflection.GeneratedProtocolMessageType( - "CreateServiceAccountResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATESERVICEACCOUNTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateServiceAccountResponse) - }, -) -_sym_db.RegisterMessage(CreateServiceAccountResponse) - -GetServiceAccountRequest = _reflection.GeneratedProtocolMessageType( - "GetServiceAccountRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETSERVICEACCOUNTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetServiceAccountRequest) - }, -) -_sym_db.RegisterMessage(GetServiceAccountRequest) - -GetServiceAccountResponse = _reflection.GeneratedProtocolMessageType( - "GetServiceAccountResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETSERVICEACCOUNTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetServiceAccountResponse) - }, -) -_sym_db.RegisterMessage(GetServiceAccountResponse) - -GetServiceAccountsRequest = _reflection.GeneratedProtocolMessageType( - "GetServiceAccountsRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETSERVICEACCOUNTSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetServiceAccountsRequest) - }, -) -_sym_db.RegisterMessage(GetServiceAccountsRequest) - -GetServiceAccountsResponse = _reflection.GeneratedProtocolMessageType( - "GetServiceAccountsResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETSERVICEACCOUNTSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetServiceAccountsResponse) - }, -) -_sym_db.RegisterMessage(GetServiceAccountsResponse) - -UpdateServiceAccountRequest = _reflection.GeneratedProtocolMessageType( - "UpdateServiceAccountRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATESERVICEACCOUNTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest) - }, -) -_sym_db.RegisterMessage(UpdateServiceAccountRequest) - -UpdateServiceAccountResponse = _reflection.GeneratedProtocolMessageType( - "UpdateServiceAccountResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATESERVICEACCOUNTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateServiceAccountResponse) - }, -) -_sym_db.RegisterMessage(UpdateServiceAccountResponse) - -SetServiceAccountNamespaceAccessRequest = _reflection.GeneratedProtocolMessageType( - "SetServiceAccountNamespaceAccessRequest", - (_message.Message,), - { - "DESCRIPTOR": _SETSERVICEACCOUNTNAMESPACEACCESSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.SetServiceAccountNamespaceAccessRequest) - }, -) -_sym_db.RegisterMessage(SetServiceAccountNamespaceAccessRequest) - -SetServiceAccountNamespaceAccessResponse = _reflection.GeneratedProtocolMessageType( - "SetServiceAccountNamespaceAccessResponse", - (_message.Message,), - { - "DESCRIPTOR": _SETSERVICEACCOUNTNAMESPACEACCESSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.SetServiceAccountNamespaceAccessResponse) - }, -) -_sym_db.RegisterMessage(SetServiceAccountNamespaceAccessResponse) - -DeleteServiceAccountRequest = _reflection.GeneratedProtocolMessageType( - "DeleteServiceAccountRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETESERVICEACCOUNTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteServiceAccountRequest) - }, -) -_sym_db.RegisterMessage(DeleteServiceAccountRequest) - -DeleteServiceAccountResponse = _reflection.GeneratedProtocolMessageType( - "DeleteServiceAccountResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETESERVICEACCOUNTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteServiceAccountResponse) - }, -) -_sym_db.RegisterMessage(DeleteServiceAccountResponse) - -GetUsageRequest = _reflection.GeneratedProtocolMessageType( - "GetUsageRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETUSAGEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUsageRequest) - }, -) -_sym_db.RegisterMessage(GetUsageRequest) - -GetUsageResponse = _reflection.GeneratedProtocolMessageType( - "GetUsageResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETUSAGERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUsageResponse) - }, -) -_sym_db.RegisterMessage(GetUsageResponse) - -GetAccountRequest = _reflection.GeneratedProtocolMessageType( - "GetAccountRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETACCOUNTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAccountRequest) - }, -) -_sym_db.RegisterMessage(GetAccountRequest) - -GetAccountResponse = _reflection.GeneratedProtocolMessageType( - "GetAccountResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETACCOUNTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAccountResponse) - }, -) -_sym_db.RegisterMessage(GetAccountResponse) - -UpdateAccountRequest = _reflection.GeneratedProtocolMessageType( - "UpdateAccountRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEACCOUNTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateAccountRequest) - }, -) -_sym_db.RegisterMessage(UpdateAccountRequest) - -UpdateAccountResponse = _reflection.GeneratedProtocolMessageType( - "UpdateAccountResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEACCOUNTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateAccountResponse) - }, -) -_sym_db.RegisterMessage(UpdateAccountResponse) - -CreateNamespaceExportSinkRequest = _reflection.GeneratedProtocolMessageType( - "CreateNamespaceExportSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATENAMESPACEEXPORTSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkRequest) - }, -) -_sym_db.RegisterMessage(CreateNamespaceExportSinkRequest) - -CreateNamespaceExportSinkResponse = _reflection.GeneratedProtocolMessageType( - "CreateNamespaceExportSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATENAMESPACEEXPORTSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkResponse) - }, -) -_sym_db.RegisterMessage(CreateNamespaceExportSinkResponse) - -GetNamespaceExportSinkRequest = _reflection.GeneratedProtocolMessageType( - "GetNamespaceExportSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACEEXPORTSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkRequest) - }, -) -_sym_db.RegisterMessage(GetNamespaceExportSinkRequest) - -GetNamespaceExportSinkResponse = _reflection.GeneratedProtocolMessageType( - "GetNamespaceExportSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACEEXPORTSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkResponse) - }, -) -_sym_db.RegisterMessage(GetNamespaceExportSinkResponse) - -GetNamespaceExportSinksRequest = _reflection.GeneratedProtocolMessageType( - "GetNamespaceExportSinksRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACEEXPORTSINKSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksRequest) - }, -) -_sym_db.RegisterMessage(GetNamespaceExportSinksRequest) - -GetNamespaceExportSinksResponse = _reflection.GeneratedProtocolMessageType( - "GetNamespaceExportSinksResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACEEXPORTSINKSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksResponse) - }, -) -_sym_db.RegisterMessage(GetNamespaceExportSinksResponse) - -UpdateNamespaceExportSinkRequest = _reflection.GeneratedProtocolMessageType( - "UpdateNamespaceExportSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENAMESPACEEXPORTSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkRequest) - }, -) -_sym_db.RegisterMessage(UpdateNamespaceExportSinkRequest) - -UpdateNamespaceExportSinkResponse = _reflection.GeneratedProtocolMessageType( - "UpdateNamespaceExportSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENAMESPACEEXPORTSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkResponse) - }, -) -_sym_db.RegisterMessage(UpdateNamespaceExportSinkResponse) - -DeleteNamespaceExportSinkRequest = _reflection.GeneratedProtocolMessageType( - "DeleteNamespaceExportSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETENAMESPACEEXPORTSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkRequest) - }, -) -_sym_db.RegisterMessage(DeleteNamespaceExportSinkRequest) - -DeleteNamespaceExportSinkResponse = _reflection.GeneratedProtocolMessageType( - "DeleteNamespaceExportSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETENAMESPACEEXPORTSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkResponse) - }, -) -_sym_db.RegisterMessage(DeleteNamespaceExportSinkResponse) - -ValidateNamespaceExportSinkRequest = _reflection.GeneratedProtocolMessageType( - "ValidateNamespaceExportSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _VALIDATENAMESPACEEXPORTSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkRequest) - }, -) -_sym_db.RegisterMessage(ValidateNamespaceExportSinkRequest) - -ValidateNamespaceExportSinkResponse = _reflection.GeneratedProtocolMessageType( - "ValidateNamespaceExportSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _VALIDATENAMESPACEEXPORTSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkResponse) - }, -) -_sym_db.RegisterMessage(ValidateNamespaceExportSinkResponse) - -UpdateNamespaceTagsRequest = _reflection.GeneratedProtocolMessageType( - "UpdateNamespaceTagsRequest", - (_message.Message,), - { - "TagsToUpsertEntry": _reflection.GeneratedProtocolMessageType( - "TagsToUpsertEntry", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENAMESPACETAGSREQUEST_TAGSTOUPSERTENTRY, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsRequest.TagsToUpsertEntry) - }, - ), - "DESCRIPTOR": _UPDATENAMESPACETAGSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsRequest) - }, -) -_sym_db.RegisterMessage(UpdateNamespaceTagsRequest) -_sym_db.RegisterMessage(UpdateNamespaceTagsRequest.TagsToUpsertEntry) - -UpdateNamespaceTagsResponse = _reflection.GeneratedProtocolMessageType( - "UpdateNamespaceTagsResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENAMESPACETAGSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsResponse) - }, -) -_sym_db.RegisterMessage(UpdateNamespaceTagsResponse) - -CreateConnectivityRuleRequest = _reflection.GeneratedProtocolMessageType( - "CreateConnectivityRuleRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATECONNECTIVITYRULEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateConnectivityRuleRequest) - }, -) -_sym_db.RegisterMessage(CreateConnectivityRuleRequest) - -CreateConnectivityRuleResponse = _reflection.GeneratedProtocolMessageType( - "CreateConnectivityRuleResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATECONNECTIVITYRULERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateConnectivityRuleResponse) - }, -) -_sym_db.RegisterMessage(CreateConnectivityRuleResponse) - -GetConnectivityRuleRequest = _reflection.GeneratedProtocolMessageType( - "GetConnectivityRuleRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETCONNECTIVITYRULEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetConnectivityRuleRequest) - }, -) -_sym_db.RegisterMessage(GetConnectivityRuleRequest) - -GetConnectivityRuleResponse = _reflection.GeneratedProtocolMessageType( - "GetConnectivityRuleResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETCONNECTIVITYRULERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetConnectivityRuleResponse) - }, -) -_sym_db.RegisterMessage(GetConnectivityRuleResponse) - -GetConnectivityRulesRequest = _reflection.GeneratedProtocolMessageType( - "GetConnectivityRulesRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETCONNECTIVITYRULESREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetConnectivityRulesRequest) - }, -) -_sym_db.RegisterMessage(GetConnectivityRulesRequest) - -GetConnectivityRulesResponse = _reflection.GeneratedProtocolMessageType( - "GetConnectivityRulesResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETCONNECTIVITYRULESRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetConnectivityRulesResponse) - }, -) -_sym_db.RegisterMessage(GetConnectivityRulesResponse) - -DeleteConnectivityRuleRequest = _reflection.GeneratedProtocolMessageType( - "DeleteConnectivityRuleRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETECONNECTIVITYRULEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteConnectivityRuleRequest) - }, -) -_sym_db.RegisterMessage(DeleteConnectivityRuleRequest) - -DeleteConnectivityRuleResponse = _reflection.GeneratedProtocolMessageType( - "DeleteConnectivityRuleResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETECONNECTIVITYRULERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteConnectivityRuleResponse) - }, -) -_sym_db.RegisterMessage(DeleteConnectivityRuleResponse) - -GetAuditLogsRequest = _reflection.GeneratedProtocolMessageType( - "GetAuditLogsRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETAUDITLOGSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAuditLogsRequest) - }, -) -_sym_db.RegisterMessage(GetAuditLogsRequest) - -GetAuditLogsResponse = _reflection.GeneratedProtocolMessageType( - "GetAuditLogsResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETAUDITLOGSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAuditLogsResponse) - }, -) -_sym_db.RegisterMessage(GetAuditLogsResponse) - -ValidateAccountAuditLogSinkRequest = _reflection.GeneratedProtocolMessageType( - "ValidateAccountAuditLogSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _VALIDATEACCOUNTAUDITLOGSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.ValidateAccountAuditLogSinkRequest) - }, -) -_sym_db.RegisterMessage(ValidateAccountAuditLogSinkRequest) - -ValidateAccountAuditLogSinkResponse = _reflection.GeneratedProtocolMessageType( - "ValidateAccountAuditLogSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _VALIDATEACCOUNTAUDITLOGSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.ValidateAccountAuditLogSinkResponse) - }, -) -_sym_db.RegisterMessage(ValidateAccountAuditLogSinkResponse) - -CreateAccountAuditLogSinkRequest = _reflection.GeneratedProtocolMessageType( - "CreateAccountAuditLogSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEACCOUNTAUDITLOGSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateAccountAuditLogSinkRequest) - }, -) -_sym_db.RegisterMessage(CreateAccountAuditLogSinkRequest) - -CreateAccountAuditLogSinkResponse = _reflection.GeneratedProtocolMessageType( - "CreateAccountAuditLogSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATEACCOUNTAUDITLOGSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateAccountAuditLogSinkResponse) - }, -) -_sym_db.RegisterMessage(CreateAccountAuditLogSinkResponse) - -GetAccountAuditLogSinkRequest = _reflection.GeneratedProtocolMessageType( - "GetAccountAuditLogSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETACCOUNTAUDITLOGSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAccountAuditLogSinkRequest) - }, -) -_sym_db.RegisterMessage(GetAccountAuditLogSinkRequest) - -GetAccountAuditLogSinkResponse = _reflection.GeneratedProtocolMessageType( - "GetAccountAuditLogSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETACCOUNTAUDITLOGSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAccountAuditLogSinkResponse) - }, -) -_sym_db.RegisterMessage(GetAccountAuditLogSinkResponse) - -GetAccountAuditLogSinksRequest = _reflection.GeneratedProtocolMessageType( - "GetAccountAuditLogSinksRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETACCOUNTAUDITLOGSINKSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAccountAuditLogSinksRequest) - }, -) -_sym_db.RegisterMessage(GetAccountAuditLogSinksRequest) - -GetAccountAuditLogSinksResponse = _reflection.GeneratedProtocolMessageType( - "GetAccountAuditLogSinksResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETACCOUNTAUDITLOGSINKSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetAccountAuditLogSinksResponse) - }, -) -_sym_db.RegisterMessage(GetAccountAuditLogSinksResponse) - -UpdateAccountAuditLogSinkRequest = _reflection.GeneratedProtocolMessageType( - "UpdateAccountAuditLogSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEACCOUNTAUDITLOGSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateAccountAuditLogSinkRequest) - }, -) -_sym_db.RegisterMessage(UpdateAccountAuditLogSinkRequest) - -UpdateAccountAuditLogSinkResponse = _reflection.GeneratedProtocolMessageType( - "UpdateAccountAuditLogSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEACCOUNTAUDITLOGSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateAccountAuditLogSinkResponse) - }, -) -_sym_db.RegisterMessage(UpdateAccountAuditLogSinkResponse) - -DeleteAccountAuditLogSinkRequest = _reflection.GeneratedProtocolMessageType( - "DeleteAccountAuditLogSinkRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEACCOUNTAUDITLOGSINKREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteAccountAuditLogSinkRequest) - }, -) -_sym_db.RegisterMessage(DeleteAccountAuditLogSinkRequest) - -DeleteAccountAuditLogSinkResponse = _reflection.GeneratedProtocolMessageType( - "DeleteAccountAuditLogSinkResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETEACCOUNTAUDITLOGSINKRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteAccountAuditLogSinkResponse) - }, -) -_sym_db.RegisterMessage(DeleteAccountAuditLogSinkResponse) - -GetNamespaceCapacityInfoRequest = _reflection.GeneratedProtocolMessageType( - "GetNamespaceCapacityInfoRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACECAPACITYINFOREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespaceCapacityInfoRequest) - }, -) -_sym_db.RegisterMessage(GetNamespaceCapacityInfoRequest) - -GetNamespaceCapacityInfoResponse = _reflection.GeneratedProtocolMessageType( - "GetNamespaceCapacityInfoResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETNAMESPACECAPACITYINFORESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetNamespaceCapacityInfoResponse) - }, -) -_sym_db.RegisterMessage(GetNamespaceCapacityInfoResponse) - -CreateBillingReportRequest = _reflection.GeneratedProtocolMessageType( - "CreateBillingReportRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEBILLINGREPORTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateBillingReportRequest) - }, -) -_sym_db.RegisterMessage(CreateBillingReportRequest) - -CreateBillingReportResponse = _reflection.GeneratedProtocolMessageType( - "CreateBillingReportResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATEBILLINGREPORTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateBillingReportResponse) - }, -) -_sym_db.RegisterMessage(CreateBillingReportResponse) - -GetBillingReportRequest = _reflection.GeneratedProtocolMessageType( - "GetBillingReportRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETBILLINGREPORTREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetBillingReportRequest) - }, -) -_sym_db.RegisterMessage(GetBillingReportRequest) - -GetBillingReportResponse = _reflection.GeneratedProtocolMessageType( - "GetBillingReportResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETBILLINGREPORTRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetBillingReportResponse) - }, -) -_sym_db.RegisterMessage(GetBillingReportResponse) - -GetCustomRolesRequest = _reflection.GeneratedProtocolMessageType( - "GetCustomRolesRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETCUSTOMROLESREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetCustomRolesRequest) - }, -) -_sym_db.RegisterMessage(GetCustomRolesRequest) - -GetCustomRolesResponse = _reflection.GeneratedProtocolMessageType( - "GetCustomRolesResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETCUSTOMROLESRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetCustomRolesResponse) - }, -) -_sym_db.RegisterMessage(GetCustomRolesResponse) - -GetCustomRoleRequest = _reflection.GeneratedProtocolMessageType( - "GetCustomRoleRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETCUSTOMROLEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetCustomRoleRequest) - }, -) -_sym_db.RegisterMessage(GetCustomRoleRequest) - -GetCustomRoleResponse = _reflection.GeneratedProtocolMessageType( - "GetCustomRoleResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETCUSTOMROLERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetCustomRoleResponse) - }, -) -_sym_db.RegisterMessage(GetCustomRoleResponse) - -CreateCustomRoleRequest = _reflection.GeneratedProtocolMessageType( - "CreateCustomRoleRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATECUSTOMROLEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateCustomRoleRequest) - }, -) -_sym_db.RegisterMessage(CreateCustomRoleRequest) - -CreateCustomRoleResponse = _reflection.GeneratedProtocolMessageType( - "CreateCustomRoleResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATECUSTOMROLERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.CreateCustomRoleResponse) - }, -) -_sym_db.RegisterMessage(CreateCustomRoleResponse) - -UpdateCustomRoleRequest = _reflection.GeneratedProtocolMessageType( - "UpdateCustomRoleRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATECUSTOMROLEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateCustomRoleRequest) - }, -) -_sym_db.RegisterMessage(UpdateCustomRoleRequest) - -UpdateCustomRoleResponse = _reflection.GeneratedProtocolMessageType( - "UpdateCustomRoleResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATECUSTOMROLERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.UpdateCustomRoleResponse) - }, -) -_sym_db.RegisterMessage(UpdateCustomRoleResponse) - -DeleteCustomRoleRequest = _reflection.GeneratedProtocolMessageType( - "DeleteCustomRoleRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETECUSTOMROLEREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteCustomRoleRequest) - }, -) -_sym_db.RegisterMessage(DeleteCustomRoleRequest) - -DeleteCustomRoleResponse = _reflection.GeneratedProtocolMessageType( - "DeleteCustomRoleResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETECUSTOMROLERESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.DeleteCustomRoleResponse) - }, -) -_sym_db.RegisterMessage(DeleteCustomRoleResponse) - -GetUserNamespaceAssignmentsRequest = _reflection.GeneratedProtocolMessageType( - "GetUserNamespaceAssignmentsRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERNAMESPACEASSIGNMENTSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserNamespaceAssignmentsRequest) - }, -) -_sym_db.RegisterMessage(GetUserNamespaceAssignmentsRequest) - -GetUserNamespaceAssignmentsResponse = _reflection.GeneratedProtocolMessageType( - "GetUserNamespaceAssignmentsResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERNAMESPACEASSIGNMENTSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserNamespaceAssignmentsResponse) - }, -) -_sym_db.RegisterMessage(GetUserNamespaceAssignmentsResponse) - -GetServiceAccountNamespaceAssignmentsRequest = _reflection.GeneratedProtocolMessageType( - "GetServiceAccountNamespaceAssignmentsRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETSERVICEACCOUNTNAMESPACEASSIGNMENTSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetServiceAccountNamespaceAssignmentsRequest) - }, -) -_sym_db.RegisterMessage(GetServiceAccountNamespaceAssignmentsRequest) - -GetServiceAccountNamespaceAssignmentsResponse = ( - _reflection.GeneratedProtocolMessageType( - "GetServiceAccountNamespaceAssignmentsResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETSERVICEACCOUNTNAMESPACEASSIGNMENTSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetServiceAccountNamespaceAssignmentsResponse) - }, - ) -) -_sym_db.RegisterMessage(GetServiceAccountNamespaceAssignmentsResponse) - -GetUserGroupNamespaceAssignmentsRequest = _reflection.GeneratedProtocolMessageType( - "GetUserGroupNamespaceAssignmentsRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERGROUPNAMESPACEASSIGNMENTSREQUEST, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupNamespaceAssignmentsRequest) - }, -) -_sym_db.RegisterMessage(GetUserGroupNamespaceAssignmentsRequest) - -GetUserGroupNamespaceAssignmentsResponse = _reflection.GeneratedProtocolMessageType( - "GetUserGroupNamespaceAssignmentsResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETUSERGROUPNAMESPACEASSIGNMENTSRESPONSE, - "__module__": "temporalio.api.cloud.cloudservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.cloudservice.v1.GetUserGroupNamespaceAssignmentsResponse) - }, -) -_sym_db.RegisterMessage(GetUserGroupNamespaceAssignmentsResponse) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n%io.temporal.api.cloud.cloudservice.v1B\024RequestResponseProtoP\001Z5go.temporal.io/api/cloud/cloudservice/v1;cloudservice\252\002$Temporalio.Api.Cloud.CloudService.V1\352\002(Temporalio::Api::Cloud::CloudService::V1" diff --git a/temporalio/api/cloud/cloudservice/v1/request_response_pb2.pyi b/temporalio/api/cloud/cloudservice/v1/request_response_pb2.pyi index 149020039..703264d14 100644 --- a/temporalio/api/cloud/cloudservice/v1/request_response_pb2.pyi +++ b/temporalio/api/cloud/cloudservice/v1/request_response_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers @@ -23,13 +23,9 @@ import temporalio.api.cloud.operation.v1.message_pb2 import temporalio.api.cloud.region.v1.message_pb2 import temporalio.api.cloud.usage.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class GetCurrentIdentityRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -39,6 +35,7 @@ class GetCurrentIdentityRequest(google.protobuf.message.Message): global___GetCurrentIdentityRequest = GetCurrentIdentityRequest +@typing.final class GetCurrentIdentityResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -48,14 +45,17 @@ class GetCurrentIdentityResponse(google.protobuf.message.Message): @property def user(self) -> temporalio.api.cloud.identity.v1.message_pb2.User: """The user is a regular user""" + @property def service_account( self, ) -> temporalio.api.cloud.identity.v1.message_pb2.ServiceAccount: """The user is a service account""" + @property def principal_api_key(self) -> temporalio.api.cloud.identity.v1.message_pb2.ApiKey: """The API key info used to authenticate the request, if any""" + def __init__( self, *, @@ -67,7 +67,7 @@ class GetCurrentIdentityResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "principal", b"principal", "principal_api_key", @@ -80,7 +80,7 @@ class GetCurrentIdentityResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "principal", b"principal", "principal_api_key", @@ -92,11 +92,12 @@ class GetCurrentIdentityResponse(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["principal", b"principal"] - ) -> typing_extensions.Literal["user", "service_account"] | None: ... + self, oneof_group: typing.Literal["principal", b"principal"] + ) -> typing.Literal["user", "service_account"] | None: ... global___GetCurrentIdentityResponse = GetCurrentIdentityResponse +@typing.final class GetUsersRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -124,7 +125,7 @@ class GetUsersRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "email", b"email", "namespace", @@ -138,11 +139,14 @@ class GetUsersRequest(google.protobuf.message.Message): global___GetUsersRequest = GetUsersRequest +@typing.final class GetUsersResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor USERS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token""" @property def users( self, @@ -150,8 +154,7 @@ class GetUsersResponse(google.protobuf.message.Message): temporalio.api.cloud.identity.v1.message_pb2.User ]: """The list of users in ascending ids order""" - next_page_token: builtins.str - """The next page's token""" + def __init__( self, *, @@ -163,13 +166,14 @@ class GetUsersResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "users", b"users" ], ) -> None: ... global___GetUsersResponse = GetUsersResponse +@typing.final class GetUserRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -181,12 +185,11 @@ class GetUserRequest(google.protobuf.message.Message): *, user_id: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["user_id", b"user_id"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["user_id", b"user_id"]) -> None: ... global___GetUserRequest = GetUserRequest +@typing.final class GetUserResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -194,30 +197,31 @@ class GetUserResponse(google.protobuf.message.Message): @property def user(self) -> temporalio.api.cloud.identity.v1.message_pb2.User: """The user""" + def __init__( self, *, user: temporalio.api.cloud.identity.v1.message_pb2.User | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["user", b"user"] + self, field_name: typing.Literal["user", b"user"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["user", b"user"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["user", b"user"]) -> None: ... global___GetUserResponse = GetUserResponse +@typing.final class CreateUserRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int + async_operation_id: builtins.str + """The id to use for this async operation - optional""" @property def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.UserSpec: """The spec for the user to invite""" - async_operation_id: builtins.str - """The id to use for this async operation - optional""" + def __init__( self, *, @@ -225,17 +229,18 @@ class CreateUserRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", b"spec" ], ) -> None: ... global___CreateUserRequest = CreateUserRequest +@typing.final class CreateUserResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -248,6 +253,7 @@ class CreateUserResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation""" + def __init__( self, *, @@ -256,18 +262,18 @@ class CreateUserResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation", b"async_operation", "user_id", b"user_id" ], ) -> None: ... global___CreateUserResponse = CreateUserResponse +@typing.final class UpdateUserRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -277,15 +283,16 @@ class UpdateUserRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int user_id: builtins.str """The id of the user to update""" - @property - def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.UserSpec: - """The new user specification""" resource_version: builtins.str """The version of the user for which this update is intended for The latest version can be found in the GetUser operation response """ async_operation_id: builtins.str """The id to use for this async operation - optional""" + @property + def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.UserSpec: + """The new user specification""" + def __init__( self, *, @@ -295,11 +302,11 @@ class UpdateUserRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "resource_version", @@ -313,6 +320,7 @@ class UpdateUserRequest(google.protobuf.message.Message): global___UpdateUserRequest = UpdateUserRequest +@typing.final class UpdateUserResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -322,6 +330,7 @@ class UpdateUserResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation""" + def __init__( self, *, @@ -329,16 +338,15 @@ class UpdateUserResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateUserResponse = UpdateUserResponse +@typing.final class DeleteUserRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -362,7 +370,7 @@ class DeleteUserRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "resource_version", @@ -374,6 +382,7 @@ class DeleteUserRequest(google.protobuf.message.Message): global___DeleteUserRequest = DeleteUserRequest +@typing.final class DeleteUserResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -383,6 +392,7 @@ class DeleteUserResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation""" + def __init__( self, *, @@ -390,16 +400,15 @@ class DeleteUserResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteUserResponse = DeleteUserResponse +@typing.final class SetUserNamespaceAccessRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -412,15 +421,16 @@ class SetUserNamespaceAccessRequest(google.protobuf.message.Message): """The namespace to set permissions for""" user_id: builtins.str """The id of the user to set permissions for""" - @property - def access(self) -> temporalio.api.cloud.identity.v1.message_pb2.NamespaceAccess: - """The namespace access to assign the user""" resource_version: builtins.str """The version of the user for which this update is intended for The latest version can be found in the GetUser operation response """ async_operation_id: builtins.str """The id to use for this async operation - optional""" + @property + def access(self) -> temporalio.api.cloud.identity.v1.message_pb2.NamespaceAccess: + """The namespace access to assign the user""" + def __init__( self, *, @@ -432,11 +442,11 @@ class SetUserNamespaceAccessRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["access", b"access"] + self, field_name: typing.Literal["access", b"access"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "access", b"access", "async_operation_id", @@ -452,6 +462,7 @@ class SetUserNamespaceAccessRequest(google.protobuf.message.Message): global___SetUserNamespaceAccessRequest = SetUserNamespaceAccessRequest +@typing.final class SetUserNamespaceAccessResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -461,6 +472,7 @@ class SetUserNamespaceAccessResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation""" + def __init__( self, *, @@ -468,16 +480,15 @@ class SetUserNamespaceAccessResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___SetUserNamespaceAccessResponse = SetUserNamespaceAccessResponse +@typing.final class GetAsyncOperationRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -490,14 +501,12 @@ class GetAsyncOperationRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "async_operation_id", b"async_operation_id" - ], + self, field_name: typing.Literal["async_operation_id", b"async_operation_id"] ) -> None: ... global___GetAsyncOperationRequest = GetAsyncOperationRequest +@typing.final class GetAsyncOperationResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -507,6 +516,7 @@ class GetAsyncOperationResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation""" + def __init__( self, *, @@ -514,19 +524,19 @@ class GetAsyncOperationResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___GetAsyncOperationResponse = GetAsyncOperationResponse +@typing.final class CreateNamespaceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class TagsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -541,20 +551,20 @@ class CreateNamespaceRequest(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int TAGS_FIELD_NUMBER: builtins.int - @property - def spec(self) -> temporalio.api.cloud.namespace.v1.message_pb2.NamespaceSpec: - """The namespace specification.""" async_operation_id: builtins.str """The id to use for this async operation. Optional, if not provided a random id will be generated. """ + @property + def spec(self) -> temporalio.api.cloud.namespace.v1.message_pb2.NamespaceSpec: + """The namespace specification.""" + @property def tags( self, @@ -562,6 +572,7 @@ class CreateNamespaceRequest(google.protobuf.message.Message): """The tags to add to the namespace. Note: This field can be set by global admins or account owners only. """ + def __init__( self, *, @@ -570,11 +581,11 @@ class CreateNamespaceRequest(google.protobuf.message.Message): tags: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", @@ -586,6 +597,7 @@ class CreateNamespaceRequest(google.protobuf.message.Message): global___CreateNamespaceRequest = CreateNamespaceRequest +@typing.final class CreateNamespaceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -598,6 +610,7 @@ class CreateNamespaceResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -606,18 +619,18 @@ class CreateNamespaceResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation", b"async_operation", "namespace", b"namespace" ], ) -> None: ... global___CreateNamespaceResponse = CreateNamespaceResponse +@typing.final class GetNamespacesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -646,18 +659,21 @@ class GetNamespacesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "name", b"name", "page_size", b"page_size", "page_token", b"page_token" ], ) -> None: ... global___GetNamespacesRequest = GetNamespacesRequest +@typing.final class GetNamespacesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACES_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def namespaces( self, @@ -665,8 +681,7 @@ class GetNamespacesResponse(google.protobuf.message.Message): temporalio.api.cloud.namespace.v1.message_pb2.Namespace ]: """The list of namespaces in ascending name order.""" - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -678,13 +693,14 @@ class GetNamespacesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespaces", b"namespaces", "next_page_token", b"next_page_token" ], ) -> None: ... global___GetNamespacesResponse = GetNamespacesResponse +@typing.final class GetNamespaceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -697,11 +713,12 @@ class GetNamespaceRequest(google.protobuf.message.Message): namespace: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["namespace", b"namespace"] + self, field_name: typing.Literal["namespace", b"namespace"] ) -> None: ... global___GetNamespaceRequest = GetNamespaceRequest +@typing.final class GetNamespaceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -709,20 +726,22 @@ class GetNamespaceResponse(google.protobuf.message.Message): @property def namespace(self) -> temporalio.api.cloud.namespace.v1.message_pb2.Namespace: """The namespace.""" + def __init__( self, *, namespace: temporalio.api.cloud.namespace.v1.message_pb2.Namespace | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["namespace", b"namespace"] + self, field_name: typing.Literal["namespace", b"namespace"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["namespace", b"namespace"] + self, field_name: typing.Literal["namespace", b"namespace"] ) -> None: ... global___GetNamespaceResponse = GetNamespaceResponse +@typing.final class UpdateNamespaceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -732,9 +751,6 @@ class UpdateNamespaceRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int namespace: builtins.str """The namespace to update.""" - @property - def spec(self) -> temporalio.api.cloud.namespace.v1.message_pb2.NamespaceSpec: - """The new namespace specification.""" resource_version: builtins.str """The version of the namespace for which this update is intended for. The latest version can be found in the namespace status. @@ -743,6 +759,10 @@ class UpdateNamespaceRequest(google.protobuf.message.Message): """The id to use for this async operation. Optional, if not provided a random id will be generated. """ + @property + def spec(self) -> temporalio.api.cloud.namespace.v1.message_pb2.NamespaceSpec: + """The new namespace specification.""" + def __init__( self, *, @@ -752,11 +772,11 @@ class UpdateNamespaceRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "namespace", @@ -770,6 +790,7 @@ class UpdateNamespaceRequest(google.protobuf.message.Message): global___UpdateNamespaceRequest = UpdateNamespaceRequest +@typing.final class UpdateNamespaceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -779,6 +800,7 @@ class UpdateNamespaceResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -786,16 +808,15 @@ class UpdateNamespaceResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateNamespaceResponse = UpdateNamespaceResponse +@typing.final class RenameCustomSearchAttributeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -829,7 +850,7 @@ class RenameCustomSearchAttributeRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "existing_custom_search_attribute_name", @@ -845,6 +866,7 @@ class RenameCustomSearchAttributeRequest(google.protobuf.message.Message): global___RenameCustomSearchAttributeRequest = RenameCustomSearchAttributeRequest +@typing.final class RenameCustomSearchAttributeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -854,6 +876,7 @@ class RenameCustomSearchAttributeResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -861,16 +884,15 @@ class RenameCustomSearchAttributeResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___RenameCustomSearchAttributeResponse = RenameCustomSearchAttributeResponse +@typing.final class DeleteNamespaceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -896,7 +918,7 @@ class DeleteNamespaceRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "namespace", @@ -908,6 +930,7 @@ class DeleteNamespaceRequest(google.protobuf.message.Message): global___DeleteNamespaceRequest = DeleteNamespaceRequest +@typing.final class DeleteNamespaceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -917,6 +940,7 @@ class DeleteNamespaceResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -924,16 +948,15 @@ class DeleteNamespaceResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteNamespaceResponse = DeleteNamespaceResponse +@typing.final class FailoverNamespaceRegionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -957,7 +980,7 @@ class FailoverNamespaceRegionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "namespace", @@ -969,6 +992,7 @@ class FailoverNamespaceRegionRequest(google.protobuf.message.Message): global___FailoverNamespaceRegionRequest = FailoverNamespaceRegionRequest +@typing.final class FailoverNamespaceRegionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -978,6 +1002,7 @@ class FailoverNamespaceRegionResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -985,16 +1010,15 @@ class FailoverNamespaceRegionResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___FailoverNamespaceRegionResponse = FailoverNamespaceRegionResponse +@typing.final class AddNamespaceRegionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1025,7 +1049,7 @@ class AddNamespaceRegionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "namespace", @@ -1039,6 +1063,7 @@ class AddNamespaceRegionRequest(google.protobuf.message.Message): global___AddNamespaceRegionRequest = AddNamespaceRegionRequest +@typing.final class AddNamespaceRegionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1048,6 +1073,7 @@ class AddNamespaceRegionResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -1055,16 +1081,15 @@ class AddNamespaceRegionResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___AddNamespaceRegionResponse = AddNamespaceRegionResponse +@typing.final class DeleteNamespaceRegionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1095,7 +1120,7 @@ class DeleteNamespaceRegionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "namespace", @@ -1109,6 +1134,7 @@ class DeleteNamespaceRegionRequest(google.protobuf.message.Message): global___DeleteNamespaceRegionRequest = DeleteNamespaceRegionRequest +@typing.final class DeleteNamespaceRegionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1118,6 +1144,7 @@ class DeleteNamespaceRegionResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -1125,16 +1152,15 @@ class DeleteNamespaceRegionResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteNamespaceRegionResponse = DeleteNamespaceRegionResponse +@typing.final class GetRegionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1144,6 +1170,7 @@ class GetRegionsRequest(google.protobuf.message.Message): global___GetRegionsRequest = GetRegionsRequest +@typing.final class GetRegionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1155,6 +1182,7 @@ class GetRegionsResponse(google.protobuf.message.Message): temporalio.api.cloud.region.v1.message_pb2.Region ]: """The temporal cloud regions.""" + def __init__( self, *, @@ -1163,12 +1191,11 @@ class GetRegionsResponse(google.protobuf.message.Message): ] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["regions", b"regions"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["regions", b"regions"]) -> None: ... global___GetRegionsResponse = GetRegionsResponse +@typing.final class GetRegionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1180,12 +1207,11 @@ class GetRegionRequest(google.protobuf.message.Message): *, region: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["region", b"region"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["region", b"region"]) -> None: ... global___GetRegionRequest = GetRegionRequest +@typing.final class GetRegionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1193,20 +1219,20 @@ class GetRegionResponse(google.protobuf.message.Message): @property def region(self) -> temporalio.api.cloud.region.v1.message_pb2.Region: """The temporal cloud region.""" + def __init__( self, *, region: temporalio.api.cloud.region.v1.message_pb2.Region | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["region", b"region"] + self, field_name: typing.Literal["region", b"region"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["region", b"region"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["region", b"region"]) -> None: ... global___GetRegionResponse = GetRegionResponse +@typing.final class GetApiKeysRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1243,7 +1269,7 @@ class GetApiKeysRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "owner_id", b"owner_id", "owner_type", @@ -1259,11 +1285,14 @@ class GetApiKeysRequest(google.protobuf.message.Message): global___GetApiKeysRequest = GetApiKeysRequest +@typing.final class GetApiKeysResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor API_KEYS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def api_keys( self, @@ -1271,8 +1300,7 @@ class GetApiKeysResponse(google.protobuf.message.Message): temporalio.api.cloud.identity.v1.message_pb2.ApiKey ]: """The list of api keys in ascending id order.""" - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -1284,13 +1312,14 @@ class GetApiKeysResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "api_keys", b"api_keys", "next_page_token", b"next_page_token" ], ) -> None: ... global___GetApiKeysResponse = GetApiKeysResponse +@typing.final class GetApiKeyRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1302,12 +1331,11 @@ class GetApiKeyRequest(google.protobuf.message.Message): *, key_id: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["key_id", b"key_id"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["key_id", b"key_id"]) -> None: ... global___GetApiKeyRequest = GetApiKeyRequest +@typing.final class GetApiKeyResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1315,32 +1343,33 @@ class GetApiKeyResponse(google.protobuf.message.Message): @property def api_key(self) -> temporalio.api.cloud.identity.v1.message_pb2.ApiKey: """The api key.""" + def __init__( self, *, api_key: temporalio.api.cloud.identity.v1.message_pb2.ApiKey | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["api_key", b"api_key"] + self, field_name: typing.Literal["api_key", b"api_key"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["api_key", b"api_key"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["api_key", b"api_key"]) -> None: ... global___GetApiKeyResponse = GetApiKeyResponse +@typing.final class CreateApiKeyRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int + async_operation_id: builtins.str + """The id to use for this async operation - optional.""" @property def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.ApiKeySpec: """The spec for the api key to create. Create api key only supports service-account owner type for now. """ - async_operation_id: builtins.str - """The id to use for this async operation - optional.""" + def __init__( self, *, @@ -1348,17 +1377,18 @@ class CreateApiKeyRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", b"spec" ], ) -> None: ... global___CreateApiKeyRequest = CreateApiKeyRequest +@typing.final class CreateApiKeyResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1377,6 +1407,7 @@ class CreateApiKeyResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -1386,12 +1417,11 @@ class CreateApiKeyResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation", b"async_operation", "key_id", @@ -1403,6 +1433,7 @@ class CreateApiKeyResponse(google.protobuf.message.Message): global___CreateApiKeyResponse = CreateApiKeyResponse +@typing.final class UpdateApiKeyRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1412,15 +1443,16 @@ class UpdateApiKeyRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int key_id: builtins.str """The id of the api key to update.""" - @property - def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.ApiKeySpec: - """The new api key specification.""" resource_version: builtins.str """The version of the api key for which this update is intended for. The latest version can be found in the GetApiKey operation response. """ async_operation_id: builtins.str """The id to use for this async operation - optional.""" + @property + def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.ApiKeySpec: + """The new api key specification.""" + def __init__( self, *, @@ -1430,11 +1462,11 @@ class UpdateApiKeyRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "key_id", @@ -1448,6 +1480,7 @@ class UpdateApiKeyRequest(google.protobuf.message.Message): global___UpdateApiKeyRequest = UpdateApiKeyRequest +@typing.final class UpdateApiKeyResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1457,6 +1490,7 @@ class UpdateApiKeyResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -1464,16 +1498,15 @@ class UpdateApiKeyResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateApiKeyResponse = UpdateApiKeyResponse +@typing.final class DeleteApiKeyRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1497,7 +1530,7 @@ class DeleteApiKeyRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "key_id", @@ -1509,6 +1542,7 @@ class DeleteApiKeyRequest(google.protobuf.message.Message): global___DeleteApiKeyRequest = DeleteApiKeyRequest +@typing.final class DeleteApiKeyResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1518,6 +1552,7 @@ class DeleteApiKeyResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -1525,16 +1560,15 @@ class DeleteApiKeyResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteApiKeyResponse = DeleteApiKeyResponse +@typing.final class GetNexusEndpointsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1566,7 +1600,7 @@ class GetNexusEndpointsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "name", b"name", "page_size", @@ -1582,11 +1616,14 @@ class GetNexusEndpointsRequest(google.protobuf.message.Message): global___GetNexusEndpointsRequest = GetNexusEndpointsRequest +@typing.final class GetNexusEndpointsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor ENDPOINTS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def endpoints( self, @@ -1594,8 +1631,7 @@ class GetNexusEndpointsResponse(google.protobuf.message.Message): temporalio.api.cloud.nexus.v1.message_pb2.Endpoint ]: """The list of endpoints in ascending id order.""" - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -1607,13 +1643,14 @@ class GetNexusEndpointsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "endpoints", b"endpoints", "next_page_token", b"next_page_token" ], ) -> None: ... global___GetNexusEndpointsResponse = GetNexusEndpointsResponse +@typing.final class GetNexusEndpointRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1626,11 +1663,12 @@ class GetNexusEndpointRequest(google.protobuf.message.Message): endpoint_id: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["endpoint_id", b"endpoint_id"] + self, field_name: typing.Literal["endpoint_id", b"endpoint_id"] ) -> None: ... global___GetNexusEndpointRequest = GetNexusEndpointRequest +@typing.final class GetNexusEndpointResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1638,30 +1676,33 @@ class GetNexusEndpointResponse(google.protobuf.message.Message): @property def endpoint(self) -> temporalio.api.cloud.nexus.v1.message_pb2.Endpoint: """The nexus endpoint.""" + def __init__( self, *, endpoint: temporalio.api.cloud.nexus.v1.message_pb2.Endpoint | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + self, field_name: typing.Literal["endpoint", b"endpoint"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + self, field_name: typing.Literal["endpoint", b"endpoint"] ) -> None: ... global___GetNexusEndpointResponse = GetNexusEndpointResponse +@typing.final class CreateNexusEndpointRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int + async_operation_id: builtins.str + """The id to use for this async operation - optional.""" @property def spec(self) -> temporalio.api.cloud.nexus.v1.message_pb2.EndpointSpec: """The spec for the nexus endpoint.""" - async_operation_id: builtins.str - """The id to use for this async operation - optional.""" + def __init__( self, *, @@ -1669,17 +1710,18 @@ class CreateNexusEndpointRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", b"spec" ], ) -> None: ... global___CreateNexusEndpointRequest = CreateNexusEndpointRequest +@typing.final class CreateNexusEndpointResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1692,6 +1734,7 @@ class CreateNexusEndpointResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -1700,18 +1743,18 @@ class CreateNexusEndpointResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation", b"async_operation", "endpoint_id", b"endpoint_id" ], ) -> None: ... global___CreateNexusEndpointResponse = CreateNexusEndpointResponse +@typing.final class UpdateNexusEndpointRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1721,15 +1764,16 @@ class UpdateNexusEndpointRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int endpoint_id: builtins.str """The id of the nexus endpoint to update.""" - @property - def spec(self) -> temporalio.api.cloud.nexus.v1.message_pb2.EndpointSpec: - """The updated nexus endpoint specification.""" resource_version: builtins.str """The version of the nexus endpoint for which this update is intended for. The latest version can be found in the GetNexusEndpoint operation response. """ async_operation_id: builtins.str """The id to use for this async operation - optional.""" + @property + def spec(self) -> temporalio.api.cloud.nexus.v1.message_pb2.EndpointSpec: + """The updated nexus endpoint specification.""" + def __init__( self, *, @@ -1739,11 +1783,11 @@ class UpdateNexusEndpointRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "endpoint_id", @@ -1757,6 +1801,7 @@ class UpdateNexusEndpointRequest(google.protobuf.message.Message): global___UpdateNexusEndpointRequest = UpdateNexusEndpointRequest +@typing.final class UpdateNexusEndpointResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1766,6 +1811,7 @@ class UpdateNexusEndpointResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -1773,16 +1819,15 @@ class UpdateNexusEndpointResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateNexusEndpointResponse = UpdateNexusEndpointResponse +@typing.final class DeleteNexusEndpointRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1806,7 +1851,7 @@ class DeleteNexusEndpointRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "endpoint_id", @@ -1818,6 +1863,7 @@ class DeleteNexusEndpointRequest(google.protobuf.message.Message): global___DeleteNexusEndpointRequest = DeleteNexusEndpointRequest +@typing.final class DeleteNexusEndpointResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1827,6 +1873,7 @@ class DeleteNexusEndpointResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation""" + def __init__( self, *, @@ -1834,19 +1881,19 @@ class DeleteNexusEndpointResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteNexusEndpointResponse = DeleteNexusEndpointResponse +@typing.final class GetUserGroupsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class GoogleGroupFilter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1859,10 +1906,10 @@ class GetUserGroupsRequest(google.protobuf.message.Message): email_address: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["email_address", b"email_address"], + self, field_name: typing.Literal["email_address", b"email_address"] ) -> None: ... + @typing.final class SCIMGroupFilter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1875,7 +1922,7 @@ class GetUserGroupsRequest(google.protobuf.message.Message): idp_id: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["idp_id", b"idp_id"] + self, field_name: typing.Literal["idp_id", b"idp_id"] ) -> None: ... PAGE_SIZE_FIELD_NUMBER: builtins.int @@ -1897,9 +1944,11 @@ class GetUserGroupsRequest(google.protobuf.message.Message): @property def google_group(self) -> global___GetUserGroupsRequest.GoogleGroupFilter: """Filter groups by the google group specification - optional.""" + @property def scim_group(self) -> global___GetUserGroupsRequest.SCIMGroupFilter: """Filter groups by the SCIM group specification - optional.""" + def __init__( self, *, @@ -1912,13 +1961,13 @@ class GetUserGroupsRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "google_group", b"google_group", "scim_group", b"scim_group" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "display_name", b"display_name", "google_group", @@ -1936,11 +1985,14 @@ class GetUserGroupsRequest(google.protobuf.message.Message): global___GetUserGroupsRequest = GetUserGroupsRequest +@typing.final class GetUserGroupsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor GROUPS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def groups( self, @@ -1948,8 +2000,7 @@ class GetUserGroupsResponse(google.protobuf.message.Message): temporalio.api.cloud.identity.v1.message_pb2.UserGroup ]: """The list of groups in ascending name order.""" - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -1961,13 +2012,14 @@ class GetUserGroupsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "groups", b"groups", "next_page_token", b"next_page_token" ], ) -> None: ... global___GetUserGroupsResponse = GetUserGroupsResponse +@typing.final class GetUserGroupRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1980,11 +2032,12 @@ class GetUserGroupRequest(google.protobuf.message.Message): group_id: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["group_id", b"group_id"] + self, field_name: typing.Literal["group_id", b"group_id"] ) -> None: ... global___GetUserGroupRequest = GetUserGroupRequest +@typing.final class GetUserGroupResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1992,32 +2045,33 @@ class GetUserGroupResponse(google.protobuf.message.Message): @property def group(self) -> temporalio.api.cloud.identity.v1.message_pb2.UserGroup: """The group.""" + def __init__( self, *, group: temporalio.api.cloud.identity.v1.message_pb2.UserGroup | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["group", b"group"] + self, field_name: typing.Literal["group", b"group"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["group", b"group"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["group", b"group"]) -> None: ... global___GetUserGroupResponse = GetUserGroupResponse +@typing.final class CreateUserGroupRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int - @property - def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.UserGroupSpec: - """The spec for the group to create.""" async_operation_id: builtins.str """The id to use for this async operation. Optional, if not provided a random id will be generated. """ + @property + def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.UserGroupSpec: + """The spec for the group to create.""" + def __init__( self, *, @@ -2025,17 +2079,18 @@ class CreateUserGroupRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", b"spec" ], ) -> None: ... global___CreateUserGroupRequest = CreateUserGroupRequest +@typing.final class CreateUserGroupResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2048,6 +2103,7 @@ class CreateUserGroupResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2056,18 +2112,18 @@ class CreateUserGroupResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation", b"async_operation", "group_id", b"group_id" ], ) -> None: ... global___CreateUserGroupResponse = CreateUserGroupResponse +@typing.final class UpdateUserGroupRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2077,9 +2133,6 @@ class UpdateUserGroupRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int group_id: builtins.str """The id of the group to update.""" - @property - def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.UserGroupSpec: - """The new group specification.""" resource_version: builtins.str """The version of the group for which this update is intended for. The latest version can be found in the GetGroup operation response. @@ -2088,6 +2141,10 @@ class UpdateUserGroupRequest(google.protobuf.message.Message): """The id to use for this async operation. Optional, if not provided a random id will be generated. """ + @property + def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.UserGroupSpec: + """The new group specification.""" + def __init__( self, *, @@ -2097,11 +2154,11 @@ class UpdateUserGroupRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "group_id", @@ -2115,6 +2172,7 @@ class UpdateUserGroupRequest(google.protobuf.message.Message): global___UpdateUserGroupRequest = UpdateUserGroupRequest +@typing.final class UpdateUserGroupResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2124,6 +2182,7 @@ class UpdateUserGroupResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2131,16 +2190,15 @@ class UpdateUserGroupResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateUserGroupResponse = UpdateUserGroupResponse +@typing.final class DeleteUserGroupRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2166,7 +2224,7 @@ class DeleteUserGroupRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "group_id", @@ -2178,6 +2236,7 @@ class DeleteUserGroupRequest(google.protobuf.message.Message): global___DeleteUserGroupRequest = DeleteUserGroupRequest +@typing.final class DeleteUserGroupResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2187,6 +2246,7 @@ class DeleteUserGroupResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2194,16 +2254,15 @@ class DeleteUserGroupResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteUserGroupResponse = DeleteUserGroupResponse +@typing.final class SetUserGroupNamespaceAccessRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2216,15 +2275,16 @@ class SetUserGroupNamespaceAccessRequest(google.protobuf.message.Message): """The namespace to set permissions for.""" group_id: builtins.str """The id of the group to set permissions for.""" - @property - def access(self) -> temporalio.api.cloud.identity.v1.message_pb2.NamespaceAccess: - """The namespace access to assign the group. If left empty, the group will be removed from the namespace access.""" resource_version: builtins.str """The version of the group for which this update is intended for. The latest version can be found in the GetGroup operation response. """ async_operation_id: builtins.str """The id to use for this async operation - optional.""" + @property + def access(self) -> temporalio.api.cloud.identity.v1.message_pb2.NamespaceAccess: + """The namespace access to assign the group. If left empty, the group will be removed from the namespace access.""" + def __init__( self, *, @@ -2236,11 +2296,11 @@ class SetUserGroupNamespaceAccessRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["access", b"access"] + self, field_name: typing.Literal["access", b"access"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "access", b"access", "async_operation_id", @@ -2256,6 +2316,7 @@ class SetUserGroupNamespaceAccessRequest(google.protobuf.message.Message): global___SetUserGroupNamespaceAccessRequest = SetUserGroupNamespaceAccessRequest +@typing.final class SetUserGroupNamespaceAccessResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2265,6 +2326,7 @@ class SetUserGroupNamespaceAccessResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2272,16 +2334,15 @@ class SetUserGroupNamespaceAccessResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___SetUserGroupNamespaceAccessResponse = SetUserGroupNamespaceAccessResponse +@typing.final class AddUserGroupMemberRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2290,15 +2351,16 @@ class AddUserGroupMemberRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int group_id: builtins.str """The id of the group to add the member for.""" + async_operation_id: builtins.str + """The id to use for this async operation. + Optional, if not provided a random id will be generated. + """ @property def member_id( self, ) -> temporalio.api.cloud.identity.v1.message_pb2.UserGroupMemberId: """The member id to add to the group.""" - async_operation_id: builtins.str - """The id to use for this async operation. - Optional, if not provided a random id will be generated. - """ + def __init__( self, *, @@ -2308,11 +2370,11 @@ class AddUserGroupMemberRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["member_id", b"member_id"] + self, field_name: typing.Literal["member_id", b"member_id"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "group_id", @@ -2324,6 +2386,7 @@ class AddUserGroupMemberRequest(google.protobuf.message.Message): global___AddUserGroupMemberRequest = AddUserGroupMemberRequest +@typing.final class AddUserGroupMemberResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2333,6 +2396,7 @@ class AddUserGroupMemberResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2340,16 +2404,15 @@ class AddUserGroupMemberResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___AddUserGroupMemberResponse = AddUserGroupMemberResponse +@typing.final class RemoveUserGroupMemberRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2358,15 +2421,16 @@ class RemoveUserGroupMemberRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int group_id: builtins.str """The id of the group to add the member for.""" + async_operation_id: builtins.str + """The id to use for this async operation. + Optional, if not provided a random id will be generated. + """ @property def member_id( self, ) -> temporalio.api.cloud.identity.v1.message_pb2.UserGroupMemberId: """The member id to add to the group.""" - async_operation_id: builtins.str - """The id to use for this async operation. - Optional, if not provided a random id will be generated. - """ + def __init__( self, *, @@ -2376,11 +2440,11 @@ class RemoveUserGroupMemberRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["member_id", b"member_id"] + self, field_name: typing.Literal["member_id", b"member_id"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "group_id", @@ -2392,6 +2456,7 @@ class RemoveUserGroupMemberRequest(google.protobuf.message.Message): global___RemoveUserGroupMemberRequest = RemoveUserGroupMemberRequest +@typing.final class RemoveUserGroupMemberResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2401,6 +2466,7 @@ class RemoveUserGroupMemberResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2408,16 +2474,15 @@ class RemoveUserGroupMemberResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___RemoveUserGroupMemberResponse = RemoveUserGroupMemberResponse +@typing.final class GetUserGroupMembersRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2441,7 +2506,7 @@ class GetUserGroupMembersRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "group_id", b"group_id", "page_size", @@ -2453,11 +2518,14 @@ class GetUserGroupMembersRequest(google.protobuf.message.Message): global___GetUserGroupMembersRequest = GetUserGroupMembersRequest +@typing.final class GetUserGroupMembersResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor MEMBERS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def members( self, @@ -2465,8 +2533,7 @@ class GetUserGroupMembersResponse(google.protobuf.message.Message): temporalio.api.cloud.identity.v1.message_pb2.UserGroupMember ]: """The list of group members""" - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -2478,23 +2545,25 @@ class GetUserGroupMembersResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "members", b"members", "next_page_token", b"next_page_token" ], ) -> None: ... global___GetUserGroupMembersResponse = GetUserGroupMembersResponse +@typing.final class CreateServiceAccountRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int + async_operation_id: builtins.str + """The ID to use for this async operation - optional.""" @property def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.ServiceAccountSpec: """The spec of the service account to create.""" - async_operation_id: builtins.str - """The ID to use for this async operation - optional.""" + def __init__( self, *, @@ -2503,17 +2572,18 @@ class CreateServiceAccountRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", b"spec" ], ) -> None: ... global___CreateServiceAccountRequest = CreateServiceAccountRequest +@typing.final class CreateServiceAccountResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2526,6 +2596,7 @@ class CreateServiceAccountResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2534,12 +2605,11 @@ class CreateServiceAccountResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation", b"async_operation", "service_account_id", @@ -2549,6 +2619,7 @@ class CreateServiceAccountResponse(google.protobuf.message.Message): global___CreateServiceAccountResponse = CreateServiceAccountResponse +@typing.final class GetServiceAccountRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2561,14 +2632,12 @@ class GetServiceAccountRequest(google.protobuf.message.Message): service_account_id: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "service_account_id", b"service_account_id" - ], + self, field_name: typing.Literal["service_account_id", b"service_account_id"] ) -> None: ... global___GetServiceAccountRequest = GetServiceAccountRequest +@typing.final class GetServiceAccountResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2578,6 +2647,7 @@ class GetServiceAccountResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.identity.v1.message_pb2.ServiceAccount: """The service account retrieved.""" + def __init__( self, *, @@ -2585,16 +2655,15 @@ class GetServiceAccountResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["service_account", b"service_account"], + self, field_name: typing.Literal["service_account", b"service_account"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["service_account", b"service_account"], + self, field_name: typing.Literal["service_account", b"service_account"] ) -> None: ... global___GetServiceAccountResponse = GetServiceAccountResponse +@typing.final class GetServiceAccountsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2614,18 +2683,21 @@ class GetServiceAccountsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "page_size", b"page_size", "page_token", b"page_token" ], ) -> None: ... global___GetServiceAccountsRequest = GetServiceAccountsRequest +@typing.final class GetServiceAccountsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SERVICE_ACCOUNT_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page token, set if there is another page.""" @property def service_account( self, @@ -2633,8 +2705,7 @@ class GetServiceAccountsResponse(google.protobuf.message.Message): temporalio.api.cloud.identity.v1.message_pb2.ServiceAccount ]: """The list of service accounts in ascending ID order.""" - next_page_token: builtins.str - """The next page token, set if there is another page.""" + def __init__( self, *, @@ -2646,13 +2717,14 @@ class GetServiceAccountsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "service_account", b"service_account" ], ) -> None: ... global___GetServiceAccountsResponse = GetServiceAccountsResponse +@typing.final class UpdateServiceAccountRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2662,15 +2734,16 @@ class UpdateServiceAccountRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int service_account_id: builtins.str """The ID of the service account to update.""" - @property - def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.ServiceAccountSpec: - """The new service account specification.""" resource_version: builtins.str """The version of the service account for which this update is intended for. The latest version can be found in the GetServiceAccount response. """ async_operation_id: builtins.str """The ID to use for this async operation - optional.""" + @property + def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.ServiceAccountSpec: + """The new service account specification.""" + def __init__( self, *, @@ -2681,11 +2754,11 @@ class UpdateServiceAccountRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "resource_version", @@ -2699,6 +2772,7 @@ class UpdateServiceAccountRequest(google.protobuf.message.Message): global___UpdateServiceAccountRequest = UpdateServiceAccountRequest +@typing.final class UpdateServiceAccountResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2708,6 +2782,7 @@ class UpdateServiceAccountResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2715,16 +2790,15 @@ class UpdateServiceAccountResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateServiceAccountResponse = UpdateServiceAccountResponse +@typing.final class SetServiceAccountNamespaceAccessRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2737,15 +2811,16 @@ class SetServiceAccountNamespaceAccessRequest(google.protobuf.message.Message): """The ID of the service account to update.""" namespace: builtins.str """The namespace to set permissions for.""" - @property - def access(self) -> temporalio.api.cloud.identity.v1.message_pb2.NamespaceAccess: - """The namespace access to assign the service account.""" resource_version: builtins.str """The version of the service account for which this update is intended for. The latest version can be found in the GetServiceAccount response. """ async_operation_id: builtins.str """The ID to use for this async operation - optional.""" + @property + def access(self) -> temporalio.api.cloud.identity.v1.message_pb2.NamespaceAccess: + """The namespace access to assign the service account.""" + def __init__( self, *, @@ -2757,11 +2832,11 @@ class SetServiceAccountNamespaceAccessRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["access", b"access"] + self, field_name: typing.Literal["access", b"access"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "access", b"access", "async_operation_id", @@ -2779,6 +2854,7 @@ global___SetServiceAccountNamespaceAccessRequest = ( SetServiceAccountNamespaceAccessRequest ) +@typing.final class SetServiceAccountNamespaceAccessResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2788,6 +2864,7 @@ class SetServiceAccountNamespaceAccessResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2795,18 +2872,17 @@ class SetServiceAccountNamespaceAccessResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___SetServiceAccountNamespaceAccessResponse = ( SetServiceAccountNamespaceAccessResponse ) +@typing.final class DeleteServiceAccountRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2830,7 +2906,7 @@ class DeleteServiceAccountRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "resource_version", @@ -2842,6 +2918,7 @@ class DeleteServiceAccountRequest(google.protobuf.message.Message): global___DeleteServiceAccountRequest = DeleteServiceAccountRequest +@typing.final class DeleteServiceAccountResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2851,6 +2928,7 @@ class DeleteServiceAccountResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -2858,16 +2936,15 @@ class DeleteServiceAccountResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteServiceAccountResponse = DeleteServiceAccountResponse +@typing.final class GetUsageRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2875,6 +2952,13 @@ class GetUsageRequest(google.protobuf.message.Message): END_TIME_EXCLUSIVE_FIELD_NUMBER: builtins.int PAGE_SIZE_FIELD_NUMBER: builtins.int PAGE_TOKEN_FIELD_NUMBER: builtins.int + page_size: builtins.int + """The requested size of the page to retrieve - optional. + Each count corresponds to a single object - per day per namespace + Cannot exceed 1000. Defaults to 100. + """ + page_token: builtins.str + """The page token if this is continuing from another response - optional.""" @property def start_time_inclusive(self) -> google.protobuf.timestamp_pb2.Timestamp: """Filter for UTC time >= - optional. @@ -2882,6 +2966,7 @@ class GetUsageRequest(google.protobuf.message.Message): Must be: within the last 90 days from the current date. Must be: midnight UTC time. """ + @property def end_time_exclusive(self) -> google.protobuf.timestamp_pb2.Timestamp: """Filter for UTC time < - optional. @@ -2889,13 +2974,7 @@ class GetUsageRequest(google.protobuf.message.Message): Must be: within the last 90 days from the current date. Must be: midnight UTC time. """ - page_size: builtins.int - """The requested size of the page to retrieve - optional. - Each count corresponds to a single object - per day per namespace - Cannot exceed 1000. Defaults to 100. - """ - page_token: builtins.str - """The page token if this is continuing from another response - optional.""" + def __init__( self, *, @@ -2906,7 +2985,7 @@ class GetUsageRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time_exclusive", b"end_time_exclusive", "start_time_inclusive", @@ -2915,7 +2994,7 @@ class GetUsageRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time_exclusive", b"end_time_exclusive", "page_size", @@ -2929,11 +3008,14 @@ class GetUsageRequest(google.protobuf.message.Message): global___GetUsageRequest = GetUsageRequest +@typing.final class GetUsageResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SUMMARIES_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def summaries( self, @@ -2943,8 +3025,7 @@ class GetUsageResponse(google.protobuf.message.Message): """The list of data based on granularity (per Day for now) Ordered by: time range in ascending order """ - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -2956,13 +3037,14 @@ class GetUsageResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "summaries", b"summaries" ], ) -> None: ... global___GetUsageResponse = GetUsageResponse +@typing.final class GetAccountRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2972,6 +3054,7 @@ class GetAccountRequest(google.protobuf.message.Message): global___GetAccountRequest = GetAccountRequest +@typing.final class GetAccountResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2979,29 +3062,26 @@ class GetAccountResponse(google.protobuf.message.Message): @property def account(self) -> temporalio.api.cloud.account.v1.message_pb2.Account: """The account.""" + def __init__( self, *, account: temporalio.api.cloud.account.v1.message_pb2.Account | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["account", b"account"] + self, field_name: typing.Literal["account", b"account"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["account", b"account"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["account", b"account"]) -> None: ... global___GetAccountResponse = GetAccountResponse +@typing.final class UpdateAccountRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int RESOURCE_VERSION_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int - @property - def spec(self) -> temporalio.api.cloud.account.v1.message_pb2.AccountSpec: - """The updated account specification to apply.""" resource_version: builtins.str """The version of the account for which this update is intended for. The latest version can be found in the GetAccount operation response. @@ -3010,6 +3090,10 @@ class UpdateAccountRequest(google.protobuf.message.Message): """The id to use for this async operation. Optional, if not provided a random id will be generated. """ + @property + def spec(self) -> temporalio.api.cloud.account.v1.message_pb2.AccountSpec: + """The updated account specification to apply.""" + def __init__( self, *, @@ -3018,11 +3102,11 @@ class UpdateAccountRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "resource_version", @@ -3034,6 +3118,7 @@ class UpdateAccountRequest(google.protobuf.message.Message): global___UpdateAccountRequest = UpdateAccountRequest +@typing.final class UpdateAccountResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3043,6 +3128,7 @@ class UpdateAccountResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -3050,16 +3136,15 @@ class UpdateAccountResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateAccountResponse = UpdateAccountResponse +@typing.final class CreateNamespaceExportSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3068,11 +3153,12 @@ class CreateNamespaceExportSinkRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int namespace: builtins.str """The namespace under which the sink is configured.""" + async_operation_id: builtins.str + """Optional. The ID to use for this async operation.""" @property def spec(self) -> temporalio.api.cloud.namespace.v1.message_pb2.ExportSinkSpec: """The specification for the export sink.""" - async_operation_id: builtins.str - """Optional. The ID to use for this async operation.""" + def __init__( self, *, @@ -3081,11 +3167,11 @@ class CreateNamespaceExportSinkRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "namespace", @@ -3097,6 +3183,7 @@ class CreateNamespaceExportSinkRequest(google.protobuf.message.Message): global___CreateNamespaceExportSinkRequest = CreateNamespaceExportSinkRequest +@typing.final class CreateNamespaceExportSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3106,6 +3193,7 @@ class CreateNamespaceExportSinkResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -3113,16 +3201,15 @@ class CreateNamespaceExportSinkResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___CreateNamespaceExportSinkResponse = CreateNamespaceExportSinkResponse +@typing.final class GetNamespaceExportSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3139,14 +3226,12 @@ class GetNamespaceExportSinkRequest(google.protobuf.message.Message): name: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "name", b"name", "namespace", b"namespace" - ], + self, field_name: typing.Literal["name", b"name", "namespace", b"namespace"] ) -> None: ... global___GetNamespaceExportSinkRequest = GetNamespaceExportSinkRequest +@typing.final class GetNamespaceExportSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3154,20 +3239,20 @@ class GetNamespaceExportSinkResponse(google.protobuf.message.Message): @property def sink(self) -> temporalio.api.cloud.namespace.v1.message_pb2.ExportSink: """The export sink retrieved.""" + def __init__( self, *, sink: temporalio.api.cloud.namespace.v1.message_pb2.ExportSink | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["sink", b"sink"] + self, field_name: typing.Literal["sink", b"sink"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["sink", b"sink"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["sink", b"sink"]) -> None: ... global___GetNamespaceExportSinkResponse = GetNamespaceExportSinkResponse +@typing.final class GetNamespaceExportSinksRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3191,7 +3276,7 @@ class GetNamespaceExportSinksRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "page_size", @@ -3203,11 +3288,14 @@ class GetNamespaceExportSinksRequest(google.protobuf.message.Message): global___GetNamespaceExportSinksRequest = GetNamespaceExportSinksRequest +@typing.final class GetNamespaceExportSinksResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SINKS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page token, set if there is another page.""" @property def sinks( self, @@ -3215,8 +3303,7 @@ class GetNamespaceExportSinksResponse(google.protobuf.message.Message): temporalio.api.cloud.namespace.v1.message_pb2.ExportSink ]: """The list of export sinks retrieved.""" - next_page_token: builtins.str - """The next page token, set if there is another page.""" + def __init__( self, *, @@ -3228,13 +3315,14 @@ class GetNamespaceExportSinksResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "sinks", b"sinks" ], ) -> None: ... global___GetNamespaceExportSinksResponse = GetNamespaceExportSinksResponse +@typing.final class UpdateNamespaceExportSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3244,15 +3332,16 @@ class UpdateNamespaceExportSinkRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int namespace: builtins.str """The namespace to which the sink belongs.""" - @property - def spec(self) -> temporalio.api.cloud.namespace.v1.message_pb2.ExportSinkSpec: - """The updated export sink specification.""" resource_version: builtins.str """The version of the sink to update. The latest version can be retrieved using the GetNamespaceExportSink call. """ async_operation_id: builtins.str """The ID to use for this async operation - optional.""" + @property + def spec(self) -> temporalio.api.cloud.namespace.v1.message_pb2.ExportSinkSpec: + """The updated export sink specification.""" + def __init__( self, *, @@ -3262,11 +3351,11 @@ class UpdateNamespaceExportSinkRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "namespace", @@ -3280,6 +3369,7 @@ class UpdateNamespaceExportSinkRequest(google.protobuf.message.Message): global___UpdateNamespaceExportSinkRequest = UpdateNamespaceExportSinkRequest +@typing.final class UpdateNamespaceExportSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3289,6 +3379,7 @@ class UpdateNamespaceExportSinkResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -3296,16 +3387,15 @@ class UpdateNamespaceExportSinkResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateNamespaceExportSinkResponse = UpdateNamespaceExportSinkResponse +@typing.final class DeleteNamespaceExportSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3333,7 +3423,7 @@ class DeleteNamespaceExportSinkRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "name", @@ -3347,6 +3437,7 @@ class DeleteNamespaceExportSinkRequest(google.protobuf.message.Message): global___DeleteNamespaceExportSinkRequest = DeleteNamespaceExportSinkRequest +@typing.final class DeleteNamespaceExportSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3356,6 +3447,7 @@ class DeleteNamespaceExportSinkResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -3363,16 +3455,15 @@ class DeleteNamespaceExportSinkResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteNamespaceExportSinkResponse = DeleteNamespaceExportSinkResponse +@typing.final class ValidateNamespaceExportSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3383,6 +3474,7 @@ class ValidateNamespaceExportSinkRequest(google.protobuf.message.Message): @property def spec(self) -> temporalio.api.cloud.namespace.v1.message_pb2.ExportSinkSpec: """The export sink specification to validate.""" + def __init__( self, *, @@ -3390,17 +3482,15 @@ class ValidateNamespaceExportSinkRequest(google.protobuf.message.Message): spec: temporalio.api.cloud.namespace.v1.message_pb2.ExportSinkSpec | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "namespace", b"namespace", "spec", b"spec" - ], + self, field_name: typing.Literal["namespace", b"namespace", "spec", b"spec"] ) -> None: ... global___ValidateNamespaceExportSinkRequest = ValidateNamespaceExportSinkRequest +@typing.final class ValidateNamespaceExportSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3410,9 +3500,11 @@ class ValidateNamespaceExportSinkResponse(google.protobuf.message.Message): global___ValidateNamespaceExportSinkResponse = ValidateNamespaceExportSinkResponse +@typing.final class UpdateNamespaceTagsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class TagsToUpsertEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3427,8 +3519,7 @@ class UpdateNamespaceTagsRequest(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAMESPACE_FIELD_NUMBER: builtins.int @@ -3437,6 +3528,8 @@ class UpdateNamespaceTagsRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int namespace: builtins.str """The namespace to set tags for.""" + async_operation_id: builtins.str + """The id to use for this async operation - optional.""" @property def tags_to_upsert( self, @@ -3445,6 +3538,7 @@ class UpdateNamespaceTagsRequest(google.protobuf.message.Message): If a key of an existing tag is added, the tag's value is updated. At least one of tags_to_upsert or tags_to_remove must be specified. """ + @property def tags_to_remove( self, @@ -3453,8 +3547,7 @@ class UpdateNamespaceTagsRequest(google.protobuf.message.Message): If a tag key doesn't exist, it is silently ignored. At least one of tags_to_upsert or tags_to_remove must be specified. """ - async_operation_id: builtins.str - """The id to use for this async operation - optional.""" + def __init__( self, *, @@ -3466,7 +3559,7 @@ class UpdateNamespaceTagsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "namespace", @@ -3480,6 +3573,7 @@ class UpdateNamespaceTagsRequest(google.protobuf.message.Message): global___UpdateNamespaceTagsRequest = UpdateNamespaceTagsRequest +@typing.final class UpdateNamespaceTagsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3489,6 +3583,7 @@ class UpdateNamespaceTagsResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -3496,30 +3591,30 @@ class UpdateNamespaceTagsResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateNamespaceTagsResponse = UpdateNamespaceTagsResponse +@typing.final class CreateConnectivityRuleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int + async_operation_id: builtins.str + """The id to use for this async operation. + Optional, if not provided a random id will be generated. + """ @property def spec( self, ) -> temporalio.api.cloud.connectivityrule.v1.message_pb2.ConnectivityRuleSpec: """The connectivity rule specification.""" - async_operation_id: builtins.str - """The id to use for this async operation. - Optional, if not provided a random id will be generated. - """ + def __init__( self, *, @@ -3528,17 +3623,18 @@ class CreateConnectivityRuleRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", b"spec" ], ) -> None: ... global___CreateConnectivityRuleRequest = CreateConnectivityRuleRequest +@typing.final class CreateConnectivityRuleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3551,6 +3647,7 @@ class CreateConnectivityRuleResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation""" + def __init__( self, *, @@ -3559,12 +3656,11 @@ class CreateConnectivityRuleResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation", b"async_operation", "connectivity_rule_id", @@ -3574,6 +3670,7 @@ class CreateConnectivityRuleResponse(google.protobuf.message.Message): global___CreateConnectivityRuleResponse = CreateConnectivityRuleResponse +@typing.final class GetConnectivityRuleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3587,13 +3684,12 @@ class GetConnectivityRuleRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "connectivity_rule_id", b"connectivity_rule_id" - ], + field_name: typing.Literal["connectivity_rule_id", b"connectivity_rule_id"], ) -> None: ... global___GetConnectivityRuleRequest = GetConnectivityRuleRequest +@typing.final class GetConnectivityRuleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3609,20 +3705,15 @@ class GetConnectivityRuleResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "connectivity_rule", b"connectivity_rule" - ], + self, field_name: typing.Literal["connectivity_rule", b"connectivity_rule"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "connectivity_rule", b"connectivity_rule" - ], + self, field_name: typing.Literal["connectivity_rule", b"connectivity_rule"] ) -> None: ... global___GetConnectivityRuleResponse = GetConnectivityRuleResponse +@typing.final class GetConnectivityRulesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3648,7 +3739,7 @@ class GetConnectivityRulesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "page_size", @@ -3660,11 +3751,14 @@ class GetConnectivityRulesRequest(google.protobuf.message.Message): global___GetConnectivityRulesRequest = GetConnectivityRulesRequest +@typing.final class GetConnectivityRulesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor CONNECTIVITY_RULES_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page token""" @property def connectivity_rules( self, @@ -3672,8 +3766,7 @@ class GetConnectivityRulesResponse(google.protobuf.message.Message): temporalio.api.cloud.connectivityrule.v1.message_pb2.ConnectivityRule ]: """connectivity_rules returned""" - next_page_token: builtins.str - """The next page token""" + def __init__( self, *, @@ -3685,7 +3778,7 @@ class GetConnectivityRulesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "connectivity_rules", b"connectivity_rules", "next_page_token", @@ -3695,6 +3788,7 @@ class GetConnectivityRulesResponse(google.protobuf.message.Message): global___GetConnectivityRulesResponse = GetConnectivityRulesResponse +@typing.final class DeleteConnectivityRuleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3720,7 +3814,7 @@ class DeleteConnectivityRuleRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "connectivity_rule_id", @@ -3732,6 +3826,7 @@ class DeleteConnectivityRuleRequest(google.protobuf.message.Message): global___DeleteConnectivityRuleRequest = DeleteConnectivityRuleRequest +@typing.final class DeleteConnectivityRuleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3741,6 +3836,7 @@ class DeleteConnectivityRuleResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation""" + def __init__( self, *, @@ -3748,16 +3844,15 @@ class DeleteConnectivityRuleResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteConnectivityRuleResponse = DeleteConnectivityRuleResponse +@typing.final class GetAuditLogsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3774,9 +3869,11 @@ class GetAuditLogsRequest(google.protobuf.message.Message): @property def start_time_inclusive(self) -> google.protobuf.timestamp_pb2.Timestamp: """Filter for UTC time >= (defaults to 30 days ago) - optional.""" + @property def end_time_exclusive(self) -> google.protobuf.timestamp_pb2.Timestamp: """Filter for UTC time < (defaults to current time) - optional.""" + def __init__( self, *, @@ -3787,7 +3884,7 @@ class GetAuditLogsRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time_exclusive", b"end_time_exclusive", "start_time_inclusive", @@ -3796,7 +3893,7 @@ class GetAuditLogsRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time_exclusive", b"end_time_exclusive", "page_size", @@ -3810,11 +3907,14 @@ class GetAuditLogsRequest(google.protobuf.message.Message): global___GetAuditLogsRequest = GetAuditLogsRequest +@typing.final class GetAuditLogsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor LOGS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def logs( self, @@ -3822,8 +3922,7 @@ class GetAuditLogsResponse(google.protobuf.message.Message): temporalio.api.cloud.auditlog.v1.message_pb2.LogRecord ]: """The list of audit logs ordered by emit time, log_id""" - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -3835,13 +3934,14 @@ class GetAuditLogsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "logs", b"logs", "next_page_token", b"next_page_token" ], ) -> None: ... global___GetAuditLogsResponse = GetAuditLogsResponse +@typing.final class ValidateAccountAuditLogSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3849,20 +3949,20 @@ class ValidateAccountAuditLogSinkRequest(google.protobuf.message.Message): @property def spec(self) -> temporalio.api.cloud.account.v1.message_pb2.AuditLogSinkSpec: """The audit log sink spec that will be validated""" + def __init__( self, *, spec: temporalio.api.cloud.account.v1.message_pb2.AuditLogSinkSpec | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["spec", b"spec"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["spec", b"spec"]) -> None: ... global___ValidateAccountAuditLogSinkRequest = ValidateAccountAuditLogSinkRequest +@typing.final class ValidateAccountAuditLogSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3872,16 +3972,18 @@ class ValidateAccountAuditLogSinkResponse(google.protobuf.message.Message): global___ValidateAccountAuditLogSinkResponse = ValidateAccountAuditLogSinkResponse +@typing.final class CreateAccountAuditLogSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int + async_operation_id: builtins.str + """Optional. The ID to use for this async operation.""" @property def spec(self) -> temporalio.api.cloud.account.v1.message_pb2.AuditLogSinkSpec: """The specification for the audit log sink.""" - async_operation_id: builtins.str - """Optional. The ID to use for this async operation.""" + def __init__( self, *, @@ -3889,17 +3991,18 @@ class CreateAccountAuditLogSinkRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", b"spec" ], ) -> None: ... global___CreateAccountAuditLogSinkRequest = CreateAccountAuditLogSinkRequest +@typing.final class CreateAccountAuditLogSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3909,6 +4012,7 @@ class CreateAccountAuditLogSinkResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -3916,16 +4020,15 @@ class CreateAccountAuditLogSinkResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___CreateAccountAuditLogSinkResponse = CreateAccountAuditLogSinkResponse +@typing.final class GetAccountAuditLogSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3937,12 +4040,11 @@ class GetAccountAuditLogSinkRequest(google.protobuf.message.Message): *, name: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["name", b"name"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... global___GetAccountAuditLogSinkRequest = GetAccountAuditLogSinkRequest +@typing.final class GetAccountAuditLogSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3950,20 +4052,20 @@ class GetAccountAuditLogSinkResponse(google.protobuf.message.Message): @property def sink(self) -> temporalio.api.cloud.account.v1.message_pb2.AuditLogSink: """The audit log sink retrieved.""" + def __init__( self, *, sink: temporalio.api.cloud.account.v1.message_pb2.AuditLogSink | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["sink", b"sink"] + self, field_name: typing.Literal["sink", b"sink"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["sink", b"sink"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["sink", b"sink"]) -> None: ... global___GetAccountAuditLogSinkResponse = GetAccountAuditLogSinkResponse +@typing.final class GetAccountAuditLogSinksRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3983,18 +4085,21 @@ class GetAccountAuditLogSinksRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "page_size", b"page_size", "page_token", b"page_token" ], ) -> None: ... global___GetAccountAuditLogSinksRequest = GetAccountAuditLogSinksRequest +@typing.final class GetAccountAuditLogSinksResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SINKS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page token, set if there is another page.""" @property def sinks( self, @@ -4002,8 +4107,7 @@ class GetAccountAuditLogSinksResponse(google.protobuf.message.Message): temporalio.api.cloud.account.v1.message_pb2.AuditLogSink ]: """The list of audit log sinks retrieved.""" - next_page_token: builtins.str - """The next page token, set if there is another page.""" + def __init__( self, *, @@ -4015,28 +4119,30 @@ class GetAccountAuditLogSinksResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "sinks", b"sinks" ], ) -> None: ... global___GetAccountAuditLogSinksResponse = GetAccountAuditLogSinksResponse +@typing.final class UpdateAccountAuditLogSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int RESOURCE_VERSION_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int - @property - def spec(self) -> temporalio.api.cloud.account.v1.message_pb2.AuditLogSinkSpec: - """The updated audit log sink specification.""" resource_version: builtins.str """The version of the audit log sink to update. The latest version can be retrieved using the GetAuditLogSink call. """ async_operation_id: builtins.str """The ID to use for this async operation - optional.""" + @property + def spec(self) -> temporalio.api.cloud.account.v1.message_pb2.AuditLogSinkSpec: + """The updated audit log sink specification.""" + def __init__( self, *, @@ -4045,11 +4151,11 @@ class UpdateAccountAuditLogSinkRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "resource_version", @@ -4061,6 +4167,7 @@ class UpdateAccountAuditLogSinkRequest(google.protobuf.message.Message): global___UpdateAccountAuditLogSinkRequest = UpdateAccountAuditLogSinkRequest +@typing.final class UpdateAccountAuditLogSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4070,6 +4177,7 @@ class UpdateAccountAuditLogSinkResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -4077,16 +4185,15 @@ class UpdateAccountAuditLogSinkResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateAccountAuditLogSinkResponse = UpdateAccountAuditLogSinkResponse +@typing.final class DeleteAccountAuditLogSinkRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4110,7 +4217,7 @@ class DeleteAccountAuditLogSinkRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "name", @@ -4122,6 +4229,7 @@ class DeleteAccountAuditLogSinkRequest(google.protobuf.message.Message): global___DeleteAccountAuditLogSinkRequest = DeleteAccountAuditLogSinkRequest +@typing.final class DeleteAccountAuditLogSinkResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4131,6 +4239,7 @@ class DeleteAccountAuditLogSinkResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -4138,16 +4247,15 @@ class DeleteAccountAuditLogSinkResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteAccountAuditLogSinkResponse = DeleteAccountAuditLogSinkResponse +@typing.final class GetNamespaceCapacityInfoRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4162,11 +4270,12 @@ class GetNamespaceCapacityInfoRequest(google.protobuf.message.Message): namespace: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["namespace", b"namespace"] + self, field_name: typing.Literal["namespace", b"namespace"] ) -> None: ... global___GetNamespaceCapacityInfoRequest = GetNamespaceCapacityInfoRequest +@typing.final class GetNamespaceCapacityInfoResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4176,6 +4285,7 @@ class GetNamespaceCapacityInfoResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.namespace.v1.message_pb2.NamespaceCapacityInfo: """Capacity information for the namespace.""" + def __init__( self, *, @@ -4183,24 +4293,26 @@ class GetNamespaceCapacityInfoResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["capacity_info", b"capacity_info"] + self, field_name: typing.Literal["capacity_info", b"capacity_info"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["capacity_info", b"capacity_info"] + self, field_name: typing.Literal["capacity_info", b"capacity_info"] ) -> None: ... global___GetNamespaceCapacityInfoResponse = GetNamespaceCapacityInfoResponse +@typing.final class CreateBillingReportRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int + async_operation_id: builtins.str + """Optional, if not provided a random id will be generated.""" @property def spec(self) -> temporalio.api.cloud.billing.v1.message_pb2.BillingReportSpec: """The specification for the billing report.""" - async_operation_id: builtins.str - """Optional, if not provided a random id will be generated.""" + def __init__( self, *, @@ -4209,17 +4321,18 @@ class CreateBillingReportRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", b"spec" ], ) -> None: ... global___CreateBillingReportRequest = CreateBillingReportRequest +@typing.final class CreateBillingReportResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4232,6 +4345,7 @@ class CreateBillingReportResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -4240,12 +4354,11 @@ class CreateBillingReportResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation", b"async_operation", "billing_report_id", @@ -4255,6 +4368,7 @@ class CreateBillingReportResponse(google.protobuf.message.Message): global___CreateBillingReportResponse = CreateBillingReportResponse +@typing.final class GetBillingReportRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4267,14 +4381,12 @@ class GetBillingReportRequest(google.protobuf.message.Message): billing_report_id: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "billing_report_id", b"billing_report_id" - ], + self, field_name: typing.Literal["billing_report_id", b"billing_report_id"] ) -> None: ... global___GetBillingReportRequest = GetBillingReportRequest +@typing.final class GetBillingReportResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4284,6 +4396,7 @@ class GetBillingReportResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.billing.v1.message_pb2.BillingReport: """The billing report retrieved.""" + def __init__( self, *, @@ -4291,14 +4404,15 @@ class GetBillingReportResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["billing_report", b"billing_report"] + self, field_name: typing.Literal["billing_report", b"billing_report"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["billing_report", b"billing_report"] + self, field_name: typing.Literal["billing_report", b"billing_report"] ) -> None: ... global___GetBillingReportResponse = GetBillingReportResponse +@typing.final class GetCustomRolesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4318,18 +4432,21 @@ class GetCustomRolesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "page_size", b"page_size", "page_token", b"page_token" ], ) -> None: ... global___GetCustomRolesRequest = GetCustomRolesRequest +@typing.final class GetCustomRolesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor CUSTOM_ROLES_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page token.""" @property def custom_roles( self, @@ -4337,8 +4454,7 @@ class GetCustomRolesResponse(google.protobuf.message.Message): temporalio.api.cloud.identity.v1.message_pb2.CustomRole ]: """The list of custom roles in ascending ID order.""" - next_page_token: builtins.str - """The next page token.""" + def __init__( self, *, @@ -4350,13 +4466,14 @@ class GetCustomRolesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "custom_roles", b"custom_roles", "next_page_token", b"next_page_token" ], ) -> None: ... global___GetCustomRolesResponse = GetCustomRolesResponse +@typing.final class GetCustomRoleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4368,12 +4485,11 @@ class GetCustomRoleRequest(google.protobuf.message.Message): *, role_id: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["role_id", b"role_id"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["role_id", b"role_id"]) -> None: ... global___GetCustomRoleRequest = GetCustomRoleRequest +@typing.final class GetCustomRoleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4381,6 +4497,7 @@ class GetCustomRoleResponse(google.protobuf.message.Message): @property def custom_role(self) -> temporalio.api.cloud.identity.v1.message_pb2.CustomRole: """The custom role retrieved.""" + def __init__( self, *, @@ -4388,26 +4505,28 @@ class GetCustomRoleResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["custom_role", b"custom_role"] + self, field_name: typing.Literal["custom_role", b"custom_role"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["custom_role", b"custom_role"] + self, field_name: typing.Literal["custom_role", b"custom_role"] ) -> None: ... global___GetCustomRoleResponse = GetCustomRoleResponse +@typing.final class CreateCustomRoleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SPEC_FIELD_NUMBER: builtins.int ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int - @property - def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.CustomRoleSpec: - """The specification for the custom role to create.""" async_operation_id: builtins.str """The ID to use for this async operation. Optional, if not provided a random ID will be generated. """ + @property + def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.CustomRoleSpec: + """The specification for the custom role to create.""" + def __init__( self, *, @@ -4415,17 +4534,18 @@ class CreateCustomRoleRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "spec", b"spec" ], ) -> None: ... global___CreateCustomRoleRequest = CreateCustomRoleRequest +@typing.final class CreateCustomRoleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4438,6 +4558,7 @@ class CreateCustomRoleResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -4446,18 +4567,18 @@ class CreateCustomRoleResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation", b"async_operation", "role_id", b"role_id" ], ) -> None: ... global___CreateCustomRoleResponse = CreateCustomRoleResponse +@typing.final class UpdateCustomRoleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4467,9 +4588,6 @@ class UpdateCustomRoleRequest(google.protobuf.message.Message): ASYNC_OPERATION_ID_FIELD_NUMBER: builtins.int role_id: builtins.str """The ID of the custom role to update.""" - @property - def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.CustomRoleSpec: - """The new custom role specification.""" resource_version: builtins.str """The version of the custom role for which this update is intended. The latest version can be found in the GetCustomRole operation response. @@ -4478,6 +4596,10 @@ class UpdateCustomRoleRequest(google.protobuf.message.Message): """The ID to use for this async operation. Optional, if not provided a random ID will be generated. """ + @property + def spec(self) -> temporalio.api.cloud.identity.v1.message_pb2.CustomRoleSpec: + """The new custom role specification.""" + def __init__( self, *, @@ -4487,11 +4609,11 @@ class UpdateCustomRoleRequest(google.protobuf.message.Message): async_operation_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "resource_version", @@ -4505,6 +4627,7 @@ class UpdateCustomRoleRequest(google.protobuf.message.Message): global___UpdateCustomRoleRequest = UpdateCustomRoleRequest +@typing.final class UpdateCustomRoleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4514,6 +4637,7 @@ class UpdateCustomRoleResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -4521,16 +4645,15 @@ class UpdateCustomRoleResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___UpdateCustomRoleResponse = UpdateCustomRoleResponse +@typing.final class DeleteCustomRoleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4556,7 +4679,7 @@ class DeleteCustomRoleRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "resource_version", @@ -4568,6 +4691,7 @@ class DeleteCustomRoleRequest(google.protobuf.message.Message): global___DeleteCustomRoleRequest = DeleteCustomRoleRequest +@typing.final class DeleteCustomRoleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4577,6 +4701,7 @@ class DeleteCustomRoleResponse(google.protobuf.message.Message): self, ) -> temporalio.api.cloud.operation.v1.message_pb2.AsyncOperation: """The async operation.""" + def __init__( self, *, @@ -4584,16 +4709,15 @@ class DeleteCustomRoleResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["async_operation", b"async_operation"], + self, field_name: typing.Literal["async_operation", b"async_operation"] ) -> None: ... global___DeleteCustomRoleResponse = DeleteCustomRoleResponse +@typing.final class GetUserNamespaceAssignmentsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4617,7 +4741,7 @@ class GetUserNamespaceAssignmentsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "page_size", @@ -4629,11 +4753,14 @@ class GetUserNamespaceAssignmentsRequest(google.protobuf.message.Message): global___GetUserNamespaceAssignmentsRequest = GetUserNamespaceAssignmentsRequest +@typing.final class GetUserNamespaceAssignmentsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor USERS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def users( self, @@ -4641,8 +4768,7 @@ class GetUserNamespaceAssignmentsResponse(google.protobuf.message.Message): temporalio.api.cloud.identity.v1.message_pb2.UserNamespaceAssignment ]: """The list of users with access to the namespace.""" - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -4654,13 +4780,14 @@ class GetUserNamespaceAssignmentsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "users", b"users" ], ) -> None: ... global___GetUserNamespaceAssignmentsResponse = GetUserNamespaceAssignmentsResponse +@typing.final class GetServiceAccountNamespaceAssignmentsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4684,7 +4811,7 @@ class GetServiceAccountNamespaceAssignmentsRequest(google.protobuf.message.Messa ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "page_size", @@ -4698,11 +4825,14 @@ global___GetServiceAccountNamespaceAssignmentsRequest = ( GetServiceAccountNamespaceAssignmentsRequest ) +@typing.final class GetServiceAccountNamespaceAssignmentsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SERVICE_ACCOUNTS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def service_accounts( self, @@ -4710,8 +4840,7 @@ class GetServiceAccountNamespaceAssignmentsResponse(google.protobuf.message.Mess temporalio.api.cloud.identity.v1.message_pb2.ServiceAccountNamespaceAssignment ]: """The list of service accounts with access to the namespace.""" - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -4723,7 +4852,7 @@ class GetServiceAccountNamespaceAssignmentsResponse(google.protobuf.message.Mess ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "service_accounts", @@ -4735,6 +4864,7 @@ global___GetServiceAccountNamespaceAssignmentsResponse = ( GetServiceAccountNamespaceAssignmentsResponse ) +@typing.final class GetUserGroupNamespaceAssignmentsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4758,7 +4888,7 @@ class GetUserGroupNamespaceAssignmentsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "page_size", @@ -4772,11 +4902,14 @@ global___GetUserGroupNamespaceAssignmentsRequest = ( GetUserGroupNamespaceAssignmentsRequest ) +@typing.final class GetUserGroupNamespaceAssignmentsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor GROUPS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.str + """The next page's token.""" @property def groups( self, @@ -4784,8 +4917,7 @@ class GetUserGroupNamespaceAssignmentsResponse(google.protobuf.message.Message): temporalio.api.cloud.identity.v1.message_pb2.UserGroupNamespaceAssignment ]: """The list of user groups with access to the namespace.""" - next_page_token: builtins.str - """The next page's token.""" + def __init__( self, *, @@ -4797,7 +4929,7 @@ class GetUserGroupNamespaceAssignmentsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "groups", b"groups", "next_page_token", b"next_page_token" ], ) -> None: ... diff --git a/temporalio/api/cloud/cloudservice/v1/request_response_pb2_grpc.pyi b/temporalio/api/cloud/cloudservice/v1/request_response_pb2_grpc.pyi index f3a5a087e..de236ac81 100644 --- a/temporalio/api/cloud/cloudservice/v1/request_response_pb2_grpc.pyi +++ b/temporalio/api/cloud/cloudservice/v1/request_response_pb2_grpc.pyi @@ -2,3 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + +import abc +import collections.abc +import typing + +import grpc +import grpc.aio + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... diff --git a/temporalio/api/cloud/cloudservice/v1/service_pb2.py b/temporalio/api/cloud/cloudservice/v1/service_pb2.py index aca6662c2..759b40181 100644 --- a/temporalio/api/cloud/cloudservice/v1/service_pb2.py +++ b/temporalio/api/cloud/cloudservice/v1/service_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -27,8 +26,8 @@ b'\n0temporal/api/cloud/cloudservice/v1/service.proto\x12"temporal.api.cloud.cloudservice.v1\x1a\x39temporal/api/cloud/cloudservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\x92\xd7\x01\n\x0c\x43loudService\x12\xb0\x02\n\x12GetCurrentIdentity\x12=.temporal.api.cloud.cloudservice.v1.GetCurrentIdentityRequest\x1a>.temporal.api.cloud.cloudservice.v1.GetCurrentIdentityResponse"\x9a\x01\x82\xd3\xe4\x93\x02\x19\x12\x17/cloud/current-identity\x92\x41x\n\x07\x41\x63\x63ount\x12\x14Get current identity\x1aWReturns information about the currently authenticated user or service account principal\x12\xa5\x02\n\x08GetUsers\x12\x33.temporal.api.cloud.cloudservice.v1.GetUsersRequest\x1a\x34.temporal.api.cloud.cloudservice.v1.GetUsersResponse"\xad\x01\x82\xd3\xe4\x93\x02\x0e\x12\x0c/cloud/users\x92\x41\x95\x01\n\x05Users\x12\x0eList all users\x1a*Returns a list of all users in the account"E\n\x1dUser management documentation\x12$https://docs.temporal.io/cloud/users*\tlistUsers\x12\x9c\x02\n\x07GetUser\x12\x32.temporal.api.cloud.cloudservice.v1.GetUserRequest\x1a\x33.temporal.api.cloud.cloudservice.v1.GetUserResponse"\xa7\x01\x82\xd3\xe4\x93\x02\x18\x12\x16/cloud/users/{user_id}\x92\x41\x85\x01\n\x05Users\x12\x0eGet user by ID\x1a%Takes a user ID, returns user details"E\n\x1dUser management documentation\x12$https://docs.temporal.io/cloud/users\x12\xd0\x01\n\nCreateUser\x12\x35.temporal.api.cloud.cloudservice.v1.CreateUserRequest\x1a\x36.temporal.api.cloud.cloudservice.v1.CreateUserResponse"S\x82\xd3\xe4\x93\x02\x11"\x0c/cloud/users:\x01*\x92\x41\x39\n\x05Users\x12\rCreate a user\x1a!Creates a new user in the account\x12\xdb\x01\n\nUpdateUser\x12\x35.temporal.api.cloud.cloudservice.v1.UpdateUserRequest\x1a\x36.temporal.api.cloud.cloudservice.v1.UpdateUserResponse"^\x82\xd3\xe4\x93\x02\x1b"\x16/cloud/users/{user_id}:\x01*\x92\x41:\n\x05Users\x12\rUpdate a user\x1a"Updates an existing user\'s details\x12\xd5\x01\n\nDeleteUser\x12\x35.temporal.api.cloud.cloudservice.v1.DeleteUserRequest\x1a\x36.temporal.api.cloud.cloudservice.v1.DeleteUserResponse"X\x82\xd3\xe4\x93\x02\x18*\x16/cloud/users/{user_id}\x92\x41\x37\n\x05Users\x12\rDelete a user\x1a\x1fRemoves a user from the account\x12\xaa\x03\n\x16SetUserNamespaceAccess\x12\x41.temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessRequest\x1a\x42.temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessResponse"\x88\x02\x82\xd3\xe4\x93\x02\x39"4/cloud/namespaces/{namespace}/users/{user_id}/access:\x01*\x92\x41\xc5\x01\n\x05Users\x12\x19Set user namespace access\x1a\x38\x43onfigures a user\'s permissions for a specific namespace"g\n#Namespace permissions documentation\x12@https://docs.temporal.io/cloud/users-namespace-level-permissions\x12\xb1\x02\n\x11GetAsyncOperation\x12<.temporal.api.cloud.cloudservice.v1.GetAsyncOperationRequest\x1a=.temporal.api.cloud.cloudservice.v1.GetAsyncOperationResponse"\x9e\x01\x82\xd3\xe4\x93\x02(\x12&/cloud/operations/{async_operation_id}\x92\x41m\n\nOperations\x12\x1aGet async operation status\x1a\x43Returns the current status and details of an asynchronous operation\x12\xc6\x02\n\x0f\x43reateNamespace\x12:.temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest\x1a;.temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse"\xb9\x01\x82\xd3\xe4\x93\x02\x16"\x11/cloud/namespaces:\x01*\x92\x41\x99\x01\n\nNamespaces\x12\x12\x43reate a namespace\x1a&Creates a new namespace in the account"O\n"Namespace management documentation\x12)https://docs.temporal.io/cloud/namespaces\x12\xc7\x02\n\rGetNamespaces\x12\x38.temporal.api.cloud.cloudservice.v1.GetNamespacesRequest\x1a\x39.temporal.api.cloud.cloudservice.v1.GetNamespacesResponse"\xc0\x01\x82\xd3\xe4\x93\x02\x13\x12\x11/cloud/namespaces\x92\x41\xa3\x01\n\nNamespaces\x12\x13List all namespaces\x1a/Returns a list of all namespaces in the account"O\n"Namespace management documentation\x12)https://docs.temporal.io/cloud/namespaces\x12\xda\x02\n\x0cGetNamespace\x12\x37.temporal.api.cloud.cloudservice.v1.GetNamespaceRequest\x1a\x38.temporal.api.cloud.cloudservice.v1.GetNamespaceResponse"\xd6\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cloud/namespaces/{namespace}\x92\x41\xad\x01\n\nNamespaces\x12\x15Get namespace details\x1a\x37Returns detailed information about a specific namespace"O\n"Namespace management documentation\x12)https://docs.temporal.io/cloud/namespaces\x12\xdb\x02\n\x0fUpdateNamespace\x12:.temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest\x1a;.temporal.api.cloud.cloudservice.v1.UpdateNamespaceResponse"\xce\x01\x82\xd3\xe4\x93\x02""\x1d/cloud/namespaces/{namespace}:\x01*\x92\x41\xa2\x01\n\nNamespaces\x12\x12Update a namespace\x1a/Updates configuration for an existing namespace"O\n"Namespace management documentation\x12)https://docs.temporal.io/cloud/namespaces\x12\xc7\x03\n\x1bRenameCustomSearchAttribute\x12\x46.temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeRequest\x1aG.temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeResponse"\x96\x02\x82\xd3\xe4\x93\x02\x41".temporal.api.cloud.cloudservice.v1.AddNamespaceRegionResponse"\xf0\x01\x88\x02\x01\x82\xd3\xe4\x93\x02-"(/cloud/namespaces/{namespace}/add-region:\x01*\x92\x41\xb6\x01\n\x11High Availability\x12\x15\x41\x64\x64 namespace replica\x1a+Adds a new replica to an existing namespace"]\n)High availability namespace documentation\x12\x30https://docs.temporal.io/cloud/high-availability\x12\x9e\x03\n\x15\x44\x65leteNamespaceRegion\x12@.temporal.api.cloud.cloudservice.v1.DeleteNamespaceRegionRequest\x1a\x41.temporal.api.cloud.cloudservice.v1.DeleteNamespaceRegionResponse"\xff\x01\x88\x02\x01\x82\xd3\xe4\x93\x02\x30*./cloud/namespaces/{namespace}/regions/{region}\x92\x41\xc2\x01\n\x11High Availability\x12\x18Remove namespace replica\x1a\x34Removes a replica from a high availability namespace"]\n)High availability namespace documentation\x12\x30https://docs.temporal.io/cloud/high-availability\x12\xa3\x02\n\nGetRegions\x12\x35.temporal.api.cloud.cloudservice.v1.GetRegionsRequest\x1a\x36.temporal.api.cloud.cloudservice.v1.GetRegionsResponse"\xa5\x01\x82\xd3\xe4\x93\x02\x10\x12\x0e/cloud/regions\x92\x41\x8b\x01\n\x07Regions\x12\x10List all regions\x1a-Returns a list of all available cloud regions"?\n\x15Regions documentation\x12&https://docs.temporal.io/cloud/regions\x12\xb2\x02\n\tGetRegion\x12\x34.temporal.api.cloud.cloudservice.v1.GetRegionRequest\x1a\x35.temporal.api.cloud.cloudservice.v1.GetRegionResponse"\xb7\x01\x82\xd3\xe4\x93\x02\x19\x12\x17/cloud/regions/{region}\x92\x41\x94\x01\n\x07Regions\x12\x12Get region details\x1a\x34Returns detailed information about a specific region"?\n\x15Regions documentation\x12&https://docs.temporal.io/cloud/regions\x12\xa8\x02\n\nGetApiKeys\x12\x35.temporal.api.cloud.cloudservice.v1.GetApiKeysRequest\x1a\x36.temporal.api.cloud.cloudservice.v1.GetApiKeysResponse"\xaa\x01\x82\xd3\xe4\x93\x02\x11\x12\x0f/cloud/api-keys\x92\x41\x8f\x01\n\x08\x41PI Keys\x12\x11List all API keys\x1a-Returns a list of all API keys in the account"A\n\x16\x41PI Keys documentation\x12\'https://docs.temporal.io/cloud/api-keys\x12\xb8\x02\n\tGetApiKey\x12\x34.temporal.api.cloud.cloudservice.v1.GetApiKeyRequest\x1a\x35.temporal.api.cloud.cloudservice.v1.GetApiKeyResponse"\xbd\x01\x82\xd3\xe4\x93\x02\x1a\x12\x18/cloud/api-keys/{key_id}\x92\x41\x99\x01\n\x08\x41PI Keys\x12\x13Get API key details\x1a\x35Returns detailed information about a specific API key"A\n\x16\x41PI Keys documentation\x12\'https://docs.temporal.io/cloud/api-keys\x12\xb1\x02\n\x0c\x43reateApiKey\x12\x37.temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest\x1a\x38.temporal.api.cloud.cloudservice.v1.CreateApiKeyResponse"\xad\x01\x82\xd3\xe4\x93\x02\x14"\x0f/cloud/api-keys:\x01*\x92\x41\x8f\x01\n\x08\x41PI Keys\x12\x11\x43reate an API key\x1a-Creates a new API key for programmatic access"A\n\x16\x41PI Keys documentation\x12\'https://docs.temporal.io/cloud/api-keys\x12\xb5\x02\n\x0cUpdateApiKey\x12\x37.temporal.api.cloud.cloudservice.v1.UpdateApiKeyRequest\x1a\x38.temporal.api.cloud.cloudservice.v1.UpdateApiKeyResponse"\xb1\x01\x82\xd3\xe4\x93\x02\x1d"\x18/cloud/api-keys/{key_id}:\x01*\x92\x41\x8a\x01\n\x08\x41PI Keys\x12\x11Update an API key\x1a(Updates an existing API key\'s properties"A\n\x16\x41PI Keys documentation\x12\'https://docs.temporal.io/cloud/api-keys\x12\xa8\x02\n\x0c\x44\x65leteApiKey\x12\x37.temporal.api.cloud.cloudservice.v1.DeleteApiKeyRequest\x1a\x38.temporal.api.cloud.cloudservice.v1.DeleteApiKeyResponse"\xa4\x01\x82\xd3\xe4\x93\x02\x1a*\x18/cloud/api-keys/{key_id}\x92\x41\x80\x01\n\x08\x41PI Keys\x12\x11\x44\x65lete an API key\x1a\x1eRevokes and deletes an API key"A\n\x16\x41PI Keys documentation\x12\'https://docs.temporal.io/cloud/api-keys\x12\xc3\x02\n\x11GetNexusEndpoints\x12<.temporal.api.cloud.cloudservice.v1.GetNexusEndpointsRequest\x1a=.temporal.api.cloud.cloudservice.v1.GetNexusEndpointsResponse"\xb0\x01\x82\xd3\xe4\x93\x02\x18\x12\x16/cloud/nexus/endpoints\x92\x41\x8e\x01\n\x05Nexus\x12\x18List all Nexus endpoints\x1a\x34Returns a list of all Nexus endpoints in the account"5\n\x13Nexus documentation\x12\x1ehttps://docs.temporal.io/nexus\x12\xd8\x02\n\x10GetNexusEndpoint\x12;.temporal.api.cloud.cloudservice.v1.GetNexusEndpointRequest\x1a<.temporal.api.cloud.cloudservice.v1.GetNexusEndpointResponse"\xc8\x01\x82\xd3\xe4\x93\x02&\x12$/cloud/nexus/endpoints/{endpoint_id}\x92\x41\x98\x01\n\x05Nexus\x12\x1aGet Nexus endpoint details\x1a.temporal.api.cloud.cloudservice.v1.CreateNexusEndpointRequest\x1a?.temporal.api.cloud.cloudservice.v1.CreateNexusEndpointResponse"\xbc\x01\x82\xd3\xe4\x93\x02\x1b"\x16/cloud/nexus/endpoints:\x01*\x92\x41\x97\x01\n\x05Nexus\x12\x17\x43reate a Nexus endpoint\x1a>Creates a new Nexus endpoint for cross-namespace communication"5\n\x13Nexus documentation\x12\x1ehttps://docs.temporal.io/nexus\x12\xd7\x02\n\x13UpdateNexusEndpoint\x12>.temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointRequest\x1a?.temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointResponse"\xbe\x01\x82\xd3\xe4\x93\x02)"$/cloud/nexus/endpoints/{endpoint_id}:\x01*\x92\x41\x8b\x01\n\x05Nexus\x12\x17Update a Nexus endpoint\x1a\x32Updates an existing Nexus endpoint\'s configuration"5\n\x13Nexus documentation\x12\x1ehttps://docs.temporal.io/nexus\x12\xcb\x02\n\x13\x44\x65leteNexusEndpoint\x12>.temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointRequest\x1a?.temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointResponse"\xb2\x01\x82\xd3\xe4\x93\x02&*$/cloud/nexus/endpoints/{endpoint_id}\x92\x41\x82\x01\n\x05Nexus\x12\x17\x44\x65lete a Nexus endpoint\x1a)Removes a Nexus endpoint from the account"5\n\x13Nexus documentation\x12\x1ehttps://docs.temporal.io/nexus\x12\xcc\x02\n\rGetUserGroups\x12\x38.temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest\x1a\x39.temporal.api.cloud.cloudservice.v1.GetUserGroupsResponse"\xc5\x01\x82\xd3\xe4\x93\x02\x14\x12\x12/cloud/user-groups\x92\x41\xa7\x01\n\x06Groups\x12\x14List all user groups\x1a\x30Returns a list of all user groups in the account"U\n\x19User groups documentation\x12\x38https://docs.temporal.io/cloud/users-account-level-roles\x12\xd0\x02\n\x0cGetUserGroup\x12\x37.temporal.api.cloud.cloudservice.v1.GetUserGroupRequest\x1a\x38.temporal.api.cloud.cloudservice.v1.GetUserGroupResponse"\xcc\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cloud/user-groups/{group_id}\x92\x41\xa3\x01\n\x06Groups\x12\x16Get user group details\x1a\x38Returns detailed information about a specific user group"G\n\x19User groups documentation\x12*https://docs.temporal.io/cloud/user-groups\x12\xc7\x02\n\x0f\x43reateUserGroup\x12:.temporal.api.cloud.cloudservice.v1.CreateUserGroupRequest\x1a;.temporal.api.cloud.cloudservice.v1.CreateUserGroupResponse"\xba\x01\x82\xd3\xe4\x93\x02\x17"\x12/cloud/user-groups:\x01*\x92\x41\x99\x01\n\x06Groups\x12\x13\x43reate a user group\x1a\x31\x43reates a new user group for managing permissions"G\n\x19User groups documentation\x12*https://docs.temporal.io/cloud/user-groups\x12\xcc\x02\n\x0fUpdateUserGroup\x12:.temporal.api.cloud.cloudservice.v1.UpdateUserGroupRequest\x1a;.temporal.api.cloud.cloudservice.v1.UpdateUserGroupResponse"\xbf\x01\x82\xd3\xe4\x93\x02""\x1d/cloud/user-groups/{group_id}:\x01*\x92\x41\x93\x01\n\x06Groups\x12\x13Update a user group\x1a+Updates an existing user group\'s properties"G\n\x19User groups documentation\x12*https://docs.temporal.io/cloud/user-groups\x12\xc3\x02\n\x0f\x44\x65leteUserGroup\x12:.temporal.api.cloud.cloudservice.v1.DeleteUserGroupRequest\x1a;.temporal.api.cloud.cloudservice.v1.DeleteUserGroupResponse"\xb6\x01\x82\xd3\xe4\x93\x02\x1f*\x1d/cloud/user-groups/{group_id}\x92\x41\x8d\x01\n\x06Groups\x12\x13\x44\x65lete a user group\x1a%Removes a user group from the account"G\n\x19User groups documentation\x12*https://docs.temporal.io/cloud/user-groups\x12\xad\x03\n\x1bSetUserGroupNamespaceAccess\x12\x46.temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessRequest\x1aG.temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessResponse"\xfc\x01\x82\xd3\xe4\x93\x02@";/cloud/namespaces/{namespace}/user-groups/{group_id}/access:\x01*\x92\x41\xb2\x01\n\x06Groups\x12\x1fSet user group namespace access\x1a>Configures a user group\'s permissions for a specific namespace"G\n\x19User groups documentation\x12*https://docs.temporal.io/cloud/user-groups\x12\xdf\x02\n\x12\x41\x64\x64UserGroupMember\x12=.temporal.api.cloud.cloudservice.v1.AddUserGroupMemberRequest\x1a>.temporal.api.cloud.cloudservice.v1.AddUserGroupMemberResponse"\xc9\x01\x82\xd3\xe4\x93\x02*"%/cloud/user-groups/{group_id}/members:\x01*\x92\x41\x95\x01\n\x06Groups\x12\x11\x41\x64\x64 user to group\x1a/Adds a user to a user group (Cloud groups only)"G\n\x19User groups documentation\x12*https://docs.temporal.io/cloud/user-groups\x12\xf8\x02\n\x15RemoveUserGroupMember\x12@.temporal.api.cloud.cloudservice.v1.RemoveUserGroupMemberRequest\x1a\x41.temporal.api.cloud.cloudservice.v1.RemoveUserGroupMemberResponse"\xd9\x01\x82\xd3\xe4\x93\x02\x30"+/cloud/user-groups/{group_id}/remove-member:\x01*\x92\x41\x9f\x01\n\x06Groups\x12\x16Remove user from group\x1a\x34Removes a user from a user group (Cloud groups only)"G\n\x19User groups documentation\x12*https://docs.temporal.io/cloud/user-groups\x12\xdf\x02\n\x13GetUserGroupMembers\x12>.temporal.api.cloud.cloudservice.v1.GetUserGroupMembersRequest\x1a?.temporal.api.cloud.cloudservice.v1.GetUserGroupMembersResponse"\xc6\x01\x82\xd3\xe4\x93\x02\'\x12%/cloud/user-groups/{group_id}/members\x92\x41\x95\x01\n\x06Groups\x12\x15List users in a group\x1a+Returns a list of all users in a user group"G\n\x19User groups documentation\x12*https://docs.temporal.io/cloud/user-groups\x12\xf5\x02\n\x14\x43reateServiceAccount\x12?.temporal.api.cloud.cloudservice.v1.CreateServiceAccountRequest\x1a@.temporal.api.cloud.cloudservice.v1.CreateServiceAccountResponse"\xd9\x01\x82\xd3\xe4\x93\x02\x1c"\x17/cloud/service-accounts:\x01*\x92\x41\xb3\x01\n\x10Service Accounts\x12\x18\x43reate a service account\x1a\x32\x43reates a new service account for automated access"Q\n\x1eService Accounts documentation\x12/https://docs.temporal.io/cloud/service-accounts\x12\x8c\x03\n\x11GetServiceAccount\x12<.temporal.api.cloud.cloudservice.v1.GetServiceAccountRequest\x1a=.temporal.api.cloud.cloudservice.v1.GetServiceAccountResponse"\xf9\x01\x82\xd3\xe4\x93\x02.\x12,/cloud/service-accounts/{service_account_id}\x92\x41\xc1\x01\n\x10Service Accounts\x12\x1bGet service account details\x1a=Returns detailed information about a specific service account"Q\n\x1eService Accounts documentation\x12/https://docs.temporal.io/cloud/service-accounts\x12\xf0\x02\n\x12GetServiceAccounts\x12=.temporal.api.cloud.cloudservice.v1.GetServiceAccountsRequest\x1a>.temporal.api.cloud.cloudservice.v1.GetServiceAccountsResponse"\xda\x01\x82\xd3\xe4\x93\x02\x19\x12\x17/cloud/service-accounts\x92\x41\xb7\x01\n\x10Service Accounts\x12\x19List all service accounts\x1a\x35Returns a list of all service accounts in the account"Q\n\x1eService Accounts documentation\x12/https://docs.temporal.io/cloud/service-accounts\x12\x88\x03\n\x14UpdateServiceAccount\x12?.temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest\x1a@.temporal.api.cloud.cloudservice.v1.UpdateServiceAccountResponse"\xec\x01\x82\xd3\xe4\x93\x02\x31",/cloud/service-accounts/{service_account_id}:\x01*\x92\x41\xb1\x01\n\x10Service Accounts\x12\x18Update a service account\x1a\x30Updates an existing service account\'s properties"Q\n\x1eService Accounts documentation\x12/https://docs.temporal.io/cloud/service-accounts\x12\xe9\x03\n SetServiceAccountNamespaceAccess\x12K.temporal.api.cloud.cloudservice.v1.SetServiceAccountNamespaceAccessRequest\x1aL.temporal.api.cloud.cloudservice.v1.SetServiceAccountNamespaceAccessResponse"\xa9\x02\x82\xd3\xe4\x93\x02O"J/cloud/namespaces/{namespace}/service-accounts/{service_account_id}/access:\x01*\x92\x41\xd0\x01\n\x10Service Accounts\x12$Set service account namespace access\x1a\x43\x43onfigures a service account\'s permissions for a specific namespace"Q\n\x1eService Accounts documentation\x12/https://docs.temporal.io/cloud/service-accounts\x12\xff\x02\n\x14\x44\x65leteServiceAccount\x12?.temporal.api.cloud.cloudservice.v1.DeleteServiceAccountRequest\x1a@.temporal.api.cloud.cloudservice.v1.DeleteServiceAccountResponse"\xe3\x01\x82\xd3\xe4\x93\x02.*,/cloud/service-accounts/{service_account_id}\x92\x41\xab\x01\n\x10Service Accounts\x12\x18\x44\x65lete a service account\x1a*Removes a service account from the account"Q\n\x1eService Accounts documentation\x12/https://docs.temporal.io/cloud/service-accounts\x12\xcb\x01\n\x08GetUsage\x12\x33.temporal.api.cloud.cloudservice.v1.GetUsageRequest\x1a\x34.temporal.api.cloud.cloudservice.v1.GetUsageResponse"T\x82\xd3\xe4\x93\x02\x0e\x12\x0c/cloud/usage\x92\x41=\n\x07\x41\x63\x63ount\x12\x0eGet usage data\x1a Get usage data across namespacesX\x01\x12\xb0\x02\n\nGetAccount\x12\x35.temporal.api.cloud.cloudservice.v1.GetAccountRequest\x1a\x36.temporal.api.cloud.cloudservice.v1.GetAccountResponse"\xb2\x01\x82\xd3\xe4\x93\x02\x10\x12\x0e/cloud/account\x92\x41\x98\x01\n\x07\x41\x63\x63ount\x12\x13Get account details\x1a.Returns detailed information about the account"H\n\x15\x42illing documentation\x12/https://docs.temporal.io/cloud/billing-and-cost\x12\xbb\x02\n\rUpdateAccount\x12\x38.temporal.api.cloud.cloudservice.v1.UpdateAccountRequest\x1a\x39.temporal.api.cloud.cloudservice.v1.UpdateAccountResponse"\xb4\x01\x82\xd3\xe4\x93\x02\x13"\x0e/cloud/account:\x01*\x92\x41\x97\x01\n\x07\x41\x63\x63ount\x12\x16Update account details\x1a*Updates account configuration and settings"H\n\x15\x42illing documentation\x12/https://docs.temporal.io/cloud/billing-and-cost\x12\xf3\x02\n\x19\x43reateNamespaceExportSink\x12\x44.temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkRequest\x1a\x45.temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkResponse"\xc8\x01\x82\xd3\xe4\x93\x02/"*/cloud/namespaces/{namespace}/export-sinks:\x01*\x92\x41\x8f\x01\n\x06\x45xport\x12\x1a\x43reate history export sink\x1a*Creates a new workflow history export sink"=\n\x14\x45xport documentation\x12%https://docs.temporal.io/cloud/export\x12\x8c\x03\n\x16GetNamespaceExportSink\x12\x41.temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkRequest\x1a\x42.temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkResponse"\xea\x01\x82\xd3\xe4\x93\x02\x33\x12\x31/cloud/namespaces/{namespace}/export-sinks/{name}\x92\x41\xad\x01\n\x06\x45xport\x12\x18Get history sink details\x1aJReturns detailed information about a specific workflow history export sink"=\n\x14\x45xport documentation\x12%https://docs.temporal.io/cloud/export\x12\x82\x03\n\x17GetNamespaceExportSinks\x12\x42.temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksRequest\x1a\x43.temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksResponse"\xdd\x01\x82\xd3\xe4\x93\x02,\x12*/cloud/namespaces/{namespace}/export-sinks\x92\x41\xa7\x01\n\x06\x45xport\x12\x19List history export sinks\x1a\x43Returns a list of all workflow history export sinks for a namespace"=\n\x14\x45xport documentation\x12%https://docs.temporal.io/cloud/export\x12\x95\x03\n\x19UpdateNamespaceExportSink\x12\x44.temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkRequest\x1a\x45.temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkResponse"\xea\x01\x82\xd3\xe4\x93\x02;"6/cloud/namespaces/{namespace}/export-sinks/{spec.name}:\x01*\x92\x41\xa5\x01\n\x06\x45xport\x12\x1aUpdate history export sink\x1a@Updates an existing workflow history export sink\'s configuration"=\n\x14\x45xport documentation\x12%https://docs.temporal.io/cloud/export\x12\x84\x03\n\x19\x44\x65leteNamespaceExportSink\x12\x44.temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkRequest\x1a\x45.temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkResponse"\xd9\x01\x82\xd3\xe4\x93\x02\x33*1/cloud/namespaces/{namespace}/export-sinks/{name}\x92\x41\x9c\x01\n\x06\x45xport\x12\x1a\x44\x65lete history export sink\x1a\x37Removes a workflow history export sink from a namespace"=\n\x14\x45xport documentation\x12%https://docs.temporal.io/cloud/export\x12\xc9\x03\n\x1bValidateNamespaceExportSink\x12\x46.temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkRequest\x1aG.temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkResponse"\x98\x02\x82\xd3\xe4\x93\x02\x37"2/cloud/namespaces/{namespace}/export-sink-validate:\x01*\x92\x41\xd7\x01\n\x06\x45xport\x12*Validate history export sink configuration\x1a\x62Tests workflow history export sink configuration by delivering a test file to verify accessibility"=\n\x14\x45xport documentation\x12%https://docs.temporal.io/cloud/export\x12\xfc\x02\n\x13UpdateNamespaceTags\x12>.temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsRequest\x1a?.temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsResponse"\xe3\x01\x82\xd3\xe4\x93\x02.")/cloud/namespaces/{namespace}/update-tags:\x01*\x92\x41\xab\x01\n\nNamespaces\x12\x15Update namespace tags\x1a,Updates the tags associated with a namespace"X\n\x1bNamespace tag documentation\x12\x39https://docs.temporal.io/cloud/namespaces#tag-a-namespace\x12\xff\x02\n\x16\x43reateConnectivityRule\x12\x41.temporal.api.cloud.cloudservice.v1.CreateConnectivityRuleRequest\x1a\x42.temporal.api.cloud.cloudservice.v1.CreateConnectivityRuleResponse"\xdd\x01\x82\xd3\xe4\x93\x02\x1e"\x19/cloud/connectivity-rules:\x01*\x92\x41\xb5\x01\n\x12\x43onnectivity Rules\x12\x18\x43reate connectivity rule\x1a:Creates a new connectivity rule for network access control"I\n\x1a\x43onnectivity documentation\x12+https://docs.temporal.io/cloud/connectivity\x12\x94\x03\n\x13GetConnectivityRule\x12>.temporal.api.cloud.cloudservice.v1.GetConnectivityRuleRequest\x1a?.temporal.api.cloud.cloudservice.v1.GetConnectivityRuleResponse"\xfb\x01\x82\xd3\xe4\x93\x02\x32\x12\x30/cloud/connectivity-rules/{connectivity_rule_id}\x92\x41\xbf\x01\n\x12\x43onnectivity Rules\x12\x1dGet connectivity rule details\x1a?Returns detailed information about a specific connectivity rule"I\n\x1a\x43onnectivity documentation\x12+https://docs.temporal.io/cloud/connectivity\x12\xf6\x02\n\x14GetConnectivityRules\x12?.temporal.api.cloud.cloudservice.v1.GetConnectivityRulesRequest\x1a@.temporal.api.cloud.cloudservice.v1.GetConnectivityRulesResponse"\xda\x01\x82\xd3\xe4\x93\x02\x1b\x12\x19/cloud/connectivity-rules\x92\x41\xb5\x01\n\x12\x43onnectivity Rules\x12\x1bList all connectivity rules\x1a\x37Returns a list of all connectivity rules in the account"I\n\x1a\x43onnectivity documentation\x12+https://docs.temporal.io/cloud/connectivity\x12\x85\x03\n\x16\x44\x65leteConnectivityRule\x12\x41.temporal.api.cloud.cloudservice.v1.DeleteConnectivityRuleRequest\x1a\x42.temporal.api.cloud.cloudservice.v1.DeleteConnectivityRuleResponse"\xe3\x01\x82\xd3\xe4\x93\x02\x32*0/cloud/connectivity-rules/{connectivity_rule_id}\x92\x41\xa7\x01\n\x12\x43onnectivity Rules\x12\x18\x44\x65lete connectivity rule\x1a,Removes a connectivity rule from the account"I\n\x1a\x43onnectivity documentation\x12+https://docs.temporal.io/cloud/connectivity\x12\xe2\x02\n\x0cGetAuditLogs\x12\x37.temporal.api.cloud.cloudservice.v1.GetAuditLogsRequest\x1a\x38.temporal.api.cloud.cloudservice.v1.GetAuditLogsResponse"\xde\x01\x82\xd3\xe4\x93\x02\x13\x12\x11/cloud/audit-logs\x92\x41\xc1\x01\n\x07\x41\x63\x63ount\x12\x0eGet audit logs\x1aYReturns a paginated list of audit logs for the account, optionally filtered by time range"K\n\x1b\x41udit logging documentation\x12,https://docs.temporal.io/cloud/audit-logging\x12\xb4\x04\n\x1bValidateAccountAuditLogSink\x12\x46.temporal.api.cloud.cloudservice.v1.ValidateAccountAuditLogSinkRequest\x1aG.temporal.api.cloud.cloudservice.v1.ValidateAccountAuditLogSinkResponse"\x83\x03\x82\xd3\xe4\x93\x02#"\x1e/cloud/audit-log-sink-validate:\x01*\x92\x41\xd6\x02\n\x07\x41\x63\x63ount\x12\x17Validate audit log sink\x1a\xe4\x01Validate customer audit log sink is accessible from Temporal\'s workflow by delivering an empty file to the specified sink. The operation verifies that the sink is correctly configured, accessible and ready to receive audit logs."K\n\x1b\x41udit logging documentation\x12,https://docs.temporal.io/cloud/audit-logging\x12\xf4\x02\n\x19\x43reateAccountAuditLogSink\x12\x44.temporal.api.cloud.cloudservice.v1.CreateAccountAuditLogSinkRequest\x1a\x45.temporal.api.cloud.cloudservice.v1.CreateAccountAuditLogSinkResponse"\xc9\x01\x82\xd3\xe4\x93\x02\x1b"\x16/cloud/audit-log-sinks:\x01*\x92\x41\xa4\x01\n\x07\x41\x63\x63ount\x12\x15\x43reate audit log sink\x1a\x35\x43reates a new audit log sink for exporting audit logs"K\n\x1b\x41udit logging documentation\x12,https://docs.temporal.io/cloud/audit-logging\x12\xfb\x02\n\x16GetAccountAuditLogSink\x12\x41.temporal.api.cloud.cloudservice.v1.GetAccountAuditLogSinkRequest\x1a\x42.temporal.api.cloud.cloudservice.v1.GetAccountAuditLogSinkResponse"\xd9\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cloud/audit-log-sinks/{name}\x92\x41\xb0\x01\n\x07\x41\x63\x63ount\x12\x1aGet audit log sink details\x1a.temporal.api.cloud.cloudservice.v1.CreateBillingReportRequest\x1a?.temporal.api.cloud.cloudservice.v1.CreateBillingReportResponse"\xc1\x01\x82\xd3\xe4\x93\x02\x1b"\x16/cloud/billing-reports:\x01*\x92\x41\x9c\x01\n\x07\x42illing\x12\x17\x43reate a billing report\x1a(Creates a billing report for the account"N\n\x1c\x42illing report documentation\x12.https://docs.temporal.io/cloud/billing-reports\x12\xe6\x02\n\x10GetBillingReport\x12;.temporal.api.cloud.cloudservice.v1.GetBillingReportRequest\x1a<.temporal.api.cloud.cloudservice.v1.GetBillingReportResponse"\xd6\x01\x82\xd3\xe4\x93\x02,\x12*/cloud/billing-reports/{billing_report_id}\x92\x41\xa0\x01\n\x07\x42illing\x12\x14Get a billing report\x1a/Gets an existing billing report for the account"N\n\x1c\x42illing report documentation\x12.https://docs.temporal.io/cloud/billing-reports\x12\xc4\x02\n\x0eGetCustomRoles\x12\x39.temporal.api.cloud.cloudservice.v1.GetCustomRolesRequest\x1a:.temporal.api.cloud.cloudservice.v1.GetCustomRolesResponse"\xba\x01\x82\xd3\xe4\x93\x02\x15\x12\x13/cloud/custom-roles\x92\x41\x9b\x01\n\x0c\x43ustom Roles\x12\x11List custom roles\x1a-Returns a list of custom roles in the account"I\n\x1a\x43ustom roles documentation\x12+https://docs.temporal.io/cloud/custom-roles\x12\xcc\x02\n\rGetCustomRole\x12\x38.temporal.api.cloud.cloudservice.v1.GetCustomRoleRequest\x1a\x39.temporal.api.cloud.cloudservice.v1.GetCustomRoleResponse"\xc5\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/cloud/custom-roles/{role_id}\x92\x41\x9c\x01\n\x0c\x43ustom Roles\x12\x15Get custom role by ID\x1a*Returns details for a specific custom role"I\n\x1a\x43ustom roles documentation\x12+https://docs.temporal.io/cloud/custom-roles\x12\xcb\x02\n\x10\x43reateCustomRole\x12;.temporal.api.cloud.cloudservice.v1.CreateCustomRoleRequest\x1a<.temporal.api.cloud.cloudservice.v1.CreateCustomRoleResponse"\xbb\x01\x82\xd3\xe4\x93\x02\x18"\x13/cloud/custom-roles:\x01*\x92\x41\x99\x01\n\x0c\x43ustom Roles\x12\x14\x43reate a custom role\x1a(Creates a new custom role in the account"I\n\x1a\x43ustom roles documentation\x12+https://docs.temporal.io/cloud/custom-roles\x12\xcc\x02\n\x10UpdateCustomRole\x12;.temporal.api.cloud.cloudservice.v1.UpdateCustomRoleRequest\x1a<.temporal.api.cloud.cloudservice.v1.UpdateCustomRoleResponse"\xbc\x01\x82\xd3\xe4\x93\x02""\x1d/cloud/custom-roles/{role_id}:\x01*\x92\x41\x90\x01\n\x0c\x43ustom Roles\x12\x14Update a custom role\x1a\x1fUpdates an existing custom role"I\n\x1a\x43ustom roles documentation\x12+https://docs.temporal.io/cloud/custom-roles\x12\xd0\x02\n\x10\x44\x65leteCustomRole\x12;.temporal.api.cloud.cloudservice.v1.DeleteCustomRoleRequest\x1a<.temporal.api.cloud.cloudservice.v1.DeleteCustomRoleResponse"\xc0\x01\x82\xd3\xe4\x93\x02\x1f*\x1d/cloud/custom-roles/{role_id}\x92\x41\x97\x01\n\x0c\x43ustom Roles\x12\x14\x44\x65lete a custom role\x1a&Deletes a custom role from the account"I\n\x1a\x43ustom roles documentation\x12+https://docs.temporal.io/cloud/custom-roles\x12\xb9\x03\n\x1bGetUserNamespaceAssignments\x12\x46.temporal.api.cloud.cloudservice.v1.GetUserNamespaceAssignmentsRequest\x1aG.temporal.api.cloud.cloudservice.v1.GetUserNamespaceAssignmentsResponse"\x88\x02\x82\xd3\xe4\x93\x02\x30\x12./cloud/namespaces/{namespace}/user-assignments\x92\x41\xce\x01\n\x05Users\x12$Get users with access to a namespace\x1a\x62Returns the users that have access to the namespace, including each user\'s namespace-level access.";\n\x13Users documentation\x12$https://docs.temporal.io/cloud/users\x12\xa5\x04\n%GetServiceAccountNamespaceAssignments\x12P.temporal.api.cloud.cloudservice.v1.GetServiceAccountNamespaceAssignmentsRequest\x1aQ.temporal.api.cloud.cloudservice.v1.GetServiceAccountNamespaceAssignmentsResponse"\xd6\x02\x82\xd3\xe4\x93\x02;\x12\x39/cloud/namespaces/{namespace}/service-account-assignments\x92\x41\x91\x02\n\x10Service Accounts\x12\x30List service accounts with access to a namespace\x1axReturns the service accounts that have access to the namespace, including each service account\'s namespace-level access."Q\n\x1eService Accounts documentation\x12/https://docs.temporal.io/cloud/service-accounts\x12\xe9\x03\n GetUserGroupNamespaceAssignments\x12K.temporal.api.cloud.cloudservice.v1.GetUserGroupNamespaceAssignmentsRequest\x1aL.temporal.api.cloud.cloudservice.v1.GetUserGroupNamespaceAssignmentsResponse"\xa9\x02\x82\xd3\xe4\x93\x02\x36\x12\x34/cloud/namespaces/{namespace}/user-group-assignments\x92\x41\xe9\x01\n\x06Groups\x12+List user groups with access to a namespace\x1aiReturns the user groups that have access to the namespace, including each group\'s namespace-level access."G\n\x19User groups documentation\x12*https://docs.temporal.io/cloud/user-groupsB\xc1\x15\n%io.temporal.api.cloud.cloudservice.v1B\x0cServiceProtoP\x01Z5go.temporal.io/api/cloud/cloudservice/v1;cloudservice\xaa\x02$Temporalio.Api.Cloud.CloudService.V1\xea\x02(Temporalio::Api::Cloud::CloudService::V1\x92\x41\xfd\x13\x12\xe0\r\n\x16Temporal Cloud Ops API\x12\x96\x0cProgrammatic access to manage Temporal Cloud control plane resources including namespaces, users, service accounts, and more.\n\n## Authentication\n\nAll API requests require authentication using an API Key. Include your API key in the `Authorization` header using the Bearer scheme:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\nAPI keys can be created and managed through the [API Keys endpoints](#tag/API-Keys) or via the Temporal Cloud UI. For more information, see [API Keys Documentation](https://docs.temporal.io/cloud/api-keys).\n\n## Authorization\n\nThe API uses Role-Based Access Control (RBAC) to manage permissions. Each operation requires specific role-based permissions in addition to a valid API key.\n\n### Account-Level Roles\n\n- **Account Owner** - Full account administration access\n- **Account Admin** - Manage namespaces, users, and service accounts \n- **Account Developer** - Create namespaces and manage Nexus endpoints\n- **Finance Admin** - View usage and billing information\n- **Account Read** - Read-only access to account resources\n\n### Namespace-Level Roles\n\n- **Namespace Admin** - Full access to namespace configuration and data\n- **Namespace Write** - Execute workflows and modify workflow data\n- **Namespace Read** - Read-only access to namespace data\n\nNamespace-level permissions are scoped to specific namespaces. A user or service account may have different permission levels across different namespaces.\n\nFor detailed information about roles and permissions, see [Access Control Documentation](https://docs.temporal.io/cloud/users).2\x03\x31.0:\xa7\x01\n\x06x-logo\x12\x9c\x01*\x99\x01\n\x96\x01\n\x03url\x12\x8e\x01\x1a\x8b\x01https://images.ctfassets.net/0uuz8ydxyd9p/4YGUnEoCaH9SyoUDhlJkau/e1600205d17eeee3033d926ef06664a9/Temporal_LogoLockup_Horizontal_dark_1.svgj.\n\nNamespaces\x12 Manage Temporal Cloud namespacesj0\n\x05Users\x12\'Manage users and their namespace accessjF\n\x10Service Accounts\x12\x32Manage service accounts and their namespace accessj.\n\x08\x41PI Keys\x12"Manage API keys for authenticationj1\n\x06Groups\x12\'Manage user groups and group membershipj\x1f\n\x05Nexus\x12\x16Manage Nexus endpointsj\x7f\n\x11High Availability\x12jManage high availability (multi-region, multi-cloud, and same-region replication) namespace configurationsj7\n\x06\x45xport\x12-Manage workflow history export configurationsj7\n\x12\x43onnectivity Rules\x12!Manage network connectivity rulesj"\n\x07Regions\x12\x17Query available regionsj,\n\x07\x41\x63\x63ount\x12!Manage account settings and usagej9\n\x0c\x43ustom Roles\x12)Manage custom roles and their permissionsj*\n\nOperations\x12\x1cQuery async operation statusr>\n\x1cTemporal Cloud Documentation\x12\x1ehttps://docs.temporal.io/cloudb\x06proto3' ) - -_CLOUDSERVICE = DESCRIPTOR.services_by_name["CloudService"] +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n%io.temporal.api.cloud.cloudservice.v1B\014ServiceProtoP\001Z5go.temporal.io/api/cloud/cloudservice/v1;cloudservice\252\002$Temporalio.Api.Cloud.CloudService.V1\352\002(Temporalio::Api::Cloud::CloudService::V1\222A\375\023\022\340\r\n\026Temporal Cloud Ops API\022\226\014Programmatic access to manage Temporal Cloud control plane resources including namespaces, users, service accounts, and more.\n\n## Authentication\n\nAll API requests require authentication using an API Key. Include your API key in the `Authorization` header using the Bearer scheme:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\nAPI keys can be created and managed through the [API Keys endpoints](#tag/API-Keys) or via the Temporal Cloud UI. For more information, see [API Keys Documentation](https://docs.temporal.io/cloud/api-keys).\n\n## Authorization\n\nThe API uses Role-Based Access Control (RBAC) to manage permissions. Each operation requires specific role-based permissions in addition to a valid API key.\n\n### Account-Level Roles\n\n- **Account Owner** - Full account administration access\n- **Account Admin** - Manage namespaces, users, and service accounts \n- **Account Developer** - Create namespaces and manage Nexus endpoints\n- **Finance Admin** - View usage and billing information\n- **Account Read** - Read-only access to account resources\n\n### Namespace-Level Roles\n\n- **Namespace Admin** - Full access to namespace configuration and data\n- **Namespace Write** - Execute workflows and modify workflow data\n- **Namespace Read** - Read-only access to namespace data\n\nNamespace-level permissions are scoped to specific namespaces. A user or service account may have different permission levels across different namespaces.\n\nFor detailed information about roles and permissions, see [Access Control Documentation](https://docs.temporal.io/cloud/users).2\0031.0:\247\001\n\006x-logo\022\234\001*\231\001\n\226\001\n\003url\022\216\001\032\213\001https://images.ctfassets.net/0uuz8ydxyd9p/4YGUnEoCaH9SyoUDhlJkau/e1600205d17eeee3033d926ef06664a9/Temporal_LogoLockup_Horizontal_dark_1.svgj.\n\nNamespaces\022 Manage Temporal Cloud namespacesj0\n\005Users\022'Manage users and their namespace accessjF\n\020Service Accounts\0222Manage service accounts and their namespace accessj.\n\010API Keys\022\"Manage API keys for authenticationj1\n\006Groups\022'Manage user groups and group membershipj\037\n\005Nexus\022\026Manage Nexus endpointsj\177\n\021High Availability\022jManage high availability (multi-region, multi-cloud, and same-region replication) namespace configurationsj7\n\006Export\022-Manage workflow history export configurationsj7\n\022Connectivity Rules\022!Manage network connectivity rulesj\"\n\007Regions\022\027Query available regionsj,\n\007Account\022!Manage account settings and usagej9\n\014Custom Roles\022)Manage custom roles and their permissionsj*\n\nOperations\022\034Query async operation statusr>\n\034Temporal Cloud Documentation\022\036https://docs.temporal.io/cloud" diff --git a/temporalio/api/cloud/cloudservice/v1/service_pb2_grpc.pyi b/temporalio/api/cloud/cloudservice/v1/service_pb2_grpc.pyi index a56b33db4..fbc120786 100644 --- a/temporalio/api/cloud/cloudservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/cloud/cloudservice/v1/service_pb2_grpc.pyi @@ -4,92 +4,122 @@ isort:skip_file """ import abc +import collections.abc +import typing import grpc +import grpc.aio import temporalio.api.cloud.cloudservice.v1.request_response_pb2 +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... + class CloudServiceStub: """WARNING: This service is currently experimental and may change in incompatible ways. """ - def __init__(self, channel: grpc.Channel) -> None: ... + def __init__( + self, channel: typing.Union[grpc.Channel, grpc.aio.Channel] + ) -> None: ... GetCurrentIdentity: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCurrentIdentityRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCurrentIdentityResponse, ] """Get information about the current authenticated user or service account principal""" + GetUsers: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsersRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsersResponse, ] """Gets all known users""" + GetUser: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserResponse, ] """Get a user""" + CreateUser: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserResponse, ] """Create a user""" + UpdateUser: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserResponse, ] """Update a user""" + DeleteUser: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserResponse, ] """Delete a user""" + SetUserNamespaceAccess: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserNamespaceAccessRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserNamespaceAccessResponse, ] """Set a user's access to a namespace""" + GetAsyncOperation: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAsyncOperationRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAsyncOperationResponse, ] """Get the latest information on an async operation""" + CreateNamespace: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceResponse, ] """Create a new namespace""" + GetNamespaces: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespacesRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespacesResponse, ] """Get all namespaces""" + GetNamespace: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceResponse, ] """Get a namespace""" + UpdateNamespace: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceResponse, ] """Update a namespace""" + RenameCustomSearchAttribute: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.RenameCustomSearchAttributeRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.RenameCustomSearchAttributeResponse, ] """Rename an existing customer search attribute""" + DeleteNamespace: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceResponse, ] """Delete a namespace""" + FailoverNamespaceRegion: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.FailoverNamespaceRegionRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.FailoverNamespaceRegionResponse, ] """Failover a multi-region namespace""" + AddNamespaceRegion: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddNamespaceRegionRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddNamespaceRegionResponse, @@ -97,6 +127,7 @@ class CloudServiceStub: """Add a new region to a namespace Deprecated: Use the UpdateNamespace() to add new replica in the namespace spec instead. """ + DeleteNamespaceRegion: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRegionRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRegionResponse, @@ -104,302 +135,831 @@ class CloudServiceStub: """Delete a region from a namespace Deprecated: Use the UpdateNamespace() to delete a replica in the namespace spec instead. """ + GetRegions: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionsRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionsResponse, ] """Get all regions""" + GetRegion: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionResponse, ] """Get a region""" + GetApiKeys: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeysRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeysResponse, ] """Get all known API keys""" + GetApiKey: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeyRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeyResponse, ] """Get an API key""" + CreateApiKey: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateApiKeyRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateApiKeyResponse, ] """Create an API key""" + UpdateApiKey: grpc.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateApiKeyRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateApiKeyResponse, ] """Update an API key""" - DeleteApiKey: grpc.UnaryUnaryMultiCallable[ + + DeleteApiKey: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteApiKeyRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteApiKeyResponse, + ] + """Delete an API key""" + + GetNexusEndpoints: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointsRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointsResponse, + ] + """Gets nexus endpoints""" + + GetNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointResponse, + ] + """Get a nexus endpoint""" + + CreateNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNexusEndpointRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNexusEndpointResponse, + ] + """Create a nexus endpoint""" + + UpdateNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNexusEndpointRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNexusEndpointResponse, + ] + """Update a nexus endpoint""" + + DeleteNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNexusEndpointRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNexusEndpointResponse, + ] + """Delete a nexus endpoint""" + + GetUserGroups: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupsRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupsResponse, + ] + """Get all user groups""" + + GetUserGroup: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupResponse, + ] + """Get a user group""" + + CreateUserGroup: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserGroupRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserGroupResponse, + ] + """Create new a user group""" + + UpdateUserGroup: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserGroupRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserGroupResponse, + ] + """Update a user group""" + + DeleteUserGroup: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserGroupRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserGroupResponse, + ] + """Delete a user group""" + + SetUserGroupNamespaceAccess: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserGroupNamespaceAccessRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserGroupNamespaceAccessResponse, + ] + """Set a user group's access to a namespace""" + + AddUserGroupMember: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddUserGroupMemberRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddUserGroupMemberResponse, + ] + """Add a member to the group, can only be used with Cloud group types.""" + + RemoveUserGroupMember: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.RemoveUserGroupMemberRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.RemoveUserGroupMemberResponse, + ] + """Remove a member from the group, can only be used with Cloud group types.""" + + GetUserGroupMembers: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupMembersRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupMembersResponse, + ] + + CreateServiceAccount: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateServiceAccountRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateServiceAccountResponse, + ] + """Create a service account.""" + + GetServiceAccount: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountResponse, + ] + """Get a service account.""" + + GetServiceAccounts: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountsRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountsResponse, + ] + """Get service accounts.""" + + UpdateServiceAccount: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateServiceAccountRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateServiceAccountResponse, + ] + """Update a service account.""" + + SetServiceAccountNamespaceAccess: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetServiceAccountNamespaceAccessRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetServiceAccountNamespaceAccessResponse, + ] + """Set a service account's access to a namespace.""" + + DeleteServiceAccount: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteServiceAccountRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteServiceAccountResponse, + ] + """Delete a service account.""" + + GetUsage: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsageRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsageResponse, + ] + """WARNING: Pre-Release Feature + Get usage data across namespaces + """ + + GetAccount: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountResponse, + ] + """Get account information.""" + + UpdateAccount: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountResponse, + ] + """Update account information.""" + + CreateNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceExportSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceExportSinkResponse, + ] + """Create an export sink""" + + GetNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinkResponse, + ] + """Get an export sink""" + + GetNamespaceExportSinks: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinksRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinksResponse, + ] + """Get export sinks""" + + UpdateNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceExportSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceExportSinkResponse, + ] + """Update an export sink""" + + DeleteNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceExportSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceExportSinkResponse, + ] + """Delete an export sink""" + + ValidateNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateNamespaceExportSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateNamespaceExportSinkResponse, + ] + """Validates an export sink configuration by delivering an empty test file to the specified sink. + This operation verifies that the sink is correctly configured, accessible, and ready for data export. + """ + + UpdateNamespaceTags: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceTagsRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceTagsResponse, + ] + """Update the tags for a namespace""" + + CreateConnectivityRule: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateConnectivityRuleRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateConnectivityRuleResponse, + ] + """Creates a connectivity rule""" + + GetConnectivityRule: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRuleRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRuleResponse, + ] + """Gets a connectivity rule by id""" + + GetConnectivityRules: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRulesRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRulesResponse, + ] + """Lists connectivity rules by account""" + + DeleteConnectivityRule: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteConnectivityRuleRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteConnectivityRuleResponse, + ] + """Deletes a connectivity rule by id""" + + GetAuditLogs: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAuditLogsRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAuditLogsResponse, + ] + """Get audit logs""" + + ValidateAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateAccountAuditLogSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateAccountAuditLogSinkResponse, + ] + """Validate customer audit log sink is accessible from Temporal's workflow by delivering an empty file to the specified sink. + The operation verifies that the sink is correctly configured, accessible and ready to receive audit logs. + """ + + CreateAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateAccountAuditLogSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateAccountAuditLogSinkResponse, + ] + """Create an audit log sink""" + + GetAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinkResponse, + ] + """Get an audit log sink""" + + GetAccountAuditLogSinks: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinksRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinksResponse, + ] + """Get audit log sinks""" + + UpdateAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountAuditLogSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountAuditLogSinkResponse, + ] + """Update an audit log sink""" + + DeleteAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteAccountAuditLogSinkRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteAccountAuditLogSinkResponse, + ] + """Delete an audit log sink""" + + GetNamespaceCapacityInfo: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceCapacityInfoRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceCapacityInfoResponse, + ] + """Get namespace capacity information""" + + CreateBillingReport: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateBillingReportRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateBillingReportResponse, + ] + """Create a billing report""" + + GetBillingReport: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetBillingReportRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetBillingReportResponse, + ] + """Get a billing report""" + + GetCustomRoles: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRolesRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRolesResponse, + ] + """Get custom roles""" + + GetCustomRole: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRoleRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRoleResponse, + ] + """Get a custom role""" + + CreateCustomRole: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateCustomRoleRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateCustomRoleResponse, + ] + """Create a custom role""" + + UpdateCustomRole: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateCustomRoleRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateCustomRoleResponse, + ] + """Update a custom role""" + + DeleteCustomRole: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteCustomRoleRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteCustomRoleResponse, + ] + """Delete a custom role""" + + GetUserNamespaceAssignments: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserNamespaceAssignmentsRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserNamespaceAssignmentsResponse, + ] + """Get users with access to a namespace""" + + GetServiceAccountNamespaceAssignments: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountNamespaceAssignmentsRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountNamespaceAssignmentsResponse, + ] + """Get service accounts with access to a namespace""" + + GetUserGroupNamespaceAssignments: grpc.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupNamespaceAssignmentsRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupNamespaceAssignmentsResponse, + ] + """Get user groups with access to a namespace""" + +class CloudServiceAsyncStub: + """WARNING: This service is currently experimental and may change in + incompatible ways. + """ + + GetCurrentIdentity: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCurrentIdentityRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCurrentIdentityResponse, + ] + """Get information about the current authenticated user or service account principal""" + + GetUsers: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsersRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsersResponse, + ] + """Gets all known users""" + + GetUser: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserResponse, + ] + """Get a user""" + + CreateUser: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserResponse, + ] + """Create a user""" + + UpdateUser: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserResponse, + ] + """Update a user""" + + DeleteUser: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserResponse, + ] + """Delete a user""" + + SetUserNamespaceAccess: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserNamespaceAccessRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserNamespaceAccessResponse, + ] + """Set a user's access to a namespace""" + + GetAsyncOperation: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAsyncOperationRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAsyncOperationResponse, + ] + """Get the latest information on an async operation""" + + CreateNamespace: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceResponse, + ] + """Create a new namespace""" + + GetNamespaces: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespacesRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespacesResponse, + ] + """Get all namespaces""" + + GetNamespace: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceResponse, + ] + """Get a namespace""" + + UpdateNamespace: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceResponse, + ] + """Update a namespace""" + + RenameCustomSearchAttribute: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.RenameCustomSearchAttributeRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.RenameCustomSearchAttributeResponse, + ] + """Rename an existing customer search attribute""" + + DeleteNamespace: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceResponse, + ] + """Delete a namespace""" + + FailoverNamespaceRegion: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.FailoverNamespaceRegionRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.FailoverNamespaceRegionResponse, + ] + """Failover a multi-region namespace""" + + AddNamespaceRegion: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddNamespaceRegionRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddNamespaceRegionResponse, + ] + """Add a new region to a namespace + Deprecated: Use the UpdateNamespace() to add new replica in the namespace spec instead. + """ + + DeleteNamespaceRegion: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRegionRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRegionResponse, + ] + """Delete a region from a namespace + Deprecated: Use the UpdateNamespace() to delete a replica in the namespace spec instead. + """ + + GetRegions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionsRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionsResponse, + ] + """Get all regions""" + + GetRegion: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionResponse, + ] + """Get a region""" + + GetApiKeys: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeysRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeysResponse, + ] + """Get all known API keys""" + + GetApiKey: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeyRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeyResponse, + ] + """Get an API key""" + + CreateApiKey: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateApiKeyRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateApiKeyResponse, + ] + """Create an API key""" + + UpdateApiKey: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateApiKeyRequest, + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateApiKeyResponse, + ] + """Update an API key""" + + DeleteApiKey: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteApiKeyRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteApiKeyResponse, ] """Delete an API key""" - GetNexusEndpoints: grpc.UnaryUnaryMultiCallable[ + + GetNexusEndpoints: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointsRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointsResponse, ] """Gets nexus endpoints""" - GetNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + + GetNexusEndpoint: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointResponse, ] """Get a nexus endpoint""" - CreateNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + + CreateNexusEndpoint: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNexusEndpointRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNexusEndpointResponse, ] """Create a nexus endpoint""" - UpdateNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + + UpdateNexusEndpoint: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNexusEndpointRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNexusEndpointResponse, ] """Update a nexus endpoint""" - DeleteNexusEndpoint: grpc.UnaryUnaryMultiCallable[ + + DeleteNexusEndpoint: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNexusEndpointRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNexusEndpointResponse, ] """Delete a nexus endpoint""" - GetUserGroups: grpc.UnaryUnaryMultiCallable[ + + GetUserGroups: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupsRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupsResponse, ] """Get all user groups""" - GetUserGroup: grpc.UnaryUnaryMultiCallable[ + + GetUserGroup: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupResponse, ] """Get a user group""" - CreateUserGroup: grpc.UnaryUnaryMultiCallable[ + + CreateUserGroup: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserGroupRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserGroupResponse, ] """Create new a user group""" - UpdateUserGroup: grpc.UnaryUnaryMultiCallable[ + + UpdateUserGroup: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserGroupRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserGroupResponse, ] """Update a user group""" - DeleteUserGroup: grpc.UnaryUnaryMultiCallable[ + + DeleteUserGroup: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserGroupRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserGroupResponse, ] """Delete a user group""" - SetUserGroupNamespaceAccess: grpc.UnaryUnaryMultiCallable[ + + SetUserGroupNamespaceAccess: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserGroupNamespaceAccessRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserGroupNamespaceAccessResponse, ] """Set a user group's access to a namespace""" - AddUserGroupMember: grpc.UnaryUnaryMultiCallable[ + + AddUserGroupMember: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddUserGroupMemberRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddUserGroupMemberResponse, ] """Add a member to the group, can only be used with Cloud group types.""" - RemoveUserGroupMember: grpc.UnaryUnaryMultiCallable[ + + RemoveUserGroupMember: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.RemoveUserGroupMemberRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.RemoveUserGroupMemberResponse, ] """Remove a member from the group, can only be used with Cloud group types.""" - GetUserGroupMembers: grpc.UnaryUnaryMultiCallable[ + + GetUserGroupMembers: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupMembersRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupMembersResponse, ] - CreateServiceAccount: grpc.UnaryUnaryMultiCallable[ + + CreateServiceAccount: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateServiceAccountRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateServiceAccountResponse, ] """Create a service account.""" - GetServiceAccount: grpc.UnaryUnaryMultiCallable[ + + GetServiceAccount: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountResponse, ] """Get a service account.""" - GetServiceAccounts: grpc.UnaryUnaryMultiCallable[ + + GetServiceAccounts: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountsRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountsResponse, ] """Get service accounts.""" - UpdateServiceAccount: grpc.UnaryUnaryMultiCallable[ + + UpdateServiceAccount: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateServiceAccountRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateServiceAccountResponse, ] """Update a service account.""" - SetServiceAccountNamespaceAccess: grpc.UnaryUnaryMultiCallable[ + + SetServiceAccountNamespaceAccess: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetServiceAccountNamespaceAccessRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetServiceAccountNamespaceAccessResponse, ] """Set a service account's access to a namespace.""" - DeleteServiceAccount: grpc.UnaryUnaryMultiCallable[ + + DeleteServiceAccount: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteServiceAccountRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteServiceAccountResponse, ] """Delete a service account.""" - GetUsage: grpc.UnaryUnaryMultiCallable[ + + GetUsage: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsageRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsageResponse, ] """WARNING: Pre-Release Feature Get usage data across namespaces """ - GetAccount: grpc.UnaryUnaryMultiCallable[ + + GetAccount: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountResponse, ] """Get account information.""" - UpdateAccount: grpc.UnaryUnaryMultiCallable[ + + UpdateAccount: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountResponse, ] """Update account information.""" - CreateNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + + CreateNamespaceExportSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceExportSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceExportSinkResponse, ] """Create an export sink""" - GetNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + + GetNamespaceExportSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinkResponse, ] """Get an export sink""" - GetNamespaceExportSinks: grpc.UnaryUnaryMultiCallable[ + + GetNamespaceExportSinks: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinksRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinksResponse, ] """Get export sinks""" - UpdateNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + + UpdateNamespaceExportSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceExportSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceExportSinkResponse, ] """Update an export sink""" - DeleteNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + + DeleteNamespaceExportSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceExportSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceExportSinkResponse, ] """Delete an export sink""" - ValidateNamespaceExportSink: grpc.UnaryUnaryMultiCallable[ + + ValidateNamespaceExportSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateNamespaceExportSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateNamespaceExportSinkResponse, ] """Validates an export sink configuration by delivering an empty test file to the specified sink. This operation verifies that the sink is correctly configured, accessible, and ready for data export. """ - UpdateNamespaceTags: grpc.UnaryUnaryMultiCallable[ + + UpdateNamespaceTags: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceTagsRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceTagsResponse, ] """Update the tags for a namespace""" - CreateConnectivityRule: grpc.UnaryUnaryMultiCallable[ + + CreateConnectivityRule: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateConnectivityRuleRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateConnectivityRuleResponse, ] """Creates a connectivity rule""" - GetConnectivityRule: grpc.UnaryUnaryMultiCallable[ + + GetConnectivityRule: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRuleRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRuleResponse, ] """Gets a connectivity rule by id""" - GetConnectivityRules: grpc.UnaryUnaryMultiCallable[ + + GetConnectivityRules: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRulesRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRulesResponse, ] """Lists connectivity rules by account""" - DeleteConnectivityRule: grpc.UnaryUnaryMultiCallable[ + + DeleteConnectivityRule: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteConnectivityRuleRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteConnectivityRuleResponse, ] """Deletes a connectivity rule by id""" - GetAuditLogs: grpc.UnaryUnaryMultiCallable[ + + GetAuditLogs: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAuditLogsRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAuditLogsResponse, ] """Get audit logs""" - ValidateAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + + ValidateAccountAuditLogSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateAccountAuditLogSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateAccountAuditLogSinkResponse, ] """Validate customer audit log sink is accessible from Temporal's workflow by delivering an empty file to the specified sink. The operation verifies that the sink is correctly configured, accessible and ready to receive audit logs. """ - CreateAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + + CreateAccountAuditLogSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateAccountAuditLogSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateAccountAuditLogSinkResponse, ] """Create an audit log sink""" - GetAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + + GetAccountAuditLogSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinkResponse, ] """Get an audit log sink""" - GetAccountAuditLogSinks: grpc.UnaryUnaryMultiCallable[ + + GetAccountAuditLogSinks: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinksRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinksResponse, ] """Get audit log sinks""" - UpdateAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + + UpdateAccountAuditLogSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountAuditLogSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountAuditLogSinkResponse, ] """Update an audit log sink""" - DeleteAccountAuditLogSink: grpc.UnaryUnaryMultiCallable[ + + DeleteAccountAuditLogSink: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteAccountAuditLogSinkRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteAccountAuditLogSinkResponse, ] """Delete an audit log sink""" - GetNamespaceCapacityInfo: grpc.UnaryUnaryMultiCallable[ + + GetNamespaceCapacityInfo: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceCapacityInfoRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceCapacityInfoResponse, ] """Get namespace capacity information""" - CreateBillingReport: grpc.UnaryUnaryMultiCallable[ + + CreateBillingReport: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateBillingReportRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateBillingReportResponse, ] """Create a billing report""" - GetBillingReport: grpc.UnaryUnaryMultiCallable[ + + GetBillingReport: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetBillingReportRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetBillingReportResponse, ] """Get a billing report""" - GetCustomRoles: grpc.UnaryUnaryMultiCallable[ + + GetCustomRoles: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRolesRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRolesResponse, ] """Get custom roles""" - GetCustomRole: grpc.UnaryUnaryMultiCallable[ + + GetCustomRole: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRoleRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRoleResponse, ] """Get a custom role""" - CreateCustomRole: grpc.UnaryUnaryMultiCallable[ + + CreateCustomRole: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateCustomRoleRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateCustomRoleResponse, ] """Create a custom role""" - UpdateCustomRole: grpc.UnaryUnaryMultiCallable[ + + UpdateCustomRole: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateCustomRoleRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateCustomRoleResponse, ] """Update a custom role""" - DeleteCustomRole: grpc.UnaryUnaryMultiCallable[ + + DeleteCustomRole: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteCustomRoleRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteCustomRoleResponse, ] """Delete a custom role""" - GetUserNamespaceAssignments: grpc.UnaryUnaryMultiCallable[ + + GetUserNamespaceAssignments: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserNamespaceAssignmentsRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserNamespaceAssignmentsResponse, ] """Get users with access to a namespace""" - GetServiceAccountNamespaceAssignments: grpc.UnaryUnaryMultiCallable[ + + GetServiceAccountNamespaceAssignments: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountNamespaceAssignmentsRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountNamespaceAssignmentsResponse, ] """Get service accounts with access to a namespace""" - GetUserGroupNamespaceAssignments: grpc.UnaryUnaryMultiCallable[ + + GetUserGroupNamespaceAssignments: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupNamespaceAssignmentsRequest, temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupNamespaceAssignmentsResponse, ] @@ -414,554 +974,998 @@ class CloudServiceServicer(metaclass=abc.ABCMeta): def GetCurrentIdentity( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCurrentIdentityRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCurrentIdentityResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCurrentIdentityResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCurrentIdentityResponse + ], + ]: """Get information about the current authenticated user or service account principal""" + @abc.abstractmethod def GetUsers( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsersRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsersResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsersResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsersResponse + ], + ]: """Gets all known users""" + @abc.abstractmethod def GetUser( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserResponse + ], + ]: """Get a user""" + @abc.abstractmethod def CreateUser( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserResponse + ], + ]: """Create a user""" + @abc.abstractmethod def UpdateUser( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserResponse + ], + ]: """Update a user""" + @abc.abstractmethod def DeleteUser( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserResponse + ], + ]: """Delete a user""" + @abc.abstractmethod def SetUserNamespaceAccess( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserNamespaceAccessRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserNamespaceAccessResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserNamespaceAccessResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserNamespaceAccessResponse + ], + ]: """Set a user's access to a namespace""" + @abc.abstractmethod def GetAsyncOperation( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAsyncOperationRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAsyncOperationResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAsyncOperationResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAsyncOperationResponse + ], + ]: """Get the latest information on an async operation""" + @abc.abstractmethod def CreateNamespace( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceResponse + ], + ]: """Create a new namespace""" + @abc.abstractmethod def GetNamespaces( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespacesRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespacesResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespacesResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespacesResponse + ], + ]: """Get all namespaces""" + @abc.abstractmethod def GetNamespace( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceResponse + ], + ]: """Get a namespace""" + @abc.abstractmethod def UpdateNamespace( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceResponse + ], + ]: """Update a namespace""" + @abc.abstractmethod def RenameCustomSearchAttribute( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.RenameCustomSearchAttributeRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.RenameCustomSearchAttributeResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.RenameCustomSearchAttributeResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.RenameCustomSearchAttributeResponse + ], + ]: """Rename an existing customer search attribute""" + @abc.abstractmethod def DeleteNamespace( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceResponse + ], + ]: """Delete a namespace""" + @abc.abstractmethod def FailoverNamespaceRegion( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.FailoverNamespaceRegionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.FailoverNamespaceRegionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.FailoverNamespaceRegionResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.FailoverNamespaceRegionResponse + ], + ]: """Failover a multi-region namespace""" + @abc.abstractmethod def AddNamespaceRegion( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddNamespaceRegionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddNamespaceRegionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddNamespaceRegionResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddNamespaceRegionResponse + ], + ]: """Add a new region to a namespace Deprecated: Use the UpdateNamespace() to add new replica in the namespace spec instead. """ + @abc.abstractmethod def DeleteNamespaceRegion( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRegionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRegionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRegionResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceRegionResponse + ], + ]: """Delete a region from a namespace Deprecated: Use the UpdateNamespace() to delete a replica in the namespace spec instead. """ + @abc.abstractmethod def GetRegions( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionsResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionsResponse + ], + ]: """Get all regions""" + @abc.abstractmethod def GetRegion( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetRegionResponse + ], + ]: """Get a region""" + @abc.abstractmethod def GetApiKeys( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeysRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeysResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeysResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeysResponse + ], + ]: """Get all known API keys""" + @abc.abstractmethod def GetApiKey( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeyRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeyResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeyResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetApiKeyResponse + ], + ]: """Get an API key""" + @abc.abstractmethod def CreateApiKey( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateApiKeyRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateApiKeyResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateApiKeyResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateApiKeyResponse + ], + ]: """Create an API key""" + @abc.abstractmethod def UpdateApiKey( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateApiKeyRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateApiKeyResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateApiKeyResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateApiKeyResponse + ], + ]: """Update an API key""" + @abc.abstractmethod def DeleteApiKey( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteApiKeyRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteApiKeyResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteApiKeyResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteApiKeyResponse + ], + ]: """Delete an API key""" + @abc.abstractmethod def GetNexusEndpoints( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointsResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointsResponse + ], + ]: """Gets nexus endpoints""" + @abc.abstractmethod def GetNexusEndpoint( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNexusEndpointResponse + ], + ]: """Get a nexus endpoint""" + @abc.abstractmethod def CreateNexusEndpoint( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNexusEndpointRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNexusEndpointResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNexusEndpointResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNexusEndpointResponse + ], + ]: """Create a nexus endpoint""" + @abc.abstractmethod def UpdateNexusEndpoint( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNexusEndpointRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNexusEndpointResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNexusEndpointResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNexusEndpointResponse + ], + ]: """Update a nexus endpoint""" + @abc.abstractmethod def DeleteNexusEndpoint( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNexusEndpointRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNexusEndpointResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNexusEndpointResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNexusEndpointResponse + ], + ]: """Delete a nexus endpoint""" + @abc.abstractmethod def GetUserGroups( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupsRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupsResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupsResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupsResponse + ], + ]: """Get all user groups""" + @abc.abstractmethod def GetUserGroup( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupResponse + ], + ]: """Get a user group""" + @abc.abstractmethod def CreateUserGroup( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserGroupRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserGroupResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserGroupResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateUserGroupResponse + ], + ]: """Create new a user group""" + @abc.abstractmethod def UpdateUserGroup( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserGroupRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserGroupResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserGroupResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateUserGroupResponse + ], + ]: """Update a user group""" + @abc.abstractmethod def DeleteUserGroup( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserGroupRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserGroupResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserGroupResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteUserGroupResponse + ], + ]: """Delete a user group""" + @abc.abstractmethod def SetUserGroupNamespaceAccess( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserGroupNamespaceAccessRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserGroupNamespaceAccessResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserGroupNamespaceAccessResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetUserGroupNamespaceAccessResponse + ], + ]: """Set a user group's access to a namespace""" + @abc.abstractmethod def AddUserGroupMember( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddUserGroupMemberRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddUserGroupMemberResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddUserGroupMemberResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.AddUserGroupMemberResponse + ], + ]: """Add a member to the group, can only be used with Cloud group types.""" + @abc.abstractmethod def RemoveUserGroupMember( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.RemoveUserGroupMemberRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.RemoveUserGroupMemberResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.RemoveUserGroupMemberResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.RemoveUserGroupMemberResponse + ], + ]: """Remove a member from the group, can only be used with Cloud group types.""" + @abc.abstractmethod def GetUserGroupMembers( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupMembersRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupMembersResponse: ... + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupMembersResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupMembersResponse + ], + ]: ... @abc.abstractmethod def CreateServiceAccount( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateServiceAccountRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateServiceAccountResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateServiceAccountResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateServiceAccountResponse + ], + ]: """Create a service account.""" + @abc.abstractmethod def GetServiceAccount( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountResponse + ], + ]: """Get a service account.""" + @abc.abstractmethod def GetServiceAccounts( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountsResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountsResponse + ], + ]: """Get service accounts.""" + @abc.abstractmethod def UpdateServiceAccount( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateServiceAccountRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateServiceAccountResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateServiceAccountResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateServiceAccountResponse + ], + ]: """Update a service account.""" + @abc.abstractmethod def SetServiceAccountNamespaceAccess( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetServiceAccountNamespaceAccessRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetServiceAccountNamespaceAccessResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetServiceAccountNamespaceAccessResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.SetServiceAccountNamespaceAccessResponse + ], + ]: """Set a service account's access to a namespace.""" + @abc.abstractmethod def DeleteServiceAccount( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteServiceAccountRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteServiceAccountResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteServiceAccountResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteServiceAccountResponse + ], + ]: """Delete a service account.""" + @abc.abstractmethod def GetUsage( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsageRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsageResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsageResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUsageResponse + ], + ]: """WARNING: Pre-Release Feature Get usage data across namespaces """ + @abc.abstractmethod def GetAccount( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountResponse + ], + ]: """Get account information.""" + @abc.abstractmethod def UpdateAccount( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountResponse + ], + ]: """Update account information.""" + @abc.abstractmethod def CreateNamespaceExportSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceExportSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceExportSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceExportSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateNamespaceExportSinkResponse + ], + ]: """Create an export sink""" + @abc.abstractmethod def GetNamespaceExportSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinkResponse + ], + ]: """Get an export sink""" + @abc.abstractmethod def GetNamespaceExportSinks( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinksRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinksResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinksResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceExportSinksResponse + ], + ]: """Get export sinks""" + @abc.abstractmethod def UpdateNamespaceExportSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceExportSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceExportSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceExportSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceExportSinkResponse + ], + ]: """Update an export sink""" + @abc.abstractmethod def DeleteNamespaceExportSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceExportSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceExportSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceExportSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteNamespaceExportSinkResponse + ], + ]: """Delete an export sink""" + @abc.abstractmethod def ValidateNamespaceExportSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateNamespaceExportSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateNamespaceExportSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateNamespaceExportSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateNamespaceExportSinkResponse + ], + ]: """Validates an export sink configuration by delivering an empty test file to the specified sink. This operation verifies that the sink is correctly configured, accessible, and ready for data export. """ + @abc.abstractmethod def UpdateNamespaceTags( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceTagsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceTagsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceTagsResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateNamespaceTagsResponse + ], + ]: """Update the tags for a namespace""" + @abc.abstractmethod def CreateConnectivityRule( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateConnectivityRuleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateConnectivityRuleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateConnectivityRuleResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateConnectivityRuleResponse + ], + ]: """Creates a connectivity rule""" + @abc.abstractmethod def GetConnectivityRule( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRuleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRuleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRuleResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRuleResponse + ], + ]: """Gets a connectivity rule by id""" + @abc.abstractmethod def GetConnectivityRules( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRulesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRulesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRulesResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetConnectivityRulesResponse + ], + ]: """Lists connectivity rules by account""" + @abc.abstractmethod def DeleteConnectivityRule( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteConnectivityRuleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteConnectivityRuleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteConnectivityRuleResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteConnectivityRuleResponse + ], + ]: """Deletes a connectivity rule by id""" + @abc.abstractmethod def GetAuditLogs( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAuditLogsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAuditLogsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAuditLogsResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAuditLogsResponse + ], + ]: """Get audit logs""" + @abc.abstractmethod def ValidateAccountAuditLogSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateAccountAuditLogSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateAccountAuditLogSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateAccountAuditLogSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.ValidateAccountAuditLogSinkResponse + ], + ]: """Validate customer audit log sink is accessible from Temporal's workflow by delivering an empty file to the specified sink. The operation verifies that the sink is correctly configured, accessible and ready to receive audit logs. """ + @abc.abstractmethod def CreateAccountAuditLogSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateAccountAuditLogSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateAccountAuditLogSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateAccountAuditLogSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateAccountAuditLogSinkResponse + ], + ]: """Create an audit log sink""" + @abc.abstractmethod def GetAccountAuditLogSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinkResponse + ], + ]: """Get an audit log sink""" + @abc.abstractmethod def GetAccountAuditLogSinks( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinksRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinksResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinksResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetAccountAuditLogSinksResponse + ], + ]: """Get audit log sinks""" + @abc.abstractmethod def UpdateAccountAuditLogSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountAuditLogSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountAuditLogSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountAuditLogSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateAccountAuditLogSinkResponse + ], + ]: """Update an audit log sink""" + @abc.abstractmethod def DeleteAccountAuditLogSink( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteAccountAuditLogSinkRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteAccountAuditLogSinkResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteAccountAuditLogSinkResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteAccountAuditLogSinkResponse + ], + ]: """Delete an audit log sink""" + @abc.abstractmethod def GetNamespaceCapacityInfo( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceCapacityInfoRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceCapacityInfoResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceCapacityInfoResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetNamespaceCapacityInfoResponse + ], + ]: """Get namespace capacity information""" + @abc.abstractmethod def CreateBillingReport( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateBillingReportRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateBillingReportResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateBillingReportResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateBillingReportResponse + ], + ]: """Create a billing report""" + @abc.abstractmethod def GetBillingReport( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetBillingReportRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetBillingReportResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetBillingReportResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetBillingReportResponse + ], + ]: """Get a billing report""" + @abc.abstractmethod def GetCustomRoles( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRolesRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRolesResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRolesResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRolesResponse + ], + ]: """Get custom roles""" + @abc.abstractmethod def GetCustomRole( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRoleRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRoleResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRoleResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetCustomRoleResponse + ], + ]: """Get a custom role""" + @abc.abstractmethod def CreateCustomRole( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateCustomRoleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateCustomRoleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateCustomRoleResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.CreateCustomRoleResponse + ], + ]: """Create a custom role""" + @abc.abstractmethod def UpdateCustomRole( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateCustomRoleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateCustomRoleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateCustomRoleResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.UpdateCustomRoleResponse + ], + ]: """Update a custom role""" + @abc.abstractmethod def DeleteCustomRole( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteCustomRoleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteCustomRoleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteCustomRoleResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.DeleteCustomRoleResponse + ], + ]: """Delete a custom role""" + @abc.abstractmethod def GetUserNamespaceAssignments( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserNamespaceAssignmentsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserNamespaceAssignmentsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserNamespaceAssignmentsResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserNamespaceAssignmentsResponse + ], + ]: """Get users with access to a namespace""" + @abc.abstractmethod def GetServiceAccountNamespaceAssignments( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountNamespaceAssignmentsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountNamespaceAssignmentsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountNamespaceAssignmentsResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetServiceAccountNamespaceAssignmentsResponse + ], + ]: """Get service accounts with access to a namespace""" + @abc.abstractmethod def GetUserGroupNamespaceAssignments( self, request: temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupNamespaceAssignmentsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupNamespaceAssignmentsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupNamespaceAssignmentsResponse, + collections.abc.Awaitable[ + temporalio.api.cloud.cloudservice.v1.request_response_pb2.GetUserGroupNamespaceAssignmentsResponse + ], + ]: """Get user groups with access to a namespace""" def add_CloudServiceServicer_to_server( - servicer: CloudServiceServicer, server: grpc.Server + servicer: CloudServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server] ) -> None: ... diff --git a/temporalio/api/cloud/connectivityrule/v1/message_pb2.py b/temporalio/api/cloud/connectivityrule/v1/message_pb2.py index 2d39aec83..176ec5971 100644 --- a/temporalio/api/cloud/connectivityrule/v1/message_pb2.py +++ b/temporalio/api/cloud/connectivityrule/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -24,55 +23,8 @@ b'\n4temporal/api/cloud/connectivityrule/v1/message.proto\x12&temporal.api.cloud.connectivityrule.v1\x1a,temporal/api/cloud/resource/v1/message.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x96\x02\n\x10\x43onnectivityRule\x12\n\n\x02id\x18\x01 \x01(\t\x12J\n\x04spec\x18\x02 \x01(\x0b\x32<.temporal.api.cloud.connectivityrule.v1.ConnectivityRuleSpec\x12\x18\n\x10resource_version\x18\x04 \x01(\t\x12<\n\x05state\x18\x05 \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12\x1a\n\x12\x61sync_operation_id\x18\x06 \x01(\t\x12\x30\n\x0c\x63reated_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampJ\x04\x08\x03\x10\x04"\xd9\x01\n\x14\x43onnectivityRuleSpec\x12U\n\x0bpublic_rule\x18\x01 \x01(\x0b\x32>.temporal.api.cloud.connectivityrule.v1.PublicConnectivityRuleH\x00\x12W\n\x0cprivate_rule\x18\x02 \x01(\x0b\x32?.temporal.api.cloud.connectivityrule.v1.PrivateConnectivityRuleH\x00\x42\x11\n\x0f\x63onnection_type"3\n\x16PublicConnectivityRule\x12\x19\n\x11\x65nable_stable_ips\x18\x01 \x01(\x08"^\n\x17PrivateConnectivityRule\x12\x15\n\rconnection_id\x18\x01 \x01(\t\x12\x16\n\x0egcp_project_id\x18\x02 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\tJ\x04\x08\x04\x10\x05\x42\xd4\x01\n)io.temporal.api.cloud.connectivityrule.v1B\x0cMessageProtoP\x01Z=go.temporal.io/api/cloud/connectivityrule/v1;connectivityrule\xaa\x02(Temporalio.Api.Cloud.ConnectivityRule.V1\xea\x02,Temporalio::Api::Cloud::ConnectivityRule::V1b\x06proto3' ) - -_CONNECTIVITYRULE = DESCRIPTOR.message_types_by_name["ConnectivityRule"] -_CONNECTIVITYRULESPEC = DESCRIPTOR.message_types_by_name["ConnectivityRuleSpec"] -_PUBLICCONNECTIVITYRULE = DESCRIPTOR.message_types_by_name["PublicConnectivityRule"] -_PRIVATECONNECTIVITYRULE = DESCRIPTOR.message_types_by_name["PrivateConnectivityRule"] -ConnectivityRule = _reflection.GeneratedProtocolMessageType( - "ConnectivityRule", - (_message.Message,), - { - "DESCRIPTOR": _CONNECTIVITYRULE, - "__module__": "temporalio.api.cloud.connectivityrule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.connectivityrule.v1.ConnectivityRule) - }, -) -_sym_db.RegisterMessage(ConnectivityRule) - -ConnectivityRuleSpec = _reflection.GeneratedProtocolMessageType( - "ConnectivityRuleSpec", - (_message.Message,), - { - "DESCRIPTOR": _CONNECTIVITYRULESPEC, - "__module__": "temporalio.api.cloud.connectivityrule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.connectivityrule.v1.ConnectivityRuleSpec) - }, -) -_sym_db.RegisterMessage(ConnectivityRuleSpec) - -PublicConnectivityRule = _reflection.GeneratedProtocolMessageType( - "PublicConnectivityRule", - (_message.Message,), - { - "DESCRIPTOR": _PUBLICCONNECTIVITYRULE, - "__module__": "temporalio.api.cloud.connectivityrule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.connectivityrule.v1.PublicConnectivityRule) - }, -) -_sym_db.RegisterMessage(PublicConnectivityRule) - -PrivateConnectivityRule = _reflection.GeneratedProtocolMessageType( - "PrivateConnectivityRule", - (_message.Message,), - { - "DESCRIPTOR": _PRIVATECONNECTIVITYRULE, - "__module__": "temporalio.api.cloud.connectivityrule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.connectivityrule.v1.PrivateConnectivityRule) - }, -) -_sym_db.RegisterMessage(PrivateConnectivityRule) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n)io.temporal.api.cloud.connectivityrule.v1B\014MessageProtoP\001Z=go.temporal.io/api/cloud/connectivityrule/v1;connectivityrule\252\002(Temporalio.Api.Cloud.ConnectivityRule.V1\352\002,Temporalio::Api::Cloud::ConnectivityRule::V1" diff --git a/temporalio/api/cloud/connectivityrule/v1/message_pb2.pyi b/temporalio/api/cloud/connectivityrule/v1/message_pb2.pyi index 629704d6f..1d3f7b69a 100644 --- a/temporalio/api/cloud/connectivityrule/v1/message_pb2.pyi +++ b/temporalio/api/cloud/connectivityrule/v1/message_pb2.pyi @@ -4,7 +4,7 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message @@ -12,13 +12,9 @@ import google.protobuf.timestamp_pb2 import temporalio.api.cloud.resource.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ConnectivityRule(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -30,9 +26,6 @@ class ConnectivityRule(google.protobuf.message.Message): CREATED_TIME_FIELD_NUMBER: builtins.int id: builtins.str """The id of the private connectivity rule.""" - @property - def spec(self) -> global___ConnectivityRuleSpec: - """The connectivity rule specification.""" resource_version: builtins.str """The current version of the connectivity rule specification. The next update operation will have to include this version. @@ -40,9 +33,14 @@ class ConnectivityRule(google.protobuf.message.Message): state: temporalio.api.cloud.resource.v1.message_pb2.ResourceState.ValueType async_operation_id: builtins.str """The id of the async operation that is creating/updating/deleting the connectivity rule, if any.""" + @property + def spec(self) -> global___ConnectivityRuleSpec: + """The connectivity rule specification.""" + @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the connectivity rule was created.""" + def __init__( self, *, @@ -55,13 +53,11 @@ class ConnectivityRule(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "created_time", b"created_time", "spec", b"spec" - ], + field_name: typing.Literal["created_time", b"created_time", "spec", b"spec"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "created_time", @@ -79,6 +75,7 @@ class ConnectivityRule(google.protobuf.message.Message): global___ConnectivityRule = ConnectivityRule +@typing.final class ConnectivityRuleSpec(google.protobuf.message.Message): """The connectivity rule specification passed in on create/update operations.""" @@ -89,9 +86,11 @@ class ConnectivityRuleSpec(google.protobuf.message.Message): @property def public_rule(self) -> global___PublicConnectivityRule: """This allows access via public internet.""" + @property def private_rule(self) -> global___PrivateConnectivityRule: """This allows access via specific private vpc.""" + def __init__( self, *, @@ -100,7 +99,7 @@ class ConnectivityRuleSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "connection_type", b"connection_type", "private_rule", @@ -111,7 +110,7 @@ class ConnectivityRuleSpec(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "connection_type", b"connection_type", "private_rule", @@ -121,12 +120,12 @@ class ConnectivityRuleSpec(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, - oneof_group: typing_extensions.Literal["connection_type", b"connection_type"], - ) -> typing_extensions.Literal["public_rule", "private_rule"] | None: ... + self, oneof_group: typing.Literal["connection_type", b"connection_type"] + ) -> typing.Literal["public_rule", "private_rule"] | None: ... global___ConnectivityRuleSpec = ConnectivityRuleSpec +@typing.final class PublicConnectivityRule(google.protobuf.message.Message): """A public connectivity rule allows access to the namespace via the public internet.""" @@ -143,14 +142,12 @@ class PublicConnectivityRule(google.protobuf.message.Message): enable_stable_ips: builtins.bool = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "enable_stable_ips", b"enable_stable_ips" - ], + self, field_name: typing.Literal["enable_stable_ips", b"enable_stable_ips"] ) -> None: ... global___PublicConnectivityRule = PublicConnectivityRule +@typing.final class PrivateConnectivityRule(google.protobuf.message.Message): """A private connectivity rule allows connections from a specific private vpc only.""" @@ -178,7 +175,7 @@ class PrivateConnectivityRule(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "connection_id", b"connection_id", "gcp_project_id", diff --git a/temporalio/api/cloud/identity/v1/message_pb2.py b/temporalio/api/cloud/identity/v1/message_pb2.py index 439a22202..5095a22b2 100644 --- a/temporalio/api/cloud/identity/v1/message_pb2.py +++ b/temporalio/api/cloud/identity/v1/message_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -25,328 +23,8 @@ b'\n,temporal/api/cloud/identity/v1/message.proto\x12\x1etemporal.api.cloud.identity.v1\x1a,temporal/api/cloud/resource/v1/message.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x95\x02\n\rAccountAccess\x12\x1b\n\x0frole_deprecated\x18\x01 \x01(\tB\x02\x18\x01\x12@\n\x04role\x18\x02 \x01(\x0e\x32\x32.temporal.api.cloud.identity.v1.AccountAccess.Role\x12\x14\n\x0c\x63ustom_roles\x18\x03 \x03(\t"\x8e\x01\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0e\n\nROLE_OWNER\x10\x01\x12\x0e\n\nROLE_ADMIN\x10\x02\x12\x12\n\x0eROLE_DEVELOPER\x10\x03\x12\x16\n\x12ROLE_FINANCE_ADMIN\x10\x04\x12\r\n\tROLE_READ\x10\x05\x12\x15\n\x11ROLE_METRICS_READ\x10\x06"\xef\x01\n\x0fNamespaceAccess\x12!\n\x15permission_deprecated\x18\x01 \x01(\tB\x02\x18\x01\x12N\n\npermission\x18\x02 \x01(\x0e\x32:.temporal.api.cloud.identity.v1.NamespaceAccess.Permission"i\n\nPermission\x12\x1a\n\x16PERMISSION_UNSPECIFIED\x10\x00\x12\x14\n\x10PERMISSION_ADMIN\x10\x01\x12\x14\n\x10PERMISSION_WRITE\x10\x02\x12\x13\n\x0fPERMISSION_READ\x10\x03"\xba\x02\n\x06\x41\x63\x63\x65ss\x12\x45\n\x0e\x61\x63\x63ount_access\x18\x01 \x01(\x0b\x32-.temporal.api.cloud.identity.v1.AccountAccess\x12Y\n\x12namespace_accesses\x18\x02 \x03(\x0b\x32=.temporal.api.cloud.identity.v1.Access.NamespaceAccessesEntry\x12#\n\x17\x63ustom_roles_deprecated\x18\x04 \x03(\tB\x02\x18\x01\x1ai\n\x16NamespaceAccessesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.identity.v1.NamespaceAccess:\x02\x38\x01"k\n\x15NamespaceScopedAccess\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12?\n\x06\x61\x63\x63\x65ss\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.identity.v1.NamespaceAccess"Q\n\x08UserSpec\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x36\n\x06\x61\x63\x63\x65ss\x18\x02 \x01(\x0b\x32&.temporal.api.cloud.identity.v1.Access"p\n\nInvitation\x12\x30\n\x0c\x63reated_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0c\x65xpired_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x86\x03\n\x04User\x12\n\n\x02id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x36\n\x04spec\x18\x03 \x01(\x0b\x32(.temporal.api.cloud.identity.v1.UserSpec\x12\x1c\n\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01\x12<\n\x05state\x18\t \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t\x12>\n\ninvitation\x18\x06 \x01(\x0b\x32*.temporal.api.cloud.identity.v1.Invitation\x12\x30\n\x0c\x63reated_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"(\n\x0fGoogleGroupSpec\x12\x15\n\remail_address\x18\x01 \x01(\t"\x1f\n\rSCIMGroupSpec\x12\x0e\n\x06idp_id\x18\x01 \x01(\t"\x10\n\x0e\x43loudGroupSpec"\xc0\x02\n\rUserGroupSpec\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x36\n\x06\x61\x63\x63\x65ss\x18\x02 \x01(\x0b\x32&.temporal.api.cloud.identity.v1.Access\x12G\n\x0cgoogle_group\x18\x03 \x01(\x0b\x32/.temporal.api.cloud.identity.v1.GoogleGroupSpecH\x00\x12\x43\n\nscim_group\x18\x04 \x01(\x0b\x32-.temporal.api.cloud.identity.v1.SCIMGroupSpecH\x00\x12\x45\n\x0b\x63loud_group\x18\x05 \x01(\x0b\x32..temporal.api.cloud.identity.v1.CloudGroupSpecH\x00\x42\x0c\n\ngroup_type"\xd0\x02\n\tUserGroup\x12\n\n\x02id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12;\n\x04spec\x18\x03 \x01(\x0b\x32-.temporal.api.cloud.identity.v1.UserGroupSpec\x12\x1c\n\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01\x12<\n\x05state\x18\x08 \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t\x12\x30\n\x0c\x63reated_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"5\n\x11UserGroupMemberId\x12\x11\n\x07user_id\x18\x01 \x01(\tH\x00\x42\r\n\x0bmember_type"\x89\x01\n\x0fUserGroupMember\x12\x44\n\tmember_id\x18\x01 \x01(\x0b\x32\x31.temporal.api.cloud.identity.v1.UserGroupMemberId\x12\x30\n\x0c\x63reated_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xda\x02\n\x0eServiceAccount\x12\n\n\x02id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12@\n\x04spec\x18\x03 \x01(\x0b\x32\x32.temporal.api.cloud.identity.v1.ServiceAccountSpec\x12\x1c\n\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01\x12<\n\x05state\x18\x08 \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t\x12\x30\n\x0c\x63reated_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xc7\x01\n\x12ServiceAccountSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x06\x61\x63\x63\x65ss\x18\x02 \x01(\x0b\x32&.temporal.api.cloud.identity.v1.Access\x12V\n\x17namespace_scoped_access\x18\x04 \x01(\x0b\x32\x35.temporal.api.cloud.identity.v1.NamespaceScopedAccess\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t"\xca\x02\n\x06\x41piKey\x12\n\n\x02id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x38\n\x04spec\x18\x03 \x01(\x0b\x32*.temporal.api.cloud.identity.v1.ApiKeySpec\x12\x1c\n\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01\x12<\n\x05state\x18\x08 \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t\x12\x30\n\x0c\x63reated_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xee\x01\n\nApiKeySpec\x12\x10\n\x08owner_id\x18\x01 \x01(\t\x12!\n\x15owner_type_deprecated\x18\x02 \x01(\tB\x02\x18\x01\x12=\n\nowner_type\x18\x07 \x01(\x0e\x32).temporal.api.cloud.identity.v1.OwnerType\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12/\n\x0b\x65xpiry_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x64isabled\x18\x06 \x01(\x08"\xbc\x02\n\x0e\x43ustomRoleSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12N\n\x0bpermissions\x18\x03 \x03(\x0b\x32\x39.temporal.api.cloud.identity.v1.CustomRoleSpec.Permission\x1aK\n\tResources\x12\x15\n\rresource_type\x18\x01 \x01(\t\x12\x14\n\x0cresource_ids\x18\x02 \x03(\t\x12\x11\n\tallow_all\x18\x03 \x01(\x08\x1aj\n\nPermission\x12K\n\tresources\x18\x01 \x01(\x0b\x32\x38.temporal.api.cloud.identity.v1.CustomRoleSpec.Resources\x12\x0f\n\x07\x61\x63tions\x18\x02 \x03(\t"\xb4\x02\n\nCustomRole\x12\n\n\x02id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12<\n\x04spec\x18\x03 \x01(\x0b\x32..temporal.api.cloud.identity.v1.CustomRoleSpec\x12<\n\x05state\x18\x04 \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t\x12\x30\n\x0c\x63reated_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb3\x01\n\x17UserNamespaceAssignment\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12I\n\x10namespace_access\x18\x03 \x01(\x0b\x32/.temporal.api.cloud.identity.v1.NamespaceAccess\x12\x18\n\x10inherited_access\x18\x04 \x01(\x08\x12\x18\n\x10resource_version\x18\x05 \x01(\t"\xbc\x01\n!ServiceAccountNamespaceAssignment\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12I\n\x10namespace_access\x18\x03 \x01(\x0b\x32/.temporal.api.cloud.identity.v1.NamespaceAccess\x12\x18\n\x10inherited_access\x18\x04 \x01(\x08\x12\x18\n\x10resource_version\x18\x05 \x01(\t"\xbf\x01\n\x1cUserGroupNamespaceAssignment\x12\n\n\x02id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12I\n\x10namespace_access\x18\x03 \x01(\x0b\x32/.temporal.api.cloud.identity.v1.NamespaceAccess\x12\x18\n\x10inherited_access\x18\x04 \x01(\x08\x12\x18\n\x10resource_version\x18\x05 \x01(\t*\\\n\tOwnerType\x12\x1a\n\x16OWNER_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fOWNER_TYPE_USER\x10\x01\x12\x1e\n\x1aOWNER_TYPE_SERVICE_ACCOUNT\x10\x02\x42\xac\x01\n!io.temporal.api.cloud.identity.v1B\x0cMessageProtoP\x01Z-go.temporal.io/api/cloud/identity/v1;identity\xaa\x02 Temporalio.Api.Cloud.Identity.V1\xea\x02$Temporalio::Api::Cloud::Identity::V1b\x06proto3' ) -_OWNERTYPE = DESCRIPTOR.enum_types_by_name["OwnerType"] -OwnerType = enum_type_wrapper.EnumTypeWrapper(_OWNERTYPE) -OWNER_TYPE_UNSPECIFIED = 0 -OWNER_TYPE_USER = 1 -OWNER_TYPE_SERVICE_ACCOUNT = 2 - - -_ACCOUNTACCESS = DESCRIPTOR.message_types_by_name["AccountAccess"] -_NAMESPACEACCESS = DESCRIPTOR.message_types_by_name["NamespaceAccess"] -_ACCESS = DESCRIPTOR.message_types_by_name["Access"] -_ACCESS_NAMESPACEACCESSESENTRY = _ACCESS.nested_types_by_name["NamespaceAccessesEntry"] -_NAMESPACESCOPEDACCESS = DESCRIPTOR.message_types_by_name["NamespaceScopedAccess"] -_USERSPEC = DESCRIPTOR.message_types_by_name["UserSpec"] -_INVITATION = DESCRIPTOR.message_types_by_name["Invitation"] -_USER = DESCRIPTOR.message_types_by_name["User"] -_GOOGLEGROUPSPEC = DESCRIPTOR.message_types_by_name["GoogleGroupSpec"] -_SCIMGROUPSPEC = DESCRIPTOR.message_types_by_name["SCIMGroupSpec"] -_CLOUDGROUPSPEC = DESCRIPTOR.message_types_by_name["CloudGroupSpec"] -_USERGROUPSPEC = DESCRIPTOR.message_types_by_name["UserGroupSpec"] -_USERGROUP = DESCRIPTOR.message_types_by_name["UserGroup"] -_USERGROUPMEMBERID = DESCRIPTOR.message_types_by_name["UserGroupMemberId"] -_USERGROUPMEMBER = DESCRIPTOR.message_types_by_name["UserGroupMember"] -_SERVICEACCOUNT = DESCRIPTOR.message_types_by_name["ServiceAccount"] -_SERVICEACCOUNTSPEC = DESCRIPTOR.message_types_by_name["ServiceAccountSpec"] -_APIKEY = DESCRIPTOR.message_types_by_name["ApiKey"] -_APIKEYSPEC = DESCRIPTOR.message_types_by_name["ApiKeySpec"] -_CUSTOMROLESPEC = DESCRIPTOR.message_types_by_name["CustomRoleSpec"] -_CUSTOMROLESPEC_RESOURCES = _CUSTOMROLESPEC.nested_types_by_name["Resources"] -_CUSTOMROLESPEC_PERMISSION = _CUSTOMROLESPEC.nested_types_by_name["Permission"] -_CUSTOMROLE = DESCRIPTOR.message_types_by_name["CustomRole"] -_USERNAMESPACEASSIGNMENT = DESCRIPTOR.message_types_by_name["UserNamespaceAssignment"] -_SERVICEACCOUNTNAMESPACEASSIGNMENT = DESCRIPTOR.message_types_by_name[ - "ServiceAccountNamespaceAssignment" -] -_USERGROUPNAMESPACEASSIGNMENT = DESCRIPTOR.message_types_by_name[ - "UserGroupNamespaceAssignment" -] -_ACCOUNTACCESS_ROLE = _ACCOUNTACCESS.enum_types_by_name["Role"] -_NAMESPACEACCESS_PERMISSION = _NAMESPACEACCESS.enum_types_by_name["Permission"] -AccountAccess = _reflection.GeneratedProtocolMessageType( - "AccountAccess", - (_message.Message,), - { - "DESCRIPTOR": _ACCOUNTACCESS, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.AccountAccess) - }, -) -_sym_db.RegisterMessage(AccountAccess) - -NamespaceAccess = _reflection.GeneratedProtocolMessageType( - "NamespaceAccess", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACEACCESS, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.NamespaceAccess) - }, -) -_sym_db.RegisterMessage(NamespaceAccess) - -Access = _reflection.GeneratedProtocolMessageType( - "Access", - (_message.Message,), - { - "NamespaceAccessesEntry": _reflection.GeneratedProtocolMessageType( - "NamespaceAccessesEntry", - (_message.Message,), - { - "DESCRIPTOR": _ACCESS_NAMESPACEACCESSESENTRY, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.Access.NamespaceAccessesEntry) - }, - ), - "DESCRIPTOR": _ACCESS, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.Access) - }, -) -_sym_db.RegisterMessage(Access) -_sym_db.RegisterMessage(Access.NamespaceAccessesEntry) - -NamespaceScopedAccess = _reflection.GeneratedProtocolMessageType( - "NamespaceScopedAccess", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACESCOPEDACCESS, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.NamespaceScopedAccess) - }, -) -_sym_db.RegisterMessage(NamespaceScopedAccess) - -UserSpec = _reflection.GeneratedProtocolMessageType( - "UserSpec", - (_message.Message,), - { - "DESCRIPTOR": _USERSPEC, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.UserSpec) - }, -) -_sym_db.RegisterMessage(UserSpec) - -Invitation = _reflection.GeneratedProtocolMessageType( - "Invitation", - (_message.Message,), - { - "DESCRIPTOR": _INVITATION, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.Invitation) - }, -) -_sym_db.RegisterMessage(Invitation) - -User = _reflection.GeneratedProtocolMessageType( - "User", - (_message.Message,), - { - "DESCRIPTOR": _USER, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.User) - }, -) -_sym_db.RegisterMessage(User) - -GoogleGroupSpec = _reflection.GeneratedProtocolMessageType( - "GoogleGroupSpec", - (_message.Message,), - { - "DESCRIPTOR": _GOOGLEGROUPSPEC, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.GoogleGroupSpec) - }, -) -_sym_db.RegisterMessage(GoogleGroupSpec) - -SCIMGroupSpec = _reflection.GeneratedProtocolMessageType( - "SCIMGroupSpec", - (_message.Message,), - { - "DESCRIPTOR": _SCIMGROUPSPEC, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.SCIMGroupSpec) - }, -) -_sym_db.RegisterMessage(SCIMGroupSpec) - -CloudGroupSpec = _reflection.GeneratedProtocolMessageType( - "CloudGroupSpec", - (_message.Message,), - { - "DESCRIPTOR": _CLOUDGROUPSPEC, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.CloudGroupSpec) - }, -) -_sym_db.RegisterMessage(CloudGroupSpec) - -UserGroupSpec = _reflection.GeneratedProtocolMessageType( - "UserGroupSpec", - (_message.Message,), - { - "DESCRIPTOR": _USERGROUPSPEC, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.UserGroupSpec) - }, -) -_sym_db.RegisterMessage(UserGroupSpec) - -UserGroup = _reflection.GeneratedProtocolMessageType( - "UserGroup", - (_message.Message,), - { - "DESCRIPTOR": _USERGROUP, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.UserGroup) - }, -) -_sym_db.RegisterMessage(UserGroup) - -UserGroupMemberId = _reflection.GeneratedProtocolMessageType( - "UserGroupMemberId", - (_message.Message,), - { - "DESCRIPTOR": _USERGROUPMEMBERID, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.UserGroupMemberId) - }, -) -_sym_db.RegisterMessage(UserGroupMemberId) - -UserGroupMember = _reflection.GeneratedProtocolMessageType( - "UserGroupMember", - (_message.Message,), - { - "DESCRIPTOR": _USERGROUPMEMBER, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.UserGroupMember) - }, -) -_sym_db.RegisterMessage(UserGroupMember) - -ServiceAccount = _reflection.GeneratedProtocolMessageType( - "ServiceAccount", - (_message.Message,), - { - "DESCRIPTOR": _SERVICEACCOUNT, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.ServiceAccount) - }, -) -_sym_db.RegisterMessage(ServiceAccount) - -ServiceAccountSpec = _reflection.GeneratedProtocolMessageType( - "ServiceAccountSpec", - (_message.Message,), - { - "DESCRIPTOR": _SERVICEACCOUNTSPEC, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.ServiceAccountSpec) - }, -) -_sym_db.RegisterMessage(ServiceAccountSpec) - -ApiKey = _reflection.GeneratedProtocolMessageType( - "ApiKey", - (_message.Message,), - { - "DESCRIPTOR": _APIKEY, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.ApiKey) - }, -) -_sym_db.RegisterMessage(ApiKey) - -ApiKeySpec = _reflection.GeneratedProtocolMessageType( - "ApiKeySpec", - (_message.Message,), - { - "DESCRIPTOR": _APIKEYSPEC, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.ApiKeySpec) - }, -) -_sym_db.RegisterMessage(ApiKeySpec) - -CustomRoleSpec = _reflection.GeneratedProtocolMessageType( - "CustomRoleSpec", - (_message.Message,), - { - "Resources": _reflection.GeneratedProtocolMessageType( - "Resources", - (_message.Message,), - { - "DESCRIPTOR": _CUSTOMROLESPEC_RESOURCES, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.CustomRoleSpec.Resources) - }, - ), - "Permission": _reflection.GeneratedProtocolMessageType( - "Permission", - (_message.Message,), - { - "DESCRIPTOR": _CUSTOMROLESPEC_PERMISSION, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.CustomRoleSpec.Permission) - }, - ), - "DESCRIPTOR": _CUSTOMROLESPEC, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.CustomRoleSpec) - }, -) -_sym_db.RegisterMessage(CustomRoleSpec) -_sym_db.RegisterMessage(CustomRoleSpec.Resources) -_sym_db.RegisterMessage(CustomRoleSpec.Permission) - -CustomRole = _reflection.GeneratedProtocolMessageType( - "CustomRole", - (_message.Message,), - { - "DESCRIPTOR": _CUSTOMROLE, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.CustomRole) - }, -) -_sym_db.RegisterMessage(CustomRole) - -UserNamespaceAssignment = _reflection.GeneratedProtocolMessageType( - "UserNamespaceAssignment", - (_message.Message,), - { - "DESCRIPTOR": _USERNAMESPACEASSIGNMENT, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.UserNamespaceAssignment) - }, -) -_sym_db.RegisterMessage(UserNamespaceAssignment) - -ServiceAccountNamespaceAssignment = _reflection.GeneratedProtocolMessageType( - "ServiceAccountNamespaceAssignment", - (_message.Message,), - { - "DESCRIPTOR": _SERVICEACCOUNTNAMESPACEASSIGNMENT, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.ServiceAccountNamespaceAssignment) - }, -) -_sym_db.RegisterMessage(ServiceAccountNamespaceAssignment) - -UserGroupNamespaceAssignment = _reflection.GeneratedProtocolMessageType( - "UserGroupNamespaceAssignment", - (_message.Message,), - { - "DESCRIPTOR": _USERGROUPNAMESPACEASSIGNMENT, - "__module__": "temporalio.api.cloud.identity.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.identity.v1.UserGroupNamespaceAssignment) - }, -) -_sym_db.RegisterMessage(UserGroupNamespaceAssignment) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n!io.temporal.api.cloud.identity.v1B\014MessageProtoP\001Z-go.temporal.io/api/cloud/identity/v1;identity\252\002 Temporalio.Api.Cloud.Identity.V1\352\002$Temporalio::Api::Cloud::Identity::V1" diff --git a/temporalio/api/cloud/identity/v1/message_pb2.pyi b/temporalio/api/cloud/identity/v1/message_pb2.pyi index 5471475f6..de956bcac 100644 --- a/temporalio/api/cloud/identity/v1/message_pb2.pyi +++ b/temporalio/api/cloud/identity/v1/message_pb2.pyi @@ -30,7 +30,7 @@ class _OwnerType: class _OwnerTypeEnumTypeWrapper( google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OwnerType.ValueType], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor OWNER_TYPE_UNSPECIFIED: _OwnerType.ValueType # 0 OWNER_TYPE_USER: _OwnerType.ValueType # 1 @@ -47,6 +47,7 @@ OWNER_TYPE_SERVICE_ACCOUNT: OwnerType.ValueType # 2 """The owner is a service account.""" global___OwnerType = OwnerType +@typing.final class AccountAccess(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -59,7 +60,7 @@ class AccountAccess(google.protobuf.message.Message): AccountAccess._Role.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ROLE_UNSPECIFIED: AccountAccess._Role.ValueType # 0 ROLE_OWNER: AccountAccess._Role.ValueType # 1 @@ -116,6 +117,7 @@ class AccountAccess(google.protobuf.message.Message): """List of custom role IDs assigned to the user or service account. temporal:versioning:min_version=v0.13.0 """ + def __init__( self, *, @@ -125,7 +127,7 @@ class AccountAccess(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "custom_roles", b"custom_roles", "role", @@ -137,6 +139,7 @@ class AccountAccess(google.protobuf.message.Message): global___AccountAccess = AccountAccess +@typing.final class NamespaceAccess(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -149,7 +152,7 @@ class NamespaceAccess(google.protobuf.message.Message): NamespaceAccess._Permission.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PERMISSION_UNSPECIFIED: NamespaceAccess._Permission.ValueType # 0 PERMISSION_ADMIN: NamespaceAccess._Permission.ValueType # 1 @@ -191,7 +194,7 @@ class NamespaceAccess(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "permission", b"permission", "permission_deprecated", @@ -201,9 +204,11 @@ class NamespaceAccess(google.protobuf.message.Message): global___NamespaceAccess = NamespaceAccess +@typing.final class Access(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class NamespaceAccessesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -219,11 +224,10 @@ class Access(google.protobuf.message.Message): value: global___NamespaceAccess | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... ACCOUNT_ACCESS_FIELD_NUMBER: builtins.int @@ -232,6 +236,7 @@ class Access(google.protobuf.message.Message): @property def account_access(self) -> global___AccountAccess: """The account access""" + @property def namespace_accesses( self, @@ -241,6 +246,7 @@ class Access(google.protobuf.message.Message): """The map of namespace accesses The key is the namespace name and the value is the access to the namespace """ + @property def custom_roles_deprecated( self, @@ -249,6 +255,7 @@ class Access(google.protobuf.message.Message): Deprecated: Not supported after v0.12.0 api version. Use account_access.custom_roles instead. temporal:versioning:max_version=v0.12.0 """ + def __init__( self, *, @@ -260,11 +267,11 @@ class Access(google.protobuf.message.Message): custom_roles_deprecated: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["account_access", b"account_access"] + self, field_name: typing.Literal["account_access", b"account_access"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "account_access", b"account_access", "custom_roles_deprecated", @@ -276,6 +283,7 @@ class Access(google.protobuf.message.Message): global___Access = Access +@typing.final class NamespaceScopedAccess(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -286,6 +294,7 @@ class NamespaceScopedAccess(google.protobuf.message.Message): @property def access(self) -> global___NamespaceAccess: """The namespace access assigned to the service account - mutable.""" + def __init__( self, *, @@ -293,17 +302,15 @@ class NamespaceScopedAccess(google.protobuf.message.Message): access: global___NamespaceAccess | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["access", b"access"] + self, field_name: typing.Literal["access", b"access"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "access", b"access", "namespace", b"namespace" - ], + self, field_name: typing.Literal["access", b"access", "namespace", b"namespace"] ) -> None: ... global___NamespaceScopedAccess = NamespaceScopedAccess +@typing.final class UserSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -314,6 +321,7 @@ class UserSpec(google.protobuf.message.Message): @property def access(self) -> global___Access: """The access to assigned to the user""" + def __init__( self, *, @@ -321,15 +329,15 @@ class UserSpec(google.protobuf.message.Message): access: global___Access | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["access", b"access"] + self, field_name: typing.Literal["access", b"access"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["access", b"access", "email", b"email"], + self, field_name: typing.Literal["access", b"access", "email", b"email"] ) -> None: ... global___UserSpec = UserSpec +@typing.final class Invitation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -338,9 +346,11 @@ class Invitation(google.protobuf.message.Message): @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the user was created""" + @property def expired_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the invitation expires or has expired""" + def __init__( self, *, @@ -349,19 +359,20 @@ class Invitation(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "expired_time", b"expired_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "expired_time", b"expired_time" ], ) -> None: ... global___Invitation = Invitation +@typing.final class User(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -380,9 +391,6 @@ class User(google.protobuf.message.Message): """The current version of the user specification The next update operation will have to include this version """ - @property - def spec(self) -> global___UserSpec: - """The user specification""" state_deprecated: builtins.str """The current state of the user Deprecated: Not supported after v0.3.0 api version. Use state instead. @@ -396,17 +404,24 @@ class User(google.protobuf.message.Message): """ async_operation_id: builtins.str """The id of the async operation that is creating/updating/deleting the user, if any""" + @property + def spec(self) -> global___UserSpec: + """The user specification""" + @property def invitation(self) -> global___Invitation: """The details of the open invitation sent to the user, if any""" + @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the user was created""" + @property def last_modified_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the user was last modified Will not be set if the user has never been modified """ + def __init__( self, *, @@ -422,7 +437,7 @@ class User(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "invitation", @@ -435,7 +450,7 @@ class User(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "created_time", @@ -459,6 +474,7 @@ class User(google.protobuf.message.Message): global___User = User +@typing.final class GoogleGroupSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -473,11 +489,12 @@ class GoogleGroupSpec(google.protobuf.message.Message): email_address: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["email_address", b"email_address"] + self, field_name: typing.Literal["email_address", b"email_address"] ) -> None: ... global___GoogleGroupSpec = GoogleGroupSpec +@typing.final class SCIMGroupSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -489,12 +506,11 @@ class SCIMGroupSpec(google.protobuf.message.Message): *, idp_id: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["idp_id", b"idp_id"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["idp_id", b"idp_id"]) -> None: ... global___SCIMGroupSpec = SCIMGroupSpec +@typing.final class CloudGroupSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -504,6 +520,7 @@ class CloudGroupSpec(google.protobuf.message.Message): global___CloudGroupSpec = CloudGroupSpec +@typing.final class UserGroupSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -517,19 +534,23 @@ class UserGroupSpec(google.protobuf.message.Message): @property def access(self) -> global___Access: """The access assigned to the group.""" + @property def google_group(self) -> global___GoogleGroupSpec: """The specification of the google group that this group is associated with.""" + @property def scim_group(self) -> global___SCIMGroupSpec: """The specification of the SCIM group that this group is associated with. SCIM groups cannot be created or deleted directly, but their access can be managed. """ + @property def cloud_group(self) -> global___CloudGroupSpec: """The specification for a Cloud group. Cloud groups can manage members using the add and remove member APIs. """ + def __init__( self, *, @@ -541,7 +562,7 @@ class UserGroupSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "access", b"access", "cloud_group", @@ -556,7 +577,7 @@ class UserGroupSpec(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "access", b"access", "cloud_group", @@ -572,13 +593,12 @@ class UserGroupSpec(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["group_type", b"group_type"] - ) -> ( - typing_extensions.Literal["google_group", "scim_group", "cloud_group"] | None - ): ... + self, oneof_group: typing.Literal["group_type", b"group_type"] + ) -> typing.Literal["google_group", "scim_group", "cloud_group"] | None: ... global___UserGroupSpec = UserGroupSpec +@typing.final class UserGroup(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -596,9 +616,6 @@ class UserGroup(google.protobuf.message.Message): """The current version of the group specification The next update operation will have to include this version """ - @property - def spec(self) -> global___UserGroupSpec: - """The group specification""" state_deprecated: builtins.str """The current state of the group. Deprecated: Not supported after v0.3.0 api version. Use state instead. @@ -612,14 +629,20 @@ class UserGroup(google.protobuf.message.Message): """ async_operation_id: builtins.str """The id of the async operation that is creating/updating/deleting the group, if any""" + @property + def spec(self) -> global___UserGroupSpec: + """The group specification""" + @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the group was created""" + @property def last_modified_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the group was last modified Will not be set if the group has never been modified """ + def __init__( self, *, @@ -634,7 +657,7 @@ class UserGroup(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "last_modified_time", @@ -645,7 +668,7 @@ class UserGroup(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "created_time", @@ -667,6 +690,7 @@ class UserGroup(google.protobuf.message.Message): global___UserGroup = UserGroup +@typing.final class UserGroupMemberId(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -679,22 +703,23 @@ class UserGroupMemberId(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "member_type", b"member_type", "user_id", b"user_id" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "member_type", b"member_type", "user_id", b"user_id" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["member_type", b"member_type"] - ) -> typing_extensions.Literal["user_id"] | None: ... + self, oneof_group: typing.Literal["member_type", b"member_type"] + ) -> typing.Literal["user_id"] | None: ... global___UserGroupMemberId = UserGroupMemberId +@typing.final class UserGroupMember(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -712,19 +737,20 @@ class UserGroupMember(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "member_id", b"member_id" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "member_id", b"member_id" ], ) -> None: ... global___UserGroupMember = UserGroupMember +@typing.final class ServiceAccount(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -742,9 +768,6 @@ class ServiceAccount(google.protobuf.message.Message): """The current version of the service account specification. The next update operation will have to include this version. """ - @property - def spec(self) -> global___ServiceAccountSpec: - """The service account specification.""" state_deprecated: builtins.str """The current state of the service account. Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. @@ -760,14 +783,20 @@ class ServiceAccount(google.protobuf.message.Message): """ async_operation_id: builtins.str """The id of the async operation that is creating/updating/deleting the service account, if any.""" + @property + def spec(self) -> global___ServiceAccountSpec: + """The service account specification.""" + @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the service account was created.""" + @property def last_modified_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the service account was last modified Will not be set if the service account has never been modified. """ + def __init__( self, *, @@ -782,7 +811,7 @@ class ServiceAccount(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "last_modified_time", @@ -793,7 +822,7 @@ class ServiceAccount(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "created_time", @@ -815,6 +844,7 @@ class ServiceAccount(google.protobuf.message.Message): global___ServiceAccount = ServiceAccount +@typing.final class ServiceAccountSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -826,6 +856,10 @@ class ServiceAccountSpec(google.protobuf.message.Message): """The name associated with the service account. The name is mutable, but must be unique across all your active service accounts. """ + description: builtins.str + """The description associated with the service account - optional. + The description is mutable. + """ @property def access(self) -> global___Access: """Note: one of `Access` or `NamespaceScopedAccess` must be provided, but not both. @@ -833,6 +867,7 @@ class ServiceAccountSpec(google.protobuf.message.Message): If set, creates an account scoped service account. The access is mutable. """ + @property def namespace_scoped_access(self) -> global___NamespaceScopedAccess: """The namespace scoped access assigned to the service account. @@ -840,10 +875,7 @@ class ServiceAccountSpec(google.protobuf.message.Message): The namespace scoped access is partially mutable. Refer to `NamespaceScopedAccess` for details. """ - description: builtins.str - """The description associated with the service account - optional. - The description is mutable. - """ + def __init__( self, *, @@ -854,13 +886,13 @@ class ServiceAccountSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "access", b"access", "namespace_scoped_access", b"namespace_scoped_access" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "access", b"access", "description", @@ -874,6 +906,7 @@ class ServiceAccountSpec(google.protobuf.message.Message): global___ServiceAccountSpec = ServiceAccountSpec +@typing.final class ApiKey(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -891,9 +924,6 @@ class ApiKey(google.protobuf.message.Message): """The current version of the API key specification. The next update operation will have to include this version. """ - @property - def spec(self) -> global___ApiKeySpec: - """The API key specification.""" state_deprecated: builtins.str """The current state of the API key. Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. @@ -908,14 +938,20 @@ class ApiKey(google.protobuf.message.Message): """ async_operation_id: builtins.str """The id of the async operation that is creating/updating/deleting the API key, if any.""" + @property + def spec(self) -> global___ApiKeySpec: + """The API key specification.""" + @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the API key was created.""" + @property def last_modified_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the API key was last modified. Will not be set if the API key has never been modified. """ + def __init__( self, *, @@ -930,7 +966,7 @@ class ApiKey(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "last_modified_time", @@ -941,7 +977,7 @@ class ApiKey(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "created_time", @@ -963,6 +999,7 @@ class ApiKey(google.protobuf.message.Message): global___ApiKey = ApiKey +@typing.final class ApiKeySpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -995,11 +1032,12 @@ class ApiKeySpec(google.protobuf.message.Message): """The display name of the API key.""" description: builtins.str """The description of the API key.""" + disabled: builtins.bool + """True if the API key is disabled.""" @property def expiry_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The expiry time of the API key.""" - disabled: builtins.bool - """True if the API key is disabled.""" + def __init__( self, *, @@ -1012,11 +1050,11 @@ class ApiKeySpec(google.protobuf.message.Message): disabled: builtins.bool = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["expiry_time", b"expiry_time"] + self, field_name: typing.Literal["expiry_time", b"expiry_time"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "disabled", @@ -1036,9 +1074,11 @@ class ApiKeySpec(google.protobuf.message.Message): global___ApiKeySpec = ApiKeySpec +@typing.final class CustomRoleSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Resources(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1047,6 +1087,8 @@ class CustomRoleSpec(google.protobuf.message.Message): ALLOW_ALL_FIELD_NUMBER: builtins.int resource_type: builtins.str """The resource type the permission applies to.""" + allow_all: builtins.bool + """Whether the permission applies to all resources of the given type.""" @property def resource_ids( self, @@ -1054,8 +1096,7 @@ class CustomRoleSpec(google.protobuf.message.Message): builtins.str ]: """The resource IDs the permission applies to. Can be empty if allow_all is true.""" - allow_all: builtins.bool - """Whether the permission applies to all resources of the given type.""" + def __init__( self, *, @@ -1065,7 +1106,7 @@ class CustomRoleSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "allow_all", b"allow_all", "resource_ids", @@ -1075,6 +1116,7 @@ class CustomRoleSpec(google.protobuf.message.Message): ], ) -> None: ... + @typing.final class Permission(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1083,6 +1125,7 @@ class CustomRoleSpec(google.protobuf.message.Message): @property def resources(self) -> global___CustomRoleSpec.Resources: """The resources the permission applies to.""" + @property def actions( self, @@ -1090,6 +1133,7 @@ class CustomRoleSpec(google.protobuf.message.Message): builtins.str ]: """The actions allowed by the permission.""" + def __init__( self, *, @@ -1097,11 +1141,11 @@ class CustomRoleSpec(google.protobuf.message.Message): actions: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["resources", b"resources"] + self, field_name: typing.Literal["resources", b"resources"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "actions", b"actions", "resources", b"resources" ], ) -> None: ... @@ -1120,6 +1164,7 @@ class CustomRoleSpec(google.protobuf.message.Message): global___CustomRoleSpec.Permission ]: """The permissions assigned to the custom role.""" + def __init__( self, *, @@ -1130,7 +1175,7 @@ class CustomRoleSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "name", @@ -1142,6 +1187,7 @@ class CustomRoleSpec(google.protobuf.message.Message): global___CustomRoleSpec = CustomRoleSpec +@typing.final class CustomRole(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1158,23 +1204,26 @@ class CustomRole(google.protobuf.message.Message): """The current version of the custom role specification. The next update operation will have to include this version. """ - @property - def spec(self) -> global___CustomRoleSpec: - """The custom role specification.""" state: temporalio.api.cloud.resource.v1.message_pb2.ResourceState.ValueType """The current state of the custom role. For any failed state, reach out to Temporal Cloud support for remediation. """ async_operation_id: builtins.str """The id of the async operation that is creating/updating/deleting the custom role, if any.""" + @property + def spec(self) -> global___CustomRoleSpec: + """The custom role specification.""" + @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the custom role was created.""" + @property def last_modified_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the custom role was last modified. Will not be set if the custom role has never been modified. """ + def __init__( self, *, @@ -1188,7 +1237,7 @@ class CustomRole(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "last_modified_time", @@ -1199,7 +1248,7 @@ class CustomRole(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "created_time", @@ -1219,6 +1268,7 @@ class CustomRole(google.protobuf.message.Message): global___CustomRole = CustomRole +@typing.final class UserNamespaceAssignment(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1231,13 +1281,14 @@ class UserNamespaceAssignment(google.protobuf.message.Message): """The ID of the user.""" email: builtins.str """The email of the user.""" - @property - def namespace_access(self) -> global___NamespaceAccess: - """The access assigned to the user at the namespace level.""" inherited_access: builtins.bool """True if the user has inherited access to the namespace through an account or project role.""" resource_version: builtins.str """The current resource version of the user.""" + @property + def namespace_access(self) -> global___NamespaceAccess: + """The access assigned to the user at the namespace level.""" + def __init__( self, *, @@ -1248,12 +1299,11 @@ class UserNamespaceAssignment(google.protobuf.message.Message): resource_version: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["namespace_access", b"namespace_access"], + self, field_name: typing.Literal["namespace_access", b"namespace_access"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "email", b"email", "id", @@ -1269,6 +1319,7 @@ class UserNamespaceAssignment(google.protobuf.message.Message): global___UserNamespaceAssignment = UserNamespaceAssignment +@typing.final class ServiceAccountNamespaceAssignment(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1281,13 +1332,14 @@ class ServiceAccountNamespaceAssignment(google.protobuf.message.Message): """The ID of the service account.""" name: builtins.str """The name of the service account.""" - @property - def namespace_access(self) -> global___NamespaceAccess: - """The access assigned to the service account at the namespace level.""" inherited_access: builtins.bool """True if the service account has inherited access to the namespace through an account or project role.""" resource_version: builtins.str """The current resource version of the service account.""" + @property + def namespace_access(self) -> global___NamespaceAccess: + """The access assigned to the service account at the namespace level.""" + def __init__( self, *, @@ -1298,12 +1350,11 @@ class ServiceAccountNamespaceAssignment(google.protobuf.message.Message): resource_version: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["namespace_access", b"namespace_access"], + self, field_name: typing.Literal["namespace_access", b"namespace_access"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "id", b"id", "inherited_access", @@ -1319,6 +1370,7 @@ class ServiceAccountNamespaceAssignment(google.protobuf.message.Message): global___ServiceAccountNamespaceAssignment = ServiceAccountNamespaceAssignment +@typing.final class UserGroupNamespaceAssignment(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1331,13 +1383,14 @@ class UserGroupNamespaceAssignment(google.protobuf.message.Message): """The ID of the group.""" display_name: builtins.str """The display name of the group.""" - @property - def namespace_access(self) -> global___NamespaceAccess: - """The access assigned to the group at the namespace level.""" inherited_access: builtins.bool """True if the group has inherited access to the namespace through an account or project role.""" resource_version: builtins.str """The current resource version of the group.""" + @property + def namespace_access(self) -> global___NamespaceAccess: + """The access assigned to the group at the namespace level.""" + def __init__( self, *, @@ -1348,12 +1401,11 @@ class UserGroupNamespaceAssignment(google.protobuf.message.Message): resource_version: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["namespace_access", b"namespace_access"], + self, field_name: typing.Literal["namespace_access", b"namespace_access"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "display_name", b"display_name", "id", diff --git a/temporalio/api/cloud/namespace/v1/message_pb2.py b/temporalio/api/cloud/namespace/v1/message_pb2.py index 33eb2f789..03bbc83a3 100644 --- a/temporalio/api/cloud/namespace/v1/message_pb2.py +++ b/temporalio/api/cloud/namespace/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -30,458 +29,8 @@ b'\n-temporal/api/cloud/namespace/v1/message.proto\x12\x1ftemporal.api.cloud.namespace.v1\x1a,temporal/api/cloud/resource/v1/message.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(temporal/api/cloud/sink/v1/message.proto\x1a\x34temporal/api/cloud/connectivityrule/v1/message.proto"\x81\x01\n\x15\x43\x65rtificateFilterSpec\x12\x13\n\x0b\x63ommon_name\x18\x01 \x01(\t\x12\x14\n\x0corganization\x18\x02 \x01(\t\x12\x1b\n\x13organizational_unit\x18\x03 \x01(\t\x12 \n\x18subject_alternative_name\x18\x04 \x01(\t"\xbb\x01\n\x0cMtlsAuthSpec\x12)\n\x1d\x61\x63\x63\x65pted_client_ca_deprecated\x18\x01 \x01(\tB\x02\x18\x01\x12\x1a\n\x12\x61\x63\x63\x65pted_client_ca\x18\x04 \x01(\x0c\x12S\n\x13\x63\x65rtificate_filters\x18\x02 \x03(\x0b\x32\x36.temporal.api.cloud.namespace.v1.CertificateFilterSpec\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08"!\n\x0e\x41piKeyAuthSpec\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08"1\n\rLifecycleSpec\x12 \n\x18\x65nable_delete_protection\x18\x01 \x01(\x08"\xf4\x02\n\x0f\x43odecServerSpec\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x19\n\x11pass_access_token\x18\x02 \x01(\x08\x12(\n include_cross_origin_credentials\x18\x03 \x01(\x08\x12\x61\n\x14\x63ustom_error_message\x18\x04 \x01(\x0b\x32\x43.temporal.api.cloud.namespace.v1.CodecServerSpec.CustomErrorMessage\x1a\xa6\x01\n\x12\x43ustomErrorMessage\x12\x61\n\x07\x64\x65\x66\x61ult\x18\x01 \x01(\x0b\x32P.temporal.api.cloud.namespace.v1.CodecServerSpec.CustomErrorMessage.ErrorMessage\x1a-\n\x0c\x45rrorMessage\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0c\n\x04link\x18\x02 \x01(\t"c\n\x14HighAvailabilitySpec\x12 \n\x18\x64isable_managed_failover\x18\x01 \x01(\x08\x12)\n!disable_passive_poller_forwarding\x18\x02 \x01(\x08"\x1d\n\x0bReplicaSpec\x12\x0e\n\x06region\x18\x01 \x01(\t"\x99\x02\n\x07Replica\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nis_primary\x18\x02 \x01(\x08\x12\x44\n\x05state\x18\x03 \x01(\x0e\x32\x35.temporal.api.cloud.namespace.v1.Replica.ReplicaState\x12\x0e\n\x06region\x18\x04 \x01(\t"\x97\x01\n\x0cReplicaState\x12\x1d\n\x19REPLICA_STATE_UNSPECIFIED\x10\x00\x12\x18\n\x14REPLICA_STATE_ADDING\x10\x01\x12\x18\n\x14REPLICA_STATE_ACTIVE\x10\x02\x12\x1a\n\x16REPLICA_STATE_REMOVING\x10\x03\x12\x18\n\x14REPLICA_STATE_FAILED\x10\x05"\xdf\x01\n\x0c\x43\x61pacitySpec\x12K\n\ton_demand\x18\x01 \x01(\x0b\x32\x36.temporal.api.cloud.namespace.v1.CapacitySpec.OnDemandH\x00\x12P\n\x0bprovisioned\x18\x02 \x01(\x0b\x32\x39.temporal.api.cloud.namespace.v1.CapacitySpec.ProvisionedH\x00\x1a\n\n\x08OnDemand\x1a\x1c\n\x0bProvisioned\x12\r\n\x05value\x18\x01 \x01(\x01\x42\x06\n\x04spec"\xdc\x05\n\x08\x43\x61pacity\x12G\n\ton_demand\x18\x01 \x01(\x0b\x32\x32.temporal.api.cloud.namespace.v1.Capacity.OnDemandH\x00\x12L\n\x0bprovisioned\x18\x02 \x01(\x0b\x32\x35.temporal.api.cloud.namespace.v1.Capacity.ProvisionedH\x00\x12I\n\x0elatest_request\x18\x03 \x01(\x0b\x32\x31.temporal.api.cloud.namespace.v1.Capacity.Request\x1a\n\n\x08OnDemand\x1a$\n\x0bProvisioned\x12\x15\n\rcurrent_value\x18\x01 \x01(\x01\x1a\xab\x03\n\x07Request\x12\x46\n\x05state\x18\x01 \x01(\x0e\x32\x37.temporal.api.cloud.namespace.v1.Capacity.Request.State\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12\x61sync_operation_id\x18\x04 \x01(\t\x12;\n\x04spec\x18\x05 \x01(\x0b\x32-.temporal.api.cloud.namespace.v1.CapacitySpec"\xa0\x01\n\x05State\x12&\n"STATE_CAPACITY_REQUEST_UNSPECIFIED\x10\x00\x12$\n STATE_CAPACITY_REQUEST_COMPLETED\x10\x01\x12&\n"STATE_CAPACITY_REQUEST_IN_PROGRESS\x10\x02\x12!\n\x1dSTATE_CAPACITY_REQUEST_FAILED\x10\x03\x42\x0e\n\x0c\x63urrent_mode"3\n\x0c\x46\x61irnessSpec\x12#\n\x1btask_queue_fairness_enabled\x18\x01 \x01(\x08"\xd4\n\n\rNamespaceSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x07regions\x18\x02 \x03(\tB\x02\x18\x01\x12\x16\n\x0eretention_days\x18\x03 \x01(\x05\x12@\n\tmtls_auth\x18\x04 \x01(\x0b\x32-.temporal.api.cloud.namespace.v1.MtlsAuthSpec\x12\x45\n\x0c\x61pi_key_auth\x18\x07 \x01(\x0b\x32/.temporal.api.cloud.namespace.v1.ApiKeyAuthSpec\x12p\n\x18\x63ustom_search_attributes\x18\x05 \x03(\x0b\x32J.temporal.api.cloud.namespace.v1.NamespaceSpec.CustomSearchAttributesEntryB\x02\x18\x01\x12_\n\x11search_attributes\x18\x08 \x03(\x0b\x32\x44.temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributesEntry\x12\x46\n\x0c\x63odec_server\x18\x06 \x01(\x0b\x32\x30.temporal.api.cloud.namespace.v1.CodecServerSpec\x12\x41\n\tlifecycle\x18\t \x01(\x0b\x32..temporal.api.cloud.namespace.v1.LifecycleSpec\x12P\n\x11high_availability\x18\n \x01(\x0b\x32\x35.temporal.api.cloud.namespace.v1.HighAvailabilitySpec\x12\x1d\n\x15\x63onnectivity_rule_ids\x18\x0b \x03(\t\x12\x44\n\rcapacity_spec\x18\x0c \x01(\x0b\x32-.temporal.api.cloud.namespace.v1.CapacitySpec\x12>\n\x08replicas\x18\r \x03(\x0b\x32,.temporal.api.cloud.namespace.v1.ReplicaSpec\x12?\n\x08\x66\x61irness\x18\x0e \x01(\x0b\x32-.temporal.api.cloud.namespace.v1.FairnessSpec\x1a=\n\x1b\x43ustomSearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a{\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12Q\n\x05value\x18\x02 \x01(\x0e\x32\x42.temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributeType:\x02\x38\x01"\xac\x02\n\x13SearchAttributeType\x12%\n!SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1aSEARCH_ATTRIBUTE_TYPE_TEXT\x10\x01\x12!\n\x1dSEARCH_ATTRIBUTE_TYPE_KEYWORD\x10\x02\x12\x1d\n\x19SEARCH_ATTRIBUTE_TYPE_INT\x10\x03\x12 \n\x1cSEARCH_ATTRIBUTE_TYPE_DOUBLE\x10\x04\x12\x1e\n\x1aSEARCH_ATTRIBUTE_TYPE_BOOL\x10\x05\x12"\n\x1eSEARCH_ATTRIBUTE_TYPE_DATETIME\x10\x06\x12&\n"SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST\x10\x07"Q\n\tEndpoints\x12\x13\n\x0bweb_address\x18\x01 \x01(\t\x12\x19\n\x11mtls_grpc_address\x18\x02 \x01(\t\x12\x14\n\x0cgrpc_address\x18\x03 \x01(\t"*\n\x06Limits\x12 \n\x18\x61\x63tions_per_second_limit\x18\x01 \x01(\x05"X\n\x12\x41WSPrivateLinkInfo\x12\x1e\n\x16\x61llowed_principal_arns\x18\x01 \x03(\t\x12"\n\x1avpc_endpoint_service_names\x18\x02 \x03(\t"t\n\x13PrivateConnectivity\x12\x0e\n\x06region\x18\x01 \x01(\t\x12M\n\x10\x61ws_private_link\x18\x02 \x01(\x0b\x32\x33.temporal.api.cloud.namespace.v1.AWSPrivateLinkInfo"\xc3\x08\n\tNamespace\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12<\n\x04spec\x18\x03 \x01(\x0b\x32..temporal.api.cloud.namespace.v1.NamespaceSpec\x12\x1c\n\x10state_deprecated\x18\x04 \x01(\tB\x02\x18\x01\x12<\n\x05state\x18\r \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t\x12=\n\tendpoints\x18\x06 \x01(\x0b\x32*.temporal.api.cloud.namespace.v1.Endpoints\x12\x15\n\ractive_region\x18\x07 \x01(\t\x12\x37\n\x06limits\x18\x08 \x01(\x0b\x32\'.temporal.api.cloud.namespace.v1.Limits\x12T\n\x16private_connectivities\x18\t \x03(\x0b\x32\x34.temporal.api.cloud.namespace.v1.PrivateConnectivity\x12\x30\n\x0c\x63reated_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12W\n\rregion_status\x18\x0c \x03(\x0b\x32<.temporal.api.cloud.namespace.v1.Namespace.RegionStatusEntryB\x02\x18\x01\x12T\n\x12\x63onnectivity_rules\x18\x0e \x03(\x0b\x32\x38.temporal.api.cloud.connectivityrule.v1.ConnectivityRule\x12\x42\n\x04tags\x18\x0f \x03(\x0b\x32\x34.temporal.api.cloud.namespace.v1.Namespace.TagsEntry\x12;\n\x08\x63\x61pacity\x18\x10 \x01(\x0b\x32).temporal.api.cloud.namespace.v1.Capacity\x12:\n\x08replicas\x18\x12 \x03(\x0b\x32(.temporal.api.cloud.namespace.v1.Replica\x1ak\n\x11RegionStatusEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x45\n\x05value\x18\x02 \x01(\x0b\x32\x36.temporal.api.cloud.namespace.v1.NamespaceRegionStatus:\x02\x38\x01\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x9b\x02\n\x15NamespaceRegionStatus\x12\x1c\n\x10state_deprecated\x18\x01 \x01(\tB\x02\x18\x01\x12K\n\x05state\x18\x03 \x01(\x0e\x32<.temporal.api.cloud.namespace.v1.NamespaceRegionStatus.State\x12\x1a\n\x12\x61sync_operation_id\x18\x02 \x01(\t"{\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cSTATE_ADDING\x10\x01\x12\x10\n\x0cSTATE_ACTIVE\x10\x02\x12\x11\n\rSTATE_PASSIVE\x10\x03\x12\x12\n\x0eSTATE_REMOVING\x10\x04\x12\x10\n\x0cSTATE_FAILED\x10\x05"\x91\x01\n\x0e\x45xportSinkSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x02 \x01(\x08\x12.\n\x02s3\x18\x03 \x01(\x0b\x32".temporal.api.cloud.sink.v1.S3Spec\x12\x30\n\x03gcs\x18\x04 \x01(\x0b\x32#.temporal.api.cloud.sink.v1.GCSSpec"\xf6\x03\n\nExportSink\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12<\n\x05state\x18\x03 \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12=\n\x04spec\x18\x04 \x01(\x0b\x32/.temporal.api.cloud.namespace.v1.ExportSinkSpec\x12\x42\n\x06health\x18\x05 \x01(\x0e\x32\x32.temporal.api.cloud.namespace.v1.ExportSink.Health\x12\x15\n\rerror_message\x18\x06 \x01(\t\x12;\n\x17latest_data_export_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16last_health_check_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"o\n\x06Health\x12\x16\n\x12HEALTH_UNSPECIFIED\x10\x00\x12\r\n\tHEALTH_OK\x10\x01\x12\x19\n\x15HEALTH_ERROR_INTERNAL\x10\x02\x12#\n\x1fHEALTH_ERROR_USER_CONFIGURATION\x10\x03"\x9f\x06\n\x15NamespaceCapacityInfo\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11has_legacy_limits\x18\x02 \x01(\x08\x12\x43\n\x10\x63urrent_capacity\x18\x03 \x01(\x0b\x32).temporal.api.cloud.namespace.v1.Capacity\x12`\n\x0cmode_options\x18\x04 \x01(\x0b\x32J.temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions\x12K\n\x05stats\x18\x05 \x01(\x0b\x32<.temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats\x1a\xd3\x02\n\x13\x43\x61pacityModeOptions\x12k\n\x0bprovisioned\x18\x01 \x01(\x0b\x32V.temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions.Provisioned\x12\x66\n\ton_demand\x18\x02 \x01(\x0b\x32S.temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions.OnDemand\x1aH\n\x0bProvisioned\x12\x18\n\x10valid_tru_values\x18\x01 \x03(\x01\x12\x1f\n\x17max_available_tru_value\x18\x02 \x01(\x01\x1a\x1d\n\x08OnDemand\x12\x11\n\taps_limit\x18\x01 \x01(\x01\x1a\x8d\x01\n\x05Stats\x12Q\n\x03\x61ps\x18\x01 \x01(\x0b\x32\x44.temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats.Summary\x1a\x31\n\x07Summary\x12\x0c\n\x04mean\x18\x01 \x01(\x01\x12\x0b\n\x03p90\x18\x02 \x01(\x01\x12\x0b\n\x03p99\x18\x03 \x01(\x01\x42\xb1\x01\n"io.temporal.api.cloud.namespace.v1B\x0cMessageProtoP\x01Z/go.temporal.io/api/cloud/namespace/v1;namespace\xaa\x02!Temporalio.Api.Cloud.Namespace.V1\xea\x02%Temporalio::Api::Cloud::Namespace::V1b\x06proto3' ) - -_CERTIFICATEFILTERSPEC = DESCRIPTOR.message_types_by_name["CertificateFilterSpec"] -_MTLSAUTHSPEC = DESCRIPTOR.message_types_by_name["MtlsAuthSpec"] -_APIKEYAUTHSPEC = DESCRIPTOR.message_types_by_name["ApiKeyAuthSpec"] -_LIFECYCLESPEC = DESCRIPTOR.message_types_by_name["LifecycleSpec"] -_CODECSERVERSPEC = DESCRIPTOR.message_types_by_name["CodecServerSpec"] -_CODECSERVERSPEC_CUSTOMERRORMESSAGE = _CODECSERVERSPEC.nested_types_by_name[ - "CustomErrorMessage" -] -_CODECSERVERSPEC_CUSTOMERRORMESSAGE_ERRORMESSAGE = ( - _CODECSERVERSPEC_CUSTOMERRORMESSAGE.nested_types_by_name["ErrorMessage"] -) -_HIGHAVAILABILITYSPEC = DESCRIPTOR.message_types_by_name["HighAvailabilitySpec"] -_REPLICASPEC = DESCRIPTOR.message_types_by_name["ReplicaSpec"] -_REPLICA = DESCRIPTOR.message_types_by_name["Replica"] -_CAPACITYSPEC = DESCRIPTOR.message_types_by_name["CapacitySpec"] -_CAPACITYSPEC_ONDEMAND = _CAPACITYSPEC.nested_types_by_name["OnDemand"] -_CAPACITYSPEC_PROVISIONED = _CAPACITYSPEC.nested_types_by_name["Provisioned"] -_CAPACITY = DESCRIPTOR.message_types_by_name["Capacity"] -_CAPACITY_ONDEMAND = _CAPACITY.nested_types_by_name["OnDemand"] -_CAPACITY_PROVISIONED = _CAPACITY.nested_types_by_name["Provisioned"] -_CAPACITY_REQUEST = _CAPACITY.nested_types_by_name["Request"] -_FAIRNESSSPEC = DESCRIPTOR.message_types_by_name["FairnessSpec"] -_NAMESPACESPEC = DESCRIPTOR.message_types_by_name["NamespaceSpec"] -_NAMESPACESPEC_CUSTOMSEARCHATTRIBUTESENTRY = _NAMESPACESPEC.nested_types_by_name[ - "CustomSearchAttributesEntry" -] -_NAMESPACESPEC_SEARCHATTRIBUTESENTRY = _NAMESPACESPEC.nested_types_by_name[ - "SearchAttributesEntry" -] -_ENDPOINTS = DESCRIPTOR.message_types_by_name["Endpoints"] -_LIMITS = DESCRIPTOR.message_types_by_name["Limits"] -_AWSPRIVATELINKINFO = DESCRIPTOR.message_types_by_name["AWSPrivateLinkInfo"] -_PRIVATECONNECTIVITY = DESCRIPTOR.message_types_by_name["PrivateConnectivity"] -_NAMESPACE = DESCRIPTOR.message_types_by_name["Namespace"] -_NAMESPACE_REGIONSTATUSENTRY = _NAMESPACE.nested_types_by_name["RegionStatusEntry"] -_NAMESPACE_TAGSENTRY = _NAMESPACE.nested_types_by_name["TagsEntry"] -_NAMESPACEREGIONSTATUS = DESCRIPTOR.message_types_by_name["NamespaceRegionStatus"] -_EXPORTSINKSPEC = DESCRIPTOR.message_types_by_name["ExportSinkSpec"] -_EXPORTSINK = DESCRIPTOR.message_types_by_name["ExportSink"] -_NAMESPACECAPACITYINFO = DESCRIPTOR.message_types_by_name["NamespaceCapacityInfo"] -_NAMESPACECAPACITYINFO_CAPACITYMODEOPTIONS = ( - _NAMESPACECAPACITYINFO.nested_types_by_name["CapacityModeOptions"] -) -_NAMESPACECAPACITYINFO_CAPACITYMODEOPTIONS_PROVISIONED = ( - _NAMESPACECAPACITYINFO_CAPACITYMODEOPTIONS.nested_types_by_name["Provisioned"] -) -_NAMESPACECAPACITYINFO_CAPACITYMODEOPTIONS_ONDEMAND = ( - _NAMESPACECAPACITYINFO_CAPACITYMODEOPTIONS.nested_types_by_name["OnDemand"] -) -_NAMESPACECAPACITYINFO_STATS = _NAMESPACECAPACITYINFO.nested_types_by_name["Stats"] -_NAMESPACECAPACITYINFO_STATS_SUMMARY = ( - _NAMESPACECAPACITYINFO_STATS.nested_types_by_name["Summary"] -) -_REPLICA_REPLICASTATE = _REPLICA.enum_types_by_name["ReplicaState"] -_CAPACITY_REQUEST_STATE = _CAPACITY_REQUEST.enum_types_by_name["State"] -_NAMESPACESPEC_SEARCHATTRIBUTETYPE = _NAMESPACESPEC.enum_types_by_name[ - "SearchAttributeType" -] -_NAMESPACEREGIONSTATUS_STATE = _NAMESPACEREGIONSTATUS.enum_types_by_name["State"] -_EXPORTSINK_HEALTH = _EXPORTSINK.enum_types_by_name["Health"] -CertificateFilterSpec = _reflection.GeneratedProtocolMessageType( - "CertificateFilterSpec", - (_message.Message,), - { - "DESCRIPTOR": _CERTIFICATEFILTERSPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.CertificateFilterSpec) - }, -) -_sym_db.RegisterMessage(CertificateFilterSpec) - -MtlsAuthSpec = _reflection.GeneratedProtocolMessageType( - "MtlsAuthSpec", - (_message.Message,), - { - "DESCRIPTOR": _MTLSAUTHSPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.MtlsAuthSpec) - }, -) -_sym_db.RegisterMessage(MtlsAuthSpec) - -ApiKeyAuthSpec = _reflection.GeneratedProtocolMessageType( - "ApiKeyAuthSpec", - (_message.Message,), - { - "DESCRIPTOR": _APIKEYAUTHSPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.ApiKeyAuthSpec) - }, -) -_sym_db.RegisterMessage(ApiKeyAuthSpec) - -LifecycleSpec = _reflection.GeneratedProtocolMessageType( - "LifecycleSpec", - (_message.Message,), - { - "DESCRIPTOR": _LIFECYCLESPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.LifecycleSpec) - }, -) -_sym_db.RegisterMessage(LifecycleSpec) - -CodecServerSpec = _reflection.GeneratedProtocolMessageType( - "CodecServerSpec", - (_message.Message,), - { - "CustomErrorMessage": _reflection.GeneratedProtocolMessageType( - "CustomErrorMessage", - (_message.Message,), - { - "ErrorMessage": _reflection.GeneratedProtocolMessageType( - "ErrorMessage", - (_message.Message,), - { - "DESCRIPTOR": _CODECSERVERSPEC_CUSTOMERRORMESSAGE_ERRORMESSAGE, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.CodecServerSpec.CustomErrorMessage.ErrorMessage) - }, - ), - "DESCRIPTOR": _CODECSERVERSPEC_CUSTOMERRORMESSAGE, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.CodecServerSpec.CustomErrorMessage) - }, - ), - "DESCRIPTOR": _CODECSERVERSPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.CodecServerSpec) - }, -) -_sym_db.RegisterMessage(CodecServerSpec) -_sym_db.RegisterMessage(CodecServerSpec.CustomErrorMessage) -_sym_db.RegisterMessage(CodecServerSpec.CustomErrorMessage.ErrorMessage) - -HighAvailabilitySpec = _reflection.GeneratedProtocolMessageType( - "HighAvailabilitySpec", - (_message.Message,), - { - "DESCRIPTOR": _HIGHAVAILABILITYSPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.HighAvailabilitySpec) - }, -) -_sym_db.RegisterMessage(HighAvailabilitySpec) - -ReplicaSpec = _reflection.GeneratedProtocolMessageType( - "ReplicaSpec", - (_message.Message,), - { - "DESCRIPTOR": _REPLICASPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.ReplicaSpec) - }, -) -_sym_db.RegisterMessage(ReplicaSpec) - -Replica = _reflection.GeneratedProtocolMessageType( - "Replica", - (_message.Message,), - { - "DESCRIPTOR": _REPLICA, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Replica) - }, -) -_sym_db.RegisterMessage(Replica) - -CapacitySpec = _reflection.GeneratedProtocolMessageType( - "CapacitySpec", - (_message.Message,), - { - "OnDemand": _reflection.GeneratedProtocolMessageType( - "OnDemand", - (_message.Message,), - { - "DESCRIPTOR": _CAPACITYSPEC_ONDEMAND, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.CapacitySpec.OnDemand) - }, - ), - "Provisioned": _reflection.GeneratedProtocolMessageType( - "Provisioned", - (_message.Message,), - { - "DESCRIPTOR": _CAPACITYSPEC_PROVISIONED, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.CapacitySpec.Provisioned) - }, - ), - "DESCRIPTOR": _CAPACITYSPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.CapacitySpec) - }, -) -_sym_db.RegisterMessage(CapacitySpec) -_sym_db.RegisterMessage(CapacitySpec.OnDemand) -_sym_db.RegisterMessage(CapacitySpec.Provisioned) - -Capacity = _reflection.GeneratedProtocolMessageType( - "Capacity", - (_message.Message,), - { - "OnDemand": _reflection.GeneratedProtocolMessageType( - "OnDemand", - (_message.Message,), - { - "DESCRIPTOR": _CAPACITY_ONDEMAND, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Capacity.OnDemand) - }, - ), - "Provisioned": _reflection.GeneratedProtocolMessageType( - "Provisioned", - (_message.Message,), - { - "DESCRIPTOR": _CAPACITY_PROVISIONED, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Capacity.Provisioned) - }, - ), - "Request": _reflection.GeneratedProtocolMessageType( - "Request", - (_message.Message,), - { - "DESCRIPTOR": _CAPACITY_REQUEST, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Capacity.Request) - }, - ), - "DESCRIPTOR": _CAPACITY, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Capacity) - }, -) -_sym_db.RegisterMessage(Capacity) -_sym_db.RegisterMessage(Capacity.OnDemand) -_sym_db.RegisterMessage(Capacity.Provisioned) -_sym_db.RegisterMessage(Capacity.Request) - -FairnessSpec = _reflection.GeneratedProtocolMessageType( - "FairnessSpec", - (_message.Message,), - { - "DESCRIPTOR": _FAIRNESSSPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.FairnessSpec) - }, -) -_sym_db.RegisterMessage(FairnessSpec) - -NamespaceSpec = _reflection.GeneratedProtocolMessageType( - "NamespaceSpec", - (_message.Message,), - { - "CustomSearchAttributesEntry": _reflection.GeneratedProtocolMessageType( - "CustomSearchAttributesEntry", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACESPEC_CUSTOMSEARCHATTRIBUTESENTRY, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceSpec.CustomSearchAttributesEntry) - }, - ), - "SearchAttributesEntry": _reflection.GeneratedProtocolMessageType( - "SearchAttributesEntry", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACESPEC_SEARCHATTRIBUTESENTRY, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributesEntry) - }, - ), - "DESCRIPTOR": _NAMESPACESPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceSpec) - }, -) -_sym_db.RegisterMessage(NamespaceSpec) -_sym_db.RegisterMessage(NamespaceSpec.CustomSearchAttributesEntry) -_sym_db.RegisterMessage(NamespaceSpec.SearchAttributesEntry) - -Endpoints = _reflection.GeneratedProtocolMessageType( - "Endpoints", - (_message.Message,), - { - "DESCRIPTOR": _ENDPOINTS, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Endpoints) - }, -) -_sym_db.RegisterMessage(Endpoints) - -Limits = _reflection.GeneratedProtocolMessageType( - "Limits", - (_message.Message,), - { - "DESCRIPTOR": _LIMITS, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Limits) - }, -) -_sym_db.RegisterMessage(Limits) - -AWSPrivateLinkInfo = _reflection.GeneratedProtocolMessageType( - "AWSPrivateLinkInfo", - (_message.Message,), - { - "DESCRIPTOR": _AWSPRIVATELINKINFO, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.AWSPrivateLinkInfo) - }, -) -_sym_db.RegisterMessage(AWSPrivateLinkInfo) - -PrivateConnectivity = _reflection.GeneratedProtocolMessageType( - "PrivateConnectivity", - (_message.Message,), - { - "DESCRIPTOR": _PRIVATECONNECTIVITY, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.PrivateConnectivity) - }, -) -_sym_db.RegisterMessage(PrivateConnectivity) - -Namespace = _reflection.GeneratedProtocolMessageType( - "Namespace", - (_message.Message,), - { - "RegionStatusEntry": _reflection.GeneratedProtocolMessageType( - "RegionStatusEntry", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACE_REGIONSTATUSENTRY, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Namespace.RegionStatusEntry) - }, - ), - "TagsEntry": _reflection.GeneratedProtocolMessageType( - "TagsEntry", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACE_TAGSENTRY, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Namespace.TagsEntry) - }, - ), - "DESCRIPTOR": _NAMESPACE, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.Namespace) - }, -) -_sym_db.RegisterMessage(Namespace) -_sym_db.RegisterMessage(Namespace.RegionStatusEntry) -_sym_db.RegisterMessage(Namespace.TagsEntry) - -NamespaceRegionStatus = _reflection.GeneratedProtocolMessageType( - "NamespaceRegionStatus", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACEREGIONSTATUS, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceRegionStatus) - }, -) -_sym_db.RegisterMessage(NamespaceRegionStatus) - -ExportSinkSpec = _reflection.GeneratedProtocolMessageType( - "ExportSinkSpec", - (_message.Message,), - { - "DESCRIPTOR": _EXPORTSINKSPEC, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.ExportSinkSpec) - }, -) -_sym_db.RegisterMessage(ExportSinkSpec) - -ExportSink = _reflection.GeneratedProtocolMessageType( - "ExportSink", - (_message.Message,), - { - "DESCRIPTOR": _EXPORTSINK, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.ExportSink) - }, -) -_sym_db.RegisterMessage(ExportSink) - -NamespaceCapacityInfo = _reflection.GeneratedProtocolMessageType( - "NamespaceCapacityInfo", - (_message.Message,), - { - "CapacityModeOptions": _reflection.GeneratedProtocolMessageType( - "CapacityModeOptions", - (_message.Message,), - { - "Provisioned": _reflection.GeneratedProtocolMessageType( - "Provisioned", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACECAPACITYINFO_CAPACITYMODEOPTIONS_PROVISIONED, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions.Provisioned) - }, - ), - "OnDemand": _reflection.GeneratedProtocolMessageType( - "OnDemand", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACECAPACITYINFO_CAPACITYMODEOPTIONS_ONDEMAND, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions.OnDemand) - }, - ), - "DESCRIPTOR": _NAMESPACECAPACITYINFO_CAPACITYMODEOPTIONS, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.CapacityModeOptions) - }, - ), - "Stats": _reflection.GeneratedProtocolMessageType( - "Stats", - (_message.Message,), - { - "Summary": _reflection.GeneratedProtocolMessageType( - "Summary", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACECAPACITYINFO_STATS_SUMMARY, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats.Summary) - }, - ), - "DESCRIPTOR": _NAMESPACECAPACITYINFO_STATS, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats) - }, - ), - "DESCRIPTOR": _NAMESPACECAPACITYINFO, - "__module__": "temporalio.api.cloud.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.namespace.v1.NamespaceCapacityInfo) - }, -) -_sym_db.RegisterMessage(NamespaceCapacityInfo) -_sym_db.RegisterMessage(NamespaceCapacityInfo.CapacityModeOptions) -_sym_db.RegisterMessage(NamespaceCapacityInfo.CapacityModeOptions.Provisioned) -_sym_db.RegisterMessage(NamespaceCapacityInfo.CapacityModeOptions.OnDemand) -_sym_db.RegisterMessage(NamespaceCapacityInfo.Stats) -_sym_db.RegisterMessage(NamespaceCapacityInfo.Stats.Summary) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n"io.temporal.api.cloud.namespace.v1B\014MessageProtoP\001Z/go.temporal.io/api/cloud/namespace/v1;namespace\252\002!Temporalio.Api.Cloud.Namespace.V1\352\002%Temporalio::Api::Cloud::Namespace::V1' diff --git a/temporalio/api/cloud/namespace/v1/message_pb2.pyi b/temporalio/api/cloud/namespace/v1/message_pb2.pyi index b2cbe49d8..b4c50e655 100644 --- a/temporalio/api/cloud/namespace/v1/message_pb2.pyi +++ b/temporalio/api/cloud/namespace/v1/message_pb2.pyi @@ -25,6 +25,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class CertificateFilterSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -58,7 +59,7 @@ class CertificateFilterSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "common_name", b"common_name", "organization", @@ -72,6 +73,7 @@ class CertificateFilterSpec(google.protobuf.message.Message): global___CertificateFilterSpec = CertificateFilterSpec +@typing.final class MtlsAuthSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -92,6 +94,11 @@ class MtlsAuthSpec(google.protobuf.message.Message): This must only be one value, but the CA can have a chain. temporal:versioning:min_version=v0.2.0 """ + enabled: builtins.bool + """Flag to enable mTLS auth (default: disabled). + Note: disabling mTLS auth will cause existing mTLS connections to fail. + temporal:versioning:min_version=v0.2.0 + """ @property def certificate_filters( self, @@ -102,11 +109,7 @@ class MtlsAuthSpec(google.protobuf.message.Message): This allows limiting access to specific end-entity certificates. Optional, default is empty. """ - enabled: builtins.bool - """Flag to enable mTLS auth (default: disabled). - Note: disabling mTLS auth will cause existing mTLS connections to fail. - temporal:versioning:min_version=v0.2.0 - """ + def __init__( self, *, @@ -118,7 +121,7 @@ class MtlsAuthSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "accepted_client_ca", b"accepted_client_ca", "accepted_client_ca_deprecated", @@ -132,6 +135,7 @@ class MtlsAuthSpec(google.protobuf.message.Message): global___MtlsAuthSpec = MtlsAuthSpec +@typing.final class ApiKeyAuthSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -145,12 +149,11 @@ class ApiKeyAuthSpec(google.protobuf.message.Message): *, enabled: builtins.bool = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["enabled", b"enabled"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["enabled", b"enabled"]) -> None: ... global___ApiKeyAuthSpec = ApiKeyAuthSpec +@typing.final class LifecycleSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -164,19 +167,22 @@ class LifecycleSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "enable_delete_protection", b"enable_delete_protection" ], ) -> None: ... global___LifecycleSpec = LifecycleSpec +@typing.final class CodecServerSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class CustomErrorMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ErrorMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -193,16 +199,14 @@ class CodecServerSpec(google.protobuf.message.Message): link: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "link", b"link", "message", b"message" - ], + self, field_name: typing.Literal["link", b"link", "message", b"message"] ) -> None: ... DEFAULT_FIELD_NUMBER: builtins.int @property def default(self) -> global___CodecServerSpec.CustomErrorMessage.ErrorMessage: """The error message to display by default for any remote codec server errors.""" + def __init__( self, *, @@ -210,10 +214,10 @@ class CodecServerSpec(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["default", b"default"] + self, field_name: typing.Literal["default", b"default"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["default", b"default"] + self, field_name: typing.Literal["default", b"default"] ) -> None: ... ENDPOINT_FIELD_NUMBER: builtins.int @@ -231,6 +235,7 @@ class CodecServerSpec(google.protobuf.message.Message): """A custom error message to display for remote codec server errors. temporal:versioning:min_version=v0.5.1 """ + def __init__( self, *, @@ -241,13 +246,11 @@ class CodecServerSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "custom_error_message", b"custom_error_message" - ], + field_name: typing.Literal["custom_error_message", b"custom_error_message"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "custom_error_message", b"custom_error_message", "endpoint", @@ -261,6 +264,7 @@ class CodecServerSpec(google.protobuf.message.Message): global___CodecServerSpec = CodecServerSpec +@typing.final class HighAvailabilitySpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -280,7 +284,7 @@ class HighAvailabilitySpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "disable_managed_failover", b"disable_managed_failover", "disable_passive_poller_forwarding", @@ -290,6 +294,7 @@ class HighAvailabilitySpec(google.protobuf.message.Message): global___HighAvailabilitySpec = HighAvailabilitySpec +@typing.final class ReplicaSpec(google.protobuf.message.Message): """temporal:versioning:min_version=v0.13.0""" @@ -308,12 +313,11 @@ class ReplicaSpec(google.protobuf.message.Message): *, region: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["region", b"region"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["region", b"region"]) -> None: ... global___ReplicaSpec = ReplicaSpec +@typing.final class Replica(google.protobuf.message.Message): """temporal:versioning:min_version=v0.13.0""" @@ -328,7 +332,7 @@ class Replica(google.protobuf.message.Message): Replica._ReplicaState.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor REPLICA_STATE_UNSPECIFIED: Replica._ReplicaState.ValueType # 0 REPLICA_STATE_ADDING: Replica._ReplicaState.ValueType # 1 @@ -373,7 +377,7 @@ class Replica(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "id", b"id", "is_primary", @@ -387,11 +391,13 @@ class Replica(google.protobuf.message.Message): global___Replica = Replica +@typing.final class CapacitySpec(google.protobuf.message.Message): """temporal:versioning:min_version=v0.10.0""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class OnDemand(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -399,6 +405,7 @@ class CapacitySpec(google.protobuf.message.Message): self, ) -> None: ... + @typing.final class Provisioned(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -412,18 +419,18 @@ class CapacitySpec(google.protobuf.message.Message): *, value: builtins.float = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["value", b"value"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... ON_DEMAND_FIELD_NUMBER: builtins.int PROVISIONED_FIELD_NUMBER: builtins.int @property def on_demand(self) -> global___CapacitySpec.OnDemand: """The on-demand capacity mode configuration.""" + @property def provisioned(self) -> global___CapacitySpec.Provisioned: """The provisioned capacity mode configuration.""" + def __init__( self, *, @@ -432,25 +439,27 @@ class CapacitySpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "on_demand", b"on_demand", "provisioned", b"provisioned", "spec", b"spec" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "on_demand", b"on_demand", "provisioned", b"provisioned", "spec", b"spec" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["spec", b"spec"] - ) -> typing_extensions.Literal["on_demand", "provisioned"] | None: ... + self, oneof_group: typing.Literal["spec", b"spec"] + ) -> typing.Literal["on_demand", "provisioned"] | None: ... global___CapacitySpec = CapacitySpec +@typing.final class Capacity(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class OnDemand(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -458,6 +467,7 @@ class Capacity(google.protobuf.message.Message): self, ) -> None: ... + @typing.final class Provisioned(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -472,10 +482,10 @@ class Capacity(google.protobuf.message.Message): current_value: builtins.float = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["current_value", b"current_value"], + self, field_name: typing.Literal["current_value", b"current_value"] ) -> None: ... + @typing.final class Request(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -488,7 +498,7 @@ class Capacity(google.protobuf.message.Message): Capacity.Request._State.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor STATE_CAPACITY_REQUEST_UNSPECIFIED: Capacity.Request._State.ValueType # 0 STATE_CAPACITY_REQUEST_COMPLETED: Capacity.Request._State.ValueType # 1 @@ -508,17 +518,20 @@ class Capacity(google.protobuf.message.Message): SPEC_FIELD_NUMBER: builtins.int state: global___Capacity.Request.State.ValueType """The current state of the capacity request (e.g. in-progress, completed, failed).""" + async_operation_id: builtins.str + """The id of the async operation that is creating/updating/deleting the capacity, if any.""" @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the capacity request was created.""" + @property def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the capacity request was completed or failed.""" - async_operation_id: builtins.str - """The id of the async operation that is creating/updating/deleting the capacity, if any.""" + @property def spec(self) -> global___CapacitySpec: """The requested capacity specification.""" + def __init__( self, *, @@ -530,13 +543,13 @@ class Capacity(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time", b"end_time", "spec", b"spec", "start_time", b"start_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "end_time", @@ -556,12 +569,15 @@ class Capacity(google.protobuf.message.Message): @property def on_demand(self) -> global___Capacity.OnDemand: """The status of on-demand capacity mode.""" + @property def provisioned(self) -> global___Capacity.Provisioned: """The status of provisioned capacity mode.""" + @property def latest_request(self) -> global___Capacity.Request: """The latest requested capacity for the namespace, if any.""" + def __init__( self, *, @@ -571,7 +587,7 @@ class Capacity(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_mode", b"current_mode", "latest_request", @@ -584,7 +600,7 @@ class Capacity(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_mode", b"current_mode", "latest_request", @@ -596,11 +612,12 @@ class Capacity(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["current_mode", b"current_mode"] - ) -> typing_extensions.Literal["on_demand", "provisioned"] | None: ... + self, oneof_group: typing.Literal["current_mode", b"current_mode"] + ) -> typing.Literal["on_demand", "provisioned"] | None: ... global___Capacity = Capacity +@typing.final class FairnessSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -614,13 +631,14 @@ class FairnessSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "task_queue_fairness_enabled", b"task_queue_fairness_enabled" ], ) -> None: ... global___FairnessSpec = FairnessSpec +@typing.final class NamespaceSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -633,7 +651,7 @@ class NamespaceSpec(google.protobuf.message.Message): NamespaceSpec._SearchAttributeType.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED: ( NamespaceSpec._SearchAttributeType.ValueType @@ -662,6 +680,7 @@ class NamespaceSpec(google.protobuf.message.Message): SEARCH_ATTRIBUTE_TYPE_DATETIME: NamespaceSpec.SearchAttributeType.ValueType # 6 SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST: NamespaceSpec.SearchAttributeType.ValueType # 7 + @typing.final class CustomSearchAttributesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -676,10 +695,10 @@ class NamespaceSpec(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class SearchAttributesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -694,8 +713,7 @@ class NamespaceSpec(google.protobuf.message.Message): value: global___NamespaceSpec.SearchAttributeType.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAME_FIELD_NUMBER: builtins.int @@ -717,6 +735,11 @@ class NamespaceSpec(google.protobuf.message.Message): This will create a namespace that's available at '..tmprl.cloud:7233'. The name is immutable. Once set, it cannot be changed. """ + retention_days: builtins.int + """The number of days the workflows data will be retained for. + Changes to the retention period may impact your storage costs. + Any changes to the retention period will be applied to all new running workflows. + """ @property def regions( self, @@ -732,22 +755,20 @@ class NamespaceSpec(google.protobuf.message.Message): Deprecated: Use replicas field instead. temporal:versioning:max_version=v0.15.0 """ - retention_days: builtins.int - """The number of days the workflows data will be retained for. - Changes to the retention period may impact your storage costs. - Any changes to the retention period will be applied to all new running workflows. - """ + @property def mtls_auth(self) -> global___MtlsAuthSpec: """The mTLS auth configuration for the namespace. If unspecified, mTLS will be disabled. """ + @property def api_key_auth(self) -> global___ApiKeyAuthSpec: """The API key auth configuration for the namespace. If unspecified, API keys will be disabled. temporal:versioning:min_version=v0.2.0 """ + @property def custom_search_attributes( self, @@ -760,6 +781,7 @@ class NamespaceSpec(google.protobuf.message.Message): Deprecated: Not supported after v0.3.0 api version. Use search_attributes instead. temporal:versioning:max_version=v0.3.0 """ + @property def search_attributes( self, @@ -773,21 +795,25 @@ class NamespaceSpec(google.protobuf.message.Message): temporal:versioning:min_version=v0.3.0 temporal:enums:replaces=custom_search_attributes """ + @property def codec_server(self) -> global___CodecServerSpec: """Codec server spec used by UI to decode payloads for all users interacting with this namespace. Optional, default is unset. """ + @property def lifecycle(self) -> global___LifecycleSpec: """The lifecycle configuration for the namespace. temporal:versioning:min_version=v0.4.0 """ + @property def high_availability(self) -> global___HighAvailabilitySpec: """The high availability configuration for the namespace. temporal:versioning:min_version=v0.4.0 """ + @property def connectivity_rule_ids( self, @@ -796,6 +822,7 @@ class NamespaceSpec(google.protobuf.message.Message): This will apply the connectivity rules specified to the namespace. temporal:versioning:min_version=v0.6.0 """ + @property def capacity_spec(self) -> global___CapacitySpec: """The capacity configuration for the namespace. @@ -805,6 +832,7 @@ class NamespaceSpec(google.protobuf.message.Message): Can be changed only when the last capacity request is not in progress. temporal:versioning:min_version=v0.10.0 """ + @property def replicas( self, @@ -819,12 +847,14 @@ class NamespaceSpec(google.protobuf.message.Message): If the preferred primary replica ID is not set, the first replica in this replicas list will be the preferred primary. temporal:versioning:min_version=v0.13.0 """ + @property def fairness(self) -> global___FairnessSpec: """The fairness configuration for the namespace. If unspecified, fairness features will be disabled. temporal:versioning:min_version=v0.14.0 """ + def __init__( self, *, @@ -849,7 +879,7 @@ class NamespaceSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "api_key_auth", b"api_key_auth", "capacity_spec", @@ -868,7 +898,7 @@ class NamespaceSpec(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "api_key_auth", b"api_key_auth", "capacity_spec", @@ -902,6 +932,7 @@ class NamespaceSpec(google.protobuf.message.Message): global___NamespaceSpec = NamespaceSpec +@typing.final class Endpoints(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -923,7 +954,7 @@ class Endpoints(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "grpc_address", b"grpc_address", "mtls_grpc_address", @@ -935,6 +966,7 @@ class Endpoints(google.protobuf.message.Message): global___Endpoints = Endpoints +@typing.final class Limits(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -950,13 +982,14 @@ class Limits(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "actions_per_second_limit", b"actions_per_second_limit" ], ) -> None: ... global___Limits = Limits +@typing.final class AWSPrivateLinkInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -967,11 +1000,13 @@ class AWSPrivateLinkInfo(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """The list of principal arns that are allowed to access the namespace on the private link.""" + @property def vpc_endpoint_service_names( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """The list of vpc endpoint service names that are associated with the namespace.""" + def __init__( self, *, @@ -980,7 +1015,7 @@ class AWSPrivateLinkInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "allowed_principal_arns", b"allowed_principal_arns", "vpc_endpoint_service_names", @@ -990,6 +1025,7 @@ class AWSPrivateLinkInfo(google.protobuf.message.Message): global___AWSPrivateLinkInfo = AWSPrivateLinkInfo +@typing.final class PrivateConnectivity(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1002,6 +1038,7 @@ class PrivateConnectivity(google.protobuf.message.Message): """The AWS PrivateLink info. This will only be set for an aws region. """ + def __init__( self, *, @@ -1009,21 +1046,22 @@ class PrivateConnectivity(google.protobuf.message.Message): aws_private_link: global___AWSPrivateLinkInfo | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["aws_private_link", b"aws_private_link"], + self, field_name: typing.Literal["aws_private_link", b"aws_private_link"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "aws_private_link", b"aws_private_link", "region", b"region" ], ) -> None: ... global___PrivateConnectivity = PrivateConnectivity +@typing.final class Namespace(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class RegionStatusEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1039,13 +1077,13 @@ class Namespace(google.protobuf.message.Message): value: global___NamespaceRegionStatus | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class TagsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1060,8 +1098,7 @@ class Namespace(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAMESPACE_FIELD_NUMBER: builtins.int @@ -1087,9 +1124,6 @@ class Namespace(google.protobuf.message.Message): """The current version of the namespace specification. The next update operation will have to include this version. """ - @property - def spec(self) -> global___NamespaceSpec: - """The namespace specification.""" state_deprecated: builtins.str """The current state of the namespace. Deprecated: Not supported after v0.3.0 api version. Use state instead. @@ -1103,14 +1137,20 @@ class Namespace(google.protobuf.message.Message): """ async_operation_id: builtins.str """The id of the async operation that is creating/updating/deleting the namespace, if any.""" + active_region: builtins.str + """The currently active region for the namespace.""" + @property + def spec(self) -> global___NamespaceSpec: + """The namespace specification.""" + @property def endpoints(self) -> global___Endpoints: """The endpoints for the namespace.""" - active_region: builtins.str - """The currently active region for the namespace.""" + @property def limits(self) -> global___Limits: """The limits set on the namespace currently.""" + @property def private_connectivities( self, @@ -1118,14 +1158,17 @@ class Namespace(google.protobuf.message.Message): global___PrivateConnectivity ]: """The private connectivities for the namespace, if any.""" + @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the namespace was created.""" + @property def last_modified_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the namespace was last modified. Will not be set if the namespace has never been modified. """ + @property def region_status( self, @@ -1137,6 +1180,7 @@ class Namespace(google.protobuf.message.Message): deprecated: Use replicas field instead. temporal:versioning:max_version=v0.15.0 """ + @property def connectivity_rules( self, @@ -1144,14 +1188,17 @@ class Namespace(google.protobuf.message.Message): temporalio.api.cloud.connectivityrule.v1.message_pb2.ConnectivityRule ]: """The connectivity rules that are set on this namespace.""" + @property def tags( self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """The tags for the namespace.""" + @property def capacity(self) -> global___Capacity: """The status of namespace's capacity, if any.""" + @property def replicas( self, @@ -1161,6 +1208,7 @@ class Namespace(google.protobuf.message.Message): """The status of each replica where the namespace is available. temporal:versioning:min_version=v0.13.0 """ + def __init__( self, *, @@ -1191,7 +1239,7 @@ class Namespace(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "capacity", b"capacity", "created_time", @@ -1208,7 +1256,7 @@ class Namespace(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "active_region", b"active_region", "async_operation_id", @@ -1248,6 +1296,7 @@ class Namespace(google.protobuf.message.Message): global___Namespace = Namespace +@typing.final class NamespaceRegionStatus(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1260,7 +1309,7 @@ class NamespaceRegionStatus(google.protobuf.message.Message): NamespaceRegionStatus._State.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor STATE_UNSPECIFIED: NamespaceRegionStatus._State.ValueType # 0 STATE_ADDING: NamespaceRegionStatus._State.ValueType # 1 @@ -1313,7 +1362,7 @@ class NamespaceRegionStatus(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "state", @@ -1325,6 +1374,7 @@ class NamespaceRegionStatus(google.protobuf.message.Message): global___NamespaceRegionStatus = NamespaceRegionStatus +@typing.final class ExportSinkSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1339,11 +1389,13 @@ class ExportSinkSpec(google.protobuf.message.Message): @property def s3(self) -> temporalio.api.cloud.sink.v1.message_pb2.S3Spec: """The S3 configuration details when destination_type is S3.""" + @property def gcs(self) -> temporalio.api.cloud.sink.v1.message_pb2.GCSSpec: """This is a feature under development. We will allow GCS sink support for GCP Namespaces. The GCS configuration details when destination_type is GCS. """ + def __init__( self, *, @@ -1353,17 +1405,18 @@ class ExportSinkSpec(google.protobuf.message.Message): gcs: temporalio.api.cloud.sink.v1.message_pb2.GCSSpec | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["gcs", b"gcs", "s3", b"s3"] + self, field_name: typing.Literal["gcs", b"gcs", "s3", b"s3"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "enabled", b"enabled", "gcs", b"gcs", "name", b"name", "s3", b"s3" ], ) -> None: ... global___ExportSinkSpec = ExportSinkSpec +@typing.final class ExportSink(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1376,7 +1429,7 @@ class ExportSink(google.protobuf.message.Message): ExportSink._Health.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor HEALTH_UNSPECIFIED: ExportSink._Health.ValueType # 0 HEALTH_OK: ExportSink._Health.ValueType # 1 @@ -1403,19 +1456,22 @@ class ExportSink(google.protobuf.message.Message): """The version of the export sink resource.""" state: temporalio.api.cloud.resource.v1.message_pb2.ResourceState.ValueType """The current state of the export sink.""" - @property - def spec(self) -> global___ExportSinkSpec: - """The specification details of the export sink.""" health: global___ExportSink.Health.ValueType """The health status of the export sink.""" error_message: builtins.str """An error message describing any issues with the export sink, if applicable.""" + @property + def spec(self) -> global___ExportSinkSpec: + """The specification details of the export sink.""" + @property def latest_data_export_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The timestamp of the latest successful data export.""" + @property def last_health_check_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The timestamp of the last health check performed on the export sink.""" + def __init__( self, *, @@ -1430,7 +1486,7 @@ class ExportSink(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "last_health_check_time", b"last_health_check_time", "latest_data_export_time", @@ -1441,7 +1497,7 @@ class ExportSink(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "error_message", b"error_message", "health", @@ -1463,19 +1519,27 @@ class ExportSink(google.protobuf.message.Message): global___ExportSink = ExportSink +@typing.final class NamespaceCapacityInfo(google.protobuf.message.Message): """NamespaceCapacityInfo contains detailed capacity information for a namespace.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class CapacityModeOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Provisioned(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor VALID_TRU_VALUES_FIELD_NUMBER: builtins.int MAX_AVAILABLE_TRU_VALUE_FIELD_NUMBER: builtins.int + max_available_tru_value: builtins.float + """The maximum TRU value that can currently be set for this namespace. + This may be lower than the highest value in valid_tru_values due to + inventory constraints. + """ @property def valid_tru_values( self, @@ -1485,11 +1549,7 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): """The valid TRU (Temporal Resource Unit) values that can be set. These are the discrete capacity tiers available for selection. """ - max_available_tru_value: builtins.float - """The maximum TRU value that can currently be set for this namespace. - This may be lower than the highest value in valid_tru_values due to - inventory constraints. - """ + def __init__( self, *, @@ -1498,7 +1558,7 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "max_available_tru_value", b"max_available_tru_value", "valid_tru_values", @@ -1506,6 +1566,7 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): ], ) -> None: ... + @typing.final class OnDemand(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1520,7 +1581,7 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): aps_limit: builtins.float = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["aps_limit", b"aps_limit"] + self, field_name: typing.Literal["aps_limit", b"aps_limit"] ) -> None: ... PROVISIONED_FIELD_NUMBER: builtins.int @@ -1530,11 +1591,13 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): self, ) -> global___NamespaceCapacityInfo.CapacityModeOptions.Provisioned: """Provisioned capacity options and entitlements.""" + @property def on_demand( self, ) -> global___NamespaceCapacityInfo.CapacityModeOptions.OnDemand: """On-Demand capacity information.""" + def __init__( self, *, @@ -1545,20 +1608,22 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "on_demand", b"on_demand", "provisioned", b"provisioned" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "on_demand", b"on_demand", "provisioned", b"provisioned" ], ) -> None: ... + @typing.final class Stats(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Summary(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1577,7 +1642,7 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "mean", b"mean", "p90", b"p90", "p99", b"p99" ], ) -> None: ... @@ -1586,17 +1651,16 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): @property def aps(self) -> global___NamespaceCapacityInfo.Stats.Summary: """Actions-per-second measurements summarized over the last 7 days.""" + def __init__( self, *, aps: global___NamespaceCapacityInfo.Stats.Summary | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["aps", b"aps"] + self, field_name: typing.Literal["aps", b"aps"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["aps", b"aps"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["aps", b"aps"]) -> None: ... NAMESPACE_FIELD_NUMBER: builtins.int HAS_LEGACY_LIMITS_FIELD_NUMBER: builtins.int @@ -1614,16 +1678,19 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): """The current capacity of the namespace. Includes the current mode (on-demand or provisioned) and latest request status. """ + @property def mode_options(self) -> global___NamespaceCapacityInfo.CapacityModeOptions: """Available capacity mode options for this namespace. Contains configuration limits for both provisioned and on-demand modes. """ + @property def stats(self) -> global___NamespaceCapacityInfo.Stats: """Usage statistics for the namespace over the last 7 days. Used to calculate On-Demand capacity limits, also useful for capacity planning. """ + def __init__( self, *, @@ -1635,7 +1702,7 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_capacity", b"current_capacity", "mode_options", @@ -1646,7 +1713,7 @@ class NamespaceCapacityInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_capacity", b"current_capacity", "has_legacy_limits", diff --git a/temporalio/api/cloud/nexus/v1/message_pb2.py b/temporalio/api/cloud/nexus/v1/message_pb2.py index f34cac2cc..a723637d7 100644 --- a/temporalio/api/cloud/nexus/v1/message_pb2.py +++ b/temporalio/api/cloud/nexus/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -27,81 +26,8 @@ b'\n)temporal/api/cloud/nexus/v1/message.proto\x12\x1btemporal.api.cloud.nexus.v1\x1a$temporal/api/common/v1/message.proto\x1a,temporal/api/cloud/resource/v1/message.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x83\x02\n\x0c\x45ndpointSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x44\n\x0btarget_spec\x18\x02 \x01(\x0b\x32/.temporal.api.cloud.nexus.v1.EndpointTargetSpec\x12\x45\n\x0cpolicy_specs\x18\x03 \x03(\x0b\x32/.temporal.api.cloud.nexus.v1.EndpointPolicySpec\x12"\n\x16\x64\x65scription_deprecated\x18\x04 \x01(\tB\x02\x18\x01\x12\x34\n\x0b\x64\x65scription\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"l\n\x12\x45ndpointTargetSpec\x12K\n\x12worker_target_spec\x18\x01 \x01(\x0b\x32-.temporal.api.cloud.nexus.v1.WorkerTargetSpecH\x00\x42\t\n\x07variant"<\n\x10WorkerTargetSpec\x12\x14\n\x0cnamespace_id\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t"\x8c\x01\n\x12\x45ndpointPolicySpec\x12k\n#allowed_cloud_namespace_policy_spec\x18\x01 \x01(\x0b\x32<.temporal.api.cloud.nexus.v1.AllowedCloudNamespacePolicySpecH\x00\x42\t\n\x07variant"7\n\x1f\x41llowedCloudNamespacePolicySpec\x12\x14\n\x0cnamespace_id\x18\x01 \x01(\t"\xad\x02\n\x08\x45ndpoint\x12\n\n\x02id\x18\x01 \x01(\t\x12\x18\n\x10resource_version\x18\x02 \x01(\t\x12\x37\n\x04spec\x18\x03 \x01(\x0b\x32).temporal.api.cloud.nexus.v1.EndpointSpec\x12<\n\x05state\x18\x04 \x01(\x0e\x32-.temporal.api.cloud.resource.v1.ResourceState\x12\x1a\n\x12\x61sync_operation_id\x18\x05 \x01(\t\x12\x30\n\x0c\x63reated_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x9d\x01\n\x1eio.temporal.api.cloud.nexus.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/cloud/nexus/v1;nexus\xaa\x02\x1dTemporalio.Api.Cloud.Nexus.V1\xea\x02!Temporalio::Api::Cloud::Nexus::V1b\x06proto3' ) - -_ENDPOINTSPEC = DESCRIPTOR.message_types_by_name["EndpointSpec"] -_ENDPOINTTARGETSPEC = DESCRIPTOR.message_types_by_name["EndpointTargetSpec"] -_WORKERTARGETSPEC = DESCRIPTOR.message_types_by_name["WorkerTargetSpec"] -_ENDPOINTPOLICYSPEC = DESCRIPTOR.message_types_by_name["EndpointPolicySpec"] -_ALLOWEDCLOUDNAMESPACEPOLICYSPEC = DESCRIPTOR.message_types_by_name[ - "AllowedCloudNamespacePolicySpec" -] -_ENDPOINT = DESCRIPTOR.message_types_by_name["Endpoint"] -EndpointSpec = _reflection.GeneratedProtocolMessageType( - "EndpointSpec", - (_message.Message,), - { - "DESCRIPTOR": _ENDPOINTSPEC, - "__module__": "temporalio.api.cloud.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.nexus.v1.EndpointSpec) - }, -) -_sym_db.RegisterMessage(EndpointSpec) - -EndpointTargetSpec = _reflection.GeneratedProtocolMessageType( - "EndpointTargetSpec", - (_message.Message,), - { - "DESCRIPTOR": _ENDPOINTTARGETSPEC, - "__module__": "temporalio.api.cloud.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.nexus.v1.EndpointTargetSpec) - }, -) -_sym_db.RegisterMessage(EndpointTargetSpec) - -WorkerTargetSpec = _reflection.GeneratedProtocolMessageType( - "WorkerTargetSpec", - (_message.Message,), - { - "DESCRIPTOR": _WORKERTARGETSPEC, - "__module__": "temporalio.api.cloud.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.nexus.v1.WorkerTargetSpec) - }, -) -_sym_db.RegisterMessage(WorkerTargetSpec) - -EndpointPolicySpec = _reflection.GeneratedProtocolMessageType( - "EndpointPolicySpec", - (_message.Message,), - { - "DESCRIPTOR": _ENDPOINTPOLICYSPEC, - "__module__": "temporalio.api.cloud.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.nexus.v1.EndpointPolicySpec) - }, -) -_sym_db.RegisterMessage(EndpointPolicySpec) - -AllowedCloudNamespacePolicySpec = _reflection.GeneratedProtocolMessageType( - "AllowedCloudNamespacePolicySpec", - (_message.Message,), - { - "DESCRIPTOR": _ALLOWEDCLOUDNAMESPACEPOLICYSPEC, - "__module__": "temporalio.api.cloud.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.nexus.v1.AllowedCloudNamespacePolicySpec) - }, -) -_sym_db.RegisterMessage(AllowedCloudNamespacePolicySpec) - -Endpoint = _reflection.GeneratedProtocolMessageType( - "Endpoint", - (_message.Message,), - { - "DESCRIPTOR": _ENDPOINT, - "__module__": "temporalio.api.cloud.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.nexus.v1.Endpoint) - }, -) -_sym_db.RegisterMessage(Endpoint) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\036io.temporal.api.cloud.nexus.v1B\014MessageProtoP\001Z'go.temporal.io/api/cloud/nexus/v1;nexus\252\002\035Temporalio.Api.Cloud.Nexus.V1\352\002!Temporalio::Api::Cloud::Nexus::V1" diff --git a/temporalio/api/cloud/nexus/v1/message_pb2.pyi b/temporalio/api/cloud/nexus/v1/message_pb2.pyi index 5ec14c3ac..080013f25 100644 --- a/temporalio/api/cloud/nexus/v1/message_pb2.pyi +++ b/temporalio/api/cloud/nexus/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers @@ -15,13 +15,9 @@ import google.protobuf.timestamp_pb2 import temporalio.api.cloud.resource.v1.message_pb2 import temporalio.api.common.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class EndpointSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -35,9 +31,14 @@ class EndpointSpec(google.protobuf.message.Message): The name must match `^[a-zA-Z][a-zA-Z0-9\\-]*[a-zA-Z0-9]$`. This field is mutable. """ + description_deprecated: builtins.str + """Deprecated: Not supported after v0.4.0 api version. Use description instead. + temporal:versioning:max_version=v0.4.0 + """ @property def target_spec(self) -> global___EndpointTargetSpec: """Indicates where the endpoint should forward received nexus requests to.""" + @property def policy_specs( self, @@ -48,15 +49,13 @@ class EndpointSpec(google.protobuf.message.Message): must match with at least one of the specs to be accepted by the endpoint. This field is mutable. """ - description_deprecated: builtins.str - """Deprecated: Not supported after v0.4.0 api version. Use description instead. - temporal:versioning:max_version=v0.4.0 - """ + @property def description(self) -> temporalio.api.common.v1.message_pb2.Payload: """The markdown description of the endpoint - optional. temporal:versioning:min_version=v0.4.0 """ + def __init__( self, *, @@ -69,13 +68,13 @@ class EndpointSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "target_spec", b"target_spec" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "description_deprecated", @@ -91,6 +90,7 @@ class EndpointSpec(google.protobuf.message.Message): global___EndpointSpec = EndpointSpec +@typing.final class EndpointTargetSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -98,6 +98,7 @@ class EndpointTargetSpec(google.protobuf.message.Message): @property def worker_target_spec(self) -> global___WorkerTargetSpec: """A target spec for routing nexus requests to a specific cloud namespace worker.""" + def __init__( self, *, @@ -105,22 +106,23 @@ class EndpointTargetSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "variant", b"variant", "worker_target_spec", b"worker_target_spec" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "variant", b"variant", "worker_target_spec", b"worker_target_spec" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["worker_target_spec"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["worker_target_spec"] | None: ... global___EndpointTargetSpec = EndpointTargetSpec +@typing.final class WorkerTargetSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -138,13 +140,14 @@ class WorkerTargetSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace_id", b"namespace_id", "task_queue", b"task_queue" ], ) -> None: ... global___WorkerTargetSpec = WorkerTargetSpec +@typing.final class EndpointPolicySpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -154,6 +157,7 @@ class EndpointPolicySpec(google.protobuf.message.Message): self, ) -> global___AllowedCloudNamespacePolicySpec: """A policy spec that allows one caller namespace to access the endpoint.""" + def __init__( self, *, @@ -162,7 +166,7 @@ class EndpointPolicySpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "allowed_cloud_namespace_policy_spec", b"allowed_cloud_namespace_policy_spec", "variant", @@ -171,7 +175,7 @@ class EndpointPolicySpec(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "allowed_cloud_namespace_policy_spec", b"allowed_cloud_namespace_policy_spec", "variant", @@ -179,11 +183,12 @@ class EndpointPolicySpec(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["allowed_cloud_namespace_policy_spec"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["allowed_cloud_namespace_policy_spec"] | None: ... global___EndpointPolicySpec = EndpointPolicySpec +@typing.final class AllowedCloudNamespacePolicySpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -196,11 +201,12 @@ class AllowedCloudNamespacePolicySpec(google.protobuf.message.Message): namespace_id: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["namespace_id", b"namespace_id"] + self, field_name: typing.Literal["namespace_id", b"namespace_id"] ) -> None: ... global___AllowedCloudNamespacePolicySpec = AllowedCloudNamespacePolicySpec +@typing.final class Endpoint(google.protobuf.message.Message): """An endpoint that receives and then routes Nexus requests""" @@ -219,21 +225,24 @@ class Endpoint(google.protobuf.message.Message): """The current version of the endpoint specification. The next update operation must include this version. """ - @property - def spec(self) -> global___EndpointSpec: - """The endpoint specification.""" state: temporalio.api.cloud.resource.v1.message_pb2.ResourceState.ValueType """The current state of the endpoint. For any failed state, reach out to Temporal Cloud support for remediation. """ async_operation_id: builtins.str """The id of any ongoing async operation that is creating, updating, or deleting the endpoint, if any.""" + @property + def spec(self) -> global___EndpointSpec: + """The endpoint specification.""" + @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the endpoint was created.""" + @property def last_modified_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the endpoint was last modified.""" + def __init__( self, *, @@ -247,7 +256,7 @@ class Endpoint(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "last_modified_time", @@ -258,7 +267,7 @@ class Endpoint(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_operation_id", b"async_operation_id", "created_time", diff --git a/temporalio/api/cloud/operation/v1/message_pb2.py b/temporalio/api/cloud/operation/v1/message_pb2.py index 8d4664ed5..79d6d8efd 100644 --- a/temporalio/api/cloud/operation/v1/message_pb2.py +++ b/temporalio/api/cloud/operation/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -22,20 +21,8 @@ b'\n-temporal/api/cloud/operation/v1/message.proto\x12\x1ftemporal.api.cloud.operation.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19google/protobuf/any.proto"\x92\x04\n\x0e\x41syncOperation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x10state_deprecated\x18\x02 \x01(\tB\x02\x18\x01\x12\x44\n\x05state\x18\t \x01(\x0e\x32\x35.temporal.api.cloud.operation.v1.AsyncOperation.State\x12\x31\n\x0e\x63heck_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0eoperation_type\x18\x04 \x01(\t\x12-\n\x0foperation_input\x18\x05 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x16\n\x0e\x66\x61ilure_reason\x18\x06 \x01(\t\x12\x30\n\x0cstarted_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rfinished_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x98\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x11\n\rSTATE_PENDING\x10\x01\x12\x15\n\x11STATE_IN_PROGRESS\x10\x02\x12\x10\n\x0cSTATE_FAILED\x10\x03\x12\x13\n\x0fSTATE_CANCELLED\x10\x04\x12\x13\n\x0fSTATE_FULFILLED\x10\x05\x12\x12\n\x0eSTATE_REJECTED\x10\x06\x42\xb1\x01\n"io.temporal.api.cloud.operation.v1B\x0cMessageProtoP\x01Z/go.temporal.io/api/cloud/operation/v1;operation\xaa\x02!Temporalio.Api.Cloud.Operation.V1\xea\x02%Temporalio::Api::Cloud::Operation::V1b\x06proto3' ) - -_ASYNCOPERATION = DESCRIPTOR.message_types_by_name["AsyncOperation"] -_ASYNCOPERATION_STATE = _ASYNCOPERATION.enum_types_by_name["State"] -AsyncOperation = _reflection.GeneratedProtocolMessageType( - "AsyncOperation", - (_message.Message,), - { - "DESCRIPTOR": _ASYNCOPERATION, - "__module__": "temporalio.api.cloud.operation.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.operation.v1.AsyncOperation) - }, -) -_sym_db.RegisterMessage(AsyncOperation) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n"io.temporal.api.cloud.operation.v1B\014MessageProtoP\001Z/go.temporal.io/api/cloud/operation/v1;operation\252\002!Temporalio.Api.Cloud.Operation.V1\352\002%Temporalio::Api::Cloud::Operation::V1' diff --git a/temporalio/api/cloud/operation/v1/message_pb2.pyi b/temporalio/api/cloud/operation/v1/message_pb2.pyi index 4e9346d96..3f9917ce7 100644 --- a/temporalio/api/cloud/operation/v1/message_pb2.pyi +++ b/temporalio/api/cloud/operation/v1/message_pb2.pyi @@ -21,6 +21,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AsyncOperation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -33,7 +34,7 @@ class AsyncOperation(google.protobuf.message.Message): AsyncOperation._State.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor STATE_UNSPECIFIED: AsyncOperation._State.ValueType # 0 STATE_PENDING: AsyncOperation._State.ValueType # 1 @@ -86,25 +87,29 @@ class AsyncOperation(google.protobuf.message.Message): temporal:versioning:min_version=v0.3.0 temporal:enums:replaces=state_deprecated """ + operation_type: builtins.str + """The type of operation being performed.""" + failure_reason: builtins.str + """If the operation failed, the reason for the failure.""" @property def check_duration(self) -> google.protobuf.duration_pb2.Duration: """The recommended duration to check back for an update in the operation's state.""" - operation_type: builtins.str - """The type of operation being performed.""" + @property def operation_input(self) -> google.protobuf.any_pb2.Any: """The input to the operation being performed. (-- api-linter: core::0146::any=disabled --) """ - failure_reason: builtins.str - """If the operation failed, the reason for the failure.""" + @property def started_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the operation initiated.""" + @property def finished_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the operation completed.""" + def __init__( self, *, @@ -120,7 +125,7 @@ class AsyncOperation(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "check_duration", b"check_duration", "finished_time", @@ -133,7 +138,7 @@ class AsyncOperation(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "check_duration", b"check_duration", "failure_reason", diff --git a/temporalio/api/cloud/region/v1/message_pb2.py b/temporalio/api/cloud/region/v1/message_pb2.py index 17a5461a8..56fc78f4d 100644 --- a/temporalio/api/cloud/region/v1/message_pb2.py +++ b/temporalio/api/cloud/region/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -18,20 +17,8 @@ b'\n*temporal/api/cloud/region/v1/message.proto\x12\x1ctemporal.api.cloud.region.v1"\x99\x02\n\x06Region\x12\n\n\x02id\x18\x01 \x01(\t\x12%\n\x19\x63loud_provider_deprecated\x18\x02 \x01(\tB\x02\x18\x01\x12J\n\x0e\x63loud_provider\x18\x05 \x01(\x0e\x32\x32.temporal.api.cloud.region.v1.Region.CloudProvider\x12\x1d\n\x15\x63loud_provider_region\x18\x03 \x01(\t\x12\x10\n\x08location\x18\x04 \x01(\t"_\n\rCloudProvider\x12\x1e\n\x1a\x43LOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43LOUD_PROVIDER_AWS\x10\x01\x12\x16\n\x12\x43LOUD_PROVIDER_GCP\x10\x02\x42\xa2\x01\n\x1fio.temporal.api.cloud.region.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/cloud/region/v1;region\xaa\x02\x1eTemporalio.Api.Cloud.Region.V1\xea\x02"Temporalio::Api::Cloud::Region::V1b\x06proto3' ) - -_REGION = DESCRIPTOR.message_types_by_name["Region"] -_REGION_CLOUDPROVIDER = _REGION.enum_types_by_name["CloudProvider"] -Region = _reflection.GeneratedProtocolMessageType( - "Region", - (_message.Message,), - { - "DESCRIPTOR": _REGION, - "__module__": "temporalio.api.cloud.region.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.region.v1.Region) - }, -) -_sym_db.RegisterMessage(Region) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\037io.temporal.api.cloud.region.v1B\014MessageProtoP\001Z)go.temporal.io/api/cloud/region/v1;region\252\002\036Temporalio.Api.Cloud.Region.V1\352\002"Temporalio::Api::Cloud::Region::V1' diff --git a/temporalio/api/cloud/region/v1/message_pb2.pyi b/temporalio/api/cloud/region/v1/message_pb2.pyi index 69718ad18..1c4e1cba5 100644 --- a/temporalio/api/cloud/region/v1/message_pb2.pyi +++ b/temporalio/api/cloud/region/v1/message_pb2.pyi @@ -18,6 +18,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class Region(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -30,7 +31,7 @@ class Region(google.protobuf.message.Message): Region._CloudProvider.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CLOUD_PROVIDER_UNSPECIFIED: Region._CloudProvider.ValueType # 0 CLOUD_PROVIDER_AWS: Region._CloudProvider.ValueType # 1 @@ -76,7 +77,7 @@ class Region(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cloud_provider", b"cloud_provider", "cloud_provider_deprecated", diff --git a/temporalio/api/cloud/resource/v1/message_pb2.py b/temporalio/api/cloud/resource/v1/message_pb2.py index 88e7a7daa..33f18ef73 100644 --- a/temporalio/api/cloud/resource/v1/message_pb2.py +++ b/temporalio/api/cloud/resource/v1/message_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -19,21 +17,8 @@ b"\n,temporal/api/cloud/resource/v1/message.proto\x12\x1etemporal.api.cloud.resource.v1*\xe3\x02\n\rResourceState\x12\x1e\n\x1aRESOURCE_STATE_UNSPECIFIED\x10\x00\x12\x1d\n\x19RESOURCE_STATE_ACTIVATING\x10\x01\x12$\n RESOURCE_STATE_ACTIVATION_FAILED\x10\x02\x12\x19\n\x15RESOURCE_STATE_ACTIVE\x10\x03\x12\x1b\n\x17RESOURCE_STATE_UPDATING\x10\x04\x12 \n\x1cRESOURCE_STATE_UPDATE_FAILED\x10\x05\x12\x1b\n\x17RESOURCE_STATE_DELETING\x10\x06\x12 \n\x1cRESOURCE_STATE_DELETE_FAILED\x10\x07\x12\x1a\n\x16RESOURCE_STATE_DELETED\x10\x08\x12\x1c\n\x18RESOURCE_STATE_SUSPENDED\x10\t\x12\x1a\n\x16RESOURCE_STATE_EXPIRED\x10\nB\xac\x01\n!io.temporal.api.cloud.resource.v1B\x0cMessageProtoP\x01Z-go.temporal.io/api/cloud/resource/v1;resource\xaa\x02 Temporalio.Api.Cloud.Resource.V1\xea\x02$Temporalio::Api::Cloud::Resource::V1b\x06proto3" ) -_RESOURCESTATE = DESCRIPTOR.enum_types_by_name["ResourceState"] -ResourceState = enum_type_wrapper.EnumTypeWrapper(_RESOURCESTATE) -RESOURCE_STATE_UNSPECIFIED = 0 -RESOURCE_STATE_ACTIVATING = 1 -RESOURCE_STATE_ACTIVATION_FAILED = 2 -RESOURCE_STATE_ACTIVE = 3 -RESOURCE_STATE_UPDATING = 4 -RESOURCE_STATE_UPDATE_FAILED = 5 -RESOURCE_STATE_DELETING = 6 -RESOURCE_STATE_DELETE_FAILED = 7 -RESOURCE_STATE_DELETED = 8 -RESOURCE_STATE_SUSPENDED = 9 -RESOURCE_STATE_EXPIRED = 10 - - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n!io.temporal.api.cloud.resource.v1B\014MessageProtoP\001Z-go.temporal.io/api/cloud/resource/v1;resource\252\002 Temporalio.Api.Cloud.Resource.V1\352\002$Temporalio::Api::Cloud::Resource::V1" diff --git a/temporalio/api/cloud/resource/v1/message_pb2.pyi b/temporalio/api/cloud/resource/v1/message_pb2.pyi index 28f76e202..2a880b427 100644 --- a/temporalio/api/cloud/resource/v1/message_pb2.pyi +++ b/temporalio/api/cloud/resource/v1/message_pb2.pyi @@ -26,7 +26,7 @@ class _ResourceStateEnumTypeWrapper( _ResourceState.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor RESOURCE_STATE_UNSPECIFIED: _ResourceState.ValueType # 0 RESOURCE_STATE_ACTIVATING: _ResourceState.ValueType # 1 diff --git a/temporalio/api/cloud/sink/v1/message_pb2.py b/temporalio/api/cloud/sink/v1/message_pb2.py index ef22569f1..d5177bcc4 100644 --- a/temporalio/api/cloud/sink/v1/message_pb2.py +++ b/temporalio/api/cloud/sink/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -18,55 +17,8 @@ b'\n(temporal/api/cloud/sink/v1/message.proto\x12\x1atemporal.api.cloud.sink.v1"i\n\x06S3Spec\x12\x11\n\trole_name\x18\x01 \x01(\t\x12\x13\n\x0b\x62ucket_name\x18\x02 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x0f\n\x07kms_arn\x18\x04 \x01(\t\x12\x16\n\x0e\x61ws_account_id\x18\x05 \x01(\t"U\n\x07GCSSpec\x12\r\n\x05sa_id\x18\x01 \x01(\t\x12\x13\n\x0b\x62ucket_name\x18\x02 \x01(\t\x12\x16\n\x0egcp_project_id\x18\x03 \x01(\t\x12\x0e\n\x06region\x18\x04 \x01(\t"I\n\x0bKinesisSpec\x12\x11\n\trole_name\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65stination_uri\x18\x02 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t"T\n\nPubSubSpec\x12\x1a\n\x12service_account_id\x18\x01 \x01(\t\x12\x12\n\ntopic_name\x18\x02 \x01(\t\x12\x16\n\x0egcp_project_id\x18\x03 \x01(\tB\x98\x01\n\x1dio.temporal.api.cloud.sink.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/cloud/sink/v1;sink\xaa\x02\x1cTemporalio.Api.Cloud.Sink.V1\xea\x02 Temporalio::Api::Cloud::Sink::V1b\x06proto3' ) - -_S3SPEC = DESCRIPTOR.message_types_by_name["S3Spec"] -_GCSSPEC = DESCRIPTOR.message_types_by_name["GCSSpec"] -_KINESISSPEC = DESCRIPTOR.message_types_by_name["KinesisSpec"] -_PUBSUBSPEC = DESCRIPTOR.message_types_by_name["PubSubSpec"] -S3Spec = _reflection.GeneratedProtocolMessageType( - "S3Spec", - (_message.Message,), - { - "DESCRIPTOR": _S3SPEC, - "__module__": "temporalio.api.cloud.sink.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.sink.v1.S3Spec) - }, -) -_sym_db.RegisterMessage(S3Spec) - -GCSSpec = _reflection.GeneratedProtocolMessageType( - "GCSSpec", - (_message.Message,), - { - "DESCRIPTOR": _GCSSPEC, - "__module__": "temporalio.api.cloud.sink.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.sink.v1.GCSSpec) - }, -) -_sym_db.RegisterMessage(GCSSpec) - -KinesisSpec = _reflection.GeneratedProtocolMessageType( - "KinesisSpec", - (_message.Message,), - { - "DESCRIPTOR": _KINESISSPEC, - "__module__": "temporalio.api.cloud.sink.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.sink.v1.KinesisSpec) - }, -) -_sym_db.RegisterMessage(KinesisSpec) - -PubSubSpec = _reflection.GeneratedProtocolMessageType( - "PubSubSpec", - (_message.Message,), - { - "DESCRIPTOR": _PUBSUBSPEC, - "__module__": "temporalio.api.cloud.sink.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.sink.v1.PubSubSpec) - }, -) -_sym_db.RegisterMessage(PubSubSpec) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\035io.temporal.api.cloud.sink.v1B\014MessageProtoP\001Z%go.temporal.io/api/cloud/sink/v1;sink\252\002\034Temporalio.Api.Cloud.Sink.V1\352\002 Temporalio::Api::Cloud::Sink::V1" diff --git a/temporalio/api/cloud/sink/v1/message_pb2.pyi b/temporalio/api/cloud/sink/v1/message_pb2.pyi index 30e6ff099..1545a9e29 100644 --- a/temporalio/api/cloud/sink/v1/message_pb2.pyi +++ b/temporalio/api/cloud/sink/v1/message_pb2.pyi @@ -4,18 +4,14 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class S3Spec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -45,7 +41,7 @@ class S3Spec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "aws_account_id", b"aws_account_id", "bucket_name", @@ -61,6 +57,7 @@ class S3Spec(google.protobuf.message.Message): global___S3Spec = S3Spec +@typing.final class GCSSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -86,7 +83,7 @@ class GCSSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "bucket_name", b"bucket_name", "gcp_project_id", @@ -100,6 +97,7 @@ class GCSSpec(google.protobuf.message.Message): global___GCSSpec = GCSSpec +@typing.final class KinesisSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -121,7 +119,7 @@ class KinesisSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "destination_uri", b"destination_uri", "region", @@ -133,6 +131,7 @@ class KinesisSpec(google.protobuf.message.Message): global___KinesisSpec = KinesisSpec +@typing.final class PubSubSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -154,7 +153,7 @@ class PubSubSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "gcp_project_id", b"gcp_project_id", "service_account_id", diff --git a/temporalio/api/cloud/usage/v1/message_pb2.py b/temporalio/api/cloud/usage/v1/message_pb2.py index 84b635bba..b312a611c 100644 --- a/temporalio/api/cloud/usage/v1/message_pb2.py +++ b/temporalio/api/cloud/usage/v1/message_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -21,71 +19,8 @@ b"\n)temporal/api/cloud/usage/v1/message.proto\x12\x1btemporal.api.cloud.usage.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbc\x01\n\x07Summary\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\rrecord_groups\x18\x03 \x03(\x0b\x32(.temporal.api.cloud.usage.v1.RecordGroup\x12\x12\n\nincomplete\x18\x04 \x01(\x08\"|\n\x0bRecordGroup\x12\x37\n\tgroup_bys\x18\x01 \x03(\x0b\x32$.temporal.api.cloud.usage.v1.GroupBy\x12\x34\n\x07records\x18\x02 \x03(\x0b\x32#.temporal.api.cloud.usage.v1.Record\"N\n\x07GroupBy\x12\x34\n\x03key\x18\x01 \x01(\x0e\x32'.temporal.api.cloud.usage.v1.GroupByKey\x12\r\n\x05value\x18\x02 \x01(\t\"\x85\x01\n\x06Record\x12\x35\n\x04type\x18\x01 \x01(\x0e\x32'.temporal.api.cloud.usage.v1.RecordType\x12\x35\n\x04unit\x18\x02 \x01(\x0e\x32'.temporal.api.cloud.usage.v1.RecordUnit\x12\r\n\x05value\x18\x03 \x01(\x01*\x84\x01\n\nRecordType\x12\x1b\n\x17RECORD_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13RECORD_TYPE_ACTIONS\x10\x01\x12\x1e\n\x1aRECORD_TYPE_ACTIVE_STORAGE\x10\x02\x12 \n\x1cRECORD_TYPE_RETAINED_STORAGE\x10\x03*_\n\nRecordUnit\x12\x1b\n\x17RECORD_UNIT_UNSPECIFIED\x10\x00\x12\x16\n\x12RECORD_UNIT_NUMBER\x10\x01\x12\x1c\n\x18RECORD_UNIT_BYTE_SECONDS\x10\x02*F\n\nGroupByKey\x12\x1c\n\x18GROUP_BY_KEY_UNSPECIFIED\x10\x00\x12\x1a\n\x16GROUP_BY_KEY_NAMESPACE\x10\x01\x42\x9d\x01\n\x1eio.temporal.api.cloud.usage.v1B\x0cMessageProtoP\x01Z'go.temporal.io/api/cloud/usage/v1;usage\xaa\x02\x1dTemporalio.Api.Cloud.Usage.V1\xea\x02!Temporalio::Api::Cloud::Usage::V1b\x06proto3" ) -_RECORDTYPE = DESCRIPTOR.enum_types_by_name["RecordType"] -RecordType = enum_type_wrapper.EnumTypeWrapper(_RECORDTYPE) -_RECORDUNIT = DESCRIPTOR.enum_types_by_name["RecordUnit"] -RecordUnit = enum_type_wrapper.EnumTypeWrapper(_RECORDUNIT) -_GROUPBYKEY = DESCRIPTOR.enum_types_by_name["GroupByKey"] -GroupByKey = enum_type_wrapper.EnumTypeWrapper(_GROUPBYKEY) -RECORD_TYPE_UNSPECIFIED = 0 -RECORD_TYPE_ACTIONS = 1 -RECORD_TYPE_ACTIVE_STORAGE = 2 -RECORD_TYPE_RETAINED_STORAGE = 3 -RECORD_UNIT_UNSPECIFIED = 0 -RECORD_UNIT_NUMBER = 1 -RECORD_UNIT_BYTE_SECONDS = 2 -GROUP_BY_KEY_UNSPECIFIED = 0 -GROUP_BY_KEY_NAMESPACE = 1 - - -_SUMMARY = DESCRIPTOR.message_types_by_name["Summary"] -_RECORDGROUP = DESCRIPTOR.message_types_by_name["RecordGroup"] -_GROUPBY = DESCRIPTOR.message_types_by_name["GroupBy"] -_RECORD = DESCRIPTOR.message_types_by_name["Record"] -Summary = _reflection.GeneratedProtocolMessageType( - "Summary", - (_message.Message,), - { - "DESCRIPTOR": _SUMMARY, - "__module__": "temporalio.api.cloud.usage.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.usage.v1.Summary) - }, -) -_sym_db.RegisterMessage(Summary) - -RecordGroup = _reflection.GeneratedProtocolMessageType( - "RecordGroup", - (_message.Message,), - { - "DESCRIPTOR": _RECORDGROUP, - "__module__": "temporalio.api.cloud.usage.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.usage.v1.RecordGroup) - }, -) -_sym_db.RegisterMessage(RecordGroup) - -GroupBy = _reflection.GeneratedProtocolMessageType( - "GroupBy", - (_message.Message,), - { - "DESCRIPTOR": _GROUPBY, - "__module__": "temporalio.api.cloud.usage.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.usage.v1.GroupBy) - }, -) -_sym_db.RegisterMessage(GroupBy) - -Record = _reflection.GeneratedProtocolMessageType( - "Record", - (_message.Message,), - { - "DESCRIPTOR": _RECORD, - "__module__": "temporalio.api.cloud.usage.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.cloud.usage.v1.Record) - }, -) -_sym_db.RegisterMessage(Record) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\036io.temporal.api.cloud.usage.v1B\014MessageProtoP\001Z'go.temporal.io/api/cloud/usage/v1;usage\252\002\035Temporalio.Api.Cloud.Usage.V1\352\002!Temporalio::Api::Cloud::Usage::V1" diff --git a/temporalio/api/cloud/usage/v1/message_pb2.pyi b/temporalio/api/cloud/usage/v1/message_pb2.pyi index 8ffdc1189..e5db0c90d 100644 --- a/temporalio/api/cloud/usage/v1/message_pb2.pyi +++ b/temporalio/api/cloud/usage/v1/message_pb2.pyi @@ -28,7 +28,7 @@ class _RecordType: class _RecordTypeEnumTypeWrapper( google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RecordType.ValueType], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor RECORD_TYPE_UNSPECIFIED: _RecordType.ValueType # 0 RECORD_TYPE_ACTIONS: _RecordType.ValueType # 1 @@ -50,7 +50,7 @@ class _RecordUnit: class _RecordUnitEnumTypeWrapper( google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RecordUnit.ValueType], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor RECORD_UNIT_UNSPECIFIED: _RecordUnit.ValueType # 0 RECORD_UNIT_NUMBER: _RecordUnit.ValueType # 1 @@ -70,7 +70,7 @@ class _GroupByKey: class _GroupByKeyEnumTypeWrapper( google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_GroupByKey.ValueType], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor GROUP_BY_KEY_UNSPECIFIED: _GroupByKey.ValueType # 0 GROUP_BY_KEY_NAMESPACE: _GroupByKey.ValueType # 1 @@ -81,6 +81,7 @@ GROUP_BY_KEY_UNSPECIFIED: GroupByKey.ValueType # 0 GROUP_BY_KEY_NAMESPACE: GroupByKey.ValueType # 1 global___GroupByKey = GroupByKey +@typing.final class Summary(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -88,12 +89,18 @@ class Summary(google.protobuf.message.Message): END_TIME_FIELD_NUMBER: builtins.int RECORD_GROUPS_FIELD_NUMBER: builtins.int INCOMPLETE_FIELD_NUMBER: builtins.int + incomplete: builtins.bool + """True if data for given time window is not fully available yet (e.g. delays) + When true, records for the given time range could still be added/updated in the future (until false) + """ @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Start of UTC day for now (inclusive)""" + @property def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """End of UTC day for now (exclusive)""" + @property def record_groups( self, @@ -101,10 +108,7 @@ class Summary(google.protobuf.message.Message): global___RecordGroup ]: """Records grouped by namespace""" - incomplete: builtins.bool - """True if data for given time window is not fully available yet (e.g. delays) - When true, records for the given time range could still be added/updated in the future (until false) - """ + def __init__( self, *, @@ -115,13 +119,13 @@ class Summary(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time", b"end_time", "start_time", b"start_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time", b"end_time", "incomplete", @@ -135,6 +139,7 @@ class Summary(google.protobuf.message.Message): global___Summary = Summary +@typing.final class RecordGroup(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -147,6 +152,7 @@ class RecordGroup(google.protobuf.message.Message): global___GroupBy ]: """GroupBy keys and their values for this record group. Multiple fields are combined with logical AND.""" + @property def records( self, @@ -161,13 +167,12 @@ class RecordGroup(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "group_bys", b"group_bys", "records", b"records" - ], + field_name: typing.Literal["group_bys", b"group_bys", "records", b"records"], ) -> None: ... global___RecordGroup = RecordGroup +@typing.final class GroupBy(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -182,11 +187,12 @@ class GroupBy(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"] + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... global___GroupBy = GroupBy +@typing.final class Record(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -205,9 +211,7 @@ class Record(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "type", b"type", "unit", b"unit", "value", b"value" - ], + field_name: typing.Literal["type", b"type", "unit", b"unit", "value", b"value"], ) -> None: ... global___Record = Record diff --git a/temporalio/api/command/v1/message_pb2.py b/temporalio/api/command/v1/message_pb2.py index ad004ae03..c89afb346 100644 --- a/temporalio/api/command/v1/message_pb2.py +++ b/temporalio/api/command/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -45,293 +44,8 @@ b'\n%temporal/api/command/v1/message.proto\x12\x17temporal.api.command.v1\x1a\x1egoogle/protobuf/duration.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a(temporal/api/enums/v1/command_type.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a,temporal/api/sdk/v1/event_group_marker.proto"\xb6\x05\n%ScheduleActivityTaskCommandAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x1f\n\x17request_eager_execution\x18\x0c \x01(\x08\x12\x1d\n\x15use_workflow_build_id\x18\r \x01(\x08\x12\x32\n\x08priority\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.PriorityJ\x04\x08\x03\x10\x04"H\n*RequestCancelActivityTaskCommandAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03"i\n\x1bStartTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"^\n*CompleteWorkflowExecutionCommandAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"[\n&FailWorkflowExecutionCommandAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"0\n\x1c\x43\x61ncelTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t"]\n(CancelWorkflowExecutionCommandAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xb7\x01\n7RequestCancelExternalWorkflowExecutionCommandAttributes\x12\x15\n\tnamespace\x18\x01 \x01(\tB\x02\x18\x01\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x07\x63ontrol\x18\x04 \x01(\tB\x02\x18\x01\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xaf\x02\n0SignalExternalWorkflowExecutionCommandAttributes\x12\x15\n\tnamespace\x18\x01 \x01(\tB\x02\x18\x01\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x07\x63ontrol\x18\x05 \x01(\tB\x02\x18\x01\x12\x1b\n\x13\x63hild_workflow_only\x18\x06 \x01(\x08\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"v\n/UpsertWorkflowSearchAttributesCommandAttributes\x12\x43\n\x11search_attributes\x18\x01 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"`\n)ModifyWorkflowPropertiesCommandAttributes\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xbf\x02\n\x1dRecordMarkerCommandAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xac\x07\n/ContinueAsNewWorkflowExecutionCommandAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x07 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12@\n\tinitiator\x18\x08 \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x31\n\x07\x66\x61ilure\x18\t \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\n \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rcron_schedule\x18\x0b \x01(\t\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1c\n\x10inherit_build_id\x18\x0f \x01(\x08\x42\x02\x18\x01\x12[\n\x1binitial_versioning_behavior\x18\x10 \x01(\x0e\x32\x36.temporal.api.enums.v1.ContinueAsNewVersioningBehavior"\xec\x07\n,StartChildWorkflowExecutionCommandAttributes\x12\x15\n\tnamespace\x18\x01 \x01(\tB\x02\x18\x01\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12.\n\x06header\x18\x0e \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x0f \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x10 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1c\n\x10inherit_build_id\x18\x11 \x01(\x08\x42\x02\x18\x01\x12\x32\n\x08priority\x18\x12 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12I\n\x13versioning_override\x18\x13 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride"6\n ProtocolMessageCommandAttributes\x12\x12\n\nmessage_id\x18\x01 \x01(\t"\xe3\x03\n\'ScheduleNexusOperationCommandAttributes\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12g\n\x0cnexus_header\x18\x06 \x03(\x0b\x32Q.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntry\x12<\n\x19schedule_to_start_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"J\n,RequestCancelNexusOperationCommandAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03"\x87\x12\n\x07\x43ommand\x12\x38\n\x0c\x63ommand_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.CommandType\x12\x39\n\ruser_metadata\x18\xad\x02 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12\x43\n\x13\x65vent_group_markers\x18\xae\x02 \x03(\x0b\x32%.temporal.api.sdk.v1.EventGroupMarker\x12s\n)schedule_activity_task_command_attributes\x18\x02 \x01(\x0b\x32>.temporal.api.command.v1.ScheduleActivityTaskCommandAttributesH\x00\x12^\n\x1estart_timer_command_attributes\x18\x03 \x01(\x0b\x32\x34.temporal.api.command.v1.StartTimerCommandAttributesH\x00\x12}\n.complete_workflow_execution_command_attributes\x18\x04 \x01(\x0b\x32\x43.temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributesH\x00\x12u\n*fail_workflow_execution_command_attributes\x18\x05 \x01(\x0b\x32?.temporal.api.command.v1.FailWorkflowExecutionCommandAttributesH\x00\x12~\n/request_cancel_activity_task_command_attributes\x18\x06 \x01(\x0b\x32\x43.temporal.api.command.v1.RequestCancelActivityTaskCommandAttributesH\x00\x12`\n\x1f\x63\x61ncel_timer_command_attributes\x18\x07 \x01(\x0b\x32\x35.temporal.api.command.v1.CancelTimerCommandAttributesH\x00\x12y\n,cancel_workflow_execution_command_attributes\x18\x08 \x01(\x0b\x32\x41.temporal.api.command.v1.CancelWorkflowExecutionCommandAttributesH\x00\x12\x99\x01\n=request_cancel_external_workflow_execution_command_attributes\x18\t \x01(\x0b\x32P.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributesH\x00\x12\x62\n record_marker_command_attributes\x18\n \x01(\x0b\x32\x36.temporal.api.command.v1.RecordMarkerCommandAttributesH\x00\x12\x89\x01\n5continue_as_new_workflow_execution_command_attributes\x18\x0b \x01(\x0b\x32H.temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributesH\x00\x12\x82\x01\n1start_child_workflow_execution_command_attributes\x18\x0c \x01(\x0b\x32\x45.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributesH\x00\x12\x8a\x01\n5signal_external_workflow_execution_command_attributes\x18\r \x01(\x0b\x32I.temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributesH\x00\x12\x88\x01\n4upsert_workflow_search_attributes_command_attributes\x18\x0e \x01(\x0b\x32H.temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributesH\x00\x12h\n#protocol_message_command_attributes\x18\x0f \x01(\x0b\x32\x39.temporal.api.command.v1.ProtocolMessageCommandAttributesH\x00\x12{\n-modify_workflow_properties_command_attributes\x18\x11 \x01(\x0b\x32\x42.temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributesH\x00\x12w\n+schedule_nexus_operation_command_attributes\x18\x12 \x01(\x0b\x32@.temporal.api.command.v1.ScheduleNexusOperationCommandAttributesH\x00\x12\x82\x01\n1request_cancel_nexus_operation_command_attributes\x18\x13 \x01(\x0b\x32\x45.temporal.api.command.v1.RequestCancelNexusOperationCommandAttributesH\x00\x42\x0c\n\nattributesB\x8e\x01\n\x1aio.temporal.api.command.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/command/v1;command\xaa\x02\x19Temporalio.Api.Command.V1\xea\x02\x1cTemporalio::Api::Command::V1b\x06proto3' ) - -_SCHEDULEACTIVITYTASKCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ScheduleActivityTaskCommandAttributes" -] -_REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "RequestCancelActivityTaskCommandAttributes" -] -_STARTTIMERCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "StartTimerCommandAttributes" -] -_COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "CompleteWorkflowExecutionCommandAttributes" -] -_FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "FailWorkflowExecutionCommandAttributes" -] -_CANCELTIMERCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "CancelTimerCommandAttributes" -] -_CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "CancelWorkflowExecutionCommandAttributes" -] -_REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES = ( - DESCRIPTOR.message_types_by_name[ - "RequestCancelExternalWorkflowExecutionCommandAttributes" - ] -) -_SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "SignalExternalWorkflowExecutionCommandAttributes" -] -_UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "UpsertWorkflowSearchAttributesCommandAttributes" -] -_MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ModifyWorkflowPropertiesCommandAttributes" -] -_RECORDMARKERCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "RecordMarkerCommandAttributes" -] -_RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY = ( - _RECORDMARKERCOMMANDATTRIBUTES.nested_types_by_name["DetailsEntry"] -) -_CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ContinueAsNewWorkflowExecutionCommandAttributes" -] -_STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "StartChildWorkflowExecutionCommandAttributes" -] -_PROTOCOLMESSAGECOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ProtocolMessageCommandAttributes" -] -_SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ScheduleNexusOperationCommandAttributes" -] -_SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY = ( - _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES.nested_types_by_name["NexusHeaderEntry"] -) -_REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "RequestCancelNexusOperationCommandAttributes" -] -_COMMAND = DESCRIPTOR.message_types_by_name["Command"] -ScheduleActivityTaskCommandAttributes = _reflection.GeneratedProtocolMessageType( - "ScheduleActivityTaskCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULEACTIVITYTASKCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleActivityTaskCommandAttributes) - }, -) -_sym_db.RegisterMessage(ScheduleActivityTaskCommandAttributes) - -RequestCancelActivityTaskCommandAttributes = _reflection.GeneratedProtocolMessageType( - "RequestCancelActivityTaskCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RequestCancelActivityTaskCommandAttributes) - }, -) -_sym_db.RegisterMessage(RequestCancelActivityTaskCommandAttributes) - -StartTimerCommandAttributes = _reflection.GeneratedProtocolMessageType( - "StartTimerCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _STARTTIMERCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.StartTimerCommandAttributes) - }, -) -_sym_db.RegisterMessage(StartTimerCommandAttributes) - -CompleteWorkflowExecutionCommandAttributes = _reflection.GeneratedProtocolMessageType( - "CompleteWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributes) - }, -) -_sym_db.RegisterMessage(CompleteWorkflowExecutionCommandAttributes) - -FailWorkflowExecutionCommandAttributes = _reflection.GeneratedProtocolMessageType( - "FailWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.FailWorkflowExecutionCommandAttributes) - }, -) -_sym_db.RegisterMessage(FailWorkflowExecutionCommandAttributes) - -CancelTimerCommandAttributes = _reflection.GeneratedProtocolMessageType( - "CancelTimerCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CANCELTIMERCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.CancelTimerCommandAttributes) - }, -) -_sym_db.RegisterMessage(CancelTimerCommandAttributes) - -CancelWorkflowExecutionCommandAttributes = _reflection.GeneratedProtocolMessageType( - "CancelWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.CancelWorkflowExecutionCommandAttributes) - }, -) -_sym_db.RegisterMessage(CancelWorkflowExecutionCommandAttributes) - -RequestCancelExternalWorkflowExecutionCommandAttributes = ( - _reflection.GeneratedProtocolMessageType( - "RequestCancelExternalWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes) - }, - ) -) -_sym_db.RegisterMessage(RequestCancelExternalWorkflowExecutionCommandAttributes) - -SignalExternalWorkflowExecutionCommandAttributes = ( - _reflection.GeneratedProtocolMessageType( - "SignalExternalWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes) - }, - ) -) -_sym_db.RegisterMessage(SignalExternalWorkflowExecutionCommandAttributes) - -UpsertWorkflowSearchAttributesCommandAttributes = ( - _reflection.GeneratedProtocolMessageType( - "UpsertWorkflowSearchAttributesCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributes) - }, - ) -) -_sym_db.RegisterMessage(UpsertWorkflowSearchAttributesCommandAttributes) - -ModifyWorkflowPropertiesCommandAttributes = _reflection.GeneratedProtocolMessageType( - "ModifyWorkflowPropertiesCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributes) - }, -) -_sym_db.RegisterMessage(ModifyWorkflowPropertiesCommandAttributes) - -RecordMarkerCommandAttributes = _reflection.GeneratedProtocolMessageType( - "RecordMarkerCommandAttributes", - (_message.Message,), - { - "DetailsEntry": _reflection.GeneratedProtocolMessageType( - "DetailsEntry", - (_message.Message,), - { - "DESCRIPTOR": _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry) - }, - ), - "DESCRIPTOR": _RECORDMARKERCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RecordMarkerCommandAttributes) - }, -) -_sym_db.RegisterMessage(RecordMarkerCommandAttributes) -_sym_db.RegisterMessage(RecordMarkerCommandAttributes.DetailsEntry) - -ContinueAsNewWorkflowExecutionCommandAttributes = ( - _reflection.GeneratedProtocolMessageType( - "ContinueAsNewWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes) - }, - ) -) -_sym_db.RegisterMessage(ContinueAsNewWorkflowExecutionCommandAttributes) - -StartChildWorkflowExecutionCommandAttributes = _reflection.GeneratedProtocolMessageType( - "StartChildWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes) - }, -) -_sym_db.RegisterMessage(StartChildWorkflowExecutionCommandAttributes) - -ProtocolMessageCommandAttributes = _reflection.GeneratedProtocolMessageType( - "ProtocolMessageCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _PROTOCOLMESSAGECOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ProtocolMessageCommandAttributes) - }, -) -_sym_db.RegisterMessage(ProtocolMessageCommandAttributes) - -ScheduleNexusOperationCommandAttributes = _reflection.GeneratedProtocolMessageType( - "ScheduleNexusOperationCommandAttributes", - (_message.Message,), - { - "NexusHeaderEntry": _reflection.GeneratedProtocolMessageType( - "NexusHeaderEntry", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntry) - }, - ), - "DESCRIPTOR": _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleNexusOperationCommandAttributes) - }, -) -_sym_db.RegisterMessage(ScheduleNexusOperationCommandAttributes) -_sym_db.RegisterMessage(ScheduleNexusOperationCommandAttributes.NexusHeaderEntry) - -RequestCancelNexusOperationCommandAttributes = _reflection.GeneratedProtocolMessageType( - "RequestCancelNexusOperationCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RequestCancelNexusOperationCommandAttributes) - }, -) -_sym_db.RegisterMessage(RequestCancelNexusOperationCommandAttributes) - -Command = _reflection.GeneratedProtocolMessageType( - "Command", - (_message.Message,), - { - "DESCRIPTOR": _COMMAND, - "__module__": "temporalio.api.command.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.Command) - }, -) -_sym_db.RegisterMessage(Command) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.command.v1B\014MessageProtoP\001Z%go.temporal.io/api/command/v1;command\252\002\031Temporalio.Api.Command.V1\352\002\034Temporalio::Api::Command::V1" diff --git a/temporalio/api/command/v1/message_pb2.pyi b/temporalio/api/command/v1/message_pb2.pyi index 18d0abc8b..255f70b2b 100644 --- a/temporalio/api/command/v1/message_pb2.pyi +++ b/temporalio/api/command/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -21,13 +21,9 @@ import temporalio.api.sdk.v1.user_metadata_pb2 import temporalio.api.taskqueue.v1.message_pb2 import temporalio.api.workflow.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -45,6 +41,14 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): USE_WORKFLOW_BUILD_ID_FIELD_NUMBER: builtins.int PRIORITY_FIELD_NUMBER: builtins.int activity_id: builtins.str + request_eager_execution: builtins.bool + """Request to start the activity directly bypassing matching service and worker polling + The slot for executing the activity should be reserved when setting this field to true. + """ + use_workflow_build_id: builtins.bool + """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, + Assignment rules of the activity's Task Queue will be used to determine the Build ID. + """ @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... @property @@ -63,6 +67,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Limits the time an activity task can stay in a task queue before a worker picks it up. The @@ -76,6 +81,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum time an activity is allowed to execute after being picked up by a worker. This @@ -84,28 +90,24 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum permitted time between successful worker heartbeats.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """Activities are provided by a default retry policy which is controlled through the service's dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has elapsed. To disable retries set retry_policy.maximum_attempts to 1. """ - request_eager_execution: builtins.bool - """Request to start the activity directly bypassing matching service and worker polling - The slot for executing the activity should be reserved when setting this field to true. - """ - use_workflow_build_id: builtins.bool - """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, - Assignment rules of the activity's Task Queue will be used to determine the Build ID. - """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata. If this message is not present, or any fields are not present, they inherit the values from the workflow. """ + def __init__( self, *, @@ -125,7 +127,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_type", b"activity_type", "header", @@ -150,7 +152,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_type", @@ -182,6 +184,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): global___ScheduleActivityTaskCommandAttributes = ScheduleActivityTaskCommandAttributes +@typing.final class RequestCancelActivityTaskCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -194,16 +197,14 @@ class RequestCancelActivityTaskCommandAttributes(google.protobuf.message.Message scheduled_event_id: builtins.int = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "scheduled_event_id", b"scheduled_event_id" - ], + self, field_name: typing.Literal["scheduled_event_id", b"scheduled_event_id"] ) -> None: ... global___RequestCancelActivityTaskCommandAttributes = ( RequestCancelActivityTaskCommandAttributes ) +@typing.final class StartTimerCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -220,6 +221,7 @@ class StartTimerCommandAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + def __init__( self, *, @@ -228,19 +230,18 @@ class StartTimerCommandAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "start_to_fire_timeout", b"start_to_fire_timeout" - ], + field_name: typing.Literal["start_to_fire_timeout", b"start_to_fire_timeout"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "start_to_fire_timeout", b"start_to_fire_timeout", "timer_id", b"timer_id" ], ) -> None: ... global___StartTimerCommandAttributes = StartTimerCommandAttributes +@typing.final class CompleteWorkflowExecutionCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -253,16 +254,15 @@ class CompleteWorkflowExecutionCommandAttributes(google.protobuf.message.Message result: temporalio.api.common.v1.message_pb2.Payloads | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["result", b"result"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result"]) -> None: ... global___CompleteWorkflowExecutionCommandAttributes = ( CompleteWorkflowExecutionCommandAttributes ) +@typing.final class FailWorkflowExecutionCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -275,14 +275,13 @@ class FailWorkflowExecutionCommandAttributes(google.protobuf.message.Message): failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["failure", b"failure"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["failure", b"failure"]) -> None: ... global___FailWorkflowExecutionCommandAttributes = FailWorkflowExecutionCommandAttributes +@typing.final class CancelTimerCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -295,11 +294,12 @@ class CancelTimerCommandAttributes(google.protobuf.message.Message): timer_id: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["timer_id", b"timer_id"] + self, field_name: typing.Literal["timer_id", b"timer_id"] ) -> None: ... global___CancelTimerCommandAttributes = CancelTimerCommandAttributes +@typing.final class CancelWorkflowExecutionCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -312,16 +312,15 @@ class CancelWorkflowExecutionCommandAttributes(google.protobuf.message.Message): details: temporalio.api.common.v1.message_pb2.Payloads | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["details", b"details"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["details", b"details"]) -> None: ... global___CancelWorkflowExecutionCommandAttributes = ( CancelWorkflowExecutionCommandAttributes ) +@typing.final class RequestCancelExternalWorkflowExecutionCommandAttributes( google.protobuf.message.Message ): @@ -358,7 +357,7 @@ class RequestCancelExternalWorkflowExecutionCommandAttributes( ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "child_workflow_only", b"child_workflow_only", "control", @@ -378,6 +377,7 @@ global___RequestCancelExternalWorkflowExecutionCommandAttributes = ( RequestCancelExternalWorkflowExecutionCommandAttributes ) +@typing.final class SignalExternalWorkflowExecutionCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -390,13 +390,8 @@ class SignalExternalWorkflowExecutionCommandAttributes(google.protobuf.message.M HEADER_FIELD_NUMBER: builtins.int namespace: builtins.str """Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1.""" - @property - def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... signal_name: builtins.str """The workflow author-defined name of the signal to send to the workflow.""" - @property - def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Serialized value(s) to provide with the signal.""" control: builtins.str """Deprecated""" child_workflow_only: builtins.bool @@ -404,11 +399,18 @@ class SignalExternalWorkflowExecutionCommandAttributes(google.protobuf.message.M command. The request will be rejected if it is set to true and the target workflow is *not* a child of the requesting workflow. """ + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... + @property + def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Serialized value(s) to provide with the signal.""" + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: """Headers that are passed by the workflow that is sending a signal to the external workflow that is receiving this signal. """ + def __init__( self, *, @@ -422,13 +424,13 @@ class SignalExternalWorkflowExecutionCommandAttributes(google.protobuf.message.M ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution", b"execution", "header", b"header", "input", b"input" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "child_workflow_only", b"child_workflow_only", "control", @@ -450,6 +452,7 @@ global___SignalExternalWorkflowExecutionCommandAttributes = ( SignalExternalWorkflowExecutionCommandAttributes ) +@typing.final class UpsertWorkflowSearchAttributesCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -465,22 +468,17 @@ class UpsertWorkflowSearchAttributesCommandAttributes(google.protobuf.message.Me | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "search_attributes", b"search_attributes" - ], + self, field_name: typing.Literal["search_attributes", b"search_attributes"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "search_attributes", b"search_attributes" - ], + self, field_name: typing.Literal["search_attributes", b"search_attributes"] ) -> None: ... global___UpsertWorkflowSearchAttributesCommandAttributes = ( UpsertWorkflowSearchAttributesCommandAttributes ) +@typing.final class ModifyWorkflowPropertiesCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -491,25 +489,28 @@ class ModifyWorkflowPropertiesCommandAttributes(google.protobuf.message.Message) the existing memo. If the user wants to delete values, a default/empty Payload should be used as the value for the key being deleted. """ + def __init__( self, *, upserted_memo: temporalio.api.common.v1.message_pb2.Memo | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["upserted_memo", b"upserted_memo"] + self, field_name: typing.Literal["upserted_memo", b"upserted_memo"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["upserted_memo", b"upserted_memo"] + self, field_name: typing.Literal["upserted_memo", b"upserted_memo"] ) -> None: ... global___ModifyWorkflowPropertiesCommandAttributes = ( ModifyWorkflowPropertiesCommandAttributes ) +@typing.final class RecordMarkerCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class DetailsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -525,11 +526,10 @@ class RecordMarkerCommandAttributes(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payloads | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... MARKER_NAME_FIELD_NUMBER: builtins.int @@ -559,14 +559,11 @@ class RecordMarkerCommandAttributes(google.protobuf.message.Message): failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "failure", b"failure", "header", b"header" - ], + self, field_name: typing.Literal["failure", b"failure", "header", b"header"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "failure", @@ -580,6 +577,7 @@ class RecordMarkerCommandAttributes(google.protobuf.message.Message): global___RecordMarkerCommandAttributes = RecordMarkerCommandAttributes +@typing.final class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -599,6 +597,22 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int INHERIT_BUILD_ID_FIELD_NUMBER: builtins.int INITIAL_VERSIONING_BEHAVIOR_FIELD_NUMBER: builtins.int + initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType + """Should be removed""" + cron_schedule: builtins.str + """Should be removed. Not necessarily unused but unclear and not exposed by SDKs.""" + inherit_build_id: builtins.bool + """If this is set, the new execution inherits the Build ID of the current execution. Otherwise, + the assignment rules will be used to independently assign a Build ID to the new execution. + Deprecated. Only considered for versioning v0.2. + """ + initial_versioning_behavior: ( + temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType + ) + """Experimental. Optionally decide the versioning behavior that the first task of the new run should use. + For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version + of the previous run. + """ @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @property @@ -608,24 +622,25 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me @property def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow run.""" + @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" + @property def backoff_start_interval(self) -> google.protobuf.duration_pb2.Duration: """How long the workflow start will be delayed - not really a "backoff" in the traditional sense.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: ... - initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType - """Should be removed""" @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Should be removed""" + @property def last_completion_result(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Should be removed""" - cron_schedule: builtins.str - """Should be removed. Not necessarily unused but unclear and not exposed by SDKs.""" + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: ... @property @@ -634,18 +649,6 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... - inherit_build_id: builtins.bool - """If this is set, the new execution inherits the Build ID of the current execution. Otherwise, - the assignment rules will be used to independently assign a Build ID to the new execution. - Deprecated. Only considered for versioning v0.2. - """ - initial_versioning_behavior: ( - temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType - ) - """Experimental. Optionally decide the versioning behavior that the first task of the new run should use. - For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version - of the previous run. - """ def __init__( self, *, @@ -670,7 +673,7 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backoff_start_interval", b"backoff_start_interval", "failure", @@ -699,7 +702,7 @@ class ContinueAsNewWorkflowExecutionCommandAttributes(google.protobuf.message.Me ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backoff_start_interval", b"backoff_start_interval", "cron_schedule", @@ -739,6 +742,7 @@ global___ContinueAsNewWorkflowExecutionCommandAttributes = ( ContinueAsNewWorkflowExecutionCommandAttributes ) +@typing.final class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -764,6 +768,22 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa namespace: builtins.str """Deprecated. Cross-namespace operations are disabled by default as of server 1.30.1.""" workflow_id: builtins.str + parent_close_policy: ( + temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType + ) + """Default: PARENT_CLOSE_POLICY_TERMINATE.""" + control: builtins.str + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) + """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" + cron_schedule: builtins.str + """Establish a cron schedule for the child workflow.""" + inherit_build_id: builtins.bool + """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment + rules of the child's Task Queue will be used to independently assign a Build ID to it. + Deprecated. Only considered for versioning v0.2. + """ @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @property @@ -773,25 +793,17 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa @property def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: """Total workflow execution timeout including retries and continue as new.""" + @property def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow run.""" + @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - parent_close_policy: ( - temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType - ) - """Default: PARENT_CLOSE_POLICY_TERMINATE.""" - control: builtins.str - workflow_id_reuse_policy: ( - temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType - ) - """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: ... - cron_schedule: builtins.str - """Establish a cron schedule for the child workflow.""" @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: ... @property @@ -800,16 +812,12 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... - inherit_build_id: builtins.bool - """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment - rules of the child's Task Queue will be used to independently assign a Build ID to it. - Deprecated. Only considered for versioning v0.2. - """ @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata. If this message is not present, or any fields are not present, they inherit the values from the workflow. """ + @property def versioning_override( self, @@ -817,6 +825,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa """Versioning override for the child workflow. If present, this explicit override takes precedence over versioning behavior inherited from the parent workflow. """ + def __init__( self, *, @@ -844,7 +853,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "input", @@ -873,7 +882,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "control", b"control", "cron_schedule", @@ -919,6 +928,7 @@ global___StartChildWorkflowExecutionCommandAttributes = ( StartChildWorkflowExecutionCommandAttributes ) +@typing.final class ProtocolMessageCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -931,14 +941,16 @@ class ProtocolMessageCommandAttributes(google.protobuf.message.Message): message_id: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["message_id", b"message_id"] + self, field_name: typing.Literal["message_id", b"message_id"] ) -> None: ... global___ProtocolMessageCommandAttributes = ProtocolMessageCommandAttributes +@typing.final class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class NexusHeaderEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -953,8 +965,7 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... ENDPOINT_FIELD_NUMBER: builtins.int @@ -977,6 +988,7 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the content is transformed back to the original Payload sent in this command. """ + @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-close timeout for this operation. @@ -985,6 +997,7 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def nexus_header( self, @@ -996,6 +1009,7 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): Note these headers are not the same as Temporal headers on internal activities and child workflows, these are transmitted to Nexus operations that may be external and are not traditional payloads. """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-start timeout for this operation. @@ -1007,6 +1021,7 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): aip.dev/not-precedent: "to" is used to indicate interval. --) Requires server version 1.31.0 or later. """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Start-to-close timeout for this operation. @@ -1019,6 +1034,7 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): aip.dev/not-precedent: "to" is used to indicate interval. --) Requires server version 1.31.0 or later. """ + def __init__( self, *, @@ -1033,7 +1049,7 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "input", b"input", "schedule_to_close_timeout", @@ -1046,7 +1062,7 @@ class ScheduleNexusOperationCommandAttributes(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "endpoint", b"endpoint", "input", @@ -1070,6 +1086,7 @@ global___ScheduleNexusOperationCommandAttributes = ( ScheduleNexusOperationCommandAttributes ) +@typing.final class RequestCancelNexusOperationCommandAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1084,16 +1101,14 @@ class RequestCancelNexusOperationCommandAttributes(google.protobuf.message.Messa scheduled_event_id: builtins.int = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "scheduled_event_id", b"scheduled_event_id" - ], + self, field_name: typing.Literal["scheduled_event_id", b"scheduled_event_id"] ) -> None: ... global___RequestCancelNexusOperationCommandAttributes = ( RequestCancelNexusOperationCommandAttributes ) +@typing.final class Command(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1133,6 +1148,7 @@ class Command(google.protobuf.message.Message): * start_timer_command_attributes - populates temporalio.api.history.v1.HistoryEvent for timer started where the summary is used to identify the timer. """ + @property def event_group_markers( self, @@ -1140,6 +1156,7 @@ class Command(google.protobuf.message.Message): temporalio.api.sdk.v1.event_group_marker_pb2.EventGroupMarker ]: """Event Group Markers attached to the command by the workflow author.""" + @property def schedule_activity_task_command_attributes( self, @@ -1201,6 +1218,7 @@ class Command(google.protobuf.message.Message): self, ) -> global___ModifyWorkflowPropertiesCommandAttributes: """16 is available for use - it was used as part of a prototype that never made it into a release""" + @property def schedule_nexus_operation_command_attributes( self, @@ -1256,7 +1274,7 @@ class Command(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attributes", b"attributes", "cancel_timer_command_attributes", @@ -1299,7 +1317,7 @@ class Command(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attributes", b"attributes", "cancel_timer_command_attributes", @@ -1345,9 +1363,9 @@ class Command(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["attributes", b"attributes"] + self, oneof_group: typing.Literal["attributes", b"attributes"] ) -> ( - typing_extensions.Literal[ + typing.Literal[ "schedule_activity_task_command_attributes", "start_timer_command_attributes", "complete_workflow_execution_command_attributes", diff --git a/temporalio/api/common/v1/__init__.py b/temporalio/api/common/v1/__init__.py index e613d71f8..81652ad25 100644 --- a/temporalio/api/common/v1/__init__.py +++ b/temporalio/api/common/v1/__init__.py @@ -15,6 +15,7 @@ Principal, Priority, ResetOptions, + ResolvedPrincipal, RetryPolicy, SearchAttributes, TimeSkippingConfig, @@ -45,6 +46,7 @@ "Principal", "Priority", "ResetOptions", + "ResolvedPrincipal", "RetryPolicy", "SearchAttributes", "TimeSkippingConfig", diff --git a/temporalio/api/common/v1/grpc_status_pb2.py b/temporalio/api/common/v1/grpc_status_pb2.py index 17642e92e..9c35065e8 100644 --- a/temporalio/api/common/v1/grpc_status_pb2.py +++ b/temporalio/api/common/v1/grpc_status_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -20,19 +19,8 @@ b'\n(temporal/api/common/v1/grpc_status.proto\x12\x16temporal.api.common.v1\x1a\x19google/protobuf/any.proto"R\n\nGrpcStatus\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\x12%\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x14.google.protobuf.Anyb\x06proto3' ) - -_GRPCSTATUS = DESCRIPTOR.message_types_by_name["GrpcStatus"] -GrpcStatus = _reflection.GeneratedProtocolMessageType( - "GrpcStatus", - (_message.Message,), - { - "DESCRIPTOR": _GRPCSTATUS, - "__module__": "temporalio.api.common.v1.grpc_status_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.GrpcStatus) - }, -) -_sym_db.RegisterMessage(GrpcStatus) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _GRPCSTATUS._serialized_start = 95 diff --git a/temporalio/api/common/v1/grpc_status_pb2.pyi b/temporalio/api/common/v1/grpc_status_pb2.pyi index 749a003af..3965b89e1 100644 --- a/temporalio/api/common/v1/grpc_status_pb2.pyi +++ b/temporalio/api/common/v1/grpc_status_pb2.pyi @@ -5,20 +5,16 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class GrpcStatus(google.protobuf.message.Message): """From https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto since we don't import grpc but still need the status info @@ -46,7 +42,7 @@ class GrpcStatus(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "code", b"code", "details", b"details", "message", b"message" ], ) -> None: ... diff --git a/temporalio/api/common/v1/message_pb2.py b/temporalio/api/common/v1/message_pb2.py index 538be6a23..6ee55b19d 100644 --- a/temporalio/api/common/v1/message_pb2.py +++ b/temporalio/api/common/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -29,501 +28,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n$temporal/api/common/v1/message.proto\x12\x16temporal.api.common.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a"temporal/api/enums/v1/common.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a!temporal/api/enums/v1/reset.proto"T\n\x08\x44\x61taBlob\x12:\n\rencoding_type\x18\x01 \x01(\x0e\x32#.temporal.api.enums.v1.EncodingType\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c"=\n\x08Payloads\x12\x31\n\x08payloads\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload"\x8a\x02\n\x07Payload\x12?\n\x08metadata\x18\x01 \x03(\x0b\x32-.temporal.api.common.v1.Payload.MetadataEntry\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12Q\n\x11\x65xternal_payloads\x18\x03 \x03(\x0b\x32\x36.temporal.api.common.v1.Payload.ExternalPayloadDetails\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x1a,\n\x16\x45xternalPayloadDetails\x12\x12\n\nsize_bytes\x18\x01 \x01(\x03"\xbe\x01\n\x10SearchAttributes\x12S\n\x0eindexed_fields\x18\x01 \x03(\x0b\x32;.temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry\x1aU\n\x12IndexedFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x90\x01\n\x04Memo\x12\x38\n\x06\x66ields\x18\x01 \x03(\x0b\x32(.temporal.api.common.v1.Memo.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x94\x01\n\x06Header\x12:\n\x06\x66ields\x18\x01 \x03(\x0b\x32*.temporal.api.common.v1.Header.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"8\n\x11WorkflowExecution\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t"d\n\tExecution\x12\x32\n\x04type\x18\x01 \x01(\x0e\x32$.temporal.api.enums.v1.ExecutionType\x12\x13\n\x0b\x62usiness_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"\x1c\n\x0cWorkflowType\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1c\n\x0c\x41\x63tivityType\x12\x0c\n\x04name\x18\x01 \x01(\t"\xd1\x01\n\x0bRetryPolicy\x12\x33\n\x10initial_interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x62\x61\x63koff_coefficient\x18\x02 \x01(\x01\x12\x33\n\x10maximum_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10maximum_attempts\x18\x04 \x01(\x05\x12!\n\x19non_retryable_error_types\x18\x05 \x03(\t"F\n\x10MeteringMetadata\x12\x32\n*nonfirst_local_activity_execution_attempts\x18\r \x01(\r">\n\x12WorkerVersionStamp\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x03 \x01(\x08"e\n\x19WorkerVersionCapabilities\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x02 \x01(\x08\x12\x1e\n\x16\x64\x65ployment_series_name\x18\x04 \x01(\t"\xed\x02\n\x0cResetOptions\x12\x35\n\x13\x66irst_workflow_task\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x12last_workflow_task\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x1a\n\x10workflow_task_id\x18\x03 \x01(\x03H\x00\x12\x12\n\x08\x62uild_id\x18\x04 \x01(\tH\x00\x12G\n\x12reset_reapply_type\x18\n \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01\x12\x18\n\x10\x63urrent_run_only\x18\x0b \x01(\x08\x12S\n\x1breset_reapply_exclude_types\x18\x0c \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeTypeB\x08\n\x06target"\xe4\x02\n\x08\x43\x61llback\x12\x37\n\x05nexus\x18\x02 \x01(\x0b\x32&.temporal.api.common.v1.Callback.NexusH\x00\x12=\n\x08internal\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.Callback.InternalH\x00\x12+\n\x05links\x18\x64 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x1a\x87\x01\n\x05Nexus\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x42\n\x06header\x18\x02 \x03(\x0b\x32\x32.temporal.api.common.v1.Callback.Nexus.HeaderEntry\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x18\n\x08Internal\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x42\t\n\x07variantJ\x04\x08\x01\x10\x02"\x8a\x08\n\x04Link\x12\x44\n\x0eworkflow_event\x18\x01 \x01(\x0b\x32*.temporal.api.common.v1.Link.WorkflowEventH\x00\x12:\n\tbatch_job\x18\x02 \x01(\x0b\x32%.temporal.api.common.v1.Link.BatchJobH\x00\x12\x39\n\x08\x61\x63tivity\x18\x03 \x01(\x0b\x32%.temporal.api.common.v1.Link.ActivityH\x00\x12\x46\n\x0fnexus_operation\x18\x04 \x01(\x0b\x32+.temporal.api.common.v1.Link.NexusOperationH\x00\x12\x39\n\x08workflow\x18\x05 \x01(\x0b\x32%.temporal.api.common.v1.Link.WorkflowH\x00\x1a\xb7\x03\n\rWorkflowEvent\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12N\n\tevent_ref\x18\x64 \x01(\x0b\x32\x39.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceH\x00\x12W\n\x0erequest_id_ref\x18\x65 \x01(\x0b\x32=.temporal.api.common.v1.Link.WorkflowEvent.RequestIdReferenceH\x00\x1aX\n\x0e\x45ventReference\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12\x34\n\nevent_type\x18\x02 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x1a^\n\x12RequestIdReference\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x34\n\nevent_type\x18\x02 \x01(\x0e\x32 .temporal.api.enums.v1.EventTypeB\x0b\n\treference\x1a\x1a\n\x08\x42\x61tchJob\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x1a\x42\n\x08\x41\x63tivity\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x1aI\n\x0eNexusOperation\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x1aR\n\x08Workflow\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\tB\t\n\x07variant"\'\n\tPrincipal\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t"O\n\x08Priority\x12\x14\n\x0cpriority_key\x18\x01 \x01(\x05\x12\x14\n\x0c\x66\x61irness_key\x18\x02 \x01(\t\x12\x17\n\x0f\x66\x61irness_weight\x18\x03 \x01(\x02";\n\x0eWorkerSelector\x12\x1d\n\x13worker_instance_key\x18\x01 \x01(\tH\x00\x42\n\n\x08selector"i\n\x11OnConflictOptions\x12\x19\n\x11\x61ttach_request_id\x18\x01 \x01(\x08\x12#\n\x1b\x61ttach_completion_callbacks\x18\x02 \x01(\x08\x12\x14\n\x0c\x61ttach_links\x18\x03 \x01(\x08"\xaa\x01\n\x12TimeSkippingConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x46\n\x13\x66\x61st_forward_config\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.FastForwardConfig\x12\x1b\n\x13\x64isable_propagation\x18\x03 \x01(\x08\x12\x1e\n\x16max_session_skip_count\x18\x04 \x01(\x05"L\n\x11\x46\x61stForwardConfig\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xb5\x01\n\x1cTimeSkippingStatePropagation\x12;\n\x18initial_skipped_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x18\x66\x61st_forward_target_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12initial_skip_count\x18\x03 \x01(\x05"\xfe\x01\n\x10TimeSkippingInfo\x12\x30\n\x0c\x63urrent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x10\x65\x66\x66\x65\x63tive_config\x18\x02 \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12N\n\x11\x66\x61st_forward_info\x18\x04 \x01(\x0b\x32\x33.temporal.api.common.v1.TimeSkippingFastForwardInfo\x12"\n\x1a\x63urrent_session_skip_count\x18\x06 \x01(\x05"\xb8\x01\n\x1bTimeSkippingFastForwardInfo\x12\x38\n\x15\x66\x61st_forward_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0f\x66\x61st_forward_id\x18\x02 \x01(\t\x12/\n\x0btarget_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rhas_completed\x18\x04 \x01(\x08\x42\x89\x01\n\x19io.temporal.api.common.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/common/v1;common\xaa\x02\x18Temporalio.Api.Common.V1\xea\x02\x1bTemporalio::Api::Common::V1b\x06proto3' + b'\n$temporal/api/common/v1/message.proto\x12\x16temporal.api.common.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a"temporal/api/enums/v1/common.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a!temporal/api/enums/v1/reset.proto"T\n\x08\x44\x61taBlob\x12:\n\rencoding_type\x18\x01 \x01(\x0e\x32#.temporal.api.enums.v1.EncodingType\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c"=\n\x08Payloads\x12\x31\n\x08payloads\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload"\x8a\x02\n\x07Payload\x12?\n\x08metadata\x18\x01 \x03(\x0b\x32-.temporal.api.common.v1.Payload.MetadataEntry\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12Q\n\x11\x65xternal_payloads\x18\x03 \x03(\x0b\x32\x36.temporal.api.common.v1.Payload.ExternalPayloadDetails\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x1a,\n\x16\x45xternalPayloadDetails\x12\x12\n\nsize_bytes\x18\x01 \x01(\x03"\xbe\x01\n\x10SearchAttributes\x12S\n\x0eindexed_fields\x18\x01 \x03(\x0b\x32;.temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry\x1aU\n\x12IndexedFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x90\x01\n\x04Memo\x12\x38\n\x06\x66ields\x18\x01 \x03(\x0b\x32(.temporal.api.common.v1.Memo.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x94\x01\n\x06Header\x12:\n\x06\x66ields\x18\x01 \x03(\x0b\x32*.temporal.api.common.v1.Header.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"8\n\x11WorkflowExecution\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t"d\n\tExecution\x12\x32\n\x04type\x18\x01 \x01(\x0e\x32$.temporal.api.enums.v1.ExecutionType\x12\x13\n\x0b\x62usiness_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"\x1c\n\x0cWorkflowType\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1c\n\x0c\x41\x63tivityType\x12\x0c\n\x04name\x18\x01 \x01(\t"\xd1\x01\n\x0bRetryPolicy\x12\x33\n\x10initial_interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x62\x61\x63koff_coefficient\x18\x02 \x01(\x01\x12\x33\n\x10maximum_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10maximum_attempts\x18\x04 \x01(\x05\x12!\n\x19non_retryable_error_types\x18\x05 \x03(\t"F\n\x10MeteringMetadata\x12\x32\n*nonfirst_local_activity_execution_attempts\x18\r \x01(\r">\n\x12WorkerVersionStamp\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x03 \x01(\x08"e\n\x19WorkerVersionCapabilities\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x02 \x01(\x08\x12\x1e\n\x16\x64\x65ployment_series_name\x18\x04 \x01(\t"\xed\x02\n\x0cResetOptions\x12\x35\n\x13\x66irst_workflow_task\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x12last_workflow_task\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x1a\n\x10workflow_task_id\x18\x03 \x01(\x03H\x00\x12\x12\n\x08\x62uild_id\x18\x04 \x01(\tH\x00\x12G\n\x12reset_reapply_type\x18\n \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01\x12\x18\n\x10\x63urrent_run_only\x18\x0b \x01(\x08\x12S\n\x1breset_reapply_exclude_types\x18\x0c \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeTypeB\x08\n\x06target"\xb3\x04\n\x08\x43\x61llback\x12\x37\n\x05nexus\x18\x02 \x01(\x0b\x32&.temporal.api.common.v1.Callback.NexusH\x00\x12=\n\x08internal\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.Callback.InternalH\x00\x12\x46\n\rnexus_handler\x18\x04 \x01(\x0b\x32-.temporal.api.common.v1.Callback.NexusHandlerH\x00\x12+\n\x05links\x18\x64 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x1a\x87\x01\n\x05Nexus\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x42\n\x06header\x18\x02 \x03(\x0b\x32\x32.temporal.api.common.v1.Callback.Nexus.HeaderEntry\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x18\n\x08Internal\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x1a\x84\x01\n\x0cNexusHandler\x12\x17\n\x0ftask_queue_name\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12\x37\n\x0esource_context\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadB\t\n\x07variantJ\x04\x08\x01\x10\x02"\xc6\t\n\x04Link\x12\x44\n\x0eworkflow_event\x18\x01 \x01(\x0b\x32*.temporal.api.common.v1.Link.WorkflowEventH\x00\x12:\n\tbatch_job\x18\x02 \x01(\x0b\x32%.temporal.api.common.v1.Link.BatchJobH\x00\x12\x39\n\x08\x61\x63tivity\x18\x03 \x01(\x0b\x32%.temporal.api.common.v1.Link.ActivityH\x00\x12\x46\n\x0fnexus_operation\x18\x04 \x01(\x0b\x32+.temporal.api.common.v1.Link.NexusOperationH\x00\x12\x39\n\x08workflow\x18\x05 \x01(\x0b\x32%.temporal.api.common.v1.Link.WorkflowH\x00\x12\x39\n\x08\x63\x61llback\x18\x06 \x01(\x0b\x32%.temporal.api.common.v1.Link.CallbackH\x00\x1a\xb7\x03\n\rWorkflowEvent\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12N\n\tevent_ref\x18\x64 \x01(\x0b\x32\x39.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceH\x00\x12W\n\x0erequest_id_ref\x18\x65 \x01(\x0b\x32=.temporal.api.common.v1.Link.WorkflowEvent.RequestIdReferenceH\x00\x1aX\n\x0e\x45ventReference\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12\x34\n\nevent_type\x18\x02 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x1a^\n\x12RequestIdReference\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x34\n\nevent_type\x18\x02 \x01(\x0e\x32 .temporal.api.enums.v1.EventTypeB\x0b\n\treference\x1a\x1a\n\x08\x42\x61tchJob\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x1a\x42\n\x08\x41\x63tivity\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x1aI\n\x0eNexusOperation\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x1aR\n\x08Workflow\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x1a\x7f\n\x08\x43\x61llback\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x34\n\texecution\x18\x02 \x01(\x0b\x32!.temporal.api.common.v1.Execution\x12\x16\n\x0e\x63omponent_path\x18\x03 \x03(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\tB\t\n\x07variant"\'\n\tPrincipal\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t"=\n\x11ResolvedPrincipal\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x1a\n\x12name_at_write_time\x18\x02 \x01(\t"O\n\x08Priority\x12\x14\n\x0cpriority_key\x18\x01 \x01(\x05\x12\x14\n\x0c\x66\x61irness_key\x18\x02 \x01(\t\x12\x17\n\x0f\x66\x61irness_weight\x18\x03 \x01(\x02";\n\x0eWorkerSelector\x12\x1d\n\x13worker_instance_key\x18\x01 \x01(\tH\x00\x42\n\n\x08selector"i\n\x11OnConflictOptions\x12\x19\n\x11\x61ttach_request_id\x18\x01 \x01(\x08\x12#\n\x1b\x61ttach_completion_callbacks\x18\x02 \x01(\x08\x12\x14\n\x0c\x61ttach_links\x18\x03 \x01(\x08"\xaa\x01\n\x12TimeSkippingConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x46\n\x13\x66\x61st_forward_config\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.FastForwardConfig\x12\x1b\n\x13\x64isable_propagation\x18\x03 \x01(\x08\x12\x1e\n\x16max_session_skip_count\x18\x04 \x01(\x05"L\n\x11\x46\x61stForwardConfig\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xb5\x01\n\x1cTimeSkippingStatePropagation\x12;\n\x18initial_skipped_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x18\x66\x61st_forward_target_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12initial_skip_count\x18\x03 \x01(\x05"\xfe\x01\n\x10TimeSkippingInfo\x12\x30\n\x0c\x63urrent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x10\x65\x66\x66\x65\x63tive_config\x18\x02 \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12N\n\x11\x66\x61st_forward_info\x18\x04 \x01(\x0b\x32\x33.temporal.api.common.v1.TimeSkippingFastForwardInfo\x12"\n\x1a\x63urrent_session_skip_count\x18\x06 \x01(\x05"\xb8\x01\n\x1bTimeSkippingFastForwardInfo\x12\x38\n\x15\x66\x61st_forward_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0f\x66\x61st_forward_id\x18\x02 \x01(\t\x12/\n\x0btarget_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rhas_completed\x18\x04 \x01(\x08\x42\x89\x01\n\x19io.temporal.api.common.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/common/v1;common\xaa\x02\x18Temporalio.Api.Common.V1\xea\x02\x1bTemporalio::Api::Common::V1b\x06proto3' ) - -_DATABLOB = DESCRIPTOR.message_types_by_name["DataBlob"] -_PAYLOADS = DESCRIPTOR.message_types_by_name["Payloads"] -_PAYLOAD = DESCRIPTOR.message_types_by_name["Payload"] -_PAYLOAD_METADATAENTRY = _PAYLOAD.nested_types_by_name["MetadataEntry"] -_PAYLOAD_EXTERNALPAYLOADDETAILS = _PAYLOAD.nested_types_by_name[ - "ExternalPayloadDetails" -] -_SEARCHATTRIBUTES = DESCRIPTOR.message_types_by_name["SearchAttributes"] -_SEARCHATTRIBUTES_INDEXEDFIELDSENTRY = _SEARCHATTRIBUTES.nested_types_by_name[ - "IndexedFieldsEntry" -] -_MEMO = DESCRIPTOR.message_types_by_name["Memo"] -_MEMO_FIELDSENTRY = _MEMO.nested_types_by_name["FieldsEntry"] -_HEADER = DESCRIPTOR.message_types_by_name["Header"] -_HEADER_FIELDSENTRY = _HEADER.nested_types_by_name["FieldsEntry"] -_WORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name["WorkflowExecution"] -_EXECUTION = DESCRIPTOR.message_types_by_name["Execution"] -_WORKFLOWTYPE = DESCRIPTOR.message_types_by_name["WorkflowType"] -_ACTIVITYTYPE = DESCRIPTOR.message_types_by_name["ActivityType"] -_RETRYPOLICY = DESCRIPTOR.message_types_by_name["RetryPolicy"] -_METERINGMETADATA = DESCRIPTOR.message_types_by_name["MeteringMetadata"] -_WORKERVERSIONSTAMP = DESCRIPTOR.message_types_by_name["WorkerVersionStamp"] -_WORKERVERSIONCAPABILITIES = DESCRIPTOR.message_types_by_name[ - "WorkerVersionCapabilities" -] -_RESETOPTIONS = DESCRIPTOR.message_types_by_name["ResetOptions"] -_CALLBACK = DESCRIPTOR.message_types_by_name["Callback"] -_CALLBACK_NEXUS = _CALLBACK.nested_types_by_name["Nexus"] -_CALLBACK_NEXUS_HEADERENTRY = _CALLBACK_NEXUS.nested_types_by_name["HeaderEntry"] -_CALLBACK_INTERNAL = _CALLBACK.nested_types_by_name["Internal"] -_LINK = DESCRIPTOR.message_types_by_name["Link"] -_LINK_WORKFLOWEVENT = _LINK.nested_types_by_name["WorkflowEvent"] -_LINK_WORKFLOWEVENT_EVENTREFERENCE = _LINK_WORKFLOWEVENT.nested_types_by_name[ - "EventReference" -] -_LINK_WORKFLOWEVENT_REQUESTIDREFERENCE = _LINK_WORKFLOWEVENT.nested_types_by_name[ - "RequestIdReference" -] -_LINK_BATCHJOB = _LINK.nested_types_by_name["BatchJob"] -_LINK_ACTIVITY = _LINK.nested_types_by_name["Activity"] -_LINK_NEXUSOPERATION = _LINK.nested_types_by_name["NexusOperation"] -_LINK_WORKFLOW = _LINK.nested_types_by_name["Workflow"] -_PRINCIPAL = DESCRIPTOR.message_types_by_name["Principal"] -_PRIORITY = DESCRIPTOR.message_types_by_name["Priority"] -_WORKERSELECTOR = DESCRIPTOR.message_types_by_name["WorkerSelector"] -_ONCONFLICTOPTIONS = DESCRIPTOR.message_types_by_name["OnConflictOptions"] -_TIMESKIPPINGCONFIG = DESCRIPTOR.message_types_by_name["TimeSkippingConfig"] -_FASTFORWARDCONFIG = DESCRIPTOR.message_types_by_name["FastForwardConfig"] -_TIMESKIPPINGSTATEPROPAGATION = DESCRIPTOR.message_types_by_name[ - "TimeSkippingStatePropagation" -] -_TIMESKIPPINGINFO = DESCRIPTOR.message_types_by_name["TimeSkippingInfo"] -_TIMESKIPPINGFASTFORWARDINFO = DESCRIPTOR.message_types_by_name[ - "TimeSkippingFastForwardInfo" -] -DataBlob = _reflection.GeneratedProtocolMessageType( - "DataBlob", - (_message.Message,), - { - "DESCRIPTOR": _DATABLOB, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.DataBlob) - }, -) -_sym_db.RegisterMessage(DataBlob) - -Payloads = _reflection.GeneratedProtocolMessageType( - "Payloads", - (_message.Message,), - { - "DESCRIPTOR": _PAYLOADS, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Payloads) - }, -) -_sym_db.RegisterMessage(Payloads) - -Payload = _reflection.GeneratedProtocolMessageType( - "Payload", - (_message.Message,), - { - "MetadataEntry": _reflection.GeneratedProtocolMessageType( - "MetadataEntry", - (_message.Message,), - { - "DESCRIPTOR": _PAYLOAD_METADATAENTRY, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Payload.MetadataEntry) - }, - ), - "ExternalPayloadDetails": _reflection.GeneratedProtocolMessageType( - "ExternalPayloadDetails", - (_message.Message,), - { - "DESCRIPTOR": _PAYLOAD_EXTERNALPAYLOADDETAILS, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Payload.ExternalPayloadDetails) - }, - ), - "DESCRIPTOR": _PAYLOAD, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Payload) - }, -) -_sym_db.RegisterMessage(Payload) -_sym_db.RegisterMessage(Payload.MetadataEntry) -_sym_db.RegisterMessage(Payload.ExternalPayloadDetails) - -SearchAttributes = _reflection.GeneratedProtocolMessageType( - "SearchAttributes", - (_message.Message,), - { - "IndexedFieldsEntry": _reflection.GeneratedProtocolMessageType( - "IndexedFieldsEntry", - (_message.Message,), - { - "DESCRIPTOR": _SEARCHATTRIBUTES_INDEXEDFIELDSENTRY, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry) - }, - ), - "DESCRIPTOR": _SEARCHATTRIBUTES, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.SearchAttributes) - }, -) -_sym_db.RegisterMessage(SearchAttributes) -_sym_db.RegisterMessage(SearchAttributes.IndexedFieldsEntry) - -Memo = _reflection.GeneratedProtocolMessageType( - "Memo", - (_message.Message,), - { - "FieldsEntry": _reflection.GeneratedProtocolMessageType( - "FieldsEntry", - (_message.Message,), - { - "DESCRIPTOR": _MEMO_FIELDSENTRY, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Memo.FieldsEntry) - }, - ), - "DESCRIPTOR": _MEMO, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Memo) - }, -) -_sym_db.RegisterMessage(Memo) -_sym_db.RegisterMessage(Memo.FieldsEntry) - -Header = _reflection.GeneratedProtocolMessageType( - "Header", - (_message.Message,), - { - "FieldsEntry": _reflection.GeneratedProtocolMessageType( - "FieldsEntry", - (_message.Message,), - { - "DESCRIPTOR": _HEADER_FIELDSENTRY, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Header.FieldsEntry) - }, - ), - "DESCRIPTOR": _HEADER, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Header) - }, -) -_sym_db.RegisterMessage(Header) -_sym_db.RegisterMessage(Header.FieldsEntry) - -WorkflowExecution = _reflection.GeneratedProtocolMessageType( - "WorkflowExecution", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTION, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.WorkflowExecution) - }, -) -_sym_db.RegisterMessage(WorkflowExecution) - -Execution = _reflection.GeneratedProtocolMessageType( - "Execution", - (_message.Message,), - { - "DESCRIPTOR": _EXECUTION, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Execution) - }, -) -_sym_db.RegisterMessage(Execution) - -WorkflowType = _reflection.GeneratedProtocolMessageType( - "WorkflowType", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWTYPE, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.WorkflowType) - }, -) -_sym_db.RegisterMessage(WorkflowType) - -ActivityType = _reflection.GeneratedProtocolMessageType( - "ActivityType", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTYPE, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.ActivityType) - }, -) -_sym_db.RegisterMessage(ActivityType) - -RetryPolicy = _reflection.GeneratedProtocolMessageType( - "RetryPolicy", - (_message.Message,), - { - "DESCRIPTOR": _RETRYPOLICY, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.RetryPolicy) - }, -) -_sym_db.RegisterMessage(RetryPolicy) - -MeteringMetadata = _reflection.GeneratedProtocolMessageType( - "MeteringMetadata", - (_message.Message,), - { - "DESCRIPTOR": _METERINGMETADATA, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.MeteringMetadata) - }, -) -_sym_db.RegisterMessage(MeteringMetadata) - -WorkerVersionStamp = _reflection.GeneratedProtocolMessageType( - "WorkerVersionStamp", - (_message.Message,), - { - "DESCRIPTOR": _WORKERVERSIONSTAMP, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.WorkerVersionStamp) - }, -) -_sym_db.RegisterMessage(WorkerVersionStamp) - -WorkerVersionCapabilities = _reflection.GeneratedProtocolMessageType( - "WorkerVersionCapabilities", - (_message.Message,), - { - "DESCRIPTOR": _WORKERVERSIONCAPABILITIES, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.WorkerVersionCapabilities) - }, -) -_sym_db.RegisterMessage(WorkerVersionCapabilities) - -ResetOptions = _reflection.GeneratedProtocolMessageType( - "ResetOptions", - (_message.Message,), - { - "DESCRIPTOR": _RESETOPTIONS, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.ResetOptions) - }, -) -_sym_db.RegisterMessage(ResetOptions) - -Callback = _reflection.GeneratedProtocolMessageType( - "Callback", - (_message.Message,), - { - "Nexus": _reflection.GeneratedProtocolMessageType( - "Nexus", - (_message.Message,), - { - "HeaderEntry": _reflection.GeneratedProtocolMessageType( - "HeaderEntry", - (_message.Message,), - { - "DESCRIPTOR": _CALLBACK_NEXUS_HEADERENTRY, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback.Nexus.HeaderEntry) - }, - ), - "DESCRIPTOR": _CALLBACK_NEXUS, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback.Nexus) - }, - ), - "Internal": _reflection.GeneratedProtocolMessageType( - "Internal", - (_message.Message,), - { - "DESCRIPTOR": _CALLBACK_INTERNAL, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback.Internal) - }, - ), - "DESCRIPTOR": _CALLBACK, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback) - }, -) -_sym_db.RegisterMessage(Callback) -_sym_db.RegisterMessage(Callback.Nexus) -_sym_db.RegisterMessage(Callback.Nexus.HeaderEntry) -_sym_db.RegisterMessage(Callback.Internal) - -Link = _reflection.GeneratedProtocolMessageType( - "Link", - (_message.Message,), - { - "WorkflowEvent": _reflection.GeneratedProtocolMessageType( - "WorkflowEvent", - (_message.Message,), - { - "EventReference": _reflection.GeneratedProtocolMessageType( - "EventReference", - (_message.Message,), - { - "DESCRIPTOR": _LINK_WORKFLOWEVENT_EVENTREFERENCE, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link.WorkflowEvent.EventReference) - }, - ), - "RequestIdReference": _reflection.GeneratedProtocolMessageType( - "RequestIdReference", - (_message.Message,), - { - "DESCRIPTOR": _LINK_WORKFLOWEVENT_REQUESTIDREFERENCE, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference) - }, - ), - "DESCRIPTOR": _LINK_WORKFLOWEVENT, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link.WorkflowEvent) - }, - ), - "BatchJob": _reflection.GeneratedProtocolMessageType( - "BatchJob", - (_message.Message,), - { - "DESCRIPTOR": _LINK_BATCHJOB, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link.BatchJob) - }, - ), - "Activity": _reflection.GeneratedProtocolMessageType( - "Activity", - (_message.Message,), - { - "DESCRIPTOR": _LINK_ACTIVITY, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link.Activity) - }, - ), - "NexusOperation": _reflection.GeneratedProtocolMessageType( - "NexusOperation", - (_message.Message,), - { - "DESCRIPTOR": _LINK_NEXUSOPERATION, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link.NexusOperation) - }, - ), - "Workflow": _reflection.GeneratedProtocolMessageType( - "Workflow", - (_message.Message,), - { - "DESCRIPTOR": _LINK_WORKFLOW, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link.Workflow) - }, - ), - "DESCRIPTOR": _LINK, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Link) - }, -) -_sym_db.RegisterMessage(Link) -_sym_db.RegisterMessage(Link.WorkflowEvent) -_sym_db.RegisterMessage(Link.WorkflowEvent.EventReference) -_sym_db.RegisterMessage(Link.WorkflowEvent.RequestIdReference) -_sym_db.RegisterMessage(Link.BatchJob) -_sym_db.RegisterMessage(Link.Activity) -_sym_db.RegisterMessage(Link.NexusOperation) -_sym_db.RegisterMessage(Link.Workflow) - -Principal = _reflection.GeneratedProtocolMessageType( - "Principal", - (_message.Message,), - { - "DESCRIPTOR": _PRINCIPAL, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Principal) - }, -) -_sym_db.RegisterMessage(Principal) - -Priority = _reflection.GeneratedProtocolMessageType( - "Priority", - (_message.Message,), - { - "DESCRIPTOR": _PRIORITY, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Priority) - }, -) -_sym_db.RegisterMessage(Priority) - -WorkerSelector = _reflection.GeneratedProtocolMessageType( - "WorkerSelector", - (_message.Message,), - { - "DESCRIPTOR": _WORKERSELECTOR, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.WorkerSelector) - }, -) -_sym_db.RegisterMessage(WorkerSelector) - -OnConflictOptions = _reflection.GeneratedProtocolMessageType( - "OnConflictOptions", - (_message.Message,), - { - "DESCRIPTOR": _ONCONFLICTOPTIONS, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.OnConflictOptions) - }, -) -_sym_db.RegisterMessage(OnConflictOptions) - -TimeSkippingConfig = _reflection.GeneratedProtocolMessageType( - "TimeSkippingConfig", - (_message.Message,), - { - "DESCRIPTOR": _TIMESKIPPINGCONFIG, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.TimeSkippingConfig) - }, -) -_sym_db.RegisterMessage(TimeSkippingConfig) - -FastForwardConfig = _reflection.GeneratedProtocolMessageType( - "FastForwardConfig", - (_message.Message,), - { - "DESCRIPTOR": _FASTFORWARDCONFIG, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.FastForwardConfig) - }, -) -_sym_db.RegisterMessage(FastForwardConfig) - -TimeSkippingStatePropagation = _reflection.GeneratedProtocolMessageType( - "TimeSkippingStatePropagation", - (_message.Message,), - { - "DESCRIPTOR": _TIMESKIPPINGSTATEPROPAGATION, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.TimeSkippingStatePropagation) - }, -) -_sym_db.RegisterMessage(TimeSkippingStatePropagation) - -TimeSkippingInfo = _reflection.GeneratedProtocolMessageType( - "TimeSkippingInfo", - (_message.Message,), - { - "DESCRIPTOR": _TIMESKIPPINGINFO, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.TimeSkippingInfo) - }, -) -_sym_db.RegisterMessage(TimeSkippingInfo) - -TimeSkippingFastForwardInfo = _reflection.GeneratedProtocolMessageType( - "TimeSkippingFastForwardInfo", - (_message.Message,), - { - "DESCRIPTOR": _TIMESKIPPINGFASTFORWARDINFO, - "__module__": "temporalio.api.common.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.common.v1.TimeSkippingFastForwardInfo) - }, -) -_sym_db.RegisterMessage(TimeSkippingFastForwardInfo) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\031io.temporal.api.common.v1B\014MessageProtoP\001Z#go.temporal.io/api/common/v1;common\252\002\030Temporalio.Api.Common.V1\352\002\033Temporalio::Api::Common::V1" @@ -580,45 +89,51 @@ _RESETOPTIONS._serialized_start = 1850 _RESETOPTIONS._serialized_end = 2215 _CALLBACK._serialized_start = 2218 - _CALLBACK._serialized_end = 2574 - _CALLBACK_NEXUS._serialized_start = 2396 - _CALLBACK_NEXUS._serialized_end = 2531 - _CALLBACK_NEXUS_HEADERENTRY._serialized_start = 2486 - _CALLBACK_NEXUS_HEADERENTRY._serialized_end = 2531 - _CALLBACK_INTERNAL._serialized_start = 2533 - _CALLBACK_INTERNAL._serialized_end = 2557 - _LINK._serialized_start = 2577 - _LINK._serialized_end = 3611 - _LINK_WORKFLOWEVENT._serialized_start = 2906 - _LINK_WORKFLOWEVENT._serialized_end = 3345 - _LINK_WORKFLOWEVENT_EVENTREFERENCE._serialized_start = 3148 - _LINK_WORKFLOWEVENT_EVENTREFERENCE._serialized_end = 3236 - _LINK_WORKFLOWEVENT_REQUESTIDREFERENCE._serialized_start = 3238 - _LINK_WORKFLOWEVENT_REQUESTIDREFERENCE._serialized_end = 3332 - _LINK_BATCHJOB._serialized_start = 3347 - _LINK_BATCHJOB._serialized_end = 3373 - _LINK_ACTIVITY._serialized_start = 3375 - _LINK_ACTIVITY._serialized_end = 3441 - _LINK_NEXUSOPERATION._serialized_start = 3443 - _LINK_NEXUSOPERATION._serialized_end = 3516 - _LINK_WORKFLOW._serialized_start = 3518 - _LINK_WORKFLOW._serialized_end = 3600 - _PRINCIPAL._serialized_start = 3613 - _PRINCIPAL._serialized_end = 3652 - _PRIORITY._serialized_start = 3654 - _PRIORITY._serialized_end = 3733 - _WORKERSELECTOR._serialized_start = 3735 - _WORKERSELECTOR._serialized_end = 3794 - _ONCONFLICTOPTIONS._serialized_start = 3796 - _ONCONFLICTOPTIONS._serialized_end = 3901 - _TIMESKIPPINGCONFIG._serialized_start = 3904 - _TIMESKIPPINGCONFIG._serialized_end = 4074 - _FASTFORWARDCONFIG._serialized_start = 4076 - _FASTFORWARDCONFIG._serialized_end = 4152 - _TIMESKIPPINGSTATEPROPAGATION._serialized_start = 4155 - _TIMESKIPPINGSTATEPROPAGATION._serialized_end = 4336 - _TIMESKIPPINGINFO._serialized_start = 4339 - _TIMESKIPPINGINFO._serialized_end = 4593 - _TIMESKIPPINGFASTFORWARDINFO._serialized_start = 4596 - _TIMESKIPPINGFASTFORWARDINFO._serialized_end = 4780 + _CALLBACK._serialized_end = 2781 + _CALLBACK_NEXUS._serialized_start = 2468 + _CALLBACK_NEXUS._serialized_end = 2603 + _CALLBACK_NEXUS_HEADERENTRY._serialized_start = 2558 + _CALLBACK_NEXUS_HEADERENTRY._serialized_end = 2603 + _CALLBACK_INTERNAL._serialized_start = 2605 + _CALLBACK_INTERNAL._serialized_end = 2629 + _CALLBACK_NEXUSHANDLER._serialized_start = 2632 + _CALLBACK_NEXUSHANDLER._serialized_end = 2764 + _LINK._serialized_start = 2784 + _LINK._serialized_end = 4006 + _LINK_WORKFLOWEVENT._serialized_start = 3172 + _LINK_WORKFLOWEVENT._serialized_end = 3611 + _LINK_WORKFLOWEVENT_EVENTREFERENCE._serialized_start = 3414 + _LINK_WORKFLOWEVENT_EVENTREFERENCE._serialized_end = 3502 + _LINK_WORKFLOWEVENT_REQUESTIDREFERENCE._serialized_start = 3504 + _LINK_WORKFLOWEVENT_REQUESTIDREFERENCE._serialized_end = 3598 + _LINK_BATCHJOB._serialized_start = 3613 + _LINK_BATCHJOB._serialized_end = 3639 + _LINK_ACTIVITY._serialized_start = 3641 + _LINK_ACTIVITY._serialized_end = 3707 + _LINK_NEXUSOPERATION._serialized_start = 3709 + _LINK_NEXUSOPERATION._serialized_end = 3782 + _LINK_WORKFLOW._serialized_start = 3784 + _LINK_WORKFLOW._serialized_end = 3866 + _LINK_CALLBACK._serialized_start = 3868 + _LINK_CALLBACK._serialized_end = 3995 + _PRINCIPAL._serialized_start = 4008 + _PRINCIPAL._serialized_end = 4047 + _RESOLVEDPRINCIPAL._serialized_start = 4049 + _RESOLVEDPRINCIPAL._serialized_end = 4110 + _PRIORITY._serialized_start = 4112 + _PRIORITY._serialized_end = 4191 + _WORKERSELECTOR._serialized_start = 4193 + _WORKERSELECTOR._serialized_end = 4252 + _ONCONFLICTOPTIONS._serialized_start = 4254 + _ONCONFLICTOPTIONS._serialized_end = 4359 + _TIMESKIPPINGCONFIG._serialized_start = 4362 + _TIMESKIPPINGCONFIG._serialized_end = 4532 + _FASTFORWARDCONFIG._serialized_start = 4534 + _FASTFORWARDCONFIG._serialized_end = 4610 + _TIMESKIPPINGSTATEPROPAGATION._serialized_start = 4613 + _TIMESKIPPINGSTATEPROPAGATION._serialized_end = 4794 + _TIMESKIPPINGINFO._serialized_start = 4797 + _TIMESKIPPINGINFO._serialized_end = 5051 + _TIMESKIPPINGFASTFORWARDINFO._serialized_start = 5054 + _TIMESKIPPINGFASTFORWARDINFO._serialized_end = 5238 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/common/v1/message_pb2.pyi b/temporalio/api/common/v1/message_pb2.pyi index f7ed8d0fd..6fea2d4b9 100644 --- a/temporalio/api/common/v1/message_pb2.pyi +++ b/temporalio/api/common/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -18,13 +18,9 @@ import temporalio.api.enums.v1.common_pb2 import temporalio.api.enums.v1.event_type_pb2 import temporalio.api.enums.v1.reset_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class DataBlob(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -40,13 +36,12 @@ class DataBlob(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "data", b"data", "encoding_type", b"encoding_type" - ], + field_name: typing.Literal["data", b"data", "encoding_type", b"encoding_type"], ) -> None: ... global___DataBlob = DataBlob +@typing.final class Payloads(google.protobuf.message.Message): """See `Payload`""" @@ -65,11 +60,12 @@ class Payloads(google.protobuf.message.Message): payloads: collections.abc.Iterable[global___Payload] | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["payloads", b"payloads"] + self, field_name: typing.Literal["payloads", b"payloads"] ) -> None: ... global___Payloads = Payloads +@typing.final class Payload(google.protobuf.message.Message): """Represents some binary (byte array) data (ex: activity input parameters or workflow result) with metadata which describes this binary data (format, encoding, encryption, etc). Serialization @@ -78,6 +74,7 @@ class Payload(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class MetadataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -92,10 +89,10 @@ class Payload(google.protobuf.message.Message): value: builtins.bytes = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class ExternalPayloadDetails(google.protobuf.message.Message): """Describes an externally stored object referenced by this payload.""" @@ -110,19 +107,19 @@ class Payload(google.protobuf.message.Message): size_bytes: builtins.int = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["size_bytes", b"size_bytes"] + self, field_name: typing.Literal["size_bytes", b"size_bytes"] ) -> None: ... METADATA_FIELD_NUMBER: builtins.int DATA_FIELD_NUMBER: builtins.int EXTERNAL_PAYLOADS_FIELD_NUMBER: builtins.int + data: builtins.bytes @property def metadata( self, ) -> google.protobuf.internal.containers.ScalarMap[ builtins.str, builtins.bytes ]: ... - data: builtins.bytes @property def external_payloads( self, @@ -130,6 +127,7 @@ class Payload(google.protobuf.message.Message): global___Payload.ExternalPayloadDetails ]: """Details about externally stored payloads associated with this payload.""" + def __init__( self, *, @@ -142,7 +140,7 @@ class Payload(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "data", b"data", "external_payloads", @@ -154,6 +152,7 @@ class Payload(google.protobuf.message.Message): global___Payload = Payload +@typing.final class SearchAttributes(google.protobuf.message.Message): """A user-defined set of *indexed* fields that are used/exposed when listing/searching workflows. The payload is not serialized in a user-defined way. @@ -161,6 +160,7 @@ class SearchAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class IndexedFieldsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -176,11 +176,10 @@ class SearchAttributes(google.protobuf.message.Message): value: global___Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... INDEXED_FIELDS_FIELD_NUMBER: builtins.int @@ -197,16 +196,18 @@ class SearchAttributes(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["indexed_fields", b"indexed_fields"] + self, field_name: typing.Literal["indexed_fields", b"indexed_fields"] ) -> None: ... global___SearchAttributes = SearchAttributes +@typing.final class Memo(google.protobuf.message.Message): """A user-defined set of *unindexed* fields that are exposed when listing/searching workflows""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class FieldsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -222,11 +223,10 @@ class Memo(google.protobuf.message.Message): value: global___Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... FIELDS_FIELD_NUMBER: builtins.int @@ -241,12 +241,11 @@ class Memo(google.protobuf.message.Message): *, fields: collections.abc.Mapping[builtins.str, global___Payload] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["fields", b"fields"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["fields", b"fields"]) -> None: ... global___Memo = Memo +@typing.final class Header(google.protobuf.message.Message): """Contains metadata that can be attached to a variety of requests, like starting a workflow, and can be propagated between, for example, workflows and activities. @@ -254,6 +253,7 @@ class Header(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class FieldsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -269,11 +269,10 @@ class Header(google.protobuf.message.Message): value: global___Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... FIELDS_FIELD_NUMBER: builtins.int @@ -288,12 +287,11 @@ class Header(google.protobuf.message.Message): *, fields: collections.abc.Mapping[builtins.str, global___Payload] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["fields", b"fields"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["fields", b"fields"]) -> None: ... global___Header = Header +@typing.final class WorkflowExecution(google.protobuf.message.Message): """Identifies a specific workflow within a namespace. Practically speaking, because run_id is a uuid, a workflow execution is globally unique. Note that many commands allow specifying an empty @@ -314,17 +312,14 @@ class WorkflowExecution(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "run_id", b"run_id", "workflow_id", b"workflow_id" - ], + field_name: typing.Literal["run_id", b"run_id", "workflow_id", b"workflow_id"], ) -> None: ... global___WorkflowExecution = WorkflowExecution +@typing.final class Execution(google.protobuf.message.Message): - """Identifies a specific execution within a namespace. This is used for standalone activities - executions in batch jobs currently. - """ + """Identifies a specific execution within a namespace.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -343,13 +338,14 @@ class Execution(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "business_id", b"business_id", "run_id", b"run_id", "type", b"type" ], ) -> None: ... global___Execution = Execution +@typing.final class WorkflowType(google.protobuf.message.Message): """Represents the identifier used by a workflow author to define the workflow. Typically, the name of a function. This is sometimes referred to as the workflow's "name" @@ -364,12 +360,11 @@ class WorkflowType(google.protobuf.message.Message): *, name: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["name", b"name"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... global___WorkflowType = WorkflowType +@typing.final class ActivityType(google.protobuf.message.Message): """Represents the identifier used by a activity author to define the activity. Typically, the name of a function. This is sometimes referred to as the activity's "name" @@ -384,12 +379,11 @@ class ActivityType(google.protobuf.message.Message): *, name: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["name", b"name"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... global___ActivityType = ActivityType +@typing.final class RetryPolicy(google.protobuf.message.Message): """How retries ought to be handled, usable by both workflows and activities""" @@ -400,23 +394,25 @@ class RetryPolicy(google.protobuf.message.Message): MAXIMUM_INTERVAL_FIELD_NUMBER: builtins.int MAXIMUM_ATTEMPTS_FIELD_NUMBER: builtins.int NON_RETRYABLE_ERROR_TYPES_FIELD_NUMBER: builtins.int - @property - def initial_interval(self) -> google.protobuf.duration_pb2.Duration: - """Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.""" backoff_coefficient: builtins.float """Coefficient used to calculate the next retry interval. The next retry interval is previous interval multiplied by the coefficient. Must be 1 or larger. """ + maximum_attempts: builtins.int + """Maximum number of attempts. When exceeded the retries stop even if not expired yet. + 1 disables retries. 0 means unlimited (up to the timeouts) + """ + @property + def initial_interval(self) -> google.protobuf.duration_pb2.Duration: + """Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.""" + @property def maximum_interval(self) -> google.protobuf.duration_pb2.Duration: """Maximum interval between retries. Exponential backoff leads to interval increase. This value is the cap of the increase. Default is 100x of the initial interval. """ - maximum_attempts: builtins.int - """Maximum number of attempts. When exceeded the retries stop even if not expired yet. - 1 disables retries. 0 means unlimited (up to the timeouts) - """ + @property def non_retryable_error_types( self, @@ -424,6 +420,7 @@ class RetryPolicy(google.protobuf.message.Message): """Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that this is not a substring match, the error *type* (not message) must match exactly. """ + def __init__( self, *, @@ -435,7 +432,7 @@ class RetryPolicy(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "initial_interval", b"initial_interval", "maximum_interval", @@ -444,7 +441,7 @@ class RetryPolicy(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backoff_coefficient", b"backoff_coefficient", "initial_interval", @@ -460,6 +457,7 @@ class RetryPolicy(google.protobuf.message.Message): global___RetryPolicy = RetryPolicy +@typing.final class MeteringMetadata(google.protobuf.message.Message): """Metadata relevant for metering purposes""" @@ -481,7 +479,7 @@ class MeteringMetadata(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "nonfirst_local_activity_execution_attempts", b"nonfirst_local_activity_execution_attempts", ], @@ -489,6 +487,7 @@ class MeteringMetadata(google.protobuf.message.Message): global___MeteringMetadata = MeteringMetadata +@typing.final class WorkerVersionStamp(google.protobuf.message.Message): """Deprecated. This message is replaced with `Deployment` and `VersioningBehavior`. Identifies the version(s) of a worker that processed a task @@ -514,13 +513,14 @@ class WorkerVersionStamp(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id", b"build_id", "use_versioning", b"use_versioning" ], ) -> None: ... global___WorkerVersionStamp = WorkerVersionStamp +@typing.final class WorkerVersionCapabilities(google.protobuf.message.Message): """Identifies the version that a worker is compatible with when polling or identifying itself, and whether or not this worker is opting into the build-id based versioning feature. This is @@ -550,7 +550,7 @@ class WorkerVersionCapabilities(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id", b"build_id", "deployment_series_name", @@ -562,6 +562,7 @@ class WorkerVersionCapabilities(google.protobuf.message.Message): global___WorkerVersionCapabilities = WorkerVersionCapabilities +@typing.final class ResetOptions(google.protobuf.message.Message): """Describes where and how to reset a workflow, used for batch reset currently and may be used for single-workflow reset later. @@ -576,12 +577,6 @@ class ResetOptions(google.protobuf.message.Message): RESET_REAPPLY_TYPE_FIELD_NUMBER: builtins.int CURRENT_RUN_ONLY_FIELD_NUMBER: builtins.int RESET_REAPPLY_EXCLUDE_TYPES_FIELD_NUMBER: builtins.int - @property - def first_workflow_task(self) -> google.protobuf.empty_pb2.Empty: - """Resets to the first workflow task completed or started event.""" - @property - def last_workflow_task(self) -> google.protobuf.empty_pb2.Empty: - """Resets to the last workflow task completed or started event.""" workflow_task_id: builtins.int """The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or `WORKFLOW_TASK_STARTED` event to reset to. @@ -602,6 +597,14 @@ class ResetOptions(google.protobuf.message.Message): """If true, limit the reset to only within the current run. (Applies to build_id targets and possibly others in the future.) """ + @property + def first_workflow_task(self) -> google.protobuf.empty_pb2.Empty: + """Resets to the first workflow task completed or started event.""" + + @property + def last_workflow_task(self) -> google.protobuf.empty_pb2.Empty: + """Resets to the last workflow task completed or started event.""" + @property def reset_reapply_exclude_types( self, @@ -609,6 +612,7 @@ class ResetOptions(google.protobuf.message.Message): temporalio.api.enums.v1.reset_pb2.ResetReapplyExcludeType.ValueType ]: """Event types not to be reapplied""" + def __init__( self, *, @@ -625,7 +629,7 @@ class ResetOptions(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id", b"build_id", "first_workflow_task", @@ -640,7 +644,7 @@ class ResetOptions(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id", b"build_id", "current_run_only", @@ -660,9 +664,9 @@ class ResetOptions(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["target", b"target"] + self, oneof_group: typing.Literal["target", b"target"] ) -> ( - typing_extensions.Literal[ + typing.Literal[ "first_workflow_task", "last_workflow_task", "workflow_task_id", "build_id" ] | None @@ -670,14 +674,21 @@ class ResetOptions(google.protobuf.message.Message): global___ResetOptions = ResetOptions +@typing.final class Callback(google.protobuf.message.Message): """Callback to attach to various events in the system, e.g. workflow run completion.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Nexus(google.protobuf.message.Message): + """Nexus callbacks are used to delivery Nexus operation completions, as defined in the Nexus RPC spec: + https://github.com/nexus-rpc/api/blob/main/SPEC.md#callback-urls + """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeaderEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -692,8 +703,7 @@ class Callback(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... URL_FIELD_NUMBER: builtins.int @@ -705,6 +715,7 @@ class Callback(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """Header to attach to callback request.""" + def __init__( self, *, @@ -712,10 +723,10 @@ class Callback(google.protobuf.message.Message): header: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["header", b"header", "url", b"url"], + self, field_name: typing.Literal["header", b"header", "url", b"url"] ) -> None: ... + @typing.final class Internal(google.protobuf.message.Message): """Callbacks to be delivered internally within the system. This variant is not settable in the API and will be rejected by the service with an INVALID_ARGUMENT error. @@ -733,18 +744,85 @@ class Callback(google.protobuf.message.Message): *, data: builtins.bytes = ..., ) -> None: ... + def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ... + + @typing.final + class NexusHandler(google.protobuf.message.Message): + """NexusHandler callbacks are requests to invoke a specific shape of Nexus operation on a Temporal worker. + The specified Nexus operation must have the following: + - Input: temporalio.api.notificationservice.v1.OnCompleteRequest + - Output: temporalio.api.notificationservice.v1.OnCompleteResponse + + The targeted Nexus service must be registered within the same namespace as the source operation + the callback is attached to. (While Nexus allows for cross-namespace operations, NexusHandler callbacks + are strictly caller-side.) + + NexusHandler callbacks are only supported for certain types of operations, e.g. standalone Nexus operations. + Attempting to attach a Worker callback for an unsupported operation will result in an INVALID_ARGUMENT + error from the server. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TASK_QUEUE_NAME_FIELD_NUMBER: builtins.int + SERVICE_FIELD_NUMBER: builtins.int + OPERATION_FIELD_NUMBER: builtins.int + SOURCE_CONTEXT_FIELD_NUMBER: builtins.int + task_queue_name: builtins.str + """Nexus task queue the Temporal worker is listening on. + + NOTE: This is not a temporalio.api.taskqueue.v1.TaskQueue to avoid a circular dependency. + """ + service: builtins.str + """Target Nexus service, e.g. "HTTPAdapter".""" + operation: builtins.str + """Target operation, e.g. "DeliverAsWebhook".""" + @property + def source_context(self) -> global___Payload: + """Arbitrary user-supplied data from the source operation's callsite. (As applicable, not all operations + support attaching context data.) + + There are restrictions on the maxium payload size a single callback can carry, as well as the + total sum of all source context payloads attached to an execution. See dynamic configuration: + "callback.nexusHandler.sourceContext.maxSize", "callback.nexusHandler.sourceContext.aggregateMaxSize". + """ + + def __init__( + self, + *, + task_queue_name: builtins.str = ..., + service: builtins.str = ..., + operation: builtins.str = ..., + source_context: global___Payload | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing.Literal["source_context", b"source_context"] + ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["data", b"data"] + self, + field_name: typing.Literal[ + "operation", + b"operation", + "service", + b"service", + "source_context", + b"source_context", + "task_queue_name", + b"task_queue_name", + ], ) -> None: ... NEXUS_FIELD_NUMBER: builtins.int INTERNAL_FIELD_NUMBER: builtins.int + NEXUS_HANDLER_FIELD_NUMBER: builtins.int LINKS_FIELD_NUMBER: builtins.int @property def nexus(self) -> global___Callback.Nexus: ... @property def internal(self) -> global___Callback.Internal: ... @property + def nexus_handler(self) -> global___Callback.NexusHandler: ... + @property def links( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ @@ -753,38 +831,50 @@ class Callback(google.protobuf.message.Message): """Links associated with the callback. It can be used to link to underlying resources of the callback. """ + def __init__( self, *, nexus: global___Callback.Nexus | None = ..., internal: global___Callback.Internal | None = ..., + nexus_handler: global___Callback.NexusHandler | None = ..., links: collections.abc.Iterable[global___Link] | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "internal", b"internal", "nexus", b"nexus", "variant", b"variant" + field_name: typing.Literal[ + "internal", + b"internal", + "nexus", + b"nexus", + "nexus_handler", + b"nexus_handler", + "variant", + b"variant", ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "internal", b"internal", "links", b"links", "nexus", b"nexus", + "nexus_handler", + b"nexus_handler", "variant", b"variant", ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["nexus", "internal"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["nexus", "internal", "nexus_handler"] | None: ... global___Callback = Callback +@typing.final class Link(google.protobuf.message.Message): """Link can be associated with history events. It might contain information about an external entity related to the history event. For example, workflow A makes a Nexus call that starts workflow B: @@ -794,9 +884,11 @@ class Link(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class WorkflowEvent(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class EventReference(google.protobuf.message.Message): """EventReference is a direct reference to a history event through the event ID.""" @@ -814,11 +906,12 @@ class Link(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "event_id", b"event_id", "event_type", b"event_type" ], ) -> None: ... + @typing.final class RequestIdReference(google.protobuf.message.Message): """RequestIdReference is a indirect reference to a history event through the request ID.""" @@ -836,7 +929,7 @@ class Link(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "event_type", b"event_type", "request_id", b"request_id" ], ) -> None: ... @@ -864,7 +957,7 @@ class Link(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "event_ref", b"event_ref", "reference", @@ -875,7 +968,7 @@ class Link(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "event_ref", b"event_ref", "namespace", @@ -891,9 +984,10 @@ class Link(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["reference", b"reference"] - ) -> typing_extensions.Literal["event_ref", "request_id_ref"] | None: ... + self, oneof_group: typing.Literal["reference", b"reference"] + ) -> typing.Literal["event_ref", "request_id_ref"] | None: ... + @typing.final class BatchJob(google.protobuf.message.Message): """A link to a built-in batch job. Batch jobs can be used to perform operations on a set of workflows (e.g. terminate, signal, cancel, etc). @@ -910,9 +1004,10 @@ class Link(google.protobuf.message.Message): job_id: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["job_id", b"job_id"] + self, field_name: typing.Literal["job_id", b"job_id"] ) -> None: ... + @typing.final class Activity(google.protobuf.message.Message): """A link to an activity.""" @@ -933,7 +1028,7 @@ class Link(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "namespace", @@ -943,6 +1038,7 @@ class Link(google.protobuf.message.Message): ], ) -> None: ... + @typing.final class NexusOperation(google.protobuf.message.Message): """A link to a standalone Nexus operation.""" @@ -963,7 +1059,7 @@ class Link(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "operation_id", @@ -973,6 +1069,7 @@ class Link(google.protobuf.message.Message): ], ) -> None: ... + @typing.final class Workflow(google.protobuf.message.Message): """A link to a workflow execution. This is a more general version of WorkflowEvent that doesn't specify a particular event within the workflow, useful when you want to link to a workflow but there is no particular event to link to, @@ -999,7 +1096,7 @@ class Link(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "reason", @@ -1011,11 +1108,65 @@ class Link(google.protobuf.message.Message): ], ) -> None: ... + @typing.final + class Callback(google.protobuf.message.Message): + """A link to a worker callback attached to an execution. An execution (e.g. standalone Nexus operation) can have + multiple callbacks attached, and will be differentiated by the request_id used when the callback is invoked. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + EXECUTION_FIELD_NUMBER: builtins.int + COMPONENT_PATH_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + namespace: builtins.str + request_id: builtins.str + """Server-generate request ID sent when the callback was dispatched.""" + @property + def execution(self) -> global___Execution: ... + @property + def component_path( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.str + ]: + """In most cases, the Execution is sufficient to identify the callback's source. But the callback could have + been attached some child component of that execution. e.g. a workflow update. The component path describes + the unique component as applicable, typically ending with a unique ID. e.g. ["Update", $workflowUpdateId ] + """ + + def __init__( + self, + *, + namespace: builtins.str = ..., + execution: global___Execution | None = ..., + component_path: collections.abc.Iterable[builtins.str] | None = ..., + request_id: builtins.str = ..., + ) -> None: ... + def HasField( + self, field_name: typing.Literal["execution", b"execution"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing.Literal[ + "component_path", + b"component_path", + "execution", + b"execution", + "namespace", + b"namespace", + "request_id", + b"request_id", + ], + ) -> None: ... + WORKFLOW_EVENT_FIELD_NUMBER: builtins.int BATCH_JOB_FIELD_NUMBER: builtins.int ACTIVITY_FIELD_NUMBER: builtins.int NEXUS_OPERATION_FIELD_NUMBER: builtins.int WORKFLOW_FIELD_NUMBER: builtins.int + CALLBACK_FIELD_NUMBER: builtins.int @property def workflow_event(self) -> global___Link.WorkflowEvent: ... @property @@ -1026,6 +1177,8 @@ class Link(google.protobuf.message.Message): def nexus_operation(self) -> global___Link.NexusOperation: ... @property def workflow(self) -> global___Link.Workflow: ... + @property + def callback(self) -> global___Link.Callback: ... def __init__( self, *, @@ -1034,14 +1187,17 @@ class Link(google.protobuf.message.Message): activity: global___Link.Activity | None = ..., nexus_operation: global___Link.NexusOperation | None = ..., workflow: global___Link.Workflow | None = ..., + callback: global___Link.Callback | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "batch_job", b"batch_job", + "callback", + b"callback", "nexus_operation", b"nexus_operation", "variant", @@ -1054,11 +1210,13 @@ class Link(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "batch_job", b"batch_job", + "callback", + b"callback", "nexus_operation", b"nexus_operation", "variant", @@ -1070,16 +1228,22 @@ class Link(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] + self, oneof_group: typing.Literal["variant", b"variant"] ) -> ( - typing_extensions.Literal[ - "workflow_event", "batch_job", "activity", "nexus_operation", "workflow" + typing.Literal[ + "workflow_event", + "batch_job", + "activity", + "nexus_operation", + "workflow", + "callback", ] | None ): ... global___Link = Link +@typing.final class Principal(google.protobuf.message.Message): """Principal is an authenticated caller identity computed by the server from trusted authentication context. @@ -1100,11 +1264,45 @@ class Principal(google.protobuf.message.Message): name: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["name", b"name", "type", b"type"] + self, field_name: typing.Literal["name", b"name", "type", b"type"] ) -> None: ... global___Principal = Principal +@typing.final +class ResolvedPrincipal(google.protobuf.message.Message): + """ResolvedPrincipal is a principal returned to an API caller.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + NAME_AT_WRITE_TIME_FIELD_NUMBER: builtins.int + type: builtins.str + """Low-cardinality category of the principal (e.g., "jwt", "users").""" + name_at_write_time: builtins.str + """Identifier within that category (e.g., sub JWT claim, email address). + + (-- api-linter: core::0140::prepositions=disabled + aip.dev/not-precedent: Identifies the principal name snapshot used for this response. --) + (-- api-linter: core::0142::time-field-type=disabled + aip.dev/not-precedent: This string is a principal name snapshot, not a timestamp. --) + """ + def __init__( + self, + *, + type: builtins.str = ..., + name_at_write_time: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing.Literal[ + "name_at_write_time", b"name_at_write_time", "type", b"type" + ], + ) -> None: ... + +global___ResolvedPrincipal = ResolvedPrincipal + +@typing.final class Priority(google.protobuf.message.Message): """Priority contains metadata that controls relative ordering of task processing when tasks are backed up in a queue. Initially, Priority will be used in @@ -1203,7 +1401,7 @@ class Priority(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "fairness_key", b"fairness_key", "fairness_weight", @@ -1215,6 +1413,7 @@ class Priority(google.protobuf.message.Message): global___Priority = Priority +@typing.final class WorkerSelector(google.protobuf.message.Message): """This is used to send commands to a specific worker or a group of workers. Right now, it is used to send commands to a specific worker instance. @@ -1233,22 +1432,23 @@ class WorkerSelector(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "selector", b"selector", "worker_instance_key", b"worker_instance_key" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "selector", b"selector", "worker_instance_key", b"worker_instance_key" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["selector", b"selector"] - ) -> typing_extensions.Literal["worker_instance_key"] | None: ... + self, oneof_group: typing.Literal["selector", b"selector"] + ) -> typing.Literal["worker_instance_key"] | None: ... global___WorkerSelector = WorkerSelector +@typing.final class OnConflictOptions(google.protobuf.message.Message): """When starting an execution with a conflict policy that uses an existing execution and there is already an existing running execution, OnConflictOptions defines actions to be taken on the existing running execution. @@ -1274,7 +1474,7 @@ class OnConflictOptions(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attach_completion_callbacks", b"attach_completion_callbacks", "attach_links", @@ -1286,6 +1486,7 @@ class OnConflictOptions(google.protobuf.message.Message): global___OnConflictOptions = OnConflictOptions +@typing.final class TimeSkippingConfig(google.protobuf.message.Message): """The configuration for time skipping of an execution. When time skipping is enabled, virtual time advances automatically whenever there is no in-flight work. @@ -1312,9 +1513,6 @@ class TimeSkippingConfig(google.protobuf.message.Message): MAX_SESSION_SKIP_COUNT_FIELD_NUMBER: builtins.int enabled: builtins.bool """Enables or disables time skipping for this workflow execution.""" - @property - def fast_forward_config(self) -> global___FastForwardConfig: - """An optional opt-in to control time-skipping behavior through fast-forward; see its definition for details.""" disable_propagation: builtins.bool """By default, executions started by another execution (e.g. a child workflow of a parent workflow or a schedule with the time-skipping policy enabled) inherit the "enabled" flag and skip time when possible. @@ -1333,6 +1531,10 @@ class TimeSkippingConfig(google.protobuf.message.Message): If this field is not set, the server applies a large default value (e.g. 100). The default can be changed through dynamic config, and is overridden by this field when set. """ + @property + def fast_forward_config(self) -> global___FastForwardConfig: + """An optional opt-in to control time-skipping behavior through fast-forward; see its definition for details.""" + def __init__( self, *, @@ -1342,14 +1544,11 @@ class TimeSkippingConfig(google.protobuf.message.Message): max_session_skip_count: builtins.int = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "fast_forward_config", b"fast_forward_config" - ], + self, field_name: typing.Literal["fast_forward_config", b"fast_forward_config"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "disable_propagation", b"disable_propagation", "enabled", @@ -1363,6 +1562,7 @@ class TimeSkippingConfig(google.protobuf.message.Message): global___TimeSkippingConfig = TimeSkippingConfig +@typing.final class FastForwardConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1385,6 +1585,7 @@ class FastForwardConfig(google.protobuf.message.Message): If this duration exceeds the remaining execution timeout, time will not pass beyond the end of the execution, and the fast-forward won't have a chance to complete. """ + def __init__( self, *, @@ -1392,15 +1593,15 @@ class FastForwardConfig(google.protobuf.message.Message): duration: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["duration", b"duration"] + self, field_name: typing.Literal["duration", b"duration"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["duration", b"duration", "id", b"id"], + self, field_name: typing.Literal["duration", b"duration", "id", b"id"] ) -> None: ... global___FastForwardConfig = FastForwardConfig +@typing.final class TimeSkippingStatePropagation(google.protobuf.message.Message): """The time-skipping state that needs to be propagated from one execution to another, or through a chain of runs within the same execution. @@ -1411,16 +1612,18 @@ class TimeSkippingStatePropagation(google.protobuf.message.Message): INITIAL_SKIPPED_DURATION_FIELD_NUMBER: builtins.int FAST_FORWARD_TARGET_TIME_FIELD_NUMBER: builtins.int INITIAL_SKIP_COUNT_FIELD_NUMBER: builtins.int + initial_skip_count: builtins.int + """The initial skip count. It only propagates across a chain of runs within the same execution.""" @property def initial_skipped_duration(self) -> google.protobuf.duration_pb2.Duration: """The time skipped by the previous run. It is propagated both to executions started by the current execution and through a chain of runs (CaN, cron, retry). """ + @property def fast_forward_target_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The fast-forward target time. It only propagates across a chain of runs within the same execution.""" - initial_skip_count: builtins.int - """The initial skip count. It only propagates across a chain of runs within the same execution.""" + def __init__( self, *, @@ -1430,7 +1633,7 @@ class TimeSkippingStatePropagation(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "fast_forward_target_time", b"fast_forward_target_time", "initial_skipped_duration", @@ -1439,7 +1642,7 @@ class TimeSkippingStatePropagation(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "fast_forward_target_time", b"fast_forward_target_time", "initial_skip_count", @@ -1451,6 +1654,7 @@ class TimeSkippingStatePropagation(google.protobuf.message.Message): global___TimeSkippingStatePropagation = TimeSkippingStatePropagation +@typing.final class TimeSkippingInfo(google.protobuf.message.Message): """Describes the current time-skipping state of a workflow execution.""" @@ -1460,11 +1664,16 @@ class TimeSkippingInfo(google.protobuf.message.Message): EFFECTIVE_CONFIG_FIELD_NUMBER: builtins.int FAST_FORWARD_INFO_FIELD_NUMBER: builtins.int CURRENT_SESSION_SKIP_COUNT_FIELD_NUMBER: builtins.int + current_session_skip_count: builtins.int + """The number of skips accumulated in the current session, bounded by `max_session_skip_count`. + A new session begins — and this resets to 0 — each time `max_session_skip_count` is updated. + """ @property def current_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Current virtual time of the execution. If the execution hasn't skipped any time yet, it will be the same as wall clock time. """ + @property def effective_config(self) -> global___TimeSkippingConfig: """The current effective time-skipping config, which can differ from the config the user last set: @@ -1472,13 +1681,11 @@ class TimeSkippingInfo(google.protobuf.message.Message): skipping time — e.g. it is set to false once `max_session_skip_count` is reached, the fast-forward completes, or a client call disables time skipping. """ + @property def fast_forward_info(self) -> global___TimeSkippingFastForwardInfo: """The execution's current fast-forward, if any. Unset if time skipping is enabled without a fast-forward.""" - current_session_skip_count: builtins.int - """The number of skips accumulated in the current session, bounded by `max_session_skip_count`. - A new session begins — and this resets to 0 — each time `max_session_skip_count` is updated. - """ + def __init__( self, *, @@ -1489,7 +1696,7 @@ class TimeSkippingInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_time", b"current_time", "effective_config", @@ -1500,7 +1707,7 @@ class TimeSkippingInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_session_skip_count", b"current_session_skip_count", "current_time", @@ -1514,6 +1721,7 @@ class TimeSkippingInfo(google.protobuf.message.Message): global___TimeSkippingInfo = TimeSkippingInfo +@typing.final class TimeSkippingFastForwardInfo(google.protobuf.message.Message): """TimeSkippingFastForwardInfo describes the current time-skipping fast-forward on an execution.""" @@ -1523,16 +1731,18 @@ class TimeSkippingFastForwardInfo(google.protobuf.message.Message): FAST_FORWARD_ID_FIELD_NUMBER: builtins.int TARGET_TIME_FIELD_NUMBER: builtins.int HAS_COMPLETED_FIELD_NUMBER: builtins.int + fast_forward_id: builtins.str + """The client-supplied ID set alongside `fast_forward` duration.""" + has_completed: builtins.bool + """True once `target_time` has been reached.""" @property def fast_forward_duration(self) -> google.protobuf.duration_pb2.Duration: """The client-supplied `fast_forward` duration.""" - fast_forward_id: builtins.str - """The client-supplied ID set alongside `fast_forward` duration.""" + @property def target_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The target virtual time at which the fast-forward completes.""" - has_completed: builtins.bool - """True once `target_time` has been reached.""" + def __init__( self, *, @@ -1543,7 +1753,7 @@ class TimeSkippingFastForwardInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "fast_forward_duration", b"fast_forward_duration", "target_time", @@ -1552,7 +1762,7 @@ class TimeSkippingFastForwardInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "fast_forward_duration", b"fast_forward_duration", "fast_forward_id", diff --git a/temporalio/api/compute/v1/config_pb2.py b/temporalio/api/compute/v1/config_pb2.py index ef3965397..0007bc527 100644 --- a/temporalio/api/compute/v1/config_pb2.py +++ b/temporalio/api/compute/v1/config_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -27,102 +26,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n$temporal/api/compute/v1/config.proto\x12\x17temporal.api.compute.v1\x1a&temporal/api/compute/v1/provider.proto\x1a$temporal/api/compute/v1/scaler.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a google/protobuf/field_mask.proto"\xcf\x01\n\x19\x43omputeConfigScalingGroup\x12>\n\x10task_queue_types\x18\x01 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12:\n\x08provider\x18\x03 \x01(\x0b\x32(.temporal.api.compute.v1.ComputeProvider\x12\x36\n\x06scaler\x18\x04 \x01(\x0b\x32&.temporal.api.compute.v1.ComputeScaler"\xcc\x01\n\rComputeConfig\x12Q\n\x0escaling_groups\x18\x01 \x03(\x0b\x32\x39.temporal.api.compute.v1.ComputeConfig.ScalingGroupsEntry\x1ah\n\x12ScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.temporal.api.compute.v1.ComputeConfigScalingGroup:\x02\x38\x01"\x9d\x01\n\x1f\x43omputeConfigScalingGroupUpdate\x12I\n\rscaling_group\x18\x01 \x01(\x0b\x32\x32.temporal.api.compute.v1.ComputeConfigScalingGroup\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\xe1\x01\n\x14\x43omputeConfigSummary\x12X\n\x0escaling_groups\x18\x01 \x03(\x0b\x32@.temporal.api.compute.v1.ComputeConfigSummary.ScalingGroupsEntry\x1ao\n\x12ScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0b\x32\x39.temporal.api.compute.v1.ComputeConfigScalingGroupSummary:\x02\x38\x01"y\n ComputeConfigScalingGroupSummary\x12>\n\x10task_queue_types\x18\x01 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x15\n\rprovider_type\x18\x02 \x01(\tB\x8d\x01\n\x1aio.temporal.api.compute.v1B\x0b\x43onfigProtoP\x01Z%go.temporal.io/api/compute/v1;compute\xaa\x02\x19Temporalio.Api.Compute.V1\xea\x02\x1cTemporalio::Api::Compute::V1b\x06proto3' + b'\n$temporal/api/compute/v1/config.proto\x12\x17temporal.api.compute.v1\x1a&temporal/api/compute/v1/provider.proto\x1a$temporal/api/compute/v1/scaler.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a google/protobuf/field_mask.proto"\xe3\x01\n\x19\x43omputeConfigScalingGroup\x12>\n\x10task_queue_types\x18\x01 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x12\n\nregion_ids\x18\x02 \x03(\t\x12:\n\x08provider\x18\x03 \x01(\x0b\x32(.temporal.api.compute.v1.ComputeProvider\x12\x36\n\x06scaler\x18\x04 \x01(\x0b\x32&.temporal.api.compute.v1.ComputeScaler"\xcc\x01\n\rComputeConfig\x12Q\n\x0escaling_groups\x18\x01 \x03(\x0b\x32\x39.temporal.api.compute.v1.ComputeConfig.ScalingGroupsEntry\x1ah\n\x12ScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x41\n\x05value\x18\x02 \x01(\x0b\x32\x32.temporal.api.compute.v1.ComputeConfigScalingGroup:\x02\x38\x01"\x9d\x01\n\x1f\x43omputeConfigScalingGroupUpdate\x12I\n\rscaling_group\x18\x01 \x01(\x0b\x32\x32.temporal.api.compute.v1.ComputeConfigScalingGroup\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\xe1\x01\n\x14\x43omputeConfigSummary\x12X\n\x0escaling_groups\x18\x01 \x03(\x0b\x32@.temporal.api.compute.v1.ComputeConfigSummary.ScalingGroupsEntry\x1ao\n\x12ScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0b\x32\x39.temporal.api.compute.v1.ComputeConfigScalingGroupSummary:\x02\x38\x01"\x8d\x01\n ComputeConfigScalingGroupSummary\x12>\n\x10task_queue_types\x18\x01 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x15\n\rprovider_type\x18\x02 \x01(\t\x12\x12\n\nregion_ids\x18\x03 \x03(\tB\x8d\x01\n\x1aio.temporal.api.compute.v1B\x0b\x43onfigProtoP\x01Z%go.temporal.io/api/compute/v1;compute\xaa\x02\x19Temporalio.Api.Compute.V1\xea\x02\x1cTemporalio::Api::Compute::V1b\x06proto3' ) - -_COMPUTECONFIGSCALINGGROUP = DESCRIPTOR.message_types_by_name[ - "ComputeConfigScalingGroup" -] -_COMPUTECONFIG = DESCRIPTOR.message_types_by_name["ComputeConfig"] -_COMPUTECONFIG_SCALINGGROUPSENTRY = _COMPUTECONFIG.nested_types_by_name[ - "ScalingGroupsEntry" -] -_COMPUTECONFIGSCALINGGROUPUPDATE = DESCRIPTOR.message_types_by_name[ - "ComputeConfigScalingGroupUpdate" -] -_COMPUTECONFIGSUMMARY = DESCRIPTOR.message_types_by_name["ComputeConfigSummary"] -_COMPUTECONFIGSUMMARY_SCALINGGROUPSENTRY = _COMPUTECONFIGSUMMARY.nested_types_by_name[ - "ScalingGroupsEntry" -] -_COMPUTECONFIGSCALINGGROUPSUMMARY = DESCRIPTOR.message_types_by_name[ - "ComputeConfigScalingGroupSummary" -] -ComputeConfigScalingGroup = _reflection.GeneratedProtocolMessageType( - "ComputeConfigScalingGroup", - (_message.Message,), - { - "DESCRIPTOR": _COMPUTECONFIGSCALINGGROUP, - "__module__": "temporalio.api.compute.v1.config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.compute.v1.ComputeConfigScalingGroup) - }, -) -_sym_db.RegisterMessage(ComputeConfigScalingGroup) - -ComputeConfig = _reflection.GeneratedProtocolMessageType( - "ComputeConfig", - (_message.Message,), - { - "ScalingGroupsEntry": _reflection.GeneratedProtocolMessageType( - "ScalingGroupsEntry", - (_message.Message,), - { - "DESCRIPTOR": _COMPUTECONFIG_SCALINGGROUPSENTRY, - "__module__": "temporalio.api.compute.v1.config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.compute.v1.ComputeConfig.ScalingGroupsEntry) - }, - ), - "DESCRIPTOR": _COMPUTECONFIG, - "__module__": "temporalio.api.compute.v1.config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.compute.v1.ComputeConfig) - }, -) -_sym_db.RegisterMessage(ComputeConfig) -_sym_db.RegisterMessage(ComputeConfig.ScalingGroupsEntry) - -ComputeConfigScalingGroupUpdate = _reflection.GeneratedProtocolMessageType( - "ComputeConfigScalingGroupUpdate", - (_message.Message,), - { - "DESCRIPTOR": _COMPUTECONFIGSCALINGGROUPUPDATE, - "__module__": "temporalio.api.compute.v1.config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.compute.v1.ComputeConfigScalingGroupUpdate) - }, -) -_sym_db.RegisterMessage(ComputeConfigScalingGroupUpdate) - -ComputeConfigSummary = _reflection.GeneratedProtocolMessageType( - "ComputeConfigSummary", - (_message.Message,), - { - "ScalingGroupsEntry": _reflection.GeneratedProtocolMessageType( - "ScalingGroupsEntry", - (_message.Message,), - { - "DESCRIPTOR": _COMPUTECONFIGSUMMARY_SCALINGGROUPSENTRY, - "__module__": "temporalio.api.compute.v1.config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.compute.v1.ComputeConfigSummary.ScalingGroupsEntry) - }, - ), - "DESCRIPTOR": _COMPUTECONFIGSUMMARY, - "__module__": "temporalio.api.compute.v1.config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.compute.v1.ComputeConfigSummary) - }, -) -_sym_db.RegisterMessage(ComputeConfigSummary) -_sym_db.RegisterMessage(ComputeConfigSummary.ScalingGroupsEntry) - -ComputeConfigScalingGroupSummary = _reflection.GeneratedProtocolMessageType( - "ComputeConfigScalingGroupSummary", - (_message.Message,), - { - "DESCRIPTOR": _COMPUTECONFIGSCALINGGROUPSUMMARY, - "__module__": "temporalio.api.compute.v1.config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.compute.v1.ComputeConfigScalingGroupSummary) - }, -) -_sym_db.RegisterMessage(ComputeConfigScalingGroupSummary) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.compute.v1B\013ConfigProtoP\001Z%go.temporal.io/api/compute/v1;compute\252\002\031Temporalio.Api.Compute.V1\352\002\034Temporalio::Api::Compute::V1" @@ -131,17 +39,17 @@ _COMPUTECONFIGSUMMARY_SCALINGGROUPSENTRY._options = None _COMPUTECONFIGSUMMARY_SCALINGGROUPSENTRY._serialized_options = b"8\001" _COMPUTECONFIGSCALINGGROUP._serialized_start = 218 - _COMPUTECONFIGSCALINGGROUP._serialized_end = 425 - _COMPUTECONFIG._serialized_start = 428 - _COMPUTECONFIG._serialized_end = 632 - _COMPUTECONFIG_SCALINGGROUPSENTRY._serialized_start = 528 - _COMPUTECONFIG_SCALINGGROUPSENTRY._serialized_end = 632 - _COMPUTECONFIGSCALINGGROUPUPDATE._serialized_start = 635 - _COMPUTECONFIGSCALINGGROUPUPDATE._serialized_end = 792 - _COMPUTECONFIGSUMMARY._serialized_start = 795 - _COMPUTECONFIGSUMMARY._serialized_end = 1020 - _COMPUTECONFIGSUMMARY_SCALINGGROUPSENTRY._serialized_start = 909 - _COMPUTECONFIGSUMMARY_SCALINGGROUPSENTRY._serialized_end = 1020 - _COMPUTECONFIGSCALINGGROUPSUMMARY._serialized_start = 1022 - _COMPUTECONFIGSCALINGGROUPSUMMARY._serialized_end = 1143 + _COMPUTECONFIGSCALINGGROUP._serialized_end = 445 + _COMPUTECONFIG._serialized_start = 448 + _COMPUTECONFIG._serialized_end = 652 + _COMPUTECONFIG_SCALINGGROUPSENTRY._serialized_start = 548 + _COMPUTECONFIG_SCALINGGROUPSENTRY._serialized_end = 652 + _COMPUTECONFIGSCALINGGROUPUPDATE._serialized_start = 655 + _COMPUTECONFIGSCALINGGROUPUPDATE._serialized_end = 812 + _COMPUTECONFIGSUMMARY._serialized_start = 815 + _COMPUTECONFIGSUMMARY._serialized_end = 1040 + _COMPUTECONFIGSUMMARY_SCALINGGROUPSENTRY._serialized_start = 929 + _COMPUTECONFIGSUMMARY_SCALINGGROUPSENTRY._serialized_end = 1040 + _COMPUTECONFIGSCALINGGROUPSUMMARY._serialized_start = 1043 + _COMPUTECONFIGSCALINGGROUPSUMMARY._serialized_end = 1184 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/compute/v1/config_pb2.pyi b/temporalio/api/compute/v1/config_pb2.pyi index 7c0221f4c..2656dec60 100644 --- a/temporalio/api/compute/v1/config_pb2.pyi +++ b/temporalio/api/compute/v1/config_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.field_mask_pb2 @@ -16,17 +16,14 @@ import temporalio.api.compute.v1.provider_pb2 import temporalio.api.compute.v1.scaler_pb2 import temporalio.api.enums.v1.task_queue_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ComputeConfigScalingGroup(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor TASK_QUEUE_TYPES_FIELD_NUMBER: builtins.int + REGION_IDS_FIELD_NUMBER: builtins.int PROVIDER_FIELD_NUMBER: builtins.int SCALER_FIELD_NUMBER: builtins.int @property @@ -39,16 +36,27 @@ class ComputeConfigScalingGroup(google.protobuf.message.Message): If not provided, this scaling group serves all not otherwise defined task types. """ + + @property + def region_ids( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Optional. If set, this scaling group is used only while the namespace is + active in one of these regions. + """ + @property def provider(self) -> temporalio.api.compute.v1.provider_pb2.ComputeProvider: """Stores instructions for a worker control plane controller how to respond to worker lifeycle events. """ + @property def scaler(self) -> temporalio.api.compute.v1.scaler_pb2.ComputeScaler: """Informs a worker lifecycle controller *when* and *how often* to perform certain worker lifecycle actions like starting a serverless worker. """ + def __init__( self, *, @@ -56,20 +64,20 @@ class ComputeConfigScalingGroup(google.protobuf.message.Message): temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType ] | None = ..., + region_ids: collections.abc.Iterable[builtins.str] | None = ..., provider: temporalio.api.compute.v1.provider_pb2.ComputeProvider | None = ..., scaler: temporalio.api.compute.v1.scaler_pb2.ComputeScaler | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "provider", b"provider", "scaler", b"scaler" - ], + self, field_name: typing.Literal["provider", b"provider", "scaler", b"scaler"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "provider", b"provider", + "region_ids", + b"region_ids", "scaler", b"scaler", "task_queue_types", @@ -79,6 +87,7 @@ class ComputeConfigScalingGroup(google.protobuf.message.Message): global___ComputeConfigScalingGroup = ComputeConfigScalingGroup +@typing.final class ComputeConfig(google.protobuf.message.Message): """ComputeConfig stores configuration that helps a worker control plane controller understand *when* and *how* to respond to worker lifecycle @@ -87,6 +96,7 @@ class ComputeConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ScalingGroupsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -102,11 +112,10 @@ class ComputeConfig(google.protobuf.message.Message): value: global___ComputeConfigScalingGroup | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SCALING_GROUPS_FIELD_NUMBER: builtins.int @@ -124,6 +133,7 @@ class ComputeConfig(google.protobuf.message.Message): The key of the map is the ID of the scaling group used to reference it in subsequent update calls. """ + def __init__( self, *, @@ -133,11 +143,12 @@ class ComputeConfig(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["scaling_groups", b"scaling_groups"] + self, field_name: typing.Literal["scaling_groups", b"scaling_groups"] ) -> None: ... global___ComputeConfig = ComputeConfig +@typing.final class ComputeConfigScalingGroupUpdate(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -152,9 +163,10 @@ class ComputeConfigScalingGroupUpdate(google.protobuf.message.Message): - Empty mask for an existing scaling group is no-op: no change. - Non-empty mask for an existing scaling group will update/unset only to the fields mentioned in the mask. - - Accepted paths: "task_queue_types", "provider", "provider.type", "provider.details", + - Accepted paths: "task_queue_types", "region_ids", "provider", "provider.type", "provider.details", "provider.nexus_endpoint", "scaler", "scaler.type", "scaler.details" """ + def __init__( self, *, @@ -163,24 +175,26 @@ class ComputeConfigScalingGroupUpdate(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "scaling_group", b"scaling_group", "update_mask", b"update_mask" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "scaling_group", b"scaling_group", "update_mask", b"update_mask" ], ) -> None: ... global___ComputeConfigScalingGroupUpdate = ComputeConfigScalingGroupUpdate +@typing.final class ComputeConfigSummary(google.protobuf.message.Message): """A subset of information in ComputeConfig optimized for list views.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ScalingGroupsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -196,11 +210,10 @@ class ComputeConfigSummary(google.protobuf.message.Message): value: global___ComputeConfigScalingGroupSummary | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SCALING_GROUPS_FIELD_NUMBER: builtins.int @@ -219,23 +232,31 @@ class ComputeConfigSummary(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["scaling_groups", b"scaling_groups"] + self, field_name: typing.Literal["scaling_groups", b"scaling_groups"] ) -> None: ... global___ComputeConfigSummary = ComputeConfigSummary +@typing.final class ComputeConfigScalingGroupSummary(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor TASK_QUEUE_TYPES_FIELD_NUMBER: builtins.int PROVIDER_TYPE_FIELD_NUMBER: builtins.int + REGION_IDS_FIELD_NUMBER: builtins.int + provider_type: builtins.str @property def task_queue_types( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType ]: ... - provider_type: builtins.str + @property + def region_ids( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + builtins.str + ]: ... def __init__( self, *, @@ -244,11 +265,17 @@ class ComputeConfigScalingGroupSummary(google.protobuf.message.Message): ] | None = ..., provider_type: builtins.str = ..., + region_ids: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "provider_type", b"provider_type", "task_queue_types", b"task_queue_types" + field_name: typing.Literal[ + "provider_type", + b"provider_type", + "region_ids", + b"region_ids", + "task_queue_types", + b"task_queue_types", ], ) -> None: ... diff --git a/temporalio/api/compute/v1/provider_pb2.py b/temporalio/api/compute/v1/provider_pb2.py index 26d921e2b..8bfe93155 100644 --- a/temporalio/api/compute/v1/provider_pb2.py +++ b/temporalio/api/compute/v1/provider_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -22,19 +21,8 @@ b'\n&temporal/api/compute/v1/provider.proto\x12\x17temporal.api.compute.v1\x1a$temporal/api/common/v1/message.proto"i\n\x0f\x43omputeProvider\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x30\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x16\n\x0enexus_endpoint\x18\n \x01(\tB\x8f\x01\n\x1aio.temporal.api.compute.v1B\rProviderProtoP\x01Z%go.temporal.io/api/compute/v1;compute\xaa\x02\x19Temporalio.Api.Compute.V1\xea\x02\x1cTemporalio::Api::Compute::V1b\x06proto3' ) - -_COMPUTEPROVIDER = DESCRIPTOR.message_types_by_name["ComputeProvider"] -ComputeProvider = _reflection.GeneratedProtocolMessageType( - "ComputeProvider", - (_message.Message,), - { - "DESCRIPTOR": _COMPUTEPROVIDER, - "__module__": "temporalio.api.compute.v1.provider_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.compute.v1.ComputeProvider) - }, -) -_sym_db.RegisterMessage(ComputeProvider) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.compute.v1B\rProviderProtoP\001Z%go.temporal.io/api/compute/v1;compute\252\002\031Temporalio.Api.Compute.V1\352\002\034Temporalio::Api::Compute::V1" diff --git a/temporalio/api/compute/v1/provider_pb2.pyi b/temporalio/api/compute/v1/provider_pb2.pyi index 90f566aa4..3b2ba7f4d 100644 --- a/temporalio/api/compute/v1/provider_pb2.pyi +++ b/temporalio/api/compute/v1/provider_pb2.pyi @@ -4,20 +4,16 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message import temporalio.api.common.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ComputeProvider(google.protobuf.message.Message): """ComputeProvider stores information used by a worker control plane controller to respond to worker lifecycle events. For example, when a Task is received @@ -36,6 +32,10 @@ class ComputeProvider(google.protobuf.message.Message): can be used by implementations to understand how to interpret the contents of the provider_details field. """ + nexus_endpoint: builtins.str + """Optional. If the compute provider is a Nexus service, this should point + there. + """ @property def details(self) -> temporalio.api.common.v1.message_pb2.Payload: """Contains provider-specific instructions and configuration. @@ -44,10 +44,7 @@ class ComputeProvider(google.protobuf.message.Message): For remote-implemented providers, you might use your own content converters according to what the remote endpoints understand. """ - nexus_endpoint: builtins.str - """Optional. If the compute provider is a Nexus service, this should point - there. - """ + def __init__( self, *, @@ -56,11 +53,11 @@ class ComputeProvider(google.protobuf.message.Message): nexus_endpoint: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "nexus_endpoint", b"nexus_endpoint", "type", b"type" ], ) -> None: ... diff --git a/temporalio/api/compute/v1/scaler_pb2.py b/temporalio/api/compute/v1/scaler_pb2.py index 84bfe7b24..5229c3ea7 100644 --- a/temporalio/api/compute/v1/scaler_pb2.py +++ b/temporalio/api/compute/v1/scaler_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -22,19 +21,8 @@ b'\n$temporal/api/compute/v1/scaler.proto\x12\x17temporal.api.compute.v1\x1a$temporal/api/common/v1/message.proto"O\n\rComputeScaler\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x30\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadB\x8d\x01\n\x1aio.temporal.api.compute.v1B\x0bScalerProtoP\x01Z%go.temporal.io/api/compute/v1;compute\xaa\x02\x19Temporalio.Api.Compute.V1\xea\x02\x1cTemporalio::Api::Compute::V1b\x06proto3' ) - -_COMPUTESCALER = DESCRIPTOR.message_types_by_name["ComputeScaler"] -ComputeScaler = _reflection.GeneratedProtocolMessageType( - "ComputeScaler", - (_message.Message,), - { - "DESCRIPTOR": _COMPUTESCALER, - "__module__": "temporalio.api.compute.v1.scaler_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.compute.v1.ComputeScaler) - }, -) -_sym_db.RegisterMessage(ComputeScaler) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.compute.v1B\013ScalerProtoP\001Z%go.temporal.io/api/compute/v1;compute\252\002\031Temporalio.Api.Compute.V1\352\002\034Temporalio::Api::Compute::V1" diff --git a/temporalio/api/compute/v1/scaler_pb2.pyi b/temporalio/api/compute/v1/scaler_pb2.pyi index 3ff933055..d9a7784ce 100644 --- a/temporalio/api/compute/v1/scaler_pb2.pyi +++ b/temporalio/api/compute/v1/scaler_pb2.pyi @@ -4,20 +4,16 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message import temporalio.api.common.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ComputeScaler(google.protobuf.message.Message): """ComputeScaler instructs the Temporal Service when to scale up or down the number of Workers that comprise a WorkerDeployment. @@ -40,6 +36,7 @@ class ComputeScaler(google.protobuf.message.Message): For remote-implemented scalers, you might use your own data converters according to what the remote endpoints understand. """ + def __init__( self, *, @@ -47,11 +44,10 @@ class ComputeScaler(google.protobuf.message.Message): details: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["details", b"details", "type", b"type"], + self, field_name: typing.Literal["details", b"details", "type", b"type"] ) -> None: ... global___ComputeScaler = ComputeScaler diff --git a/temporalio/api/dependencies/nexusannotations/v1/options_pb2.py b/temporalio/api/dependencies/nexusannotations/v1/options_pb2.py index deb7869f3..d357c3a58 100644 --- a/temporalio/api/dependencies/nexusannotations/v1/options_pb2.py +++ b/temporalio/api/dependencies/nexusannotations/v1/options_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -20,36 +19,8 @@ b'\n!nexusannotations/v1/options.proto\x12\x13nexusannotations.v1\x1a google/protobuf/descriptor.proto".\n\x10OperationOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04tags\x18\x02 \x03(\t",\n\x0eServiceOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04tags\x18\x02 \x03(\t:Y\n\x07service\x12\x1f.google.protobuf.ServiceOptions\x18\xa9@ \x01(\x0b\x32#.nexusannotations.v1.ServiceOptions\x88\x01\x01:\\\n\toperation\x12\x1e.google.protobuf.MethodOptions\x18\xaa@ \x01(\x0b\x32%.nexusannotations.v1.OperationOptions\x88\x01\x01\x42\x45ZCgithub.com/nexus-rpc/nexus-proto-annotations/go/nexusannotations/v1b\x06proto3' ) - -SERVICE_FIELD_NUMBER = 8233 -service = DESCRIPTOR.extensions_by_name["service"] -OPERATION_FIELD_NUMBER = 8234 -operation = DESCRIPTOR.extensions_by_name["operation"] - -_OPERATIONOPTIONS = DESCRIPTOR.message_types_by_name["OperationOptions"] -_SERVICEOPTIONS = DESCRIPTOR.message_types_by_name["ServiceOptions"] -OperationOptions = _reflection.GeneratedProtocolMessageType( - "OperationOptions", - (_message.Message,), - { - "DESCRIPTOR": _OPERATIONOPTIONS, - "__module__": "temporalio.api.dependencies.nexusannotations.v1.options_pb2", - # @@protoc_insertion_point(class_scope:nexusannotations.v1.OperationOptions) - }, -) -_sym_db.RegisterMessage(OperationOptions) - -ServiceOptions = _reflection.GeneratedProtocolMessageType( - "ServiceOptions", - (_message.Message,), - { - "DESCRIPTOR": _SERVICEOPTIONS, - "__module__": "temporalio.api.dependencies.nexusannotations.v1.options_pb2", - # @@protoc_insertion_point(class_scope:nexusannotations.v1.ServiceOptions) - }, -) -_sym_db.RegisterMessage(ServiceOptions) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: google_dot_protobuf_dot_descriptor__pb2.ServiceOptions.RegisterExtension(service) google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(operation) diff --git a/temporalio/api/dependencies/nexusannotations/v1/options_pb2.pyi b/temporalio/api/dependencies/nexusannotations/v1/options_pb2.pyi index 3c440fb75..e50a8e659 100644 --- a/temporalio/api/dependencies/nexusannotations/v1/options_pb2.pyi +++ b/temporalio/api/dependencies/nexusannotations/v1/options_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.descriptor_pb2 @@ -13,13 +13,9 @@ import google.protobuf.internal.containers import google.protobuf.internal.extension_dict import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class OperationOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -32,6 +28,7 @@ class OperationOptions(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Tags to attach to the operation. Used by code generators to include and exclude operations.""" + def __init__( self, *, @@ -39,11 +36,12 @@ class OperationOptions(google.protobuf.message.Message): tags: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["name", b"name", "tags", b"tags"] + self, field_name: typing.Literal["name", b"name", "tags", b"tags"] ) -> None: ... global___OperationOptions = OperationOptions +@typing.final class ServiceOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -56,6 +54,7 @@ class ServiceOptions(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Tags to attach to the service. Used by code generators to include and exclude services.""" + def __init__( self, *, @@ -63,7 +62,7 @@ class ServiceOptions(google.protobuf.message.Message): tags: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["name", b"name", "tags", b"tags"] + self, field_name: typing.Literal["name", b"name", "tags", b"tags"] ) -> None: ... global___ServiceOptions = ServiceOptions diff --git a/temporalio/api/dependencies/protoc_gen_openapiv2/options/annotations_pb2.py b/temporalio/api/dependencies/protoc_gen_openapiv2/options/annotations_pb2.py index 3d0ab9f2e..4af20c0f7 100644 --- a/temporalio/api/dependencies/protoc_gen_openapiv2/options/annotations_pb2.py +++ b/temporalio/api/dependencies/protoc_gen_openapiv2/options/annotations_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -24,20 +23,8 @@ b"\n.protoc-gen-openapiv2/options/annotations.proto\x12)grpc.gateway.protoc_gen_openapiv2.options\x1a google/protobuf/descriptor.proto\x1a,protoc-gen-openapiv2/options/openapiv2.proto:l\n\x11openapiv2_swagger\x12\x1c.google.protobuf.FileOptions\x18\x92\x08 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.Swagger:r\n\x13openapiv2_operation\x12\x1e.google.protobuf.MethodOptions\x18\x92\x08 \x01(\x0b\x32\x34.grpc.gateway.protoc_gen_openapiv2.options.Operation:m\n\x10openapiv2_schema\x12\x1f.google.protobuf.MessageOptions\x18\x92\x08 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Schema:l\n\x0eopenapiv2_enum\x12\x1c.google.protobuf.EnumOptions\x18\x92\x08 \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema:g\n\ropenapiv2_tag\x12\x1f.google.protobuf.ServiceOptions\x18\x92\x08 \x01(\x0b\x32..grpc.gateway.protoc_gen_openapiv2.options.Tag:n\n\x0fopenapiv2_field\x12\x1d.google.protobuf.FieldOptions\x18\x92\x08 \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaBHZFgithub.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/optionsb\x06proto3" ) - -OPENAPIV2_SWAGGER_FIELD_NUMBER = 1042 -openapiv2_swagger = DESCRIPTOR.extensions_by_name["openapiv2_swagger"] -OPENAPIV2_OPERATION_FIELD_NUMBER = 1042 -openapiv2_operation = DESCRIPTOR.extensions_by_name["openapiv2_operation"] -OPENAPIV2_SCHEMA_FIELD_NUMBER = 1042 -openapiv2_schema = DESCRIPTOR.extensions_by_name["openapiv2_schema"] -OPENAPIV2_ENUM_FIELD_NUMBER = 1042 -openapiv2_enum = DESCRIPTOR.extensions_by_name["openapiv2_enum"] -OPENAPIV2_TAG_FIELD_NUMBER = 1042 -openapiv2_tag = DESCRIPTOR.extensions_by_name["openapiv2_tag"] -OPENAPIV2_FIELD_FIELD_NUMBER = 1042 -openapiv2_field = DESCRIPTOR.extensions_by_name["openapiv2_field"] - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension( openapiv2_swagger diff --git a/temporalio/api/dependencies/protoc_gen_openapiv2/options/openapiv2_pb2.py b/temporalio/api/dependencies/protoc_gen_openapiv2/options/openapiv2_pb2.py index ea0b8eec5..4a63ed563 100644 --- a/temporalio/api/dependencies/protoc_gen_openapiv2/options/openapiv2_pb2.py +++ b/temporalio/api/dependencies/protoc_gen_openapiv2/options/openapiv2_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -21,433 +19,8 @@ b'\n,protoc-gen-openapiv2/options/openapiv2.proto\x12)grpc.gateway.protoc_gen_openapiv2.options\x1a\x1cgoogle/protobuf/struct.proto"\x95\x07\n\x07Swagger\x12\x0f\n\x07swagger\x18\x01 \x01(\t\x12=\n\x04info\x18\x02 \x01(\x0b\x32/.grpc.gateway.protoc_gen_openapiv2.options.Info\x12\x0c\n\x04host\x18\x03 \x01(\t\x12\x11\n\tbase_path\x18\x04 \x01(\t\x12\x42\n\x07schemes\x18\x05 \x03(\x0e\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Scheme\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12T\n\tresponses\x18\n \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntry\x12\\\n\x14security_definitions\x18\x0b \x01(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions\x12P\n\x08security\x18\x0c \x03(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement\x12<\n\x04tags\x18\r \x03(\x0b\x32..grpc.gateway.protoc_gen_openapiv2.options.Tag\x12W\n\rexternal_docs\x18\x0e \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12V\n\nextensions\x18\x0f \x03(\x0b\x32\x42.grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntry\x1a\x65\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x42\n\x05value\x18\x02 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_openapiv2.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01J\x04\x08\x08\x10\tJ\x04\x08\t\x10\n"\xb1\x06\n\tOperation\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12\x0f\n\x07summary\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12W\n\rexternal_docs\x18\x04 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12\x14\n\x0coperation_id\x18\x05 \x01(\t\x12\x10\n\x08\x63onsumes\x18\x06 \x03(\t\x12\x10\n\x08produces\x18\x07 \x03(\t\x12V\n\tresponses\x18\t \x03(\x0b\x32\x43.grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntry\x12\x42\n\x07schemes\x18\n \x03(\x0e\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Scheme\x12\x12\n\ndeprecated\x18\x0b \x01(\x08\x12P\n\x08security\x18\x0c \x03(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement\x12X\n\nextensions\x18\r \x03(\x0b\x32\x44.grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntry\x12I\n\nparameters\x18\x0e \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.Parameters\x1a\x65\n\x0eResponsesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x42\n\x05value\x18\x02 \x01(\x0b\x32\x33.grpc.gateway.protoc_gen_openapiv2.options.Response:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01J\x04\x08\x08\x10\t"Y\n\nParameters\x12K\n\x07headers\x18\x01 \x03(\x0b\x32:.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter"\xf8\x01\n\x0fHeaderParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12M\n\x04type\x18\x03 \x01(\x0e\x32?.grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type\x12\x0e\n\x06\x66ormat\x18\x04 \x01(\t\x12\x10\n\x08required\x18\x05 \x01(\x08"E\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06STRING\x10\x01\x12\n\n\x06NUMBER\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08"\xab\x01\n\x06Header\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x06 \x01(\t\x12\x0f\n\x07pattern\x18\r \x01(\tJ\x04\x08\x04\x10\x05J\x04\x08\x05\x10\x06J\x04\x08\x07\x10\x08J\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\n\x10\x0bJ\x04\x08\x0b\x10\x0cJ\x04\x08\x0c\x10\rJ\x04\x08\x0e\x10\x0fJ\x04\x08\x0f\x10\x10J\x04\x08\x10\x10\x11J\x04\x08\x11\x10\x12J\x04\x08\x12\x10\x13"\xc2\x04\n\x08Response\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x41\n\x06schema\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Schema\x12Q\n\x07headers\x18\x03 \x03(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntry\x12S\n\x08\x65xamples\x18\x04 \x03(\x0b\x32\x41.grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry\x12W\n\nextensions\x18\x05 \x03(\x0b\x32\x43.grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntry\x1a\x61\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Header:\x02\x38\x01\x1a/\n\rExamplesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01"\xff\x02\n\x04Info\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x18\n\x10terms_of_service\x18\x03 \x01(\t\x12\x43\n\x07\x63ontact\x18\x04 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.Contact\x12\x43\n\x07license\x18\x05 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.License\x12\x0f\n\x07version\x18\x06 \x01(\t\x12S\n\nextensions\x18\x07 \x03(\x0b\x32?.grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01"3\n\x07\x43ontact\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\r\n\x05\x65mail\x18\x03 \x01(\t"$\n\x07License\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t"9\n\x15\x45xternalDocumentation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t"\xee\x01\n\x06Schema\x12J\n\x0bjson_schema\x18\x01 \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema\x12\x15\n\rdiscriminator\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\x12W\n\rexternal_docs\x18\x05 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12\x0f\n\x07\x65xample\x18\x06 \x01(\tJ\x04\x08\x04\x10\x05"\x83\x03\n\nEnumSchema\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x10\n\x08required\x18\x04 \x01(\x08\x12\x11\n\tread_only\x18\x05 \x01(\x08\x12W\n\rexternal_docs\x18\x06 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12\x0f\n\x07\x65xample\x18\x07 \x01(\t\x12\x0b\n\x03ref\x18\x08 \x01(\t\x12Y\n\nextensions\x18\t \x03(\x0b\x32\x45.grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01"\xa2\x08\n\nJSONSchema\x12\x0b\n\x03ref\x18\x03 \x01(\t\x12\r\n\x05title\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x07 \x01(\t\x12\x11\n\tread_only\x18\x08 \x01(\x08\x12\x0f\n\x07\x65xample\x18\t \x01(\t\x12\x13\n\x0bmultiple_of\x18\n \x01(\x01\x12\x0f\n\x07maximum\x18\x0b \x01(\x01\x12\x19\n\x11\x65xclusive_maximum\x18\x0c \x01(\x08\x12\x0f\n\x07minimum\x18\r \x01(\x01\x12\x19\n\x11\x65xclusive_minimum\x18\x0e \x01(\x08\x12\x12\n\nmax_length\x18\x0f \x01(\x04\x12\x12\n\nmin_length\x18\x10 \x01(\x04\x12\x0f\n\x07pattern\x18\x11 \x01(\t\x12\x11\n\tmax_items\x18\x14 \x01(\x04\x12\x11\n\tmin_items\x18\x15 \x01(\x04\x12\x14\n\x0cunique_items\x18\x16 \x01(\x08\x12\x16\n\x0emax_properties\x18\x18 \x01(\x04\x12\x16\n\x0emin_properties\x18\x19 \x01(\x04\x12\x10\n\x08required\x18\x1a \x03(\t\x12\r\n\x05\x61rray\x18" \x03(\t\x12Y\n\x04type\x18# \x03(\x0e\x32K.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes\x12\x0e\n\x06\x66ormat\x18$ \x01(\t\x12\x0c\n\x04\x65num\x18. \x03(\t\x12\x66\n\x13\x66ield_configuration\x18\xe9\x07 \x01(\x0b\x32H.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration\x12Y\n\nextensions\x18\x30 \x03(\x0b\x32\x45.grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntry\x1a-\n\x12\x46ieldConfiguration\x12\x17\n\x0fpath_param_name\x18/ \x01(\t\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01"w\n\x15JSONSchemaSimpleTypes\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41RRAY\x10\x01\x12\x0b\n\x07\x42OOLEAN\x10\x02\x12\x0b\n\x07INTEGER\x10\x03\x12\x08\n\x04NULL\x10\x04\x12\n\n\x06NUMBER\x10\x05\x12\n\n\x06OBJECT\x10\x06\x12\n\n\x06STRING\x10\x07J\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03J\x04\x08\x04\x10\x05J\x04\x08\x12\x10\x13J\x04\x08\x13\x10\x14J\x04\x08\x17\x10\x18J\x04\x08\x1b\x10\x1cJ\x04\x08\x1c\x10\x1dJ\x04\x08\x1d\x10\x1eJ\x04\x08\x1e\x10"J\x04\x08%\x10*J\x04\x08*\x10+J\x04\x08+\x10."\xa0\x02\n\x03Tag\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12W\n\rexternal_docs\x18\x03 \x01(\x0b\x32@.grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation\x12R\n\nextensions\x18\x04 \x03(\x0b\x32>.grpc.gateway.protoc_gen_openapiv2.options.Tag.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01"\xe1\x01\n\x13SecurityDefinitions\x12^\n\x08security\x18\x01 \x03(\x0b\x32L.grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntry\x1aj\n\rSecurityEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12H\n\x05value\x18\x02 \x01(\x0b\x32\x39.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme:\x02\x38\x01"\xa0\x06\n\x0eSecurityScheme\x12L\n\x04type\x18\x01 \x01(\x0e\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12H\n\x02in\x18\x04 \x01(\x0e\x32<.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In\x12L\n\x04\x66low\x18\x05 \x01(\x0e\x32>.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow\x12\x19\n\x11\x61uthorization_url\x18\x06 \x01(\t\x12\x11\n\ttoken_url\x18\x07 \x01(\t\x12\x41\n\x06scopes\x18\x08 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.Scopes\x12]\n\nextensions\x18\t \x03(\x0b\x32I.grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01"K\n\x04Type\x12\x10\n\x0cTYPE_INVALID\x10\x00\x12\x0e\n\nTYPE_BASIC\x10\x01\x12\x10\n\x0cTYPE_API_KEY\x10\x02\x12\x0f\n\x0bTYPE_OAUTH2\x10\x03"1\n\x02In\x12\x0e\n\nIN_INVALID\x10\x00\x12\x0c\n\x08IN_QUERY\x10\x01\x12\r\n\tIN_HEADER\x10\x02"j\n\x04\x46low\x12\x10\n\x0c\x46LOW_INVALID\x10\x00\x12\x11\n\rFLOW_IMPLICIT\x10\x01\x12\x11\n\rFLOW_PASSWORD\x10\x02\x12\x14\n\x10\x46LOW_APPLICATION\x10\x03\x12\x14\n\x10\x46LOW_ACCESS_CODE\x10\x04"\xcd\x02\n\x13SecurityRequirement\x12u\n\x14security_requirement\x18\x01 \x03(\x0b\x32W.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntry\x1a)\n\x18SecurityRequirementValue\x12\r\n\x05scope\x18\x01 \x03(\t\x1a\x93\x01\n\x18SecurityRequirementEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x66\n\x05value\x18\x02 \x01(\x0b\x32W.grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue:\x02\x38\x01"\x83\x01\n\x06Scopes\x12K\n\x05scope\x18\x01 \x03(\x0b\x32<.grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry\x1a,\n\nScopeEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01*;\n\x06Scheme\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04HTTP\x10\x01\x12\t\n\x05HTTPS\x10\x02\x12\x06\n\x02WS\x10\x03\x12\x07\n\x03WSS\x10\x04\x42HZFgithub.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/optionsb\x06proto3' ) -_SCHEME = DESCRIPTOR.enum_types_by_name["Scheme"] -Scheme = enum_type_wrapper.EnumTypeWrapper(_SCHEME) -UNKNOWN = 0 -HTTP = 1 -HTTPS = 2 -WS = 3 -WSS = 4 - - -_SWAGGER = DESCRIPTOR.message_types_by_name["Swagger"] -_SWAGGER_RESPONSESENTRY = _SWAGGER.nested_types_by_name["ResponsesEntry"] -_SWAGGER_EXTENSIONSENTRY = _SWAGGER.nested_types_by_name["ExtensionsEntry"] -_OPERATION = DESCRIPTOR.message_types_by_name["Operation"] -_OPERATION_RESPONSESENTRY = _OPERATION.nested_types_by_name["ResponsesEntry"] -_OPERATION_EXTENSIONSENTRY = _OPERATION.nested_types_by_name["ExtensionsEntry"] -_PARAMETERS = DESCRIPTOR.message_types_by_name["Parameters"] -_HEADERPARAMETER = DESCRIPTOR.message_types_by_name["HeaderParameter"] -_HEADER = DESCRIPTOR.message_types_by_name["Header"] -_RESPONSE = DESCRIPTOR.message_types_by_name["Response"] -_RESPONSE_HEADERSENTRY = _RESPONSE.nested_types_by_name["HeadersEntry"] -_RESPONSE_EXAMPLESENTRY = _RESPONSE.nested_types_by_name["ExamplesEntry"] -_RESPONSE_EXTENSIONSENTRY = _RESPONSE.nested_types_by_name["ExtensionsEntry"] -_INFO = DESCRIPTOR.message_types_by_name["Info"] -_INFO_EXTENSIONSENTRY = _INFO.nested_types_by_name["ExtensionsEntry"] -_CONTACT = DESCRIPTOR.message_types_by_name["Contact"] -_LICENSE = DESCRIPTOR.message_types_by_name["License"] -_EXTERNALDOCUMENTATION = DESCRIPTOR.message_types_by_name["ExternalDocumentation"] -_SCHEMA = DESCRIPTOR.message_types_by_name["Schema"] -_ENUMSCHEMA = DESCRIPTOR.message_types_by_name["EnumSchema"] -_ENUMSCHEMA_EXTENSIONSENTRY = _ENUMSCHEMA.nested_types_by_name["ExtensionsEntry"] -_JSONSCHEMA = DESCRIPTOR.message_types_by_name["JSONSchema"] -_JSONSCHEMA_FIELDCONFIGURATION = _JSONSCHEMA.nested_types_by_name["FieldConfiguration"] -_JSONSCHEMA_EXTENSIONSENTRY = _JSONSCHEMA.nested_types_by_name["ExtensionsEntry"] -_TAG = DESCRIPTOR.message_types_by_name["Tag"] -_TAG_EXTENSIONSENTRY = _TAG.nested_types_by_name["ExtensionsEntry"] -_SECURITYDEFINITIONS = DESCRIPTOR.message_types_by_name["SecurityDefinitions"] -_SECURITYDEFINITIONS_SECURITYENTRY = _SECURITYDEFINITIONS.nested_types_by_name[ - "SecurityEntry" -] -_SECURITYSCHEME = DESCRIPTOR.message_types_by_name["SecurityScheme"] -_SECURITYSCHEME_EXTENSIONSENTRY = _SECURITYSCHEME.nested_types_by_name[ - "ExtensionsEntry" -] -_SECURITYREQUIREMENT = DESCRIPTOR.message_types_by_name["SecurityRequirement"] -_SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE = ( - _SECURITYREQUIREMENT.nested_types_by_name["SecurityRequirementValue"] -) -_SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY = ( - _SECURITYREQUIREMENT.nested_types_by_name["SecurityRequirementEntry"] -) -_SCOPES = DESCRIPTOR.message_types_by_name["Scopes"] -_SCOPES_SCOPEENTRY = _SCOPES.nested_types_by_name["ScopeEntry"] -_HEADERPARAMETER_TYPE = _HEADERPARAMETER.enum_types_by_name["Type"] -_JSONSCHEMA_JSONSCHEMASIMPLETYPES = _JSONSCHEMA.enum_types_by_name[ - "JSONSchemaSimpleTypes" -] -_SECURITYSCHEME_TYPE = _SECURITYSCHEME.enum_types_by_name["Type"] -_SECURITYSCHEME_IN = _SECURITYSCHEME.enum_types_by_name["In"] -_SECURITYSCHEME_FLOW = _SECURITYSCHEME.enum_types_by_name["Flow"] -Swagger = _reflection.GeneratedProtocolMessageType( - "Swagger", - (_message.Message,), - { - "ResponsesEntry": _reflection.GeneratedProtocolMessageType( - "ResponsesEntry", - (_message.Message,), - { - "DESCRIPTOR": _SWAGGER_RESPONSESENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntry) - }, - ), - "ExtensionsEntry": _reflection.GeneratedProtocolMessageType( - "ExtensionsEntry", - (_message.Message,), - { - "DESCRIPTOR": _SWAGGER_EXTENSIONSENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntry) - }, - ), - "DESCRIPTOR": _SWAGGER, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Swagger) - }, -) -_sym_db.RegisterMessage(Swagger) -_sym_db.RegisterMessage(Swagger.ResponsesEntry) -_sym_db.RegisterMessage(Swagger.ExtensionsEntry) - -Operation = _reflection.GeneratedProtocolMessageType( - "Operation", - (_message.Message,), - { - "ResponsesEntry": _reflection.GeneratedProtocolMessageType( - "ResponsesEntry", - (_message.Message,), - { - "DESCRIPTOR": _OPERATION_RESPONSESENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntry) - }, - ), - "ExtensionsEntry": _reflection.GeneratedProtocolMessageType( - "ExtensionsEntry", - (_message.Message,), - { - "DESCRIPTOR": _OPERATION_EXTENSIONSENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntry) - }, - ), - "DESCRIPTOR": _OPERATION, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Operation) - }, -) -_sym_db.RegisterMessage(Operation) -_sym_db.RegisterMessage(Operation.ResponsesEntry) -_sym_db.RegisterMessage(Operation.ExtensionsEntry) - -Parameters = _reflection.GeneratedProtocolMessageType( - "Parameters", - (_message.Message,), - { - "DESCRIPTOR": _PARAMETERS, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Parameters) - }, -) -_sym_db.RegisterMessage(Parameters) - -HeaderParameter = _reflection.GeneratedProtocolMessageType( - "HeaderParameter", - (_message.Message,), - { - "DESCRIPTOR": _HEADERPARAMETER, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter) - }, -) -_sym_db.RegisterMessage(HeaderParameter) - -Header = _reflection.GeneratedProtocolMessageType( - "Header", - (_message.Message,), - { - "DESCRIPTOR": _HEADER, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Header) - }, -) -_sym_db.RegisterMessage(Header) - -Response = _reflection.GeneratedProtocolMessageType( - "Response", - (_message.Message,), - { - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _RESPONSE_HEADERSENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntry) - }, - ), - "ExamplesEntry": _reflection.GeneratedProtocolMessageType( - "ExamplesEntry", - (_message.Message,), - { - "DESCRIPTOR": _RESPONSE_EXAMPLESENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry) - }, - ), - "ExtensionsEntry": _reflection.GeneratedProtocolMessageType( - "ExtensionsEntry", - (_message.Message,), - { - "DESCRIPTOR": _RESPONSE_EXTENSIONSENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntry) - }, - ), - "DESCRIPTOR": _RESPONSE, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Response) - }, -) -_sym_db.RegisterMessage(Response) -_sym_db.RegisterMessage(Response.HeadersEntry) -_sym_db.RegisterMessage(Response.ExamplesEntry) -_sym_db.RegisterMessage(Response.ExtensionsEntry) - -Info = _reflection.GeneratedProtocolMessageType( - "Info", - (_message.Message,), - { - "ExtensionsEntry": _reflection.GeneratedProtocolMessageType( - "ExtensionsEntry", - (_message.Message,), - { - "DESCRIPTOR": _INFO_EXTENSIONSENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntry) - }, - ), - "DESCRIPTOR": _INFO, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Info) - }, -) -_sym_db.RegisterMessage(Info) -_sym_db.RegisterMessage(Info.ExtensionsEntry) - -Contact = _reflection.GeneratedProtocolMessageType( - "Contact", - (_message.Message,), - { - "DESCRIPTOR": _CONTACT, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Contact) - }, -) -_sym_db.RegisterMessage(Contact) - -License = _reflection.GeneratedProtocolMessageType( - "License", - (_message.Message,), - { - "DESCRIPTOR": _LICENSE, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.License) - }, -) -_sym_db.RegisterMessage(License) - -ExternalDocumentation = _reflection.GeneratedProtocolMessageType( - "ExternalDocumentation", - (_message.Message,), - { - "DESCRIPTOR": _EXTERNALDOCUMENTATION, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) - }, -) -_sym_db.RegisterMessage(ExternalDocumentation) - -Schema = _reflection.GeneratedProtocolMessageType( - "Schema", - (_message.Message,), - { - "DESCRIPTOR": _SCHEMA, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Schema) - }, -) -_sym_db.RegisterMessage(Schema) - -EnumSchema = _reflection.GeneratedProtocolMessageType( - "EnumSchema", - (_message.Message,), - { - "ExtensionsEntry": _reflection.GeneratedProtocolMessageType( - "ExtensionsEntry", - (_message.Message,), - { - "DESCRIPTOR": _ENUMSCHEMA_EXTENSIONSENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.EnumSchema.ExtensionsEntry) - }, - ), - "DESCRIPTOR": _ENUMSCHEMA, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.EnumSchema) - }, -) -_sym_db.RegisterMessage(EnumSchema) -_sym_db.RegisterMessage(EnumSchema.ExtensionsEntry) - -JSONSchema = _reflection.GeneratedProtocolMessageType( - "JSONSchema", - (_message.Message,), - { - "FieldConfiguration": _reflection.GeneratedProtocolMessageType( - "FieldConfiguration", - (_message.Message,), - { - "DESCRIPTOR": _JSONSCHEMA_FIELDCONFIGURATION, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) - }, - ), - "ExtensionsEntry": _reflection.GeneratedProtocolMessageType( - "ExtensionsEntry", - (_message.Message,), - { - "DESCRIPTOR": _JSONSCHEMA_EXTENSIONSENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntry) - }, - ), - "DESCRIPTOR": _JSONSCHEMA, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) - }, -) -_sym_db.RegisterMessage(JSONSchema) -_sym_db.RegisterMessage(JSONSchema.FieldConfiguration) -_sym_db.RegisterMessage(JSONSchema.ExtensionsEntry) - -Tag = _reflection.GeneratedProtocolMessageType( - "Tag", - (_message.Message,), - { - "ExtensionsEntry": _reflection.GeneratedProtocolMessageType( - "ExtensionsEntry", - (_message.Message,), - { - "DESCRIPTOR": _TAG_EXTENSIONSENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Tag.ExtensionsEntry) - }, - ), - "DESCRIPTOR": _TAG, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Tag) - }, -) -_sym_db.RegisterMessage(Tag) -_sym_db.RegisterMessage(Tag.ExtensionsEntry) - -SecurityDefinitions = _reflection.GeneratedProtocolMessageType( - "SecurityDefinitions", - (_message.Message,), - { - "SecurityEntry": _reflection.GeneratedProtocolMessageType( - "SecurityEntry", - (_message.Message,), - { - "DESCRIPTOR": _SECURITYDEFINITIONS_SECURITYENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntry) - }, - ), - "DESCRIPTOR": _SECURITYDEFINITIONS, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) - }, -) -_sym_db.RegisterMessage(SecurityDefinitions) -_sym_db.RegisterMessage(SecurityDefinitions.SecurityEntry) - -SecurityScheme = _reflection.GeneratedProtocolMessageType( - "SecurityScheme", - (_message.Message,), - { - "ExtensionsEntry": _reflection.GeneratedProtocolMessageType( - "ExtensionsEntry", - (_message.Message,), - { - "DESCRIPTOR": _SECURITYSCHEME_EXTENSIONSENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntry) - }, - ), - "DESCRIPTOR": _SECURITYSCHEME, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) - }, -) -_sym_db.RegisterMessage(SecurityScheme) -_sym_db.RegisterMessage(SecurityScheme.ExtensionsEntry) - -SecurityRequirement = _reflection.GeneratedProtocolMessageType( - "SecurityRequirement", - (_message.Message,), - { - "SecurityRequirementValue": _reflection.GeneratedProtocolMessageType( - "SecurityRequirementValue", - (_message.Message,), - { - "DESCRIPTOR": _SECURITYREQUIREMENT_SECURITYREQUIREMENTVALUE, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) - }, - ), - "SecurityRequirementEntry": _reflection.GeneratedProtocolMessageType( - "SecurityRequirementEntry", - (_message.Message,), - { - "DESCRIPTOR": _SECURITYREQUIREMENT_SECURITYREQUIREMENTENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntry) - }, - ), - "DESCRIPTOR": _SECURITYREQUIREMENT, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) - }, -) -_sym_db.RegisterMessage(SecurityRequirement) -_sym_db.RegisterMessage(SecurityRequirement.SecurityRequirementValue) -_sym_db.RegisterMessage(SecurityRequirement.SecurityRequirementEntry) - -Scopes = _reflection.GeneratedProtocolMessageType( - "Scopes", - (_message.Message,), - { - "ScopeEntry": _reflection.GeneratedProtocolMessageType( - "ScopeEntry", - (_message.Message,), - { - "DESCRIPTOR": _SCOPES_SCOPEENTRY, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry) - }, - ), - "DESCRIPTOR": _SCOPES, - "__module__": "protoc_gen_openapiv2.options.openapiv2_pb2", - # @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Scopes) - }, -) -_sym_db.RegisterMessage(Scopes) -_sym_db.RegisterMessage(Scopes.ScopeEntry) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( diff --git a/temporalio/api/dependencies/protoc_gen_openapiv2/options/openapiv2_pb2.pyi b/temporalio/api/dependencies/protoc_gen_openapiv2/options/openapiv2_pb2.pyi index 458d881f9..e78f061b3 100644 --- a/temporalio/api/dependencies/protoc_gen_openapiv2/options/openapiv2_pb2.pyi +++ b/temporalio/api/dependencies/protoc_gen_openapiv2/options/openapiv2_pb2.pyi @@ -28,7 +28,7 @@ class _Scheme: class _SchemeEnumTypeWrapper( google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Scheme.ValueType], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNKNOWN: _Scheme.ValueType # 0 HTTP: _Scheme.ValueType # 1 @@ -48,6 +48,7 @@ WS: Scheme.ValueType # 3 WSS: Scheme.ValueType # 4 global___Scheme = Scheme +@typing.final class Swagger(google.protobuf.message.Message): """`Swagger` is a representation of OpenAPI v2 specification's Swagger object. @@ -78,6 +79,7 @@ class Swagger(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ResponsesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -93,13 +95,13 @@ class Swagger(google.protobuf.message.Message): value: global___Response | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class ExtensionsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -115,11 +117,10 @@ class Swagger(google.protobuf.message.Message): value: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SWAGGER_FIELD_NUMBER: builtins.int @@ -140,11 +141,6 @@ class Swagger(google.protobuf.message.Message): used by the OpenAPI UI and other clients to interpret the API listing. The value MUST be "2.0". """ - @property - def info(self) -> global___Info: - """Provides metadata about the API. The metadata can be used by the - clients if needed. - """ host: builtins.str """The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is @@ -162,6 +158,12 @@ class Swagger(google.protobuf.message.Message): manually removed from your `google.api.http` paths and your code changed to serve the API from the `base_path`. """ + @property + def info(self) -> global___Info: + """Provides metadata about the API. The metadata can be used by the + clients if needed. + """ + @property def schemes( self, @@ -172,6 +174,7 @@ class Swagger(google.protobuf.message.Message): "https", "ws", "wss". If the schemes is not included, the default scheme to be used is the one used to access the OpenAPI definition itself. """ + @property def consumes( self, @@ -180,6 +183,7 @@ class Swagger(google.protobuf.message.Message): can be overridden on specific API calls. Value MUST be as described under Mime Types. """ + @property def produces( self, @@ -188,6 +192,7 @@ class Swagger(google.protobuf.message.Message): can be overridden on specific API calls. Value MUST be as described under Mime Types. """ + @property def responses( self, @@ -197,9 +202,11 @@ class Swagger(google.protobuf.message.Message): """An object to hold responses that can be used across operations. This property does not define global responses for all operations. """ + @property def security_definitions(self) -> global___SecurityDefinitions: """Security scheme definitions that can be used across the specification.""" + @property def security( self, @@ -211,6 +218,7 @@ class Swagger(google.protobuf.message.Message): (that is, there is a logical OR between the security requirements). Individual operations can override this definition. """ + @property def tags( self, @@ -220,9 +228,11 @@ class Swagger(google.protobuf.message.Message): """A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier. """ + @property def external_docs(self) -> global___ExternalDocumentation: """Additional external documentation.""" + @property def extensions( self, @@ -233,6 +243,7 @@ class Swagger(google.protobuf.message.Message): extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/ """ + def __init__( self, *, @@ -256,7 +267,7 @@ class Swagger(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "external_docs", b"external_docs", "info", @@ -267,7 +278,7 @@ class Swagger(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "base_path", b"base_path", "consumes", @@ -299,6 +310,7 @@ class Swagger(google.protobuf.message.Message): global___Swagger = Swagger +@typing.final class Operation(google.protobuf.message.Message): """`Operation` is a representation of OpenAPI v2 specification's Operation object. @@ -329,6 +341,7 @@ class Operation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ResponsesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -344,13 +357,13 @@ class Operation(google.protobuf.message.Message): value: global___Response | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class ExtensionsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -366,11 +379,10 @@ class Operation(google.protobuf.message.Message): value: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... TAGS_FIELD_NUMBER: builtins.int @@ -386,13 +398,6 @@ class Operation(google.protobuf.message.Message): SECURITY_FIELD_NUMBER: builtins.int EXTENSIONS_FIELD_NUMBER: builtins.int PARAMETERS_FIELD_NUMBER: builtins.int - @property - def tags( - self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """A list of tags for API documentation control. Tags can be used for logical - grouping of operations by resources or any other qualifier. - """ summary: builtins.str """A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters. @@ -401,15 +406,28 @@ class Operation(google.protobuf.message.Message): """A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation. """ - @property - def external_docs(self) -> global___ExternalDocumentation: - """Additional external documentation for this operation.""" operation_id: builtins.str """Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions. """ + deprecated: builtins.bool + """Declares this operation to be deprecated. Usage of the declared operation + should be refrained. Default value is false. + """ + @property + def tags( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """A list of tags for API documentation control. Tags can be used for logical + grouping of operations by resources or any other qualifier. + """ + + @property + def external_docs(self) -> global___ExternalDocumentation: + """Additional external documentation for this operation.""" + @property def consumes( self, @@ -418,6 +436,7 @@ class Operation(google.protobuf.message.Message): definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types. """ + @property def produces( self, @@ -426,6 +445,7 @@ class Operation(google.protobuf.message.Message): definition at the OpenAPI Object. An empty value MAY be used to clear the global definition. Value MUST be as described under Mime Types. """ + @property def responses( self, @@ -435,6 +455,7 @@ class Operation(google.protobuf.message.Message): """The list of possible responses as they are returned from executing this operation. """ + @property def schemes( self, @@ -445,10 +466,7 @@ class Operation(google.protobuf.message.Message): "http", "https", "ws", "wss". The value overrides the OpenAPI Object schemes definition. """ - deprecated: builtins.bool - """Declares this operation to be deprecated. Usage of the declared operation - should be refrained. Default value is false. - """ + @property def security( self, @@ -461,6 +479,7 @@ class Operation(google.protobuf.message.Message): definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used. """ + @property def extensions( self, @@ -471,12 +490,14 @@ class Operation(google.protobuf.message.Message): extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/ """ + @property def parameters(self) -> global___Parameters: """Custom parameters such as HTTP request headers. See: https://swagger.io/docs/specification/2-0/describing-parameters/ and https://swagger.io/specification/v2/#parameter-object. """ + def __init__( self, *, @@ -500,13 +521,13 @@ class Operation(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "external_docs", b"external_docs", "parameters", b"parameters" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "consumes", b"consumes", "deprecated", @@ -538,6 +559,7 @@ class Operation(google.protobuf.message.Message): global___Operation = Operation +@typing.final class Parameters(google.protobuf.message.Message): """`Parameters` is a representation of OpenAPI v2 specification's parameters object. Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only @@ -558,17 +580,17 @@ class Parameters(google.protobuf.message.Message): """`Headers` is one or more HTTP header parameter. See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters """ + def __init__( self, *, headers: collections.abc.Iterable[global___HeaderParameter] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["headers", b"headers"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["headers", b"headers"]) -> None: ... global___Parameters = Parameters +@typing.final class HeaderParameter(google.protobuf.message.Message): """`HeaderParameter` a HTTP header parameter. See: https://swagger.io/specification/v2/#parameter-object @@ -585,7 +607,7 @@ class HeaderParameter(google.protobuf.message.Message): HeaderParameter._Type.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNKNOWN: HeaderParameter._Type.ValueType # 0 STRING: HeaderParameter._Type.ValueType # 1 @@ -632,7 +654,7 @@ class HeaderParameter(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "format", @@ -648,6 +670,7 @@ class HeaderParameter(google.protobuf.message.Message): global___HeaderParameter = HeaderParameter +@typing.final class Header(google.protobuf.message.Message): """`Header` is a representation of OpenAPI v2 specification's Header object. @@ -685,7 +708,7 @@ class Header(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "default", b"default", "description", @@ -701,6 +724,7 @@ class Header(google.protobuf.message.Message): global___Header = Header +@typing.final class Response(google.protobuf.message.Message): """`Response` is a representation of OpenAPI v2 specification's Response object. @@ -709,6 +733,7 @@ class Response(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -724,13 +749,13 @@ class Response(google.protobuf.message.Message): value: global___Header | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class ExamplesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -745,10 +770,10 @@ class Response(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class ExtensionsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -764,11 +789,10 @@ class Response(google.protobuf.message.Message): value: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... DESCRIPTION_FIELD_NUMBER: builtins.int @@ -785,6 +809,7 @@ class Response(google.protobuf.message.Message): """`Schema` optionally defines the structure of the response. If `Schema` is not provided, it means there is no content to the response. """ + @property def headers( self, @@ -793,6 +818,7 @@ class Response(google.protobuf.message.Message): `Header` name is expected to be a string in the canonical format of the MIME header key See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey """ + @property def examples( self, @@ -800,6 +826,7 @@ class Response(google.protobuf.message.Message): """`Examples` gives per-mimetype response examples. See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object """ + @property def extensions( self, @@ -810,6 +837,7 @@ class Response(google.protobuf.message.Message): extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/ """ + def __init__( self, *, @@ -823,11 +851,11 @@ class Response(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["schema", b"schema"] + self, field_name: typing.Literal["schema", b"schema"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "examples", @@ -843,6 +871,7 @@ class Response(google.protobuf.message.Message): global___Response = Response +@typing.final class Info(google.protobuf.message.Message): """`Info` is a representation of OpenAPI v2 specification's Info object. @@ -871,6 +900,7 @@ class Info(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ExtensionsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -886,11 +916,10 @@ class Info(google.protobuf.message.Message): value: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... TITLE_FIELD_NUMBER: builtins.int @@ -908,16 +937,18 @@ class Info(google.protobuf.message.Message): """ terms_of_service: builtins.str """The Terms of Service for the API.""" + version: builtins.str + """Provides the version of the application API (not to be confused + with the specification version). + """ @property def contact(self) -> global___Contact: """The contact information for the exposed API.""" + @property def license(self) -> global___License: """The license information for the exposed API.""" - version: builtins.str - """Provides the version of the application API (not to be confused - with the specification version). - """ + @property def extensions( self, @@ -928,6 +959,7 @@ class Info(google.protobuf.message.Message): extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/ """ + def __init__( self, *, @@ -943,14 +975,11 @@ class Info(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "contact", b"contact", "license", b"license" - ], + self, field_name: typing.Literal["contact", b"contact", "license", b"license"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "contact", b"contact", "description", @@ -970,6 +999,7 @@ class Info(google.protobuf.message.Message): global___Info = Info +@typing.final class Contact(google.protobuf.message.Message): """`Contact` is a representation of OpenAPI v2 specification's Contact object. @@ -1015,13 +1045,12 @@ class Contact(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "email", b"email", "name", b"name", "url", b"url" - ], + field_name: typing.Literal["email", b"email", "name", b"name", "url", b"url"], ) -> None: ... global___Contact = Contact +@typing.final class License(google.protobuf.message.Message): """`License` is a representation of OpenAPI v2 specification's License object. @@ -1057,11 +1086,12 @@ class License(google.protobuf.message.Message): url: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["name", b"name", "url", b"url"] + self, field_name: typing.Literal["name", b"name", "url", b"url"] ) -> None: ... global___License = License +@typing.final class ExternalDocumentation(google.protobuf.message.Message): """`ExternalDocumentation` is a representation of OpenAPI v2 specification's ExternalDocumentation object. @@ -1099,14 +1129,12 @@ class ExternalDocumentation(google.protobuf.message.Message): url: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "description", b"description", "url", b"url" - ], + self, field_name: typing.Literal["description", b"description", "url", b"url"] ) -> None: ... global___ExternalDocumentation = ExternalDocumentation +@typing.final class Schema(google.protobuf.message.Message): """`Schema` is a representation of OpenAPI v2 specification's Schema object. @@ -1120,8 +1148,6 @@ class Schema(google.protobuf.message.Message): READ_ONLY_FIELD_NUMBER: builtins.int EXTERNAL_DOCS_FIELD_NUMBER: builtins.int EXAMPLE_FIELD_NUMBER: builtins.int - @property - def json_schema(self) -> global___JSONSchema: ... discriminator: builtins.str """Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this @@ -1136,13 +1162,16 @@ class Schema(google.protobuf.message.Message): true SHOULD NOT be in the required list of the defined schema. Default value is false. """ - @property - def external_docs(self) -> global___ExternalDocumentation: - """Additional external documentation for this schema.""" example: builtins.str """A free-form property to include an example of an instance for this schema in JSON. This is copied verbatim to the output. """ + @property + def json_schema(self) -> global___JSONSchema: ... + @property + def external_docs(self) -> global___ExternalDocumentation: + """Additional external documentation for this schema.""" + def __init__( self, *, @@ -1154,13 +1183,13 @@ class Schema(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "external_docs", b"external_docs", "json_schema", b"json_schema" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "discriminator", b"discriminator", "example", @@ -1176,6 +1205,7 @@ class Schema(google.protobuf.message.Message): global___Schema = Schema +@typing.final class EnumSchema(google.protobuf.message.Message): """`EnumSchema` is subset of fields from the OpenAPI v2 specification's Schema object. Only fields that are applicable to Enums are included @@ -1195,6 +1225,7 @@ class EnumSchema(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ExtensionsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1210,11 +1241,10 @@ class EnumSchema(google.protobuf.message.Message): value: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... DESCRIPTION_FIELD_NUMBER: builtins.int @@ -1233,9 +1263,6 @@ class EnumSchema(google.protobuf.message.Message): """The title of the schema.""" required: builtins.bool read_only: builtins.bool - @property - def external_docs(self) -> global___ExternalDocumentation: - """Additional external documentation for this schema.""" example: builtins.str ref: builtins.str """Ref is used to define an external reference to include in the message. @@ -1245,6 +1272,10 @@ class EnumSchema(google.protobuf.message.Message): For example: `ref: ".google.protobuf.Timestamp"`. """ + @property + def external_docs(self) -> global___ExternalDocumentation: + """Additional external documentation for this schema.""" + @property def extensions( self, @@ -1255,6 +1286,7 @@ class EnumSchema(google.protobuf.message.Message): extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/ """ + def __init__( self, *, @@ -1272,11 +1304,11 @@ class EnumSchema(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["external_docs", b"external_docs"] + self, field_name: typing.Literal["external_docs", b"external_docs"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "default", b"default", "description", @@ -1300,6 +1332,7 @@ class EnumSchema(google.protobuf.message.Message): global___EnumSchema = EnumSchema +@typing.final class JSONSchema(google.protobuf.message.Message): """`JSONSchema` represents properties from JSON Schema taken, and as used, in the OpenAPI v2 spec. @@ -1341,7 +1374,7 @@ class JSONSchema(google.protobuf.message.Message): JSONSchema._JSONSchemaSimpleTypes.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNKNOWN: JSONSchema._JSONSchemaSimpleTypes.ValueType # 0 ARRAY: JSONSchema._JSONSchemaSimpleTypes.ValueType # 1 @@ -1364,6 +1397,7 @@ class JSONSchema(google.protobuf.message.Message): OBJECT: JSONSchema.JSONSchemaSimpleTypes.ValueType # 6 STRING: JSONSchema.JSONSchemaSimpleTypes.ValueType # 7 + @typing.final class FieldConfiguration(google.protobuf.message.Message): """'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file. These properties are not defined by OpenAPIv2, but they are used to control the generation. @@ -1384,12 +1418,10 @@ class JSONSchema(google.protobuf.message.Message): path_param_name: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "path_param_name", b"path_param_name" - ], + self, field_name: typing.Literal["path_param_name", b"path_param_name"] ) -> None: ... + @typing.final class ExtensionsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1405,11 +1437,10 @@ class JSONSchema(google.protobuf.message.Message): value: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... REF_FIELD_NUMBER: builtins.int @@ -1476,6 +1507,8 @@ class JSONSchema(google.protobuf.message.Message): unique_items: builtins.bool max_properties: builtins.int min_properties: builtins.int + format: builtins.str + """`Format`""" @property def required( self, @@ -1487,22 +1520,23 @@ class JSONSchema(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Items in 'array' must be unique.""" + @property def type( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ global___JSONSchema.JSONSchemaSimpleTypes.ValueType ]: ... - format: builtins.str - """`Format`""" @property def enum( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1""" + @property def field_configuration(self) -> global___JSONSchema.FieldConfiguration: """Additional field level properties used when generating the OpenAPI v2 file.""" + @property def extensions( self, @@ -1513,6 +1547,7 @@ class JSONSchema(google.protobuf.message.Message): extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/ """ + def __init__( self, *, @@ -1550,14 +1585,11 @@ class JSONSchema(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "field_configuration", b"field_configuration" - ], + self, field_name: typing.Literal["field_configuration", b"field_configuration"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "array", b"array", "default", @@ -1615,6 +1647,7 @@ class JSONSchema(google.protobuf.message.Message): global___JSONSchema = JSONSchema +@typing.final class Tag(google.protobuf.message.Message): """`Tag` is a representation of OpenAPI v2 specification's Tag object. @@ -1623,6 +1656,7 @@ class Tag(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ExtensionsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1638,11 +1672,10 @@ class Tag(google.protobuf.message.Message): value: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAME_FIELD_NUMBER: builtins.int @@ -1661,6 +1694,7 @@ class Tag(google.protobuf.message.Message): @property def external_docs(self) -> global___ExternalDocumentation: """Additional external documentation for this tag.""" + @property def extensions( self, @@ -1671,6 +1705,7 @@ class Tag(google.protobuf.message.Message): extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/ """ + def __init__( self, *, @@ -1683,11 +1718,11 @@ class Tag(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["external_docs", b"external_docs"] + self, field_name: typing.Literal["external_docs", b"external_docs"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "extensions", @@ -1701,6 +1736,7 @@ class Tag(google.protobuf.message.Message): global___Tag = Tag +@typing.final class SecurityDefinitions(google.protobuf.message.Message): """`SecurityDefinitions` is a representation of OpenAPI v2 specification's Security Definitions object. @@ -1714,6 +1750,7 @@ class SecurityDefinitions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class SecurityEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1729,11 +1766,10 @@ class SecurityDefinitions(google.protobuf.message.Message): value: global___SecurityScheme | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SECURITY_FIELD_NUMBER: builtins.int @@ -1746,6 +1782,7 @@ class SecurityDefinitions(google.protobuf.message.Message): """A single security scheme definition, mapping a "name" to the scheme it defines. """ + def __init__( self, *, @@ -1753,11 +1790,12 @@ class SecurityDefinitions(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["security", b"security"] + self, field_name: typing.Literal["security", b"security"] ) -> None: ... global___SecurityDefinitions = SecurityDefinitions +@typing.final class SecurityScheme(google.protobuf.message.Message): """`SecurityScheme` is a representation of OpenAPI v2 specification's Security Scheme object. @@ -1781,7 +1819,7 @@ class SecurityScheme(google.protobuf.message.Message): SecurityScheme._Type.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TYPE_INVALID: SecurityScheme._Type.ValueType # 0 TYPE_BASIC: SecurityScheme._Type.ValueType # 1 @@ -1807,7 +1845,7 @@ class SecurityScheme(google.protobuf.message.Message): SecurityScheme._In.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor IN_INVALID: SecurityScheme._In.ValueType # 0 IN_QUERY: SecurityScheme._In.ValueType # 1 @@ -1829,7 +1867,7 @@ class SecurityScheme(google.protobuf.message.Message): SecurityScheme._Flow.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor FLOW_INVALID: SecurityScheme._Flow.ValueType # 0 FLOW_IMPLICIT: SecurityScheme._Flow.ValueType # 1 @@ -1848,6 +1886,7 @@ class SecurityScheme(google.protobuf.message.Message): FLOW_APPLICATION: SecurityScheme.Flow.ValueType # 3 FLOW_ACCESS_CODE: SecurityScheme.Flow.ValueType # 4 + @typing.final class ExtensionsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1863,11 +1902,10 @@ class SecurityScheme(google.protobuf.message.Message): value: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... TYPE_FIELD_NUMBER: builtins.int @@ -1909,6 +1947,7 @@ class SecurityScheme(google.protobuf.message.Message): """The available scopes for the OAuth2 security scheme. Valid for oauth2. """ + @property def extensions( self, @@ -1919,6 +1958,7 @@ class SecurityScheme(google.protobuf.message.Message): extra functionality that is not covered by the standard OpenAPI Specification. See: https://swagger.io/docs/specification/2-0/swagger-extensions/ """ + def __init__( self, *, @@ -1935,11 +1975,11 @@ class SecurityScheme(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["scopes", b"scopes"] + self, field_name: typing.Literal["scopes", b"scopes"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "authorization_url", b"authorization_url", "description", @@ -1963,6 +2003,7 @@ class SecurityScheme(google.protobuf.message.Message): global___SecurityScheme = SecurityScheme +@typing.final class SecurityRequirement(google.protobuf.message.Message): """`SecurityRequirement` is a representation of OpenAPI v2 specification's Security Requirement object. @@ -1979,6 +2020,7 @@ class SecurityRequirement(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class SecurityRequirementValue(google.protobuf.message.Message): """If the security scheme is of type "oauth2", then the value is a list of scope names required for the execution. For other security scheme types, @@ -1999,10 +2041,9 @@ class SecurityRequirement(google.protobuf.message.Message): *, scope: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["scope", b"scope"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["scope", b"scope"]) -> None: ... + @typing.final class SecurityRequirementEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2018,11 +2059,10 @@ class SecurityRequirement(google.protobuf.message.Message): value: global___SecurityRequirement.SecurityRequirementValue | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SECURITY_REQUIREMENT_FIELD_NUMBER: builtins.int @@ -2037,6 +2077,7 @@ class SecurityRequirement(google.protobuf.message.Message): then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty. """ + def __init__( self, *, @@ -2047,13 +2088,12 @@ class SecurityRequirement(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "security_requirement", b"security_requirement" - ], + field_name: typing.Literal["security_requirement", b"security_requirement"], ) -> None: ... global___SecurityRequirement = SecurityRequirement +@typing.final class Scopes(google.protobuf.message.Message): """`Scopes` is a representation of OpenAPI v2 specification's Scopes object. @@ -2064,6 +2104,7 @@ class Scopes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ScopeEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2078,8 +2119,7 @@ class Scopes(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SCOPE_FIELD_NUMBER: builtins.int @@ -2090,13 +2130,12 @@ class Scopes(google.protobuf.message.Message): """Maps between a name of a scope to a short description of it (as the value of the property). """ + def __init__( self, *, scope: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["scope", b"scope"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["scope", b"scope"]) -> None: ... global___Scopes = Scopes diff --git a/temporalio/api/deployment/v1/message_pb2.py b/temporalio/api/deployment/v1/message_pb2.py index cc3b1ea75..65b9a2da8 100644 --- a/temporalio/api/deployment/v1/message_pb2.py +++ b/temporalio/api/deployment/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -36,250 +35,8 @@ b'\n(temporal/api/deployment/v1/message.proto\x12\x1atemporal.api.deployment.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a&temporal/api/enums/v1/deployment.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/compute/v1/config.proto"\x91\x01\n\x17WorkerDeploymentOptions\x12\x17\n\x0f\x64\x65ployment_name\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t\x12K\n\x16worker_versioning_mode\x18\x03 \x01(\x0e\x32+.temporal.api.enums.v1.WorkerVersioningMode"3\n\nDeployment\x12\x13\n\x0bseries_name\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t"\x8e\x04\n\x0e\x44\x65ploymentInfo\x12:\n\ndeployment\x18\x01 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12R\n\x10task_queue_infos\x18\x03 \x03(\x0b\x32\x38.temporal.api.deployment.v1.DeploymentInfo.TaskQueueInfo\x12J\n\x08metadata\x18\x04 \x03(\x0b\x32\x38.temporal.api.deployment.v1.DeploymentInfo.MetadataEntry\x12\x12\n\nis_current\x18\x05 \x01(\x08\x1aP\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1a\x88\x01\n\rTaskQueueInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x35\n\x11\x66irst_poller_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xea\x01\n\x18UpdateDeploymentMetadata\x12_\n\x0eupsert_entries\x18\x01 \x03(\x0b\x32G.temporal.api.deployment.v1.UpdateDeploymentMetadata.UpsertEntriesEntry\x12\x16\n\x0eremove_entries\x18\x02 \x03(\t\x1aU\n\x12UpsertEntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x95\x01\n\x12\x44\x65ploymentListInfo\x12:\n\ndeployment\x18\x01 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nis_current\x18\x03 \x01(\x08"\xad\x08\n\x1bWorkerDeploymentVersionInfo\x12\x13\n\x07version\x18\x01 \x01(\tB\x02\x18\x01\x12\x44\n\x06status\x18\x0e \x01(\x0e\x32\x34.temporal.api.enums.v1.WorkerDeploymentVersionStatus\x12O\n\x12\x64\x65ployment_version\x18\x0b \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14routing_changed_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12\x63urrent_since_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12ramping_since_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x15\x66irst_activation_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_current_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16last_deactivation_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0framp_percentage\x18\x07 \x01(\x02\x12\x66\n\x10task_queue_infos\x18\x08 \x03(\x0b\x32L.temporal.api.deployment.v1.WorkerDeploymentVersionInfo.VersionTaskQueueInfo\x12\x46\n\rdrainage_info\x18\t \x01(\x0b\x32/.temporal.api.deployment.v1.VersionDrainageInfo\x12=\n\x08metadata\x18\n \x01(\x0b\x32+.temporal.api.deployment.v1.VersionMetadata\x12>\n\x0e\x63ompute_config\x18\x10 \x01(\x0b\x32&.temporal.api.compute.v1.ComputeConfig\x12\x1e\n\x16last_modifier_identity\x18\x11 \x01(\t\x1aX\n\x14VersionTaskQueueInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType"\xc1\x01\n\x13VersionDrainageInfo\x12<\n\x06status\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.VersionDrainageStatus\x12\x35\n\x11last_changed_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_checked_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xd8\x01\n\rComputeStatus\x12_\n\x13provider_validation\x18\x01 \x01(\x0b\x32\x42.temporal.api.deployment.v1.ComputeStatus.ProviderValidationStatus\x1a\x66\n\x18ProviderValidationStatus\x12\x15\n\rerror_message\x18\x01 \x01(\t\x12\x33\n\x0flast_check_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x84\n\n\x14WorkerDeploymentInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12j\n\x11version_summaries\x18\x02 \x03(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0erouting_config\x18\x04 \x01(\x0b\x32).temporal.api.deployment.v1.RoutingConfig\x12\x1e\n\x16last_modifier_identity\x18\x05 \x01(\t\x12\x18\n\x10manager_identity\x18\x06 \x01(\t\x12T\n\x1brouting_config_update_state\x18\x07 \x01(\x0e\x32/.temporal.api.enums.v1.RoutingConfigUpdateState\x1a\xed\x06\n\x1eWorkerDeploymentVersionSummary\x12\x13\n\x07version\x18\x01 \x01(\tB\x02\x18\x01\x12\x44\n\x06status\x18\x0b \x01(\x0e\x32\x34.temporal.api.enums.v1.WorkerDeploymentVersionStatus\x12O\n\x12\x64\x65ployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x0f\x64rainage_status\x18\x03 \x01(\x0e\x32,.temporal.api.enums.v1.VersionDrainageStatus\x12\x46\n\rdrainage_info\x18\x05 \x01(\x0b\x32/.temporal.api.deployment.v1.VersionDrainageInfo\x12\x36\n\x12\x63urrent_since_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12ramping_since_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13routing_update_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x15\x66irst_activation_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_current_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16last_deactivation_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x0e\x63ompute_config\x18\r \x01(\x0b\x32-.temporal.api.compute.v1.ComputeConfigSummary\x12\x41\n\x0e\x63ompute_status\x18\x0e \x01(\x0b\x32).temporal.api.deployment.v1.ComputeStatus"D\n\x17WorkerDeploymentVersion\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t"\xad\x01\n\x0fVersionMetadata\x12I\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x38.temporal.api.deployment.v1.VersionMetadata.EntriesEntry\x1aO\n\x0c\x45ntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x89\x04\n\rRoutingConfig\x12W\n\x1a\x63urrent_deployment_version\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0f\x63urrent_version\x18\x01 \x01(\tB\x02\x18\x01\x12W\n\x1aramping_deployment_version\x18\t \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0framping_version\x18\x02 \x01(\tB\x02\x18\x01\x12"\n\x1aramping_version_percentage\x18\x03 \x01(\x02\x12@\n\x1c\x63urrent_version_changed_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x1cramping_version_changed_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\'ramping_version_percentage_changed_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0frevision_number\x18\n \x01(\x03"\x8a\x02\n\x18InheritedAutoUpgradeInfo\x12V\n\x19source_deployment_version\x18\x01 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12)\n!source_deployment_revision_number\x18\x02 \x01(\x03\x12k\n+continue_as_new_initial_versioning_behavior\x18\x03 \x01(\x0e\x32\x36.temporal.api.enums.v1.ContinueAsNewVersioningBehaviorB\x9d\x01\n\x1dio.temporal.api.deployment.v1B\x0cMessageProtoP\x01Z+go.temporal.io/api/deployment/v1;deployment\xaa\x02\x1cTemporalio.Api.Deployment.V1\xea\x02\x1fTemporalio::Api::Deployment::V1b\x06proto3' ) - -_WORKERDEPLOYMENTOPTIONS = DESCRIPTOR.message_types_by_name["WorkerDeploymentOptions"] -_DEPLOYMENT = DESCRIPTOR.message_types_by_name["Deployment"] -_DEPLOYMENTINFO = DESCRIPTOR.message_types_by_name["DeploymentInfo"] -_DEPLOYMENTINFO_METADATAENTRY = _DEPLOYMENTINFO.nested_types_by_name["MetadataEntry"] -_DEPLOYMENTINFO_TASKQUEUEINFO = _DEPLOYMENTINFO.nested_types_by_name["TaskQueueInfo"] -_UPDATEDEPLOYMENTMETADATA = DESCRIPTOR.message_types_by_name["UpdateDeploymentMetadata"] -_UPDATEDEPLOYMENTMETADATA_UPSERTENTRIESENTRY = ( - _UPDATEDEPLOYMENTMETADATA.nested_types_by_name["UpsertEntriesEntry"] -) -_DEPLOYMENTLISTINFO = DESCRIPTOR.message_types_by_name["DeploymentListInfo"] -_WORKERDEPLOYMENTVERSIONINFO = DESCRIPTOR.message_types_by_name[ - "WorkerDeploymentVersionInfo" -] -_WORKERDEPLOYMENTVERSIONINFO_VERSIONTASKQUEUEINFO = ( - _WORKERDEPLOYMENTVERSIONINFO.nested_types_by_name["VersionTaskQueueInfo"] -) -_VERSIONDRAINAGEINFO = DESCRIPTOR.message_types_by_name["VersionDrainageInfo"] -_COMPUTESTATUS = DESCRIPTOR.message_types_by_name["ComputeStatus"] -_COMPUTESTATUS_PROVIDERVALIDATIONSTATUS = _COMPUTESTATUS.nested_types_by_name[ - "ProviderValidationStatus" -] -_WORKERDEPLOYMENTINFO = DESCRIPTOR.message_types_by_name["WorkerDeploymentInfo"] -_WORKERDEPLOYMENTINFO_WORKERDEPLOYMENTVERSIONSUMMARY = ( - _WORKERDEPLOYMENTINFO.nested_types_by_name["WorkerDeploymentVersionSummary"] -) -_WORKERDEPLOYMENTVERSION = DESCRIPTOR.message_types_by_name["WorkerDeploymentVersion"] -_VERSIONMETADATA = DESCRIPTOR.message_types_by_name["VersionMetadata"] -_VERSIONMETADATA_ENTRIESENTRY = _VERSIONMETADATA.nested_types_by_name["EntriesEntry"] -_ROUTINGCONFIG = DESCRIPTOR.message_types_by_name["RoutingConfig"] -_INHERITEDAUTOUPGRADEINFO = DESCRIPTOR.message_types_by_name["InheritedAutoUpgradeInfo"] -WorkerDeploymentOptions = _reflection.GeneratedProtocolMessageType( - "WorkerDeploymentOptions", - (_message.Message,), - { - "DESCRIPTOR": _WORKERDEPLOYMENTOPTIONS, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentOptions) - }, -) -_sym_db.RegisterMessage(WorkerDeploymentOptions) - -Deployment = _reflection.GeneratedProtocolMessageType( - "Deployment", - (_message.Message,), - { - "DESCRIPTOR": _DEPLOYMENT, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.Deployment) - }, -) -_sym_db.RegisterMessage(Deployment) - -DeploymentInfo = _reflection.GeneratedProtocolMessageType( - "DeploymentInfo", - (_message.Message,), - { - "MetadataEntry": _reflection.GeneratedProtocolMessageType( - "MetadataEntry", - (_message.Message,), - { - "DESCRIPTOR": _DEPLOYMENTINFO_METADATAENTRY, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.DeploymentInfo.MetadataEntry) - }, - ), - "TaskQueueInfo": _reflection.GeneratedProtocolMessageType( - "TaskQueueInfo", - (_message.Message,), - { - "DESCRIPTOR": _DEPLOYMENTINFO_TASKQUEUEINFO, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.DeploymentInfo.TaskQueueInfo) - }, - ), - "DESCRIPTOR": _DEPLOYMENTINFO, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.DeploymentInfo) - }, -) -_sym_db.RegisterMessage(DeploymentInfo) -_sym_db.RegisterMessage(DeploymentInfo.MetadataEntry) -_sym_db.RegisterMessage(DeploymentInfo.TaskQueueInfo) - -UpdateDeploymentMetadata = _reflection.GeneratedProtocolMessageType( - "UpdateDeploymentMetadata", - (_message.Message,), - { - "UpsertEntriesEntry": _reflection.GeneratedProtocolMessageType( - "UpsertEntriesEntry", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEDEPLOYMENTMETADATA_UPSERTENTRIESENTRY, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.UpdateDeploymentMetadata.UpsertEntriesEntry) - }, - ), - "DESCRIPTOR": _UPDATEDEPLOYMENTMETADATA, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.UpdateDeploymentMetadata) - }, -) -_sym_db.RegisterMessage(UpdateDeploymentMetadata) -_sym_db.RegisterMessage(UpdateDeploymentMetadata.UpsertEntriesEntry) - -DeploymentListInfo = _reflection.GeneratedProtocolMessageType( - "DeploymentListInfo", - (_message.Message,), - { - "DESCRIPTOR": _DEPLOYMENTLISTINFO, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.DeploymentListInfo) - }, -) -_sym_db.RegisterMessage(DeploymentListInfo) - -WorkerDeploymentVersionInfo = _reflection.GeneratedProtocolMessageType( - "WorkerDeploymentVersionInfo", - (_message.Message,), - { - "VersionTaskQueueInfo": _reflection.GeneratedProtocolMessageType( - "VersionTaskQueueInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKERDEPLOYMENTVERSIONINFO_VERSIONTASKQUEUEINFO, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentVersionInfo.VersionTaskQueueInfo) - }, - ), - "DESCRIPTOR": _WORKERDEPLOYMENTVERSIONINFO, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentVersionInfo) - }, -) -_sym_db.RegisterMessage(WorkerDeploymentVersionInfo) -_sym_db.RegisterMessage(WorkerDeploymentVersionInfo.VersionTaskQueueInfo) - -VersionDrainageInfo = _reflection.GeneratedProtocolMessageType( - "VersionDrainageInfo", - (_message.Message,), - { - "DESCRIPTOR": _VERSIONDRAINAGEINFO, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.VersionDrainageInfo) - }, -) -_sym_db.RegisterMessage(VersionDrainageInfo) - -ComputeStatus = _reflection.GeneratedProtocolMessageType( - "ComputeStatus", - (_message.Message,), - { - "ProviderValidationStatus": _reflection.GeneratedProtocolMessageType( - "ProviderValidationStatus", - (_message.Message,), - { - "DESCRIPTOR": _COMPUTESTATUS_PROVIDERVALIDATIONSTATUS, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.ComputeStatus.ProviderValidationStatus) - }, - ), - "DESCRIPTOR": _COMPUTESTATUS, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.ComputeStatus) - }, -) -_sym_db.RegisterMessage(ComputeStatus) -_sym_db.RegisterMessage(ComputeStatus.ProviderValidationStatus) - -WorkerDeploymentInfo = _reflection.GeneratedProtocolMessageType( - "WorkerDeploymentInfo", - (_message.Message,), - { - "WorkerDeploymentVersionSummary": _reflection.GeneratedProtocolMessageType( - "WorkerDeploymentVersionSummary", - (_message.Message,), - { - "DESCRIPTOR": _WORKERDEPLOYMENTINFO_WORKERDEPLOYMENTVERSIONSUMMARY, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary) - }, - ), - "DESCRIPTOR": _WORKERDEPLOYMENTINFO, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentInfo) - }, -) -_sym_db.RegisterMessage(WorkerDeploymentInfo) -_sym_db.RegisterMessage(WorkerDeploymentInfo.WorkerDeploymentVersionSummary) - -WorkerDeploymentVersion = _reflection.GeneratedProtocolMessageType( - "WorkerDeploymentVersion", - (_message.Message,), - { - "DESCRIPTOR": _WORKERDEPLOYMENTVERSION, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentVersion) - }, -) -_sym_db.RegisterMessage(WorkerDeploymentVersion) - -VersionMetadata = _reflection.GeneratedProtocolMessageType( - "VersionMetadata", - (_message.Message,), - { - "EntriesEntry": _reflection.GeneratedProtocolMessageType( - "EntriesEntry", - (_message.Message,), - { - "DESCRIPTOR": _VERSIONMETADATA_ENTRIESENTRY, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.VersionMetadata.EntriesEntry) - }, - ), - "DESCRIPTOR": _VERSIONMETADATA, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.VersionMetadata) - }, -) -_sym_db.RegisterMessage(VersionMetadata) -_sym_db.RegisterMessage(VersionMetadata.EntriesEntry) - -RoutingConfig = _reflection.GeneratedProtocolMessageType( - "RoutingConfig", - (_message.Message,), - { - "DESCRIPTOR": _ROUTINGCONFIG, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.RoutingConfig) - }, -) -_sym_db.RegisterMessage(RoutingConfig) - -InheritedAutoUpgradeInfo = _reflection.GeneratedProtocolMessageType( - "InheritedAutoUpgradeInfo", - (_message.Message,), - { - "DESCRIPTOR": _INHERITEDAUTOUPGRADEINFO, - "__module__": "temporalio.api.deployment.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.InheritedAutoUpgradeInfo) - }, -) -_sym_db.RegisterMessage(InheritedAutoUpgradeInfo) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\035io.temporal.api.deployment.v1B\014MessageProtoP\001Z+go.temporal.io/api/deployment/v1;deployment\252\002\034Temporalio.Api.Deployment.V1\352\002\037Temporalio::Api::Deployment::V1" diff --git a/temporalio/api/deployment/v1/message_pb2.pyi b/temporalio/api/deployment/v1/message_pb2.pyi index 96f31edd1..de21d4f1d 100644 --- a/temporalio/api/deployment/v1/message_pb2.pyi +++ b/temporalio/api/deployment/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers @@ -18,13 +18,9 @@ import temporalio.api.enums.v1.deployment_pb2 import temporalio.api.enums.v1.task_queue_pb2 import temporalio.api.enums.v1.workflow_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkerDeploymentOptions(google.protobuf.message.Message): """Worker Deployment options set in SDK that need to be sent to server in every poll.""" @@ -55,7 +51,7 @@ class WorkerDeploymentOptions(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id", b"build_id", "deployment_name", @@ -67,6 +63,7 @@ class WorkerDeploymentOptions(google.protobuf.message.Message): global___WorkerDeploymentOptions = WorkerDeploymentOptions +@typing.final class Deployment(google.protobuf.message.Message): """`Deployment` identifies a deployment of Temporal workers. The combination of deployment series name + build ID serves as the identifier. User can use `WorkerDeploymentOptions` in their worker @@ -97,13 +94,14 @@ class Deployment(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id", b"build_id", "series_name", b"series_name" ], ) -> None: ... global___Deployment = Deployment +@typing.final class DeploymentInfo(google.protobuf.message.Message): """`DeploymentInfo` holds information about a deployment. Deployment information is tracked automatically by server as soon as the first poll from that deployment reaches the server. There @@ -113,6 +111,7 @@ class DeploymentInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class MetadataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -128,13 +127,13 @@ class DeploymentInfo(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class TaskQueueInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -146,6 +145,7 @@ class DeploymentInfo(google.protobuf.message.Message): @property def first_poller_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When server saw the first poller for this task queue in this deployment.""" + def __init__( self, *, @@ -154,14 +154,11 @@ class DeploymentInfo(google.protobuf.message.Message): first_poller_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "first_poller_time", b"first_poller_time" - ], + self, field_name: typing.Literal["first_poller_time", b"first_poller_time"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "first_poller_time", b"first_poller_time", "name", @@ -176,6 +173,8 @@ class DeploymentInfo(google.protobuf.message.Message): TASK_QUEUE_INFOS_FIELD_NUMBER: builtins.int METADATA_FIELD_NUMBER: builtins.int IS_CURRENT_FIELD_NUMBER: builtins.int + is_current: builtins.bool + """If this deployment is the current deployment of its deployment series.""" @property def deployment(self) -> global___Deployment: ... @property @@ -195,8 +194,7 @@ class DeploymentInfo(google.protobuf.message.Message): """A user-defined set of key-values. Can be updated as part of write operations to the deployment, such as `SetCurrentDeployment`. """ - is_current: builtins.bool - """If this deployment is the current deployment of its deployment series.""" + def __init__( self, *, @@ -214,13 +212,13 @@ class DeploymentInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "deployment", b"deployment" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "deployment", @@ -236,6 +234,7 @@ class DeploymentInfo(google.protobuf.message.Message): global___DeploymentInfo = DeploymentInfo +@typing.final class UpdateDeploymentMetadata(google.protobuf.message.Message): """Used as part of Deployment write APIs to update metadata attached to a deployment. Deprecated. @@ -243,6 +242,7 @@ class UpdateDeploymentMetadata(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class UpsertEntriesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -258,11 +258,10 @@ class UpdateDeploymentMetadata(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... UPSERT_ENTRIES_FIELD_NUMBER: builtins.int @@ -278,6 +277,7 @@ class UpdateDeploymentMetadata(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of keys to remove from the metadata.""" + def __init__( self, *, @@ -289,13 +289,14 @@ class UpdateDeploymentMetadata(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "remove_entries", b"remove_entries", "upsert_entries", b"upsert_entries" ], ) -> None: ... global___UpdateDeploymentMetadata = UpdateDeploymentMetadata +@typing.final class DeploymentListInfo(google.protobuf.message.Message): """DeploymentListInfo is an abbreviated set of fields from DeploymentInfo that's returned in ListDeployments. @@ -307,12 +308,12 @@ class DeploymentListInfo(google.protobuf.message.Message): DEPLOYMENT_FIELD_NUMBER: builtins.int CREATE_TIME_FIELD_NUMBER: builtins.int IS_CURRENT_FIELD_NUMBER: builtins.int + is_current: builtins.bool + """If this deployment is the current deployment of its deployment series.""" @property def deployment(self) -> global___Deployment: ... @property def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - is_current: builtins.bool - """If this deployment is the current deployment of its deployment series.""" def __init__( self, *, @@ -322,13 +323,13 @@ class DeploymentListInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "deployment", b"deployment" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "deployment", @@ -340,6 +341,7 @@ class DeploymentListInfo(google.protobuf.message.Message): global___DeploymentListInfo = DeploymentListInfo +@typing.final class WorkerDeploymentVersionInfo(google.protobuf.message.Message): """A Worker Deployment Version (Version, for short) represents all workers of the same code and config within a Deployment. Workers of the same Version are expected to @@ -351,6 +353,7 @@ class WorkerDeploymentVersionInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class VersionTaskQueueInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -365,8 +368,7 @@ class WorkerDeploymentVersionInfo(google.protobuf.message.Message): type: temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["name", b"name", "type", b"type"], + self, field_name: typing.Literal["name", b"name", "type", b"type"] ) -> None: ... VERSION_FIELD_NUMBER: builtins.int @@ -392,45 +394,59 @@ class WorkerDeploymentVersionInfo(google.protobuf.message.Message): temporalio.api.enums.v1.deployment_pb2.WorkerDeploymentVersionStatus.ValueType ) """The status of the Worker Deployment Version.""" + deployment_name: builtins.str + """Deprecated. User deployment_version.deployment_name.""" + ramp_percentage: builtins.float + """Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil). + Can be in the range [0, 100] if the version is ramping. + """ + last_modifier_identity: builtins.str + """Identity of the last client who modified the configuration of this Version. + As of now, this field only covers changes through the following APIs: + - `CreateWorkerDeploymentVersion` + - `UpdateWorkerDeploymentVersionComputeConfig` + - `UpdateWorkerDeploymentVersionMetadata` + """ @property def deployment_version(self) -> global___WorkerDeploymentVersion: """Required.""" - deployment_name: builtins.str - """Deprecated. User deployment_version.deployment_name.""" + @property def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... @property def routing_changed_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.""" + @property def current_since_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) Unset if not current. """ + @property def ramping_since_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) Unset if not ramping. Updated when the version first starts ramping, not on each ramp change. """ + @property def first_activation_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamp when this version first became current or ramping.""" + @property def last_current_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamp when this version last became current. Can be used to determine whether a version has ever been Current. """ + @property def last_deactivation_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamp when this version last stopped being current or ramping. Cleared if the version becomes current or ramping again. """ - ramp_percentage: builtins.float - """Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil). - Can be in the range [0, 100] if the version is ramping. - """ + @property def task_queue_infos( self, @@ -440,6 +456,7 @@ class WorkerDeploymentVersionInfo(google.protobuf.message.Message): """All the Task Queues that have ever polled from this Deployment version. Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead. """ + @property def drainage_info(self) -> global___VersionDrainageInfo: """Helps user determine when it is safe to decommission the workers of this @@ -456,21 +473,17 @@ class WorkerDeploymentVersionInfo(google.protobuf.message.Message): Pinned Versioning Override, the status does not account for those Pinned-override executions and remains "drained". """ + @property def metadata(self) -> global___VersionMetadata: """Arbitrary user-provided metadata attached to this version.""" + @property def compute_config(self) -> temporalio.api.compute.v1.config_pb2.ComputeConfig: """Optional. Contains the new worker compute configuration for the Worker Deployment. Used for worker scale management. """ - last_modifier_identity: builtins.str - """Identity of the last client who modified the configuration of this Version. - As of now, this field only covers changes through the following APIs: - - `CreateWorkerDeploymentVersion` - - `UpdateWorkerDeploymentVersionComputeConfig` - - `UpdateWorkerDeploymentVersionMetadata` - """ + def __init__( self, *, @@ -497,7 +510,7 @@ class WorkerDeploymentVersionInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "compute_config", b"compute_config", "create_time", @@ -524,7 +537,7 @@ class WorkerDeploymentVersionInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "compute_config", b"compute_config", "create_time", @@ -564,6 +577,7 @@ class WorkerDeploymentVersionInfo(google.protobuf.message.Message): global___WorkerDeploymentVersionInfo = WorkerDeploymentVersionInfo +@typing.final class VersionDrainageInfo(google.protobuf.message.Message): """Information about workflow drainage to help the user determine when it is safe to decommission a Version. Not present while version is current or ramping. @@ -581,9 +595,11 @@ class VersionDrainageInfo(google.protobuf.message.Message): @property def last_changed_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Last time the drainage status changed.""" + @property def last_checked_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Last time the system checked for drainage of this version.""" + def __init__( self, *, @@ -593,7 +609,7 @@ class VersionDrainageInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "last_changed_time", b"last_changed_time", "last_checked_time", @@ -602,7 +618,7 @@ class VersionDrainageInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "last_changed_time", b"last_changed_time", "last_checked_time", @@ -614,11 +630,13 @@ class VersionDrainageInfo(google.protobuf.message.Message): global___VersionDrainageInfo = VersionDrainageInfo +@typing.final class ComputeStatus(google.protobuf.message.Message): """ComputeStatus represents compute-related configuration and health for a Worker Deployment Version.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ProviderValidationStatus(google.protobuf.message.Message): """ProviderValidationStatus represents the result of the most recent connectivity check between Temporal and a customer's compute provider. @@ -635,6 +653,7 @@ class ComputeStatus(google.protobuf.message.Message): @property def last_check_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamp of the last validation check.""" + def __init__( self, *, @@ -642,14 +661,11 @@ class ComputeStatus(google.protobuf.message.Message): last_check_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "last_check_time", b"last_check_time" - ], + self, field_name: typing.Literal["last_check_time", b"last_check_time"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "error_message", b"error_message", "last_check_time", b"last_check_time" ], ) -> None: ... @@ -658,6 +674,7 @@ class ComputeStatus(google.protobuf.message.Message): @property def provider_validation(self) -> global___ComputeStatus.ProviderValidationStatus: """provider_validation encapsulates the health signal for validating the compute provider.""" + def __init__( self, *, @@ -665,20 +682,15 @@ class ComputeStatus(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "provider_validation", b"provider_validation" - ], + self, field_name: typing.Literal["provider_validation", b"provider_validation"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "provider_validation", b"provider_validation" - ], + self, field_name: typing.Literal["provider_validation", b"provider_validation"] ) -> None: ... global___ComputeStatus = ComputeStatus +@typing.final class WorkerDeploymentInfo(google.protobuf.message.Message): """A Worker Deployment (Deployment, for short) represents all workers serving a shared set of Task Queues. Typically, a Deployment represents one service or @@ -691,6 +703,7 @@ class WorkerDeploymentInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class WorkerDeploymentVersionSummary(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -712,48 +725,56 @@ class WorkerDeploymentInfo(google.protobuf.message.Message): """Deprecated. Use `deployment_version`.""" status: temporalio.api.enums.v1.deployment_pb2.WorkerDeploymentVersionStatus.ValueType """The status of the Worker Deployment Version.""" + drainage_status: ( + temporalio.api.enums.v1.deployment_pb2.VersionDrainageStatus.ValueType + ) + """Deprecated. Use `drainage_info` instead.""" @property def deployment_version(self) -> global___WorkerDeploymentVersion: """Required.""" + @property def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - drainage_status: ( - temporalio.api.enums.v1.deployment_pb2.VersionDrainageStatus.ValueType - ) - """Deprecated. Use `drainage_info` instead.""" @property def drainage_info(self) -> global___VersionDrainageInfo: """Information about workflow drainage to help the user determine when it is safe to decommission a Version. Not present while version is current or ramping """ + @property def current_since_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Unset if not current. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) """ + @property def ramping_since_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Unset if not ramping. Updated when the version first starts ramping, not on each ramp change. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) """ + @property def routing_update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.""" + @property def first_activation_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamp when this version first became current or ramping.""" + @property def last_current_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamp when this version last became current. Can be used to determine whether a version has ever been Current. """ + @property def last_deactivation_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamp when this version last stopped being current or ramping. Cleared if the version becomes current or ramping again. """ + @property def compute_config( self, @@ -761,6 +782,7 @@ class WorkerDeploymentInfo(google.protobuf.message.Message): @property def compute_status(self) -> global___ComputeStatus: """ComputeStatus represents compute-related configuration and healthchecks.""" + def __init__( self, *, @@ -783,7 +805,7 @@ class WorkerDeploymentInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "compute_config", b"compute_config", "compute_status", @@ -810,7 +832,7 @@ class WorkerDeploymentInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "compute_config", b"compute_config", "compute_status", @@ -851,22 +873,6 @@ class WorkerDeploymentInfo(google.protobuf.message.Message): ROUTING_CONFIG_UPDATE_STATE_FIELD_NUMBER: builtins.int name: builtins.str """Identifies a Worker Deployment. Must be unique within the namespace.""" - @property - def version_summaries( - self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ - global___WorkerDeploymentInfo.WorkerDeploymentVersionSummary - ]: - """Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be - cleaned up automatically if all the following conditions meet: - - It does not receive new executions (is not current or ramping) - - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) - - It is drained (see WorkerDeploymentVersionInfo.drainage_status) - """ - @property - def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def routing_config(self) -> global___RoutingConfig: ... last_modifier_identity: builtins.str """Identity of the last client who modified the configuration of this Deployment. Set to the `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and @@ -884,6 +890,23 @@ class WorkerDeploymentInfo(google.protobuf.message.Message): """Indicates whether the routing_config has been fully propagated to all relevant task queues and their partitions. """ + @property + def version_summaries( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___WorkerDeploymentInfo.WorkerDeploymentVersionSummary + ]: + """Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be + cleaned up automatically if all the following conditions meet: + - It does not receive new executions (is not current or ramping) + - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) + - It is drained (see WorkerDeploymentVersionInfo.drainage_status) + """ + + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def routing_config(self) -> global___RoutingConfig: ... def __init__( self, *, @@ -900,13 +923,13 @@ class WorkerDeploymentInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "routing_config", b"routing_config" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "last_modifier_identity", @@ -926,6 +949,7 @@ class WorkerDeploymentInfo(google.protobuf.message.Message): global___WorkerDeploymentInfo = WorkerDeploymentInfo +@typing.final class WorkerDeploymentVersion(google.protobuf.message.Message): """A Worker Deployment Version (Version, for short) represents a version of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo) @@ -954,16 +978,18 @@ class WorkerDeploymentVersion(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id", b"build_id", "deployment_name", b"deployment_name" ], ) -> None: ... global___WorkerDeploymentVersion = WorkerDeploymentVersion +@typing.final class VersionMetadata(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class EntriesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -979,11 +1005,10 @@ class VersionMetadata(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... ENTRIES_FIELD_NUMBER: builtins.int @@ -994,6 +1019,7 @@ class VersionMetadata(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payload ]: """Arbitrary key-values.""" + def __init__( self, *, @@ -1002,12 +1028,11 @@ class VersionMetadata(google.protobuf.message.Message): ] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["entries", b"entries"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["entries", b"entries"]) -> None: ... global___VersionMetadata = VersionMetadata +@typing.final class RoutingConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1020,6 +1045,20 @@ class RoutingConfig(google.protobuf.message.Message): RAMPING_VERSION_CHANGED_TIME_FIELD_NUMBER: builtins.int RAMPING_VERSION_PERCENTAGE_CHANGED_TIME_FIELD_NUMBER: builtins.int REVISION_NUMBER_FIELD_NUMBER: builtins.int + current_version: builtins.str + """Deprecated. Use `current_deployment_version`.""" + ramping_version: builtins.str + """Deprecated. Use `ramping_deployment_version`.""" + ramping_version_percentage: builtins.float + """Percentage of tasks that are routed to the Ramping Version instead of the Current Version. + Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but + not yet "promoted" to be the Current Version, likely due to pending validations. + A 0% value means the Ramping Version is receiving no traffic. + """ + revision_number: builtins.int + """Monotonically increasing value which is incremented on every mutation + to any field of this message to achieve eventual consistency between task queues and their partitions. + """ @property def current_deployment_version(self) -> global___WorkerDeploymentVersion: """Specifies which Deployment Version should receive new workflow executions and tasks of @@ -1028,8 +1067,7 @@ class RoutingConfig(google.protobuf.message.Message): Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`). """ - current_version: builtins.str - """Deprecated. Use `current_deployment_version`.""" + @property def ramping_deployment_version(self) -> global___WorkerDeploymentVersion: """When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version. @@ -1038,20 +1076,15 @@ class RoutingConfig(google.protobuf.message.Message): Note that it is possible to ramp from one Version to another Version, or from unversioned workers to a particular Version, or from a particular Version to unversioned workers. """ - ramping_version: builtins.str - """Deprecated. Use `ramping_deployment_version`.""" - ramping_version_percentage: builtins.float - """Percentage of tasks that are routed to the Ramping Version instead of the Current Version. - Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but - not yet "promoted" to be the Current Version, likely due to pending validations. - A 0% value means the Ramping Version is receiving no traffic. - """ + @property def current_version_changed_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Last time current version was changed.""" + @property def ramping_version_changed_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Last time ramping version was changed. Not updated if only the ramp percentage changes.""" + @property def ramping_version_percentage_changed_time( self, @@ -1059,10 +1092,7 @@ class RoutingConfig(google.protobuf.message.Message): """Last time ramping version percentage was changed. If ramping version is changed, this is also updated, even if the percentage stays the same. """ - revision_number: builtins.int - """Monotonically increasing value which is incremented on every mutation - to any field of this message to achieve eventual consistency between task queues and their partitions. - """ + def __init__( self, *, @@ -1081,7 +1111,7 @@ class RoutingConfig(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_deployment_version", b"current_deployment_version", "current_version_changed_time", @@ -1096,7 +1126,7 @@ class RoutingConfig(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_deployment_version", b"current_deployment_version", "current_version", @@ -1120,6 +1150,7 @@ class RoutingConfig(google.protobuf.message.Message): global___RoutingConfig = RoutingConfig +@typing.final class InheritedAutoUpgradeInfo(google.protobuf.message.Message): """Used as part of WorkflowExecutionStartedEventAttributes to pass down the AutoUpgrade behavior and source deployment version to a workflow execution whose parent/previous workflow has an AutoUpgrade behavior. @@ -1131,9 +1162,6 @@ class InheritedAutoUpgradeInfo(google.protobuf.message.Message): SOURCE_DEPLOYMENT_VERSION_FIELD_NUMBER: builtins.int SOURCE_DEPLOYMENT_REVISION_NUMBER_FIELD_NUMBER: builtins.int CONTINUE_AS_NEW_INITIAL_VERSIONING_BEHAVIOR_FIELD_NUMBER: builtins.int - @property - def source_deployment_version(self) -> global___WorkerDeploymentVersion: - """The source deployment version of the parent/previous workflow.""" source_deployment_revision_number: builtins.int """The revision number of the source deployment version of the parent/previous workflow.""" continue_as_new_initial_versioning_behavior: ( @@ -1150,6 +1178,10 @@ class InheritedAutoUpgradeInfo(google.protobuf.message.Message): with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade value if the InheritedAutoUpgradeInfo is non-empty. """ + @property + def source_deployment_version(self) -> global___WorkerDeploymentVersion: + """The source deployment version of the parent/previous workflow.""" + def __init__( self, *, @@ -1159,13 +1191,13 @@ class InheritedAutoUpgradeInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "source_deployment_version", b"source_deployment_version" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "continue_as_new_initial_versioning_behavior", b"continue_as_new_initial_versioning_behavior", "source_deployment_revision_number", diff --git a/temporalio/api/enums/v1/__init__.py b/temporalio/api/enums/v1/__init__.py index 3dc3a179b..518a2f32b 100644 --- a/temporalio/api/enums/v1/__init__.py +++ b/temporalio/api/enums/v1/__init__.py @@ -25,6 +25,7 @@ ) from .event_type_pb2 import EventType from .failed_cause_pb2 import ( + ActivityTaskFailedCause, CancelExternalWorkflowExecutionFailedCause, ResourceExhaustedCause, ResourceExhaustedScope, @@ -74,6 +75,7 @@ "ActivityExecutionStatus", "ActivityIdConflictPolicy", "ActivityIdReusePolicy", + "ActivityTaskFailedCause", "ApplicationErrorCategory", "ArchivalState", "BatchOperationState", diff --git a/temporalio/api/enums/v1/activity_pb2.py b/temporalio/api/enums/v1/activity_pb2.py index fd709beb6..5a4d0f1c7 100644 --- a/temporalio/api/enums/v1/activity_pb2.py +++ b/temporalio/api/enums/v1/activity_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -19,29 +17,8 @@ b"\n$temporal/api/enums/v1/activity.proto\x12\x15temporal.api.enums.v1*\xdb\x02\n\x17\x41\x63tivityExecutionStatus\x12)\n%ACTIVITY_EXECUTION_STATUS_UNSPECIFIED\x10\x00\x12%\n!ACTIVITY_EXECUTION_STATUS_RUNNING\x10\x01\x12'\n#ACTIVITY_EXECUTION_STATUS_COMPLETED\x10\x02\x12$\n ACTIVITY_EXECUTION_STATUS_FAILED\x10\x03\x12&\n\"ACTIVITY_EXECUTION_STATUS_CANCELED\x10\x04\x12(\n$ACTIVITY_EXECUTION_STATUS_TERMINATED\x10\x05\x12'\n#ACTIVITY_EXECUTION_STATUS_TIMED_OUT\x10\x06\x12$\n ACTIVITY_EXECUTION_STATUS_PAUSED\x10\x07*\xd8\x01\n\x15\x41\x63tivityIdReusePolicy\x12(\n$ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED\x10\x00\x12,\n(ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE\x10\x01\x12\x38\n4ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY\x10\x02\x12-\n)ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE\x10\x03*\x9b\x01\n\x18\x41\x63tivityIdConflictPolicy\x12+\n'ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED\x10\x00\x12$\n ACTIVITY_ID_CONFLICT_POLICY_FAIL\x10\x01\x12,\n(ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING\x10\x02\x42\x85\x01\n\x18io.temporal.api.enums.v1B\rActivityProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" ) -_ACTIVITYEXECUTIONSTATUS = DESCRIPTOR.enum_types_by_name["ActivityExecutionStatus"] -ActivityExecutionStatus = enum_type_wrapper.EnumTypeWrapper(_ACTIVITYEXECUTIONSTATUS) -_ACTIVITYIDREUSEPOLICY = DESCRIPTOR.enum_types_by_name["ActivityIdReusePolicy"] -ActivityIdReusePolicy = enum_type_wrapper.EnumTypeWrapper(_ACTIVITYIDREUSEPOLICY) -_ACTIVITYIDCONFLICTPOLICY = DESCRIPTOR.enum_types_by_name["ActivityIdConflictPolicy"] -ActivityIdConflictPolicy = enum_type_wrapper.EnumTypeWrapper(_ACTIVITYIDCONFLICTPOLICY) -ACTIVITY_EXECUTION_STATUS_UNSPECIFIED = 0 -ACTIVITY_EXECUTION_STATUS_RUNNING = 1 -ACTIVITY_EXECUTION_STATUS_COMPLETED = 2 -ACTIVITY_EXECUTION_STATUS_FAILED = 3 -ACTIVITY_EXECUTION_STATUS_CANCELED = 4 -ACTIVITY_EXECUTION_STATUS_TERMINATED = 5 -ACTIVITY_EXECUTION_STATUS_TIMED_OUT = 6 -ACTIVITY_EXECUTION_STATUS_PAUSED = 7 -ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED = 0 -ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1 -ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2 -ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE = 3 -ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED = 0 -ACTIVITY_ID_CONFLICT_POLICY_FAIL = 1 -ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING = 2 - - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.enums.v1B\rActivityProtoP\001Z!go.temporal.io/api/enums/v1;enums\252\002\027Temporalio.Api.Enums.V1\352\002\032Temporalio::Api::Enums::V1" diff --git a/temporalio/api/enums/v1/activity_pb2.pyi b/temporalio/api/enums/v1/activity_pb2.pyi index cadaedb37..baba5d21f 100644 --- a/temporalio/api/enums/v1/activity_pb2.pyi +++ b/temporalio/api/enums/v1/activity_pb2.pyi @@ -26,7 +26,7 @@ class _ActivityExecutionStatusEnumTypeWrapper( _ActivityExecutionStatus.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ACTIVITY_EXECUTION_STATUS_UNSPECIFIED: _ActivityExecutionStatus.ValueType # 0 ACTIVITY_EXECUTION_STATUS_RUNNING: _ActivityExecutionStatus.ValueType # 1 @@ -126,7 +126,7 @@ class _ActivityIdReusePolicyEnumTypeWrapper( _ActivityIdReusePolicy.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED: _ActivityIdReusePolicy.ValueType # 0 ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE: _ActivityIdReusePolicy.ValueType # 1 @@ -175,7 +175,7 @@ class _ActivityIdConflictPolicyEnumTypeWrapper( _ActivityIdConflictPolicy.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ACTIVITY_ID_CONFLICT_POLICY_UNSPECIFIED: _ActivityIdConflictPolicy.ValueType # 0 ACTIVITY_ID_CONFLICT_POLICY_FAIL: _ActivityIdConflictPolicy.ValueType # 1 diff --git a/temporalio/api/enums/v1/batch_operation_pb2.py b/temporalio/api/enums/v1/batch_operation_pb2.py index 73d4e011b..a66024534 100644 --- a/temporalio/api/enums/v1/batch_operation_pb2.py +++ b/temporalio/api/enums/v1/batch_operation_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -19,35 +17,8 @@ b"\n+temporal/api/enums/v1/batch_operation.proto\x12\x15temporal.api.enums.v1*\xc3\x06\n\x12\x42\x61tchOperationType\x12$\n BATCH_OPERATION_TYPE_UNSPECIFIED\x10\x00\x12&\n\x1e\x42\x41TCH_OPERATION_TYPE_TERMINATE\x10\x01\x1a\x02\x08\x01\x12+\n'BATCH_OPERATION_TYPE_TERMINATE_WORKFLOW\x10\r\x12#\n\x1b\x42\x41TCH_OPERATION_TYPE_CANCEL\x10\x02\x1a\x02\x08\x01\x12(\n$BATCH_OPERATION_TYPE_CANCEL_WORKFLOW\x10\x0e\x12#\n\x1b\x42\x41TCH_OPERATION_TYPE_SIGNAL\x10\x03\x1a\x02\x08\x01\x12(\n$BATCH_OPERATION_TYPE_SIGNAL_WORKFLOW\x10\x0f\x12#\n\x1b\x42\x41TCH_OPERATION_TYPE_DELETE\x10\x04\x1a\x02\x08\x01\x12(\n$BATCH_OPERATION_TYPE_DELETE_WORKFLOW\x10\x10\x12\"\n\x1a\x42\x41TCH_OPERATION_TYPE_RESET\x10\x05\x1a\x02\x08\x01\x12'\n#BATCH_OPERATION_TYPE_RESET_WORKFLOW\x10\x11\x12\x35\n-BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS\x10\x06\x1a\x02\x08\x01\x12:\n6BATCH_OPERATION_TYPE_UPDATE_WORKFLOW_EXECUTION_OPTIONS\x10\x12\x12)\n%BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY\x10\x07\x12\x30\n,BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS\x10\x08\x12'\n#BATCH_OPERATION_TYPE_RESET_ACTIVITY\x10\t\x12+\n'BATCH_OPERATION_TYPE_TERMINATE_ACTIVITY\x10\n\x12(\n$BATCH_OPERATION_TYPE_CANCEL_ACTIVITY\x10\x0b\x12(\n$BATCH_OPERATION_TYPE_DELETE_ACTIVITY\x10\x0c*\xa6\x01\n\x13\x42\x61tchOperationState\x12%\n!BATCH_OPERATION_STATE_UNSPECIFIED\x10\x00\x12!\n\x1d\x42\x41TCH_OPERATION_STATE_RUNNING\x10\x01\x12#\n\x1f\x42\x41TCH_OPERATION_STATE_COMPLETED\x10\x02\x12 \n\x1c\x42\x41TCH_OPERATION_STATE_FAILED\x10\x03\x42\x8b\x01\n\x18io.temporal.api.enums.v1B\x13\x42\x61tchOperationProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" ) -_BATCHOPERATIONTYPE = DESCRIPTOR.enum_types_by_name["BatchOperationType"] -BatchOperationType = enum_type_wrapper.EnumTypeWrapper(_BATCHOPERATIONTYPE) -_BATCHOPERATIONSTATE = DESCRIPTOR.enum_types_by_name["BatchOperationState"] -BatchOperationState = enum_type_wrapper.EnumTypeWrapper(_BATCHOPERATIONSTATE) -BATCH_OPERATION_TYPE_UNSPECIFIED = 0 -BATCH_OPERATION_TYPE_TERMINATE = 1 -BATCH_OPERATION_TYPE_TERMINATE_WORKFLOW = 13 -BATCH_OPERATION_TYPE_CANCEL = 2 -BATCH_OPERATION_TYPE_CANCEL_WORKFLOW = 14 -BATCH_OPERATION_TYPE_SIGNAL = 3 -BATCH_OPERATION_TYPE_SIGNAL_WORKFLOW = 15 -BATCH_OPERATION_TYPE_DELETE = 4 -BATCH_OPERATION_TYPE_DELETE_WORKFLOW = 16 -BATCH_OPERATION_TYPE_RESET = 5 -BATCH_OPERATION_TYPE_RESET_WORKFLOW = 17 -BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS = 6 -BATCH_OPERATION_TYPE_UPDATE_WORKFLOW_EXECUTION_OPTIONS = 18 -BATCH_OPERATION_TYPE_UNPAUSE_ACTIVITY = 7 -BATCH_OPERATION_TYPE_UPDATE_ACTIVITY_OPTIONS = 8 -BATCH_OPERATION_TYPE_RESET_ACTIVITY = 9 -BATCH_OPERATION_TYPE_TERMINATE_ACTIVITY = 10 -BATCH_OPERATION_TYPE_CANCEL_ACTIVITY = 11 -BATCH_OPERATION_TYPE_DELETE_ACTIVITY = 12 -BATCH_OPERATION_STATE_UNSPECIFIED = 0 -BATCH_OPERATION_STATE_RUNNING = 1 -BATCH_OPERATION_STATE_COMPLETED = 2 -BATCH_OPERATION_STATE_FAILED = 3 - - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.enums.v1B\023BatchOperationProtoP\001Z!go.temporal.io/api/enums/v1;enums\252\002\027Temporalio.Api.Enums.V1\352\002\032Temporalio::Api::Enums::V1" diff --git a/temporalio/api/enums/v1/batch_operation_pb2.pyi b/temporalio/api/enums/v1/batch_operation_pb2.pyi index 156ba51ed..049dfb40a 100644 --- a/temporalio/api/enums/v1/batch_operation_pb2.pyi +++ b/temporalio/api/enums/v1/batch_operation_pb2.pyi @@ -26,7 +26,7 @@ class _BatchOperationTypeEnumTypeWrapper( _BatchOperationType.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor BATCH_OPERATION_TYPE_UNSPECIFIED: _BatchOperationType.ValueType # 0 BATCH_OPERATION_TYPE_TERMINATE: _BatchOperationType.ValueType # 1 @@ -98,7 +98,7 @@ class _BatchOperationStateEnumTypeWrapper( _BatchOperationState.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor BATCH_OPERATION_STATE_UNSPECIFIED: _BatchOperationState.ValueType # 0 BATCH_OPERATION_STATE_RUNNING: _BatchOperationState.ValueType # 1 diff --git a/temporalio/api/enums/v1/command_type_pb2.py b/temporalio/api/enums/v1/command_type_pb2.py index 6d1c3b6e5..d49c9c369 100644 --- a/temporalio/api/enums/v1/command_type_pb2.py +++ b/temporalio/api/enums/v1/command_type_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -19,28 +17,8 @@ b"\n(temporal/api/enums/v1/command_type.proto\x12\x15temporal.api.enums.v1*\x9c\x06\n\x0b\x43ommandType\x12\x1c\n\x18\x43OMMAND_TYPE_UNSPECIFIED\x10\x00\x12'\n#COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK\x10\x01\x12-\n)COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK\x10\x02\x12\x1c\n\x18\x43OMMAND_TYPE_START_TIMER\x10\x03\x12,\n(COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION\x10\x04\x12(\n$COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION\x10\x05\x12\x1d\n\x19\x43OMMAND_TYPE_CANCEL_TIMER\x10\x06\x12*\n&COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION\x10\x07\x12;\n7COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION\x10\x08\x12\x1e\n\x1a\x43OMMAND_TYPE_RECORD_MARKER\x10\t\x12\x33\n/COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION\x10\n\x12/\n+COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION\x10\x0b\x12\x33\n/COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION\x10\x0c\x12\x32\n.COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES\x10\r\x12!\n\x1d\x43OMMAND_TYPE_PROTOCOL_MESSAGE\x10\x0e\x12+\n'COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES\x10\x10\x12)\n%COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION\x10\x11\x12/\n+COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION\x10\x12\x42\x88\x01\n\x18io.temporal.api.enums.v1B\x10\x43ommandTypeProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" ) -_COMMANDTYPE = DESCRIPTOR.enum_types_by_name["CommandType"] -CommandType = enum_type_wrapper.EnumTypeWrapper(_COMMANDTYPE) -COMMAND_TYPE_UNSPECIFIED = 0 -COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK = 1 -COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK = 2 -COMMAND_TYPE_START_TIMER = 3 -COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION = 4 -COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION = 5 -COMMAND_TYPE_CANCEL_TIMER = 6 -COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION = 7 -COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION = 8 -COMMAND_TYPE_RECORD_MARKER = 9 -COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION = 10 -COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION = 11 -COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION = 12 -COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES = 13 -COMMAND_TYPE_PROTOCOL_MESSAGE = 14 -COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES = 16 -COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION = 17 -COMMAND_TYPE_REQUEST_CANCEL_NEXUS_OPERATION = 18 - - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.enums.v1B\020CommandTypeProtoP\001Z!go.temporal.io/api/enums/v1;enums\252\002\027Temporalio.Api.Enums.V1\352\002\032Temporalio::Api::Enums::V1" diff --git a/temporalio/api/enums/v1/command_type_pb2.pyi b/temporalio/api/enums/v1/command_type_pb2.pyi index 9f1bfd240..951e61aa9 100644 --- a/temporalio/api/enums/v1/command_type_pb2.pyi +++ b/temporalio/api/enums/v1/command_type_pb2.pyi @@ -24,7 +24,7 @@ class _CommandType: class _CommandTypeEnumTypeWrapper( google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CommandType.ValueType], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor COMMAND_TYPE_UNSPECIFIED: _CommandType.ValueType # 0 COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK: _CommandType.ValueType # 1 diff --git a/temporalio/api/enums/v1/common_pb2.py b/temporalio/api/enums/v1/common_pb2.py index a646df4ad..48db1c3b1 100644 --- a/temporalio/api/enums/v1/common_pb2.py +++ b/temporalio/api/enums/v1/common_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -16,85 +14,11 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b"\n\"temporal/api/enums/v1/common.proto\x12\x15temporal.api.enums.v1*_\n\x0c\x45ncodingType\x12\x1d\n\x19\x45NCODING_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x45NCODING_TYPE_PROTO3\x10\x01\x12\x16\n\x12\x45NCODING_TYPE_JSON\x10\x02*\x91\x02\n\x10IndexedValueType\x12\"\n\x1eINDEXED_VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17INDEXED_VALUE_TYPE_TEXT\x10\x01\x12\x1e\n\x1aINDEXED_VALUE_TYPE_KEYWORD\x10\x02\x12\x1a\n\x16INDEXED_VALUE_TYPE_INT\x10\x03\x12\x1d\n\x19INDEXED_VALUE_TYPE_DOUBLE\x10\x04\x12\x1b\n\x17INDEXED_VALUE_TYPE_BOOL\x10\x05\x12\x1f\n\x1bINDEXED_VALUE_TYPE_DATETIME\x10\x06\x12#\n\x1fINDEXED_VALUE_TYPE_KEYWORD_LIST\x10\x07*^\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x11\n\rSEVERITY_HIGH\x10\x01\x12\x13\n\x0fSEVERITY_MEDIUM\x10\x02\x12\x10\n\x0cSEVERITY_LOW\x10\x03*\xde\x01\n\rCallbackState\x12\x1e\n\x1a\x43\x41LLBACK_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x43\x41LLBACK_STATE_STANDBY\x10\x01\x12\x1c\n\x18\x43\x41LLBACK_STATE_SCHEDULED\x10\x02\x12\x1e\n\x1a\x43\x41LLBACK_STATE_BACKING_OFF\x10\x03\x12\x19\n\x15\x43\x41LLBACK_STATE_FAILED\x10\x04\x12\x1c\n\x18\x43\x41LLBACK_STATE_SUCCEEDED\x10\x05\x12\x1a\n\x16\x43\x41LLBACK_STATE_BLOCKED\x10\x06*\xfd\x01\n\x1aPendingNexusOperationState\x12-\n)PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED\x10\x00\x12+\n'PENDING_NEXUS_OPERATION_STATE_SCHEDULED\x10\x01\x12-\n)PENDING_NEXUS_OPERATION_STATE_BACKING_OFF\x10\x02\x12)\n%PENDING_NEXUS_OPERATION_STATE_STARTED\x10\x03\x12)\n%PENDING_NEXUS_OPERATION_STATE_BLOCKED\x10\x04*\xfe\x02\n\x1fNexusOperationCancellationState\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED\x10\x00\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED\x10\x01\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF\x10\x02\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED\x10\x03\x12-\n)NEXUS_OPERATION_CANCELLATION_STATE_FAILED\x10\x04\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT\x10\x05\x12.\n*NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED\x10\x06*\x97\x01\n\x17WorkflowRuleActionScope\x12*\n&WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED\x10\x00\x12'\n#WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW\x10\x01\x12'\n#WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY\x10\x02*m\n\x18\x41pplicationErrorCategory\x12*\n&APPLICATION_ERROR_CATEGORY_UNSPECIFIED\x10\x00\x12%\n!APPLICATION_ERROR_CATEGORY_BENIGN\x10\x01*\x85\x01\n\x0cWorkerStatus\x12\x1d\n\x19WORKER_STATUS_UNSPECIFIED\x10\x00\x12\x19\n\x15WORKER_STATUS_RUNNING\x10\x01\x12\x1f\n\x1bWORKER_STATUS_SHUTTING_DOWN\x10\x02\x12\x1a\n\x16WORKER_STATUS_SHUTDOWN\x10\x03*i\n\rExecutionType\x12\x1e\n\x1a\x45XECUTION_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45XECUTION_TYPE_WORKFLOW\x10\x01\x12\x1b\n\x17\x45XECUTION_TYPE_ACTIVITY\x10\x02\x42\x83\x01\n\x18io.temporal.api.enums.v1B\x0b\x43ommonProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" + b"\n\"temporal/api/enums/v1/common.proto\x12\x15temporal.api.enums.v1*_\n\x0c\x45ncodingType\x12\x1d\n\x19\x45NCODING_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x45NCODING_TYPE_PROTO3\x10\x01\x12\x16\n\x12\x45NCODING_TYPE_JSON\x10\x02*\x91\x02\n\x10IndexedValueType\x12\"\n\x1eINDEXED_VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17INDEXED_VALUE_TYPE_TEXT\x10\x01\x12\x1e\n\x1aINDEXED_VALUE_TYPE_KEYWORD\x10\x02\x12\x1a\n\x16INDEXED_VALUE_TYPE_INT\x10\x03\x12\x1d\n\x19INDEXED_VALUE_TYPE_DOUBLE\x10\x04\x12\x1b\n\x17INDEXED_VALUE_TYPE_BOOL\x10\x05\x12\x1f\n\x1bINDEXED_VALUE_TYPE_DATETIME\x10\x06\x12#\n\x1fINDEXED_VALUE_TYPE_KEYWORD_LIST\x10\x07*^\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x11\n\rSEVERITY_HIGH\x10\x01\x12\x13\n\x0fSEVERITY_MEDIUM\x10\x02\x12\x10\n\x0cSEVERITY_LOW\x10\x03*\xde\x01\n\rCallbackState\x12\x1e\n\x1a\x43\x41LLBACK_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x43\x41LLBACK_STATE_STANDBY\x10\x01\x12\x1c\n\x18\x43\x41LLBACK_STATE_SCHEDULED\x10\x02\x12\x1e\n\x1a\x43\x41LLBACK_STATE_BACKING_OFF\x10\x03\x12\x19\n\x15\x43\x41LLBACK_STATE_FAILED\x10\x04\x12\x1c\n\x18\x43\x41LLBACK_STATE_SUCCEEDED\x10\x05\x12\x1a\n\x16\x43\x41LLBACK_STATE_BLOCKED\x10\x06*\xfd\x01\n\x1aPendingNexusOperationState\x12-\n)PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED\x10\x00\x12+\n'PENDING_NEXUS_OPERATION_STATE_SCHEDULED\x10\x01\x12-\n)PENDING_NEXUS_OPERATION_STATE_BACKING_OFF\x10\x02\x12)\n%PENDING_NEXUS_OPERATION_STATE_STARTED\x10\x03\x12)\n%PENDING_NEXUS_OPERATION_STATE_BLOCKED\x10\x04*\xfe\x02\n\x1fNexusOperationCancellationState\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED\x10\x00\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED\x10\x01\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF\x10\x02\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED\x10\x03\x12-\n)NEXUS_OPERATION_CANCELLATION_STATE_FAILED\x10\x04\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT\x10\x05\x12.\n*NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED\x10\x06*\x97\x01\n\x17WorkflowRuleActionScope\x12*\n&WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED\x10\x00\x12'\n#WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW\x10\x01\x12'\n#WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY\x10\x02*m\n\x18\x41pplicationErrorCategory\x12*\n&APPLICATION_ERROR_CATEGORY_UNSPECIFIED\x10\x00\x12%\n!APPLICATION_ERROR_CATEGORY_BENIGN\x10\x01*\x85\x01\n\x0cWorkerStatus\x12\x1d\n\x19WORKER_STATUS_UNSPECIFIED\x10\x00\x12\x19\n\x15WORKER_STATUS_RUNNING\x10\x01\x12\x1f\n\x1bWORKER_STATUS_SHUTTING_DOWN\x10\x02\x12\x1a\n\x16WORKER_STATUS_SHUTDOWN\x10\x03*\x8d\x01\n\rExecutionType\x12\x1e\n\x1a\x45XECUTION_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45XECUTION_TYPE_WORKFLOW\x10\x01\x12\x1b\n\x17\x45XECUTION_TYPE_ACTIVITY\x10\x02\x12\"\n\x1e\x45XECUTION_TYPE_NEXUS_OPERATION\x10\x03\x42\x83\x01\n\x18io.temporal.api.enums.v1B\x0b\x43ommonProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" ) -_ENCODINGTYPE = DESCRIPTOR.enum_types_by_name["EncodingType"] -EncodingType = enum_type_wrapper.EnumTypeWrapper(_ENCODINGTYPE) -_INDEXEDVALUETYPE = DESCRIPTOR.enum_types_by_name["IndexedValueType"] -IndexedValueType = enum_type_wrapper.EnumTypeWrapper(_INDEXEDVALUETYPE) -_SEVERITY = DESCRIPTOR.enum_types_by_name["Severity"] -Severity = enum_type_wrapper.EnumTypeWrapper(_SEVERITY) -_CALLBACKSTATE = DESCRIPTOR.enum_types_by_name["CallbackState"] -CallbackState = enum_type_wrapper.EnumTypeWrapper(_CALLBACKSTATE) -_PENDINGNEXUSOPERATIONSTATE = DESCRIPTOR.enum_types_by_name[ - "PendingNexusOperationState" -] -PendingNexusOperationState = enum_type_wrapper.EnumTypeWrapper( - _PENDINGNEXUSOPERATIONSTATE -) -_NEXUSOPERATIONCANCELLATIONSTATE = DESCRIPTOR.enum_types_by_name[ - "NexusOperationCancellationState" -] -NexusOperationCancellationState = enum_type_wrapper.EnumTypeWrapper( - _NEXUSOPERATIONCANCELLATIONSTATE -) -_WORKFLOWRULEACTIONSCOPE = DESCRIPTOR.enum_types_by_name["WorkflowRuleActionScope"] -WorkflowRuleActionScope = enum_type_wrapper.EnumTypeWrapper(_WORKFLOWRULEACTIONSCOPE) -_APPLICATIONERRORCATEGORY = DESCRIPTOR.enum_types_by_name["ApplicationErrorCategory"] -ApplicationErrorCategory = enum_type_wrapper.EnumTypeWrapper(_APPLICATIONERRORCATEGORY) -_WORKERSTATUS = DESCRIPTOR.enum_types_by_name["WorkerStatus"] -WorkerStatus = enum_type_wrapper.EnumTypeWrapper(_WORKERSTATUS) -_EXECUTIONTYPE = DESCRIPTOR.enum_types_by_name["ExecutionType"] -ExecutionType = enum_type_wrapper.EnumTypeWrapper(_EXECUTIONTYPE) -ENCODING_TYPE_UNSPECIFIED = 0 -ENCODING_TYPE_PROTO3 = 1 -ENCODING_TYPE_JSON = 2 -INDEXED_VALUE_TYPE_UNSPECIFIED = 0 -INDEXED_VALUE_TYPE_TEXT = 1 -INDEXED_VALUE_TYPE_KEYWORD = 2 -INDEXED_VALUE_TYPE_INT = 3 -INDEXED_VALUE_TYPE_DOUBLE = 4 -INDEXED_VALUE_TYPE_BOOL = 5 -INDEXED_VALUE_TYPE_DATETIME = 6 -INDEXED_VALUE_TYPE_KEYWORD_LIST = 7 -SEVERITY_UNSPECIFIED = 0 -SEVERITY_HIGH = 1 -SEVERITY_MEDIUM = 2 -SEVERITY_LOW = 3 -CALLBACK_STATE_UNSPECIFIED = 0 -CALLBACK_STATE_STANDBY = 1 -CALLBACK_STATE_SCHEDULED = 2 -CALLBACK_STATE_BACKING_OFF = 3 -CALLBACK_STATE_FAILED = 4 -CALLBACK_STATE_SUCCEEDED = 5 -CALLBACK_STATE_BLOCKED = 6 -PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED = 0 -PENDING_NEXUS_OPERATION_STATE_SCHEDULED = 1 -PENDING_NEXUS_OPERATION_STATE_BACKING_OFF = 2 -PENDING_NEXUS_OPERATION_STATE_STARTED = 3 -PENDING_NEXUS_OPERATION_STATE_BLOCKED = 4 -NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED = 0 -NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED = 1 -NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF = 2 -NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED = 3 -NEXUS_OPERATION_CANCELLATION_STATE_FAILED = 4 -NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT = 5 -NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED = 6 -WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED = 0 -WORKFLOW_RULE_ACTION_SCOPE_WORKFLOW = 1 -WORKFLOW_RULE_ACTION_SCOPE_ACTIVITY = 2 -APPLICATION_ERROR_CATEGORY_UNSPECIFIED = 0 -APPLICATION_ERROR_CATEGORY_BENIGN = 1 -WORKER_STATUS_UNSPECIFIED = 0 -WORKER_STATUS_RUNNING = 1 -WORKER_STATUS_SHUTTING_DOWN = 2 -WORKER_STATUS_SHUTDOWN = 3 -EXECUTION_TYPE_UNSPECIFIED = 0 -EXECUTION_TYPE_WORKFLOW = 1 -EXECUTION_TYPE_ACTIVITY = 2 - - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.enums.v1B\013CommonProtoP\001Z!go.temporal.io/api/enums/v1;enums\252\002\027Temporalio.Api.Enums.V1\352\002\032Temporalio::Api::Enums::V1" @@ -116,6 +40,6 @@ _APPLICATIONERRORCATEGORY._serialized_end = 1659 _WORKERSTATUS._serialized_start = 1662 _WORKERSTATUS._serialized_end = 1795 - _EXECUTIONTYPE._serialized_start = 1797 - _EXECUTIONTYPE._serialized_end = 1902 + _EXECUTIONTYPE._serialized_start = 1798 + _EXECUTIONTYPE._serialized_end = 1939 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/enums/v1/common_pb2.pyi b/temporalio/api/enums/v1/common_pb2.pyi index 47b6d030b..0189b93c2 100644 --- a/temporalio/api/enums/v1/common_pb2.pyi +++ b/temporalio/api/enums/v1/common_pb2.pyi @@ -26,7 +26,7 @@ class _EncodingTypeEnumTypeWrapper( _EncodingType.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ENCODING_TYPE_UNSPECIFIED: _EncodingType.ValueType # 0 ENCODING_TYPE_PROTO3: _EncodingType.ValueType # 1 @@ -48,7 +48,7 @@ class _IndexedValueTypeEnumTypeWrapper( _IndexedValueType.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor INDEXED_VALUE_TYPE_UNSPECIFIED: _IndexedValueType.ValueType # 0 INDEXED_VALUE_TYPE_TEXT: _IndexedValueType.ValueType # 1 @@ -80,7 +80,7 @@ class _Severity: class _SeverityEnumTypeWrapper( google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Severity.ValueType], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SEVERITY_UNSPECIFIED: _Severity.ValueType # 0 SEVERITY_HIGH: _Severity.ValueType # 1 @@ -104,7 +104,7 @@ class _CallbackStateEnumTypeWrapper( _CallbackState.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CALLBACK_STATE_UNSPECIFIED: _CallbackState.ValueType # 0 """Default value, unspecified state.""" @@ -119,7 +119,7 @@ class _CallbackStateEnumTypeWrapper( CALLBACK_STATE_SUCCEEDED: _CallbackState.ValueType # 5 """Callback has succeeded.""" CALLBACK_STATE_BLOCKED: _CallbackState.ValueType # 6 - """Callback is blocked (eg: by circuit breaker).""" + """Callback is blocked, e.g. by circuit breaker.""" class CallbackState(_CallbackState, metaclass=_CallbackStateEnumTypeWrapper): """State of a callback.""" @@ -137,7 +137,7 @@ CALLBACK_STATE_FAILED: CallbackState.ValueType # 4 CALLBACK_STATE_SUCCEEDED: CallbackState.ValueType # 5 """Callback has succeeded.""" CALLBACK_STATE_BLOCKED: CallbackState.ValueType # 6 -"""Callback is blocked (eg: by circuit breaker).""" +"""Callback is blocked, e.g. by circuit breaker.""" global___CallbackState = CallbackState class _PendingNexusOperationState: @@ -149,7 +149,7 @@ class _PendingNexusOperationStateEnumTypeWrapper( _PendingNexusOperationState.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED: ( _PendingNexusOperationState.ValueType @@ -192,7 +192,7 @@ class _NexusOperationCancellationStateEnumTypeWrapper( _NexusOperationCancellationState.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED: ( _NexusOperationCancellationState.ValueType @@ -268,7 +268,7 @@ class _WorkflowRuleActionScopeEnumTypeWrapper( _WorkflowRuleActionScope.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor WORKFLOW_RULE_ACTION_SCOPE_UNSPECIFIED: _WorkflowRuleActionScope.ValueType # 0 """Default value, unspecified scope.""" @@ -298,7 +298,7 @@ class _ApplicationErrorCategoryEnumTypeWrapper( _ApplicationErrorCategory.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor APPLICATION_ERROR_CATEGORY_UNSPECIFIED: _ApplicationErrorCategory.ValueType # 0 APPLICATION_ERROR_CATEGORY_BENIGN: _ApplicationErrorCategory.ValueType # 1 @@ -322,7 +322,7 @@ class _WorkerStatusEnumTypeWrapper( _WorkerStatus.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor WORKER_STATUS_UNSPECIFIED: _WorkerStatus.ValueType # 0 WORKER_STATUS_RUNNING: _WorkerStatus.ValueType # 1 @@ -349,13 +349,15 @@ class _ExecutionTypeEnumTypeWrapper( _ExecutionType.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor EXECUTION_TYPE_UNSPECIFIED: _ExecutionType.ValueType # 0 EXECUTION_TYPE_WORKFLOW: _ExecutionType.ValueType # 1 """A workflow execution archetype.""" EXECUTION_TYPE_ACTIVITY: _ExecutionType.ValueType # 2 """An activity execution archetype. This is reserved for standalone activities.""" + EXECUTION_TYPE_NEXUS_OPERATION: _ExecutionType.ValueType # 3 + """A Nexus operation execution archetype. This is reserved for standalone Nexus operations.""" class ExecutionType(_ExecutionType, metaclass=_ExecutionTypeEnumTypeWrapper): ... @@ -364,4 +366,6 @@ EXECUTION_TYPE_WORKFLOW: ExecutionType.ValueType # 1 """A workflow execution archetype.""" EXECUTION_TYPE_ACTIVITY: ExecutionType.ValueType # 2 """An activity execution archetype. This is reserved for standalone activities.""" +EXECUTION_TYPE_NEXUS_OPERATION: ExecutionType.ValueType # 3 +"""A Nexus operation execution archetype. This is reserved for standalone Nexus operations.""" global___ExecutionType = ExecutionType diff --git a/temporalio/api/enums/v1/deployment_pb2.py b/temporalio/api/enums/v1/deployment_pb2.py index aa05071ed..ee2353bb6 100644 --- a/temporalio/api/enums/v1/deployment_pb2.py +++ b/temporalio/api/enums/v1/deployment_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -19,37 +17,8 @@ b"\n&temporal/api/enums/v1/deployment.proto\x12\x15temporal.api.enums.v1*\xc4\x01\n\x16\x44\x65ploymentReachability\x12'\n#DEPLOYMENT_REACHABILITY_UNSPECIFIED\x10\x00\x12%\n!DEPLOYMENT_REACHABILITY_REACHABLE\x10\x01\x12\x31\n-DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY\x10\x02\x12'\n#DEPLOYMENT_REACHABILITY_UNREACHABLE\x10\x03*\x8b\x01\n\x15VersionDrainageStatus\x12'\n#VERSION_DRAINAGE_STATUS_UNSPECIFIED\x10\x00\x12$\n VERSION_DRAINAGE_STATUS_DRAINING\x10\x01\x12#\n\x1fVERSION_DRAINAGE_STATUS_DRAINED\x10\x02*\x8c\x01\n\x14WorkerVersioningMode\x12&\n\"WORKER_VERSIONING_MODE_UNSPECIFIED\x10\x00\x12&\n\"WORKER_VERSIONING_MODE_UNVERSIONED\x10\x01\x12$\n WORKER_VERSIONING_MODE_VERSIONED\x10\x02*\xe7\x02\n\x1dWorkerDeploymentVersionStatus\x12\x30\n,WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED\x10\x00\x12-\n)WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE\x10\x01\x12,\n(WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT\x10\x02\x12,\n(WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING\x10\x03\x12-\n)WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING\x10\x04\x12,\n(WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED\x10\x05\x12,\n(WORKER_DEPLOYMENT_VERSION_STATUS_CREATED\x10\x06\x42\x87\x01\n\x18io.temporal.api.enums.v1B\x0f\x44\x65ploymentProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" ) -_DEPLOYMENTREACHABILITY = DESCRIPTOR.enum_types_by_name["DeploymentReachability"] -DeploymentReachability = enum_type_wrapper.EnumTypeWrapper(_DEPLOYMENTREACHABILITY) -_VERSIONDRAINAGESTATUS = DESCRIPTOR.enum_types_by_name["VersionDrainageStatus"] -VersionDrainageStatus = enum_type_wrapper.EnumTypeWrapper(_VERSIONDRAINAGESTATUS) -_WORKERVERSIONINGMODE = DESCRIPTOR.enum_types_by_name["WorkerVersioningMode"] -WorkerVersioningMode = enum_type_wrapper.EnumTypeWrapper(_WORKERVERSIONINGMODE) -_WORKERDEPLOYMENTVERSIONSTATUS = DESCRIPTOR.enum_types_by_name[ - "WorkerDeploymentVersionStatus" -] -WorkerDeploymentVersionStatus = enum_type_wrapper.EnumTypeWrapper( - _WORKERDEPLOYMENTVERSIONSTATUS -) -DEPLOYMENT_REACHABILITY_UNSPECIFIED = 0 -DEPLOYMENT_REACHABILITY_REACHABLE = 1 -DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY = 2 -DEPLOYMENT_REACHABILITY_UNREACHABLE = 3 -VERSION_DRAINAGE_STATUS_UNSPECIFIED = 0 -VERSION_DRAINAGE_STATUS_DRAINING = 1 -VERSION_DRAINAGE_STATUS_DRAINED = 2 -WORKER_VERSIONING_MODE_UNSPECIFIED = 0 -WORKER_VERSIONING_MODE_UNVERSIONED = 1 -WORKER_VERSIONING_MODE_VERSIONED = 2 -WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED = 0 -WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE = 1 -WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT = 2 -WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING = 3 -WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING = 4 -WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED = 5 -WORKER_DEPLOYMENT_VERSION_STATUS_CREATED = 6 - - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.enums.v1B\017DeploymentProtoP\001Z!go.temporal.io/api/enums/v1;enums\252\002\027Temporalio.Api.Enums.V1\352\002\032Temporalio::Api::Enums::V1" diff --git a/temporalio/api/enums/v1/deployment_pb2.pyi b/temporalio/api/enums/v1/deployment_pb2.pyi index de3378e69..f0debc4e8 100644 --- a/temporalio/api/enums/v1/deployment_pb2.pyi +++ b/temporalio/api/enums/v1/deployment_pb2.pyi @@ -26,7 +26,7 @@ class _DeploymentReachabilityEnumTypeWrapper( _DeploymentReachability.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DEPLOYMENT_REACHABILITY_UNSPECIFIED: _DeploymentReachability.ValueType # 0 """Reachability level is not specified.""" @@ -79,7 +79,7 @@ class _VersionDrainageStatusEnumTypeWrapper( _VersionDrainageStatus.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor VERSION_DRAINAGE_STATUS_UNSPECIFIED: _VersionDrainageStatus.ValueType # 0 """Drainage Status is not specified.""" @@ -126,7 +126,7 @@ class _WorkerVersioningModeEnumTypeWrapper( _WorkerVersioningMode.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor WORKER_VERSIONING_MODE_UNSPECIFIED: _WorkerVersioningMode.ValueType # 0 WORKER_VERSIONING_MODE_UNVERSIONED: _WorkerVersioningMode.ValueType # 1 @@ -194,7 +194,7 @@ class _WorkerDeploymentVersionStatusEnumTypeWrapper( _WorkerDeploymentVersionStatus.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED: ( _WorkerDeploymentVersionStatus.ValueType diff --git a/temporalio/api/enums/v1/event_type_pb2.py b/temporalio/api/enums/v1/event_type_pb2.py index 14ff7984d..41f96b848 100644 --- a/temporalio/api/enums/v1/event_type_pb2.py +++ b/temporalio/api/enums/v1/event_type_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -19,71 +17,8 @@ b'\n&temporal/api/enums/v1/event_type.proto\x12\x15temporal.api.enums.v1*\x9e\x16\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12)\n%EVENT_TYPE_WORKFLOW_EXECUTION_STARTED\x10\x01\x12+\n\'EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED\x10\x02\x12(\n$EVENT_TYPE_WORKFLOW_EXECUTION_FAILED\x10\x03\x12+\n\'EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT\x10\x04\x12&\n"EVENT_TYPE_WORKFLOW_TASK_SCHEDULED\x10\x05\x12$\n EVENT_TYPE_WORKFLOW_TASK_STARTED\x10\x06\x12&\n"EVENT_TYPE_WORKFLOW_TASK_COMPLETED\x10\x07\x12&\n"EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT\x10\x08\x12#\n\x1f\x45VENT_TYPE_WORKFLOW_TASK_FAILED\x10\t\x12&\n"EVENT_TYPE_ACTIVITY_TASK_SCHEDULED\x10\n\x12$\n EVENT_TYPE_ACTIVITY_TASK_STARTED\x10\x0b\x12&\n"EVENT_TYPE_ACTIVITY_TASK_COMPLETED\x10\x0c\x12#\n\x1f\x45VENT_TYPE_ACTIVITY_TASK_FAILED\x10\r\x12&\n"EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT\x10\x0e\x12-\n)EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED\x10\x0f\x12%\n!EVENT_TYPE_ACTIVITY_TASK_CANCELED\x10\x10\x12\x1c\n\x18\x45VENT_TYPE_TIMER_STARTED\x10\x11\x12\x1a\n\x16\x45VENT_TYPE_TIMER_FIRED\x10\x12\x12\x1d\n\x19\x45VENT_TYPE_TIMER_CANCELED\x10\x13\x12\x32\n.EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED\x10\x14\x12*\n&EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED\x10\x15\x12\x43\n?EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED\x10\x16\x12@\n= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class NotFoundFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -41,13 +37,14 @@ class NotFoundFailure(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "active_cluster", b"active_cluster", "current_cluster", b"current_cluster" ], ) -> None: ... global___NotFoundFailure = NotFoundFailure +@typing.final class WorkflowExecutionAlreadyStartedFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -66,7 +63,7 @@ class WorkflowExecutionAlreadyStartedFailure(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "first_execution_run_id", b"first_execution_run_id", "run_id", @@ -78,6 +75,7 @@ class WorkflowExecutionAlreadyStartedFailure(google.protobuf.message.Message): global___WorkflowExecutionAlreadyStartedFailure = WorkflowExecutionAlreadyStartedFailure +@typing.final class NamespaceNotActiveFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -96,7 +94,7 @@ class NamespaceNotActiveFailure(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "active_cluster", b"active_cluster", "current_cluster", @@ -108,6 +106,7 @@ class NamespaceNotActiveFailure(google.protobuf.message.Message): global___NamespaceNotActiveFailure = NamespaceNotActiveFailure +@typing.final class NamespaceUnavailableFailure(google.protobuf.message.Message): """NamespaceUnavailableFailure is returned by the service when a request addresses a namespace that is unavailable. For example, when a namespace is in the process of failing over between clusters. @@ -124,11 +123,12 @@ class NamespaceUnavailableFailure(google.protobuf.message.Message): namespace: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["namespace", b"namespace"] + self, field_name: typing.Literal["namespace", b"namespace"] ) -> None: ... global___NamespaceUnavailableFailure = NamespaceUnavailableFailure +@typing.final class NamespaceInvalidStateFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -147,6 +147,7 @@ class NamespaceInvalidStateFailure(google.protobuf.message.Message): """Allowed namespace states for requested operation. For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace. """ + def __init__( self, *, @@ -159,7 +160,7 @@ class NamespaceInvalidStateFailure(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "allowed_states", b"allowed_states", "namespace", @@ -171,6 +172,7 @@ class NamespaceInvalidStateFailure(google.protobuf.message.Message): global___NamespaceInvalidStateFailure = NamespaceInvalidStateFailure +@typing.final class NamespaceNotFoundFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -182,11 +184,12 @@ class NamespaceNotFoundFailure(google.protobuf.message.Message): namespace: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["namespace", b"namespace"] + self, field_name: typing.Literal["namespace", b"namespace"] ) -> None: ... global___NamespaceNotFoundFailure = NamespaceNotFoundFailure +@typing.final class NamespaceAlreadyExistsFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -196,6 +199,7 @@ class NamespaceAlreadyExistsFailure(google.protobuf.message.Message): global___NamespaceAlreadyExistsFailure = NamespaceAlreadyExistsFailure +@typing.final class ClientVersionNotSupportedFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -214,7 +218,7 @@ class ClientVersionNotSupportedFailure(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "client_name", b"client_name", "client_version", @@ -226,6 +230,7 @@ class ClientVersionNotSupportedFailure(google.protobuf.message.Message): global___ClientVersionNotSupportedFailure = ClientVersionNotSupportedFailure +@typing.final class ServerVersionNotSupportedFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -241,7 +246,7 @@ class ServerVersionNotSupportedFailure(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "client_supported_server_versions", b"client_supported_server_versions", "server_version", @@ -251,6 +256,7 @@ class ServerVersionNotSupportedFailure(google.protobuf.message.Message): global___ServerVersionNotSupportedFailure = ServerVersionNotSupportedFailure +@typing.final class CancellationAlreadyRequestedFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -260,6 +266,7 @@ class CancellationAlreadyRequestedFailure(google.protobuf.message.Message): global___CancellationAlreadyRequestedFailure = CancellationAlreadyRequestedFailure +@typing.final class QueryFailedFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -270,20 +277,20 @@ class QueryFailedFailure(google.protobuf.message.Message): SDK. This field can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. """ + def __init__( self, *, failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["failure", b"failure"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["failure", b"failure"]) -> None: ... global___QueryFailedFailure = QueryFailedFailure +@typing.final class PermissionDeniedFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -294,12 +301,11 @@ class PermissionDeniedFailure(google.protobuf.message.Message): *, reason: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["reason", b"reason"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["reason", b"reason"]) -> None: ... global___PermissionDeniedFailure = PermissionDeniedFailure +@typing.final class ResourceExhaustedFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -314,17 +320,19 @@ class ResourceExhaustedFailure(google.protobuf.message.Message): scope: temporalio.api.enums.v1.failed_cause_pb2.ResourceExhaustedScope.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["cause", b"cause", "scope", b"scope"], + self, field_name: typing.Literal["cause", b"cause", "scope", b"scope"] ) -> None: ... global___ResourceExhaustedFailure = ResourceExhaustedFailure +@typing.final class SystemWorkflowFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int WORKFLOW_ERROR_FIELD_NUMBER: builtins.int + workflow_error: builtins.str + """Serialized error returned by the system workflow performing the underlying operation.""" @property def workflow_execution( self, @@ -332,8 +340,7 @@ class SystemWorkflowFailure(google.protobuf.message.Message): """WorkflowId and RunId of the Temporal system workflow performing the underlying operation. Looking up the info of the system workflow run may help identify the issue causing the failure. """ - workflow_error: builtins.str - """Serialized error returned by the system workflow performing the underlying operation.""" + def __init__( self, *, @@ -342,14 +349,11 @@ class SystemWorkflowFailure(google.protobuf.message.Message): workflow_error: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "workflow_error", b"workflow_error", "workflow_execution", @@ -359,6 +363,7 @@ class SystemWorkflowFailure(google.protobuf.message.Message): global___SystemWorkflowFailure = SystemWorkflowFailure +@typing.final class WorkflowNotReadyFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -368,6 +373,7 @@ class WorkflowNotReadyFailure(google.protobuf.message.Message): global___WorkflowNotReadyFailure = WorkflowNotReadyFailure +@typing.final class NewerBuildExistsFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -380,15 +386,16 @@ class NewerBuildExistsFailure(google.protobuf.message.Message): default_build_id: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["default_build_id", b"default_build_id"], + self, field_name: typing.Literal["default_build_id", b"default_build_id"] ) -> None: ... global___NewerBuildExistsFailure = NewerBuildExistsFailure +@typing.final class MultiOperationExecutionFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class OperationStatus(google.protobuf.message.Message): """NOTE: `OperationStatus` is modelled after [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto). @@ -419,7 +426,7 @@ class MultiOperationExecutionFailure(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "code", b"code", "details", b"details", "message", b"message" ], ) -> None: ... @@ -435,6 +442,7 @@ class MultiOperationExecutionFailure(google.protobuf.message.Message): operation(s) have the same error details as if it was executed separately. All other operations have the status code `Aborted` and `MultiOperationExecutionAborted` is added to the details field. """ + def __init__( self, *, @@ -444,11 +452,12 @@ class MultiOperationExecutionFailure(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["statuses", b"statuses"] + self, field_name: typing.Literal["statuses", b"statuses"] ) -> None: ... global___MultiOperationExecutionFailure = MultiOperationExecutionFailure +@typing.final class ActivityExecutionAlreadyStartedFailure(google.protobuf.message.Message): """An error indicating that an activity execution failed to start. Returned when there is an existing activity with the given activity ID, and the given ID reuse and conflict policies do not permit starting a new one or attaching to an @@ -469,13 +478,14 @@ class ActivityExecutionAlreadyStartedFailure(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "run_id", b"run_id", "start_request_id", b"start_request_id" ], ) -> None: ... global___ActivityExecutionAlreadyStartedFailure = ActivityExecutionAlreadyStartedFailure +@typing.final class NexusOperationExecutionAlreadyStartedFailure(google.protobuf.message.Message): """An error indicating that a Nexus operation failed to start. Returned when there is an existing operation with the given operation ID, and the given ID reuse and conflict policies do not permit starting a new one or attaching to an @@ -496,7 +506,7 @@ class NexusOperationExecutionAlreadyStartedFailure(google.protobuf.message.Messa ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "run_id", b"run_id", "start_request_id", b"start_request_id" ], ) -> None: ... @@ -505,6 +515,7 @@ global___NexusOperationExecutionAlreadyStartedFailure = ( NexusOperationExecutionAlreadyStartedFailure ) +@typing.final class WorkflowTaskCompletionBufferLostFailure(google.protobuf.message.Message): """An error indicating that the server lost the buffered pages of a paginated workflow task completion. This is a transient error: the workflow task is still valid, and the client diff --git a/temporalio/api/export/v1/__init__.py b/temporalio/api/export/v1/__init__.py index 11e7e71b7..756902846 100644 --- a/temporalio/api/export/v1/__init__.py +++ b/temporalio/api/export/v1/__init__.py @@ -1,6 +1,13 @@ -from .message_pb2 import WorkflowExecution, WorkflowExecutions +from .message_pb2 import ( + ActivityExecution, + ExportedExecutions, + WorkflowExecution, + WorkflowExecutions, +) __all__ = [ + "ActivityExecution", + "ExportedExecutions", "WorkflowExecution", "WorkflowExecutions", ] diff --git a/temporalio/api/export/v1/message_pb2.py b/temporalio/api/export/v1/message_pb2.py index 35d672eca..c2dab8710 100644 --- a/temporalio/api/export/v1/message_pb2.py +++ b/temporalio/api/export/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -17,41 +16,25 @@ from temporalio.api.history.v1 import ( message_pb2 as temporal_dot_api_dot_history_dot_v1_dot_message__pb2, ) - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n$temporal/api/export/v1/message.proto\x12\x16temporal.api.export.v1\x1a%temporal/api/history/v1/message.proto"F\n\x11WorkflowExecution\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History"N\n\x12WorkflowExecutions\x12\x38\n\x05items\x18\x01 \x03(\x0b\x32).temporal.api.export.v1.WorkflowExecutionB\x89\x01\n\x19io.temporal.api.export.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/export/v1;export\xaa\x02\x18Temporalio.Api.Export.V1\xea\x02\x1bTemporalio::Api::Export::V1b\x06proto3' -) - - -_WORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name["WorkflowExecution"] -_WORKFLOWEXECUTIONS = DESCRIPTOR.message_types_by_name["WorkflowExecutions"] -WorkflowExecution = _reflection.GeneratedProtocolMessageType( - "WorkflowExecution", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTION, - "__module__": "temporalio.api.export.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.export.v1.WorkflowExecution) - }, +from temporalio.api.workflowservice.v1 import ( + request_response_pb2 as temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2, ) -_sym_db.RegisterMessage(WorkflowExecution) -WorkflowExecutions = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutions", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONS, - "__module__": "temporalio.api.export.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.export.v1.WorkflowExecutions) - }, +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n$temporal/api/export/v1/message.proto\x12\x16temporal.api.export.v1\x1a%temporal/api/history/v1/message.proto\x1a\x36temporal/api/workflowservice/v1/request_response.proto"F\n\x11WorkflowExecution\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History"N\n\x12WorkflowExecutions\x12\x38\n\x05items\x18\x01 \x03(\x0b\x32).temporal.api.export.v1.WorkflowExecution"i\n\x11\x41\x63tivityExecution\x12T\n\x08\x61\x63tivity\x18\x01 \x01(\x0b\x32\x42.temporal.api.workflowservice.v1.DescribeActivityExecutionResponse"\x91\x01\n\x12\x45xportedExecutions\x12<\n\tworkflows\x18\x01 \x03(\x0b\x32).temporal.api.export.v1.WorkflowExecution\x12=\n\nactivities\x18\x02 \x03(\x0b\x32).temporal.api.export.v1.ActivityExecutionB\x89\x01\n\x19io.temporal.api.export.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/export/v1;export\xaa\x02\x18Temporalio.Api.Export.V1\xea\x02\x1bTemporalio::Api::Export::V1b\x06proto3' ) -_sym_db.RegisterMessage(WorkflowExecutions) +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\031io.temporal.api.export.v1B\014MessageProtoP\001Z#go.temporal.io/api/export/v1;export\252\002\030Temporalio.Api.Export.V1\352\002\033Temporalio::Api::Export::V1" - _WORKFLOWEXECUTION._serialized_start = 103 - _WORKFLOWEXECUTION._serialized_end = 173 - _WORKFLOWEXECUTIONS._serialized_start = 175 - _WORKFLOWEXECUTIONS._serialized_end = 253 + _WORKFLOWEXECUTION._serialized_start = 159 + _WORKFLOWEXECUTION._serialized_end = 229 + _WORKFLOWEXECUTIONS._serialized_start = 231 + _WORKFLOWEXECUTIONS._serialized_end = 309 + _ACTIVITYEXECUTION._serialized_start = 311 + _ACTIVITYEXECUTION._serialized_end = 416 + _EXPORTEDEXECUTIONS._serialized_start = 419 + _EXPORTEDEXECUTIONS._serialized_end = 564 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/export/v1/message_pb2.pyi b/temporalio/api/export/v1/message_pb2.pyi index a270b0e26..66bed3133 100644 --- a/temporalio/api/export/v1/message_pb2.pyi +++ b/temporalio/api/export/v1/message_pb2.pyi @@ -5,21 +5,18 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import temporalio.api.history.v1.message_pb2 - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions +import temporalio.api.workflowservice.v1.request_response_pb2 DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowExecution(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -32,17 +29,16 @@ class WorkflowExecution(google.protobuf.message.Message): history: temporalio.api.history.v1.message_pb2.History | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["history", b"history"] + self, field_name: typing.Literal["history", b"history"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["history", b"history"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["history", b"history"]) -> None: ... global___WorkflowExecution = WorkflowExecution +@typing.final class WorkflowExecutions(google.protobuf.message.Message): - """WorkflowExecutions is used by the Cloud Export feature to deserialize - the exported file. It encapsulates a collection of workflow execution information. + """WorkflowExecutions is the legacy Cloud Export file format containing only workflow executions. + New exporters should use ExportedExecutions. """ DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -59,8 +55,67 @@ class WorkflowExecutions(google.protobuf.message.Message): *, items: collections.abc.Iterable[global___WorkflowExecution] | None = ..., ) -> None: ... + def ClearField(self, field_name: typing.Literal["items", b"items"]) -> None: ... + +global___WorkflowExecutions = WorkflowExecutions + +@typing.final +class ActivityExecution(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACTIVITY_FIELD_NUMBER: builtins.int + @property + def activity( + self, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionResponse: ... + def __init__( + self, + *, + activity: temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionResponse + | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing.Literal["activity", b"activity"] + ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["items", b"items"] + self, field_name: typing.Literal["activity", b"activity"] ) -> None: ... -global___WorkflowExecutions = WorkflowExecutions +global___ActivityExecution = ActivityExecution + +@typing.final +class ExportedExecutions(google.protobuf.message.Message): + """ExportedExecutions is used by the Cloud Export feature to deserialize the exported file. + It encapsulates workflow execution information and contains other execution types. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WORKFLOWS_FIELD_NUMBER: builtins.int + ACTIVITIES_FIELD_NUMBER: builtins.int + @property + def workflows( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___WorkflowExecution + ]: ... + @property + def activities( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___ActivityExecution + ]: ... + def __init__( + self, + *, + workflows: collections.abc.Iterable[global___WorkflowExecution] | None = ..., + activities: collections.abc.Iterable[global___ActivityExecution] | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing.Literal[ + "activities", b"activities", "workflows", b"workflows" + ], + ) -> None: ... + +global___ExportedExecutions = ExportedExecutions diff --git a/temporalio/api/failure/v1/message_pb2.py b/temporalio/api/failure/v1/message_pb2.py index db46b0717..4c5431d51 100644 --- a/temporalio/api/failure/v1/message_pb2.py +++ b/temporalio/api/failure/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -33,157 +32,8 @@ b'\n%temporal/api/failure/v1/message.proto\x12\x17temporal.api.failure.v1\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a!temporal/api/enums/v1/nexus.proto\x1a"temporal/api/enums/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto"\xe8\x01\n\x16\x41pplicationFailureInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x15\n\rnon_retryable\x18\x02 \x01(\x08\x12\x31\n\x07\x64\x65tails\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x33\n\x10next_retry_delay\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x08\x63\x61tegory\x18\x05 \x01(\x0e\x32/.temporal.api.enums.v1.ApplicationErrorCategory"\x90\x01\n\x12TimeoutFailureInfo\x12\x38\n\x0ctimeout_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType\x12@\n\x16last_heartbeat_details\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"Z\n\x13\x43\x61nceledFailureInfo\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x02 \x01(\t")\n\x15TerminatedFailureInfo\x12\x10\n\x08identity\x18\x01 \x01(\t"*\n\x11ServerFailureInfo\x12\x15\n\rnon_retryable\x18\x01 \x01(\x08"\\\n\x18ResetWorkflowFailureInfo\x12@\n\x16last_heartbeat_details\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe7\x01\n\x13\x41\x63tivityFailureInfo\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12;\n\ractivity_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x05 \x01(\t\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xa8\x02\n!ChildWorkflowExecutionFailureInfo\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xa0\x01\n\x19NexusOperationFailureInfo\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12\x18\n\x0coperation_id\x18\x05 \x01(\tB\x02\x18\x01\x12\x17\n\x0foperation_token\x18\x06 \x01(\t"v\n\x17NexusHandlerFailureInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\x12M\n\x0eretry_behavior\x18\x02 \x01(\x0e\x32\x35.temporal.api.enums.v1.NexusHandlerErrorRetryBehavior"\xa0\x08\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x0bstack_trace\x18\x03 \x01(\t\x12;\n\x12\x65ncoded_attributes\x18\x14 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12/\n\x05\x63\x61use\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12S\n\x18\x61pplication_failure_info\x18\x05 \x01(\x0b\x32/.temporal.api.failure.v1.ApplicationFailureInfoH\x00\x12K\n\x14timeout_failure_info\x18\x06 \x01(\x0b\x32+.temporal.api.failure.v1.TimeoutFailureInfoH\x00\x12M\n\x15\x63\x61nceled_failure_info\x18\x07 \x01(\x0b\x32,.temporal.api.failure.v1.CanceledFailureInfoH\x00\x12Q\n\x17terminated_failure_info\x18\x08 \x01(\x0b\x32..temporal.api.failure.v1.TerminatedFailureInfoH\x00\x12I\n\x13server_failure_info\x18\t \x01(\x0b\x32*.temporal.api.failure.v1.ServerFailureInfoH\x00\x12X\n\x1breset_workflow_failure_info\x18\n \x01(\x0b\x32\x31.temporal.api.failure.v1.ResetWorkflowFailureInfoH\x00\x12M\n\x15\x61\x63tivity_failure_info\x18\x0b \x01(\x0b\x32,.temporal.api.failure.v1.ActivityFailureInfoH\x00\x12k\n%child_workflow_execution_failure_info\x18\x0c \x01(\x0b\x32:.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoH\x00\x12\x64\n&nexus_operation_execution_failure_info\x18\r \x01(\x0b\x32\x32.temporal.api.failure.v1.NexusOperationFailureInfoH\x00\x12V\n\x1anexus_handler_failure_info\x18\x0e \x01(\x0b\x32\x30.temporal.api.failure.v1.NexusHandlerFailureInfoH\x00\x42\x0e\n\x0c\x66\x61ilure_info" \n\x1eMultiOperationExecutionAbortedB\x8e\x01\n\x1aio.temporal.api.failure.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/failure/v1;failure\xaa\x02\x19Temporalio.Api.Failure.V1\xea\x02\x1cTemporalio::Api::Failure::V1b\x06proto3' ) - -_APPLICATIONFAILUREINFO = DESCRIPTOR.message_types_by_name["ApplicationFailureInfo"] -_TIMEOUTFAILUREINFO = DESCRIPTOR.message_types_by_name["TimeoutFailureInfo"] -_CANCELEDFAILUREINFO = DESCRIPTOR.message_types_by_name["CanceledFailureInfo"] -_TERMINATEDFAILUREINFO = DESCRIPTOR.message_types_by_name["TerminatedFailureInfo"] -_SERVERFAILUREINFO = DESCRIPTOR.message_types_by_name["ServerFailureInfo"] -_RESETWORKFLOWFAILUREINFO = DESCRIPTOR.message_types_by_name["ResetWorkflowFailureInfo"] -_ACTIVITYFAILUREINFO = DESCRIPTOR.message_types_by_name["ActivityFailureInfo"] -_CHILDWORKFLOWEXECUTIONFAILUREINFO = DESCRIPTOR.message_types_by_name[ - "ChildWorkflowExecutionFailureInfo" -] -_NEXUSOPERATIONFAILUREINFO = DESCRIPTOR.message_types_by_name[ - "NexusOperationFailureInfo" -] -_NEXUSHANDLERFAILUREINFO = DESCRIPTOR.message_types_by_name["NexusHandlerFailureInfo"] -_FAILURE = DESCRIPTOR.message_types_by_name["Failure"] -_MULTIOPERATIONEXECUTIONABORTED = DESCRIPTOR.message_types_by_name[ - "MultiOperationExecutionAborted" -] -ApplicationFailureInfo = _reflection.GeneratedProtocolMessageType( - "ApplicationFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _APPLICATIONFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ApplicationFailureInfo) - }, -) -_sym_db.RegisterMessage(ApplicationFailureInfo) - -TimeoutFailureInfo = _reflection.GeneratedProtocolMessageType( - "TimeoutFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _TIMEOUTFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.TimeoutFailureInfo) - }, -) -_sym_db.RegisterMessage(TimeoutFailureInfo) - -CanceledFailureInfo = _reflection.GeneratedProtocolMessageType( - "CanceledFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _CANCELEDFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.CanceledFailureInfo) - }, -) -_sym_db.RegisterMessage(CanceledFailureInfo) - -TerminatedFailureInfo = _reflection.GeneratedProtocolMessageType( - "TerminatedFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _TERMINATEDFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.TerminatedFailureInfo) - }, -) -_sym_db.RegisterMessage(TerminatedFailureInfo) - -ServerFailureInfo = _reflection.GeneratedProtocolMessageType( - "ServerFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _SERVERFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ServerFailureInfo) - }, -) -_sym_db.RegisterMessage(ServerFailureInfo) - -ResetWorkflowFailureInfo = _reflection.GeneratedProtocolMessageType( - "ResetWorkflowFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _RESETWORKFLOWFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ResetWorkflowFailureInfo) - }, -) -_sym_db.RegisterMessage(ResetWorkflowFailureInfo) - -ActivityFailureInfo = _reflection.GeneratedProtocolMessageType( - "ActivityFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ActivityFailureInfo) - }, -) -_sym_db.RegisterMessage(ActivityFailureInfo) - -ChildWorkflowExecutionFailureInfo = _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) - }, -) -_sym_db.RegisterMessage(ChildWorkflowExecutionFailureInfo) - -NexusOperationFailureInfo = _reflection.GeneratedProtocolMessageType( - "NexusOperationFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.NexusOperationFailureInfo) - }, -) -_sym_db.RegisterMessage(NexusOperationFailureInfo) - -NexusHandlerFailureInfo = _reflection.GeneratedProtocolMessageType( - "NexusHandlerFailureInfo", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSHANDLERFAILUREINFO, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.NexusHandlerFailureInfo) - }, -) -_sym_db.RegisterMessage(NexusHandlerFailureInfo) - -Failure = _reflection.GeneratedProtocolMessageType( - "Failure", - (_message.Message,), - { - "DESCRIPTOR": _FAILURE, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.Failure) - }, -) -_sym_db.RegisterMessage(Failure) - -MultiOperationExecutionAborted = _reflection.GeneratedProtocolMessageType( - "MultiOperationExecutionAborted", - (_message.Message,), - { - "DESCRIPTOR": _MULTIOPERATIONEXECUTIONABORTED, - "__module__": "temporalio.api.failure.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.MultiOperationExecutionAborted) - }, -) -_sym_db.RegisterMessage(MultiOperationExecutionAborted) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.failure.v1B\014MessageProtoP\001Z%go.temporal.io/api/failure/v1;failure\252\002\031Temporalio.Api.Failure.V1\352\002\034Temporalio::Api::Failure::V1" diff --git a/temporalio/api/failure/v1/message_pb2.pyi b/temporalio/api/failure/v1/message_pb2.pyi index e0eecf7e7..9a10d84c1 100644 --- a/temporalio/api/failure/v1/message_pb2.pyi +++ b/temporalio/api/failure/v1/message_pb2.pyi @@ -4,7 +4,7 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -15,13 +15,9 @@ import temporalio.api.enums.v1.common_pb2 import temporalio.api.enums.v1.nexus_pb2 import temporalio.api.enums.v1.workflow_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ApplicationFailureInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -32,6 +28,7 @@ class ApplicationFailureInfo(google.protobuf.message.Message): CATEGORY_FIELD_NUMBER: builtins.int type: builtins.str non_retryable: builtins.bool + category: temporalio.api.enums.v1.common_pb2.ApplicationErrorCategory.ValueType @property def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... @property @@ -41,7 +38,7 @@ class ApplicationFailureInfo(google.protobuf.message.Message): still be subject to the maximum retries limit and total time limit defined by the policy. """ - category: temporalio.api.enums.v1.common_pb2.ApplicationErrorCategory.ValueType + def __init__( self, *, @@ -53,13 +50,13 @@ class ApplicationFailureInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "next_retry_delay", b"next_retry_delay" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "category", b"category", "details", @@ -75,6 +72,7 @@ class ApplicationFailureInfo(google.protobuf.message.Message): global___ApplicationFailureInfo = ApplicationFailureInfo +@typing.final class TimeoutFailureInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -94,13 +92,11 @@ class TimeoutFailureInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "last_heartbeat_details", b"last_heartbeat_details" - ], + field_name: typing.Literal["last_heartbeat_details", b"last_heartbeat_details"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "last_heartbeat_details", b"last_heartbeat_details", "timeout_type", @@ -110,15 +106,16 @@ class TimeoutFailureInfo(google.protobuf.message.Message): global___TimeoutFailureInfo = TimeoutFailureInfo +@typing.final class CanceledFailureInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor DETAILS_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int - @property - def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... identity: builtins.str """The identity of the worker or client that requested the cancellation.""" + @property + def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... def __init__( self, *, @@ -126,17 +123,15 @@ class CanceledFailureInfo(google.protobuf.message.Message): identity: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "details", b"details", "identity", b"identity" - ], + self, field_name: typing.Literal["details", b"details", "identity", b"identity"] ) -> None: ... global___CanceledFailureInfo = CanceledFailureInfo +@typing.final class TerminatedFailureInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -149,11 +144,12 @@ class TerminatedFailureInfo(google.protobuf.message.Message): identity: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["identity", b"identity"] + self, field_name: typing.Literal["identity", b"identity"] ) -> None: ... global___TerminatedFailureInfo = TerminatedFailureInfo +@typing.final class ServerFailureInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -165,11 +161,12 @@ class ServerFailureInfo(google.protobuf.message.Message): non_retryable: builtins.bool = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["non_retryable", b"non_retryable"] + self, field_name: typing.Literal["non_retryable", b"non_retryable"] ) -> None: ... global___ServerFailureInfo = ServerFailureInfo +@typing.final class ResetWorkflowFailureInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -186,19 +183,16 @@ class ResetWorkflowFailureInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "last_heartbeat_details", b"last_heartbeat_details" - ], + field_name: typing.Literal["last_heartbeat_details", b"last_heartbeat_details"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "last_heartbeat_details", b"last_heartbeat_details" - ], + field_name: typing.Literal["last_heartbeat_details", b"last_heartbeat_details"], ) -> None: ... global___ResetWorkflowFailureInfo = ResetWorkflowFailureInfo +@typing.final class ActivityFailureInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -211,10 +205,10 @@ class ActivityFailureInfo(google.protobuf.message.Message): scheduled_event_id: builtins.int started_event_id: builtins.int identity: builtins.str - @property - def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... activity_id: builtins.str retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType + @property + def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... def __init__( self, *, @@ -226,11 +220,11 @@ class ActivityFailureInfo(google.protobuf.message.Message): retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["activity_type", b"activity_type"] + self, field_name: typing.Literal["activity_type", b"activity_type"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_type", @@ -248,6 +242,7 @@ class ActivityFailureInfo(google.protobuf.message.Message): global___ActivityFailureInfo = ActivityFailureInfo +@typing.final class ChildWorkflowExecutionFailureInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -258,15 +253,15 @@ class ChildWorkflowExecutionFailureInfo(google.protobuf.message.Message): STARTED_EVENT_ID_FIELD_NUMBER: builtins.int RETRY_STATE_FIELD_NUMBER: builtins.int namespace: builtins.str + initiated_event_id: builtins.int + started_event_id: builtins.int + retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... - initiated_event_id: builtins.int - started_event_id: builtins.int - retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType def __init__( self, *, @@ -280,7 +275,7 @@ class ChildWorkflowExecutionFailureInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "workflow_execution", b"workflow_execution", "workflow_type", @@ -289,7 +284,7 @@ class ChildWorkflowExecutionFailureInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "initiated_event_id", b"initiated_event_id", "namespace", @@ -307,6 +302,7 @@ class ChildWorkflowExecutionFailureInfo(google.protobuf.message.Message): global___ChildWorkflowExecutionFailureInfo = ChildWorkflowExecutionFailureInfo +@typing.final class NexusOperationFailureInfo(google.protobuf.message.Message): """Representation of the Temporal SDK NexusOperationError object that is returned to workflow callers.""" @@ -345,7 +341,7 @@ class NexusOperationFailureInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "endpoint", b"endpoint", "operation", @@ -363,6 +359,7 @@ class NexusOperationFailureInfo(google.protobuf.message.Message): global___NexusOperationFailureInfo = NexusOperationFailureInfo +@typing.final class NexusHandlerFailureInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -384,13 +381,14 @@ class NexusHandlerFailureInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "retry_behavior", b"retry_behavior", "type", b"type" ], ) -> None: ... global___NexusHandlerFailureInfo = NexusHandlerFailureInfo +@typing.final class Failure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -433,6 +431,7 @@ class Failure(google.protobuf.message.Message): - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes. (-- api-linter: core::0203::optional=disabled --) """ + @property def cause(self) -> global___Failure: ... @property @@ -482,7 +481,7 @@ class Failure(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_failure_info", b"activity_failure_info", "application_failure_info", @@ -513,7 +512,7 @@ class Failure(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_failure_info", b"activity_failure_info", "application_failure_info", @@ -549,9 +548,9 @@ class Failure(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["failure_info", b"failure_info"] + self, oneof_group: typing.Literal["failure_info", b"failure_info"] ) -> ( - typing_extensions.Literal[ + typing.Literal[ "application_failure_info", "timeout_failure_info", "canceled_failure_info", @@ -568,6 +567,7 @@ class Failure(google.protobuf.message.Message): global___Failure = Failure +@typing.final class MultiOperationExecutionAborted(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor diff --git a/temporalio/api/filter/v1/message_pb2.py b/temporalio/api/filter/v1/message_pb2.py index 3df20337d..776903c3e 100644 --- a/temporalio/api/filter/v1/message_pb2.py +++ b/temporalio/api/filter/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -24,55 +23,8 @@ b'\n$temporal/api/filter/v1/message.proto\x12\x16temporal.api.filter.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/enums/v1/workflow.proto">\n\x17WorkflowExecutionFilter\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t""\n\x12WorkflowTypeFilter\x12\x0c\n\x04name\x18\x01 \x01(\t"u\n\x0fStartTimeFilter\x12\x31\n\rearliest_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0blatest_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"N\n\x0cStatusFilter\x12>\n\x06status\x18\x01 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatusB\x89\x01\n\x19io.temporal.api.filter.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/filter/v1;filter\xaa\x02\x18Temporalio.Api.Filter.V1\xea\x02\x1bTemporalio::Api::Filter::V1b\x06proto3' ) - -_WORKFLOWEXECUTIONFILTER = DESCRIPTOR.message_types_by_name["WorkflowExecutionFilter"] -_WORKFLOWTYPEFILTER = DESCRIPTOR.message_types_by_name["WorkflowTypeFilter"] -_STARTTIMEFILTER = DESCRIPTOR.message_types_by_name["StartTimeFilter"] -_STATUSFILTER = DESCRIPTOR.message_types_by_name["StatusFilter"] -WorkflowExecutionFilter = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionFilter", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONFILTER, - "__module__": "temporalio.api.filter.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.filter.v1.WorkflowExecutionFilter) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionFilter) - -WorkflowTypeFilter = _reflection.GeneratedProtocolMessageType( - "WorkflowTypeFilter", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWTYPEFILTER, - "__module__": "temporalio.api.filter.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.filter.v1.WorkflowTypeFilter) - }, -) -_sym_db.RegisterMessage(WorkflowTypeFilter) - -StartTimeFilter = _reflection.GeneratedProtocolMessageType( - "StartTimeFilter", - (_message.Message,), - { - "DESCRIPTOR": _STARTTIMEFILTER, - "__module__": "temporalio.api.filter.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.filter.v1.StartTimeFilter) - }, -) -_sym_db.RegisterMessage(StartTimeFilter) - -StatusFilter = _reflection.GeneratedProtocolMessageType( - "StatusFilter", - (_message.Message,), - { - "DESCRIPTOR": _STATUSFILTER, - "__module__": "temporalio.api.filter.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.filter.v1.StatusFilter) - }, -) -_sym_db.RegisterMessage(StatusFilter) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\031io.temporal.api.filter.v1B\014MessageProtoP\001Z#go.temporal.io/api/filter/v1;filter\252\002\030Temporalio.Api.Filter.V1\352\002\033Temporalio::Api::Filter::V1" diff --git a/temporalio/api/filter/v1/message_pb2.pyi b/temporalio/api/filter/v1/message_pb2.pyi index 26d2efeb1..ec6d88a4f 100644 --- a/temporalio/api/filter/v1/message_pb2.pyi +++ b/temporalio/api/filter/v1/message_pb2.pyi @@ -4,7 +4,7 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message @@ -12,13 +12,9 @@ import google.protobuf.timestamp_pb2 import temporalio.api.enums.v1.workflow_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowExecutionFilter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -34,13 +30,12 @@ class WorkflowExecutionFilter(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "run_id", b"run_id", "workflow_id", b"workflow_id" - ], + field_name: typing.Literal["run_id", b"run_id", "workflow_id", b"workflow_id"], ) -> None: ... global___WorkflowExecutionFilter = WorkflowExecutionFilter +@typing.final class WorkflowTypeFilter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -51,12 +46,11 @@ class WorkflowTypeFilter(google.protobuf.message.Message): *, name: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["name", b"name"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... global___WorkflowTypeFilter = WorkflowTypeFilter +@typing.final class StartTimeFilter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -74,19 +68,20 @@ class StartTimeFilter(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "earliest_time", b"earliest_time", "latest_time", b"latest_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "earliest_time", b"earliest_time", "latest_time", b"latest_time" ], ) -> None: ... global___StartTimeFilter = StartTimeFilter +@typing.final class StatusFilter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -97,8 +92,6 @@ class StatusFilter(google.protobuf.message.Message): *, status: temporalio.api.enums.v1.workflow_pb2.WorkflowExecutionStatus.ValueType = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["status", b"status"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ... global___StatusFilter = StatusFilter diff --git a/temporalio/api/history/v1/message_pb2.py b/temporalio/api/history/v1/message_pb2.py index ac337b708..a837ef265 100644 --- a/temporalio/api/history/v1/message_pb2.py +++ b/temporalio/api/history/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -38,6 +37,9 @@ from temporalio.api.failure.v1 import ( message_pb2 as temporal_dot_api_dot_failure_dot_v1_dot_message__pb2, ) +from temporalio.api.nexus.v1 import ( + message_pb2 as temporal_dot_api_dot_nexus_dot_v1_dot_message__pb2, +) from temporalio.api.sdk.v1 import ( event_group_marker_pb2 as temporal_dot_api_dot_sdk_dot_v1_dot_event__group__marker__pb2, ) @@ -58,989 +60,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n%temporal/api/history/v1/message.proto\x12\x17temporal.api.history.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a"temporal/api/enums/v1/update.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a,temporal/api/sdk/v1/event_group_marker.proto"\xda\x12\n\'WorkflowExecutionStartedEventAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19parent_workflow_namespace\x18\x02 \x01(\t\x12$\n\x1cparent_workflow_namespace_id\x18\x1b \x01(\t\x12L\n\x19parent_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19parent_initiated_event_id\x18\x04 \x01(\x03\x12\x38\n\ntask_queue\x18\x05 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12"\n\x1a\x63ontinued_execution_run_id\x18\n \x01(\t\x12@\n\tinitiator\x18\x0b \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\x0c \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12!\n\x19original_execution_run_id\x18\x0e \x01(\t\x12\x10\n\x08identity\x18\x0f \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x10 \x01(\t\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x12 \x01(\x05\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rcron_schedule\x18\x14 \x01(\t\x12>\n\x1b\x66irst_workflow_task_backoff\x18\x15 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x16 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x17 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x45\n\x16prev_auto_reset_points\x18\x18 \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12.\n\x06header\x18\x19 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12&\n\x1eparent_initiated_event_version\x18\x1a \x01(\x03\x12\x13\n\x0bworkflow_id\x18\x1c \x01(\t\x12L\n\x14source_version_stamp\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\x14\x63ompletion_callbacks\x18\x1e \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12J\n\x17root_workflow_execution\x18\x1f \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x12inherited_build_id\x18 \x01(\tB\x02\x18\x01\x12I\n\x13versioning_override\x18! \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x33\n\'parent_pinned_worker_deployment_version\x18" \x01(\tB\x02\x18\x01\x12\x32\n\x08priority\x18# \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12U\n\x18inherited_pinned_version\x18% \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12Y\n\x1binherited_auto_upgrade_info\x18\' \x01(\x0b\x32\x34.temporal.api.deployment.v1.InheritedAutoUpgradeInfo\x12 \n\x18\x65\x61ger_execution_accepted\x18& \x01(\x08\x12^\n\x1f\x64\x65\x63lined_target_version_upgrade\x18( \x01(\x0b\x32\x35.temporal.api.history.v1.DeclinedTargetVersionUpgrade\x12H\n\x14time_skipping_config\x18) \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12]\n\x1ftime_skipping_state_propagation\x18+ \x01(\x0b\x32\x34.temporal.api.common.v1.TimeSkippingStatePropagationJ\x04\x08$\x10%J\x04\x08*\x10+R parent_pinned_deployment_versionR\x18initial_skipped_duration"\x88\x01\n\x1c\x44\x65\x63linedTargetVersionUpgrade\x12O\n\x12\x64\x65ployment_version\x18\x01 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x17\n\x0frevision_number\x18\x02 \x01(\x03"\xa5\x01\n)WorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x03 \x01(\t"\xdb\x01\n&WorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x36\n\x0bretry_state\x18\x02 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x04 \x01(\t"\x80\x01\n(WorkflowExecutionTimedOutEventAttributes\x12\x36\n\x0bretry_state\x18\x01 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x1c\n\x14new_execution_run_id\x18\x02 \x01(\t"\xa5\x07\n.WorkflowExecutionContinuedAsNewEventAttributes\x12\x1c\n\x14new_execution_run_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\tinitiator\x18\t \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x35\n\x07\x66\x61ilure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.FailureB\x02\x18\x01\x12@\n\x16last_completion_result\x18\x0b \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1c\n\x10inherit_build_id\x18\x0f \x01(\x08\x42\x02\x18\x01\x12[\n\x1binitial_versioning_behavior\x18\x10 \x01(\x0e\x32\x36.temporal.api.enums.v1.ContinueAsNewVersioningBehavior"\xac\x01\n$WorkflowTaskScheduledEventAttributes\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x39\n\x16start_to_close_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05"\xa0\x03\n"WorkflowTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x1f\n\x17suggest_continue_as_new\x18\x04 \x01(\x08\x12Z\n\x1fsuggest_continue_as_new_reasons\x18\x08 \x03(\x0e\x32\x31.temporal.api.enums.v1.SuggestContinueAsNewReason\x12\x30\n(target_worker_deployment_version_changed\x18\t \x01(\x08\x12\x1a\n\x12history_size_bytes\x18\x05 \x01(\x03\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12%\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03\x42\x02\x18\x01"\x82\x05\n$WorkflowTaskCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x04 \x01(\tB\x02\x18\x01\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12H\n\x0csdk_metadata\x18\x06 \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x12>\n\ndeployment\x18\x07 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x46\n\x13versioning_behavior\x18\x08 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12%\n\x19worker_deployment_version\x18\t \x01(\tB\x02\x18\x01\x12\x1e\n\x16worker_deployment_name\x18\n \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x0b \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion"\x95\x01\n#WorkflowTaskTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x38\n\x0ctimeout_type\x18\x03 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType"\x87\x03\n!WorkflowTaskFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12=\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x62\x61se_run_id\x18\x06 \x01(\t\x12\x12\n\nnew_run_id\x18\x07 \x01(\t\x12\x1a\n\x12\x66ork_event_version\x18\x08 \x01(\x03\x12\x1b\n\x0f\x62inary_checksum\x18\t \x01(\tB\x02\x18\x01\x12\x46\n\x0eworker_version\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01"\xc2\x05\n$ActivityTaskScheduledEventAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12!\n\x15use_workflow_build_id\x18\r \x01(\x08\x42\x02\x18\x01\x12\x32\n\x08priority\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.PriorityJ\x04\x08\x03\x10\x04"\x9e\x02\n"ActivityTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\x05\x12\x36\n\x0clast_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12%\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03\x42\x02\x18\x01"\xe8\x01\n$ActivityTaskCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01"\x9e\x02\n!ActivityTaskFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x36\n\x0bretry_state\x18\x05 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01"\xc6\x01\n#ActivityTaskTimedOutEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x36\n\x0bretry_state\x18\x04 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"r\n*ActivityTaskCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x92\x02\n#ActivityTaskCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n latest_cancel_requested_event_id\x18\x02 \x01(\x03\x12\x1a\n\x12scheduled_event_id\x18\x03 \x01(\x03\x12\x18\n\x10started_event_id\x18\x04 \x01(\x03\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01"\x93\x01\n\x1bTimerStartedEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03"G\n\x19TimerFiredEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03"\x86\x01\n\x1cTimerCanceledEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t"\xc7\x01\n/WorkflowExecutionCancelRequestedEventAttributes\x12\r\n\x05\x63\x61use\x18\x01 \x01(\t\x12#\n\x1b\x65xternal_initiated_event_id\x18\x02 \x01(\x03\x12N\n\x1b\x65xternal_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x04 \x01(\t"\x87\x01\n(WorkflowExecutionCanceledEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe9\x02\n\x1dMarkerRecordedEventAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xbf\x02\n(WorkflowExecutionSignaledEventAttributes\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\'\n\x1bskip_generate_workflow_task\x18\x05 \x01(\x08\x42\x02\x18\x01\x12N\n\x1b\x65xternal_workflow_execution\x18\x06 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x12\n\nrequest_id\x18\x07 \x01(\t"\x81\x01\n*WorkflowExecutionTerminatedEventAttributes\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t"\x9c\x02\n>RequestCancelExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x07\x63ontrol\x18\x04 \x01(\tB\x02\x18\x01\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xda\x02\n;RequestCancelExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x13\n\x07\x63ontrol\x18\x06 \x01(\tB\x02\x18\x01"\xc5\x01\n7ExternalWorkflowExecutionCancelRequestedEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\xfb\x02\n7SignalExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\t \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x07\x63ontrol\x18\x06 \x01(\tB\x02\x18\x01\x12\x1b\n\x13\x63hild_workflow_only\x18\x07 \x01(\x08\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xd3\x02\n4SignalExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x13\n\x07\x63ontrol\x18\x06 \x01(\tB\x02\x18\x01"\xd3\x01\n0ExternalWorkflowExecutionSignaledEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x05 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x07\x63ontrol\x18\x04 \x01(\tB\x02\x18\x01"\x9e\x01\n-UpsertWorkflowSearchAttributesEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x43\n\x11search_attributes\x18\x02 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"\x8a\x01\n)WorkflowPropertiesModifiedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x33\n\rupserted_memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xfc\t\n3StartChildWorkflowExecutionInitiatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x12 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x13\n\x07\x63ontrol\x18\n \x01(\tB\x02\x18\x01\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12.\n\x06header\x18\x0f \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x10 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x11 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1c\n\x10inherit_build_id\x18\x13 \x01(\x08\x42\x02\x18\x01\x12\x32\n\x08priority\x18\x14 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x15 \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12]\n\x1ftime_skipping_state_propagation\x18\x17 \x01(\x0b\x32\x34.temporal.api.common.v1.TimeSkippingStatePropagation\x12I\n\x13versioning_override\x18\x18 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverrideJ\x04\x08\x16\x10\x17R\x18initial_skipped_duration"\xd6\x02\n0StartChildWorkflowExecutionFailedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12L\n\x05\x63\x61use\x18\x04 \x01(\x0e\x32=.temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause\x12\x13\n\x07\x63ontrol\x18\x05 \x01(\tB\x02\x18\x01\x12\x1a\n\x12initiated_event_id\x18\x06 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03"\xa7\x02\n,ChildWorkflowExecutionStartedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x02 \x01(\x03\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xc5\x02\n.ChildWorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xfb\x02\n+ChildWorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03\x12\x36\n\x0bretry_state\x18\x07 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xc5\x02\n-ChildWorkflowExecutionCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xca\x02\n-ChildWorkflowExecutionTimedOutEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\x94\x02\n/ChildWorkflowExecutionTerminatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03"\xda\x05\n.WorkflowExecutionOptionsUpdatedEventAttributes\x12I\n\x13versioning_override\x18\x01 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12!\n\x19unset_versioning_override\x18\x02 \x01(\x08\x12\x1b\n\x13\x61ttached_request_id\x18\x03 \x01(\t\x12G\n\x1d\x61ttached_completion_callbacks\x18\x04 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x32\n\x08priority\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x07 \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12$\n\x1ctime_skipping_config_updated\x18\t \x01(\x08\x12\x84\x01\n\x17workflow_update_options\x18\x08 \x03(\x0b\x32\x63.temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes.WorkflowUpdateOptionsUpdate\x1a\x96\x01\n\x1bWorkflowUpdateOptionsUpdate\x12\x11\n\tupdate_id\x18\x01 \x01(\t\x12\x1b\n\x13\x61ttached_request_id\x18\x02 \x01(\t\x12G\n\x1d\x61ttached_completion_callbacks\x18\x03 \x03(\x0b\x32 .temporal.api.common.v1.Callback"\xc0\x02\n3WorkflowPropertiesModifiedExternallyEventAttributes\x12\x16\n\x0enew_task_queue\x18\x01 \x01(\t\x12<\n\x19new_workflow_task_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18new_workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1enew_workflow_execution_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x33\n\rupserted_memo\x18\x05 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x90\x01\n3ActivityPropertiesModifiedExternallyEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12=\n\x10new_retry_policy\x18\x02 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy"\xdc\x01\n.WorkflowExecutionUpdateAcceptedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1b\x61\x63\x63\x65pted_request_message_id\x18\x02 \x01(\t\x12,\n$accepted_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10\x61\x63\x63\x65pted_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xaa\x01\n/WorkflowExecutionUpdateCompletedEventAttributes\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x19\n\x11\x61\x63\x63\x65pted_event_id\x18\x03 \x01(\x03\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome"\x8f\x02\n.WorkflowExecutionUpdateRejectedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1brejected_request_message_id\x18\x02 \x01(\t\x12,\n$rejected_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10rejected_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xa4\x01\n.WorkflowExecutionUpdateAdmittedEventAttributes\x12\x30\n\x07request\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12@\n\x06origin\x18\x02 \x01(\x0e\x32\x30.temporal.api.enums.v1.UpdateAdmittedEventOrigin"^\n&WorkflowExecutionPausedEventAttributes\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t"`\n(WorkflowExecutionUnpausedEventAttributes\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\xc5\x01\n8WorkflowExecutionTimeSkippingTransitionedEventAttributes\x12/\n\x0btarget_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12#\n\x1b\x64isabled_after_fast_forward\x18\x02 \x01(\x08\x12\x33\n\x0fwall_clock_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb4\x04\n&NexusOperationScheduledEventAttributes\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x66\n\x0cnexus_header\x18\x06 \x03(\x0b\x32P.temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x12\n\nrequest_id\x18\x08 \x01(\t\x12\x13\n\x0b\x65ndpoint_id\x18\t \x01(\t\x12<\n\x19schedule_to_start_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x89\x01\n$NexusOperationStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x0coperation_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x17\n\x0foperation_token\x18\x05 \x01(\t"\x89\x01\n&NexusOperationCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12/\n\x06result\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x88\x01\n#NexusOperationFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x8a\x01\n%NexusOperationTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x8a\x01\n%NexusOperationCanceledEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"t\n,NexusOperationCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x97\x01\n3NexusOperationCancelRequestCompletedEventAttributes\x12\x1a\n\x12requested_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x1a\n\x12scheduled_event_id\x18\x03 \x01(\x03"\xc7\x01\n0NexusOperationCancelRequestFailedEventAttributes\x12\x1a\n\x12requested_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x04 \x01(\x03"\xca?\n\x0cHistoryEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\nevent_type\x18\x03 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x0f\n\x07task_id\x18\x05 \x01(\x03\x12\x1a\n\x11worker_may_ignore\x18\xac\x02 \x01(\x08\x12\x39\n\ruser_metadata\x18\xad\x02 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12,\n\x05links\x18\xae\x02 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x35\n\tprincipal\x18\xaf\x02 \x01(\x0b\x32!.temporal.api.common.v1.Principal\x12\x43\n\x13\x65vent_group_markers\x18\xb0\x02 \x03(\x0b\x32%.temporal.api.sdk.v1.EventGroupMarker\x12w\n+workflow_execution_started_event_attributes\x18\x06 \x01(\x0b\x32@.temporal.api.history.v1.WorkflowExecutionStartedEventAttributesH\x00\x12{\n-workflow_execution_completed_event_attributes\x18\x07 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowExecutionCompletedEventAttributesH\x00\x12u\n*workflow_execution_failed_event_attributes\x18\x08 \x01(\x0b\x32?.temporal.api.history.v1.WorkflowExecutionFailedEventAttributesH\x00\x12z\n-workflow_execution_timed_out_event_attributes\x18\t \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributesH\x00\x12q\n(workflow_task_scheduled_event_attributes\x18\n \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskScheduledEventAttributesH\x00\x12m\n&workflow_task_started_event_attributes\x18\x0b \x01(\x0b\x32;.temporal.api.history.v1.WorkflowTaskStartedEventAttributesH\x00\x12q\n(workflow_task_completed_event_attributes\x18\x0c \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskCompletedEventAttributesH\x00\x12p\n(workflow_task_timed_out_event_attributes\x18\r \x01(\x0b\x32<.temporal.api.history.v1.WorkflowTaskTimedOutEventAttributesH\x00\x12k\n%workflow_task_failed_event_attributes\x18\x0e \x01(\x0b\x32:.temporal.api.history.v1.WorkflowTaskFailedEventAttributesH\x00\x12q\n(activity_task_scheduled_event_attributes\x18\x0f \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskScheduledEventAttributesH\x00\x12m\n&activity_task_started_event_attributes\x18\x10 \x01(\x0b\x32;.temporal.api.history.v1.ActivityTaskStartedEventAttributesH\x00\x12q\n(activity_task_completed_event_attributes\x18\x11 \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskCompletedEventAttributesH\x00\x12k\n%activity_task_failed_event_attributes\x18\x12 \x01(\x0b\x32:.temporal.api.history.v1.ActivityTaskFailedEventAttributesH\x00\x12p\n(activity_task_timed_out_event_attributes\x18\x13 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskTimedOutEventAttributesH\x00\x12^\n\x1etimer_started_event_attributes\x18\x14 \x01(\x0b\x32\x34.temporal.api.history.v1.TimerStartedEventAttributesH\x00\x12Z\n\x1ctimer_fired_event_attributes\x18\x15 \x01(\x0b\x32\x32.temporal.api.history.v1.TimerFiredEventAttributesH\x00\x12~\n/activity_task_cancel_requested_event_attributes\x18\x16 \x01(\x0b\x32\x43.temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributesH\x00\x12o\n\'activity_task_canceled_event_attributes\x18\x17 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskCanceledEventAttributesH\x00\x12`\n\x1ftimer_canceled_event_attributes\x18\x18 \x01(\x0b\x32\x35.temporal.api.history.v1.TimerCanceledEventAttributesH\x00\x12\x62\n marker_recorded_event_attributes\x18\x19 \x01(\x0b\x32\x36.temporal.api.history.v1.MarkerRecordedEventAttributesH\x00\x12y\n,workflow_execution_signaled_event_attributes\x18\x1a \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionSignaledEventAttributesH\x00\x12}\n.workflow_execution_terminated_event_attributes\x18\x1b \x01(\x0b\x32\x43.temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_cancel_requested_event_attributes\x18\x1c \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributesH\x00\x12y\n,workflow_execution_canceled_event_attributes\x18\x1d \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionCanceledEventAttributesH\x00\x12\xa8\x01\nErequest_cancel_external_workflow_execution_initiated_event_attributes\x18\x1e \x01(\x0b\x32W.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\xa2\x01\nBrequest_cancel_external_workflow_execution_failed_event_attributes\x18\x1f \x01(\x0b\x32T.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x99\x01\n=external_workflow_execution_cancel_requested_event_attributes\x18 \x01(\x0b\x32P.temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributesH\x00\x12\x87\x01\n4workflow_execution_continued_as_new_event_attributes\x18! \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributesH\x00\x12\x91\x01\n9start_child_workflow_execution_initiated_event_attributes\x18" \x01(\x0b\x32L.temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributesH\x00\x12\x8b\x01\n6start_child_workflow_execution_failed_event_attributes\x18# \x01(\x0b\x32I.temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributesH\x00\x12\x82\x01\n1child_workflow_execution_started_event_attributes\x18$ \x01(\x0b\x32\x45.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributesH\x00\x12\x86\x01\n3child_workflow_execution_completed_event_attributes\x18% \x01(\x0b\x32G.temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributesH\x00\x12\x80\x01\n0child_workflow_execution_failed_event_attributes\x18& \x01(\x0b\x32\x44.temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributesH\x00\x12\x84\x01\n2child_workflow_execution_canceled_event_attributes\x18\' \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributesH\x00\x12\x85\x01\n3child_workflow_execution_timed_out_event_attributes\x18( \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributesH\x00\x12\x88\x01\n4child_workflow_execution_terminated_event_attributes\x18) \x01(\x0b\x32H.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributesH\x00\x12\x99\x01\n=signal_external_workflow_execution_initiated_event_attributes\x18* \x01(\x0b\x32P.temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\x93\x01\n:signal_external_workflow_execution_failed_event_attributes\x18+ \x01(\x0b\x32M.temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x8a\x01\n5external_workflow_execution_signaled_event_attributes\x18, \x01(\x0b\x32I.temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributesH\x00\x12\x84\x01\n2upsert_workflow_search_attributes_event_attributes\x18- \x01(\x0b\x32\x46.temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_accepted_event_attributes\x18. \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_rejected_event_attributes\x18/ \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_update_completed_event_attributes\x18\x30 \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributesH\x00\x12\x90\x01\n8workflow_properties_modified_externally_event_attributes\x18\x31 \x01(\x0b\x32L.temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributesH\x00\x12\x90\x01\n8activity_properties_modified_externally_event_attributes\x18\x32 \x01(\x0b\x32L.temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributesH\x00\x12{\n-workflow_properties_modified_event_attributes\x18\x33 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_admitted_event_attributes\x18\x34 \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributesH\x00\x12u\n*nexus_operation_scheduled_event_attributes\x18\x35 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationScheduledEventAttributesH\x00\x12q\n(nexus_operation_started_event_attributes\x18\x36 \x01(\x0b\x32=.temporal.api.history.v1.NexusOperationStartedEventAttributesH\x00\x12u\n*nexus_operation_completed_event_attributes\x18\x37 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationCompletedEventAttributesH\x00\x12o\n\'nexus_operation_failed_event_attributes\x18\x38 \x01(\x0b\x32<.temporal.api.history.v1.NexusOperationFailedEventAttributesH\x00\x12s\n)nexus_operation_canceled_event_attributes\x18\x39 \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationCanceledEventAttributesH\x00\x12t\n*nexus_operation_timed_out_event_attributes\x18: \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationTimedOutEventAttributesH\x00\x12\x82\x01\n1nexus_operation_cancel_requested_event_attributes\x18; \x01(\x0b\x32\x45.temporal.api.history.v1.NexusOperationCancelRequestedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_options_updated_event_attributes\x18< \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributesH\x00\x12\x91\x01\n9nexus_operation_cancel_request_completed_event_attributes\x18= \x01(\x0b\x32L.temporal.api.history.v1.NexusOperationCancelRequestCompletedEventAttributesH\x00\x12\x8b\x01\n6nexus_operation_cancel_request_failed_event_attributes\x18> \x01(\x0b\x32I.temporal.api.history.v1.NexusOperationCancelRequestFailedEventAttributesH\x00\x12u\n*workflow_execution_paused_event_attributes\x18? \x01(\x0b\x32?.temporal.api.history.v1.WorkflowExecutionPausedEventAttributesH\x00\x12y\n,workflow_execution_unpaused_event_attributes\x18@ \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionUnpausedEventAttributesH\x00\x12\x9b\x01\n>workflow_execution_time_skipping_transitioned_event_attributes\x18\x41 \x01(\x0b\x32Q.temporal.api.history.v1.WorkflowExecutionTimeSkippingTransitionedEventAttributesH\x00\x42\x0c\n\nattributes"@\n\x07History\x12\x35\n\x06\x65vents\x18\x01 \x03(\x0b\x32%.temporal.api.history.v1.HistoryEventB\x8e\x01\n\x1aio.temporal.api.history.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/history/v1;history\xaa\x02\x19Temporalio.Api.History.V1\xea\x02\x1cTemporalio::Api::History::V1b\x06proto3' -) - - -_WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionStartedEventAttributes" -] -_DECLINEDTARGETVERSIONUPGRADE = DESCRIPTOR.message_types_by_name[ - "DeclinedTargetVersionUpgrade" -] -_WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionCompletedEventAttributes" -] -_WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionFailedEventAttributes" -] -_WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionTimedOutEventAttributes" -] -_WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionContinuedAsNewEventAttributes" -] -_WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowTaskScheduledEventAttributes" -] -_WORKFLOWTASKSTARTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowTaskStartedEventAttributes" -] -_WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowTaskCompletedEventAttributes" -] -_WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowTaskTimedOutEventAttributes" -] -_WORKFLOWTASKFAILEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowTaskFailedEventAttributes" -] -_ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ActivityTaskScheduledEventAttributes" -] -_ACTIVITYTASKSTARTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ActivityTaskStartedEventAttributes" -] -_ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ActivityTaskCompletedEventAttributes" -] -_ACTIVITYTASKFAILEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ActivityTaskFailedEventAttributes" -] -_ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ActivityTaskTimedOutEventAttributes" -] -_ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ActivityTaskCancelRequestedEventAttributes" -] -_ACTIVITYTASKCANCELEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ActivityTaskCanceledEventAttributes" -] -_TIMERSTARTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "TimerStartedEventAttributes" -] -_TIMERFIREDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "TimerFiredEventAttributes" -] -_TIMERCANCELEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "TimerCanceledEventAttributes" -] -_WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionCancelRequestedEventAttributes" -] -_WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionCanceledEventAttributes" -] -_MARKERRECORDEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "MarkerRecordedEventAttributes" -] -_MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY = ( - _MARKERRECORDEDEVENTATTRIBUTES.nested_types_by_name["DetailsEntry"] -) -_WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionSignaledEventAttributes" -] -_WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionTerminatedEventAttributes" -] -_REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES = ( - DESCRIPTOR.message_types_by_name[ - "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes" - ] -) -_REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = ( - DESCRIPTOR.message_types_by_name[ - "RequestCancelExternalWorkflowExecutionFailedEventAttributes" - ] -) -_EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES = ( - DESCRIPTOR.message_types_by_name[ - "ExternalWorkflowExecutionCancelRequestedEventAttributes" - ] -) -_SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES = ( - DESCRIPTOR.message_types_by_name[ - "SignalExternalWorkflowExecutionInitiatedEventAttributes" - ] -) -_SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = ( - DESCRIPTOR.message_types_by_name[ - "SignalExternalWorkflowExecutionFailedEventAttributes" - ] -) -_EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ExternalWorkflowExecutionSignaledEventAttributes" -] -_UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "UpsertWorkflowSearchAttributesEventAttributes" -] -_WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowPropertiesModifiedEventAttributes" -] -_STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "StartChildWorkflowExecutionInitiatedEventAttributes" -] -_STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "StartChildWorkflowExecutionFailedEventAttributes" -] -_CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ChildWorkflowExecutionStartedEventAttributes" -] -_CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ChildWorkflowExecutionCompletedEventAttributes" -] -_CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ChildWorkflowExecutionFailedEventAttributes" -] -_CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ChildWorkflowExecutionCanceledEventAttributes" -] -_CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ChildWorkflowExecutionTimedOutEventAttributes" -] -_CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ChildWorkflowExecutionTerminatedEventAttributes" -] -_WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionOptionsUpdatedEventAttributes" -] -_WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES_WORKFLOWUPDATEOPTIONSUPDATE = ( - _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES.nested_types_by_name[ - "WorkflowUpdateOptionsUpdate" - ] -) -_WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowPropertiesModifiedExternallyEventAttributes" -] -_ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "ActivityPropertiesModifiedExternallyEventAttributes" -] -_WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionUpdateAcceptedEventAttributes" -] -_WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionUpdateCompletedEventAttributes" -] -_WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionUpdateRejectedEventAttributes" -] -_WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionUpdateAdmittedEventAttributes" -] -_WORKFLOWEXECUTIONPAUSEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionPausedEventAttributes" -] -_WORKFLOWEXECUTIONUNPAUSEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionUnpausedEventAttributes" -] -_WORKFLOWEXECUTIONTIMESKIPPINGTRANSITIONEDEVENTATTRIBUTES = ( - DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionTimeSkippingTransitionedEventAttributes" - ] -) -_NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "NexusOperationScheduledEventAttributes" -] -_NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY = ( - _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES.nested_types_by_name["NexusHeaderEntry"] -) -_NEXUSOPERATIONSTARTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "NexusOperationStartedEventAttributes" -] -_NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "NexusOperationCompletedEventAttributes" -] -_NEXUSOPERATIONFAILEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "NexusOperationFailedEventAttributes" -] -_NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "NexusOperationTimedOutEventAttributes" -] -_NEXUSOPERATIONCANCELEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "NexusOperationCanceledEventAttributes" -] -_NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "NexusOperationCancelRequestedEventAttributes" -] -_NEXUSOPERATIONCANCELREQUESTCOMPLETEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "NexusOperationCancelRequestCompletedEventAttributes" -] -_NEXUSOPERATIONCANCELREQUESTFAILEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "NexusOperationCancelRequestFailedEventAttributes" -] -_HISTORYEVENT = DESCRIPTOR.message_types_by_name["HistoryEvent"] -_HISTORY = DESCRIPTOR.message_types_by_name["History"] -WorkflowExecutionStartedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionStartedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionStartedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionStartedEventAttributes) - -DeclinedTargetVersionUpgrade = _reflection.GeneratedProtocolMessageType( - "DeclinedTargetVersionUpgrade", - (_message.Message,), - { - "DESCRIPTOR": _DECLINEDTARGETVERSIONUPGRADE, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.DeclinedTargetVersionUpgrade) - }, -) -_sym_db.RegisterMessage(DeclinedTargetVersionUpgrade) - -WorkflowExecutionCompletedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionCompletedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionCompletedEventAttributes) - -WorkflowExecutionFailedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionFailedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionFailedEventAttributes) - -WorkflowExecutionTimedOutEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionTimedOutEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionTimedOutEventAttributes) - -WorkflowExecutionContinuedAsNewEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionContinuedAsNewEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(WorkflowExecutionContinuedAsNewEventAttributes) - -WorkflowTaskScheduledEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowTaskScheduledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskScheduledEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowTaskScheduledEventAttributes) - -WorkflowTaskStartedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowTaskStartedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWTASKSTARTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskStartedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowTaskStartedEventAttributes) - -WorkflowTaskCompletedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowTaskCompletedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskCompletedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowTaskCompletedEventAttributes) - -WorkflowTaskTimedOutEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowTaskTimedOutEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowTaskTimedOutEventAttributes) - -WorkflowTaskFailedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowTaskFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWTASKFAILEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskFailedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowTaskFailedEventAttributes) - -ActivityTaskScheduledEventAttributes = _reflection.GeneratedProtocolMessageType( - "ActivityTaskScheduledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskScheduledEventAttributes) - }, -) -_sym_db.RegisterMessage(ActivityTaskScheduledEventAttributes) - -ActivityTaskStartedEventAttributes = _reflection.GeneratedProtocolMessageType( - "ActivityTaskStartedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTASKSTARTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskStartedEventAttributes) - }, -) -_sym_db.RegisterMessage(ActivityTaskStartedEventAttributes) - -ActivityTaskCompletedEventAttributes = _reflection.GeneratedProtocolMessageType( - "ActivityTaskCompletedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskCompletedEventAttributes) - }, -) -_sym_db.RegisterMessage(ActivityTaskCompletedEventAttributes) - -ActivityTaskFailedEventAttributes = _reflection.GeneratedProtocolMessageType( - "ActivityTaskFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTASKFAILEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskFailedEventAttributes) - }, -) -_sym_db.RegisterMessage(ActivityTaskFailedEventAttributes) - -ActivityTaskTimedOutEventAttributes = _reflection.GeneratedProtocolMessageType( - "ActivityTaskTimedOutEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskTimedOutEventAttributes) - }, -) -_sym_db.RegisterMessage(ActivityTaskTimedOutEventAttributes) - -ActivityTaskCancelRequestedEventAttributes = _reflection.GeneratedProtocolMessageType( - "ActivityTaskCancelRequestedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes) - }, -) -_sym_db.RegisterMessage(ActivityTaskCancelRequestedEventAttributes) - -ActivityTaskCanceledEventAttributes = _reflection.GeneratedProtocolMessageType( - "ActivityTaskCanceledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTASKCANCELEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskCanceledEventAttributes) - }, -) -_sym_db.RegisterMessage(ActivityTaskCanceledEventAttributes) - -TimerStartedEventAttributes = _reflection.GeneratedProtocolMessageType( - "TimerStartedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _TIMERSTARTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.TimerStartedEventAttributes) - }, -) -_sym_db.RegisterMessage(TimerStartedEventAttributes) - -TimerFiredEventAttributes = _reflection.GeneratedProtocolMessageType( - "TimerFiredEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _TIMERFIREDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.TimerFiredEventAttributes) - }, -) -_sym_db.RegisterMessage(TimerFiredEventAttributes) - -TimerCanceledEventAttributes = _reflection.GeneratedProtocolMessageType( - "TimerCanceledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _TIMERCANCELEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.TimerCanceledEventAttributes) - }, -) -_sym_db.RegisterMessage(TimerCanceledEventAttributes) - -WorkflowExecutionCancelRequestedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionCancelRequestedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(WorkflowExecutionCancelRequestedEventAttributes) - -WorkflowExecutionCanceledEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionCanceledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionCanceledEventAttributes) - -MarkerRecordedEventAttributes = _reflection.GeneratedProtocolMessageType( - "MarkerRecordedEventAttributes", - (_message.Message,), - { - "DetailsEntry": _reflection.GeneratedProtocolMessageType( - "DetailsEntry", - (_message.Message,), - { - "DESCRIPTOR": _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry) - }, - ), - "DESCRIPTOR": _MARKERRECORDEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.MarkerRecordedEventAttributes) - }, -) -_sym_db.RegisterMessage(MarkerRecordedEventAttributes) -_sym_db.RegisterMessage(MarkerRecordedEventAttributes.DetailsEntry) - -WorkflowExecutionSignaledEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionSignaledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionSignaledEventAttributes) - -WorkflowExecutionTerminatedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionTerminatedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionTerminatedEventAttributes) - -RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = _reflection.GeneratedProtocolMessageType( - "RequestCancelExternalWorkflowExecutionInitiatedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) - }, -) -_sym_db.RegisterMessage(RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) - -RequestCancelExternalWorkflowExecutionFailedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "RequestCancelExternalWorkflowExecutionFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(RequestCancelExternalWorkflowExecutionFailedEventAttributes) - -ExternalWorkflowExecutionCancelRequestedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "ExternalWorkflowExecutionCancelRequestedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(ExternalWorkflowExecutionCancelRequestedEventAttributes) - -SignalExternalWorkflowExecutionInitiatedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "SignalExternalWorkflowExecutionInitiatedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(SignalExternalWorkflowExecutionInitiatedEventAttributes) - -SignalExternalWorkflowExecutionFailedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "SignalExternalWorkflowExecutionFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(SignalExternalWorkflowExecutionFailedEventAttributes) - -ExternalWorkflowExecutionSignaledEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "ExternalWorkflowExecutionSignaledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(ExternalWorkflowExecutionSignaledEventAttributes) - -UpsertWorkflowSearchAttributesEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "UpsertWorkflowSearchAttributesEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(UpsertWorkflowSearchAttributesEventAttributes) - -WorkflowPropertiesModifiedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowPropertiesModifiedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowPropertiesModifiedEventAttributes) - -StartChildWorkflowExecutionInitiatedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "StartChildWorkflowExecutionInitiatedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(StartChildWorkflowExecutionInitiatedEventAttributes) - -StartChildWorkflowExecutionFailedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "StartChildWorkflowExecutionFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(StartChildWorkflowExecutionFailedEventAttributes) - -ChildWorkflowExecutionStartedEventAttributes = _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionStartedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes) - }, -) -_sym_db.RegisterMessage(ChildWorkflowExecutionStartedEventAttributes) - -ChildWorkflowExecutionCompletedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionCompletedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(ChildWorkflowExecutionCompletedEventAttributes) - -ChildWorkflowExecutionFailedEventAttributes = _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes) - }, -) -_sym_db.RegisterMessage(ChildWorkflowExecutionFailedEventAttributes) - -ChildWorkflowExecutionCanceledEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionCanceledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(ChildWorkflowExecutionCanceledEventAttributes) - -ChildWorkflowExecutionTimedOutEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionTimedOutEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(ChildWorkflowExecutionTimedOutEventAttributes) - -ChildWorkflowExecutionTerminatedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionTerminatedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(ChildWorkflowExecutionTerminatedEventAttributes) - -WorkflowExecutionOptionsUpdatedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionOptionsUpdatedEventAttributes", - (_message.Message,), - { - "WorkflowUpdateOptionsUpdate": _reflection.GeneratedProtocolMessageType( - "WorkflowUpdateOptionsUpdate", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES_WORKFLOWUPDATEOPTIONSUPDATE, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes.WorkflowUpdateOptionsUpdate) - }, - ), - "DESCRIPTOR": _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionOptionsUpdatedEventAttributes) -_sym_db.RegisterMessage( - WorkflowExecutionOptionsUpdatedEventAttributes.WorkflowUpdateOptionsUpdate -) - -WorkflowPropertiesModifiedExternallyEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "WorkflowPropertiesModifiedExternallyEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(WorkflowPropertiesModifiedExternallyEventAttributes) - -ActivityPropertiesModifiedExternallyEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "ActivityPropertiesModifiedExternallyEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(ActivityPropertiesModifiedExternallyEventAttributes) - -WorkflowExecutionUpdateAcceptedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUpdateAcceptedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(WorkflowExecutionUpdateAcceptedEventAttributes) - -WorkflowExecutionUpdateCompletedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUpdateCompletedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(WorkflowExecutionUpdateCompletedEventAttributes) - -WorkflowExecutionUpdateRejectedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUpdateRejectedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(WorkflowExecutionUpdateRejectedEventAttributes) - -WorkflowExecutionUpdateAdmittedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUpdateAdmittedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(WorkflowExecutionUpdateAdmittedEventAttributes) - -WorkflowExecutionPausedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionPausedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONPAUSEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionPausedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionPausedEventAttributes) - -WorkflowExecutionUnpausedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUnpausedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONUNPAUSEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUnpausedEventAttributes) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionUnpausedEventAttributes) - -WorkflowExecutionTimeSkippingTransitionedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionTimeSkippingTransitionedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONTIMESKIPPINGTRANSITIONEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionTimeSkippingTransitionedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(WorkflowExecutionTimeSkippingTransitionedEventAttributes) - -NexusOperationScheduledEventAttributes = _reflection.GeneratedProtocolMessageType( - "NexusOperationScheduledEventAttributes", - (_message.Message,), - { - "NexusHeaderEntry": _reflection.GeneratedProtocolMessageType( - "NexusHeaderEntry", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry) - }, - ), - "DESCRIPTOR": _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationScheduledEventAttributes) - }, -) -_sym_db.RegisterMessage(NexusOperationScheduledEventAttributes) -_sym_db.RegisterMessage(NexusOperationScheduledEventAttributes.NexusHeaderEntry) - -NexusOperationStartedEventAttributes = _reflection.GeneratedProtocolMessageType( - "NexusOperationStartedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationStartedEventAttributes) - }, -) -_sym_db.RegisterMessage(NexusOperationStartedEventAttributes) - -NexusOperationCompletedEventAttributes = _reflection.GeneratedProtocolMessageType( - "NexusOperationCompletedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCompletedEventAttributes) - }, -) -_sym_db.RegisterMessage(NexusOperationCompletedEventAttributes) - -NexusOperationFailedEventAttributes = _reflection.GeneratedProtocolMessageType( - "NexusOperationFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONFAILEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationFailedEventAttributes) - }, -) -_sym_db.RegisterMessage(NexusOperationFailedEventAttributes) - -NexusOperationTimedOutEventAttributes = _reflection.GeneratedProtocolMessageType( - "NexusOperationTimedOutEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationTimedOutEventAttributes) - }, -) -_sym_db.RegisterMessage(NexusOperationTimedOutEventAttributes) - -NexusOperationCanceledEventAttributes = _reflection.GeneratedProtocolMessageType( - "NexusOperationCanceledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCanceledEventAttributes) - }, -) -_sym_db.RegisterMessage(NexusOperationCanceledEventAttributes) - -NexusOperationCancelRequestedEventAttributes = _reflection.GeneratedProtocolMessageType( - "NexusOperationCancelRequestedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCancelRequestedEventAttributes) - }, -) -_sym_db.RegisterMessage(NexusOperationCancelRequestedEventAttributes) - -NexusOperationCancelRequestCompletedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "NexusOperationCancelRequestCompletedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONCANCELREQUESTCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCancelRequestCompletedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(NexusOperationCancelRequestCompletedEventAttributes) - -NexusOperationCancelRequestFailedEventAttributes = ( - _reflection.GeneratedProtocolMessageType( - "NexusOperationCancelRequestFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONCANCELREQUESTFAILEDEVENTATTRIBUTES, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCancelRequestFailedEventAttributes) - }, - ) -) -_sym_db.RegisterMessage(NexusOperationCancelRequestFailedEventAttributes) - -HistoryEvent = _reflection.GeneratedProtocolMessageType( - "HistoryEvent", - (_message.Message,), - { - "DESCRIPTOR": _HISTORYEVENT, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.HistoryEvent) - }, -) -_sym_db.RegisterMessage(HistoryEvent) - -History = _reflection.GeneratedProtocolMessageType( - "History", - (_message.Message,), - { - "DESCRIPTOR": _HISTORY, - "__module__": "temporalio.api.history.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.History) - }, + b'\n%temporal/api/history/v1/message.proto\x12\x17temporal.api.history.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a"temporal/api/enums/v1/update.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a,temporal/api/sdk/v1/event_group_marker.proto"\xc1\x13\n\'WorkflowExecutionStartedEventAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19parent_workflow_namespace\x18\x02 \x01(\t\x12$\n\x1cparent_workflow_namespace_id\x18\x1b \x01(\t\x12L\n\x19parent_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19parent_initiated_event_id\x18\x04 \x01(\x03\x12\x38\n\ntask_queue\x18\x05 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12"\n\x1a\x63ontinued_execution_run_id\x18\n \x01(\t\x12@\n\tinitiator\x18\x0b \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\x0c \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12!\n\x19original_execution_run_id\x18\x0e \x01(\t\x12\x10\n\x08identity\x18\x0f \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x10 \x01(\t\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x12 \x01(\x05\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rcron_schedule\x18\x14 \x01(\t\x12>\n\x1b\x66irst_workflow_task_backoff\x18\x15 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x16 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x17 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x45\n\x16prev_auto_reset_points\x18\x18 \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12.\n\x06header\x18\x19 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12&\n\x1eparent_initiated_event_version\x18\x1a \x01(\x03\x12\x13\n\x0bworkflow_id\x18\x1c \x01(\t\x12L\n\x14source_version_stamp\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\x14\x63ompletion_callbacks\x18\x1e \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12J\n\x17root_workflow_execution\x18\x1f \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x12inherited_build_id\x18 \x01(\tB\x02\x18\x01\x12I\n\x13versioning_override\x18! \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x33\n\'parent_pinned_worker_deployment_version\x18" \x01(\tB\x02\x18\x01\x12\x32\n\x08priority\x18# \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12U\n\x18inherited_pinned_version\x18% \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12Y\n\x1binherited_auto_upgrade_info\x18\' \x01(\x0b\x32\x34.temporal.api.deployment.v1.InheritedAutoUpgradeInfo\x12 \n\x18\x65\x61ger_execution_accepted\x18& \x01(\x08\x12^\n\x1f\x64\x65\x63lined_target_version_upgrade\x18( \x01(\x0b\x32\x35.temporal.api.history.v1.DeclinedTargetVersionUpgrade\x12H\n\x14time_skipping_config\x18) \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12]\n\x1ftime_skipping_state_propagation\x18+ \x01(\x0b\x32\x34.temporal.api.common.v1.TimeSkippingStatePropagation\x12\x65\n&propagated_nexus_serialization_context\x18, \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContextJ\x04\x08$\x10%J\x04\x08*\x10+R parent_pinned_deployment_versionR\x18initial_skipped_duration"\x88\x01\n\x1c\x44\x65\x63linedTargetVersionUpgrade\x12O\n\x12\x64\x65ployment_version\x18\x01 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x17\n\x0frevision_number\x18\x02 \x01(\x03"\xa5\x01\n)WorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x03 \x01(\t"\xdb\x01\n&WorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x36\n\x0bretry_state\x18\x02 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x04 \x01(\t"\x80\x01\n(WorkflowExecutionTimedOutEventAttributes\x12\x36\n\x0bretry_state\x18\x01 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x1c\n\x14new_execution_run_id\x18\x02 \x01(\t"\xa5\x07\n.WorkflowExecutionContinuedAsNewEventAttributes\x12\x1c\n\x14new_execution_run_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\tinitiator\x18\t \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x35\n\x07\x66\x61ilure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.FailureB\x02\x18\x01\x12@\n\x16last_completion_result\x18\x0b \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1c\n\x10inherit_build_id\x18\x0f \x01(\x08\x42\x02\x18\x01\x12[\n\x1binitial_versioning_behavior\x18\x10 \x01(\x0e\x32\x36.temporal.api.enums.v1.ContinueAsNewVersioningBehavior"\xac\x01\n$WorkflowTaskScheduledEventAttributes\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x39\n\x16start_to_close_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05"\xa0\x03\n"WorkflowTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x1f\n\x17suggest_continue_as_new\x18\x04 \x01(\x08\x12Z\n\x1fsuggest_continue_as_new_reasons\x18\x08 \x03(\x0e\x32\x31.temporal.api.enums.v1.SuggestContinueAsNewReason\x12\x30\n(target_worker_deployment_version_changed\x18\t \x01(\x08\x12\x1a\n\x12history_size_bytes\x18\x05 \x01(\x03\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12%\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03\x42\x02\x18\x01"\x82\x05\n$WorkflowTaskCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x04 \x01(\tB\x02\x18\x01\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12H\n\x0csdk_metadata\x18\x06 \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x12>\n\ndeployment\x18\x07 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x46\n\x13versioning_behavior\x18\x08 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12%\n\x19worker_deployment_version\x18\t \x01(\tB\x02\x18\x01\x12\x1e\n\x16worker_deployment_name\x18\n \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x0b \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion"\x95\x01\n#WorkflowTaskTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x38\n\x0ctimeout_type\x18\x03 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType"\x87\x03\n!WorkflowTaskFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12=\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x62\x61se_run_id\x18\x06 \x01(\t\x12\x12\n\nnew_run_id\x18\x07 \x01(\t\x12\x1a\n\x12\x66ork_event_version\x18\x08 \x01(\x03\x12\x1b\n\x0f\x62inary_checksum\x18\t \x01(\tB\x02\x18\x01\x12\x46\n\x0eworker_version\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01"\xc2\x05\n$ActivityTaskScheduledEventAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12!\n\x15use_workflow_build_id\x18\r \x01(\x08\x42\x02\x18\x01\x12\x32\n\x08priority\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.PriorityJ\x04\x08\x03\x10\x04"\x9e\x02\n"ActivityTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\x05\x12\x36\n\x0clast_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12%\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03\x42\x02\x18\x01"\xe8\x01\n$ActivityTaskCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01"\xdd\x02\n!ActivityTaskFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x36\n\x0bretry_state\x18\x05 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12=\n\x05\x63\x61use\x18\x07 \x01(\x0e\x32..temporal.api.enums.v1.ActivityTaskFailedCause"\xc6\x01\n#ActivityTaskTimedOutEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x36\n\x0bretry_state\x18\x04 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"r\n*ActivityTaskCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x92\x02\n#ActivityTaskCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n latest_cancel_requested_event_id\x18\x02 \x01(\x03\x12\x1a\n\x12scheduled_event_id\x18\x03 \x01(\x03\x12\x18\n\x10started_event_id\x18\x04 \x01(\x03\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01"\x93\x01\n\x1bTimerStartedEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03"G\n\x19TimerFiredEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03"\x86\x01\n\x1cTimerCanceledEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t"\xc7\x01\n/WorkflowExecutionCancelRequestedEventAttributes\x12\r\n\x05\x63\x61use\x18\x01 \x01(\t\x12#\n\x1b\x65xternal_initiated_event_id\x18\x02 \x01(\x03\x12N\n\x1b\x65xternal_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x04 \x01(\t"\x87\x01\n(WorkflowExecutionCanceledEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe9\x02\n\x1dMarkerRecordedEventAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xbf\x02\n(WorkflowExecutionSignaledEventAttributes\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\'\n\x1bskip_generate_workflow_task\x18\x05 \x01(\x08\x42\x02\x18\x01\x12N\n\x1b\x65xternal_workflow_execution\x18\x06 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x12\n\nrequest_id\x18\x07 \x01(\t"\x81\x01\n*WorkflowExecutionTerminatedEventAttributes\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t"\x9c\x02\n>RequestCancelExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x07\x63ontrol\x18\x04 \x01(\tB\x02\x18\x01\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xda\x02\n;RequestCancelExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x13\n\x07\x63ontrol\x18\x06 \x01(\tB\x02\x18\x01"\xc5\x01\n7ExternalWorkflowExecutionCancelRequestedEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\xfb\x02\n7SignalExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\t \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x07\x63ontrol\x18\x06 \x01(\tB\x02\x18\x01\x12\x1b\n\x13\x63hild_workflow_only\x18\x07 \x01(\x08\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xd3\x02\n4SignalExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x13\n\x07\x63ontrol\x18\x06 \x01(\tB\x02\x18\x01"\xd3\x01\n0ExternalWorkflowExecutionSignaledEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x05 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x07\x63ontrol\x18\x04 \x01(\tB\x02\x18\x01"\x9e\x01\n-UpsertWorkflowSearchAttributesEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x43\n\x11search_attributes\x18\x02 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"\x8a\x01\n)WorkflowPropertiesModifiedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x33\n\rupserted_memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xfc\t\n3StartChildWorkflowExecutionInitiatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x12 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x13\n\x07\x63ontrol\x18\n \x01(\tB\x02\x18\x01\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12.\n\x06header\x18\x0f \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x10 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x11 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1c\n\x10inherit_build_id\x18\x13 \x01(\x08\x42\x02\x18\x01\x12\x32\n\x08priority\x18\x14 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x15 \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12]\n\x1ftime_skipping_state_propagation\x18\x17 \x01(\x0b\x32\x34.temporal.api.common.v1.TimeSkippingStatePropagation\x12I\n\x13versioning_override\x18\x18 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverrideJ\x04\x08\x16\x10\x17R\x18initial_skipped_duration"\xd6\x02\n0StartChildWorkflowExecutionFailedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12L\n\x05\x63\x61use\x18\x04 \x01(\x0e\x32=.temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause\x12\x13\n\x07\x63ontrol\x18\x05 \x01(\tB\x02\x18\x01\x12\x1a\n\x12initiated_event_id\x18\x06 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03"\xa7\x02\n,ChildWorkflowExecutionStartedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x02 \x01(\x03\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xc5\x02\n.ChildWorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xfb\x02\n+ChildWorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03\x12\x36\n\x0bretry_state\x18\x07 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xc5\x02\n-ChildWorkflowExecutionCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xca\x02\n-ChildWorkflowExecutionTimedOutEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\x94\x02\n/ChildWorkflowExecutionTerminatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03"\xda\x05\n.WorkflowExecutionOptionsUpdatedEventAttributes\x12I\n\x13versioning_override\x18\x01 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12!\n\x19unset_versioning_override\x18\x02 \x01(\x08\x12\x1b\n\x13\x61ttached_request_id\x18\x03 \x01(\t\x12G\n\x1d\x61ttached_completion_callbacks\x18\x04 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x32\n\x08priority\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x07 \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12$\n\x1ctime_skipping_config_updated\x18\t \x01(\x08\x12\x84\x01\n\x17workflow_update_options\x18\x08 \x03(\x0b\x32\x63.temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes.WorkflowUpdateOptionsUpdate\x1a\x96\x01\n\x1bWorkflowUpdateOptionsUpdate\x12\x11\n\tupdate_id\x18\x01 \x01(\t\x12\x1b\n\x13\x61ttached_request_id\x18\x02 \x01(\t\x12G\n\x1d\x61ttached_completion_callbacks\x18\x03 \x03(\x0b\x32 .temporal.api.common.v1.Callback"\xc0\x02\n3WorkflowPropertiesModifiedExternallyEventAttributes\x12\x16\n\x0enew_task_queue\x18\x01 \x01(\t\x12<\n\x19new_workflow_task_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18new_workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1enew_workflow_execution_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x33\n\rupserted_memo\x18\x05 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x90\x01\n3ActivityPropertiesModifiedExternallyEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12=\n\x10new_retry_policy\x18\x02 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy"\xdc\x01\n.WorkflowExecutionUpdateAcceptedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1b\x61\x63\x63\x65pted_request_message_id\x18\x02 \x01(\t\x12,\n$accepted_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10\x61\x63\x63\x65pted_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xaa\x01\n/WorkflowExecutionUpdateCompletedEventAttributes\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x19\n\x11\x61\x63\x63\x65pted_event_id\x18\x03 \x01(\x03\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome"\x8f\x02\n.WorkflowExecutionUpdateRejectedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1brejected_request_message_id\x18\x02 \x01(\t\x12,\n$rejected_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10rejected_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xa4\x01\n.WorkflowExecutionUpdateAdmittedEventAttributes\x12\x30\n\x07request\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12@\n\x06origin\x18\x02 \x01(\x0e\x32\x30.temporal.api.enums.v1.UpdateAdmittedEventOrigin"^\n&WorkflowExecutionPausedEventAttributes\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t"`\n(WorkflowExecutionUnpausedEventAttributes\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\xc5\x01\n8WorkflowExecutionTimeSkippingTransitionedEventAttributes\x12/\n\x0btarget_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12#\n\x1b\x64isabled_after_fast_forward\x18\x02 \x01(\x08\x12\x33\n\x0fwall_clock_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb4\x04\n&NexusOperationScheduledEventAttributes\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x66\n\x0cnexus_header\x18\x06 \x03(\x0b\x32P.temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x12\n\nrequest_id\x18\x08 \x01(\t\x12\x13\n\x0b\x65ndpoint_id\x18\t \x01(\t\x12<\n\x19schedule_to_start_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x89\x01\n$NexusOperationStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x0coperation_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x17\n\x0foperation_token\x18\x05 \x01(\t"\x89\x01\n&NexusOperationCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12/\n\x06result\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x88\x01\n#NexusOperationFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x8a\x01\n%NexusOperationTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x8a\x01\n%NexusOperationCanceledEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"t\n,NexusOperationCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x97\x01\n3NexusOperationCancelRequestCompletedEventAttributes\x12\x1a\n\x12requested_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x1a\n\x12scheduled_event_id\x18\x03 \x01(\x03"\xc7\x01\n0NexusOperationCancelRequestFailedEventAttributes\x12\x1a\n\x12requested_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x04 \x01(\x03"\xca?\n\x0cHistoryEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\nevent_type\x18\x03 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x0f\n\x07task_id\x18\x05 \x01(\x03\x12\x1a\n\x11worker_may_ignore\x18\xac\x02 \x01(\x08\x12\x39\n\ruser_metadata\x18\xad\x02 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12,\n\x05links\x18\xae\x02 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x35\n\tprincipal\x18\xaf\x02 \x01(\x0b\x32!.temporal.api.common.v1.Principal\x12\x43\n\x13\x65vent_group_markers\x18\xb0\x02 \x03(\x0b\x32%.temporal.api.sdk.v1.EventGroupMarker\x12w\n+workflow_execution_started_event_attributes\x18\x06 \x01(\x0b\x32@.temporal.api.history.v1.WorkflowExecutionStartedEventAttributesH\x00\x12{\n-workflow_execution_completed_event_attributes\x18\x07 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowExecutionCompletedEventAttributesH\x00\x12u\n*workflow_execution_failed_event_attributes\x18\x08 \x01(\x0b\x32?.temporal.api.history.v1.WorkflowExecutionFailedEventAttributesH\x00\x12z\n-workflow_execution_timed_out_event_attributes\x18\t \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributesH\x00\x12q\n(workflow_task_scheduled_event_attributes\x18\n \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskScheduledEventAttributesH\x00\x12m\n&workflow_task_started_event_attributes\x18\x0b \x01(\x0b\x32;.temporal.api.history.v1.WorkflowTaskStartedEventAttributesH\x00\x12q\n(workflow_task_completed_event_attributes\x18\x0c \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskCompletedEventAttributesH\x00\x12p\n(workflow_task_timed_out_event_attributes\x18\r \x01(\x0b\x32<.temporal.api.history.v1.WorkflowTaskTimedOutEventAttributesH\x00\x12k\n%workflow_task_failed_event_attributes\x18\x0e \x01(\x0b\x32:.temporal.api.history.v1.WorkflowTaskFailedEventAttributesH\x00\x12q\n(activity_task_scheduled_event_attributes\x18\x0f \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskScheduledEventAttributesH\x00\x12m\n&activity_task_started_event_attributes\x18\x10 \x01(\x0b\x32;.temporal.api.history.v1.ActivityTaskStartedEventAttributesH\x00\x12q\n(activity_task_completed_event_attributes\x18\x11 \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskCompletedEventAttributesH\x00\x12k\n%activity_task_failed_event_attributes\x18\x12 \x01(\x0b\x32:.temporal.api.history.v1.ActivityTaskFailedEventAttributesH\x00\x12p\n(activity_task_timed_out_event_attributes\x18\x13 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskTimedOutEventAttributesH\x00\x12^\n\x1etimer_started_event_attributes\x18\x14 \x01(\x0b\x32\x34.temporal.api.history.v1.TimerStartedEventAttributesH\x00\x12Z\n\x1ctimer_fired_event_attributes\x18\x15 \x01(\x0b\x32\x32.temporal.api.history.v1.TimerFiredEventAttributesH\x00\x12~\n/activity_task_cancel_requested_event_attributes\x18\x16 \x01(\x0b\x32\x43.temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributesH\x00\x12o\n\'activity_task_canceled_event_attributes\x18\x17 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskCanceledEventAttributesH\x00\x12`\n\x1ftimer_canceled_event_attributes\x18\x18 \x01(\x0b\x32\x35.temporal.api.history.v1.TimerCanceledEventAttributesH\x00\x12\x62\n marker_recorded_event_attributes\x18\x19 \x01(\x0b\x32\x36.temporal.api.history.v1.MarkerRecordedEventAttributesH\x00\x12y\n,workflow_execution_signaled_event_attributes\x18\x1a \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionSignaledEventAttributesH\x00\x12}\n.workflow_execution_terminated_event_attributes\x18\x1b \x01(\x0b\x32\x43.temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_cancel_requested_event_attributes\x18\x1c \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributesH\x00\x12y\n,workflow_execution_canceled_event_attributes\x18\x1d \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionCanceledEventAttributesH\x00\x12\xa8\x01\nErequest_cancel_external_workflow_execution_initiated_event_attributes\x18\x1e \x01(\x0b\x32W.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\xa2\x01\nBrequest_cancel_external_workflow_execution_failed_event_attributes\x18\x1f \x01(\x0b\x32T.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x99\x01\n=external_workflow_execution_cancel_requested_event_attributes\x18 \x01(\x0b\x32P.temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributesH\x00\x12\x87\x01\n4workflow_execution_continued_as_new_event_attributes\x18! \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributesH\x00\x12\x91\x01\n9start_child_workflow_execution_initiated_event_attributes\x18" \x01(\x0b\x32L.temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributesH\x00\x12\x8b\x01\n6start_child_workflow_execution_failed_event_attributes\x18# \x01(\x0b\x32I.temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributesH\x00\x12\x82\x01\n1child_workflow_execution_started_event_attributes\x18$ \x01(\x0b\x32\x45.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributesH\x00\x12\x86\x01\n3child_workflow_execution_completed_event_attributes\x18% \x01(\x0b\x32G.temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributesH\x00\x12\x80\x01\n0child_workflow_execution_failed_event_attributes\x18& \x01(\x0b\x32\x44.temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributesH\x00\x12\x84\x01\n2child_workflow_execution_canceled_event_attributes\x18\' \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributesH\x00\x12\x85\x01\n3child_workflow_execution_timed_out_event_attributes\x18( \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributesH\x00\x12\x88\x01\n4child_workflow_execution_terminated_event_attributes\x18) \x01(\x0b\x32H.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributesH\x00\x12\x99\x01\n=signal_external_workflow_execution_initiated_event_attributes\x18* \x01(\x0b\x32P.temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\x93\x01\n:signal_external_workflow_execution_failed_event_attributes\x18+ \x01(\x0b\x32M.temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x8a\x01\n5external_workflow_execution_signaled_event_attributes\x18, \x01(\x0b\x32I.temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributesH\x00\x12\x84\x01\n2upsert_workflow_search_attributes_event_attributes\x18- \x01(\x0b\x32\x46.temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_accepted_event_attributes\x18. \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_rejected_event_attributes\x18/ \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_update_completed_event_attributes\x18\x30 \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributesH\x00\x12\x90\x01\n8workflow_properties_modified_externally_event_attributes\x18\x31 \x01(\x0b\x32L.temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributesH\x00\x12\x90\x01\n8activity_properties_modified_externally_event_attributes\x18\x32 \x01(\x0b\x32L.temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributesH\x00\x12{\n-workflow_properties_modified_event_attributes\x18\x33 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_admitted_event_attributes\x18\x34 \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributesH\x00\x12u\n*nexus_operation_scheduled_event_attributes\x18\x35 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationScheduledEventAttributesH\x00\x12q\n(nexus_operation_started_event_attributes\x18\x36 \x01(\x0b\x32=.temporal.api.history.v1.NexusOperationStartedEventAttributesH\x00\x12u\n*nexus_operation_completed_event_attributes\x18\x37 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationCompletedEventAttributesH\x00\x12o\n\'nexus_operation_failed_event_attributes\x18\x38 \x01(\x0b\x32<.temporal.api.history.v1.NexusOperationFailedEventAttributesH\x00\x12s\n)nexus_operation_canceled_event_attributes\x18\x39 \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationCanceledEventAttributesH\x00\x12t\n*nexus_operation_timed_out_event_attributes\x18: \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationTimedOutEventAttributesH\x00\x12\x82\x01\n1nexus_operation_cancel_requested_event_attributes\x18; \x01(\x0b\x32\x45.temporal.api.history.v1.NexusOperationCancelRequestedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_options_updated_event_attributes\x18< \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributesH\x00\x12\x91\x01\n9nexus_operation_cancel_request_completed_event_attributes\x18= \x01(\x0b\x32L.temporal.api.history.v1.NexusOperationCancelRequestCompletedEventAttributesH\x00\x12\x8b\x01\n6nexus_operation_cancel_request_failed_event_attributes\x18> \x01(\x0b\x32I.temporal.api.history.v1.NexusOperationCancelRequestFailedEventAttributesH\x00\x12u\n*workflow_execution_paused_event_attributes\x18? \x01(\x0b\x32?.temporal.api.history.v1.WorkflowExecutionPausedEventAttributesH\x00\x12y\n,workflow_execution_unpaused_event_attributes\x18@ \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionUnpausedEventAttributesH\x00\x12\x9b\x01\n>workflow_execution_time_skipping_transitioned_event_attributes\x18\x41 \x01(\x0b\x32Q.temporal.api.history.v1.WorkflowExecutionTimeSkippingTransitionedEventAttributesH\x00\x42\x0c\n\nattributes"@\n\x07History\x12\x35\n\x06\x65vents\x18\x01 \x03(\x0b\x32%.temporal.api.history.v1.HistoryEventB\x8e\x01\n\x1aio.temporal.api.history.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/history/v1;history\xaa\x02\x19Temporalio.Api.History.V1\xea\x02\x1cTemporalio::Api::History::V1b\x06proto3' ) -_sym_db.RegisterMessage(History) +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.history.v1B\014MessageProtoP\001Z%go.temporal.io/api/history/v1;history\252\002\031Temporalio.Api.History.V1\352\002\034Temporalio::Api::History::V1" @@ -1210,140 +234,140 @@ _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES.fields_by_name[ "operation_id" ]._serialized_options = b"\030\001" - _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 663 - _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 3057 - _DECLINEDTARGETVERSIONUPGRADE._serialized_start = 3060 - _DECLINEDTARGETVERSIONUPGRADE._serialized_end = 3196 - _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 3199 - _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 3364 - _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 3367 - _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 3586 - _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 3589 - _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 3717 - _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_start = 3720 - _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_end = 4653 - _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 4656 - _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 4828 - _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_start = 4831 - _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_end = 5247 - _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 5250 - _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 5892 - _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 5895 - _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 6044 - _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_start = 6047 - _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_end = 6438 - _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 6441 - _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 7147 - _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_start = 7150 - _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_end = 7436 - _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 7439 - _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 7671 - _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_start = 7674 - _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_end = 7960 - _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 7963 - _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 8161 - _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 8163 - _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 8277 - _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_start = 8280 - _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_end = 8554 - _TIMERSTARTEDEVENTATTRIBUTES._serialized_start = 8557 - _TIMERSTARTEDEVENTATTRIBUTES._serialized_end = 8704 - _TIMERFIREDEVENTATTRIBUTES._serialized_start = 8706 - _TIMERFIREDEVENTATTRIBUTES._serialized_end = 8777 - _TIMERCANCELEDEVENTATTRIBUTES._serialized_start = 8780 - _TIMERCANCELEDEVENTATTRIBUTES._serialized_end = 8914 - _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 8917 - _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 9116 - _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 9119 - _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 9254 - _MARKERRECORDEDEVENTATTRIBUTES._serialized_start = 9257 - _MARKERRECORDEDEVENTATTRIBUTES._serialized_end = 9618 - _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_start = 9538 - _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_end = 9618 - _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 9621 - _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 9940 - _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 9943 - _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 10072 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 10075 + _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 700 + _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 3197 + _DECLINEDTARGETVERSIONUPGRADE._serialized_start = 3200 + _DECLINEDTARGETVERSIONUPGRADE._serialized_end = 3336 + _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 3339 + _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 3504 + _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 3507 + _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 3726 + _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 3729 + _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 3857 + _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_start = 3860 + _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_end = 4793 + _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 4796 + _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 4968 + _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_start = 4971 + _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_end = 5387 + _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 5390 + _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 6032 + _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 6035 + _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 6184 + _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_start = 6187 + _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_end = 6578 + _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 6581 + _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 7287 + _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_start = 7290 + _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_end = 7576 + _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 7579 + _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 7811 + _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_start = 7814 + _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_end = 8163 + _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 8166 + _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 8364 + _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 8366 + _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 8480 + _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_start = 8483 + _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_end = 8757 + _TIMERSTARTEDEVENTATTRIBUTES._serialized_start = 8760 + _TIMERSTARTEDEVENTATTRIBUTES._serialized_end = 8907 + _TIMERFIREDEVENTATTRIBUTES._serialized_start = 8909 + _TIMERFIREDEVENTATTRIBUTES._serialized_end = 8980 + _TIMERCANCELEDEVENTATTRIBUTES._serialized_start = 8983 + _TIMERCANCELEDEVENTATTRIBUTES._serialized_end = 9117 + _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 9120 + _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 9319 + _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 9322 + _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 9457 + _MARKERRECORDEDEVENTATTRIBUTES._serialized_start = 9460 + _MARKERRECORDEDEVENTATTRIBUTES._serialized_end = 9821 + _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_start = 9741 + _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_end = 9821 + _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 9824 + _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 10143 + _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 10146 + _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 10275 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 10278 _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = ( - 10359 + 10562 ) _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = ( - 10362 + 10565 ) - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 10708 - _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 10711 - _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 10908 - _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 10911 - _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 11290 - _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 11293 - _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 11632 - _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 11635 - _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 11846 - _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_start = 11849 - _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_end = 12007 - _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_start = 12010 - _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_end = 12148 - _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 12151 - _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 13427 - _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 13430 - _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 13772 - _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 13775 - _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 14070 - _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 14073 - _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 14398 - _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 14401 - _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 14780 - _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 14783 - _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 15108 - _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 15111 - _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 15441 - _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 15444 - _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 15720 - _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES._serialized_start = 15723 - _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES._serialized_end = 16453 - _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES_WORKFLOWUPDATEOPTIONSUPDATE._serialized_start = 16303 - _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES_WORKFLOWUPDATEOPTIONSUPDATE._serialized_end = 16453 - _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 16456 - _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 16776 - _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 16779 - _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 16923 - _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_start = 16926 - _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_end = 17146 - _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_start = 17149 - _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_end = 17319 - _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_start = 17322 - _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_end = 17593 - _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_start = 17596 - _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_end = 17760 - _WORKFLOWEXECUTIONPAUSEDEVENTATTRIBUTES._serialized_start = 17762 - _WORKFLOWEXECUTIONPAUSEDEVENTATTRIBUTES._serialized_end = 17856 - _WORKFLOWEXECUTIONUNPAUSEDEVENTATTRIBUTES._serialized_start = 17858 - _WORKFLOWEXECUTIONUNPAUSEDEVENTATTRIBUTES._serialized_end = 17954 - _WORKFLOWEXECUTIONTIMESKIPPINGTRANSITIONEDEVENTATTRIBUTES._serialized_start = 17957 - _WORKFLOWEXECUTIONTIMESKIPPINGTRANSITIONEDEVENTATTRIBUTES._serialized_end = 18154 - _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_start = 18157 - _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_end = 18721 - _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_start = 18671 - _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_end = 18721 - _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_start = 18724 - _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_end = 18861 - _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 18864 - _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 19001 - _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_start = 19004 - _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_end = 19140 - _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 19143 - _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 19281 - _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_start = 19284 - _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_end = 19422 - _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 19424 - _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 19540 - _NEXUSOPERATIONCANCELREQUESTCOMPLETEDEVENTATTRIBUTES._serialized_start = 19543 - _NEXUSOPERATIONCANCELREQUESTCOMPLETEDEVENTATTRIBUTES._serialized_end = 19694 - _NEXUSOPERATIONCANCELREQUESTFAILEDEVENTATTRIBUTES._serialized_start = 19697 - _NEXUSOPERATIONCANCELREQUESTFAILEDEVENTATTRIBUTES._serialized_end = 19896 - _HISTORYEVENT._serialized_start = 19899 - _HISTORYEVENT._serialized_end = 28037 - _HISTORY._serialized_start = 28039 - _HISTORY._serialized_end = 28103 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 10911 + _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 10914 + _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 11111 + _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 11114 + _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 11493 + _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 11496 + _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 11835 + _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 11838 + _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 12049 + _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_start = 12052 + _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_end = 12210 + _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_start = 12213 + _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_end = 12351 + _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 12354 + _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 13630 + _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 13633 + _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 13975 + _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 13978 + _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 14273 + _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 14276 + _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 14601 + _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 14604 + _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 14983 + _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 14986 + _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 15311 + _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 15314 + _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 15644 + _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 15647 + _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 15923 + _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES._serialized_start = 15926 + _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES._serialized_end = 16656 + _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES_WORKFLOWUPDATEOPTIONSUPDATE._serialized_start = 16506 + _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES_WORKFLOWUPDATEOPTIONSUPDATE._serialized_end = 16656 + _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 16659 + _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 16979 + _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 16982 + _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 17126 + _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_start = 17129 + _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_end = 17349 + _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_start = 17352 + _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_end = 17522 + _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_start = 17525 + _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_end = 17796 + _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_start = 17799 + _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_end = 17963 + _WORKFLOWEXECUTIONPAUSEDEVENTATTRIBUTES._serialized_start = 17965 + _WORKFLOWEXECUTIONPAUSEDEVENTATTRIBUTES._serialized_end = 18059 + _WORKFLOWEXECUTIONUNPAUSEDEVENTATTRIBUTES._serialized_start = 18061 + _WORKFLOWEXECUTIONUNPAUSEDEVENTATTRIBUTES._serialized_end = 18157 + _WORKFLOWEXECUTIONTIMESKIPPINGTRANSITIONEDEVENTATTRIBUTES._serialized_start = 18160 + _WORKFLOWEXECUTIONTIMESKIPPINGTRANSITIONEDEVENTATTRIBUTES._serialized_end = 18357 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_start = 18360 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_end = 18924 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_start = 18874 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_end = 18924 + _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_start = 18927 + _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_end = 19064 + _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 19067 + _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 19204 + _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_start = 19207 + _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_end = 19343 + _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 19346 + _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 19484 + _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_start = 19487 + _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_end = 19625 + _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 19627 + _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 19743 + _NEXUSOPERATIONCANCELREQUESTCOMPLETEDEVENTATTRIBUTES._serialized_start = 19746 + _NEXUSOPERATIONCANCELREQUESTCOMPLETEDEVENTATTRIBUTES._serialized_end = 19897 + _NEXUSOPERATIONCANCELREQUESTFAILEDEVENTATTRIBUTES._serialized_start = 19900 + _NEXUSOPERATIONCANCELREQUESTFAILEDEVENTATTRIBUTES._serialized_end = 20099 + _HISTORYEVENT._serialized_start = 20102 + _HISTORYEVENT._serialized_end = 28240 + _HISTORY._serialized_start = 28242 + _HISTORY._serialized_end = 28306 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/history/v1/message_pb2.pyi b/temporalio/api/history/v1/message_pb2.pyi index 783e9d3b6..57826e21a 100644 --- a/temporalio/api/history/v1/message_pb2.pyi +++ b/temporalio/api/history/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -20,6 +20,7 @@ import temporalio.api.enums.v1.failed_cause_pb2 import temporalio.api.enums.v1.update_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 +import temporalio.api.nexus.v1.message_pb2 import temporalio.api.sdk.v1.event_group_marker_pb2 import temporalio.api.sdk.v1.task_complete_metadata_pb2 import temporalio.api.sdk.v1.user_metadata_pb2 @@ -27,13 +28,9 @@ import temporalio.api.taskqueue.v1.message_pb2 import temporalio.api.update.v1.message_pb2 import temporalio.api.workflow.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): """Always the first event in workflow history""" @@ -80,13 +77,59 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): DECLINED_TARGET_VERSION_UPGRADE_FIELD_NUMBER: builtins.int TIME_SKIPPING_CONFIG_FIELD_NUMBER: builtins.int TIME_SKIPPING_STATE_PROPAGATION_FIELD_NUMBER: builtins.int - @property - def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int parent_workflow_namespace: builtins.str """If this workflow is a child, the namespace our parent lives in. SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only. """ parent_workflow_namespace_id: builtins.str + parent_initiated_event_id: builtins.int + """EventID of the child execution initiated event in parent workflow""" + continued_execution_run_id: builtins.str + """Run id of the previous workflow which continued-as-new or retried or cron executed into this + workflow. + """ + initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType + original_execution_run_id: builtins.str + """This is the run id when the WorkflowExecutionStarted event was written. + A workflow reset changes the execution run_id, but preserves this field. + """ + identity: builtins.str + """Identity of the client who requested this execution""" + first_execution_run_id: builtins.str + """This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset. + Used to identify a chain. + """ + attempt: builtins.int + """Starting at 1, the number of times we have tried to execute this workflow""" + cron_schedule: builtins.str + """If this workflow runs on a cron schedule, it will appear here""" + parent_initiated_event_version: builtins.int + """Version of the child execution initiated event in parent workflow + It should be used together with parent_initiated_event_id to identify + a child initiated event for global namespace + """ + workflow_id: builtins.str + """This field is new in 1.21.""" + inherited_build_id: builtins.str + """When present, this execution is assigned to the build ID of its parent or previous execution. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ + parent_pinned_worker_deployment_version: builtins.str + """When present, it means this is a child workflow of a parent that is Pinned to this Worker + Deployment Version. In this case, child workflow will start as Pinned to this Version instead + of starting on the Current Version of its Task Queue. + This is set only if the child workflow is starting on a Task Queue belonging to the same + Worker Deployment Version. + Deprecated. Use `parent_versioning_info`. + """ + eager_execution_accepted: builtins.bool + """A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and + eager execution was accepted by the server. + Only populated by server with version >= 1.29.0. + """ + @property + def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @property def parent_workflow_execution( self, @@ -94,47 +137,33 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): """Contains information about parent workflow execution that initiated the child workflow these attributes belong to. If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated. """ - parent_initiated_event_id: builtins.int - """EventID of the child execution initiated event in parent workflow""" + @property def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """SDK will deserialize this and provide it as arguments to the workflow function""" + @property def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: """Total workflow execution timeout including retries and continue as new.""" + @property def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow run.""" + @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - continued_execution_run_id: builtins.str - """Run id of the previous workflow which continued-as-new or retried or cron executed into this - workflow. - """ - initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType + @property def continued_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... @property def last_completion_result( self, ) -> temporalio.api.common.v1.message_pb2.Payloads: ... - original_execution_run_id: builtins.str - """This is the run id when the WorkflowExecutionStarted event was written. - A workflow reset changes the execution run_id, but preserves this field. - """ - identity: builtins.str - """Identity of the client who requested this execution""" - first_execution_run_id: builtins.str - """This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset. - Used to identify a chain. - """ @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: ... - attempt: builtins.int - """Starting at 1, the number of times we have tried to execute this workflow""" @property def workflow_execution_expiration_time( self, @@ -142,13 +171,13 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): """The absolute time at which the workflow will be timed out. This is passed without change to the next run/retry of a workflow. """ - cron_schedule: builtins.str - """If this workflow runs on a cron schedule, it will appear here""" + @property def first_workflow_task_backoff(self) -> google.protobuf.duration_pb2.Duration: """For a cron workflow, this contains the amount of time between when this iteration of the cron workflow was scheduled and when it should run next per its cron_schedule. """ + @property def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: ... @property @@ -161,13 +190,6 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): ) -> temporalio.api.workflow.v1.message_pb2.ResetPoints: ... @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: ... - parent_initiated_event_version: builtins.int - """Version of the child execution initiated event in parent workflow - It should be used together with parent_initiated_event_id to identify - a child initiated event for global namespace - """ - workflow_id: builtins.str - """This field is new in 1.21.""" @property def source_version_stamp( self, @@ -176,6 +198,7 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): the queue, then we include it here. Deprecated. [cleanup-experimental-wv] """ + @property def completion_callbacks( self, @@ -183,6 +206,7 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Callback ]: """Completion callbacks attached when this workflow was started.""" + @property def root_workflow_execution( self, @@ -214,10 +238,7 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): - The root workflow of W1 is W1 and the root workflow of W2 is W2. - W1 and W2 have root_workflow_execution set to nil. """ - inherited_build_id: builtins.str - """When present, this execution is assigned to the build ID of its parent or previous execution. - Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - """ + @property def versioning_override( self, @@ -226,17 +247,11 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): Children, crons, retries, and continue-as-new will inherit source run's override if pinned and if the new workflow's Task Queue belongs to the override version. """ - parent_pinned_worker_deployment_version: builtins.str - """When present, it means this is a child workflow of a parent that is Pinned to this Worker - Deployment Version. In this case, child workflow will start as Pinned to this Version instead - of starting on the Current Version of its Task Queue. - This is set only if the child workflow is starting on a Task Queue belonging to the same - Worker Deployment Version. - Deprecated. Use `parent_versioning_info`. - """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata""" + @property def inherited_pinned_version( self, @@ -259,6 +274,7 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): Note: This field is mutually exclusive with inherited_auto_upgrade_info. Additionaly, versioning_override, if present, overrides this field during routing decisions. """ + @property def inherited_auto_upgrade_info( self, @@ -285,11 +301,7 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): - SDK implementations do not interact with this field and is only used internally by the server to ensure task routing correctness. """ - eager_execution_accepted: builtins.bool - """A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and - eager execution was accepted by the server. - Only populated by server with version >= 1.29.0. - """ + @property def declined_target_version_upgrade(self) -> global___DeclinedTargetVersionUpgrade: """During a previous run of this workflow, the server may have notified the SDK @@ -303,6 +315,7 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): Used internally by the server during continue-as-new and retry. Should not be read or interpreted by SDKs. """ + @property def time_skipping_config( self, @@ -314,6 +327,7 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): The configuration may be updated after start via UpdateWorkflowExecutionOptions, which will be reflected in the WorkflowExecutionOptionsUpdatedEvent. """ + @property def time_skipping_state_propagation( self, @@ -321,6 +335,13 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): """The time-skipping state propagated from a previous run of this workflow. This can be nil if no time skipping has occurred or there is no previous run. """ + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this workflow.""" + def __init__( self, *, @@ -381,10 +402,12 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): | None = ..., time_skipping_state_propagation: temporalio.api.common.v1.message_pb2.TimeSkippingStatePropagation | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "continued_failure", b"continued_failure", "declined_target_version_upgrade", @@ -409,6 +432,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"prev_auto_reset_points", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "root_workflow_execution", @@ -439,7 +464,7 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "completion_callbacks", @@ -494,6 +519,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"prev_auto_reset_points", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "root_workflow_execution", @@ -529,6 +556,7 @@ global___WorkflowExecutionStartedEventAttributes = ( WorkflowExecutionStartedEventAttributes ) +@typing.final class DeclinedTargetVersionUpgrade(google.protobuf.message.Message): """Wrapper for a target deployment version that the SDK declined to upgrade to. See declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes. @@ -538,16 +566,16 @@ class DeclinedTargetVersionUpgrade(google.protobuf.message.Message): DEPLOYMENT_VERSION_FIELD_NUMBER: builtins.int REVISION_NUMBER_FIELD_NUMBER: builtins.int - @property - def deployment_version( - self, - ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: ... revision_number: builtins.int """Revision number of the task queue routing config at the time the target was declined. If an incoming target's revision is <= this value, it is not newer and is not used for deciding whether or not to suppress the upgrade signal. """ + @property + def deployment_version( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: ... def __init__( self, *, @@ -556,14 +584,11 @@ class DeclinedTargetVersionUpgrade(google.protobuf.message.Message): revision_number: builtins.int = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "deployment_version", b"deployment_version" - ], + self, field_name: typing.Literal["deployment_version", b"deployment_version"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_version", b"deployment_version", "revision_number", @@ -573,19 +598,21 @@ class DeclinedTargetVersionUpgrade(google.protobuf.message.Message): global___DeclinedTargetVersionUpgrade = DeclinedTargetVersionUpgrade +@typing.final class WorkflowExecutionCompletedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor RESULT_FIELD_NUMBER: builtins.int WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int NEW_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int - @property - def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Serialized result of workflow completion (ie: The return value of the workflow function)""" workflow_task_completed_event_id: builtins.int """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" new_execution_run_id: builtins.str """If another run is started by cron, this contains the new run id.""" + @property + def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Serialized result of workflow completion (ie: The return value of the workflow function)""" + def __init__( self, *, @@ -594,11 +621,11 @@ class WorkflowExecutionCompletedEventAttributes(google.protobuf.message.Message) new_execution_run_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "new_execution_run_id", b"new_execution_run_id", "result", @@ -612,6 +639,7 @@ global___WorkflowExecutionCompletedEventAttributes = ( WorkflowExecutionCompletedEventAttributes ) +@typing.final class WorkflowExecutionFailedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -619,14 +647,15 @@ class WorkflowExecutionFailedEventAttributes(google.protobuf.message.Message): RETRY_STATE_FIELD_NUMBER: builtins.int WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int NEW_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: - """Serialized result of workflow failure (ex: An exception thrown, or error returned)""" retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType workflow_task_completed_event_id: builtins.int """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" new_execution_run_id: builtins.str """If another run is started by cron or retry, this contains the new run id.""" + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """Serialized result of workflow failure (ex: An exception thrown, or error returned)""" + def __init__( self, *, @@ -636,11 +665,11 @@ class WorkflowExecutionFailedEventAttributes(google.protobuf.message.Message): new_execution_run_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "new_execution_run_id", @@ -654,6 +683,7 @@ class WorkflowExecutionFailedEventAttributes(google.protobuf.message.Message): global___WorkflowExecutionFailedEventAttributes = WorkflowExecutionFailedEventAttributes +@typing.final class WorkflowExecutionTimedOutEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -670,7 +700,7 @@ class WorkflowExecutionTimedOutEventAttributes(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "new_execution_run_id", b"new_execution_run_id", "retry_state", @@ -682,6 +712,7 @@ global___WorkflowExecutionTimedOutEventAttributes = ( WorkflowExecutionTimedOutEventAttributes ) +@typing.final class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -703,6 +734,21 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes INITIAL_VERSIONING_BEHAVIOR_FIELD_NUMBER: builtins.int new_execution_run_id: builtins.str """The run ID of the new workflow started by this continue-as-new""" + workflow_task_completed_event_id: builtins.int + """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" + initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType + inherit_build_id: builtins.bool + """If this is set, the new execution inherits the Build ID of the current execution. Otherwise, + the assignment rules will be used to independently assign a Build ID to the new execution. + Deprecated. Only considered for versioning v0.2. + """ + initial_versioning_behavior: ( + temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType + ) + """Experimental. Optionally decide the versioning behavior that the first task of the new run should use. + For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version + of the previous run. + """ @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @property @@ -712,29 +758,31 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes @property def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow run.""" + @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - workflow_task_completed_event_id: builtins.int - """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" + @property def backoff_start_interval(self) -> google.protobuf.duration_pb2.Duration: """How long the server will wait before scheduling the first workflow task for the new run. Used for cron, retry, and other continue-as-new cases that server may enforce some minimal delay between new runs for system protection purpose. """ - initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType + @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Deprecated. If a workflow's retry policy would cause a new run to start when the current one has failed, this field would be populated with that failure. Now (when supported by server and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set. """ + @property def last_completion_result(self) -> temporalio.api.common.v1.message_pb2.Payloads: """The result from the most recent completed run of this workflow. The SDK surfaces this to the new run via APIs such as `GetLastCompletionResult`. """ + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: ... @property @@ -743,18 +791,6 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... - inherit_build_id: builtins.bool - """If this is set, the new execution inherits the Build ID of the current execution. Otherwise, - the assignment rules will be used to independently assign a Build ID to the new execution. - Deprecated. Only considered for versioning v0.2. - """ - initial_versioning_behavior: ( - temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType - ) - """Experimental. Optionally decide the versioning behavior that the first task of the new run should use. - For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version - of the previous run. - """ def __init__( self, *, @@ -779,7 +815,7 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backoff_start_interval", b"backoff_start_interval", "failure", @@ -806,7 +842,7 @@ class WorkflowExecutionContinuedAsNewEventAttributes(google.protobuf.message.Mes ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backoff_start_interval", b"backoff_start_interval", "failure", @@ -846,15 +882,19 @@ global___WorkflowExecutionContinuedAsNewEventAttributes = ( WorkflowExecutionContinuedAsNewEventAttributes ) +@typing.final class WorkflowTaskScheduledEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor TASK_QUEUE_FIELD_NUMBER: builtins.int START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int ATTEMPT_FIELD_NUMBER: builtins.int + attempt: builtins.int + """Starting at 1, how many attempts there have been to complete this task""" @property def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: """The task queue this workflow task was enqueued in, which could be a normal or sticky queue""" + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """How long the worker has to process this task once receiving it before it times out @@ -862,8 +902,7 @@ class WorkflowTaskScheduledEventAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ - attempt: builtins.int - """Starting at 1, how many attempts there have been to complete this task""" + def __init__( self, *, @@ -873,7 +912,7 @@ class WorkflowTaskScheduledEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "start_to_close_timeout", b"start_to_close_timeout", "task_queue", @@ -882,7 +921,7 @@ class WorkflowTaskScheduledEventAttributes(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "start_to_close_timeout", @@ -894,6 +933,7 @@ class WorkflowTaskScheduledEventAttributes(google.protobuf.message.Message): global___WorkflowTaskScheduledEventAttributes = WorkflowTaskScheduledEventAttributes +@typing.final class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -920,15 +960,6 @@ class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): """ suggest_continue_as_new: builtins.bool """True if this workflow should continue-as-new soon. See `suggest_continue_as_new_reasons` for why.""" - @property - def suggest_continue_as_new_reasons( - self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ - temporalio.api.enums.v1.workflow_pb2.SuggestContinueAsNewReason.ValueType - ]: - """The reason(s) that suggest_continue_as_new is true, if it is. - Unset if suggest_continue_as_new is false. - """ target_worker_deployment_version_changed: builtins.bool """True if Workflow's Target Worker Deployment Version is different from its Pinned Version and the workflow is Pinned. @@ -939,16 +970,27 @@ class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): continue-as-new regardless of the suggestion. Note that history event count is just the event id of this event, so we don't include it explicitly here. """ - @property - def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: - """Version info of the worker to whom this task was dispatched. - Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - """ build_id_redirect_counter: builtins.int """Used by server internally to properly reapply build ID redirects to an execution when rebuilding it from events. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ + @property + def suggest_continue_as_new_reasons( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ + temporalio.api.enums.v1.workflow_pb2.SuggestContinueAsNewReason.ValueType + ]: + """The reason(s) that suggest_continue_as_new is true, if it is. + Unset if suggest_continue_as_new is false. + """ + + @property + def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: + """Version info of the worker to whom this task was dispatched. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ + def __init__( self, *, @@ -967,11 +1009,11 @@ class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): build_id_redirect_counter: builtins.int = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["worker_version", b"worker_version"] + self, field_name: typing.Literal["worker_version", b"worker_version"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id_redirect_counter", b"build_id_redirect_counter", "history_size_bytes", @@ -995,6 +1037,7 @@ class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): global___WorkflowTaskStartedEventAttributes = WorkflowTaskStartedEventAttributes +@typing.final class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1020,6 +1063,22 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): """Binary ID of the worker who completed this task Deprecated. Replaced with `deployment_version`. """ + versioning_behavior: ( + temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType + ) + """Versioning behavior sent by the worker that completed this task for this particular workflow + execution. UNSPECIFIED means the task was completed by an unversioned worker. This value + updates workflow execution's `versioning_info.behavior`. + """ + worker_deployment_version: builtins.str + """The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` + is set. This value updates workflow execution's `versioning_info.version`. + Deprecated. Replaced with `deployment_version`. + """ + worker_deployment_name: builtins.str + """The name of Worker Deployment that completed this task. Must be set if `versioning_behavior` + is set. This value updates workflow execution's `worker_deployment_name`. + """ @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker who processed this workflow task. If present, the `build_id` field @@ -1027,6 +1086,7 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): populated to preserve compatibility). Deprecated. Use `deployment_version` and `versioning_behavior` instead. """ + @property def sdk_metadata( self, @@ -1034,11 +1094,13 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): """Data the SDK wishes to record for itself, but server need not interpret, and does not directly impact workflow state. """ + @property def metering_metadata( self, ) -> temporalio.api.common.v1.message_pb2.MeteringMetadata: """Local usage data sent during workflow task completion and recorded here for posterity""" + @property def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: """The deployment that completed this task. May or may not be set for unversioned workers, @@ -1046,22 +1108,7 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): `versioning_info.deployment`. Deprecated. Replaced with `deployment_version`. """ - versioning_behavior: ( - temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType - ) - """Versioning behavior sent by the worker that completed this task for this particular workflow - execution. UNSPECIFIED means the task was completed by an unversioned worker. This value - updates workflow execution's `versioning_info.behavior`. - """ - worker_deployment_version: builtins.str - """The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` - is set. This value updates workflow execution's `versioning_info.version`. - Deprecated. Replaced with `deployment_version`. - """ - worker_deployment_name: builtins.str - """The name of Worker Deployment that completed this task. Must be set if `versioning_behavior` - is set. This value updates workflow execution's `worker_deployment_name`. - """ + @property def deployment_version( self, @@ -1069,6 +1116,7 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): """The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` is set. This value updates workflow execution's `versioning_info.deployment_version`. """ + def __init__( self, *, @@ -1091,7 +1139,7 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "deployment_version", @@ -1106,7 +1154,7 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "binary_checksum", b"binary_checksum", "deployment", @@ -1136,6 +1184,7 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): global___WorkflowTaskCompletedEventAttributes = WorkflowTaskCompletedEventAttributes +@typing.final class WorkflowTaskTimedOutEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1156,7 +1205,7 @@ class WorkflowTaskTimedOutEventAttributes(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "scheduled_event_id", b"scheduled_event_id", "started_event_id", @@ -1168,6 +1217,7 @@ class WorkflowTaskTimedOutEventAttributes(google.protobuf.message.Message): global___WorkflowTaskTimedOutEventAttributes = WorkflowTaskTimedOutEventAttributes +@typing.final class WorkflowTaskFailedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1186,9 +1236,6 @@ class WorkflowTaskFailedEventAttributes(google.protobuf.message.Message): started_event_id: builtins.int """The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to""" cause: temporalio.api.enums.v1.failed_cause_pb2.WorkflowTaskFailedCause.ValueType - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: - """The failure details""" identity: builtins.str """If a worker explicitly failed this task, this field contains the worker's identity. When the server generates the failure internally this field is set as 'history-service'. @@ -1205,6 +1252,10 @@ class WorkflowTaskFailedEventAttributes(google.protobuf.message.Message): """Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] If a worker explicitly failed this task, its binary id """ + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """The failure details""" + @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker who processed this workflow task. If present, the `build_id` field @@ -1212,6 +1263,7 @@ class WorkflowTaskFailedEventAttributes(google.protobuf.message.Message): populated to preserve compatibility). Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ + def __init__( self, *, @@ -1229,13 +1281,13 @@ class WorkflowTaskFailedEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "worker_version", b"worker_version" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "base_run_id", b"base_run_id", "binary_checksum", @@ -1261,6 +1313,7 @@ class WorkflowTaskFailedEventAttributes(google.protobuf.message.Message): global___WorkflowTaskFailedEventAttributes = WorkflowTaskFailedEventAttributes +@typing.final class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1279,6 +1332,13 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): PRIORITY_FIELD_NUMBER: builtins.int activity_id: builtins.str """The worker/user assigned identifier for the activity""" + workflow_task_completed_event_id: builtins.int + """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" + use_workflow_build_id: builtins.bool + """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, + Assignment rules of the activity's Task Queue will be used to determine the Build ID. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... @property @@ -1295,6 +1355,7 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Limits time an activity task can stay in a task queue before a worker picks it up. This @@ -1305,6 +1366,7 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum time an activity is allowed to execute after being picked up by a worker. This @@ -1314,27 +1376,24 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum permitted time between successful worker heartbeats.""" - workflow_task_completed_event_id: builtins.int - """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """Activities are assigned a default retry policy controlled by the service's dynamic configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set retry_policy.maximum_attempts to 1. """ - use_workflow_build_id: builtins.bool - """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, - Assignment rules of the activity's Task Queue will be used to determine the Build ID. - Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata. If this message is not present, or any fields are not present, they inherit the values from the workflow. """ + def __init__( self, *, @@ -1354,7 +1413,7 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_type", b"activity_type", "header", @@ -1379,7 +1438,7 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_type", @@ -1411,6 +1470,7 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): global___ActivityTaskScheduledEventAttributes = ActivityTaskScheduledEventAttributes +@typing.final class ActivityTaskStartedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1435,21 +1495,23 @@ class ActivityTaskStartedEventAttributes(google.protobuf.message.Message): """ attempt: builtins.int """Starting at 1, the number of times this task has been attempted""" + build_id_redirect_counter: builtins.int + """Used by server internally to properly reapply build ID redirects to an execution + when rebuilding it from events. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ @property def last_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Will be set to the most recent failure details, if this task has previously failed and then been retried. """ + @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker to whom this task was dispatched. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ - build_id_redirect_counter: builtins.int - """Used by server internally to properly reapply build ID redirects to an execution - when rebuilding it from events. - Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - """ + def __init__( self, *, @@ -1464,13 +1526,13 @@ class ActivityTaskStartedEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "last_failure", b"last_failure", "worker_version", b"worker_version" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "build_id_redirect_counter", @@ -1490,6 +1552,7 @@ class ActivityTaskStartedEventAttributes(google.protobuf.message.Message): global___ActivityTaskStartedEventAttributes = ActivityTaskStartedEventAttributes +@typing.final class ActivityTaskCompletedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1498,20 +1561,22 @@ class ActivityTaskCompletedEventAttributes(google.protobuf.message.Message): STARTED_EVENT_ID_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int WORKER_VERSION_FIELD_NUMBER: builtins.int - @property - def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Serialized results of the activity. IE: The return value of the activity function""" scheduled_event_id: builtins.int """The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to""" started_event_id: builtins.int """The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to""" identity: builtins.str """id of the worker that completed this task""" + @property + def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Serialized results of the activity. IE: The return value of the activity function""" + @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker who processed this workflow task. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ + def __init__( self, *, @@ -1524,13 +1589,13 @@ class ActivityTaskCompletedEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "result", b"result", "worker_version", b"worker_version" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "result", @@ -1546,6 +1611,7 @@ class ActivityTaskCompletedEventAttributes(google.protobuf.message.Message): global___ActivityTaskCompletedEventAttributes = ActivityTaskCompletedEventAttributes +@typing.final class ActivityTaskFailedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1555,9 +1621,7 @@ class ActivityTaskFailedEventAttributes(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int RETRY_STATE_FIELD_NUMBER: builtins.int WORKER_VERSION_FIELD_NUMBER: builtins.int - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: - """Failure details""" + CAUSE_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to""" started_event_id: builtins.int @@ -1565,11 +1629,18 @@ class ActivityTaskFailedEventAttributes(google.protobuf.message.Message): identity: builtins.str """id of the worker that failed this task""" retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType + cause: temporalio.api.enums.v1.failed_cause_pb2.ActivityTaskFailedCause.ValueType + """Why did the task fail? When unset, the failure is treated as an unspecified activity failure.""" + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """Failure details""" + @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker who processed this workflow task. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ + def __init__( self, *, @@ -1580,16 +1651,19 @@ class ActivityTaskFailedEventAttributes(google.protobuf.message.Message): retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ..., worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp | None = ..., + cause: temporalio.api.enums.v1.failed_cause_pb2.ActivityTaskFailedCause.ValueType = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "worker_version", b"worker_version" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ + "cause", + b"cause", "failure", b"failure", "identity", @@ -1607,6 +1681,7 @@ class ActivityTaskFailedEventAttributes(google.protobuf.message.Message): global___ActivityTaskFailedEventAttributes = ActivityTaskFailedEventAttributes +@typing.final class ActivityTaskTimedOutEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1614,16 +1689,17 @@ class ActivityTaskTimedOutEventAttributes(google.protobuf.message.Message): SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int STARTED_EVENT_ID_FIELD_NUMBER: builtins.int RETRY_STATE_FIELD_NUMBER: builtins.int - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: - """If this activity had failed, was retried, and then timed out, that failure is stored as the - `cause` in here. - """ scheduled_event_id: builtins.int """The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to""" started_event_id: builtins.int """The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to""" retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """If this activity had failed, was retried, and then timed out, that failure is stored as the + `cause` in here. + """ + def __init__( self, *, @@ -1633,11 +1709,11 @@ class ActivityTaskTimedOutEventAttributes(google.protobuf.message.Message): retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "retry_state", @@ -1651,6 +1727,7 @@ class ActivityTaskTimedOutEventAttributes(google.protobuf.message.Message): global___ActivityTaskTimedOutEventAttributes = ActivityTaskTimedOutEventAttributes +@typing.final class ActivityTaskCancelRequestedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1668,7 +1745,7 @@ class ActivityTaskCancelRequestedEventAttributes(google.protobuf.message.Message ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "scheduled_event_id", b"scheduled_event_id", "workflow_task_completed_event_id", @@ -1680,6 +1757,7 @@ global___ActivityTaskCancelRequestedEventAttributes = ( ActivityTaskCancelRequestedEventAttributes ) +@typing.final class ActivityTaskCanceledEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1689,9 +1767,6 @@ class ActivityTaskCanceledEventAttributes(google.protobuf.message.Message): STARTED_EVENT_ID_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int WORKER_VERSION_FIELD_NUMBER: builtins.int - @property - def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Additional information that the activity reported upon confirming cancellation""" latest_cancel_requested_event_id: builtins.int """id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same activity @@ -1702,11 +1777,16 @@ class ActivityTaskCanceledEventAttributes(google.protobuf.message.Message): """The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to""" identity: builtins.str """id of the worker who canceled this activity""" + @property + def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Additional information that the activity reported upon confirming cancellation""" + @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker who processed this workflow task. Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ + def __init__( self, *, @@ -1720,13 +1800,13 @@ class ActivityTaskCanceledEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "worker_version", b"worker_version" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "identity", @@ -1744,6 +1824,7 @@ class ActivityTaskCanceledEventAttributes(google.protobuf.message.Message): global___ActivityTaskCanceledEventAttributes = ActivityTaskCanceledEventAttributes +@typing.final class TimerStartedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1752,6 +1833,8 @@ class TimerStartedEventAttributes(google.protobuf.message.Message): WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int timer_id: builtins.str """The worker/user assigned id for this timer""" + workflow_task_completed_event_id: builtins.int + """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" @property def start_to_fire_timeout(self) -> google.protobuf.duration_pb2.Duration: """How long until this timer fires @@ -1759,8 +1842,7 @@ class TimerStartedEventAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ - workflow_task_completed_event_id: builtins.int - """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" + def __init__( self, *, @@ -1770,13 +1852,11 @@ class TimerStartedEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "start_to_fire_timeout", b"start_to_fire_timeout" - ], + field_name: typing.Literal["start_to_fire_timeout", b"start_to_fire_timeout"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "start_to_fire_timeout", b"start_to_fire_timeout", "timer_id", @@ -1788,6 +1868,7 @@ class TimerStartedEventAttributes(google.protobuf.message.Message): global___TimerStartedEventAttributes = TimerStartedEventAttributes +@typing.final class TimerFiredEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1805,13 +1886,14 @@ class TimerFiredEventAttributes(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "started_event_id", b"started_event_id", "timer_id", b"timer_id" ], ) -> None: ... global___TimerFiredEventAttributes = TimerFiredEventAttributes +@typing.final class TimerCanceledEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1837,7 +1919,7 @@ class TimerCanceledEventAttributes(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "started_event_id", @@ -1851,6 +1933,7 @@ class TimerCanceledEventAttributes(google.protobuf.message.Message): global___TimerCanceledEventAttributes = TimerCanceledEventAttributes +@typing.final class WorkflowExecutionCancelRequestedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1864,12 +1947,12 @@ class WorkflowExecutionCancelRequestedEventAttributes(google.protobuf.message.Me """The ID of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event in the external workflow history when the cancellation was requested by another workflow. """ + identity: builtins.str + """id of the worker or client who requested this cancel""" @property def external_workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... - identity: builtins.str - """id of the worker or client who requested this cancel""" def __init__( self, *, @@ -1881,13 +1964,13 @@ class WorkflowExecutionCancelRequestedEventAttributes(google.protobuf.message.Me ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "external_workflow_execution", b"external_workflow_execution" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cause", b"cause", "external_initiated_event_id", @@ -1903,6 +1986,7 @@ global___WorkflowExecutionCancelRequestedEventAttributes = ( WorkflowExecutionCancelRequestedEventAttributes ) +@typing.final class WorkflowExecutionCanceledEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1919,11 +2003,11 @@ class WorkflowExecutionCanceledEventAttributes(google.protobuf.message.Message): details: temporalio.api.common.v1.message_pb2.Payloads | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "workflow_task_completed_event_id", @@ -1935,9 +2019,11 @@ global___WorkflowExecutionCanceledEventAttributes = ( WorkflowExecutionCanceledEventAttributes ) +@typing.final class MarkerRecordedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class DetailsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1953,11 +2039,10 @@ class MarkerRecordedEventAttributes(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payloads | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... MARKER_NAME_FIELD_NUMBER: builtins.int @@ -1967,6 +2052,8 @@ class MarkerRecordedEventAttributes(google.protobuf.message.Message): FAILURE_FIELD_NUMBER: builtins.int marker_name: builtins.str """Workers use this to identify the "types" of various markers. Ex: Local activity, side effect.""" + workflow_task_completed_event_id: builtins.int + """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" @property def details( self, @@ -1974,13 +2061,13 @@ class MarkerRecordedEventAttributes(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payloads ]: """Serialized information recorded in the marker""" - workflow_task_completed_event_id: builtins.int - """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: ... @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Some uses of markers, like a local activity, could "fail". If they did that is recorded here.""" + def __init__( self, *, @@ -1994,14 +2081,11 @@ class MarkerRecordedEventAttributes(google.protobuf.message.Message): failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "failure", b"failure", "header", b"header" - ], + self, field_name: typing.Literal["failure", b"failure", "header", b"header"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "failure", @@ -2017,6 +2101,7 @@ class MarkerRecordedEventAttributes(google.protobuf.message.Message): global___MarkerRecordedEventAttributes = MarkerRecordedEventAttributes +@typing.final class WorkflowExecutionSignaledEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2029,27 +2114,30 @@ class WorkflowExecutionSignaledEventAttributes(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int signal_name: builtins.str """The name/type of the signal to fire""" + identity: builtins.str + """id of the worker/client who sent this signal""" + skip_generate_workflow_task: builtins.bool + """Deprecated. This field is never respected and should always be set to false.""" + request_id: builtins.str + """The request ID of the Signal request, used by the server to attach this to + the correct Event ID when generating link. + """ @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Will be deserialized and provided as argument(s) to the signal handler""" - identity: builtins.str - """id of the worker/client who sent this signal""" + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: """Headers that were passed by the sender of the signal and copied by temporal server into the workflow task. """ - skip_generate_workflow_task: builtins.bool - """Deprecated. This field is never respected and should always be set to false.""" + @property def external_workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: """When signal origin is a workflow execution, this field is set.""" - request_id: builtins.str - """The request ID of the Signal request, used by the server to attach this to - the correct Event ID when generating link. - """ + def __init__( self, *, @@ -2064,7 +2152,7 @@ class WorkflowExecutionSignaledEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "external_workflow_execution", b"external_workflow_execution", "header", @@ -2075,7 +2163,7 @@ class WorkflowExecutionSignaledEventAttributes(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "external_workflow_execution", b"external_workflow_execution", "header", @@ -2097,6 +2185,7 @@ global___WorkflowExecutionSignaledEventAttributes = ( WorkflowExecutionSignaledEventAttributes ) +@typing.final class WorkflowExecutionTerminatedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2105,10 +2194,10 @@ class WorkflowExecutionTerminatedEventAttributes(google.protobuf.message.Message IDENTITY_FIELD_NUMBER: builtins.int reason: builtins.str """User/client provided reason for termination""" - @property - def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... identity: builtins.str """id of the client who requested termination""" + @property + def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... def __init__( self, *, @@ -2117,11 +2206,11 @@ class WorkflowExecutionTerminatedEventAttributes(google.protobuf.message.Message identity: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "identity", b"identity", "reason", b"reason" ], ) -> None: ... @@ -2130,6 +2219,7 @@ global___WorkflowExecutionTerminatedEventAttributes = ( WorkflowExecutionTerminatedEventAttributes ) +@typing.final class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes( google.protobuf.message.Message ): @@ -2149,10 +2239,6 @@ class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes( SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str - @property - def workflow_execution( - self, - ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... control: builtins.str """Deprecated.""" child_workflow_only: builtins.bool @@ -2161,6 +2247,10 @@ class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes( """ reason: builtins.str """Reason for requesting the cancellation""" + @property + def workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... def __init__( self, *, @@ -2174,14 +2264,11 @@ class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes( reason: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "child_workflow_only", b"child_workflow_only", "control", @@ -2203,6 +2290,7 @@ global___RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = ( RequestCancelExternalWorkflowExecutionInitiatedEventAttributes ) +@typing.final class RequestCancelExternalWorkflowExecutionFailedEventAttributes( google.protobuf.message.Message ): @@ -2223,16 +2311,16 @@ class RequestCancelExternalWorkflowExecutionFailedEventAttributes( SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str - @property - def workflow_execution( - self, - ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... initiated_event_id: builtins.int """id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure corresponds to """ control: builtins.str """Deprecated.""" + @property + def workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... def __init__( self, *, @@ -2246,14 +2334,11 @@ class RequestCancelExternalWorkflowExecutionFailedEventAttributes( control: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cause", b"cause", "control", @@ -2275,6 +2360,7 @@ global___RequestCancelExternalWorkflowExecutionFailedEventAttributes = ( RequestCancelExternalWorkflowExecutionFailedEventAttributes ) +@typing.final class ExternalWorkflowExecutionCancelRequestedEventAttributes( google.protobuf.message.Message ): @@ -2307,14 +2393,11 @@ class ExternalWorkflowExecutionCancelRequestedEventAttributes( | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "initiated_event_id", b"initiated_event_id", "namespace", @@ -2330,6 +2413,7 @@ global___ExternalWorkflowExecutionCancelRequestedEventAttributes = ( ExternalWorkflowExecutionCancelRequestedEventAttributes ) +@typing.final class SignalExternalWorkflowExecutionInitiatedEventAttributes( google.protobuf.message.Message ): @@ -2351,21 +2435,22 @@ class SignalExternalWorkflowExecutionInitiatedEventAttributes( SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str + signal_name: builtins.str + """name/type of the signal to fire in the external workflow""" + control: builtins.str + """Deprecated.""" + child_workflow_only: builtins.bool + """Workers are expected to set this to true if the workflow they are requesting to cancel is + a child of the workflow which issued the request + """ @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... - signal_name: builtins.str - """name/type of the signal to fire in the external workflow""" @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized arguments to provide to the signal handler""" - control: builtins.str - """Deprecated.""" - child_workflow_only: builtins.bool - """Workers are expected to set this to true if the workflow they are requesting to cancel is - a child of the workflow which issued the request - """ + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: ... def __init__( @@ -2384,7 +2469,7 @@ class SignalExternalWorkflowExecutionInitiatedEventAttributes( ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "input", @@ -2395,7 +2480,7 @@ class SignalExternalWorkflowExecutionInitiatedEventAttributes( ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "child_workflow_only", b"child_workflow_only", "control", @@ -2421,6 +2506,7 @@ global___SignalExternalWorkflowExecutionInitiatedEventAttributes = ( SignalExternalWorkflowExecutionInitiatedEventAttributes ) +@typing.final class SignalExternalWorkflowExecutionFailedEventAttributes( google.protobuf.message.Message ): @@ -2441,13 +2527,13 @@ class SignalExternalWorkflowExecutionFailedEventAttributes( SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str + initiated_event_id: builtins.int + control: builtins.str + """Deprecated.""" @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... - initiated_event_id: builtins.int - control: builtins.str - """Deprecated.""" def __init__( self, *, @@ -2461,14 +2547,11 @@ class SignalExternalWorkflowExecutionFailedEventAttributes( control: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cause", b"cause", "control", @@ -2490,6 +2573,7 @@ global___SignalExternalWorkflowExecutionFailedEventAttributes = ( SignalExternalWorkflowExecutionFailedEventAttributes ) +@typing.final class ExternalWorkflowExecutionSignaledEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2505,12 +2589,12 @@ class ExternalWorkflowExecutionSignaledEventAttributes(google.protobuf.message.M SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str + control: builtins.str + """Deprecated.""" @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... - control: builtins.str - """Deprecated.""" def __init__( self, *, @@ -2522,14 +2606,11 @@ class ExternalWorkflowExecutionSignaledEventAttributes(google.protobuf.message.M control: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "control", b"control", "initiated_event_id", @@ -2547,6 +2628,7 @@ global___ExternalWorkflowExecutionSignaledEventAttributes = ( ExternalWorkflowExecutionSignaledEventAttributes ) +@typing.final class UpsertWorkflowSearchAttributesEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2566,14 +2648,11 @@ class UpsertWorkflowSearchAttributesEventAttributes(google.protobuf.message.Mess | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "search_attributes", b"search_attributes" - ], + self, field_name: typing.Literal["search_attributes", b"search_attributes"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "search_attributes", b"search_attributes", "workflow_task_completed_event_id", @@ -2585,6 +2664,7 @@ global___UpsertWorkflowSearchAttributesEventAttributes = ( UpsertWorkflowSearchAttributesEventAttributes ) +@typing.final class WorkflowPropertiesModifiedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2598,6 +2678,7 @@ class WorkflowPropertiesModifiedEventAttributes(google.protobuf.message.Message) the existing memo. If the user wants to delete values, a default/empty Payload should be used as the value for the key being deleted. """ + def __init__( self, *, @@ -2605,11 +2686,11 @@ class WorkflowPropertiesModifiedEventAttributes(google.protobuf.message.Message) upserted_memo: temporalio.api.common.v1.message_pb2.Memo | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["upserted_memo", b"upserted_memo"] + self, field_name: typing.Literal["upserted_memo", b"upserted_memo"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "upserted_memo", b"upserted_memo", "workflow_task_completed_event_id", @@ -2621,6 +2702,7 @@ global___WorkflowPropertiesModifiedEventAttributes = ( WorkflowPropertiesModifiedEventAttributes ) +@typing.final class StartChildWorkflowExecutionInitiatedEventAttributes( google.protobuf.message.Message ): @@ -2655,6 +2737,25 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( """ namespace_id: builtins.str workflow_id: builtins.str + parent_close_policy: ( + temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType + ) + """Default: PARENT_CLOSE_POLICY_TERMINATE.""" + control: builtins.str + """Deprecated.""" + workflow_task_completed_event_id: builtins.int + """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) + """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" + cron_schedule: builtins.str + """If this child runs on a cron schedule, it will appear here""" + inherit_build_id: builtins.bool + """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment + rules of the child's Task Queue will be used to independently assign a Build ID to it. + Deprecated. Only considered for versioning v0.2. + """ @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @property @@ -2664,28 +2765,17 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( @property def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: """Total workflow execution timeout including retries and continue as new.""" + @property def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow run.""" + @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - parent_close_policy: ( - temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType - ) - """Default: PARENT_CLOSE_POLICY_TERMINATE.""" - control: builtins.str - """Deprecated.""" - workflow_task_completed_event_id: builtins.int - """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" - workflow_id_reuse_policy: ( - temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType - ) - """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: ... - cron_schedule: builtins.str - """If this child runs on a cron schedule, it will appear here""" @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: ... @property @@ -2694,19 +2784,16 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... - inherit_build_id: builtins.bool - """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment - rules of the child's Task Queue will be used to independently assign a Build ID to it. - Deprecated. Only considered for versioning v0.2. - """ @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata""" + @property def time_skipping_config( self, ) -> temporalio.api.common.v1.message_pb2.TimeSkippingConfig: """The propagated time-skipping configuration for the child workflow.""" + @property def time_skipping_state_propagation( self, @@ -2714,6 +2801,7 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( """The time-skipping state propagated from the parent workflow. This can be nil if no time skipping has occurred or there is no previous run. """ + @property def versioning_override( self, @@ -2721,6 +2809,7 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( """Versioning override requested for the child workflow. If present, this explicit override takes precedence over versioning behavior inherited from the parent workflow. """ + def __init__( self, *, @@ -2754,7 +2843,7 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "input", @@ -2787,7 +2876,7 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "control", b"control", "cron_schedule", @@ -2841,6 +2930,7 @@ global___StartChildWorkflowExecutionInitiatedEventAttributes = ( StartChildWorkflowExecutionInitiatedEventAttributes ) +@typing.final class StartChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2858,8 +2948,6 @@ class StartChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.M """ namespace_id: builtins.str workflow_id: builtins.str - @property - def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... cause: temporalio.api.enums.v1.failed_cause_pb2.StartChildWorkflowExecutionFailedCause.ValueType control: builtins.str """Deprecated.""" @@ -2867,6 +2955,8 @@ class StartChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.M """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" workflow_task_completed_event_id: builtins.int """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" + @property + def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... def __init__( self, *, @@ -2880,11 +2970,11 @@ class StartChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.M workflow_task_completed_event_id: builtins.int = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["workflow_type", b"workflow_type"] + self, field_name: typing.Literal["workflow_type", b"workflow_type"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cause", b"cause", "control", @@ -2908,6 +2998,7 @@ global___StartChildWorkflowExecutionFailedEventAttributes = ( StartChildWorkflowExecutionFailedEventAttributes ) +@typing.final class ChildWorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2945,7 +3036,7 @@ class ChildWorkflowExecutionStartedEventAttributes(google.protobuf.message.Messa ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "workflow_execution", @@ -2956,7 +3047,7 @@ class ChildWorkflowExecutionStartedEventAttributes(google.protobuf.message.Messa ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "initiated_event_id", @@ -2976,6 +3067,7 @@ global___ChildWorkflowExecutionStartedEventAttributes = ( ChildWorkflowExecutionStartedEventAttributes ) +@typing.final class ChildWorkflowExecutionCompletedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2986,23 +3078,23 @@ class ChildWorkflowExecutionCompletedEventAttributes(google.protobuf.message.Mes WORKFLOW_TYPE_FIELD_NUMBER: builtins.int INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int STARTED_EVENT_ID_FIELD_NUMBER: builtins.int - @property - def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... namespace: builtins.str """Namespace of the child workflow. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str + initiated_event_id: builtins.int + """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" + started_event_id: builtins.int + """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" + @property + def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... - initiated_event_id: builtins.int - """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" - started_event_id: builtins.int - """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" def __init__( self, *, @@ -3017,7 +3109,7 @@ class ChildWorkflowExecutionCompletedEventAttributes(google.protobuf.message.Mes ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "result", b"result", "workflow_execution", @@ -3028,7 +3120,7 @@ class ChildWorkflowExecutionCompletedEventAttributes(google.protobuf.message.Mes ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "initiated_event_id", b"initiated_event_id", "namespace", @@ -3050,6 +3142,7 @@ global___ChildWorkflowExecutionCompletedEventAttributes = ( ChildWorkflowExecutionCompletedEventAttributes ) +@typing.final class ChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3061,24 +3154,24 @@ class ChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.Messag INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int STARTED_EVENT_ID_FIELD_NUMBER: builtins.int RETRY_STATE_FIELD_NUMBER: builtins.int - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... namespace: builtins.str """Namespace of the child workflow. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str + initiated_event_id: builtins.int + """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" + started_event_id: builtins.int + """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" + retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... - initiated_event_id: builtins.int - """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" - started_event_id: builtins.int - """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" - retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType def __init__( self, *, @@ -3094,7 +3187,7 @@ class ChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.Messag ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "workflow_execution", @@ -3105,7 +3198,7 @@ class ChildWorkflowExecutionFailedEventAttributes(google.protobuf.message.Messag ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "initiated_event_id", @@ -3129,6 +3222,7 @@ global___ChildWorkflowExecutionFailedEventAttributes = ( ChildWorkflowExecutionFailedEventAttributes ) +@typing.final class ChildWorkflowExecutionCanceledEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3139,23 +3233,23 @@ class ChildWorkflowExecutionCanceledEventAttributes(google.protobuf.message.Mess WORKFLOW_TYPE_FIELD_NUMBER: builtins.int INITIATED_EVENT_ID_FIELD_NUMBER: builtins.int STARTED_EVENT_ID_FIELD_NUMBER: builtins.int - @property - def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... namespace: builtins.str """Namespace of the child workflow. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str + initiated_event_id: builtins.int + """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" + started_event_id: builtins.int + """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" + @property + def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... - initiated_event_id: builtins.int - """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" - started_event_id: builtins.int - """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" def __init__( self, *, @@ -3170,7 +3264,7 @@ class ChildWorkflowExecutionCanceledEventAttributes(google.protobuf.message.Mess ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "workflow_execution", @@ -3181,7 +3275,7 @@ class ChildWorkflowExecutionCanceledEventAttributes(google.protobuf.message.Mess ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "initiated_event_id", @@ -3203,6 +3297,7 @@ global___ChildWorkflowExecutionCanceledEventAttributes = ( ChildWorkflowExecutionCanceledEventAttributes ) +@typing.final class ChildWorkflowExecutionTimedOutEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3218,17 +3313,17 @@ class ChildWorkflowExecutionTimedOutEventAttributes(google.protobuf.message.Mess SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str + initiated_event_id: builtins.int + """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" + started_event_id: builtins.int + """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" + retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... - initiated_event_id: builtins.int - """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" - started_event_id: builtins.int - """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" - retry_state: temporalio.api.enums.v1.workflow_pb2.RetryState.ValueType def __init__( self, *, @@ -3243,7 +3338,7 @@ class ChildWorkflowExecutionTimedOutEventAttributes(google.protobuf.message.Mess ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "workflow_execution", b"workflow_execution", "workflow_type", @@ -3252,7 +3347,7 @@ class ChildWorkflowExecutionTimedOutEventAttributes(google.protobuf.message.Mess ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "initiated_event_id", b"initiated_event_id", "namespace", @@ -3274,6 +3369,7 @@ global___ChildWorkflowExecutionTimedOutEventAttributes = ( ChildWorkflowExecutionTimedOutEventAttributes ) +@typing.final class ChildWorkflowExecutionTerminatedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3288,16 +3384,16 @@ class ChildWorkflowExecutionTerminatedEventAttributes(google.protobuf.message.Me SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. """ namespace_id: builtins.str + initiated_event_id: builtins.int + """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" + started_event_id: builtins.int + """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... - initiated_event_id: builtins.int - """Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to""" - started_event_id: builtins.int - """Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to""" def __init__( self, *, @@ -3311,7 +3407,7 @@ class ChildWorkflowExecutionTerminatedEventAttributes(google.protobuf.message.Me ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "workflow_execution", b"workflow_execution", "workflow_type", @@ -3320,7 +3416,7 @@ class ChildWorkflowExecutionTerminatedEventAttributes(google.protobuf.message.Me ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "initiated_event_id", b"initiated_event_id", "namespace", @@ -3340,9 +3436,11 @@ global___ChildWorkflowExecutionTerminatedEventAttributes = ( ChildWorkflowExecutionTerminatedEventAttributes ) +@typing.final class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class WorkflowUpdateOptionsUpdate(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3362,6 +3460,7 @@ class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Mes temporalio.api.common.v1.message_pb2.Callback ]: """Completion callbacks attached to the running workflow update.""" + def __init__( self, *, @@ -3374,7 +3473,7 @@ class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Mes ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attached_completion_callbacks", b"attached_completion_callbacks", "attached_request_id", @@ -3393,6 +3492,18 @@ class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Mes TIME_SKIPPING_CONFIG_FIELD_NUMBER: builtins.int TIME_SKIPPING_CONFIG_UPDATED_FIELD_NUMBER: builtins.int WORKFLOW_UPDATE_OPTIONS_FIELD_NUMBER: builtins.int + unset_versioning_override: builtins.bool + """Versioning override removed in this event.""" + attached_request_id: builtins.str + """Request ID attached to the running workflow execution so that subsequent requests with same + request ID will be deduped. + """ + identity: builtins.str + """Optional. The identity of the client who initiated the request that created this event.""" + time_skipping_config_updated: builtins.bool + """Indicates the time skipping config was updated by the recent call to update + workflow execution options. + """ @property def versioning_override( self, @@ -3400,12 +3511,7 @@ class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Mes """Versioning override upserted in this event. Ignored if nil or if unset_versioning_override is true. """ - unset_versioning_override: builtins.bool - """Versioning override removed in this event.""" - attached_request_id: builtins.str - """Request ID attached to the running workflow execution so that subsequent requests with same - request ID will be deduped. - """ + @property def attached_completion_callbacks( self, @@ -3413,22 +3519,19 @@ class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Mes temporalio.api.common.v1.message_pb2.Callback ]: """Completion callbacks attached to the running workflow execution.""" - identity: builtins.str - """Optional. The identity of the client who initiated the request that created this event.""" + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority override upserted in this event. Represents the full priority; not just partial fields. Ignored if nil. """ + @property def time_skipping_config( self, ) -> temporalio.api.common.v1.message_pb2.TimeSkippingConfig: """TimeSkippingConfig override upserted in this event. Represents the full config.""" - time_skipping_config_updated: builtins.bool - """Indicates the time skipping config was updated by the recent call to update - workflow execution options. - """ + @property def workflow_update_options( self, @@ -3436,6 +3539,7 @@ class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Mes global___WorkflowExecutionOptionsUpdatedEventAttributes.WorkflowUpdateOptionsUpdate ]: """Updates to workflow updates options.""" + def __init__( self, *, @@ -3459,7 +3563,7 @@ class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Mes ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "priority", b"priority", "time_skipping_config", @@ -3470,7 +3574,7 @@ class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Mes ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attached_completion_callbacks", b"attached_completion_callbacks", "attached_request_id", @@ -3496,6 +3600,7 @@ global___WorkflowExecutionOptionsUpdatedEventAttributes = ( WorkflowExecutionOptionsUpdatedEventAttributes ) +@typing.final class WorkflowPropertiesModifiedExternallyEventAttributes( google.protobuf.message.Message ): @@ -3513,15 +3618,19 @@ class WorkflowPropertiesModifiedExternallyEventAttributes( @property def new_workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Not used.""" + @property def new_workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Not used.""" + @property def new_workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: """Not used.""" + @property def upserted_memo(self) -> temporalio.api.common.v1.message_pb2.Memo: """Not used.""" + def __init__( self, *, @@ -3534,7 +3643,7 @@ class WorkflowPropertiesModifiedExternallyEventAttributes( ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "new_workflow_execution_timeout", b"new_workflow_execution_timeout", "new_workflow_run_timeout", @@ -3547,7 +3656,7 @@ class WorkflowPropertiesModifiedExternallyEventAttributes( ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "new_task_queue", b"new_task_queue", "new_workflow_execution_timeout", @@ -3565,6 +3674,7 @@ global___WorkflowPropertiesModifiedExternallyEventAttributes = ( WorkflowPropertiesModifiedExternallyEventAttributes ) +@typing.final class ActivityPropertiesModifiedExternallyEventAttributes( google.protobuf.message.Message ): @@ -3579,6 +3689,7 @@ class ActivityPropertiesModifiedExternallyEventAttributes( """If set, update the retry policy of the activity, replacing it with the specified one. The number of attempts at the activity is preserved. """ + def __init__( self, *, @@ -3586,12 +3697,11 @@ class ActivityPropertiesModifiedExternallyEventAttributes( new_retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["new_retry_policy", b"new_retry_policy"], + self, field_name: typing.Literal["new_retry_policy", b"new_retry_policy"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "new_retry_policy", b"new_retry_policy", "scheduled_event_id", @@ -3603,6 +3713,7 @@ global___ActivityPropertiesModifiedExternallyEventAttributes = ( ActivityPropertiesModifiedExternallyEventAttributes ) +@typing.final class WorkflowExecutionUpdateAcceptedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3624,6 +3735,7 @@ class WorkflowExecutionUpdateAcceptedEventAttributes(google.protobuf.message.Mes """The message payload of the original request message that initiated this update. """ + def __init__( self, *, @@ -3633,12 +3745,11 @@ class WorkflowExecutionUpdateAcceptedEventAttributes(google.protobuf.message.Mes accepted_request: temporalio.api.update.v1.message_pb2.Request | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["accepted_request", b"accepted_request"], + self, field_name: typing.Literal["accepted_request", b"accepted_request"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "accepted_request", b"accepted_request", "accepted_request_message_id", @@ -3654,20 +3765,23 @@ global___WorkflowExecutionUpdateAcceptedEventAttributes = ( WorkflowExecutionUpdateAcceptedEventAttributes ) +@typing.final class WorkflowExecutionUpdateCompletedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor META_FIELD_NUMBER: builtins.int ACCEPTED_EVENT_ID_FIELD_NUMBER: builtins.int OUTCOME_FIELD_NUMBER: builtins.int + accepted_event_id: builtins.int + """The event ID indicating the acceptance of this update.""" @property def meta(self) -> temporalio.api.update.v1.message_pb2.Meta: """The metadata about this update.""" - accepted_event_id: builtins.int - """The event ID indicating the acceptance of this update.""" + @property def outcome(self) -> temporalio.api.update.v1.message_pb2.Outcome: """The outcome of executing the workflow update function.""" + def __init__( self, *, @@ -3676,12 +3790,11 @@ class WorkflowExecutionUpdateCompletedEventAttributes(google.protobuf.message.Me outcome: temporalio.api.update.v1.message_pb2.Outcome | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["meta", b"meta", "outcome", b"outcome"], + self, field_name: typing.Literal["meta", b"meta", "outcome", b"outcome"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "accepted_event_id", b"accepted_event_id", "meta", @@ -3695,6 +3808,7 @@ global___WorkflowExecutionUpdateCompletedEventAttributes = ( WorkflowExecutionUpdateCompletedEventAttributes ) +@typing.final class WorkflowExecutionUpdateRejectedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3717,9 +3831,11 @@ class WorkflowExecutionUpdateRejectedEventAttributes(google.protobuf.message.Mes """The message payload of the original request message that initiated this update. """ + @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The cause of rejection.""" + def __init__( self, *, @@ -3731,13 +3847,13 @@ class WorkflowExecutionUpdateRejectedEventAttributes(google.protobuf.message.Mes ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "rejected_request", b"rejected_request" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "protocol_instance_id", @@ -3755,16 +3871,18 @@ global___WorkflowExecutionUpdateRejectedEventAttributes = ( WorkflowExecutionUpdateRejectedEventAttributes ) +@typing.final class WorkflowExecutionUpdateAdmittedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor REQUEST_FIELD_NUMBER: builtins.int ORIGIN_FIELD_NUMBER: builtins.int + origin: temporalio.api.enums.v1.update_pb2.UpdateAdmittedEventOrigin.ValueType + """An explanation of why this event was written to history.""" @property def request(self) -> temporalio.api.update.v1.message_pb2.Request: """The update request associated with this event.""" - origin: temporalio.api.enums.v1.update_pb2.UpdateAdmittedEventOrigin.ValueType - """An explanation of why this event was written to history.""" + def __init__( self, *, @@ -3772,19 +3890,17 @@ class WorkflowExecutionUpdateAdmittedEventAttributes(google.protobuf.message.Mes origin: temporalio.api.enums.v1.update_pb2.UpdateAdmittedEventOrigin.ValueType = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["request", b"request"] + self, field_name: typing.Literal["request", b"request"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "origin", b"origin", "request", b"request" - ], + self, field_name: typing.Literal["origin", b"origin", "request", b"request"] ) -> None: ... global___WorkflowExecutionUpdateAdmittedEventAttributes = ( WorkflowExecutionUpdateAdmittedEventAttributes ) +@typing.final class WorkflowExecutionPausedEventAttributes(google.protobuf.message.Message): """Attributes for an event marking that a workflow execution was paused.""" @@ -3808,13 +3924,14 @@ class WorkflowExecutionPausedEventAttributes(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "reason", b"reason", "request_id", b"request_id" ], ) -> None: ... global___WorkflowExecutionPausedEventAttributes = WorkflowExecutionPausedEventAttributes +@typing.final class WorkflowExecutionUnpausedEventAttributes(google.protobuf.message.Message): """Attributes for an event marking that a workflow execution was unpaused.""" @@ -3838,7 +3955,7 @@ class WorkflowExecutionUnpausedEventAttributes(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "reason", b"reason", "request_id", b"request_id" ], ) -> None: ... @@ -3847,6 +3964,7 @@ global___WorkflowExecutionUnpausedEventAttributes = ( WorkflowExecutionUnpausedEventAttributes ) +@typing.final class WorkflowExecutionTimeSkippingTransitionedEventAttributes( google.protobuf.message.Message ): @@ -3860,17 +3978,19 @@ class WorkflowExecutionTimeSkippingTransitionedEventAttributes( TARGET_TIME_FIELD_NUMBER: builtins.int DISABLED_AFTER_FAST_FORWARD_FIELD_NUMBER: builtins.int WALL_CLOCK_TIME_FIELD_NUMBER: builtins.int - @property - def target_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """The virtual time point that time skipping advanced to.""" disabled_after_fast_forward: builtins.bool """When true, time skipping has been stopped automatically due to a call to fast_forward completing. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "after" is used to indicate temporal ordering. --) """ + @property + def target_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The virtual time point that time skipping advanced to.""" + @property def wall_clock_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The wall-clock time when the time-skipping state changed event was generated.""" + def __init__( self, *, @@ -3880,13 +4000,13 @@ class WorkflowExecutionTimeSkippingTransitionedEventAttributes( ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "target_time", b"target_time", "wall_clock_time", b"wall_clock_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "disabled_after_fast_forward", b"disabled_after_fast_forward", "target_time", @@ -3900,11 +4020,13 @@ global___WorkflowExecutionTimeSkippingTransitionedEventAttributes = ( WorkflowExecutionTimeSkippingTransitionedEventAttributes ) +@typing.final class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): """Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class NexusHeaderEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3919,8 +4041,7 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... ENDPOINT_FIELD_NUMBER: builtins.int @@ -3940,12 +4061,24 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): """Service name.""" operation: builtins.str """Operation name.""" + workflow_task_completed_event_id: builtins.int + """The `WORKFLOW_TASK_COMPLETED` event that the corresponding ScheduleNexusOperation command was reported with.""" + request_id: builtins.str + """A unique ID generated by the history service upon creation of this event. + The ID will be transmitted with all nexus StartOperation requests and is used as an idempotentency key. + """ + endpoint_id: builtins.str + """Endpoint ID as resolved in the endpoint registry at the time this event was generated. + This is stored on the event and used internally by the server in case the endpoint is renamed from the time the + event was originally scheduled. + """ @property def input(self) -> temporalio.api.common.v1.message_pb2.Payload: """Input for the operation. The server converts this into Nexus request content and the appropriate content headers internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the content is transformed back to the original Payload stored in this event. """ + @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-close timeout for this operation. @@ -3956,6 +4089,7 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): (-- api-linter: core::0142::time-field-names=disabled aip.dev/not-precedent: "timeout" is an acceptable suffix for duration fields in this API. --) """ + @property def nexus_header( self, @@ -3964,17 +4098,7 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): activities and child workflows, these are transmitted to Nexus operations that may be external and are not traditional payloads. """ - workflow_task_completed_event_id: builtins.int - """The `WORKFLOW_TASK_COMPLETED` event that the corresponding ScheduleNexusOperation command was reported with.""" - request_id: builtins.str - """A unique ID generated by the history service upon creation of this event. - The ID will be transmitted with all nexus StartOperation requests and is used as an idempotentency key. - """ - endpoint_id: builtins.str - """Endpoint ID as resolved in the endpoint registry at the time this event was generated. - This is stored on the event and used internally by the server in case the endpoint is renamed from the time the - event was originally scheduled. - """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-start timeout for this operation. @@ -3982,6 +4106,7 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Start-to-close timeout for this operation. @@ -3989,6 +4114,7 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + def __init__( self, *, @@ -4006,7 +4132,7 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "input", b"input", "schedule_to_close_timeout", @@ -4019,7 +4145,7 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "endpoint", b"endpoint", "endpoint_id", @@ -4047,6 +4173,7 @@ class NexusOperationScheduledEventAttributes(google.protobuf.message.Message): global___NexusOperationScheduledEventAttributes = NexusOperationScheduledEventAttributes +@typing.final class NexusOperationStartedEventAttributes(google.protobuf.message.Message): """Event marking an asynchronous operation was started by the responding Nexus handler. If the operation completes synchronously, this event is not generated. @@ -4084,7 +4211,7 @@ class NexusOperationStartedEventAttributes(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "operation_id", b"operation_id", "operation_token", @@ -4098,6 +4225,7 @@ class NexusOperationStartedEventAttributes(google.protobuf.message.Message): global___NexusOperationStartedEventAttributes = NexusOperationStartedEventAttributes +@typing.final class NexusOperationCompletedEventAttributes(google.protobuf.message.Message): """Nexus operation completed successfully.""" @@ -4108,13 +4236,14 @@ class NexusOperationCompletedEventAttributes(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation.""" + request_id: builtins.str + """The request ID allocated at schedule time.""" @property def result(self) -> temporalio.api.common.v1.message_pb2.Payload: """Serialized result of the Nexus operation. The response of the Nexus handler. Delivered either via a completion callback or as a response to a synchronous operation. """ - request_id: builtins.str - """The request ID allocated at schedule time.""" + def __init__( self, *, @@ -4123,11 +4252,11 @@ class NexusOperationCompletedEventAttributes(google.protobuf.message.Message): request_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "request_id", b"request_id", "result", @@ -4139,6 +4268,7 @@ class NexusOperationCompletedEventAttributes(google.protobuf.message.Message): global___NexusOperationCompletedEventAttributes = NexusOperationCompletedEventAttributes +@typing.final class NexusOperationFailedEventAttributes(google.protobuf.message.Message): """Nexus operation failed.""" @@ -4149,11 +4279,12 @@ class NexusOperationFailedEventAttributes(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation.""" + request_id: builtins.str + """The request ID allocated at schedule time.""" @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Failure details. A NexusOperationFailureInfo wrapping an ApplicationFailureInfo.""" - request_id: builtins.str - """The request ID allocated at schedule time.""" + def __init__( self, *, @@ -4162,11 +4293,11 @@ class NexusOperationFailedEventAttributes(google.protobuf.message.Message): request_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "request_id", @@ -4178,6 +4309,7 @@ class NexusOperationFailedEventAttributes(google.protobuf.message.Message): global___NexusOperationFailedEventAttributes = NexusOperationFailedEventAttributes +@typing.final class NexusOperationTimedOutEventAttributes(google.protobuf.message.Message): """Nexus operation timed out.""" @@ -4188,11 +4320,12 @@ class NexusOperationTimedOutEventAttributes(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation.""" + request_id: builtins.str + """The request ID allocated at schedule time.""" @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo.""" - request_id: builtins.str - """The request ID allocated at schedule time.""" + def __init__( self, *, @@ -4201,11 +4334,11 @@ class NexusOperationTimedOutEventAttributes(google.protobuf.message.Message): request_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "request_id", @@ -4217,6 +4350,7 @@ class NexusOperationTimedOutEventAttributes(google.protobuf.message.Message): global___NexusOperationTimedOutEventAttributes = NexusOperationTimedOutEventAttributes +@typing.final class NexusOperationCanceledEventAttributes(google.protobuf.message.Message): """Nexus operation completed as canceled. May or may not have been due to a cancellation request by the workflow.""" @@ -4227,11 +4361,12 @@ class NexusOperationCanceledEventAttributes(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The ID of the `NEXUS_OPERATION_SCHEDULED` event. Uniquely identifies this operation.""" + request_id: builtins.str + """The request ID allocated at schedule time.""" @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Cancellation details.""" - request_id: builtins.str - """The request ID allocated at schedule time.""" + def __init__( self, *, @@ -4240,11 +4375,11 @@ class NexusOperationCanceledEventAttributes(google.protobuf.message.Message): request_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "request_id", @@ -4256,6 +4391,7 @@ class NexusOperationCanceledEventAttributes(google.protobuf.message.Message): global___NexusOperationCanceledEventAttributes = NexusOperationCanceledEventAttributes +@typing.final class NexusOperationCancelRequestedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4275,7 +4411,7 @@ class NexusOperationCancelRequestedEventAttributes(google.protobuf.message.Messa ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "scheduled_event_id", b"scheduled_event_id", "workflow_task_completed_event_id", @@ -4287,6 +4423,7 @@ global___NexusOperationCancelRequestedEventAttributes = ( NexusOperationCancelRequestedEventAttributes ) +@typing.final class NexusOperationCancelRequestCompletedEventAttributes( google.protobuf.message.Message ): @@ -4312,7 +4449,7 @@ class NexusOperationCancelRequestCompletedEventAttributes( ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "requested_event_id", b"requested_event_id", "scheduled_event_id", @@ -4326,6 +4463,7 @@ global___NexusOperationCancelRequestCompletedEventAttributes = ( NexusOperationCancelRequestCompletedEventAttributes ) +@typing.final class NexusOperationCancelRequestFailedEventAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4339,11 +4477,12 @@ class NexusOperationCancelRequestFailedEventAttributes(google.protobuf.message.M """The `WORKFLOW_TASK_COMPLETED` event that the corresponding RequestCancelNexusOperation command was reported with. """ + scheduled_event_id: builtins.int + """The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to.""" @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Failure details. A NexusOperationFailureInfo wrapping a CanceledFailureInfo.""" - scheduled_event_id: builtins.int - """The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to.""" + def __init__( self, *, @@ -4353,11 +4492,11 @@ class NexusOperationCancelRequestFailedEventAttributes(google.protobuf.message.M scheduled_event_id: builtins.int = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "requested_event_id", @@ -4373,6 +4512,7 @@ global___NexusOperationCancelRequestFailedEventAttributes = ( NexusOperationCancelRequestFailedEventAttributes ) +@typing.final class HistoryEvent(google.protobuf.message.Message): """History events are the method by which Temporal SDKs advance (or recreate) workflow state. See the `EventType` enum for more info about what each event is for. @@ -4462,8 +4602,6 @@ class HistoryEvent(google.protobuf.message.Message): ) event_id: builtins.int """Monotonically increasing event number, starts at 1.""" - @property - def event_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... event_type: temporalio.api.enums.v1.event_type_pb2.EventType.ValueType version: builtins.int """Failover version of the event, used by the server for multi-cluster replication and history @@ -4480,6 +4618,8 @@ class HistoryEvent(google.protobuf.message.Message): acceptable for the event type and/or attributes to be uninterpretable. """ @property + def event_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: """Metadata on the event. This is often carried over from commands and client calls. Most events won't have this information, and how this information is used is dependent upon the interface @@ -4490,6 +4630,7 @@ class HistoryEvent(google.protobuf.message.Message): * timer_started_event_attributes - summary represents an identifier for the timer for use by user interfaces. """ + @property def links( self, @@ -4497,9 +4638,11 @@ class HistoryEvent(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to related entities, such as the entity that started this event's workflow.""" + @property def principal(self) -> temporalio.api.common.v1.message_pb2.Principal: """Server-computed authenticated caller identity associated with this event.""" + @property def event_group_markers( self, @@ -4507,6 +4650,7 @@ class HistoryEvent(google.protobuf.message.Message): temporalio.api.sdk.v1.event_group_marker_pb2.EventGroupMarker ]: """Event group markers attached to this event.""" + @property def workflow_execution_started_event_attributes( self, @@ -4885,7 +5029,7 @@ class HistoryEvent(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_properties_modified_externally_event_attributes", b"activity_properties_modified_externally_event_attributes", "activity_task_cancel_requested_event_attributes", @@ -5018,7 +5162,7 @@ class HistoryEvent(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_properties_modified_externally_event_attributes", b"activity_properties_modified_externally_event_attributes", "activity_task_cancel_requested_event_attributes", @@ -5164,9 +5308,9 @@ class HistoryEvent(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["attributes", b"attributes"] + self, oneof_group: typing.Literal["attributes", b"attributes"] ) -> ( - typing_extensions.Literal[ + typing.Literal[ "workflow_execution_started_event_attributes", "workflow_execution_completed_event_attributes", "workflow_execution_failed_event_attributes", @@ -5233,6 +5377,7 @@ class HistoryEvent(google.protobuf.message.Message): global___HistoryEvent = HistoryEvent +@typing.final class History(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5248,8 +5393,6 @@ class History(google.protobuf.message.Message): *, events: collections.abc.Iterable[global___HistoryEvent] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["events", b"events"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["events", b"events"]) -> None: ... global___History = History diff --git a/temporalio/api/namespace/v1/message_pb2.py b/temporalio/api/namespace/v1/message_pb2.py index 43a3773f2..f3342fdf8 100644 --- a/temporalio/api/namespace/v1/message_pb2.py +++ b/temporalio/api/namespace/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -25,147 +24,8 @@ b'\n\'temporal/api/namespace/v1/message.proto\x12\x19temporal.api.namespace.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a%temporal/api/enums/v1/namespace.proto"\xf6\x08\n\rNamespaceInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x05state\x18\x02 \x01(\x0e\x32%.temporal.api.enums.v1.NamespaceState\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x13\n\x0bowner_email\x18\x04 \x01(\t\x12@\n\x04\x64\x61ta\x18\x05 \x03(\x0b\x32\x32.temporal.api.namespace.v1.NamespaceInfo.DataEntry\x12\n\n\x02id\x18\x06 \x01(\t\x12K\n\x0c\x63\x61pabilities\x18\x07 \x01(\x0b\x32\x35.temporal.api.namespace.v1.NamespaceInfo.Capabilities\x12?\n\x06limits\x18\x08 \x01(\x0b\x32/.temporal.api.namespace.v1.NamespaceInfo.Limits\x12\x1a\n\x12supports_schedules\x18\x64 \x01(\x08\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xd6\x04\n\x0c\x43\x61pabilities\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x01 \x01(\x08\x12\x13\n\x0bsync_update\x18\x02 \x01(\x08\x12\x14\n\x0c\x61sync_update\x18\x03 \x01(\x08\x12\x19\n\x11worker_heartbeats\x18\x04 \x01(\x08\x12*\n"reported_problems_search_attribute\x18\x05 \x01(\x08\x12\x16\n\x0eworkflow_pause\x18\x06 \x01(\x08\x12\x1d\n\x15standalone_activities\x18\x07 \x01(\x08\x12(\n worker_poll_complete_on_shutdown\x18\x08 \x01(\x08\x12\x1a\n\x12poller_autoscaling\x18\t \x01(\x08\x12\x17\n\x0fworker_commands\x18\n \x01(\x08\x12"\n\x1astandalone_nexus_operation\x18\x0b \x01(\x08\x12!\n\x19workflow_update_callbacks\x18\x0c \x01(\x08\x12&\n\x1epoller_autoscaling_auto_enroll\x18\r \x01(\x08\x12+\n#workflow_task_completion_pagination\x18\x0e \x01(\x08\x12\'\n\x1fstandalone_activity_start_delay\x18\x0f \x01(\x08\x12,\n$standalone_activity_batch_operations\x18\x10 \x01(\x08\x12-\n%standalone_activity_operator_commands\x18\x11 \x01(\x08\x1ay\n\x06Limits\x12\x1d\n\x15\x62lob_size_limit_error\x18\x01 \x01(\x03\x12\x1d\n\x15memo_size_limit_error\x18\x02 \x01(\x03\x12\x31\n)workflow_task_completion_size_limit_error\x18\x03 \x01(\x03"\x9e\x04\n\x0fNamespaceConfig\x12\x43\n workflow_execution_retention_ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x0c\x62\x61\x64_binaries\x18\x02 \x01(\x0b\x32&.temporal.api.namespace.v1.BadBinaries\x12\x44\n\x16history_archival_state\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x04 \x01(\t\x12G\n\x19visibility_archival_state\x18\x05 \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\x06 \x01(\t\x12u\n\x1f\x63ustom_search_attribute_aliases\x18\x07 \x03(\x0b\x32L.temporal.api.namespace.v1.NamespaceConfig.CustomSearchAttributeAliasesEntry\x1a\x43\n!CustomSearchAttributeAliasesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xb0\x01\n\x0b\x42\x61\x64\x42inaries\x12\x46\n\x08\x62inaries\x18\x01 \x03(\x0b\x32\x34.temporal.api.namespace.v1.BadBinaries.BinariesEntry\x1aY\n\rBinariesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.temporal.api.namespace.v1.BadBinaryInfo:\x02\x38\x01"b\n\rBadBinaryInfo\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x10\n\x08operator\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xea\x01\n\x13UpdateNamespaceInfo\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x13\n\x0bowner_email\x18\x02 \x01(\t\x12\x46\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x38.temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntry\x12\x34\n\x05state\x18\x04 \x01(\x0e\x32%.temporal.api.enums.v1.NamespaceState\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"*\n\x0fNamespaceFilter\x12\x17\n\x0finclude_deleted\x18\x01 \x01(\x08\x42\x98\x01\n\x1cio.temporal.api.namespace.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/namespace/v1;namespace\xaa\x02\x1bTemporalio.Api.Namespace.V1\xea\x02\x1eTemporalio::Api::Namespace::V1b\x06proto3' ) - -_NAMESPACEINFO = DESCRIPTOR.message_types_by_name["NamespaceInfo"] -_NAMESPACEINFO_DATAENTRY = _NAMESPACEINFO.nested_types_by_name["DataEntry"] -_NAMESPACEINFO_CAPABILITIES = _NAMESPACEINFO.nested_types_by_name["Capabilities"] -_NAMESPACEINFO_LIMITS = _NAMESPACEINFO.nested_types_by_name["Limits"] -_NAMESPACECONFIG = DESCRIPTOR.message_types_by_name["NamespaceConfig"] -_NAMESPACECONFIG_CUSTOMSEARCHATTRIBUTEALIASESENTRY = ( - _NAMESPACECONFIG.nested_types_by_name["CustomSearchAttributeAliasesEntry"] -) -_BADBINARIES = DESCRIPTOR.message_types_by_name["BadBinaries"] -_BADBINARIES_BINARIESENTRY = _BADBINARIES.nested_types_by_name["BinariesEntry"] -_BADBINARYINFO = DESCRIPTOR.message_types_by_name["BadBinaryInfo"] -_UPDATENAMESPACEINFO = DESCRIPTOR.message_types_by_name["UpdateNamespaceInfo"] -_UPDATENAMESPACEINFO_DATAENTRY = _UPDATENAMESPACEINFO.nested_types_by_name["DataEntry"] -_NAMESPACEFILTER = DESCRIPTOR.message_types_by_name["NamespaceFilter"] -NamespaceInfo = _reflection.GeneratedProtocolMessageType( - "NamespaceInfo", - (_message.Message,), - { - "DataEntry": _reflection.GeneratedProtocolMessageType( - "DataEntry", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACEINFO_DATAENTRY, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo.DataEntry) - }, - ), - "Capabilities": _reflection.GeneratedProtocolMessageType( - "Capabilities", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACEINFO_CAPABILITIES, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo.Capabilities) - }, - ), - "Limits": _reflection.GeneratedProtocolMessageType( - "Limits", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACEINFO_LIMITS, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo.Limits) - }, - ), - "DESCRIPTOR": _NAMESPACEINFO, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo) - }, -) -_sym_db.RegisterMessage(NamespaceInfo) -_sym_db.RegisterMessage(NamespaceInfo.DataEntry) -_sym_db.RegisterMessage(NamespaceInfo.Capabilities) -_sym_db.RegisterMessage(NamespaceInfo.Limits) - -NamespaceConfig = _reflection.GeneratedProtocolMessageType( - "NamespaceConfig", - (_message.Message,), - { - "CustomSearchAttributeAliasesEntry": _reflection.GeneratedProtocolMessageType( - "CustomSearchAttributeAliasesEntry", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACECONFIG_CUSTOMSEARCHATTRIBUTEALIASESENTRY, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceConfig.CustomSearchAttributeAliasesEntry) - }, - ), - "DESCRIPTOR": _NAMESPACECONFIG, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceConfig) - }, -) -_sym_db.RegisterMessage(NamespaceConfig) -_sym_db.RegisterMessage(NamespaceConfig.CustomSearchAttributeAliasesEntry) - -BadBinaries = _reflection.GeneratedProtocolMessageType( - "BadBinaries", - (_message.Message,), - { - "BinariesEntry": _reflection.GeneratedProtocolMessageType( - "BinariesEntry", - (_message.Message,), - { - "DESCRIPTOR": _BADBINARIES_BINARIESENTRY, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.BadBinaries.BinariesEntry) - }, - ), - "DESCRIPTOR": _BADBINARIES, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.BadBinaries) - }, -) -_sym_db.RegisterMessage(BadBinaries) -_sym_db.RegisterMessage(BadBinaries.BinariesEntry) - -BadBinaryInfo = _reflection.GeneratedProtocolMessageType( - "BadBinaryInfo", - (_message.Message,), - { - "DESCRIPTOR": _BADBINARYINFO, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.BadBinaryInfo) - }, -) -_sym_db.RegisterMessage(BadBinaryInfo) - -UpdateNamespaceInfo = _reflection.GeneratedProtocolMessageType( - "UpdateNamespaceInfo", - (_message.Message,), - { - "DataEntry": _reflection.GeneratedProtocolMessageType( - "DataEntry", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENAMESPACEINFO_DATAENTRY, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntry) - }, - ), - "DESCRIPTOR": _UPDATENAMESPACEINFO, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.UpdateNamespaceInfo) - }, -) -_sym_db.RegisterMessage(UpdateNamespaceInfo) -_sym_db.RegisterMessage(UpdateNamespaceInfo.DataEntry) - -NamespaceFilter = _reflection.GeneratedProtocolMessageType( - "NamespaceFilter", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACEFILTER, - "__module__": "temporalio.api.namespace.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceFilter) - }, -) -_sym_db.RegisterMessage(NamespaceFilter) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\034io.temporal.api.namespace.v1B\014MessageProtoP\001Z)go.temporal.io/api/namespace/v1;namespace\252\002\033Temporalio.Api.Namespace.V1\352\002\036Temporalio::Api::Namespace::V1" diff --git a/temporalio/api/namespace/v1/message_pb2.pyi b/temporalio/api/namespace/v1/message_pb2.pyi index 06b1546b3..d12517933 100644 --- a/temporalio/api/namespace/v1/message_pb2.pyi +++ b/temporalio/api/namespace/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -15,16 +15,13 @@ import google.protobuf.timestamp_pb2 import temporalio.api.enums.v1.namespace_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class NamespaceInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class DataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -39,10 +36,10 @@ class NamespaceInfo(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class Capabilities(google.protobuf.message.Message): """Namespace capability details. Should contain what features are enabled in a namespace.""" @@ -127,7 +124,7 @@ class NamespaceInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_update", b"async_update", "eager_workflow_start", @@ -165,6 +162,7 @@ class NamespaceInfo(google.protobuf.message.Message): ], ) -> None: ... + @typing.final class Limits(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -192,7 +190,7 @@ class NamespaceInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "blob_size_limit_error", b"blob_size_limit_error", "memo_size_limit_error", @@ -215,22 +213,25 @@ class NamespaceInfo(google.protobuf.message.Message): state: temporalio.api.enums.v1.namespace_pb2.NamespaceState.ValueType description: builtins.str owner_email: builtins.str + id: builtins.str + supports_schedules: builtins.bool + """Whether scheduled workflows are supported on this namespace. This is only needed + temporarily while the feature is experimental, so we can give it a high tag. + """ @property def data( self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """A key-value map for any customized purpose.""" - id: builtins.str + @property def capabilities(self) -> global___NamespaceInfo.Capabilities: """All capabilities the namespace supports.""" + @property def limits(self) -> global___NamespaceInfo.Limits: """Namespace configured limits""" - supports_schedules: builtins.bool - """Whether scheduled workflows are supported on this namespace. This is only needed - temporarily while the feature is experimental, so we can give it a high tag. - """ + def __init__( self, *, @@ -246,13 +247,13 @@ class NamespaceInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "capabilities", b"capabilities", "limits", b"limits" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "capabilities", b"capabilities", "data", @@ -276,9 +277,11 @@ class NamespaceInfo(google.protobuf.message.Message): global___NamespaceInfo = NamespaceInfo +@typing.final class NamespaceConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class CustomSearchAttributeAliasesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -293,8 +296,7 @@ class NamespaceConfig(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... WORKFLOW_EXECUTION_RETENTION_TTL_FIELD_NUMBER: builtins.int @@ -304,12 +306,6 @@ class NamespaceConfig(google.protobuf.message.Message): VISIBILITY_ARCHIVAL_STATE_FIELD_NUMBER: builtins.int VISIBILITY_ARCHIVAL_URI_FIELD_NUMBER: builtins.int CUSTOM_SEARCH_ATTRIBUTE_ALIASES_FIELD_NUMBER: builtins.int - @property - def workflow_execution_retention_ttl( - self, - ) -> google.protobuf.duration_pb2.Duration: ... - @property - def bad_binaries(self) -> global___BadBinaries: ... history_archival_state: ( temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType ) @@ -321,10 +317,17 @@ class NamespaceConfig(google.protobuf.message.Message): """If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.""" visibility_archival_uri: builtins.str @property + def workflow_execution_retention_ttl( + self, + ) -> google.protobuf.duration_pb2.Duration: ... + @property + def bad_binaries(self) -> global___BadBinaries: ... + @property def custom_search_attribute_aliases( self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """Map from field name to alias.""" + def __init__( self, *, @@ -342,7 +345,7 @@ class NamespaceConfig(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "bad_binaries", b"bad_binaries", "workflow_execution_retention_ttl", @@ -351,7 +354,7 @@ class NamespaceConfig(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "bad_binaries", b"bad_binaries", "custom_search_attribute_aliases", @@ -371,9 +374,11 @@ class NamespaceConfig(google.protobuf.message.Message): global___NamespaceConfig = NamespaceConfig +@typing.final class BadBinaries(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class BinariesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -389,11 +394,10 @@ class BadBinaries(google.protobuf.message.Message): value: global___BadBinaryInfo | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... BINARIES_FIELD_NUMBER: builtins.int @@ -410,11 +414,12 @@ class BadBinaries(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["binaries", b"binaries"] + self, field_name: typing.Literal["binaries", b"binaries"] ) -> None: ... global___BadBinaries = BadBinaries +@typing.final class BadBinaryInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -433,20 +438,22 @@ class BadBinaryInfo(google.protobuf.message.Message): create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["create_time", b"create_time"] + self, field_name: typing.Literal["create_time", b"create_time"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "operator", b"operator", "reason", b"reason" ], ) -> None: ... global___BadBinaryInfo = BadBinaryInfo +@typing.final class UpdateNamespaceInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class DataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -461,8 +468,7 @@ class UpdateNamespaceInfo(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... DESCRIPTION_FIELD_NUMBER: builtins.int @@ -471,6 +477,13 @@ class UpdateNamespaceInfo(google.protobuf.message.Message): STATE_FIELD_NUMBER: builtins.int description: builtins.str owner_email: builtins.str + state: temporalio.api.enums.v1.namespace_pb2.NamespaceState.ValueType + """New namespace state, server will reject if transition is not allowed. + Allowed transitions are: + Registered -> [ Deleted | Deprecated | Handover ] + Handover -> [ Registered ] + Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state. + """ @property def data( self, @@ -479,13 +492,7 @@ class UpdateNamespaceInfo(google.protobuf.message.Message): If data already exists on the namespace, this will merge with the existing key values. """ - state: temporalio.api.enums.v1.namespace_pb2.NamespaceState.ValueType - """New namespace state, server will reject if transition is not allowed. - Allowed transitions are: - Registered -> [ Deleted | Deprecated | Handover ] - Handover -> [ Registered ] - Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state. - """ + def __init__( self, *, @@ -496,7 +503,7 @@ class UpdateNamespaceInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "data", b"data", "description", @@ -510,6 +517,7 @@ class UpdateNamespaceInfo(google.protobuf.message.Message): global___UpdateNamespaceInfo = UpdateNamespaceInfo +@typing.final class NamespaceFilter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -525,8 +533,7 @@ class NamespaceFilter(google.protobuf.message.Message): include_deleted: builtins.bool = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["include_deleted", b"include_deleted"], + self, field_name: typing.Literal["include_deleted", b"include_deleted"] ) -> None: ... global___NamespaceFilter = NamespaceFilter diff --git a/temporalio/api/nexus/v1/__init__.py b/temporalio/api/nexus/v1/__init__.py index b85ea67f4..298419f24 100644 --- a/temporalio/api/nexus/v1/__init__.py +++ b/temporalio/api/nexus/v1/__init__.py @@ -10,6 +10,7 @@ NexusOperationExecutionCancellationInfo, NexusOperationExecutionInfo, NexusOperationExecutionListInfo, + PropagatedSerializationContext, Request, Response, StartOperationRequest, @@ -29,6 +30,7 @@ "NexusOperationExecutionCancellationInfo", "NexusOperationExecutionInfo", "NexusOperationExecutionListInfo", + "PropagatedSerializationContext", "Request", "Response", "StartOperationRequest", diff --git a/temporalio/api/nexus/v1/message_pb2.py b/temporalio/api/nexus/v1/message_pb2.py index d607eb9c8..bb875cd8a 100644 --- a/temporalio/api/nexus/v1/message_pb2.py +++ b/temporalio/api/nexus/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -34,313 +33,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n#temporal/api/nexus/v1/message.proto\x12\x15temporal.api.nexus.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a"temporal/api/enums/v1/common.proto\x1a!temporal/api/enums/v1/nexus.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\xe0\x01\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x13\n\x0bstack_trace\x18\x04 \x01(\t\x12>\n\x08metadata\x18\x02 \x03(\x0b\x32,.temporal.api.nexus.v1.Failure.MetadataEntry\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\x0c\x12-\n\x05\x63\x61use\x18\x05 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xa2\x01\n\x0cHandlerError\x12\x12\n\nerror_type\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure\x12M\n\x0eretry_behavior\x18\x03 \x01(\x0e\x32\x35.temporal.api.enums.v1.NexusHandlerErrorRetryBehavior"f\n\x1aUnsuccessfulOperationError\x12\x17\n\x0foperation_state\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure"!\n\x04Link\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t"\xd1\x02\n\x15StartOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x10\n\x08\x63\x61llback\x18\x04 \x01(\t\x12\x30\n\x07payload\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12Y\n\x0f\x63\x61llback_header\x18\x06 \x03(\x0b\x32@.temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry\x12*\n\x05links\x18\x07 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x1a\x35\n\x13\x43\x61llbackHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"o\n\x16\x43\x61ncelOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x18\n\x0coperation_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x17\n\x0foperation_token\x18\x04 \x01(\t"\xd0\x03\n\x07Request\x12:\n\x06header\x18\x01 \x03(\x0b\x32*.temporal.api.nexus.v1.Request.HeaderEntry\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0c\x63\x61pabilities\x18\x64 \x01(\x0b\x32+.temporal.api.nexus.v1.Request.Capabilities\x12G\n\x0fstart_operation\x18\x03 \x01(\x0b\x32,.temporal.api.nexus.v1.StartOperationRequestH\x00\x12I\n\x10\x63\x61ncel_operation\x18\x04 \x01(\x0b\x32-.temporal.api.nexus.v1.CancelOperationRequestH\x00\x12\x10\n\x08\x65ndpoint\x18\n \x01(\t\x1a\x32\n\x0c\x43\x61pabilities\x12"\n\x1atemporal_failure_responses\x18\x01 \x01(\x08\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07variant"\x92\x04\n\x16StartOperationResponse\x12J\n\x0csync_success\x18\x01 \x01(\x0b\x32\x32.temporal.api.nexus.v1.StartOperationResponse.SyncH\x00\x12L\n\rasync_success\x18\x02 \x01(\x0b\x32\x33.temporal.api.nexus.v1.StartOperationResponse.AsyncH\x00\x12P\n\x0foperation_error\x18\x03 \x01(\x0b\x32\x31.temporal.api.nexus.v1.UnsuccessfulOperationErrorB\x02\x18\x01H\x00\x12\x33\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x1a\x64\n\x04Sync\x12\x30\n\x07payload\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12*\n\x05links\x18\x02 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x1a\x66\n\x05\x41sync\x12\x18\n\x0coperation_id\x18\x01 \x01(\tB\x02\x18\x01\x12*\n\x05links\x18\x02 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x12\x17\n\x0foperation_token\x18\x03 \x01(\tB\t\n\x07variant"\x19\n\x17\x43\x61ncelOperationResponse"\xab\x01\n\x08Response\x12H\n\x0fstart_operation\x18\x01 \x01(\x0b\x32-.temporal.api.nexus.v1.StartOperationResponseH\x00\x12J\n\x10\x63\x61ncel_operation\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.CancelOperationResponseH\x00\x42\t\n\x07variant"\xd8\x01\n\x08\x45ndpoint\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\n\n\x02id\x18\x02 \x01(\t\x12\x31\n\x04spec\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.EndpointSpec\x12\x30\n\x0c\x63reated_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nurl_prefix\x18\x06 \x01(\t"\x89\x01\n\x0c\x45ndpointSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x35\n\x06target\x18\x03 \x01(\x0b\x32%.temporal.api.nexus.v1.EndpointTarget"\xe9\x01\n\x0e\x45ndpointTarget\x12>\n\x06worker\x18\x01 \x01(\x0b\x32,.temporal.api.nexus.v1.EndpointTarget.WorkerH\x00\x12\x42\n\x08\x65xternal\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.EndpointTarget.ExternalH\x00\x1a/\n\x06Worker\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x1a\x17\n\x08\x45xternal\x12\x0b\n\x03url\x18\x01 \x01(\tB\t\n\x07variant"\x9d\x03\n\'NexusOperationExecutionCancellationInfo\x12\x32\n\x0erequested_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x05state\x18\x02 \x01(\x0e\x32\x36.temporal.api.enums.v1.NexusOperationCancellationState\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\x07 \x01(\t\x12\x0e\n\x06reason\x18\x08 \x01(\t"\xff\n\n\x1bNexusOperationExecutionInfo\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12\x0f\n\x07service\x18\x04 \x01(\t\x12\x11\n\toperation\x18\x05 \x01(\t\x12\x44\n\x06status\x18\x06 \x01(\x0e\x32\x34.temporal.api.enums.v1.NexusOperationExecutionStatus\x12@\n\x05state\x18\x07 \x01(\x0e\x32\x31.temporal.api.enums.v1.PendingNexusOperationState\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07\x61ttempt\x18\x0b \x01(\x05\x12\x31\n\rschedule_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1alast_attempt_complete_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x10 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x12\x65xecution_duration\x18\x12 \x01(\x0b\x32\x19.google.protobuf.Duration\x12Y\n\x11\x63\x61ncellation_info\x18\x13 \x01(\x0b\x32>.temporal.api.nexus.v1.NexusOperationExecutionCancellationInfo\x12\x16\n\x0e\x62locked_reason\x18\x14 \x01(\t\x12\x12\n\nrequest_id\x18\x15 \x01(\t\x12\x17\n\x0foperation_token\x18\x16 \x01(\t\x12\x1e\n\x16state_transition_count\x18\x17 \x01(\x03\x12\x43\n\x11search_attributes\x18\x18 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12Y\n\x0cnexus_header\x18\x19 \x03(\x0b\x32\x43.temporal.api.nexus.v1.NexusOperationExecutionInfo.NexusHeaderEntry\x12\x38\n\ruser_metadata\x18\x1a \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x1b \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x10\n\x08identity\x18\x1c \x01(\t\x12\x18\n\x10state_size_bytes\x18\x1d \x01(\x03\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xdc\x03\n\x1fNexusOperationExecutionListInfo\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12\x0f\n\x07service\x18\x04 \x01(\t\x12\x11\n\toperation\x18\x05 \x01(\t\x12\x31\n\rschedule_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x06status\x18\x08 \x01(\x0e\x32\x34.temporal.api.enums.v1.NexusOperationExecutionStatus\x12\x43\n\x11search_attributes\x18\t \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1e\n\x16state_transition_count\x18\n \x01(\x03\x12\x35\n\x12\x65xecution_duration\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10state_size_bytes\x18\x0c \x01(\x03\x42\x84\x01\n\x18io.temporal.api.nexus.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/nexus/v1;nexus\xaa\x02\x17Temporalio.Api.Nexus.V1\xea\x02\x1aTemporalio::Api::Nexus::V1b\x06proto3' + b'\n#temporal/api/nexus/v1/message.proto\x12\x15temporal.api.nexus.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a"temporal/api/enums/v1/common.proto\x1a!temporal/api/enums/v1/nexus.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"V\n\x1ePropagatedSerializationContext\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t"\xe0\x01\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x13\n\x0bstack_trace\x18\x04 \x01(\t\x12>\n\x08metadata\x18\x02 \x03(\x0b\x32,.temporal.api.nexus.v1.Failure.MetadataEntry\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\x0c\x12-\n\x05\x63\x61use\x18\x05 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xa2\x01\n\x0cHandlerError\x12\x12\n\nerror_type\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure\x12M\n\x0eretry_behavior\x18\x03 \x01(\x0e\x32\x35.temporal.api.enums.v1.NexusHandlerErrorRetryBehavior"f\n\x1aUnsuccessfulOperationError\x12\x17\n\x0foperation_state\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure"!\n\x04Link\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t"\xd1\x02\n\x15StartOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x10\n\x08\x63\x61llback\x18\x04 \x01(\t\x12\x30\n\x07payload\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12Y\n\x0f\x63\x61llback_header\x18\x06 \x03(\x0b\x32@.temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry\x12*\n\x05links\x18\x07 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x1a\x35\n\x13\x43\x61llbackHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"o\n\x16\x43\x61ncelOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x18\n\x0coperation_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x17\n\x0foperation_token\x18\x04 \x01(\t"\xd0\x03\n\x07Request\x12:\n\x06header\x18\x01 \x03(\x0b\x32*.temporal.api.nexus.v1.Request.HeaderEntry\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0c\x63\x61pabilities\x18\x64 \x01(\x0b\x32+.temporal.api.nexus.v1.Request.Capabilities\x12G\n\x0fstart_operation\x18\x03 \x01(\x0b\x32,.temporal.api.nexus.v1.StartOperationRequestH\x00\x12I\n\x10\x63\x61ncel_operation\x18\x04 \x01(\x0b\x32-.temporal.api.nexus.v1.CancelOperationRequestH\x00\x12\x10\n\x08\x65ndpoint\x18\n \x01(\t\x1a\x32\n\x0c\x43\x61pabilities\x12"\n\x1atemporal_failure_responses\x18\x01 \x01(\x08\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07variant"\x92\x04\n\x16StartOperationResponse\x12J\n\x0csync_success\x18\x01 \x01(\x0b\x32\x32.temporal.api.nexus.v1.StartOperationResponse.SyncH\x00\x12L\n\rasync_success\x18\x02 \x01(\x0b\x32\x33.temporal.api.nexus.v1.StartOperationResponse.AsyncH\x00\x12P\n\x0foperation_error\x18\x03 \x01(\x0b\x32\x31.temporal.api.nexus.v1.UnsuccessfulOperationErrorB\x02\x18\x01H\x00\x12\x33\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x1a\x64\n\x04Sync\x12\x30\n\x07payload\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12*\n\x05links\x18\x02 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x1a\x66\n\x05\x41sync\x12\x18\n\x0coperation_id\x18\x01 \x01(\tB\x02\x18\x01\x12*\n\x05links\x18\x02 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x12\x17\n\x0foperation_token\x18\x03 \x01(\tB\t\n\x07variant"\x19\n\x17\x43\x61ncelOperationResponse"\xab\x01\n\x08Response\x12H\n\x0fstart_operation\x18\x01 \x01(\x0b\x32-.temporal.api.nexus.v1.StartOperationResponseH\x00\x12J\n\x10\x63\x61ncel_operation\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.CancelOperationResponseH\x00\x42\t\n\x07variant"\xd8\x01\n\x08\x45ndpoint\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\n\n\x02id\x18\x02 \x01(\t\x12\x31\n\x04spec\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.EndpointSpec\x12\x30\n\x0c\x63reated_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nurl_prefix\x18\x06 \x01(\t"\x89\x01\n\x0c\x45ndpointSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x35\n\x06target\x18\x03 \x01(\x0b\x32%.temporal.api.nexus.v1.EndpointTarget"\xe9\x01\n\x0e\x45ndpointTarget\x12>\n\x06worker\x18\x01 \x01(\x0b\x32,.temporal.api.nexus.v1.EndpointTarget.WorkerH\x00\x12\x42\n\x08\x65xternal\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.EndpointTarget.ExternalH\x00\x1a/\n\x06Worker\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x1a\x17\n\x08\x45xternal\x12\x0b\n\x03url\x18\x01 \x01(\tB\t\n\x07variant"\x9d\x03\n\'NexusOperationExecutionCancellationInfo\x12\x32\n\x0erequested_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x05state\x18\x02 \x01(\x0e\x32\x36.temporal.api.enums.v1.NexusOperationCancellationState\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\x07 \x01(\t\x12\x0e\n\x06reason\x18\x08 \x01(\t"\xff\n\n\x1bNexusOperationExecutionInfo\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12\x0f\n\x07service\x18\x04 \x01(\t\x12\x11\n\toperation\x18\x05 \x01(\t\x12\x44\n\x06status\x18\x06 \x01(\x0e\x32\x34.temporal.api.enums.v1.NexusOperationExecutionStatus\x12@\n\x05state\x18\x07 \x01(\x0e\x32\x31.temporal.api.enums.v1.PendingNexusOperationState\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07\x61ttempt\x18\x0b \x01(\x05\x12\x31\n\rschedule_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1alast_attempt_complete_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x10 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x12\x65xecution_duration\x18\x12 \x01(\x0b\x32\x19.google.protobuf.Duration\x12Y\n\x11\x63\x61ncellation_info\x18\x13 \x01(\x0b\x32>.temporal.api.nexus.v1.NexusOperationExecutionCancellationInfo\x12\x16\n\x0e\x62locked_reason\x18\x14 \x01(\t\x12\x12\n\nrequest_id\x18\x15 \x01(\t\x12\x17\n\x0foperation_token\x18\x16 \x01(\t\x12\x1e\n\x16state_transition_count\x18\x17 \x01(\x03\x12\x43\n\x11search_attributes\x18\x18 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12Y\n\x0cnexus_header\x18\x19 \x03(\x0b\x32\x43.temporal.api.nexus.v1.NexusOperationExecutionInfo.NexusHeaderEntry\x12\x38\n\ruser_metadata\x18\x1a \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x1b \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x10\n\x08identity\x18\x1c \x01(\t\x12\x18\n\x10state_size_bytes\x18\x1d \x01(\x03\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xdc\x03\n\x1fNexusOperationExecutionListInfo\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12\x0f\n\x07service\x18\x04 \x01(\t\x12\x11\n\toperation\x18\x05 \x01(\t\x12\x31\n\rschedule_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x06status\x18\x08 \x01(\x0e\x32\x34.temporal.api.enums.v1.NexusOperationExecutionStatus\x12\x43\n\x11search_attributes\x18\t \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x1e\n\x16state_transition_count\x18\n \x01(\x03\x12\x35\n\x12\x65xecution_duration\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10state_size_bytes\x18\x0c \x01(\x03\x42\x84\x01\n\x18io.temporal.api.nexus.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/nexus/v1;nexus\xaa\x02\x17Temporalio.Api.Nexus.V1\xea\x02\x1aTemporalio::Api::Nexus::V1b\x06proto3' ) - -_FAILURE = DESCRIPTOR.message_types_by_name["Failure"] -_FAILURE_METADATAENTRY = _FAILURE.nested_types_by_name["MetadataEntry"] -_HANDLERERROR = DESCRIPTOR.message_types_by_name["HandlerError"] -_UNSUCCESSFULOPERATIONERROR = DESCRIPTOR.message_types_by_name[ - "UnsuccessfulOperationError" -] -_LINK = DESCRIPTOR.message_types_by_name["Link"] -_STARTOPERATIONREQUEST = DESCRIPTOR.message_types_by_name["StartOperationRequest"] -_STARTOPERATIONREQUEST_CALLBACKHEADERENTRY = ( - _STARTOPERATIONREQUEST.nested_types_by_name["CallbackHeaderEntry"] -) -_CANCELOPERATIONREQUEST = DESCRIPTOR.message_types_by_name["CancelOperationRequest"] -_REQUEST = DESCRIPTOR.message_types_by_name["Request"] -_REQUEST_CAPABILITIES = _REQUEST.nested_types_by_name["Capabilities"] -_REQUEST_HEADERENTRY = _REQUEST.nested_types_by_name["HeaderEntry"] -_STARTOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name["StartOperationResponse"] -_STARTOPERATIONRESPONSE_SYNC = _STARTOPERATIONRESPONSE.nested_types_by_name["Sync"] -_STARTOPERATIONRESPONSE_ASYNC = _STARTOPERATIONRESPONSE.nested_types_by_name["Async"] -_CANCELOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name["CancelOperationResponse"] -_RESPONSE = DESCRIPTOR.message_types_by_name["Response"] -_ENDPOINT = DESCRIPTOR.message_types_by_name["Endpoint"] -_ENDPOINTSPEC = DESCRIPTOR.message_types_by_name["EndpointSpec"] -_ENDPOINTTARGET = DESCRIPTOR.message_types_by_name["EndpointTarget"] -_ENDPOINTTARGET_WORKER = _ENDPOINTTARGET.nested_types_by_name["Worker"] -_ENDPOINTTARGET_EXTERNAL = _ENDPOINTTARGET.nested_types_by_name["External"] -_NEXUSOPERATIONEXECUTIONCANCELLATIONINFO = DESCRIPTOR.message_types_by_name[ - "NexusOperationExecutionCancellationInfo" -] -_NEXUSOPERATIONEXECUTIONINFO = DESCRIPTOR.message_types_by_name[ - "NexusOperationExecutionInfo" -] -_NEXUSOPERATIONEXECUTIONINFO_NEXUSHEADERENTRY = ( - _NEXUSOPERATIONEXECUTIONINFO.nested_types_by_name["NexusHeaderEntry"] -) -_NEXUSOPERATIONEXECUTIONLISTINFO = DESCRIPTOR.message_types_by_name[ - "NexusOperationExecutionListInfo" -] -Failure = _reflection.GeneratedProtocolMessageType( - "Failure", - (_message.Message,), - { - "MetadataEntry": _reflection.GeneratedProtocolMessageType( - "MetadataEntry", - (_message.Message,), - { - "DESCRIPTOR": _FAILURE_METADATAENTRY, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Failure.MetadataEntry) - }, - ), - "DESCRIPTOR": _FAILURE, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Failure) - }, -) -_sym_db.RegisterMessage(Failure) -_sym_db.RegisterMessage(Failure.MetadataEntry) - -HandlerError = _reflection.GeneratedProtocolMessageType( - "HandlerError", - (_message.Message,), - { - "DESCRIPTOR": _HANDLERERROR, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.HandlerError) - }, -) -_sym_db.RegisterMessage(HandlerError) - -UnsuccessfulOperationError = _reflection.GeneratedProtocolMessageType( - "UnsuccessfulOperationError", - (_message.Message,), - { - "DESCRIPTOR": _UNSUCCESSFULOPERATIONERROR, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.UnsuccessfulOperationError) - }, -) -_sym_db.RegisterMessage(UnsuccessfulOperationError) - -Link = _reflection.GeneratedProtocolMessageType( - "Link", - (_message.Message,), - { - "DESCRIPTOR": _LINK, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Link) - }, -) -_sym_db.RegisterMessage(Link) - -StartOperationRequest = _reflection.GeneratedProtocolMessageType( - "StartOperationRequest", - (_message.Message,), - { - "CallbackHeaderEntry": _reflection.GeneratedProtocolMessageType( - "CallbackHeaderEntry", - (_message.Message,), - { - "DESCRIPTOR": _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry) - }, - ), - "DESCRIPTOR": _STARTOPERATIONREQUEST, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationRequest) - }, -) -_sym_db.RegisterMessage(StartOperationRequest) -_sym_db.RegisterMessage(StartOperationRequest.CallbackHeaderEntry) - -CancelOperationRequest = _reflection.GeneratedProtocolMessageType( - "CancelOperationRequest", - (_message.Message,), - { - "DESCRIPTOR": _CANCELOPERATIONREQUEST, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.CancelOperationRequest) - }, -) -_sym_db.RegisterMessage(CancelOperationRequest) - -Request = _reflection.GeneratedProtocolMessageType( - "Request", - (_message.Message,), - { - "Capabilities": _reflection.GeneratedProtocolMessageType( - "Capabilities", - (_message.Message,), - { - "DESCRIPTOR": _REQUEST_CAPABILITIES, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Request.Capabilities) - }, - ), - "HeaderEntry": _reflection.GeneratedProtocolMessageType( - "HeaderEntry", - (_message.Message,), - { - "DESCRIPTOR": _REQUEST_HEADERENTRY, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Request.HeaderEntry) - }, - ), - "DESCRIPTOR": _REQUEST, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Request) - }, -) -_sym_db.RegisterMessage(Request) -_sym_db.RegisterMessage(Request.Capabilities) -_sym_db.RegisterMessage(Request.HeaderEntry) - -StartOperationResponse = _reflection.GeneratedProtocolMessageType( - "StartOperationResponse", - (_message.Message,), - { - "Sync": _reflection.GeneratedProtocolMessageType( - "Sync", - (_message.Message,), - { - "DESCRIPTOR": _STARTOPERATIONRESPONSE_SYNC, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationResponse.Sync) - }, - ), - "Async": _reflection.GeneratedProtocolMessageType( - "Async", - (_message.Message,), - { - "DESCRIPTOR": _STARTOPERATIONRESPONSE_ASYNC, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationResponse.Async) - }, - ), - "DESCRIPTOR": _STARTOPERATIONRESPONSE, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationResponse) - }, -) -_sym_db.RegisterMessage(StartOperationResponse) -_sym_db.RegisterMessage(StartOperationResponse.Sync) -_sym_db.RegisterMessage(StartOperationResponse.Async) - -CancelOperationResponse = _reflection.GeneratedProtocolMessageType( - "CancelOperationResponse", - (_message.Message,), - { - "DESCRIPTOR": _CANCELOPERATIONRESPONSE, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.CancelOperationResponse) - }, -) -_sym_db.RegisterMessage(CancelOperationResponse) - -Response = _reflection.GeneratedProtocolMessageType( - "Response", - (_message.Message,), - { - "DESCRIPTOR": _RESPONSE, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Response) - }, -) -_sym_db.RegisterMessage(Response) - -Endpoint = _reflection.GeneratedProtocolMessageType( - "Endpoint", - (_message.Message,), - { - "DESCRIPTOR": _ENDPOINT, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Endpoint) - }, -) -_sym_db.RegisterMessage(Endpoint) - -EndpointSpec = _reflection.GeneratedProtocolMessageType( - "EndpointSpec", - (_message.Message,), - { - "DESCRIPTOR": _ENDPOINTSPEC, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointSpec) - }, -) -_sym_db.RegisterMessage(EndpointSpec) - -EndpointTarget = _reflection.GeneratedProtocolMessageType( - "EndpointTarget", - (_message.Message,), - { - "Worker": _reflection.GeneratedProtocolMessageType( - "Worker", - (_message.Message,), - { - "DESCRIPTOR": _ENDPOINTTARGET_WORKER, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointTarget.Worker) - }, - ), - "External": _reflection.GeneratedProtocolMessageType( - "External", - (_message.Message,), - { - "DESCRIPTOR": _ENDPOINTTARGET_EXTERNAL, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointTarget.External) - }, - ), - "DESCRIPTOR": _ENDPOINTTARGET, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointTarget) - }, -) -_sym_db.RegisterMessage(EndpointTarget) -_sym_db.RegisterMessage(EndpointTarget.Worker) -_sym_db.RegisterMessage(EndpointTarget.External) - -NexusOperationExecutionCancellationInfo = _reflection.GeneratedProtocolMessageType( - "NexusOperationExecutionCancellationInfo", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONEXECUTIONCANCELLATIONINFO, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.NexusOperationExecutionCancellationInfo) - }, -) -_sym_db.RegisterMessage(NexusOperationExecutionCancellationInfo) - -NexusOperationExecutionInfo = _reflection.GeneratedProtocolMessageType( - "NexusOperationExecutionInfo", - (_message.Message,), - { - "NexusHeaderEntry": _reflection.GeneratedProtocolMessageType( - "NexusHeaderEntry", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONEXECUTIONINFO_NEXUSHEADERENTRY, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.NexusOperationExecutionInfo.NexusHeaderEntry) - }, - ), - "DESCRIPTOR": _NEXUSOPERATIONEXECUTIONINFO, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.NexusOperationExecutionInfo) - }, -) -_sym_db.RegisterMessage(NexusOperationExecutionInfo) -_sym_db.RegisterMessage(NexusOperationExecutionInfo.NexusHeaderEntry) - -NexusOperationExecutionListInfo = _reflection.GeneratedProtocolMessageType( - "NexusOperationExecutionListInfo", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONEXECUTIONLISTINFO, - "__module__": "temporalio.api.nexus.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.NexusOperationExecutionListInfo) - }, -) -_sym_db.RegisterMessage(NexusOperationExecutionListInfo) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.nexus.v1B\014MessageProtoP\001Z!go.temporal.io/api/nexus/v1;nexus\252\002\027Temporalio.Api.Nexus.V1\352\002\032Temporalio::Api::Nexus::V1" @@ -364,54 +61,56 @@ ]._serialized_options = b"\030\001" _NEXUSOPERATIONEXECUTIONINFO_NEXUSHEADERENTRY._options = None _NEXUSOPERATIONEXECUTIONINFO_NEXUSHEADERENTRY._serialized_options = b"8\001" - _FAILURE._serialized_start = 317 - _FAILURE._serialized_end = 541 - _FAILURE_METADATAENTRY._serialized_start = 494 - _FAILURE_METADATAENTRY._serialized_end = 541 - _HANDLERERROR._serialized_start = 544 - _HANDLERERROR._serialized_end = 706 - _UNSUCCESSFULOPERATIONERROR._serialized_start = 708 - _UNSUCCESSFULOPERATIONERROR._serialized_end = 810 - _LINK._serialized_start = 812 - _LINK._serialized_end = 845 - _STARTOPERATIONREQUEST._serialized_start = 848 - _STARTOPERATIONREQUEST._serialized_end = 1185 - _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_start = 1132 - _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_end = 1185 - _CANCELOPERATIONREQUEST._serialized_start = 1187 - _CANCELOPERATIONREQUEST._serialized_end = 1298 - _REQUEST._serialized_start = 1301 - _REQUEST._serialized_end = 1765 - _REQUEST_CAPABILITIES._serialized_start = 1657 - _REQUEST_CAPABILITIES._serialized_end = 1707 - _REQUEST_HEADERENTRY._serialized_start = 1709 - _REQUEST_HEADERENTRY._serialized_end = 1754 - _STARTOPERATIONRESPONSE._serialized_start = 1768 - _STARTOPERATIONRESPONSE._serialized_end = 2298 - _STARTOPERATIONRESPONSE_SYNC._serialized_start = 2083 - _STARTOPERATIONRESPONSE_SYNC._serialized_end = 2183 - _STARTOPERATIONRESPONSE_ASYNC._serialized_start = 2185 - _STARTOPERATIONRESPONSE_ASYNC._serialized_end = 2287 - _CANCELOPERATIONRESPONSE._serialized_start = 2300 - _CANCELOPERATIONRESPONSE._serialized_end = 2325 - _RESPONSE._serialized_start = 2328 - _RESPONSE._serialized_end = 2499 - _ENDPOINT._serialized_start = 2502 - _ENDPOINT._serialized_end = 2718 - _ENDPOINTSPEC._serialized_start = 2721 - _ENDPOINTSPEC._serialized_end = 2858 - _ENDPOINTTARGET._serialized_start = 2861 - _ENDPOINTTARGET._serialized_end = 3094 - _ENDPOINTTARGET_WORKER._serialized_start = 3011 - _ENDPOINTTARGET_WORKER._serialized_end = 3058 - _ENDPOINTTARGET_EXTERNAL._serialized_start = 3060 - _ENDPOINTTARGET_EXTERNAL._serialized_end = 3083 - _NEXUSOPERATIONEXECUTIONCANCELLATIONINFO._serialized_start = 3097 - _NEXUSOPERATIONEXECUTIONCANCELLATIONINFO._serialized_end = 3510 - _NEXUSOPERATIONEXECUTIONINFO._serialized_start = 3513 - _NEXUSOPERATIONEXECUTIONINFO._serialized_end = 4920 - _NEXUSOPERATIONEXECUTIONINFO_NEXUSHEADERENTRY._serialized_start = 4870 - _NEXUSOPERATIONEXECUTIONINFO_NEXUSHEADERENTRY._serialized_end = 4920 - _NEXUSOPERATIONEXECUTIONLISTINFO._serialized_start = 4923 - _NEXUSOPERATIONEXECUTIONLISTINFO._serialized_end = 5399 + _PROPAGATEDSERIALIZATIONCONTEXT._serialized_start = 316 + _PROPAGATEDSERIALIZATIONCONTEXT._serialized_end = 402 + _FAILURE._serialized_start = 405 + _FAILURE._serialized_end = 629 + _FAILURE_METADATAENTRY._serialized_start = 582 + _FAILURE_METADATAENTRY._serialized_end = 629 + _HANDLERERROR._serialized_start = 632 + _HANDLERERROR._serialized_end = 794 + _UNSUCCESSFULOPERATIONERROR._serialized_start = 796 + _UNSUCCESSFULOPERATIONERROR._serialized_end = 898 + _LINK._serialized_start = 900 + _LINK._serialized_end = 933 + _STARTOPERATIONREQUEST._serialized_start = 936 + _STARTOPERATIONREQUEST._serialized_end = 1273 + _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_start = 1220 + _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_end = 1273 + _CANCELOPERATIONREQUEST._serialized_start = 1275 + _CANCELOPERATIONREQUEST._serialized_end = 1386 + _REQUEST._serialized_start = 1389 + _REQUEST._serialized_end = 1853 + _REQUEST_CAPABILITIES._serialized_start = 1745 + _REQUEST_CAPABILITIES._serialized_end = 1795 + _REQUEST_HEADERENTRY._serialized_start = 1797 + _REQUEST_HEADERENTRY._serialized_end = 1842 + _STARTOPERATIONRESPONSE._serialized_start = 1856 + _STARTOPERATIONRESPONSE._serialized_end = 2386 + _STARTOPERATIONRESPONSE_SYNC._serialized_start = 2171 + _STARTOPERATIONRESPONSE_SYNC._serialized_end = 2271 + _STARTOPERATIONRESPONSE_ASYNC._serialized_start = 2273 + _STARTOPERATIONRESPONSE_ASYNC._serialized_end = 2375 + _CANCELOPERATIONRESPONSE._serialized_start = 2388 + _CANCELOPERATIONRESPONSE._serialized_end = 2413 + _RESPONSE._serialized_start = 2416 + _RESPONSE._serialized_end = 2587 + _ENDPOINT._serialized_start = 2590 + _ENDPOINT._serialized_end = 2806 + _ENDPOINTSPEC._serialized_start = 2809 + _ENDPOINTSPEC._serialized_end = 2946 + _ENDPOINTTARGET._serialized_start = 2949 + _ENDPOINTTARGET._serialized_end = 3182 + _ENDPOINTTARGET_WORKER._serialized_start = 3099 + _ENDPOINTTARGET_WORKER._serialized_end = 3146 + _ENDPOINTTARGET_EXTERNAL._serialized_start = 3148 + _ENDPOINTTARGET_EXTERNAL._serialized_end = 3171 + _NEXUSOPERATIONEXECUTIONCANCELLATIONINFO._serialized_start = 3185 + _NEXUSOPERATIONEXECUTIONCANCELLATIONINFO._serialized_end = 3598 + _NEXUSOPERATIONEXECUTIONINFO._serialized_start = 3601 + _NEXUSOPERATIONEXECUTIONINFO._serialized_end = 5008 + _NEXUSOPERATIONEXECUTIONINFO_NEXUSHEADERENTRY._serialized_start = 4958 + _NEXUSOPERATIONEXECUTIONINFO_NEXUSHEADERENTRY._serialized_end = 5008 + _NEXUSOPERATIONEXECUTIONLISTINFO._serialized_start = 5011 + _NEXUSOPERATIONEXECUTIONLISTINFO._serialized_end = 5487 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/nexus/v1/message_pb2.pyi b/temporalio/api/nexus/v1/message_pb2.pyi index ecdd004e2..4980da682 100644 --- a/temporalio/api/nexus/v1/message_pb2.pyi +++ b/temporalio/api/nexus/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -19,13 +19,37 @@ import temporalio.api.enums.v1.nexus_pb2 import temporalio.api.failure.v1.message_pb2 import temporalio.api.sdk.v1.user_metadata_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final +class PropagatedSerializationContext(google.protobuf.message.Message): + """PropagatedSerializationContext represents the context of the Nexus caller that started this execution.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENDPOINT_FIELD_NUMBER: builtins.int + SERVICE_FIELD_NUMBER: builtins.int + OPERATION_FIELD_NUMBER: builtins.int + endpoint: builtins.str + service: builtins.str + operation: builtins.str + def __init__( + self, + *, + endpoint: builtins.str = ..., + service: builtins.str = ..., + operation: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing.Literal[ + "endpoint", b"endpoint", "operation", b"operation", "service", b"service" + ], + ) -> None: ... + +global___PropagatedSerializationContext = PropagatedSerializationContext + +@typing.final class Failure(google.protobuf.message.Message): """A general purpose failure message. See: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure @@ -33,6 +57,7 @@ class Failure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class MetadataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -47,8 +72,7 @@ class Failure(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... MESSAGE_FIELD_NUMBER: builtins.int @@ -58,12 +82,12 @@ class Failure(google.protobuf.message.Message): CAUSE_FIELD_NUMBER: builtins.int message: builtins.str stack_trace: builtins.str + details: builtins.bytes + """UTF-8 encoded JSON serializable details.""" @property def metadata( self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - details: builtins.bytes - """UTF-8 encoded JSON serializable details.""" @property def cause(self) -> global___Failure: ... def __init__( @@ -76,11 +100,11 @@ class Failure(google.protobuf.message.Message): cause: global___Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["cause", b"cause"] + self, field_name: typing.Literal["cause", b"cause"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cause", b"cause", "details", @@ -96,6 +120,7 @@ class Failure(google.protobuf.message.Message): global___Failure = Failure +@typing.final class HandlerError(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -104,12 +129,12 @@ class HandlerError(google.protobuf.message.Message): RETRY_BEHAVIOR_FIELD_NUMBER: builtins.int error_type: builtins.str """See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.""" - @property - def failure(self) -> global___Failure: ... retry_behavior: ( temporalio.api.enums.v1.nexus_pb2.NexusHandlerErrorRetryBehavior.ValueType ) """Retry behavior, defaults to the retry behavior of the error type as defined in the spec.""" + @property + def failure(self) -> global___Failure: ... def __init__( self, *, @@ -118,11 +143,11 @@ class HandlerError(google.protobuf.message.Message): retry_behavior: temporalio.api.enums.v1.nexus_pb2.NexusHandlerErrorRetryBehavior.ValueType = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "error_type", b"error_type", "failure", @@ -134,6 +159,7 @@ class HandlerError(google.protobuf.message.Message): global___HandlerError = HandlerError +@typing.final class UnsuccessfulOperationError(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -150,17 +176,18 @@ class UnsuccessfulOperationError(google.protobuf.message.Message): failure: global___Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "operation_state", b"operation_state" ], ) -> None: ... global___UnsuccessfulOperationError = UnsuccessfulOperationError +@typing.final class Link(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -176,16 +203,18 @@ class Link(google.protobuf.message.Message): type: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["type", b"type", "url", b"url"] + self, field_name: typing.Literal["type", b"type", "url", b"url"] ) -> None: ... global___Link = Link +@typing.final class StartOperationRequest(google.protobuf.message.Message): """A request to start an operation.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class CallbackHeaderEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -200,8 +229,7 @@ class StartOperationRequest(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SERVICE_FIELD_NUMBER: builtins.int @@ -222,11 +250,13 @@ class StartOperationRequest(google.protobuf.message.Message): @property def payload(self) -> temporalio.api.common.v1.message_pb2.Payload: """Full request body from the incoming HTTP request.""" + @property def callback_header( self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """Header that is expected to be attached to the callback request when the operation completes.""" + @property def links( self, @@ -234,6 +264,7 @@ class StartOperationRequest(google.protobuf.message.Message): global___Link ]: """Links contain caller information and can be attached to the operations started by the handler.""" + def __init__( self, *, @@ -247,11 +278,11 @@ class StartOperationRequest(google.protobuf.message.Message): links: collections.abc.Iterable[global___Link] | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["payload", b"payload"] + self, field_name: typing.Literal["payload", b"payload"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "callback", b"callback", "callback_header", @@ -271,6 +302,7 @@ class StartOperationRequest(google.protobuf.message.Message): global___StartOperationRequest = StartOperationRequest +@typing.final class CancelOperationRequest(google.protobuf.message.Message): """A request to cancel an operation.""" @@ -301,7 +333,7 @@ class CancelOperationRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "operation", b"operation", "operation_id", @@ -315,11 +347,13 @@ class CancelOperationRequest(google.protobuf.message.Message): global___CancelOperationRequest = CancelOperationRequest +@typing.final class Request(google.protobuf.message.Message): """A Nexus request.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Capabilities(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -335,11 +369,12 @@ class Request(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "temporal_failure_responses", b"temporal_failure_responses" ], ) -> None: ... + @typing.final class HeaderEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -354,8 +389,7 @@ class Request(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... HEADER_FIELD_NUMBER: builtins.int @@ -364,6 +398,10 @@ class Request(google.protobuf.message.Message): START_OPERATION_FIELD_NUMBER: builtins.int CANCEL_OPERATION_FIELD_NUMBER: builtins.int ENDPOINT_FIELD_NUMBER: builtins.int + endpoint: builtins.str + """The endpoint this request was addressed to before forwarding to the worker. + Supported from server version 1.30.0. + """ @property def header( self, @@ -371,22 +409,20 @@ class Request(google.protobuf.message.Message): """Headers extracted from the original request in the Temporal frontend. When using Nexus over HTTP, this includes the request's HTTP headers ignoring multiple values. """ + @property def scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The timestamp when the request was scheduled in the frontend. (-- api-linter: core::0142::time-field-names=disabled aip.dev/not-precedent: Not following linter rules. --) """ + @property def capabilities(self) -> global___Request.Capabilities: ... @property def start_operation(self) -> global___StartOperationRequest: ... @property def cancel_operation(self) -> global___CancelOperationRequest: ... - endpoint: builtins.str - """The endpoint this request was addressed to before forwarding to the worker. - Supported from server version 1.30.0. - """ def __init__( self, *, @@ -399,7 +435,7 @@ class Request(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_operation", b"cancel_operation", "capabilities", @@ -414,7 +450,7 @@ class Request(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_operation", b"cancel_operation", "capabilities", @@ -432,16 +468,18 @@ class Request(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["start_operation", "cancel_operation"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["start_operation", "cancel_operation"] | None: ... global___Request = Request +@typing.final class StartOperationResponse(google.protobuf.message.Message): """Response variant for StartOperationRequest.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Sync(google.protobuf.message.Message): """An operation completed successfully.""" @@ -464,15 +502,13 @@ class StartOperationResponse(google.protobuf.message.Message): links: collections.abc.Iterable[global___Link] | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["payload", b"payload"] + self, field_name: typing.Literal["payload", b"payload"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "links", b"links", "payload", b"payload" - ], + self, field_name: typing.Literal["links", b"links", "payload", b"payload"] ) -> None: ... + @typing.final class Async(google.protobuf.message.Message): """The operation will complete asynchronously. The returned ID can be used to reference this operation. @@ -485,13 +521,13 @@ class StartOperationResponse(google.protobuf.message.Message): OPERATION_TOKEN_FIELD_NUMBER: builtins.int operation_id: builtins.str """Deprecated. Renamed to operation_token.""" + operation_token: builtins.str @property def links( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ global___Link ]: ... - operation_token: builtins.str def __init__( self, *, @@ -501,7 +537,7 @@ class StartOperationResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "links", b"links", "operation_id", @@ -524,11 +560,13 @@ class StartOperationResponse(google.protobuf.message.Message): """The operation completed unsuccessfully (failed or canceled). Deprecated. Use the failure variant instead. """ + @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The operation completed unsuccessfully (failed or canceled). Failure object must contain an ApplicationFailureInfo or CanceledFailureInfo object. """ + def __init__( self, *, @@ -539,7 +577,7 @@ class StartOperationResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_success", b"async_success", "failure", @@ -554,7 +592,7 @@ class StartOperationResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "async_success", b"async_success", "failure", @@ -568,16 +606,15 @@ class StartOperationResponse(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] + self, oneof_group: typing.Literal["variant", b"variant"] ) -> ( - typing_extensions.Literal[ - "sync_success", "async_success", "operation_error", "failure" - ] + typing.Literal["sync_success", "async_success", "operation_error", "failure"] | None ): ... global___StartOperationResponse = StartOperationResponse +@typing.final class CancelOperationResponse(google.protobuf.message.Message): """Response variant for CancelOperationRequest.""" @@ -589,6 +626,7 @@ class CancelOperationResponse(google.protobuf.message.Message): global___CancelOperationResponse = CancelOperationResponse +@typing.final class Response(google.protobuf.message.Message): """A response indicating that the handler has successfully processed a request.""" @@ -608,7 +646,7 @@ class Response(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_operation", b"cancel_operation", "start_operation", @@ -619,7 +657,7 @@ class Response(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_operation", b"cancel_operation", "start_operation", @@ -629,11 +667,12 @@ class Response(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["start_operation", "cancel_operation"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["start_operation", "cancel_operation"] | None: ... global___Response = Response +@typing.final class Endpoint(google.protobuf.message.Message): """A cluster-global binding from an endpoint ID to a target for dispatching incoming Nexus requests.""" @@ -649,15 +688,22 @@ class Endpoint(google.protobuf.message.Message): """Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API.""" id: builtins.str """Unique server-generated endpoint ID.""" + url_prefix: builtins.str + """Server exposed URL prefix for invocation of operations on this endpoint. + This doesn't include the protocol, hostname or port as the server does not know how it should be accessed + publicly. The URL is stable in the face of endpoint renames. + """ @property def spec(self) -> global___EndpointSpec: """Spec for the endpoint.""" + @property def created_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the endpoint was created. (-- api-linter: core::0142::time-field-names=disabled aip.dev/not-precedent: Not following linter rules. --) """ + @property def last_modified_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The date and time when the endpoint was last modified. @@ -665,11 +711,7 @@ class Endpoint(google.protobuf.message.Message): (-- api-linter: core::0142::time-field-names=disabled aip.dev/not-precedent: Not following linter rules. --) """ - url_prefix: builtins.str - """Server exposed URL prefix for invocation of operations on this endpoint. - This doesn't include the protocol, hostname or port as the server does not know how it should be accessed - publicly. The URL is stable in the face of endpoint renames. - """ + def __init__( self, *, @@ -682,7 +724,7 @@ class Endpoint(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "last_modified_time", @@ -693,7 +735,7 @@ class Endpoint(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "created_time", b"created_time", "id", @@ -711,6 +753,7 @@ class Endpoint(google.protobuf.message.Message): global___Endpoint = Endpoint +@typing.final class EndpointSpec(google.protobuf.message.Message): """Contains mutable fields for an Endpoint.""" @@ -729,9 +772,11 @@ class EndpointSpec(google.protobuf.message.Message): If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint. By default, the server enforces a limit of 20,000 bytes for this entire payload. """ + @property def target(self) -> global___EndpointTarget: """Target to route requests to.""" + def __init__( self, *, @@ -741,24 +786,24 @@ class EndpointSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "description", b"description", "target", b"target" - ], + field_name: typing.Literal["description", b"description", "target", b"target"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "name", b"name", "target", b"target" ], ) -> None: ... global___EndpointSpec = EndpointSpec +@typing.final class EndpointTarget(google.protobuf.message.Message): """Target to route requests to.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Worker(google.protobuf.message.Message): """Target a worker polling on a Nexus task queue in a specific namespace.""" @@ -778,11 +823,12 @@ class EndpointTarget(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "task_queue", b"task_queue" ], ) -> None: ... + @typing.final class External(google.protobuf.message.Message): """Target an external server by URL. At a later point, this will support providing credentials, in the meantime, an http.RoundTripper can be injected @@ -799,9 +845,7 @@ class EndpointTarget(google.protobuf.message.Message): *, url: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["url", b"url"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["url", b"url"]) -> None: ... WORKER_FIELD_NUMBER: builtins.int EXTERNAL_FIELD_NUMBER: builtins.int @@ -817,22 +861,23 @@ class EndpointTarget(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "external", b"external", "variant", b"variant", "worker", b"worker" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "external", b"external", "variant", b"variant", "worker", b"worker" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["worker", "external"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["worker", "external"] | None: ... global___EndpointTarget = EndpointTarget +@typing.final class NexusOperationExecutionCancellationInfo(google.protobuf.message.Message): """NexusOperationExecutionCancellationInfo contains the state of a Nexus operation cancellation.""" @@ -846,27 +891,31 @@ class NexusOperationExecutionCancellationInfo(google.protobuf.message.Message): NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int BLOCKED_REASON_FIELD_NUMBER: builtins.int REASON_FIELD_NUMBER: builtins.int - @property - def requested_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """The time when cancellation was requested.""" state: temporalio.api.enums.v1.common_pb2.NexusOperationCancellationState.ValueType attempt: builtins.int """The number of attempts made to deliver the cancel operation request. This number represents a minimum bound since the attempt is incremented after the request completes. """ + blocked_reason: builtins.str + """If the state is BLOCKED, blocked reason provides additional information.""" + reason: builtins.str + """A reason that may be specified in the CancelNexusOperationRequest.""" + @property + def requested_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when cancellation was requested.""" + @property def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the last attempt completed.""" + @property def last_attempt_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The last attempt's failure, if any.""" + @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the next attempt is scheduled.""" - blocked_reason: builtins.str - """If the state is BLOCKED, blocked reason provides additional information.""" - reason: builtins.str - """A reason that may be specified in the CancelNexusOperationRequest.""" + def __init__( self, *, @@ -884,7 +933,7 @@ class NexusOperationExecutionCancellationInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "last_attempt_complete_time", b"last_attempt_complete_time", "last_attempt_failure", @@ -897,7 +946,7 @@ class NexusOperationExecutionCancellationInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "blocked_reason", @@ -921,11 +970,13 @@ global___NexusOperationExecutionCancellationInfo = ( NexusOperationExecutionCancellationInfo ) +@typing.final class NexusOperationExecutionInfo(google.protobuf.message.Message): """Full current state of a standalone Nexus operation, as of the time of the request.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class NexusHeaderEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -940,8 +991,7 @@ class NexusOperationExecutionInfo(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... OPERATION_ID_FIELD_NUMBER: builtins.int @@ -988,66 +1038,80 @@ class NexusOperationExecutionInfo(google.protobuf.message.Message): """ state: temporalio.api.enums.v1.common_pb2.PendingNexusOperationState.ValueType """More detailed breakdown of NEXUS_OPERATION_EXECUTION_STATUS_RUNNING.""" + attempt: builtins.int + """The number of attempts made to deliver the start operation request. + This number is approximate, it is incremented when a task is added to the history queue. + In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task + was never executed. + """ + blocked_reason: builtins.str + """If the state is BLOCKED, blocked reason provides additional information.""" + request_id: builtins.str + """Server-generated request ID used as an idempotency token when submitting start requests to + the handler. Distinct from the request_id in StartNexusOperationRequest, which is the + caller-side idempotency key for the StartNexusOperation RPC itself. + """ + operation_token: builtins.str + """Operation token. Only set for asynchronous operations after a successful StartOperation call.""" + state_transition_count: builtins.int + """Incremented each time the operation's state is mutated in persistence.""" + identity: builtins.str + """The identity of the client who started this operation.""" + state_size_bytes: builtins.int + """Updated once on scheduled and once on terminal status.""" @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-close timeout for this operation. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-start timeout for this operation. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Start-to-close timeout for this operation. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ - attempt: builtins.int - """The number of attempts made to deliver the start operation request. - This number is approximate, it is incremented when a task is added to the history queue. - In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task - was never executed. - """ + @property def schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time the operation was originally scheduled via a StartNexusOperation request.""" + @property def expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Scheduled time + schedule to close timeout.""" + @property def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time when the operation transitioned to a closed state.""" + @property def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the last attempt completed.""" + @property def last_attempt_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The last attempt's failure, if any.""" + @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the next attempt is scheduled.""" + @property def execution_duration(self) -> google.protobuf.duration_pb2.Duration: """Elapsed time from schedule_time to now for running operations or to close_time for closed operations, including all attempts and backoff between attempts. """ + @property def cancellation_info(self) -> global___NexusOperationExecutionCancellationInfo: ... - blocked_reason: builtins.str - """If the state is BLOCKED, blocked reason provides additional information.""" - request_id: builtins.str - """Server-generated request ID used as an idempotency token when submitting start requests to - the handler. Distinct from the request_id in StartNexusOperationRequest, which is the - caller-side idempotency key for the StartNexusOperation RPC itself. - """ - operation_token: builtins.str - """Operation token. Only set for asynchronous operations after a successful StartOperation call.""" - state_transition_count: builtins.int - """Incremented each time the operation's state is mutated in persistence.""" @property def search_attributes( self, @@ -1057,9 +1121,11 @@ class NexusOperationExecutionInfo(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """Header for context propagation and tracing purposes.""" + @property def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: """Metadata for use by user interfaces to display the fixed as-of-start summary and details of the operation.""" + @property def links( self, @@ -1067,10 +1133,7 @@ class NexusOperationExecutionInfo(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links attached by the handler of this operation on start or completion.""" - identity: builtins.str - """The identity of the client who started this operation.""" - state_size_bytes: builtins.int - """Updated once on scheduled and once on terminal status.""" + def __init__( self, *, @@ -1113,7 +1176,7 @@ class NexusOperationExecutionInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancellation_info", b"cancellation_info", "close_time", @@ -1144,7 +1207,7 @@ class NexusOperationExecutionInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "blocked_reason", @@ -1208,6 +1271,7 @@ class NexusOperationExecutionInfo(google.protobuf.message.Message): global___NexusOperationExecutionInfo = NexusOperationExecutionInfo +@typing.final class NexusOperationExecutionListInfo(google.protobuf.message.Message): """Limited Nexus operation information returned in the list response. When adding fields here, ensure that it is also present in NexusOperationExecutionInfo (note that it may already be present in @@ -1238,28 +1302,32 @@ class NexusOperationExecutionListInfo(google.protobuf.message.Message): """Service name.""" operation: builtins.str """Operation name.""" + status: temporalio.api.enums.v1.nexus_pb2.NexusOperationExecutionStatus.ValueType + """The status is updated once, when the operation is originally scheduled, and again when the operation reaches a terminal status.""" + state_transition_count: builtins.int + """Updated on terminal status.""" + state_size_bytes: builtins.int + """Updated once on scheduled and once on terminal status.""" @property def schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time the operation was originally scheduled via a StartNexusOperation request.""" + @property def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """If the operation is in a terminal status, this field represents the time the operation transitioned to that status.""" - status: temporalio.api.enums.v1.nexus_pb2.NexusOperationExecutionStatus.ValueType - """The status is updated once, when the operation is originally scheduled, and again when the operation reaches a terminal status.""" + @property def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: """Search attributes from the start request.""" - state_transition_count: builtins.int - """Updated on terminal status.""" + @property def execution_duration(self) -> google.protobuf.duration_pb2.Duration: """The difference between close time and scheduled time. This field is only populated if the operation is closed. """ - state_size_bytes: builtins.int - """Updated once on scheduled and once on terminal status.""" + def __init__( self, *, @@ -1279,7 +1347,7 @@ class NexusOperationExecutionListInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "close_time", b"close_time", "execution_duration", @@ -1292,7 +1360,7 @@ class NexusOperationExecutionListInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "close_time", b"close_time", "endpoint", diff --git a/tests/contrib/deepagents/__init__.py b/temporalio/api/nexusoperation/__init__.py similarity index 100% rename from tests/contrib/deepagents/__init__.py rename to temporalio/api/nexusoperation/__init__.py diff --git a/temporalio/api/nexusoperation/v1/__init__.py b/temporalio/api/nexusoperation/v1/__init__.py new file mode 100644 index 000000000..635700305 --- /dev/null +++ b/temporalio/api/nexusoperation/v1/__init__.py @@ -0,0 +1,6 @@ +from .message_pb2 import CallbackInfo, OnConflictOptions + +__all__ = [ + "CallbackInfo", + "OnConflictOptions", +] diff --git a/temporalio/api/nexusoperation/v1/message_pb2.py b/temporalio/api/nexusoperation/v1/message_pb2.py new file mode 100644 index 000000000..a9d16256d --- /dev/null +++ b/temporalio/api/nexusoperation/v1/message_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: temporal/api/nexusoperation/v1/message.proto +"""Generated protocol buffer code.""" + +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from temporalio.api.callback.v1 import ( + message_pb2 as temporal_dot_api_dot_callback_dot_v1_dot_message__pb2, +) + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n,temporal/api/nexusoperation/v1/message.proto\x12\x1etemporal.api.nexusoperation.v1\x1a&temporal/api/callback/v1/message.proto"\x97\x02\n\x0c\x43\x61llbackInfo\x12\x45\n\x07trigger\x18\x01 \x01(\x0b\x32\x34.temporal.api.nexusoperation.v1.CallbackInfo.Trigger\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.callback.v1.CallbackInfo\x1a\x14\n\x12OperationCompleted\x1at\n\x07Trigger\x12^\n\x13operation_completed\x18\x01 \x01(\x0b\x32?.temporal.api.nexusoperation.v1.CallbackInfo.OperationCompletedH\x00\x42\t\n\x07variant"i\n\x11OnConflictOptions\x12\x19\n\x11\x61ttach_request_id\x18\x01 \x01(\x08\x12#\n\x1b\x61ttach_completion_callbacks\x18\x02 \x01(\x08\x12\x14\n\x0c\x61ttach_links\x18\x03 \x01(\x08\x42\xb1\x01\n!io.temporal.api.nexusoperation.v1B\x0cMessageProtoP\x01Z3go.temporal.io/api/nexusoperation/v1;nexusoperation\xaa\x02 Temporalio.Api.NexusOperation.V1\xea\x02#Temporalio::Api::NexusOperation::V1b\x06proto3' +) + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b"\n!io.temporal.api.nexusoperation.v1B\014MessageProtoP\001Z3go.temporal.io/api/nexusoperation/v1;nexusoperation\252\002 Temporalio.Api.NexusOperation.V1\352\002#Temporalio::Api::NexusOperation::V1" + _CALLBACKINFO._serialized_start = 121 + _CALLBACKINFO._serialized_end = 400 + _CALLBACKINFO_OPERATIONCOMPLETED._serialized_start = 262 + _CALLBACKINFO_OPERATIONCOMPLETED._serialized_end = 282 + _CALLBACKINFO_TRIGGER._serialized_start = 284 + _CALLBACKINFO_TRIGGER._serialized_end = 400 + _ONCONFLICTOPTIONS._serialized_start = 402 + _ONCONFLICTOPTIONS._serialized_end = 507 +# @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/nexusoperation/v1/message_pb2.pyi b/temporalio/api/nexusoperation/v1/message_pb2.pyi new file mode 100644 index 000000000..0b01f0225 --- /dev/null +++ b/temporalio/api/nexusoperation/v1/message_pb2.pyi @@ -0,0 +1,124 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import typing + +import google.protobuf.descriptor +import google.protobuf.message + +import temporalio.api.callback.v1.message_pb2 + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class CallbackInfo(google.protobuf.message.Message): + """CallbackInfo contains the state of a callback attached to a standalone Nexus operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final + class OperationCompleted(google.protobuf.message.Message): + """Trigger for when the Nexus operation is completed, covering both success cases as + well as any type of failure. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + + @typing.final + class Trigger(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + OPERATION_COMPLETED_FIELD_NUMBER: builtins.int + @property + def operation_completed(self) -> global___CallbackInfo.OperationCompleted: ... + def __init__( + self, + *, + operation_completed: global___CallbackInfo.OperationCompleted | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing.Literal[ + "operation_completed", b"operation_completed", "variant", b"variant" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing.Literal[ + "operation_completed", b"operation_completed", "variant", b"variant" + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["operation_completed"] | None: ... + + TRIGGER_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + @property + def trigger(self) -> global___CallbackInfo.Trigger: + """Trigger for this callback.""" + + @property + def info(self) -> temporalio.api.callback.v1.message_pb2.CallbackInfo: + """Common callback info.""" + + def __init__( + self, + *, + trigger: global___CallbackInfo.Trigger | None = ..., + info: temporalio.api.callback.v1.message_pb2.CallbackInfo | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing.Literal["info", b"info", "trigger", b"trigger"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing.Literal["info", b"info", "trigger", b"trigger"] + ) -> None: ... + +global___CallbackInfo = CallbackInfo + +@typing.final +class OnConflictOptions(google.protobuf.message.Message): + """When StartNexusOperationExecutionRequest uses the conflict policy NEXUS_OPERATION_ID_CONFLICT_POLICY_USE_EXISTING + and there is already an existing, running standalone Nexus operation, OnConflictOptions defines actions to be + taken. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ATTACH_REQUEST_ID_FIELD_NUMBER: builtins.int + ATTACH_COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int + ATTACH_LINKS_FIELD_NUMBER: builtins.int + attach_request_id: builtins.bool + """Attaches the request ID to the running operation.""" + attach_completion_callbacks: builtins.bool + """Attaches the completion callbacks to the running operation.""" + attach_links: builtins.bool + """Attaches any new links to the running operation.""" + def __init__( + self, + *, + attach_request_id: builtins.bool = ..., + attach_completion_callbacks: builtins.bool = ..., + attach_links: builtins.bool = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing.Literal[ + "attach_completion_callbacks", + b"attach_completion_callbacks", + "attach_links", + b"attach_links", + "attach_request_id", + b"attach_request_id", + ], + ) -> None: ... + +global___OnConflictOptions = OnConflictOptions diff --git a/temporalio/api/nexusservices/workerservice/v1/request_response_pb2.py b/temporalio/api/nexusservices/workerservice/v1/request_response_pb2.py index ed045767d..4e3857d74 100644 --- a/temporalio/api/nexusservices/workerservice/v1/request_response_pb2.py +++ b/temporalio/api/nexusservices/workerservice/v1/request_response_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -22,31 +21,8 @@ b'\nBtemporal/api/nexusservices/workerservice/v1/request_response.proto\x12+temporal.api.nexusservices.workerservice.v1\x1a$temporal/api/worker/v1/message.proto"Q\n\x16\x45xecuteCommandsRequest\x12\x37\n\x08\x63ommands\x18\x01 \x03(\x0b\x32%.temporal.api.worker.v1.WorkerCommand"W\n\x17\x45xecuteCommandsResponse\x12<\n\x07results\x18\x01 \x03(\x0b\x32+.temporal.api.worker.v1.WorkerCommandResultB\xed\x01\n.io.temporal.api.nexusservices.workerservice.v1B\x14RequestResponseProtoP\x01Z?go.temporal.io/api/nexusservices/workerservice/v1;workerservice\xaa\x02-Temporalio.Api.Nexusservices.Workerservice.V1\xea\x02\x31Temporalio::Api::Nexusservices::Workerservice::V1b\x06proto3' ) - -_EXECUTECOMMANDSREQUEST = DESCRIPTOR.message_types_by_name["ExecuteCommandsRequest"] -_EXECUTECOMMANDSRESPONSE = DESCRIPTOR.message_types_by_name["ExecuteCommandsResponse"] -ExecuteCommandsRequest = _reflection.GeneratedProtocolMessageType( - "ExecuteCommandsRequest", - (_message.Message,), - { - "DESCRIPTOR": _EXECUTECOMMANDSREQUEST, - "__module__": "temporalio.api.nexusservices.workerservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexusservices.workerservice.v1.ExecuteCommandsRequest) - }, -) -_sym_db.RegisterMessage(ExecuteCommandsRequest) - -ExecuteCommandsResponse = _reflection.GeneratedProtocolMessageType( - "ExecuteCommandsResponse", - (_message.Message,), - { - "DESCRIPTOR": _EXECUTECOMMANDSRESPONSE, - "__module__": "temporalio.api.nexusservices.workerservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.nexusservices.workerservice.v1.ExecuteCommandsResponse) - }, -) -_sym_db.RegisterMessage(ExecuteCommandsResponse) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n.io.temporal.api.nexusservices.workerservice.v1B\024RequestResponseProtoP\001Z?go.temporal.io/api/nexusservices/workerservice/v1;workerservice\252\002-Temporalio.Api.Nexusservices.Workerservice.V1\352\0021Temporalio::Api::Nexusservices::Workerservice::V1" diff --git a/temporalio/api/nexusservices/workerservice/v1/request_response_pb2.pyi b/temporalio/api/nexusservices/workerservice/v1/request_response_pb2.pyi index 8fd328cb8..af263e486 100644 --- a/temporalio/api/nexusservices/workerservice/v1/request_response_pb2.pyi +++ b/temporalio/api/nexusservices/workerservice/v1/request_response_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,13 +13,9 @@ import google.protobuf.message import temporalio.api.worker.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ExecuteCommandsRequest(google.protobuf.message.Message): """(-- Internal Nexus service for server-to-worker communication. @@ -46,11 +42,12 @@ class ExecuteCommandsRequest(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["commands", b"commands"] + self, field_name: typing.Literal["commands", b"commands"] ) -> None: ... global___ExecuteCommandsRequest = ExecuteCommandsRequest +@typing.final class ExecuteCommandsResponse(google.protobuf.message.Message): """Response payload for the "ExecuteCommands" Nexus operation. The results list must be 1:1 with the commands list in the request (same size and order). @@ -73,8 +70,6 @@ class ExecuteCommandsResponse(google.protobuf.message.Message): ] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["results", b"results"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["results", b"results"]) -> None: ... global___ExecuteCommandsResponse = ExecuteCommandsResponse diff --git a/temporalio/api/nexusservices/workerservice/v1/request_response_pb2_grpc.pyi b/temporalio/api/nexusservices/workerservice/v1/request_response_pb2_grpc.pyi index f3a5a087e..de236ac81 100644 --- a/temporalio/api/nexusservices/workerservice/v1/request_response_pb2_grpc.pyi +++ b/temporalio/api/nexusservices/workerservice/v1/request_response_pb2_grpc.pyi @@ -2,3 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + +import abc +import collections.abc +import typing + +import grpc +import grpc.aio + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... diff --git a/tests/contrib/google_adk_agents/__init__.py b/temporalio/api/notificationservice/__init__.py similarity index 100% rename from tests/contrib/google_adk_agents/__init__.py rename to temporalio/api/notificationservice/__init__.py diff --git a/temporalio/api/notificationservice/v1/__init__.py b/temporalio/api/notificationservice/v1/__init__.py new file mode 100644 index 000000000..7b51b0a83 --- /dev/null +++ b/temporalio/api/notificationservice/v1/__init__.py @@ -0,0 +1,6 @@ +from .request_response_pb2 import OnCompleteRequest, OnCompleteResponse + +__all__ = [ + "OnCompleteRequest", + "OnCompleteResponse", +] diff --git a/temporalio/api/notificationservice/v1/request_response_pb2.py b/temporalio/api/notificationservice/v1/request_response_pb2.py new file mode 100644 index 000000000..72a912dfe --- /dev/null +++ b/temporalio/api/notificationservice/v1/request_response_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: temporal/api/notificationservice/v1/request_response.proto +"""Generated protocol buffer code.""" + +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from temporalio.api.common.v1 import ( + message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, +) +from temporalio.api.failure.v1 import ( + message_pb2 as temporal_dot_api_dot_failure_dot_v1_dot_message__pb2, +) + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n:temporal/api/notificationservice/v1/request_response.proto\x12#temporal.api.notificationservice.v1\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto"\xbf\x01\n\x11OnCompleteRequest\x12\x32\n\x07success\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x33\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x37\n\x0esource_context\x18\x03 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadB\x08\n\x06result"\x14\n\x12OnCompleteResponseB\xd2\x01\n&io.temporal.api.notificationservice.v1B\x14RequestResponseProtoP\x01Z=go.temporal.io/api/notificationservice/v1;notificationservice\xaa\x02%Temporalio.Api.NotificationService.V1\xea\x02(Temporalio::Api::NotificationService::V1b\x06proto3' +) + +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b"\n&io.temporal.api.notificationservice.v1B\024RequestResponseProtoP\001Z=go.temporal.io/api/notificationservice/v1;notificationservice\252\002%Temporalio.Api.NotificationService.V1\352\002(Temporalio::Api::NotificationService::V1" + _ONCOMPLETEREQUEST._serialized_start = 177 + _ONCOMPLETEREQUEST._serialized_end = 368 + _ONCOMPLETERESPONSE._serialized_start = 370 + _ONCOMPLETERESPONSE._serialized_end = 390 +# @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/notificationservice/v1/request_response_pb2.pyi b/temporalio/api/notificationservice/v1/request_response_pb2.pyi new file mode 100644 index 000000000..331d887b3 --- /dev/null +++ b/temporalio/api/notificationservice/v1/request_response_pb2.pyi @@ -0,0 +1,94 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import builtins +import typing + +import google.protobuf.descriptor +import google.protobuf.message + +import temporalio.api.common.v1.message_pb2 +import temporalio.api.failure.v1.message_pb2 + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class OnCompleteRequest(google.protobuf.message.Message): + """OnCompleteRequest is the request type to the NotificationService's OnComplete operation, + allowing for defining completion handlers for arbitrary operations. + + Information about the source operation will be available in the form of a commonpb.Link, + which will be available separately from this OnCompleteRequest. e.g. a link to the source + standalone Nexus operation would be found in the nexuspb.StartOperationRequest parameter + sent to the worker callback. (In addition to this OnCompleteRequest.) + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUCCESS_FIELD_NUMBER: builtins.int + FAILURE_FIELD_NUMBER: builtins.int + SOURCE_CONTEXT_FIELD_NUMBER: builtins.int + @property + def success(self) -> temporalio.api.common.v1.message_pb2.Payload: + """The operation was successful, and resulted in the given payload.""" + + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """The operation failed. Includes timeout, cancellation, and application errors.""" + + @property + def source_context(self) -> temporalio.api.common.v1.message_pb2.Payload: + """User-supplied data which was added to the source invocation. (As applicable.)""" + + def __init__( + self, + *, + success: temporalio.api.common.v1.message_pb2.Payload | None = ..., + failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., + source_context: temporalio.api.common.v1.message_pb2.Payload | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing.Literal[ + "failure", + b"failure", + "result", + b"result", + "source_context", + b"source_context", + "success", + b"success", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing.Literal[ + "failure", + b"failure", + "result", + b"result", + "source_context", + b"source_context", + "success", + b"success", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing.Literal["result", b"result"] + ) -> typing.Literal["success", "failure"] | None: ... + +global___OnCompleteRequest = OnCompleteRequest + +@typing.final +class OnCompleteResponse(google.protobuf.message.Message): + """OnCompleteResponse is the return type of the OnComplete operation.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___OnCompleteResponse = OnCompleteResponse diff --git a/temporalio/api/notificationservice/v1/request_response_pb2_grpc.py b/temporalio/api/notificationservice/v1/request_response_pb2_grpc.py new file mode 100644 index 000000000..bf947056a --- /dev/null +++ b/temporalio/api/notificationservice/v1/request_response_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" + +import grpc diff --git a/temporalio/api/notificationservice/v1/request_response_pb2_grpc.pyi b/temporalio/api/notificationservice/v1/request_response_pb2_grpc.pyi new file mode 100644 index 000000000..de236ac81 --- /dev/null +++ b/temporalio/api/notificationservice/v1/request_response_pb2_grpc.pyi @@ -0,0 +1,21 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +import abc +import collections.abc +import typing + +import grpc +import grpc.aio + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... diff --git a/temporalio/api/operatorservice/v1/__init__.py b/temporalio/api/operatorservice/v1/__init__.py index f6cd76fbf..1db8cbae3 100644 --- a/temporalio/api/operatorservice/v1/__init__.py +++ b/temporalio/api/operatorservice/v1/__init__.py @@ -59,6 +59,7 @@ import grpc from .service_pb2_grpc import ( + OperatorService, # type: ignore OperatorServiceServicer, OperatorServiceStub, add_OperatorServiceServicer_to_server, @@ -66,6 +67,7 @@ __all__.extend( [ + "OperatorService", "OperatorServiceServicer", "OperatorServiceStub", "add_OperatorServiceServicer_to_server", diff --git a/temporalio/api/operatorservice/v1/request_response_pb2.py b/temporalio/api/operatorservice/v1/request_response_pb2.py index 8edc4274a..8d0929f52 100644 --- a/temporalio/api/operatorservice/v1/request_response_pb2.py +++ b/temporalio/api/operatorservice/v1/request_response_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -27,395 +26,8 @@ b'\n6temporal/api/operatorservice/v1/request_response.proto\x12\x1ftemporal.api.operatorservice.v1\x1a"temporal/api/enums/v1/common.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto"\xff\x01\n\x1a\x41\x64\x64SearchAttributesRequest\x12l\n\x11search_attributes\x18\x01 \x03(\x0b\x32Q.temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntry\x12\x11\n\tnamespace\x18\x02 \x01(\t\x1a`\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\x1d\n\x1b\x41\x64\x64SearchAttributesResponse"M\n\x1dRemoveSearchAttributesRequest\x12\x19\n\x11search_attributes\x18\x01 \x03(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t" \n\x1eRemoveSearchAttributesResponse"0\n\x1bListSearchAttributesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t"\xe2\x04\n\x1cListSearchAttributesResponse\x12n\n\x11\x63ustom_attributes\x18\x01 \x03(\x0b\x32S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntry\x12n\n\x11system_attributes\x18\x02 \x03(\x0b\x32S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntry\x12h\n\x0estorage_schema\x18\x03 \x03(\x0b\x32P.temporal.api.operatorservice.v1.ListSearchAttributesResponse.StorageSchemaEntry\x1a`\n\x15\x43ustomAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01\x1a`\n\x15SystemAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01\x1a\x34\n\x12StorageSchemaEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"|\n\x16\x44\x65leteNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x02 \x01(\t\x12\x39\n\x16namespace_delete_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration"4\n\x17\x44\x65leteNamespaceResponse\x12\x19\n\x11\x64\x65leted_namespace\x18\x01 \x01(\t"\xa0\x01\n\x1f\x41\x64\x64OrUpdateRemoteClusterRequest\x12\x18\n\x10\x66rontend_address\x18\x01 \x01(\t\x12(\n enable_remote_cluster_connection\x18\x02 \x01(\x08\x12\x1d\n\x15\x66rontend_http_address\x18\x03 \x01(\t\x12\x1a\n\x12\x65nable_replication\x18\x04 \x01(\x08""\n AddOrUpdateRemoteClusterResponse"2\n\x1aRemoveRemoteClusterRequest\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t"\x1d\n\x1bRemoveRemoteClusterResponse"A\n\x13ListClustersRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"s\n\x14ListClustersResponse\x12\x42\n\x08\x63lusters\x18\x01 \x03(\x0b\x32\x30.temporal.api.operatorservice.v1.ClusterMetadata\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"\xe0\x01\n\x0f\x43lusterMetadata\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12\x12\n\ncluster_id\x18\x02 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x03 \x01(\t\x12\x14\n\x0chttp_address\x18\x07 \x01(\t\x12 \n\x18initial_failover_version\x18\x04 \x01(\x03\x12\x1b\n\x13history_shard_count\x18\x05 \x01(\x05\x12\x1d\n\x15is_connection_enabled\x18\x06 \x01(\x08\x12\x1e\n\x16is_replication_enabled\x18\x08 \x01(\x08"%\n\x17GetNexusEndpointRequest\x12\n\n\x02id\x18\x01 \x01(\t"M\n\x18GetNexusEndpointResponse\x12\x31\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Endpoint"O\n\x1a\x43reateNexusEndpointRequest\x12\x31\n\x04spec\x18\x01 \x01(\x0b\x32#.temporal.api.nexus.v1.EndpointSpec"P\n\x1b\x43reateNexusEndpointResponse\x12\x31\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Endpoint"l\n\x1aUpdateNexusEndpointRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x31\n\x04spec\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.EndpointSpec"P\n\x1bUpdateNexusEndpointResponse\x12\x31\n\x08\x65ndpoint\x18\x01 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Endpoint"9\n\x1a\x44\x65leteNexusEndpointRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"\x1d\n\x1b\x44\x65leteNexusEndpointResponse"U\n\x19ListNexusEndpointsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x0c\n\x04name\x18\x03 \x01(\t"i\n\x1aListNexusEndpointsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12\x32\n\tendpoints\x18\x02 \x03(\x0b\x32\x1f.temporal.api.nexus.v1.EndpointB\xbe\x01\n"io.temporal.api.operatorservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/operatorservice/v1;operatorservice\xaa\x02!Temporalio.Api.OperatorService.V1\xea\x02$Temporalio::Api::OperatorService::V1b\x06proto3' ) - -_ADDSEARCHATTRIBUTESREQUEST = DESCRIPTOR.message_types_by_name[ - "AddSearchAttributesRequest" -] -_ADDSEARCHATTRIBUTESREQUEST_SEARCHATTRIBUTESENTRY = ( - _ADDSEARCHATTRIBUTESREQUEST.nested_types_by_name["SearchAttributesEntry"] -) -_ADDSEARCHATTRIBUTESRESPONSE = DESCRIPTOR.message_types_by_name[ - "AddSearchAttributesResponse" -] -_REMOVESEARCHATTRIBUTESREQUEST = DESCRIPTOR.message_types_by_name[ - "RemoveSearchAttributesRequest" -] -_REMOVESEARCHATTRIBUTESRESPONSE = DESCRIPTOR.message_types_by_name[ - "RemoveSearchAttributesResponse" -] -_LISTSEARCHATTRIBUTESREQUEST = DESCRIPTOR.message_types_by_name[ - "ListSearchAttributesRequest" -] -_LISTSEARCHATTRIBUTESRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListSearchAttributesResponse" -] -_LISTSEARCHATTRIBUTESRESPONSE_CUSTOMATTRIBUTESENTRY = ( - _LISTSEARCHATTRIBUTESRESPONSE.nested_types_by_name["CustomAttributesEntry"] -) -_LISTSEARCHATTRIBUTESRESPONSE_SYSTEMATTRIBUTESENTRY = ( - _LISTSEARCHATTRIBUTESRESPONSE.nested_types_by_name["SystemAttributesEntry"] -) -_LISTSEARCHATTRIBUTESRESPONSE_STORAGESCHEMAENTRY = ( - _LISTSEARCHATTRIBUTESRESPONSE.nested_types_by_name["StorageSchemaEntry"] -) -_DELETENAMESPACEREQUEST = DESCRIPTOR.message_types_by_name["DeleteNamespaceRequest"] -_DELETENAMESPACERESPONSE = DESCRIPTOR.message_types_by_name["DeleteNamespaceResponse"] -_ADDORUPDATEREMOTECLUSTERREQUEST = DESCRIPTOR.message_types_by_name[ - "AddOrUpdateRemoteClusterRequest" -] -_ADDORUPDATEREMOTECLUSTERRESPONSE = DESCRIPTOR.message_types_by_name[ - "AddOrUpdateRemoteClusterResponse" -] -_REMOVEREMOTECLUSTERREQUEST = DESCRIPTOR.message_types_by_name[ - "RemoveRemoteClusterRequest" -] -_REMOVEREMOTECLUSTERRESPONSE = DESCRIPTOR.message_types_by_name[ - "RemoveRemoteClusterResponse" -] -_LISTCLUSTERSREQUEST = DESCRIPTOR.message_types_by_name["ListClustersRequest"] -_LISTCLUSTERSRESPONSE = DESCRIPTOR.message_types_by_name["ListClustersResponse"] -_CLUSTERMETADATA = DESCRIPTOR.message_types_by_name["ClusterMetadata"] -_GETNEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name["GetNexusEndpointRequest"] -_GETNEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name["GetNexusEndpointResponse"] -_CREATENEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateNexusEndpointRequest" -] -_CREATENEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateNexusEndpointResponse" -] -_UPDATENEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateNexusEndpointRequest" -] -_UPDATENEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateNexusEndpointResponse" -] -_DELETENEXUSENDPOINTREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteNexusEndpointRequest" -] -_DELETENEXUSENDPOINTRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteNexusEndpointResponse" -] -_LISTNEXUSENDPOINTSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListNexusEndpointsRequest" -] -_LISTNEXUSENDPOINTSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListNexusEndpointsResponse" -] -AddSearchAttributesRequest = _reflection.GeneratedProtocolMessageType( - "AddSearchAttributesRequest", - (_message.Message,), - { - "SearchAttributesEntry": _reflection.GeneratedProtocolMessageType( - "SearchAttributesEntry", - (_message.Message,), - { - "DESCRIPTOR": _ADDSEARCHATTRIBUTESREQUEST_SEARCHATTRIBUTESENTRY, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntry) - }, - ), - "DESCRIPTOR": _ADDSEARCHATTRIBUTESREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddSearchAttributesRequest) - }, -) -_sym_db.RegisterMessage(AddSearchAttributesRequest) -_sym_db.RegisterMessage(AddSearchAttributesRequest.SearchAttributesEntry) - -AddSearchAttributesResponse = _reflection.GeneratedProtocolMessageType( - "AddSearchAttributesResponse", - (_message.Message,), - { - "DESCRIPTOR": _ADDSEARCHATTRIBUTESRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddSearchAttributesResponse) - }, -) -_sym_db.RegisterMessage(AddSearchAttributesResponse) - -RemoveSearchAttributesRequest = _reflection.GeneratedProtocolMessageType( - "RemoveSearchAttributesRequest", - (_message.Message,), - { - "DESCRIPTOR": _REMOVESEARCHATTRIBUTESREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.RemoveSearchAttributesRequest) - }, -) -_sym_db.RegisterMessage(RemoveSearchAttributesRequest) - -RemoveSearchAttributesResponse = _reflection.GeneratedProtocolMessageType( - "RemoveSearchAttributesResponse", - (_message.Message,), - { - "DESCRIPTOR": _REMOVESEARCHATTRIBUTESRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.RemoveSearchAttributesResponse) - }, -) -_sym_db.RegisterMessage(RemoveSearchAttributesResponse) - -ListSearchAttributesRequest = _reflection.GeneratedProtocolMessageType( - "ListSearchAttributesRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTSEARCHATTRIBUTESREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesRequest) - }, -) -_sym_db.RegisterMessage(ListSearchAttributesRequest) - -ListSearchAttributesResponse = _reflection.GeneratedProtocolMessageType( - "ListSearchAttributesResponse", - (_message.Message,), - { - "CustomAttributesEntry": _reflection.GeneratedProtocolMessageType( - "CustomAttributesEntry", - (_message.Message,), - { - "DESCRIPTOR": _LISTSEARCHATTRIBUTESRESPONSE_CUSTOMATTRIBUTESENTRY, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntry) - }, - ), - "SystemAttributesEntry": _reflection.GeneratedProtocolMessageType( - "SystemAttributesEntry", - (_message.Message,), - { - "DESCRIPTOR": _LISTSEARCHATTRIBUTESRESPONSE_SYSTEMATTRIBUTESENTRY, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntry) - }, - ), - "StorageSchemaEntry": _reflection.GeneratedProtocolMessageType( - "StorageSchemaEntry", - (_message.Message,), - { - "DESCRIPTOR": _LISTSEARCHATTRIBUTESRESPONSE_STORAGESCHEMAENTRY, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesResponse.StorageSchemaEntry) - }, - ), - "DESCRIPTOR": _LISTSEARCHATTRIBUTESRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesResponse) - }, -) -_sym_db.RegisterMessage(ListSearchAttributesResponse) -_sym_db.RegisterMessage(ListSearchAttributesResponse.CustomAttributesEntry) -_sym_db.RegisterMessage(ListSearchAttributesResponse.SystemAttributesEntry) -_sym_db.RegisterMessage(ListSearchAttributesResponse.StorageSchemaEntry) - -DeleteNamespaceRequest = _reflection.GeneratedProtocolMessageType( - "DeleteNamespaceRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETENAMESPACEREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNamespaceRequest) - }, -) -_sym_db.RegisterMessage(DeleteNamespaceRequest) - -DeleteNamespaceResponse = _reflection.GeneratedProtocolMessageType( - "DeleteNamespaceResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETENAMESPACERESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNamespaceResponse) - }, -) -_sym_db.RegisterMessage(DeleteNamespaceResponse) - -AddOrUpdateRemoteClusterRequest = _reflection.GeneratedProtocolMessageType( - "AddOrUpdateRemoteClusterRequest", - (_message.Message,), - { - "DESCRIPTOR": _ADDORUPDATEREMOTECLUSTERREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest) - }, -) -_sym_db.RegisterMessage(AddOrUpdateRemoteClusterRequest) - -AddOrUpdateRemoteClusterResponse = _reflection.GeneratedProtocolMessageType( - "AddOrUpdateRemoteClusterResponse", - (_message.Message,), - { - "DESCRIPTOR": _ADDORUPDATEREMOTECLUSTERRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse) - }, -) -_sym_db.RegisterMessage(AddOrUpdateRemoteClusterResponse) - -RemoveRemoteClusterRequest = _reflection.GeneratedProtocolMessageType( - "RemoveRemoteClusterRequest", - (_message.Message,), - { - "DESCRIPTOR": _REMOVEREMOTECLUSTERREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.RemoveRemoteClusterRequest) - }, -) -_sym_db.RegisterMessage(RemoveRemoteClusterRequest) - -RemoveRemoteClusterResponse = _reflection.GeneratedProtocolMessageType( - "RemoveRemoteClusterResponse", - (_message.Message,), - { - "DESCRIPTOR": _REMOVEREMOTECLUSTERRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.RemoveRemoteClusterResponse) - }, -) -_sym_db.RegisterMessage(RemoveRemoteClusterResponse) - -ListClustersRequest = _reflection.GeneratedProtocolMessageType( - "ListClustersRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTCLUSTERSREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListClustersRequest) - }, -) -_sym_db.RegisterMessage(ListClustersRequest) - -ListClustersResponse = _reflection.GeneratedProtocolMessageType( - "ListClustersResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTCLUSTERSRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListClustersResponse) - }, -) -_sym_db.RegisterMessage(ListClustersResponse) - -ClusterMetadata = _reflection.GeneratedProtocolMessageType( - "ClusterMetadata", - (_message.Message,), - { - "DESCRIPTOR": _CLUSTERMETADATA, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ClusterMetadata) - }, -) -_sym_db.RegisterMessage(ClusterMetadata) - -GetNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( - "GetNexusEndpointRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETNEXUSENDPOINTREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.GetNexusEndpointRequest) - }, -) -_sym_db.RegisterMessage(GetNexusEndpointRequest) - -GetNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( - "GetNexusEndpointResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETNEXUSENDPOINTRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.GetNexusEndpointResponse) - }, -) -_sym_db.RegisterMessage(GetNexusEndpointResponse) - -CreateNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( - "CreateNexusEndpointRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATENEXUSENDPOINTREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.CreateNexusEndpointRequest) - }, -) -_sym_db.RegisterMessage(CreateNexusEndpointRequest) - -CreateNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( - "CreateNexusEndpointResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATENEXUSENDPOINTRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.CreateNexusEndpointResponse) - }, -) -_sym_db.RegisterMessage(CreateNexusEndpointResponse) - -UpdateNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( - "UpdateNexusEndpointRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENEXUSENDPOINTREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.UpdateNexusEndpointRequest) - }, -) -_sym_db.RegisterMessage(UpdateNexusEndpointRequest) - -UpdateNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( - "UpdateNexusEndpointResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENEXUSENDPOINTRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.UpdateNexusEndpointResponse) - }, -) -_sym_db.RegisterMessage(UpdateNexusEndpointResponse) - -DeleteNexusEndpointRequest = _reflection.GeneratedProtocolMessageType( - "DeleteNexusEndpointRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETENEXUSENDPOINTREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNexusEndpointRequest) - }, -) -_sym_db.RegisterMessage(DeleteNexusEndpointRequest) - -DeleteNexusEndpointResponse = _reflection.GeneratedProtocolMessageType( - "DeleteNexusEndpointResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETENEXUSENDPOINTRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNexusEndpointResponse) - }, -) -_sym_db.RegisterMessage(DeleteNexusEndpointResponse) - -ListNexusEndpointsRequest = _reflection.GeneratedProtocolMessageType( - "ListNexusEndpointsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTNEXUSENDPOINTSREQUEST, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListNexusEndpointsRequest) - }, -) -_sym_db.RegisterMessage(ListNexusEndpointsRequest) - -ListNexusEndpointsResponse = _reflection.GeneratedProtocolMessageType( - "ListNexusEndpointsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTNEXUSENDPOINTSRESPONSE, - "__module__": "temporalio.api.operatorservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListNexusEndpointsResponse) - }, -) -_sym_db.RegisterMessage(ListNexusEndpointsResponse) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n"io.temporal.api.operatorservice.v1B\024RequestResponseProtoP\001Z5go.temporal.io/api/operatorservice/v1;operatorservice\252\002!Temporalio.Api.OperatorService.V1\352\002$Temporalio::Api::OperatorService::V1' diff --git a/temporalio/api/operatorservice/v1/request_response_pb2.pyi b/temporalio/api/operatorservice/v1/request_response_pb2.pyi index b06ab93b8..49dbafdc0 100644 --- a/temporalio/api/operatorservice/v1/request_response_pb2.pyi +++ b/temporalio/api/operatorservice/v1/request_response_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -15,18 +15,15 @@ import google.protobuf.message import temporalio.api.enums.v1.common_pb2 import temporalio.api.nexus.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AddSearchAttributesRequest(google.protobuf.message.Message): """(-- Search Attribute --)""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class SearchAttributesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -41,12 +38,12 @@ class AddSearchAttributesRequest(google.protobuf.message.Message): value: temporalio.api.enums.v1.common_pb2.IndexedValueType.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int NAMESPACE_FIELD_NUMBER: builtins.int + namespace: builtins.str @property def search_attributes( self, @@ -54,7 +51,7 @@ class AddSearchAttributesRequest(google.protobuf.message.Message): builtins.str, temporalio.api.enums.v1.common_pb2.IndexedValueType.ValueType ]: """Mapping between search attribute name and its IndexedValueType.""" - namespace: builtins.str + def __init__( self, *, @@ -66,13 +63,14 @@ class AddSearchAttributesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "search_attributes", b"search_attributes" ], ) -> None: ... global___AddSearchAttributesRequest = AddSearchAttributesRequest +@typing.final class AddSearchAttributesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -82,17 +80,19 @@ class AddSearchAttributesResponse(google.protobuf.message.Message): global___AddSearchAttributesResponse = AddSearchAttributesResponse +@typing.final class RemoveSearchAttributesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int NAMESPACE_FIELD_NUMBER: builtins.int + namespace: builtins.str @property def search_attributes( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Search attribute names to delete.""" - namespace: builtins.str + def __init__( self, *, @@ -101,13 +101,14 @@ class RemoveSearchAttributesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "search_attributes", b"search_attributes" ], ) -> None: ... global___RemoveSearchAttributesRequest = RemoveSearchAttributesRequest +@typing.final class RemoveSearchAttributesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -117,6 +118,7 @@ class RemoveSearchAttributesResponse(google.protobuf.message.Message): global___RemoveSearchAttributesResponse = RemoveSearchAttributesResponse +@typing.final class ListSearchAttributesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -128,14 +130,16 @@ class ListSearchAttributesRequest(google.protobuf.message.Message): namespace: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["namespace", b"namespace"] + self, field_name: typing.Literal["namespace", b"namespace"] ) -> None: ... global___ListSearchAttributesRequest = ListSearchAttributesRequest +@typing.final class ListSearchAttributesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class CustomAttributesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -150,10 +154,10 @@ class ListSearchAttributesResponse(google.protobuf.message.Message): value: temporalio.api.enums.v1.common_pb2.IndexedValueType.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class SystemAttributesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -168,10 +172,10 @@ class ListSearchAttributesResponse(google.protobuf.message.Message): value: temporalio.api.enums.v1.common_pb2.IndexedValueType.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class StorageSchemaEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -186,8 +190,7 @@ class ListSearchAttributesResponse(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... CUSTOM_ATTRIBUTES_FIELD_NUMBER: builtins.int @@ -200,6 +203,7 @@ class ListSearchAttributesResponse(google.protobuf.message.Message): builtins.str, temporalio.api.enums.v1.common_pb2.IndexedValueType.ValueType ]: """Mapping between custom (user-registered) search attribute name to its IndexedValueType.""" + @property def system_attributes( self, @@ -207,11 +211,13 @@ class ListSearchAttributesResponse(google.protobuf.message.Message): builtins.str, temporalio.api.enums.v1.common_pb2.IndexedValueType.ValueType ]: """Mapping between system (predefined) search attribute name to its IndexedValueType.""" + @property def storage_schema( self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """Mapping from the attribute name to the visibility storage native type.""" + def __init__( self, *, @@ -228,7 +234,7 @@ class ListSearchAttributesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "custom_attributes", b"custom_attributes", "storage_schema", @@ -240,6 +246,7 @@ class ListSearchAttributesResponse(google.protobuf.message.Message): global___ListSearchAttributesResponse = ListSearchAttributesResponse +@typing.final class DeleteNamespaceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -254,6 +261,7 @@ class DeleteNamespaceRequest(google.protobuf.message.Message): """If provided, the deletion of namespace info will be delayed for the given duration (0 means no delay). If not provided, the default delay configured in the cluster will be used. """ + def __init__( self, *, @@ -263,13 +271,11 @@ class DeleteNamespaceRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "namespace_delete_delay", b"namespace_delete_delay" - ], + field_name: typing.Literal["namespace_delete_delay", b"namespace_delete_delay"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "namespace_delete_delay", @@ -281,6 +287,7 @@ class DeleteNamespaceRequest(google.protobuf.message.Message): global___DeleteNamespaceRequest = DeleteNamespaceRequest +@typing.final class DeleteNamespaceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -293,14 +300,12 @@ class DeleteNamespaceResponse(google.protobuf.message.Message): deleted_namespace: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "deleted_namespace", b"deleted_namespace" - ], + self, field_name: typing.Literal["deleted_namespace", b"deleted_namespace"] ) -> None: ... global___DeleteNamespaceResponse = DeleteNamespaceResponse +@typing.final class AddOrUpdateRemoteClusterRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -328,7 +333,7 @@ class AddOrUpdateRemoteClusterRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "enable_remote_cluster_connection", b"enable_remote_cluster_connection", "enable_replication", @@ -342,6 +347,7 @@ class AddOrUpdateRemoteClusterRequest(google.protobuf.message.Message): global___AddOrUpdateRemoteClusterRequest = AddOrUpdateRemoteClusterRequest +@typing.final class AddOrUpdateRemoteClusterResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -351,6 +357,7 @@ class AddOrUpdateRemoteClusterResponse(google.protobuf.message.Message): global___AddOrUpdateRemoteClusterResponse = AddOrUpdateRemoteClusterResponse +@typing.final class RemoveRemoteClusterRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -363,11 +370,12 @@ class RemoveRemoteClusterRequest(google.protobuf.message.Message): cluster_name: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["cluster_name", b"cluster_name"] + self, field_name: typing.Literal["cluster_name", b"cluster_name"] ) -> None: ... global___RemoveRemoteClusterRequest = RemoveRemoteClusterRequest +@typing.final class RemoveRemoteClusterResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -377,6 +385,7 @@ class RemoveRemoteClusterResponse(google.protobuf.message.Message): global___RemoveRemoteClusterResponse = RemoveRemoteClusterResponse +@typing.final class ListClustersRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -392,18 +401,20 @@ class ListClustersRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "page_size", b"page_size" ], ) -> None: ... global___ListClustersRequest = ListClustersRequest +@typing.final class ListClustersResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor CLUSTERS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def clusters( self, @@ -411,7 +422,7 @@ class ListClustersResponse(google.protobuf.message.Message): global___ClusterMetadata ]: """List of all cluster information""" - next_page_token: builtins.bytes + def __init__( self, *, @@ -420,13 +431,14 @@ class ListClustersResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "clusters", b"clusters", "next_page_token", b"next_page_token" ], ) -> None: ... global___ListClustersResponse = ListClustersResponse +@typing.final class ClusterMetadata(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -468,7 +480,7 @@ class ClusterMetadata(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "address", b"address", "cluster_id", @@ -490,6 +502,7 @@ class ClusterMetadata(google.protobuf.message.Message): global___ClusterMetadata = ClusterMetadata +@typing.final class GetNexusEndpointRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -501,12 +514,11 @@ class GetNexusEndpointRequest(google.protobuf.message.Message): *, id: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["id", b"id"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["id", b"id"]) -> None: ... global___GetNexusEndpointRequest = GetNexusEndpointRequest +@typing.final class GetNexusEndpointResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -519,14 +531,15 @@ class GetNexusEndpointResponse(google.protobuf.message.Message): endpoint: temporalio.api.nexus.v1.message_pb2.Endpoint | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + self, field_name: typing.Literal["endpoint", b"endpoint"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + self, field_name: typing.Literal["endpoint", b"endpoint"] ) -> None: ... global___GetNexusEndpointResponse = GetNexusEndpointResponse +@typing.final class CreateNexusEndpointRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -534,20 +547,20 @@ class CreateNexusEndpointRequest(google.protobuf.message.Message): @property def spec(self) -> temporalio.api.nexus.v1.message_pb2.EndpointSpec: """Endpoint definition to create.""" + def __init__( self, *, spec: temporalio.api.nexus.v1.message_pb2.EndpointSpec | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["spec", b"spec"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["spec", b"spec"]) -> None: ... global___CreateNexusEndpointRequest = CreateNexusEndpointRequest +@typing.final class CreateNexusEndpointResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -555,20 +568,22 @@ class CreateNexusEndpointResponse(google.protobuf.message.Message): @property def endpoint(self) -> temporalio.api.nexus.v1.message_pb2.Endpoint: """Data post acceptance. Can be used to issue additional updates to this record.""" + def __init__( self, *, endpoint: temporalio.api.nexus.v1.message_pb2.Endpoint | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + self, field_name: typing.Literal["endpoint", b"endpoint"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + self, field_name: typing.Literal["endpoint", b"endpoint"] ) -> None: ... global___CreateNexusEndpointResponse = CreateNexusEndpointResponse +@typing.final class UpdateNexusEndpointRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -589,17 +604,16 @@ class UpdateNexusEndpointRequest(google.protobuf.message.Message): spec: temporalio.api.nexus.v1.message_pb2.EndpointSpec | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "id", b"id", "spec", b"spec", "version", b"version" - ], + field_name: typing.Literal["id", b"id", "spec", b"spec", "version", b"version"], ) -> None: ... global___UpdateNexusEndpointRequest = UpdateNexusEndpointRequest +@typing.final class UpdateNexusEndpointResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -607,20 +621,22 @@ class UpdateNexusEndpointResponse(google.protobuf.message.Message): @property def endpoint(self) -> temporalio.api.nexus.v1.message_pb2.Endpoint: """Data post acceptance. Can be used to issue additional updates to this record.""" + def __init__( self, *, endpoint: temporalio.api.nexus.v1.message_pb2.Endpoint | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + self, field_name: typing.Literal["endpoint", b"endpoint"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["endpoint", b"endpoint"] + self, field_name: typing.Literal["endpoint", b"endpoint"] ) -> None: ... global___UpdateNexusEndpointResponse = UpdateNexusEndpointResponse +@typing.final class DeleteNexusEndpointRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -637,11 +653,12 @@ class DeleteNexusEndpointRequest(google.protobuf.message.Message): version: builtins.int = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["id", b"id", "version", b"version"] + self, field_name: typing.Literal["id", b"id", "version", b"version"] ) -> None: ... global___DeleteNexusEndpointRequest = DeleteNexusEndpointRequest +@typing.final class DeleteNexusEndpointResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -651,6 +668,7 @@ class DeleteNexusEndpointResponse(google.protobuf.message.Message): global___DeleteNexusEndpointResponse = DeleteNexusEndpointResponse +@typing.final class ListNexusEndpointsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -677,7 +695,7 @@ class ListNexusEndpointsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "name", b"name", "next_page_token", @@ -689,6 +707,7 @@ class ListNexusEndpointsRequest(google.protobuf.message.Message): global___ListNexusEndpointsRequest = ListNexusEndpointsRequest +@typing.final class ListNexusEndpointsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -713,7 +732,7 @@ class ListNexusEndpointsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "endpoints", b"endpoints", "next_page_token", b"next_page_token" ], ) -> None: ... diff --git a/temporalio/api/operatorservice/v1/request_response_pb2_grpc.pyi b/temporalio/api/operatorservice/v1/request_response_pb2_grpc.pyi index f3a5a087e..de236ac81 100644 --- a/temporalio/api/operatorservice/v1/request_response_pb2_grpc.pyi +++ b/temporalio/api/operatorservice/v1/request_response_pb2_grpc.pyi @@ -2,3 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + +import abc +import collections.abc +import typing + +import grpc +import grpc.aio + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... diff --git a/temporalio/api/operatorservice/v1/service_pb2.py b/temporalio/api/operatorservice/v1/service_pb2.py index 1e016243a..2a29e08ad 100644 --- a/temporalio/api/operatorservice/v1/service_pb2.py +++ b/temporalio/api/operatorservice/v1/service_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -24,8 +23,8 @@ b'\n-temporal/api/operatorservice/v1/service.proto\x12\x1ftemporal.api.operatorservice.v1\x1a\x36temporal/api/operatorservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\xc6\x11\n\x0fOperatorService\x12\x92\x01\n\x13\x41\x64\x64SearchAttributes\x12;.temporal.api.operatorservice.v1.AddSearchAttributesRequest\x1a<.temporal.api.operatorservice.v1.AddSearchAttributesResponse"\x00\x12\x9b\x01\n\x16RemoveSearchAttributes\x12>.temporal.api.operatorservice.v1.RemoveSearchAttributesRequest\x1a?.temporal.api.operatorservice.v1.RemoveSearchAttributesResponse"\x00\x12\x82\x02\n\x14ListSearchAttributes\x12<.temporal.api.operatorservice.v1.ListSearchAttributesRequest\x1a=.temporal.api.operatorservice.v1.ListSearchAttributesResponse"m\x82\xd3\xe4\x93\x02g\x12\x31/cluster/namespaces/{namespace}/search-attributesZ2\x12\x30/api/v1/namespaces/{namespace}/search-attributes\x12\x86\x01\n\x0f\x44\x65leteNamespace\x12\x37.temporal.api.operatorservice.v1.DeleteNamespaceRequest\x1a\x38.temporal.api.operatorservice.v1.DeleteNamespaceResponse"\x00\x12\xa1\x01\n\x18\x41\x64\x64OrUpdateRemoteCluster\x12@.temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest\x1a\x41.temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse"\x00\x12\x92\x01\n\x13RemoveRemoteCluster\x12;.temporal.api.operatorservice.v1.RemoveRemoteClusterRequest\x1a<.temporal.api.operatorservice.v1.RemoveRemoteClusterResponse"\x00\x12}\n\x0cListClusters\x12\x34.temporal.api.operatorservice.v1.ListClustersRequest\x1a\x35.temporal.api.operatorservice.v1.ListClustersResponse"\x00\x12\xce\x01\n\x10GetNexusEndpoint\x12\x38.temporal.api.operatorservice.v1.GetNexusEndpointRequest\x1a\x39.temporal.api.operatorservice.v1.GetNexusEndpointResponse"E\x82\xd3\xe4\x93\x02?\x12\x1d/cluster/nexus/endpoints/{id}Z\x1e\x12\x1c/api/v1/nexus/endpoints/{id}\x12\xd3\x01\n\x13\x43reateNexusEndpoint\x12;.temporal.api.operatorservice.v1.CreateNexusEndpointRequest\x1a<.temporal.api.operatorservice.v1.CreateNexusEndpointResponse"A\x82\xd3\xe4\x93\x02;"\x18/cluster/nexus/endpoints:\x01*Z\x1c"\x17/api/v1/nexus/endpoints:\x01*\x12\xeb\x01\n\x13UpdateNexusEndpoint\x12;.temporal.api.operatorservice.v1.UpdateNexusEndpointRequest\x1a<.temporal.api.operatorservice.v1.UpdateNexusEndpointResponse"Y\x82\xd3\xe4\x93\x02S"$/cluster/nexus/endpoints/{id}/update:\x01*Z("#/api/v1/nexus/endpoints/{id}/update:\x01*\x12\xd7\x01\n\x13\x44\x65leteNexusEndpoint\x12;.temporal.api.operatorservice.v1.DeleteNexusEndpointRequest\x1a<.temporal.api.operatorservice.v1.DeleteNexusEndpointResponse"E\x82\xd3\xe4\x93\x02?*\x1d/cluster/nexus/endpoints/{id}Z\x1e*\x1c/api/v1/nexus/endpoints/{id}\x12\xca\x01\n\x12ListNexusEndpoints\x12:.temporal.api.operatorservice.v1.ListNexusEndpointsRequest\x1a;.temporal.api.operatorservice.v1.ListNexusEndpointsResponse";\x82\xd3\xe4\x93\x02\x35\x12\x18/cluster/nexus/endpointsZ\x19\x12\x17/api/v1/nexus/endpointsB\xb6\x01\n"io.temporal.api.operatorservice.v1B\x0cServiceProtoP\x01Z5go.temporal.io/api/operatorservice/v1;operatorservice\xaa\x02!Temporalio.Api.OperatorService.V1\xea\x02$Temporalio::Api::OperatorService::V1b\x06proto3' ) - -_OPERATORSERVICE = DESCRIPTOR.services_by_name["OperatorService"] +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n"io.temporal.api.operatorservice.v1B\014ServiceProtoP\001Z5go.temporal.io/api/operatorservice/v1;operatorservice\252\002!Temporalio.Api.OperatorService.V1\352\002$Temporalio::Api::OperatorService::V1' diff --git a/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi b/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi index c24abb239..05ef84ccf 100644 --- a/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi @@ -4,11 +4,24 @@ isort:skip_file """ import abc +import collections.abc +import typing import grpc +import grpc.aio import temporalio.api.operatorservice.v1.request_response_pb2 +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... + class OperatorServiceStub: """OperatorService API defines how Temporal SDKs and other clients interact with the Temporal server to perform administrative functions like registering a search attribute or a namespace. @@ -17,7 +30,9 @@ class OperatorServiceStub: (-- Search Attribute --) """ - def __init__(self, channel: grpc.Channel) -> None: ... + def __init__( + self, channel: typing.Union[grpc.Channel, grpc.aio.Channel] + ) -> None: ... AddSearchAttributes: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesRequest, temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesResponse, @@ -27,6 +42,7 @@ class OperatorServiceStub: Returns ALREADY_EXISTS status code if a Search Attribute with any of the specified names already exists Returns INTERNAL status code with temporalio.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails, """ + RemoveSearchAttributes: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesRequest, temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesResponse, @@ -35,36 +51,43 @@ class OperatorServiceStub: Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered """ + ListSearchAttributes: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesRequest, temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesResponse, ] """ListSearchAttributes returns comprehensive information about search attributes.""" + DeleteNamespace: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceRequest, temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceResponse, ] """DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources.""" + AddOrUpdateRemoteCluster: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterRequest, temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterResponse, ] """AddOrUpdateRemoteCluster adds or updates remote cluster.""" + RemoveRemoteCluster: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterRequest, temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterResponse, ] """RemoveRemoteCluster removes remote cluster.""" + ListClusters: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.ListClustersRequest, temporalio.api.operatorservice.v1.request_response_pb2.ListClustersResponse, ] """ListClusters returns information about Temporal clusters.""" + GetNexusEndpoint: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointRequest, temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointResponse, ] """Get a registered Nexus endpoint by ID. The returned version can be used for optimistic updates.""" + CreateNexusEndpoint: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointRequest, temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointResponse, @@ -73,6 +96,7 @@ class OperatorServiceStub: ALREADY_EXISTS. Returns the created endpoint with its initial version. You may use this version for subsequent updates. """ + UpdateNexusEndpoint: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointRequest, temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointResponse, @@ -83,11 +107,13 @@ class OperatorServiceStub: Returns the updated endpoint with its updated version. You may use this version for subsequent updates. You don't need to increment the version yourself. The server will increment the version for you after each update. """ + DeleteNexusEndpoint: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointRequest, temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointResponse, ] """Delete an incoming Nexus service by ID.""" + ListNexusEndpoints: grpc.UnaryUnaryMultiCallable[ temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsRequest, temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsResponse, @@ -98,6 +124,105 @@ class OperatorServiceStub: earlier than the previous page's last endpoint's ID may be missed. """ +class OperatorServiceAsyncStub: + """OperatorService API defines how Temporal SDKs and other clients interact with the Temporal server + to perform administrative functions like registering a search attribute or a namespace. + APIs in this file could be not compatible with Temporal Cloud, hence it's usage in SDKs should be limited by + designated APIs that clearly state that they shouldn't be used by the main Application (Workflows & Activities) framework. + (-- Search Attribute --) + """ + + AddSearchAttributes: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesRequest, + temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesResponse, + ] + """AddSearchAttributes add custom search attributes. + + Returns ALREADY_EXISTS status code if a Search Attribute with any of the specified names already exists + Returns INTERNAL status code with temporalio.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails, + """ + + RemoveSearchAttributes: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesRequest, + temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesResponse, + ] + """RemoveSearchAttributes removes custom search attributes. + + Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered + """ + + ListSearchAttributes: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesRequest, + temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesResponse, + ] + """ListSearchAttributes returns comprehensive information about search attributes.""" + + DeleteNamespace: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceRequest, + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceResponse, + ] + """DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources.""" + + AddOrUpdateRemoteCluster: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterRequest, + temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterResponse, + ] + """AddOrUpdateRemoteCluster adds or updates remote cluster.""" + + RemoveRemoteCluster: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterRequest, + temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterResponse, + ] + """RemoveRemoteCluster removes remote cluster.""" + + ListClusters: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.ListClustersRequest, + temporalio.api.operatorservice.v1.request_response_pb2.ListClustersResponse, + ] + """ListClusters returns information about Temporal clusters.""" + + GetNexusEndpoint: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointRequest, + temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointResponse, + ] + """Get a registered Nexus endpoint by ID. The returned version can be used for optimistic updates.""" + + CreateNexusEndpoint: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointRequest, + temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointResponse, + ] + """Create a Nexus endpoint. This will fail if an endpoint with the same name is already registered with a status of + ALREADY_EXISTS. + Returns the created endpoint with its initial version. You may use this version for subsequent updates. + """ + + UpdateNexusEndpoint: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointRequest, + temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointResponse, + ] + """Optimistically update a Nexus endpoint based on provided version as obtained via the `GetNexusEndpoint` or + `ListNexusEndpointResponse` APIs. This will fail with a status of FAILED_PRECONDITION if the version does not + match. + Returns the updated endpoint with its updated version. You may use this version for subsequent updates. You don't + need to increment the version yourself. The server will increment the version for you after each update. + """ + + DeleteNexusEndpoint: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointRequest, + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointResponse, + ] + """Delete an incoming Nexus service by ID.""" + + ListNexusEndpoints: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsRequest, + temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsResponse, + ] + """List all Nexus endpoints for the cluster, sorted by ID in ascending order. Set page_token in the request to the + next_page_token field of the previous response to get the next page of results. An empty next_page_token + indicates that there are no more results. During pagination, a newly added service with an ID lexicographically + earlier than the previous page's last endpoint's ID may be missed. + """ + class OperatorServiceServicer(metaclass=abc.ABCMeta): """OperatorService API defines how Temporal SDKs and other clients interact with the Temporal server to perform administrative functions like registering a search attribute or a namespace. @@ -110,102 +235,171 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): def AddSearchAttributes( self, request: temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesResponse + ], + ]: """AddSearchAttributes add custom search attributes. Returns ALREADY_EXISTS status code if a Search Attribute with any of the specified names already exists Returns INTERNAL status code with temporalio.api.errordetails.v1.SystemWorkflowFailure in Error Details if registration process fails, """ + @abc.abstractmethod def RemoveSearchAttributes( self, request: temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesResponse + ], + ]: """RemoveSearchAttributes removes custom search attributes. Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered """ + @abc.abstractmethod def ListSearchAttributes( self, request: temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesResponse + ], + ]: """ListSearchAttributes returns comprehensive information about search attributes.""" + @abc.abstractmethod def DeleteNamespace( self, request: temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNamespaceResponse + ], + ]: """DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources.""" + @abc.abstractmethod def AddOrUpdateRemoteCluster( self, request: temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterResponse + ], + ]: """AddOrUpdateRemoteCluster adds or updates remote cluster.""" + @abc.abstractmethod def RemoveRemoteCluster( self, request: temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterResponse + ], + ]: """RemoveRemoteCluster removes remote cluster.""" + @abc.abstractmethod def ListClusters( self, request: temporalio.api.operatorservice.v1.request_response_pb2.ListClustersRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.ListClustersResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.ListClustersResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.ListClustersResponse + ], + ]: """ListClusters returns information about Temporal clusters.""" + @abc.abstractmethod def GetNexusEndpoint( self, request: temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.GetNexusEndpointResponse + ], + ]: """Get a registered Nexus endpoint by ID. The returned version can be used for optimistic updates.""" + @abc.abstractmethod def CreateNexusEndpoint( self, request: temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointResponse + ], + ]: """Create a Nexus endpoint. This will fail if an endpoint with the same name is already registered with a status of ALREADY_EXISTS. Returns the created endpoint with its initial version. You may use this version for subsequent updates. """ + @abc.abstractmethod def UpdateNexusEndpoint( self, request: temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointResponse + ], + ]: """Optimistically update a Nexus endpoint based on provided version as obtained via the `GetNexusEndpoint` or `ListNexusEndpointResponse` APIs. This will fail with a status of FAILED_PRECONDITION if the version does not match. Returns the updated endpoint with its updated version. You may use this version for subsequent updates. You don't need to increment the version yourself. The server will increment the version for you after each update. """ + @abc.abstractmethod def DeleteNexusEndpoint( self, request: temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointResponse + ], + ]: """Delete an incoming Nexus service by ID.""" + @abc.abstractmethod def ListNexusEndpoints( self, request: temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsResponse, + collections.abc.Awaitable[ + temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsResponse + ], + ]: """List all Nexus endpoints for the cluster, sorted by ID in ascending order. Set page_token in the request to the next_page_token field of the previous response to get the next page of results. An empty next_page_token indicates that there are no more results. During pagination, a newly added service with an ID lexicographically @@ -213,5 +407,6 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): """ def add_OperatorServiceServicer_to_server( - servicer: OperatorServiceServicer, server: grpc.Server + servicer: OperatorServiceServicer, + server: typing.Union[grpc.Server, grpc.aio.Server], ) -> None: ... diff --git a/temporalio/api/protocol/v1/message_pb2.py b/temporalio/api/protocol/v1/message_pb2.py index f91d62157..e9ca64f6a 100644 --- a/temporalio/api/protocol/v1/message_pb2.py +++ b/temporalio/api/protocol/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -20,19 +19,8 @@ b'\n&temporal/api/protocol/v1/message.proto\x12\x18temporal.api.protocol.v1\x1a\x19google/protobuf/any.proto"\x95\x01\n\x07Message\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x14protocol_instance_id\x18\x02 \x01(\t\x12\x12\n\x08\x65vent_id\x18\x03 \x01(\x03H\x00\x12\x17\n\rcommand_index\x18\x04 \x01(\x03H\x00\x12"\n\x04\x62ody\x18\x05 \x01(\x0b\x32\x14.google.protobuf.AnyB\x0f\n\rsequencing_idB\x93\x01\n\x1bio.temporal.api.protocol.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/protocol/v1;protocol\xaa\x02\x1aTemporalio.Api.Protocol.V1\xea\x02\x1dTemporalio::Api::Protocol::V1b\x06proto3' ) - -_MESSAGE = DESCRIPTOR.message_types_by_name["Message"] -Message = _reflection.GeneratedProtocolMessageType( - "Message", - (_message.Message,), - { - "DESCRIPTOR": _MESSAGE, - "__module__": "temporalio.api.protocol.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.protocol.v1.Message) - }, -) -_sym_db.RegisterMessage(Message) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\033io.temporal.api.protocol.v1B\014MessageProtoP\001Z'go.temporal.io/api/protocol/v1;protocol\252\002\032Temporalio.Api.Protocol.V1\352\002\035Temporalio::Api::Protocol::V1" diff --git a/temporalio/api/protocol/v1/message_pb2.pyi b/temporalio/api/protocol/v1/message_pb2.pyi index 24034c89e..e873ebd62 100644 --- a/temporalio/api/protocol/v1/message_pb2.pyi +++ b/temporalio/api/protocol/v1/message_pb2.pyi @@ -4,19 +4,15 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class Message(google.protobuf.message.Message): """(-- api-linter: core::0146::any=disabled aip.dev/not-precedent: We want runtime extensibility for the body field --) @@ -42,6 +38,7 @@ class Message(google.protobuf.message.Message): """The opaque data carried by this message. The protocol type can be extracted from the package name of the message carried inside the Any. """ + def __init__( self, *, @@ -53,7 +50,7 @@ class Message(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "body", b"body", "command_index", @@ -66,7 +63,7 @@ class Message(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "body", b"body", "command_index", @@ -82,7 +79,7 @@ class Message(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["sequencing_id", b"sequencing_id"] - ) -> typing_extensions.Literal["event_id", "command_index"] | None: ... + self, oneof_group: typing.Literal["sequencing_id", b"sequencing_id"] + ) -> typing.Literal["event_id", "command_index"] | None: ... global___Message = Message diff --git a/temporalio/api/protometa/v1/annotations_pb2.py b/temporalio/api/protometa/v1/annotations_pb2.py index 3f790e1fd..74a2d94ca 100644 --- a/temporalio/api/protometa/v1/annotations_pb2.py +++ b/temporalio/api/protometa/v1/annotations_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -20,22 +19,8 @@ b'\n+temporal/api/protometa/v1/annotations.proto\x12\x19temporal.api.protometa.v1\x1a google/protobuf/descriptor.proto"8\n\x17RequestHeaderAnnotation\x12\x0e\n\x06header\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:m\n\x0erequest_header\x12\x1e.google.protobuf.MethodOptions\x18\xd1\xc3\xb9\x03 \x03(\x0b\x32\x32.temporal.api.protometa.v1.RequestHeaderAnnotationB\x9c\x01\n\x1cio.temporal.api.protometa.v1B\x10\x41nnotationsProtoP\x01Z)go.temporal.io/api/protometa/v1;protometa\xaa\x02\x1bTemporalio.Api.Protometa.V1\xea\x02\x1eTemporalio::Api::Protometa::V1b\x06proto3' ) - -REQUEST_HEADER_FIELD_NUMBER = 7234001 -request_header = DESCRIPTOR.extensions_by_name["request_header"] - -_REQUESTHEADERANNOTATION = DESCRIPTOR.message_types_by_name["RequestHeaderAnnotation"] -RequestHeaderAnnotation = _reflection.GeneratedProtocolMessageType( - "RequestHeaderAnnotation", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTHEADERANNOTATION, - "__module__": "temporalio.api.protometa.v1.annotations_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.protometa.v1.RequestHeaderAnnotation) - }, -) -_sym_db.RegisterMessage(RequestHeaderAnnotation) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension( request_header diff --git a/temporalio/api/protometa/v1/annotations_pb2.pyi b/temporalio/api/protometa/v1/annotations_pb2.pyi index 143d7d7d9..a0f7c2221 100644 --- a/temporalio/api/protometa/v1/annotations_pb2.pyi +++ b/temporalio/api/protometa/v1/annotations_pb2.pyi @@ -4,7 +4,7 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.descriptor_pb2 @@ -12,13 +12,9 @@ import google.protobuf.internal.containers import google.protobuf.internal.extension_dict import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RequestHeaderAnnotation(google.protobuf.message.Message): """RequestHeaderAnnotation allows specifying that field values from a request should be propagated as outbound headers. @@ -49,8 +45,7 @@ class RequestHeaderAnnotation(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["header", b"header", "value", b"value"], + self, field_name: typing.Literal["header", b"header", "value", b"value"] ) -> None: ... global___RequestHeaderAnnotation = RequestHeaderAnnotation diff --git a/temporalio/api/query/v1/message_pb2.py b/temporalio/api/query/v1/message_pb2.py index aaee2715a..a3a4b4c8e 100644 --- a/temporalio/api/query/v1/message_pb2.py +++ b/temporalio/api/query/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -31,43 +30,8 @@ b'\n#temporal/api/query/v1/message.proto\x12\x15temporal.api.query.v1\x1a!temporal/api/enums/v1/query.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto"\x89\x01\n\rWorkflowQuery\x12\x12\n\nquery_type\x18\x01 \x01(\t\x12\x34\n\nquery_args\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xce\x01\n\x13WorkflowQueryResult\x12;\n\x0bresult_type\x18\x01 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x30\n\x06\x61nswer\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x03 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"O\n\rQueryRejected\x12>\n\x06status\x18\x01 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatusB\x84\x01\n\x18io.temporal.api.query.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/query/v1;query\xaa\x02\x17Temporalio.Api.Query.V1\xea\x02\x1aTemporalio::Api::Query::V1b\x06proto3' ) - -_WORKFLOWQUERY = DESCRIPTOR.message_types_by_name["WorkflowQuery"] -_WORKFLOWQUERYRESULT = DESCRIPTOR.message_types_by_name["WorkflowQueryResult"] -_QUERYREJECTED = DESCRIPTOR.message_types_by_name["QueryRejected"] -WorkflowQuery = _reflection.GeneratedProtocolMessageType( - "WorkflowQuery", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWQUERY, - "__module__": "temporalio.api.query.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.query.v1.WorkflowQuery) - }, -) -_sym_db.RegisterMessage(WorkflowQuery) - -WorkflowQueryResult = _reflection.GeneratedProtocolMessageType( - "WorkflowQueryResult", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWQUERYRESULT, - "__module__": "temporalio.api.query.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.query.v1.WorkflowQueryResult) - }, -) -_sym_db.RegisterMessage(WorkflowQueryResult) - -QueryRejected = _reflection.GeneratedProtocolMessageType( - "QueryRejected", - (_message.Message,), - { - "DESCRIPTOR": _QUERYREJECTED, - "__module__": "temporalio.api.query.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.query.v1.QueryRejected) - }, -) -_sym_db.RegisterMessage(QueryRejected) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.query.v1B\014MessageProtoP\001Z!go.temporal.io/api/query/v1;query\252\002\027Temporalio.Api.Query.V1\352\002\032Temporalio::Api::Query::V1" diff --git a/temporalio/api/query/v1/message_pb2.pyi b/temporalio/api/query/v1/message_pb2.pyi index 199c51b9a..2c131edab 100644 --- a/temporalio/api/query/v1/message_pb2.pyi +++ b/temporalio/api/query/v1/message_pb2.pyi @@ -4,7 +4,7 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message @@ -14,13 +14,9 @@ import temporalio.api.enums.v1.query_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowQuery(google.protobuf.message.Message): """See https://docs.temporal.io/docs/concepts/queries/""" @@ -34,11 +30,13 @@ class WorkflowQuery(google.protobuf.message.Message): @property def query_args(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized arguments that will be provided to the query handler.""" + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: """Headers that were passed by the caller of the query and copied by temporal server into the workflow task. """ + def __init__( self, *, @@ -48,13 +46,11 @@ class WorkflowQuery(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "header", b"header", "query_args", b"query_args" - ], + field_name: typing.Literal["header", b"header", "query_args", b"query_args"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "query_args", @@ -66,6 +62,7 @@ class WorkflowQuery(google.protobuf.message.Message): global___WorkflowQuery = WorkflowQuery +@typing.final class WorkflowQueryResult(google.protobuf.message.Message): """Answer to a `WorkflowQuery`""" @@ -77,21 +74,23 @@ class WorkflowQueryResult(google.protobuf.message.Message): FAILURE_FIELD_NUMBER: builtins.int result_type: temporalio.api.enums.v1.query_pb2.QueryResultType.ValueType """Did the query succeed or fail?""" + error_message: builtins.str + """Mutually exclusive with `answer`. Set when the query fails. + See also the newer `failure` field. + """ @property def answer(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Set when the query succeeds with the results. Mutually exclusive with `error_message` and `failure`. """ - error_message: builtins.str - """Mutually exclusive with `answer`. Set when the query fails. - See also the newer `failure` field. - """ + @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's failure converter to support E2E encryption of messages and stack traces. Mutually exclusive with `answer`. Set when the query fails. """ + def __init__( self, *, @@ -101,14 +100,11 @@ class WorkflowQueryResult(google.protobuf.message.Message): failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "answer", b"answer", "failure", b"failure" - ], + self, field_name: typing.Literal["answer", b"answer", "failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "answer", b"answer", "error_message", @@ -122,6 +118,7 @@ class WorkflowQueryResult(google.protobuf.message.Message): global___WorkflowQueryResult = WorkflowQueryResult +@typing.final class QueryRejected(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -132,8 +129,6 @@ class QueryRejected(google.protobuf.message.Message): *, status: temporalio.api.enums.v1.workflow_pb2.WorkflowExecutionStatus.ValueType = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["status", b"status"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ... global___QueryRejected = QueryRejected diff --git a/temporalio/api/replication/v1/message_pb2.py b/temporalio/api/replication/v1/message_pb2.py index 8dbe73e1d..78773c0e6 100644 --- a/temporalio/api/replication/v1/message_pb2.py +++ b/temporalio/api/replication/v1/message_pb2.py @@ -5,15 +5,15 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from temporalio.api.enums.v1 import ( @@ -21,55 +21,18 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n)temporal/api/replication/v1/message.proto\x12\x1btemporal.api.replication.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a%temporal/api/enums/v1/namespace.proto"0\n\x18\x43lusterReplicationConfig\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t"\xba\x01\n\x1aNamespaceReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x01 \x01(\t\x12G\n\x08\x63lusters\x18\x02 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x36\n\x05state\x18\x03 \x01(\x0e\x32\'.temporal.api.enums.v1.ReplicationState"]\n\x0e\x46\x61iloverStatus\x12\x31\n\rfailover_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x66\x61ilover_version\x18\x02 \x01(\x03\x42\xa2\x01\n\x1eio.temporal.api.replication.v1B\x0cMessageProtoP\x01Z-go.temporal.io/api/replication/v1;replication\xaa\x02\x1dTemporalio.Api.Replication.V1\xea\x02 Temporalio::Api::Replication::V1b\x06proto3' + b'\n)temporal/api/replication/v1/message.proto\x12\x1btemporal.api.replication.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a%temporal/api/enums/v1/namespace.proto"n\n\x18\x43lusterReplicationConfig\x12\x14\n\x0c\x63luster_name\x18\x01 \x01(\t\x12<\n\x19replication_ramp_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xba\x01\n\x1aNamespaceReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x01 \x01(\t\x12G\n\x08\x63lusters\x18\x02 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x36\n\x05state\x18\x03 \x01(\x0e\x32\'.temporal.api.enums.v1.ReplicationState"]\n\x0e\x46\x61iloverStatus\x12\x31\n\rfailover_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x66\x61ilover_version\x18\x02 \x01(\x03\x42\xa2\x01\n\x1eio.temporal.api.replication.v1B\x0cMessageProtoP\x01Z-go.temporal.io/api/replication/v1;replication\xaa\x02\x1dTemporalio.Api.Replication.V1\xea\x02 Temporalio::Api::Replication::V1b\x06proto3' ) - -_CLUSTERREPLICATIONCONFIG = DESCRIPTOR.message_types_by_name["ClusterReplicationConfig"] -_NAMESPACEREPLICATIONCONFIG = DESCRIPTOR.message_types_by_name[ - "NamespaceReplicationConfig" -] -_FAILOVERSTATUS = DESCRIPTOR.message_types_by_name["FailoverStatus"] -ClusterReplicationConfig = _reflection.GeneratedProtocolMessageType( - "ClusterReplicationConfig", - (_message.Message,), - { - "DESCRIPTOR": _CLUSTERREPLICATIONCONFIG, - "__module__": "temporalio.api.replication.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.replication.v1.ClusterReplicationConfig) - }, -) -_sym_db.RegisterMessage(ClusterReplicationConfig) - -NamespaceReplicationConfig = _reflection.GeneratedProtocolMessageType( - "NamespaceReplicationConfig", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACEREPLICATIONCONFIG, - "__module__": "temporalio.api.replication.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.replication.v1.NamespaceReplicationConfig) - }, -) -_sym_db.RegisterMessage(NamespaceReplicationConfig) - -FailoverStatus = _reflection.GeneratedProtocolMessageType( - "FailoverStatus", - (_message.Message,), - { - "DESCRIPTOR": _FAILOVERSTATUS, - "__module__": "temporalio.api.replication.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.replication.v1.FailoverStatus) - }, -) -_sym_db.RegisterMessage(FailoverStatus) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\036io.temporal.api.replication.v1B\014MessageProtoP\001Z-go.temporal.io/api/replication/v1;replication\252\002\035Temporalio.Api.Replication.V1\352\002 Temporalio::Api::Replication::V1" - _CLUSTERREPLICATIONCONFIG._serialized_start = 146 - _CLUSTERREPLICATIONCONFIG._serialized_end = 194 - _NAMESPACEREPLICATIONCONFIG._serialized_start = 197 - _NAMESPACEREPLICATIONCONFIG._serialized_end = 383 - _FAILOVERSTATUS._serialized_start = 385 - _FAILOVERSTATUS._serialized_end = 478 + _CLUSTERREPLICATIONCONFIG._serialized_start = 178 + _CLUSTERREPLICATIONCONFIG._serialized_end = 288 + _NAMESPACEREPLICATIONCONFIG._serialized_start = 291 + _NAMESPACEREPLICATIONCONFIG._serialized_end = 477 + _FAILOVERSTATUS._serialized_start = 479 + _FAILOVERSTATUS._serialized_end = 572 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/replication/v1/message_pb2.pyi b/temporalio/api/replication/v1/message_pb2.pyi index e6f04334f..3ca4ec4ca 100644 --- a/temporalio/api/replication/v1/message_pb2.pyi +++ b/temporalio/api/replication/v1/message_pb2.pyi @@ -5,38 +5,56 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor +import google.protobuf.duration_pb2 import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 import temporalio.api.enums.v1.namespace_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ClusterReplicationConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor CLUSTER_NAME_FIELD_NUMBER: builtins.int + REPLICATION_RAMP_DURATION_FIELD_NUMBER: builtins.int cluster_name: builtins.str + @property + def replication_ramp_duration(self) -> google.protobuf.duration_pb2.Duration: + """Ramp duration when this cluster is added as passive by UpdateNamespace; unset or non-positive disables gradual connect. + This field is not persisted and is omitted from namespace responses. + """ + def __init__( self, *, cluster_name: builtins.str = ..., + replication_ramp_duration: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... + def HasField( + self, + field_name: typing.Literal[ + "replication_ramp_duration", b"replication_ramp_duration" + ], + ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["cluster_name", b"cluster_name"] + self, + field_name: typing.Literal[ + "cluster_name", + b"cluster_name", + "replication_ramp_duration", + b"replication_ramp_duration", + ], ) -> None: ... global___ClusterReplicationConfig = ClusterReplicationConfig +@typing.final class NamespaceReplicationConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -44,13 +62,13 @@ class NamespaceReplicationConfig(google.protobuf.message.Message): CLUSTERS_FIELD_NUMBER: builtins.int STATE_FIELD_NUMBER: builtins.int active_cluster_name: builtins.str + state: temporalio.api.enums.v1.namespace_pb2.ReplicationState.ValueType @property def clusters( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ global___ClusterReplicationConfig ]: ... - state: temporalio.api.enums.v1.namespace_pb2.ReplicationState.ValueType def __init__( self, *, @@ -61,7 +79,7 @@ class NamespaceReplicationConfig(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "active_cluster_name", b"active_cluster_name", "clusters", @@ -73,6 +91,7 @@ class NamespaceReplicationConfig(google.protobuf.message.Message): global___NamespaceReplicationConfig = NamespaceReplicationConfig +@typing.final class FailoverStatus(google.protobuf.message.Message): """Represents a historical replication status of a Namespace""" @@ -80,10 +99,11 @@ class FailoverStatus(google.protobuf.message.Message): FAILOVER_TIME_FIELD_NUMBER: builtins.int FAILOVER_VERSION_FIELD_NUMBER: builtins.int + failover_version: builtins.int @property def failover_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamp when the Cluster switched to the following failover_version""" - failover_version: builtins.int + def __init__( self, *, @@ -91,11 +111,11 @@ class FailoverStatus(google.protobuf.message.Message): failover_version: builtins.int = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failover_time", b"failover_time"] + self, field_name: typing.Literal["failover_time", b"failover_time"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failover_time", b"failover_time", "failover_version", b"failover_version" ], ) -> None: ... diff --git a/temporalio/api/rules/v1/message_pb2.py b/temporalio/api/rules/v1/message_pb2.py index ad0d0014c..d705cc13c 100644 --- a/temporalio/api/rules/v1/message_pb2.py +++ b/temporalio/api/rules/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -20,69 +19,8 @@ b'\n#temporal/api/rules/v1/message.proto\x12\x15temporal.api.rules.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x8f\x01\n\x12WorkflowRuleAction\x12W\n\x0e\x61\x63tivity_pause\x18\x01 \x01(\x0b\x32=.temporal.api.rules.v1.WorkflowRuleAction.ActionActivityPauseH\x00\x1a\x15\n\x13\x41\x63tionActivityPauseB\t\n\x07variant"\xbd\x02\n\x10WorkflowRuleSpec\x12\n\n\x02id\x18\x01 \x01(\t\x12Y\n\x0e\x61\x63tivity_start\x18\x02 \x01(\x0b\x32?.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTriggerH\x00\x12\x18\n\x10visibility_query\x18\x03 \x01(\t\x12:\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32).temporal.api.rules.v1.WorkflowRuleAction\x12\x33\n\x0f\x65xpiration_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a,\n\x17\x41\x63tivityStartingTrigger\x12\x11\n\tpredicate\x18\x01 \x01(\tB\t\n\x07trigger"\xa8\x01\n\x0cWorkflowRule\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x04spec\x18\x02 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpec\x12\x1b\n\x13\x63reated_by_identity\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x84\x01\n\x18io.temporal.api.rules.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/rules/v1;rules\xaa\x02\x17Temporalio.Api.Rules.V1\xea\x02\x1aTemporalio::Api::Rules::V1b\x06proto3' ) - -_WORKFLOWRULEACTION = DESCRIPTOR.message_types_by_name["WorkflowRuleAction"] -_WORKFLOWRULEACTION_ACTIONACTIVITYPAUSE = _WORKFLOWRULEACTION.nested_types_by_name[ - "ActionActivityPause" -] -_WORKFLOWRULESPEC = DESCRIPTOR.message_types_by_name["WorkflowRuleSpec"] -_WORKFLOWRULESPEC_ACTIVITYSTARTINGTRIGGER = _WORKFLOWRULESPEC.nested_types_by_name[ - "ActivityStartingTrigger" -] -_WORKFLOWRULE = DESCRIPTOR.message_types_by_name["WorkflowRule"] -WorkflowRuleAction = _reflection.GeneratedProtocolMessageType( - "WorkflowRuleAction", - (_message.Message,), - { - "ActionActivityPause": _reflection.GeneratedProtocolMessageType( - "ActionActivityPause", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWRULEACTION_ACTIONACTIVITYPAUSE, - "__module__": "temporalio.api.rules.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.rules.v1.WorkflowRuleAction.ActionActivityPause) - }, - ), - "DESCRIPTOR": _WORKFLOWRULEACTION, - "__module__": "temporalio.api.rules.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.rules.v1.WorkflowRuleAction) - }, -) -_sym_db.RegisterMessage(WorkflowRuleAction) -_sym_db.RegisterMessage(WorkflowRuleAction.ActionActivityPause) - -WorkflowRuleSpec = _reflection.GeneratedProtocolMessageType( - "WorkflowRuleSpec", - (_message.Message,), - { - "ActivityStartingTrigger": _reflection.GeneratedProtocolMessageType( - "ActivityStartingTrigger", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWRULESPEC_ACTIVITYSTARTINGTRIGGER, - "__module__": "temporalio.api.rules.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger) - }, - ), - "DESCRIPTOR": _WORKFLOWRULESPEC, - "__module__": "temporalio.api.rules.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.rules.v1.WorkflowRuleSpec) - }, -) -_sym_db.RegisterMessage(WorkflowRuleSpec) -_sym_db.RegisterMessage(WorkflowRuleSpec.ActivityStartingTrigger) - -WorkflowRule = _reflection.GeneratedProtocolMessageType( - "WorkflowRule", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWRULE, - "__module__": "temporalio.api.rules.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.rules.v1.WorkflowRule) - }, -) -_sym_db.RegisterMessage(WorkflowRule) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.rules.v1B\014MessageProtoP\001Z!go.temporal.io/api/rules/v1;rules\252\002\027Temporalio.Api.Rules.V1\352\002\032Temporalio::Api::Rules::V1" diff --git a/temporalio/api/rules/v1/message_pb2.pyi b/temporalio/api/rules/v1/message_pb2.pyi index ef036f554..3215b7c12 100644 --- a/temporalio/api/rules/v1/message_pb2.pyi +++ b/temporalio/api/rules/v1/message_pb2.pyi @@ -5,23 +5,20 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowRuleAction(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ActionActivityPause(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -39,25 +36,27 @@ class WorkflowRuleAction(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_pause", b"activity_pause", "variant", b"variant" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_pause", b"activity_pause", "variant", b"variant" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["activity_pause"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["activity_pause"] | None: ... global___WorkflowRuleAction = WorkflowRuleAction +@typing.final class WorkflowRuleSpec(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ActivityStartingTrigger(google.protobuf.message.Message): """Activity trigger will be triggered when an activity is about to start.""" @@ -86,7 +85,7 @@ class WorkflowRuleSpec(google.protobuf.message.Message): predicate: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["predicate", b"predicate"] + self, field_name: typing.Literal["predicate", b"predicate"] ) -> None: ... ID_FIELD_NUMBER: builtins.int @@ -98,8 +97,6 @@ class WorkflowRuleSpec(google.protobuf.message.Message): """The id of the new workflow rule. Must be unique within the namespace. Can be set by the user, and can have business meaning. """ - @property - def activity_start(self) -> global___WorkflowRuleSpec.ActivityStartingTrigger: ... visibility_query: builtins.str """Restricted Visibility query. This query is used to filter workflows in this namespace to which this rule should apply. @@ -111,17 +108,21 @@ class WorkflowRuleSpec(google.protobuf.message.Message): - ExecutionStatus """ @property + def activity_start(self) -> global___WorkflowRuleSpec.ActivityStartingTrigger: ... + @property def actions( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ global___WorkflowRuleAction ]: """WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.""" + @property def expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Expiration time of the rule. After this time, the rule will be deleted. Can be empty if the rule should never expire. """ + def __init__( self, *, @@ -133,7 +134,7 @@ class WorkflowRuleSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_start", b"activity_start", "expiration_time", @@ -144,7 +145,7 @@ class WorkflowRuleSpec(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "actions", b"actions", "activity_start", @@ -160,11 +161,12 @@ class WorkflowRuleSpec(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["trigger", b"trigger"] - ) -> typing_extensions.Literal["activity_start"] | None: ... + self, oneof_group: typing.Literal["trigger", b"trigger"] + ) -> typing.Literal["activity_start"] | None: ... global___WorkflowRuleSpec = WorkflowRuleSpec +@typing.final class WorkflowRule(google.protobuf.message.Message): """WorkflowRule describes a rule that can be applied to any workflow in this namespace.""" @@ -174,12 +176,6 @@ class WorkflowRule(google.protobuf.message.Message): SPEC_FIELD_NUMBER: builtins.int CREATED_BY_IDENTITY_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int - @property - def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Rule creation time.""" - @property - def spec(self) -> global___WorkflowRuleSpec: - """Rule specification""" created_by_identity: builtins.str """Identity of the actor that created the rule (-- api-linter: core::0140::prepositions=disabled @@ -189,6 +185,14 @@ class WorkflowRule(google.protobuf.message.Message): """ description: builtins.str """Rule description.""" + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Rule creation time.""" + + @property + def spec(self) -> global___WorkflowRuleSpec: + """Rule specification""" + def __init__( self, *, @@ -198,14 +202,11 @@ class WorkflowRule(google.protobuf.message.Message): description: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "create_time", b"create_time", "spec", b"spec" - ], + self, field_name: typing.Literal["create_time", b"create_time", "spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "created_by_identity", diff --git a/temporalio/api/schedule/v1/message_pb2.py b/temporalio/api/schedule/v1/message_pb2.py index de57c94ed..5975b2580 100644 --- a/temporalio/api/schedule/v1/message_pb2.py +++ b/temporalio/api/schedule/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -31,204 +30,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n&temporal/api/schedule/v1/message.proto\x12\x18temporal.api.schedule.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/schedule.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a&temporal/api/workflow/v1/message.proto"\x95\x01\n\x0c\x43\x61lendarSpec\x12\x0e\n\x06second\x18\x01 \x01(\t\x12\x0e\n\x06minute\x18\x02 \x01(\t\x12\x0c\n\x04hour\x18\x03 \x01(\t\x12\x14\n\x0c\x64\x61y_of_month\x18\x04 \x01(\t\x12\r\n\x05month\x18\x05 \x01(\t\x12\x0c\n\x04year\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x61y_of_week\x18\x07 \x01(\t\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t"1\n\x05Range\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x0c\n\x04step\x18\x03 \x01(\x05"\x86\x03\n\x16StructuredCalendarSpec\x12/\n\x06second\x18\x01 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12/\n\x06minute\x18\x02 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12-\n\x04hour\x18\x03 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x35\n\x0c\x64\x61y_of_month\x18\x04 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12.\n\x05month\x18\x05 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12-\n\x04year\x18\x06 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x34\n\x0b\x64\x61y_of_week\x18\x07 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t"e\n\x0cIntervalSpec\x12+\n\x08interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n\x05phase\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xba\x04\n\x0cScheduleSpec\x12M\n\x13structured_calendar\x18\x07 \x03(\x0b\x32\x30.temporal.api.schedule.v1.StructuredCalendarSpec\x12\x13\n\x0b\x63ron_string\x18\x08 \x03(\t\x12\x38\n\x08\x63\x61lendar\x18\x01 \x03(\x0b\x32&.temporal.api.schedule.v1.CalendarSpec\x12\x38\n\x08interval\x18\x02 \x03(\x0b\x32&.temporal.api.schedule.v1.IntervalSpec\x12\x44\n\x10\x65xclude_calendar\x18\x03 \x03(\x0b\x32&.temporal.api.schedule.v1.CalendarSpecB\x02\x18\x01\x12U\n\x1b\x65xclude_structured_calendar\x18\t \x03(\x0b\x32\x30.temporal.api.schedule.v1.StructuredCalendarSpec\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\x06jitter\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rtimezone_name\x18\n \x01(\t\x12\x15\n\rtimezone_data\x18\x0b \x01(\x0c"\xc8\x01\n\x10SchedulePolicies\x12\x44\n\x0eoverlap_policy\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy\x12\x31\n\x0e\x63\x61tchup_window\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10pause_on_failure\x18\x03 \x01(\x08\x12!\n\x19keep_original_workflow_id\x18\x04 \x01(\x08"h\n\x0eScheduleAction\x12L\n\x0estart_workflow\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.NewWorkflowExecutionInfoH\x00\x42\x08\n\x06\x61\x63tion"\x93\x02\n\x14ScheduleActionResult\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x61\x63tual_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x15start_workflow_result\x18\x0b \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12M\n\x15start_workflow_status\x18\x0c \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus"b\n\rScheduleState\x12\r\n\x05notes\x18\x01 \x01(\t\x12\x0e\n\x06paused\x18\x02 \x01(\x08\x12\x17\n\x0flimited_actions\x18\x03 \x01(\x08\x12\x19\n\x11remaining_actions\x18\x04 \x01(\x03"\x95\x01\n\x19TriggerImmediatelyRequest\x12\x44\n\x0eoverlap_policy\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb5\x01\n\x0f\x42\x61\x63kfillRequest\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x0eoverlap_policy\x18\x03 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy"\xc6\x01\n\rSchedulePatch\x12P\n\x13trigger_immediately\x18\x01 \x01(\x0b\x32\x33.temporal.api.schedule.v1.TriggerImmediatelyRequest\x12\x43\n\x10\x62\x61\x63kfill_request\x18\x02 \x03(\x0b\x32).temporal.api.schedule.v1.BackfillRequest\x12\r\n\x05pause\x18\x03 \x01(\t\x12\x0f\n\x07unpause\x18\x04 \x01(\t"\xf0\x03\n\x0cScheduleInfo\x12\x14\n\x0c\x61\x63tion_count\x18\x01 \x01(\x03\x12\x1d\n\x15missed_catchup_window\x18\x02 \x01(\x03\x12\x17\n\x0foverlap_skipped\x18\x03 \x01(\x03\x12\x16\n\x0e\x62uffer_dropped\x18\n \x01(\x03\x12\x13\n\x0b\x62uffer_size\x18\x0b \x01(\x03\x12\x44\n\x11running_workflows\x18\t \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x46\n\x0erecent_actions\x18\x04 \x03(\x0b\x32..temporal.api.schedule.v1.ScheduleActionResult\x12\x37\n\x13\x66uture_action_times\x18\x05 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12"\n\x16invalid_schedule_error\x18\x08 \x01(\tB\x02\x18\x01\x12\x18\n\x10state_size_bytes\x18\x0c \x01(\x03"\xf0\x01\n\x08Schedule\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleSpec\x12\x38\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32(.temporal.api.schedule.v1.ScheduleAction\x12<\n\x08policies\x18\x03 \x01(\x0b\x32*.temporal.api.schedule.v1.SchedulePolicies\x12\x36\n\x05state\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.ScheduleState"\xbf\x02\n\x10ScheduleListInfo\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleSpec\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\r\n\x05notes\x18\x03 \x01(\t\x12\x0e\n\x06paused\x18\x04 \x01(\x08\x12\x46\n\x0erecent_actions\x18\x05 \x03(\x0b\x32..temporal.api.schedule.v1.ScheduleActionResult\x12\x37\n\x13\x66uture_action_times\x18\x06 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10state_size_bytes\x18\x07 \x01(\x03"\xd3\x01\n\x11ScheduleListEntry\x12\x13\n\x0bschedule_id\x18\x01 \x01(\t\x12*\n\x04memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x03 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x38\n\x04info\x18\x04 \x01(\x0b\x32*.temporal.api.schedule.v1.ScheduleListInfoB\x93\x01\n\x1bio.temporal.api.schedule.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/schedule/v1;schedule\xaa\x02\x1aTemporalio.Api.Schedule.V1\xea\x02\x1dTemporalio::Api::Schedule::V1b\x06proto3' + b'\n&temporal/api/schedule/v1/message.proto\x12\x18temporal.api.schedule.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/schedule.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a&temporal/api/workflow/v1/message.proto"\x95\x01\n\x0c\x43\x61lendarSpec\x12\x0e\n\x06second\x18\x01 \x01(\t\x12\x0e\n\x06minute\x18\x02 \x01(\t\x12\x0c\n\x04hour\x18\x03 \x01(\t\x12\x14\n\x0c\x64\x61y_of_month\x18\x04 \x01(\t\x12\r\n\x05month\x18\x05 \x01(\t\x12\x0c\n\x04year\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x61y_of_week\x18\x07 \x01(\t\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t"1\n\x05Range\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x0c\n\x04step\x18\x03 \x01(\x05"\x86\x03\n\x16StructuredCalendarSpec\x12/\n\x06second\x18\x01 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12/\n\x06minute\x18\x02 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12-\n\x04hour\x18\x03 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x35\n\x0c\x64\x61y_of_month\x18\x04 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12.\n\x05month\x18\x05 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12-\n\x04year\x18\x06 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x34\n\x0b\x64\x61y_of_week\x18\x07 \x03(\x0b\x32\x1f.temporal.api.schedule.v1.Range\x12\x0f\n\x07\x63omment\x18\x08 \x01(\t"e\n\x0cIntervalSpec\x12+\n\x08interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n\x05phase\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\xba\x04\n\x0cScheduleSpec\x12M\n\x13structured_calendar\x18\x07 \x03(\x0b\x32\x30.temporal.api.schedule.v1.StructuredCalendarSpec\x12\x13\n\x0b\x63ron_string\x18\x08 \x03(\t\x12\x38\n\x08\x63\x61lendar\x18\x01 \x03(\x0b\x32&.temporal.api.schedule.v1.CalendarSpec\x12\x38\n\x08interval\x18\x02 \x03(\x0b\x32&.temporal.api.schedule.v1.IntervalSpec\x12\x44\n\x10\x65xclude_calendar\x18\x03 \x03(\x0b\x32&.temporal.api.schedule.v1.CalendarSpecB\x02\x18\x01\x12U\n\x1b\x65xclude_structured_calendar\x18\t \x03(\x0b\x32\x30.temporal.api.schedule.v1.StructuredCalendarSpec\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\x06jitter\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rtimezone_name\x18\n \x01(\t\x12\x15\n\rtimezone_data\x18\x0b \x01(\x0c"\xc8\x01\n\x10SchedulePolicies\x12\x44\n\x0eoverlap_policy\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy\x12\x31\n\x0e\x63\x61tchup_window\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10pause_on_failure\x18\x03 \x01(\x08\x12!\n\x19keep_original_workflow_id\x18\x04 \x01(\x08"h\n\x0eScheduleAction\x12L\n\x0estart_workflow\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.NewWorkflowExecutionInfoH\x00\x42\x08\n\x06\x61\x63tion"\x93\x02\n\x14ScheduleActionResult\x12\x31\n\rschedule_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x61\x63tual_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12H\n\x15start_workflow_result\x18\x0b \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12M\n\x15start_workflow_status\x18\x0c \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus"b\n\rScheduleState\x12\r\n\x05notes\x18\x01 \x01(\t\x12\x0e\n\x06paused\x18\x02 \x01(\x08\x12\x17\n\x0flimited_actions\x18\x03 \x01(\x08\x12\x19\n\x11remaining_actions\x18\x04 \x01(\x03"\x95\x01\n\x19TriggerImmediatelyRequest\x12\x44\n\x0eoverlap_policy\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb5\x01\n\x0f\x42\x61\x63kfillRequest\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x44\n\x0eoverlap_policy\x18\x03 \x01(\x0e\x32,.temporal.api.enums.v1.ScheduleOverlapPolicy"\x90\x02\n\rSchedulePatch\x12P\n\x13trigger_immediately\x18\x01 \x01(\x0b\x32\x33.temporal.api.schedule.v1.TriggerImmediatelyRequest\x12\x43\n\x10\x62\x61\x63kfill_request\x18\x02 \x03(\x0b\x32).temporal.api.schedule.v1.BackfillRequest\x12\r\n\x05pause\x18\x03 \x01(\t\x12\x0f\n\x07unpause\x18\x04 \x01(\t\x12H\n\x14time_skipping_config\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig"\xb6\x04\n\x0cScheduleInfo\x12\x14\n\x0c\x61\x63tion_count\x18\x01 \x01(\x03\x12\x1d\n\x15missed_catchup_window\x18\x02 \x01(\x03\x12\x17\n\x0foverlap_skipped\x18\x03 \x01(\x03\x12\x16\n\x0e\x62uffer_dropped\x18\n \x01(\x03\x12\x13\n\x0b\x62uffer_size\x18\x0b \x01(\x03\x12\x44\n\x11running_workflows\x18\t \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x46\n\x0erecent_actions\x18\x04 \x03(\x0b\x32..temporal.api.schedule.v1.ScheduleActionResult\x12\x37\n\x13\x66uture_action_times\x18\x05 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12"\n\x16invalid_schedule_error\x18\x08 \x01(\tB\x02\x18\x01\x12\x18\n\x10state_size_bytes\x18\x0c \x01(\x03\x12\x44\n\x12time_skipping_info\x18\r \x01(\x0b\x32(.temporal.api.common.v1.TimeSkippingInfo"\xf0\x01\n\x08Schedule\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleSpec\x12\x38\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32(.temporal.api.schedule.v1.ScheduleAction\x12<\n\x08policies\x18\x03 \x01(\x0b\x32*.temporal.api.schedule.v1.SchedulePolicies\x12\x36\n\x05state\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.ScheduleState"\xbf\x02\n\x10ScheduleListInfo\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleSpec\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\r\n\x05notes\x18\x03 \x01(\t\x12\x0e\n\x06paused\x18\x04 \x01(\x08\x12\x46\n\x0erecent_actions\x18\x05 \x03(\x0b\x32..temporal.api.schedule.v1.ScheduleActionResult\x12\x37\n\x13\x66uture_action_times\x18\x06 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10state_size_bytes\x18\x07 \x01(\x03"\xd3\x01\n\x11ScheduleListEntry\x12\x13\n\x0bschedule_id\x18\x01 \x01(\t\x12*\n\x04memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x03 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x38\n\x04info\x18\x04 \x01(\x0b\x32*.temporal.api.schedule.v1.ScheduleListInfoB\x93\x01\n\x1bio.temporal.api.schedule.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/schedule/v1;schedule\xaa\x02\x1aTemporalio.Api.Schedule.V1\xea\x02\x1dTemporalio::Api::Schedule::V1b\x06proto3' ) - -_CALENDARSPEC = DESCRIPTOR.message_types_by_name["CalendarSpec"] -_RANGE = DESCRIPTOR.message_types_by_name["Range"] -_STRUCTUREDCALENDARSPEC = DESCRIPTOR.message_types_by_name["StructuredCalendarSpec"] -_INTERVALSPEC = DESCRIPTOR.message_types_by_name["IntervalSpec"] -_SCHEDULESPEC = DESCRIPTOR.message_types_by_name["ScheduleSpec"] -_SCHEDULEPOLICIES = DESCRIPTOR.message_types_by_name["SchedulePolicies"] -_SCHEDULEACTION = DESCRIPTOR.message_types_by_name["ScheduleAction"] -_SCHEDULEACTIONRESULT = DESCRIPTOR.message_types_by_name["ScheduleActionResult"] -_SCHEDULESTATE = DESCRIPTOR.message_types_by_name["ScheduleState"] -_TRIGGERIMMEDIATELYREQUEST = DESCRIPTOR.message_types_by_name[ - "TriggerImmediatelyRequest" -] -_BACKFILLREQUEST = DESCRIPTOR.message_types_by_name["BackfillRequest"] -_SCHEDULEPATCH = DESCRIPTOR.message_types_by_name["SchedulePatch"] -_SCHEDULEINFO = DESCRIPTOR.message_types_by_name["ScheduleInfo"] -_SCHEDULE = DESCRIPTOR.message_types_by_name["Schedule"] -_SCHEDULELISTINFO = DESCRIPTOR.message_types_by_name["ScheduleListInfo"] -_SCHEDULELISTENTRY = DESCRIPTOR.message_types_by_name["ScheduleListEntry"] -CalendarSpec = _reflection.GeneratedProtocolMessageType( - "CalendarSpec", - (_message.Message,), - { - "DESCRIPTOR": _CALENDARSPEC, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.CalendarSpec) - }, -) -_sym_db.RegisterMessage(CalendarSpec) - -Range = _reflection.GeneratedProtocolMessageType( - "Range", - (_message.Message,), - { - "DESCRIPTOR": _RANGE, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.Range) - }, -) -_sym_db.RegisterMessage(Range) - -StructuredCalendarSpec = _reflection.GeneratedProtocolMessageType( - "StructuredCalendarSpec", - (_message.Message,), - { - "DESCRIPTOR": _STRUCTUREDCALENDARSPEC, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.StructuredCalendarSpec) - }, -) -_sym_db.RegisterMessage(StructuredCalendarSpec) - -IntervalSpec = _reflection.GeneratedProtocolMessageType( - "IntervalSpec", - (_message.Message,), - { - "DESCRIPTOR": _INTERVALSPEC, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.IntervalSpec) - }, -) -_sym_db.RegisterMessage(IntervalSpec) - -ScheduleSpec = _reflection.GeneratedProtocolMessageType( - "ScheduleSpec", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULESPEC, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleSpec) - }, -) -_sym_db.RegisterMessage(ScheduleSpec) - -SchedulePolicies = _reflection.GeneratedProtocolMessageType( - "SchedulePolicies", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULEPOLICIES, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.SchedulePolicies) - }, -) -_sym_db.RegisterMessage(SchedulePolicies) - -ScheduleAction = _reflection.GeneratedProtocolMessageType( - "ScheduleAction", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULEACTION, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleAction) - }, -) -_sym_db.RegisterMessage(ScheduleAction) - -ScheduleActionResult = _reflection.GeneratedProtocolMessageType( - "ScheduleActionResult", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULEACTIONRESULT, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleActionResult) - }, -) -_sym_db.RegisterMessage(ScheduleActionResult) - -ScheduleState = _reflection.GeneratedProtocolMessageType( - "ScheduleState", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULESTATE, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleState) - }, -) -_sym_db.RegisterMessage(ScheduleState) - -TriggerImmediatelyRequest = _reflection.GeneratedProtocolMessageType( - "TriggerImmediatelyRequest", - (_message.Message,), - { - "DESCRIPTOR": _TRIGGERIMMEDIATELYREQUEST, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.TriggerImmediatelyRequest) - }, -) -_sym_db.RegisterMessage(TriggerImmediatelyRequest) - -BackfillRequest = _reflection.GeneratedProtocolMessageType( - "BackfillRequest", - (_message.Message,), - { - "DESCRIPTOR": _BACKFILLREQUEST, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.BackfillRequest) - }, -) -_sym_db.RegisterMessage(BackfillRequest) - -SchedulePatch = _reflection.GeneratedProtocolMessageType( - "SchedulePatch", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULEPATCH, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.SchedulePatch) - }, -) -_sym_db.RegisterMessage(SchedulePatch) - -ScheduleInfo = _reflection.GeneratedProtocolMessageType( - "ScheduleInfo", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULEINFO, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleInfo) - }, -) -_sym_db.RegisterMessage(ScheduleInfo) - -Schedule = _reflection.GeneratedProtocolMessageType( - "Schedule", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULE, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.Schedule) - }, -) -_sym_db.RegisterMessage(Schedule) - -ScheduleListInfo = _reflection.GeneratedProtocolMessageType( - "ScheduleListInfo", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULELISTINFO, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleListInfo) - }, -) -_sym_db.RegisterMessage(ScheduleListInfo) - -ScheduleListEntry = _reflection.GeneratedProtocolMessageType( - "ScheduleListEntry", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULELISTENTRY, - "__module__": "temporalio.api.schedule.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleListEntry) - }, -) -_sym_db.RegisterMessage(ScheduleListEntry) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\033io.temporal.api.schedule.v1B\014MessageProtoP\001Z'go.temporal.io/api/schedule/v1;schedule\252\002\032Temporalio.Api.Schedule.V1\352\002\035Temporalio::Api::Schedule::V1" @@ -261,13 +67,13 @@ _BACKFILLREQUEST._serialized_start = 2399 _BACKFILLREQUEST._serialized_end = 2580 _SCHEDULEPATCH._serialized_start = 2583 - _SCHEDULEPATCH._serialized_end = 2781 - _SCHEDULEINFO._serialized_start = 2784 - _SCHEDULEINFO._serialized_end = 3280 - _SCHEDULE._serialized_start = 3283 - _SCHEDULE._serialized_end = 3523 - _SCHEDULELISTINFO._serialized_start = 3526 - _SCHEDULELISTINFO._serialized_end = 3845 - _SCHEDULELISTENTRY._serialized_start = 3848 - _SCHEDULELISTENTRY._serialized_end = 4059 + _SCHEDULEPATCH._serialized_end = 2855 + _SCHEDULEINFO._serialized_start = 2858 + _SCHEDULEINFO._serialized_end = 3424 + _SCHEDULE._serialized_start = 3427 + _SCHEDULE._serialized_end = 3667 + _SCHEDULELISTINFO._serialized_start = 3670 + _SCHEDULELISTINFO._serialized_end = 3989 + _SCHEDULELISTENTRY._serialized_start = 3992 + _SCHEDULELISTENTRY._serialized_end = 4203 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/schedule/v1/message_pb2.pyi b/temporalio/api/schedule/v1/message_pb2.pyi index fe7c1e900..445d59ccc 100644 --- a/temporalio/api/schedule/v1/message_pb2.pyi +++ b/temporalio/api/schedule/v1/message_pb2.pyi @@ -9,7 +9,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -22,13 +22,9 @@ import temporalio.api.enums.v1.schedule_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.workflow.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class CalendarSpec(google.protobuf.message.Message): """CalendarSpec describes an event specification relative to the calendar, similar to a traditional cron specification, but with labeled fields. Each @@ -93,7 +89,7 @@ class CalendarSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "comment", b"comment", "day_of_month", @@ -115,6 +111,7 @@ class CalendarSpec(google.protobuf.message.Message): global___CalendarSpec = CalendarSpec +@typing.final class Range(google.protobuf.message.Message): """Range represents a set of integer values, used to match fields of a calendar time in StructuredCalendarSpec. If end < start, then end is interpreted as @@ -142,13 +139,12 @@ class Range(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "end", b"end", "start", b"start", "step", b"step" - ], + field_name: typing.Literal["end", b"end", "start", b"start", "step", b"step"], ) -> None: ... global___Range = Range +@typing.final class StructuredCalendarSpec(google.protobuf.message.Message): """StructuredCalendarSpec describes an event specification relative to the calendar, in a form that's easy to work with programmatically. Each field can @@ -171,6 +167,8 @@ class StructuredCalendarSpec(google.protobuf.message.Message): YEAR_FIELD_NUMBER: builtins.int DAY_OF_WEEK_FIELD_NUMBER: builtins.int COMMENT_FIELD_NUMBER: builtins.int + comment: builtins.str + """Free-form comment describing the intention of this spec.""" @property def second( self, @@ -178,6 +176,7 @@ class StructuredCalendarSpec(google.protobuf.message.Message): global___Range ]: """Match seconds (0-59)""" + @property def minute( self, @@ -185,6 +184,7 @@ class StructuredCalendarSpec(google.protobuf.message.Message): global___Range ]: """Match minutes (0-59)""" + @property def hour( self, @@ -192,6 +192,7 @@ class StructuredCalendarSpec(google.protobuf.message.Message): global___Range ]: """Match hours (0-23)""" + @property def day_of_month( self, @@ -202,6 +203,7 @@ class StructuredCalendarSpec(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: standard name of field --) """ + @property def month( self, @@ -209,6 +211,7 @@ class StructuredCalendarSpec(google.protobuf.message.Message): global___Range ]: """Match months (1-12)""" + @property def year( self, @@ -216,6 +219,7 @@ class StructuredCalendarSpec(google.protobuf.message.Message): global___Range ]: """Match years.""" + @property def day_of_week( self, @@ -223,8 +227,7 @@ class StructuredCalendarSpec(google.protobuf.message.Message): global___Range ]: """Match days of the week (0-6; 0 is Sunday).""" - comment: builtins.str - """Free-form comment describing the intention of this spec.""" + def __init__( self, *, @@ -239,7 +242,7 @@ class StructuredCalendarSpec(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "comment", b"comment", "day_of_month", @@ -261,6 +264,7 @@ class StructuredCalendarSpec(google.protobuf.message.Message): global___StructuredCalendarSpec = StructuredCalendarSpec +@typing.final class IntervalSpec(google.protobuf.message.Message): """IntervalSpec matches times that can be expressed as: epoch + n * interval + phase @@ -290,20 +294,15 @@ class IntervalSpec(google.protobuf.message.Message): phase: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "interval", b"interval", "phase", b"phase" - ], + self, field_name: typing.Literal["interval", b"interval", "phase", b"phase"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "interval", b"interval", "phase", b"phase" - ], + self, field_name: typing.Literal["interval", b"interval", "phase", b"phase"] ) -> None: ... global___IntervalSpec = IntervalSpec +@typing.final class ScheduleSpec(google.protobuf.message.Message): """ScheduleSpec is a complete description of a set of absolute timestamps (possibly infinite) that an action should occur at. The meaning of a @@ -338,6 +337,31 @@ class ScheduleSpec(google.protobuf.message.Message): JITTER_FIELD_NUMBER: builtins.int TIMEZONE_NAME_FIELD_NUMBER: builtins.int TIMEZONE_DATA_FIELD_NUMBER: builtins.int + timezone_name: builtins.str + """Time zone to interpret all calendar-based specs in. + + If unset, defaults to UTC. We recommend using UTC for your application if + at all possible, to avoid various surprising properties of time zones. + + Time zones may be provided by name, corresponding to names in the IANA + time zone database (see https://www.iana.org/time-zones). The definition + will be loaded by the Temporal server from the environment it runs in. + + If your application requires more control over the time zone definition + used, it may pass in a complete definition in the form of a TZif file + from the time zone database. If present, this will be used instead of + loading anything from the environment. You are then responsible for + updating timezone_data when the definition changes. + + Calendar spec matching is based on literal matching of the clock time + with no special handling of DST: if you write a calendar spec that fires + at 2:30am and specify a time zone that follows DST, that action will not + be triggered on the day that has no 2:30am. Similarly, an action that + fires at 1:30am will be triggered twice on the day that has two 1:30s. + + Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC). + """ + timezone_data: builtins.bytes @property def structured_calendar( self, @@ -345,6 +369,7 @@ class ScheduleSpec(google.protobuf.message.Message): global___StructuredCalendarSpec ]: """Calendar-based specifications of times.""" + @property def cron_string( self, @@ -370,6 +395,7 @@ class ScheduleSpec(google.protobuf.message.Message): IntervalSpec instead. and should be a decimal integer with a unit suffix s, m, h, or d. """ + @property def calendar( self, @@ -377,6 +403,7 @@ class ScheduleSpec(google.protobuf.message.Message): global___CalendarSpec ]: """Calendar-based specifications of times.""" + @property def interval( self, @@ -384,6 +411,7 @@ class ScheduleSpec(google.protobuf.message.Message): global___IntervalSpec ]: """Interval-based specifications of times.""" + @property def exclude_calendar( self, @@ -393,6 +421,7 @@ class ScheduleSpec(google.protobuf.message.Message): """Any timestamps matching any of exclude_* will be skipped. Deprecated. Use exclude_structured_calendar. """ + @property def exclude_structured_calendar( self, @@ -404,39 +433,17 @@ class ScheduleSpec(google.protobuf.message.Message): """If start_time is set, any timestamps before start_time will be skipped. (Together, start_time and end_time make an inclusive interval.) """ + @property def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """If end_time is set, any timestamps after end_time will be skipped.""" + @property def jitter(self) -> google.protobuf.duration_pb2.Duration: """All timestamps will be incremented by a random value from 0 to this amount of jitter. Default: 0 """ - timezone_name: builtins.str - """Time zone to interpret all calendar-based specs in. - If unset, defaults to UTC. We recommend using UTC for your application if - at all possible, to avoid various surprising properties of time zones. - - Time zones may be provided by name, corresponding to names in the IANA - time zone database (see https://www.iana.org/time-zones). The definition - will be loaded by the Temporal server from the environment it runs in. - - If your application requires more control over the time zone definition - used, it may pass in a complete definition in the form of a TZif file - from the time zone database. If present, this will be used instead of - loading anything from the environment. You are then responsible for - updating timezone_data when the definition changes. - - Calendar spec matching is based on literal matching of the clock time - with no special handling of DST: if you write a calendar spec that fires - at 2:30am and specify a time zone that follows DST, that action will not - be triggered on the day that has no 2:30am. Similarly, an action that - fires at 1:30am will be triggered twice on the day that has two 1:30s. - - Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC). - """ - timezone_data: builtins.bytes def __init__( self, *, @@ -458,13 +465,13 @@ class ScheduleSpec(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time", b"end_time", "jitter", b"jitter", "start_time", b"start_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "calendar", b"calendar", "cron_string", @@ -492,6 +499,7 @@ class ScheduleSpec(google.protobuf.message.Message): global___ScheduleSpec = ScheduleSpec +@typing.final class SchedulePolicies(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -505,14 +513,6 @@ class SchedulePolicies(google.protobuf.message.Message): and some changes might produce unintuitive results. In general, the later policy overrides the earlier policy. """ - @property - def catchup_window(self) -> google.protobuf.duration_pb2.Duration: - """Policy for catchups: - If the Temporal server misses an action due to one or more components - being down, and comes back up, the action will be run if the scheduled - time is within this window from the current time. - This value defaults to one year, and can't be less than 10 seconds. - """ pause_on_failure: builtins.bool """If true, and a workflow run fails or times out, turn on "paused". This applies after retry policies: the full chain of retries must fail to @@ -522,6 +522,15 @@ class SchedulePolicies(google.protobuf.message.Message): """If true, and the action would start a workflow, a timestamp will not be appended to the scheduled workflow id. """ + @property + def catchup_window(self) -> google.protobuf.duration_pb2.Duration: + """Policy for catchups: + If the Temporal server misses an action due to one or more components + being down, and comes back up, the action will be run if the scheduled + time is within this window from the current time. + This value defaults to one year, and can't be less than 10 seconds. + """ + def __init__( self, *, @@ -531,11 +540,11 @@ class SchedulePolicies(google.protobuf.message.Message): keep_original_workflow_id: builtins.bool = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["catchup_window", b"catchup_window"] + self, field_name: typing.Literal["catchup_window", b"catchup_window"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "catchup_window", b"catchup_window", "keep_original_workflow_id", @@ -549,6 +558,7 @@ class SchedulePolicies(google.protobuf.message.Message): global___SchedulePolicies = SchedulePolicies +@typing.final class ScheduleAction(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -563,6 +573,7 @@ class ScheduleAction(google.protobuf.message.Message): The workflow id of the started workflow may not match this exactly, it may have a timestamp appended for uniqueness. """ + def __init__( self, *, @@ -571,22 +582,23 @@ class ScheduleAction(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "action", b"action", "start_workflow", b"start_workflow" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "action", b"action", "start_workflow", b"start_workflow" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["action", b"action"] - ) -> typing_extensions.Literal["start_workflow"] | None: ... + self, oneof_group: typing.Literal["action", b"action"] + ) -> typing.Literal["start_workflow"] | None: ... global___ScheduleAction = ScheduleAction +@typing.final class ScheduleActionResult(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -594,23 +606,26 @@ class ScheduleActionResult(google.protobuf.message.Message): ACTUAL_TIME_FIELD_NUMBER: builtins.int START_WORKFLOW_RESULT_FIELD_NUMBER: builtins.int START_WORKFLOW_STATUS_FIELD_NUMBER: builtins.int + start_workflow_status: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowExecutionStatus.ValueType + ) + """If the action was start_workflow, this field will reflect an + eventually-consistent view of the started workflow's status. + """ @property def schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time that the action was taken (according to the schedule, including jitter).""" + @property def actual_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time that the action was taken (real time).""" + @property def start_workflow_result( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: """If action was start_workflow:""" - start_workflow_status: ( - temporalio.api.enums.v1.workflow_pb2.WorkflowExecutionStatus.ValueType - ) - """If the action was start_workflow, this field will reflect an - eventually-consistent view of the started workflow's status. - """ + def __init__( self, *, @@ -622,7 +637,7 @@ class ScheduleActionResult(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "actual_time", b"actual_time", "schedule_time", @@ -633,7 +648,7 @@ class ScheduleActionResult(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "actual_time", b"actual_time", "schedule_time", @@ -647,6 +662,7 @@ class ScheduleActionResult(google.protobuf.message.Message): global___ScheduleActionResult = ScheduleActionResult +@typing.final class ScheduleState(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -681,7 +697,7 @@ class ScheduleState(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "limited_actions", b"limited_actions", "notes", @@ -695,6 +711,7 @@ class ScheduleState(google.protobuf.message.Message): global___ScheduleState = ScheduleState +@typing.final class TriggerImmediatelyRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -707,6 +724,7 @@ class TriggerImmediatelyRequest(google.protobuf.message.Message): """Timestamp used for the identity of the target workflow. If not set the default value is the current time. """ + def __init__( self, *, @@ -714,23 +732,26 @@ class TriggerImmediatelyRequest(google.protobuf.message.Message): scheduled_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["scheduled_time", b"scheduled_time"] + self, field_name: typing.Literal["scheduled_time", b"scheduled_time"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "overlap_policy", b"overlap_policy", "scheduled_time", b"scheduled_time" ], ) -> None: ... global___TriggerImmediatelyRequest = TriggerImmediatelyRequest +@typing.final class BackfillRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor START_TIME_FIELD_NUMBER: builtins.int END_TIME_FIELD_NUMBER: builtins.int OVERLAP_POLICY_FIELD_NUMBER: builtins.int + overlap_policy: temporalio.api.enums.v1.schedule_pb2.ScheduleOverlapPolicy.ValueType + """If set, override overlap policy for this request.""" @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time range to evaluate schedule in. Currently, this time range is @@ -740,10 +761,9 @@ class BackfillRequest(google.protobuf.message.Message): nominally scheduled in the interval but with jitter that pushes it after end_time will not be included. """ + @property def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - overlap_policy: temporalio.api.enums.v1.schedule_pb2.ScheduleOverlapPolicy.ValueType - """If set, override overlap policy for this request.""" def __init__( self, *, @@ -753,13 +773,13 @@ class BackfillRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time", b"end_time", "start_time", b"start_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time", b"end_time", "overlap_policy", @@ -771,6 +791,7 @@ class BackfillRequest(google.protobuf.message.Message): global___BackfillRequest = BackfillRequest +@typing.final class SchedulePatch(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -778,9 +799,16 @@ class SchedulePatch(google.protobuf.message.Message): BACKFILL_REQUEST_FIELD_NUMBER: builtins.int PAUSE_FIELD_NUMBER: builtins.int UNPAUSE_FIELD_NUMBER: builtins.int + TIME_SKIPPING_CONFIG_FIELD_NUMBER: builtins.int + pause: builtins.str + """If set, change the state to paused or unpaused (respectively) and set the + notes field to the value of the string. + """ + unpause: builtins.str @property def trigger_immediately(self) -> global___TriggerImmediatelyRequest: """If set, trigger one action immediately.""" + @property def backfill_request( self, @@ -791,11 +819,15 @@ class SchedulePatch(google.protobuf.message.Message): passed by right now, all at once. The overlap policy can be overridden for the scope of the backfill. """ - pause: builtins.str - """If set, change the state to paused or unpaused (respectively) and set the - notes field to the value of the string. - """ - unpause: builtins.str + + @property + def time_skipping_config( + self, + ) -> temporalio.api.common.v1.message_pb2.TimeSkippingConfig: + """If set, applies the specified time-skipping configuration to this schedule, + replacing any existing time-skipping configuration. + """ + def __init__( self, *, @@ -804,20 +836,27 @@ class SchedulePatch(google.protobuf.message.Message): | None = ..., pause: builtins.str = ..., unpause: builtins.str = ..., + time_skipping_config: temporalio.api.common.v1.message_pb2.TimeSkippingConfig + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "trigger_immediately", b"trigger_immediately" + field_name: typing.Literal[ + "time_skipping_config", + b"time_skipping_config", + "trigger_immediately", + b"trigger_immediately", ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backfill_request", b"backfill_request", "pause", b"pause", + "time_skipping_config", + b"time_skipping_config", "trigger_immediately", b"trigger_immediately", "unpause", @@ -827,6 +866,7 @@ class SchedulePatch(google.protobuf.message.Message): global___SchedulePatch = SchedulePatch +@typing.final class ScheduleInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -842,6 +882,7 @@ class ScheduleInfo(google.protobuf.message.Message): UPDATE_TIME_FIELD_NUMBER: builtins.int INVALID_SCHEDULE_ERROR_FIELD_NUMBER: builtins.int STATE_SIZE_BYTES_FIELD_NUMBER: builtins.int + TIME_SKIPPING_INFO_FIELD_NUMBER: builtins.int action_count: builtins.int """Number of actions taken so far.""" missed_catchup_window: builtins.int @@ -855,6 +896,10 @@ class ScheduleInfo(google.protobuf.message.Message): be immediately triggered (due to the overlap policy). These actions can be a result of the normal schedule or a backfill. """ + invalid_schedule_error: builtins.str + """Deprecated.""" + state_size_bytes: builtins.int + """Size of the schedule's internal state (including payloads) in bytes.""" @property def running_workflows( self, @@ -867,6 +912,7 @@ class ScheduleInfo(google.protobuf.message.Message): started by the schedule. If the workflows retried, did continue-as-new, or were reset, they might still be running but with a different run_id. """ + @property def recent_actions( self, @@ -874,6 +920,7 @@ class ScheduleInfo(google.protobuf.message.Message): global___ScheduleActionResult ]: """Most recent ten actual action times (including manual triggers).""" + @property def future_action_times( self, @@ -881,15 +928,21 @@ class ScheduleInfo(google.protobuf.message.Message): google.protobuf.timestamp_pb2.Timestamp ]: """Next ten scheduled action times.""" + @property def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamps of schedule creation and last update.""" + @property def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - invalid_schedule_error: builtins.str - """Deprecated.""" - state_size_bytes: builtins.int - """Size of the schedule's internal state (including payloads) in bytes.""" + @property + def time_skipping_info( + self, + ) -> temporalio.api.common.v1.message_pb2.TimeSkippingInfo: + """Information about time skipping for this schedule. + If the schedule has never enabled time skipping, this will be unset. + """ + def __init__( self, *, @@ -912,16 +965,23 @@ class ScheduleInfo(google.protobuf.message.Message): update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., invalid_schedule_error: builtins.str = ..., state_size_bytes: builtins.int = ..., + time_skipping_info: temporalio.api.common.v1.message_pb2.TimeSkippingInfo + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "create_time", b"create_time", "update_time", b"update_time" + field_name: typing.Literal[ + "create_time", + b"create_time", + "time_skipping_info", + b"time_skipping_info", + "update_time", + b"update_time", ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "action_count", b"action_count", "buffer_dropped", @@ -944,6 +1004,8 @@ class ScheduleInfo(google.protobuf.message.Message): b"running_workflows", "state_size_bytes", b"state_size_bytes", + "time_skipping_info", + b"time_skipping_info", "update_time", b"update_time", ], @@ -951,6 +1013,7 @@ class ScheduleInfo(google.protobuf.message.Message): global___ScheduleInfo = ScheduleInfo +@typing.final class Schedule(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -976,7 +1039,7 @@ class Schedule(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "action", b"action", "policies", @@ -989,7 +1052,7 @@ class Schedule(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "action", b"action", "policies", @@ -1003,6 +1066,7 @@ class Schedule(google.protobuf.message.Message): global___Schedule = Schedule +@typing.final class ScheduleListInfo(google.protobuf.message.Message): """ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo that's returned in ListSchedules. @@ -1017,20 +1081,24 @@ class ScheduleListInfo(google.protobuf.message.Message): RECENT_ACTIONS_FIELD_NUMBER: builtins.int FUTURE_ACTION_TIMES_FIELD_NUMBER: builtins.int STATE_SIZE_BYTES_FIELD_NUMBER: builtins.int + notes: builtins.str + """From state:""" + paused: builtins.bool + state_size_bytes: builtins.int + """Size of the schedule's internal state (including payloads) in bytes.""" @property def spec(self) -> global___ScheduleSpec: """From spec: Some fields are dropped from this copy of spec: timezone_data """ + @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: """From action: Action is a oneof field, but we need to encode this in JSON and oneof fields don't work well with JSON. If action is start_workflow, this is set: """ - notes: builtins.str - """From state:""" - paused: builtins.bool + @property def recent_actions( self, @@ -1038,14 +1106,13 @@ class ScheduleListInfo(google.protobuf.message.Message): global___ScheduleActionResult ]: """From info (maybe fewer entries):""" + @property def future_action_times( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ google.protobuf.timestamp_pb2.Timestamp ]: ... - state_size_bytes: builtins.int - """Size of the schedule's internal state (including payloads) in bytes.""" def __init__( self, *, @@ -1063,13 +1130,11 @@ class ScheduleListInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "spec", b"spec", "workflow_type", b"workflow_type" - ], + field_name: typing.Literal["spec", b"spec", "workflow_type", b"workflow_type"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "future_action_times", b"future_action_times", "notes", @@ -1089,6 +1154,7 @@ class ScheduleListInfo(google.protobuf.message.Message): global___ScheduleListInfo = ScheduleListInfo +@typing.final class ScheduleListEntry(google.protobuf.message.Message): """ScheduleListEntry is returned by ListSchedules.""" @@ -1118,13 +1184,13 @@ class ScheduleListEntry(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "info", b"info", "memo", b"memo", "search_attributes", b"search_attributes" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "info", b"info", "memo", diff --git a/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.py b/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.py index 0890a547a..71040f6c2 100644 --- a/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.py +++ b/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -18,80 +17,8 @@ b'\n.temporal/api/sdk/v1/enhanced_stack_trace.proto\x12\x13temporal.api.sdk.v1"\x9b\x02\n\x12\x45nhancedStackTrace\x12\x33\n\x03sdk\x18\x01 \x01(\x0b\x32&.temporal.api.sdk.v1.StackTraceSDKInfo\x12\x45\n\x07sources\x18\x02 \x03(\x0b\x32\x34.temporal.api.sdk.v1.EnhancedStackTrace.SourcesEntry\x12/\n\x06stacks\x18\x03 \x03(\x0b\x32\x1f.temporal.api.sdk.v1.StackTrace\x1aX\n\x0cSourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.temporal.api.sdk.v1.StackTraceFileSlice:\x02\x38\x01"2\n\x11StackTraceSDKInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t";\n\x13StackTraceFileSlice\x12\x13\n\x0bline_offset\x18\x01 \x01(\r\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t"w\n\x16StackTraceFileLocation\x12\x11\n\tfile_path\x18\x01 \x01(\t\x12\x0c\n\x04line\x18\x02 \x01(\x05\x12\x0e\n\x06\x63olumn\x18\x03 \x01(\x05\x12\x15\n\rfunction_name\x18\x04 \x01(\t\x12\x15\n\rinternal_code\x18\x05 \x01(\x08"L\n\nStackTrace\x12>\n\tlocations\x18\x01 \x03(\x0b\x32+.temporal.api.sdk.v1.StackTraceFileLocationB\x85\x01\n\x16io.temporal.api.sdk.v1B\x17\x45nhancedStackTraceProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3' ) - -_ENHANCEDSTACKTRACE = DESCRIPTOR.message_types_by_name["EnhancedStackTrace"] -_ENHANCEDSTACKTRACE_SOURCESENTRY = _ENHANCEDSTACKTRACE.nested_types_by_name[ - "SourcesEntry" -] -_STACKTRACESDKINFO = DESCRIPTOR.message_types_by_name["StackTraceSDKInfo"] -_STACKTRACEFILESLICE = DESCRIPTOR.message_types_by_name["StackTraceFileSlice"] -_STACKTRACEFILELOCATION = DESCRIPTOR.message_types_by_name["StackTraceFileLocation"] -_STACKTRACE = DESCRIPTOR.message_types_by_name["StackTrace"] -EnhancedStackTrace = _reflection.GeneratedProtocolMessageType( - "EnhancedStackTrace", - (_message.Message,), - { - "SourcesEntry": _reflection.GeneratedProtocolMessageType( - "SourcesEntry", - (_message.Message,), - { - "DESCRIPTOR": _ENHANCEDSTACKTRACE_SOURCESENTRY, - "__module__": "temporalio.api.sdk.v1.enhanced_stack_trace_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.EnhancedStackTrace.SourcesEntry) - }, - ), - "DESCRIPTOR": _ENHANCEDSTACKTRACE, - "__module__": "temporalio.api.sdk.v1.enhanced_stack_trace_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.EnhancedStackTrace) - }, -) -_sym_db.RegisterMessage(EnhancedStackTrace) -_sym_db.RegisterMessage(EnhancedStackTrace.SourcesEntry) - -StackTraceSDKInfo = _reflection.GeneratedProtocolMessageType( - "StackTraceSDKInfo", - (_message.Message,), - { - "DESCRIPTOR": _STACKTRACESDKINFO, - "__module__": "temporalio.api.sdk.v1.enhanced_stack_trace_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.StackTraceSDKInfo) - }, -) -_sym_db.RegisterMessage(StackTraceSDKInfo) - -StackTraceFileSlice = _reflection.GeneratedProtocolMessageType( - "StackTraceFileSlice", - (_message.Message,), - { - "DESCRIPTOR": _STACKTRACEFILESLICE, - "__module__": "temporalio.api.sdk.v1.enhanced_stack_trace_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.StackTraceFileSlice) - }, -) -_sym_db.RegisterMessage(StackTraceFileSlice) - -StackTraceFileLocation = _reflection.GeneratedProtocolMessageType( - "StackTraceFileLocation", - (_message.Message,), - { - "DESCRIPTOR": _STACKTRACEFILELOCATION, - "__module__": "temporalio.api.sdk.v1.enhanced_stack_trace_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.StackTraceFileLocation) - }, -) -_sym_db.RegisterMessage(StackTraceFileLocation) - -StackTrace = _reflection.GeneratedProtocolMessageType( - "StackTrace", - (_message.Message,), - { - "DESCRIPTOR": _STACKTRACE, - "__module__": "temporalio.api.sdk.v1.enhanced_stack_trace_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.StackTrace) - }, -) -_sym_db.RegisterMessage(StackTrace) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\026io.temporal.api.sdk.v1B\027EnhancedStackTraceProtoP\001Z\035go.temporal.io/api/sdk/v1;sdk\252\002\025Temporalio.Api.Sdk.V1\352\002\030Temporalio::Api::Sdk::V1" diff --git a/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.pyi b/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.pyi index 29767cbf8..6fd5a9c15 100644 --- a/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.pyi +++ b/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.pyi @@ -5,24 +5,21 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class EnhancedStackTrace(google.protobuf.message.Message): """Internal structure used to create worker stack traces with references to code.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class SourcesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -38,11 +35,10 @@ class EnhancedStackTrace(google.protobuf.message.Message): value: global___StackTraceFileSlice | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SDK_FIELD_NUMBER: builtins.int @@ -51,6 +47,7 @@ class EnhancedStackTrace(google.protobuf.message.Message): @property def sdk(self) -> global___StackTraceSDKInfo: """Information pertaining to the SDK that the trace has been captured from.""" + @property def sources( self, @@ -58,6 +55,7 @@ class EnhancedStackTrace(google.protobuf.message.Message): builtins.str, global___StackTraceFileSlice ]: """Mapping of file path to file contents.""" + @property def stacks( self, @@ -65,6 +63,7 @@ class EnhancedStackTrace(google.protobuf.message.Message): global___StackTrace ]: """Collection of stacks captured.""" + def __init__( self, *, @@ -73,18 +72,17 @@ class EnhancedStackTrace(google.protobuf.message.Message): | None = ..., stacks: collections.abc.Iterable[global___StackTrace] | None = ..., ) -> None: ... - def HasField( - self, field_name: typing_extensions.Literal["sdk", b"sdk"] - ) -> builtins.bool: ... + def HasField(self, field_name: typing.Literal["sdk", b"sdk"]) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "sdk", b"sdk", "sources", b"sources", "stacks", b"stacks" ], ) -> None: ... global___EnhancedStackTrace = EnhancedStackTrace +@typing.final class StackTraceSDKInfo(google.protobuf.message.Message): """Information pertaining to the SDK that the trace has been captured from. (-- api-linter: core::0123::resource-annotation=disabled @@ -106,12 +104,12 @@ class StackTraceSDKInfo(google.protobuf.message.Message): version: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["name", b"name", "version", b"version"], + self, field_name: typing.Literal["name", b"name", "version", b"version"] ) -> None: ... global___StackTraceSDKInfo = StackTraceSDKInfo +@typing.final class StackTraceFileSlice(google.protobuf.message.Message): """ "Slice" of a file starting at line_offset -- a line offset and code fragment corresponding to the worker's stack.""" @@ -135,13 +133,14 @@ class StackTraceFileSlice(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "content", b"content", "line_offset", b"line_offset" ], ) -> None: ... global___StackTraceFileSlice = StackTraceFileSlice +@typing.final class StackTraceFileLocation(google.protobuf.message.Message): """More specific location details of a file: its path, precise line and column numbers if applicable, and function name if available. In essence, a pointer to a location in a file @@ -183,7 +182,7 @@ class StackTraceFileLocation(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "column", b"column", "file_path", @@ -199,6 +198,7 @@ class StackTraceFileLocation(google.protobuf.message.Message): global___StackTraceFileLocation = StackTraceFileLocation +@typing.final class StackTrace(google.protobuf.message.Message): """Collection of FileLocation messages from a single stack.""" @@ -212,6 +212,7 @@ class StackTrace(google.protobuf.message.Message): global___StackTraceFileLocation ]: """Collection of `FileLocation`s, each for a stack frame that comprise a stack trace.""" + def __init__( self, *, @@ -219,7 +220,7 @@ class StackTrace(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["locations", b"locations"] + self, field_name: typing.Literal["locations", b"locations"] ) -> None: ... global___StackTrace = StackTrace diff --git a/temporalio/api/sdk/v1/event_group_marker_pb2.py b/temporalio/api/sdk/v1/event_group_marker_pb2.py index 3475c8588..fee5111e4 100644 --- a/temporalio/api/sdk/v1/event_group_marker_pb2.py +++ b/temporalio/api/sdk/v1/event_group_marker_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -22,54 +21,8 @@ b'\n,temporal/api/sdk/v1/event_group_marker.proto\x12\x13temporal.api.sdk.v1\x1a$temporal/api/common/v1/message.proto"\x92\x03\n\x10\x45ventGroupMarker\x12<\n\x05label\x18\x01 \x01(\x0b\x32+.temporal.api.sdk.v1.EventGroupMarker.LabelH\x00\x12K\n\rinbound_event\x18\x02 \x01(\x0b\x32\x32.temporal.api.sdk.v1.EventGroupMarker.InboundEventH\x00\x12M\n\x0einbound_update\x18\x03 \x01(\x0b\x32\x33.temporal.api.sdk.v1.EventGroupMarker.InboundUpdateH\x00\x1a\x43\n\x05Label\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\x05label\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x1a(\n\x0cInboundEvent\x12\x18\n\x10inbound_event_id\x18\x01 \x01(\x03\x1a*\n\rInboundUpdate\x12\x19\n\x11inbound_update_id\x18\x01 \x01(\tB\t\n\x07variantB\x83\x01\n\x16io.temporal.api.sdk.v1B\x15\x45ventGroupMarkerProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3' ) - -_EVENTGROUPMARKER = DESCRIPTOR.message_types_by_name["EventGroupMarker"] -_EVENTGROUPMARKER_LABEL = _EVENTGROUPMARKER.nested_types_by_name["Label"] -_EVENTGROUPMARKER_INBOUNDEVENT = _EVENTGROUPMARKER.nested_types_by_name["InboundEvent"] -_EVENTGROUPMARKER_INBOUNDUPDATE = _EVENTGROUPMARKER.nested_types_by_name[ - "InboundUpdate" -] -EventGroupMarker = _reflection.GeneratedProtocolMessageType( - "EventGroupMarker", - (_message.Message,), - { - "Label": _reflection.GeneratedProtocolMessageType( - "Label", - (_message.Message,), - { - "DESCRIPTOR": _EVENTGROUPMARKER_LABEL, - "__module__": "temporalio.api.sdk.v1.event_group_marker_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.EventGroupMarker.Label) - }, - ), - "InboundEvent": _reflection.GeneratedProtocolMessageType( - "InboundEvent", - (_message.Message,), - { - "DESCRIPTOR": _EVENTGROUPMARKER_INBOUNDEVENT, - "__module__": "temporalio.api.sdk.v1.event_group_marker_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.EventGroupMarker.InboundEvent) - }, - ), - "InboundUpdate": _reflection.GeneratedProtocolMessageType( - "InboundUpdate", - (_message.Message,), - { - "DESCRIPTOR": _EVENTGROUPMARKER_INBOUNDUPDATE, - "__module__": "temporalio.api.sdk.v1.event_group_marker_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.EventGroupMarker.InboundUpdate) - }, - ), - "DESCRIPTOR": _EVENTGROUPMARKER, - "__module__": "temporalio.api.sdk.v1.event_group_marker_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.EventGroupMarker) - }, -) -_sym_db.RegisterMessage(EventGroupMarker) -_sym_db.RegisterMessage(EventGroupMarker.Label) -_sym_db.RegisterMessage(EventGroupMarker.InboundEvent) -_sym_db.RegisterMessage(EventGroupMarker.InboundUpdate) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\026io.temporal.api.sdk.v1B\025EventGroupMarkerProtoP\001Z\035go.temporal.io/api/sdk/v1;sdk\252\002\025Temporalio.Api.Sdk.V1\352\002\030Temporalio::Api::Sdk::V1" diff --git a/temporalio/api/sdk/v1/event_group_marker_pb2.pyi b/temporalio/api/sdk/v1/event_group_marker_pb2.pyi index 63a5f53eb..5af116843 100644 --- a/temporalio/api/sdk/v1/event_group_marker_pb2.pyi +++ b/temporalio/api/sdk/v1/event_group_marker_pb2.pyi @@ -4,23 +4,20 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message import temporalio.api.common.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class EventGroupMarker(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Label(google.protobuf.message.Message): """A user-defined short-form string value to be used as the group's label.""" @@ -45,6 +42,7 @@ class EventGroupMarker(google.protobuf.message.Message): in a given workflow execution that carry the same label, provided that they have the distinct ID. """ + def __init__( self, *, @@ -52,12 +50,13 @@ class EventGroupMarker(google.protobuf.message.Message): label: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["label", b"label"] + self, field_name: typing.Literal["label", b"label"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["id", b"id", "label", b"label"] + self, field_name: typing.Literal["id", b"id", "label", b"label"] ) -> None: ... + @typing.final class InboundEvent(google.protobuf.message.Message): """The event ID of an event in the present workflow that triggered implicit creation of this group Marker. @@ -77,12 +76,10 @@ class EventGroupMarker(google.protobuf.message.Message): inbound_event_id: builtins.int = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "inbound_event_id", b"inbound_event_id" - ], + self, field_name: typing.Literal["inbound_event_id", b"inbound_event_id"] ) -> None: ... + @typing.final class InboundUpdate(google.protobuf.message.Message): """The identifier of an inbound Update (request.meta.update_id) whose handler triggered implicit creation of this group Marker. @@ -102,10 +99,7 @@ class EventGroupMarker(google.protobuf.message.Message): inbound_update_id: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "inbound_update_id", b"inbound_update_id" - ], + self, field_name: typing.Literal["inbound_update_id", b"inbound_update_id"] ) -> None: ... LABEL_FIELD_NUMBER: builtins.int @@ -126,7 +120,7 @@ class EventGroupMarker(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "inbound_event", b"inbound_event", "inbound_update", @@ -139,7 +133,7 @@ class EventGroupMarker(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "inbound_event", b"inbound_event", "inbound_update", @@ -151,9 +145,7 @@ class EventGroupMarker(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> ( - typing_extensions.Literal["label", "inbound_event", "inbound_update"] | None - ): ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["label", "inbound_event", "inbound_update"] | None: ... global___EventGroupMarker = EventGroupMarker diff --git a/temporalio/api/sdk/v1/external_storage_pb2.py b/temporalio/api/sdk/v1/external_storage_pb2.py index 75676a90a..e17d372dc 100644 --- a/temporalio/api/sdk/v1/external_storage_pb2.py +++ b/temporalio/api/sdk/v1/external_storage_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -18,32 +17,8 @@ b'\n*temporal/api/sdk/v1/external_storage.proto\x12\x13temporal.api.sdk.v1"\xb3\x01\n\x18\x45xternalStorageReference\x12\x13\n\x0b\x64river_name\x18\x01 \x01(\t\x12P\n\nclaim_data\x18\x02 \x03(\x0b\x32<.temporal.api.sdk.v1.ExternalStorageReference.ClaimDataEntry\x1a\x30\n\x0e\x43laimDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x82\x01\n\x16io.temporal.api.sdk.v1B\x14\x45xternalStorageProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3' ) - -_EXTERNALSTORAGEREFERENCE = DESCRIPTOR.message_types_by_name["ExternalStorageReference"] -_EXTERNALSTORAGEREFERENCE_CLAIMDATAENTRY = ( - _EXTERNALSTORAGEREFERENCE.nested_types_by_name["ClaimDataEntry"] -) -ExternalStorageReference = _reflection.GeneratedProtocolMessageType( - "ExternalStorageReference", - (_message.Message,), - { - "ClaimDataEntry": _reflection.GeneratedProtocolMessageType( - "ClaimDataEntry", - (_message.Message,), - { - "DESCRIPTOR": _EXTERNALSTORAGEREFERENCE_CLAIMDATAENTRY, - "__module__": "temporalio.api.sdk.v1.external_storage_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.ExternalStorageReference.ClaimDataEntry) - }, - ), - "DESCRIPTOR": _EXTERNALSTORAGEREFERENCE, - "__module__": "temporalio.api.sdk.v1.external_storage_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.ExternalStorageReference) - }, -) -_sym_db.RegisterMessage(ExternalStorageReference) -_sym_db.RegisterMessage(ExternalStorageReference.ClaimDataEntry) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\026io.temporal.api.sdk.v1B\024ExternalStorageProtoP\001Z\035go.temporal.io/api/sdk/v1;sdk\252\002\025Temporalio.Api.Sdk.V1\352\002\030Temporalio::Api::Sdk::V1" diff --git a/temporalio/api/sdk/v1/external_storage_pb2.pyi b/temporalio/api/sdk/v1/external_storage_pb2.pyi index 9a27636a2..239a9837f 100644 --- a/temporalio/api/sdk/v1/external_storage_pb2.pyi +++ b/temporalio/api/sdk/v1/external_storage_pb2.pyi @@ -5,19 +5,15 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ExternalStorageReference(google.protobuf.message.Message): """ExternalStorageReference identifies a payload stored in an external storage system. It is used as a claim-check token, allowing the actual payload data to be retrieved @@ -26,6 +22,7 @@ class ExternalStorageReference(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ClaimDataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -40,8 +37,7 @@ class ExternalStorageReference(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... DRIVER_NAME_FIELD_NUMBER: builtins.int @@ -53,6 +49,7 @@ class ExternalStorageReference(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """Driver-specific key-value pairs that identify and provide access to the stored payload.""" + def __init__( self, *, @@ -61,7 +58,7 @@ class ExternalStorageReference(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "claim_data", b"claim_data", "driver_name", b"driver_name" ], ) -> None: ... diff --git a/temporalio/api/sdk/v1/task_complete_metadata_pb2.py b/temporalio/api/sdk/v1/task_complete_metadata_pb2.py index 0b95e1710..411a4216b 100644 --- a/temporalio/api/sdk/v1/task_complete_metadata_pb2.py +++ b/temporalio/api/sdk/v1/task_complete_metadata_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -18,21 +17,8 @@ b'\n0temporal/api/sdk/v1/task_complete_metadata.proto\x12\x13temporal.api.sdk.v1"x\n\x1dWorkflowTaskCompletedMetadata\x12\x17\n\x0f\x63ore_used_flags\x18\x01 \x03(\r\x12\x17\n\x0flang_used_flags\x18\x02 \x03(\r\x12\x10\n\x08sdk_name\x18\x03 \x01(\t\x12\x13\n\x0bsdk_version\x18\x04 \x01(\tB\x87\x01\n\x16io.temporal.api.sdk.v1B\x19TaskCompleteMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3' ) - -_WORKFLOWTASKCOMPLETEDMETADATA = DESCRIPTOR.message_types_by_name[ - "WorkflowTaskCompletedMetadata" -] -WorkflowTaskCompletedMetadata = _reflection.GeneratedProtocolMessageType( - "WorkflowTaskCompletedMetadata", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWTASKCOMPLETEDMETADATA, - "__module__": "temporalio.api.sdk.v1.task_complete_metadata_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkflowTaskCompletedMetadata) - }, -) -_sym_db.RegisterMessage(WorkflowTaskCompletedMetadata) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\026io.temporal.api.sdk.v1B\031TaskCompleteMetadataProtoP\001Z\035go.temporal.io/api/sdk/v1;sdk\252\002\025Temporalio.Api.Sdk.V1\352\002\030Temporalio::Api::Sdk::V1" diff --git a/temporalio/api/sdk/v1/task_complete_metadata_pb2.pyi b/temporalio/api/sdk/v1/task_complete_metadata_pb2.pyi index 2491881a3..c4efd608b 100644 --- a/temporalio/api/sdk/v1/task_complete_metadata_pb2.pyi +++ b/temporalio/api/sdk/v1/task_complete_metadata_pb2.pyi @@ -5,19 +5,15 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowTaskCompletedMetadata(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -25,6 +21,19 @@ class WorkflowTaskCompletedMetadata(google.protobuf.message.Message): LANG_USED_FLAGS_FIELD_NUMBER: builtins.int SDK_NAME_FIELD_NUMBER: builtins.int SDK_VERSION_FIELD_NUMBER: builtins.int + sdk_name: builtins.str + """Name of the SDK that processed the task. This is usually something like "temporal-go" and is + usually the same as client-name gRPC header. This should only be set if its value changed + since the last time recorded on the workflow (or be set on the first task). + + (-- api-linter: core::0122::name-suffix=disabled + aip.dev/not-precedent: We're ok with a name suffix here. --) + """ + sdk_version: builtins.str + """Version of the SDK that processed the task. This is usually something like "1.20.0" and is + usually the same as client-version gRPC header. This should only be set if its value changed + since the last time recorded on the workflow (or be set on the first task). + """ @property def core_used_flags( self, @@ -49,6 +58,7 @@ class WorkflowTaskCompletedMetadata(google.protobuf.message.Message): (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --) """ + @property def lang_used_flags( self, @@ -60,19 +70,7 @@ class WorkflowTaskCompletedMetadata(google.protobuf.message.Message): (-- api-linter: core::0141::forbidden-types=disabled aip.dev/not-precedent: These really shouldn't have negative values. --) """ - sdk_name: builtins.str - """Name of the SDK that processed the task. This is usually something like "temporal-go" and is - usually the same as client-name gRPC header. This should only be set if its value changed - since the last time recorded on the workflow (or be set on the first task). - (-- api-linter: core::0122::name-suffix=disabled - aip.dev/not-precedent: We're ok with a name suffix here. --) - """ - sdk_version: builtins.str - """Version of the SDK that processed the task. This is usually something like "1.20.0" and is - usually the same as client-version gRPC header. This should only be set if its value changed - since the last time recorded on the workflow (or be set on the first task). - """ def __init__( self, *, @@ -83,7 +81,7 @@ class WorkflowTaskCompletedMetadata(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "core_used_flags", b"core_used_flags", "lang_used_flags", diff --git a/temporalio/api/sdk/v1/user_metadata_pb2.py b/temporalio/api/sdk/v1/user_metadata_pb2.py index 4fcbee2bb..a991dac09 100644 --- a/temporalio/api/sdk/v1/user_metadata_pb2.py +++ b/temporalio/api/sdk/v1/user_metadata_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -22,19 +21,8 @@ b"\n'temporal/api/sdk/v1/user_metadata.proto\x12\x13temporal.api.sdk.v1\x1a$temporal/api/common/v1/message.proto\"r\n\x0cUserMetadata\x12\x30\n\x07summary\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x30\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadB\x7f\n\x16io.temporal.api.sdk.v1B\x11UserMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" ) - -_USERMETADATA = DESCRIPTOR.message_types_by_name["UserMetadata"] -UserMetadata = _reflection.GeneratedProtocolMessageType( - "UserMetadata", - (_message.Message,), - { - "DESCRIPTOR": _USERMETADATA, - "__module__": "temporalio.api.sdk.v1.user_metadata_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.UserMetadata) - }, -) -_sym_db.RegisterMessage(UserMetadata) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\026io.temporal.api.sdk.v1B\021UserMetadataProtoP\001Z\035go.temporal.io/api/sdk/v1;sdk\252\002\025Temporalio.Api.Sdk.V1\352\002\030Temporalio::Api::Sdk::V1" diff --git a/temporalio/api/sdk/v1/user_metadata_pb2.pyi b/temporalio/api/sdk/v1/user_metadata_pb2.pyi index d198be8a8..3d99bd06c 100644 --- a/temporalio/api/sdk/v1/user_metadata_pb2.pyi +++ b/temporalio/api/sdk/v1/user_metadata_pb2.pyi @@ -4,20 +4,16 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message import temporalio.api.common.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class UserMetadata(google.protobuf.message.Message): """Information a user can set, often for use by user interfaces.""" @@ -32,12 +28,14 @@ class UserMetadata(google.protobuf.message.Message): apply to this text when used in "title" situations. The payload data section is limited to 400 bytes by default. """ + @property def details(self) -> temporalio.api.common.v1.message_pb2.Payload: """Long-form text that provides details. This payload should be a "json/plain"-encoded payload that is a single JSON string for use in user interfaces. User interface formatting may apply to this text in common use. The payload data section is limited to 20000 bytes by default. """ + def __init__( self, *, @@ -45,16 +43,10 @@ class UserMetadata(google.protobuf.message.Message): details: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "details", b"details", "summary", b"summary" - ], + self, field_name: typing.Literal["details", b"details", "summary", b"summary"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "details", b"details", "summary", b"summary" - ], + self, field_name: typing.Literal["details", b"details", "summary", b"summary"] ) -> None: ... global___UserMetadata = UserMetadata diff --git a/temporalio/api/sdk/v1/worker_config_pb2.py b/temporalio/api/sdk/v1/worker_config_pb2.py index 2a1304f6b..0871cb106 100644 --- a/temporalio/api/sdk/v1/worker_config_pb2.py +++ b/temporalio/api/sdk/v1/worker_config_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -18,45 +17,8 @@ b"\n'temporal/api/sdk/v1/worker_config.proto\x12\x13temporal.api.sdk.v1\"\x89\x03\n\x0cWorkerConfig\x12\x1b\n\x13workflow_cache_size\x18\x01 \x01(\x05\x12X\n\x16simple_poller_behavior\x18\x02 \x01(\x0b\x32\x36.temporal.api.sdk.v1.WorkerConfig.SimplePollerBehaviorH\x00\x12\x62\n\x1b\x61utoscaling_poller_behavior\x18\x03 \x01(\x0b\x32;.temporal.api.sdk.v1.WorkerConfig.AutoscalingPollerBehaviorH\x00\x1a+\n\x14SimplePollerBehavior\x12\x13\n\x0bmax_pollers\x18\x01 \x01(\x05\x1a^\n\x19\x41utoscalingPollerBehavior\x12\x13\n\x0bmin_pollers\x18\x01 \x01(\x05\x12\x13\n\x0bmax_pollers\x18\x02 \x01(\x05\x12\x17\n\x0finitial_pollers\x18\x03 \x01(\x05\x42\x11\n\x0fpoller_behaviorB\x7f\n\x16io.temporal.api.sdk.v1B\x11WorkerConfigProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3" ) - -_WORKERCONFIG = DESCRIPTOR.message_types_by_name["WorkerConfig"] -_WORKERCONFIG_SIMPLEPOLLERBEHAVIOR = _WORKERCONFIG.nested_types_by_name[ - "SimplePollerBehavior" -] -_WORKERCONFIG_AUTOSCALINGPOLLERBEHAVIOR = _WORKERCONFIG.nested_types_by_name[ - "AutoscalingPollerBehavior" -] -WorkerConfig = _reflection.GeneratedProtocolMessageType( - "WorkerConfig", - (_message.Message,), - { - "SimplePollerBehavior": _reflection.GeneratedProtocolMessageType( - "SimplePollerBehavior", - (_message.Message,), - { - "DESCRIPTOR": _WORKERCONFIG_SIMPLEPOLLERBEHAVIOR, - "__module__": "temporalio.api.sdk.v1.worker_config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkerConfig.SimplePollerBehavior) - }, - ), - "AutoscalingPollerBehavior": _reflection.GeneratedProtocolMessageType( - "AutoscalingPollerBehavior", - (_message.Message,), - { - "DESCRIPTOR": _WORKERCONFIG_AUTOSCALINGPOLLERBEHAVIOR, - "__module__": "temporalio.api.sdk.v1.worker_config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkerConfig.AutoscalingPollerBehavior) - }, - ), - "DESCRIPTOR": _WORKERCONFIG, - "__module__": "temporalio.api.sdk.v1.worker_config_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkerConfig) - }, -) -_sym_db.RegisterMessage(WorkerConfig) -_sym_db.RegisterMessage(WorkerConfig.SimplePollerBehavior) -_sym_db.RegisterMessage(WorkerConfig.AutoscalingPollerBehavior) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\026io.temporal.api.sdk.v1B\021WorkerConfigProtoP\001Z\035go.temporal.io/api/sdk/v1;sdk\252\002\025Temporalio.Api.Sdk.V1\352\002\030Temporalio::Api::Sdk::V1" diff --git a/temporalio/api/sdk/v1/worker_config_pb2.pyi b/temporalio/api/sdk/v1/worker_config_pb2.pyi index cc0906d24..ea2976589 100644 --- a/temporalio/api/sdk/v1/worker_config_pb2.pyi +++ b/temporalio/api/sdk/v1/worker_config_pb2.pyi @@ -4,21 +4,18 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkerConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class SimplePollerBehavior(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -30,9 +27,10 @@ class WorkerConfig(google.protobuf.message.Message): max_pollers: builtins.int = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["max_pollers", b"max_pollers"] + self, field_name: typing.Literal["max_pollers", b"max_pollers"] ) -> None: ... + @typing.final class AutoscalingPollerBehavior(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -58,7 +56,7 @@ class WorkerConfig(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "initial_pollers", b"initial_pollers", "max_pollers", @@ -88,7 +86,7 @@ class WorkerConfig(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "autoscaling_poller_behavior", b"autoscaling_poller_behavior", "poller_behavior", @@ -99,7 +97,7 @@ class WorkerConfig(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "autoscaling_poller_behavior", b"autoscaling_poller_behavior", "poller_behavior", @@ -111,13 +109,9 @@ class WorkerConfig(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, - oneof_group: typing_extensions.Literal["poller_behavior", b"poller_behavior"], + self, oneof_group: typing.Literal["poller_behavior", b"poller_behavior"] ) -> ( - typing_extensions.Literal[ - "simple_poller_behavior", "autoscaling_poller_behavior" - ] - | None + typing.Literal["simple_poller_behavior", "autoscaling_poller_behavior"] | None ): ... global___WorkerConfig = WorkerConfig diff --git a/temporalio/api/sdk/v1/workflow_metadata_pb2.py b/temporalio/api/sdk/v1/workflow_metadata_pb2.py index c872c59f2..6eba1057d 100644 --- a/temporalio/api/sdk/v1/workflow_metadata_pb2.py +++ b/temporalio/api/sdk/v1/workflow_metadata_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -18,45 +17,8 @@ b'\n+temporal/api/sdk/v1/workflow_metadata.proto\x12\x13temporal.api.sdk.v1"h\n\x10WorkflowMetadata\x12;\n\ndefinition\x18\x01 \x01(\x0b\x32\'.temporal.api.sdk.v1.WorkflowDefinition\x12\x17\n\x0f\x63urrent_details\x18\x02 \x01(\t"\x91\x02\n\x12WorkflowDefinition\x12\x0c\n\x04type\x18\x01 \x01(\t\x12M\n\x11query_definitions\x18\x02 \x03(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowInteractionDefinition\x12N\n\x12signal_definitions\x18\x03 \x03(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowInteractionDefinition\x12N\n\x12update_definitions\x18\x04 \x03(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowInteractionDefinition"B\n\x1dWorkflowInteractionDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x83\x01\n\x16io.temporal.api.sdk.v1B\x15WorkflowMetadataProtoP\x01Z\x1dgo.temporal.io/api/sdk/v1;sdk\xaa\x02\x15Temporalio.Api.Sdk.V1\xea\x02\x18Temporalio::Api::Sdk::V1b\x06proto3' ) - -_WORKFLOWMETADATA = DESCRIPTOR.message_types_by_name["WorkflowMetadata"] -_WORKFLOWDEFINITION = DESCRIPTOR.message_types_by_name["WorkflowDefinition"] -_WORKFLOWINTERACTIONDEFINITION = DESCRIPTOR.message_types_by_name[ - "WorkflowInteractionDefinition" -] -WorkflowMetadata = _reflection.GeneratedProtocolMessageType( - "WorkflowMetadata", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWMETADATA, - "__module__": "temporalio.api.sdk.v1.workflow_metadata_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkflowMetadata) - }, -) -_sym_db.RegisterMessage(WorkflowMetadata) - -WorkflowDefinition = _reflection.GeneratedProtocolMessageType( - "WorkflowDefinition", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWDEFINITION, - "__module__": "temporalio.api.sdk.v1.workflow_metadata_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkflowDefinition) - }, -) -_sym_db.RegisterMessage(WorkflowDefinition) - -WorkflowInteractionDefinition = _reflection.GeneratedProtocolMessageType( - "WorkflowInteractionDefinition", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWINTERACTIONDEFINITION, - "__module__": "temporalio.api.sdk.v1.workflow_metadata_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkflowInteractionDefinition) - }, -) -_sym_db.RegisterMessage(WorkflowInteractionDefinition) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\026io.temporal.api.sdk.v1B\025WorkflowMetadataProtoP\001Z\035go.temporal.io/api/sdk/v1;sdk\252\002\025Temporalio.Api.Sdk.V1\352\002\030Temporalio::Api::Sdk::V1" diff --git a/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi b/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi index ded58390b..4f0856e14 100644 --- a/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi +++ b/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi @@ -5,19 +5,15 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowMetadata(google.protobuf.message.Message): """The name of the query to retrieve this information is `__temporal_workflow_metadata`.""" @@ -25,13 +21,14 @@ class WorkflowMetadata(google.protobuf.message.Message): DEFINITION_FIELD_NUMBER: builtins.int CURRENT_DETAILS_FIELD_NUMBER: builtins.int - @property - def definition(self) -> global___WorkflowDefinition: - """Metadata provided at declaration or creation time.""" current_details: builtins.str """Current long-form details of the workflow's state. This is used by user interfaces to show long-form text. This text may be formatted by the user interface. """ + @property + def definition(self) -> global___WorkflowDefinition: + """Metadata provided at declaration or creation time.""" + def __init__( self, *, @@ -39,17 +36,18 @@ class WorkflowMetadata(google.protobuf.message.Message): current_details: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["definition", b"definition"] + self, field_name: typing.Literal["definition", b"definition"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_details", b"current_details", "definition", b"definition" ], ) -> None: ... global___WorkflowMetadata = WorkflowMetadata +@typing.final class WorkflowDefinition(google.protobuf.message.Message): """(-- api-linter: core::0203::optional=disabled --)""" @@ -70,6 +68,7 @@ class WorkflowDefinition(google.protobuf.message.Message): global___WorkflowInteractionDefinition ]: """Query definitions, sorted by name.""" + @property def signal_definitions( self, @@ -77,6 +76,7 @@ class WorkflowDefinition(google.protobuf.message.Message): global___WorkflowInteractionDefinition ]: """Signal definitions, sorted by name.""" + @property def update_definitions( self, @@ -84,6 +84,7 @@ class WorkflowDefinition(google.protobuf.message.Message): global___WorkflowInteractionDefinition ]: """Update definitions, sorted by name.""" + def __init__( self, *, @@ -103,7 +104,7 @@ class WorkflowDefinition(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "query_definitions", b"query_definitions", "signal_definitions", @@ -117,6 +118,7 @@ class WorkflowDefinition(google.protobuf.message.Message): global___WorkflowDefinition = WorkflowDefinition +@typing.final class WorkflowInteractionDefinition(google.protobuf.message.Message): """(-- api-linter: core::0123::resource-annotation=disabled aip.dev/not-precedent: The `name` field is optional. --) @@ -144,10 +146,7 @@ class WorkflowInteractionDefinition(google.protobuf.message.Message): description: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "description", b"description", "name", b"name" - ], + self, field_name: typing.Literal["description", b"description", "name", b"name"] ) -> None: ... global___WorkflowInteractionDefinition = WorkflowInteractionDefinition diff --git a/temporalio/api/taskqueue/v1/__init__.py b/temporalio/api/taskqueue/v1/__init__.py index 98595069b..325d6ab8e 100644 --- a/temporalio/api/taskqueue/v1/__init__.py +++ b/temporalio/api/taskqueue/v1/__init__.py @@ -7,6 +7,7 @@ PollerGroupInfo, PollerGroupsInfo, PollerInfo, + PollerPoolInfo, PollerScalingDecision, RampByPercentage, RateLimit, @@ -37,6 +38,7 @@ "PollerGroupInfo", "PollerGroupsInfo", "PollerInfo", + "PollerPoolInfo", "PollerScalingDecision", "RampByPercentage", "RateLimit", diff --git a/temporalio/api/taskqueue/v1/message_pb2.py b/temporalio/api/taskqueue/v1/message_pb2.py index e5caf07ac..dc62a7f52 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.py +++ b/temporalio/api/taskqueue/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -29,372 +28,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue"\xda\x02\n\x17TaskQueueVersioningInfo\x12W\n\x1a\x63urrent_deployment_version\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0f\x63urrent_version\x18\x01 \x01(\tB\x02\x18\x01\x12W\n\x1aramping_deployment_version\x18\t \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0framping_version\x18\x02 \x01(\tB\x02\x18\x01\x12"\n\x1aramping_version_percentage\x18\x03 \x01(\x02\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"W\n\x19TaskQueueVersionSelection\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\x12\x13\n\x0bunversioned\x18\x02 \x01(\x08\x12\x12\n\nall_active\x18\x03 \x01(\x08"\x95\x02\n\x14TaskQueueVersionInfo\x12R\n\ntypes_info\x18\x01 \x03(\x0b\x32>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry\x12I\n\x11task_reachability\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.BuildIdTaskReachability\x1a^\n\x0eTypesInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueTypeInfo:\x02\x38\x01"\x85\x01\n\x11TaskQueueTypeInfo\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats"\xc2\x01\n\x0eTaskQueueStats\x12!\n\x19\x61pproximate_backlog_count\x18\x01 \x01(\x03\x12:\n\x17\x61pproximate_backlog_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0etasks_add_rate\x18\x03 \x01(\x02\x12\x1b\n\x13tasks_dispatch_rate\x18\x04 \x01(\x02\x12\x1c\n\x14rate_limiting_active\x18\x05 \x01(\x08"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t"\x9a\x02\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachability"+\n\x10RampByPercentage\x12\x17\n\x0framp_percentage\x18\x01 \x01(\x02"\x80\x01\n\x15\x42uildIdAssignmentRule\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\x46\n\x0fpercentage_ramp\x18\x03 \x01(\x0b\x32+.temporal.api.taskqueue.v1.RampByPercentageH\x00\x42\x06\n\x04ramp"Q\n\x1d\x43ompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x12\x17\n\x0ftarget_build_id\x18\x02 \x01(\t"\x93\x01\n TimestampedBuildIdAssignmentRule\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa3\x01\n(TimestampedCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"-\n\x0fPollerGroupInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06weight\x18\x02 \x01(\x02"f\n\x10PollerGroupsInfo\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\x41\n\rpoller_groups\x18\x02 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfo">\n\x15PollerScalingDecision\x12%\n\x1dpoll_request_delta_suggestion\x18\x01 \x01(\x05"(\n\tRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02"j\n\x0e\x43onfigMetadata\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x17\n\x0fupdate_identity\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x88\x01\n\x0fRateLimitConfig\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.ConfigMetadata"\xd9\x02\n\x0fTaskQueueConfig\x12\x44\n\x10queue_rate_limit\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12T\n fairness_keys_rate_limit_default\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12j\n\x19\x66\x61irness_weight_overrides\x18\x03 \x03(\x0b\x32G.temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntry\x1a>\n\x1c\x46\x61irnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\x42\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3' + b'\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue"(\n\x0ePollerPoolInfo\x12\x16\n\x0etarget_pollers\x18\x01 \x01(\x05"\xda\x02\n\x17TaskQueueVersioningInfo\x12W\n\x1a\x63urrent_deployment_version\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0f\x63urrent_version\x18\x01 \x01(\tB\x02\x18\x01\x12W\n\x1aramping_deployment_version\x18\t \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0framping_version\x18\x02 \x01(\tB\x02\x18\x01\x12"\n\x1aramping_version_percentage\x18\x03 \x01(\x02\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"W\n\x19TaskQueueVersionSelection\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\x12\x13\n\x0bunversioned\x18\x02 \x01(\x08\x12\x12\n\nall_active\x18\x03 \x01(\x08"\x95\x02\n\x14TaskQueueVersionInfo\x12R\n\ntypes_info\x18\x01 \x03(\x0b\x32>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry\x12I\n\x11task_reachability\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.BuildIdTaskReachability\x1a^\n\x0eTypesInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueTypeInfo:\x02\x38\x01"\x85\x01\n\x11TaskQueueTypeInfo\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats"\xc2\x01\n\x0eTaskQueueStats\x12!\n\x19\x61pproximate_backlog_count\x18\x01 \x01(\x03\x12:\n\x17\x61pproximate_backlog_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0etasks_add_rate\x18\x03 \x01(\x02\x12\x1b\n\x13tasks_dispatch_rate\x18\x04 \x01(\x02\x12\x1c\n\x14rate_limiting_active\x18\x05 \x01(\x08"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t"\x9a\x02\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachability"+\n\x10RampByPercentage\x12\x17\n\x0framp_percentage\x18\x01 \x01(\x02"\x80\x01\n\x15\x42uildIdAssignmentRule\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\x46\n\x0fpercentage_ramp\x18\x03 \x01(\x0b\x32+.temporal.api.taskqueue.v1.RampByPercentageH\x00\x42\x06\n\x04ramp"Q\n\x1d\x43ompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x12\x17\n\x0ftarget_build_id\x18\x02 \x01(\t"\x93\x01\n TimestampedBuildIdAssignmentRule\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa3\x01\n(TimestampedCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"-\n\x0fPollerGroupInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06weight\x18\x02 \x01(\x02"f\n\x10PollerGroupsInfo\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\x41\n\rpoller_groups\x18\x02 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfo">\n\x15PollerScalingDecision\x12%\n\x1dpoll_request_delta_suggestion\x18\x01 \x01(\x05"(\n\tRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02"j\n\x0e\x43onfigMetadata\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x17\n\x0fupdate_identity\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x88\x01\n\x0fRateLimitConfig\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.ConfigMetadata"\xd9\x02\n\x0fTaskQueueConfig\x12\x44\n\x10queue_rate_limit\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12T\n fairness_keys_rate_limit_default\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12j\n\x19\x66\x61irness_weight_overrides\x18\x03 \x03(\x0b\x32G.temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntry\x1a>\n\x1c\x46\x61irnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\x42\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3' ) - -_TASKQUEUE = DESCRIPTOR.message_types_by_name["TaskQueue"] -_TASKQUEUEMETADATA = DESCRIPTOR.message_types_by_name["TaskQueueMetadata"] -_TASKQUEUEVERSIONINGINFO = DESCRIPTOR.message_types_by_name["TaskQueueVersioningInfo"] -_TASKQUEUEVERSIONSELECTION = DESCRIPTOR.message_types_by_name[ - "TaskQueueVersionSelection" -] -_TASKQUEUEVERSIONINFO = DESCRIPTOR.message_types_by_name["TaskQueueVersionInfo"] -_TASKQUEUEVERSIONINFO_TYPESINFOENTRY = _TASKQUEUEVERSIONINFO.nested_types_by_name[ - "TypesInfoEntry" -] -_TASKQUEUETYPEINFO = DESCRIPTOR.message_types_by_name["TaskQueueTypeInfo"] -_TASKQUEUESTATS = DESCRIPTOR.message_types_by_name["TaskQueueStats"] -_TASKQUEUESTATUS = DESCRIPTOR.message_types_by_name["TaskQueueStatus"] -_TASKIDBLOCK = DESCRIPTOR.message_types_by_name["TaskIdBlock"] -_TASKQUEUEPARTITIONMETADATA = DESCRIPTOR.message_types_by_name[ - "TaskQueuePartitionMetadata" -] -_POLLERINFO = DESCRIPTOR.message_types_by_name["PollerInfo"] -_STICKYEXECUTIONATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "StickyExecutionAttributes" -] -_COMPATIBLEVERSIONSET = DESCRIPTOR.message_types_by_name["CompatibleVersionSet"] -_TASKQUEUEREACHABILITY = DESCRIPTOR.message_types_by_name["TaskQueueReachability"] -_BUILDIDREACHABILITY = DESCRIPTOR.message_types_by_name["BuildIdReachability"] -_RAMPBYPERCENTAGE = DESCRIPTOR.message_types_by_name["RampByPercentage"] -_BUILDIDASSIGNMENTRULE = DESCRIPTOR.message_types_by_name["BuildIdAssignmentRule"] -_COMPATIBLEBUILDIDREDIRECTRULE = DESCRIPTOR.message_types_by_name[ - "CompatibleBuildIdRedirectRule" -] -_TIMESTAMPEDBUILDIDASSIGNMENTRULE = DESCRIPTOR.message_types_by_name[ - "TimestampedBuildIdAssignmentRule" -] -_TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE = DESCRIPTOR.message_types_by_name[ - "TimestampedCompatibleBuildIdRedirectRule" -] -_POLLERGROUPINFO = DESCRIPTOR.message_types_by_name["PollerGroupInfo"] -_POLLERGROUPSINFO = DESCRIPTOR.message_types_by_name["PollerGroupsInfo"] -_POLLERSCALINGDECISION = DESCRIPTOR.message_types_by_name["PollerScalingDecision"] -_RATELIMIT = DESCRIPTOR.message_types_by_name["RateLimit"] -_CONFIGMETADATA = DESCRIPTOR.message_types_by_name["ConfigMetadata"] -_RATELIMITCONFIG = DESCRIPTOR.message_types_by_name["RateLimitConfig"] -_TASKQUEUECONFIG = DESCRIPTOR.message_types_by_name["TaskQueueConfig"] -_TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY = _TASKQUEUECONFIG.nested_types_by_name[ - "FairnessWeightOverridesEntry" -] -TaskQueue = _reflection.GeneratedProtocolMessageType( - "TaskQueue", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUE, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueue) - }, -) -_sym_db.RegisterMessage(TaskQueue) - -TaskQueueMetadata = _reflection.GeneratedProtocolMessageType( - "TaskQueueMetadata", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUEMETADATA, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueMetadata) - }, -) -_sym_db.RegisterMessage(TaskQueueMetadata) - -TaskQueueVersioningInfo = _reflection.GeneratedProtocolMessageType( - "TaskQueueVersioningInfo", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUEVERSIONINGINFO, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersioningInfo) - }, -) -_sym_db.RegisterMessage(TaskQueueVersioningInfo) - -TaskQueueVersionSelection = _reflection.GeneratedProtocolMessageType( - "TaskQueueVersionSelection", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUEVERSIONSELECTION, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionSelection) - }, -) -_sym_db.RegisterMessage(TaskQueueVersionSelection) - -TaskQueueVersionInfo = _reflection.GeneratedProtocolMessageType( - "TaskQueueVersionInfo", - (_message.Message,), - { - "TypesInfoEntry": _reflection.GeneratedProtocolMessageType( - "TypesInfoEntry", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUEVERSIONINFO_TYPESINFOENTRY, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry) - }, - ), - "DESCRIPTOR": _TASKQUEUEVERSIONINFO, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionInfo) - }, -) -_sym_db.RegisterMessage(TaskQueueVersionInfo) -_sym_db.RegisterMessage(TaskQueueVersionInfo.TypesInfoEntry) - -TaskQueueTypeInfo = _reflection.GeneratedProtocolMessageType( - "TaskQueueTypeInfo", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUETYPEINFO, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueTypeInfo) - }, -) -_sym_db.RegisterMessage(TaskQueueTypeInfo) - -TaskQueueStats = _reflection.GeneratedProtocolMessageType( - "TaskQueueStats", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUESTATS, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueStats) - }, -) -_sym_db.RegisterMessage(TaskQueueStats) - -TaskQueueStatus = _reflection.GeneratedProtocolMessageType( - "TaskQueueStatus", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUESTATUS, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueStatus) - }, -) -_sym_db.RegisterMessage(TaskQueueStatus) - -TaskIdBlock = _reflection.GeneratedProtocolMessageType( - "TaskIdBlock", - (_message.Message,), - { - "DESCRIPTOR": _TASKIDBLOCK, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskIdBlock) - }, -) -_sym_db.RegisterMessage(TaskIdBlock) - -TaskQueuePartitionMetadata = _reflection.GeneratedProtocolMessageType( - "TaskQueuePartitionMetadata", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUEPARTITIONMETADATA, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueuePartitionMetadata) - }, -) -_sym_db.RegisterMessage(TaskQueuePartitionMetadata) - -PollerInfo = _reflection.GeneratedProtocolMessageType( - "PollerInfo", - (_message.Message,), - { - "DESCRIPTOR": _POLLERINFO, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.PollerInfo) - }, -) -_sym_db.RegisterMessage(PollerInfo) - -StickyExecutionAttributes = _reflection.GeneratedProtocolMessageType( - "StickyExecutionAttributes", - (_message.Message,), - { - "DESCRIPTOR": _STICKYEXECUTIONATTRIBUTES, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.StickyExecutionAttributes) - }, -) -_sym_db.RegisterMessage(StickyExecutionAttributes) - -CompatibleVersionSet = _reflection.GeneratedProtocolMessageType( - "CompatibleVersionSet", - (_message.Message,), - { - "DESCRIPTOR": _COMPATIBLEVERSIONSET, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.CompatibleVersionSet) - }, -) -_sym_db.RegisterMessage(CompatibleVersionSet) - -TaskQueueReachability = _reflection.GeneratedProtocolMessageType( - "TaskQueueReachability", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUEREACHABILITY, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueReachability) - }, -) -_sym_db.RegisterMessage(TaskQueueReachability) - -BuildIdReachability = _reflection.GeneratedProtocolMessageType( - "BuildIdReachability", - (_message.Message,), - { - "DESCRIPTOR": _BUILDIDREACHABILITY, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.BuildIdReachability) - }, -) -_sym_db.RegisterMessage(BuildIdReachability) - -RampByPercentage = _reflection.GeneratedProtocolMessageType( - "RampByPercentage", - (_message.Message,), - { - "DESCRIPTOR": _RAMPBYPERCENTAGE, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.RampByPercentage) - }, -) -_sym_db.RegisterMessage(RampByPercentage) - -BuildIdAssignmentRule = _reflection.GeneratedProtocolMessageType( - "BuildIdAssignmentRule", - (_message.Message,), - { - "DESCRIPTOR": _BUILDIDASSIGNMENTRULE, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.BuildIdAssignmentRule) - }, -) -_sym_db.RegisterMessage(BuildIdAssignmentRule) - -CompatibleBuildIdRedirectRule = _reflection.GeneratedProtocolMessageType( - "CompatibleBuildIdRedirectRule", - (_message.Message,), - { - "DESCRIPTOR": _COMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule) - }, -) -_sym_db.RegisterMessage(CompatibleBuildIdRedirectRule) - -TimestampedBuildIdAssignmentRule = _reflection.GeneratedProtocolMessageType( - "TimestampedBuildIdAssignmentRule", - (_message.Message,), - { - "DESCRIPTOR": _TIMESTAMPEDBUILDIDASSIGNMENTRULE, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule) - }, -) -_sym_db.RegisterMessage(TimestampedBuildIdAssignmentRule) - -TimestampedCompatibleBuildIdRedirectRule = _reflection.GeneratedProtocolMessageType( - "TimestampedCompatibleBuildIdRedirectRule", - (_message.Message,), - { - "DESCRIPTOR": _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule) - }, -) -_sym_db.RegisterMessage(TimestampedCompatibleBuildIdRedirectRule) - -PollerGroupInfo = _reflection.GeneratedProtocolMessageType( - "PollerGroupInfo", - (_message.Message,), - { - "DESCRIPTOR": _POLLERGROUPINFO, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.PollerGroupInfo) - }, -) -_sym_db.RegisterMessage(PollerGroupInfo) - -PollerGroupsInfo = _reflection.GeneratedProtocolMessageType( - "PollerGroupsInfo", - (_message.Message,), - { - "DESCRIPTOR": _POLLERGROUPSINFO, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.PollerGroupsInfo) - }, -) -_sym_db.RegisterMessage(PollerGroupsInfo) - -PollerScalingDecision = _reflection.GeneratedProtocolMessageType( - "PollerScalingDecision", - (_message.Message,), - { - "DESCRIPTOR": _POLLERSCALINGDECISION, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.PollerScalingDecision) - }, -) -_sym_db.RegisterMessage(PollerScalingDecision) - -RateLimit = _reflection.GeneratedProtocolMessageType( - "RateLimit", - (_message.Message,), - { - "DESCRIPTOR": _RATELIMIT, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.RateLimit) - }, -) -_sym_db.RegisterMessage(RateLimit) - -ConfigMetadata = _reflection.GeneratedProtocolMessageType( - "ConfigMetadata", - (_message.Message,), - { - "DESCRIPTOR": _CONFIGMETADATA, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.ConfigMetadata) - }, -) -_sym_db.RegisterMessage(ConfigMetadata) - -RateLimitConfig = _reflection.GeneratedProtocolMessageType( - "RateLimitConfig", - (_message.Message,), - { - "DESCRIPTOR": _RATELIMITCONFIG, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.RateLimitConfig) - }, -) -_sym_db.RegisterMessage(RateLimitConfig) - -TaskQueueConfig = _reflection.GeneratedProtocolMessageType( - "TaskQueueConfig", - (_message.Message,), - { - "FairnessWeightOverridesEntry": _reflection.GeneratedProtocolMessageType( - "FairnessWeightOverridesEntry", - (_message.Message,), - { - "DESCRIPTOR": _TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntry) - }, - ), - "DESCRIPTOR": _TASKQUEUECONFIG, - "__module__": "temporalio.api.taskqueue.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueConfig) - }, -) -_sym_db.RegisterMessage(TaskQueueConfig) -_sym_db.RegisterMessage(TaskQueueConfig.FairnessWeightOverridesEntry) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\034io.temporal.api.taskqueue.v1B\014MessageProtoP\001Z)go.temporal.io/api/taskqueue/v1;taskqueue\252\002\033Temporalio.Api.TaskQueue.V1\352\002\036Temporalio::Api::TaskQueue::V1" @@ -418,58 +56,60 @@ _TASKQUEUE._serialized_end = 385 _TASKQUEUEMETADATA._serialized_start = 387 _TASKQUEUEMETADATA._serialized_end = 466 - _TASKQUEUEVERSIONINGINFO._serialized_start = 469 - _TASKQUEUEVERSIONINGINFO._serialized_end = 815 - _TASKQUEUEVERSIONSELECTION._serialized_start = 817 - _TASKQUEUEVERSIONSELECTION._serialized_end = 904 - _TASKQUEUEVERSIONINFO._serialized_start = 907 - _TASKQUEUEVERSIONINFO._serialized_end = 1184 - _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_start = 1090 - _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_end = 1184 - _TASKQUEUETYPEINFO._serialized_start = 1187 - _TASKQUEUETYPEINFO._serialized_end = 1320 - _TASKQUEUESTATS._serialized_start = 1323 - _TASKQUEUESTATS._serialized_end = 1517 - _TASKQUEUESTATUS._serialized_start = 1520 - _TASKQUEUESTATUS._serialized_end = 1692 - _TASKIDBLOCK._serialized_start = 1694 - _TASKIDBLOCK._serialized_end = 1741 - _TASKQUEUEPARTITIONMETADATA._serialized_start = 1743 - _TASKQUEUEPARTITIONMETADATA._serialized_end = 1809 - _POLLERINFO._serialized_start = 1812 - _POLLERINFO._serialized_end = 2094 - _STICKYEXECUTIONATTRIBUTES._serialized_start = 2097 - _STICKYEXECUTIONATTRIBUTES._serialized_end = 2251 - _COMPATIBLEVERSIONSET._serialized_start = 2253 - _COMPATIBLEVERSIONSET._serialized_end = 2294 - _TASKQUEUEREACHABILITY._serialized_start = 2296 - _TASKQUEUEREACHABILITY._serialized_end = 2402 - _BUILDIDREACHABILITY._serialized_start = 2404 - _BUILDIDREACHABILITY._serialized_end = 2526 - _RAMPBYPERCENTAGE._serialized_start = 2528 - _RAMPBYPERCENTAGE._serialized_end = 2571 - _BUILDIDASSIGNMENTRULE._serialized_start = 2574 - _BUILDIDASSIGNMENTRULE._serialized_end = 2702 - _COMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2704 - _COMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2785 - _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_start = 2788 - _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_end = 2935 - _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2938 - _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 3101 - _POLLERGROUPINFO._serialized_start = 3103 - _POLLERGROUPINFO._serialized_end = 3148 - _POLLERGROUPSINFO._serialized_start = 3150 - _POLLERGROUPSINFO._serialized_end = 3252 - _POLLERSCALINGDECISION._serialized_start = 3254 - _POLLERSCALINGDECISION._serialized_end = 3316 - _RATELIMIT._serialized_start = 3318 - _RATELIMIT._serialized_end = 3358 - _CONFIGMETADATA._serialized_start = 3360 - _CONFIGMETADATA._serialized_end = 3466 - _RATELIMITCONFIG._serialized_start = 3469 - _RATELIMITCONFIG._serialized_end = 3605 - _TASKQUEUECONFIG._serialized_start = 3608 - _TASKQUEUECONFIG._serialized_end = 3953 - _TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY._serialized_start = 3891 - _TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY._serialized_end = 3953 + _POLLERPOOLINFO._serialized_start = 468 + _POLLERPOOLINFO._serialized_end = 508 + _TASKQUEUEVERSIONINGINFO._serialized_start = 511 + _TASKQUEUEVERSIONINGINFO._serialized_end = 857 + _TASKQUEUEVERSIONSELECTION._serialized_start = 859 + _TASKQUEUEVERSIONSELECTION._serialized_end = 946 + _TASKQUEUEVERSIONINFO._serialized_start = 949 + _TASKQUEUEVERSIONINFO._serialized_end = 1226 + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_start = 1132 + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_end = 1226 + _TASKQUEUETYPEINFO._serialized_start = 1229 + _TASKQUEUETYPEINFO._serialized_end = 1362 + _TASKQUEUESTATS._serialized_start = 1365 + _TASKQUEUESTATS._serialized_end = 1559 + _TASKQUEUESTATUS._serialized_start = 1562 + _TASKQUEUESTATUS._serialized_end = 1734 + _TASKIDBLOCK._serialized_start = 1736 + _TASKIDBLOCK._serialized_end = 1783 + _TASKQUEUEPARTITIONMETADATA._serialized_start = 1785 + _TASKQUEUEPARTITIONMETADATA._serialized_end = 1851 + _POLLERINFO._serialized_start = 1854 + _POLLERINFO._serialized_end = 2136 + _STICKYEXECUTIONATTRIBUTES._serialized_start = 2139 + _STICKYEXECUTIONATTRIBUTES._serialized_end = 2293 + _COMPATIBLEVERSIONSET._serialized_start = 2295 + _COMPATIBLEVERSIONSET._serialized_end = 2336 + _TASKQUEUEREACHABILITY._serialized_start = 2338 + _TASKQUEUEREACHABILITY._serialized_end = 2444 + _BUILDIDREACHABILITY._serialized_start = 2446 + _BUILDIDREACHABILITY._serialized_end = 2568 + _RAMPBYPERCENTAGE._serialized_start = 2570 + _RAMPBYPERCENTAGE._serialized_end = 2613 + _BUILDIDASSIGNMENTRULE._serialized_start = 2616 + _BUILDIDASSIGNMENTRULE._serialized_end = 2744 + _COMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2746 + _COMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2827 + _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_start = 2830 + _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_end = 2977 + _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2980 + _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 3143 + _POLLERGROUPINFO._serialized_start = 3145 + _POLLERGROUPINFO._serialized_end = 3190 + _POLLERGROUPSINFO._serialized_start = 3192 + _POLLERGROUPSINFO._serialized_end = 3294 + _POLLERSCALINGDECISION._serialized_start = 3296 + _POLLERSCALINGDECISION._serialized_end = 3358 + _RATELIMIT._serialized_start = 3360 + _RATELIMIT._serialized_end = 3400 + _CONFIGMETADATA._serialized_start = 3402 + _CONFIGMETADATA._serialized_end = 3508 + _RATELIMITCONFIG._serialized_start = 3511 + _RATELIMITCONFIG._serialized_end = 3647 + _TASKQUEUECONFIG._serialized_start = 3650 + _TASKQUEUECONFIG._serialized_end = 3995 + _TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY._serialized_start = 3933 + _TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY._serialized_end = 3995 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/taskqueue/v1/message_pb2.pyi b/temporalio/api/taskqueue/v1/message_pb2.pyi index 3b43a559f..4ca005a6e 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.pyi +++ b/temporalio/api/taskqueue/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -18,13 +18,9 @@ import temporalio.api.common.v1.message_pb2 import temporalio.api.deployment.v1.message_pb2 import temporalio.api.enums.v1.task_queue_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class TaskQueue(google.protobuf.message.Message): """See https://docs.temporal.io/docs/concepts/task-queues/""" @@ -49,13 +45,14 @@ class TaskQueue(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "kind", b"kind", "name", b"name", "normal_name", b"normal_name" ], ) -> None: ... global___TaskQueue = TaskQueue +@typing.final class TaskQueueMetadata(google.protobuf.message.Message): """Only applies to activity task queues""" @@ -65,6 +62,7 @@ class TaskQueueMetadata(google.protobuf.message.Message): @property def max_tasks_per_second(self) -> google.protobuf.wrappers_pb2.DoubleValue: """Allows throttling dispatch of tasks from this queue""" + def __init__( self, *, @@ -72,19 +70,40 @@ class TaskQueueMetadata(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "max_tasks_per_second", b"max_tasks_per_second" - ], + field_name: typing.Literal["max_tasks_per_second", b"max_tasks_per_second"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "max_tasks_per_second", b"max_tasks_per_second" - ], + field_name: typing.Literal["max_tasks_per_second", b"max_tasks_per_second"], ) -> None: ... global___TaskQueueMetadata = TaskQueueMetadata +@typing.final +class PollerPoolInfo(google.protobuf.message.Message): + """Worker-reported state about the poller pool issuing a poll, used by the server to spread + poller scaling suggestions across a fleet. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TARGET_POLLERS_FIELD_NUMBER: builtins.int + target_pollers: builtins.int + """Number of concurrent poll requests this worker is currently targeting for this task + queue and task type. 0 if unknown, such as a poller pool of fixed size. + """ + def __init__( + self, + *, + target_pollers: builtins.int = ..., + ) -> None: ... + def ClearField( + self, field_name: typing.Literal["target_pollers", b"target_pollers"] + ) -> None: ... + +global___PollerPoolInfo = PollerPoolInfo + +@typing.final class TaskQueueVersioningInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -94,6 +113,16 @@ class TaskQueueVersioningInfo(google.protobuf.message.Message): RAMPING_VERSION_FIELD_NUMBER: builtins.int RAMPING_VERSION_PERCENTAGE_FIELD_NUMBER: builtins.int UPDATE_TIME_FIELD_NUMBER: builtins.int + current_version: builtins.str + """Deprecated. Use `current_deployment_version`.""" + ramping_version: builtins.str + """Deprecated. Use `ramping_deployment_version`.""" + ramping_version_percentage: builtins.float + """Percentage of tasks that are routed to the Ramping Version instead of the Current Version. + Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but + not yet "promoted" to be the Current Version, likely due to pending validations. + A 0% value means the Ramping Version is receiving no traffic. + """ @property def current_deployment_version( self, @@ -104,8 +133,7 @@ class TaskQueueVersioningInfo(google.protobuf.message.Message): Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`). """ - current_version: builtins.str - """Deprecated. Use `current_deployment_version`.""" + @property def ramping_deployment_version( self, @@ -116,17 +144,11 @@ class TaskQueueVersioningInfo(google.protobuf.message.Message): Note that it is possible to ramp from one Version to another Version, or from unversioned workers to a particular Version, or from a particular Version to unversioned workers. """ - ramping_version: builtins.str - """Deprecated. Use `ramping_deployment_version`.""" - ramping_version_percentage: builtins.float - """Percentage of tasks that are routed to the Ramping Version instead of the Current Version. - Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but - not yet "promoted" to be the Current Version, likely due to pending validations. - A 0% value means the Ramping Version is receiving no traffic. - """ + @property def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Last time versioning information of this Task Queue changed.""" + def __init__( self, *, @@ -141,7 +163,7 @@ class TaskQueueVersioningInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_deployment_version", b"current_deployment_version", "ramping_deployment_version", @@ -152,7 +174,7 @@ class TaskQueueVersioningInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_deployment_version", b"current_deployment_version", "current_version", @@ -170,6 +192,7 @@ class TaskQueueVersioningInfo(google.protobuf.message.Message): global___TaskQueueVersioningInfo = TaskQueueVersioningInfo +@typing.final class TaskQueueVersionSelection(google.protobuf.message.Message): """Used for specifying versions the caller is interested in.""" @@ -178,17 +201,18 @@ class TaskQueueVersionSelection(google.protobuf.message.Message): BUILD_IDS_FIELD_NUMBER: builtins.int UNVERSIONED_FIELD_NUMBER: builtins.int ALL_ACTIVE_FIELD_NUMBER: builtins.int - @property - def build_ids( - self, - ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """Include specific Build IDs.""" unversioned: builtins.bool """Include the unversioned queue.""" all_active: builtins.bool """Include all active versions. A version is considered active if, in the last few minutes, it has had new tasks or polls, or it has been the subject of certain task queue API calls. """ + @property + def build_ids( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """Include specific Build IDs.""" + def __init__( self, *, @@ -198,7 +222,7 @@ class TaskQueueVersionSelection(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "all_active", b"all_active", "build_ids", @@ -210,9 +234,11 @@ class TaskQueueVersionSelection(google.protobuf.message.Message): global___TaskQueueVersionSelection = TaskQueueVersionSelection +@typing.final class TaskQueueVersionInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class TypesInfoEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -228,22 +254,14 @@ class TaskQueueVersionInfo(google.protobuf.message.Message): value: global___TaskQueueTypeInfo | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... TYPES_INFO_FIELD_NUMBER: builtins.int TASK_REACHABILITY_FIELD_NUMBER: builtins.int - @property - def types_info( - self, - ) -> google.protobuf.internal.containers.MessageMap[ - builtins.int, global___TaskQueueTypeInfo - ]: - """Task Queue info per Task Type. Key is the numerical value of the temporalio.api.enums.v1.TaskQueueType enum.""" task_reachability: ( temporalio.api.enums.v1.task_queue_pb2.BuildIdTaskReachability.ValueType ) @@ -257,6 +275,14 @@ class TaskQueueVersionInfo(google.protobuf.message.Message): who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make sure to query reachability for the parent/previous workflow's Task Queue as well. """ + @property + def types_info( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.int, global___TaskQueueTypeInfo + ]: + """Task Queue info per Task Type. Key is the numerical value of the temporalio.api.enums.v1.TaskQueueType enum.""" + def __init__( self, *, @@ -266,13 +292,14 @@ class TaskQueueVersionInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "task_reachability", b"task_reachability", "types_info", b"types_info" ], ) -> None: ... global___TaskQueueVersionInfo = TaskQueueVersionInfo +@typing.final class TaskQueueTypeInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -285,6 +312,7 @@ class TaskQueueTypeInfo(google.protobuf.message.Message): global___PollerInfo ]: """Unversioned workers (with `useVersioning=false`) are reported in unversioned result even if they set a Build ID.""" + @property def stats(self) -> global___TaskQueueStats: ... def __init__( @@ -294,15 +322,15 @@ class TaskQueueTypeInfo(google.protobuf.message.Message): stats: global___TaskQueueStats | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["stats", b"stats"] + self, field_name: typing.Literal["stats", b"stats"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["pollers", b"pollers", "stats", b"stats"], + self, field_name: typing.Literal["pollers", b"pollers", "stats", b"stats"] ) -> None: ... global___TaskQueueTypeInfo = TaskQueueTypeInfo +@typing.final class TaskQueueStats(google.protobuf.message.Message): """TaskQueueStats contains statistics about task queue backlog and activity. @@ -325,15 +353,6 @@ class TaskQueueStats(google.protobuf.message.Message): those tasks only remain valid for a few seconds, the inaccuracy becomes less significant as the backlog size grows. """ - @property - def approximate_backlog_age(self) -> google.protobuf.duration_pb2.Duration: - """Approximate age of the oldest task in the backlog based on the creation time of the task at the head of - the queue. Can be relied upon for scaling decisions. - - Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because - those tasks only remain valid for a few seconds, they should not affect the result when backlog is older than - few seconds. - """ tasks_add_rate: builtins.float """The approximate tasks per second added to the task queue, averaging the last 30 seconds. These includes tasks whether or not they were added to/dispatched from the backlog or they were dispatched immediately without going @@ -372,6 +391,16 @@ class TaskQueueStats(google.protobuf.message.Message): rate limit, not worker count. This field is useful for auto-scaling systems to avoid unnecessary scale-up. """ + @property + def approximate_backlog_age(self) -> google.protobuf.duration_pb2.Duration: + """Approximate age of the oldest task in the backlog based on the creation time of the task at the head of + the queue. Can be relied upon for scaling decisions. + + Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because + those tasks only remain valid for a few seconds, they should not affect the result when backlog is older than + few seconds. + """ + def __init__( self, *, @@ -383,13 +412,13 @@ class TaskQueueStats(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "approximate_backlog_age", b"approximate_backlog_age" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "approximate_backlog_age", b"approximate_backlog_age", "approximate_backlog_count", @@ -405,6 +434,7 @@ class TaskQueueStats(google.protobuf.message.Message): global___TaskQueueStats = TaskQueueStats +@typing.final class TaskQueueStatus(google.protobuf.message.Message): """Deprecated. Use `InternalTaskQueueStatus`. This is kept until `DescribeTaskQueue` supports legacy behavior.""" @@ -431,11 +461,11 @@ class TaskQueueStatus(google.protobuf.message.Message): task_id_block: global___TaskIdBlock | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["task_id_block", b"task_id_block"] + self, field_name: typing.Literal["task_id_block", b"task_id_block"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "ack_level", b"ack_level", "backlog_count_hint", @@ -451,6 +481,7 @@ class TaskQueueStatus(google.protobuf.message.Message): global___TaskQueueStatus = TaskQueueStatus +@typing.final class TaskIdBlock(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -465,14 +496,12 @@ class TaskIdBlock(google.protobuf.message.Message): end_id: builtins.int = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "end_id", b"end_id", "start_id", b"start_id" - ], + self, field_name: typing.Literal["end_id", b"end_id", "start_id", b"start_id"] ) -> None: ... global___TaskIdBlock = TaskIdBlock +@typing.final class TaskQueuePartitionMetadata(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -488,13 +517,14 @@ class TaskQueuePartitionMetadata(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "key", b"key", "owner_host_name", b"owner_host_name" ], ) -> None: ... global___TaskQueuePartitionMetadata = TaskQueuePartitionMetadata +@typing.final class PollerInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -503,11 +533,11 @@ class PollerInfo(google.protobuf.message.Message): RATE_PER_SECOND_FIELD_NUMBER: builtins.int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int - @property - def last_access_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... identity: builtins.str rate_per_second: builtins.float @property + def last_access_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property def worker_version_capabilities( self, ) -> temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities: @@ -515,11 +545,13 @@ class PollerInfo(google.protobuf.message.Message): appear here. Deprecated. Replaced by deployment_options. """ + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that SDK sent to server.""" + def __init__( self, *, @@ -533,7 +565,7 @@ class PollerInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_options", b"deployment_options", "last_access_time", @@ -544,7 +576,7 @@ class PollerInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_options", b"deployment_options", "identity", @@ -560,6 +592,7 @@ class PollerInfo(google.protobuf.message.Message): global___PollerInfo = PollerInfo +@typing.final class StickyExecutionAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -572,6 +605,7 @@ class StickyExecutionAttributes(google.protobuf.message.Message): """(-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + def __init__( self, *, @@ -580,7 +614,7 @@ class StickyExecutionAttributes(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "schedule_to_start_timeout", b"schedule_to_start_timeout", "worker_task_queue", @@ -589,7 +623,7 @@ class StickyExecutionAttributes(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "schedule_to_start_timeout", b"schedule_to_start_timeout", "worker_task_queue", @@ -599,6 +633,7 @@ class StickyExecutionAttributes(google.protobuf.message.Message): global___StickyExecutionAttributes = StickyExecutionAttributes +@typing.final class CompatibleVersionSet(google.protobuf.message.Message): """Used by the worker versioning APIs, represents an unordered set of one or more versions which are considered to be compatible with each other. Currently the versions are always worker build IDs. @@ -612,17 +647,19 @@ class CompatibleVersionSet(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """All the compatible versions, unordered, except for the last element, which is considered the set "default".""" + def __init__( self, *, build_ids: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["build_ids", b"build_ids"] + self, field_name: typing.Literal["build_ids", b"build_ids"] ) -> None: ... global___CompatibleVersionSet = CompatibleVersionSet +@typing.final class TaskQueueReachability(google.protobuf.message.Message): """Reachability of tasks for a worker on a single task queue.""" @@ -641,6 +678,7 @@ class TaskQueueReachability(google.protobuf.message.Message): See the TaskReachability docstring for information about each enum variant. If reachability is empty, this worker is considered unreachable in this task queue. """ + def __init__( self, *, @@ -652,13 +690,14 @@ class TaskQueueReachability(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "reachability", b"reachability", "task_queue", b"task_queue" ], ) -> None: ... global___TaskQueueReachability = TaskQueueReachability +@typing.final class BuildIdReachability(google.protobuf.message.Message): """Reachability of tasks for a worker by build id, in one or more task queues.""" @@ -675,6 +714,7 @@ class BuildIdReachability(google.protobuf.message.Message): global___TaskQueueReachability ]: """Reachability per task queue.""" + def __init__( self, *, @@ -686,7 +726,7 @@ class BuildIdReachability(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id", b"build_id", "task_queue_reachability", @@ -696,6 +736,7 @@ class BuildIdReachability(google.protobuf.message.Message): global___BuildIdReachability = BuildIdReachability +@typing.final class RampByPercentage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -708,12 +749,12 @@ class RampByPercentage(google.protobuf.message.Message): ramp_percentage: builtins.float = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["ramp_percentage", b"ramp_percentage"], + self, field_name: typing.Literal["ramp_percentage", b"ramp_percentage"] ) -> None: ... global___RampByPercentage = RampByPercentage +@typing.final class BuildIdAssignmentRule(google.protobuf.message.Message): """Assignment rules are applied to *new* Workflow and Activity executions at schedule time to assign them to a Build ID. @@ -765,6 +806,7 @@ class BuildIdAssignmentRule(google.protobuf.message.Message): where you want to send a certain portion of the traffic to the target Build ID. """ + def __init__( self, *, @@ -773,13 +815,13 @@ class BuildIdAssignmentRule(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "percentage_ramp", b"percentage_ramp", "ramp", b"ramp" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "percentage_ramp", b"percentage_ramp", "ramp", @@ -789,11 +831,12 @@ class BuildIdAssignmentRule(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["ramp", b"ramp"] - ) -> typing_extensions.Literal["percentage_ramp"] | None: ... + self, oneof_group: typing.Literal["ramp", b"ramp"] + ) -> typing.Literal["percentage_ramp"] | None: ... global___BuildIdAssignmentRule = BuildIdAssignmentRule +@typing.final class CompatibleBuildIdRedirectRule(google.protobuf.message.Message): """These rules apply to tasks assigned to a particular Build ID (`source_build_id`) to redirect them to another *compatible* Build ID @@ -836,13 +879,14 @@ class CompatibleBuildIdRedirectRule(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "source_build_id", b"source_build_id", "target_build_id", b"target_build_id" ], ) -> None: ... global___CompatibleBuildIdRedirectRule = CompatibleBuildIdRedirectRule +@typing.final class TimestampedBuildIdAssignmentRule(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -859,20 +903,15 @@ class TimestampedBuildIdAssignmentRule(google.protobuf.message.Message): create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "create_time", b"create_time", "rule", b"rule" - ], + self, field_name: typing.Literal["create_time", b"create_time", "rule", b"rule"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "create_time", b"create_time", "rule", b"rule" - ], + self, field_name: typing.Literal["create_time", b"create_time", "rule", b"rule"] ) -> None: ... global___TimestampedBuildIdAssignmentRule = TimestampedBuildIdAssignmentRule +@typing.final class TimestampedCompatibleBuildIdRedirectRule(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -889,22 +928,17 @@ class TimestampedCompatibleBuildIdRedirectRule(google.protobuf.message.Message): create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "create_time", b"create_time", "rule", b"rule" - ], + self, field_name: typing.Literal["create_time", b"create_time", "rule", b"rule"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "create_time", b"create_time", "rule", b"rule" - ], + self, field_name: typing.Literal["create_time", b"create_time", "rule", b"rule"] ) -> None: ... global___TimestampedCompatibleBuildIdRedirectRule = ( TimestampedCompatibleBuildIdRedirectRule ) +@typing.final class PollerGroupInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -919,11 +953,12 @@ class PollerGroupInfo(google.protobuf.message.Message): weight: builtins.float = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["id", b"id", "weight", b"weight"] + self, field_name: typing.Literal["id", b"id", "weight", b"weight"] ) -> None: ... global___PollerGroupInfo = PollerGroupInfo +@typing.final class PollerGroupsInfo(google.protobuf.message.Message): """A versioned snapshot of the poller groups the client should use for future polls to a task queue. The version is monotonically increasing so that a client can ignore a snapshot that is @@ -945,6 +980,7 @@ class PollerGroupsInfo(google.protobuf.message.Message): global___PollerGroupInfo ]: """The weighted list of poller groups the client should use for future polls to this task queue.""" + def __init__( self, *, @@ -953,13 +989,14 @@ class PollerGroupsInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "poller_groups", b"poller_groups", "version", b"version" ], ) -> None: ... global___PollerGroupsInfo = PollerGroupsInfo +@typing.final class PollerScalingDecision(google.protobuf.message.Message): """Attached to task responses to give hints to the SDK about how it may adjust its number of pollers. @@ -983,13 +1020,14 @@ class PollerScalingDecision(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "poll_request_delta_suggestion", b"poll_request_delta_suggestion" ], ) -> None: ... global___PollerScalingDecision = PollerScalingDecision +@typing.final class RateLimit(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1002,14 +1040,12 @@ class RateLimit(google.protobuf.message.Message): requests_per_second: builtins.float = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "requests_per_second", b"requests_per_second" - ], + self, field_name: typing.Literal["requests_per_second", b"requests_per_second"] ) -> None: ... global___RateLimit = RateLimit +@typing.final class ConfigMetadata(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1025,6 +1061,7 @@ class ConfigMetadata(google.protobuf.message.Message): @property def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time of the last update.""" + def __init__( self, *, @@ -1033,11 +1070,11 @@ class ConfigMetadata(google.protobuf.message.Message): update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["update_time", b"update_time"] + self, field_name: typing.Literal["update_time", b"update_time"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "reason", b"reason", "update_identity", @@ -1049,6 +1086,7 @@ class ConfigMetadata(google.protobuf.message.Message): global___ConfigMetadata = ConfigMetadata +@typing.final class RateLimitConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1066,22 +1104,24 @@ class RateLimitConfig(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "metadata", b"metadata", "rate_limit", b"rate_limit" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "metadata", b"metadata", "rate_limit", b"rate_limit" ], ) -> None: ... global___RateLimitConfig = RateLimitConfig +@typing.final class TaskQueueConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class FairnessWeightOverridesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1096,8 +1136,7 @@ class TaskQueueConfig(google.protobuf.message.Message): value: builtins.float = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... QUEUE_RATE_LIMIT_FIELD_NUMBER: builtins.int @@ -1106,14 +1145,17 @@ class TaskQueueConfig(google.protobuf.message.Message): @property def queue_rate_limit(self) -> global___RateLimitConfig: """Unless modified, this is the system-defined rate limit.""" + @property def fairness_keys_rate_limit_default(self) -> global___RateLimitConfig: """If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key.""" + @property def fairness_weight_overrides( self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.float]: """If set, overrides the fairness weights for the corresponding fairness keys.""" + def __init__( self, *, @@ -1124,7 +1166,7 @@ class TaskQueueConfig(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "fairness_keys_rate_limit_default", b"fairness_keys_rate_limit_default", "queue_rate_limit", @@ -1133,7 +1175,7 @@ class TaskQueueConfig(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "fairness_keys_rate_limit_default", b"fairness_keys_rate_limit_default", "fairness_weight_overrides", diff --git a/temporalio/api/testservice/v1/__init__.py b/temporalio/api/testservice/v1/__init__.py index 8539030d3..329bbb47d 100644 --- a/temporalio/api/testservice/v1/__init__.py +++ b/temporalio/api/testservice/v1/__init__.py @@ -25,13 +25,19 @@ import grpc from .service_pb2_grpc import ( + TestService, # type: ignore TestServiceServicer, TestServiceStub, add_TestServiceServicer_to_server, ) __all__.extend( - ["TestServiceServicer", "TestServiceStub", "add_TestServiceServicer_to_server"] + [ + "TestService", + "TestServiceServicer", + "TestServiceStub", + "add_TestServiceServicer_to_server", + ] ) except ImportError: pass diff --git a/temporalio/api/testservice/v1/request_response_pb2.py b/temporalio/api/testservice/v1/request_response_pb2.py index 65e52f72a..485a2902b 100644 --- a/temporalio/api/testservice/v1/request_response_pb2.py +++ b/temporalio/api/testservice/v1/request_response_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -21,107 +20,8 @@ b'\n2temporal/api/testservice/v1/request_response.proto\x12\x1btemporal.api.testservice.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x19\n\x17LockTimeSkippingRequest"\x1a\n\x18LockTimeSkippingResponse"\x1b\n\x19UnlockTimeSkippingRequest"\x1c\n\x1aUnlockTimeSkippingResponse"B\n\x11SleepUntilRequest\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp";\n\x0cSleepRequest\x12+\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration"\x0f\n\rSleepResponse"B\n\x16GetCurrentTimeResponse\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\xaa\x01\n\x1eio.temporal.api.testservice.v1B\x14RequestResponseProtoP\x01Z-go.temporal.io/api/testservice/v1;testservice\xaa\x02\x1dTemporalio.Api.TestService.V1\xea\x02 Temporalio::Api::TestService::V1b\x06proto3' ) - -_LOCKTIMESKIPPINGREQUEST = DESCRIPTOR.message_types_by_name["LockTimeSkippingRequest"] -_LOCKTIMESKIPPINGRESPONSE = DESCRIPTOR.message_types_by_name["LockTimeSkippingResponse"] -_UNLOCKTIMESKIPPINGREQUEST = DESCRIPTOR.message_types_by_name[ - "UnlockTimeSkippingRequest" -] -_UNLOCKTIMESKIPPINGRESPONSE = DESCRIPTOR.message_types_by_name[ - "UnlockTimeSkippingResponse" -] -_SLEEPUNTILREQUEST = DESCRIPTOR.message_types_by_name["SleepUntilRequest"] -_SLEEPREQUEST = DESCRIPTOR.message_types_by_name["SleepRequest"] -_SLEEPRESPONSE = DESCRIPTOR.message_types_by_name["SleepResponse"] -_GETCURRENTTIMERESPONSE = DESCRIPTOR.message_types_by_name["GetCurrentTimeResponse"] -LockTimeSkippingRequest = _reflection.GeneratedProtocolMessageType( - "LockTimeSkippingRequest", - (_message.Message,), - { - "DESCRIPTOR": _LOCKTIMESKIPPINGREQUEST, - "__module__": "temporalio.api.testservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.LockTimeSkippingRequest) - }, -) -_sym_db.RegisterMessage(LockTimeSkippingRequest) - -LockTimeSkippingResponse = _reflection.GeneratedProtocolMessageType( - "LockTimeSkippingResponse", - (_message.Message,), - { - "DESCRIPTOR": _LOCKTIMESKIPPINGRESPONSE, - "__module__": "temporalio.api.testservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.LockTimeSkippingResponse) - }, -) -_sym_db.RegisterMessage(LockTimeSkippingResponse) - -UnlockTimeSkippingRequest = _reflection.GeneratedProtocolMessageType( - "UnlockTimeSkippingRequest", - (_message.Message,), - { - "DESCRIPTOR": _UNLOCKTIMESKIPPINGREQUEST, - "__module__": "temporalio.api.testservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.UnlockTimeSkippingRequest) - }, -) -_sym_db.RegisterMessage(UnlockTimeSkippingRequest) - -UnlockTimeSkippingResponse = _reflection.GeneratedProtocolMessageType( - "UnlockTimeSkippingResponse", - (_message.Message,), - { - "DESCRIPTOR": _UNLOCKTIMESKIPPINGRESPONSE, - "__module__": "temporalio.api.testservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.UnlockTimeSkippingResponse) - }, -) -_sym_db.RegisterMessage(UnlockTimeSkippingResponse) - -SleepUntilRequest = _reflection.GeneratedProtocolMessageType( - "SleepUntilRequest", - (_message.Message,), - { - "DESCRIPTOR": _SLEEPUNTILREQUEST, - "__module__": "temporalio.api.testservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.SleepUntilRequest) - }, -) -_sym_db.RegisterMessage(SleepUntilRequest) - -SleepRequest = _reflection.GeneratedProtocolMessageType( - "SleepRequest", - (_message.Message,), - { - "DESCRIPTOR": _SLEEPREQUEST, - "__module__": "temporalio.api.testservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.SleepRequest) - }, -) -_sym_db.RegisterMessage(SleepRequest) - -SleepResponse = _reflection.GeneratedProtocolMessageType( - "SleepResponse", - (_message.Message,), - { - "DESCRIPTOR": _SLEEPRESPONSE, - "__module__": "temporalio.api.testservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.SleepResponse) - }, -) -_sym_db.RegisterMessage(SleepResponse) - -GetCurrentTimeResponse = _reflection.GeneratedProtocolMessageType( - "GetCurrentTimeResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETCURRENTTIMERESPONSE, - "__module__": "temporalio.api.testservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.GetCurrentTimeResponse) - }, -) -_sym_db.RegisterMessage(GetCurrentTimeResponse) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\036io.temporal.api.testservice.v1B\024RequestResponseProtoP\001Z-go.temporal.io/api/testservice/v1;testservice\252\002\035Temporalio.Api.TestService.V1\352\002 Temporalio::Api::TestService::V1" diff --git a/temporalio/api/testservice/v1/request_response_pb2.pyi b/temporalio/api/testservice/v1/request_response_pb2.pyi index e86bba03d..5d273be6d 100644 --- a/temporalio/api/testservice/v1/request_response_pb2.pyi +++ b/temporalio/api/testservice/v1/request_response_pb2.pyi @@ -25,20 +25,16 @@ THE SOFTWARE. """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.message import google.protobuf.timestamp_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class LockTimeSkippingRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -48,6 +44,7 @@ class LockTimeSkippingRequest(google.protobuf.message.Message): global___LockTimeSkippingRequest = LockTimeSkippingRequest +@typing.final class LockTimeSkippingResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -57,6 +54,7 @@ class LockTimeSkippingResponse(google.protobuf.message.Message): global___LockTimeSkippingResponse = LockTimeSkippingResponse +@typing.final class UnlockTimeSkippingRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -66,6 +64,7 @@ class UnlockTimeSkippingRequest(google.protobuf.message.Message): global___UnlockTimeSkippingRequest = UnlockTimeSkippingRequest +@typing.final class UnlockTimeSkippingResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -75,6 +74,7 @@ class UnlockTimeSkippingResponse(google.protobuf.message.Message): global___UnlockTimeSkippingResponse = UnlockTimeSkippingResponse +@typing.final class SleepUntilRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -87,14 +87,15 @@ class SleepUntilRequest(google.protobuf.message.Message): timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["timestamp", b"timestamp"] + self, field_name: typing.Literal["timestamp", b"timestamp"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["timestamp", b"timestamp"] + self, field_name: typing.Literal["timestamp", b"timestamp"] ) -> None: ... global___SleepUntilRequest = SleepUntilRequest +@typing.final class SleepRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -107,14 +108,15 @@ class SleepRequest(google.protobuf.message.Message): duration: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["duration", b"duration"] + self, field_name: typing.Literal["duration", b"duration"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["duration", b"duration"] + self, field_name: typing.Literal["duration", b"duration"] ) -> None: ... global___SleepRequest = SleepRequest +@typing.final class SleepResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -124,6 +126,7 @@ class SleepResponse(google.protobuf.message.Message): global___SleepResponse = SleepResponse +@typing.final class GetCurrentTimeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -136,10 +139,8 @@ class GetCurrentTimeResponse(google.protobuf.message.Message): time: google.protobuf.timestamp_pb2.Timestamp | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["time", b"time"] + self, field_name: typing.Literal["time", b"time"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["time", b"time"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["time", b"time"]) -> None: ... global___GetCurrentTimeResponse = GetCurrentTimeResponse diff --git a/temporalio/api/testservice/v1/request_response_pb2_grpc.pyi b/temporalio/api/testservice/v1/request_response_pb2_grpc.pyi index 4fb00c5be..8f7259624 100644 --- a/temporalio/api/testservice/v1/request_response_pb2_grpc.pyi +++ b/temporalio/api/testservice/v1/request_response_pb2_grpc.pyi @@ -23,3 +23,20 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + +import abc +import collections.abc +import typing + +import grpc +import grpc.aio + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... diff --git a/temporalio/api/testservice/v1/service_pb2.py b/temporalio/api/testservice/v1/service_pb2.py index 86a4260fd..7afbaf8af 100644 --- a/temporalio/api/testservice/v1/service_pb2.py +++ b/temporalio/api/testservice/v1/service_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -24,8 +23,8 @@ b'\n)temporal/api/testservice/v1/service.proto\x12\x1btemporal.api.testservice.v1\x1a\x32temporal/api/testservice/v1/request_response.proto\x1a\x1bgoogle/protobuf/empty.proto2\xc2\x05\n\x0bTestService\x12\x81\x01\n\x10LockTimeSkipping\x12\x34.temporal.api.testservice.v1.LockTimeSkippingRequest\x1a\x35.temporal.api.testservice.v1.LockTimeSkippingResponse"\x00\x12\x87\x01\n\x12UnlockTimeSkipping\x12\x36.temporal.api.testservice.v1.UnlockTimeSkippingRequest\x1a\x37.temporal.api.testservice.v1.UnlockTimeSkippingResponse"\x00\x12`\n\x05Sleep\x12).temporal.api.testservice.v1.SleepRequest\x1a*.temporal.api.testservice.v1.SleepResponse"\x00\x12j\n\nSleepUntil\x12..temporal.api.testservice.v1.SleepUntilRequest\x1a*.temporal.api.testservice.v1.SleepResponse"\x00\x12v\n\x1bUnlockTimeSkippingWithSleep\x12).temporal.api.testservice.v1.SleepRequest\x1a*.temporal.api.testservice.v1.SleepResponse"\x00\x12_\n\x0eGetCurrentTime\x12\x16.google.protobuf.Empty\x1a\x33.temporal.api.testservice.v1.GetCurrentTimeResponse"\x00\x42\xa2\x01\n\x1eio.temporal.api.testservice.v1B\x0cServiceProtoP\x01Z-go.temporal.io/api/testservice/v1;testservice\xaa\x02\x1dTemporalio.Api.TestService.V1\xea\x02 Temporalio::Api::TestService::V1b\x06proto3' ) - -_TESTSERVICE = DESCRIPTOR.services_by_name["TestService"] +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\036io.temporal.api.testservice.v1B\014ServiceProtoP\001Z-go.temporal.io/api/testservice/v1;testservice\252\002\035Temporalio.Api.TestService.V1\352\002 Temporalio::Api::TestService::V1" diff --git a/temporalio/api/testservice/v1/service_pb2_grpc.pyi b/temporalio/api/testservice/v1/service_pb2_grpc.pyi index f3162f003..e3b6ab1fd 100644 --- a/temporalio/api/testservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/testservice/v1/service_pb2_grpc.pyi @@ -25,12 +25,25 @@ THE SOFTWARE. """ import abc +import collections.abc +import typing import google.protobuf.empty_pb2 import grpc +import grpc.aio import temporalio.api.testservice.v1.request_response_pb2 +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... + class TestServiceStub: """TestService API defines an interface supported only by the Temporal Test Server. It provides functionality needed or supported for testing purposes only. @@ -38,7 +51,9 @@ class TestServiceStub: This is an EXPERIMENTAL API. """ - def __init__(self, channel: grpc.Channel) -> None: ... + def __init__( + self, channel: typing.Union[grpc.Channel, grpc.aio.Channel] + ) -> None: ... LockTimeSkipping: grpc.UnaryUnaryMultiCallable[ temporalio.api.testservice.v1.request_response_pb2.LockTimeSkippingRequest, temporalio.api.testservice.v1.request_response_pb2.LockTimeSkippingResponse, @@ -51,6 +66,7 @@ class TestServiceStub: LockTimeSkipping and UnlockTimeSkipping calls are counted. """ + UnlockTimeSkipping: grpc.UnaryUnaryMultiCallable[ temporalio.api.testservice.v1.request_response_pb2.UnlockTimeSkippingRequest, temporalio.api.testservice.v1.request_response_pb2.UnlockTimeSkippingResponse, @@ -63,6 +79,7 @@ class TestServiceStub: Time Locking Counter can't be negative, unbalanced calls to UnlockTimeSkipping will lead to rpc call failure """ + Sleep: grpc.UnaryUnaryMultiCallable[ temporalio.api.testservice.v1.request_response_pb2.SleepRequest, temporalio.api.testservice.v1.request_response_pb2.SleepResponse, @@ -70,6 +87,7 @@ class TestServiceStub: """This call returns only when the Test Server Time advances by the specified duration. This is an EXPERIMENTAL API. """ + SleepUntil: grpc.UnaryUnaryMultiCallable[ temporalio.api.testservice.v1.request_response_pb2.SleepUntilRequest, temporalio.api.testservice.v1.request_response_pb2.SleepResponse, @@ -78,6 +96,7 @@ class TestServiceStub: If the current Test Server Time is beyond the specified timestamp, returns immediately. This is an EXPERIMENTAL API. """ + UnlockTimeSkippingWithSleep: grpc.UnaryUnaryMultiCallable[ temporalio.api.testservice.v1.request_response_pb2.SleepRequest, temporalio.api.testservice.v1.request_response_pb2.SleepResponse, @@ -92,6 +111,7 @@ class TestServiceStub: - 1, it will lead to fast forwarding of the time by the duration specified in the request and quick return of this rpc call. - 0 will lead to rpc call failure same way as an unbalanced UnlockTimeSkipping. """ + GetCurrentTime: grpc.UnaryUnaryMultiCallable[ google.protobuf.empty_pb2.Empty, temporalio.api.testservice.v1.request_response_pb2.GetCurrentTimeResponse, @@ -101,6 +121,80 @@ class TestServiceStub: This time might not be equal to {@link System#currentTimeMillis()} due to time skipping. """ +class TestServiceAsyncStub: + """TestService API defines an interface supported only by the Temporal Test Server. + It provides functionality needed or supported for testing purposes only. + + This is an EXPERIMENTAL API. + """ + + LockTimeSkipping: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.testservice.v1.request_response_pb2.LockTimeSkippingRequest, + temporalio.api.testservice.v1.request_response_pb2.LockTimeSkippingResponse, + ] + """LockTimeSkipping increments Time Locking Counter by one. + + If Time Locking Counter is positive, time skipping is locked (disabled). + When time skipping is disabled, the time in test server is moving normally, with a real time pace. + Test Server is typically started with locked time skipping and Time Locking Counter = 1. + + LockTimeSkipping and UnlockTimeSkipping calls are counted. + """ + + UnlockTimeSkipping: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.testservice.v1.request_response_pb2.UnlockTimeSkippingRequest, + temporalio.api.testservice.v1.request_response_pb2.UnlockTimeSkippingResponse, + ] + """UnlockTimeSkipping decrements Time Locking Counter by one. + + If the counter reaches 0, it unlocks time skipping and fast forwards time. + LockTimeSkipping and UnlockTimeSkipping calls are counted. Calling UnlockTimeSkipping does not + guarantee that time is going to be fast forwarded as another lock can be holding it. + + Time Locking Counter can't be negative, unbalanced calls to UnlockTimeSkipping will lead to rpc call failure + """ + + Sleep: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.testservice.v1.request_response_pb2.SleepRequest, + temporalio.api.testservice.v1.request_response_pb2.SleepResponse, + ] + """This call returns only when the Test Server Time advances by the specified duration. + This is an EXPERIMENTAL API. + """ + + SleepUntil: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.testservice.v1.request_response_pb2.SleepUntilRequest, + temporalio.api.testservice.v1.request_response_pb2.SleepResponse, + ] + """This call returns only when the Test Server Time advances to the specified timestamp. + If the current Test Server Time is beyond the specified timestamp, returns immediately. + This is an EXPERIMENTAL API. + """ + + UnlockTimeSkippingWithSleep: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.testservice.v1.request_response_pb2.SleepRequest, + temporalio.api.testservice.v1.request_response_pb2.SleepResponse, + ] + """UnlockTimeSkippingWhileSleep decreases time locking counter by one and increases it back + once the Test Server Time advances by the duration specified in the request. + + This call returns only when the Test Server Time advances by the specified duration. + + If it is called when Time Locking Counter is + - more than 1 and no other unlocks are coming in, rpc call will block for the specified duration, time will not be fast forwarded. + - 1, it will lead to fast forwarding of the time by the duration specified in the request and quick return of this rpc call. + - 0 will lead to rpc call failure same way as an unbalanced UnlockTimeSkipping. + """ + + GetCurrentTime: grpc.aio.UnaryUnaryMultiCallable[ + google.protobuf.empty_pb2.Empty, + temporalio.api.testservice.v1.request_response_pb2.GetCurrentTimeResponse, + ] + """GetCurrentTime returns the current Temporal Test Server time + + This time might not be equal to {@link System#currentTimeMillis()} due to time skipping. + """ + class TestServiceServicer(metaclass=abc.ABCMeta): """TestService API defines an interface supported only by the Temporal Test Server. It provides functionality needed or supported for testing purposes only. @@ -112,8 +206,13 @@ class TestServiceServicer(metaclass=abc.ABCMeta): def LockTimeSkipping( self, request: temporalio.api.testservice.v1.request_response_pb2.LockTimeSkippingRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.testservice.v1.request_response_pb2.LockTimeSkippingResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.testservice.v1.request_response_pb2.LockTimeSkippingResponse, + collections.abc.Awaitable[ + temporalio.api.testservice.v1.request_response_pb2.LockTimeSkippingResponse + ], + ]: """LockTimeSkipping increments Time Locking Counter by one. If Time Locking Counter is positive, time skipping is locked (disabled). @@ -122,12 +221,18 @@ class TestServiceServicer(metaclass=abc.ABCMeta): LockTimeSkipping and UnlockTimeSkipping calls are counted. """ + @abc.abstractmethod def UnlockTimeSkipping( self, request: temporalio.api.testservice.v1.request_response_pb2.UnlockTimeSkippingRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.testservice.v1.request_response_pb2.UnlockTimeSkippingResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.testservice.v1.request_response_pb2.UnlockTimeSkippingResponse, + collections.abc.Awaitable[ + temporalio.api.testservice.v1.request_response_pb2.UnlockTimeSkippingResponse + ], + ]: """UnlockTimeSkipping decrements Time Locking Counter by one. If the counter reaches 0, it unlocks time skipping and fast forwards time. @@ -136,31 +241,49 @@ class TestServiceServicer(metaclass=abc.ABCMeta): Time Locking Counter can't be negative, unbalanced calls to UnlockTimeSkipping will lead to rpc call failure """ + @abc.abstractmethod def Sleep( self, request: temporalio.api.testservice.v1.request_response_pb2.SleepRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.testservice.v1.request_response_pb2.SleepResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.testservice.v1.request_response_pb2.SleepResponse, + collections.abc.Awaitable[ + temporalio.api.testservice.v1.request_response_pb2.SleepResponse + ], + ]: """This call returns only when the Test Server Time advances by the specified duration. This is an EXPERIMENTAL API. """ + @abc.abstractmethod def SleepUntil( self, request: temporalio.api.testservice.v1.request_response_pb2.SleepUntilRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.testservice.v1.request_response_pb2.SleepResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.testservice.v1.request_response_pb2.SleepResponse, + collections.abc.Awaitable[ + temporalio.api.testservice.v1.request_response_pb2.SleepResponse + ], + ]: """This call returns only when the Test Server Time advances to the specified timestamp. If the current Test Server Time is beyond the specified timestamp, returns immediately. This is an EXPERIMENTAL API. """ + @abc.abstractmethod def UnlockTimeSkippingWithSleep( self, request: temporalio.api.testservice.v1.request_response_pb2.SleepRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.testservice.v1.request_response_pb2.SleepResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.testservice.v1.request_response_pb2.SleepResponse, + collections.abc.Awaitable[ + temporalio.api.testservice.v1.request_response_pb2.SleepResponse + ], + ]: """UnlockTimeSkippingWhileSleep decreases time locking counter by one and increases it back once the Test Server Time advances by the duration specified in the request. @@ -171,17 +294,23 @@ class TestServiceServicer(metaclass=abc.ABCMeta): - 1, it will lead to fast forwarding of the time by the duration specified in the request and quick return of this rpc call. - 0 will lead to rpc call failure same way as an unbalanced UnlockTimeSkipping. """ + @abc.abstractmethod def GetCurrentTime( self, request: google.protobuf.empty_pb2.Empty, - context: grpc.ServicerContext, - ) -> temporalio.api.testservice.v1.request_response_pb2.GetCurrentTimeResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.testservice.v1.request_response_pb2.GetCurrentTimeResponse, + collections.abc.Awaitable[ + temporalio.api.testservice.v1.request_response_pb2.GetCurrentTimeResponse + ], + ]: """GetCurrentTime returns the current Temporal Test Server time This time might not be equal to {@link System#currentTimeMillis()} due to time skipping. """ def add_TestServiceServicer_to_server( - servicer: TestServiceServicer, server: grpc.Server + servicer: TestServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server] ) -> None: ... diff --git a/temporalio/api/update/v1/message_pb2.py b/temporalio/api/update/v1/message_pb2.py index d136516bc..bfed69a92 100644 --- a/temporalio/api/update/v1/message_pb2.py +++ b/temporalio/api/update/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -23,139 +22,35 @@ from temporalio.api.failure.v1 import ( message_pb2 as temporal_dot_api_dot_failure_dot_v1_dot_message__pb2, ) - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n$temporal/api/update/v1/message.proto\x12\x16temporal.api.update.v1\x1a$temporal/api/common/v1/message.proto\x1a"temporal/api/enums/v1/update.proto\x1a%temporal/api/failure/v1/message.proto"c\n\nWaitPolicy\x12U\n\x0flifecycle_stage\x18\x01 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"e\n\tUpdateRef\x12\x45\n\x12workflow_execution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x11\n\tupdate_id\x18\x02 \x01(\t"|\n\x07Outcome\x12\x33\n\x07success\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.PayloadsH\x00\x12\x33\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x07\n\x05value"+\n\x04Meta\x12\x11\n\tupdate_id\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t"u\n\x05Input\x12.\n\x06header\x18\x01 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\x04\x61rgs\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe4\x01\n\x07Request\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12,\n\x05input\x18\x02 \x01(\x0b\x32\x1d.temporal.api.update.v1.Input\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12>\n\x14\x63ompletion_callbacks\x18\x04 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12+\n\x05links\x18\x05 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"\xcc\x01\n\tRejection\x12#\n\x1brejected_request_message_id\x18\x01 \x01(\t\x12,\n$rejected_request_sequencing_event_id\x18\x02 \x01(\x03\x12\x39\n\x10rejected_request\x18\x03 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\x9a\x01\n\nAcceptance\x12#\n\x1b\x61\x63\x63\x65pted_request_message_id\x18\x01 \x01(\t\x12,\n$accepted_request_sequencing_event_id\x18\x02 \x01(\x03\x12\x39\n\x10\x61\x63\x63\x65pted_request\x18\x03 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"h\n\x08Response\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.OutcomeB\x89\x01\n\x19io.temporal.api.update.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/update/v1;update\xaa\x02\x18Temporalio.Api.Update.V1\xea\x02\x1bTemporalio::Api::Update::V1b\x06proto3' -) - - -_WAITPOLICY = DESCRIPTOR.message_types_by_name["WaitPolicy"] -_UPDATEREF = DESCRIPTOR.message_types_by_name["UpdateRef"] -_OUTCOME = DESCRIPTOR.message_types_by_name["Outcome"] -_META = DESCRIPTOR.message_types_by_name["Meta"] -_INPUT = DESCRIPTOR.message_types_by_name["Input"] -_REQUEST = DESCRIPTOR.message_types_by_name["Request"] -_REJECTION = DESCRIPTOR.message_types_by_name["Rejection"] -_ACCEPTANCE = DESCRIPTOR.message_types_by_name["Acceptance"] -_RESPONSE = DESCRIPTOR.message_types_by_name["Response"] -WaitPolicy = _reflection.GeneratedProtocolMessageType( - "WaitPolicy", - (_message.Message,), - { - "DESCRIPTOR": _WAITPOLICY, - "__module__": "temporalio.api.update.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.update.v1.WaitPolicy) - }, -) -_sym_db.RegisterMessage(WaitPolicy) - -UpdateRef = _reflection.GeneratedProtocolMessageType( - "UpdateRef", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEREF, - "__module__": "temporalio.api.update.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.update.v1.UpdateRef) - }, -) -_sym_db.RegisterMessage(UpdateRef) - -Outcome = _reflection.GeneratedProtocolMessageType( - "Outcome", - (_message.Message,), - { - "DESCRIPTOR": _OUTCOME, - "__module__": "temporalio.api.update.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Outcome) - }, -) -_sym_db.RegisterMessage(Outcome) - -Meta = _reflection.GeneratedProtocolMessageType( - "Meta", - (_message.Message,), - { - "DESCRIPTOR": _META, - "__module__": "temporalio.api.update.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Meta) - }, -) -_sym_db.RegisterMessage(Meta) - -Input = _reflection.GeneratedProtocolMessageType( - "Input", - (_message.Message,), - { - "DESCRIPTOR": _INPUT, - "__module__": "temporalio.api.update.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Input) - }, -) -_sym_db.RegisterMessage(Input) - -Request = _reflection.GeneratedProtocolMessageType( - "Request", - (_message.Message,), - { - "DESCRIPTOR": _REQUEST, - "__module__": "temporalio.api.update.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Request) - }, +from temporalio.api.nexus.v1 import ( + message_pb2 as temporal_dot_api_dot_nexus_dot_v1_dot_message__pb2, ) -_sym_db.RegisterMessage(Request) -Rejection = _reflection.GeneratedProtocolMessageType( - "Rejection", - (_message.Message,), - { - "DESCRIPTOR": _REJECTION, - "__module__": "temporalio.api.update.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Rejection) - }, -) -_sym_db.RegisterMessage(Rejection) - -Acceptance = _reflection.GeneratedProtocolMessageType( - "Acceptance", - (_message.Message,), - { - "DESCRIPTOR": _ACCEPTANCE, - "__module__": "temporalio.api.update.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Acceptance) - }, -) -_sym_db.RegisterMessage(Acceptance) - -Response = _reflection.GeneratedProtocolMessageType( - "Response", - (_message.Message,), - { - "DESCRIPTOR": _RESPONSE, - "__module__": "temporalio.api.update.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Response) - }, +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n$temporal/api/update/v1/message.proto\x12\x16temporal.api.update.v1\x1a$temporal/api/common/v1/message.proto\x1a"temporal/api/enums/v1/update.proto\x1a%temporal/api/failure/v1/message.proto\x1a#temporal/api/nexus/v1/message.proto"c\n\nWaitPolicy\x12U\n\x0flifecycle_stage\x18\x01 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"e\n\tUpdateRef\x12\x45\n\x12workflow_execution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x11\n\tupdate_id\x18\x02 \x01(\t"|\n\x07Outcome\x12\x33\n\x07success\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.PayloadsH\x00\x12\x33\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x07\n\x05value"+\n\x04Meta\x12\x11\n\tupdate_id\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t"u\n\x05Input\x12.\n\x06header\x18\x01 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\x04\x61rgs\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xcb\x02\n\x07Request\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12,\n\x05input\x18\x02 \x01(\x0b\x32\x1d.temporal.api.update.v1.Input\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12>\n\x14\x63ompletion_callbacks\x18\x04 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12+\n\x05links\x18\x05 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x65\n&propagated_nexus_serialization_context\x18\x06 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xcc\x01\n\tRejection\x12#\n\x1brejected_request_message_id\x18\x01 \x01(\t\x12,\n$rejected_request_sequencing_event_id\x18\x02 \x01(\x03\x12\x39\n\x10rejected_request\x18\x03 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\x9a\x01\n\nAcceptance\x12#\n\x1b\x61\x63\x63\x65pted_request_message_id\x18\x01 \x01(\t\x12,\n$accepted_request_sequencing_event_id\x18\x02 \x01(\x03\x12\x39\n\x10\x61\x63\x63\x65pted_request\x18\x03 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"h\n\x08Response\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.OutcomeB\x89\x01\n\x19io.temporal.api.update.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/update/v1;update\xaa\x02\x18Temporalio.Api.Update.V1\xea\x02\x1bTemporalio::Api::Update::V1b\x06proto3' ) -_sym_db.RegisterMessage(Response) +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\031io.temporal.api.update.v1B\014MessageProtoP\001Z#go.temporal.io/api/update/v1;update\252\002\030Temporalio.Api.Update.V1\352\002\033Temporalio::Api::Update::V1" - _WAITPOLICY._serialized_start = 177 - _WAITPOLICY._serialized_end = 276 - _UPDATEREF._serialized_start = 278 - _UPDATEREF._serialized_end = 379 - _OUTCOME._serialized_start = 381 - _OUTCOME._serialized_end = 505 - _META._serialized_start = 507 - _META._serialized_end = 550 - _INPUT._serialized_start = 552 - _INPUT._serialized_end = 669 - _REQUEST._serialized_start = 672 - _REQUEST._serialized_end = 900 - _REJECTION._serialized_start = 903 - _REJECTION._serialized_end = 1107 - _ACCEPTANCE._serialized_start = 1110 - _ACCEPTANCE._serialized_end = 1264 - _RESPONSE._serialized_start = 1266 - _RESPONSE._serialized_end = 1370 + _WAITPOLICY._serialized_start = 214 + _WAITPOLICY._serialized_end = 313 + _UPDATEREF._serialized_start = 315 + _UPDATEREF._serialized_end = 416 + _OUTCOME._serialized_start = 418 + _OUTCOME._serialized_end = 542 + _META._serialized_start = 544 + _META._serialized_end = 587 + _INPUT._serialized_start = 589 + _INPUT._serialized_end = 706 + _REQUEST._serialized_start = 709 + _REQUEST._serialized_end = 1040 + _REJECTION._serialized_start = 1043 + _REJECTION._serialized_end = 1247 + _ACCEPTANCE._serialized_start = 1250 + _ACCEPTANCE._serialized_end = 1404 + _RESPONSE._serialized_start = 1406 + _RESPONSE._serialized_end = 1510 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/update/v1/message_pb2.pyi b/temporalio/api/update/v1/message_pb2.pyi index de3c6682c..9ebc326e0 100644 --- a/temporalio/api/update/v1/message_pb2.pyi +++ b/temporalio/api/update/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers @@ -14,14 +14,11 @@ import google.protobuf.message import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.update_pb2 import temporalio.api.failure.v1.message_pb2 - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions +import temporalio.api.nexus.v1.message_pb2 DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WaitPolicy(google.protobuf.message.Message): """Specifies client's intent to wait for Update results.""" @@ -41,12 +38,12 @@ class WaitPolicy(google.protobuf.message.Message): lifecycle_stage: temporalio.api.enums.v1.update_pb2.UpdateWorkflowExecutionLifecycleStage.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["lifecycle_stage", b"lifecycle_stage"], + self, field_name: typing.Literal["lifecycle_stage", b"lifecycle_stage"] ) -> None: ... global___WaitPolicy = WaitPolicy +@typing.final class UpdateRef(google.protobuf.message.Message): """The data needed by a client to refer to a previously invoked Workflow Update.""" @@ -54,11 +51,11 @@ class UpdateRef(google.protobuf.message.Message): WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int UPDATE_ID_FIELD_NUMBER: builtins.int + update_id: builtins.str @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... - update_id: builtins.str def __init__( self, *, @@ -67,20 +64,18 @@ class UpdateRef(google.protobuf.message.Message): update_id: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_id", b"update_id", "workflow_execution", b"workflow_execution" ], ) -> None: ... global___UpdateRef = UpdateRef +@typing.final class Outcome(google.protobuf.message.Message): """The outcome of a Workflow Update: success or failure.""" @@ -100,22 +95,23 @@ class Outcome(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "success", b"success", "value", b"value" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "success", b"success", "value", b"value" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["value", b"value"] - ) -> typing_extensions.Literal["success", "failure"] | None: ... + self, oneof_group: typing.Literal["value", b"value"] + ) -> typing.Literal["success", "failure"] | None: ... global___Outcome = Outcome +@typing.final class Meta(google.protobuf.message.Message): """Metadata about a Workflow Update.""" @@ -135,29 +131,30 @@ class Meta(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "identity", b"identity", "update_id", b"update_id" - ], + field_name: typing.Literal["identity", b"identity", "update_id", b"update_id"], ) -> None: ... global___Meta = Meta +@typing.final class Input(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor HEADER_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int ARGS_FIELD_NUMBER: builtins.int + name: builtins.str + """The name of the Update handler to invoke on the target Workflow.""" @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: """Headers that are passed with the Update from the requesting entity. These can include things like auth or tracing tokens. """ - name: builtins.str - """The name of the Update handler to invoke on the target Workflow.""" + @property def args(self) -> temporalio.api.common.v1.message_pb2.Payloads: """The arguments to pass to the named Update handler.""" + def __init__( self, *, @@ -166,18 +163,18 @@ class Input(google.protobuf.message.Message): args: temporalio.api.common.v1.message_pb2.Payloads | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["args", b"args", "header", b"header"], + self, field_name: typing.Literal["args", b"args", "header", b"header"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "args", b"args", "header", b"header", "name", b"name" ], ) -> None: ... global___Input = Input +@typing.final class Request(google.protobuf.message.Message): """The client request that triggers a Workflow Update.""" @@ -188,12 +185,13 @@ class Request(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int LINKS_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int + request_id: builtins.str + """The request ID of the request.""" @property def meta(self) -> global___Meta: ... @property def input(self) -> global___Input: ... - request_id: builtins.str - """The request ID of the request.""" @property def completion_callbacks( self, @@ -201,6 +199,7 @@ class Request(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Callback ]: """Callbacks to be called by the server when this update reaches a terminal state.""" + @property def links( self, @@ -208,6 +207,13 @@ class Request(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to be associated with this update.""" + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this update.""" + def __init__( self, *, @@ -220,13 +226,23 @@ class Request(google.protobuf.message.Message): | None = ..., links: collections.abc.Iterable[temporalio.api.common.v1.message_pb2.Link] | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["input", b"input", "meta", b"meta"] + self, + field_name: typing.Literal[ + "input", + b"input", + "meta", + b"meta", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "completion_callbacks", b"completion_callbacks", "input", @@ -235,6 +251,8 @@ class Request(google.protobuf.message.Message): b"links", "meta", b"meta", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "request_id", b"request_id", ], @@ -242,6 +260,7 @@ class Request(google.protobuf.message.Message): global___Request = Request +@typing.final class Rejection(google.protobuf.message.Message): """An Update protocol message indicating that a Workflow Update has been rejected.""" @@ -267,13 +286,13 @@ class Rejection(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "rejected_request", b"rejected_request" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "rejected_request", @@ -287,6 +306,7 @@ class Rejection(google.protobuf.message.Message): global___Rejection = Rejection +@typing.final class Acceptance(google.protobuf.message.Message): """An Update protocol message indicating that a Workflow Update has been accepted (i.e. passed the worker-side validation phase). @@ -309,12 +329,11 @@ class Acceptance(google.protobuf.message.Message): accepted_request: global___Request | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["accepted_request", b"accepted_request"], + self, field_name: typing.Literal["accepted_request", b"accepted_request"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "accepted_request", b"accepted_request", "accepted_request_message_id", @@ -326,6 +345,7 @@ class Acceptance(google.protobuf.message.Message): global___Acceptance = Acceptance +@typing.final class Response(google.protobuf.message.Message): """An Update protocol message indicating that a Workflow Update has completed with the contained outcome. @@ -346,12 +366,10 @@ class Response(google.protobuf.message.Message): outcome: global___Outcome | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["meta", b"meta", "outcome", b"outcome"], + self, field_name: typing.Literal["meta", b"meta", "outcome", b"outcome"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["meta", b"meta", "outcome", b"outcome"], + self, field_name: typing.Literal["meta", b"meta", "outcome", b"outcome"] ) -> None: ... global___Response = Response diff --git a/temporalio/api/version/v1/message_pb2.py b/temporalio/api/version/v1/message_pb2.py index e17a3ed9f..2351dc8ea 100644 --- a/temporalio/api/version/v1/message_pb2.py +++ b/temporalio/api/version/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -24,43 +23,8 @@ b'\n%temporal/api/version/v1/message.proto\x12\x17temporal.api.version.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a"temporal/api/enums/v1/common.proto"_\n\x0bReleaseInfo\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x30\n\x0crelease_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05notes\x18\x03 \x01(\t"K\n\x05\x41lert\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x31\n\x08severity\x18\x02 \x01(\x0e\x32\x1f.temporal.api.enums.v1.Severity"\xfb\x01\n\x0bVersionInfo\x12\x35\n\x07\x63urrent\x18\x01 \x01(\x0b\x32$.temporal.api.version.v1.ReleaseInfo\x12\x39\n\x0brecommended\x18\x02 \x01(\x0b\x32$.temporal.api.version.v1.ReleaseInfo\x12\x14\n\x0cinstructions\x18\x03 \x01(\t\x12.\n\x06\x61lerts\x18\x04 \x03(\x0b\x32\x1e.temporal.api.version.v1.Alert\x12\x34\n\x10last_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x8e\x01\n\x1aio.temporal.api.version.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/version/v1;version\xaa\x02\x19Temporalio.Api.Version.V1\xea\x02\x1cTemporalio::Api::Version::V1b\x06proto3' ) - -_RELEASEINFO = DESCRIPTOR.message_types_by_name["ReleaseInfo"] -_ALERT = DESCRIPTOR.message_types_by_name["Alert"] -_VERSIONINFO = DESCRIPTOR.message_types_by_name["VersionInfo"] -ReleaseInfo = _reflection.GeneratedProtocolMessageType( - "ReleaseInfo", - (_message.Message,), - { - "DESCRIPTOR": _RELEASEINFO, - "__module__": "temporalio.api.version.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.version.v1.ReleaseInfo) - }, -) -_sym_db.RegisterMessage(ReleaseInfo) - -Alert = _reflection.GeneratedProtocolMessageType( - "Alert", - (_message.Message,), - { - "DESCRIPTOR": _ALERT, - "__module__": "temporalio.api.version.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.version.v1.Alert) - }, -) -_sym_db.RegisterMessage(Alert) - -VersionInfo = _reflection.GeneratedProtocolMessageType( - "VersionInfo", - (_message.Message,), - { - "DESCRIPTOR": _VERSIONINFO, - "__module__": "temporalio.api.version.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.version.v1.VersionInfo) - }, -) -_sym_db.RegisterMessage(VersionInfo) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.version.v1B\014MessageProtoP\001Z%go.temporal.io/api/version/v1;version\252\002\031Temporalio.Api.Version.V1\352\002\034Temporalio::Api::Version::V1" diff --git a/temporalio/api/version/v1/message_pb2.pyi b/temporalio/api/version/v1/message_pb2.pyi index dc481aeda..777ef69a2 100644 --- a/temporalio/api/version/v1/message_pb2.pyi +++ b/temporalio/api/version/v1/message_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers @@ -14,13 +14,9 @@ import google.protobuf.timestamp_pb2 import temporalio.api.enums.v1.common_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ReleaseInfo(google.protobuf.message.Message): """ReleaseInfo contains information about specific version of temporal.""" @@ -30,9 +26,9 @@ class ReleaseInfo(google.protobuf.message.Message): RELEASE_TIME_FIELD_NUMBER: builtins.int NOTES_FIELD_NUMBER: builtins.int version: builtins.str + notes: builtins.str @property def release_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - notes: builtins.str def __init__( self, *, @@ -41,17 +37,18 @@ class ReleaseInfo(google.protobuf.message.Message): notes: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["release_time", b"release_time"] + self, field_name: typing.Literal["release_time", b"release_time"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "notes", b"notes", "release_time", b"release_time", "version", b"version" ], ) -> None: ... global___ReleaseInfo = ReleaseInfo +@typing.final class Alert(google.protobuf.message.Message): """Alert contains notification and severity.""" @@ -68,14 +65,12 @@ class Alert(google.protobuf.message.Message): severity: temporalio.api.enums.v1.common_pb2.Severity.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "message", b"message", "severity", b"severity" - ], + self, field_name: typing.Literal["message", b"message", "severity", b"severity"] ) -> None: ... global___Alert = Alert +@typing.final class VersionInfo(google.protobuf.message.Message): """VersionInfo contains details about current and recommended release versions as well as alerts and upgrade instructions.""" @@ -86,11 +81,11 @@ class VersionInfo(google.protobuf.message.Message): INSTRUCTIONS_FIELD_NUMBER: builtins.int ALERTS_FIELD_NUMBER: builtins.int LAST_UPDATE_TIME_FIELD_NUMBER: builtins.int + instructions: builtins.str @property def current(self) -> global___ReleaseInfo: ... @property def recommended(self) -> global___ReleaseInfo: ... - instructions: builtins.str @property def alerts( self, @@ -110,7 +105,7 @@ class VersionInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current", b"current", "last_update_time", @@ -121,7 +116,7 @@ class VersionInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "alerts", b"alerts", "current", diff --git a/temporalio/api/worker/v1/message_pb2.py b/temporalio/api/worker/v1/message_pb2.py index 78b58817a..488f29f3c 100644 --- a/temporalio/api/worker/v1/message_pb2.py +++ b/temporalio/api/worker/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -25,298 +24,60 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n$temporal/api/worker/v1/message.proto\x12\x16temporal.api.worker.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(temporal/api/deployment/v1/message.proto\x1a"temporal/api/enums/v1/common.proto"\x82\x01\n\x10WorkerPollerInfo\x12\x17\n\x0f\x63urrent_pollers\x18\x01 \x01(\x05\x12=\n\x19last_successful_poll_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eis_autoscaling\x18\x03 \x01(\x08"\xf1\x01\n\x0fWorkerSlotsInfo\x12\x1f\n\x17\x63urrent_available_slots\x18\x01 \x01(\x05\x12\x1a\n\x12\x63urrent_used_slots\x18\x02 \x01(\x05\x12\x1a\n\x12slot_supplier_kind\x18\x03 \x01(\t\x12\x1d\n\x15total_processed_tasks\x18\x04 \x01(\x05\x12\x1a\n\x12total_failed_tasks\x18\x05 \x01(\x05\x12%\n\x1dlast_interval_processed_tasks\x18\x06 \x01(\x05\x12#\n\x1blast_interval_failure_tasks\x18\x07 \x01(\x05"\x94\x01\n\x0eWorkerHostInfo\x12\x11\n\thost_name\x18\x01 \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\x05 \x01(\t\x12\x12\n\nprocess_id\x18\x02 \x01(\t\x12\x1e\n\x16\x63urrent_host_cpu_usage\x18\x03 \x01(\x02\x12\x1e\n\x16\x63urrent_host_mem_usage\x18\x04 \x01(\x02"\xc9\n\n\x0fWorkerHeartbeat\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x39\n\thost_info\x18\x03 \x01(\x0b\x32&.temporal.api.worker.v1.WorkerHostInfo\x12\x12\n\ntask_queue\x18\x04 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x06 \x01(\t\x12\x13\n\x0bsdk_version\x18\x07 \x01(\t\x12\x33\n\x06status\x18\x08 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0eheartbeat_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x1c\x65lapsed_since_last_heartbeat\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12I\n\x18workflow_task_slots_info\x18\x0c \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12I\n\x18\x61\x63tivity_task_slots_info\x18\r \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x15nexus_task_slots_info\x18\x0e \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12J\n\x19local_activity_slots_info\x18\x0f \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x14workflow_poller_info\x18\x10 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12M\n\x1bworkflow_sticky_poller_info\x18\x11 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x46\n\x14\x61\x63tivity_poller_info\x18\x12 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x43\n\x11nexus_poller_info\x18\x13 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x1e\n\x16total_sticky_cache_hit\x18\x14 \x01(\x05\x12\x1f\n\x17total_sticky_cache_miss\x18\x15 \x01(\x05\x12!\n\x19\x63urrent_sticky_cache_size\x18\x16 \x01(\x05\x12\x33\n\x07plugins\x18\x17 \x03(\x0b\x32".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\x18 \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo\x12<\n\x0b\x65nvironment\x18\x19 \x01(\x0b\x32\'.temporal.api.worker.v1.EnvironmentInfo"O\n\nWorkerInfo\x12\x41\n\x10worker_heartbeat\x18\x01 \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat"\xec\x03\n\x0eWorkerListInfo\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x12\n\ntask_queue\x18\x03 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x05 \x01(\t\x12\x13\n\x0bsdk_version\x18\x06 \x01(\t\x12\x33\n\x06status\x18\x07 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\thost_name\x18\t \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\n \x01(\t\x12\x12\n\nprocess_id\x18\x0b \x01(\t\x12\x33\n\x07plugins\x18\x0c \x03(\x0b\x32".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\r \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo"+\n\nPluginInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t"!\n\x11StorageDriverInfo\x12\x0c\n\x04type\x18\x01 \x01(\t"\xa7\x11\n\x0f\x45nvironmentInfo\x12\x41\n\x08runtimes\x18\x01 \x03(\x0b\x32/.temporal.api.worker.v1.EnvironmentInfo.Runtime\x12X\n\x14hosting_environments\x18\x02 \x03(\x0b\x32:.temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment\x12\x42\n\x08platform\x18\x03 \x01(\x0b\x32\x30.temporal.api.worker.v1.EnvironmentInfo.Platform\x1a\x94\x03\n\x07Runtime\x12I\n\x04type\x18\x01 \x01(\x0e\x32;.temporal.api.worker.v1.EnvironmentInfo.Runtime.RuntimeType\x12\x0f\n\x07version\x18\x02 \x01(\t"\xac\x02\n\x0bRuntimeType\x12\x1c\n\x18RUNTIME_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10RUNTIME_TYPE_JVM\x10\x01\x12\x18\n\x14RUNTIME_TYPE_CPYTHON\x10\x02\x12\x15\n\x11RUNTIME_TYPE_NODE\x10\x03\x12\x14\n\x10RUNTIME_TYPE_BUN\x10\x04\x12\x16\n\x12RUNTIME_TYPE_CRUBY\x10\x05\x12\x13\n\x0fRUNTIME_TYPE_GO\x10\x06\x12!\n\x1dRUNTIME_TYPE_DOTNET_FRAMEWORK\x10\x07\x12\x1c\n\x18RUNTIME_TYPE_DOTNET_CORE\x10\x08\x12\x17\n\x13RUNTIME_TYPE_NATIVE\x10\t\x12\x1b\n\x17RUNTIME_TYPE_ROADRUNNER\x10\n\x1a\xd1\x04\n\x12HostingEnvironment\x12_\n\x04type\x18\x01 \x01(\x0e\x32Q.temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment.HostingEnvironmentType\x12\x0f\n\x07version\x18\x02 \x01(\t"\xc8\x03\n\x16HostingEnvironmentType\x12(\n$HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED\x10\x00\x12#\n\x1fHOSTING_ENVIRONMENT_TYPE_DOCKER\x10\x01\x12 \n\x1cHOSTING_ENVIRONMENT_TYPE_K8S\x10\x02\x12\'\n#HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA\x10\x03\x12$\n HOSTING_ENVIRONMENT_TYPE_AWS_ECS\x10\x04\x12-\n)HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN\x10\x06\x12.\n*HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE\x10\x07\x12.\n*HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE\x10\x08\x12,\n(HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS\x10\t\x12\x31\n-HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS\x10\n\x1a\xf1\x01\n\x08Platform\x12\x46\n\x05linux\x18\x01 \x01(\x0b\x32\x35.temporal.api.worker.v1.EnvironmentInfo.LinuxPlatformH\x00\x12\x46\n\x05macos\x18\x02 \x01(\x0b\x32\x35.temporal.api.worker.v1.EnvironmentInfo.MacOSPlatformH\x00\x12J\n\x07windows\x18\x03 \x01(\x0b\x32\x37.temporal.api.worker.v1.EnvironmentInfo.WindowsPlatformH\x00\x42\t\n\x07variant\x1a\xf3\x01\n\rLinuxPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x12H\n\x04libc\x18\x03 \x01(\x0e\x32:.temporal.api.worker.v1.EnvironmentInfo.LinuxPlatform.Libc";\n\x04Libc\x12\x14\n\x10LIBC_UNSPECIFIED\x10\x00\x12\x0e\n\nLIBC_GLIBC\x10\x01\x12\r\n\tLIBC_MUSL\x10\x02\x1al\n\rMacOSPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x1a\x91\x02\n\x0fWindowsPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x12H\n\x03\x63rt\x18\x03 \x01(\x0e\x32;.temporal.api.worker.v1.EnvironmentInfo.WindowsPlatform.Crt"W\n\x03\x43rt\x12\x13\n\x0f\x43RT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RT_UCRT\x10\x01\x12\x0e\n\nCRT_MSVCRT\x10\x02\x12\r\n\tCRT_MINGW\x10\x03\x12\x0e\n\nCRT_CYGWIN\x10\x04"\\\n\x0c\x41rchitecture\x12\x1c\n\x18\x41RCHITECTURE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41RCHITECTURE_AMD64\x10\x01\x12\x16\n\x12\x41RCHITECTURE_ARM64\x10\x02"a\n\rWorkerCommand\x12H\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32-.temporal.api.worker.v1.CancelActivityCommandH\x00\x42\x06\n\x04type"+\n\x15\x43\x61ncelActivityCommand\x12\x12\n\ntask_token\x18\x01 \x01(\x0c"f\n\x13WorkerCommandResult\x12G\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32,.temporal.api.worker.v1.CancelActivityResultH\x00\x42\x06\n\x04type"\x16\n\x14\x43\x61ncelActivityResultB\x89\x01\n\x19io.temporal.api.worker.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/worker/v1;worker\xaa\x02\x18Temporalio.Api.Worker.V1\xea\x02\x1bTemporalio::Api::Worker::V1b\x06proto3' + b'\n$temporal/api/worker/v1/message.proto\x12\x16temporal.api.worker.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(temporal/api/deployment/v1/message.proto\x1a"temporal/api/enums/v1/common.proto"\x9a\x01\n\x10WorkerPollerInfo\x12\x17\n\x0f\x63urrent_pollers\x18\x01 \x01(\x05\x12=\n\x19last_successful_poll_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eis_autoscaling\x18\x03 \x01(\x08\x12\x16\n\x0etarget_pollers\x18\x04 \x01(\x05"\xf1\x01\n\x0fWorkerSlotsInfo\x12\x1f\n\x17\x63urrent_available_slots\x18\x01 \x01(\x05\x12\x1a\n\x12\x63urrent_used_slots\x18\x02 \x01(\x05\x12\x1a\n\x12slot_supplier_kind\x18\x03 \x01(\t\x12\x1d\n\x15total_processed_tasks\x18\x04 \x01(\x05\x12\x1a\n\x12total_failed_tasks\x18\x05 \x01(\x05\x12%\n\x1dlast_interval_processed_tasks\x18\x06 \x01(\x05\x12#\n\x1blast_interval_failure_tasks\x18\x07 \x01(\x05"\x94\x01\n\x0eWorkerHostInfo\x12\x11\n\thost_name\x18\x01 \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\x05 \x01(\t\x12\x12\n\nprocess_id\x18\x02 \x01(\t\x12\x1e\n\x16\x63urrent_host_cpu_usage\x18\x03 \x01(\x02\x12\x1e\n\x16\x63urrent_host_mem_usage\x18\x04 \x01(\x02"\xc9\n\n\x0fWorkerHeartbeat\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x39\n\thost_info\x18\x03 \x01(\x0b\x32&.temporal.api.worker.v1.WorkerHostInfo\x12\x12\n\ntask_queue\x18\x04 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x06 \x01(\t\x12\x13\n\x0bsdk_version\x18\x07 \x01(\t\x12\x33\n\x06status\x18\x08 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0eheartbeat_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x1c\x65lapsed_since_last_heartbeat\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12I\n\x18workflow_task_slots_info\x18\x0c \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12I\n\x18\x61\x63tivity_task_slots_info\x18\r \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x15nexus_task_slots_info\x18\x0e \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12J\n\x19local_activity_slots_info\x18\x0f \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x14workflow_poller_info\x18\x10 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12M\n\x1bworkflow_sticky_poller_info\x18\x11 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x46\n\x14\x61\x63tivity_poller_info\x18\x12 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x43\n\x11nexus_poller_info\x18\x13 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x1e\n\x16total_sticky_cache_hit\x18\x14 \x01(\x05\x12\x1f\n\x17total_sticky_cache_miss\x18\x15 \x01(\x05\x12!\n\x19\x63urrent_sticky_cache_size\x18\x16 \x01(\x05\x12\x33\n\x07plugins\x18\x17 \x03(\x0b\x32".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\x18 \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo\x12<\n\x0b\x65nvironment\x18\x19 \x01(\x0b\x32\'.temporal.api.worker.v1.EnvironmentInfo"O\n\nWorkerInfo\x12\x41\n\x10worker_heartbeat\x18\x01 \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat"\xec\x03\n\x0eWorkerListInfo\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x12\n\ntask_queue\x18\x03 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x05 \x01(\t\x12\x13\n\x0bsdk_version\x18\x06 \x01(\t\x12\x33\n\x06status\x18\x07 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\thost_name\x18\t \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\n \x01(\t\x12\x12\n\nprocess_id\x18\x0b \x01(\t\x12\x33\n\x07plugins\x18\x0c \x03(\x0b\x32".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\r \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo"+\n\nPluginInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t"!\n\x11StorageDriverInfo\x12\x0c\n\x04type\x18\x01 \x01(\t"\xdc\x11\n\x0f\x45nvironmentInfo\x12\x41\n\x08runtimes\x18\x01 \x03(\x0b\x32/.temporal.api.worker.v1.EnvironmentInfo.Runtime\x12X\n\x14hosting_environments\x18\x02 \x03(\x0b\x32:.temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment\x12\x42\n\x08platform\x18\x03 \x01(\x0b\x32\x30.temporal.api.worker.v1.EnvironmentInfo.Platform\x1a\xc9\x03\n\x07Runtime\x12I\n\x04type\x18\x01 \x01(\x0e\x32;.temporal.api.worker.v1.EnvironmentInfo.Runtime.RuntimeType\x12\x0f\n\x07version\x18\x02 \x01(\t"\xe1\x02\n\x0bRuntimeType\x12\x1c\n\x18RUNTIME_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10RUNTIME_TYPE_JVM\x10\x01\x12\x18\n\x14RUNTIME_TYPE_CPYTHON\x10\x02\x12\x15\n\x11RUNTIME_TYPE_NODE\x10\x03\x12\x14\n\x10RUNTIME_TYPE_BUN\x10\x04\x12\x16\n\x12RUNTIME_TYPE_CRUBY\x10\x05\x12\x13\n\x0fRUNTIME_TYPE_GO\x10\x06\x12!\n\x1dRUNTIME_TYPE_DOTNET_FRAMEWORK\x10\x07\x12\x1c\n\x18RUNTIME_TYPE_DOTNET_CORE\x10\x08\x12\x17\n\x13RUNTIME_TYPE_NATIVE\x10\t\x12\x1b\n\x17RUNTIME_TYPE_ROADRUNNER\x10\n\x12\x1a\n\x16RUNTIME_TYPE_GRAAL_AOT\x10\x0b\x12\x17\n\x13RUNTIME_TYPE_KOTLIN\x10\x0c\x1a\xd1\x04\n\x12HostingEnvironment\x12_\n\x04type\x18\x01 \x01(\x0e\x32Q.temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment.HostingEnvironmentType\x12\x0f\n\x07version\x18\x02 \x01(\t"\xc8\x03\n\x16HostingEnvironmentType\x12(\n$HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED\x10\x00\x12#\n\x1fHOSTING_ENVIRONMENT_TYPE_DOCKER\x10\x01\x12 \n\x1cHOSTING_ENVIRONMENT_TYPE_K8S\x10\x02\x12\'\n#HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA\x10\x03\x12$\n HOSTING_ENVIRONMENT_TYPE_AWS_ECS\x10\x04\x12-\n)HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN\x10\x06\x12.\n*HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE\x10\x07\x12.\n*HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE\x10\x08\x12,\n(HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS\x10\t\x12\x31\n-HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS\x10\n\x1a\xf1\x01\n\x08Platform\x12\x46\n\x05linux\x18\x01 \x01(\x0b\x32\x35.temporal.api.worker.v1.EnvironmentInfo.LinuxPlatformH\x00\x12\x46\n\x05macos\x18\x02 \x01(\x0b\x32\x35.temporal.api.worker.v1.EnvironmentInfo.MacOSPlatformH\x00\x12J\n\x07windows\x18\x03 \x01(\x0b\x32\x37.temporal.api.worker.v1.EnvironmentInfo.WindowsPlatformH\x00\x42\t\n\x07variant\x1a\xf3\x01\n\rLinuxPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x12H\n\x04libc\x18\x03 \x01(\x0e\x32:.temporal.api.worker.v1.EnvironmentInfo.LinuxPlatform.Libc";\n\x04Libc\x12\x14\n\x10LIBC_UNSPECIFIED\x10\x00\x12\x0e\n\nLIBC_GLIBC\x10\x01\x12\r\n\tLIBC_MUSL\x10\x02\x1al\n\rMacOSPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x1a\x91\x02\n\x0fWindowsPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x12H\n\x03\x63rt\x18\x03 \x01(\x0e\x32;.temporal.api.worker.v1.EnvironmentInfo.WindowsPlatform.Crt"W\n\x03\x43rt\x12\x13\n\x0f\x43RT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RT_UCRT\x10\x01\x12\x0e\n\nCRT_MSVCRT\x10\x02\x12\r\n\tCRT_MINGW\x10\x03\x12\x0e\n\nCRT_CYGWIN\x10\x04"\\\n\x0c\x41rchitecture\x12\x1c\n\x18\x41RCHITECTURE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41RCHITECTURE_AMD64\x10\x01\x12\x16\n\x12\x41RCHITECTURE_ARM64\x10\x02"a\n\rWorkerCommand\x12H\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32-.temporal.api.worker.v1.CancelActivityCommandH\x00\x42\x06\n\x04type"+\n\x15\x43\x61ncelActivityCommand\x12\x12\n\ntask_token\x18\x01 \x01(\x0c"f\n\x13WorkerCommandResult\x12G\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32,.temporal.api.worker.v1.CancelActivityResultH\x00\x42\x06\n\x04type"\x16\n\x14\x43\x61ncelActivityResultB\x89\x01\n\x19io.temporal.api.worker.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/worker/v1;worker\xaa\x02\x18Temporalio.Api.Worker.V1\xea\x02\x1bTemporalio::Api::Worker::V1b\x06proto3' ) - -_WORKERPOLLERINFO = DESCRIPTOR.message_types_by_name["WorkerPollerInfo"] -_WORKERSLOTSINFO = DESCRIPTOR.message_types_by_name["WorkerSlotsInfo"] -_WORKERHOSTINFO = DESCRIPTOR.message_types_by_name["WorkerHostInfo"] -_WORKERHEARTBEAT = DESCRIPTOR.message_types_by_name["WorkerHeartbeat"] -_WORKERINFO = DESCRIPTOR.message_types_by_name["WorkerInfo"] -_WORKERLISTINFO = DESCRIPTOR.message_types_by_name["WorkerListInfo"] -_PLUGININFO = DESCRIPTOR.message_types_by_name["PluginInfo"] -_STORAGEDRIVERINFO = DESCRIPTOR.message_types_by_name["StorageDriverInfo"] -_ENVIRONMENTINFO = DESCRIPTOR.message_types_by_name["EnvironmentInfo"] -_ENVIRONMENTINFO_RUNTIME = _ENVIRONMENTINFO.nested_types_by_name["Runtime"] -_ENVIRONMENTINFO_HOSTINGENVIRONMENT = _ENVIRONMENTINFO.nested_types_by_name[ - "HostingEnvironment" -] -_ENVIRONMENTINFO_PLATFORM = _ENVIRONMENTINFO.nested_types_by_name["Platform"] -_ENVIRONMENTINFO_LINUXPLATFORM = _ENVIRONMENTINFO.nested_types_by_name["LinuxPlatform"] -_ENVIRONMENTINFO_MACOSPLATFORM = _ENVIRONMENTINFO.nested_types_by_name["MacOSPlatform"] -_ENVIRONMENTINFO_WINDOWSPLATFORM = _ENVIRONMENTINFO.nested_types_by_name[ - "WindowsPlatform" -] -_WORKERCOMMAND = DESCRIPTOR.message_types_by_name["WorkerCommand"] -_CANCELACTIVITYCOMMAND = DESCRIPTOR.message_types_by_name["CancelActivityCommand"] -_WORKERCOMMANDRESULT = DESCRIPTOR.message_types_by_name["WorkerCommandResult"] -_CANCELACTIVITYRESULT = DESCRIPTOR.message_types_by_name["CancelActivityResult"] -_ENVIRONMENTINFO_RUNTIME_RUNTIMETYPE = _ENVIRONMENTINFO_RUNTIME.enum_types_by_name[ - "RuntimeType" -] -_ENVIRONMENTINFO_HOSTINGENVIRONMENT_HOSTINGENVIRONMENTTYPE = ( - _ENVIRONMENTINFO_HOSTINGENVIRONMENT.enum_types_by_name["HostingEnvironmentType"] -) -_ENVIRONMENTINFO_LINUXPLATFORM_LIBC = _ENVIRONMENTINFO_LINUXPLATFORM.enum_types_by_name[ - "Libc" -] -_ENVIRONMENTINFO_WINDOWSPLATFORM_CRT = ( - _ENVIRONMENTINFO_WINDOWSPLATFORM.enum_types_by_name["Crt"] -) -_ENVIRONMENTINFO_ARCHITECTURE = _ENVIRONMENTINFO.enum_types_by_name["Architecture"] -WorkerPollerInfo = _reflection.GeneratedProtocolMessageType( - "WorkerPollerInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKERPOLLERINFO, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.WorkerPollerInfo) - }, -) -_sym_db.RegisterMessage(WorkerPollerInfo) - -WorkerSlotsInfo = _reflection.GeneratedProtocolMessageType( - "WorkerSlotsInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKERSLOTSINFO, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.WorkerSlotsInfo) - }, -) -_sym_db.RegisterMessage(WorkerSlotsInfo) - -WorkerHostInfo = _reflection.GeneratedProtocolMessageType( - "WorkerHostInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKERHOSTINFO, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.WorkerHostInfo) - }, -) -_sym_db.RegisterMessage(WorkerHostInfo) - -WorkerHeartbeat = _reflection.GeneratedProtocolMessageType( - "WorkerHeartbeat", - (_message.Message,), - { - "DESCRIPTOR": _WORKERHEARTBEAT, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.WorkerHeartbeat) - }, -) -_sym_db.RegisterMessage(WorkerHeartbeat) - -WorkerInfo = _reflection.GeneratedProtocolMessageType( - "WorkerInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKERINFO, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.WorkerInfo) - }, -) -_sym_db.RegisterMessage(WorkerInfo) - -WorkerListInfo = _reflection.GeneratedProtocolMessageType( - "WorkerListInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKERLISTINFO, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.WorkerListInfo) - }, -) -_sym_db.RegisterMessage(WorkerListInfo) - -PluginInfo = _reflection.GeneratedProtocolMessageType( - "PluginInfo", - (_message.Message,), - { - "DESCRIPTOR": _PLUGININFO, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.PluginInfo) - }, -) -_sym_db.RegisterMessage(PluginInfo) - -StorageDriverInfo = _reflection.GeneratedProtocolMessageType( - "StorageDriverInfo", - (_message.Message,), - { - "DESCRIPTOR": _STORAGEDRIVERINFO, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.StorageDriverInfo) - }, -) -_sym_db.RegisterMessage(StorageDriverInfo) - -EnvironmentInfo = _reflection.GeneratedProtocolMessageType( - "EnvironmentInfo", - (_message.Message,), - { - "Runtime": _reflection.GeneratedProtocolMessageType( - "Runtime", - (_message.Message,), - { - "DESCRIPTOR": _ENVIRONMENTINFO_RUNTIME, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.EnvironmentInfo.Runtime) - }, - ), - "HostingEnvironment": _reflection.GeneratedProtocolMessageType( - "HostingEnvironment", - (_message.Message,), - { - "DESCRIPTOR": _ENVIRONMENTINFO_HOSTINGENVIRONMENT, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment) - }, - ), - "Platform": _reflection.GeneratedProtocolMessageType( - "Platform", - (_message.Message,), - { - "DESCRIPTOR": _ENVIRONMENTINFO_PLATFORM, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.EnvironmentInfo.Platform) - }, - ), - "LinuxPlatform": _reflection.GeneratedProtocolMessageType( - "LinuxPlatform", - (_message.Message,), - { - "DESCRIPTOR": _ENVIRONMENTINFO_LINUXPLATFORM, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.EnvironmentInfo.LinuxPlatform) - }, - ), - "MacOSPlatform": _reflection.GeneratedProtocolMessageType( - "MacOSPlatform", - (_message.Message,), - { - "DESCRIPTOR": _ENVIRONMENTINFO_MACOSPLATFORM, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.EnvironmentInfo.MacOSPlatform) - }, - ), - "WindowsPlatform": _reflection.GeneratedProtocolMessageType( - "WindowsPlatform", - (_message.Message,), - { - "DESCRIPTOR": _ENVIRONMENTINFO_WINDOWSPLATFORM, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.EnvironmentInfo.WindowsPlatform) - }, - ), - "DESCRIPTOR": _ENVIRONMENTINFO, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.EnvironmentInfo) - }, -) -_sym_db.RegisterMessage(EnvironmentInfo) -_sym_db.RegisterMessage(EnvironmentInfo.Runtime) -_sym_db.RegisterMessage(EnvironmentInfo.HostingEnvironment) -_sym_db.RegisterMessage(EnvironmentInfo.Platform) -_sym_db.RegisterMessage(EnvironmentInfo.LinuxPlatform) -_sym_db.RegisterMessage(EnvironmentInfo.MacOSPlatform) -_sym_db.RegisterMessage(EnvironmentInfo.WindowsPlatform) - -WorkerCommand = _reflection.GeneratedProtocolMessageType( - "WorkerCommand", - (_message.Message,), - { - "DESCRIPTOR": _WORKERCOMMAND, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.WorkerCommand) - }, -) -_sym_db.RegisterMessage(WorkerCommand) - -CancelActivityCommand = _reflection.GeneratedProtocolMessageType( - "CancelActivityCommand", - (_message.Message,), - { - "DESCRIPTOR": _CANCELACTIVITYCOMMAND, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.CancelActivityCommand) - }, -) -_sym_db.RegisterMessage(CancelActivityCommand) - -WorkerCommandResult = _reflection.GeneratedProtocolMessageType( - "WorkerCommandResult", - (_message.Message,), - { - "DESCRIPTOR": _WORKERCOMMANDRESULT, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.WorkerCommandResult) - }, -) -_sym_db.RegisterMessage(WorkerCommandResult) - -CancelActivityResult = _reflection.GeneratedProtocolMessageType( - "CancelActivityResult", - (_message.Message,), - { - "DESCRIPTOR": _CANCELACTIVITYRESULT, - "__module__": "temporalio.api.worker.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.worker.v1.CancelActivityResult) - }, -) -_sym_db.RegisterMessage(CancelActivityResult) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\031io.temporal.api.worker.v1B\014MessageProtoP\001Z#go.temporal.io/api/worker/v1;worker\252\002\030Temporalio.Api.Worker.V1\352\002\033Temporalio::Api::Worker::V1" _WORKERPOLLERINFO._serialized_start = 208 - _WORKERPOLLERINFO._serialized_end = 338 - _WORKERSLOTSINFO._serialized_start = 341 - _WORKERSLOTSINFO._serialized_end = 582 - _WORKERHOSTINFO._serialized_start = 585 - _WORKERHOSTINFO._serialized_end = 733 - _WORKERHEARTBEAT._serialized_start = 736 - _WORKERHEARTBEAT._serialized_end = 2089 - _WORKERINFO._serialized_start = 2091 - _WORKERINFO._serialized_end = 2170 - _WORKERLISTINFO._serialized_start = 2173 - _WORKERLISTINFO._serialized_end = 2665 - _PLUGININFO._serialized_start = 2667 - _PLUGININFO._serialized_end = 2710 - _STORAGEDRIVERINFO._serialized_start = 2712 - _STORAGEDRIVERINFO._serialized_end = 2745 - _ENVIRONMENTINFO._serialized_start = 2748 - _ENVIRONMENTINFO._serialized_end = 4963 - _ENVIRONMENTINFO_RUNTIME._serialized_start = 2993 - _ENVIRONMENTINFO_RUNTIME._serialized_end = 3397 - _ENVIRONMENTINFO_RUNTIME_RUNTIMETYPE._serialized_start = 3097 - _ENVIRONMENTINFO_RUNTIME_RUNTIMETYPE._serialized_end = 3397 - _ENVIRONMENTINFO_HOSTINGENVIRONMENT._serialized_start = 3400 - _ENVIRONMENTINFO_HOSTINGENVIRONMENT._serialized_end = 3993 - _ENVIRONMENTINFO_HOSTINGENVIRONMENT_HOSTINGENVIRONMENTTYPE._serialized_start = 3537 - _ENVIRONMENTINFO_HOSTINGENVIRONMENT_HOSTINGENVIRONMENTTYPE._serialized_end = 3993 - _ENVIRONMENTINFO_PLATFORM._serialized_start = 3996 - _ENVIRONMENTINFO_PLATFORM._serialized_end = 4237 - _ENVIRONMENTINFO_LINUXPLATFORM._serialized_start = 4240 - _ENVIRONMENTINFO_LINUXPLATFORM._serialized_end = 4483 - _ENVIRONMENTINFO_LINUXPLATFORM_LIBC._serialized_start = 4424 - _ENVIRONMENTINFO_LINUXPLATFORM_LIBC._serialized_end = 4483 - _ENVIRONMENTINFO_MACOSPLATFORM._serialized_start = 4485 - _ENVIRONMENTINFO_MACOSPLATFORM._serialized_end = 4593 - _ENVIRONMENTINFO_WINDOWSPLATFORM._serialized_start = 4596 - _ENVIRONMENTINFO_WINDOWSPLATFORM._serialized_end = 4869 - _ENVIRONMENTINFO_WINDOWSPLATFORM_CRT._serialized_start = 4782 - _ENVIRONMENTINFO_WINDOWSPLATFORM_CRT._serialized_end = 4869 - _ENVIRONMENTINFO_ARCHITECTURE._serialized_start = 4871 - _ENVIRONMENTINFO_ARCHITECTURE._serialized_end = 4963 - _WORKERCOMMAND._serialized_start = 4965 - _WORKERCOMMAND._serialized_end = 5062 - _CANCELACTIVITYCOMMAND._serialized_start = 5064 - _CANCELACTIVITYCOMMAND._serialized_end = 5107 - _WORKERCOMMANDRESULT._serialized_start = 5109 - _WORKERCOMMANDRESULT._serialized_end = 5211 - _CANCELACTIVITYRESULT._serialized_start = 5213 - _CANCELACTIVITYRESULT._serialized_end = 5235 + _WORKERPOLLERINFO._serialized_end = 362 + _WORKERSLOTSINFO._serialized_start = 365 + _WORKERSLOTSINFO._serialized_end = 606 + _WORKERHOSTINFO._serialized_start = 609 + _WORKERHOSTINFO._serialized_end = 757 + _WORKERHEARTBEAT._serialized_start = 760 + _WORKERHEARTBEAT._serialized_end = 2113 + _WORKERINFO._serialized_start = 2115 + _WORKERINFO._serialized_end = 2194 + _WORKERLISTINFO._serialized_start = 2197 + _WORKERLISTINFO._serialized_end = 2689 + _PLUGININFO._serialized_start = 2691 + _PLUGININFO._serialized_end = 2734 + _STORAGEDRIVERINFO._serialized_start = 2736 + _STORAGEDRIVERINFO._serialized_end = 2769 + _ENVIRONMENTINFO._serialized_start = 2772 + _ENVIRONMENTINFO._serialized_end = 5040 + _ENVIRONMENTINFO_RUNTIME._serialized_start = 3017 + _ENVIRONMENTINFO_RUNTIME._serialized_end = 3474 + _ENVIRONMENTINFO_RUNTIME_RUNTIMETYPE._serialized_start = 3121 + _ENVIRONMENTINFO_RUNTIME_RUNTIMETYPE._serialized_end = 3474 + _ENVIRONMENTINFO_HOSTINGENVIRONMENT._serialized_start = 3477 + _ENVIRONMENTINFO_HOSTINGENVIRONMENT._serialized_end = 4070 + _ENVIRONMENTINFO_HOSTINGENVIRONMENT_HOSTINGENVIRONMENTTYPE._serialized_start = 3614 + _ENVIRONMENTINFO_HOSTINGENVIRONMENT_HOSTINGENVIRONMENTTYPE._serialized_end = 4070 + _ENVIRONMENTINFO_PLATFORM._serialized_start = 4073 + _ENVIRONMENTINFO_PLATFORM._serialized_end = 4314 + _ENVIRONMENTINFO_LINUXPLATFORM._serialized_start = 4317 + _ENVIRONMENTINFO_LINUXPLATFORM._serialized_end = 4560 + _ENVIRONMENTINFO_LINUXPLATFORM_LIBC._serialized_start = 4501 + _ENVIRONMENTINFO_LINUXPLATFORM_LIBC._serialized_end = 4560 + _ENVIRONMENTINFO_MACOSPLATFORM._serialized_start = 4562 + _ENVIRONMENTINFO_MACOSPLATFORM._serialized_end = 4670 + _ENVIRONMENTINFO_WINDOWSPLATFORM._serialized_start = 4673 + _ENVIRONMENTINFO_WINDOWSPLATFORM._serialized_end = 4946 + _ENVIRONMENTINFO_WINDOWSPLATFORM_CRT._serialized_start = 4859 + _ENVIRONMENTINFO_WINDOWSPLATFORM_CRT._serialized_end = 4946 + _ENVIRONMENTINFO_ARCHITECTURE._serialized_start = 4948 + _ENVIRONMENTINFO_ARCHITECTURE._serialized_end = 5040 + _WORKERCOMMAND._serialized_start = 5042 + _WORKERCOMMAND._serialized_end = 5139 + _CANCELACTIVITYCOMMAND._serialized_start = 5141 + _CANCELACTIVITYCOMMAND._serialized_end = 5184 + _WORKERCOMMANDRESULT._serialized_start = 5186 + _WORKERCOMMANDRESULT._serialized_end = 5288 + _CANCELACTIVITYRESULT._serialized_start = 5290 + _CANCELACTIVITYRESULT._serialized_end = 5312 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/worker/v1/message_pb2.pyi b/temporalio/api/worker/v1/message_pb2.pyi index 9a630f998..68fa44988 100644 --- a/temporalio/api/worker/v1/message_pb2.pyi +++ b/temporalio/api/worker/v1/message_pb2.pyi @@ -25,45 +25,55 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkerPollerInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor CURRENT_POLLERS_FIELD_NUMBER: builtins.int LAST_SUCCESSFUL_POLL_TIME_FIELD_NUMBER: builtins.int IS_AUTOSCALING_FIELD_NUMBER: builtins.int + TARGET_POLLERS_FIELD_NUMBER: builtins.int current_pollers: builtins.int """Number of polling RPCs that are currently in flight.""" - @property - def last_successful_poll_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... is_autoscaling: builtins.bool """Set true if the number of concurrent pollers is auto-scaled""" + target_pollers: builtins.int + """Number of concurrent poll requests this poller pool is currently targeting, which may + differ from current_pollers. 0 if unknown, such as a poller pool of fixed size. + """ + @property + def last_successful_poll_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... def __init__( self, *, current_pollers: builtins.int = ..., last_successful_poll_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., is_autoscaling: builtins.bool = ..., + target_pollers: builtins.int = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "last_successful_poll_time", b"last_successful_poll_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_pollers", b"current_pollers", "is_autoscaling", b"is_autoscaling", "last_successful_poll_time", b"last_successful_poll_time", + "target_pollers", + b"target_pollers", ], ) -> None: ... global___WorkerPollerInfo = WorkerPollerInfo +@typing.final class WorkerSlotsInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -110,7 +120,7 @@ class WorkerSlotsInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_available_slots", b"current_available_slots", "current_used_slots", @@ -130,6 +140,7 @@ class WorkerSlotsInfo(google.protobuf.message.Message): global___WorkerSlotsInfo = WorkerSlotsInfo +@typing.final class WorkerHostInfo(google.protobuf.message.Message): """Holds everything needed to identify the worker host/process context""" @@ -170,7 +181,7 @@ class WorkerHostInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_host_cpu_usage", b"current_host_cpu_usage", "current_host_mem_usage", @@ -186,6 +197,7 @@ class WorkerHostInfo(google.protobuf.message.Message): global___WorkerHostInfo = WorkerHostInfo +@typing.final class WorkerHeartbeat(google.protobuf.message.Message): """Worker info message, contains information about the worker and its current state. All information is provided by the worker itself. @@ -228,32 +240,42 @@ class WorkerHeartbeat(google.protobuf.message.Message): """Worker identity, set by the client, may not be unique. Usually host_name+(user group name)+process_id, but can be overwritten by the user. """ + task_queue: builtins.str + """Task queue this worker is polling for tasks.""" + sdk_name: builtins.str + sdk_version: builtins.str + status: temporalio.api.enums.v1.common_pb2.WorkerStatus.ValueType + """Worker status. Defined by SDK.""" + total_sticky_cache_hit: builtins.int + """A Workflow Task found a cached Workflow Execution to run against.""" + total_sticky_cache_miss: builtins.int + """A Workflow Task did not find a cached Workflow execution to run against.""" + current_sticky_cache_size: builtins.int + """Current cache size, expressed in number of Workflow Executions.""" @property def host_info(self) -> global___WorkerHostInfo: """Worker host information.""" - task_queue: builtins.str - """Task queue this worker is polling for tasks.""" + @property def deployment_version( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: ... - sdk_name: builtins.str - sdk_version: builtins.str - status: temporalio.api.enums.v1.common_pb2.WorkerStatus.ValueType - """Worker status. Defined by SDK.""" @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Worker start time. It can be used to determine worker uptime. (current time - start time) """ + @property def heartbeat_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Timestamp of this heartbeat, coming from the worker. Worker should set it to "now". Note that this timestamp comes directly from the worker and is subject to workers' clock skew. """ + @property def elapsed_since_last_heartbeat(self) -> google.protobuf.duration_pb2.Duration: """Elapsed time since the last heartbeat from the worker.""" + @property def workflow_task_slots_info(self) -> global___WorkerSlotsInfo: ... @property @@ -270,12 +292,6 @@ class WorkerHeartbeat(google.protobuf.message.Message): def activity_poller_info(self) -> global___WorkerPollerInfo: ... @property def nexus_poller_info(self) -> global___WorkerPollerInfo: ... - total_sticky_cache_hit: builtins.int - """A Workflow Task found a cached Workflow Execution to run against.""" - total_sticky_cache_miss: builtins.int - """A Workflow Task did not find a cached Workflow execution to run against.""" - current_sticky_cache_size: builtins.int - """Current cache size, expressed in number of Workflow Executions.""" @property def plugins( self, @@ -283,6 +299,7 @@ class WorkerHeartbeat(google.protobuf.message.Message): global___PluginInfo ]: """Plugins currently in use by this SDK.""" + @property def drivers( self, @@ -290,9 +307,11 @@ class WorkerHeartbeat(google.protobuf.message.Message): global___StorageDriverInfo ]: """Storage drivers in use by this SDK.""" + @property def environment(self) -> global___EnvironmentInfo: """Information about the environment this SDK is running in.""" + def __init__( self, *, @@ -326,7 +345,7 @@ class WorkerHeartbeat(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_poller_info", b"activity_poller_info", "activity_task_slots_info", @@ -359,7 +378,7 @@ class WorkerHeartbeat(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_poller_info", b"activity_poller_info", "activity_task_slots_info", @@ -415,6 +434,7 @@ class WorkerHeartbeat(google.protobuf.message.Message): global___WorkerHeartbeat = WorkerHeartbeat +@typing.final class WorkerInfo(google.protobuf.message.Message): """Detailed worker information.""" @@ -429,16 +449,15 @@ class WorkerInfo(google.protobuf.message.Message): worker_heartbeat: global___WorkerHeartbeat | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["worker_heartbeat", b"worker_heartbeat"], + self, field_name: typing.Literal["worker_heartbeat", b"worker_heartbeat"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["worker_heartbeat", b"worker_heartbeat"], + self, field_name: typing.Literal["worker_heartbeat", b"worker_heartbeat"] ) -> None: ... global___WorkerInfo = WorkerInfo +@typing.final class WorkerListInfo(google.protobuf.message.Message): """Limited worker information returned in the list response. When adding fields here, ensure that it is also added to WorkerInfo (as it carries the full worker information). @@ -469,19 +488,10 @@ class WorkerListInfo(google.protobuf.message.Message): """ task_queue: builtins.str """Task queue this worker is polling for tasks.""" - @property - def deployment_version( - self, - ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: ... sdk_name: builtins.str sdk_version: builtins.str status: temporalio.api.enums.v1.common_pb2.WorkerStatus.ValueType """Worker status. Defined by SDK.""" - @property - def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Worker start time. - It can be used to determine worker uptime. (current time - start time) - """ host_name: builtins.str """Worker host identifier.""" worker_grouping_key: builtins.str @@ -493,6 +503,16 @@ class WorkerListInfo(google.protobuf.message.Message): """Worker process identifier. This id only needs to be unique within one host (so using e.g. a unix pid would be appropriate). """ + @property + def deployment_version( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: ... + @property + def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Worker start time. + It can be used to determine worker uptime. (current time - start time) + """ + @property def plugins( self, @@ -500,6 +520,7 @@ class WorkerListInfo(google.protobuf.message.Message): global___PluginInfo ]: """Plugins currently in use by this SDK.""" + @property def drivers( self, @@ -507,6 +528,7 @@ class WorkerListInfo(google.protobuf.message.Message): global___StorageDriverInfo ]: """Storage drivers in use by this SDK.""" + def __init__( self, *, @@ -527,13 +549,13 @@ class WorkerListInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_version", b"deployment_version", "start_time", b"start_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_version", b"deployment_version", "drivers", @@ -565,6 +587,7 @@ class WorkerListInfo(google.protobuf.message.Message): global___WorkerListInfo = WorkerListInfo +@typing.final class PluginInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -581,12 +604,12 @@ class PluginInfo(google.protobuf.message.Message): version: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["name", b"name", "version", b"version"], + self, field_name: typing.Literal["name", b"name", "version", b"version"] ) -> None: ... global___PluginInfo = PluginInfo +@typing.final class StorageDriverInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -598,12 +621,11 @@ class StorageDriverInfo(google.protobuf.message.Message): *, type: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["type", b"type"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["type", b"type"]) -> None: ... global___StorageDriverInfo = StorageDriverInfo +@typing.final class EnvironmentInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -616,7 +638,7 @@ class EnvironmentInfo(google.protobuf.message.Message): EnvironmentInfo._Architecture.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ARCHITECTURE_UNSPECIFIED: EnvironmentInfo._Architecture.ValueType # 0 ARCHITECTURE_AMD64: EnvironmentInfo._Architecture.ValueType # 1 @@ -627,6 +649,7 @@ class EnvironmentInfo(google.protobuf.message.Message): ARCHITECTURE_AMD64: EnvironmentInfo.Architecture.ValueType # 1 ARCHITECTURE_ARM64: EnvironmentInfo.Architecture.ValueType # 2 + @typing.final class Runtime(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -639,7 +662,7 @@ class EnvironmentInfo(google.protobuf.message.Message): EnvironmentInfo.Runtime._RuntimeType.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor RUNTIME_TYPE_UNSPECIFIED: ( EnvironmentInfo.Runtime._RuntimeType.ValueType @@ -663,6 +686,10 @@ class EnvironmentInfo(google.protobuf.message.Message): RUNTIME_TYPE_ROADRUNNER: ( EnvironmentInfo.Runtime._RuntimeType.ValueType ) # 10 + RUNTIME_TYPE_GRAAL_AOT: EnvironmentInfo.Runtime._RuntimeType.ValueType # 11 + """Report when the application is compiled ahead-of-time as a GraalVM native image.""" + RUNTIME_TYPE_KOTLIN: EnvironmentInfo.Runtime._RuntimeType.ValueType # 12 + """Report when any registered Workflow or Activity implementation is a Kotlin class.""" class RuntimeType(_RuntimeType, metaclass=_RuntimeTypeEnumTypeWrapper): ... RUNTIME_TYPE_UNSPECIFIED: EnvironmentInfo.Runtime.RuntimeType.ValueType # 0 @@ -681,6 +708,10 @@ class EnvironmentInfo(google.protobuf.message.Message): RUNTIME_TYPE_DOTNET_CORE: EnvironmentInfo.Runtime.RuntimeType.ValueType # 8 RUNTIME_TYPE_NATIVE: EnvironmentInfo.Runtime.RuntimeType.ValueType # 9 RUNTIME_TYPE_ROADRUNNER: EnvironmentInfo.Runtime.RuntimeType.ValueType # 10 + RUNTIME_TYPE_GRAAL_AOT: EnvironmentInfo.Runtime.RuntimeType.ValueType # 11 + """Report when the application is compiled ahead-of-time as a GraalVM native image.""" + RUNTIME_TYPE_KOTLIN: EnvironmentInfo.Runtime.RuntimeType.ValueType # 12 + """Report when any registered Workflow or Activity implementation is a Kotlin class.""" TYPE_FIELD_NUMBER: builtins.int VERSION_FIELD_NUMBER: builtins.int @@ -695,12 +726,10 @@ class EnvironmentInfo(google.protobuf.message.Message): version: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "type", b"type", "version", b"version" - ], + self, field_name: typing.Literal["type", b"type", "version", b"version"] ) -> None: ... + @typing.final class HostingEnvironment(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -713,7 +742,7 @@ class EnvironmentInfo(google.protobuf.message.Message): EnvironmentInfo.HostingEnvironment._HostingEnvironmentType.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED: ( EnvironmentInfo.HostingEnvironment._HostingEnvironmentType.ValueType @@ -823,12 +852,10 @@ class EnvironmentInfo(google.protobuf.message.Message): version: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "type", b"type", "version", b"version" - ], + self, field_name: typing.Literal["type", b"type", "version", b"version"] ) -> None: ... + @typing.final class Platform(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -850,7 +877,7 @@ class EnvironmentInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "linux", b"linux", "macos", @@ -863,7 +890,7 @@ class EnvironmentInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "linux", b"linux", "macos", @@ -875,9 +902,10 @@ class EnvironmentInfo(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["linux", "macos", "windows"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["linux", "macos", "windows"] | None: ... + @typing.final class LinuxPlatform(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -890,7 +918,7 @@ class EnvironmentInfo(google.protobuf.message.Message): EnvironmentInfo.LinuxPlatform._Libc.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor LIBC_UNSPECIFIED: EnvironmentInfo.LinuxPlatform._Libc.ValueType # 0 LIBC_GLIBC: EnvironmentInfo.LinuxPlatform._Libc.ValueType # 1 @@ -919,11 +947,12 @@ class EnvironmentInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "architecture", b"architecture", "libc", b"libc", "version", b"version" ], ) -> None: ... + @typing.final class MacOSPlatform(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -941,11 +970,12 @@ class EnvironmentInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "architecture", b"architecture", "version", b"version" ], ) -> None: ... + @typing.final class WindowsPlatform(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -958,7 +988,7 @@ class EnvironmentInfo(google.protobuf.message.Message): EnvironmentInfo.WindowsPlatform._Crt.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CRT_UNSPECIFIED: EnvironmentInfo.WindowsPlatform._Crt.ValueType # 0 CRT_UCRT: EnvironmentInfo.WindowsPlatform._Crt.ValueType # 1 @@ -991,7 +1021,7 @@ class EnvironmentInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "architecture", b"architecture", "crt", b"crt", "version", b"version" ], ) -> None: ... @@ -1006,6 +1036,7 @@ class EnvironmentInfo(google.protobuf.message.Message): global___EnvironmentInfo.Runtime ]: """The runtime(s) the SDK is operating in.""" + @property def hosting_environments( self, @@ -1013,9 +1044,11 @@ class EnvironmentInfo(google.protobuf.message.Message): global___EnvironmentInfo.HostingEnvironment ]: """The hosting environment(s) the SDK is operating in. Repeated to allow for layering (ex: Docker inside k8s).""" + @property def platform(self) -> global___EnvironmentInfo.Platform: """The platform the SDK is operating on.""" + def __init__( self, *, @@ -1028,11 +1061,11 @@ class EnvironmentInfo(google.protobuf.message.Message): platform: global___EnvironmentInfo.Platform | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["platform", b"platform"] + self, field_name: typing.Literal["platform", b"platform"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "hosting_environments", b"hosting_environments", "platform", @@ -1044,6 +1077,7 @@ class EnvironmentInfo(google.protobuf.message.Message): global___EnvironmentInfo = EnvironmentInfo +@typing.final class WorkerCommand(google.protobuf.message.Message): """A command sent from the server to a worker.""" @@ -1059,22 +1093,23 @@ class WorkerCommand(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_activity", b"cancel_activity", "type", b"type" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_activity", b"cancel_activity", "type", b"type" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["type", b"type"] - ) -> typing_extensions.Literal["cancel_activity"] | None: ... + self, oneof_group: typing.Literal["type", b"type"] + ) -> typing.Literal["cancel_activity"] | None: ... global___WorkerCommand = WorkerCommand +@typing.final class CancelActivityCommand(google.protobuf.message.Message): """Cancel an activity if it is still running. Otherwise, do nothing.""" @@ -1088,11 +1123,12 @@ class CancelActivityCommand(google.protobuf.message.Message): task_token: builtins.bytes = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["task_token", b"task_token"] + self, field_name: typing.Literal["task_token", b"task_token"] ) -> None: ... global___CancelActivityCommand = CancelActivityCommand +@typing.final class WorkerCommandResult(google.protobuf.message.Message): """The result of executing a WorkerCommand.""" @@ -1108,22 +1144,23 @@ class WorkerCommandResult(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_activity", b"cancel_activity", "type", b"type" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_activity", b"cancel_activity", "type", b"type" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["type", b"type"] - ) -> typing_extensions.Literal["cancel_activity"] | None: ... + self, oneof_group: typing.Literal["type", b"type"] + ) -> typing.Literal["cancel_activity"] | None: ... global___WorkerCommandResult = WorkerCommandResult +@typing.final class CancelActivityResult(google.protobuf.message.Message): """Result of a CancelActivityCommand. Treat both successful cancellation and no-op (activity is no longer running) as success. diff --git a/temporalio/api/workflow/v1/message_pb2.py b/temporalio/api/workflow/v1/message_pb2.py index 032f2b2b5..2cd0116c2 100644 --- a/temporalio/api/workflow/v1/message_pb2.py +++ b/temporalio/api/workflow/v1/message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -40,6 +39,9 @@ from temporalio.api.failure.v1 import ( message_pb2 as temporal_dot_api_dot_failure_dot_v1_dot_message__pb2, ) +from temporalio.api.nexus.v1 import ( + message_pb2 as temporal_dot_api_dot_nexus_dot_v1_dot_message__pb2, +) from temporalio.api.sdk.v1 import ( user_metadata_pb2 as temporal_dot_api_dot_sdk_dot_v1_dot_user__metadata__pb2, ) @@ -48,416 +50,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n&temporal/api/workflow/v1/message.proto\x12\x18temporal.api.workflow.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/protobuf/field_mask.proto\x1a&temporal/api/activity/v1/message.proto\x1a"temporal/api/enums/v1/common.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\xf0\t\n\x15WorkflowExecutionInfo\x12<\n\texecution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x04type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12\x16\n\x0ehistory_length\x18\x06 \x01(\x03\x12\x1b\n\x13parent_namespace_id\x18\x07 \x01(\t\x12\x43\n\x10parent_execution\x18\x08 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x0e\x65xecution_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x04memo\x18\n \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0b \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12@\n\x11\x61uto_reset_points\x18\x0c \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12\x12\n\ntask_queue\x18\r \x01(\t\x12\x1e\n\x16state_transition_count\x18\x0e \x01(\x03\x12\x1a\n\x12history_size_bytes\x18\x0f \x01(\x03\x12X\n most_recent_worker_version_stamp\x18\x10 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12\x35\n\x12\x65xecution_duration\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x0eroot_execution\x18\x12 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1d\n\x11\x61ssigned_build_id\x18\x13 \x01(\tB\x02\x18\x01\x12\x1e\n\x12inherited_build_id\x18\x14 \x01(\tB\x02\x18\x01\x12\x14\n\x0c\x66irst_run_id\x18\x15 \x01(\t\x12R\n\x0fversioning_info\x18\x16 \x01(\x0b\x32\x39.temporal.api.workflow.v1.WorkflowExecutionVersioningInfo\x12\x1e\n\x16worker_deployment_name\x18\x17 \x01(\t\x12\x32\n\x08priority\x18\x18 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12#\n\x1b\x65xternal_payload_size_bytes\x18\x19 \x01(\x03\x12\x1e\n\x16\x65xternal_payload_count\x18\x1a \x01(\x03"\x8c\x05\n\x1dWorkflowExecutionExtendedInfo\x12=\n\x19\x65xecution_expiration_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13run_expiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x63\x61ncel_requested\x18\x03 \x01(\x08\x12\x33\n\x0flast_reset_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13original_start_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0creset_run_id\x18\x06 \x01(\t\x12\x65\n\x10request_id_infos\x18\x07 \x03(\x0b\x32K.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.RequestIdInfosEntry\x12H\n\npause_info\x18\x08 \x01(\x0b\x32\x34.temporal.api.workflow.v1.WorkflowExecutionPauseInfo\x12\x44\n\x12time_skipping_info\x18\t \x01(\x0b\x32(.temporal.api.common.v1.TimeSkippingInfo\x1a^\n\x13RequestIdInfosEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.temporal.api.workflow.v1.RequestIdInfo:\x02\x38\x01"\xfb\x04\n\x1fWorkflowExecutionVersioningInfo\x12;\n\x08\x62\x65havior\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12>\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x13\n\x07version\x18\x05 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12I\n\x13versioning_override\x18\x03 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12Q\n\x15\x64\x65ployment_transition\x18\x04 \x01(\x0b\x32..temporal.api.workflow.v1.DeploymentTransitionB\x02\x18\x01\x12Q\n\x12version_transition\x18\x06 \x01(\x0b\x32\x35.temporal.api.workflow.v1.DeploymentVersionTransition\x12\x17\n\x0frevision_number\x18\x08 \x01(\x03\x12k\n+continue_as_new_initial_versioning_behavior\x18\t \x01(\x0e\x32\x36.temporal.api.enums.v1.ContinueAsNewVersioningBehavior"R\n\x14\x44\x65ploymentTransition\x12:\n\ndeployment\x18\x01 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"\x83\x01\n\x1b\x44\x65ploymentVersionTransition\x12\x13\n\x07version\x18\x01 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion"\xc7\x02\n\x17WorkflowExecutionConfig\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x1aworkflow_execution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\x1d\x64\x65\x66\x61ult_workflow_task_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\ruser_metadata\x18\x05 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata"\xbd\r\n\x13PendingActivityInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12:\n\x05state\x18\x03 \x01(\x0e\x32+.temporal.api.enums.v1.PendingActivityState\x12;\n\x11heartbeat_details\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x13last_heartbeat_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_started_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x07 \x01(\x05\x12\x18\n\x10maximum_attempts\x18\x08 \x01(\x05\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x0clast_failure\x18\x0b \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1c\n\x14last_worker_identity\x18\x0c \x01(\t\x12;\n\x15use_workflow_build_id\x18\r \x01(\x0b\x32\x16.google.protobuf.EmptyB\x02\x18\x01H\x00\x12\x32\n$last_independently_assigned_build_id\x18\x0e \x01(\tB\x02\x18\x01H\x00\x12Q\n\x19last_worker_version_stamp\x18\x0f \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12\x39\n\x16\x63urrent_retry_interval\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x1alast_attempt_complete_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1anext_attempt_schedule_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06paused\x18\x13 \x01(\x08\x12\x43\n\x0flast_deployment\x18\x14 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12*\n\x1elast_worker_deployment_version\x18\x15 \x01(\tB\x02\x18\x01\x12T\n\x17last_deployment_version\x18\x19 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x32\n\x08priority\x18\x16 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12K\n\npause_info\x18\x17 \x01(\x0b\x32\x37.temporal.api.workflow.v1.PendingActivityInfo.PauseInfo\x12\x43\n\x10\x61\x63tivity_options\x18\x18 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x1a\xcf\x02\n\tPauseInfo\x12.\n\npause_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12P\n\x06manual\x18\x02 \x01(\x0b\x32>.temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.ManualH\x00\x12L\n\x04rule\x18\x04 \x01(\x0b\x32<.temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.RuleH\x00\x1a*\n\x06Manual\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x1a\x39\n\x04Rule\x12\x0f\n\x07rule_id\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\tB\x0b\n\tpaused_byB\x13\n\x11\x61ssigned_build_id"\xb9\x01\n\x19PendingChildExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x1a\n\x12workflow_type_name\x18\x03 \x01(\t\x12\x14\n\x0cinitiated_id\x18\x04 \x01(\x03\x12\x45\n\x13parent_close_policy\x18\x05 \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy"\x8d\x02\n\x17PendingWorkflowTaskInfo\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.PendingWorkflowTaskState\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17original_scheduled_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05"G\n\x0bResetPoints\x12\x38\n\x06points\x18\x01 \x03(\x0b\x32(.temporal.api.workflow.v1.ResetPointInfo"\xef\x01\n\x0eResetPointInfo\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x01 \x01(\tB\x02\x18\x01\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12(\n first_workflow_task_completed_id\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nresettable\x18\x06 \x01(\x08"\x85\x07\n\x18NewWorkflowExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x18workflow_id_reuse_policy\x18\x08 \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\n \x01(\t\x12*\n\x04memo\x18\x0b \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0c \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\r \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x0e \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12I\n\x13versioning_override\x18\x0f \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x10 \x01(\x0b\x32 .temporal.api.common.v1.Priority"\x82\x06\n\x0c\x43\x61llbackInfo\x12\x32\n\x08\x63\x61llback\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Callback\x12?\n\x07trigger\x18\x02 \x01(\x0b\x32..temporal.api.workflow.v1.CallbackInfo.Trigger\x12\x35\n\x11registration_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32$.temporal.api.enums.v1.CallbackState\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\t \x01(\t\x1a\x10\n\x0eWorkflowClosed\x1a\x35\n UpdateWorkflowExecutionCompleted\x12\x11\n\tupdate_id\x18\x01 \x01(\t\x1a\xde\x01\n\x07Trigger\x12P\n\x0fworkflow_closed\x18\x01 \x01(\x0b\x32\x35.temporal.api.workflow.v1.CallbackInfo.WorkflowClosedH\x00\x12v\n#update_workflow_execution_completed\x18\x02 \x01(\x0b\x32G.temporal.api.workflow.v1.CallbackInfo.UpdateWorkflowExecutionCompletedH\x00\x42\t\n\x07variant"\x8b\x06\n\x19PendingNexusOperationInfo\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12\x18\n\x0coperation_id\x18\x04 \x01(\tB\x02\x18\x01\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0escheduled_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x05state\x18\x07 \x01(\x0e\x32\x31.temporal.api.enums.v1.PendingNexusOperationState\x12\x0f\n\x07\x61ttempt\x18\x08 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12S\n\x11\x63\x61ncellation_info\x18\x0c \x01(\x0b\x32\x38.temporal.api.workflow.v1.NexusOperationCancellationInfo\x12\x1a\n\x12scheduled_event_id\x18\r \x01(\x03\x12\x16\n\x0e\x62locked_reason\x18\x0e \x01(\t\x12\x17\n\x0foperation_token\x18\x0f \x01(\t\x12<\n\x19schedule_to_start_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration"\x84\x03\n\x1eNexusOperationCancellationInfo\x12\x32\n\x0erequested_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x05state\x18\x02 \x01(\x0e\x32\x36.temporal.api.enums.v1.NexusOperationCancellationState\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\x07 \x01(\t"\xe3\x01\n\x18WorkflowExecutionOptions\x12I\n\x13versioning_override\x18\x01 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x03 \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig"\xfa\x05\n\x12VersioningOverride\x12M\n\x06pinned\x18\x03 \x01(\x0b\x32;.temporal.api.workflow.v1.VersioningOverride.PinnedOverrideH\x00\x12\x16\n\x0c\x61uto_upgrade\x18\x04 \x01(\x08H\x00\x12P\n\x08one_time\x18\x05 \x01(\x0b\x32<.temporal.api.workflow.v1.VersioningOverride.OneTimeOverrideH\x00\x12?\n\x08\x62\x65havior\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehaviorB\x02\x18\x01\x12>\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x1a\n\x0epinned_version\x18\t \x01(\tB\x02\x18\x01\x1a\xad\x01\n\x0ePinnedOverride\x12U\n\x08\x62\x65havior\x18\x01 \x01(\x0e\x32\x43.temporal.api.workflow.v1.VersioningOverride.PinnedOverrideBehavior\x12\x44\n\x07version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x1ai\n\x0fOneTimeOverride\x12V\n\x19target_deployment_version\x18\x01 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion"g\n\x16PinnedOverrideBehavior\x12(\n$PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED\x10\x00\x12#\n\x1fPINNED_OVERRIDE_BEHAVIOR_PINNED\x10\x01\x42\n\n\x08override"i\n\x11OnConflictOptions\x12\x19\n\x11\x61ttach_request_id\x18\x01 \x01(\x08\x12#\n\x1b\x61ttach_completion_callbacks\x18\x02 \x01(\x08\x12\x14\n\x0c\x61ttach_links\x18\x03 \x01(\x08"i\n\rRequestIdInfo\x12\x34\n\nevent_type\x18\x01 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x12\x10\n\x08\x65vent_id\x18\x02 \x01(\x03\x12\x10\n\x08\x62uffered\x18\x03 \x01(\x08"\xb7\x04\n\x12PostResetOperation\x12V\n\x0fsignal_workflow\x18\x01 \x01(\x0b\x32;.temporal.api.workflow.v1.PostResetOperation.SignalWorkflowH\x00\x12\x65\n\x17update_workflow_options\x18\x02 \x01(\x0b\x32\x42.temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptionsH\x00\x1a\xb3\x01\n\x0eSignalWorkflow\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12+\n\x05links\x18\x04 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x1a\xa0\x01\n\x15UpdateWorkflowOptions\x12V\n\x1aworkflow_execution_options\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\t\n\x07variant"o\n\x1aWorkflowExecutionPauseInfo\x12\x10\n\x08identity\x18\x01 \x01(\t\x12/\n\x0bpaused_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06reason\x18\x03 \x01(\tB\x93\x01\n\x1bio.temporal.api.workflow.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/workflow/v1;workflow\xaa\x02\x1aTemporalio.Api.Workflow.V1\xea\x02\x1dTemporalio::Api::Workflow::V1b\x06proto3' -) - - -_WORKFLOWEXECUTIONINFO = DESCRIPTOR.message_types_by_name["WorkflowExecutionInfo"] -_WORKFLOWEXECUTIONEXTENDEDINFO = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionExtendedInfo" -] -_WORKFLOWEXECUTIONEXTENDEDINFO_REQUESTIDINFOSENTRY = ( - _WORKFLOWEXECUTIONEXTENDEDINFO.nested_types_by_name["RequestIdInfosEntry"] -) -_WORKFLOWEXECUTIONVERSIONINGINFO = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionVersioningInfo" -] -_DEPLOYMENTTRANSITION = DESCRIPTOR.message_types_by_name["DeploymentTransition"] -_DEPLOYMENTVERSIONTRANSITION = DESCRIPTOR.message_types_by_name[ - "DeploymentVersionTransition" -] -_WORKFLOWEXECUTIONCONFIG = DESCRIPTOR.message_types_by_name["WorkflowExecutionConfig"] -_PENDINGACTIVITYINFO = DESCRIPTOR.message_types_by_name["PendingActivityInfo"] -_PENDINGACTIVITYINFO_PAUSEINFO = _PENDINGACTIVITYINFO.nested_types_by_name["PauseInfo"] -_PENDINGACTIVITYINFO_PAUSEINFO_MANUAL = ( - _PENDINGACTIVITYINFO_PAUSEINFO.nested_types_by_name["Manual"] -) -_PENDINGACTIVITYINFO_PAUSEINFO_RULE = ( - _PENDINGACTIVITYINFO_PAUSEINFO.nested_types_by_name["Rule"] -) -_PENDINGCHILDEXECUTIONINFO = DESCRIPTOR.message_types_by_name[ - "PendingChildExecutionInfo" -] -_PENDINGWORKFLOWTASKINFO = DESCRIPTOR.message_types_by_name["PendingWorkflowTaskInfo"] -_RESETPOINTS = DESCRIPTOR.message_types_by_name["ResetPoints"] -_RESETPOINTINFO = DESCRIPTOR.message_types_by_name["ResetPointInfo"] -_NEWWORKFLOWEXECUTIONINFO = DESCRIPTOR.message_types_by_name["NewWorkflowExecutionInfo"] -_CALLBACKINFO = DESCRIPTOR.message_types_by_name["CallbackInfo"] -_CALLBACKINFO_WORKFLOWCLOSED = _CALLBACKINFO.nested_types_by_name["WorkflowClosed"] -_CALLBACKINFO_UPDATEWORKFLOWEXECUTIONCOMPLETED = _CALLBACKINFO.nested_types_by_name[ - "UpdateWorkflowExecutionCompleted" -] -_CALLBACKINFO_TRIGGER = _CALLBACKINFO.nested_types_by_name["Trigger"] -_PENDINGNEXUSOPERATIONINFO = DESCRIPTOR.message_types_by_name[ - "PendingNexusOperationInfo" -] -_NEXUSOPERATIONCANCELLATIONINFO = DESCRIPTOR.message_types_by_name[ - "NexusOperationCancellationInfo" -] -_WORKFLOWEXECUTIONOPTIONS = DESCRIPTOR.message_types_by_name["WorkflowExecutionOptions"] -_VERSIONINGOVERRIDE = DESCRIPTOR.message_types_by_name["VersioningOverride"] -_VERSIONINGOVERRIDE_PINNEDOVERRIDE = _VERSIONINGOVERRIDE.nested_types_by_name[ - "PinnedOverride" -] -_VERSIONINGOVERRIDE_ONETIMEOVERRIDE = _VERSIONINGOVERRIDE.nested_types_by_name[ - "OneTimeOverride" -] -_ONCONFLICTOPTIONS = DESCRIPTOR.message_types_by_name["OnConflictOptions"] -_REQUESTIDINFO = DESCRIPTOR.message_types_by_name["RequestIdInfo"] -_POSTRESETOPERATION = DESCRIPTOR.message_types_by_name["PostResetOperation"] -_POSTRESETOPERATION_SIGNALWORKFLOW = _POSTRESETOPERATION.nested_types_by_name[ - "SignalWorkflow" -] -_POSTRESETOPERATION_UPDATEWORKFLOWOPTIONS = _POSTRESETOPERATION.nested_types_by_name[ - "UpdateWorkflowOptions" -] -_WORKFLOWEXECUTIONPAUSEINFO = DESCRIPTOR.message_types_by_name[ - "WorkflowExecutionPauseInfo" -] -_VERSIONINGOVERRIDE_PINNEDOVERRIDEBEHAVIOR = _VERSIONINGOVERRIDE.enum_types_by_name[ - "PinnedOverrideBehavior" -] -WorkflowExecutionInfo = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionInfo) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionInfo) - -WorkflowExecutionExtendedInfo = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionExtendedInfo", - (_message.Message,), - { - "RequestIdInfosEntry": _reflection.GeneratedProtocolMessageType( - "RequestIdInfosEntry", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONEXTENDEDINFO_REQUESTIDINFOSENTRY, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.RequestIdInfosEntry) - }, - ), - "DESCRIPTOR": _WORKFLOWEXECUTIONEXTENDEDINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionExtendedInfo) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionExtendedInfo) -_sym_db.RegisterMessage(WorkflowExecutionExtendedInfo.RequestIdInfosEntry) - -WorkflowExecutionVersioningInfo = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionVersioningInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONVERSIONINGINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionVersioningInfo) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionVersioningInfo) - -DeploymentTransition = _reflection.GeneratedProtocolMessageType( - "DeploymentTransition", - (_message.Message,), - { - "DESCRIPTOR": _DEPLOYMENTTRANSITION, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.DeploymentTransition) - }, -) -_sym_db.RegisterMessage(DeploymentTransition) - -DeploymentVersionTransition = _reflection.GeneratedProtocolMessageType( - "DeploymentVersionTransition", - (_message.Message,), - { - "DESCRIPTOR": _DEPLOYMENTVERSIONTRANSITION, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.DeploymentVersionTransition) - }, -) -_sym_db.RegisterMessage(DeploymentVersionTransition) - -WorkflowExecutionConfig = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionConfig", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONCONFIG, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionConfig) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionConfig) - -PendingActivityInfo = _reflection.GeneratedProtocolMessageType( - "PendingActivityInfo", - (_message.Message,), - { - "PauseInfo": _reflection.GeneratedProtocolMessageType( - "PauseInfo", - (_message.Message,), - { - "Manual": _reflection.GeneratedProtocolMessageType( - "Manual", - (_message.Message,), - { - "DESCRIPTOR": _PENDINGACTIVITYINFO_PAUSEINFO_MANUAL, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.Manual) - }, - ), - "Rule": _reflection.GeneratedProtocolMessageType( - "Rule", - (_message.Message,), - { - "DESCRIPTOR": _PENDINGACTIVITYINFO_PAUSEINFO_RULE, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.Rule) - }, - ), - "DESCRIPTOR": _PENDINGACTIVITYINFO_PAUSEINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingActivityInfo.PauseInfo) - }, - ), - "DESCRIPTOR": _PENDINGACTIVITYINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingActivityInfo) - }, -) -_sym_db.RegisterMessage(PendingActivityInfo) -_sym_db.RegisterMessage(PendingActivityInfo.PauseInfo) -_sym_db.RegisterMessage(PendingActivityInfo.PauseInfo.Manual) -_sym_db.RegisterMessage(PendingActivityInfo.PauseInfo.Rule) - -PendingChildExecutionInfo = _reflection.GeneratedProtocolMessageType( - "PendingChildExecutionInfo", - (_message.Message,), - { - "DESCRIPTOR": _PENDINGCHILDEXECUTIONINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingChildExecutionInfo) - }, -) -_sym_db.RegisterMessage(PendingChildExecutionInfo) - -PendingWorkflowTaskInfo = _reflection.GeneratedProtocolMessageType( - "PendingWorkflowTaskInfo", - (_message.Message,), - { - "DESCRIPTOR": _PENDINGWORKFLOWTASKINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingWorkflowTaskInfo) - }, -) -_sym_db.RegisterMessage(PendingWorkflowTaskInfo) - -ResetPoints = _reflection.GeneratedProtocolMessageType( - "ResetPoints", - (_message.Message,), - { - "DESCRIPTOR": _RESETPOINTS, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.ResetPoints) - }, -) -_sym_db.RegisterMessage(ResetPoints) - -ResetPointInfo = _reflection.GeneratedProtocolMessageType( - "ResetPointInfo", - (_message.Message,), - { - "DESCRIPTOR": _RESETPOINTINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.ResetPointInfo) - }, -) -_sym_db.RegisterMessage(ResetPointInfo) - -NewWorkflowExecutionInfo = _reflection.GeneratedProtocolMessageType( - "NewWorkflowExecutionInfo", - (_message.Message,), - { - "DESCRIPTOR": _NEWWORKFLOWEXECUTIONINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.NewWorkflowExecutionInfo) - }, -) -_sym_db.RegisterMessage(NewWorkflowExecutionInfo) - -CallbackInfo = _reflection.GeneratedProtocolMessageType( - "CallbackInfo", - (_message.Message,), - { - "WorkflowClosed": _reflection.GeneratedProtocolMessageType( - "WorkflowClosed", - (_message.Message,), - { - "DESCRIPTOR": _CALLBACKINFO_WORKFLOWCLOSED, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo.WorkflowClosed) - }, - ), - "UpdateWorkflowExecutionCompleted": _reflection.GeneratedProtocolMessageType( - "UpdateWorkflowExecutionCompleted", - (_message.Message,), - { - "DESCRIPTOR": _CALLBACKINFO_UPDATEWORKFLOWEXECUTIONCOMPLETED, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo.UpdateWorkflowExecutionCompleted) - }, - ), - "Trigger": _reflection.GeneratedProtocolMessageType( - "Trigger", - (_message.Message,), - { - "DESCRIPTOR": _CALLBACKINFO_TRIGGER, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo.Trigger) - }, - ), - "DESCRIPTOR": _CALLBACKINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo) - }, -) -_sym_db.RegisterMessage(CallbackInfo) -_sym_db.RegisterMessage(CallbackInfo.WorkflowClosed) -_sym_db.RegisterMessage(CallbackInfo.UpdateWorkflowExecutionCompleted) -_sym_db.RegisterMessage(CallbackInfo.Trigger) - -PendingNexusOperationInfo = _reflection.GeneratedProtocolMessageType( - "PendingNexusOperationInfo", - (_message.Message,), - { - "DESCRIPTOR": _PENDINGNEXUSOPERATIONINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingNexusOperationInfo) - }, -) -_sym_db.RegisterMessage(PendingNexusOperationInfo) - -NexusOperationCancellationInfo = _reflection.GeneratedProtocolMessageType( - "NexusOperationCancellationInfo", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONCANCELLATIONINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.NexusOperationCancellationInfo) - }, -) -_sym_db.RegisterMessage(NexusOperationCancellationInfo) - -WorkflowExecutionOptions = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionOptions", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONOPTIONS, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionOptions) - }, -) -_sym_db.RegisterMessage(WorkflowExecutionOptions) - -VersioningOverride = _reflection.GeneratedProtocolMessageType( - "VersioningOverride", - (_message.Message,), - { - "PinnedOverride": _reflection.GeneratedProtocolMessageType( - "PinnedOverride", - (_message.Message,), - { - "DESCRIPTOR": _VERSIONINGOVERRIDE_PINNEDOVERRIDE, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.VersioningOverride.PinnedOverride) - }, - ), - "OneTimeOverride": _reflection.GeneratedProtocolMessageType( - "OneTimeOverride", - (_message.Message,), - { - "DESCRIPTOR": _VERSIONINGOVERRIDE_ONETIMEOVERRIDE, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.VersioningOverride.OneTimeOverride) - }, - ), - "DESCRIPTOR": _VERSIONINGOVERRIDE, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.VersioningOverride) - }, -) -_sym_db.RegisterMessage(VersioningOverride) -_sym_db.RegisterMessage(VersioningOverride.PinnedOverride) -_sym_db.RegisterMessage(VersioningOverride.OneTimeOverride) - -OnConflictOptions = _reflection.GeneratedProtocolMessageType( - "OnConflictOptions", - (_message.Message,), - { - "DESCRIPTOR": _ONCONFLICTOPTIONS, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.OnConflictOptions) - }, -) -_sym_db.RegisterMessage(OnConflictOptions) - -RequestIdInfo = _reflection.GeneratedProtocolMessageType( - "RequestIdInfo", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTIDINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.RequestIdInfo) - }, -) -_sym_db.RegisterMessage(RequestIdInfo) - -PostResetOperation = _reflection.GeneratedProtocolMessageType( - "PostResetOperation", - (_message.Message,), - { - "SignalWorkflow": _reflection.GeneratedProtocolMessageType( - "SignalWorkflow", - (_message.Message,), - { - "DESCRIPTOR": _POSTRESETOPERATION_SIGNALWORKFLOW, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PostResetOperation.SignalWorkflow) - }, - ), - "UpdateWorkflowOptions": _reflection.GeneratedProtocolMessageType( - "UpdateWorkflowOptions", - (_message.Message,), - { - "DESCRIPTOR": _POSTRESETOPERATION_UPDATEWORKFLOWOPTIONS, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptions) - }, - ), - "DESCRIPTOR": _POSTRESETOPERATION, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PostResetOperation) - }, -) -_sym_db.RegisterMessage(PostResetOperation) -_sym_db.RegisterMessage(PostResetOperation.SignalWorkflow) -_sym_db.RegisterMessage(PostResetOperation.UpdateWorkflowOptions) - -WorkflowExecutionPauseInfo = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionPauseInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONPAUSEINFO, - "__module__": "temporalio.api.workflow.v1.message_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionPauseInfo) - }, + b'\n&temporal/api/workflow/v1/message.proto\x12\x18temporal.api.workflow.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/protobuf/field_mask.proto\x1a&temporal/api/activity/v1/message.proto\x1a"temporal/api/enums/v1/common.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\xf0\t\n\x15WorkflowExecutionInfo\x12<\n\texecution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x04type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12\x16\n\x0ehistory_length\x18\x06 \x01(\x03\x12\x1b\n\x13parent_namespace_id\x18\x07 \x01(\t\x12\x43\n\x10parent_execution\x18\x08 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x0e\x65xecution_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x04memo\x18\n \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0b \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12@\n\x11\x61uto_reset_points\x18\x0c \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12\x12\n\ntask_queue\x18\r \x01(\t\x12\x1e\n\x16state_transition_count\x18\x0e \x01(\x03\x12\x1a\n\x12history_size_bytes\x18\x0f \x01(\x03\x12X\n most_recent_worker_version_stamp\x18\x10 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12\x35\n\x12\x65xecution_duration\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x0eroot_execution\x18\x12 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1d\n\x11\x61ssigned_build_id\x18\x13 \x01(\tB\x02\x18\x01\x12\x1e\n\x12inherited_build_id\x18\x14 \x01(\tB\x02\x18\x01\x12\x14\n\x0c\x66irst_run_id\x18\x15 \x01(\t\x12R\n\x0fversioning_info\x18\x16 \x01(\x0b\x32\x39.temporal.api.workflow.v1.WorkflowExecutionVersioningInfo\x12\x1e\n\x16worker_deployment_name\x18\x17 \x01(\t\x12\x32\n\x08priority\x18\x18 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12#\n\x1b\x65xternal_payload_size_bytes\x18\x19 \x01(\x03\x12\x1e\n\x16\x65xternal_payload_count\x18\x1a \x01(\x03"\xf3\x05\n\x1dWorkflowExecutionExtendedInfo\x12=\n\x19\x65xecution_expiration_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13run_expiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x63\x61ncel_requested\x18\x03 \x01(\x08\x12\x33\n\x0flast_reset_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13original_start_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0creset_run_id\x18\x06 \x01(\t\x12\x65\n\x10request_id_infos\x18\x07 \x03(\x0b\x32K.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.RequestIdInfosEntry\x12H\n\npause_info\x18\x08 \x01(\x0b\x32\x34.temporal.api.workflow.v1.WorkflowExecutionPauseInfo\x12\x44\n\x12time_skipping_info\x18\t \x01(\x0b\x32(.temporal.api.common.v1.TimeSkippingInfo\x12\x65\n&propagated_nexus_serialization_context\x18\n \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x1a^\n\x13RequestIdInfosEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.temporal.api.workflow.v1.RequestIdInfo:\x02\x38\x01"\xfb\x04\n\x1fWorkflowExecutionVersioningInfo\x12;\n\x08\x62\x65havior\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12>\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x13\n\x07version\x18\x05 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12I\n\x13versioning_override\x18\x03 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12Q\n\x15\x64\x65ployment_transition\x18\x04 \x01(\x0b\x32..temporal.api.workflow.v1.DeploymentTransitionB\x02\x18\x01\x12Q\n\x12version_transition\x18\x06 \x01(\x0b\x32\x35.temporal.api.workflow.v1.DeploymentVersionTransition\x12\x17\n\x0frevision_number\x18\x08 \x01(\x03\x12k\n+continue_as_new_initial_versioning_behavior\x18\t \x01(\x0e\x32\x36.temporal.api.enums.v1.ContinueAsNewVersioningBehavior"R\n\x14\x44\x65ploymentTransition\x12:\n\ndeployment\x18\x01 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"\x83\x01\n\x1b\x44\x65ploymentVersionTransition\x12\x13\n\x07version\x18\x01 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion"\xc7\x02\n\x17WorkflowExecutionConfig\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x1aworkflow_execution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\x1d\x64\x65\x66\x61ult_workflow_task_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\ruser_metadata\x18\x05 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata"\xbd\r\n\x13PendingActivityInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12:\n\x05state\x18\x03 \x01(\x0e\x32+.temporal.api.enums.v1.PendingActivityState\x12;\n\x11heartbeat_details\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x13last_heartbeat_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_started_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x07 \x01(\x05\x12\x18\n\x10maximum_attempts\x18\x08 \x01(\x05\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x0clast_failure\x18\x0b \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1c\n\x14last_worker_identity\x18\x0c \x01(\t\x12;\n\x15use_workflow_build_id\x18\r \x01(\x0b\x32\x16.google.protobuf.EmptyB\x02\x18\x01H\x00\x12\x32\n$last_independently_assigned_build_id\x18\x0e \x01(\tB\x02\x18\x01H\x00\x12Q\n\x19last_worker_version_stamp\x18\x0f \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12\x39\n\x16\x63urrent_retry_interval\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x1alast_attempt_complete_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1anext_attempt_schedule_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06paused\x18\x13 \x01(\x08\x12\x43\n\x0flast_deployment\x18\x14 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12*\n\x1elast_worker_deployment_version\x18\x15 \x01(\tB\x02\x18\x01\x12T\n\x17last_deployment_version\x18\x19 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x32\n\x08priority\x18\x16 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12K\n\npause_info\x18\x17 \x01(\x0b\x32\x37.temporal.api.workflow.v1.PendingActivityInfo.PauseInfo\x12\x43\n\x10\x61\x63tivity_options\x18\x18 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x1a\xcf\x02\n\tPauseInfo\x12.\n\npause_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12P\n\x06manual\x18\x02 \x01(\x0b\x32>.temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.ManualH\x00\x12L\n\x04rule\x18\x04 \x01(\x0b\x32<.temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.RuleH\x00\x1a*\n\x06Manual\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x1a\x39\n\x04Rule\x12\x0f\n\x07rule_id\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\tB\x0b\n\tpaused_byB\x13\n\x11\x61ssigned_build_id"\xb9\x01\n\x19PendingChildExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x1a\n\x12workflow_type_name\x18\x03 \x01(\t\x12\x14\n\x0cinitiated_id\x18\x04 \x01(\x03\x12\x45\n\x13parent_close_policy\x18\x05 \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy"\x8d\x02\n\x17PendingWorkflowTaskInfo\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.PendingWorkflowTaskState\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17original_scheduled_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05"G\n\x0bResetPoints\x12\x38\n\x06points\x18\x01 \x03(\x0b\x32(.temporal.api.workflow.v1.ResetPointInfo"\xef\x01\n\x0eResetPointInfo\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x01 \x01(\tB\x02\x18\x01\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12(\n first_workflow_task_completed_id\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nresettable\x18\x06 \x01(\x08"\x85\x07\n\x18NewWorkflowExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x18workflow_id_reuse_policy\x18\x08 \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\n \x01(\t\x12*\n\x04memo\x18\x0b \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0c \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\r \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x0e \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12I\n\x13versioning_override\x18\x0f \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x10 \x01(\x0b\x32 .temporal.api.common.v1.Priority"\x96\x06\n\x0c\x43\x61llbackInfo\x12\x32\n\x08\x63\x61llback\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Callback\x12?\n\x07trigger\x18\x02 \x01(\x0b\x32..temporal.api.workflow.v1.CallbackInfo.Trigger\x12\x35\n\x11registration_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32$.temporal.api.enums.v1.CallbackState\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x1a\x10\n\x0eWorkflowClosed\x1a\x35\n UpdateWorkflowExecutionCompleted\x12\x11\n\tupdate_id\x18\x01 \x01(\t\x1a\xde\x01\n\x07Trigger\x12P\n\x0fworkflow_closed\x18\x01 \x01(\x0b\x32\x35.temporal.api.workflow.v1.CallbackInfo.WorkflowClosedH\x00\x12v\n#update_workflow_execution_completed\x18\x02 \x01(\x0b\x32G.temporal.api.workflow.v1.CallbackInfo.UpdateWorkflowExecutionCompletedH\x00\x42\t\n\x07variant"\x8b\x06\n\x19PendingNexusOperationInfo\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12\x18\n\x0coperation_id\x18\x04 \x01(\tB\x02\x18\x01\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0escheduled_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x05state\x18\x07 \x01(\x0e\x32\x31.temporal.api.enums.v1.PendingNexusOperationState\x12\x0f\n\x07\x61ttempt\x18\x08 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12S\n\x11\x63\x61ncellation_info\x18\x0c \x01(\x0b\x32\x38.temporal.api.workflow.v1.NexusOperationCancellationInfo\x12\x1a\n\x12scheduled_event_id\x18\r \x01(\x03\x12\x16\n\x0e\x62locked_reason\x18\x0e \x01(\t\x12\x17\n\x0foperation_token\x18\x0f \x01(\t\x12<\n\x19schedule_to_start_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration"\x84\x03\n\x1eNexusOperationCancellationInfo\x12\x32\n\x0erequested_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x05state\x18\x02 \x01(\x0e\x32\x36.temporal.api.enums.v1.NexusOperationCancellationState\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\x07 \x01(\t"\xe3\x01\n\x18WorkflowExecutionOptions\x12I\n\x13versioning_override\x18\x01 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x03 \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig"\xfa\x05\n\x12VersioningOverride\x12M\n\x06pinned\x18\x03 \x01(\x0b\x32;.temporal.api.workflow.v1.VersioningOverride.PinnedOverrideH\x00\x12\x16\n\x0c\x61uto_upgrade\x18\x04 \x01(\x08H\x00\x12P\n\x08one_time\x18\x05 \x01(\x0b\x32<.temporal.api.workflow.v1.VersioningOverride.OneTimeOverrideH\x00\x12?\n\x08\x62\x65havior\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehaviorB\x02\x18\x01\x12>\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x1a\n\x0epinned_version\x18\t \x01(\tB\x02\x18\x01\x1a\xad\x01\n\x0ePinnedOverride\x12U\n\x08\x62\x65havior\x18\x01 \x01(\x0e\x32\x43.temporal.api.workflow.v1.VersioningOverride.PinnedOverrideBehavior\x12\x44\n\x07version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x1ai\n\x0fOneTimeOverride\x12V\n\x19target_deployment_version\x18\x01 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion"g\n\x16PinnedOverrideBehavior\x12(\n$PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED\x10\x00\x12#\n\x1fPINNED_OVERRIDE_BEHAVIOR_PINNED\x10\x01\x42\n\n\x08override"i\n\x11OnConflictOptions\x12\x19\n\x11\x61ttach_request_id\x18\x01 \x01(\x08\x12#\n\x1b\x61ttach_completion_callbacks\x18\x02 \x01(\x08\x12\x14\n\x0c\x61ttach_links\x18\x03 \x01(\x08"i\n\rRequestIdInfo\x12\x34\n\nevent_type\x18\x01 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x12\x10\n\x08\x65vent_id\x18\x02 \x01(\x03\x12\x10\n\x08\x62uffered\x18\x03 \x01(\x08"\xb7\x04\n\x12PostResetOperation\x12V\n\x0fsignal_workflow\x18\x01 \x01(\x0b\x32;.temporal.api.workflow.v1.PostResetOperation.SignalWorkflowH\x00\x12\x65\n\x17update_workflow_options\x18\x02 \x01(\x0b\x32\x42.temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptionsH\x00\x1a\xb3\x01\n\x0eSignalWorkflow\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12+\n\x05links\x18\x04 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x1a\xa0\x01\n\x15UpdateWorkflowOptions\x12V\n\x1aworkflow_execution_options\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\t\n\x07variant"o\n\x1aWorkflowExecutionPauseInfo\x12\x10\n\x08identity\x18\x01 \x01(\t\x12/\n\x0bpaused_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06reason\x18\x03 \x01(\tB\x93\x01\n\x1bio.temporal.api.workflow.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/workflow/v1;workflow\xaa\x02\x1aTemporalio.Api.Workflow.V1\xea\x02\x1dTemporalio::Api::Workflow::V1b\x06proto3' ) -_sym_db.RegisterMessage(WorkflowExecutionPauseInfo) +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\033io.temporal.api.workflow.v1B\014MessageProtoP\001Z'go.temporal.io/api/workflow/v1;workflow\252\002\032Temporalio.Api.Workflow.V1\352\002\035Temporalio::Api::Workflow::V1" @@ -533,70 +130,70 @@ _VERSIONINGOVERRIDE.fields_by_name[ "pinned_version" ]._serialized_options = b"\030\001" - _WORKFLOWEXECUTIONINFO._serialized_start = 552 - _WORKFLOWEXECUTIONINFO._serialized_end = 1816 - _WORKFLOWEXECUTIONEXTENDEDINFO._serialized_start = 1819 - _WORKFLOWEXECUTIONEXTENDEDINFO._serialized_end = 2471 - _WORKFLOWEXECUTIONEXTENDEDINFO_REQUESTIDINFOSENTRY._serialized_start = 2377 - _WORKFLOWEXECUTIONEXTENDEDINFO_REQUESTIDINFOSENTRY._serialized_end = 2471 - _WORKFLOWEXECUTIONVERSIONINGINFO._serialized_start = 2474 - _WORKFLOWEXECUTIONVERSIONINGINFO._serialized_end = 3109 - _DEPLOYMENTTRANSITION._serialized_start = 3111 - _DEPLOYMENTTRANSITION._serialized_end = 3193 - _DEPLOYMENTVERSIONTRANSITION._serialized_start = 3196 - _DEPLOYMENTVERSIONTRANSITION._serialized_end = 3327 - _WORKFLOWEXECUTIONCONFIG._serialized_start = 3330 - _WORKFLOWEXECUTIONCONFIG._serialized_end = 3657 - _PENDINGACTIVITYINFO._serialized_start = 3660 - _PENDINGACTIVITYINFO._serialized_end = 5385 - _PENDINGACTIVITYINFO_PAUSEINFO._serialized_start = 5029 - _PENDINGACTIVITYINFO_PAUSEINFO._serialized_end = 5364 - _PENDINGACTIVITYINFO_PAUSEINFO_MANUAL._serialized_start = 5250 - _PENDINGACTIVITYINFO_PAUSEINFO_MANUAL._serialized_end = 5292 - _PENDINGACTIVITYINFO_PAUSEINFO_RULE._serialized_start = 5294 - _PENDINGACTIVITYINFO_PAUSEINFO_RULE._serialized_end = 5351 - _PENDINGCHILDEXECUTIONINFO._serialized_start = 5388 - _PENDINGCHILDEXECUTIONINFO._serialized_end = 5573 - _PENDINGWORKFLOWTASKINFO._serialized_start = 5576 - _PENDINGWORKFLOWTASKINFO._serialized_end = 5845 - _RESETPOINTS._serialized_start = 5847 - _RESETPOINTS._serialized_end = 5918 - _RESETPOINTINFO._serialized_start = 5921 - _RESETPOINTINFO._serialized_end = 6160 - _NEWWORKFLOWEXECUTIONINFO._serialized_start = 6163 - _NEWWORKFLOWEXECUTIONINFO._serialized_end = 7064 - _CALLBACKINFO._serialized_start = 7067 - _CALLBACKINFO._serialized_end = 7837 - _CALLBACKINFO_WORKFLOWCLOSED._serialized_start = 7541 - _CALLBACKINFO_WORKFLOWCLOSED._serialized_end = 7557 - _CALLBACKINFO_UPDATEWORKFLOWEXECUTIONCOMPLETED._serialized_start = 7559 - _CALLBACKINFO_UPDATEWORKFLOWEXECUTIONCOMPLETED._serialized_end = 7612 - _CALLBACKINFO_TRIGGER._serialized_start = 7615 - _CALLBACKINFO_TRIGGER._serialized_end = 7837 - _PENDINGNEXUSOPERATIONINFO._serialized_start = 7840 - _PENDINGNEXUSOPERATIONINFO._serialized_end = 8619 - _NEXUSOPERATIONCANCELLATIONINFO._serialized_start = 8622 - _NEXUSOPERATIONCANCELLATIONINFO._serialized_end = 9010 - _WORKFLOWEXECUTIONOPTIONS._serialized_start = 9013 - _WORKFLOWEXECUTIONOPTIONS._serialized_end = 9240 - _VERSIONINGOVERRIDE._serialized_start = 9243 - _VERSIONINGOVERRIDE._serialized_end = 10005 - _VERSIONINGOVERRIDE_PINNEDOVERRIDE._serialized_start = 9608 - _VERSIONINGOVERRIDE_PINNEDOVERRIDE._serialized_end = 9781 - _VERSIONINGOVERRIDE_ONETIMEOVERRIDE._serialized_start = 9783 - _VERSIONINGOVERRIDE_ONETIMEOVERRIDE._serialized_end = 9888 - _VERSIONINGOVERRIDE_PINNEDOVERRIDEBEHAVIOR._serialized_start = 9890 - _VERSIONINGOVERRIDE_PINNEDOVERRIDEBEHAVIOR._serialized_end = 9993 - _ONCONFLICTOPTIONS._serialized_start = 10007 - _ONCONFLICTOPTIONS._serialized_end = 10112 - _REQUESTIDINFO._serialized_start = 10114 - _REQUESTIDINFO._serialized_end = 10219 - _POSTRESETOPERATION._serialized_start = 10222 - _POSTRESETOPERATION._serialized_end = 10789 - _POSTRESETOPERATION_SIGNALWORKFLOW._serialized_start = 10436 - _POSTRESETOPERATION_SIGNALWORKFLOW._serialized_end = 10615 - _POSTRESETOPERATION_UPDATEWORKFLOWOPTIONS._serialized_start = 10618 - _POSTRESETOPERATION_UPDATEWORKFLOWOPTIONS._serialized_end = 10778 - _WORKFLOWEXECUTIONPAUSEINFO._serialized_start = 10791 - _WORKFLOWEXECUTIONPAUSEINFO._serialized_end = 10902 + _WORKFLOWEXECUTIONINFO._serialized_start = 589 + _WORKFLOWEXECUTIONINFO._serialized_end = 1853 + _WORKFLOWEXECUTIONEXTENDEDINFO._serialized_start = 1856 + _WORKFLOWEXECUTIONEXTENDEDINFO._serialized_end = 2611 + _WORKFLOWEXECUTIONEXTENDEDINFO_REQUESTIDINFOSENTRY._serialized_start = 2517 + _WORKFLOWEXECUTIONEXTENDEDINFO_REQUESTIDINFOSENTRY._serialized_end = 2611 + _WORKFLOWEXECUTIONVERSIONINGINFO._serialized_start = 2614 + _WORKFLOWEXECUTIONVERSIONINGINFO._serialized_end = 3249 + _DEPLOYMENTTRANSITION._serialized_start = 3251 + _DEPLOYMENTTRANSITION._serialized_end = 3333 + _DEPLOYMENTVERSIONTRANSITION._serialized_start = 3336 + _DEPLOYMENTVERSIONTRANSITION._serialized_end = 3467 + _WORKFLOWEXECUTIONCONFIG._serialized_start = 3470 + _WORKFLOWEXECUTIONCONFIG._serialized_end = 3797 + _PENDINGACTIVITYINFO._serialized_start = 3800 + _PENDINGACTIVITYINFO._serialized_end = 5525 + _PENDINGACTIVITYINFO_PAUSEINFO._serialized_start = 5169 + _PENDINGACTIVITYINFO_PAUSEINFO._serialized_end = 5504 + _PENDINGACTIVITYINFO_PAUSEINFO_MANUAL._serialized_start = 5390 + _PENDINGACTIVITYINFO_PAUSEINFO_MANUAL._serialized_end = 5432 + _PENDINGACTIVITYINFO_PAUSEINFO_RULE._serialized_start = 5434 + _PENDINGACTIVITYINFO_PAUSEINFO_RULE._serialized_end = 5491 + _PENDINGCHILDEXECUTIONINFO._serialized_start = 5528 + _PENDINGCHILDEXECUTIONINFO._serialized_end = 5713 + _PENDINGWORKFLOWTASKINFO._serialized_start = 5716 + _PENDINGWORKFLOWTASKINFO._serialized_end = 5985 + _RESETPOINTS._serialized_start = 5987 + _RESETPOINTS._serialized_end = 6058 + _RESETPOINTINFO._serialized_start = 6061 + _RESETPOINTINFO._serialized_end = 6300 + _NEWWORKFLOWEXECUTIONINFO._serialized_start = 6303 + _NEWWORKFLOWEXECUTIONINFO._serialized_end = 7204 + _CALLBACKINFO._serialized_start = 7207 + _CALLBACKINFO._serialized_end = 7997 + _CALLBACKINFO_WORKFLOWCLOSED._serialized_start = 7701 + _CALLBACKINFO_WORKFLOWCLOSED._serialized_end = 7717 + _CALLBACKINFO_UPDATEWORKFLOWEXECUTIONCOMPLETED._serialized_start = 7719 + _CALLBACKINFO_UPDATEWORKFLOWEXECUTIONCOMPLETED._serialized_end = 7772 + _CALLBACKINFO_TRIGGER._serialized_start = 7775 + _CALLBACKINFO_TRIGGER._serialized_end = 7997 + _PENDINGNEXUSOPERATIONINFO._serialized_start = 8000 + _PENDINGNEXUSOPERATIONINFO._serialized_end = 8779 + _NEXUSOPERATIONCANCELLATIONINFO._serialized_start = 8782 + _NEXUSOPERATIONCANCELLATIONINFO._serialized_end = 9170 + _WORKFLOWEXECUTIONOPTIONS._serialized_start = 9173 + _WORKFLOWEXECUTIONOPTIONS._serialized_end = 9400 + _VERSIONINGOVERRIDE._serialized_start = 9403 + _VERSIONINGOVERRIDE._serialized_end = 10165 + _VERSIONINGOVERRIDE_PINNEDOVERRIDE._serialized_start = 9768 + _VERSIONINGOVERRIDE_PINNEDOVERRIDE._serialized_end = 9941 + _VERSIONINGOVERRIDE_ONETIMEOVERRIDE._serialized_start = 9943 + _VERSIONINGOVERRIDE_ONETIMEOVERRIDE._serialized_end = 10048 + _VERSIONINGOVERRIDE_PINNEDOVERRIDEBEHAVIOR._serialized_start = 10050 + _VERSIONINGOVERRIDE_PINNEDOVERRIDEBEHAVIOR._serialized_end = 10153 + _ONCONFLICTOPTIONS._serialized_start = 10167 + _ONCONFLICTOPTIONS._serialized_end = 10272 + _REQUESTIDINFO._serialized_start = 10274 + _REQUESTIDINFO._serialized_end = 10379 + _POSTRESETOPERATION._serialized_start = 10382 + _POSTRESETOPERATION._serialized_end = 10949 + _POSTRESETOPERATION_SIGNALWORKFLOW._serialized_start = 10596 + _POSTRESETOPERATION_SIGNALWORKFLOW._serialized_end = 10775 + _POSTRESETOPERATION_UPDATEWORKFLOWOPTIONS._serialized_start = 10778 + _POSTRESETOPERATION_UPDATEWORKFLOWOPTIONS._serialized_end = 10938 + _WORKFLOWEXECUTIONPAUSEINFO._serialized_start = 10951 + _WORKFLOWEXECUTIONPAUSEINFO._serialized_end = 11062 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/workflow/v1/message_pb2.pyi b/temporalio/api/workflow/v1/message_pb2.pyi index b390d94f4..493e2062e 100644 --- a/temporalio/api/workflow/v1/message_pb2.pyi +++ b/temporalio/api/workflow/v1/message_pb2.pyi @@ -24,6 +24,7 @@ import temporalio.api.enums.v1.common_pb2 import temporalio.api.enums.v1.event_type_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 +import temporalio.api.nexus.v1.message_pb2 import temporalio.api.sdk.v1.user_metadata_pb2 import temporalio.api.taskqueue.v1.message_pb2 @@ -34,6 +35,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowExecutionInfo(google.protobuf.message.Message): """Hold basic information about a workflow execution. This structure is a part of visibility, and thus contain a limited subset of information. @@ -67,6 +69,40 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): PRIORITY_FIELD_NUMBER: builtins.int EXTERNAL_PAYLOAD_SIZE_BYTES_FIELD_NUMBER: builtins.int EXTERNAL_PAYLOAD_COUNT_FIELD_NUMBER: builtins.int + status: temporalio.api.enums.v1.workflow_pb2.WorkflowExecutionStatus.ValueType + history_length: builtins.int + parent_namespace_id: builtins.str + task_queue: builtins.str + state_transition_count: builtins.int + history_size_bytes: builtins.int + assigned_build_id: builtins.str + """The currently assigned build ID for this execution. Presence of this value means worker versioning is used + for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules + when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled + again, the assigned build ID may change according to the latest versioning rules. + Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to + this execution. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ + inherited_build_id: builtins.str + """Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead + of using the assignment rules. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ + first_run_id: builtins.str + """The first run ID in the execution chain. + Executions created via the following operations are considered to be in the same chain + - ContinueAsNew + - Workflow Retry + - Workflow Reset + - Cron Schedule + """ + worker_deployment_name: builtins.str + """The name of Worker Deployment that completed the most recent workflow task.""" + external_payload_size_bytes: builtins.int + """Total size in bytes of all external payloads referenced in workflow history.""" + external_payload_count: builtins.int + """Count of external payloads referenced in workflow history.""" @property def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property @@ -75,9 +111,6 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... @property def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - status: temporalio.api.enums.v1.workflow_pb2.WorkflowExecutionStatus.ValueType - history_length: builtins.int - parent_namespace_id: builtins.str @property def parent_execution( self, @@ -92,9 +125,6 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... @property def auto_reset_points(self) -> global___ResetPoints: ... - task_queue: builtins.str - state_transition_count: builtins.int - history_size_bytes: builtins.int @property def most_recent_worker_version_stamp( self, @@ -102,11 +132,13 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): """If set, the most recent worker version stamp that appeared in a workflow task completion Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ + @property def execution_duration(self) -> google.protobuf.duration_pb2.Duration: """Workflow execution duration is defined as difference between close time and execution time. This field is only populated if the workflow is closed. """ + @property def root_execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: """Contains information about the root workflow execution. @@ -127,43 +159,18 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): Scenario 5: Workflow W1 is reseted, creating W2. - The root workflow of W1 is W1 and the root workflow of W2 is W2. """ - assigned_build_id: builtins.str - """The currently assigned build ID for this execution. Presence of this value means worker versioning is used - for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules - when the first workflow task of the execution is scheduled. If the first workflow task fails and is scheduled - again, the assigned build ID may change according to the latest versioning rules. - Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to - this execution. - Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - """ - inherited_build_id: builtins.str - """Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead - of using the assignment rules. - Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] - """ - first_run_id: builtins.str - """The first run ID in the execution chain. - Executions created via the following operations are considered to be in the same chain - - ContinueAsNew - - Workflow Retry - - Workflow Reset - - Cron Schedule - """ + @property def versioning_info(self) -> global___WorkflowExecutionVersioningInfo: """Absent value means the workflow execution is not versioned. When present, the execution might be versioned or unversioned, depending on `versioning_info.behavior` and `versioning_info.versioning_override`. Experimental. Versioning info is experimental and might change in the future. """ - worker_deployment_name: builtins.str - """The name of Worker Deployment that completed the most recent workflow task.""" + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata""" - external_payload_size_bytes: builtins.int - """Total size in bytes of all external payloads referenced in workflow history.""" - external_payload_count: builtins.int - """Count of external payloads referenced in workflow history.""" + def __init__( self, *, @@ -200,7 +207,7 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "auto_reset_points", b"auto_reset_points", "close_time", @@ -233,7 +240,7 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "assigned_build_id", b"assigned_build_id", "auto_reset_points", @@ -291,11 +298,13 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): global___WorkflowExecutionInfo = WorkflowExecutionInfo +@typing.final class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): """Holds all the extra information about workflow execution that is not part of Visibility.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class RequestIdInfosEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -311,11 +320,10 @@ class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): value: global___RequestIdInfo | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... EXECUTION_EXPIRATION_TIME_FIELD_NUMBER: builtins.int @@ -327,24 +335,29 @@ class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): REQUEST_ID_INFOS_FIELD_NUMBER: builtins.int PAUSE_INFO_FIELD_NUMBER: builtins.int TIME_SKIPPING_INFO_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int + cancel_requested: builtins.bool + """indicates if the workflow received a cancel request""" + reset_run_id: builtins.str + """Reset Run ID points to the new run when this execution is reset. If the execution is reset multiple times, it points to the latest run.""" @property def execution_expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Workflow execution expiration time is defined as workflow start time plus expiration timeout. Workflow start time may change after workflow reset. """ + @property def run_expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Workflow run expiration time is defined as current workflow run start time plus workflow run timeout.""" - cancel_requested: builtins.bool - """indicates if the workflow received a cancel request""" + @property def last_reset_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Last workflow reset time. Nil if the workflow was never reset.""" + @property def original_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Original workflow start time.""" - reset_run_id: builtins.str - """Reset Run ID points to the new run when this execution is reset. If the execution is reset multiple times, it points to the latest run.""" + @property def request_id_infos( self, @@ -356,9 +369,11 @@ class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): calls (eg: if SignalWithStartWorkflowExecution starts a new workflow, then the request ID is used in the StartWorkflowExecution request). """ + @property def pause_info(self) -> global___WorkflowExecutionPauseInfo: """Information about the workflow execution pause operation.""" + @property def time_skipping_info( self, @@ -366,6 +381,13 @@ class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): """Information about time skipping of the workflow execution. If the execution has never enabled time skipping, it will be nil. """ + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this workflow.""" + def __init__( self, *, @@ -380,10 +402,12 @@ class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): pause_info: global___WorkflowExecutionPauseInfo | None = ..., time_skipping_info: temporalio.api.common.v1.message_pb2.TimeSkippingInfo | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution_expiration_time", b"execution_expiration_time", "last_reset_time", @@ -392,6 +416,8 @@ class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): b"original_start_time", "pause_info", b"pause_info", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "run_expiration_time", b"run_expiration_time", "time_skipping_info", @@ -400,7 +426,7 @@ class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_requested", b"cancel_requested", "execution_expiration_time", @@ -411,6 +437,8 @@ class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): b"original_start_time", "pause_info", b"pause_info", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "request_id_infos", b"request_id_infos", "reset_run_id", @@ -424,6 +452,7 @@ class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): global___WorkflowExecutionExtendedInfo = WorkflowExecutionExtendedInfo +@typing.final class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): """Holds all the information about worker versioning for a particular workflow execution. Experimental. Versioning info is experimental and might change in the future. @@ -455,6 +484,31 @@ class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): Note that `behavior` is overridden by `versioning_override` if the latter is present. """ + version: builtins.str + """Deprecated. Use `deployment_version`.""" + revision_number: builtins.int + """Monotonic counter reflecting the latest routing decision for this workflow execution. + Used for staleness detection between history and matching when dispatching tasks to workers. + Incremented when a workflow execution routes to a new deployment version, which happens + when a worker of the new deployment version completes a workflow task. + Note: Pinned tasks and sticky tasks send a value of 0 for this field since these tasks do not + face the problem of inconsistent dispatching that arises from eventual consistency between + task queues and their partitions. + """ + continue_as_new_initial_versioning_behavior: ( + temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType + ) + """Experimental. + If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior + specified in that command. + Only used for the initial task of this run and the initial task of any retries of this run. + Not passed to children or to future continue-as-new. + + Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade, + a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility + with ContinueAsNew history commands generated during that time, know that an UNSPECIFIED value here is equivalent + to ContinueAsNewVersioningBehaviorAutoUpgrade if the behavior of the workflow is AutoUpgrade. + """ @property def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: """The worker deployment that completed the last workflow task of this workflow execution. Must @@ -465,8 +519,7 @@ class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): Note that `deployment` is overridden by `versioning_override` if the latter is present. Deprecated. Use `deployment_version`. """ - version: builtins.str - """Deprecated. Use `deployment_version`.""" + @property def deployment_version( self, @@ -486,6 +539,7 @@ class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): Note that if `versioning_override.behavior` is PINNED then `versioning_override.pinned_version` will override this value. """ + @property def versioning_override(self) -> global___VersioningOverride: """Present if user has set an execution-specific versioning override. This override takes @@ -495,6 +549,7 @@ class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): Pinned overrides are automatically inherited by child workflows, continue-as-new workflows, workflow retries, and cron workflows. """ + @property def deployment_transition(self) -> global___DeploymentTransition: """When present, indicates the workflow is transitioning to a different deployment. Can @@ -516,6 +571,7 @@ class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): completed, pending activities will start their next attempt on the new deployment. Deprecated. Use version_transition. """ + @property def version_transition(self) -> global___DeploymentVersionTransition: """When present, indicates the workflow is transitioning to a different deployment version @@ -537,29 +593,7 @@ class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): Pending activities will not start new attempts during a transition. Once the transition is completed, pending activities will start their next attempt on the new version. """ - revision_number: builtins.int - """Monotonic counter reflecting the latest routing decision for this workflow execution. - Used for staleness detection between history and matching when dispatching tasks to workers. - Incremented when a workflow execution routes to a new deployment version, which happens - when a worker of the new deployment version completes a workflow task. - Note: Pinned tasks and sticky tasks send a value of 0 for this field since these tasks do not - face the problem of inconsistent dispatching that arises from eventual consistency between - task queues and their partitions. - """ - continue_as_new_initial_versioning_behavior: ( - temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType - ) - """Experimental. - If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior - specified in that command. - Only used for the initial task of this run and the initial task of any retries of this run. - Not passed to children or to future continue-as-new. - Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade, - a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility - with ContinueAsNew history commands generated during that time, know that an UNSPECIFIED value here is equivalent - to ContinueAsNewVersioningBehaviorAutoUpgrade if the behavior of the workflow is AutoUpgrade. - """ def __init__( self, *, @@ -576,7 +610,7 @@ class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "deployment_transition", @@ -591,7 +625,7 @@ class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "behavior", b"behavior", "continue_as_new_initial_versioning_behavior", @@ -615,6 +649,7 @@ class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): global___WorkflowExecutionVersioningInfo = WorkflowExecutionVersioningInfo +@typing.final class DeploymentTransition(google.protobuf.message.Message): """Holds information about ongoing transition of a workflow execution from one deployment to another. Deprecated. Use DeploymentVersionTransition. @@ -628,20 +663,22 @@ class DeploymentTransition(google.protobuf.message.Message): """The target deployment of the transition. Null means a so-far-versioned workflow is transitioning to unversioned workers. """ + def __init__( self, *, deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["deployment", b"deployment"] + self, field_name: typing.Literal["deployment", b"deployment"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["deployment", b"deployment"] + self, field_name: typing.Literal["deployment", b"deployment"] ) -> None: ... global___DeploymentTransition = DeploymentTransition +@typing.final class DeploymentVersionTransition(google.protobuf.message.Message): """Holds information about ongoing transition of a workflow execution from one worker deployment version to another. @@ -661,6 +698,7 @@ class DeploymentVersionTransition(google.protobuf.message.Message): """The target Version of the transition. If nil, a so-far-versioned workflow is transitioning to unversioned workers. """ + def __init__( self, *, @@ -669,20 +707,18 @@ class DeploymentVersionTransition(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "deployment_version", b"deployment_version" - ], + self, field_name: typing.Literal["deployment_version", b"deployment_version"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_version", b"deployment_version", "version", b"version" ], ) -> None: ... global___DeploymentVersionTransition = DeploymentVersionTransition +@typing.final class WorkflowExecutionConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -704,6 +740,7 @@ class WorkflowExecutionConfig(google.protobuf.message.Message): @property def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: """User metadata provided on start workflow.""" + def __init__( self, *, @@ -717,7 +754,7 @@ class WorkflowExecutionConfig(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "default_workflow_task_timeout", b"default_workflow_task_timeout", "task_queue", @@ -732,7 +769,7 @@ class WorkflowExecutionConfig(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "default_workflow_task_timeout", b"default_workflow_task_timeout", "task_queue", @@ -748,12 +785,15 @@ class WorkflowExecutionConfig(google.protobuf.message.Message): global___WorkflowExecutionConfig = WorkflowExecutionConfig +@typing.final class PendingActivityInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class PauseInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Manual(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -771,11 +811,12 @@ class PendingActivityInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "reason", b"reason" ], ) -> None: ... + @typing.final class Rule(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -797,7 +838,7 @@ class PendingActivityInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "reason", b"reason", "rule_id", b"rule_id" ], ) -> None: ... @@ -808,12 +849,15 @@ class PendingActivityInfo(google.protobuf.message.Message): @property def pause_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the activity was paused.""" + @property def manual(self) -> global___PendingActivityInfo.PauseInfo.Manual: """activity was paused by the manual intervention""" + @property def rule(self) -> global___PendingActivityInfo.PauseInfo.Rule: """activity was paused by the rule""" + def __init__( self, *, @@ -823,7 +867,7 @@ class PendingActivityInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "manual", b"manual", "pause_time", @@ -836,7 +880,7 @@ class PendingActivityInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "manual", b"manual", "pause_time", @@ -848,8 +892,8 @@ class PendingActivityInfo(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["paused_by", b"paused_by"] - ) -> typing_extensions.Literal["manual", "rule"] | None: ... + self, oneof_group: typing.Literal["paused_by", b"paused_by"] + ) -> typing.Literal["manual", "rule"] | None: ... ACTIVITY_ID_FIELD_NUMBER: builtins.int ACTIVITY_TYPE_FIELD_NUMBER: builtins.int @@ -877,33 +921,40 @@ class PendingActivityInfo(google.protobuf.message.Message): PAUSE_INFO_FIELD_NUMBER: builtins.int ACTIVITY_OPTIONS_FIELD_NUMBER: builtins.int activity_id: builtins.str + state: temporalio.api.enums.v1.workflow_pb2.PendingActivityState.ValueType + attempt: builtins.int + maximum_attempts: builtins.int + last_worker_identity: builtins.str + last_independently_assigned_build_id: builtins.str + """Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow. + The activity will use the build id in this field instead. + If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning + rules. + """ + paused: builtins.bool + """Indicates if activity is paused.""" + last_worker_deployment_version: builtins.str + """The Worker Deployment Version this activity was dispatched to most recently. + Deprecated. Use `last_deployment_version`. + """ @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... - state: temporalio.api.enums.v1.workflow_pb2.PendingActivityState.ValueType @property def heartbeat_details(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... @property def last_heartbeat_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... @property def last_started_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - attempt: builtins.int - maximum_attempts: builtins.int @property def scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... @property def expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... @property def last_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... - last_worker_identity: builtins.str @property def use_workflow_build_id(self) -> google.protobuf.empty_pb2.Empty: """Deprecated. When present, it means this activity is assigned to the build ID of its workflow.""" - last_independently_assigned_build_id: builtins.str - """Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow. - The activity will use the build id in this field instead. - If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning - rules. - """ + @property def last_worker_version_stamp( self, @@ -911,6 +962,7 @@ class PendingActivityInfo(google.protobuf.message.Message): """Deprecated. The version stamp of the worker to whom this activity was most recently dispatched This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ + @property def current_retry_interval(self) -> google.protobuf.duration_pb2.Duration: """The time activity will wait until the next retry. @@ -918,26 +970,24 @@ class PendingActivityInfo(google.protobuf.message.Message): If activity is currently waiting it will be current retry interval. If there will be no retry it will be null. """ + @property def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the last activity attempt was completed. If activity has not been completed yet then it will be null.""" + @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Next time when activity will be scheduled. If activity is currently scheduled or started it will be null. """ - paused: builtins.bool - """Indicates if activity is paused.""" + @property def last_deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: """The deployment this activity was dispatched to most recently. Present only if the activity was dispatched to a versioned worker. Deprecated. Use `last_deployment_version`. """ - last_worker_deployment_version: builtins.str - """The Worker Deployment Version this activity was dispatched to most recently. - Deprecated. Use `last_deployment_version`. - """ + @property def last_deployment_version( self, @@ -945,11 +995,13 @@ class PendingActivityInfo(google.protobuf.message.Message): """The Worker Deployment Version this activity was dispatched to most recently. If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker. """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata. If this message is not present, or any fields are not present, they inherit the values from the workflow. """ + @property def pause_info(self) -> global___PendingActivityInfo.PauseInfo: ... @property @@ -957,6 +1009,7 @@ class PendingActivityInfo(google.protobuf.message.Message): self, ) -> temporalio.api.activity.v1.message_pb2.ActivityOptions: """Current activity options. May be different from the one used to start the activity.""" + def __init__( self, *, @@ -994,7 +1047,7 @@ class PendingActivityInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_options", b"activity_options", "activity_type", @@ -1037,7 +1090,7 @@ class PendingActivityInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_options", @@ -1093,19 +1146,15 @@ class PendingActivityInfo(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, - oneof_group: typing_extensions.Literal[ - "assigned_build_id", b"assigned_build_id" - ], + self, oneof_group: typing.Literal["assigned_build_id", b"assigned_build_id"] ) -> ( - typing_extensions.Literal[ - "use_workflow_build_id", "last_independently_assigned_build_id" - ] + typing.Literal["use_workflow_build_id", "last_independently_assigned_build_id"] | None ): ... global___PendingActivityInfo = PendingActivityInfo +@typing.final class PendingChildExecutionInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1133,7 +1182,7 @@ class PendingChildExecutionInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "initiated_id", b"initiated_id", "parent_close_policy", @@ -1149,6 +1198,7 @@ class PendingChildExecutionInfo(google.protobuf.message.Message): global___PendingChildExecutionInfo = PendingChildExecutionInfo +@typing.final class PendingWorkflowTaskInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1158,6 +1208,7 @@ class PendingWorkflowTaskInfo(google.protobuf.message.Message): STARTED_TIME_FIELD_NUMBER: builtins.int ATTEMPT_FIELD_NUMBER: builtins.int state: temporalio.api.enums.v1.workflow_pb2.PendingWorkflowTaskState.ValueType + attempt: builtins.int @property def scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... @property @@ -1167,9 +1218,9 @@ class PendingWorkflowTaskInfo(google.protobuf.message.Message): In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds some threshold, the workflow task will be forced timeout. """ + @property def started_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - attempt: builtins.int def __init__( self, *, @@ -1181,7 +1232,7 @@ class PendingWorkflowTaskInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "original_scheduled_time", b"original_scheduled_time", "scheduled_time", @@ -1192,7 +1243,7 @@ class PendingWorkflowTaskInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "original_scheduled_time", @@ -1208,6 +1259,7 @@ class PendingWorkflowTaskInfo(google.protobuf.message.Message): global___PendingWorkflowTaskInfo = PendingWorkflowTaskInfo +@typing.final class ResetPoints(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1223,12 +1275,11 @@ class ResetPoints(google.protobuf.message.Message): *, points: collections.abc.Iterable[global___ResetPointInfo] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["points", b"points"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["points", b"points"]) -> None: ... global___ResetPoints = ResetPoints +@typing.final class ResetPointInfo(google.protobuf.message.Message): """ResetPointInfo records the workflow event id that is the first one processed by a given build id or binary checksum. A new reset point will be created if either build id or binary @@ -1252,6 +1303,8 @@ class ResetPointInfo(google.protobuf.message.Message): """The first run ID in the execution chain that was touched by this worker build.""" first_workflow_task_completed_id: builtins.int """Event ID of the first WorkflowTaskCompleted event processed by this worker build.""" + resettable: builtins.bool + """false if the reset point has pending childWFs/reqCancels/signalExternals.""" @property def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... @property @@ -1260,8 +1313,7 @@ class ResetPointInfo(google.protobuf.message.Message): aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --) The time that the run is deleted due to retention. """ - resettable: builtins.bool - """false if the reset point has pending childWFs/reqCancels/signalExternals.""" + def __init__( self, *, @@ -1275,13 +1327,13 @@ class ResetPointInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "expire_time", b"expire_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "binary_checksum", b"binary_checksum", "build_id", @@ -1301,6 +1353,7 @@ class ResetPointInfo(google.protobuf.message.Message): global___ResetPointInfo = ResetPointInfo +@typing.final class NewWorkflowExecutionInfo(google.protobuf.message.Message): """NewWorkflowExecutionInfo is a shared message that encapsulates all the required arguments to starting a workflow in different contexts. @@ -1325,6 +1378,12 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int PRIORITY_FIELD_NUMBER: builtins.int workflow_id: builtins.str + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) + """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" + cron_schedule: builtins.str + """See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/""" @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @property @@ -1332,24 +1391,23 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized arguments to the workflow.""" + @property def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: """Total workflow execution timeout including retries and continue as new.""" + @property def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow run.""" + @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - workflow_id_reuse_policy: ( - temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType - ) - """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.""" - cron_schedule: builtins.str - """See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/""" + @property def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: ... @property @@ -1364,14 +1422,17 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): for use by user interfaces to display the fixed as-of-start summary and details of the workflow. """ + @property def versioning_override(self) -> global___VersioningOverride: """If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata""" + def __init__( self, *, @@ -1396,7 +1457,7 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "input", @@ -1427,7 +1488,7 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cron_schedule", b"cron_schedule", "header", @@ -1465,11 +1526,13 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): global___NewWorkflowExecutionInfo = NewWorkflowExecutionInfo +@typing.final class CallbackInfo(google.protobuf.message.Message): """CallbackInfo contains the state of an attached workflow callback.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class WorkflowClosed(google.protobuf.message.Message): """Trigger for when the workflow is closed.""" @@ -1479,6 +1542,7 @@ class CallbackInfo(google.protobuf.message.Message): self, ) -> None: ... + @typing.final class UpdateWorkflowExecutionCompleted(google.protobuf.message.Message): """Trigger for when a workflow update is completed.""" @@ -1492,9 +1556,10 @@ class CallbackInfo(google.protobuf.message.Message): update_id: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["update_id", b"update_id"] + self, field_name: typing.Literal["update_id", b"update_id"] ) -> None: ... + @typing.final class Trigger(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1515,7 +1580,7 @@ class CallbackInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_workflow_execution_completed", b"update_workflow_execution_completed", "variant", @@ -1526,7 +1591,7 @@ class CallbackInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_workflow_execution_completed", b"update_workflow_execution_completed", "variant", @@ -1536,11 +1601,9 @@ class CallbackInfo(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] + self, oneof_group: typing.Literal["variant", b"variant"] ) -> ( - typing_extensions.Literal[ - "workflow_closed", "update_workflow_execution_completed" - ] + typing.Literal["workflow_closed", "update_workflow_execution_completed"] | None ): ... @@ -1553,31 +1616,42 @@ class CallbackInfo(google.protobuf.message.Message): LAST_ATTEMPT_FAILURE_FIELD_NUMBER: builtins.int NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int BLOCKED_REASON_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + state: temporalio.api.enums.v1.common_pb2.CallbackState.ValueType + attempt: builtins.int + """The number of attempts made to deliver the callback. + This number represents a minimum bound since the attempt is incremented after the callback request completes. + """ + blocked_reason: builtins.str + """If the state is BLOCKED, blocked reason provides additional information.""" + request_id: builtins.str + """Server-generated request ID used as an idempotency token when invoking callbacks. + It has no relation to caller-side request_id sent in operations like StartWorkflowExecutionRequest. + """ @property def callback(self) -> temporalio.api.common.v1.message_pb2.Callback: """Information on how this callback should be invoked (e.g. its URL and type).""" + @property def trigger(self) -> global___CallbackInfo.Trigger: """Trigger for this callback.""" + @property def registration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the callback was registered.""" - state: temporalio.api.enums.v1.common_pb2.CallbackState.ValueType - attempt: builtins.int - """The number of attempts made to deliver the callback. - This number represents a minimum bound since the attempt is incremented after the callback request completes. - """ + @property def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the last attempt completed.""" + @property def last_attempt_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The last attempt's failure, if any.""" + @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the next attempt is scheduled.""" - blocked_reason: builtins.str - """If the state is BLOCKED, blocked reason provides additional information.""" + def __init__( self, *, @@ -1593,10 +1667,11 @@ class CallbackInfo(google.protobuf.message.Message): next_attempt_schedule_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., blocked_reason: builtins.str = ..., + request_id: builtins.str = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "callback", b"callback", "last_attempt_complete_time", @@ -1613,7 +1688,7 @@ class CallbackInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "blocked_reason", @@ -1628,6 +1703,8 @@ class CallbackInfo(google.protobuf.message.Message): b"next_attempt_schedule_time", "registration_time", b"registration_time", + "request_id", + b"request_id", "state", b"state", "trigger", @@ -1637,6 +1714,7 @@ class CallbackInfo(google.protobuf.message.Message): global___CallbackInfo = CallbackInfo +@typing.final class PendingNexusOperationInfo(google.protobuf.message.Message): """PendingNexusOperationInfo contains the state of a pending Nexus operation.""" @@ -1672,6 +1750,21 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): Deprecated. Renamed to operation_token. """ + state: temporalio.api.enums.v1.common_pb2.PendingNexusOperationState.ValueType + attempt: builtins.int + """The number of attempts made to deliver the start operation request. + This number is approximate, it is incremented when a task is added to the history queue. + In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task + was never executed. + """ + scheduled_event_id: builtins.int + """The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the + DescribeWorkflowExecution response with workflow history. + """ + blocked_reason: builtins.str + """If the state is BLOCKED, blocked reason provides additional information.""" + operation_token: builtins.str + """Operation token. Only set for asynchronous operations after a successful StartOperation call.""" @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-close timeout for this operation. @@ -1679,47 +1772,39 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the operation was scheduled.""" - state: temporalio.api.enums.v1.common_pb2.PendingNexusOperationState.ValueType - attempt: builtins.int - """The number of attempts made to deliver the start operation request. - This number is approximate, it is incremented when a task is added to the history queue. - In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task - was never executed. - """ + @property def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the last attempt completed.""" + @property def last_attempt_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The last attempt's failure, if any.""" + @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the next attempt is scheduled.""" + @property def cancellation_info(self) -> global___NexusOperationCancellationInfo: ... - scheduled_event_id: builtins.int - """The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the - DescribeWorkflowExecution response with workflow history. - """ - blocked_reason: builtins.str - """If the state is BLOCKED, blocked reason provides additional information.""" - operation_token: builtins.str - """Operation token. Only set for asynchronous operations after a successful StartOperation call.""" @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-start timeout for this operation. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Start-to-close timeout for this operation. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + def __init__( self, *, @@ -1746,7 +1831,7 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancellation_info", b"cancellation_info", "last_attempt_complete_time", @@ -1767,7 +1852,7 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "blocked_reason", @@ -1807,6 +1892,7 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): global___PendingNexusOperationInfo = PendingNexusOperationInfo +@typing.final class NexusOperationCancellationInfo(google.protobuf.message.Message): """NexusOperationCancellationInfo contains the state of a nexus operation cancellation.""" @@ -1819,25 +1905,29 @@ class NexusOperationCancellationInfo(google.protobuf.message.Message): LAST_ATTEMPT_FAILURE_FIELD_NUMBER: builtins.int NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int BLOCKED_REASON_FIELD_NUMBER: builtins.int - @property - def requested_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """The time when cancellation was requested.""" state: temporalio.api.enums.v1.common_pb2.NexusOperationCancellationState.ValueType attempt: builtins.int """The number of attempts made to deliver the cancel operation request. This number represents a minimum bound since the attempt is incremented after the request completes. """ + blocked_reason: builtins.str + """If the state is BLOCKED, blocked reason provides additional information.""" + @property + def requested_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The time when cancellation was requested.""" + @property def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the last attempt completed.""" + @property def last_attempt_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The last attempt's failure, if any.""" + @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the next attempt is scheduled.""" - blocked_reason: builtins.str - """If the state is BLOCKED, blocked reason provides additional information.""" + def __init__( self, *, @@ -1854,7 +1944,7 @@ class NexusOperationCancellationInfo(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "last_attempt_complete_time", b"last_attempt_complete_time", "last_attempt_failure", @@ -1867,7 +1957,7 @@ class NexusOperationCancellationInfo(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "blocked_reason", @@ -1887,6 +1977,7 @@ class NexusOperationCancellationInfo(google.protobuf.message.Message): global___NexusOperationCancellationInfo = NexusOperationCancellationInfo +@typing.final class WorkflowExecutionOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1896,9 +1987,11 @@ class WorkflowExecutionOptions(google.protobuf.message.Message): @property def versioning_override(self) -> global___VersioningOverride: """If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.""" + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """If set, overrides the workflow's priority sent by the SDK.""" + @property def time_skipping_config( self, @@ -1913,6 +2006,7 @@ class WorkflowExecutionOptions(google.protobuf.message.Message): When setting the update mask in `UpdateWorkflowExecutionOptionsRequest`, `BatchOperationUpdateWorkflowExecutionOptions`, etc., use a mask that covers the entire field. """ + def __init__( self, *, @@ -1923,7 +2017,7 @@ class WorkflowExecutionOptions(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "priority", b"priority", "time_skipping_config", @@ -1934,7 +2028,7 @@ class WorkflowExecutionOptions(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "priority", b"priority", "time_skipping_config", @@ -1946,6 +2040,7 @@ class WorkflowExecutionOptions(google.protobuf.message.Message): global___WorkflowExecutionOptions = WorkflowExecutionOptions +@typing.final class VersioningOverride(google.protobuf.message.Message): """Used to override the versioning behavior (and pinned deployment version, if applicable) of a specific workflow execution. If set, this override takes precedence over worker-sent values. @@ -1969,7 +2064,7 @@ class VersioningOverride(google.protobuf.message.Message): VersioningOverride._PinnedOverrideBehavior.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PINNED_OVERRIDE_BEHAVIOR_UNSPECIFIED: ( VersioningOverride._PinnedOverrideBehavior.ValueType @@ -1992,6 +2087,7 @@ class VersioningOverride(google.protobuf.message.Message): ) # 1 """Override workflow behavior to be Pinned.""" + @typing.final class PinnedOverride(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2014,6 +2110,7 @@ class VersioningOverride(google.protobuf.message.Message): If omitted and the target workflow is not pinned, the override request will be rejected with a PreconditionFailed error. """ + def __init__( self, *, @@ -2022,15 +2119,14 @@ class VersioningOverride(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["version", b"version"] + self, field_name: typing.Literal["version", b"version"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "behavior", b"behavior", "version", b"version" - ], + field_name: typing.Literal["behavior", b"behavior", "version", b"version"], ) -> None: ... + @typing.final class OneTimeOverride(google.protobuf.message.Message): """Routes Workflow Tasks for this execution to `target_deployment_version` until a Workflow Task completes on that version, then clears the override. @@ -2061,6 +2157,7 @@ class VersioningOverride(google.protobuf.message.Message): self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: """Required. Worker Deployment Version to receive the one-time Workflow Task.""" + def __init__( self, *, @@ -2069,13 +2166,13 @@ class VersioningOverride(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "target_deployment_version", b"target_deployment_version" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "target_deployment_version", b"target_deployment_version" ], ) -> None: ... @@ -2086,14 +2183,25 @@ class VersioningOverride(google.protobuf.message.Message): BEHAVIOR_FIELD_NUMBER: builtins.int DEPLOYMENT_FIELD_NUMBER: builtins.int PINNED_VERSION_FIELD_NUMBER: builtins.int + auto_upgrade: builtins.bool + """Override the workflow to have AutoUpgrade behavior.""" + behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType + """Required. + Deprecated. Use `override`. + """ + pinned_version: builtins.str + """Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`. + Identifies the worker deployment version to pin the workflow to, in the format + ".". + Deprecated. Use `override.pinned.version`. + """ @property def pinned(self) -> global___VersioningOverride.PinnedOverride: """Override the workflow to have Pinned behavior. This is a sticky override: Workflow Tasks continue to route according to this override until it is explicitly removed. """ - auto_upgrade: builtins.bool - """Override the workflow to have AutoUpgrade behavior.""" + @property def one_time(self) -> global___VersioningOverride.OneTimeOverride: """Override Workflow Task routing to a specific Worker Deployment Version until @@ -2103,22 +2211,14 @@ class VersioningOverride(google.protobuf.message.Message): (-- api-linter: core::0142::time-field-type=disabled aip.dev/not-precedent: one_time describes one-time routing semantics, not a timestamp or duration. --) """ - behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType - """Required. - Deprecated. Use `override`. - """ + @property def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: """Required if behavior is `PINNED`. Must be null if behavior is `AUTO_UPGRADE`. Identifies the worker deployment to pin the workflow to. Deprecated. Use `override.pinned.version`. """ - pinned_version: builtins.str - """Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`. - Identifies the worker deployment version to pin the workflow to, in the format - ".". - Deprecated. Use `override.pinned.version`. - """ + def __init__( self, *, @@ -2131,7 +2231,7 @@ class VersioningOverride(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "auto_upgrade", b"auto_upgrade", "deployment", @@ -2146,7 +2246,7 @@ class VersioningOverride(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "auto_upgrade", b"auto_upgrade", "behavior", @@ -2164,11 +2264,12 @@ class VersioningOverride(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["override", b"override"] - ) -> typing_extensions.Literal["pinned", "auto_upgrade", "one_time"] | None: ... + self, oneof_group: typing.Literal["override", b"override"] + ) -> typing.Literal["pinned", "auto_upgrade", "one_time"] | None: ... global___VersioningOverride = VersioningOverride +@typing.final class OnConflictOptions(google.protobuf.message.Message): """When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and there is already an existing running workflow, OnConflictOptions defines actions to be taken on @@ -2196,7 +2297,7 @@ class OnConflictOptions(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attach_completion_callbacks", b"attach_completion_callbacks", "attach_links", @@ -2208,6 +2309,7 @@ class OnConflictOptions(google.protobuf.message.Message): global___OnConflictOptions = OnConflictOptions +@typing.final class RequestIdInfo(google.protobuf.message.Message): """RequestIdInfo contains details of a request ID.""" @@ -2236,7 +2338,7 @@ class RequestIdInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "buffered", b"buffered", "event_id", @@ -2248,11 +2350,13 @@ class RequestIdInfo(google.protobuf.message.Message): global___RequestIdInfo = RequestIdInfo +@typing.final class PostResetOperation(google.protobuf.message.Message): """PostResetOperation represents an operation to be performed on the new workflow execution after a workflow reset.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class SignalWorkflow(google.protobuf.message.Message): """SignalWorkflow represents sending a signal after a workflow reset. Keep the parameter in sync with temporalio.api.workflowservice.v1.SignalWorkflowExecutionRequest. @@ -2269,9 +2373,11 @@ class PostResetOperation(google.protobuf.message.Message): @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized value(s) to provide with the signal.""" + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: """Headers that are passed with the signal to the processing workflow.""" + @property def links( self, @@ -2279,6 +2385,7 @@ class PostResetOperation(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to be associated with the WorkflowExecutionSignaled event.""" + def __init__( self, *, @@ -2289,14 +2396,11 @@ class PostResetOperation(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "header", b"header", "input", b"input" - ], + self, field_name: typing.Literal["header", b"header", "input", b"input"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "input", @@ -2308,6 +2412,7 @@ class PostResetOperation(google.protobuf.message.Message): ], ) -> None: ... + @typing.final class UpdateWorkflowOptions(google.protobuf.message.Message): """UpdateWorkflowOptions represents updating workflow execution options after a workflow reset. Keep the parameters in sync with temporalio.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest. @@ -2320,11 +2425,13 @@ class PostResetOperation(google.protobuf.message.Message): @property def workflow_execution_options(self) -> global___WorkflowExecutionOptions: """Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask.""" + @property def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: """Controls which fields from `workflow_execution_options` will be applied. To unset a field, set it to null and use the update mask to indicate that it should be mutated. """ + def __init__( self, *, @@ -2333,7 +2440,7 @@ class PostResetOperation(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_mask", b"update_mask", "workflow_execution_options", @@ -2342,7 +2449,7 @@ class PostResetOperation(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_mask", b"update_mask", "workflow_execution_options", @@ -2367,7 +2474,7 @@ class PostResetOperation(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "signal_workflow", b"signal_workflow", "update_workflow_options", @@ -2378,7 +2485,7 @@ class PostResetOperation(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "signal_workflow", b"signal_workflow", "update_workflow_options", @@ -2388,13 +2495,12 @@ class PostResetOperation(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> ( - typing_extensions.Literal["signal_workflow", "update_workflow_options"] | None - ): ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["signal_workflow", "update_workflow_options"] | None: ... global___PostResetOperation = PostResetOperation +@typing.final class WorkflowExecutionPauseInfo(google.protobuf.message.Message): """WorkflowExecutionPauseInfo contains the information about a workflow execution pause.""" @@ -2405,11 +2511,12 @@ class WorkflowExecutionPauseInfo(google.protobuf.message.Message): REASON_FIELD_NUMBER: builtins.int identity: builtins.str """The identity of the client who paused the workflow execution.""" + reason: builtins.str + """The reason for pausing the workflow execution.""" @property def paused_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the workflow execution was paused.""" - reason: builtins.str - """The reason for pausing the workflow execution.""" + def __init__( self, *, @@ -2418,11 +2525,11 @@ class WorkflowExecutionPauseInfo(google.protobuf.message.Message): reason: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["paused_time", b"paused_time"] + self, field_name: typing.Literal["paused_time", b"paused_time"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "paused_time", b"paused_time", "reason", b"reason" ], ) -> None: ... diff --git a/temporalio/api/workflowservice/v1/__init__.py b/temporalio/api/workflowservice/v1/__init__.py index ab72e6b09..c0d646eb4 100644 --- a/temporalio/api/workflowservice/v1/__init__.py +++ b/temporalio/api/workflowservice/v1/__init__.py @@ -501,6 +501,7 @@ import grpc from .service_pb2_grpc import ( + WorkflowService, # type: ignore WorkflowServiceServicer, WorkflowServiceStub, add_WorkflowServiceServicer_to_server, @@ -508,6 +509,7 @@ __all__.extend( [ + "WorkflowService", "WorkflowServiceServicer", "WorkflowServiceStub", "add_WorkflowServiceServicer_to_server", diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.py b/temporalio/api/workflowservice/v1/request_response_pb2.py index e1b2e01c4..0a42ea3af 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.py +++ b/temporalio/api/workflowservice/v1/request_response_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -90,6 +89,9 @@ from temporalio.api.nexus.v1 import ( message_pb2 as temporal_dot_api_dot_nexus_dot_v1_dot_message__pb2, ) +from temporalio.api.nexusoperation.v1 import ( + message_pb2 as temporal_dot_api_dot_nexusoperation_dot_v1_dot_message__pb2, +) from temporalio.api.protocol.v1 import ( message_pb2 as temporal_dot_api_dot_protocol_dot_v1_dot_message__pb2, ) @@ -131,3850 +133,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.proto\x1a"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a!temporal/api/enums/v1/query.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a&temporal/api/enums/v1/deployment.proto\x1a"temporal/api/enums/v1/update.proto\x1a)temporal/api/enums/v1/time_skipping.proto\x1a$temporal/api/enums/v1/activity.proto\x1a!temporal/api/enums/v1/nexus.proto\x1a&temporal/api/activity/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/history/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a%temporal/api/command/v1/message.proto\x1a$temporal/api/compute/v1/config.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/filter/v1/message.proto\x1a&temporal/api/protocol/v1/message.proto\x1a\'temporal/api/namespace/v1/message.proto\x1a#temporal/api/query/v1/message.proto\x1a)temporal/api/replication/v1/message.proto\x1a#temporal/api/rules/v1/message.proto\x1a\'temporal/api/sdk/v1/worker_config.proto\x1a&temporal/api/schedule/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a%temporal/api/version/v1/message.proto\x1a#temporal/api/batch/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a#temporal/api/nexus/v1/message.proto\x1a$temporal/api/worker/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x88\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bowner_email\x18\x03 \x01(\t\x12\x46\n#workflow_execution_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12G\n\x08\x63lusters\x18\x05 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x06 \x01(\t\x12Q\n\x04\x64\x61ta\x18\x07 \x03(\x0b\x32\x43.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0esecurity_token\x18\x08 \x01(\t\x12\x1b\n\x13is_global_namespace\x18\t \x01(\x08\x12\x44\n\x16history_archival_state\x18\n \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x0b \x01(\t\x12G\n\x19visibility_archival_state\x18\x0c \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\r \x01(\t\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1b\n\x19RegisterNamespaceResponse"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x44\n\x10namespace_filter\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceFilter"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\x0b\x32:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"S\n\x18\x44\x65scribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x18\n\x10weak_consistency\x18\x03 \x01(\x08"\x81\x04\n\x19\x44\x65scribeNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\x12\x45\n\x10\x66\x61ilover_history\x18\x06 \x03(\x0b\x32+.temporal.api.replication.v1.FailoverStatus\x12J\n\x12poller_group_infos\x18\x07 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x08 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo"\xcf\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x43\n\x0bupdate_info\x18\x02 \x01(\x0b\x32..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06\x63onfig\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65lete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\x07 \x01(\x08"\xa3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08"F\n\x19\x44\x65precateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0esecurity_token\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65precateNamespaceResponse"\xd1\x0c\n\x1dStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x1f\n\x17request_eager_execution\x18\x11 \x01(\x08\x12;\n\x11\x63ontinued_failure\x18\x12 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x14\x63ompletion_callbacks\x18\x15 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12H\n\x13on_conflict_options\x18\x1a \x01(\x0b\x32+.temporal.api.workflow.v1.OnConflictOptions\x12\x32\n\x08priority\x18\x1b \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\\\n\x1f\x65\x61ger_worker_deployment_options\x18\x1c \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12H\n\x14time_skipping_config\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig"\xaa\x02\n\x1eStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12\x0f\n\x07started\x18\x03 \x01(\x08\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12[\n\x13\x65\x61ger_workflow_task\x18\x02 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12*\n\x04link\x18\x04 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xaa\x02\n"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\x12\x16\n\x0ewait_new_event\x18\x05 \x01(\x08\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0e\x32-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\x07 \x01(\x08"\xba\x01\n#GetWorkflowExecutionHistoryResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x35\n\x0braw_history\x18\x02 \x03(\x0b\x32 .temporal.api.common.v1.DataBlob\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x10\n\x08\x61rchived\x18\x04 \x01(\x08"\xb0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"x\n*GetWorkflowExecutionHistoryReverseResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\xb8\x03\n\x1cPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\n \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12!\n\x19worker_control_task_queue\x18\t \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x04 \x01(\tB\x02\x18\x01\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptionsJ\x04\x08\x07\x10\x08R\x10worker_heartbeat"\xbf\x08\n\x1dPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x05\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12\x31\n\x07history\x18\x08 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x33\n\x05query\x18\n \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1dworkflow_execution_task_queue\x18\x0b \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x32\n\x0escheduled_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\\\n\x07queries\x18\x0e \x03(\x0b\x32K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x12\x33\n\x08messages\x18\x0f \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12Q\n\x17poller_scaling_decision\x18\x10 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x17\n\x0fpoller_group_id\x18\x11 \x01(\t\x12J\n\x12poller_group_infos\x18\x12 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x13 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo\x1aT\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery:\x02\x38\x01"\xba\n\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x32\n\x08\x63ommands\x18\x02 \x03(\x0b\x32 .temporal.api.command.v1.Command\x12\x10\n\x08identity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\x08\x12&\n\x1e\x66orce_create_new_workflow_task\x18\x06 \x01(\x08\x12\x1b\n\x0f\x62inary_checksum\x18\x07 \x01(\tB\x02\x18\x01\x12m\n\rquery_results\x18\x08 \x03(\x0b\x32V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12\x13\n\x0bresource_id\x18\x12 \x01(\t\x12L\n\x14worker_version_stamp\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12H\n\x0csdk_metadata\x18\x0c \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x12g\n\x0c\x63\x61pabilities\x18\x0e \x01(\x0b\x32Q.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities\x12>\n\ndeployment\x18\x0f \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x46\n\x13versioning_behavior\x18\x10 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12O\n\x12\x64\x65ployment_options\x18\x11 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x1b\n\x13worker_instance_key\x18\x13 \x01(\t\x12!\n\x19worker_control_task_queue\x18\x14 \x01(\t\x12\x13\n\x0bpage_number\x18\x15 \x01(\x05\x12\x19\n\x11intermediate_page\x18\x16 \x01(\x08\x1a_\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.temporal.api.query.v1.WorkflowQueryResult:\x02\x38\x01\x1a\x45\n\x0c\x43\x61pabilities\x12\x35\n-discard_speculative_workflow_task_with_events\x18\x01 \x01(\x08"\xf5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0e\x61\x63tivity_tasks\x18\x02 \x03(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1e\n\x16reset_history_event_id\x18\x03 \x01(\x03"\x8d\x04\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12=\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x05 \x01(\tB\x02\x18\x01\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x0b \x01(\t\x12\x33\n\x08messages\x18\x07 \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12\x46\n\x0eworker_version\x18\x08 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\t \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\n \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"#\n!RespondWorkflowTaskFailedResponse"\xe6\x03\n\x1cPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\n \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12!\n\x19worker_control_task_queue\x18\t \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptionsJ\x04\x08\x07\x10\x08R\x10worker_heartbeat"\x9d\t\n\x1dPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x1a\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x08 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\r \x01(\x05\x12<\n\x19schedule_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12Q\n\x17poller_scaling_decision\x18\x12 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x32\n\x08priority\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\x17\n\x0f\x61\x63tivity_run_id\x18\x14 \x01(\t\x12J\n\x12poller_group_infos\x18\x15 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x16 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo"\xa5\x01\n"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x05 \x01(\t"p\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08\x12\x16\n\x0e\x61\x63tivity_reset\x18\x03 \x01(\x08"\xcf\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"t\n\'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08\x12\x16\n\x0e\x61\x63tivity_reset\x18\x03 \x01(\x08"\xfe\x02\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"&\n$RespondActivityTaskCompletedResponse"\xcf\x01\n\'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x30\n\x06result\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"*\n(RespondActivityTaskCompletedByIdResponse"\xbe\x03\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x07 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x08 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"W\n!RespondActivityTaskFailedResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\x8f\x02\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x0bresource_id\x18\x08 \x01(\t"[\n%RespondActivityTaskFailedByIdResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xfe\x02\n"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"%\n#RespondActivityTaskCanceledResponse"\xa0\x02\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x13\n\x0bresource_id\x18\x08 \x01(\t")\n\'RespondActivityTaskCanceledByIdResponse"\x84\x02\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"(\n&RequestCancelWorkflowExecutionResponse"\xde\x02\n\x1eSignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x13\n\x07\x63ontrol\x18\x07 \x01(\tB\x02\x18\x01\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12+\n\x05links\x18\n \x03(\x0b\x32\x1c.temporal.api.common.v1.LinkJ\x04\x08\t\x10\n"M\n\x1fSignalWorkflowExecutionResponse\x12*\n\x04link\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xbb\n\n\'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x13\n\x0bsignal_name\x18\x0c \x01(\t\x12\x36\n\x0csignal_input\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x07\x63ontrol\x18\x0e \x01(\tB\x02\x18\x01\x12\x39\n\x0cretry_policy\x18\x0f \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x12 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x1a \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x1b \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfigJ\x04\x08\x15\x10\x16"\x9e\x01\n(SignalWithStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x04 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08\x12\x31\n\x0bsignal_link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xc1\x03\n\x1dResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12%\n\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12G\n\x12reset_reapply_type\x18\x06 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01\x12S\n\x1breset_reapply_exclude_types\x18\x07 \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeType\x12K\n\x15post_reset_operations\x18\x08 \x03(\x0b\x32,.temporal.api.workflow.v1.PostResetOperation\x12\x10\n\x08identity\x18\t \x01(\t"0\n\x1eResetWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\x9f\x02\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"$\n"TerminateWorkflowExecutionResponse"z\n\x1e\x44\x65leteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"!\n\x1f\x44\x65leteWorkflowExecutionResponse"\xc9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x42\t\n\x07\x66ilters"\x82\x01\n"ListOpenWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8a\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\x07 \x01(\x0b\x32$.temporal.api.filter.v1.StatusFilterH\x00\x42\t\n\x07\x66ilters"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eListWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eScanWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountWorkflowExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x1c\n\x1aGetSearchAttributesRequest"\xc9\x01\n\x1bGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\x0b\x32\x46.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1aT\n\tKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\xe9\x02\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12>\n\x0e\x63ompleted_type\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x36\n\x0cquery_result\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12=\n\x05\x63\x61use\x18\x08 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x17\n\x0fpoller_group_id\x18\t \x01(\tJ\x04\x08\x05\x10\x06"#\n!RespondQueryTaskCompletedResponse"n\n\x1bResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x1e\n\x1cResetStickyTaskQueueResponse"\x9b\x02\n\x15ShutdownWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11sticky_task_queue\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x41\n\x10worker_heartbeat\x18\x05 \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x1b\n\x13worker_instance_key\x18\x06 \x01(\t\x12\x12\n\ntask_queue\x18\x07 \x01(\t\x12>\n\x10task_queue_types\x18\x08 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType"\x18\n\x16ShutdownWorkerResponse"\xe9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x33\n\x05query\x18\x03 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0e\x32+.temporal.api.enums.v1.QueryRejectCondition"\xb9\x01\n\x15QueryWorkflowResponse\x12\x36\n\x0cquery_result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x0equery_rejected\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.QueryRejected\x12*\n\x04link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x99\x05\n!DescribeWorkflowExecutionResponse\x12K\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32\x31.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\x0b\x32-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\x0b\x32\x31.temporal.api.workflow.v1.PendingWorkflowTaskInfo\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.workflow.v1.CallbackInfo\x12U\n\x18pending_nexus_operations\x18\x07 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingNexusOperationInfo\x12W\n\x16workflow_extended_info\x18\x08 \x01(\x0b\x32\x37.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo"\x90\x04\n\x18\x44\x65scribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0ftask_queue_type\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x14\n\x0creport_stats\x18\x08 \x01(\x08\x12\x15\n\rreport_config\x18\x0b \x01(\x08\x12%\n\x19include_task_queue_status\x18\x04 \x01(\x08\x42\x02\x18\x01\x12\x42\n\x08\x61pi_mode\x18\x05 \x01(\x0e\x32,.temporal.api.enums.v1.DescribeTaskQueueModeB\x02\x18\x01\x12J\n\x08versions\x18\x06 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.TaskQueueVersionSelectionB\x02\x18\x01\x12\x42\n\x10task_queue_types\x18\x07 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueTypeB\x02\x18\x01\x12\x1a\n\x0ereport_pollers\x18\t \x01(\x08\x42\x02\x18\x01\x12$\n\x18report_task_reachability\x18\n \x01(\x08\x42\x02\x18\x01"\xec\x07\n\x19\x44\x65scribeTaskQueueResponse\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x05 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\x12q\n\x15stats_by_priority_key\x18\x08 \x03(\x0b\x32R.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.StatsByPriorityKeyEntry\x12K\n\x0fversioning_info\x18\x04 \x01(\x0b\x32\x32.temporal.api.taskqueue.v1.TaskQueueVersioningInfo\x12:\n\x06\x63onfig\x18\x06 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueConfig\x12k\n\x14\x65\x66\x66\x65\x63tive_rate_limit\x18\x07 \x01(\x0b\x32M.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.EffectiveRateLimit\x12I\n\x11task_queue_status\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueStatusB\x02\x18\x01\x12g\n\rversions_info\x18\x03 \x03(\x0b\x32L.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntryB\x02\x18\x01\x1a\x64\n\x17StatsByPriorityKeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats:\x02\x38\x01\x1at\n\x12\x45\x66\x66\x65\x63tiveRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02\x12\x41\n\x11rate_limit_source\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.RateLimitSource\x1a\x64\n\x11VersionsInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.temporal.api.taskqueue.v1.TaskQueueVersionInfo:\x02\x38\x01"\x17\n\x15GetClusterInfoRequest"\xd1\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\x0b\x32M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0cversion_info\x18\x04 \x01(\x0b\x32$.temporal.api.version.v1.VersionInfo\x12\x14\n\x0c\x63luster_name\x18\x05 \x01(\t\x12\x1b\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\x07 \x01(\t\x12\x18\n\x10visibility_store\x18\x08 \x01(\t\x12 \n\x18initial_failover_version\x18\t \x01(\x03\x12"\n\x1a\x66\x61ilover_version_increment\x18\n \x01(\x03\x1a\x37\n\x15SupportedClientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x16\n\x14GetSystemInfoRequest"\xc1\x04\n\x15GetSystemInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12Y\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32\x43.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1a\xb4\x03\n\x0c\x43\x61pabilities\x12\x1f\n\x17signal_and_query_header\x18\x01 \x01(\x08\x12&\n\x1einternal_error_differentiation\x18\x02 \x01(\x08\x12*\n"activity_failure_include_heartbeat\x18\x03 \x01(\x08\x12\x1a\n\x12supports_schedules\x18\x04 \x01(\x08\x12"\n\x1a\x65ncoded_failure_attributes\x18\x05 \x01(\x08\x12!\n\x19\x62uild_id_based_versioning\x18\x06 \x01(\x08\x12\x13\n\x0bupsert_memo\x18\x07 \x01(\x08\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x08 \x01(\x08\x12\x14\n\x0csdk_metadata\x18\t \x01(\x08\x12\'\n\x1f\x63ount_group_by_execution_status\x18\n \x01(\x08\x12\r\n\x05nexus\x18\x0b \x01(\x08\x12!\n\x19server_scaled_deployments\x18\x0c \x01(\x08\x12(\n server_scaled_provider_cloud_run\x18\r \x01(\x08"m\n\x1eListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue"\xdf\x01\n\x1fListTaskQueuePartitionsResponse\x12]\n\x1e\x61\x63tivity_task_queue_partitions\x18\x01 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1eworkflow_task_queue_partitions\x18\x02 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"\xcc\x02\n\x15\x43reateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\x07 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"0\n\x16\x43reateScheduleResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"A\n\x17\x44\x65scribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t"\x8f\x02\n\x18\x44\x65scribeScheduleResponse\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x04 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c"\xa4\x02\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x43\n\x11search_attributes\x18\x07 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12*\n\x04memo\x18\x08 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x18\n\x16UpdateScheduleResponse"\x9c\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x36\n\x05patch\x18\x03 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\x17\n\x15PatchScheduleResponse"\xa8\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n!ListScheduleMatchingTimesResponse\x12.\n\nstart_time\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x15\x44\x65leteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t"\x18\n\x16\x44\x65leteScheduleResponse"l\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\x0b\x32+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"9\n\x15\x43ountSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xdb\x01\n\x16\x43ountSchedulesResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12X\n\x06groups\x18\x02 \x03(\x0b\x32H.temporal.api.workflowservice.v1.CountSchedulesResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x86\x05\n\'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\x1b\x61\x64\x64_new_compatible_build_id\x18\x04 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00\x12h\n\nmerge_sets\x18\x07 \x01(\x0b\x32R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH\x00\x1ao\n\x17\x41\x64\x64NewCompatibleVersion\x12\x14\n\x0cnew_build_id\x18\x01 \x01(\t\x12$\n\x1c\x65xisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\x08\x1aI\n\tMergeSets\x12\x1c\n\x14primary_set_build_id\x18\x01 \x01(\t\x12\x1e\n\x16secondary_set_build_id\x18\x02 \x01(\tB\x0b\n\toperation"@\n(UpdateWorkerBuildIdCompatibilityResponseJ\x04\x08\x01\x10\x02R\x0eversion_set_id"_\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\x08max_sets\x18\x03 \x01(\x05"t\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\x0b\x32/.temporal.api.taskqueue.v1.CompatibleVersionSet"\xb5\r\n"UpdateWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c\x12\x81\x01\n\x16insert_assignment_rule\x18\x04 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRuleH\x00\x12\x83\x01\n\x17replace_assignment_rule\x18\x05 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRuleH\x00\x12\x81\x01\n\x16\x64\x65lete_assignment_rule\x18\x06 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRuleH\x00\x12\x8c\x01\n\x1c\x61\x64\x64_compatible_redirect_rule\x18\x07 \x01(\x0b\x32\x64.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRuleH\x00\x12\x94\x01\n replace_compatible_redirect_rule\x18\x08 \x01(\x0b\x32h.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRuleH\x00\x12\x92\x01\n\x1f\x64\x65lete_compatible_redirect_rule\x18\t \x01(\x0b\x32g.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRuleH\x00\x12l\n\x0f\x63ommit_build_id\x18\n \x01(\x0b\x32Q.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildIdH\x00\x1aq\n\x1bInsertBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x1a\x81\x01\n\x1cReplaceBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x1a@\n\x1b\x44\x65leteBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x1aj\n AddCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1an\n$ReplaceCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1a>\n#DeleteCompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x1a\x37\n\rCommitBuildId\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x42\x0b\n\toperation"\xfc\x01\n#UpdateWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"H\n\x1fGetWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t"\xf9\x01\n GetWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"\x9c\x01\n GetWorkerTaskReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tbuild_ids\x18\x02 \x03(\t\x12\x13\n\x0btask_queues\x18\x03 \x03(\t\x12=\n\x0creachability\x18\x04 \x01(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"r\n!GetWorkerTaskReachabilityResponse\x12M\n\x15\x62uild_id_reachability\x18\x01 \x03(\x0b\x32..temporal.api.taskqueue.v1.BuildIdReachability"\x85\x02\n\x1eUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x16\x66irst_execution_run_id\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy\x12\x30\n\x07request\x18\x05 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\x83\x02\n\x1fUpdateWorkflowExecutionResponse\x12\x35\n\nupdate_ref\x18\x01 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x03 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12*\n\x04link\x18\x04 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xd6\n\n\x1aStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x41\n\nexecutions\x18\x05 \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecutionB\x02\x18\x01\x12<\n\x11target_executions\x18\x16 \x03(\x0b\x32!.temporal.api.common.v1.Execution\x12!\n\x19max_operations_per_second\x18\x06 \x01(\x02\x12Q\n\x15termination_operation\x18\n \x01(\x0b\x32\x30.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\x0b \x01(\x0b\x32+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16\x63\x61ncellation_operation\x18\x0c \x01(\x0b\x32\x31.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12\x64\x65letion_operation\x18\r \x01(\x0b\x32-.temporal.api.batch.v1.BatchOperationDeletionH\x00\x12\x45\n\x0freset_operation\x18\x0e \x01(\x0b\x32*.temporal.api.batch.v1.BatchOperationResetH\x00\x12p\n!update_workflow_options_operation\x18\x0f \x01(\x0b\x32\x43.temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptionsH\x00\x12^\n\x1cunpause_activities_operation\x18\x10 \x01(\x0b\x32\x36.temporal.api.batch.v1.BatchOperationUnpauseActivitiesH\x00\x12Z\n\x1areset_activities_operation\x18\x11 \x01(\x0b\x32\x34.temporal.api.batch.v1.BatchOperationResetActivitiesH\x00\x12g\n!update_activity_options_operation\x18\x12 \x01(\x0b\x32:.temporal.api.batch.v1.BatchOperationUpdateActivityOptionsH\x00\x12\\\n\x1b\x63\x61ncel_activities_operation\x18\x13 \x01(\x0b\x32\x35.temporal.api.batch.v1.BatchOperationCancelActivitiesH\x00\x12\x62\n\x1eterminate_activities_operation\x18\x14 \x01(\x0b\x32\x38.temporal.api.batch.v1.BatchOperationTerminateActivitiesH\x00\x12\\\n\x1b\x64\x65lete_activities_operation\x18\x15 \x01(\x0b\x32\x35.temporal.api.batch.v1.BatchOperationDeleteActivitiesH\x00\x42\x0b\n\toperation"\x1d\n\x1bStartBatchOperationResponse"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t"\x1c\n\x1aStopBatchOperationResponse"B\n\x1d\x44\x65scribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\xd8\x03\n\x1e\x44\x65scribeBatchOperationResponse\x12\x41\n\x0eoperation_type\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18\x63omplete_operation_count\x18\x07 \x01(\x03\x12\x1f\n\x17\x66\x61ilure_operation_count\x18\x08 \x01(\x03\x12\x10\n\x08identity\x18\t \x01(\t\x12\x0e\n\x06reason\x18\n \x01(\t\x12\r\n\x05query\x18\x0b \x01(\t\x12\x35\n\nexecutions\x18\x0c \x03(\x0b\x32!.temporal.api.common.v1.Execution"[\n\x1aListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"y\n\x1bListBatchOperationsResponse\x12\x41\n\x0eoperation_info\x18\x01 \x03(\x0b\x32).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xb9\x01\n"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\nupdate_ref\x18\x02 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy"\xdb\x01\n#PollWorkflowExecutionUpdateResponse\x12\x30\n\x07outcome\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12\x35\n\nupdate_ref\x18\x03 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef"\xa0\x03\n\x19PollNexusTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\t \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x41\n\x10worker_heartbeat\x18\x07 \x03(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat"\xe2\x02\n\x1aPollNexusTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12/\n\x07request\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Request\x12Q\n\x17poller_scaling_decision\x18\x03 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x17\n\x0fpoller_group_id\x18\x04 \x01(\t\x12J\n\x12poller_group_infos\x18\x05 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x06 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo"\xa7\x01\n RespondNexusTaskCompletedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x31\n\x08response\x18\x04 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Response\x12\x17\n\x0fpoller_group_id\x18\x05 \x01(\t"#\n!RespondNexusTaskCompletedResponse"\xdc\x01\n\x1dRespondNexusTaskFailedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x36\n\x05\x65rror\x18\x04 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerErrorB\x02\x18\x01\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x17\n\x0fpoller_group_id\x18\x06 \x01(\t" \n\x1eRespondNexusTaskFailedResponse"\xf4\x02\n\x1c\x45xecuteMultiOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12[\n\noperations\x18\x02 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation\x12\x13\n\x0bresource_id\x18\x03 \x01(\t\x1a\xce\x01\n\tOperation\x12X\n\x0estart_workflow\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestH\x00\x12Z\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequestH\x00\x42\x0b\n\toperation"\xcc\x02\n\x1d\x45xecuteMultiOperationResponse\x12Z\n\tresponses\x18\x01 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response\x1a\xce\x01\n\x08Response\x12Y\n\x0estart_workflow\x18\x01 \x01(\x0b\x32?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponseH\x00\x12[\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponseH\x00\x42\n\n\x08response"\xd0\x02\n\x1cUpdateActivityOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x04 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0c\n\x02id\x18\x06 \x01(\tH\x00\x12\x0e\n\x04type\x18\x07 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\t \x01(\x08H\x00\x12\x18\n\x10restore_original\x18\x08 \x01(\x08\x42\n\n\x08\x61\x63tivity"\xbf\x02\n%UpdateActivityExecutionOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x06 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x18\n\x10restore_original\x18\x08 \x01(\x08\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t"d\n\x1dUpdateActivityOptionsResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"m\n&UpdateActivityExecutionOptionsResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"\xc7\x01\n\x14PauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12\x12\n\nrequest_id\x18\x07 \x01(\tB\n\n\x08\x61\x63tivity"\xb7\x01\n\x1dPauseActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t\x12\x12\n\nrequest_id\x18\x08 \x01(\t"\x17\n\x15PauseActivityResponse" \n\x1ePauseActivityExecutionResponse"\x98\x02\n\x16UnpauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x15\n\x0bunpause_all\x18\x06 \x01(\x08H\x00\x12\x16\n\x0ereset_attempts\x18\x07 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x08 \x01(\x08\x12)\n\x06jitter\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\n\n\x08\x61\x63tivity"\x91\x02\n\x1fUnpauseActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x08 \x01(\t\x12)\n\x06jitter\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0bresource_id\x18\n \x01(\t\x12\x12\n\nrequest_id\x18\x0b \x01(\tJ\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08R\x0ereset_attemptsR\x0freset_heartbeat"\x19\n\x17UnpauseActivityResponse""\n UnpauseActivityExecutionResponse"\xb3\x02\n\x14ResetActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\n \x01(\x08H\x00\x12\x17\n\x0freset_heartbeat\x18\x06 \x01(\x08\x12\x13\n\x0bkeep_paused\x18\x07 \x01(\x08\x12)\n\x06jitter\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18restore_original_options\x18\t \x01(\x08\x42\n\n\x08\x61\x63tivity"\xa2\x02\n\x1dResetActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0bkeep_paused\x18\x06 \x01(\x08\x12)\n\x06jitter\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18restore_original_options\x18\x08 \x01(\x08\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12\x17\n\x0freset_heartbeat\x18\x0b \x01(\x08"\x17\n\x15ResetActivityResponse" \n\x1eResetActivityExecutionResponse"\x9c\x02\n%UpdateWorkflowExecutionOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12V\n\x1aworkflow_execution_options\x18\x03 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08identity\x18\x05 \x01(\t"\xb1\x01\n&UpdateWorkflowExecutionOptionsResponse\x12V\n\x1aworkflow_execution_options\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"j\n\x19\x44\x65scribeDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"a\n\x1a\x44\x65scribeDeploymentResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"\xc2\x01\n&DescribeWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x03 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1f\n\x17report_task_queue_stats\x18\x04 \x01(\x08"\x8c\x05\n\'DescribeWorkerDeploymentVersionResponse\x12_\n\x1eworker_deployment_version_info\x18\x01 \x01(\x0b\x32\x37.temporal.api.deployment.v1.WorkerDeploymentVersionInfo\x12v\n\x13version_task_queues\x18\x02 \x03(\x0b\x32Y.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue\x1a\x87\x03\n\x10VersionTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x38\n\x05stats\x18\x03 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\x12\x90\x01\n\x15stats_by_priority_key\x18\x04 \x03(\x0b\x32q.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntry\x1a\x64\n\x17StatsByPriorityKeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats:\x02\x38\x01"M\n\x1f\x44\x65scribeWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t"\x8c\x01\n DescribeWorkerDeploymentResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12P\n\x16worker_deployment_info\x18\x02 \x01(\x0b\x32\x30.temporal.api.deployment.v1.WorkerDeploymentInfo"l\n\x16ListDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x13\n\x0bseries_name\x18\x04 \x01(\t"w\n\x17ListDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12\x43\n\x0b\x64\x65ployments\x18\x02 \x03(\x0b\x32..temporal.api.deployment.v1.DeploymentListInfo"\xcd\x01\n\x1bSetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12\x10\n\x08identity\x18\x03 \x01(\t\x12M\n\x0fupdate_metadata\x18\x04 \x01(\x0b\x32\x34.temporal.api.deployment.v1.UpdateDeploymentMetadata"\xb9\x01\n\x1cSetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12L\n\x18previous_deployment_info\x18\x02 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"\xe5\x01\n(SetWorkerDeploymentCurrentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x13\n\x07version\x18\x03 \x01(\tB\x02\x18\x01\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x06 \x01(\x08\x12\x18\n\x10\x61llow_no_pollers\x18\t \x01(\x08"\xbf\x01\n)SetWorkerDeploymentCurrentVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x1c\n\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01\x12\\\n\x1bprevious_deployment_version\x18\x03 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01"\xf9\x01\n(SetWorkerDeploymentRampingVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x13\n\x07version\x18\x03 \x01(\tB\x02\x18\x01\x12\x10\n\x08\x62uild_id\x18\x08 \x01(\t\x12\x12\n\npercentage\x18\x04 \x01(\x02\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\x12\x10\n\x08identity\x18\x06 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x07 \x01(\x08\x12\x18\n\x10\x61llow_no_pollers\x18\n \x01(\x08"\xe0\x01\n)SetWorkerDeploymentRampingVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x1c\n\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01\x12\\\n\x1bprevious_deployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01\x12\x1f\n\x13previous_percentage\x18\x03 \x01(\x02\x42\x02\x18\x01"q\n\x1d\x43reateWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"8\n\x1e\x43reateWorkerDeploymentResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"]\n\x1cListWorkerDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\x9f\x05\n\x1dListWorkerDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12r\n\x12worker_deployments\x18\x02 \x03(\x0b\x32V.temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary\x1a\xf0\x03\n\x17WorkerDeploymentSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0erouting_config\x18\x03 \x01(\x0b\x32).temporal.api.deployment.v1.RoutingConfig\x12o\n\x16latest_version_summary\x18\x04 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12p\n\x17\x63urrent_version_summary\x18\x05 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12p\n\x17ramping_version_summary\x18\x06 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary"\xf0\x01\n$CreateWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12>\n\x0e\x63ompute_config\x18\x04 \x01(\x0b\x32&.temporal.api.compute.v1.ComputeConfig\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\'\n%CreateWorkerDeploymentVersionResponse"\xc8\x01\n$DeleteWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x15\n\rskip_drainage\x18\x03 \x01(\x08\x12\x10\n\x08identity\x18\x04 \x01(\t"\'\n%DeleteWorkerDeploymentVersionResponse"]\n\x1d\x44\x65leteWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t" \n\x1e\x44\x65leteWorkerDeploymentResponse"\x84\x04\n1UpdateWorkerDeploymentVersionComputeConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x99\x01\n\x1d\x63ompute_config_scaling_groups\x18\x06 \x03(\x0b\x32r.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry\x12,\n$remove_compute_config_scaling_groups\x18\x07 \x03(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x1a{\n\x1f\x43omputeConfigScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.temporal.api.compute.v1.ComputeConfigScalingGroupUpdate:\x02\x38\x01"4\n2UpdateWorkerDeploymentVersionComputeConfigResponse"\xf4\x03\n3ValidateWorkerDeploymentVersionComputeConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x9b\x01\n\x1d\x63ompute_config_scaling_groups\x18\x06 \x03(\x0b\x32t.temporal.api.workflowservice.v1.ValidateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry\x12,\n$remove_compute_config_scaling_groups\x18\x07 \x03(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x1a{\n\x1f\x43omputeConfigScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.temporal.api.compute.v1.ComputeConfigScalingGroupUpdate:\x02\x38\x01"6\n4ValidateWorkerDeploymentVersionComputeConfigResponse"\xa2\x03\n,UpdateWorkerDeploymentVersionMetadataRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12x\n\x0eupsert_entries\x18\x03 \x03(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry\x12\x16\n\x0eremove_entries\x18\x04 \x03(\t\x12\x10\n\x08identity\x18\x06 \x01(\t\x1aU\n\x12UpsertEntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"n\n-UpdateWorkerDeploymentVersionMetadataResponse\x12=\n\x08metadata\x18\x01 \x01(\x0b\x32+.temporal.api.deployment.v1.VersionMetadata"\xbd\x01\n!SetWorkerDeploymentManagerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x1a\n\x10manager_identity\x18\x03 \x01(\tH\x00\x12\x0e\n\x04self\x18\x04 \x01(\x08H\x00\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\x12\x10\n\x08identity\x18\x06 \x01(\tB\x16\n\x14new_manager_identity"c\n"SetWorkerDeploymentManagerResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12%\n\x19previous_manager_identity\x18\x02 \x01(\tB\x02\x18\x01"E\n\x1bGetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bseries_name\x18\x02 \x01(\t"k\n\x1cGetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"q\n GetDeploymentReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"\xe3\x01\n!GetDeploymentReachabilityResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12\x43\n\x0creachability\x18\x02 \x01(\x0e\x32-.temporal.api.enums.v1.DeploymentReachability\x12\x34\n\x10last_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb4\x01\n\x19\x43reateWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\x04spec\x18\x02 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpec\x12\x12\n\nforce_scan\x18\x03 \x01(\x08\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t"_\n\x1a\x43reateWorkflowRuleResponse\x12\x31\n\x04rule\x18\x01 \x01(\x0b\x32#.temporal.api.rules.v1.WorkflowRule\x12\x0e\n\x06job_id\x18\x02 \x01(\t"A\n\x1b\x44\x65scribeWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t"Q\n\x1c\x44\x65scribeWorkflowRuleResponse\x12\x31\n\x04rule\x18\x01 \x01(\x0b\x32#.temporal.api.rules.v1.WorkflowRule"?\n\x19\x44\x65leteWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65leteWorkflowRuleResponse"F\n\x18ListWorkflowRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"h\n\x19ListWorkflowRulesResponse\x12\x32\n\x05rules\x18\x01 \x03(\x0b\x32#.temporal.api.rules.v1.WorkflowRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xce\x01\n\x1aTriggerWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x37\n\x04spec\x18\x05 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpecH\x00\x12\x10\n\x08identity\x18\x03 \x01(\tB\x06\n\x04rule".\n\x1bTriggerWorkflowRuleResponse\x12\x0f\n\x07\x61pplied\x18\x01 \x01(\x08"\x9b\x01\n\x1cRecordWorkerHeartbeatRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x41\n\x10worker_heartbeat\x18\x03 \x03(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x13\n\x0bresource_id\x18\x04 \x01(\t"\x1f\n\x1dRecordWorkerHeartbeatResponse"\x82\x01\n\x12ListWorkersRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t\x12\x1e\n\x16include_system_workers\x18\x05 \x01(\x08"\xa5\x01\n\x13ListWorkersResponse\x12<\n\x0cworkers_info\x18\x01 \x03(\x0b\x32".temporal.api.worker.v1.WorkerInfoB\x02\x18\x01\x12\x37\n\x07workers\x18\x03 \x03(\x0b\x32&.temporal.api.worker.v1.WorkerListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xd5\x05\n\x1cUpdateTaskQueueConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_queue\x18\x03 \x01(\t\x12=\n\x0ftask_queue_type\x18\x04 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12n\n\x17update_queue_rate_limit\x18\x05 \x01(\x0b\x32M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate\x12}\n&update_fairness_key_rate_limit_default\x18\x06 \x01(\x0b\x32M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate\x12\x84\x01\n\x1dset_fairness_weight_overrides\x18\x07 \x03(\x0b\x32].temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.SetFairnessWeightOverridesEntry\x12\'\n\x1funset_fairness_weight_overrides\x18\x08 \x03(\t\x1a[\n\x0fRateLimitUpdate\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12\x0e\n\x06reason\x18\x02 \x01(\t\x1a\x41\n\x1fSetFairnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01"[\n\x1dUpdateTaskQueueConfigResponse\x12:\n\x06\x63onfig\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueConfig"\x9e\x01\n\x18\x46\x65tchWorkerConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x38\n\x08selector\x18\x06 \x01(\x0b\x32&.temporal.api.common.v1.WorkerSelector\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"U\n\x19\x46\x65tchWorkerConfigResponse\x12\x38\n\rworker_config\x18\x01 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfig"\x8a\x02\n\x19UpdateWorkerConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x38\n\rworker_config\x18\x04 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfig\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x38\n\x08selector\x18\x06 \x01(\x0b\x32&.temporal.api.common.v1.WorkerSelector\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"d\n\x1aUpdateWorkerConfigResponse\x12:\n\rworker_config\x18\x01 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfigH\x00\x42\n\n\x08response"G\n\x15\x44\x65scribeWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x02 \x01(\t"Q\n\x16\x44\x65scribeWorkerResponse\x12\x37\n\x0bworker_info\x18\x01 \x01(\x0b\x32".temporal.api.worker.v1.WorkerInfo"W\n\x13\x43ountWorkersRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x1e\n\x16include_system_workers\x18\x03 \x01(\x08"%\n\x14\x43ountWorkersResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03"\x8d\x01\n\x1dPauseWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x0e\n\x06reason\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t" \n\x1ePauseWorkflowExecutionResponse"\x8f\x01\n\x1fUnpauseWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x0e\n\x06reason\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t""\n UnpauseWorkflowExecutionResponse"\x99\t\n\x1dStartActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x06 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12/\n\x05input\x18\x0c \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x45\n\x0fid_reuse_policy\x18\r \x01(\x0e\x32,.temporal.api.enums.v1.ActivityIdReusePolicy\x12K\n\x12id_conflict_policy\x18\x0e \x01(\x0e\x32/.temporal.api.enums.v1.ActivityIdConflictPolicy\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x11 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12\x32\n\x08priority\x18\x12 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12>\n\x14\x63ompletion_callbacks\x18\x13 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12+\n\x05links\x18\x14 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x46\n\x13on_conflict_options\x18\x15 \x01(\x0b\x32).temporal.api.common.v1.OnConflictOptions\x12.\n\x0bstart_delay\x18\x16 \x01(\x0b\x32\x19.google.protobuf.Duration"m\n\x1eStartActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08\x12*\n\x04link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xe4\x01\n DescribeActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x15\n\rinclude_input\x18\x04 \x01(\x08\x12\x17\n\x0finclude_outcome\x18\x05 \x01(\x08\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c\x12!\n\x19include_heartbeat_details\x18\x07 \x01(\x08\x12\x1c\n\x14include_last_failure\x18\x08 \x01(\x08"\xbc\x02\n!DescribeActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12=\n\x04info\x18\x02 \x01(\x0b\x32/.temporal.api.activity.v1.ActivityExecutionInfo\x12/\n\x05input\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x43\n\x07outcome\x18\x04 \x01(\x0b\x32\x32.temporal.api.activity.v1.ActivityExecutionOutcome\x12\x17\n\x0flong_poll_token\x18\x05 \x01(\x0c\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.activity.v1.CallbackInfo"V\n\x1cPollActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"t\n\x1dPollActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x43\n\x07outcome\x18\x02 \x01(\x0b\x32\x32.temporal.api.activity.v1.ActivityExecutionOutcome"m\n\x1dListActivityExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x82\x01\n\x1eListActivityExecutionsResponse\x12G\n\nexecutions\x18\x01 \x03(\x0b\x32\x33.temporal.api.activity.v1.ActivityExecutionListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xd1\x06\n#StartNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x14\n\x0coperation_id\x18\x04 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x05 \x01(\t\x12\x0f\n\x07service\x18\x06 \x01(\t\x12\x11\n\toperation\x18\x07 \x01(\t\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x05input\x18\x0b \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12K\n\x0fid_reuse_policy\x18\x0c \x01(\x0e\x32\x32.temporal.api.enums.v1.NexusOperationIdReusePolicy\x12Q\n\x12id_conflict_policy\x18\r \x01(\x0e\x32\x35.temporal.api.enums.v1.NexusOperationIdConflictPolicy\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12k\n\x0cnexus_header\x18\x0f \x03(\x0b\x32U.temporal.api.workflowservice.v1.StartNexusOperationExecutionRequest.NexusHeaderEntry\x12\x38\n\ruser_metadata\x18\x10 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"G\n$StartNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08"\xaa\x01\n&DescribeNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x15\n\rinclude_input\x18\x04 \x01(\x08\x12\x17\n\x0finclude_outcome\x18\x05 \x01(\x08\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c"\xb7\x02\n\'DescribeNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12@\n\x04info\x18\x02 \x01(\x0b\x32\x32.temporal.api.nexus.v1.NexusOperationExecutionInfo\x12.\n\x05input\x18\x03 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x31\n\x06result\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x33\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c\x42\t\n\x07outcome"\xa1\x01\n"PollNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x42\n\nwait_stage\x18\x04 \x01(\x0e\x32..temporal.api.enums.v1.NexusOperationWaitStage"\x85\x02\n#PollNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x42\n\nwait_stage\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.NexusOperationWaitStage\x12\x17\n\x0foperation_token\x18\x03 \x01(\t\x12\x31\n\x06result\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x33\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07outcome"s\n#ListNexusOperationExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x8b\x01\n$ListNexusOperationExecutionsResponse\x12J\n\noperations\x18\x01 \x03(\x0b\x32\x36.temporal.api.nexus.v1.NexusOperationExecutionListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountActivityExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountActivityExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountActivityExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"H\n$CountNexusOperationExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xf9\x01\n%CountNexusOperationExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12g\n\x06groups\x18\x02 \x03(\x0b\x32W.temporal.api.workflowservice.v1.CountNexusOperationExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x95\x01\n%RequestCancelActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"(\n&RequestCancelActivityExecutionResponse"\x91\x01\n!TerminateActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"$\n"TerminateActivityExecutionResponse"X\n\x1e\x44\x65leteActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"!\n\x1f\x44\x65leteActivityExecutionResponse"\x9c\x01\n+RequestCancelNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t".\n,RequestCancelNexusOperationExecutionResponse"\x98\x01\n\'TerminateNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"*\n(TerminateNexusOperationExecutionResponse"_\n$DeleteNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"\'\n%DeleteNexusOperationExecutionResponse"\x9d\x01\n(PollWorkflowExecutionTimeSkippingRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x17\n\x0f\x66\x61st_forward_id\x18\x03 \x01(\t"\xe8\x01\n)PollWorkflowExecutionTimeSkippingResponse\x12T\n\x1b\x66\x61st_forward_polling_result\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.FastForwardPollingResult\x12\x15\n\rfailed_reason\x18\x02 \x01(\t\x12N\n\x11\x66\x61st_forward_info\x18\x03 \x01(\x0b\x32\x33.temporal.api.common.v1.TimeSkippingFastForwardInfoB\xbe\x01\n"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' -) - - -_REGISTERNAMESPACEREQUEST = DESCRIPTOR.message_types_by_name["RegisterNamespaceRequest"] -_REGISTERNAMESPACEREQUEST_DATAENTRY = _REGISTERNAMESPACEREQUEST.nested_types_by_name[ - "DataEntry" -] -_REGISTERNAMESPACERESPONSE = DESCRIPTOR.message_types_by_name[ - "RegisterNamespaceResponse" -] -_LISTNAMESPACESREQUEST = DESCRIPTOR.message_types_by_name["ListNamespacesRequest"] -_LISTNAMESPACESRESPONSE = DESCRIPTOR.message_types_by_name["ListNamespacesResponse"] -_DESCRIBENAMESPACEREQUEST = DESCRIPTOR.message_types_by_name["DescribeNamespaceRequest"] -_DESCRIBENAMESPACERESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeNamespaceResponse" -] -_UPDATENAMESPACEREQUEST = DESCRIPTOR.message_types_by_name["UpdateNamespaceRequest"] -_UPDATENAMESPACERESPONSE = DESCRIPTOR.message_types_by_name["UpdateNamespaceResponse"] -_DEPRECATENAMESPACEREQUEST = DESCRIPTOR.message_types_by_name[ - "DeprecateNamespaceRequest" -] -_DEPRECATENAMESPACERESPONSE = DESCRIPTOR.message_types_by_name[ - "DeprecateNamespaceResponse" -] -_STARTWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "StartWorkflowExecutionRequest" -] -_STARTWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "StartWorkflowExecutionResponse" -] -_GETWORKFLOWEXECUTIONHISTORYREQUEST = DESCRIPTOR.message_types_by_name[ - "GetWorkflowExecutionHistoryRequest" -] -_GETWORKFLOWEXECUTIONHISTORYRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetWorkflowExecutionHistoryResponse" -] -_GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST = DESCRIPTOR.message_types_by_name[ - "GetWorkflowExecutionHistoryReverseRequest" -] -_GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE = DESCRIPTOR.message_types_by_name[ - "GetWorkflowExecutionHistoryReverseResponse" -] -_POLLWORKFLOWTASKQUEUEREQUEST = DESCRIPTOR.message_types_by_name[ - "PollWorkflowTaskQueueRequest" -] -_POLLWORKFLOWTASKQUEUERESPONSE = DESCRIPTOR.message_types_by_name[ - "PollWorkflowTaskQueueResponse" -] -_POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY = ( - _POLLWORKFLOWTASKQUEUERESPONSE.nested_types_by_name["QueriesEntry"] -) -_RESPONDWORKFLOWTASKCOMPLETEDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondWorkflowTaskCompletedRequest" -] -_RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY = ( - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST.nested_types_by_name["QueryResultsEntry"] -) -_RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES = ( - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST.nested_types_by_name["Capabilities"] -) -_RESPONDWORKFLOWTASKCOMPLETEDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondWorkflowTaskCompletedResponse" -] -_RESPONDWORKFLOWTASKFAILEDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondWorkflowTaskFailedRequest" -] -_RESPONDWORKFLOWTASKFAILEDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondWorkflowTaskFailedResponse" -] -_POLLACTIVITYTASKQUEUEREQUEST = DESCRIPTOR.message_types_by_name[ - "PollActivityTaskQueueRequest" -] -_POLLACTIVITYTASKQUEUERESPONSE = DESCRIPTOR.message_types_by_name[ - "PollActivityTaskQueueResponse" -] -_RECORDACTIVITYTASKHEARTBEATREQUEST = DESCRIPTOR.message_types_by_name[ - "RecordActivityTaskHeartbeatRequest" -] -_RECORDACTIVITYTASKHEARTBEATRESPONSE = DESCRIPTOR.message_types_by_name[ - "RecordActivityTaskHeartbeatResponse" -] -_RECORDACTIVITYTASKHEARTBEATBYIDREQUEST = DESCRIPTOR.message_types_by_name[ - "RecordActivityTaskHeartbeatByIdRequest" -] -_RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RecordActivityTaskHeartbeatByIdResponse" -] -_RESPONDACTIVITYTASKCOMPLETEDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskCompletedRequest" -] -_RESPONDACTIVITYTASKCOMPLETEDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskCompletedResponse" -] -_RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskCompletedByIdRequest" -] -_RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskCompletedByIdResponse" -] -_RESPONDACTIVITYTASKFAILEDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskFailedRequest" -] -_RESPONDACTIVITYTASKFAILEDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskFailedResponse" -] -_RESPONDACTIVITYTASKFAILEDBYIDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskFailedByIdRequest" -] -_RESPONDACTIVITYTASKFAILEDBYIDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskFailedByIdResponse" -] -_RESPONDACTIVITYTASKCANCELEDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskCanceledRequest" -] -_RESPONDACTIVITYTASKCANCELEDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskCanceledResponse" -] -_RESPONDACTIVITYTASKCANCELEDBYIDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskCanceledByIdRequest" -] -_RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondActivityTaskCanceledByIdResponse" -] -_REQUESTCANCELWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "RequestCancelWorkflowExecutionRequest" -] -_REQUESTCANCELWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "RequestCancelWorkflowExecutionResponse" -] -_SIGNALWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "SignalWorkflowExecutionRequest" -] -_SIGNALWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "SignalWorkflowExecutionResponse" -] -_SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "SignalWithStartWorkflowExecutionRequest" -] -_SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "SignalWithStartWorkflowExecutionResponse" -] -_RESETWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "ResetWorkflowExecutionRequest" -] -_RESETWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "ResetWorkflowExecutionResponse" -] -_TERMINATEWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "TerminateWorkflowExecutionRequest" -] -_TERMINATEWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "TerminateWorkflowExecutionResponse" -] -_DELETEWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteWorkflowExecutionRequest" -] -_DELETEWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteWorkflowExecutionResponse" -] -_LISTOPENWORKFLOWEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListOpenWorkflowExecutionsRequest" -] -_LISTOPENWORKFLOWEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListOpenWorkflowExecutionsResponse" -] -_LISTCLOSEDWORKFLOWEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListClosedWorkflowExecutionsRequest" -] -_LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListClosedWorkflowExecutionsResponse" -] -_LISTWORKFLOWEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListWorkflowExecutionsRequest" -] -_LISTWORKFLOWEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListWorkflowExecutionsResponse" -] -_LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListArchivedWorkflowExecutionsRequest" -] -_LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListArchivedWorkflowExecutionsResponse" -] -_SCANWORKFLOWEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "ScanWorkflowExecutionsRequest" -] -_SCANWORKFLOWEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ScanWorkflowExecutionsResponse" -] -_COUNTWORKFLOWEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "CountWorkflowExecutionsRequest" -] -_COUNTWORKFLOWEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "CountWorkflowExecutionsResponse" -] -_COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP = ( - _COUNTWORKFLOWEXECUTIONSRESPONSE.nested_types_by_name["AggregationGroup"] -) -_GETSEARCHATTRIBUTESREQUEST = DESCRIPTOR.message_types_by_name[ - "GetSearchAttributesRequest" -] -_GETSEARCHATTRIBUTESRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetSearchAttributesResponse" -] -_GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY = ( - _GETSEARCHATTRIBUTESRESPONSE.nested_types_by_name["KeysEntry"] -) -_RESPONDQUERYTASKCOMPLETEDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondQueryTaskCompletedRequest" -] -_RESPONDQUERYTASKCOMPLETEDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondQueryTaskCompletedResponse" -] -_RESETSTICKYTASKQUEUEREQUEST = DESCRIPTOR.message_types_by_name[ - "ResetStickyTaskQueueRequest" -] -_RESETSTICKYTASKQUEUERESPONSE = DESCRIPTOR.message_types_by_name[ - "ResetStickyTaskQueueResponse" -] -_SHUTDOWNWORKERREQUEST = DESCRIPTOR.message_types_by_name["ShutdownWorkerRequest"] -_SHUTDOWNWORKERRESPONSE = DESCRIPTOR.message_types_by_name["ShutdownWorkerResponse"] -_QUERYWORKFLOWREQUEST = DESCRIPTOR.message_types_by_name["QueryWorkflowRequest"] -_QUERYWORKFLOWRESPONSE = DESCRIPTOR.message_types_by_name["QueryWorkflowResponse"] -_DESCRIBEWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DescribeWorkflowExecutionRequest" -] -_DESCRIBEWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeWorkflowExecutionResponse" -] -_DESCRIBETASKQUEUEREQUEST = DESCRIPTOR.message_types_by_name["DescribeTaskQueueRequest"] -_DESCRIBETASKQUEUERESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeTaskQueueResponse" -] -_DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY = ( - _DESCRIBETASKQUEUERESPONSE.nested_types_by_name["StatsByPriorityKeyEntry"] -) -_DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT = ( - _DESCRIBETASKQUEUERESPONSE.nested_types_by_name["EffectiveRateLimit"] -) -_DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY = ( - _DESCRIBETASKQUEUERESPONSE.nested_types_by_name["VersionsInfoEntry"] -) -_GETCLUSTERINFOREQUEST = DESCRIPTOR.message_types_by_name["GetClusterInfoRequest"] -_GETCLUSTERINFORESPONSE = DESCRIPTOR.message_types_by_name["GetClusterInfoResponse"] -_GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY = ( - _GETCLUSTERINFORESPONSE.nested_types_by_name["SupportedClientsEntry"] -) -_GETSYSTEMINFOREQUEST = DESCRIPTOR.message_types_by_name["GetSystemInfoRequest"] -_GETSYSTEMINFORESPONSE = DESCRIPTOR.message_types_by_name["GetSystemInfoResponse"] -_GETSYSTEMINFORESPONSE_CAPABILITIES = _GETSYSTEMINFORESPONSE.nested_types_by_name[ - "Capabilities" -] -_LISTTASKQUEUEPARTITIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListTaskQueuePartitionsRequest" -] -_LISTTASKQUEUEPARTITIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListTaskQueuePartitionsResponse" -] -_CREATESCHEDULEREQUEST = DESCRIPTOR.message_types_by_name["CreateScheduleRequest"] -_CREATESCHEDULERESPONSE = DESCRIPTOR.message_types_by_name["CreateScheduleResponse"] -_DESCRIBESCHEDULEREQUEST = DESCRIPTOR.message_types_by_name["DescribeScheduleRequest"] -_DESCRIBESCHEDULERESPONSE = DESCRIPTOR.message_types_by_name["DescribeScheduleResponse"] -_UPDATESCHEDULEREQUEST = DESCRIPTOR.message_types_by_name["UpdateScheduleRequest"] -_UPDATESCHEDULERESPONSE = DESCRIPTOR.message_types_by_name["UpdateScheduleResponse"] -_PATCHSCHEDULEREQUEST = DESCRIPTOR.message_types_by_name["PatchScheduleRequest"] -_PATCHSCHEDULERESPONSE = DESCRIPTOR.message_types_by_name["PatchScheduleResponse"] -_LISTSCHEDULEMATCHINGTIMESREQUEST = DESCRIPTOR.message_types_by_name[ - "ListScheduleMatchingTimesRequest" -] -_LISTSCHEDULEMATCHINGTIMESRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListScheduleMatchingTimesResponse" -] -_DELETESCHEDULEREQUEST = DESCRIPTOR.message_types_by_name["DeleteScheduleRequest"] -_DELETESCHEDULERESPONSE = DESCRIPTOR.message_types_by_name["DeleteScheduleResponse"] -_LISTSCHEDULESREQUEST = DESCRIPTOR.message_types_by_name["ListSchedulesRequest"] -_LISTSCHEDULESRESPONSE = DESCRIPTOR.message_types_by_name["ListSchedulesResponse"] -_COUNTSCHEDULESREQUEST = DESCRIPTOR.message_types_by_name["CountSchedulesRequest"] -_COUNTSCHEDULESRESPONSE = DESCRIPTOR.message_types_by_name["CountSchedulesResponse"] -_COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP = _COUNTSCHEDULESRESPONSE.nested_types_by_name[ - "AggregationGroup" -] -_UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerBuildIdCompatibilityRequest" -] -_UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION = ( - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST.nested_types_by_name[ - "AddNewCompatibleVersion" - ] -) -_UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS = ( - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST.nested_types_by_name["MergeSets"] -) -_UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerBuildIdCompatibilityResponse" -] -_GETWORKERBUILDIDCOMPATIBILITYREQUEST = DESCRIPTOR.message_types_by_name[ - "GetWorkerBuildIdCompatibilityRequest" -] -_GETWORKERBUILDIDCOMPATIBILITYRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetWorkerBuildIdCompatibilityResponse" -] -_UPDATEWORKERVERSIONINGRULESREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerVersioningRulesRequest" -] -_UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE = ( - _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ - "InsertBuildIdAssignmentRule" - ] -) -_UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE = ( - _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ - "ReplaceBuildIdAssignmentRule" - ] -) -_UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE = ( - _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ - "DeleteBuildIdAssignmentRule" - ] -) -_UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE = ( - _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ - "AddCompatibleBuildIdRedirectRule" - ] -) -_UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE = ( - _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ - "ReplaceCompatibleBuildIdRedirectRule" - ] -) -_UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE = ( - _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name[ - "DeleteCompatibleBuildIdRedirectRule" - ] -) -_UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID = ( - _UPDATEWORKERVERSIONINGRULESREQUEST.nested_types_by_name["CommitBuildId"] -) -_UPDATEWORKERVERSIONINGRULESRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerVersioningRulesResponse" -] -_GETWORKERVERSIONINGRULESREQUEST = DESCRIPTOR.message_types_by_name[ - "GetWorkerVersioningRulesRequest" -] -_GETWORKERVERSIONINGRULESRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetWorkerVersioningRulesResponse" -] -_GETWORKERTASKREACHABILITYREQUEST = DESCRIPTOR.message_types_by_name[ - "GetWorkerTaskReachabilityRequest" -] -_GETWORKERTASKREACHABILITYRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetWorkerTaskReachabilityResponse" -] -_UPDATEWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateWorkflowExecutionRequest" -] -_UPDATEWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateWorkflowExecutionResponse" -] -_STARTBATCHOPERATIONREQUEST = DESCRIPTOR.message_types_by_name[ - "StartBatchOperationRequest" -] -_STARTBATCHOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "StartBatchOperationResponse" -] -_STOPBATCHOPERATIONREQUEST = DESCRIPTOR.message_types_by_name[ - "StopBatchOperationRequest" -] -_STOPBATCHOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "StopBatchOperationResponse" -] -_DESCRIBEBATCHOPERATIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DescribeBatchOperationRequest" -] -_DESCRIBEBATCHOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeBatchOperationResponse" -] -_LISTBATCHOPERATIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListBatchOperationsRequest" -] -_LISTBATCHOPERATIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListBatchOperationsResponse" -] -_POLLWORKFLOWEXECUTIONUPDATEREQUEST = DESCRIPTOR.message_types_by_name[ - "PollWorkflowExecutionUpdateRequest" -] -_POLLWORKFLOWEXECUTIONUPDATERESPONSE = DESCRIPTOR.message_types_by_name[ - "PollWorkflowExecutionUpdateResponse" -] -_POLLNEXUSTASKQUEUEREQUEST = DESCRIPTOR.message_types_by_name[ - "PollNexusTaskQueueRequest" -] -_POLLNEXUSTASKQUEUERESPONSE = DESCRIPTOR.message_types_by_name[ - "PollNexusTaskQueueResponse" -] -_RESPONDNEXUSTASKCOMPLETEDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondNexusTaskCompletedRequest" -] -_RESPONDNEXUSTASKCOMPLETEDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondNexusTaskCompletedResponse" -] -_RESPONDNEXUSTASKFAILEDREQUEST = DESCRIPTOR.message_types_by_name[ - "RespondNexusTaskFailedRequest" -] -_RESPONDNEXUSTASKFAILEDRESPONSE = DESCRIPTOR.message_types_by_name[ - "RespondNexusTaskFailedResponse" -] -_EXECUTEMULTIOPERATIONREQUEST = DESCRIPTOR.message_types_by_name[ - "ExecuteMultiOperationRequest" -] -_EXECUTEMULTIOPERATIONREQUEST_OPERATION = ( - _EXECUTEMULTIOPERATIONREQUEST.nested_types_by_name["Operation"] -) -_EXECUTEMULTIOPERATIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "ExecuteMultiOperationResponse" -] -_EXECUTEMULTIOPERATIONRESPONSE_RESPONSE = ( - _EXECUTEMULTIOPERATIONRESPONSE.nested_types_by_name["Response"] -) -_UPDATEACTIVITYOPTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateActivityOptionsRequest" -] -_UPDATEACTIVITYEXECUTIONOPTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateActivityExecutionOptionsRequest" -] -_UPDATEACTIVITYOPTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateActivityOptionsResponse" -] -_UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateActivityExecutionOptionsResponse" -] -_PAUSEACTIVITYREQUEST = DESCRIPTOR.message_types_by_name["PauseActivityRequest"] -_PAUSEACTIVITYEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "PauseActivityExecutionRequest" -] -_PAUSEACTIVITYRESPONSE = DESCRIPTOR.message_types_by_name["PauseActivityResponse"] -_PAUSEACTIVITYEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "PauseActivityExecutionResponse" -] -_UNPAUSEACTIVITYREQUEST = DESCRIPTOR.message_types_by_name["UnpauseActivityRequest"] -_UNPAUSEACTIVITYEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "UnpauseActivityExecutionRequest" -] -_UNPAUSEACTIVITYRESPONSE = DESCRIPTOR.message_types_by_name["UnpauseActivityResponse"] -_UNPAUSEACTIVITYEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "UnpauseActivityExecutionResponse" -] -_RESETACTIVITYREQUEST = DESCRIPTOR.message_types_by_name["ResetActivityRequest"] -_RESETACTIVITYEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "ResetActivityExecutionRequest" -] -_RESETACTIVITYRESPONSE = DESCRIPTOR.message_types_by_name["ResetActivityResponse"] -_RESETACTIVITYEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "ResetActivityExecutionResponse" -] -_UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateWorkflowExecutionOptionsRequest" -] -_UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateWorkflowExecutionOptionsResponse" -] -_DESCRIBEDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ - "DescribeDeploymentRequest" -] -_DESCRIBEDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeDeploymentResponse" -] -_DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DescribeWorkerDeploymentVersionRequest" -] -_DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeWorkerDeploymentVersionResponse" -] -_DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE = ( - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE.nested_types_by_name["VersionTaskQueue"] -) -_DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY = ( - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE.nested_types_by_name[ - "StatsByPriorityKeyEntry" - ] -) -_DESCRIBEWORKERDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ - "DescribeWorkerDeploymentRequest" -] -_DESCRIBEWORKERDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeWorkerDeploymentResponse" -] -_LISTDEPLOYMENTSREQUEST = DESCRIPTOR.message_types_by_name["ListDeploymentsRequest"] -_LISTDEPLOYMENTSRESPONSE = DESCRIPTOR.message_types_by_name["ListDeploymentsResponse"] -_SETCURRENTDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ - "SetCurrentDeploymentRequest" -] -_SETCURRENTDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ - "SetCurrentDeploymentResponse" -] -_SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST = DESCRIPTOR.message_types_by_name[ - "SetWorkerDeploymentCurrentVersionRequest" -] -_SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "SetWorkerDeploymentCurrentVersionResponse" -] -_SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST = DESCRIPTOR.message_types_by_name[ - "SetWorkerDeploymentRampingVersionRequest" -] -_SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "SetWorkerDeploymentRampingVersionResponse" -] -_CREATEWORKERDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateWorkerDeploymentRequest" -] -_CREATEWORKERDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateWorkerDeploymentResponse" -] -_LISTWORKERDEPLOYMENTSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListWorkerDeploymentsRequest" -] -_LISTWORKERDEPLOYMENTSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListWorkerDeploymentsResponse" -] -_LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY = ( - _LISTWORKERDEPLOYMENTSRESPONSE.nested_types_by_name["WorkerDeploymentSummary"] -) -_CREATEWORKERDEPLOYMENTVERSIONREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateWorkerDeploymentVersionRequest" -] -_CREATEWORKERDEPLOYMENTVERSIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateWorkerDeploymentVersionResponse" -] -_DELETEWORKERDEPLOYMENTVERSIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteWorkerDeploymentVersionRequest" -] -_DELETEWORKERDEPLOYMENTVERSIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteWorkerDeploymentVersionResponse" -] -_DELETEWORKERDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteWorkerDeploymentRequest" -] -_DELETEWORKERDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteWorkerDeploymentResponse" -] -_UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerDeploymentVersionComputeConfigRequest" -] -_UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY = ( - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST.nested_types_by_name[ - "ComputeConfigScalingGroupsEntry" - ] -) -_UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerDeploymentVersionComputeConfigResponse" -] -_VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST = DESCRIPTOR.message_types_by_name[ - "ValidateWorkerDeploymentVersionComputeConfigRequest" -] -_VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY = ( - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST.nested_types_by_name[ - "ComputeConfigScalingGroupsEntry" - ] -) -_VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE = ( - DESCRIPTOR.message_types_by_name[ - "ValidateWorkerDeploymentVersionComputeConfigResponse" - ] -) -_UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerDeploymentVersionMetadataRequest" -] -_UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY = ( - _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST.nested_types_by_name[ - "UpsertEntriesEntry" - ] -) -_UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerDeploymentVersionMetadataResponse" -] -_SETWORKERDEPLOYMENTMANAGERREQUEST = DESCRIPTOR.message_types_by_name[ - "SetWorkerDeploymentManagerRequest" -] -_SETWORKERDEPLOYMENTMANAGERRESPONSE = DESCRIPTOR.message_types_by_name[ - "SetWorkerDeploymentManagerResponse" -] -_GETCURRENTDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ - "GetCurrentDeploymentRequest" -] -_GETCURRENTDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetCurrentDeploymentResponse" -] -_GETDEPLOYMENTREACHABILITYREQUEST = DESCRIPTOR.message_types_by_name[ - "GetDeploymentReachabilityRequest" -] -_GETDEPLOYMENTREACHABILITYRESPONSE = DESCRIPTOR.message_types_by_name[ - "GetDeploymentReachabilityResponse" -] -_CREATEWORKFLOWRULEREQUEST = DESCRIPTOR.message_types_by_name[ - "CreateWorkflowRuleRequest" -] -_CREATEWORKFLOWRULERESPONSE = DESCRIPTOR.message_types_by_name[ - "CreateWorkflowRuleResponse" -] -_DESCRIBEWORKFLOWRULEREQUEST = DESCRIPTOR.message_types_by_name[ - "DescribeWorkflowRuleRequest" -] -_DESCRIBEWORKFLOWRULERESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeWorkflowRuleResponse" -] -_DELETEWORKFLOWRULEREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteWorkflowRuleRequest" -] -_DELETEWORKFLOWRULERESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteWorkflowRuleResponse" -] -_LISTWORKFLOWRULESREQUEST = DESCRIPTOR.message_types_by_name["ListWorkflowRulesRequest"] -_LISTWORKFLOWRULESRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListWorkflowRulesResponse" -] -_TRIGGERWORKFLOWRULEREQUEST = DESCRIPTOR.message_types_by_name[ - "TriggerWorkflowRuleRequest" -] -_TRIGGERWORKFLOWRULERESPONSE = DESCRIPTOR.message_types_by_name[ - "TriggerWorkflowRuleResponse" -] -_RECORDWORKERHEARTBEATREQUEST = DESCRIPTOR.message_types_by_name[ - "RecordWorkerHeartbeatRequest" -] -_RECORDWORKERHEARTBEATRESPONSE = DESCRIPTOR.message_types_by_name[ - "RecordWorkerHeartbeatResponse" -] -_LISTWORKERSREQUEST = DESCRIPTOR.message_types_by_name["ListWorkersRequest"] -_LISTWORKERSRESPONSE = DESCRIPTOR.message_types_by_name["ListWorkersResponse"] -_UPDATETASKQUEUECONFIGREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateTaskQueueConfigRequest" -] -_UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE = ( - _UPDATETASKQUEUECONFIGREQUEST.nested_types_by_name["RateLimitUpdate"] -) -_UPDATETASKQUEUECONFIGREQUEST_SETFAIRNESSWEIGHTOVERRIDESENTRY = ( - _UPDATETASKQUEUECONFIGREQUEST.nested_types_by_name[ - "SetFairnessWeightOverridesEntry" - ] -) -_UPDATETASKQUEUECONFIGRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateTaskQueueConfigResponse" -] -_FETCHWORKERCONFIGREQUEST = DESCRIPTOR.message_types_by_name["FetchWorkerConfigRequest"] -_FETCHWORKERCONFIGRESPONSE = DESCRIPTOR.message_types_by_name[ - "FetchWorkerConfigResponse" -] -_UPDATEWORKERCONFIGREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerConfigRequest" -] -_UPDATEWORKERCONFIGRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateWorkerConfigResponse" -] -_DESCRIBEWORKERREQUEST = DESCRIPTOR.message_types_by_name["DescribeWorkerRequest"] -_DESCRIBEWORKERRESPONSE = DESCRIPTOR.message_types_by_name["DescribeWorkerResponse"] -_COUNTWORKERSREQUEST = DESCRIPTOR.message_types_by_name["CountWorkersRequest"] -_COUNTWORKERSRESPONSE = DESCRIPTOR.message_types_by_name["CountWorkersResponse"] -_PAUSEWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "PauseWorkflowExecutionRequest" -] -_PAUSEWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "PauseWorkflowExecutionResponse" -] -_UNPAUSEWORKFLOWEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "UnpauseWorkflowExecutionRequest" -] -_UNPAUSEWORKFLOWEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "UnpauseWorkflowExecutionResponse" -] -_STARTACTIVITYEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "StartActivityExecutionRequest" -] -_STARTACTIVITYEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "StartActivityExecutionResponse" -] -_DESCRIBEACTIVITYEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DescribeActivityExecutionRequest" -] -_DESCRIBEACTIVITYEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeActivityExecutionResponse" -] -_POLLACTIVITYEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "PollActivityExecutionRequest" -] -_POLLACTIVITYEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "PollActivityExecutionResponse" -] -_LISTACTIVITYEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListActivityExecutionsRequest" -] -_LISTACTIVITYEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListActivityExecutionsResponse" -] -_STARTNEXUSOPERATIONEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "StartNexusOperationExecutionRequest" -] -_STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY = ( - _STARTNEXUSOPERATIONEXECUTIONREQUEST.nested_types_by_name["NexusHeaderEntry"] -) -_STARTNEXUSOPERATIONEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "StartNexusOperationExecutionResponse" -] -_DESCRIBENEXUSOPERATIONEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DescribeNexusOperationExecutionRequest" -] -_DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DescribeNexusOperationExecutionResponse" -] -_POLLNEXUSOPERATIONEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "PollNexusOperationExecutionRequest" -] -_POLLNEXUSOPERATIONEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "PollNexusOperationExecutionResponse" -] -_LISTNEXUSOPERATIONEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "ListNexusOperationExecutionsRequest" -] -_LISTNEXUSOPERATIONEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "ListNexusOperationExecutionsResponse" -] -_COUNTACTIVITYEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "CountActivityExecutionsRequest" -] -_COUNTACTIVITYEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "CountActivityExecutionsResponse" -] -_COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP = ( - _COUNTACTIVITYEXECUTIONSRESPONSE.nested_types_by_name["AggregationGroup"] -) -_COUNTNEXUSOPERATIONEXECUTIONSREQUEST = DESCRIPTOR.message_types_by_name[ - "CountNexusOperationExecutionsRequest" -] -_COUNTNEXUSOPERATIONEXECUTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ - "CountNexusOperationExecutionsResponse" -] -_COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP = ( - _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE.nested_types_by_name["AggregationGroup"] -) -_REQUESTCANCELACTIVITYEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "RequestCancelActivityExecutionRequest" -] -_REQUESTCANCELACTIVITYEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "RequestCancelActivityExecutionResponse" -] -_TERMINATEACTIVITYEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "TerminateActivityExecutionRequest" -] -_TERMINATEACTIVITYEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "TerminateActivityExecutionResponse" -] -_DELETEACTIVITYEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteActivityExecutionRequest" -] -_DELETEACTIVITYEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteActivityExecutionResponse" -] -_REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "RequestCancelNexusOperationExecutionRequest" -] -_REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "RequestCancelNexusOperationExecutionResponse" -] -_TERMINATENEXUSOPERATIONEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "TerminateNexusOperationExecutionRequest" -] -_TERMINATENEXUSOPERATIONEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "TerminateNexusOperationExecutionResponse" -] -_DELETENEXUSOPERATIONEXECUTIONREQUEST = DESCRIPTOR.message_types_by_name[ - "DeleteNexusOperationExecutionRequest" -] -_DELETENEXUSOPERATIONEXECUTIONRESPONSE = DESCRIPTOR.message_types_by_name[ - "DeleteNexusOperationExecutionResponse" -] -_POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST = DESCRIPTOR.message_types_by_name[ - "PollWorkflowExecutionTimeSkippingRequest" -] -_POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE = DESCRIPTOR.message_types_by_name[ - "PollWorkflowExecutionTimeSkippingResponse" -] -RegisterNamespaceRequest = _reflection.GeneratedProtocolMessageType( - "RegisterNamespaceRequest", - (_message.Message,), - { - "DataEntry": _reflection.GeneratedProtocolMessageType( - "DataEntry", - (_message.Message,), - { - "DESCRIPTOR": _REGISTERNAMESPACEREQUEST_DATAENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry) - }, - ), - "DESCRIPTOR": _REGISTERNAMESPACEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RegisterNamespaceRequest) - }, -) -_sym_db.RegisterMessage(RegisterNamespaceRequest) -_sym_db.RegisterMessage(RegisterNamespaceRequest.DataEntry) - -RegisterNamespaceResponse = _reflection.GeneratedProtocolMessageType( - "RegisterNamespaceResponse", - (_message.Message,), - { - "DESCRIPTOR": _REGISTERNAMESPACERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RegisterNamespaceResponse) - }, -) -_sym_db.RegisterMessage(RegisterNamespaceResponse) - -ListNamespacesRequest = _reflection.GeneratedProtocolMessageType( - "ListNamespacesRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTNAMESPACESREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListNamespacesRequest) - }, -) -_sym_db.RegisterMessage(ListNamespacesRequest) - -ListNamespacesResponse = _reflection.GeneratedProtocolMessageType( - "ListNamespacesResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTNAMESPACESRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListNamespacesResponse) - }, -) -_sym_db.RegisterMessage(ListNamespacesResponse) - -DescribeNamespaceRequest = _reflection.GeneratedProtocolMessageType( - "DescribeNamespaceRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBENAMESPACEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeNamespaceRequest) - }, -) -_sym_db.RegisterMessage(DescribeNamespaceRequest) - -DescribeNamespaceResponse = _reflection.GeneratedProtocolMessageType( - "DescribeNamespaceResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBENAMESPACERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeNamespaceResponse) - }, -) -_sym_db.RegisterMessage(DescribeNamespaceResponse) - -UpdateNamespaceRequest = _reflection.GeneratedProtocolMessageType( - "UpdateNamespaceRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENAMESPACEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateNamespaceRequest) - }, -) -_sym_db.RegisterMessage(UpdateNamespaceRequest) - -UpdateNamespaceResponse = _reflection.GeneratedProtocolMessageType( - "UpdateNamespaceResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATENAMESPACERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateNamespaceResponse) - }, -) -_sym_db.RegisterMessage(UpdateNamespaceResponse) - -DeprecateNamespaceRequest = _reflection.GeneratedProtocolMessageType( - "DeprecateNamespaceRequest", - (_message.Message,), - { - "DESCRIPTOR": _DEPRECATENAMESPACEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeprecateNamespaceRequest) - }, -) -_sym_db.RegisterMessage(DeprecateNamespaceRequest) - -DeprecateNamespaceResponse = _reflection.GeneratedProtocolMessageType( - "DeprecateNamespaceResponse", - (_message.Message,), - { - "DESCRIPTOR": _DEPRECATENAMESPACERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeprecateNamespaceResponse) - }, -) -_sym_db.RegisterMessage(DeprecateNamespaceResponse) - -StartWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "StartWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _STARTWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(StartWorkflowExecutionRequest) - -StartWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "StartWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _STARTWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(StartWorkflowExecutionResponse) - -GetWorkflowExecutionHistoryRequest = _reflection.GeneratedProtocolMessageType( - "GetWorkflowExecutionHistoryRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKFLOWEXECUTIONHISTORYREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest) - }, -) -_sym_db.RegisterMessage(GetWorkflowExecutionHistoryRequest) - -GetWorkflowExecutionHistoryResponse = _reflection.GeneratedProtocolMessageType( - "GetWorkflowExecutionHistoryResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKFLOWEXECUTIONHISTORYRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse) - }, -) -_sym_db.RegisterMessage(GetWorkflowExecutionHistoryResponse) - -GetWorkflowExecutionHistoryReverseRequest = _reflection.GeneratedProtocolMessageType( - "GetWorkflowExecutionHistoryReverseRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest) - }, -) -_sym_db.RegisterMessage(GetWorkflowExecutionHistoryReverseRequest) - -GetWorkflowExecutionHistoryReverseResponse = _reflection.GeneratedProtocolMessageType( - "GetWorkflowExecutionHistoryReverseResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse) - }, -) -_sym_db.RegisterMessage(GetWorkflowExecutionHistoryReverseResponse) - -PollWorkflowTaskQueueRequest = _reflection.GeneratedProtocolMessageType( - "PollWorkflowTaskQueueRequest", - (_message.Message,), - { - "DESCRIPTOR": _POLLWORKFLOWTASKQUEUEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest) - }, -) -_sym_db.RegisterMessage(PollWorkflowTaskQueueRequest) - -PollWorkflowTaskQueueResponse = _reflection.GeneratedProtocolMessageType( - "PollWorkflowTaskQueueResponse", - (_message.Message,), - { - "QueriesEntry": _reflection.GeneratedProtocolMessageType( - "QueriesEntry", - (_message.Message,), - { - "DESCRIPTOR": _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry) - }, - ), - "DESCRIPTOR": _POLLWORKFLOWTASKQUEUERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse) - }, -) -_sym_db.RegisterMessage(PollWorkflowTaskQueueResponse) -_sym_db.RegisterMessage(PollWorkflowTaskQueueResponse.QueriesEntry) - -RespondWorkflowTaskCompletedRequest = _reflection.GeneratedProtocolMessageType( - "RespondWorkflowTaskCompletedRequest", - (_message.Message,), - { - "QueryResultsEntry": _reflection.GeneratedProtocolMessageType( - "QueryResultsEntry", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry) - }, - ), - "Capabilities": _reflection.GeneratedProtocolMessageType( - "Capabilities", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities) - }, - ), - "DESCRIPTOR": _RESPONDWORKFLOWTASKCOMPLETEDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest) - }, -) -_sym_db.RegisterMessage(RespondWorkflowTaskCompletedRequest) -_sym_db.RegisterMessage(RespondWorkflowTaskCompletedRequest.QueryResultsEntry) -_sym_db.RegisterMessage(RespondWorkflowTaskCompletedRequest.Capabilities) - -RespondWorkflowTaskCompletedResponse = _reflection.GeneratedProtocolMessageType( - "RespondWorkflowTaskCompletedResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse) - }, -) -_sym_db.RegisterMessage(RespondWorkflowTaskCompletedResponse) - -RespondWorkflowTaskFailedRequest = _reflection.GeneratedProtocolMessageType( - "RespondWorkflowTaskFailedRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDWORKFLOWTASKFAILEDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest) - }, -) -_sym_db.RegisterMessage(RespondWorkflowTaskFailedRequest) - -RespondWorkflowTaskFailedResponse = _reflection.GeneratedProtocolMessageType( - "RespondWorkflowTaskFailedResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDWORKFLOWTASKFAILEDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse) - }, -) -_sym_db.RegisterMessage(RespondWorkflowTaskFailedResponse) - -PollActivityTaskQueueRequest = _reflection.GeneratedProtocolMessageType( - "PollActivityTaskQueueRequest", - (_message.Message,), - { - "DESCRIPTOR": _POLLACTIVITYTASKQUEUEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollActivityTaskQueueRequest) - }, -) -_sym_db.RegisterMessage(PollActivityTaskQueueRequest) - -PollActivityTaskQueueResponse = _reflection.GeneratedProtocolMessageType( - "PollActivityTaskQueueResponse", - (_message.Message,), - { - "DESCRIPTOR": _POLLACTIVITYTASKQUEUERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollActivityTaskQueueResponse) - }, -) -_sym_db.RegisterMessage(PollActivityTaskQueueResponse) - -RecordActivityTaskHeartbeatRequest = _reflection.GeneratedProtocolMessageType( - "RecordActivityTaskHeartbeatRequest", - (_message.Message,), - { - "DESCRIPTOR": _RECORDACTIVITYTASKHEARTBEATREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest) - }, -) -_sym_db.RegisterMessage(RecordActivityTaskHeartbeatRequest) - -RecordActivityTaskHeartbeatResponse = _reflection.GeneratedProtocolMessageType( - "RecordActivityTaskHeartbeatResponse", - (_message.Message,), - { - "DESCRIPTOR": _RECORDACTIVITYTASKHEARTBEATRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse) - }, -) -_sym_db.RegisterMessage(RecordActivityTaskHeartbeatResponse) - -RecordActivityTaskHeartbeatByIdRequest = _reflection.GeneratedProtocolMessageType( - "RecordActivityTaskHeartbeatByIdRequest", - (_message.Message,), - { - "DESCRIPTOR": _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest) - }, -) -_sym_db.RegisterMessage(RecordActivityTaskHeartbeatByIdRequest) - -RecordActivityTaskHeartbeatByIdResponse = _reflection.GeneratedProtocolMessageType( - "RecordActivityTaskHeartbeatByIdResponse", - (_message.Message,), - { - "DESCRIPTOR": _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse) - }, -) -_sym_db.RegisterMessage(RecordActivityTaskHeartbeatByIdResponse) - -RespondActivityTaskCompletedRequest = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskCompletedRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKCOMPLETEDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskCompletedRequest) - -RespondActivityTaskCompletedResponse = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskCompletedResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKCOMPLETEDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskCompletedResponse) - -RespondActivityTaskCompletedByIdRequest = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskCompletedByIdRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskCompletedByIdRequest) - -RespondActivityTaskCompletedByIdResponse = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskCompletedByIdResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskCompletedByIdResponse) - -RespondActivityTaskFailedRequest = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskFailedRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKFAILEDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskFailedRequest) - -RespondActivityTaskFailedResponse = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskFailedResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKFAILEDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskFailedResponse) - -RespondActivityTaskFailedByIdRequest = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskFailedByIdRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKFAILEDBYIDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskFailedByIdRequest) - -RespondActivityTaskFailedByIdResponse = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskFailedByIdResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskFailedByIdResponse) - -RespondActivityTaskCanceledRequest = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskCanceledRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKCANCELEDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskCanceledRequest) - -RespondActivityTaskCanceledResponse = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskCanceledResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKCANCELEDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskCanceledResponse) - -RespondActivityTaskCanceledByIdRequest = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskCanceledByIdRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskCanceledByIdRequest) - -RespondActivityTaskCanceledByIdResponse = _reflection.GeneratedProtocolMessageType( - "RespondActivityTaskCanceledByIdResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse) - }, -) -_sym_db.RegisterMessage(RespondActivityTaskCanceledByIdResponse) - -RequestCancelWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "RequestCancelWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(RequestCancelWorkflowExecutionRequest) - -RequestCancelWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "RequestCancelWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(RequestCancelWorkflowExecutionResponse) - -SignalWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "SignalWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(SignalWorkflowExecutionRequest) - -SignalWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "SignalWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(SignalWorkflowExecutionResponse) - -SignalWithStartWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "SignalWithStartWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(SignalWithStartWorkflowExecutionRequest) - -SignalWithStartWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "SignalWithStartWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(SignalWithStartWorkflowExecutionResponse) - -ResetWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "ResetWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESETWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(ResetWorkflowExecutionRequest) - -ResetWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "ResetWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESETWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(ResetWorkflowExecutionResponse) - -TerminateWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "TerminateWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _TERMINATEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(TerminateWorkflowExecutionRequest) - -TerminateWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "TerminateWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _TERMINATEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(TerminateWorkflowExecutionResponse) - -DeleteWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "DeleteWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(DeleteWorkflowExecutionRequest) - -DeleteWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "DeleteWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(DeleteWorkflowExecutionResponse) - -ListOpenWorkflowExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "ListOpenWorkflowExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTOPENWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest) - }, -) -_sym_db.RegisterMessage(ListOpenWorkflowExecutionsRequest) - -ListOpenWorkflowExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "ListOpenWorkflowExecutionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTOPENWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse) - }, -) -_sym_db.RegisterMessage(ListOpenWorkflowExecutionsResponse) - -ListClosedWorkflowExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "ListClosedWorkflowExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest) - }, -) -_sym_db.RegisterMessage(ListClosedWorkflowExecutionsRequest) - -ListClosedWorkflowExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "ListClosedWorkflowExecutionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse) - }, -) -_sym_db.RegisterMessage(ListClosedWorkflowExecutionsResponse) - -ListWorkflowExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "ListWorkflowExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest) - }, -) -_sym_db.RegisterMessage(ListWorkflowExecutionsRequest) - -ListWorkflowExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "ListWorkflowExecutionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse) - }, -) -_sym_db.RegisterMessage(ListWorkflowExecutionsResponse) - -ListArchivedWorkflowExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "ListArchivedWorkflowExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest) - }, -) -_sym_db.RegisterMessage(ListArchivedWorkflowExecutionsRequest) - -ListArchivedWorkflowExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "ListArchivedWorkflowExecutionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse) - }, -) -_sym_db.RegisterMessage(ListArchivedWorkflowExecutionsResponse) - -ScanWorkflowExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "ScanWorkflowExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _SCANWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest) - }, -) -_sym_db.RegisterMessage(ScanWorkflowExecutionsRequest) - -ScanWorkflowExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "ScanWorkflowExecutionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _SCANWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse) - }, -) -_sym_db.RegisterMessage(ScanWorkflowExecutionsResponse) - -CountWorkflowExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "CountWorkflowExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _COUNTWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest) - }, -) -_sym_db.RegisterMessage(CountWorkflowExecutionsRequest) - -CountWorkflowExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "CountWorkflowExecutionsResponse", - (_message.Message,), - { - "AggregationGroup": _reflection.GeneratedProtocolMessageType( - "AggregationGroup", - (_message.Message,), - { - "DESCRIPTOR": _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup) - }, - ), - "DESCRIPTOR": _COUNTWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse) - }, -) -_sym_db.RegisterMessage(CountWorkflowExecutionsResponse) -_sym_db.RegisterMessage(CountWorkflowExecutionsResponse.AggregationGroup) - -GetSearchAttributesRequest = _reflection.GeneratedProtocolMessageType( - "GetSearchAttributesRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETSEARCHATTRIBUTESREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSearchAttributesRequest) - }, -) -_sym_db.RegisterMessage(GetSearchAttributesRequest) - -GetSearchAttributesResponse = _reflection.GeneratedProtocolMessageType( - "GetSearchAttributesResponse", - (_message.Message,), - { - "KeysEntry": _reflection.GeneratedProtocolMessageType( - "KeysEntry", - (_message.Message,), - { - "DESCRIPTOR": _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry) - }, - ), - "DESCRIPTOR": _GETSEARCHATTRIBUTESRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSearchAttributesResponse) - }, -) -_sym_db.RegisterMessage(GetSearchAttributesResponse) -_sym_db.RegisterMessage(GetSearchAttributesResponse.KeysEntry) - -RespondQueryTaskCompletedRequest = _reflection.GeneratedProtocolMessageType( - "RespondQueryTaskCompletedRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDQUERYTASKCOMPLETEDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest) - }, -) -_sym_db.RegisterMessage(RespondQueryTaskCompletedRequest) - -RespondQueryTaskCompletedResponse = _reflection.GeneratedProtocolMessageType( - "RespondQueryTaskCompletedResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDQUERYTASKCOMPLETEDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse) - }, -) -_sym_db.RegisterMessage(RespondQueryTaskCompletedResponse) - -ResetStickyTaskQueueRequest = _reflection.GeneratedProtocolMessageType( - "ResetStickyTaskQueueRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESETSTICKYTASKQUEUEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest) - }, -) -_sym_db.RegisterMessage(ResetStickyTaskQueueRequest) - -ResetStickyTaskQueueResponse = _reflection.GeneratedProtocolMessageType( - "ResetStickyTaskQueueResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESETSTICKYTASKQUEUERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse) - }, -) -_sym_db.RegisterMessage(ResetStickyTaskQueueResponse) - -ShutdownWorkerRequest = _reflection.GeneratedProtocolMessageType( - "ShutdownWorkerRequest", - (_message.Message,), - { - "DESCRIPTOR": _SHUTDOWNWORKERREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ShutdownWorkerRequest) - }, -) -_sym_db.RegisterMessage(ShutdownWorkerRequest) - -ShutdownWorkerResponse = _reflection.GeneratedProtocolMessageType( - "ShutdownWorkerResponse", - (_message.Message,), - { - "DESCRIPTOR": _SHUTDOWNWORKERRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ShutdownWorkerResponse) - }, -) -_sym_db.RegisterMessage(ShutdownWorkerResponse) - -QueryWorkflowRequest = _reflection.GeneratedProtocolMessageType( - "QueryWorkflowRequest", - (_message.Message,), - { - "DESCRIPTOR": _QUERYWORKFLOWREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.QueryWorkflowRequest) - }, -) -_sym_db.RegisterMessage(QueryWorkflowRequest) - -QueryWorkflowResponse = _reflection.GeneratedProtocolMessageType( - "QueryWorkflowResponse", - (_message.Message,), - { - "DESCRIPTOR": _QUERYWORKFLOWRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.QueryWorkflowResponse) - }, -) -_sym_db.RegisterMessage(QueryWorkflowResponse) - -DescribeWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "DescribeWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(DescribeWorkflowExecutionRequest) - -DescribeWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "DescribeWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(DescribeWorkflowExecutionResponse) - -DescribeTaskQueueRequest = _reflection.GeneratedProtocolMessageType( - "DescribeTaskQueueRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBETASKQUEUEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueRequest) - }, -) -_sym_db.RegisterMessage(DescribeTaskQueueRequest) - -DescribeTaskQueueResponse = _reflection.GeneratedProtocolMessageType( - "DescribeTaskQueueResponse", - (_message.Message,), - { - "StatsByPriorityKeyEntry": _reflection.GeneratedProtocolMessageType( - "StatsByPriorityKeyEntry", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueResponse.StatsByPriorityKeyEntry) - }, - ), - "EffectiveRateLimit": _reflection.GeneratedProtocolMessageType( - "EffectiveRateLimit", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueResponse.EffectiveRateLimit) - }, - ), - "VersionsInfoEntry": _reflection.GeneratedProtocolMessageType( - "VersionsInfoEntry", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntry) - }, - ), - "DESCRIPTOR": _DESCRIBETASKQUEUERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueResponse) - }, -) -_sym_db.RegisterMessage(DescribeTaskQueueResponse) -_sym_db.RegisterMessage(DescribeTaskQueueResponse.StatsByPriorityKeyEntry) -_sym_db.RegisterMessage(DescribeTaskQueueResponse.EffectiveRateLimit) -_sym_db.RegisterMessage(DescribeTaskQueueResponse.VersionsInfoEntry) - -GetClusterInfoRequest = _reflection.GeneratedProtocolMessageType( - "GetClusterInfoRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETCLUSTERINFOREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetClusterInfoRequest) - }, -) -_sym_db.RegisterMessage(GetClusterInfoRequest) - -GetClusterInfoResponse = _reflection.GeneratedProtocolMessageType( - "GetClusterInfoResponse", - (_message.Message,), - { - "SupportedClientsEntry": _reflection.GeneratedProtocolMessageType( - "SupportedClientsEntry", - (_message.Message,), - { - "DESCRIPTOR": _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry) - }, - ), - "DESCRIPTOR": _GETCLUSTERINFORESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetClusterInfoResponse) - }, -) -_sym_db.RegisterMessage(GetClusterInfoResponse) -_sym_db.RegisterMessage(GetClusterInfoResponse.SupportedClientsEntry) - -GetSystemInfoRequest = _reflection.GeneratedProtocolMessageType( - "GetSystemInfoRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETSYSTEMINFOREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSystemInfoRequest) - }, -) -_sym_db.RegisterMessage(GetSystemInfoRequest) - -GetSystemInfoResponse = _reflection.GeneratedProtocolMessageType( - "GetSystemInfoResponse", - (_message.Message,), - { - "Capabilities": _reflection.GeneratedProtocolMessageType( - "Capabilities", - (_message.Message,), - { - "DESCRIPTOR": _GETSYSTEMINFORESPONSE_CAPABILITIES, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities) - }, - ), - "DESCRIPTOR": _GETSYSTEMINFORESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSystemInfoResponse) - }, -) -_sym_db.RegisterMessage(GetSystemInfoResponse) -_sym_db.RegisterMessage(GetSystemInfoResponse.Capabilities) - -ListTaskQueuePartitionsRequest = _reflection.GeneratedProtocolMessageType( - "ListTaskQueuePartitionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTTASKQUEUEPARTITIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest) - }, -) -_sym_db.RegisterMessage(ListTaskQueuePartitionsRequest) - -ListTaskQueuePartitionsResponse = _reflection.GeneratedProtocolMessageType( - "ListTaskQueuePartitionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTTASKQUEUEPARTITIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListTaskQueuePartitionsResponse) - }, -) -_sym_db.RegisterMessage(ListTaskQueuePartitionsResponse) - -CreateScheduleRequest = _reflection.GeneratedProtocolMessageType( - "CreateScheduleRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATESCHEDULEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateScheduleRequest) - }, -) -_sym_db.RegisterMessage(CreateScheduleRequest) - -CreateScheduleResponse = _reflection.GeneratedProtocolMessageType( - "CreateScheduleResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATESCHEDULERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateScheduleResponse) - }, -) -_sym_db.RegisterMessage(CreateScheduleResponse) - -DescribeScheduleRequest = _reflection.GeneratedProtocolMessageType( - "DescribeScheduleRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBESCHEDULEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeScheduleRequest) - }, -) -_sym_db.RegisterMessage(DescribeScheduleRequest) - -DescribeScheduleResponse = _reflection.GeneratedProtocolMessageType( - "DescribeScheduleResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBESCHEDULERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeScheduleResponse) - }, -) -_sym_db.RegisterMessage(DescribeScheduleResponse) - -UpdateScheduleRequest = _reflection.GeneratedProtocolMessageType( - "UpdateScheduleRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATESCHEDULEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateScheduleRequest) - }, -) -_sym_db.RegisterMessage(UpdateScheduleRequest) - -UpdateScheduleResponse = _reflection.GeneratedProtocolMessageType( - "UpdateScheduleResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATESCHEDULERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateScheduleResponse) - }, -) -_sym_db.RegisterMessage(UpdateScheduleResponse) - -PatchScheduleRequest = _reflection.GeneratedProtocolMessageType( - "PatchScheduleRequest", - (_message.Message,), - { - "DESCRIPTOR": _PATCHSCHEDULEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PatchScheduleRequest) - }, -) -_sym_db.RegisterMessage(PatchScheduleRequest) - -PatchScheduleResponse = _reflection.GeneratedProtocolMessageType( - "PatchScheduleResponse", - (_message.Message,), - { - "DESCRIPTOR": _PATCHSCHEDULERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PatchScheduleResponse) - }, -) -_sym_db.RegisterMessage(PatchScheduleResponse) - -ListScheduleMatchingTimesRequest = _reflection.GeneratedProtocolMessageType( - "ListScheduleMatchingTimesRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTSCHEDULEMATCHINGTIMESREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListScheduleMatchingTimesRequest) - }, -) -_sym_db.RegisterMessage(ListScheduleMatchingTimesRequest) - -ListScheduleMatchingTimesResponse = _reflection.GeneratedProtocolMessageType( - "ListScheduleMatchingTimesResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTSCHEDULEMATCHINGTIMESRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListScheduleMatchingTimesResponse) - }, -) -_sym_db.RegisterMessage(ListScheduleMatchingTimesResponse) - -DeleteScheduleRequest = _reflection.GeneratedProtocolMessageType( - "DeleteScheduleRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETESCHEDULEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteScheduleRequest) - }, -) -_sym_db.RegisterMessage(DeleteScheduleRequest) - -DeleteScheduleResponse = _reflection.GeneratedProtocolMessageType( - "DeleteScheduleResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETESCHEDULERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteScheduleResponse) - }, -) -_sym_db.RegisterMessage(DeleteScheduleResponse) - -ListSchedulesRequest = _reflection.GeneratedProtocolMessageType( - "ListSchedulesRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTSCHEDULESREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListSchedulesRequest) - }, -) -_sym_db.RegisterMessage(ListSchedulesRequest) - -ListSchedulesResponse = _reflection.GeneratedProtocolMessageType( - "ListSchedulesResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTSCHEDULESRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListSchedulesResponse) - }, -) -_sym_db.RegisterMessage(ListSchedulesResponse) - -CountSchedulesRequest = _reflection.GeneratedProtocolMessageType( - "CountSchedulesRequest", - (_message.Message,), - { - "DESCRIPTOR": _COUNTSCHEDULESREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountSchedulesRequest) - }, -) -_sym_db.RegisterMessage(CountSchedulesRequest) - -CountSchedulesResponse = _reflection.GeneratedProtocolMessageType( - "CountSchedulesResponse", - (_message.Message,), - { - "AggregationGroup": _reflection.GeneratedProtocolMessageType( - "AggregationGroup", - (_message.Message,), - { - "DESCRIPTOR": _COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountSchedulesResponse.AggregationGroup) - }, - ), - "DESCRIPTOR": _COUNTSCHEDULESRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountSchedulesResponse) - }, -) -_sym_db.RegisterMessage(CountSchedulesResponse) -_sym_db.RegisterMessage(CountSchedulesResponse.AggregationGroup) - -UpdateWorkerBuildIdCompatibilityRequest = _reflection.GeneratedProtocolMessageType( - "UpdateWorkerBuildIdCompatibilityRequest", - (_message.Message,), - { - "AddNewCompatibleVersion": _reflection.GeneratedProtocolMessageType( - "AddNewCompatibleVersion", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion) - }, - ), - "MergeSets": _reflection.GeneratedProtocolMessageType( - "MergeSets", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSets) - }, - ), - "DESCRIPTOR": _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest) - }, -) -_sym_db.RegisterMessage(UpdateWorkerBuildIdCompatibilityRequest) -_sym_db.RegisterMessage(UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion) -_sym_db.RegisterMessage(UpdateWorkerBuildIdCompatibilityRequest.MergeSets) - -UpdateWorkerBuildIdCompatibilityResponse = _reflection.GeneratedProtocolMessageType( - "UpdateWorkerBuildIdCompatibilityResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse) - }, -) -_sym_db.RegisterMessage(UpdateWorkerBuildIdCompatibilityResponse) - -GetWorkerBuildIdCompatibilityRequest = _reflection.GeneratedProtocolMessageType( - "GetWorkerBuildIdCompatibilityRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKERBUILDIDCOMPATIBILITYREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest) - }, -) -_sym_db.RegisterMessage(GetWorkerBuildIdCompatibilityRequest) - -GetWorkerBuildIdCompatibilityResponse = _reflection.GeneratedProtocolMessageType( - "GetWorkerBuildIdCompatibilityResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKERBUILDIDCOMPATIBILITYRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse) - }, -) -_sym_db.RegisterMessage(GetWorkerBuildIdCompatibilityResponse) - -UpdateWorkerVersioningRulesRequest = _reflection.GeneratedProtocolMessageType( - "UpdateWorkerVersioningRulesRequest", - (_message.Message,), - { - "InsertBuildIdAssignmentRule": _reflection.GeneratedProtocolMessageType( - "InsertBuildIdAssignmentRule", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule) - }, - ), - "ReplaceBuildIdAssignmentRule": _reflection.GeneratedProtocolMessageType( - "ReplaceBuildIdAssignmentRule", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule) - }, - ), - "DeleteBuildIdAssignmentRule": _reflection.GeneratedProtocolMessageType( - "DeleteBuildIdAssignmentRule", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRule) - }, - ), - "AddCompatibleBuildIdRedirectRule": _reflection.GeneratedProtocolMessageType( - "AddCompatibleBuildIdRedirectRule", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule) - }, - ), - "ReplaceCompatibleBuildIdRedirectRule": _reflection.GeneratedProtocolMessageType( - "ReplaceCompatibleBuildIdRedirectRule", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule) - }, - ), - "DeleteCompatibleBuildIdRedirectRule": _reflection.GeneratedProtocolMessageType( - "DeleteCompatibleBuildIdRedirectRule", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRule) - }, - ), - "CommitBuildId": _reflection.GeneratedProtocolMessageType( - "CommitBuildId", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildId) - }, - ), - "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest) - }, -) -_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest) -_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule) -_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule) -_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRule) -_sym_db.RegisterMessage( - UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule -) -_sym_db.RegisterMessage( - UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule -) -_sym_db.RegisterMessage( - UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRule -) -_sym_db.RegisterMessage(UpdateWorkerVersioningRulesRequest.CommitBuildId) - -UpdateWorkerVersioningRulesResponse = _reflection.GeneratedProtocolMessageType( - "UpdateWorkerVersioningRulesResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse) - }, -) -_sym_db.RegisterMessage(UpdateWorkerVersioningRulesResponse) - -GetWorkerVersioningRulesRequest = _reflection.GeneratedProtocolMessageType( - "GetWorkerVersioningRulesRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKERVERSIONINGRULESREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest) - }, -) -_sym_db.RegisterMessage(GetWorkerVersioningRulesRequest) - -GetWorkerVersioningRulesResponse = _reflection.GeneratedProtocolMessageType( - "GetWorkerVersioningRulesResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKERVERSIONINGRULESRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse) - }, -) -_sym_db.RegisterMessage(GetWorkerVersioningRulesResponse) - -GetWorkerTaskReachabilityRequest = _reflection.GeneratedProtocolMessageType( - "GetWorkerTaskReachabilityRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKERTASKREACHABILITYREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest) - }, -) -_sym_db.RegisterMessage(GetWorkerTaskReachabilityRequest) - -GetWorkerTaskReachabilityResponse = _reflection.GeneratedProtocolMessageType( - "GetWorkerTaskReachabilityResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETWORKERTASKREACHABILITYRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse) - }, -) -_sym_db.RegisterMessage(GetWorkerTaskReachabilityResponse) - -UpdateWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "UpdateWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(UpdateWorkflowExecutionRequest) - -UpdateWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "UpdateWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(UpdateWorkflowExecutionResponse) - -StartBatchOperationRequest = _reflection.GeneratedProtocolMessageType( - "StartBatchOperationRequest", - (_message.Message,), - { - "DESCRIPTOR": _STARTBATCHOPERATIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartBatchOperationRequest) - }, -) -_sym_db.RegisterMessage(StartBatchOperationRequest) - -StartBatchOperationResponse = _reflection.GeneratedProtocolMessageType( - "StartBatchOperationResponse", - (_message.Message,), - { - "DESCRIPTOR": _STARTBATCHOPERATIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartBatchOperationResponse) - }, -) -_sym_db.RegisterMessage(StartBatchOperationResponse) - -StopBatchOperationRequest = _reflection.GeneratedProtocolMessageType( - "StopBatchOperationRequest", - (_message.Message,), - { - "DESCRIPTOR": _STOPBATCHOPERATIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StopBatchOperationRequest) - }, -) -_sym_db.RegisterMessage(StopBatchOperationRequest) - -StopBatchOperationResponse = _reflection.GeneratedProtocolMessageType( - "StopBatchOperationResponse", - (_message.Message,), - { - "DESCRIPTOR": _STOPBATCHOPERATIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StopBatchOperationResponse) - }, -) -_sym_db.RegisterMessage(StopBatchOperationResponse) - -DescribeBatchOperationRequest = _reflection.GeneratedProtocolMessageType( - "DescribeBatchOperationRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEBATCHOPERATIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeBatchOperationRequest) - }, -) -_sym_db.RegisterMessage(DescribeBatchOperationRequest) - -DescribeBatchOperationResponse = _reflection.GeneratedProtocolMessageType( - "DescribeBatchOperationResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEBATCHOPERATIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeBatchOperationResponse) - }, -) -_sym_db.RegisterMessage(DescribeBatchOperationResponse) - -ListBatchOperationsRequest = _reflection.GeneratedProtocolMessageType( - "ListBatchOperationsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTBATCHOPERATIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListBatchOperationsRequest) - }, -) -_sym_db.RegisterMessage(ListBatchOperationsRequest) - -ListBatchOperationsResponse = _reflection.GeneratedProtocolMessageType( - "ListBatchOperationsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTBATCHOPERATIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListBatchOperationsResponse) - }, -) -_sym_db.RegisterMessage(ListBatchOperationsResponse) - -PollWorkflowExecutionUpdateRequest = _reflection.GeneratedProtocolMessageType( - "PollWorkflowExecutionUpdateRequest", - (_message.Message,), - { - "DESCRIPTOR": _POLLWORKFLOWEXECUTIONUPDATEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest) - }, -) -_sym_db.RegisterMessage(PollWorkflowExecutionUpdateRequest) - -PollWorkflowExecutionUpdateResponse = _reflection.GeneratedProtocolMessageType( - "PollWorkflowExecutionUpdateResponse", - (_message.Message,), - { - "DESCRIPTOR": _POLLWORKFLOWEXECUTIONUPDATERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse) - }, -) -_sym_db.RegisterMessage(PollWorkflowExecutionUpdateResponse) - -PollNexusTaskQueueRequest = _reflection.GeneratedProtocolMessageType( - "PollNexusTaskQueueRequest", - (_message.Message,), - { - "DESCRIPTOR": _POLLNEXUSTASKQUEUEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollNexusTaskQueueRequest) - }, -) -_sym_db.RegisterMessage(PollNexusTaskQueueRequest) - -PollNexusTaskQueueResponse = _reflection.GeneratedProtocolMessageType( - "PollNexusTaskQueueResponse", - (_message.Message,), - { - "DESCRIPTOR": _POLLNEXUSTASKQUEUERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollNexusTaskQueueResponse) - }, -) -_sym_db.RegisterMessage(PollNexusTaskQueueResponse) - -RespondNexusTaskCompletedRequest = _reflection.GeneratedProtocolMessageType( - "RespondNexusTaskCompletedRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDNEXUSTASKCOMPLETEDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest) - }, -) -_sym_db.RegisterMessage(RespondNexusTaskCompletedRequest) - -RespondNexusTaskCompletedResponse = _reflection.GeneratedProtocolMessageType( - "RespondNexusTaskCompletedResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDNEXUSTASKCOMPLETEDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse) - }, -) -_sym_db.RegisterMessage(RespondNexusTaskCompletedResponse) - -RespondNexusTaskFailedRequest = _reflection.GeneratedProtocolMessageType( - "RespondNexusTaskFailedRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDNEXUSTASKFAILEDREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest) - }, -) -_sym_db.RegisterMessage(RespondNexusTaskFailedRequest) - -RespondNexusTaskFailedResponse = _reflection.GeneratedProtocolMessageType( - "RespondNexusTaskFailedResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESPONDNEXUSTASKFAILEDRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse) - }, -) -_sym_db.RegisterMessage(RespondNexusTaskFailedResponse) - -ExecuteMultiOperationRequest = _reflection.GeneratedProtocolMessageType( - "ExecuteMultiOperationRequest", - (_message.Message,), - { - "Operation": _reflection.GeneratedProtocolMessageType( - "Operation", - (_message.Message,), - { - "DESCRIPTOR": _EXECUTEMULTIOPERATIONREQUEST_OPERATION, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation) - }, - ), - "DESCRIPTOR": _EXECUTEMULTIOPERATIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationRequest) - }, -) -_sym_db.RegisterMessage(ExecuteMultiOperationRequest) -_sym_db.RegisterMessage(ExecuteMultiOperationRequest.Operation) - -ExecuteMultiOperationResponse = _reflection.GeneratedProtocolMessageType( - "ExecuteMultiOperationResponse", - (_message.Message,), - { - "Response": _reflection.GeneratedProtocolMessageType( - "Response", - (_message.Message,), - { - "DESCRIPTOR": _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response) - }, - ), - "DESCRIPTOR": _EXECUTEMULTIOPERATIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationResponse) - }, -) -_sym_db.RegisterMessage(ExecuteMultiOperationResponse) -_sym_db.RegisterMessage(ExecuteMultiOperationResponse.Response) - -UpdateActivityOptionsRequest = _reflection.GeneratedProtocolMessageType( - "UpdateActivityOptionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEACTIVITYOPTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateActivityOptionsRequest) - }, -) -_sym_db.RegisterMessage(UpdateActivityOptionsRequest) - -UpdateActivityExecutionOptionsRequest = _reflection.GeneratedProtocolMessageType( - "UpdateActivityExecutionOptionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEACTIVITYEXECUTIONOPTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateActivityExecutionOptionsRequest) - }, -) -_sym_db.RegisterMessage(UpdateActivityExecutionOptionsRequest) - -UpdateActivityOptionsResponse = _reflection.GeneratedProtocolMessageType( - "UpdateActivityOptionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEACTIVITYOPTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateActivityOptionsResponse) - }, -) -_sym_db.RegisterMessage(UpdateActivityOptionsResponse) - -UpdateActivityExecutionOptionsResponse = _reflection.GeneratedProtocolMessageType( - "UpdateActivityExecutionOptionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateActivityExecutionOptionsResponse) - }, -) -_sym_db.RegisterMessage(UpdateActivityExecutionOptionsResponse) - -PauseActivityRequest = _reflection.GeneratedProtocolMessageType( - "PauseActivityRequest", - (_message.Message,), - { - "DESCRIPTOR": _PAUSEACTIVITYREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseActivityRequest) - }, -) -_sym_db.RegisterMessage(PauseActivityRequest) - -PauseActivityExecutionRequest = _reflection.GeneratedProtocolMessageType( - "PauseActivityExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _PAUSEACTIVITYEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseActivityExecutionRequest) - }, -) -_sym_db.RegisterMessage(PauseActivityExecutionRequest) - -PauseActivityResponse = _reflection.GeneratedProtocolMessageType( - "PauseActivityResponse", - (_message.Message,), - { - "DESCRIPTOR": _PAUSEACTIVITYRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseActivityResponse) - }, -) -_sym_db.RegisterMessage(PauseActivityResponse) - -PauseActivityExecutionResponse = _reflection.GeneratedProtocolMessageType( - "PauseActivityExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _PAUSEACTIVITYEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseActivityExecutionResponse) - }, -) -_sym_db.RegisterMessage(PauseActivityExecutionResponse) - -UnpauseActivityRequest = _reflection.GeneratedProtocolMessageType( - "UnpauseActivityRequest", - (_message.Message,), - { - "DESCRIPTOR": _UNPAUSEACTIVITYREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityRequest) - }, -) -_sym_db.RegisterMessage(UnpauseActivityRequest) - -UnpauseActivityExecutionRequest = _reflection.GeneratedProtocolMessageType( - "UnpauseActivityExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _UNPAUSEACTIVITYEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityExecutionRequest) - }, -) -_sym_db.RegisterMessage(UnpauseActivityExecutionRequest) - -UnpauseActivityResponse = _reflection.GeneratedProtocolMessageType( - "UnpauseActivityResponse", - (_message.Message,), - { - "DESCRIPTOR": _UNPAUSEACTIVITYRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityResponse) - }, -) -_sym_db.RegisterMessage(UnpauseActivityResponse) - -UnpauseActivityExecutionResponse = _reflection.GeneratedProtocolMessageType( - "UnpauseActivityExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _UNPAUSEACTIVITYEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityExecutionResponse) - }, -) -_sym_db.RegisterMessage(UnpauseActivityExecutionResponse) - -ResetActivityRequest = _reflection.GeneratedProtocolMessageType( - "ResetActivityRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESETACTIVITYREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetActivityRequest) - }, -) -_sym_db.RegisterMessage(ResetActivityRequest) - -ResetActivityExecutionRequest = _reflection.GeneratedProtocolMessageType( - "ResetActivityExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _RESETACTIVITYEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetActivityExecutionRequest) - }, -) -_sym_db.RegisterMessage(ResetActivityExecutionRequest) - -ResetActivityResponse = _reflection.GeneratedProtocolMessageType( - "ResetActivityResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESETACTIVITYRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetActivityResponse) - }, -) -_sym_db.RegisterMessage(ResetActivityResponse) - -ResetActivityExecutionResponse = _reflection.GeneratedProtocolMessageType( - "ResetActivityExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _RESETACTIVITYEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetActivityExecutionResponse) - }, -) -_sym_db.RegisterMessage(ResetActivityExecutionResponse) - -UpdateWorkflowExecutionOptionsRequest = _reflection.GeneratedProtocolMessageType( - "UpdateWorkflowExecutionOptionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest) - }, -) -_sym_db.RegisterMessage(UpdateWorkflowExecutionOptionsRequest) - -UpdateWorkflowExecutionOptionsResponse = _reflection.GeneratedProtocolMessageType( - "UpdateWorkflowExecutionOptionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsResponse) - }, -) -_sym_db.RegisterMessage(UpdateWorkflowExecutionOptionsResponse) - -DescribeDeploymentRequest = _reflection.GeneratedProtocolMessageType( - "DescribeDeploymentRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEDEPLOYMENTREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeDeploymentRequest) - }, -) -_sym_db.RegisterMessage(DescribeDeploymentRequest) - -DescribeDeploymentResponse = _reflection.GeneratedProtocolMessageType( - "DescribeDeploymentResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEDEPLOYMENTRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeDeploymentResponse) - }, -) -_sym_db.RegisterMessage(DescribeDeploymentResponse) - -DescribeWorkerDeploymentVersionRequest = _reflection.GeneratedProtocolMessageType( - "DescribeWorkerDeploymentVersionRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionRequest) - }, -) -_sym_db.RegisterMessage(DescribeWorkerDeploymentVersionRequest) - -DescribeWorkerDeploymentVersionResponse = _reflection.GeneratedProtocolMessageType( - "DescribeWorkerDeploymentVersionResponse", - (_message.Message,), - { - "VersionTaskQueue": _reflection.GeneratedProtocolMessageType( - "VersionTaskQueue", - (_message.Message,), - { - "StatsByPriorityKeyEntry": _reflection.GeneratedProtocolMessageType( - "StatsByPriorityKeyEntry", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntry) - }, - ), - "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue) - }, - ), - "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse) - }, -) -_sym_db.RegisterMessage(DescribeWorkerDeploymentVersionResponse) -_sym_db.RegisterMessage(DescribeWorkerDeploymentVersionResponse.VersionTaskQueue) -_sym_db.RegisterMessage( - DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntry -) - -DescribeWorkerDeploymentRequest = _reflection.GeneratedProtocolMessageType( - "DescribeWorkerDeploymentRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentRequest) - }, -) -_sym_db.RegisterMessage(DescribeWorkerDeploymentRequest) - -DescribeWorkerDeploymentResponse = _reflection.GeneratedProtocolMessageType( - "DescribeWorkerDeploymentResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentResponse) - }, -) -_sym_db.RegisterMessage(DescribeWorkerDeploymentResponse) - -ListDeploymentsRequest = _reflection.GeneratedProtocolMessageType( - "ListDeploymentsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTDEPLOYMENTSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListDeploymentsRequest) - }, -) -_sym_db.RegisterMessage(ListDeploymentsRequest) - -ListDeploymentsResponse = _reflection.GeneratedProtocolMessageType( - "ListDeploymentsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTDEPLOYMENTSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListDeploymentsResponse) - }, -) -_sym_db.RegisterMessage(ListDeploymentsResponse) - -SetCurrentDeploymentRequest = _reflection.GeneratedProtocolMessageType( - "SetCurrentDeploymentRequest", - (_message.Message,), - { - "DESCRIPTOR": _SETCURRENTDEPLOYMENTREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetCurrentDeploymentRequest) - }, -) -_sym_db.RegisterMessage(SetCurrentDeploymentRequest) - -SetCurrentDeploymentResponse = _reflection.GeneratedProtocolMessageType( - "SetCurrentDeploymentResponse", - (_message.Message,), - { - "DESCRIPTOR": _SETCURRENTDEPLOYMENTRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetCurrentDeploymentResponse) - }, -) -_sym_db.RegisterMessage(SetCurrentDeploymentResponse) - -SetWorkerDeploymentCurrentVersionRequest = _reflection.GeneratedProtocolMessageType( - "SetWorkerDeploymentCurrentVersionRequest", - (_message.Message,), - { - "DESCRIPTOR": _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest) - }, -) -_sym_db.RegisterMessage(SetWorkerDeploymentCurrentVersionRequest) - -SetWorkerDeploymentCurrentVersionResponse = _reflection.GeneratedProtocolMessageType( - "SetWorkerDeploymentCurrentVersionResponse", - (_message.Message,), - { - "DESCRIPTOR": _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionResponse) - }, -) -_sym_db.RegisterMessage(SetWorkerDeploymentCurrentVersionResponse) - -SetWorkerDeploymentRampingVersionRequest = _reflection.GeneratedProtocolMessageType( - "SetWorkerDeploymentRampingVersionRequest", - (_message.Message,), - { - "DESCRIPTOR": _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionRequest) - }, -) -_sym_db.RegisterMessage(SetWorkerDeploymentRampingVersionRequest) - -SetWorkerDeploymentRampingVersionResponse = _reflection.GeneratedProtocolMessageType( - "SetWorkerDeploymentRampingVersionResponse", - (_message.Message,), - { - "DESCRIPTOR": _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionResponse) - }, -) -_sym_db.RegisterMessage(SetWorkerDeploymentRampingVersionResponse) - -CreateWorkerDeploymentRequest = _reflection.GeneratedProtocolMessageType( - "CreateWorkerDeploymentRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEWORKERDEPLOYMENTREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateWorkerDeploymentRequest) - }, -) -_sym_db.RegisterMessage(CreateWorkerDeploymentRequest) - -CreateWorkerDeploymentResponse = _reflection.GeneratedProtocolMessageType( - "CreateWorkerDeploymentResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATEWORKERDEPLOYMENTRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateWorkerDeploymentResponse) - }, -) -_sym_db.RegisterMessage(CreateWorkerDeploymentResponse) - -ListWorkerDeploymentsRequest = _reflection.GeneratedProtocolMessageType( - "ListWorkerDeploymentsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTWORKERDEPLOYMENTSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkerDeploymentsRequest) - }, -) -_sym_db.RegisterMessage(ListWorkerDeploymentsRequest) - -ListWorkerDeploymentsResponse = _reflection.GeneratedProtocolMessageType( - "ListWorkerDeploymentsResponse", - (_message.Message,), - { - "WorkerDeploymentSummary": _reflection.GeneratedProtocolMessageType( - "WorkerDeploymentSummary", - (_message.Message,), - { - "DESCRIPTOR": _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary) - }, - ), - "DESCRIPTOR": _LISTWORKERDEPLOYMENTSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse) - }, -) -_sym_db.RegisterMessage(ListWorkerDeploymentsResponse) -_sym_db.RegisterMessage(ListWorkerDeploymentsResponse.WorkerDeploymentSummary) - -CreateWorkerDeploymentVersionRequest = _reflection.GeneratedProtocolMessageType( - "CreateWorkerDeploymentVersionRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEWORKERDEPLOYMENTVERSIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateWorkerDeploymentVersionRequest) - }, -) -_sym_db.RegisterMessage(CreateWorkerDeploymentVersionRequest) - -CreateWorkerDeploymentVersionResponse = _reflection.GeneratedProtocolMessageType( - "CreateWorkerDeploymentVersionResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATEWORKERDEPLOYMENTVERSIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateWorkerDeploymentVersionResponse) - }, -) -_sym_db.RegisterMessage(CreateWorkerDeploymentVersionResponse) - -DeleteWorkerDeploymentVersionRequest = _reflection.GeneratedProtocolMessageType( - "DeleteWorkerDeploymentVersionRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEWORKERDEPLOYMENTVERSIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionRequest) - }, -) -_sym_db.RegisterMessage(DeleteWorkerDeploymentVersionRequest) - -DeleteWorkerDeploymentVersionResponse = _reflection.GeneratedProtocolMessageType( - "DeleteWorkerDeploymentVersionResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETEWORKERDEPLOYMENTVERSIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionResponse) - }, -) -_sym_db.RegisterMessage(DeleteWorkerDeploymentVersionResponse) - -DeleteWorkerDeploymentRequest = _reflection.GeneratedProtocolMessageType( - "DeleteWorkerDeploymentRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEWORKERDEPLOYMENTREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkerDeploymentRequest) - }, -) -_sym_db.RegisterMessage(DeleteWorkerDeploymentRequest) - -DeleteWorkerDeploymentResponse = _reflection.GeneratedProtocolMessageType( - "DeleteWorkerDeploymentResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETEWORKERDEPLOYMENTRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkerDeploymentResponse) - }, -) -_sym_db.RegisterMessage(DeleteWorkerDeploymentResponse) - -UpdateWorkerDeploymentVersionComputeConfigRequest = _reflection.GeneratedProtocolMessageType( - "UpdateWorkerDeploymentVersionComputeConfigRequest", - (_message.Message,), - { - "ComputeConfigScalingGroupsEntry": _reflection.GeneratedProtocolMessageType( - "ComputeConfigScalingGroupsEntry", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry) - }, - ), - "DESCRIPTOR": _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionComputeConfigRequest) - }, -) -_sym_db.RegisterMessage(UpdateWorkerDeploymentVersionComputeConfigRequest) -_sym_db.RegisterMessage( - UpdateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry -) - -UpdateWorkerDeploymentVersionComputeConfigResponse = ( - _reflection.GeneratedProtocolMessageType( - "UpdateWorkerDeploymentVersionComputeConfigResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionComputeConfigResponse) - }, - ) -) -_sym_db.RegisterMessage(UpdateWorkerDeploymentVersionComputeConfigResponse) - -ValidateWorkerDeploymentVersionComputeConfigRequest = _reflection.GeneratedProtocolMessageType( - "ValidateWorkerDeploymentVersionComputeConfigRequest", - (_message.Message,), - { - "ComputeConfigScalingGroupsEntry": _reflection.GeneratedProtocolMessageType( - "ComputeConfigScalingGroupsEntry", - (_message.Message,), - { - "DESCRIPTOR": _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ValidateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry) - }, - ), - "DESCRIPTOR": _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ValidateWorkerDeploymentVersionComputeConfigRequest) - }, -) -_sym_db.RegisterMessage(ValidateWorkerDeploymentVersionComputeConfigRequest) -_sym_db.RegisterMessage( - ValidateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry -) - -ValidateWorkerDeploymentVersionComputeConfigResponse = ( - _reflection.GeneratedProtocolMessageType( - "ValidateWorkerDeploymentVersionComputeConfigResponse", - (_message.Message,), - { - "DESCRIPTOR": _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ValidateWorkerDeploymentVersionComputeConfigResponse) - }, - ) -) -_sym_db.RegisterMessage(ValidateWorkerDeploymentVersionComputeConfigResponse) - -UpdateWorkerDeploymentVersionMetadataRequest = _reflection.GeneratedProtocolMessageType( - "UpdateWorkerDeploymentVersionMetadataRequest", - (_message.Message,), - { - "UpsertEntriesEntry": _reflection.GeneratedProtocolMessageType( - "UpsertEntriesEntry", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry) - }, - ), - "DESCRIPTOR": _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest) - }, -) -_sym_db.RegisterMessage(UpdateWorkerDeploymentVersionMetadataRequest) -_sym_db.RegisterMessage(UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry) - -UpdateWorkerDeploymentVersionMetadataResponse = ( - _reflection.GeneratedProtocolMessageType( - "UpdateWorkerDeploymentVersionMetadataResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataResponse) - }, - ) -) -_sym_db.RegisterMessage(UpdateWorkerDeploymentVersionMetadataResponse) - -SetWorkerDeploymentManagerRequest = _reflection.GeneratedProtocolMessageType( - "SetWorkerDeploymentManagerRequest", - (_message.Message,), - { - "DESCRIPTOR": _SETWORKERDEPLOYMENTMANAGERREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentManagerRequest) - }, -) -_sym_db.RegisterMessage(SetWorkerDeploymentManagerRequest) - -SetWorkerDeploymentManagerResponse = _reflection.GeneratedProtocolMessageType( - "SetWorkerDeploymentManagerResponse", - (_message.Message,), - { - "DESCRIPTOR": _SETWORKERDEPLOYMENTMANAGERRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentManagerResponse) - }, -) -_sym_db.RegisterMessage(SetWorkerDeploymentManagerResponse) - -GetCurrentDeploymentRequest = _reflection.GeneratedProtocolMessageType( - "GetCurrentDeploymentRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETCURRENTDEPLOYMENTREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetCurrentDeploymentRequest) - }, -) -_sym_db.RegisterMessage(GetCurrentDeploymentRequest) - -GetCurrentDeploymentResponse = _reflection.GeneratedProtocolMessageType( - "GetCurrentDeploymentResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETCURRENTDEPLOYMENTRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetCurrentDeploymentResponse) - }, -) -_sym_db.RegisterMessage(GetCurrentDeploymentResponse) - -GetDeploymentReachabilityRequest = _reflection.GeneratedProtocolMessageType( - "GetDeploymentReachabilityRequest", - (_message.Message,), - { - "DESCRIPTOR": _GETDEPLOYMENTREACHABILITYREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetDeploymentReachabilityRequest) - }, -) -_sym_db.RegisterMessage(GetDeploymentReachabilityRequest) - -GetDeploymentReachabilityResponse = _reflection.GeneratedProtocolMessageType( - "GetDeploymentReachabilityResponse", - (_message.Message,), - { - "DESCRIPTOR": _GETDEPLOYMENTREACHABILITYRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse) - }, -) -_sym_db.RegisterMessage(GetDeploymentReachabilityResponse) - -CreateWorkflowRuleRequest = _reflection.GeneratedProtocolMessageType( - "CreateWorkflowRuleRequest", - (_message.Message,), - { - "DESCRIPTOR": _CREATEWORKFLOWRULEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateWorkflowRuleRequest) - }, -) -_sym_db.RegisterMessage(CreateWorkflowRuleRequest) - -CreateWorkflowRuleResponse = _reflection.GeneratedProtocolMessageType( - "CreateWorkflowRuleResponse", - (_message.Message,), - { - "DESCRIPTOR": _CREATEWORKFLOWRULERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateWorkflowRuleResponse) - }, -) -_sym_db.RegisterMessage(CreateWorkflowRuleResponse) - -DescribeWorkflowRuleRequest = _reflection.GeneratedProtocolMessageType( - "DescribeWorkflowRuleRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKFLOWRULEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkflowRuleRequest) - }, -) -_sym_db.RegisterMessage(DescribeWorkflowRuleRequest) - -DescribeWorkflowRuleResponse = _reflection.GeneratedProtocolMessageType( - "DescribeWorkflowRuleResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKFLOWRULERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkflowRuleResponse) - }, -) -_sym_db.RegisterMessage(DescribeWorkflowRuleResponse) - -DeleteWorkflowRuleRequest = _reflection.GeneratedProtocolMessageType( - "DeleteWorkflowRuleRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEWORKFLOWRULEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkflowRuleRequest) - }, -) -_sym_db.RegisterMessage(DeleteWorkflowRuleRequest) - -DeleteWorkflowRuleResponse = _reflection.GeneratedProtocolMessageType( - "DeleteWorkflowRuleResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETEWORKFLOWRULERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkflowRuleResponse) - }, -) -_sym_db.RegisterMessage(DeleteWorkflowRuleResponse) - -ListWorkflowRulesRequest = _reflection.GeneratedProtocolMessageType( - "ListWorkflowRulesRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTWORKFLOWRULESREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkflowRulesRequest) - }, -) -_sym_db.RegisterMessage(ListWorkflowRulesRequest) - -ListWorkflowRulesResponse = _reflection.GeneratedProtocolMessageType( - "ListWorkflowRulesResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTWORKFLOWRULESRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkflowRulesResponse) - }, -) -_sym_db.RegisterMessage(ListWorkflowRulesResponse) - -TriggerWorkflowRuleRequest = _reflection.GeneratedProtocolMessageType( - "TriggerWorkflowRuleRequest", - (_message.Message,), - { - "DESCRIPTOR": _TRIGGERWORKFLOWRULEREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TriggerWorkflowRuleRequest) - }, -) -_sym_db.RegisterMessage(TriggerWorkflowRuleRequest) - -TriggerWorkflowRuleResponse = _reflection.GeneratedProtocolMessageType( - "TriggerWorkflowRuleResponse", - (_message.Message,), - { - "DESCRIPTOR": _TRIGGERWORKFLOWRULERESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TriggerWorkflowRuleResponse) - }, -) -_sym_db.RegisterMessage(TriggerWorkflowRuleResponse) - -RecordWorkerHeartbeatRequest = _reflection.GeneratedProtocolMessageType( - "RecordWorkerHeartbeatRequest", - (_message.Message,), - { - "DESCRIPTOR": _RECORDWORKERHEARTBEATREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest) - }, -) -_sym_db.RegisterMessage(RecordWorkerHeartbeatRequest) - -RecordWorkerHeartbeatResponse = _reflection.GeneratedProtocolMessageType( - "RecordWorkerHeartbeatResponse", - (_message.Message,), - { - "DESCRIPTOR": _RECORDWORKERHEARTBEATRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse) - }, -) -_sym_db.RegisterMessage(RecordWorkerHeartbeatResponse) - -ListWorkersRequest = _reflection.GeneratedProtocolMessageType( - "ListWorkersRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTWORKERSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkersRequest) - }, -) -_sym_db.RegisterMessage(ListWorkersRequest) - -ListWorkersResponse = _reflection.GeneratedProtocolMessageType( - "ListWorkersResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTWORKERSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkersResponse) - }, -) -_sym_db.RegisterMessage(ListWorkersResponse) - -UpdateTaskQueueConfigRequest = _reflection.GeneratedProtocolMessageType( - "UpdateTaskQueueConfigRequest", - (_message.Message,), - { - "RateLimitUpdate": _reflection.GeneratedProtocolMessageType( - "RateLimitUpdate", - (_message.Message,), - { - "DESCRIPTOR": _UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate) - }, - ), - "SetFairnessWeightOverridesEntry": _reflection.GeneratedProtocolMessageType( - "SetFairnessWeightOverridesEntry", - (_message.Message,), - { - "DESCRIPTOR": _UPDATETASKQUEUECONFIGREQUEST_SETFAIRNESSWEIGHTOVERRIDESENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.SetFairnessWeightOverridesEntry) - }, - ), - "DESCRIPTOR": _UPDATETASKQUEUECONFIGREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest) - }, -) -_sym_db.RegisterMessage(UpdateTaskQueueConfigRequest) -_sym_db.RegisterMessage(UpdateTaskQueueConfigRequest.RateLimitUpdate) -_sym_db.RegisterMessage(UpdateTaskQueueConfigRequest.SetFairnessWeightOverridesEntry) - -UpdateTaskQueueConfigResponse = _reflection.GeneratedProtocolMessageType( - "UpdateTaskQueueConfigResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATETASKQUEUECONFIGRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateTaskQueueConfigResponse) - }, -) -_sym_db.RegisterMessage(UpdateTaskQueueConfigResponse) - -FetchWorkerConfigRequest = _reflection.GeneratedProtocolMessageType( - "FetchWorkerConfigRequest", - (_message.Message,), - { - "DESCRIPTOR": _FETCHWORKERCONFIGREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.FetchWorkerConfigRequest) - }, -) -_sym_db.RegisterMessage(FetchWorkerConfigRequest) - -FetchWorkerConfigResponse = _reflection.GeneratedProtocolMessageType( - "FetchWorkerConfigResponse", - (_message.Message,), - { - "DESCRIPTOR": _FETCHWORKERCONFIGRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.FetchWorkerConfigResponse) - }, -) -_sym_db.RegisterMessage(FetchWorkerConfigResponse) - -UpdateWorkerConfigRequest = _reflection.GeneratedProtocolMessageType( - "UpdateWorkerConfigRequest", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERCONFIGREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerConfigRequest) - }, -) -_sym_db.RegisterMessage(UpdateWorkerConfigRequest) - -UpdateWorkerConfigResponse = _reflection.GeneratedProtocolMessageType( - "UpdateWorkerConfigResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATEWORKERCONFIGRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerConfigResponse) - }, -) -_sym_db.RegisterMessage(UpdateWorkerConfigResponse) - -DescribeWorkerRequest = _reflection.GeneratedProtocolMessageType( - "DescribeWorkerRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKERREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerRequest) - }, -) -_sym_db.RegisterMessage(DescribeWorkerRequest) - -DescribeWorkerResponse = _reflection.GeneratedProtocolMessageType( - "DescribeWorkerResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEWORKERRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerResponse) - }, -) -_sym_db.RegisterMessage(DescribeWorkerResponse) - -CountWorkersRequest = _reflection.GeneratedProtocolMessageType( - "CountWorkersRequest", - (_message.Message,), - { - "DESCRIPTOR": _COUNTWORKERSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountWorkersRequest) - }, -) -_sym_db.RegisterMessage(CountWorkersRequest) - -CountWorkersResponse = _reflection.GeneratedProtocolMessageType( - "CountWorkersResponse", - (_message.Message,), - { - "DESCRIPTOR": _COUNTWORKERSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountWorkersResponse) - }, -) -_sym_db.RegisterMessage(CountWorkersResponse) - -PauseWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "PauseWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _PAUSEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(PauseWorkflowExecutionRequest) - -PauseWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "PauseWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _PAUSEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(PauseWorkflowExecutionResponse) - -UnpauseWorkflowExecutionRequest = _reflection.GeneratedProtocolMessageType( - "UnpauseWorkflowExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _UNPAUSEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseWorkflowExecutionRequest) - }, -) -_sym_db.RegisterMessage(UnpauseWorkflowExecutionRequest) - -UnpauseWorkflowExecutionResponse = _reflection.GeneratedProtocolMessageType( - "UnpauseWorkflowExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _UNPAUSEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseWorkflowExecutionResponse) - }, -) -_sym_db.RegisterMessage(UnpauseWorkflowExecutionResponse) - -StartActivityExecutionRequest = _reflection.GeneratedProtocolMessageType( - "StartActivityExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _STARTACTIVITYEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartActivityExecutionRequest) - }, -) -_sym_db.RegisterMessage(StartActivityExecutionRequest) - -StartActivityExecutionResponse = _reflection.GeneratedProtocolMessageType( - "StartActivityExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _STARTACTIVITYEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartActivityExecutionResponse) - }, -) -_sym_db.RegisterMessage(StartActivityExecutionResponse) - -DescribeActivityExecutionRequest = _reflection.GeneratedProtocolMessageType( - "DescribeActivityExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEACTIVITYEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeActivityExecutionRequest) - }, -) -_sym_db.RegisterMessage(DescribeActivityExecutionRequest) - -DescribeActivityExecutionResponse = _reflection.GeneratedProtocolMessageType( - "DescribeActivityExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBEACTIVITYEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeActivityExecutionResponse) - }, -) -_sym_db.RegisterMessage(DescribeActivityExecutionResponse) - -PollActivityExecutionRequest = _reflection.GeneratedProtocolMessageType( - "PollActivityExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _POLLACTIVITYEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollActivityExecutionRequest) - }, -) -_sym_db.RegisterMessage(PollActivityExecutionRequest) - -PollActivityExecutionResponse = _reflection.GeneratedProtocolMessageType( - "PollActivityExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _POLLACTIVITYEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollActivityExecutionResponse) - }, -) -_sym_db.RegisterMessage(PollActivityExecutionResponse) - -ListActivityExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "ListActivityExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTACTIVITYEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListActivityExecutionsRequest) - }, -) -_sym_db.RegisterMessage(ListActivityExecutionsRequest) - -ListActivityExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "ListActivityExecutionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTACTIVITYEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListActivityExecutionsResponse) - }, -) -_sym_db.RegisterMessage(ListActivityExecutionsResponse) - -StartNexusOperationExecutionRequest = _reflection.GeneratedProtocolMessageType( - "StartNexusOperationExecutionRequest", - (_message.Message,), - { - "NexusHeaderEntry": _reflection.GeneratedProtocolMessageType( - "NexusHeaderEntry", - (_message.Message,), - { - "DESCRIPTOR": _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartNexusOperationExecutionRequest.NexusHeaderEntry) - }, - ), - "DESCRIPTOR": _STARTNEXUSOPERATIONEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartNexusOperationExecutionRequest) - }, -) -_sym_db.RegisterMessage(StartNexusOperationExecutionRequest) -_sym_db.RegisterMessage(StartNexusOperationExecutionRequest.NexusHeaderEntry) - -StartNexusOperationExecutionResponse = _reflection.GeneratedProtocolMessageType( - "StartNexusOperationExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _STARTNEXUSOPERATIONEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartNexusOperationExecutionResponse) - }, -) -_sym_db.RegisterMessage(StartNexusOperationExecutionResponse) - -DescribeNexusOperationExecutionRequest = _reflection.GeneratedProtocolMessageType( - "DescribeNexusOperationExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBENEXUSOPERATIONEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeNexusOperationExecutionRequest) - }, -) -_sym_db.RegisterMessage(DescribeNexusOperationExecutionRequest) - -DescribeNexusOperationExecutionResponse = _reflection.GeneratedProtocolMessageType( - "DescribeNexusOperationExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeNexusOperationExecutionResponse) - }, -) -_sym_db.RegisterMessage(DescribeNexusOperationExecutionResponse) - -PollNexusOperationExecutionRequest = _reflection.GeneratedProtocolMessageType( - "PollNexusOperationExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _POLLNEXUSOPERATIONEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollNexusOperationExecutionRequest) - }, -) -_sym_db.RegisterMessage(PollNexusOperationExecutionRequest) - -PollNexusOperationExecutionResponse = _reflection.GeneratedProtocolMessageType( - "PollNexusOperationExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _POLLNEXUSOPERATIONEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollNexusOperationExecutionResponse) - }, -) -_sym_db.RegisterMessage(PollNexusOperationExecutionResponse) - -ListNexusOperationExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "ListNexusOperationExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _LISTNEXUSOPERATIONEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListNexusOperationExecutionsRequest) - }, -) -_sym_db.RegisterMessage(ListNexusOperationExecutionsRequest) - -ListNexusOperationExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "ListNexusOperationExecutionsResponse", - (_message.Message,), - { - "DESCRIPTOR": _LISTNEXUSOPERATIONEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListNexusOperationExecutionsResponse) - }, -) -_sym_db.RegisterMessage(ListNexusOperationExecutionsResponse) - -CountActivityExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "CountActivityExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _COUNTACTIVITYEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountActivityExecutionsRequest) - }, -) -_sym_db.RegisterMessage(CountActivityExecutionsRequest) - -CountActivityExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "CountActivityExecutionsResponse", - (_message.Message,), - { - "AggregationGroup": _reflection.GeneratedProtocolMessageType( - "AggregationGroup", - (_message.Message,), - { - "DESCRIPTOR": _COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountActivityExecutionsResponse.AggregationGroup) - }, - ), - "DESCRIPTOR": _COUNTACTIVITYEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountActivityExecutionsResponse) - }, -) -_sym_db.RegisterMessage(CountActivityExecutionsResponse) -_sym_db.RegisterMessage(CountActivityExecutionsResponse.AggregationGroup) - -CountNexusOperationExecutionsRequest = _reflection.GeneratedProtocolMessageType( - "CountNexusOperationExecutionsRequest", - (_message.Message,), - { - "DESCRIPTOR": _COUNTNEXUSOPERATIONEXECUTIONSREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountNexusOperationExecutionsRequest) - }, -) -_sym_db.RegisterMessage(CountNexusOperationExecutionsRequest) - -CountNexusOperationExecutionsResponse = _reflection.GeneratedProtocolMessageType( - "CountNexusOperationExecutionsResponse", - (_message.Message,), - { - "AggregationGroup": _reflection.GeneratedProtocolMessageType( - "AggregationGroup", - (_message.Message,), - { - "DESCRIPTOR": _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountNexusOperationExecutionsResponse.AggregationGroup) - }, - ), - "DESCRIPTOR": _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountNexusOperationExecutionsResponse) - }, -) -_sym_db.RegisterMessage(CountNexusOperationExecutionsResponse) -_sym_db.RegisterMessage(CountNexusOperationExecutionsResponse.AggregationGroup) - -RequestCancelActivityExecutionRequest = _reflection.GeneratedProtocolMessageType( - "RequestCancelActivityExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELACTIVITYEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest) - }, -) -_sym_db.RegisterMessage(RequestCancelActivityExecutionRequest) - -RequestCancelActivityExecutionResponse = _reflection.GeneratedProtocolMessageType( - "RequestCancelActivityExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELACTIVITYEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RequestCancelActivityExecutionResponse) - }, -) -_sym_db.RegisterMessage(RequestCancelActivityExecutionResponse) - -TerminateActivityExecutionRequest = _reflection.GeneratedProtocolMessageType( - "TerminateActivityExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _TERMINATEACTIVITYEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TerminateActivityExecutionRequest) - }, -) -_sym_db.RegisterMessage(TerminateActivityExecutionRequest) - -TerminateActivityExecutionResponse = _reflection.GeneratedProtocolMessageType( - "TerminateActivityExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _TERMINATEACTIVITYEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TerminateActivityExecutionResponse) - }, -) -_sym_db.RegisterMessage(TerminateActivityExecutionResponse) - -DeleteActivityExecutionRequest = _reflection.GeneratedProtocolMessageType( - "DeleteActivityExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETEACTIVITYEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteActivityExecutionRequest) - }, -) -_sym_db.RegisterMessage(DeleteActivityExecutionRequest) - -DeleteActivityExecutionResponse = _reflection.GeneratedProtocolMessageType( - "DeleteActivityExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETEACTIVITYEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteActivityExecutionResponse) - }, -) -_sym_db.RegisterMessage(DeleteActivityExecutionResponse) - -RequestCancelNexusOperationExecutionRequest = _reflection.GeneratedProtocolMessageType( - "RequestCancelNexusOperationExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RequestCancelNexusOperationExecutionRequest) - }, -) -_sym_db.RegisterMessage(RequestCancelNexusOperationExecutionRequest) - -RequestCancelNexusOperationExecutionResponse = _reflection.GeneratedProtocolMessageType( - "RequestCancelNexusOperationExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RequestCancelNexusOperationExecutionResponse) - }, -) -_sym_db.RegisterMessage(RequestCancelNexusOperationExecutionResponse) - -TerminateNexusOperationExecutionRequest = _reflection.GeneratedProtocolMessageType( - "TerminateNexusOperationExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _TERMINATENEXUSOPERATIONEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TerminateNexusOperationExecutionRequest) - }, -) -_sym_db.RegisterMessage(TerminateNexusOperationExecutionRequest) - -TerminateNexusOperationExecutionResponse = _reflection.GeneratedProtocolMessageType( - "TerminateNexusOperationExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _TERMINATENEXUSOPERATIONEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TerminateNexusOperationExecutionResponse) - }, -) -_sym_db.RegisterMessage(TerminateNexusOperationExecutionResponse) - -DeleteNexusOperationExecutionRequest = _reflection.GeneratedProtocolMessageType( - "DeleteNexusOperationExecutionRequest", - (_message.Message,), - { - "DESCRIPTOR": _DELETENEXUSOPERATIONEXECUTIONREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteNexusOperationExecutionRequest) - }, -) -_sym_db.RegisterMessage(DeleteNexusOperationExecutionRequest) - -DeleteNexusOperationExecutionResponse = _reflection.GeneratedProtocolMessageType( - "DeleteNexusOperationExecutionResponse", - (_message.Message,), - { - "DESCRIPTOR": _DELETENEXUSOPERATIONEXECUTIONRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteNexusOperationExecutionResponse) - }, -) -_sym_db.RegisterMessage(DeleteNexusOperationExecutionResponse) - -PollWorkflowExecutionTimeSkippingRequest = _reflection.GeneratedProtocolMessageType( - "PollWorkflowExecutionTimeSkippingRequest", - (_message.Message,), - { - "DESCRIPTOR": _POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowExecutionTimeSkippingRequest) - }, -) -_sym_db.RegisterMessage(PollWorkflowExecutionTimeSkippingRequest) - -PollWorkflowExecutionTimeSkippingResponse = _reflection.GeneratedProtocolMessageType( - "PollWorkflowExecutionTimeSkippingResponse", - (_message.Message,), - { - "DESCRIPTOR": _POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE, - "__module__": "temporalio.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowExecutionTimeSkippingResponse) - }, + b'\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.proto\x1a"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a!temporal/api/enums/v1/query.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a&temporal/api/enums/v1/deployment.proto\x1a"temporal/api/enums/v1/update.proto\x1a)temporal/api/enums/v1/time_skipping.proto\x1a$temporal/api/enums/v1/activity.proto\x1a!temporal/api/enums/v1/nexus.proto\x1a&temporal/api/activity/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/history/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a%temporal/api/command/v1/message.proto\x1a$temporal/api/compute/v1/config.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/filter/v1/message.proto\x1a&temporal/api/protocol/v1/message.proto\x1a\'temporal/api/namespace/v1/message.proto\x1a#temporal/api/query/v1/message.proto\x1a)temporal/api/replication/v1/message.proto\x1a#temporal/api/rules/v1/message.proto\x1a\'temporal/api/sdk/v1/worker_config.proto\x1a&temporal/api/schedule/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a%temporal/api/version/v1/message.proto\x1a#temporal/api/batch/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a#temporal/api/nexus/v1/message.proto\x1a,temporal/api/nexusoperation/v1/message.proto\x1a$temporal/api/worker/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x88\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bowner_email\x18\x03 \x01(\t\x12\x46\n#workflow_execution_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12G\n\x08\x63lusters\x18\x05 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x06 \x01(\t\x12Q\n\x04\x64\x61ta\x18\x07 \x03(\x0b\x32\x43.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0esecurity_token\x18\x08 \x01(\t\x12\x1b\n\x13is_global_namespace\x18\t \x01(\x08\x12\x44\n\x16history_archival_state\x18\n \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x0b \x01(\t\x12G\n\x19visibility_archival_state\x18\x0c \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\r \x01(\t\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1b\n\x19RegisterNamespaceResponse"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x44\n\x10namespace_filter\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceFilter"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\x0b\x32:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"S\n\x18\x44\x65scribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x18\n\x10weak_consistency\x18\x03 \x01(\x08"\x81\x04\n\x19\x44\x65scribeNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\x12\x45\n\x10\x66\x61ilover_history\x18\x06 \x03(\x0b\x32+.temporal.api.replication.v1.FailoverStatus\x12J\n\x12poller_group_infos\x18\x07 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x08 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo"\xcf\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x43\n\x0bupdate_info\x18\x02 \x01(\x0b\x32..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06\x63onfig\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65lete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\x07 \x01(\x08"\xa3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08"F\n\x19\x44\x65precateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0esecurity_token\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65precateNamespaceResponse"\x97\x0e\n\x1dStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x1f\n\x17request_eager_execution\x18\x11 \x01(\x08\x12;\n\x11\x63ontinued_failure\x18\x12 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x14\x63ompletion_callbacks\x18\x15 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12H\n\x13on_conflict_options\x18\x1a \x01(\x0b\x32+.temporal.api.workflow.v1.OnConflictOptions\x12\x32\n\x08priority\x18\x1b \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\\\n\x1f\x65\x61ger_worker_deployment_options\x18\x1c \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12H\n\x14time_skipping_config\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12\x65\n&propagated_nexus_serialization_context\x18\x1e \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12]\n\x1ftime_skipping_state_propagation\x18\x1f \x01(\x0b\x32\x34.temporal.api.common.v1.TimeSkippingStatePropagation"\xaa\x02\n\x1eStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12\x0f\n\x07started\x18\x03 \x01(\x08\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12[\n\x13\x65\x61ger_workflow_task\x18\x02 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12*\n\x04link\x18\x04 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xaa\x02\n"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\x12\x16\n\x0ewait_new_event\x18\x05 \x01(\x08\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0e\x32-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\x07 \x01(\x08"\xa1\x02\n#GetWorkflowExecutionHistoryResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x35\n\x0braw_history\x18\x02 \x03(\x0b\x32 .temporal.api.common.v1.DataBlob\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x10\n\x08\x61rchived\x18\x04 \x01(\x08\x12\x65\n&propagated_nexus_serialization_context\x18\x05 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xb0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"x\n*GetWorkflowExecutionHistoryReverseResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\xfd\x03\n\x1cPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\n \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12!\n\x19worker_control_task_queue\x18\t \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x04 \x01(\tB\x02\x18\x01\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x43\n\x10poller_pool_info\x18\x0b \x01(\x0b\x32).temporal.api.taskqueue.v1.PollerPoolInfoJ\x04\x08\x07\x10\x08R\x10worker_heartbeat"\xbf\x08\n\x1dPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x05\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12\x31\n\x07history\x18\x08 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x33\n\x05query\x18\n \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1dworkflow_execution_task_queue\x18\x0b \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x32\n\x0escheduled_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\\\n\x07queries\x18\x0e \x03(\x0b\x32K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x12\x33\n\x08messages\x18\x0f \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12Q\n\x17poller_scaling_decision\x18\x10 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x17\n\x0fpoller_group_id\x18\x11 \x01(\t\x12J\n\x12poller_group_infos\x18\x12 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x13 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo\x1aT\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery:\x02\x38\x01"\xba\n\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x32\n\x08\x63ommands\x18\x02 \x03(\x0b\x32 .temporal.api.command.v1.Command\x12\x10\n\x08identity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\x08\x12&\n\x1e\x66orce_create_new_workflow_task\x18\x06 \x01(\x08\x12\x1b\n\x0f\x62inary_checksum\x18\x07 \x01(\tB\x02\x18\x01\x12m\n\rquery_results\x18\x08 \x03(\x0b\x32V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12\x13\n\x0bresource_id\x18\x12 \x01(\t\x12L\n\x14worker_version_stamp\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12H\n\x0csdk_metadata\x18\x0c \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x12g\n\x0c\x63\x61pabilities\x18\x0e \x01(\x0b\x32Q.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities\x12>\n\ndeployment\x18\x0f \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x46\n\x13versioning_behavior\x18\x10 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12O\n\x12\x64\x65ployment_options\x18\x11 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x1b\n\x13worker_instance_key\x18\x13 \x01(\t\x12!\n\x19worker_control_task_queue\x18\x14 \x01(\t\x12\x13\n\x0bpage_number\x18\x15 \x01(\x05\x12\x19\n\x11intermediate_page\x18\x16 \x01(\x08\x1a_\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.temporal.api.query.v1.WorkflowQueryResult:\x02\x38\x01\x1a\x45\n\x0c\x43\x61pabilities\x12\x35\n-discard_speculative_workflow_task_with_events\x18\x01 \x01(\x08"\xf5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0e\x61\x63tivity_tasks\x18\x02 \x03(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1e\n\x16reset_history_event_id\x18\x03 \x01(\x03"\x8d\x04\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12=\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x05 \x01(\tB\x02\x18\x01\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x0b \x01(\t\x12\x33\n\x08messages\x18\x07 \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12\x46\n\x0eworker_version\x18\x08 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\t \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\n \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"#\n!RespondWorkflowTaskFailedResponse"\xab\x04\n\x1cPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\n \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12!\n\x19worker_control_task_queue\x18\t \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x43\n\x10poller_pool_info\x18\x0b \x01(\x0b\x32).temporal.api.taskqueue.v1.PollerPoolInfoJ\x04\x08\x07\x10\x08R\x10worker_heartbeat"\x84\n\n\x1dPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x1a\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x08 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\r \x01(\x05\x12<\n\x19schedule_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12Q\n\x17poller_scaling_decision\x18\x12 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x32\n\x08priority\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\x17\n\x0f\x61\x63tivity_run_id\x18\x14 \x01(\t\x12J\n\x12poller_group_infos\x18\x15 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x16 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo\x12\x65\n&propagated_nexus_serialization_context\x18\x17 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xa5\x01\n"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x05 \x01(\t"p\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08\x12\x16\n\x0e\x61\x63tivity_reset\x18\x03 \x01(\x08"\xcf\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"t\n\'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08\x12\x16\n\x0e\x61\x63tivity_reset\x18\x03 \x01(\x08"\xfe\x02\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"&\n$RespondActivityTaskCompletedResponse"\xcf\x01\n\'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x30\n\x06result\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"*\n(RespondActivityTaskCompletedByIdResponse"\xfd\x03\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x07 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x08 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12=\n\x05\x63\x61use\x18\n \x01(\x0e\x32..temporal.api.enums.v1.ActivityTaskFailedCause"W\n!RespondActivityTaskFailedResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xce\x02\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12=\n\x05\x63\x61use\x18\t \x01(\x0e\x32..temporal.api.enums.v1.ActivityTaskFailedCause"[\n%RespondActivityTaskFailedByIdResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xfe\x02\n"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"%\n#RespondActivityTaskCanceledResponse"\xa0\x02\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x13\n\x0bresource_id\x18\x08 \x01(\t")\n\'RespondActivityTaskCanceledByIdResponse"\x84\x02\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"(\n&RequestCancelWorkflowExecutionResponse"\xde\x02\n\x1eSignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x13\n\x07\x63ontrol\x18\x07 \x01(\tB\x02\x18\x01\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12+\n\x05links\x18\n \x03(\x0b\x32\x1c.temporal.api.common.v1.LinkJ\x04\x08\t\x10\n"M\n\x1fSignalWorkflowExecutionResponse\x12*\n\x04link\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xbb\n\n\'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x13\n\x0bsignal_name\x18\x0c \x01(\t\x12\x36\n\x0csignal_input\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x07\x63ontrol\x18\x0e \x01(\tB\x02\x18\x01\x12\x39\n\x0cretry_policy\x18\x0f \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x12 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x1a \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x1b \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfigJ\x04\x08\x15\x10\x16"\x9e\x01\n(SignalWithStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x04 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08\x12\x31\n\x0bsignal_link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xc1\x03\n\x1dResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12%\n\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12G\n\x12reset_reapply_type\x18\x06 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01\x12S\n\x1breset_reapply_exclude_types\x18\x07 \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeType\x12K\n\x15post_reset_operations\x18\x08 \x03(\x0b\x32,.temporal.api.workflow.v1.PostResetOperation\x12\x10\n\x08identity\x18\t \x01(\t"0\n\x1eResetWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\x9f\x02\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"$\n"TerminateWorkflowExecutionResponse"z\n\x1e\x44\x65leteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"!\n\x1f\x44\x65leteWorkflowExecutionResponse"\xc9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x42\t\n\x07\x66ilters"\x82\x01\n"ListOpenWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8a\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\x07 \x01(\x0b\x32$.temporal.api.filter.v1.StatusFilterH\x00\x42\t\n\x07\x66ilters"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eListWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eScanWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountWorkflowExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x1c\n\x1aGetSearchAttributesRequest"\xc9\x01\n\x1bGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\x0b\x32\x46.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1aT\n\tKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\xe9\x02\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12>\n\x0e\x63ompleted_type\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x36\n\x0cquery_result\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12=\n\x05\x63\x61use\x18\x08 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x17\n\x0fpoller_group_id\x18\t \x01(\tJ\x04\x08\x05\x10\x06"#\n!RespondQueryTaskCompletedResponse"n\n\x1bResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x1e\n\x1cResetStickyTaskQueueResponse"\x9b\x02\n\x15ShutdownWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11sticky_task_queue\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x41\n\x10worker_heartbeat\x18\x05 \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x1b\n\x13worker_instance_key\x18\x06 \x01(\t\x12\x12\n\ntask_queue\x18\x07 \x01(\t\x12>\n\x10task_queue_types\x18\x08 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType"\x18\n\x16ShutdownWorkerResponse"\xe9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x33\n\x05query\x18\x03 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0e\x32+.temporal.api.enums.v1.QueryRejectCondition"\xb9\x01\n\x15QueryWorkflowResponse\x12\x36\n\x0cquery_result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x0equery_rejected\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.QueryRejected\x12*\n\x04link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x99\x05\n!DescribeWorkflowExecutionResponse\x12K\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32\x31.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\x0b\x32-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\x0b\x32\x31.temporal.api.workflow.v1.PendingWorkflowTaskInfo\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.workflow.v1.CallbackInfo\x12U\n\x18pending_nexus_operations\x18\x07 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingNexusOperationInfo\x12W\n\x16workflow_extended_info\x18\x08 \x01(\x0b\x32\x37.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo"\x90\x04\n\x18\x44\x65scribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0ftask_queue_type\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x14\n\x0creport_stats\x18\x08 \x01(\x08\x12\x15\n\rreport_config\x18\x0b \x01(\x08\x12%\n\x19include_task_queue_status\x18\x04 \x01(\x08\x42\x02\x18\x01\x12\x42\n\x08\x61pi_mode\x18\x05 \x01(\x0e\x32,.temporal.api.enums.v1.DescribeTaskQueueModeB\x02\x18\x01\x12J\n\x08versions\x18\x06 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.TaskQueueVersionSelectionB\x02\x18\x01\x12\x42\n\x10task_queue_types\x18\x07 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueTypeB\x02\x18\x01\x12\x1a\n\x0ereport_pollers\x18\t \x01(\x08\x42\x02\x18\x01\x12$\n\x18report_task_reachability\x18\n \x01(\x08\x42\x02\x18\x01"\xec\x07\n\x19\x44\x65scribeTaskQueueResponse\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x05 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\x12q\n\x15stats_by_priority_key\x18\x08 \x03(\x0b\x32R.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.StatsByPriorityKeyEntry\x12K\n\x0fversioning_info\x18\x04 \x01(\x0b\x32\x32.temporal.api.taskqueue.v1.TaskQueueVersioningInfo\x12:\n\x06\x63onfig\x18\x06 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueConfig\x12k\n\x14\x65\x66\x66\x65\x63tive_rate_limit\x18\x07 \x01(\x0b\x32M.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.EffectiveRateLimit\x12I\n\x11task_queue_status\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueStatusB\x02\x18\x01\x12g\n\rversions_info\x18\x03 \x03(\x0b\x32L.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntryB\x02\x18\x01\x1a\x64\n\x17StatsByPriorityKeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats:\x02\x38\x01\x1at\n\x12\x45\x66\x66\x65\x63tiveRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02\x12\x41\n\x11rate_limit_source\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.RateLimitSource\x1a\x64\n\x11VersionsInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.temporal.api.taskqueue.v1.TaskQueueVersionInfo:\x02\x38\x01"\x17\n\x15GetClusterInfoRequest"\xd1\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\x0b\x32M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0cversion_info\x18\x04 \x01(\x0b\x32$.temporal.api.version.v1.VersionInfo\x12\x14\n\x0c\x63luster_name\x18\x05 \x01(\t\x12\x1b\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\x07 \x01(\t\x12\x18\n\x10visibility_store\x18\x08 \x01(\t\x12 \n\x18initial_failover_version\x18\t \x01(\x03\x12"\n\x1a\x66\x61ilover_version_increment\x18\n \x01(\x03\x1a\x37\n\x15SupportedClientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x16\n\x14GetSystemInfoRequest"\xc1\x04\n\x15GetSystemInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12Y\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32\x43.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1a\xb4\x03\n\x0c\x43\x61pabilities\x12\x1f\n\x17signal_and_query_header\x18\x01 \x01(\x08\x12&\n\x1einternal_error_differentiation\x18\x02 \x01(\x08\x12*\n"activity_failure_include_heartbeat\x18\x03 \x01(\x08\x12\x1a\n\x12supports_schedules\x18\x04 \x01(\x08\x12"\n\x1a\x65ncoded_failure_attributes\x18\x05 \x01(\x08\x12!\n\x19\x62uild_id_based_versioning\x18\x06 \x01(\x08\x12\x13\n\x0bupsert_memo\x18\x07 \x01(\x08\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x08 \x01(\x08\x12\x14\n\x0csdk_metadata\x18\t \x01(\x08\x12\'\n\x1f\x63ount_group_by_execution_status\x18\n \x01(\x08\x12\r\n\x05nexus\x18\x0b \x01(\x08\x12!\n\x19server_scaled_deployments\x18\x0c \x01(\x08\x12(\n server_scaled_provider_cloud_run\x18\r \x01(\x08"m\n\x1eListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue"\xdf\x01\n\x1fListTaskQueuePartitionsResponse\x12]\n\x1e\x61\x63tivity_task_queue_partitions\x18\x01 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1eworkflow_task_queue_partitions\x18\x02 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"\xcc\x02\n\x15\x43reateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\x07 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"0\n\x16\x43reateScheduleResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"A\n\x17\x44\x65scribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t"\x8f\x02\n\x18\x44\x65scribeScheduleResponse\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x04 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c"\xa4\x02\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x43\n\x11search_attributes\x18\x07 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12*\n\x04memo\x18\x08 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x18\n\x16UpdateScheduleResponse"\x9c\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x36\n\x05patch\x18\x03 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\x17\n\x15PatchScheduleResponse"\xa8\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n!ListScheduleMatchingTimesResponse\x12.\n\nstart_time\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x15\x44\x65leteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t"\x18\n\x16\x44\x65leteScheduleResponse"l\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\x0b\x32+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"9\n\x15\x43ountSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xdb\x01\n\x16\x43ountSchedulesResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12X\n\x06groups\x18\x02 \x03(\x0b\x32H.temporal.api.workflowservice.v1.CountSchedulesResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x86\x05\n\'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\x1b\x61\x64\x64_new_compatible_build_id\x18\x04 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00\x12h\n\nmerge_sets\x18\x07 \x01(\x0b\x32R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH\x00\x1ao\n\x17\x41\x64\x64NewCompatibleVersion\x12\x14\n\x0cnew_build_id\x18\x01 \x01(\t\x12$\n\x1c\x65xisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\x08\x1aI\n\tMergeSets\x12\x1c\n\x14primary_set_build_id\x18\x01 \x01(\t\x12\x1e\n\x16secondary_set_build_id\x18\x02 \x01(\tB\x0b\n\toperation"@\n(UpdateWorkerBuildIdCompatibilityResponseJ\x04\x08\x01\x10\x02R\x0eversion_set_id"_\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\x08max_sets\x18\x03 \x01(\x05"t\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\x0b\x32/.temporal.api.taskqueue.v1.CompatibleVersionSet"\xb5\r\n"UpdateWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c\x12\x81\x01\n\x16insert_assignment_rule\x18\x04 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRuleH\x00\x12\x83\x01\n\x17replace_assignment_rule\x18\x05 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRuleH\x00\x12\x81\x01\n\x16\x64\x65lete_assignment_rule\x18\x06 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRuleH\x00\x12\x8c\x01\n\x1c\x61\x64\x64_compatible_redirect_rule\x18\x07 \x01(\x0b\x32\x64.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRuleH\x00\x12\x94\x01\n replace_compatible_redirect_rule\x18\x08 \x01(\x0b\x32h.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRuleH\x00\x12\x92\x01\n\x1f\x64\x65lete_compatible_redirect_rule\x18\t \x01(\x0b\x32g.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRuleH\x00\x12l\n\x0f\x63ommit_build_id\x18\n \x01(\x0b\x32Q.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildIdH\x00\x1aq\n\x1bInsertBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x1a\x81\x01\n\x1cReplaceBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x1a@\n\x1b\x44\x65leteBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x1aj\n AddCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1an\n$ReplaceCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1a>\n#DeleteCompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x1a\x37\n\rCommitBuildId\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x42\x0b\n\toperation"\xfc\x01\n#UpdateWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"H\n\x1fGetWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t"\xf9\x01\n GetWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"\x9c\x01\n GetWorkerTaskReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tbuild_ids\x18\x02 \x03(\t\x12\x13\n\x0btask_queues\x18\x03 \x03(\t\x12=\n\x0creachability\x18\x04 \x01(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"r\n!GetWorkerTaskReachabilityResponse\x12M\n\x15\x62uild_id_reachability\x18\x01 \x03(\x0b\x32..temporal.api.taskqueue.v1.BuildIdReachability"\x85\x02\n\x1eUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x16\x66irst_execution_run_id\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy\x12\x30\n\x07request\x18\x05 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xea\x02\n\x1fUpdateWorkflowExecutionResponse\x12\x35\n\nupdate_ref\x18\x01 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x03 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12*\n\x04link\x18\x04 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x65\n&propagated_nexus_serialization_context\x18\x05 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xd6\n\n\x1aStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x41\n\nexecutions\x18\x05 \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecutionB\x02\x18\x01\x12<\n\x11target_executions\x18\x16 \x03(\x0b\x32!.temporal.api.common.v1.Execution\x12!\n\x19max_operations_per_second\x18\x06 \x01(\x02\x12Q\n\x15termination_operation\x18\n \x01(\x0b\x32\x30.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\x0b \x01(\x0b\x32+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16\x63\x61ncellation_operation\x18\x0c \x01(\x0b\x32\x31.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12\x64\x65letion_operation\x18\r \x01(\x0b\x32-.temporal.api.batch.v1.BatchOperationDeletionH\x00\x12\x45\n\x0freset_operation\x18\x0e \x01(\x0b\x32*.temporal.api.batch.v1.BatchOperationResetH\x00\x12p\n!update_workflow_options_operation\x18\x0f \x01(\x0b\x32\x43.temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptionsH\x00\x12^\n\x1cunpause_activities_operation\x18\x10 \x01(\x0b\x32\x36.temporal.api.batch.v1.BatchOperationUnpauseActivitiesH\x00\x12Z\n\x1areset_activities_operation\x18\x11 \x01(\x0b\x32\x34.temporal.api.batch.v1.BatchOperationResetActivitiesH\x00\x12g\n!update_activity_options_operation\x18\x12 \x01(\x0b\x32:.temporal.api.batch.v1.BatchOperationUpdateActivityOptionsH\x00\x12\\\n\x1b\x63\x61ncel_activities_operation\x18\x13 \x01(\x0b\x32\x35.temporal.api.batch.v1.BatchOperationCancelActivitiesH\x00\x12\x62\n\x1eterminate_activities_operation\x18\x14 \x01(\x0b\x32\x38.temporal.api.batch.v1.BatchOperationTerminateActivitiesH\x00\x12\\\n\x1b\x64\x65lete_activities_operation\x18\x15 \x01(\x0b\x32\x35.temporal.api.batch.v1.BatchOperationDeleteActivitiesH\x00\x42\x0b\n\toperation"\x1d\n\x1bStartBatchOperationResponse"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t"\x1c\n\x1aStopBatchOperationResponse"B\n\x1d\x44\x65scribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\xd8\x03\n\x1e\x44\x65scribeBatchOperationResponse\x12\x41\n\x0eoperation_type\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18\x63omplete_operation_count\x18\x07 \x01(\x03\x12\x1f\n\x17\x66\x61ilure_operation_count\x18\x08 \x01(\x03\x12\x10\n\x08identity\x18\t \x01(\t\x12\x0e\n\x06reason\x18\n \x01(\t\x12\r\n\x05query\x18\x0b \x01(\t\x12\x35\n\nexecutions\x18\x0c \x03(\x0b\x32!.temporal.api.common.v1.Execution"[\n\x1aListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"y\n\x1bListBatchOperationsResponse\x12\x41\n\x0eoperation_info\x18\x01 \x03(\x0b\x32).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xb9\x01\n"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\nupdate_ref\x18\x02 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy"\xc2\x02\n#PollWorkflowExecutionUpdateResponse\x12\x30\n\x07outcome\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12\x35\n\nupdate_ref\x18\x03 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x65\n&propagated_nexus_serialization_context\x18\x04 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xe5\x03\n\x19PollNexusTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\t \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x41\n\x10worker_heartbeat\x18\x07 \x03(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x43\n\x10poller_pool_info\x18\n \x01(\x0b\x32).temporal.api.taskqueue.v1.PollerPoolInfo"\xe2\x02\n\x1aPollNexusTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12/\n\x07request\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Request\x12Q\n\x17poller_scaling_decision\x18\x03 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x17\n\x0fpoller_group_id\x18\x04 \x01(\t\x12J\n\x12poller_group_infos\x18\x05 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x06 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo"\xa7\x01\n RespondNexusTaskCompletedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x31\n\x08response\x18\x04 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Response\x12\x17\n\x0fpoller_group_id\x18\x05 \x01(\t"#\n!RespondNexusTaskCompletedResponse"\xdc\x01\n\x1dRespondNexusTaskFailedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x36\n\x05\x65rror\x18\x04 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerErrorB\x02\x18\x01\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x17\n\x0fpoller_group_id\x18\x06 \x01(\t" \n\x1eRespondNexusTaskFailedResponse"\xf4\x02\n\x1c\x45xecuteMultiOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12[\n\noperations\x18\x02 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation\x12\x13\n\x0bresource_id\x18\x03 \x01(\t\x1a\xce\x01\n\tOperation\x12X\n\x0estart_workflow\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestH\x00\x12Z\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequestH\x00\x42\x0b\n\toperation"\xcc\x02\n\x1d\x45xecuteMultiOperationResponse\x12Z\n\tresponses\x18\x01 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response\x1a\xce\x01\n\x08Response\x12Y\n\x0estart_workflow\x18\x01 \x01(\x0b\x32?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponseH\x00\x12[\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponseH\x00\x42\n\n\x08response"\xd0\x02\n\x1cUpdateActivityOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x04 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0c\n\x02id\x18\x06 \x01(\tH\x00\x12\x0e\n\x04type\x18\x07 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\t \x01(\x08H\x00\x12\x18\n\x10restore_original\x18\x08 \x01(\x08\x42\n\n\x08\x61\x63tivity"\xbf\x02\n%UpdateActivityExecutionOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x06 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x18\n\x10restore_original\x18\x08 \x01(\x08\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t"d\n\x1dUpdateActivityOptionsResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"m\n&UpdateActivityExecutionOptionsResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"\xc7\x01\n\x14PauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12\x12\n\nrequest_id\x18\x07 \x01(\tB\n\n\x08\x61\x63tivity"\xb7\x01\n\x1dPauseActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t\x12\x12\n\nrequest_id\x18\x08 \x01(\t"\x17\n\x15PauseActivityResponse" \n\x1ePauseActivityExecutionResponse"\x98\x02\n\x16UnpauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x15\n\x0bunpause_all\x18\x06 \x01(\x08H\x00\x12\x16\n\x0ereset_attempts\x18\x07 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x08 \x01(\x08\x12)\n\x06jitter\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\n\n\x08\x61\x63tivity"\x91\x02\n\x1fUnpauseActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x08 \x01(\t\x12)\n\x06jitter\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0bresource_id\x18\n \x01(\t\x12\x12\n\nrequest_id\x18\x0b \x01(\tJ\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08R\x0ereset_attemptsR\x0freset_heartbeat"\x19\n\x17UnpauseActivityResponse""\n UnpauseActivityExecutionResponse"\xb3\x02\n\x14ResetActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\n \x01(\x08H\x00\x12\x17\n\x0freset_heartbeat\x18\x06 \x01(\x08\x12\x13\n\x0bkeep_paused\x18\x07 \x01(\x08\x12)\n\x06jitter\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18restore_original_options\x18\t \x01(\x08\x42\n\n\x08\x61\x63tivity"\xa2\x02\n\x1dResetActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0bkeep_paused\x18\x06 \x01(\x08\x12)\n\x06jitter\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18restore_original_options\x18\x08 \x01(\x08\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12\x17\n\x0freset_heartbeat\x18\x0b \x01(\x08"\x17\n\x15ResetActivityResponse" \n\x1eResetActivityExecutionResponse"\x9c\x02\n%UpdateWorkflowExecutionOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12V\n\x1aworkflow_execution_options\x18\x03 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08identity\x18\x05 \x01(\t"\xb1\x01\n&UpdateWorkflowExecutionOptionsResponse\x12V\n\x1aworkflow_execution_options\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"j\n\x19\x44\x65scribeDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"a\n\x1a\x44\x65scribeDeploymentResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"\xc2\x01\n&DescribeWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x03 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1f\n\x17report_task_queue_stats\x18\x04 \x01(\x08"\x8c\x05\n\'DescribeWorkerDeploymentVersionResponse\x12_\n\x1eworker_deployment_version_info\x18\x01 \x01(\x0b\x32\x37.temporal.api.deployment.v1.WorkerDeploymentVersionInfo\x12v\n\x13version_task_queues\x18\x02 \x03(\x0b\x32Y.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue\x1a\x87\x03\n\x10VersionTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x38\n\x05stats\x18\x03 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\x12\x90\x01\n\x15stats_by_priority_key\x18\x04 \x03(\x0b\x32q.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntry\x1a\x64\n\x17StatsByPriorityKeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats:\x02\x38\x01"M\n\x1f\x44\x65scribeWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t"\x8c\x01\n DescribeWorkerDeploymentResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12P\n\x16worker_deployment_info\x18\x02 \x01(\x0b\x32\x30.temporal.api.deployment.v1.WorkerDeploymentInfo"l\n\x16ListDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x13\n\x0bseries_name\x18\x04 \x01(\t"w\n\x17ListDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12\x43\n\x0b\x64\x65ployments\x18\x02 \x03(\x0b\x32..temporal.api.deployment.v1.DeploymentListInfo"\xcd\x01\n\x1bSetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12\x10\n\x08identity\x18\x03 \x01(\t\x12M\n\x0fupdate_metadata\x18\x04 \x01(\x0b\x32\x34.temporal.api.deployment.v1.UpdateDeploymentMetadata"\xb9\x01\n\x1cSetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12L\n\x18previous_deployment_info\x18\x02 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"\xe5\x01\n(SetWorkerDeploymentCurrentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x13\n\x07version\x18\x03 \x01(\tB\x02\x18\x01\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x06 \x01(\x08\x12\x18\n\x10\x61llow_no_pollers\x18\t \x01(\x08"\xbf\x01\n)SetWorkerDeploymentCurrentVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x1c\n\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01\x12\\\n\x1bprevious_deployment_version\x18\x03 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01"\xf9\x01\n(SetWorkerDeploymentRampingVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x13\n\x07version\x18\x03 \x01(\tB\x02\x18\x01\x12\x10\n\x08\x62uild_id\x18\x08 \x01(\t\x12\x12\n\npercentage\x18\x04 \x01(\x02\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\x12\x10\n\x08identity\x18\x06 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x07 \x01(\x08\x12\x18\n\x10\x61llow_no_pollers\x18\n \x01(\x08"\xe0\x01\n)SetWorkerDeploymentRampingVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x1c\n\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01\x12\\\n\x1bprevious_deployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01\x12\x1f\n\x13previous_percentage\x18\x03 \x01(\x02\x42\x02\x18\x01"q\n\x1d\x43reateWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"8\n\x1e\x43reateWorkerDeploymentResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"]\n\x1cListWorkerDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\x9f\x05\n\x1dListWorkerDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12r\n\x12worker_deployments\x18\x02 \x03(\x0b\x32V.temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary\x1a\xf0\x03\n\x17WorkerDeploymentSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0erouting_config\x18\x03 \x01(\x0b\x32).temporal.api.deployment.v1.RoutingConfig\x12o\n\x16latest_version_summary\x18\x04 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12p\n\x17\x63urrent_version_summary\x18\x05 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12p\n\x17ramping_version_summary\x18\x06 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary"\xf0\x01\n$CreateWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12>\n\x0e\x63ompute_config\x18\x04 \x01(\x0b\x32&.temporal.api.compute.v1.ComputeConfig\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\'\n%CreateWorkerDeploymentVersionResponse"\xc8\x01\n$DeleteWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x15\n\rskip_drainage\x18\x03 \x01(\x08\x12\x10\n\x08identity\x18\x04 \x01(\t"\'\n%DeleteWorkerDeploymentVersionResponse"]\n\x1d\x44\x65leteWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t" \n\x1e\x44\x65leteWorkerDeploymentResponse"\x84\x04\n1UpdateWorkerDeploymentVersionComputeConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x99\x01\n\x1d\x63ompute_config_scaling_groups\x18\x06 \x03(\x0b\x32r.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry\x12,\n$remove_compute_config_scaling_groups\x18\x07 \x03(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x1a{\n\x1f\x43omputeConfigScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.temporal.api.compute.v1.ComputeConfigScalingGroupUpdate:\x02\x38\x01"4\n2UpdateWorkerDeploymentVersionComputeConfigResponse"\xf4\x03\n3ValidateWorkerDeploymentVersionComputeConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x9b\x01\n\x1d\x63ompute_config_scaling_groups\x18\x06 \x03(\x0b\x32t.temporal.api.workflowservice.v1.ValidateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry\x12,\n$remove_compute_config_scaling_groups\x18\x07 \x03(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x1a{\n\x1f\x43omputeConfigScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.temporal.api.compute.v1.ComputeConfigScalingGroupUpdate:\x02\x38\x01"6\n4ValidateWorkerDeploymentVersionComputeConfigResponse"\xa2\x03\n,UpdateWorkerDeploymentVersionMetadataRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12x\n\x0eupsert_entries\x18\x03 \x03(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry\x12\x16\n\x0eremove_entries\x18\x04 \x03(\t\x12\x10\n\x08identity\x18\x06 \x01(\t\x1aU\n\x12UpsertEntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"n\n-UpdateWorkerDeploymentVersionMetadataResponse\x12=\n\x08metadata\x18\x01 \x01(\x0b\x32+.temporal.api.deployment.v1.VersionMetadata"\xbd\x01\n!SetWorkerDeploymentManagerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x1a\n\x10manager_identity\x18\x03 \x01(\tH\x00\x12\x0e\n\x04self\x18\x04 \x01(\x08H\x00\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\x12\x10\n\x08identity\x18\x06 \x01(\tB\x16\n\x14new_manager_identity"c\n"SetWorkerDeploymentManagerResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12%\n\x19previous_manager_identity\x18\x02 \x01(\tB\x02\x18\x01"E\n\x1bGetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bseries_name\x18\x02 \x01(\t"k\n\x1cGetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"q\n GetDeploymentReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"\xe3\x01\n!GetDeploymentReachabilityResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12\x43\n\x0creachability\x18\x02 \x01(\x0e\x32-.temporal.api.enums.v1.DeploymentReachability\x12\x34\n\x10last_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb4\x01\n\x19\x43reateWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\x04spec\x18\x02 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpec\x12\x12\n\nforce_scan\x18\x03 \x01(\x08\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t"_\n\x1a\x43reateWorkflowRuleResponse\x12\x31\n\x04rule\x18\x01 \x01(\x0b\x32#.temporal.api.rules.v1.WorkflowRule\x12\x0e\n\x06job_id\x18\x02 \x01(\t"A\n\x1b\x44\x65scribeWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t"Q\n\x1c\x44\x65scribeWorkflowRuleResponse\x12\x31\n\x04rule\x18\x01 \x01(\x0b\x32#.temporal.api.rules.v1.WorkflowRule"?\n\x19\x44\x65leteWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65leteWorkflowRuleResponse"F\n\x18ListWorkflowRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"h\n\x19ListWorkflowRulesResponse\x12\x32\n\x05rules\x18\x01 \x03(\x0b\x32#.temporal.api.rules.v1.WorkflowRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xce\x01\n\x1aTriggerWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x37\n\x04spec\x18\x05 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpecH\x00\x12\x10\n\x08identity\x18\x03 \x01(\tB\x06\n\x04rule".\n\x1bTriggerWorkflowRuleResponse\x12\x0f\n\x07\x61pplied\x18\x01 \x01(\x08"\x9b\x01\n\x1cRecordWorkerHeartbeatRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x41\n\x10worker_heartbeat\x18\x03 \x03(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x13\n\x0bresource_id\x18\x04 \x01(\t"\x1f\n\x1dRecordWorkerHeartbeatResponse"\x82\x01\n\x12ListWorkersRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t\x12\x1e\n\x16include_system_workers\x18\x05 \x01(\x08"\xa5\x01\n\x13ListWorkersResponse\x12<\n\x0cworkers_info\x18\x01 \x03(\x0b\x32".temporal.api.worker.v1.WorkerInfoB\x02\x18\x01\x12\x37\n\x07workers\x18\x03 \x03(\x0b\x32&.temporal.api.worker.v1.WorkerListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xd5\x05\n\x1cUpdateTaskQueueConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_queue\x18\x03 \x01(\t\x12=\n\x0ftask_queue_type\x18\x04 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12n\n\x17update_queue_rate_limit\x18\x05 \x01(\x0b\x32M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate\x12}\n&update_fairness_key_rate_limit_default\x18\x06 \x01(\x0b\x32M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate\x12\x84\x01\n\x1dset_fairness_weight_overrides\x18\x07 \x03(\x0b\x32].temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.SetFairnessWeightOverridesEntry\x12\'\n\x1funset_fairness_weight_overrides\x18\x08 \x03(\t\x1a[\n\x0fRateLimitUpdate\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12\x0e\n\x06reason\x18\x02 \x01(\t\x1a\x41\n\x1fSetFairnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01"[\n\x1dUpdateTaskQueueConfigResponse\x12:\n\x06\x63onfig\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueConfig"\x9e\x01\n\x18\x46\x65tchWorkerConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x38\n\x08selector\x18\x06 \x01(\x0b\x32&.temporal.api.common.v1.WorkerSelector\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"U\n\x19\x46\x65tchWorkerConfigResponse\x12\x38\n\rworker_config\x18\x01 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfig"\x8a\x02\n\x19UpdateWorkerConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x38\n\rworker_config\x18\x04 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfig\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x38\n\x08selector\x18\x06 \x01(\x0b\x32&.temporal.api.common.v1.WorkerSelector\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"d\n\x1aUpdateWorkerConfigResponse\x12:\n\rworker_config\x18\x01 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfigH\x00\x42\n\n\x08response"G\n\x15\x44\x65scribeWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x02 \x01(\t"Q\n\x16\x44\x65scribeWorkerResponse\x12\x37\n\x0bworker_info\x18\x01 \x01(\x0b\x32".temporal.api.worker.v1.WorkerInfo"W\n\x13\x43ountWorkersRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x1e\n\x16include_system_workers\x18\x03 \x01(\x08"%\n\x14\x43ountWorkersResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03"\x8d\x01\n\x1dPauseWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x0e\n\x06reason\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t" \n\x1ePauseWorkflowExecutionResponse"\x8f\x01\n\x1fUnpauseWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x0e\n\x06reason\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t""\n UnpauseWorkflowExecutionResponse"\xa1\n\n\x1dStartActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x06 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12/\n\x05input\x18\x0c \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x45\n\x0fid_reuse_policy\x18\r \x01(\x0e\x32,.temporal.api.enums.v1.ActivityIdReusePolicy\x12K\n\x12id_conflict_policy\x18\x0e \x01(\x0e\x32/.temporal.api.enums.v1.ActivityIdConflictPolicy\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x11 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12\x32\n\x08priority\x18\x12 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12>\n\x14\x63ompletion_callbacks\x18\x13 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12+\n\x05links\x18\x14 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x46\n\x13on_conflict_options\x18\x15 \x01(\x0b\x32).temporal.api.common.v1.OnConflictOptions\x12.\n\x0bstart_delay\x18\x16 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x65\n&propagated_nexus_serialization_context\x18\x17 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12\x1f\n\x17request_eager_execution\x18\x18 \x01(\x08"\xca\x01\n\x1eStartActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08\x12*\n\x04link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link\x12[\n\x13\x65\x61ger_activity_task\x18\x04 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse"\xe4\x01\n DescribeActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x15\n\rinclude_input\x18\x04 \x01(\x08\x12\x17\n\x0finclude_outcome\x18\x05 \x01(\x08\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c\x12!\n\x19include_heartbeat_details\x18\x07 \x01(\x08\x12\x1c\n\x14include_last_failure\x18\x08 \x01(\x08"\xbc\x02\n!DescribeActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12=\n\x04info\x18\x02 \x01(\x0b\x32/.temporal.api.activity.v1.ActivityExecutionInfo\x12/\n\x05input\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x43\n\x07outcome\x18\x04 \x01(\x0b\x32\x32.temporal.api.activity.v1.ActivityExecutionOutcome\x12\x17\n\x0flong_poll_token\x18\x05 \x01(\x0c\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.activity.v1.CallbackInfo"V\n\x1cPollActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"\xdb\x01\n\x1dPollActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x43\n\x07outcome\x18\x02 \x01(\x0b\x32\x32.temporal.api.activity.v1.ActivityExecutionOutcome\x12\x65\n&propagated_nexus_serialization_context\x18\x03 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"m\n\x1dListActivityExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x82\x01\n\x1eListActivityExecutionsResponse\x12G\n\nexecutions\x18\x01 \x03(\x0b\x32\x33.temporal.api.activity.v1.ActivityExecutionListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8e\x08\n#StartNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x14\n\x0coperation_id\x18\x04 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x05 \x01(\t\x12\x0f\n\x07service\x18\x06 \x01(\t\x12\x11\n\toperation\x18\x07 \x01(\t\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x05input\x18\x0b \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12K\n\x0fid_reuse_policy\x18\x0c \x01(\x0e\x32\x32.temporal.api.enums.v1.NexusOperationIdReusePolicy\x12Q\n\x12id_conflict_policy\x18\r \x01(\x0e\x32\x35.temporal.api.enums.v1.NexusOperationIdConflictPolicy\x12N\n\x13on_conflict_options\x18\x11 \x01(\x0b\x32\x31.temporal.api.nexusoperation.v1.OnConflictOptions\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12k\n\x0cnexus_header\x18\x0f \x03(\x0b\x32U.temporal.api.workflowservice.v1.StartNexusOperationExecutionRequest.NexusHeaderEntry\x12\x38\n\ruser_metadata\x18\x10 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12>\n\x14\x63ompletion_callbacks\x18\x12 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12+\n\x05links\x18\x13 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"G\n$StartNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08"\xaa\x01\n&DescribeNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x15\n\rinclude_input\x18\x04 \x01(\x08\x12\x17\n\x0finclude_outcome\x18\x05 \x01(\x08\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c"\x83\x03\n\'DescribeNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12@\n\x04info\x18\x02 \x01(\x0b\x32\x32.temporal.api.nexus.v1.NexusOperationExecutionInfo\x12.\n\x05input\x18\x03 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x31\n\x06result\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x33\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c\x12J\n\x14\x63ompletion_callbacks\x18\x07 \x03(\x0b\x32,.temporal.api.nexusoperation.v1.CallbackInfoB\t\n\x07outcome"\xa1\x01\n"PollNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x42\n\nwait_stage\x18\x04 \x01(\x0e\x32..temporal.api.enums.v1.NexusOperationWaitStage"\xec\x02\n#PollNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x42\n\nwait_stage\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.NexusOperationWaitStage\x12\x17\n\x0foperation_token\x18\x03 \x01(\t\x12\x65\n&propagated_nexus_serialization_context\x18\x06 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12\x31\n\x06result\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x33\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07outcome"s\n#ListNexusOperationExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x8b\x01\n$ListNexusOperationExecutionsResponse\x12J\n\noperations\x18\x01 \x03(\x0b\x32\x36.temporal.api.nexus.v1.NexusOperationExecutionListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountActivityExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountActivityExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountActivityExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"H\n$CountNexusOperationExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xf9\x01\n%CountNexusOperationExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12g\n\x06groups\x18\x02 \x03(\x0b\x32W.temporal.api.workflowservice.v1.CountNexusOperationExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x95\x01\n%RequestCancelActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"(\n&RequestCancelActivityExecutionResponse"\x91\x01\n!TerminateActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"$\n"TerminateActivityExecutionResponse"X\n\x1e\x44\x65leteActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"!\n\x1f\x44\x65leteActivityExecutionResponse"\x9c\x01\n+RequestCancelNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t".\n,RequestCancelNexusOperationExecutionResponse"\x98\x01\n\'TerminateNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"*\n(TerminateNexusOperationExecutionResponse"_\n$DeleteNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"\'\n%DeleteNexusOperationExecutionResponse"\x9d\x01\n(PollWorkflowExecutionTimeSkippingRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x17\n\x0f\x66\x61st_forward_id\x18\x03 \x01(\t"\xe8\x01\n)PollWorkflowExecutionTimeSkippingResponse\x12T\n\x1b\x66\x61st_forward_polling_result\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.FastForwardPollingResult\x12\x15\n\rfailed_reason\x18\x02 \x01(\t\x12N\n\x11\x66\x61st_forward_info\x18\x03 \x01(\x0b\x32\x33.temporal.api.common.v1.TimeSkippingFastForwardInfoB\xbe\x01\n"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' ) -_sym_db.RegisterMessage(PollWorkflowExecutionTimeSkippingResponse) +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n"io.temporal.api.workflowservice.v1B\024RequestResponseProtoP\001Z5go.temporal.io/api/workflowservice/v1;workflowservice\252\002!Temporalio.Api.WorkflowService.V1\352\002$Temporalio::Api::WorkflowService::V1' @@ -4214,578 +377,578 @@ _UPDATETASKQUEUECONFIGREQUEST_SETFAIRNESSWEIGHTOVERRIDESENTRY._serialized_options = b"8\001" _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._options = None _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._serialized_options = b"8\001" - _REGISTERNAMESPACEREQUEST._serialized_start = 1646 - _REGISTERNAMESPACEREQUEST._serialized_end = 2294 - _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_start = 2251 - _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_end = 2294 - _REGISTERNAMESPACERESPONSE._serialized_start = 2296 - _REGISTERNAMESPACERESPONSE._serialized_end = 2323 - _LISTNAMESPACESREQUEST._serialized_start = 2326 - _LISTNAMESPACESREQUEST._serialized_end = 2463 - _LISTNAMESPACESRESPONSE._serialized_start = 2466 - _LISTNAMESPACESRESPONSE._serialized_end = 2595 - _DESCRIBENAMESPACEREQUEST._serialized_start = 2597 - _DESCRIBENAMESPACEREQUEST._serialized_end = 2680 - _DESCRIBENAMESPACERESPONSE._serialized_start = 2683 - _DESCRIBENAMESPACERESPONSE._serialized_end = 3196 - _UPDATENAMESPACEREQUEST._serialized_start = 3199 - _UPDATENAMESPACEREQUEST._serialized_end = 3534 - _UPDATENAMESPACERESPONSE._serialized_start = 3537 - _UPDATENAMESPACERESPONSE._serialized_end = 3828 - _DEPRECATENAMESPACEREQUEST._serialized_start = 3830 - _DEPRECATENAMESPACEREQUEST._serialized_end = 3900 - _DEPRECATENAMESPACERESPONSE._serialized_start = 3902 - _DEPRECATENAMESPACERESPONSE._serialized_end = 3930 - _STARTWORKFLOWEXECUTIONREQUEST._serialized_start = 3933 - _STARTWORKFLOWEXECUTIONREQUEST._serialized_end = 5550 - _STARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 5553 - _STARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 5851 - _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_start = 5854 - _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_end = 6152 - _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_start = 6155 - _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_end = 6341 - _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_start = 6344 - _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_end = 6520 - _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_start = 6522 - _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_end = 6642 - _POLLWORKFLOWTASKQUEUEREQUEST._serialized_start = 6645 - _POLLWORKFLOWTASKQUEUEREQUEST._serialized_end = 7085 - _POLLWORKFLOWTASKQUEUERESPONSE._serialized_start = 7088 - _POLLWORKFLOWTASKQUEUERESPONSE._serialized_end = 8175 - _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_start = 8091 - _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_end = 8175 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_start = 8178 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_end = 9516 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_start = 9350 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_end = 9445 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_start = 9447 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_end = 9516 - _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_start = 9519 - _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_end = 9764 - _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_start = 9767 - _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_end = 10292 - _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_start = 10294 - _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_end = 10329 - _POLLACTIVITYTASKQUEUEREQUEST._serialized_start = 10332 - _POLLACTIVITYTASKQUEUEREQUEST._serialized_end = 10818 - _POLLACTIVITYTASKQUEUERESPONSE._serialized_start = 10821 - _POLLACTIVITYTASKQUEUERESPONSE._serialized_end = 12002 - _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_start = 12005 - _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_end = 12170 - _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_start = 12172 - _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_end = 12284 - _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_start = 12287 - _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_end = 12494 - _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_start = 12496 - _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_end = 12612 - _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_start = 12615 - _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_end = 12997 - _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_start = 12999 - _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_end = 13037 - _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_start = 13040 - _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_end = 13247 - _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_start = 13249 - _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_end = 13291 - _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_start = 13294 - _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_end = 13740 - _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_start = 13742 - _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_end = 13829 - _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_start = 13832 - _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_end = 14103 - _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_start = 14105 - _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_end = 14196 - _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_start = 14199 - _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_end = 14581 - _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_start = 14583 - _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_end = 14620 - _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_start = 14623 - _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_end = 14911 - _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_start = 14913 - _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_end = 14954 - _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_start = 14957 - _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_end = 15217 - _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_start = 15219 - _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_end = 15259 - _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_start = 15262 - _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_end = 15612 - _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_start = 15614 - _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_end = 15691 - _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_start = 15694 - _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_end = 17033 - _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 17036 - _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 17194 - _RESETWORKFLOWEXECUTIONREQUEST._serialized_start = 17197 - _RESETWORKFLOWEXECUTIONREQUEST._serialized_end = 17646 - _RESETWORKFLOWEXECUTIONRESPONSE._serialized_start = 17648 - _RESETWORKFLOWEXECUTIONRESPONSE._serialized_end = 17696 - _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_start = 17699 - _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_end = 17986 - _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 17988 - _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 18024 - _DELETEWORKFLOWEXECUTIONREQUEST._serialized_start = 18026 - _DELETEWORKFLOWEXECUTIONREQUEST._serialized_end = 18148 - _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_start = 18150 - _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_end = 18183 - _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_start = 18186 - _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_end = 18515 - _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_start = 18518 - _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_end = 18648 - _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 18651 - _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 19045 - _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19048 - _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19180 - _LISTWORKFLOWEXECUTIONSREQUEST._serialized_start = 19182 - _LISTWORKFLOWEXECUTIONSREQUEST._serialized_end = 19291 - _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19293 - _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19419 - _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 19421 - _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 19538 - _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19541 - _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19675 - _SCANWORKFLOWEXECUTIONSREQUEST._serialized_start = 19677 - _SCANWORKFLOWEXECUTIONSREQUEST._serialized_end = 19786 - _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19788 - _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19914 - _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_start = 19916 - _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_end = 19982 - _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19985 - _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20222 - _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20134 - _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20222 - _GETSEARCHATTRIBUTESREQUEST._serialized_start = 20224 - _GETSEARCHATTRIBUTESREQUEST._serialized_end = 20252 - _GETSEARCHATTRIBUTESRESPONSE._serialized_start = 20255 - _GETSEARCHATTRIBUTESRESPONSE._serialized_end = 20456 - _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_start = 20372 - _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_end = 20456 - _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_start = 20459 - _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_end = 20820 - _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_start = 20822 - _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_end = 20857 - _RESETSTICKYTASKQUEUEREQUEST._serialized_start = 20859 - _RESETSTICKYTASKQUEUEREQUEST._serialized_end = 20969 - _RESETSTICKYTASKQUEUERESPONSE._serialized_start = 20971 - _RESETSTICKYTASKQUEUERESPONSE._serialized_end = 21001 - _SHUTDOWNWORKERREQUEST._serialized_start = 21004 - _SHUTDOWNWORKERREQUEST._serialized_end = 21287 - _SHUTDOWNWORKERRESPONSE._serialized_start = 21289 - _SHUTDOWNWORKERRESPONSE._serialized_end = 21313 - _QUERYWORKFLOWREQUEST._serialized_start = 21316 - _QUERYWORKFLOWREQUEST._serialized_end = 21549 - _QUERYWORKFLOWRESPONSE._serialized_start = 21552 - _QUERYWORKFLOWRESPONSE._serialized_end = 21737 - _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_start = 21739 - _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_end = 21854 - _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_start = 21857 - _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_end = 22522 - _DESCRIBETASKQUEUEREQUEST._serialized_start = 22525 - _DESCRIBETASKQUEUEREQUEST._serialized_end = 23053 - _DESCRIBETASKQUEUERESPONSE._serialized_start = 23056 - _DESCRIBETASKQUEUERESPONSE._serialized_end = 24060 - _DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY._serialized_start = 23740 - _DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY._serialized_end = 23840 - _DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT._serialized_start = 23842 - _DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT._serialized_end = 23958 - _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_start = 23960 - _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_end = 24060 - _GETCLUSTERINFOREQUEST._serialized_start = 24062 - _GETCLUSTERINFOREQUEST._serialized_end = 24085 - _GETCLUSTERINFORESPONSE._serialized_start = 24088 - _GETCLUSTERINFORESPONSE._serialized_end = 24553 - _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_start = 24498 - _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_end = 24553 - _GETSYSTEMINFOREQUEST._serialized_start = 24555 - _GETSYSTEMINFOREQUEST._serialized_end = 24577 - _GETSYSTEMINFORESPONSE._serialized_start = 24580 - _GETSYSTEMINFORESPONSE._serialized_end = 25157 - _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_start = 24721 - _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_end = 25157 - _LISTTASKQUEUEPARTITIONSREQUEST._serialized_start = 25159 - _LISTTASKQUEUEPARTITIONSREQUEST._serialized_end = 25268 - _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_start = 25271 - _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_end = 25494 - _CREATESCHEDULEREQUEST._serialized_start = 25497 - _CREATESCHEDULEREQUEST._serialized_end = 25829 - _CREATESCHEDULERESPONSE._serialized_start = 25831 - _CREATESCHEDULERESPONSE._serialized_end = 25879 - _DESCRIBESCHEDULEREQUEST._serialized_start = 25881 - _DESCRIBESCHEDULEREQUEST._serialized_end = 25946 - _DESCRIBESCHEDULERESPONSE._serialized_start = 25949 - _DESCRIBESCHEDULERESPONSE._serialized_end = 26220 - _UPDATESCHEDULEREQUEST._serialized_start = 26223 - _UPDATESCHEDULEREQUEST._serialized_end = 26515 - _UPDATESCHEDULERESPONSE._serialized_start = 26517 - _UPDATESCHEDULERESPONSE._serialized_end = 26541 - _PATCHSCHEDULEREQUEST._serialized_start = 26544 - _PATCHSCHEDULEREQUEST._serialized_end = 26700 - _PATCHSCHEDULERESPONSE._serialized_start = 26702 - _PATCHSCHEDULERESPONSE._serialized_end = 26725 - _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_start = 26728 - _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_end = 26896 - _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_start = 26898 - _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_end = 26981 - _DELETESCHEDULEREQUEST._serialized_start = 26983 - _DELETESCHEDULEREQUEST._serialized_end = 27064 - _DELETESCHEDULERESPONSE._serialized_start = 27066 - _DELETESCHEDULERESPONSE._serialized_end = 27090 - _LISTSCHEDULESREQUEST._serialized_start = 27092 - _LISTSCHEDULESREQUEST._serialized_end = 27200 - _LISTSCHEDULESRESPONSE._serialized_start = 27202 - _LISTSCHEDULESRESPONSE._serialized_end = 27314 - _COUNTSCHEDULESREQUEST._serialized_start = 27316 - _COUNTSCHEDULESREQUEST._serialized_end = 27373 - _COUNTSCHEDULESRESPONSE._serialized_start = 27376 - _COUNTSCHEDULESRESPONSE._serialized_end = 27595 - _COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP._serialized_start = 20134 - _COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP._serialized_end = 20222 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 27598 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 28244 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_start = 28045 + _REGISTERNAMESPACEREQUEST._serialized_start = 1692 + _REGISTERNAMESPACEREQUEST._serialized_end = 2340 + _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_start = 2297 + _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_end = 2340 + _REGISTERNAMESPACERESPONSE._serialized_start = 2342 + _REGISTERNAMESPACERESPONSE._serialized_end = 2369 + _LISTNAMESPACESREQUEST._serialized_start = 2372 + _LISTNAMESPACESREQUEST._serialized_end = 2509 + _LISTNAMESPACESRESPONSE._serialized_start = 2512 + _LISTNAMESPACESRESPONSE._serialized_end = 2641 + _DESCRIBENAMESPACEREQUEST._serialized_start = 2643 + _DESCRIBENAMESPACEREQUEST._serialized_end = 2726 + _DESCRIBENAMESPACERESPONSE._serialized_start = 2729 + _DESCRIBENAMESPACERESPONSE._serialized_end = 3242 + _UPDATENAMESPACEREQUEST._serialized_start = 3245 + _UPDATENAMESPACEREQUEST._serialized_end = 3580 + _UPDATENAMESPACERESPONSE._serialized_start = 3583 + _UPDATENAMESPACERESPONSE._serialized_end = 3874 + _DEPRECATENAMESPACEREQUEST._serialized_start = 3876 + _DEPRECATENAMESPACEREQUEST._serialized_end = 3946 + _DEPRECATENAMESPACERESPONSE._serialized_start = 3948 + _DEPRECATENAMESPACERESPONSE._serialized_end = 3976 + _STARTWORKFLOWEXECUTIONREQUEST._serialized_start = 3979 + _STARTWORKFLOWEXECUTIONREQUEST._serialized_end = 5794 + _STARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 5797 + _STARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 6095 + _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_start = 6098 + _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_end = 6396 + _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_start = 6399 + _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_end = 6688 + _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_start = 6691 + _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_end = 6867 + _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_start = 6869 + _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_end = 6989 + _POLLWORKFLOWTASKQUEUEREQUEST._serialized_start = 6992 + _POLLWORKFLOWTASKQUEUEREQUEST._serialized_end = 7501 + _POLLWORKFLOWTASKQUEUERESPONSE._serialized_start = 7504 + _POLLWORKFLOWTASKQUEUERESPONSE._serialized_end = 8591 + _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_start = 8507 + _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_end = 8591 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_start = 8594 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_end = 9932 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_start = 9766 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_end = 9861 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_start = 9863 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_end = 9932 + _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_start = 9935 + _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_end = 10180 + _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_start = 10183 + _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_end = 10708 + _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_start = 10710 + _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_end = 10745 + _POLLACTIVITYTASKQUEUEREQUEST._serialized_start = 10748 + _POLLACTIVITYTASKQUEUEREQUEST._serialized_end = 11303 + _POLLACTIVITYTASKQUEUERESPONSE._serialized_start = 11306 + _POLLACTIVITYTASKQUEUERESPONSE._serialized_end = 12590 + _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_start = 12593 + _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_end = 12758 + _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_start = 12760 + _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_end = 12872 + _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_start = 12875 + _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_end = 13082 + _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_start = 13084 + _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_end = 13200 + _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_start = 13203 + _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_end = 13585 + _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_start = 13587 + _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_end = 13625 + _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_start = 13628 + _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_end = 13835 + _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_start = 13837 + _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_end = 13879 + _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_start = 13882 + _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_end = 14391 + _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_start = 14393 + _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_end = 14480 + _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_start = 14483 + _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_end = 14817 + _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_start = 14819 + _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_end = 14910 + _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_start = 14913 + _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_end = 15295 + _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_start = 15297 + _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_end = 15334 + _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_start = 15337 + _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_end = 15625 + _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_start = 15627 + _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_end = 15668 + _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_start = 15671 + _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_end = 15931 + _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_start = 15933 + _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_end = 15973 + _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_start = 15976 + _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_end = 16326 + _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_start = 16328 + _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_end = 16405 + _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_start = 16408 + _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_end = 17747 + _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 17750 + _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 17908 + _RESETWORKFLOWEXECUTIONREQUEST._serialized_start = 17911 + _RESETWORKFLOWEXECUTIONREQUEST._serialized_end = 18360 + _RESETWORKFLOWEXECUTIONRESPONSE._serialized_start = 18362 + _RESETWORKFLOWEXECUTIONRESPONSE._serialized_end = 18410 + _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_start = 18413 + _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_end = 18700 + _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 18702 + _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 18738 + _DELETEWORKFLOWEXECUTIONREQUEST._serialized_start = 18740 + _DELETEWORKFLOWEXECUTIONREQUEST._serialized_end = 18862 + _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_start = 18864 + _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_end = 18897 + _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_start = 18900 + _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_end = 19229 + _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19232 + _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19362 + _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 19365 + _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 19759 + _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19762 + _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19894 + _LISTWORKFLOWEXECUTIONSREQUEST._serialized_start = 19896 + _LISTWORKFLOWEXECUTIONSREQUEST._serialized_end = 20005 + _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20007 + _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20133 + _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 20135 + _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 20252 + _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20255 + _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20389 + _SCANWORKFLOWEXECUTIONSREQUEST._serialized_start = 20391 + _SCANWORKFLOWEXECUTIONSREQUEST._serialized_end = 20500 + _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20502 + _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20628 + _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_start = 20630 + _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_end = 20696 + _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20699 + _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20936 + _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20848 + _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20936 + _GETSEARCHATTRIBUTESREQUEST._serialized_start = 20938 + _GETSEARCHATTRIBUTESREQUEST._serialized_end = 20966 + _GETSEARCHATTRIBUTESRESPONSE._serialized_start = 20969 + _GETSEARCHATTRIBUTESRESPONSE._serialized_end = 21170 + _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_start = 21086 + _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_end = 21170 + _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_start = 21173 + _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_end = 21534 + _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_start = 21536 + _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_end = 21571 + _RESETSTICKYTASKQUEUEREQUEST._serialized_start = 21573 + _RESETSTICKYTASKQUEUEREQUEST._serialized_end = 21683 + _RESETSTICKYTASKQUEUERESPONSE._serialized_start = 21685 + _RESETSTICKYTASKQUEUERESPONSE._serialized_end = 21715 + _SHUTDOWNWORKERREQUEST._serialized_start = 21718 + _SHUTDOWNWORKERREQUEST._serialized_end = 22001 + _SHUTDOWNWORKERRESPONSE._serialized_start = 22003 + _SHUTDOWNWORKERRESPONSE._serialized_end = 22027 + _QUERYWORKFLOWREQUEST._serialized_start = 22030 + _QUERYWORKFLOWREQUEST._serialized_end = 22263 + _QUERYWORKFLOWRESPONSE._serialized_start = 22266 + _QUERYWORKFLOWRESPONSE._serialized_end = 22451 + _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_start = 22453 + _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_end = 22568 + _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_start = 22571 + _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_end = 23236 + _DESCRIBETASKQUEUEREQUEST._serialized_start = 23239 + _DESCRIBETASKQUEUEREQUEST._serialized_end = 23767 + _DESCRIBETASKQUEUERESPONSE._serialized_start = 23770 + _DESCRIBETASKQUEUERESPONSE._serialized_end = 24774 + _DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY._serialized_start = 24454 + _DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY._serialized_end = 24554 + _DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT._serialized_start = 24556 + _DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT._serialized_end = 24672 + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_start = 24674 + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_end = 24774 + _GETCLUSTERINFOREQUEST._serialized_start = 24776 + _GETCLUSTERINFOREQUEST._serialized_end = 24799 + _GETCLUSTERINFORESPONSE._serialized_start = 24802 + _GETCLUSTERINFORESPONSE._serialized_end = 25267 + _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_start = 25212 + _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_end = 25267 + _GETSYSTEMINFOREQUEST._serialized_start = 25269 + _GETSYSTEMINFOREQUEST._serialized_end = 25291 + _GETSYSTEMINFORESPONSE._serialized_start = 25294 + _GETSYSTEMINFORESPONSE._serialized_end = 25871 + _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_start = 25435 + _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_end = 25871 + _LISTTASKQUEUEPARTITIONSREQUEST._serialized_start = 25873 + _LISTTASKQUEUEPARTITIONSREQUEST._serialized_end = 25982 + _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_start = 25985 + _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_end = 26208 + _CREATESCHEDULEREQUEST._serialized_start = 26211 + _CREATESCHEDULEREQUEST._serialized_end = 26543 + _CREATESCHEDULERESPONSE._serialized_start = 26545 + _CREATESCHEDULERESPONSE._serialized_end = 26593 + _DESCRIBESCHEDULEREQUEST._serialized_start = 26595 + _DESCRIBESCHEDULEREQUEST._serialized_end = 26660 + _DESCRIBESCHEDULERESPONSE._serialized_start = 26663 + _DESCRIBESCHEDULERESPONSE._serialized_end = 26934 + _UPDATESCHEDULEREQUEST._serialized_start = 26937 + _UPDATESCHEDULEREQUEST._serialized_end = 27229 + _UPDATESCHEDULERESPONSE._serialized_start = 27231 + _UPDATESCHEDULERESPONSE._serialized_end = 27255 + _PATCHSCHEDULEREQUEST._serialized_start = 27258 + _PATCHSCHEDULEREQUEST._serialized_end = 27414 + _PATCHSCHEDULERESPONSE._serialized_start = 27416 + _PATCHSCHEDULERESPONSE._serialized_end = 27439 + _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_start = 27442 + _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_end = 27610 + _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_start = 27612 + _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_end = 27695 + _DELETESCHEDULEREQUEST._serialized_start = 27697 + _DELETESCHEDULEREQUEST._serialized_end = 27778 + _DELETESCHEDULERESPONSE._serialized_start = 27780 + _DELETESCHEDULERESPONSE._serialized_end = 27804 + _LISTSCHEDULESREQUEST._serialized_start = 27806 + _LISTSCHEDULESREQUEST._serialized_end = 27914 + _LISTSCHEDULESRESPONSE._serialized_start = 27916 + _LISTSCHEDULESRESPONSE._serialized_end = 28028 + _COUNTSCHEDULESREQUEST._serialized_start = 28030 + _COUNTSCHEDULESREQUEST._serialized_end = 28087 + _COUNTSCHEDULESRESPONSE._serialized_start = 28090 + _COUNTSCHEDULESRESPONSE._serialized_end = 28309 + _COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP._serialized_start = 20848 + _COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP._serialized_end = 20936 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 28312 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 28958 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_start = 28759 _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_end = ( - 28156 + 28870 ) - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_start = 28158 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_end = 28231 - _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 28246 - _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 28310 - _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 28312 - _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 28407 - _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 28409 - _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 28525 - _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_start = 28528 - _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_end = 30245 - _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_start = 29580 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_start = 28872 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_end = 28945 + _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 28960 + _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 29024 + _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 29026 + _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 29121 + _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 29123 + _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 29239 + _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_start = 29242 + _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_end = 30959 + _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_start = 30294 _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_end = ( - 29693 + 30407 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_start = 29696 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_start = 30410 _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_end = ( - 29825 + 30539 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_start = 29827 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_start = 30541 _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_end = ( - 29891 + 30605 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 29893 - _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 29999 - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30001 - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30111 - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30113 - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30175 - _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_start = 30177 - _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_end = 30232 - _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_start = 30248 - _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_end = 30500 - _GETWORKERVERSIONINGRULESREQUEST._serialized_start = 30502 - _GETWORKERVERSIONINGRULESREQUEST._serialized_end = 30574 - _GETWORKERVERSIONINGRULESRESPONSE._serialized_start = 30577 - _GETWORKERVERSIONINGRULESRESPONSE._serialized_end = 30826 - _GETWORKERTASKREACHABILITYREQUEST._serialized_start = 30829 - _GETWORKERTASKREACHABILITYREQUEST._serialized_end = 30985 - _GETWORKERTASKREACHABILITYRESPONSE._serialized_start = 30987 - _GETWORKERTASKREACHABILITYRESPONSE._serialized_end = 31101 - _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_start = 31104 - _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_end = 31365 - _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 31368 - _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 31627 - _STARTBATCHOPERATIONREQUEST._serialized_start = 31630 - _STARTBATCHOPERATIONREQUEST._serialized_end = 32996 - _STARTBATCHOPERATIONRESPONSE._serialized_start = 32998 - _STARTBATCHOPERATIONRESPONSE._serialized_end = 33027 - _STOPBATCHOPERATIONREQUEST._serialized_start = 33029 - _STOPBATCHOPERATIONREQUEST._serialized_end = 33125 - _STOPBATCHOPERATIONRESPONSE._serialized_start = 33127 - _STOPBATCHOPERATIONRESPONSE._serialized_end = 33155 - _DESCRIBEBATCHOPERATIONREQUEST._serialized_start = 33157 - _DESCRIBEBATCHOPERATIONREQUEST._serialized_end = 33223 - _DESCRIBEBATCHOPERATIONRESPONSE._serialized_start = 33226 - _DESCRIBEBATCHOPERATIONRESPONSE._serialized_end = 33698 - _LISTBATCHOPERATIONSREQUEST._serialized_start = 33700 - _LISTBATCHOPERATIONSREQUEST._serialized_end = 33791 - _LISTBATCHOPERATIONSRESPONSE._serialized_start = 33793 - _LISTBATCHOPERATIONSRESPONSE._serialized_end = 33914 - _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_start = 33917 - _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_end = 34102 - _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_start = 34105 - _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_end = 34324 - _POLLNEXUSTASKQUEUEREQUEST._serialized_start = 34327 - _POLLNEXUSTASKQUEUEREQUEST._serialized_end = 34743 - _POLLNEXUSTASKQUEUERESPONSE._serialized_start = 34746 - _POLLNEXUSTASKQUEUERESPONSE._serialized_end = 35100 - _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_start = 35103 - _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_end = 35270 - _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_start = 35272 - _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_end = 35307 - _RESPONDNEXUSTASKFAILEDREQUEST._serialized_start = 35310 - _RESPONDNEXUSTASKFAILEDREQUEST._serialized_end = 35530 - _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_start = 35532 - _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_end = 35564 - _EXECUTEMULTIOPERATIONREQUEST._serialized_start = 35567 - _EXECUTEMULTIOPERATIONREQUEST._serialized_end = 35939 - _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_start = 35733 - _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_end = 35939 - _EXECUTEMULTIOPERATIONRESPONSE._serialized_start = 35942 - _EXECUTEMULTIOPERATIONRESPONSE._serialized_end = 36274 - _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_start = 36068 - _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_end = 36274 - _UPDATEACTIVITYOPTIONSREQUEST._serialized_start = 36277 - _UPDATEACTIVITYOPTIONSREQUEST._serialized_end = 36613 - _UPDATEACTIVITYEXECUTIONOPTIONSREQUEST._serialized_start = 36616 - _UPDATEACTIVITYEXECUTIONOPTIONSREQUEST._serialized_end = 36935 - _UPDATEACTIVITYOPTIONSRESPONSE._serialized_start = 36937 - _UPDATEACTIVITYOPTIONSRESPONSE._serialized_end = 37037 - _UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE._serialized_start = 37039 - _UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE._serialized_end = 37148 - _PAUSEACTIVITYREQUEST._serialized_start = 37151 - _PAUSEACTIVITYREQUEST._serialized_end = 37350 - _PAUSEACTIVITYEXECUTIONREQUEST._serialized_start = 37353 - _PAUSEACTIVITYEXECUTIONREQUEST._serialized_end = 37536 - _PAUSEACTIVITYRESPONSE._serialized_start = 37538 - _PAUSEACTIVITYRESPONSE._serialized_end = 37561 - _PAUSEACTIVITYEXECUTIONRESPONSE._serialized_start = 37563 - _PAUSEACTIVITYEXECUTIONRESPONSE._serialized_end = 37595 - _UNPAUSEACTIVITYREQUEST._serialized_start = 37598 - _UNPAUSEACTIVITYREQUEST._serialized_end = 37878 - _UNPAUSEACTIVITYEXECUTIONREQUEST._serialized_start = 37881 - _UNPAUSEACTIVITYEXECUTIONREQUEST._serialized_end = 38154 - _UNPAUSEACTIVITYRESPONSE._serialized_start = 38156 - _UNPAUSEACTIVITYRESPONSE._serialized_end = 38181 - _UNPAUSEACTIVITYEXECUTIONRESPONSE._serialized_start = 38183 - _UNPAUSEACTIVITYEXECUTIONRESPONSE._serialized_end = 38217 - _RESETACTIVITYREQUEST._serialized_start = 38220 - _RESETACTIVITYREQUEST._serialized_end = 38527 - _RESETACTIVITYEXECUTIONREQUEST._serialized_start = 38530 - _RESETACTIVITYEXECUTIONREQUEST._serialized_end = 38820 - _RESETACTIVITYRESPONSE._serialized_start = 38822 - _RESETACTIVITYRESPONSE._serialized_end = 38845 - _RESETACTIVITYEXECUTIONRESPONSE._serialized_start = 38847 - _RESETACTIVITYEXECUTIONRESPONSE._serialized_end = 38879 - _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_start = 38882 - _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_end = 39166 - _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_start = 39169 - _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_end = 39346 - _DESCRIBEDEPLOYMENTREQUEST._serialized_start = 39348 - _DESCRIBEDEPLOYMENTREQUEST._serialized_end = 39454 - _DESCRIBEDEPLOYMENTRESPONSE._serialized_start = 39456 - _DESCRIBEDEPLOYMENTRESPONSE._serialized_end = 39553 - _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 39556 - _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 39750 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 39753 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 40405 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE._serialized_start = 40014 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE._serialized_end = 40405 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY._serialized_start = 23740 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY._serialized_end = 23840 - _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_start = 40407 - _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_end = 40484 - _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_start = 40487 - _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_end = 40627 - _LISTDEPLOYMENTSREQUEST._serialized_start = 40629 - _LISTDEPLOYMENTSREQUEST._serialized_end = 40737 - _LISTDEPLOYMENTSRESPONSE._serialized_start = 40739 - _LISTDEPLOYMENTSRESPONSE._serialized_end = 40858 - _SETCURRENTDEPLOYMENTREQUEST._serialized_start = 40861 - _SETCURRENTDEPLOYMENTREQUEST._serialized_end = 41066 - _SETCURRENTDEPLOYMENTRESPONSE._serialized_start = 41069 - _SETCURRENTDEPLOYMENTRESPONSE._serialized_end = 41254 - _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_start = 41257 - _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_end = 41486 - _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_start = 41489 - _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_end = 41680 - _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_start = 41683 - _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_end = 41932 - _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_start = 41935 - _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_end = 42159 - _CREATEWORKERDEPLOYMENTREQUEST._serialized_start = 42161 - _CREATEWORKERDEPLOYMENTREQUEST._serialized_end = 42274 - _CREATEWORKERDEPLOYMENTRESPONSE._serialized_start = 42276 - _CREATEWORKERDEPLOYMENTRESPONSE._serialized_end = 42332 - _LISTWORKERDEPLOYMENTSREQUEST._serialized_start = 42334 - _LISTWORKERDEPLOYMENTSREQUEST._serialized_end = 42427 - _LISTWORKERDEPLOYMENTSRESPONSE._serialized_start = 42430 - _LISTWORKERDEPLOYMENTSRESPONSE._serialized_end = 43101 - _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_start = 42605 - _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_end = 43101 - _CREATEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 43104 - _CREATEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 43344 - _CREATEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 43346 - _CREATEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 43385 - _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 43388 - _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 43588 - _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 43590 - _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 43629 - _DELETEWORKERDEPLOYMENTREQUEST._serialized_start = 43631 - _DELETEWORKERDEPLOYMENTREQUEST._serialized_end = 43724 - _DELETEWORKERDEPLOYMENTRESPONSE._serialized_start = 43726 - _DELETEWORKERDEPLOYMENTRESPONSE._serialized_end = 43758 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_start = 43761 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_end = 44277 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_start = 44154 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_end = 44277 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_start = 44279 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_end = 44331 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_start = 44334 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_end = 44834 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_start = 44154 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_end = 44277 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_start = 44836 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_end = 44890 - _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_start = 44893 - _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_end = 45311 - _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._serialized_start = 45226 + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30607 + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30713 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30715 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30825 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30827 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30889 + _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_start = 30891 + _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_end = 30946 + _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_start = 30962 + _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_end = 31214 + _GETWORKERVERSIONINGRULESREQUEST._serialized_start = 31216 + _GETWORKERVERSIONINGRULESREQUEST._serialized_end = 31288 + _GETWORKERVERSIONINGRULESRESPONSE._serialized_start = 31291 + _GETWORKERVERSIONINGRULESRESPONSE._serialized_end = 31540 + _GETWORKERTASKREACHABILITYREQUEST._serialized_start = 31543 + _GETWORKERTASKREACHABILITYREQUEST._serialized_end = 31699 + _GETWORKERTASKREACHABILITYRESPONSE._serialized_start = 31701 + _GETWORKERTASKREACHABILITYRESPONSE._serialized_end = 31815 + _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_start = 31818 + _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_end = 32079 + _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 32082 + _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 32444 + _STARTBATCHOPERATIONREQUEST._serialized_start = 32447 + _STARTBATCHOPERATIONREQUEST._serialized_end = 33813 + _STARTBATCHOPERATIONRESPONSE._serialized_start = 33815 + _STARTBATCHOPERATIONRESPONSE._serialized_end = 33844 + _STOPBATCHOPERATIONREQUEST._serialized_start = 33846 + _STOPBATCHOPERATIONREQUEST._serialized_end = 33942 + _STOPBATCHOPERATIONRESPONSE._serialized_start = 33944 + _STOPBATCHOPERATIONRESPONSE._serialized_end = 33972 + _DESCRIBEBATCHOPERATIONREQUEST._serialized_start = 33974 + _DESCRIBEBATCHOPERATIONREQUEST._serialized_end = 34040 + _DESCRIBEBATCHOPERATIONRESPONSE._serialized_start = 34043 + _DESCRIBEBATCHOPERATIONRESPONSE._serialized_end = 34515 + _LISTBATCHOPERATIONSREQUEST._serialized_start = 34517 + _LISTBATCHOPERATIONSREQUEST._serialized_end = 34608 + _LISTBATCHOPERATIONSRESPONSE._serialized_start = 34610 + _LISTBATCHOPERATIONSRESPONSE._serialized_end = 34731 + _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_start = 34734 + _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_end = 34919 + _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_start = 34922 + _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_end = 35244 + _POLLNEXUSTASKQUEUEREQUEST._serialized_start = 35247 + _POLLNEXUSTASKQUEUEREQUEST._serialized_end = 35732 + _POLLNEXUSTASKQUEUERESPONSE._serialized_start = 35735 + _POLLNEXUSTASKQUEUERESPONSE._serialized_end = 36089 + _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_start = 36092 + _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_end = 36259 + _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_start = 36261 + _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_end = 36296 + _RESPONDNEXUSTASKFAILEDREQUEST._serialized_start = 36299 + _RESPONDNEXUSTASKFAILEDREQUEST._serialized_end = 36519 + _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_start = 36521 + _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_end = 36553 + _EXECUTEMULTIOPERATIONREQUEST._serialized_start = 36556 + _EXECUTEMULTIOPERATIONREQUEST._serialized_end = 36928 + _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_start = 36722 + _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_end = 36928 + _EXECUTEMULTIOPERATIONRESPONSE._serialized_start = 36931 + _EXECUTEMULTIOPERATIONRESPONSE._serialized_end = 37263 + _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_start = 37057 + _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_end = 37263 + _UPDATEACTIVITYOPTIONSREQUEST._serialized_start = 37266 + _UPDATEACTIVITYOPTIONSREQUEST._serialized_end = 37602 + _UPDATEACTIVITYEXECUTIONOPTIONSREQUEST._serialized_start = 37605 + _UPDATEACTIVITYEXECUTIONOPTIONSREQUEST._serialized_end = 37924 + _UPDATEACTIVITYOPTIONSRESPONSE._serialized_start = 37926 + _UPDATEACTIVITYOPTIONSRESPONSE._serialized_end = 38026 + _UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE._serialized_start = 38028 + _UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE._serialized_end = 38137 + _PAUSEACTIVITYREQUEST._serialized_start = 38140 + _PAUSEACTIVITYREQUEST._serialized_end = 38339 + _PAUSEACTIVITYEXECUTIONREQUEST._serialized_start = 38342 + _PAUSEACTIVITYEXECUTIONREQUEST._serialized_end = 38525 + _PAUSEACTIVITYRESPONSE._serialized_start = 38527 + _PAUSEACTIVITYRESPONSE._serialized_end = 38550 + _PAUSEACTIVITYEXECUTIONRESPONSE._serialized_start = 38552 + _PAUSEACTIVITYEXECUTIONRESPONSE._serialized_end = 38584 + _UNPAUSEACTIVITYREQUEST._serialized_start = 38587 + _UNPAUSEACTIVITYREQUEST._serialized_end = 38867 + _UNPAUSEACTIVITYEXECUTIONREQUEST._serialized_start = 38870 + _UNPAUSEACTIVITYEXECUTIONREQUEST._serialized_end = 39143 + _UNPAUSEACTIVITYRESPONSE._serialized_start = 39145 + _UNPAUSEACTIVITYRESPONSE._serialized_end = 39170 + _UNPAUSEACTIVITYEXECUTIONRESPONSE._serialized_start = 39172 + _UNPAUSEACTIVITYEXECUTIONRESPONSE._serialized_end = 39206 + _RESETACTIVITYREQUEST._serialized_start = 39209 + _RESETACTIVITYREQUEST._serialized_end = 39516 + _RESETACTIVITYEXECUTIONREQUEST._serialized_start = 39519 + _RESETACTIVITYEXECUTIONREQUEST._serialized_end = 39809 + _RESETACTIVITYRESPONSE._serialized_start = 39811 + _RESETACTIVITYRESPONSE._serialized_end = 39834 + _RESETACTIVITYEXECUTIONRESPONSE._serialized_start = 39836 + _RESETACTIVITYEXECUTIONRESPONSE._serialized_end = 39868 + _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_start = 39871 + _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_end = 40155 + _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_start = 40158 + _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_end = 40335 + _DESCRIBEDEPLOYMENTREQUEST._serialized_start = 40337 + _DESCRIBEDEPLOYMENTREQUEST._serialized_end = 40443 + _DESCRIBEDEPLOYMENTRESPONSE._serialized_start = 40445 + _DESCRIBEDEPLOYMENTRESPONSE._serialized_end = 40542 + _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 40545 + _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 40739 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 40742 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 41394 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE._serialized_start = 41003 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE._serialized_end = 41394 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY._serialized_start = 24454 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY._serialized_end = 24554 + _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_start = 41396 + _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_end = 41473 + _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_start = 41476 + _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_end = 41616 + _LISTDEPLOYMENTSREQUEST._serialized_start = 41618 + _LISTDEPLOYMENTSREQUEST._serialized_end = 41726 + _LISTDEPLOYMENTSRESPONSE._serialized_start = 41728 + _LISTDEPLOYMENTSRESPONSE._serialized_end = 41847 + _SETCURRENTDEPLOYMENTREQUEST._serialized_start = 41850 + _SETCURRENTDEPLOYMENTREQUEST._serialized_end = 42055 + _SETCURRENTDEPLOYMENTRESPONSE._serialized_start = 42058 + _SETCURRENTDEPLOYMENTRESPONSE._serialized_end = 42243 + _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_start = 42246 + _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_end = 42475 + _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_start = 42478 + _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_end = 42669 + _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_start = 42672 + _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_end = 42921 + _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_start = 42924 + _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_end = 43148 + _CREATEWORKERDEPLOYMENTREQUEST._serialized_start = 43150 + _CREATEWORKERDEPLOYMENTREQUEST._serialized_end = 43263 + _CREATEWORKERDEPLOYMENTRESPONSE._serialized_start = 43265 + _CREATEWORKERDEPLOYMENTRESPONSE._serialized_end = 43321 + _LISTWORKERDEPLOYMENTSREQUEST._serialized_start = 43323 + _LISTWORKERDEPLOYMENTSREQUEST._serialized_end = 43416 + _LISTWORKERDEPLOYMENTSRESPONSE._serialized_start = 43419 + _LISTWORKERDEPLOYMENTSRESPONSE._serialized_end = 44090 + _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_start = 43594 + _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_end = 44090 + _CREATEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 44093 + _CREATEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 44333 + _CREATEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 44335 + _CREATEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 44374 + _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 44377 + _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 44577 + _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 44579 + _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 44618 + _DELETEWORKERDEPLOYMENTREQUEST._serialized_start = 44620 + _DELETEWORKERDEPLOYMENTREQUEST._serialized_end = 44713 + _DELETEWORKERDEPLOYMENTRESPONSE._serialized_start = 44715 + _DELETEWORKERDEPLOYMENTRESPONSE._serialized_end = 44747 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_start = 44750 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_end = 45266 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_start = 45143 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_end = 45266 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_start = 45268 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_end = 45320 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_start = 45323 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_end = 45823 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_start = 45143 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_end = 45266 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_start = 45825 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_end = 45879 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_start = 45882 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_end = 46300 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._serialized_start = 46215 _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._serialized_end = ( - 45311 + 46300 ) - _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_start = 45313 - _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_end = 45423 - _SETWORKERDEPLOYMENTMANAGERREQUEST._serialized_start = 45426 - _SETWORKERDEPLOYMENTMANAGERREQUEST._serialized_end = 45615 - _SETWORKERDEPLOYMENTMANAGERRESPONSE._serialized_start = 45617 - _SETWORKERDEPLOYMENTMANAGERRESPONSE._serialized_end = 45716 - _GETCURRENTDEPLOYMENTREQUEST._serialized_start = 45718 - _GETCURRENTDEPLOYMENTREQUEST._serialized_end = 45787 - _GETCURRENTDEPLOYMENTRESPONSE._serialized_start = 45789 - _GETCURRENTDEPLOYMENTRESPONSE._serialized_end = 45896 - _GETDEPLOYMENTREACHABILITYREQUEST._serialized_start = 45898 - _GETDEPLOYMENTREACHABILITYREQUEST._serialized_end = 46011 - _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_start = 46014 - _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_end = 46241 - _CREATEWORKFLOWRULEREQUEST._serialized_start = 46244 - _CREATEWORKFLOWRULEREQUEST._serialized_end = 46424 - _CREATEWORKFLOWRULERESPONSE._serialized_start = 46426 - _CREATEWORKFLOWRULERESPONSE._serialized_end = 46521 - _DESCRIBEWORKFLOWRULEREQUEST._serialized_start = 46523 - _DESCRIBEWORKFLOWRULEREQUEST._serialized_end = 46588 - _DESCRIBEWORKFLOWRULERESPONSE._serialized_start = 46590 - _DESCRIBEWORKFLOWRULERESPONSE._serialized_end = 46671 - _DELETEWORKFLOWRULEREQUEST._serialized_start = 46673 - _DELETEWORKFLOWRULEREQUEST._serialized_end = 46736 - _DELETEWORKFLOWRULERESPONSE._serialized_start = 46738 - _DELETEWORKFLOWRULERESPONSE._serialized_end = 46766 - _LISTWORKFLOWRULESREQUEST._serialized_start = 46768 - _LISTWORKFLOWRULESREQUEST._serialized_end = 46838 - _LISTWORKFLOWRULESRESPONSE._serialized_start = 46840 - _LISTWORKFLOWRULESRESPONSE._serialized_end = 46944 - _TRIGGERWORKFLOWRULEREQUEST._serialized_start = 46947 - _TRIGGERWORKFLOWRULEREQUEST._serialized_end = 47153 - _TRIGGERWORKFLOWRULERESPONSE._serialized_start = 47155 - _TRIGGERWORKFLOWRULERESPONSE._serialized_end = 47201 - _RECORDWORKERHEARTBEATREQUEST._serialized_start = 47204 - _RECORDWORKERHEARTBEATREQUEST._serialized_end = 47359 - _RECORDWORKERHEARTBEATRESPONSE._serialized_start = 47361 - _RECORDWORKERHEARTBEATRESPONSE._serialized_end = 47392 - _LISTWORKERSREQUEST._serialized_start = 47395 - _LISTWORKERSREQUEST._serialized_end = 47525 - _LISTWORKERSRESPONSE._serialized_start = 47528 - _LISTWORKERSRESPONSE._serialized_end = 47693 - _UPDATETASKQUEUECONFIGREQUEST._serialized_start = 47696 - _UPDATETASKQUEUECONFIGREQUEST._serialized_end = 48421 - _UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE._serialized_start = 48263 - _UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE._serialized_end = 48354 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_start = 46302 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_end = 46412 + _SETWORKERDEPLOYMENTMANAGERREQUEST._serialized_start = 46415 + _SETWORKERDEPLOYMENTMANAGERREQUEST._serialized_end = 46604 + _SETWORKERDEPLOYMENTMANAGERRESPONSE._serialized_start = 46606 + _SETWORKERDEPLOYMENTMANAGERRESPONSE._serialized_end = 46705 + _GETCURRENTDEPLOYMENTREQUEST._serialized_start = 46707 + _GETCURRENTDEPLOYMENTREQUEST._serialized_end = 46776 + _GETCURRENTDEPLOYMENTRESPONSE._serialized_start = 46778 + _GETCURRENTDEPLOYMENTRESPONSE._serialized_end = 46885 + _GETDEPLOYMENTREACHABILITYREQUEST._serialized_start = 46887 + _GETDEPLOYMENTREACHABILITYREQUEST._serialized_end = 47000 + _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_start = 47003 + _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_end = 47230 + _CREATEWORKFLOWRULEREQUEST._serialized_start = 47233 + _CREATEWORKFLOWRULEREQUEST._serialized_end = 47413 + _CREATEWORKFLOWRULERESPONSE._serialized_start = 47415 + _CREATEWORKFLOWRULERESPONSE._serialized_end = 47510 + _DESCRIBEWORKFLOWRULEREQUEST._serialized_start = 47512 + _DESCRIBEWORKFLOWRULEREQUEST._serialized_end = 47577 + _DESCRIBEWORKFLOWRULERESPONSE._serialized_start = 47579 + _DESCRIBEWORKFLOWRULERESPONSE._serialized_end = 47660 + _DELETEWORKFLOWRULEREQUEST._serialized_start = 47662 + _DELETEWORKFLOWRULEREQUEST._serialized_end = 47725 + _DELETEWORKFLOWRULERESPONSE._serialized_start = 47727 + _DELETEWORKFLOWRULERESPONSE._serialized_end = 47755 + _LISTWORKFLOWRULESREQUEST._serialized_start = 47757 + _LISTWORKFLOWRULESREQUEST._serialized_end = 47827 + _LISTWORKFLOWRULESRESPONSE._serialized_start = 47829 + _LISTWORKFLOWRULESRESPONSE._serialized_end = 47933 + _TRIGGERWORKFLOWRULEREQUEST._serialized_start = 47936 + _TRIGGERWORKFLOWRULEREQUEST._serialized_end = 48142 + _TRIGGERWORKFLOWRULERESPONSE._serialized_start = 48144 + _TRIGGERWORKFLOWRULERESPONSE._serialized_end = 48190 + _RECORDWORKERHEARTBEATREQUEST._serialized_start = 48193 + _RECORDWORKERHEARTBEATREQUEST._serialized_end = 48348 + _RECORDWORKERHEARTBEATRESPONSE._serialized_start = 48350 + _RECORDWORKERHEARTBEATRESPONSE._serialized_end = 48381 + _LISTWORKERSREQUEST._serialized_start = 48384 + _LISTWORKERSREQUEST._serialized_end = 48514 + _LISTWORKERSRESPONSE._serialized_start = 48517 + _LISTWORKERSRESPONSE._serialized_end = 48682 + _UPDATETASKQUEUECONFIGREQUEST._serialized_start = 48685 + _UPDATETASKQUEUECONFIGREQUEST._serialized_end = 49410 + _UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE._serialized_start = 49252 + _UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE._serialized_end = 49343 _UPDATETASKQUEUECONFIGREQUEST_SETFAIRNESSWEIGHTOVERRIDESENTRY._serialized_start = ( - 48356 + 49345 ) _UPDATETASKQUEUECONFIGREQUEST_SETFAIRNESSWEIGHTOVERRIDESENTRY._serialized_end = ( - 48421 + 49410 ) - _UPDATETASKQUEUECONFIGRESPONSE._serialized_start = 48423 - _UPDATETASKQUEUECONFIGRESPONSE._serialized_end = 48514 - _FETCHWORKERCONFIGREQUEST._serialized_start = 48517 - _FETCHWORKERCONFIGREQUEST._serialized_end = 48675 - _FETCHWORKERCONFIGRESPONSE._serialized_start = 48677 - _FETCHWORKERCONFIGRESPONSE._serialized_end = 48762 - _UPDATEWORKERCONFIGREQUEST._serialized_start = 48765 - _UPDATEWORKERCONFIGREQUEST._serialized_end = 49031 - _UPDATEWORKERCONFIGRESPONSE._serialized_start = 49033 - _UPDATEWORKERCONFIGRESPONSE._serialized_end = 49133 - _DESCRIBEWORKERREQUEST._serialized_start = 49135 - _DESCRIBEWORKERREQUEST._serialized_end = 49206 - _DESCRIBEWORKERRESPONSE._serialized_start = 49208 - _DESCRIBEWORKERRESPONSE._serialized_end = 49289 - _COUNTWORKERSREQUEST._serialized_start = 49291 - _COUNTWORKERSREQUEST._serialized_end = 49378 - _COUNTWORKERSRESPONSE._serialized_start = 49380 - _COUNTWORKERSRESPONSE._serialized_end = 49417 - _PAUSEWORKFLOWEXECUTIONREQUEST._serialized_start = 49420 - _PAUSEWORKFLOWEXECUTIONREQUEST._serialized_end = 49561 - _PAUSEWORKFLOWEXECUTIONRESPONSE._serialized_start = 49563 - _PAUSEWORKFLOWEXECUTIONRESPONSE._serialized_end = 49595 - _UNPAUSEWORKFLOWEXECUTIONREQUEST._serialized_start = 49598 - _UNPAUSEWORKFLOWEXECUTIONREQUEST._serialized_end = 49741 - _UNPAUSEWORKFLOWEXECUTIONRESPONSE._serialized_start = 49743 - _UNPAUSEWORKFLOWEXECUTIONRESPONSE._serialized_end = 49777 - _STARTACTIVITYEXECUTIONREQUEST._serialized_start = 49780 - _STARTACTIVITYEXECUTIONREQUEST._serialized_end = 50957 - _STARTACTIVITYEXECUTIONRESPONSE._serialized_start = 50959 - _STARTACTIVITYEXECUTIONRESPONSE._serialized_end = 51068 - _DESCRIBEACTIVITYEXECUTIONREQUEST._serialized_start = 51071 - _DESCRIBEACTIVITYEXECUTIONREQUEST._serialized_end = 51299 - _DESCRIBEACTIVITYEXECUTIONRESPONSE._serialized_start = 51302 - _DESCRIBEACTIVITYEXECUTIONRESPONSE._serialized_end = 51618 - _POLLACTIVITYEXECUTIONREQUEST._serialized_start = 51620 - _POLLACTIVITYEXECUTIONREQUEST._serialized_end = 51706 - _POLLACTIVITYEXECUTIONRESPONSE._serialized_start = 51708 - _POLLACTIVITYEXECUTIONRESPONSE._serialized_end = 51824 - _LISTACTIVITYEXECUTIONSREQUEST._serialized_start = 51826 - _LISTACTIVITYEXECUTIONSREQUEST._serialized_end = 51935 - _LISTACTIVITYEXECUTIONSRESPONSE._serialized_start = 51938 - _LISTACTIVITYEXECUTIONSRESPONSE._serialized_end = 52068 - _STARTNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 52071 - _STARTNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 52920 - _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._serialized_start = 52870 - _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._serialized_end = 52920 - _STARTNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 52922 - _STARTNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 52993 - _DESCRIBENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 52996 - _DESCRIBENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 53166 - _DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 53169 - _DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 53480 - _POLLNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 53483 - _POLLNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 53644 - _POLLNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 53647 - _POLLNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 53908 - _LISTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_start = 53910 - _LISTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_end = 54025 - _LISTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_start = 54028 - _LISTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_end = 54167 - _COUNTACTIVITYEXECUTIONSREQUEST._serialized_start = 54169 - _COUNTACTIVITYEXECUTIONSREQUEST._serialized_end = 54235 - _COUNTACTIVITYEXECUTIONSRESPONSE._serialized_start = 54238 - _COUNTACTIVITYEXECUTIONSRESPONSE._serialized_end = 54475 - _COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20134 - _COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20222 - _COUNTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_start = 54477 - _COUNTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_end = 54549 - _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_start = 54552 - _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_end = 54801 - _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20134 - _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20222 - _REQUESTCANCELACTIVITYEXECUTIONREQUEST._serialized_start = 54804 - _REQUESTCANCELACTIVITYEXECUTIONREQUEST._serialized_end = 54953 - _REQUESTCANCELACTIVITYEXECUTIONRESPONSE._serialized_start = 54955 - _REQUESTCANCELACTIVITYEXECUTIONRESPONSE._serialized_end = 54995 - _TERMINATEACTIVITYEXECUTIONREQUEST._serialized_start = 54998 - _TERMINATEACTIVITYEXECUTIONREQUEST._serialized_end = 55143 - _TERMINATEACTIVITYEXECUTIONRESPONSE._serialized_start = 55145 - _TERMINATEACTIVITYEXECUTIONRESPONSE._serialized_end = 55181 - _DELETEACTIVITYEXECUTIONREQUEST._serialized_start = 55183 - _DELETEACTIVITYEXECUTIONREQUEST._serialized_end = 55271 - _DELETEACTIVITYEXECUTIONRESPONSE._serialized_start = 55273 - _DELETEACTIVITYEXECUTIONRESPONSE._serialized_end = 55306 - _REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 55309 - _REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 55465 - _REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 55467 - _REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 55513 - _TERMINATENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 55516 - _TERMINATENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 55668 - _TERMINATENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 55670 - _TERMINATENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 55712 - _DELETENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 55714 - _DELETENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 55809 - _DELETENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 55811 - _DELETENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 55850 - _POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST._serialized_start = 55853 - _POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST._serialized_end = 56010 - _POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE._serialized_start = 56013 - _POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE._serialized_end = 56245 + _UPDATETASKQUEUECONFIGRESPONSE._serialized_start = 49412 + _UPDATETASKQUEUECONFIGRESPONSE._serialized_end = 49503 + _FETCHWORKERCONFIGREQUEST._serialized_start = 49506 + _FETCHWORKERCONFIGREQUEST._serialized_end = 49664 + _FETCHWORKERCONFIGRESPONSE._serialized_start = 49666 + _FETCHWORKERCONFIGRESPONSE._serialized_end = 49751 + _UPDATEWORKERCONFIGREQUEST._serialized_start = 49754 + _UPDATEWORKERCONFIGREQUEST._serialized_end = 50020 + _UPDATEWORKERCONFIGRESPONSE._serialized_start = 50022 + _UPDATEWORKERCONFIGRESPONSE._serialized_end = 50122 + _DESCRIBEWORKERREQUEST._serialized_start = 50124 + _DESCRIBEWORKERREQUEST._serialized_end = 50195 + _DESCRIBEWORKERRESPONSE._serialized_start = 50197 + _DESCRIBEWORKERRESPONSE._serialized_end = 50278 + _COUNTWORKERSREQUEST._serialized_start = 50280 + _COUNTWORKERSREQUEST._serialized_end = 50367 + _COUNTWORKERSRESPONSE._serialized_start = 50369 + _COUNTWORKERSRESPONSE._serialized_end = 50406 + _PAUSEWORKFLOWEXECUTIONREQUEST._serialized_start = 50409 + _PAUSEWORKFLOWEXECUTIONREQUEST._serialized_end = 50550 + _PAUSEWORKFLOWEXECUTIONRESPONSE._serialized_start = 50552 + _PAUSEWORKFLOWEXECUTIONRESPONSE._serialized_end = 50584 + _UNPAUSEWORKFLOWEXECUTIONREQUEST._serialized_start = 50587 + _UNPAUSEWORKFLOWEXECUTIONREQUEST._serialized_end = 50730 + _UNPAUSEWORKFLOWEXECUTIONRESPONSE._serialized_start = 50732 + _UNPAUSEWORKFLOWEXECUTIONRESPONSE._serialized_end = 50766 + _STARTACTIVITYEXECUTIONREQUEST._serialized_start = 50769 + _STARTACTIVITYEXECUTIONREQUEST._serialized_end = 52082 + _STARTACTIVITYEXECUTIONRESPONSE._serialized_start = 52085 + _STARTACTIVITYEXECUTIONRESPONSE._serialized_end = 52287 + _DESCRIBEACTIVITYEXECUTIONREQUEST._serialized_start = 52290 + _DESCRIBEACTIVITYEXECUTIONREQUEST._serialized_end = 52518 + _DESCRIBEACTIVITYEXECUTIONRESPONSE._serialized_start = 52521 + _DESCRIBEACTIVITYEXECUTIONRESPONSE._serialized_end = 52837 + _POLLACTIVITYEXECUTIONREQUEST._serialized_start = 52839 + _POLLACTIVITYEXECUTIONREQUEST._serialized_end = 52925 + _POLLACTIVITYEXECUTIONRESPONSE._serialized_start = 52928 + _POLLACTIVITYEXECUTIONRESPONSE._serialized_end = 53147 + _LISTACTIVITYEXECUTIONSREQUEST._serialized_start = 53149 + _LISTACTIVITYEXECUTIONSREQUEST._serialized_end = 53258 + _LISTACTIVITYEXECUTIONSRESPONSE._serialized_start = 53261 + _LISTACTIVITYEXECUTIONSRESPONSE._serialized_end = 53391 + _STARTNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 53394 + _STARTNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 54432 + _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._serialized_start = 54382 + _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._serialized_end = 54432 + _STARTNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 54434 + _STARTNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 54505 + _DESCRIBENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 54508 + _DESCRIBENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 54678 + _DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 54681 + _DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 55068 + _POLLNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 55071 + _POLLNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 55232 + _POLLNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 55235 + _POLLNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 55599 + _LISTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_start = 55601 + _LISTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_end = 55716 + _LISTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_start = 55719 + _LISTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_end = 55858 + _COUNTACTIVITYEXECUTIONSREQUEST._serialized_start = 55860 + _COUNTACTIVITYEXECUTIONSREQUEST._serialized_end = 55926 + _COUNTACTIVITYEXECUTIONSRESPONSE._serialized_start = 55929 + _COUNTACTIVITYEXECUTIONSRESPONSE._serialized_end = 56166 + _COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20848 + _COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20936 + _COUNTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_start = 56168 + _COUNTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_end = 56240 + _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_start = 56243 + _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_end = 56492 + _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20848 + _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20936 + _REQUESTCANCELACTIVITYEXECUTIONREQUEST._serialized_start = 56495 + _REQUESTCANCELACTIVITYEXECUTIONREQUEST._serialized_end = 56644 + _REQUESTCANCELACTIVITYEXECUTIONRESPONSE._serialized_start = 56646 + _REQUESTCANCELACTIVITYEXECUTIONRESPONSE._serialized_end = 56686 + _TERMINATEACTIVITYEXECUTIONREQUEST._serialized_start = 56689 + _TERMINATEACTIVITYEXECUTIONREQUEST._serialized_end = 56834 + _TERMINATEACTIVITYEXECUTIONRESPONSE._serialized_start = 56836 + _TERMINATEACTIVITYEXECUTIONRESPONSE._serialized_end = 56872 + _DELETEACTIVITYEXECUTIONREQUEST._serialized_start = 56874 + _DELETEACTIVITYEXECUTIONREQUEST._serialized_end = 56962 + _DELETEACTIVITYEXECUTIONRESPONSE._serialized_start = 56964 + _DELETEACTIVITYEXECUTIONRESPONSE._serialized_end = 56997 + _REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 57000 + _REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 57156 + _REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 57158 + _REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 57204 + _TERMINATENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 57207 + _TERMINATENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 57359 + _TERMINATENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 57361 + _TERMINATENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 57403 + _DELETENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 57405 + _DELETENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 57500 + _DELETENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 57502 + _DELETENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 57541 + _POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST._serialized_start = 57544 + _POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST._serialized_end = 57701 + _POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE._serialized_start = 57704 + _POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE._serialized_end = 57936 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.pyi b/temporalio/api/workflowservice/v1/request_response_pb2.pyi index eb9243716..4dd766505 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.pyi +++ b/temporalio/api/workflowservice/v1/request_response_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -38,6 +38,7 @@ import temporalio.api.filter.v1.message_pb2 import temporalio.api.history.v1.message_pb2 import temporalio.api.namespace.v1.message_pb2 import temporalio.api.nexus.v1.message_pb2 +import temporalio.api.nexusoperation.v1.message_pb2 import temporalio.api.protocol.v1.message_pb2 import temporalio.api.query.v1.message_pb2 import temporalio.api.replication.v1.message_pb2 @@ -52,16 +53,13 @@ import temporalio.api.version.v1.message_pb2 import temporalio.api.worker.v1.message_pb2 import temporalio.api.workflow.v1.message_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RegisterNamespaceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class DataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -76,8 +74,7 @@ class RegisterNamespaceRequest(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAMESPACE_FIELD_NUMBER: builtins.int @@ -96,6 +93,19 @@ class RegisterNamespaceRequest(google.protobuf.message.Message): namespace: builtins.str description: builtins.str owner_email: builtins.str + active_cluster_name: builtins.str + security_token: builtins.str + is_global_namespace: builtins.bool + history_archival_state: ( + temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + ) + """If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.""" + history_archival_uri: builtins.str + visibility_archival_state: ( + temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + ) + """If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.""" + visibility_archival_uri: builtins.str @property def workflow_execution_retention_period( self, @@ -106,24 +116,12 @@ class RegisterNamespaceRequest(google.protobuf.message.Message): ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.replication.v1.message_pb2.ClusterReplicationConfig ]: ... - active_cluster_name: builtins.str @property def data( self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """A key-value map for any customized purpose.""" - security_token: builtins.str - is_global_namespace: builtins.bool - history_archival_state: ( - temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType - ) - """If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.""" - history_archival_uri: builtins.str - visibility_archival_state: ( - temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType - ) - """If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.""" - visibility_archival_uri: builtins.str + def __init__( self, *, @@ -147,14 +145,14 @@ class RegisterNamespaceRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "workflow_execution_retention_period", b"workflow_execution_retention_period", ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "active_cluster_name", b"active_cluster_name", "clusters", @@ -186,6 +184,7 @@ class RegisterNamespaceRequest(google.protobuf.message.Message): global___RegisterNamespaceRequest = RegisterNamespaceRequest +@typing.final class RegisterNamespaceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -195,6 +194,7 @@ class RegisterNamespaceResponse(google.protobuf.message.Message): global___RegisterNamespaceResponse = RegisterNamespaceResponse +@typing.final class ListNamespacesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -216,12 +216,11 @@ class ListNamespacesRequest(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["namespace_filter", b"namespace_filter"], + self, field_name: typing.Literal["namespace_filter", b"namespace_filter"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace_filter", b"namespace_filter", "next_page_token", @@ -233,18 +232,19 @@ class ListNamespacesRequest(google.protobuf.message.Message): global___ListNamespacesRequest = ListNamespacesRequest +@typing.final class ListNamespacesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACES_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def namespaces( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ global___DescribeNamespaceResponse ]: ... - next_page_token: builtins.bytes def __init__( self, *, @@ -254,13 +254,14 @@ class ListNamespacesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespaces", b"namespaces", "next_page_token", b"next_page_token" ], ) -> None: ... global___ListNamespacesResponse = ListNamespacesResponse +@typing.final class DescribeNamespaceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -284,7 +285,7 @@ class DescribeNamespaceRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "id", b"id", "namespace", @@ -296,6 +297,7 @@ class DescribeNamespaceRequest(google.protobuf.message.Message): global___DescribeNamespaceRequest = DescribeNamespaceRequest +@typing.final class DescribeNamespaceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -307,6 +309,8 @@ class DescribeNamespaceResponse(google.protobuf.message.Message): FAILOVER_HISTORY_FIELD_NUMBER: builtins.int POLLER_GROUP_INFOS_FIELD_NUMBER: builtins.int POLLER_GROUPS_INFO_FIELD_NUMBER: builtins.int + failover_version: builtins.int + is_global_namespace: builtins.bool @property def namespace_info( self, @@ -317,8 +321,6 @@ class DescribeNamespaceResponse(google.protobuf.message.Message): def replication_config( self, ) -> temporalio.api.replication.v1.message_pb2.NamespaceReplicationConfig: ... - failover_version: builtins.int - is_global_namespace: builtins.bool @property def failover_history( self, @@ -328,6 +330,7 @@ class DescribeNamespaceResponse(google.protobuf.message.Message): """Contains the historical state of failover_versions for the cluster, truncated to contain only the last N states to ensure that the list does not grow unbounded. """ + @property def poller_group_infos( self, @@ -340,6 +343,7 @@ class DescribeNamespaceResponse(google.protobuf.message.Message): updated through poll response. Client is supposed to use the info received in the latest poll response. """ + @property def poller_groups_info( self, @@ -348,6 +352,7 @@ class DescribeNamespaceResponse(google.protobuf.message.Message): information is updated through poll responses. Client is supposed to use the info with the highest version it has received. """ + def __init__( self, *, @@ -371,7 +376,7 @@ class DescribeNamespaceResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "config", b"config", "namespace_info", @@ -384,7 +389,7 @@ class DescribeNamespaceResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "config", b"config", "failover_history", @@ -406,6 +411,7 @@ class DescribeNamespaceResponse(google.protobuf.message.Message): global___DescribeNamespaceResponse = DescribeNamespaceResponse +@typing.final class UpdateNamespaceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -417,6 +423,10 @@ class UpdateNamespaceRequest(google.protobuf.message.Message): DELETE_BAD_BINARY_FIELD_NUMBER: builtins.int PROMOTE_NAMESPACE_FIELD_NUMBER: builtins.int namespace: builtins.str + security_token: builtins.str + delete_bad_binary: builtins.str + promote_namespace: builtins.bool + """promote local namespace to global namespace. Ignored if namespace is already global namespace.""" @property def update_info( self, @@ -427,10 +437,6 @@ class UpdateNamespaceRequest(google.protobuf.message.Message): def replication_config( self, ) -> temporalio.api.replication.v1.message_pb2.NamespaceReplicationConfig: ... - security_token: builtins.str - delete_bad_binary: builtins.str - promote_namespace: builtins.bool - """promote local namespace to global namespace. Ignored if namespace is already global namespace.""" def __init__( self, *, @@ -446,7 +452,7 @@ class UpdateNamespaceRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "config", b"config", "replication_config", @@ -457,7 +463,7 @@ class UpdateNamespaceRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "config", b"config", "delete_bad_binary", @@ -477,6 +483,7 @@ class UpdateNamespaceRequest(google.protobuf.message.Message): global___UpdateNamespaceRequest = UpdateNamespaceRequest +@typing.final class UpdateNamespaceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -485,6 +492,8 @@ class UpdateNamespaceResponse(google.protobuf.message.Message): REPLICATION_CONFIG_FIELD_NUMBER: builtins.int FAILOVER_VERSION_FIELD_NUMBER: builtins.int IS_GLOBAL_NAMESPACE_FIELD_NUMBER: builtins.int + failover_version: builtins.int + is_global_namespace: builtins.bool @property def namespace_info( self, @@ -495,8 +504,6 @@ class UpdateNamespaceResponse(google.protobuf.message.Message): def replication_config( self, ) -> temporalio.api.replication.v1.message_pb2.NamespaceReplicationConfig: ... - failover_version: builtins.int - is_global_namespace: builtins.bool def __init__( self, *, @@ -510,7 +517,7 @@ class UpdateNamespaceResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "config", b"config", "namespace_info", @@ -521,7 +528,7 @@ class UpdateNamespaceResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "config", b"config", "failover_version", @@ -537,6 +544,7 @@ class UpdateNamespaceResponse(google.protobuf.message.Message): global___UpdateNamespaceResponse = UpdateNamespaceResponse +@typing.final class DeprecateNamespaceRequest(google.protobuf.message.Message): """Deprecated.""" @@ -554,13 +562,14 @@ class DeprecateNamespaceRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "security_token", b"security_token" ], ) -> None: ... global___DeprecateNamespaceRequest = DeprecateNamespaceRequest +@typing.final class DeprecateNamespaceResponse(google.protobuf.message.Message): """Deprecated.""" @@ -572,6 +581,7 @@ class DeprecateNamespaceResponse(google.protobuf.message.Message): global___DeprecateNamespaceResponse = DeprecateNamespaceResponse +@typing.final class StartWorkflowExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -604,24 +614,10 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): PRIORITY_FIELD_NUMBER: builtins.int EAGER_WORKER_DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int TIME_SKIPPING_CONFIG_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int + TIME_SKIPPING_STATE_PROPAGATION_FIELD_NUMBER: builtins.int namespace: builtins.str workflow_id: builtins.str - @property - def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... - @property - def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... - @property - def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Serialized arguments to the workflow. These are passed as arguments to the workflow function.""" - @property - def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: - """Total workflow execution timeout including retries and continue as new.""" - @property - def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: - """Timeout of a single workflow run.""" - @property - def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: - """Timeout of a single workflow task.""" identity: builtins.str """The identity of the client who initiated this request""" request_id: builtins.str @@ -642,11 +638,38 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): See `workflow_id_reuse_policy` for handling a workflow id duplication with a *closed* workflow. """ + cron_schedule: builtins.str + """See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/""" + request_eager_execution: builtins.bool + """Request to get the first workflow task inline in the response bypassing matching service and worker polling. + If set to `true` the caller is expected to have a worker available and capable of processing the task. + The returned task will be marked as started and is expected to be completed by the specified + `workflow_task_timeout`. + """ + @property + def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... + @property + def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... + @property + def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Serialized arguments to the workflow. These are passed as arguments to the workflow function.""" + + @property + def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: + """Total workflow execution timeout including retries and continue as new.""" + + @property + def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: + """Timeout of a single workflow run.""" + + @property + def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: + """Timeout of a single workflow task.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.""" - cron_schedule: builtins.str - """See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/""" + @property def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: ... @property @@ -655,12 +678,6 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: ... - request_eager_execution: builtins.bool - """Request to get the first workflow task inline in the response bypassing matching service and worker polling. - If set to `true` the caller is expected to have a worker available and capable of processing the task. - The returned task will be marked as started and is expected to be completed by the specified - `workflow_task_timeout`. - """ @property def continued_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """These values will be available as ContinuedFailure and LastCompletionResult in the @@ -668,6 +685,7 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): server itself (for the schedules feature) and are not intended to be exposed in StartWorkflowExecution. """ + @property def last_completion_result( self, @@ -678,6 +696,7 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): If the workflow gets a signal before the delay, a workflow task will be made available for dispatch and the rest of the delay will be ignored. """ + @property def completion_callbacks( self, @@ -688,12 +707,14 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): If the workflow continues-as-new, these callbacks will be carried over to the new execution. Callback addresses must be whitelisted in the server's dynamic configuration. """ + @property def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: """Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionInfo for use by user interfaces to display the fixed as-of-start summary and details of the workflow. """ + @property def links( self, @@ -701,6 +722,7 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to be associated with the workflow.""" + @property def versioning_override( self, @@ -708,6 +730,7 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): """If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. """ + @property def on_conflict_options( self, @@ -717,19 +740,38 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): empty object (ie., all options with default value), it won't do anything to the existing running workflow. If set, it will add a history event to the running workflow. """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata""" + @property def eager_worker_deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Deployment Options of the worker who will process the eager task. Passed when `request_eager_execution=true`.""" + @property def time_skipping_config( self, ) -> temporalio.api.common.v1.message_pb2.TimeSkippingConfig: """Time-skipping configuration. If not set, time skipping is disabled.""" + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this workflow.""" + + @property + def time_skipping_state_propagation( + self, + ) -> temporalio.api.common.v1.message_pb2.TimeSkippingStatePropagation: + """Time-skipping state propagated by the execution that started this workflow. + This field is intended for use by the Temporal server, for example when a schedule + starts a workflow, and is not intended to be set by external clients. + """ + def __init__( self, *, @@ -773,10 +815,14 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): | None = ..., time_skipping_config: temporalio.api.common.v1.message_pb2.TimeSkippingConfig | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., + time_skipping_state_propagation: temporalio.api.common.v1.message_pb2.TimeSkippingStatePropagation + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "continued_failure", b"continued_failure", "eager_worker_deployment_options", @@ -793,6 +839,8 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): b"on_conflict_options", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "search_attributes", @@ -801,6 +849,8 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): b"task_queue", "time_skipping_config", b"time_skipping_config", + "time_skipping_state_propagation", + b"time_skipping_state_propagation", "user_metadata", b"user_metadata", "versioning_override", @@ -819,7 +869,7 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "completion_callbacks", b"completion_callbacks", "continued_failure", @@ -846,6 +896,8 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): b"on_conflict_options", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "request_eager_execution", b"request_eager_execution", "request_id", @@ -858,6 +910,8 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): b"task_queue", "time_skipping_config", b"time_skipping_config", + "time_skipping_state_propagation", + b"time_skipping_state_propagation", "user_metadata", b"user_metadata", "versioning_override", @@ -883,6 +937,7 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): global___StartWorkflowExecutionRequest = StartWorkflowExecutionRequest +@typing.final class StartWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -908,9 +963,11 @@ class StartWorkflowExecutionResponse(google.protobuf.message.Message): return the first workflow task to be eagerly executed. The caller is expected to have a worker available to process the task. """ + @property def link(self) -> temporalio.api.common.v1.message_pb2.Link: """Link to the workflow event.""" + def __init__( self, *, @@ -923,13 +980,13 @@ class StartWorkflowExecutionResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "eager_workflow_task", b"eager_workflow_task", "link", b"link" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "eager_workflow_task", b"eager_workflow_task", "first_execution_run_id", @@ -947,6 +1004,7 @@ class StartWorkflowExecutionResponse(google.protobuf.message.Message): global___StartWorkflowExecutionResponse = StartWorkflowExecutionResponse +@typing.final class GetWorkflowExecutionHistoryRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -958,8 +1016,6 @@ class GetWorkflowExecutionHistoryRequest(google.protobuf.message.Message): HISTORY_EVENT_FILTER_TYPE_FIELD_NUMBER: builtins.int SKIP_ARCHIVAL_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... maximum_page_size: builtins.int next_page_token: builtins.bytes """If a `GetWorkflowExecutionHistoryResponse` or a `PollWorkflowTaskQueueResponse` had one of @@ -976,6 +1032,8 @@ class GetWorkflowExecutionHistoryRequest(google.protobuf.message.Message): Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT. """ skip_archival: builtins.bool + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... def __init__( self, *, @@ -988,11 +1046,11 @@ class GetWorkflowExecutionHistoryRequest(google.protobuf.message.Message): skip_archival: builtins.bool = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["execution", b"execution"] + self, field_name: typing.Literal["execution", b"execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution", b"execution", "history_event_filter_type", @@ -1012,6 +1070,7 @@ class GetWorkflowExecutionHistoryRequest(google.protobuf.message.Message): global___GetWorkflowExecutionHistoryRequest = GetWorkflowExecutionHistoryRequest +@typing.final class GetWorkflowExecutionHistoryResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1019,6 +1078,10 @@ class GetWorkflowExecutionHistoryResponse(google.protobuf.message.Message): RAW_HISTORY_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int ARCHIVED_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes + """Will be set if there are more history events than were included in this response""" + archived: builtins.bool @property def history(self) -> temporalio.api.history.v1.message_pb2.History: ... @property @@ -1030,9 +1093,16 @@ class GetWorkflowExecutionHistoryResponse(google.protobuf.message.Message): """Raw history is an alternate representation of history that may be returned if configured on the frontend. This is not supported by all SDKs. Either this or `history` will be set. """ - next_page_token: builtins.bytes - """Will be set if there are more history events than were included in this response""" - archived: builtins.bool + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this run. + Returned on the initial request (without next_page_token) when present. Clients should + retain it across paginated responses, which may omit it. + """ + def __init__( self, *, @@ -1043,19 +1113,29 @@ class GetWorkflowExecutionHistoryResponse(google.protobuf.message.Message): | None = ..., next_page_token: builtins.bytes = ..., archived: builtins.bool = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["history", b"history"] + self, + field_name: typing.Literal[ + "history", + b"history", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "archived", b"archived", "history", b"history", "next_page_token", b"next_page_token", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "raw_history", b"raw_history", ], @@ -1063,6 +1143,7 @@ class GetWorkflowExecutionHistoryResponse(google.protobuf.message.Message): global___GetWorkflowExecutionHistoryResponse = GetWorkflowExecutionHistoryResponse +@typing.final class GetWorkflowExecutionHistoryReverseRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1071,10 +1152,10 @@ class GetWorkflowExecutionHistoryReverseRequest(google.protobuf.message.Message) MAXIMUM_PAGE_SIZE_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... maximum_page_size: builtins.int next_page_token: builtins.bytes + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... def __init__( self, *, @@ -1084,11 +1165,11 @@ class GetWorkflowExecutionHistoryReverseRequest(google.protobuf.message.Message) next_page_token: builtins.bytes = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["execution", b"execution"] + self, field_name: typing.Literal["execution", b"execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution", b"execution", "maximum_page_size", @@ -1104,15 +1185,16 @@ global___GetWorkflowExecutionHistoryReverseRequest = ( GetWorkflowExecutionHistoryReverseRequest ) +@typing.final class GetWorkflowExecutionHistoryReverseResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor HISTORY_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int - @property - def history(self) -> temporalio.api.history.v1.message_pb2.History: ... next_page_token: builtins.bytes """Will be set if there are more history events than were included in this response""" + @property + def history(self) -> temporalio.api.history.v1.message_pb2.History: ... def __init__( self, *, @@ -1120,11 +1202,11 @@ class GetWorkflowExecutionHistoryReverseResponse(google.protobuf.message.Message next_page_token: builtins.bytes = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["history", b"history"] + self, field_name: typing.Literal["history", b"history"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "history", b"history", "next_page_token", b"next_page_token" ], ) -> None: ... @@ -1133,6 +1215,7 @@ global___GetWorkflowExecutionHistoryReverseResponse = ( GetWorkflowExecutionHistoryReverseResponse ) +@typing.final class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1145,9 +1228,8 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): BINARY_CHECKSUM_FIELD_NUMBER: builtins.int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int + POLLER_POOL_INFO_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... poller_group_id: builtins.str """Unless this is the first poll, the client must pass one of the poller group IDs received in `poller_group_infos` of the last the PollWorkflowTaskQueueResponse according to the @@ -1170,6 +1252,8 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): "checksum" in this field name isn't very accurate, it should be though of as an id. """ @property + def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... + @property def worker_version_capabilities( self, ) -> temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities: @@ -1177,11 +1261,21 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): Information about this worker's build identifier and if it is choosing to use the versioning feature. See the `WorkerVersionCapabilities` docstring for more. """ + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" + + @property + def poller_pool_info( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo: + """Worker-reported poller pool state, used to spread poller scaling suggestions across + a fleet. Optional. + """ + def __init__( self, *, @@ -1196,12 +1290,16 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): | None = ..., deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions | None = ..., + poller_pool_info: temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_options", b"deployment_options", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "worker_version_capabilities", @@ -1210,7 +1308,7 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "binary_checksum", b"binary_checksum", "deployment_options", @@ -1221,6 +1319,8 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): b"namespace", "poller_group_id", b"poller_group_id", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "worker_control_task_queue", @@ -1234,9 +1334,11 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): global___PollWorkflowTaskQueueRequest = PollWorkflowTaskQueueRequest +@typing.final class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class QueriesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1252,11 +1354,10 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): value: temporalio.api.query.v1.message_pb2.WorkflowQuery | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... TASK_TOKEN_FIELD_NUMBER: builtins.int @@ -1280,12 +1381,6 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): POLLER_GROUPS_INFO_FIELD_NUMBER: builtins.int task_token: builtins.bytes """A unique identifier for this task""" - @property - def workflow_execution( - self, - ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... - @property - def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... previous_started_event_id: builtins.int """The last workflow task started event which was processed by some worker for this execution. Will be zero if no task has ever started. @@ -1310,16 +1405,27 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): overall backlog. Subsequent RPCs may not hit the same partition as this call. """ + next_page_token: builtins.bytes + """Will be set if there are more history events than were included in this response. Such events + should be fetched via `GetWorkflowExecutionHistory`. + """ + poller_group_id: builtins.str + """This poller group ID identifies the owner of the workflow task awaiting for query response. + Corresponding RespondQueryTaskCompleted should pass this value for proper routing. + """ + @property + def workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... + @property + def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @property def history(self) -> temporalio.api.history.v1.message_pb2.History: """The history for this workflow, which will either be complete or partial. Partial histories are sent to workers who have signaled that they are using a sticky queue when completing a workflow task. """ - next_page_token: builtins.bytes - """Will be set if there are more history events than were included in this response. Such events - should be fetched via `GetWorkflowExecutionHistory`. - """ + @property def query(self) -> temporalio.api.query.v1.message_pb2.WorkflowQuery: """Legacy queries appear in this field. The query must be responded to via @@ -1327,6 +1433,7 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): closed workflows) then the `history` field will be populated with the entire history. It may also be populated if this task originates on a non-sticky queue. """ + @property def workflow_execution_task_queue( self, @@ -1334,12 +1441,15 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): """The task queue this task originated from, which will always be the original non-sticky name for the queue, even if this response came from polling a sticky queue. """ + @property def scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When this task was scheduled by the server""" + @property def started_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When the current workflow task started event was generated, meaning the current attempt.""" + @property def queries( self, @@ -1349,6 +1459,7 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): """Queries that should be executed after applying the history in this task. Responses should be attached to `RespondWorkflowTaskCompletedRequest::query_results` """ + @property def messages( self, @@ -1356,15 +1467,13 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): temporalio.api.protocol.v1.message_pb2.Message ]: """Protocol messages piggybacking on a WFT as a transport""" + @property def poller_scaling_decision( self, ) -> temporalio.api.taskqueue.v1.message_pb2.PollerScalingDecision: """Server-advised information the SDK may use to adjust its poller count.""" - poller_group_id: builtins.str - """This poller group ID identifies the owner of the workflow task awaiting for query response. - Corresponding RespondQueryTaskCompleted should pass this value for proper routing. - """ + @property def poller_group_infos( self, @@ -1380,6 +1489,7 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): 3. If every group has some pending polls, assign the next poll to a group randomly according to the weights. """ + @property def poller_groups_info( self, @@ -1392,6 +1502,7 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): 3. If every group has some pending polls, assign the next poll to a group randomly according to the weights. """ + def __init__( self, *, @@ -1430,7 +1541,7 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "history", b"history", "poller_groups_info", @@ -1453,7 +1564,7 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "backlog_count_hint", @@ -1497,9 +1608,11 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): global___PollWorkflowTaskQueueResponse = PollWorkflowTaskQueueResponse +@typing.final class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class QueryResultsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1515,13 +1628,13 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): value: temporalio.api.query.v1.message_pb2.WorkflowQueryResult | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class Capabilities(google.protobuf.message.Message): """SDK capability details.""" @@ -1543,7 +1656,7 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "discard_speculative_workflow_task_with_events", b"discard_speculative_workflow_task_with_events", ], @@ -1573,22 +1686,8 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): INTERMEDIATE_PAGE_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollWorkflowTaskQueueResponse`""" - @property - def commands( - self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ - temporalio.api.command.v1.message_pb2.Command - ]: - """A list of commands generated when driving the workflow code in response to the new task""" identity: builtins.str """The identity of the worker/client""" - @property - def sticky_attributes( - self, - ) -> temporalio.api.taskqueue.v1.message_pb2.StickyExecutionAttributes: - """May be set by workers to indicate that the worker desires future tasks to be provided with - incremental history on a sticky queue. - """ return_new_workflow_task: builtins.bool """If set, the worker wishes to immediately receive the next workflow task as a response to this completion. This can save on polling round-trips. @@ -1603,6 +1702,49 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): """Deprecated. Use `deployment_options` instead. Worker process' unique binary id """ + namespace: builtins.str + resource_id: builtins.str + """Resource ID for routing. Contains the workflow ID from the original task.""" + versioning_behavior: ( + temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType + ) + """Versioning behavior of this workflow execution as set on the worker that completed this task. + UNSPECIFIED means versioning is not enabled in the worker. + """ + worker_instance_key: builtins.str + """A unique key for this worker instance, used for tracking worker lifecycle. + This is guaranteed to be unique, whereas identity is not guaranteed to be unique. + """ + worker_control_task_queue: builtins.str + """A dedicated per-worker Nexus task queue on which the server sends control + tasks (e.g. activity cancellation) to this specific worker instance. + """ + page_number: builtins.int + """0-indexed page number when the workflow task completion is split across multiple + requests ("pages"). 0 for single-page requests. May only be set to non-zero value + when the namespace capability workflow_task_completion_pagination is true. + """ + intermediate_page: builtins.bool + """True for non-final pages of a paginated workflow task completion. The final page's + `page_number` tells the server how many intermediate pages (0..page_number-1) preceded it. + May only be used when the namespace capability workflow_task_completion_pagination is true. + """ + @property + def commands( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.command.v1.message_pb2.Command + ]: + """A list of commands generated when driving the workflow code in response to the new task""" + + @property + def sticky_attributes( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.StickyExecutionAttributes: + """May be set by workers to indicate that the worker desires future tasks to be provided with + incremental history on a sticky queue. + """ + @property def query_results( self, @@ -1610,9 +1752,7 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): builtins.str, temporalio.api.query.v1.message_pb2.WorkflowQueryResult ]: """Responses to the `queries` field in the task being responded to""" - namespace: builtins.str - resource_id: builtins.str - """Resource ID for routing. Contains the workflow ID from the original task.""" + @property def worker_version_stamp( self, @@ -1622,6 +1762,7 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): field to true. See message docstrings for more. Deprecated. Use `deployment_options` and `versioning_behavior` instead. """ + @property def messages( self, @@ -1629,6 +1770,7 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): temporalio.api.protocol.v1.message_pb2.Message ]: """Protocol messages piggybacking on a WFT as a transport""" + @property def sdk_metadata( self, @@ -1636,49 +1778,30 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): """Data the SDK wishes to record for itself, but server need not interpret, and does not directly impact workflow state. """ + @property def metering_metadata( self, ) -> temporalio.api.common.v1.message_pb2.MeteringMetadata: """Local usage data collected for metering""" + @property def capabilities(self) -> global___RespondWorkflowTaskCompletedRequest.Capabilities: """All capabilities the SDK supports.""" + @property def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: """Deployment info of the worker that completed this task. Must be present if user has set `WorkerDeploymentOptions` regardless of versioning being enabled or not. Deprecated. Replaced with `deployment_options`. """ - versioning_behavior: ( - temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType - ) - """Versioning behavior of this workflow execution as set on the worker that completed this task. - UNSPECIFIED means versioning is not enabled in the worker. - """ + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" - worker_instance_key: builtins.str - """A unique key for this worker instance, used for tracking worker lifecycle. - This is guaranteed to be unique, whereas identity is not guaranteed to be unique. - """ - worker_control_task_queue: builtins.str - """A dedicated per-worker Nexus task queue on which the server sends control - tasks (e.g. activity cancellation) to this specific worker instance. - """ - page_number: builtins.int - """0-indexed page number when the workflow task completion is split across multiple - requests ("pages"). 0 for single-page requests. May only be set to non-zero value - when the namespace capability workflow_task_completion_pagination is true. - """ - intermediate_page: builtins.bool - """True for non-final pages of a paginated workflow task completion. The final page's - `page_number` tells the server how many intermediate pages (0..page_number-1) preceded it. - May only be used when the namespace capability workflow_task_completion_pagination is true. - """ + def __init__( self, *, @@ -1722,7 +1845,7 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "capabilities", b"capabilities", "deployment", @@ -1741,7 +1864,7 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "binary_checksum", b"binary_checksum", "capabilities", @@ -1791,15 +1914,22 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): global___RespondWorkflowTaskCompletedRequest = RespondWorkflowTaskCompletedRequest +@typing.final class RespondWorkflowTaskCompletedResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor WORKFLOW_TASK_FIELD_NUMBER: builtins.int ACTIVITY_TASKS_FIELD_NUMBER: builtins.int RESET_HISTORY_EVENT_ID_FIELD_NUMBER: builtins.int + reset_history_event_id: builtins.int + """If non zero, indicates the server has discarded the workflow task that was being responded to. + Will be the event ID of the last workflow task started event in the history before the new workflow task. + Server is only expected to discard a workflow task if it could not have modified the workflow state. + """ @property def workflow_task(self) -> global___PollWorkflowTaskQueueResponse: """See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task`""" + @property def activity_tasks( self, @@ -1807,11 +1937,7 @@ class RespondWorkflowTaskCompletedResponse(google.protobuf.message.Message): global___PollActivityTaskQueueResponse ]: """See `ScheduleActivityTaskCommandAttributes::request_eager_execution`""" - reset_history_event_id: builtins.int - """If non zero, indicates the server has discarded the workflow task that was being responded to. - Will be the event ID of the last workflow task started event in the history before the new workflow task. - Server is only expected to discard a workflow task if it could not have modified the workflow state. - """ + def __init__( self, *, @@ -1821,11 +1947,11 @@ class RespondWorkflowTaskCompletedResponse(google.protobuf.message.Message): reset_history_event_id: builtins.int = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["workflow_task", b"workflow_task"] + self, field_name: typing.Literal["workflow_task", b"workflow_task"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_tasks", b"activity_tasks", "reset_history_event_id", @@ -1837,6 +1963,7 @@ class RespondWorkflowTaskCompletedResponse(google.protobuf.message.Message): global___RespondWorkflowTaskCompletedResponse = RespondWorkflowTaskCompletedResponse +@typing.final class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1857,9 +1984,6 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): """Why did the task fail? It's important to note that many of the variants in this enum cannot apply to worker responses. See the type's doc for more. """ - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: - """Failure details""" identity: builtins.str """The identity of the worker/client""" binary_checksum: builtins.str @@ -1869,6 +1993,10 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): namespace: builtins.str resource_id: builtins.str """Resource ID for routing. Contains the workflow ID from the original task.""" + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """Failure details""" + @property def messages( self, @@ -1876,6 +2004,7 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): temporalio.api.protocol.v1.message_pb2.Message ]: """Protocol messages piggybacking on a WFT as a transport""" + @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker who processed this task. This message's `build_id` field should @@ -1883,17 +2012,20 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): field to true. See message docstrings for more. Deprecated. Use `deployment_options` instead. """ + @property def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: """Deployment info of the worker that completed this task. Must be present if user has set `WorkerDeploymentOptions` regardless of versioning being enabled or not. Deprecated. Replaced with `deployment_options`. """ + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" + def __init__( self, *, @@ -1916,7 +2048,7 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "deployment_options", @@ -1929,7 +2061,7 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "binary_checksum", b"binary_checksum", "cause", @@ -1957,6 +2089,7 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): global___RespondWorkflowTaskFailedRequest = RespondWorkflowTaskFailedRequest +@typing.final class RespondWorkflowTaskFailedResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1966,6 +2099,7 @@ class RespondWorkflowTaskFailedResponse(google.protobuf.message.Message): global___RespondWorkflowTaskFailedResponse = RespondWorkflowTaskFailedResponse +@typing.final class PollActivityTaskQueueRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1978,9 +2112,8 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): TASK_QUEUE_METADATA_FIELD_NUMBER: builtins.int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int + POLLER_POOL_INFO_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... poller_group_id: builtins.str """Unless this is the first poll, the client must pass one of the poller group IDs received in `poller_group_infos` of the last the PollActivityTaskQueueResponse according to the @@ -1998,6 +2131,8 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): tasks (e.g. activity cancellation) to this specific worker instance. """ @property + def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... + @property def task_queue_metadata( self, ) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueueMetadata: ... @@ -2009,11 +2144,21 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): feature. See the `WorkerVersionCapabilities` docstring for more. Deprecated. Replaced by deployment_options. """ + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" + + @property + def poller_pool_info( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo: + """Worker-reported poller pool state, used to spread poller scaling suggestions across + a fleet. Optional. + """ + def __init__( self, *, @@ -2029,12 +2174,16 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): | None = ..., deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions | None = ..., + poller_pool_info: temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_options", b"deployment_options", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "task_queue_metadata", @@ -2045,7 +2194,7 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_options", b"deployment_options", "identity", @@ -2054,6 +2203,8 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): b"namespace", "poller_group_id", b"poller_group_id", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "task_queue_metadata", @@ -2069,6 +2220,7 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): global___PollActivityTaskQueueRequest = PollActivityTaskQueueRequest +@typing.final class PollActivityTaskQueueResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2094,6 +2246,7 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): ACTIVITY_RUN_ID_FIELD_NUMBER: builtins.int POLLER_GROUP_INFOS_FIELD_NUMBER: builtins.int POLLER_GROUPS_INFO_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int task_token: builtins.bytes """A unique identifier for this task""" workflow_namespace: builtins.str @@ -2101,46 +2254,56 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): the workflow also. If this is a standalone activity then the name of this field is misleading, but retained for compatibility with workflow activities. """ + activity_id: builtins.str + """The autogenerated or user specified identifier of this activity. Can be used to complete the + activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage + has resolved, but unique IDs for every activity invocation is a good idea. + Note that only a workflow activity ID may be autogenerated. + """ + attempt: builtins.int + """Starting at 1, the number of attempts to perform this activity""" + activity_run_id: builtins.str + """The run ID of the activity execution, only set for standalone activities.""" @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: """Type of the requesting workflow (if this is a workflow activity).""" + @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: """Execution info of the requesting workflow (if this is a workflow activity)""" + @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... - activity_id: builtins.str - """The autogenerated or user specified identifier of this activity. Can be used to complete the - activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage - has resolved, but unique IDs for every activity invocation is a good idea. - Note that only a workflow activity ID may be autogenerated. - """ @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: """Headers specified by the scheduling workflow. Commonly used to propagate contextual info from the workflow to its activities. For example, tracing contexts. """ + @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Arguments to the activity invocation""" + @property def heartbeat_details(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Details of the last heartbeat that was recorded for this activity as of the time this task was delivered. """ + @property def scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When was this task first scheduled""" + @property def current_attempt_scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When was this task attempt scheduled""" + @property def started_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When was this task started (this attempt)""" - attempt: builtins.int - """Starting at 1, the number of attempts to perform this activity""" + @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """First scheduled -> final result reported timeout @@ -2148,6 +2311,7 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Current attempt start -> final result reported timeout @@ -2155,25 +2319,28 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration: """Window within which the activity must report a heartbeat, or be timed out.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """This is the retry policy the service uses which may be different from the one provided (or not) during activity scheduling. The service can override the provided one if some values are not specified or exceed configured system limits. """ + @property def poller_scaling_decision( self, ) -> temporalio.api.taskqueue.v1.message_pb2.PollerScalingDecision: """Server-advised information the SDK may use to adjust its poller count.""" + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata""" - activity_run_id: builtins.str - """The run ID of the activity execution, only set for standalone activities.""" + @property def poller_group_infos( self, @@ -2187,6 +2354,7 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): 3. If every group has some pending polls, assign the next poll to a group randomly according to the weights. """ + @property def poller_groups_info( self, @@ -2199,6 +2367,13 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): 3. If every group has some pending polls, assign the next poll to a group randomly according to the weights. """ + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this activity.""" + def __init__( self, *, @@ -2231,10 +2406,12 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): | None = ..., poller_groups_info: temporalio.api.taskqueue.v1.message_pb2.PollerGroupsInfo | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_type", b"activity_type", "current_attempt_scheduled_time", @@ -2253,6 +2430,8 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): b"poller_scaling_decision", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -2271,7 +2450,7 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_run_id", @@ -2298,6 +2477,8 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): b"poller_scaling_decision", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -2321,6 +2502,7 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): global___PollActivityTaskQueueResponse = PollActivityTaskQueueResponse +@typing.final class RecordActivityTaskHeartbeatRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2331,14 +2513,15 @@ class RecordActivityTaskHeartbeatRequest(google.protobuf.message.Message): RESOURCE_ID_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollActivityTaskQueueResponse`""" - @property - def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Arbitrary data, of which the most recent call is kept, to store for this activity""" identity: builtins.str """The identity of the worker/client""" namespace: builtins.str resource_id: builtins.str """Resource ID for routing. Contains the workflow ID or activity ID for standalone activities.""" + @property + def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Arbitrary data, of which the most recent call is kept, to store for this activity""" + def __init__( self, *, @@ -2349,11 +2532,11 @@ class RecordActivityTaskHeartbeatRequest(google.protobuf.message.Message): resource_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "identity", @@ -2369,6 +2552,7 @@ class RecordActivityTaskHeartbeatRequest(google.protobuf.message.Message): global___RecordActivityTaskHeartbeatRequest = RecordActivityTaskHeartbeatRequest +@typing.final class RecordActivityTaskHeartbeatResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2394,7 +2578,7 @@ class RecordActivityTaskHeartbeatResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_paused", b"activity_paused", "activity_reset", @@ -2406,6 +2590,7 @@ class RecordActivityTaskHeartbeatResponse(google.protobuf.message.Message): global___RecordActivityTaskHeartbeatResponse = RecordActivityTaskHeartbeatResponse +@typing.final class RecordActivityTaskHeartbeatByIdRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2426,13 +2611,14 @@ class RecordActivityTaskHeartbeatByIdRequest(google.protobuf.message.Message): """ activity_id: builtins.str """Id of the activity we're heartbeating""" - @property - def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Arbitrary data, of which the most recent call is kept, to store for this activity""" identity: builtins.str """The identity of the worker/client""" resource_id: builtins.str """Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.""" + @property + def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Arbitrary data, of which the most recent call is kept, to store for this activity""" + def __init__( self, *, @@ -2445,11 +2631,11 @@ class RecordActivityTaskHeartbeatByIdRequest(google.protobuf.message.Message): resource_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "details", @@ -2469,6 +2655,7 @@ class RecordActivityTaskHeartbeatByIdRequest(google.protobuf.message.Message): global___RecordActivityTaskHeartbeatByIdRequest = RecordActivityTaskHeartbeatByIdRequest +@typing.final class RecordActivityTaskHeartbeatByIdResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2494,7 +2681,7 @@ class RecordActivityTaskHeartbeatByIdResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_paused", b"activity_paused", "activity_reset", @@ -2508,6 +2695,7 @@ global___RecordActivityTaskHeartbeatByIdResponse = ( RecordActivityTaskHeartbeatByIdResponse ) +@typing.final class RespondActivityTaskCompletedRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2521,14 +2709,15 @@ class RespondActivityTaskCompletedRequest(google.protobuf.message.Message): DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollActivityTaskQueueResponse`""" - @property - def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """The result of successfully executing the activity""" identity: builtins.str """The identity of the worker/client""" namespace: builtins.str resource_id: builtins.str """Resource ID for routing. Contains the workflow ID or activity ID for standalone activities.""" + @property + def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """The result of successfully executing the activity""" + @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker who processed this task. This message's `build_id` field should @@ -2536,17 +2725,20 @@ class RespondActivityTaskCompletedRequest(google.protobuf.message.Message): field to true. See message docstrings for more. Deprecated. Use `deployment_options` instead. """ + @property def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: """Deployment info of the worker that completed this task. Must be present if user has set `WorkerDeploymentOptions` regardless of versioning being enabled or not. Deprecated. Replaced with `deployment_options`. """ + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" + def __init__( self, *, @@ -2563,7 +2755,7 @@ class RespondActivityTaskCompletedRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "deployment_options", @@ -2576,7 +2768,7 @@ class RespondActivityTaskCompletedRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "deployment_options", @@ -2598,6 +2790,7 @@ class RespondActivityTaskCompletedRequest(google.protobuf.message.Message): global___RespondActivityTaskCompletedRequest = RespondActivityTaskCompletedRequest +@typing.final class RespondActivityTaskCompletedResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2607,6 +2800,7 @@ class RespondActivityTaskCompletedResponse(google.protobuf.message.Message): global___RespondActivityTaskCompletedResponse = RespondActivityTaskCompletedResponse +@typing.final class RespondActivityTaskCompletedByIdRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2627,13 +2821,14 @@ class RespondActivityTaskCompletedByIdRequest(google.protobuf.message.Message): """ activity_id: builtins.str """Id of the activity to complete""" - @property - def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """The serialized result of activity execution""" identity: builtins.str """The identity of the worker/client""" resource_id: builtins.str """Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.""" + @property + def result(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """The serialized result of activity execution""" + def __init__( self, *, @@ -2646,11 +2841,11 @@ class RespondActivityTaskCompletedByIdRequest(google.protobuf.message.Message): resource_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "identity", @@ -2672,6 +2867,7 @@ global___RespondActivityTaskCompletedByIdRequest = ( RespondActivityTaskCompletedByIdRequest ) +@typing.final class RespondActivityTaskCompletedByIdResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2683,6 +2879,7 @@ global___RespondActivityTaskCompletedByIdResponse = ( RespondActivityTaskCompletedByIdResponse ) +@typing.final class RespondActivityTaskFailedRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2695,19 +2892,24 @@ class RespondActivityTaskFailedRequest(google.protobuf.message.Message): WORKER_VERSION_FIELD_NUMBER: builtins.int DEPLOYMENT_FIELD_NUMBER: builtins.int DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int + CAUSE_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollActivityTaskQueueResponse`""" - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: - """Detailed failure information""" identity: builtins.str """The identity of the worker/client""" namespace: builtins.str resource_id: builtins.str """Resource ID for routing. Contains the workflow ID or activity ID for standalone activities.""" + cause: temporalio.api.enums.v1.failed_cause_pb2.ActivityTaskFailedCause.ValueType + """Why did the task fail? When unset, the failure is treated as an unspecified activity failure.""" + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """Detailed failure information""" + @property def last_heartbeat_details(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Additional details to be stored as last activity heartbeat""" + @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker who processed this task. This message's `build_id` field should @@ -2715,17 +2917,20 @@ class RespondActivityTaskFailedRequest(google.protobuf.message.Message): field to true. See message docstrings for more. Deprecated. Use `deployment_options` instead. """ + @property def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: """Deployment info of the worker that completed this task. Must be present if user has set `WorkerDeploymentOptions` regardless of versioning being enabled or not. Deprecated. Replaced with `deployment_options`. """ + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" + def __init__( self, *, @@ -2741,10 +2946,11 @@ class RespondActivityTaskFailedRequest(google.protobuf.message.Message): deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions | None = ..., + cause: temporalio.api.enums.v1.failed_cause_pb2.ActivityTaskFailedCause.ValueType = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "deployment_options", @@ -2759,7 +2965,9 @@ class RespondActivityTaskFailedRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ + "cause", + b"cause", "deployment", b"deployment", "deployment_options", @@ -2783,6 +2991,7 @@ class RespondActivityTaskFailedRequest(google.protobuf.message.Message): global___RespondActivityTaskFailedRequest = RespondActivityTaskFailedRequest +@typing.final class RespondActivityTaskFailedResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2796,6 +3005,7 @@ class RespondActivityTaskFailedResponse(google.protobuf.message.Message): """Server validation failures could include last_heartbeat_details payload is too large, request failure is too large """ + def __init__( self, *, @@ -2805,11 +3015,12 @@ class RespondActivityTaskFailedResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["failures", b"failures"] + self, field_name: typing.Literal["failures", b"failures"] ) -> None: ... global___RespondActivityTaskFailedResponse = RespondActivityTaskFailedResponse +@typing.final class RespondActivityTaskFailedByIdRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2821,6 +3032,7 @@ class RespondActivityTaskFailedByIdRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int LAST_HEARTBEAT_DETAILS_FIELD_NUMBER: builtins.int RESOURCE_ID_FIELD_NUMBER: builtins.int + CAUSE_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the workflow which scheduled this activity""" workflow_id: builtins.str @@ -2831,16 +3043,22 @@ class RespondActivityTaskFailedByIdRequest(google.protobuf.message.Message): """ activity_id: builtins.str """Id of the activity to fail""" + identity: builtins.str + """The identity of the worker/client""" + resource_id: builtins.str + """Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.""" + cause: temporalio.api.enums.v1.failed_cause_pb2.ActivityTaskFailedCause.ValueType + """Why did the activity task fail? Optional; when unset the failure is treated as a normal + activity failure. See the type's doc for more. + """ @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Detailed failure information""" - identity: builtins.str - """The identity of the worker/client""" + @property def last_heartbeat_details(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Additional details to be stored as last activity heartbeat""" - resource_id: builtins.str - """Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.""" + def __init__( self, *, @@ -2853,18 +3071,21 @@ class RespondActivityTaskFailedByIdRequest(google.protobuf.message.Message): last_heartbeat_details: temporalio.api.common.v1.message_pb2.Payloads | None = ..., resource_id: builtins.str = ..., + cause: temporalio.api.enums.v1.failed_cause_pb2.ActivityTaskFailedCause.ValueType = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "last_heartbeat_details", b"last_heartbeat_details" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", + "cause", + b"cause", "failure", b"failure", "identity", @@ -2884,6 +3105,7 @@ class RespondActivityTaskFailedByIdRequest(google.protobuf.message.Message): global___RespondActivityTaskFailedByIdRequest = RespondActivityTaskFailedByIdRequest +@typing.final class RespondActivityTaskFailedByIdResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2897,6 +3119,7 @@ class RespondActivityTaskFailedByIdResponse(google.protobuf.message.Message): """Server validation failures could include last_heartbeat_details payload is too large, request failure is too large """ + def __init__( self, *, @@ -2906,11 +3129,12 @@ class RespondActivityTaskFailedByIdResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["failures", b"failures"] + self, field_name: typing.Literal["failures", b"failures"] ) -> None: ... global___RespondActivityTaskFailedByIdResponse = RespondActivityTaskFailedByIdResponse +@typing.final class RespondActivityTaskCanceledRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -2924,14 +3148,15 @@ class RespondActivityTaskCanceledRequest(google.protobuf.message.Message): DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollActivityTaskQueueResponse`""" - @property - def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Serialized additional information to attach to the cancellation""" identity: builtins.str """The identity of the worker/client""" namespace: builtins.str resource_id: builtins.str """Resource ID for routing. Contains the workflow ID or activity ID for standalone activities.""" + @property + def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Serialized additional information to attach to the cancellation""" + @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """Version info of the worker who processed this task. This message's `build_id` field should @@ -2939,17 +3164,20 @@ class RespondActivityTaskCanceledRequest(google.protobuf.message.Message): field to true. See message docstrings for more. Deprecated. Use `deployment_options` instead. """ + @property def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: """Deployment info of the worker that completed this task. Must be present if user has set `WorkerDeploymentOptions` regardless of versioning being enabled or not. Deprecated. Replaced with `deployment_options`. """ + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" + def __init__( self, *, @@ -2966,7 +3194,7 @@ class RespondActivityTaskCanceledRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "deployment_options", @@ -2979,7 +3207,7 @@ class RespondActivityTaskCanceledRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "deployment_options", @@ -3001,6 +3229,7 @@ class RespondActivityTaskCanceledRequest(google.protobuf.message.Message): global___RespondActivityTaskCanceledRequest = RespondActivityTaskCanceledRequest +@typing.final class RespondActivityTaskCanceledResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3010,6 +3239,7 @@ class RespondActivityTaskCanceledResponse(google.protobuf.message.Message): global___RespondActivityTaskCanceledResponse = RespondActivityTaskCanceledResponse +@typing.final class RespondActivityTaskCanceledByIdRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3031,18 +3261,20 @@ class RespondActivityTaskCanceledByIdRequest(google.protobuf.message.Message): """ activity_id: builtins.str """Id of the activity to confirm is cancelled""" + identity: builtins.str + """The identity of the worker/client""" + resource_id: builtins.str + """Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.""" @property def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized additional information to attach to the cancellation""" - identity: builtins.str - """The identity of the worker/client""" + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" - resource_id: builtins.str - """Resource ID for routing. Contains "workflow:workflow_id" or "activity:activity_id" for standalone activities.""" + def __init__( self, *, @@ -3058,13 +3290,13 @@ class RespondActivityTaskCanceledByIdRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_options", b"deployment_options", "details", b"details" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "deployment_options", @@ -3086,6 +3318,7 @@ class RespondActivityTaskCanceledByIdRequest(google.protobuf.message.Message): global___RespondActivityTaskCanceledByIdRequest = RespondActivityTaskCanceledByIdRequest +@typing.final class RespondActivityTaskCanceledByIdResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3097,6 +3330,7 @@ global___RespondActivityTaskCanceledByIdResponse = ( RespondActivityTaskCanceledByIdResponse ) +@typing.final class RequestCancelWorkflowExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3108,10 +3342,6 @@ class RequestCancelWorkflowExecutionRequest(google.protobuf.message.Message): REASON_FIELD_NUMBER: builtins.int LINKS_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def workflow_execution( - self, - ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... identity: builtins.str """The identity of the worker/client""" request_id: builtins.str @@ -3124,12 +3354,17 @@ class RequestCancelWorkflowExecutionRequest(google.protobuf.message.Message): reason: builtins.str """Reason for requesting the cancellation""" @property + def workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... + @property def links( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.common.v1.message_pb2.Link ]: """Links to be associated with the WorkflowExecutionCanceled event.""" + def __init__( self, *, @@ -3144,14 +3379,11 @@ class RequestCancelWorkflowExecutionRequest(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "first_execution_run_id", b"first_execution_run_id", "identity", @@ -3171,6 +3403,7 @@ class RequestCancelWorkflowExecutionRequest(google.protobuf.message.Message): global___RequestCancelWorkflowExecutionRequest = RequestCancelWorkflowExecutionRequest +@typing.final class RequestCancelWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3180,6 +3413,7 @@ class RequestCancelWorkflowExecutionResponse(google.protobuf.message.Message): global___RequestCancelWorkflowExecutionResponse = RequestCancelWorkflowExecutionResponse +@typing.final class SignalWorkflowExecutionRequest(google.protobuf.message.Message): """Keep the parameters in sync with: - temporalio.api.batch.v1.BatchOperationSignal. @@ -3198,26 +3432,28 @@ class SignalWorkflowExecutionRequest(google.protobuf.message.Message): HEADER_FIELD_NUMBER: builtins.int LINKS_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def workflow_execution( - self, - ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... signal_name: builtins.str """The workflow author-defined name of the signal to send to the workflow""" - @property - def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Serialized value(s) to provide with the signal""" identity: builtins.str """The identity of the worker/client""" request_id: builtins.str """Used to de-dupe sent signals""" control: builtins.str """Deprecated.""" + @property + def workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... + @property + def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Serialized value(s) to provide with the signal""" + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: """Headers that are passed with the signal to the processing workflow. These can include things like auth or tracing tokens. """ + @property def links( self, @@ -3225,6 +3461,7 @@ class SignalWorkflowExecutionRequest(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to be associated with the WorkflowExecutionSignaled event.""" + def __init__( self, *, @@ -3242,7 +3479,7 @@ class SignalWorkflowExecutionRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "input", @@ -3253,7 +3490,7 @@ class SignalWorkflowExecutionRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "control", b"control", "header", @@ -3277,6 +3514,7 @@ class SignalWorkflowExecutionRequest(google.protobuf.message.Message): global___SignalWorkflowExecutionRequest = SignalWorkflowExecutionRequest +@typing.final class SignalWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3287,20 +3525,20 @@ class SignalWorkflowExecutionResponse(google.protobuf.message.Message): Added on the response to propagate the backlink. Available from Temporal server 1.31 and up. """ + def __init__( self, *, link: temporalio.api.common.v1.message_pb2.Link | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["link", b"link"] + self, field_name: typing.Literal["link", b"link"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["link", b"link"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["link", b"link"]) -> None: ... global___SignalWorkflowExecutionResponse = SignalWorkflowExecutionResponse +@typing.final class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3332,56 +3570,63 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): TIME_SKIPPING_CONFIG_FIELD_NUMBER: builtins.int namespace: builtins.str workflow_id: builtins.str + identity: builtins.str + """The identity of the worker/client""" + request_id: builtins.str + """Used to de-dupe signal w/ start requests""" + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) + """Defines whether to allow re-using the workflow id from a previously *closed* workflow. + The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + + See `workflow_id_reuse_policy` for handling a workflow id duplication with a *running* workflow. + """ + workflow_id_conflict_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType + ) + """Defines how to resolve a workflow id conflict with a *running* workflow. + The default policy is WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING. + Note that WORKFLOW_ID_CONFLICT_POLICY_FAIL is an invalid option. + + See `workflow_id_reuse_policy` for handling a workflow id duplication with a *closed* workflow. + """ + signal_name: builtins.str + """The workflow author-defined name of the signal to send to the workflow""" + control: builtins.str + """Deprecated.""" + cron_schedule: builtins.str + """See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/""" @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @property def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: """The task queue to start this workflow on, if it will be started""" + @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized arguments to the workflow. These are passed as arguments to the workflow function.""" + @property def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: """Total workflow execution timeout including retries and continue as new""" - @property - def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: - """Timeout of a single workflow run""" - @property - def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: - """Timeout of a single workflow task""" - identity: builtins.str - """The identity of the worker/client""" - request_id: builtins.str - """Used to de-dupe signal w/ start requests""" - workflow_id_reuse_policy: ( - temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType - ) - """Defines whether to allow re-using the workflow id from a previously *closed* workflow. - The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. - See `workflow_id_reuse_policy` for handling a workflow id duplication with a *running* workflow. - """ - workflow_id_conflict_policy: ( - temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType - ) - """Defines how to resolve a workflow id conflict with a *running* workflow. - The default policy is WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING. - Note that WORKFLOW_ID_CONFLICT_POLICY_FAIL is an invalid option. + @property + def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: + """Timeout of a single workflow run""" + + @property + def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: + """Timeout of a single workflow task""" - See `workflow_id_reuse_policy` for handling a workflow id duplication with a *closed* workflow. - """ - signal_name: builtins.str - """The workflow author-defined name of the signal to send to the workflow""" @property def signal_input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized value(s) to provide with the signal""" - control: builtins.str - """Deprecated.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """Retry policy for the workflow""" - cron_schedule: builtins.str - """See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/""" + @property def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: ... @property @@ -3398,12 +3643,14 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): and the rest of the delay period will be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution will not unblock the workflow. """ + @property def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: """Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionInfo for use by user interfaces to display the fixed as-of-start summary and details of the workflow. """ + @property def links( self, @@ -3411,6 +3658,7 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to be associated with the WorkflowExecutionStarted and WorkflowExecutionSignaled events.""" + @property def versioning_override( self, @@ -3418,14 +3666,17 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): """If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata""" + @property def time_skipping_config( self, ) -> temporalio.api.common.v1.message_pb2.TimeSkippingConfig: """Time-skipping configuration. If not set, time skipping is disabled.""" + def __init__( self, *, @@ -3463,7 +3714,7 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "header", b"header", "input", @@ -3500,7 +3751,7 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "control", b"control", "cron_schedule", @@ -3560,6 +3811,7 @@ global___SignalWithStartWorkflowExecutionRequest = ( SignalWithStartWorkflowExecutionRequest ) +@typing.final class SignalWithStartWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3579,6 +3831,7 @@ class SignalWithStartWorkflowExecutionResponse(google.protobuf.message.Message): Added on the response to propagate the backlink. Available from Temporal server 1.31 and up. """ + def __init__( self, *, @@ -3588,11 +3841,11 @@ class SignalWithStartWorkflowExecutionResponse(google.protobuf.message.Message): signal_link: temporalio.api.common.v1.message_pb2.Link | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["signal_link", b"signal_link"] + self, field_name: typing.Literal["signal_link", b"signal_link"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "first_execution_run_id", b"first_execution_run_id", "run_id", @@ -3608,6 +3861,7 @@ global___SignalWithStartWorkflowExecutionResponse = ( SignalWithStartWorkflowExecutionResponse ) +@typing.final class ResetWorkflowExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3621,14 +3875,6 @@ class ResetWorkflowExecutionRequest(google.protobuf.message.Message): POST_RESET_OPERATIONS_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def workflow_execution( - self, - ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: - """The workflow to reset. If this contains a run ID then the workflow will be reset back to the - provided event ID in that run. Otherwise it will be reset to the provided event ID in the - current run. In all cases the current run will be terminated and a new run started. - """ reason: builtins.str workflow_task_finish_event_id: builtins.int """The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or @@ -3640,6 +3886,17 @@ class ResetWorkflowExecutionRequest(google.protobuf.message.Message): """Deprecated. Use `options`. Default: RESET_REAPPLY_TYPE_SIGNAL """ + identity: builtins.str + """The identity of the worker/client""" + @property + def workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """The workflow to reset. If this contains a run ID then the workflow will be reset back to the + provided event ID in that run. Otherwise it will be reset to the provided event ID in the + current run. In all cases the current run will be terminated and a new run started. + """ + @property def reset_reapply_exclude_types( self, @@ -3647,6 +3904,7 @@ class ResetWorkflowExecutionRequest(google.protobuf.message.Message): temporalio.api.enums.v1.reset_pb2.ResetReapplyExcludeType.ValueType ]: """Event types not to be reapplied""" + @property def post_reset_operations( self, @@ -3657,8 +3915,7 @@ class ResetWorkflowExecutionRequest(google.protobuf.message.Message): to the *new* run of the workflow execution in the order they are provided. All operations are applied to the workflow before the first new workflow task is generated """ - identity: builtins.str - """The identity of the worker/client""" + def __init__( self, *, @@ -3680,14 +3937,11 @@ class ResetWorkflowExecutionRequest(google.protobuf.message.Message): identity: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -3711,6 +3965,7 @@ class ResetWorkflowExecutionRequest(google.protobuf.message.Message): global___ResetWorkflowExecutionRequest = ResetWorkflowExecutionRequest +@typing.final class ResetWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3721,12 +3976,11 @@ class ResetWorkflowExecutionResponse(google.protobuf.message.Message): *, run_id: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["run_id", b"run_id"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["run_id", b"run_id"]) -> None: ... global___ResetWorkflowExecutionResponse = ResetWorkflowExecutionResponse +@typing.final class TerminateWorkflowExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3738,14 +3992,7 @@ class TerminateWorkflowExecutionRequest(google.protobuf.message.Message): FIRST_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int LINKS_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def workflow_execution( - self, - ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... reason: builtins.str - @property - def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Serialized additional information to attach to the termination event""" identity: builtins.str """The identity of the worker/client""" first_execution_run_id: builtins.str @@ -3753,6 +4000,14 @@ class TerminateWorkflowExecutionRequest(google.protobuf.message.Message): `workflow_execution`), or specified (if it is) workflow execution is not part of the same execution chain as this id. """ + @property + def workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... + @property + def details(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """Serialized additional information to attach to the termination event""" + @property def links( self, @@ -3760,6 +4015,7 @@ class TerminateWorkflowExecutionRequest(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to be associated with the WorkflowExecutionTerminated event.""" + def __init__( self, *, @@ -3775,13 +4031,13 @@ class TerminateWorkflowExecutionRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "workflow_execution", b"workflow_execution" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "details", b"details", "first_execution_run_id", @@ -3801,6 +4057,7 @@ class TerminateWorkflowExecutionRequest(google.protobuf.message.Message): global___TerminateWorkflowExecutionRequest = TerminateWorkflowExecutionRequest +@typing.final class TerminateWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3810,6 +4067,7 @@ class TerminateWorkflowExecutionResponse(google.protobuf.message.Message): global___TerminateWorkflowExecutionResponse = TerminateWorkflowExecutionResponse +@typing.final class DeleteWorkflowExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3821,6 +4079,7 @@ class DeleteWorkflowExecutionRequest(google.protobuf.message.Message): self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: """Workflow Execution to delete. If run_id is not specified, the latest one is used.""" + def __init__( self, *, @@ -3829,20 +4088,18 @@ class DeleteWorkflowExecutionRequest(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "workflow_execution", b"workflow_execution" ], ) -> None: ... global___DeleteWorkflowExecutionRequest = DeleteWorkflowExecutionRequest +@typing.final class DeleteWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3852,6 +4109,7 @@ class DeleteWorkflowExecutionResponse(google.protobuf.message.Message): global___DeleteWorkflowExecutionResponse = DeleteWorkflowExecutionResponse +@typing.final class ListOpenWorkflowExecutionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -3891,7 +4149,7 @@ class ListOpenWorkflowExecutionsRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution_filter", b"execution_filter", "filters", @@ -3904,7 +4162,7 @@ class ListOpenWorkflowExecutionsRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution_filter", b"execution_filter", "filters", @@ -3922,23 +4180,24 @@ class ListOpenWorkflowExecutionsRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["filters", b"filters"] - ) -> typing_extensions.Literal["execution_filter", "type_filter"] | None: ... + self, oneof_group: typing.Literal["filters", b"filters"] + ) -> typing.Literal["execution_filter", "type_filter"] | None: ... global___ListOpenWorkflowExecutionsRequest = ListOpenWorkflowExecutionsRequest +@typing.final class ListOpenWorkflowExecutionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor EXECUTIONS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def executions( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.workflow.v1.message_pb2.WorkflowExecutionInfo ]: ... - next_page_token: builtins.bytes def __init__( self, *, @@ -3950,13 +4209,14 @@ class ListOpenWorkflowExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "executions", b"executions", "next_page_token", b"next_page_token" ], ) -> None: ... global___ListOpenWorkflowExecutionsResponse = ListOpenWorkflowExecutionsResponse +@typing.final class ListClosedWorkflowExecutionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4000,7 +4260,7 @@ class ListClosedWorkflowExecutionsRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution_filter", b"execution_filter", "filters", @@ -4015,7 +4275,7 @@ class ListClosedWorkflowExecutionsRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution_filter", b"execution_filter", "filters", @@ -4035,26 +4295,24 @@ class ListClosedWorkflowExecutionsRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["filters", b"filters"] - ) -> ( - typing_extensions.Literal["execution_filter", "type_filter", "status_filter"] - | None - ): ... + self, oneof_group: typing.Literal["filters", b"filters"] + ) -> typing.Literal["execution_filter", "type_filter", "status_filter"] | None: ... global___ListClosedWorkflowExecutionsRequest = ListClosedWorkflowExecutionsRequest +@typing.final class ListClosedWorkflowExecutionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor EXECUTIONS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def executions( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.workflow.v1.message_pb2.WorkflowExecutionInfo ]: ... - next_page_token: builtins.bytes def __init__( self, *, @@ -4066,13 +4324,14 @@ class ListClosedWorkflowExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "executions", b"executions", "next_page_token", b"next_page_token" ], ) -> None: ... global___ListClosedWorkflowExecutionsResponse = ListClosedWorkflowExecutionsResponse +@typing.final class ListWorkflowExecutionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4094,7 +4353,7 @@ class ListWorkflowExecutionsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "next_page_token", @@ -4108,18 +4367,19 @@ class ListWorkflowExecutionsRequest(google.protobuf.message.Message): global___ListWorkflowExecutionsRequest = ListWorkflowExecutionsRequest +@typing.final class ListWorkflowExecutionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor EXECUTIONS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def executions( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.workflow.v1.message_pb2.WorkflowExecutionInfo ]: ... - next_page_token: builtins.bytes def __init__( self, *, @@ -4131,13 +4391,14 @@ class ListWorkflowExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "executions", b"executions", "next_page_token", b"next_page_token" ], ) -> None: ... global___ListWorkflowExecutionsResponse = ListWorkflowExecutionsResponse +@typing.final class ListArchivedWorkflowExecutionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4159,7 +4420,7 @@ class ListArchivedWorkflowExecutionsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "next_page_token", @@ -4173,18 +4434,19 @@ class ListArchivedWorkflowExecutionsRequest(google.protobuf.message.Message): global___ListArchivedWorkflowExecutionsRequest = ListArchivedWorkflowExecutionsRequest +@typing.final class ListArchivedWorkflowExecutionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor EXECUTIONS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def executions( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.workflow.v1.message_pb2.WorkflowExecutionInfo ]: ... - next_page_token: builtins.bytes def __init__( self, *, @@ -4196,13 +4458,14 @@ class ListArchivedWorkflowExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "executions", b"executions", "next_page_token", b"next_page_token" ], ) -> None: ... global___ListArchivedWorkflowExecutionsResponse = ListArchivedWorkflowExecutionsResponse +@typing.final class ScanWorkflowExecutionsRequest(google.protobuf.message.Message): """Deprecated: Use with `ListWorkflowExecutions`.""" @@ -4226,7 +4489,7 @@ class ScanWorkflowExecutionsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "next_page_token", @@ -4240,6 +4503,7 @@ class ScanWorkflowExecutionsRequest(google.protobuf.message.Message): global___ScanWorkflowExecutionsRequest = ScanWorkflowExecutionsRequest +@typing.final class ScanWorkflowExecutionsResponse(google.protobuf.message.Message): """Deprecated: Use with `ListWorkflowExecutions`.""" @@ -4247,13 +4511,13 @@ class ScanWorkflowExecutionsResponse(google.protobuf.message.Message): EXECUTIONS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def executions( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.workflow.v1.message_pb2.WorkflowExecutionInfo ]: ... - next_page_token: builtins.bytes def __init__( self, *, @@ -4265,13 +4529,14 @@ class ScanWorkflowExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "executions", b"executions", "next_page_token", b"next_page_token" ], ) -> None: ... global___ScanWorkflowExecutionsResponse = ScanWorkflowExecutionsResponse +@typing.final class CountWorkflowExecutionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4286,29 +4551,28 @@ class CountWorkflowExecutionsRequest(google.protobuf.message.Message): query: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "namespace", b"namespace", "query", b"query" - ], + self, field_name: typing.Literal["namespace", b"namespace", "query", b"query"] ) -> None: ... global___CountWorkflowExecutionsRequest = CountWorkflowExecutionsRequest +@typing.final class CountWorkflowExecutionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class AggregationGroup(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor GROUP_VALUES_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int + count: builtins.int @property def group_values( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.common.v1.message_pb2.Payload ]: ... - count: builtins.int def __init__( self, *, @@ -4320,7 +4584,7 @@ class CountWorkflowExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "count", b"count", "group_values", b"group_values" ], ) -> None: ... @@ -4343,6 +4607,7 @@ class CountWorkflowExecutionsResponse(google.protobuf.message.Message): """`groups` contains the groups if the request is grouping by a field. The list might not be complete, and the counts of each group is approximate. """ + def __init__( self, *, @@ -4353,12 +4618,12 @@ class CountWorkflowExecutionsResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["count", b"count", "groups", b"groups"], + self, field_name: typing.Literal["count", b"count", "groups", b"groups"] ) -> None: ... global___CountWorkflowExecutionsResponse = CountWorkflowExecutionsResponse +@typing.final class GetSearchAttributesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4368,9 +4633,11 @@ class GetSearchAttributesRequest(google.protobuf.message.Message): global___GetSearchAttributesRequest = GetSearchAttributesRequest +@typing.final class GetSearchAttributesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class KeysEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4385,8 +4652,7 @@ class GetSearchAttributesResponse(google.protobuf.message.Message): value: temporalio.api.enums.v1.common_pb2.IndexedValueType.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... KEYS_FIELD_NUMBER: builtins.int @@ -4404,12 +4670,11 @@ class GetSearchAttributesResponse(google.protobuf.message.Message): ] | None = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["keys", b"keys"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... global___GetSearchAttributesResponse = GetSearchAttributesResponse +@typing.final class RespondQueryTaskCompletedRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4423,11 +4688,6 @@ class RespondQueryTaskCompletedRequest(google.protobuf.message.Message): POLLER_GROUP_ID_FIELD_NUMBER: builtins.int task_token: builtins.bytes completed_type: temporalio.api.enums.v1.query_pb2.QueryResultType.ValueType - @property - def query_result(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """The result of the query. - Mutually exclusive with `error_message` and `failure`. Set when the query succeeds. - """ error_message: builtins.str """A plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED. SDKs should also fill in the more complete `failure` field to provide the full context and @@ -4438,13 +4698,6 @@ class RespondQueryTaskCompletedRequest(google.protobuf.message.Message): Mutually exclusive with `query_result`. Set when the query fails. """ namespace: builtins.str - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: - """The full reason for this query failure. This field is newer than `error_message` and can be - encoded by the SDK's failure converter to support E2E encryption of messages and stack - traces. - Mutually exclusive with `query_result`. Set when the query fails. - """ cause: temporalio.api.enums.v1.failed_cause_pb2.WorkflowTaskFailedCause.ValueType """Why did the task fail? It's important to note that many of the variants in this enum cannot apply to worker responses. See the type's doc for more. @@ -4453,6 +4706,20 @@ class RespondQueryTaskCompletedRequest(google.protobuf.message.Message): """Client must forward the poller_group_id received in PollWorkflowTaskQueueResponse for proper routing of the response. """ + @property + def query_result(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """The result of the query. + Mutually exclusive with `error_message` and `failure`. Set when the query succeeds. + """ + + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """The full reason for this query failure. This field is newer than `error_message` and can be + encoded by the SDK's failure converter to support E2E encryption of messages and stack + traces. + Mutually exclusive with `query_result`. Set when the query fails. + """ + def __init__( self, *, @@ -4467,13 +4734,13 @@ class RespondQueryTaskCompletedRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "query_result", b"query_result" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cause", b"cause", "completed_type", @@ -4495,6 +4762,7 @@ class RespondQueryTaskCompletedRequest(google.protobuf.message.Message): global___RespondQueryTaskCompletedRequest = RespondQueryTaskCompletedRequest +@typing.final class RespondQueryTaskCompletedResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4504,6 +4772,7 @@ class RespondQueryTaskCompletedResponse(google.protobuf.message.Message): global___RespondQueryTaskCompletedResponse = RespondQueryTaskCompletedResponse +@typing.final class ResetStickyTaskQueueRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4519,17 +4788,18 @@ class ResetStickyTaskQueueRequest(google.protobuf.message.Message): execution: temporalio.api.common.v1.message_pb2.WorkflowExecution | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["execution", b"execution"] + self, field_name: typing.Literal["execution", b"execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution", b"execution", "namespace", b"namespace" ], ) -> None: ... global___ResetStickyTaskQueueRequest = ResetStickyTaskQueueRequest +@typing.final class ResetStickyTaskQueueResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4539,6 +4809,7 @@ class ResetStickyTaskQueueResponse(google.protobuf.message.Message): global___ResetStickyTaskQueueResponse = ResetStickyTaskQueueResponse +@typing.final class ShutdownWorkerRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4558,10 +4829,6 @@ class ShutdownWorkerRequest(google.protobuf.message.Message): """ identity: builtins.str reason: builtins.str - @property - def worker_heartbeat( - self, - ) -> temporalio.api.worker.v1.message_pb2.WorkerHeartbeat: ... worker_instance_key: builtins.str """Technically this is also sent in the WorkerHeartbeat, but since worker heartbeating can be turned off, this needs @@ -4573,6 +4840,10 @@ class ShutdownWorkerRequest(google.protobuf.message.Message): can lead to tasks being lost. """ @property + def worker_heartbeat( + self, + ) -> temporalio.api.worker.v1.message_pb2.WorkerHeartbeat: ... + @property def task_queue_types( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[ @@ -4581,6 +4852,7 @@ class ShutdownWorkerRequest(google.protobuf.message.Message): """Task queue types that help server cancel outstanding poll RPC calls from SDK. This avoids a race condition that can lead to tasks being lost. """ + def __init__( self, *, @@ -4598,12 +4870,11 @@ class ShutdownWorkerRequest(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["worker_heartbeat", b"worker_heartbeat"], + self, field_name: typing.Literal["worker_heartbeat", b"worker_heartbeat"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -4625,6 +4896,7 @@ class ShutdownWorkerRequest(google.protobuf.message.Message): global___ShutdownWorkerRequest = ShutdownWorkerRequest +@typing.final class ShutdownWorkerResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4634,6 +4906,7 @@ class ShutdownWorkerResponse(google.protobuf.message.Message): global___ShutdownWorkerResponse = ShutdownWorkerResponse +@typing.final class QueryWorkflowRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4642,16 +4915,16 @@ class QueryWorkflowRequest(google.protobuf.message.Message): QUERY_FIELD_NUMBER: builtins.int QUERY_REJECT_CONDITION_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... - @property - def query(self) -> temporalio.api.query.v1.message_pb2.WorkflowQuery: ... query_reject_condition: ( temporalio.api.enums.v1.query_pb2.QueryRejectCondition.ValueType ) """QueryRejectCondition can used to reject the query if workflow state does not satisfy condition. Default: QUERY_REJECT_CONDITION_NONE. """ + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... + @property + def query(self) -> temporalio.api.query.v1.message_pb2.WorkflowQuery: ... def __init__( self, *, @@ -4661,14 +4934,11 @@ class QueryWorkflowRequest(google.protobuf.message.Message): query_reject_condition: temporalio.api.enums.v1.query_pb2.QueryRejectCondition.ValueType = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "execution", b"execution", "query", b"query" - ], + self, field_name: typing.Literal["execution", b"execution", "query", b"query"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution", b"execution", "namespace", @@ -4682,6 +4952,7 @@ class QueryWorkflowRequest(google.protobuf.message.Message): global___QueryWorkflowRequest = QueryWorkflowRequest +@typing.final class QueryWorkflowResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4695,6 +4966,7 @@ class QueryWorkflowResponse(google.protobuf.message.Message): @property def link(self) -> temporalio.api.common.v1.message_pb2.Link: """Holds the link to the Workflow execution that processed the Query.""" + def __init__( self, *, @@ -4704,7 +4976,7 @@ class QueryWorkflowResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "link", b"link", "query_rejected", @@ -4715,7 +4987,7 @@ class QueryWorkflowResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "link", b"link", "query_rejected", @@ -4727,6 +4999,7 @@ class QueryWorkflowResponse(google.protobuf.message.Message): global___QueryWorkflowResponse = QueryWorkflowResponse +@typing.final class DescribeWorkflowExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4742,17 +5015,18 @@ class DescribeWorkflowExecutionRequest(google.protobuf.message.Message): execution: temporalio.api.common.v1.message_pb2.WorkflowExecution | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["execution", b"execution"] + self, field_name: typing.Literal["execution", b"execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution", b"execution", "namespace", b"namespace" ], ) -> None: ... global___DescribeWorkflowExecutionRequest = DescribeWorkflowExecutionRequest +@typing.final class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -4834,7 +5108,7 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution_config", b"execution_config", "pending_workflow_task", @@ -4847,7 +5121,7 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "callbacks", b"callbacks", "execution_config", @@ -4869,6 +5143,7 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): global___DescribeWorkflowExecutionResponse = DescribeWorkflowExecutionResponse +@typing.final class DescribeTaskQueueRequest(google.protobuf.message.Message): """(-- api-linter: core::0203::optional=disabled aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) @@ -4888,9 +5163,6 @@ class DescribeTaskQueueRequest(google.protobuf.message.Message): REPORT_POLLERS_FIELD_NUMBER: builtins.int REPORT_TASK_REACHABILITY_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: - """Sticky queues are not supported in deprecated ENHANCED mode.""" task_queue_type: temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType """If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used. Only supported in default mode (use `task_queue_types` in ENHANCED mode instead). @@ -4908,6 +5180,19 @@ class DescribeTaskQueueRequest(google.protobuf.message.Message): Select the API mode to use for this request: DEFAULT mode (if unset) or ENHANCED mode. Consult the documentation for each field to understand which mode it is supported in. """ + report_pollers: builtins.bool + """Deprecated (as part of the ENHANCED mode deprecation). + Report list of pollers for requested task queue types and versions. + """ + report_task_reachability: builtins.bool + """Deprecated (as part of the ENHANCED mode deprecation). + Report task reachability for the requested versions and all task types (task reachability is not reported + per task type). + """ + @property + def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: + """Sticky queues are not supported in deprecated ENHANCED mode.""" + @property def versions( self, @@ -4918,6 +5203,7 @@ class DescribeTaskQueueRequest(google.protobuf.message.Message): unversioned queue will be returned. (-- api-linter: core::0140::prepositions --) """ + @property def task_queue_types( self, @@ -4927,15 +5213,7 @@ class DescribeTaskQueueRequest(google.protobuf.message.Message): """Deprecated (as part of the ENHANCED mode deprecation). Task queue types to report info about. If not specified, all types are considered. """ - report_pollers: builtins.bool - """Deprecated (as part of the ENHANCED mode deprecation). - Report list of pollers for requested task queue types and versions. - """ - report_task_reachability: builtins.bool - """Deprecated (as part of the ENHANCED mode deprecation). - Report task reachability for the requested versions and all task types (task reachability is not reported - per task type). - """ + def __init__( self, *, @@ -4957,13 +5235,13 @@ class DescribeTaskQueueRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "task_queue", b"task_queue", "versions", b"versions" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "api_mode", b"api_mode", "include_task_queue_status", @@ -4991,9 +5269,11 @@ class DescribeTaskQueueRequest(google.protobuf.message.Message): global___DescribeTaskQueueRequest = DescribeTaskQueueRequest +@typing.final class DescribeTaskQueueResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class StatsByPriorityKeyEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5009,13 +5289,13 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): value: temporalio.api.taskqueue.v1.message_pb2.TaskQueueStats | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class EffectiveRateLimit(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5039,7 +5319,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "rate_limit_source", b"rate_limit_source", "requests_per_second", @@ -5047,6 +5327,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): ], ) -> None: ... + @typing.final class VersionsInfoEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5065,11 +5346,10 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... POLLERS_FIELD_NUMBER: builtins.int @@ -5091,6 +5371,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): """Statistics for the task queue. Only set if `report_stats` is set on the request. """ + @property def stats_by_priority_key( self, @@ -5102,6 +5383,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "by" is used to clarify the keys and values. --) """ + @property def versioning_info( self, @@ -5116,9 +5398,11 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): are typically not Pinned until they complete their first task (unless they are started with a Pinned VersioningOverride or are Child Workflows of a Pinned parent). """ + @property def config(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueueConfig: """Only populated if report_task_queue_config is set to true.""" + @property def effective_rate_limit( self, @@ -5130,6 +5414,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): """Deprecated. Status of the task queue. Only populated when `include_task_queue_status` is set to true in the request. """ + @property def versions_info( self, @@ -5140,6 +5425,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): Only returned in ENHANCED mode. This map contains Task Queue information for each Build ID. Empty string as key value means unversioned. """ + def __init__( self, *, @@ -5166,7 +5452,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "config", b"config", "effective_rate_limit", @@ -5181,7 +5467,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "config", b"config", "effective_rate_limit", @@ -5203,6 +5489,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): global___DescribeTaskQueueResponse = DescribeTaskQueueResponse +@typing.final class GetClusterInfoRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5212,11 +5499,13 @@ class GetClusterInfoRequest(google.protobuf.message.Message): global___GetClusterInfoRequest = GetClusterInfoRequest +@typing.final class GetClusterInfoResponse(google.protobuf.message.Message): """GetClusterInfoResponse contains information about Temporal cluster.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class SupportedClientsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5231,8 +5520,7 @@ class GetClusterInfoResponse(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SUPPORTED_CLIENTS_FIELD_NUMBER: builtins.int @@ -5245,6 +5533,14 @@ class GetClusterInfoResponse(google.protobuf.message.Message): VISIBILITY_STORE_FIELD_NUMBER: builtins.int INITIAL_FAILOVER_VERSION_FIELD_NUMBER: builtins.int FAILOVER_VERSION_INCREMENT_FIELD_NUMBER: builtins.int + server_version: builtins.str + cluster_id: builtins.str + cluster_name: builtins.str + history_shard_count: builtins.int + persistence_store: builtins.str + visibility_store: builtins.str + initial_failover_version: builtins.int + failover_version_increment: builtins.int @property def supported_clients( self, @@ -5252,16 +5548,9 @@ class GetClusterInfoResponse(google.protobuf.message.Message): """Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli". Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0". """ - server_version: builtins.str - cluster_id: builtins.str + @property def version_info(self) -> temporalio.api.version.v1.message_pb2.VersionInfo: ... - cluster_name: builtins.str - history_shard_count: builtins.int - persistence_store: builtins.str - visibility_store: builtins.str - initial_failover_version: builtins.int - failover_version_increment: builtins.int def __init__( self, *, @@ -5278,11 +5567,11 @@ class GetClusterInfoResponse(google.protobuf.message.Message): failover_version_increment: builtins.int = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["version_info", b"version_info"] + self, field_name: typing.Literal["version_info", b"version_info"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cluster_id", b"cluster_id", "cluster_name", @@ -5308,6 +5597,7 @@ class GetClusterInfoResponse(google.protobuf.message.Message): global___GetClusterInfoResponse = GetClusterInfoResponse +@typing.final class GetSystemInfoRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5317,9 +5607,11 @@ class GetSystemInfoRequest(google.protobuf.message.Message): global___GetSystemInfoRequest = GetSystemInfoRequest +@typing.final class GetSystemInfoResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Capabilities(google.protobuf.message.Message): """System capability details.""" @@ -5403,7 +5695,7 @@ class GetSystemInfoResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_failure_include_heartbeat", b"activity_failure_include_heartbeat", "build_id_based_versioning", @@ -5440,6 +5732,7 @@ class GetSystemInfoResponse(google.protobuf.message.Message): @property def capabilities(self) -> global___GetSystemInfoResponse.Capabilities: """All capabilities the system supports.""" + def __init__( self, *, @@ -5447,17 +5740,18 @@ class GetSystemInfoResponse(google.protobuf.message.Message): capabilities: global___GetSystemInfoResponse.Capabilities | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["capabilities", b"capabilities"] + self, field_name: typing.Literal["capabilities", b"capabilities"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "capabilities", b"capabilities", "server_version", b"server_version" ], ) -> None: ... global___GetSystemInfoResponse = GetSystemInfoResponse +@typing.final class ListTaskQueuePartitionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5473,17 +5767,18 @@ class ListTaskQueuePartitionsRequest(google.protobuf.message.Message): task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["task_queue", b"task_queue"] + self, field_name: typing.Literal["task_queue", b"task_queue"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "task_queue", b"task_queue" ], ) -> None: ... global___ListTaskQueuePartitionsRequest = ListTaskQueuePartitionsRequest +@typing.final class ListTaskQueuePartitionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5515,7 +5810,7 @@ class ListTaskQueuePartitionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_task_queue_partitions", b"activity_task_queue_partitions", "workflow_task_queue_partitions", @@ -5525,6 +5820,7 @@ class ListTaskQueuePartitionsResponse(google.protobuf.message.Message): global___ListTaskQueuePartitionsResponse = ListTaskQueuePartitionsResponse +@typing.final class CreateScheduleRequest(google.protobuf.message.Message): """(-- api-linter: core::0203::optional=disabled aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) @@ -5544,19 +5840,22 @@ class CreateScheduleRequest(google.protobuf.message.Message): """The namespace the schedule should be created in.""" schedule_id: builtins.str """The id of the new schedule.""" + identity: builtins.str + """The identity of the client who initiated this request.""" + request_id: builtins.str + """A unique identifier for this create request for idempotence. Typically UUIDv4.""" @property def schedule(self) -> temporalio.api.schedule.v1.message_pb2.Schedule: """The schedule spec, policies, action, and initial state.""" + @property def initial_patch(self) -> temporalio.api.schedule.v1.message_pb2.SchedulePatch: """Optional initial patch (e.g. to run the action once immediately).""" - identity: builtins.str - """The identity of the client who initiated this request.""" - request_id: builtins.str - """A unique identifier for this create request for idempotence. Typically UUIDv4.""" + @property def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: """Memo and search attributes to attach to the schedule itself.""" + @property def search_attributes( self, @@ -5577,7 +5876,7 @@ class CreateScheduleRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "initial_patch", b"initial_patch", "memo", @@ -5590,7 +5889,7 @@ class CreateScheduleRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "initial_patch", @@ -5612,6 +5911,7 @@ class CreateScheduleRequest(google.protobuf.message.Message): global___CreateScheduleRequest = CreateScheduleRequest +@typing.final class CreateScheduleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5623,11 +5923,12 @@ class CreateScheduleResponse(google.protobuf.message.Message): conflict_token: builtins.bytes = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["conflict_token", b"conflict_token"] + self, field_name: typing.Literal["conflict_token", b"conflict_token"] ) -> None: ... global___CreateScheduleResponse = CreateScheduleResponse +@typing.final class DescribeScheduleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5645,13 +5946,14 @@ class DescribeScheduleRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "schedule_id", b"schedule_id" ], ) -> None: ... global___DescribeScheduleRequest = DescribeScheduleRequest +@typing.final class DescribeScheduleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5660,6 +5962,11 @@ class DescribeScheduleResponse(google.protobuf.message.Message): MEMO_FIELD_NUMBER: builtins.int SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + conflict_token: builtins.bytes + """This value can be passed back to UpdateSchedule to ensure that the + schedule was not modified between a Describe and an Update, which could + lead to lost updates and other confusion. + """ @property def schedule(self) -> temporalio.api.schedule.v1.message_pb2.Schedule: """The complete current schedule details. This may not match the schedule as @@ -5670,21 +5977,19 @@ class DescribeScheduleResponse(google.protobuf.message.Message): - some fields in the state are modified automatically - the schedule may have been modified by UpdateSchedule or PatchSchedule """ + @property def info(self) -> temporalio.api.schedule.v1.message_pb2.ScheduleInfo: """Extra schedule state info.""" + @property def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: """The memo and search attributes that the schedule was created with.""" + @property def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ... - conflict_token: builtins.bytes - """This value can be passed back to UpdateSchedule to ensure that the - schedule was not modified between a Describe and an Update, which could - lead to lost updates and other confusion. - """ def __init__( self, *, @@ -5697,7 +6002,7 @@ class DescribeScheduleResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "info", b"info", "memo", @@ -5710,7 +6015,7 @@ class DescribeScheduleResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "conflict_token", b"conflict_token", "info", @@ -5726,6 +6031,7 @@ class DescribeScheduleResponse(google.protobuf.message.Message): global___DescribeScheduleResponse = DescribeScheduleResponse +@typing.final class UpdateScheduleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5741,11 +6047,6 @@ class UpdateScheduleRequest(google.protobuf.message.Message): """The namespace of the schedule to update.""" schedule_id: builtins.str """The id of the schedule to update.""" - @property - def schedule(self) -> temporalio.api.schedule.v1.message_pb2.Schedule: - """The new schedule. The four main fields of the schedule (spec, action, - policies, state) are replaced completely by the values in this message. - """ conflict_token: builtins.bytes """This can be the value of conflict_token from a DescribeScheduleResponse, which will cause this request to fail if the schedule has been modified @@ -5756,6 +6057,12 @@ class UpdateScheduleRequest(google.protobuf.message.Message): """The identity of the client who initiated this request.""" request_id: builtins.str """A unique identifier for this update request for idempotence. Typically UUIDv4.""" + @property + def schedule(self) -> temporalio.api.schedule.v1.message_pb2.Schedule: + """The new schedule. The four main fields of the schedule (spec, action, + policies, state) are replaced completely by the values in this message. + """ + @property def search_attributes( self, @@ -5766,12 +6073,14 @@ class UpdateScheduleRequest(google.protobuf.message.Message): Note: you cannot only update the search attributes with `UpdateScheduleRequest`, you must also set the `schedule` field; otherwise, it will unset the schedule. """ + @property def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: """Schedule memo to replace. If set, replaces the entire memo. Do not set this field if you do not want to update the memo. A non-null empty object will clear the memo. """ + def __init__( self, *, @@ -5787,7 +6096,7 @@ class UpdateScheduleRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "memo", b"memo", "schedule", @@ -5798,7 +6107,7 @@ class UpdateScheduleRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "conflict_token", b"conflict_token", "identity", @@ -5820,6 +6129,7 @@ class UpdateScheduleRequest(google.protobuf.message.Message): global___UpdateScheduleRequest = UpdateScheduleRequest +@typing.final class UpdateScheduleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5829,6 +6139,7 @@ class UpdateScheduleResponse(google.protobuf.message.Message): global___UpdateScheduleResponse = UpdateScheduleResponse +@typing.final class PatchScheduleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5841,12 +6152,12 @@ class PatchScheduleRequest(google.protobuf.message.Message): """The namespace of the schedule to patch.""" schedule_id: builtins.str """The id of the schedule to patch.""" - @property - def patch(self) -> temporalio.api.schedule.v1.message_pb2.SchedulePatch: ... identity: builtins.str """The identity of the client who initiated this request.""" request_id: builtins.str """A unique identifier for this update request for idempotence. Typically UUIDv4.""" + @property + def patch(self) -> temporalio.api.schedule.v1.message_pb2.SchedulePatch: ... def __init__( self, *, @@ -5857,11 +6168,11 @@ class PatchScheduleRequest(google.protobuf.message.Message): request_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["patch", b"patch"] + self, field_name: typing.Literal["patch", b"patch"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -5877,6 +6188,7 @@ class PatchScheduleRequest(google.protobuf.message.Message): global___PatchScheduleRequest = PatchScheduleRequest +@typing.final class PatchScheduleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5886,6 +6198,7 @@ class PatchScheduleResponse(google.protobuf.message.Message): global___PatchScheduleResponse = PatchScheduleResponse +@typing.final class ListScheduleMatchingTimesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5900,6 +6213,7 @@ class ListScheduleMatchingTimesRequest(google.protobuf.message.Message): @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time range to query.""" + @property def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... def __init__( @@ -5912,13 +6226,13 @@ class ListScheduleMatchingTimesRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time", b"end_time", "start_time", b"start_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "end_time", b"end_time", "namespace", @@ -5932,6 +6246,7 @@ class ListScheduleMatchingTimesRequest(google.protobuf.message.Message): global___ListScheduleMatchingTimesRequest = ListScheduleMatchingTimesRequest +@typing.final class ListScheduleMatchingTimesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5949,11 +6264,12 @@ class ListScheduleMatchingTimesResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["start_time", b"start_time"] + self, field_name: typing.Literal["start_time", b"start_time"] ) -> None: ... global___ListScheduleMatchingTimesResponse = ListScheduleMatchingTimesResponse +@typing.final class DeleteScheduleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5975,7 +6291,7 @@ class DeleteScheduleRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -5987,6 +6303,7 @@ class DeleteScheduleRequest(google.protobuf.message.Message): global___DeleteScheduleRequest = DeleteScheduleRequest +@typing.final class DeleteScheduleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5996,6 +6313,7 @@ class DeleteScheduleResponse(google.protobuf.message.Message): global___DeleteScheduleResponse = DeleteScheduleResponse +@typing.final class ListSchedulesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -6021,7 +6339,7 @@ class ListSchedulesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "maximum_page_size", b"maximum_page_size", "namespace", @@ -6035,18 +6353,19 @@ class ListSchedulesRequest(google.protobuf.message.Message): global___ListSchedulesRequest = ListSchedulesRequest +@typing.final class ListSchedulesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SCHEDULES_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def schedules( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.schedule.v1.message_pb2.ScheduleListEntry ]: ... - next_page_token: builtins.bytes def __init__( self, *, @@ -6058,13 +6377,14 @@ class ListSchedulesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "schedules", b"schedules" ], ) -> None: ... global___ListSchedulesResponse = ListSchedulesResponse +@typing.final class CountSchedulesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -6080,29 +6400,28 @@ class CountSchedulesRequest(google.protobuf.message.Message): query: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "namespace", b"namespace", "query", b"query" - ], + self, field_name: typing.Literal["namespace", b"namespace", "query", b"query"] ) -> None: ... global___CountSchedulesRequest = CountSchedulesRequest +@typing.final class CountSchedulesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class AggregationGroup(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor GROUP_VALUES_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int + count: builtins.int @property def group_values( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.common.v1.message_pb2.Payload ]: ... - count: builtins.int def __init__( self, *, @@ -6114,7 +6433,7 @@ class CountSchedulesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "count", b"count", "group_values", b"group_values" ], ) -> None: ... @@ -6137,6 +6456,7 @@ class CountSchedulesResponse(google.protobuf.message.Message): """Contains the groups if the request is grouping by a field. The list might not be complete, and the counts of each group is approximate. """ + def __init__( self, *, @@ -6147,17 +6467,18 @@ class CountSchedulesResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["count", b"count", "groups", b"groups"], + self, field_name: typing.Literal["count", b"count", "groups", b"groups"] ) -> None: ... global___CountSchedulesResponse = CountSchedulesResponse +@typing.final class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): """[cleanup-wv-pre-release]""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class AddNewCompatibleVersion(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -6185,7 +6506,7 @@ class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "existing_compatible_build_id", b"existing_compatible_build_id", "make_set_default", @@ -6195,6 +6516,7 @@ class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): ], ) -> None: ... + @typing.final class MergeSets(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -6212,7 +6534,7 @@ class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "primary_set_build_id", b"primary_set_build_id", "secondary_set_build_id", @@ -6241,11 +6563,6 @@ class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: In makes perfect sense here. --) """ - @property - def add_new_compatible_build_id( - self, - ) -> global___UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion: - """Adds a new id to an existing compatible set, see sub-message definition for more.""" promote_set_by_build_id: builtins.str """Promote an existing set to be the current default (if it isn't already) by targeting an existing build id within it. This field's value is the extant build id. @@ -6259,6 +6576,12 @@ class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: Within makes perfect sense here. --) """ + @property + def add_new_compatible_build_id( + self, + ) -> global___UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion: + """Adds a new id to an existing compatible set, see sub-message definition for more.""" + @property def merge_sets(self) -> global___UpdateWorkerBuildIdCompatibilityRequest.MergeSets: """Merge two existing sets together, thus declaring all build IDs in both sets compatible @@ -6267,6 +6590,7 @@ class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): declare as compatible. The unusual case of incomplete replication during failover could also result in a split set, which this operation can repair. """ + def __init__( self, *, @@ -6282,7 +6606,7 @@ class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "add_new_build_id_in_new_default_set", b"add_new_build_id_in_new_default_set", "add_new_compatible_build_id", @@ -6299,7 +6623,7 @@ class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "add_new_build_id_in_new_default_set", b"add_new_build_id_in_new_default_set", "add_new_compatible_build_id", @@ -6319,9 +6643,9 @@ class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["operation", b"operation"] + self, oneof_group: typing.Literal["operation", b"operation"] ) -> ( - typing_extensions.Literal[ + typing.Literal[ "add_new_build_id_in_new_default_set", "add_new_compatible_build_id", "promote_set_by_build_id", @@ -6335,6 +6659,7 @@ global___UpdateWorkerBuildIdCompatibilityRequest = ( UpdateWorkerBuildIdCompatibilityRequest ) +@typing.final class UpdateWorkerBuildIdCompatibilityResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release]""" @@ -6348,6 +6673,7 @@ global___UpdateWorkerBuildIdCompatibilityResponse = ( UpdateWorkerBuildIdCompatibilityResponse ) +@typing.final class GetWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): """[cleanup-wv-pre-release]""" @@ -6372,7 +6698,7 @@ class GetWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "max_sets", b"max_sets", "namespace", @@ -6384,6 +6710,7 @@ class GetWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): global___GetWorkerBuildIdCompatibilityRequest = GetWorkerBuildIdCompatibilityRequest +@typing.final class GetWorkerBuildIdCompatibilityResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release]""" @@ -6402,6 +6729,7 @@ class GetWorkerBuildIdCompatibilityResponse(google.protobuf.message.Message): There may be fewer sets returned than exist, if the request chose to limit this response. """ + def __init__( self, *, @@ -6411,14 +6739,12 @@ class GetWorkerBuildIdCompatibilityResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "major_version_sets", b"major_version_sets" - ], + self, field_name: typing.Literal["major_version_sets", b"major_version_sets"] ) -> None: ... global___GetWorkerBuildIdCompatibilityResponse = GetWorkerBuildIdCompatibilityResponse +@typing.final class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): """(-- api-linter: core::0134::request-mask-required=disabled aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --) @@ -6429,6 +6755,7 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class InsertBuildIdAssignmentRule(google.protobuf.message.Message): """Inserts the rule to the list of assignment rules for this Task Queue. The rules are evaluated in order, starting from index 0. The first @@ -6457,15 +6784,14 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["rule", b"rule"] + self, field_name: typing.Literal["rule", b"rule"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "rule", b"rule", "rule_index", b"rule_index" - ], + field_name: typing.Literal["rule", b"rule", "rule_index", b"rule_index"], ) -> None: ... + @typing.final class ReplaceBuildIdAssignmentRule(google.protobuf.message.Message): """Replaces the assignment rule at a given index.""" @@ -6475,10 +6801,6 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): RULE_FIELD_NUMBER: builtins.int FORCE_FIELD_NUMBER: builtins.int rule_index: builtins.int - @property - def rule( - self, - ) -> temporalio.api.taskqueue.v1.message_pb2.BuildIdAssignmentRule: ... force: builtins.bool """By default presence of one unconditional rule is enforced, otherwise the replace operation will be rejected. Set `force` to true to @@ -6486,6 +6808,10 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): - Has no hint filter - Has no ramp """ + @property + def rule( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.BuildIdAssignmentRule: ... def __init__( self, *, @@ -6495,15 +6821,16 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): force: builtins.bool = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["rule", b"rule"] + self, field_name: typing.Literal["rule", b"rule"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "force", b"force", "rule", b"rule", "rule_index", b"rule_index" ], ) -> None: ... + @typing.final class DeleteBuildIdAssignmentRule(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -6525,11 +6852,10 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "force", b"force", "rule_index", b"rule_index" - ], + field_name: typing.Literal["force", b"force", "rule_index", b"rule_index"], ) -> None: ... + @typing.final class AddCompatibleBuildIdRedirectRule(google.protobuf.message.Message): """Adds the rule to the list of redirect rules for this Task Queue. There can be at most one redirect rule for each distinct Source Build ID. @@ -6549,12 +6875,11 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["rule", b"rule"] + self, field_name: typing.Literal["rule", b"rule"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["rule", b"rule"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["rule", b"rule"]) -> None: ... + @typing.final class ReplaceCompatibleBuildIdRedirectRule(google.protobuf.message.Message): """Replaces the routing rule with the given source Build ID.""" @@ -6572,12 +6897,11 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["rule", b"rule"] + self, field_name: typing.Literal["rule", b"rule"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["rule", b"rule"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["rule", b"rule"]) -> None: ... + @typing.final class DeleteCompatibleBuildIdRedirectRule(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -6589,12 +6913,10 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): source_build_id: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "source_build_id", b"source_build_id" - ], + self, field_name: typing.Literal["source_build_id", b"source_build_id"] ) -> None: ... + @typing.final class CommitBuildId(google.protobuf.message.Message): """This command is intended to be used to complete the rollout of a Build ID and cleanup unnecessary rules possibly created during a gradual @@ -6625,7 +6947,7 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "force", b"force", "target_build_id", b"target_build_id" ], ) -> None: ... @@ -6706,7 +7028,7 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "add_compatible_redirect_rule", b"add_compatible_redirect_rule", "commit_build_id", @@ -6727,7 +7049,7 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "add_compatible_redirect_rule", b"add_compatible_redirect_rule", "commit_build_id", @@ -6753,9 +7075,9 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["operation", b"operation"] + self, oneof_group: typing.Literal["operation", b"operation"] ) -> ( - typing_extensions.Literal[ + typing.Literal[ "insert_assignment_rule", "replace_assignment_rule", "delete_assignment_rule", @@ -6769,6 +7091,7 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): global___UpdateWorkerVersioningRulesRequest = UpdateWorkerVersioningRulesRequest +@typing.final class UpdateWorkerVersioningRulesResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release]""" @@ -6777,6 +7100,11 @@ class UpdateWorkerVersioningRulesResponse(google.protobuf.message.Message): ASSIGNMENT_RULES_FIELD_NUMBER: builtins.int COMPATIBLE_REDIRECT_RULES_FIELD_NUMBER: builtins.int CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + conflict_token: builtins.bytes + """This value can be passed back to UpdateWorkerVersioningRulesRequest to + ensure that the rules were not modified between the two updates, which + could lead to lost updates and other confusion. + """ @property def assignment_rules( self, @@ -6789,11 +7117,6 @@ class UpdateWorkerVersioningRulesResponse(google.protobuf.message.Message): ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.taskqueue.v1.message_pb2.TimestampedCompatibleBuildIdRedirectRule ]: ... - conflict_token: builtins.bytes - """This value can be passed back to UpdateWorkerVersioningRulesRequest to - ensure that the rules were not modified between the two updates, which - could lead to lost updates and other confusion. - """ def __init__( self, *, @@ -6809,7 +7132,7 @@ class UpdateWorkerVersioningRulesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "assignment_rules", b"assignment_rules", "compatible_redirect_rules", @@ -6821,6 +7144,7 @@ class UpdateWorkerVersioningRulesResponse(google.protobuf.message.Message): global___UpdateWorkerVersioningRulesResponse = UpdateWorkerVersioningRulesResponse +@typing.final class GetWorkerVersioningRulesRequest(google.protobuf.message.Message): """[cleanup-wv-pre-release]""" @@ -6838,13 +7162,14 @@ class GetWorkerVersioningRulesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "task_queue", b"task_queue" ], ) -> None: ... global___GetWorkerVersioningRulesRequest = GetWorkerVersioningRulesRequest +@typing.final class GetWorkerVersioningRulesResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release]""" @@ -6853,6 +7178,11 @@ class GetWorkerVersioningRulesResponse(google.protobuf.message.Message): ASSIGNMENT_RULES_FIELD_NUMBER: builtins.int COMPATIBLE_REDIRECT_RULES_FIELD_NUMBER: builtins.int CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + conflict_token: builtins.bytes + """This value can be passed back to UpdateWorkerVersioningRulesRequest to + ensure that the rules were not modified between this List and the Update, + which could lead to lost updates and other confusion. + """ @property def assignment_rules( self, @@ -6865,11 +7195,6 @@ class GetWorkerVersioningRulesResponse(google.protobuf.message.Message): ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.taskqueue.v1.message_pb2.TimestampedCompatibleBuildIdRedirectRule ]: ... - conflict_token: builtins.bytes - """This value can be passed back to UpdateWorkerVersioningRulesRequest to - ensure that the rules were not modified between this List and the Update, - which could lead to lost updates and other confusion. - """ def __init__( self, *, @@ -6885,7 +7210,7 @@ class GetWorkerVersioningRulesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "assignment_rules", b"assignment_rules", "compatible_redirect_rules", @@ -6897,6 +7222,7 @@ class GetWorkerVersioningRulesResponse(google.protobuf.message.Message): global___GetWorkerVersioningRulesResponse = GetWorkerVersioningRulesResponse +@typing.final class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): """[cleanup-wv-pre-release] Deprecated. Use `DescribeTaskQueue`. @@ -6909,6 +7235,14 @@ class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): TASK_QUEUES_FIELD_NUMBER: builtins.int REACHABILITY_FIELD_NUMBER: builtins.int namespace: builtins.str + reachability: temporalio.api.enums.v1.task_queue_pb2.TaskReachability.ValueType + """Type of reachability to query for. + `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response. + Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows. + Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left + unspecified. + See the TaskReachability docstring for information about each enum variant. + """ @property def build_ids( self, @@ -6918,6 +7252,7 @@ class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): Open source users can adjust this limit by setting the server's dynamic config value for `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store. """ + @property def task_queues( self, @@ -6928,14 +7263,7 @@ class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): The number of task queues that the server will fetch reachability information for is limited. See the `GetWorkerTaskReachabilityResponse` documentation for more information. """ - reachability: temporalio.api.enums.v1.task_queue_pb2.TaskReachability.ValueType - """Type of reachability to query for. - `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response. - Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows. - Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left - unspecified. - See the TaskReachability docstring for information about each enum variant. - """ + def __init__( self, *, @@ -6946,7 +7274,7 @@ class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_ids", b"build_ids", "namespace", @@ -6960,6 +7288,7 @@ class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): global___GetWorkerTaskReachabilityRequest = GetWorkerTaskReachabilityRequest +@typing.final class GetWorkerTaskReachabilityResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release] Deprecated. Use `DescribeTaskQueue`. @@ -6984,6 +7313,7 @@ class GetWorkerTaskReachabilityResponse(google.protobuf.message.Message): Open source users can adjust this limit by setting the server's dynamic config value for `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. """ + def __init__( self, *, @@ -6994,13 +7324,12 @@ class GetWorkerTaskReachabilityResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "build_id_reachability", b"build_id_reachability" - ], + field_name: typing.Literal["build_id_reachability", b"build_id_reachability"], ) -> None: ... global___GetWorkerTaskReachabilityResponse = GetWorkerTaskReachabilityResponse +@typing.final class UpdateWorkflowExecutionRequest(google.protobuf.message.Message): """(-- api-linter: core::0134=disabled aip.dev/not-precedent: Update RPCs don't follow Google API format. --) @@ -7015,6 +7344,11 @@ class UpdateWorkflowExecutionRequest(google.protobuf.message.Message): REQUEST_FIELD_NUMBER: builtins.int namespace: builtins.str """The namespace name of the target Workflow.""" + first_execution_run_id: builtins.str + """If set, this call will error if the most recent (if no Run Id is set on + `workflow_execution`), or specified (if it is) Workflow Execution is not + part of the same execution chain as this Id. + """ @property def workflow_execution( self, @@ -7023,11 +7357,7 @@ class UpdateWorkflowExecutionRequest(google.protobuf.message.Message): (-- api-linter: core::0203::optional=disabled aip.dev/not-precedent: false positive triggered by the word "optional" --) """ - first_execution_run_id: builtins.str - """If set, this call will error if the most recent (if no Run Id is set on - `workflow_execution`), or specified (if it is) Workflow Execution is not - part of the same execution chain as this Id. - """ + @property def wait_policy(self) -> temporalio.api.update.v1.message_pb2.WaitPolicy: """Specifies client's intent to wait for Update results. @@ -7036,11 +7366,13 @@ class UpdateWorkflowExecutionRequest(google.protobuf.message.Message): user specified timeout, API call returns even if specified stage is not reached. Actual reached stage will be included in the response. """ + @property def request(self) -> temporalio.api.update.v1.message_pb2.Request: """The request information that will be delivered all the way down to the Workflow Execution. """ + def __init__( self, *, @@ -7053,7 +7385,7 @@ class UpdateWorkflowExecutionRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "request", b"request", "wait_policy", @@ -7064,7 +7396,7 @@ class UpdateWorkflowExecutionRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "first_execution_run_id", b"first_execution_run_id", "namespace", @@ -7080,6 +7412,7 @@ class UpdateWorkflowExecutionRequest(google.protobuf.message.Message): global___UpdateWorkflowExecutionRequest = UpdateWorkflowExecutionRequest +@typing.final class UpdateWorkflowExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7087,15 +7420,7 @@ class UpdateWorkflowExecutionResponse(google.protobuf.message.Message): OUTCOME_FIELD_NUMBER: builtins.int STAGE_FIELD_NUMBER: builtins.int LINK_FIELD_NUMBER: builtins.int - @property - def update_ref(self) -> temporalio.api.update.v1.message_pb2.UpdateRef: - """Enough information for subsequent poll calls if needed. Never null.""" - @property - def outcome(self) -> temporalio.api.update.v1.message_pb2.Outcome: - """The outcome of the Update if and only if the Workflow Update - has completed. If this response is being returned before the Update has - completed then this field will not be set. - """ + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int stage: temporalio.api.enums.v1.update_pb2.UpdateWorkflowExecutionLifecycleStage.ValueType """The most advanced lifecycle stage that the Update is known to have reached, where lifecycle stages are ordered @@ -7108,9 +7433,27 @@ class UpdateWorkflowExecutionResponse(google.protobuf.message.Message): request WaitPolicy, and before the context deadline expired; clients may may then retry the call as needed. """ + @property + def update_ref(self) -> temporalio.api.update.v1.message_pb2.UpdateRef: + """Enough information for subsequent poll calls if needed. Never null.""" + + @property + def outcome(self) -> temporalio.api.update.v1.message_pb2.Outcome: + """The outcome of the Update if and only if the Workflow Update + has completed. If this response is being returned before the Update has + completed then this field will not be set. + """ + @property def link(self) -> temporalio.api.common.v1.message_pb2.Link: """Link to the update event. May be null if the update has not yet been accepted.""" + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this update.""" + def __init__( self, *, @@ -7118,20 +7461,31 @@ class UpdateWorkflowExecutionResponse(google.protobuf.message.Message): outcome: temporalio.api.update.v1.message_pb2.Outcome | None = ..., stage: temporalio.api.enums.v1.update_pb2.UpdateWorkflowExecutionLifecycleStage.ValueType = ..., link: temporalio.api.common.v1.message_pb2.Link | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "link", b"link", "outcome", b"outcome", "update_ref", b"update_ref" + field_name: typing.Literal[ + "link", + b"link", + "outcome", + b"outcome", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + "update_ref", + b"update_ref", ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "link", b"link", "outcome", b"outcome", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "stage", b"stage", "update_ref", @@ -7141,6 +7495,7 @@ class UpdateWorkflowExecutionResponse(google.protobuf.message.Message): global___UpdateWorkflowExecutionResponse = UpdateWorkflowExecutionResponse +@typing.final class StartBatchOperationRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7173,6 +7528,14 @@ class StartBatchOperationRequest(google.protobuf.message.Message): """Job ID defines the unique ID for the batch job""" reason: builtins.str """Reason to perform the batch operation""" + max_operations_per_second: builtins.float + """Limit for the number of operations processed per second within this batch. + Its purpose is to reduce the stress on the system caused by batch operations, which helps to prevent system + overload and minimize potential delays in executing ongoing tasks for user workers. + Note that when no explicit limit is provided, the server will operate according to its limit defined by the + dynamic configuration key `worker.batcherRPS`. This also applies if the value in this field exceeds the + server's configured limit. + """ @property def executions( self, @@ -7183,6 +7546,7 @@ class StartBatchOperationRequest(google.protobuf.message.Message): This field and `visibility_query` are mutually exclusive DEPRECATED: Use `target_executions` instead. """ + @property def target_executions( self, @@ -7192,14 +7556,7 @@ class StartBatchOperationRequest(google.protobuf.message.Message): """Target executions to apply the batch operation. This field and `visibility_query` are mutually exclusive. """ - max_operations_per_second: builtins.float - """Limit for the number of operations processed per second within this batch. - Its purpose is to reduce the stress on the system caused by batch operations, which helps to prevent system - overload and minimize potential delays in executing ongoing tasks for user workers. - Note that when no explicit limit is provided, the server will operate according to its limit defined by the - dynamic configuration key `worker.batcherRPS`. This also applies if the value in this field exceeds the - server's configured limit. - """ + @property def termination_operation( self, @@ -7293,7 +7650,7 @@ class StartBatchOperationRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_activities_operation", b"cancel_activities_operation", "cancellation_operation", @@ -7324,7 +7681,7 @@ class StartBatchOperationRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_activities_operation", b"cancel_activities_operation", "cancellation_operation", @@ -7368,9 +7725,9 @@ class StartBatchOperationRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["operation", b"operation"] + self, oneof_group: typing.Literal["operation", b"operation"] ) -> ( - typing_extensions.Literal[ + typing.Literal[ "termination_operation", "signal_operation", "cancellation_operation", @@ -7389,6 +7746,7 @@ class StartBatchOperationRequest(google.protobuf.message.Message): global___StartBatchOperationRequest = StartBatchOperationRequest +@typing.final class StartBatchOperationResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7398,6 +7756,7 @@ class StartBatchOperationResponse(google.protobuf.message.Message): global___StartBatchOperationResponse = StartBatchOperationResponse +@typing.final class StopBatchOperationRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7423,7 +7782,7 @@ class StopBatchOperationRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "job_id", @@ -7437,6 +7796,7 @@ class StopBatchOperationRequest(google.protobuf.message.Message): global___StopBatchOperationRequest = StopBatchOperationRequest +@typing.final class StopBatchOperationResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7446,6 +7806,7 @@ class StopBatchOperationResponse(google.protobuf.message.Message): global___StopBatchOperationResponse = StopBatchOperationResponse +@typing.final class DescribeBatchOperationRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7462,14 +7823,12 @@ class DescribeBatchOperationRequest(google.protobuf.message.Message): job_id: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "job_id", b"job_id", "namespace", b"namespace" - ], + self, field_name: typing.Literal["job_id", b"job_id", "namespace", b"namespace"] ) -> None: ... global___DescribeBatchOperationRequest = DescribeBatchOperationRequest +@typing.final class DescribeBatchOperationResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7493,12 +7852,6 @@ class DescribeBatchOperationResponse(google.protobuf.message.Message): """Batch job ID""" state: temporalio.api.enums.v1.batch_operation_pb2.BatchOperationState.ValueType """Batch operation state""" - @property - def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Batch operation start time""" - @property - def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Batch operation close time""" total_operation_count: builtins.int """Total operation count""" complete_operation_count: builtins.int @@ -7511,6 +7864,14 @@ class DescribeBatchOperationResponse(google.protobuf.message.Message): """Reason indicates the reason to stop a operation""" query: builtins.str """Query is the visibility query that defines the group of workflow to apply the batch operation""" + @property + def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Batch operation start time""" + + @property + def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Batch operation close time""" + @property def executions( self, @@ -7518,6 +7879,7 @@ class DescribeBatchOperationResponse(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Execution ]: """Executions is the list of workflow OR standalone activity executions to apply the batch operation""" + def __init__( self, *, @@ -7539,13 +7901,13 @@ class DescribeBatchOperationResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "close_time", b"close_time", "start_time", b"start_time" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "close_time", b"close_time", "complete_operation_count", @@ -7575,6 +7937,7 @@ class DescribeBatchOperationResponse(google.protobuf.message.Message): global___DescribeBatchOperationResponse = DescribeBatchOperationResponse +@typing.final class ListBatchOperationsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7596,7 +7959,7 @@ class ListBatchOperationsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "next_page_token", @@ -7608,11 +7971,13 @@ class ListBatchOperationsRequest(google.protobuf.message.Message): global___ListBatchOperationsRequest = ListBatchOperationsRequest +@typing.final class ListBatchOperationsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor OPERATION_INFO_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def operation_info( self, @@ -7620,7 +7985,7 @@ class ListBatchOperationsResponse(google.protobuf.message.Message): temporalio.api.batch.v1.message_pb2.BatchOperationInfo ]: """BatchOperationInfo contains the basic info about batch operation""" - next_page_token: builtins.bytes + def __init__( self, *, @@ -7632,13 +7997,14 @@ class ListBatchOperationsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "operation_info", b"operation_info" ], ) -> None: ... global___ListBatchOperationsResponse = ListBatchOperationsResponse +@typing.final class PollWorkflowExecutionUpdateRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7650,16 +8016,18 @@ class PollWorkflowExecutionUpdateRequest(google.protobuf.message.Message): """The namespace of the Workflow Execution to which the Update was originally issued. """ + identity: builtins.str + """The identity of the worker/client who is polling this Update outcome.""" @property def update_ref(self) -> temporalio.api.update.v1.message_pb2.UpdateRef: """The Update reference returned in the initial UpdateWorkflowExecutionResponse.""" - identity: builtins.str - """The identity of the worker/client who is polling this Update outcome.""" + @property def wait_policy(self) -> temporalio.api.update.v1.message_pb2.WaitPolicy: """Specifies client's intent to wait for Update results. Omit to request a non-blocking poll. """ + def __init__( self, *, @@ -7670,13 +8038,13 @@ class PollWorkflowExecutionUpdateRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_ref", b"update_ref", "wait_policy", b"wait_policy" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -7690,20 +8058,14 @@ class PollWorkflowExecutionUpdateRequest(google.protobuf.message.Message): global___PollWorkflowExecutionUpdateRequest = PollWorkflowExecutionUpdateRequest +@typing.final class PollWorkflowExecutionUpdateResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor OUTCOME_FIELD_NUMBER: builtins.int STAGE_FIELD_NUMBER: builtins.int UPDATE_REF_FIELD_NUMBER: builtins.int - @property - def outcome(self) -> temporalio.api.update.v1.message_pb2.Outcome: - """The outcome of the update if and only if the update has completed. If - this response is being returned before the update has completed (e.g. due - to the specification of a wait policy that only waits on - UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will - not be set. - """ + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int stage: temporalio.api.enums.v1.update_pb2.UpdateWorkflowExecutionLifecycleStage.ValueType """The most advanced lifecycle stage that the Update is known to have reached, where lifecycle stages are ordered @@ -7716,31 +8078,62 @@ class PollWorkflowExecutionUpdateResponse(google.protobuf.message.Message): request WaitPolicy, and before the context deadline expired; clients may may then retry the call as needed. """ + @property + def outcome(self) -> temporalio.api.update.v1.message_pb2.Outcome: + """The outcome of the update if and only if the update has completed. If + this response is being returned before the update has completed (e.g. due + to the specification of a wait policy that only waits on + UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will + not be set. + """ + @property def update_ref(self) -> temporalio.api.update.v1.message_pb2.UpdateRef: """Sufficient information to address this Update.""" + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this update.""" + def __init__( self, *, outcome: temporalio.api.update.v1.message_pb2.Outcome | None = ..., stage: temporalio.api.enums.v1.update_pb2.UpdateWorkflowExecutionLifecycleStage.ValueType = ..., update_ref: temporalio.api.update.v1.message_pb2.UpdateRef | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "outcome", b"outcome", "update_ref", b"update_ref" + field_name: typing.Literal[ + "outcome", + b"outcome", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + "update_ref", + b"update_ref", ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "outcome", b"outcome", "stage", b"stage", "update_ref", b"update_ref" + field_name: typing.Literal[ + "outcome", + b"outcome", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + "stage", + b"stage", + "update_ref", + b"update_ref", ], ) -> None: ... global___PollWorkflowExecutionUpdateResponse = PollWorkflowExecutionUpdateResponse +@typing.final class PollNexusTaskQueueRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7752,9 +8145,8 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int WORKER_HEARTBEAT_FIELD_NUMBER: builtins.int + POLLER_POOL_INFO_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... poller_group_id: builtins.str """Unless this is the first poll, the client must pass one of the poller group IDs received in `poller_group_infos` of the last the PollNexusTaskQueueResponse according to the @@ -7768,6 +8160,8 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): This is guaranteed to be unique, whereas identity is not guaranteed to be unique. """ @property + def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... + @property def worker_version_capabilities( self, ) -> temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities: @@ -7775,11 +8169,13 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): feature. See the `WorkerVersionCapabilities` docstring for more. Deprecated. Replaced by deployment_options. """ + @property def deployment_options( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" + @property def worker_heartbeat( self, @@ -7787,6 +8183,13 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): temporalio.api.worker.v1.message_pb2.WorkerHeartbeat ]: """Worker info to be sent to the server.""" + + @property + def poller_pool_info( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo: + """Worker-reported poller pool state. Optional.""" + def __init__( self, *, @@ -7803,12 +8206,16 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): temporalio.api.worker.v1.message_pb2.WorkerHeartbeat ] | None = ..., + poller_pool_info: temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_options", b"deployment_options", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "worker_version_capabilities", @@ -7817,7 +8224,7 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_options", b"deployment_options", "identity", @@ -7826,6 +8233,8 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): b"namespace", "poller_group_id", b"poller_group_id", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "worker_heartbeat", @@ -7839,6 +8248,7 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): global___PollNexusTaskQueueRequest = PollNexusTaskQueueRequest +@typing.final class PollNexusTaskQueueResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7850,20 +8260,22 @@ class PollNexusTaskQueueResponse(google.protobuf.message.Message): POLLER_GROUPS_INFO_FIELD_NUMBER: builtins.int task_token: builtins.bytes """An opaque unique identifier for this task for correlating a completion request the embedded request.""" + poller_group_id: builtins.str + """This poller group ID identifies the owner of the nexus task awaiting for synchronous + response. + Corresponding `RespondNexusTaskCompleted` and `RespondNexusTaskFailed` calls should pass this + value for proper response routing. + """ @property def request(self) -> temporalio.api.nexus.v1.message_pb2.Request: """Embedded request as translated from the incoming frontend request.""" + @property def poller_scaling_decision( self, ) -> temporalio.api.taskqueue.v1.message_pb2.PollerScalingDecision: """Server-advised information the SDK may use to adjust its poller count.""" - poller_group_id: builtins.str - """This poller group ID identifies the owner of the nexus task awaiting for synchronous - response. - Corresponding `RespondNexusTaskCompleted` and `RespondNexusTaskFailed` calls should pass this - value for proper response routing. - """ + @property def poller_group_infos( self, @@ -7877,6 +8289,7 @@ class PollNexusTaskQueueResponse(google.protobuf.message.Message): 3. If every group has some pending polls, assign the next poll to a group randomly according to the weights. """ + @property def poller_groups_info( self, @@ -7889,6 +8302,7 @@ class PollNexusTaskQueueResponse(google.protobuf.message.Message): 3. If every group has some pending polls, assign the next poll to a group randomly according to the weights. """ + def __init__( self, *, @@ -7906,7 +8320,7 @@ class PollNexusTaskQueueResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "poller_groups_info", b"poller_groups_info", "poller_scaling_decision", @@ -7917,7 +8331,7 @@ class PollNexusTaskQueueResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "poller_group_id", b"poller_group_id", "poller_group_infos", @@ -7935,6 +8349,7 @@ class PollNexusTaskQueueResponse(google.protobuf.message.Message): global___PollNexusTaskQueueResponse = PollNexusTaskQueueResponse +@typing.final class RespondNexusTaskCompletedRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7948,13 +8363,14 @@ class RespondNexusTaskCompletedRequest(google.protobuf.message.Message): """The identity of the client who initiated this request.""" task_token: builtins.bytes """A unique identifier for this task as received via a poll response.""" - @property - def response(self) -> temporalio.api.nexus.v1.message_pb2.Response: - """Embedded response to be translated into a frontend response.""" poller_group_id: builtins.str """Client must forward the poller_group_id received in PollNexusTaskQueueResponse for proper routing of the response. """ + @property + def response(self) -> temporalio.api.nexus.v1.message_pb2.Response: + """Embedded response to be translated into a frontend response.""" + def __init__( self, *, @@ -7965,11 +8381,11 @@ class RespondNexusTaskCompletedRequest(google.protobuf.message.Message): poller_group_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["response", b"response"] + self, field_name: typing.Literal["response", b"response"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -7985,6 +8401,7 @@ class RespondNexusTaskCompletedRequest(google.protobuf.message.Message): global___RespondNexusTaskCompletedRequest = RespondNexusTaskCompletedRequest +@typing.final class RespondNexusTaskCompletedResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -7994,6 +8411,7 @@ class RespondNexusTaskCompletedResponse(google.protobuf.message.Message): global___RespondNexusTaskCompletedResponse = RespondNexusTaskCompletedResponse +@typing.final class RespondNexusTaskFailedRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8008,16 +8426,18 @@ class RespondNexusTaskFailedRequest(google.protobuf.message.Message): """The identity of the client who initiated this request.""" task_token: builtins.bytes """A unique identifier for this task.""" + poller_group_id: builtins.str + """Client must forward the poller_group_id received in PollNexusTaskQueueResponse for proper + routing of the response. + """ @property def error(self) -> temporalio.api.nexus.v1.message_pb2.HandlerError: """Deprecated. Use the failure field instead.""" + @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The error the handler failed with. Must contain a NexusHandlerFailureInfo object.""" - poller_group_id: builtins.str - """Client must forward the poller_group_id received in PollNexusTaskQueueResponse for proper - routing of the response. - """ + def __init__( self, *, @@ -8029,12 +8449,11 @@ class RespondNexusTaskFailedRequest(google.protobuf.message.Message): poller_group_id: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["error", b"error", "failure", b"failure"], + self, field_name: typing.Literal["error", b"error", "failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "error", b"error", "failure", @@ -8052,6 +8471,7 @@ class RespondNexusTaskFailedRequest(google.protobuf.message.Message): global___RespondNexusTaskFailedRequest = RespondNexusTaskFailedRequest +@typing.final class RespondNexusTaskFailedResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8061,9 +8481,11 @@ class RespondNexusTaskFailedResponse(google.protobuf.message.Message): global___RespondNexusTaskFailedResponse = RespondNexusTaskFailedResponse +@typing.final class ExecuteMultiOperationRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Operation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8076,12 +8498,14 @@ class ExecuteMultiOperationRequest(google.protobuf.message.Message): - setting `request_eager_execution` is invalid - setting `workflow_start_delay` is invalid """ + @property def update_workflow(self) -> global___UpdateWorkflowExecutionRequest: """Additional restrictions: - setting `first_execution_run_id` is invalid - setting `workflow_execution.run_id` is invalid """ + def __init__( self, *, @@ -8090,7 +8514,7 @@ class ExecuteMultiOperationRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "operation", b"operation", "start_workflow", @@ -8101,7 +8525,7 @@ class ExecuteMultiOperationRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "operation", b"operation", "start_workflow", @@ -8111,13 +8535,15 @@ class ExecuteMultiOperationRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["operation", b"operation"] - ) -> typing_extensions.Literal["start_workflow", "update_workflow"] | None: ... + self, oneof_group: typing.Literal["operation", b"operation"] + ) -> typing.Literal["start_workflow", "update_workflow"] | None: ... NAMESPACE_FIELD_NUMBER: builtins.int OPERATIONS_FIELD_NUMBER: builtins.int RESOURCE_ID_FIELD_NUMBER: builtins.int namespace: builtins.str + resource_id: builtins.str + """Resource ID for routing. Should match operations[0].start_workflow.workflow_id""" @property def operations( self, @@ -8133,8 +8559,7 @@ class ExecuteMultiOperationRequest(google.protobuf.message.Message): Note that additional operation-specific restrictions have to be considered. """ - resource_id: builtins.str - """Resource ID for routing. Should match operations[0].start_workflow.workflow_id""" + def __init__( self, *, @@ -8147,7 +8572,7 @@ class ExecuteMultiOperationRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "operations", @@ -8159,6 +8584,7 @@ class ExecuteMultiOperationRequest(google.protobuf.message.Message): global___ExecuteMultiOperationRequest = ExecuteMultiOperationRequest +@typing.final class ExecuteMultiOperationResponse(google.protobuf.message.Message): """IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination ("Update-with-Start") when both 1. the workflow update for the requested update ID has already completed, and @@ -8170,6 +8596,7 @@ class ExecuteMultiOperationResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Response(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8187,7 +8614,7 @@ class ExecuteMultiOperationResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "response", b"response", "start_workflow", @@ -8198,7 +8625,7 @@ class ExecuteMultiOperationResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "response", b"response", "start_workflow", @@ -8208,8 +8635,8 @@ class ExecuteMultiOperationResponse(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["response", b"response"] - ) -> typing_extensions.Literal["start_workflow", "update_workflow"] | None: ... + self, oneof_group: typing.Literal["response", b"response"] + ) -> typing.Literal["start_workflow", "update_workflow"] | None: ... RESPONSES_FIELD_NUMBER: builtins.int @property @@ -8227,11 +8654,12 @@ class ExecuteMultiOperationResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["responses", b"responses"] + self, field_name: typing.Literal["responses", b"responses"] ) -> None: ... global___ExecuteMultiOperationResponse = ExecuteMultiOperationResponse +@typing.final class UpdateActivityOptionsRequest(google.protobuf.message.Message): """NOTE: keep in sync with temporalio.api.batch.v1.BatchOperationUpdateActivityOptions Deprecated. Use `UpdateActivityExecutionOptionsRequest`. @@ -8245,24 +8673,13 @@ class UpdateActivityOptionsRequest(google.protobuf.message.Message): ACTIVITY_OPTIONS_FIELD_NUMBER: builtins.int UPDATE_MASK_FIELD_NUMBER: builtins.int ID_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - MATCH_ALL_FIELD_NUMBER: builtins.int - RESTORE_ORIGINAL_FIELD_NUMBER: builtins.int - namespace: builtins.str - """Namespace of the workflow which scheduled this activity""" - @property - def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: - """Execution info of the workflow which scheduled this activity""" - identity: builtins.str - """The identity of the client who initiated this request""" - @property - def activity_options( - self, - ) -> temporalio.api.activity.v1.message_pb2.ActivityOptions: - """Activity options. Partial updates are accepted and controlled by update_mask""" - @property - def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: - """Controls which fields from `activity_options` will be applied""" + TYPE_FIELD_NUMBER: builtins.int + MATCH_ALL_FIELD_NUMBER: builtins.int + RESTORE_ORIGINAL_FIELD_NUMBER: builtins.int + namespace: builtins.str + """Namespace of the workflow which scheduled this activity""" + identity: builtins.str + """The identity of the client who initiated this request""" id: builtins.str """Only activity with this ID will be updated.""" type: builtins.str @@ -8276,6 +8693,20 @@ class UpdateActivityOptionsRequest(google.protobuf.message.Message): This flag cannot be combined with any other option; if you supply restore_original together with other options, the request will be rejected. """ + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Execution info of the workflow which scheduled this activity""" + + @property + def activity_options( + self, + ) -> temporalio.api.activity.v1.message_pb2.ActivityOptions: + """Activity options. Partial updates are accepted and controlled by update_mask""" + + @property + def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: + """Controls which fields from `activity_options` will be applied""" + def __init__( self, *, @@ -8292,7 +8723,7 @@ class UpdateActivityOptionsRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "activity_options", @@ -8311,7 +8742,7 @@ class UpdateActivityOptionsRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "activity_options", @@ -8335,11 +8766,12 @@ class UpdateActivityOptionsRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["activity", b"activity"] - ) -> typing_extensions.Literal["id", "type", "match_all"] | None: ... + self, oneof_group: typing.Literal["activity", b"activity"] + ) -> typing.Literal["id", "type", "match_all"] | None: ... global___UpdateActivityOptionsRequest = UpdateActivityOptionsRequest +@typing.final class UpdateActivityExecutionOptionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8365,14 +8797,6 @@ class UpdateActivityExecutionOptionsRequest(google.protobuf.message.Message): """Run ID of the workflow or standalone activity. If empty, targets the latest run.""" identity: builtins.str """The identity of the client who initiated this request""" - @property - def activity_options( - self, - ) -> temporalio.api.activity.v1.message_pb2.ActivityOptions: - """Activity options. Partial updates are accepted and controlled by update_mask""" - @property - def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: - """Controls which fields from `activity_options` will be applied""" restore_original: builtins.bool """If set, the activity options will be restored to the default. Default options are then options activity was created with. @@ -8384,6 +8808,16 @@ class UpdateActivityExecutionOptionsRequest(google.protobuf.message.Message): """Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.""" request_id: builtins.str """Used to de-dupe update requests.""" + @property + def activity_options( + self, + ) -> temporalio.api.activity.v1.message_pb2.ActivityOptions: + """Activity options. Partial updates are accepted and controlled by update_mask""" + + @property + def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: + """Controls which fields from `activity_options` will be applied""" + def __init__( self, *, @@ -8401,13 +8835,13 @@ class UpdateActivityExecutionOptionsRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_options", b"activity_options", "update_mask", b"update_mask" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_options", @@ -8433,6 +8867,7 @@ class UpdateActivityExecutionOptionsRequest(google.protobuf.message.Message): global___UpdateActivityExecutionOptionsRequest = UpdateActivityExecutionOptionsRequest +@typing.final class UpdateActivityOptionsResponse(google.protobuf.message.Message): """Deprecated. Use `UpdateActivityExecutionOptionsResponse`.""" @@ -8444,6 +8879,7 @@ class UpdateActivityOptionsResponse(google.protobuf.message.Message): self, ) -> temporalio.api.activity.v1.message_pb2.ActivityOptions: """Activity options after an update""" + def __init__( self, *, @@ -8451,16 +8887,15 @@ class UpdateActivityOptionsResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["activity_options", b"activity_options"], + self, field_name: typing.Literal["activity_options", b"activity_options"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["activity_options", b"activity_options"], + self, field_name: typing.Literal["activity_options", b"activity_options"] ) -> None: ... global___UpdateActivityOptionsResponse = UpdateActivityOptionsResponse +@typing.final class UpdateActivityExecutionOptionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8470,6 +8905,7 @@ class UpdateActivityExecutionOptionsResponse(google.protobuf.message.Message): self, ) -> temporalio.api.activity.v1.message_pb2.ActivityOptions: """Activity options after an update""" + def __init__( self, *, @@ -8477,16 +8913,15 @@ class UpdateActivityExecutionOptionsResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["activity_options", b"activity_options"], + self, field_name: typing.Literal["activity_options", b"activity_options"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["activity_options", b"activity_options"], + self, field_name: typing.Literal["activity_options", b"activity_options"] ) -> None: ... global___UpdateActivityExecutionOptionsResponse = UpdateActivityExecutionOptionsResponse +@typing.final class PauseActivityRequest(google.protobuf.message.Message): """Deprecated. Use `PauseActivityExecutionRequest`.""" @@ -8501,9 +8936,6 @@ class PauseActivityRequest(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the workflow which scheduled this activity.""" - @property - def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: - """Execution info of the workflow which scheduled this activity""" identity: builtins.str """The identity of the client who initiated this request.""" id: builtins.str @@ -8516,6 +8948,10 @@ class PauseActivityRequest(google.protobuf.message.Message): """Reason to pause the activity.""" request_id: builtins.str """Used to de-dupe pause requests.""" + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Execution info of the workflow which scheduled this activity""" + def __init__( self, *, @@ -8529,7 +8965,7 @@ class PauseActivityRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "execution", @@ -8542,7 +8978,7 @@ class PauseActivityRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "execution", @@ -8562,11 +8998,12 @@ class PauseActivityRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["activity", b"activity"] - ) -> typing_extensions.Literal["id", "type"] | None: ... + self, oneof_group: typing.Literal["activity", b"activity"] + ) -> typing.Literal["id", "type"] | None: ... global___PauseActivityRequest = PauseActivityRequest +@typing.final class PauseActivityExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8610,7 +9047,7 @@ class PauseActivityExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "identity", @@ -8632,6 +9069,7 @@ class PauseActivityExecutionRequest(google.protobuf.message.Message): global___PauseActivityExecutionRequest = PauseActivityExecutionRequest +@typing.final class PauseActivityResponse(google.protobuf.message.Message): """Deprecated. Use `PauseActivityExecutionResponse`.""" @@ -8643,6 +9081,7 @@ class PauseActivityResponse(google.protobuf.message.Message): global___PauseActivityResponse = PauseActivityResponse +@typing.final class PauseActivityExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8652,6 +9091,7 @@ class PauseActivityExecutionResponse(google.protobuf.message.Message): global___PauseActivityExecutionResponse = PauseActivityExecutionResponse +@typing.final class UnpauseActivityRequest(google.protobuf.message.Message): """Deprecated. Use `UnpauseActivityExecutionRequest`.""" @@ -8668,9 +9108,6 @@ class UnpauseActivityRequest(google.protobuf.message.Message): JITTER_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the workflow which scheduled this activity.""" - @property - def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: - """Execution info of the workflow which scheduled this activity""" identity: builtins.str """The identity of the client who initiated this request.""" id: builtins.str @@ -8683,9 +9120,14 @@ class UnpauseActivityRequest(google.protobuf.message.Message): """Providing this flag will also reset the number of attempts.""" reset_heartbeat: builtins.bool """Providing this flag will also reset the heartbeat details.""" + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Execution info of the workflow which scheduled this activity""" + @property def jitter(self) -> google.protobuf.duration_pb2.Duration: """If set, the activity will start at a random time within the specified jitter duration.""" + def __init__( self, *, @@ -8701,7 +9143,7 @@ class UnpauseActivityRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "execution", @@ -8718,7 +9160,7 @@ class UnpauseActivityRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "execution", @@ -8742,11 +9184,12 @@ class UnpauseActivityRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["activity", b"activity"] - ) -> typing_extensions.Literal["id", "type", "unpause_all"] | None: ... + self, oneof_group: typing.Literal["activity", b"activity"] + ) -> typing.Literal["id", "type", "unpause_all"] | None: ... global___UnpauseActivityRequest = UnpauseActivityRequest +@typing.final class UnpauseActivityExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8773,13 +9216,14 @@ class UnpauseActivityExecutionRequest(google.protobuf.message.Message): """The identity of the client who initiated this request.""" reason: builtins.str """Reason to unpause the activity.""" - @property - def jitter(self) -> google.protobuf.duration_pb2.Duration: - """If set, the activity will start at a random time within the specified jitter duration.""" resource_id: builtins.str """Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.""" request_id: builtins.str """Used to de-dupe unpause requests.""" + @property + def jitter(self) -> google.protobuf.duration_pb2.Duration: + """If set, the activity will start at a random time within the specified jitter duration.""" + def __init__( self, *, @@ -8794,11 +9238,11 @@ class UnpauseActivityExecutionRequest(google.protobuf.message.Message): request_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["jitter", b"jitter"] + self, field_name: typing.Literal["jitter", b"jitter"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "identity", @@ -8822,6 +9266,7 @@ class UnpauseActivityExecutionRequest(google.protobuf.message.Message): global___UnpauseActivityExecutionRequest = UnpauseActivityExecutionRequest +@typing.final class UnpauseActivityResponse(google.protobuf.message.Message): """Deprecated. Use `UnpauseActivityExecutionResponse`.""" @@ -8833,6 +9278,7 @@ class UnpauseActivityResponse(google.protobuf.message.Message): global___UnpauseActivityResponse = UnpauseActivityResponse +@typing.final class UnpauseActivityExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8842,6 +9288,7 @@ class UnpauseActivityExecutionResponse(google.protobuf.message.Message): global___UnpauseActivityExecutionResponse = UnpauseActivityExecutionResponse +@typing.final class ResetActivityRequest(google.protobuf.message.Message): """NOTE: keep in sync with temporalio.api.batch.v1.BatchOperationResetActivities Deprecated. Use `ResetActivityExecutionRequest`. @@ -8861,9 +9308,6 @@ class ResetActivityRequest(google.protobuf.message.Message): RESTORE_ORIGINAL_OPTIONS_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the workflow which scheduled this activity.""" - @property - def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: - """Execution info of the workflow which scheduled this activity""" identity: builtins.str """The identity of the client who initiated this request.""" id: builtins.str @@ -8878,16 +9322,21 @@ class ResetActivityRequest(google.protobuf.message.Message): """ keep_paused: builtins.bool """If activity is paused, it will remain paused after reset""" - @property - def jitter(self) -> google.protobuf.duration_pb2.Duration: - """If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. - (unless it is paused and keep_paused is set) - """ restore_original_options: builtins.bool """If set, the activity options will be restored to the defaults. Default options are then options activity was created with. They are part of the first schedule event. """ + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Execution info of the workflow which scheduled this activity""" + + @property + def jitter(self) -> google.protobuf.duration_pb2.Duration: + """If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. + (unless it is paused and keep_paused is set) + """ + def __init__( self, *, @@ -8904,7 +9353,7 @@ class ResetActivityRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "execution", @@ -8921,7 +9370,7 @@ class ResetActivityRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity", b"activity", "execution", @@ -8947,11 +9396,12 @@ class ResetActivityRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["activity", b"activity"] - ) -> typing_extensions.Literal["id", "type", "match_all"] | None: ... + self, oneof_group: typing.Literal["activity", b"activity"] + ) -> typing.Literal["id", "type", "match_all"] | None: ... global___ResetActivityRequest = ResetActivityRequest +@typing.final class ResetActivityExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -8980,11 +9430,6 @@ class ResetActivityExecutionRequest(google.protobuf.message.Message): """The identity of the client who initiated this request.""" keep_paused: builtins.bool """If activity is paused, it will remain paused after reset""" - @property - def jitter(self) -> google.protobuf.duration_pb2.Duration: - """If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. - (unless it is paused and keep_paused is set) - """ restore_original_options: builtins.bool """If set, the activity options will be restored to the defaults. Default options are then options activity was created with. @@ -8999,6 +9444,12 @@ class ResetActivityExecutionRequest(google.protobuf.message.Message): Reset always resets the attempt counter. Passing this flag causes reset to additionally discard any persisted heartbeat details. """ + @property + def jitter(self) -> google.protobuf.duration_pb2.Duration: + """If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. + (unless it is paused and keep_paused is set) + """ + def __init__( self, *, @@ -9015,11 +9466,11 @@ class ResetActivityExecutionRequest(google.protobuf.message.Message): reset_heartbeat: builtins.bool = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["jitter", b"jitter"] + self, field_name: typing.Literal["jitter", b"jitter"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "identity", @@ -9047,6 +9498,7 @@ class ResetActivityExecutionRequest(google.protobuf.message.Message): global___ResetActivityExecutionRequest = ResetActivityExecutionRequest +@typing.final class ResetActivityResponse(google.protobuf.message.Message): """Deprecated. Use `ResetActivityExecutionRequest`.""" @@ -9058,6 +9510,7 @@ class ResetActivityResponse(google.protobuf.message.Message): global___ResetActivityResponse = ResetActivityResponse +@typing.final class ResetActivityExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -9067,6 +9520,7 @@ class ResetActivityExecutionResponse(google.protobuf.message.Message): global___ResetActivityExecutionResponse = ResetActivityExecutionResponse +@typing.final class UpdateWorkflowExecutionOptionsRequest(google.protobuf.message.Message): """Keep the parameters in sync with: - temporalio.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions. @@ -9082,6 +9536,8 @@ class UpdateWorkflowExecutionOptionsRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int namespace: builtins.str """The namespace name of the target Workflow.""" + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" @property def workflow_execution( self, @@ -9090,18 +9546,19 @@ class UpdateWorkflowExecutionOptionsRequest(google.protobuf.message.Message): (-- api-linter: core::0203::optional=disabled aip.dev/not-precedent: false positive triggered by the word "optional" --) """ + @property def workflow_execution_options( self, ) -> temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions: """Workflow Execution options. Partial updates are accepted and controlled by update_mask.""" + @property def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: """Controls which fields from `workflow_execution_options` will be applied. To unset a field, set it to null and use the update mask to indicate that it should be mutated. """ - identity: builtins.str - """Optional. The identity of the client who initiated this request.""" + def __init__( self, *, @@ -9115,7 +9572,7 @@ class UpdateWorkflowExecutionOptionsRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_mask", b"update_mask", "workflow_execution", @@ -9126,7 +9583,7 @@ class UpdateWorkflowExecutionOptionsRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -9142,6 +9599,7 @@ class UpdateWorkflowExecutionOptionsRequest(google.protobuf.message.Message): global___UpdateWorkflowExecutionOptionsRequest = UpdateWorkflowExecutionOptionsRequest +@typing.final class UpdateWorkflowExecutionOptionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -9152,6 +9610,7 @@ class UpdateWorkflowExecutionOptionsResponse(google.protobuf.message.Message): self, ) -> temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions: """Workflow Execution options after update.""" + @property def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The Workflow Execution time when the options were updated. When time skipping is @@ -9160,6 +9619,7 @@ class UpdateWorkflowExecutionOptionsResponse(google.protobuf.message.Message): This timestamp cannot be used for time-skipping fast-forward verification, use `fast_forward_id` in `PollWorkflowExecutionTimeSkippingRequest` instead. """ + def __init__( self, *, @@ -9169,7 +9629,7 @@ class UpdateWorkflowExecutionOptionsResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_time", b"update_time", "workflow_execution_options", @@ -9178,7 +9638,7 @@ class UpdateWorkflowExecutionOptionsResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_time", b"update_time", "workflow_execution_options", @@ -9188,6 +9648,7 @@ class UpdateWorkflowExecutionOptionsResponse(google.protobuf.message.Message): global___UpdateWorkflowExecutionOptionsResponse = UpdateWorkflowExecutionOptionsResponse +@typing.final class DescribeDeploymentRequest(google.protobuf.message.Message): """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" @@ -9205,17 +9666,18 @@ class DescribeDeploymentRequest(google.protobuf.message.Message): deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["deployment", b"deployment"] + self, field_name: typing.Literal["deployment", b"deployment"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "namespace", b"namespace" ], ) -> None: ... global___DescribeDeploymentRequest = DescribeDeploymentRequest +@typing.final class DescribeDeploymentResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" @@ -9233,16 +9695,15 @@ class DescribeDeploymentResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal["deployment_info", b"deployment_info"], + self, field_name: typing.Literal["deployment_info", b"deployment_info"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["deployment_info", b"deployment_info"], + self, field_name: typing.Literal["deployment_info", b"deployment_info"] ) -> None: ... global___DescribeDeploymentResponse = DescribeDeploymentResponse +@typing.final class DescribeWorkerDeploymentVersionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -9253,13 +9714,14 @@ class DescribeWorkerDeploymentVersionRequest(google.protobuf.message.Message): namespace: builtins.str version: builtins.str """Deprecated. Use `deployment_version`.""" + report_task_queue_stats: builtins.bool + """Report stats for task queues which have been polled by this version.""" @property def deployment_version( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: """Required.""" - report_task_queue_stats: builtins.bool - """Report stats for task queues which have been polled by this version.""" + def __init__( self, *, @@ -9270,14 +9732,11 @@ class DescribeWorkerDeploymentVersionRequest(google.protobuf.message.Message): report_task_queue_stats: builtins.bool = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "deployment_version", b"deployment_version" - ], + self, field_name: typing.Literal["deployment_version", b"deployment_version"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_version", b"deployment_version", "namespace", @@ -9291,14 +9750,17 @@ class DescribeWorkerDeploymentVersionRequest(google.protobuf.message.Message): global___DescribeWorkerDeploymentVersionRequest = DescribeWorkerDeploymentVersionRequest +@typing.final class DescribeWorkerDeploymentVersionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class VersionTaskQueue(google.protobuf.message.Message): """(-- api-linter: core::0123::resource-annotation=disabled --)""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class StatsByPriorityKeyEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -9317,11 +9779,10 @@ class DescribeWorkerDeploymentVersionResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAME_FIELD_NUMBER: builtins.int @@ -9333,6 +9794,7 @@ class DescribeWorkerDeploymentVersionResponse(google.protobuf.message.Message): @property def stats(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueueStats: """Only set if `report_task_queue_stats` is set on the request.""" + @property def stats_by_priority_key( self, @@ -9344,6 +9806,7 @@ class DescribeWorkerDeploymentVersionResponse(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "by" is used to clarify the key. --) """ + def __init__( self, *, @@ -9356,11 +9819,11 @@ class DescribeWorkerDeploymentVersionResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["stats", b"stats"] + self, field_name: typing.Literal["stats", b"stats"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "name", b"name", "stats", @@ -9385,6 +9848,7 @@ class DescribeWorkerDeploymentVersionResponse(google.protobuf.message.Message): global___DescribeWorkerDeploymentVersionResponse.VersionTaskQueue ]: """All the Task Queues that have ever polled from this Deployment version.""" + def __init__( self, *, @@ -9397,13 +9861,13 @@ class DescribeWorkerDeploymentVersionResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "worker_deployment_version_info", b"worker_deployment_version_info" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "version_task_queues", b"version_task_queues", "worker_deployment_version_info", @@ -9415,6 +9879,7 @@ global___DescribeWorkerDeploymentVersionResponse = ( DescribeWorkerDeploymentVersionResponse ) +@typing.final class DescribeWorkerDeploymentRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -9430,13 +9895,14 @@ class DescribeWorkerDeploymentRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_name", b"deployment_name", "namespace", b"namespace" ], ) -> None: ... global___DescribeWorkerDeploymentRequest = DescribeWorkerDeploymentRequest +@typing.final class DescribeWorkerDeploymentResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -9460,13 +9926,11 @@ class DescribeWorkerDeploymentResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "worker_deployment_info", b"worker_deployment_info" - ], + field_name: typing.Literal["worker_deployment_info", b"worker_deployment_info"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "conflict_token", b"conflict_token", "worker_deployment_info", @@ -9476,6 +9940,7 @@ class DescribeWorkerDeploymentResponse(google.protobuf.message.Message): global___DescribeWorkerDeploymentResponse = DescribeWorkerDeploymentResponse +@typing.final class ListDeploymentsRequest(google.protobuf.message.Message): """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" @@ -9500,7 +9965,7 @@ class ListDeploymentsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "next_page_token", @@ -9514,6 +9979,7 @@ class ListDeploymentsRequest(google.protobuf.message.Message): global___ListDeploymentsRequest = ListDeploymentsRequest +@typing.final class ListDeploymentsResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" @@ -9539,13 +10005,14 @@ class ListDeploymentsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployments", b"deployments", "next_page_token", b"next_page_token" ], ) -> None: ... global___ListDeploymentsResponse = ListDeploymentsResponse +@typing.final class SetCurrentDeploymentRequest(google.protobuf.message.Message): """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" @@ -9556,11 +10023,11 @@ class SetCurrentDeploymentRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int UPDATE_METADATA_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: ... identity: builtins.str """Optional. The identity of the client who initiated this request.""" @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: ... + @property def update_metadata( self, ) -> temporalio.api.deployment.v1.message_pb2.UpdateDeploymentMetadata: @@ -9568,6 +10035,7 @@ class SetCurrentDeploymentRequest(google.protobuf.message.Message): when describing a deployment. It is a good place for information such as operator name, links to internal deployment pipelines, etc. """ + def __init__( self, *, @@ -9579,13 +10047,13 @@ class SetCurrentDeploymentRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "update_metadata", b"update_metadata" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "identity", @@ -9599,6 +10067,7 @@ class SetCurrentDeploymentRequest(google.protobuf.message.Message): global___SetCurrentDeploymentRequest = SetCurrentDeploymentRequest +@typing.final class SetCurrentDeploymentResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" @@ -9615,6 +10084,7 @@ class SetCurrentDeploymentResponse(google.protobuf.message.Message): self, ) -> temporalio.api.deployment.v1.message_pb2.DeploymentInfo: """Info of the deployment that was current before executing this operation.""" + def __init__( self, *, @@ -9625,7 +10095,7 @@ class SetCurrentDeploymentResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_deployment_info", b"current_deployment_info", "previous_deployment_info", @@ -9634,7 +10104,7 @@ class SetCurrentDeploymentResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_deployment_info", b"current_deployment_info", "previous_deployment_info", @@ -9644,6 +10114,7 @@ class SetCurrentDeploymentResponse(google.protobuf.message.Message): global___SetCurrentDeploymentResponse = SetCurrentDeploymentResponse +@typing.final class SetWorkerDeploymentCurrentVersionRequest(google.protobuf.message.Message): """Set/unset the Current Version of a Worker Deployment.""" @@ -9708,7 +10179,7 @@ class SetWorkerDeploymentCurrentVersionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "allow_no_pollers", b"allow_no_pollers", "build_id", @@ -9732,6 +10203,7 @@ global___SetWorkerDeploymentCurrentVersionRequest = ( SetWorkerDeploymentCurrentVersionRequest ) +@typing.final class SetWorkerDeploymentCurrentVersionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -9755,6 +10227,7 @@ class SetWorkerDeploymentCurrentVersionResponse(google.protobuf.message.Message) `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes between the two calls. """ + def __init__( self, *, @@ -9765,13 +10238,13 @@ class SetWorkerDeploymentCurrentVersionResponse(google.protobuf.message.Message) ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "previous_deployment_version", b"previous_deployment_version" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "conflict_token", b"conflict_token", "previous_deployment_version", @@ -9785,6 +10258,7 @@ global___SetWorkerDeploymentCurrentVersionResponse = ( SetWorkerDeploymentCurrentVersionResponse ) +@typing.final class SetWorkerDeploymentRampingVersionRequest(google.protobuf.message.Message): """Set/unset the Ramping Version of a Worker Deployment and its ramp percentage.""" @@ -9856,7 +10330,7 @@ class SetWorkerDeploymentRampingVersionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "allow_no_pollers", b"allow_no_pollers", "build_id", @@ -9882,6 +10356,7 @@ global___SetWorkerDeploymentRampingVersionRequest = ( SetWorkerDeploymentRampingVersionRequest ) +@typing.final class SetWorkerDeploymentRampingVersionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -9896,6 +10371,13 @@ class SetWorkerDeploymentRampingVersionResponse(google.protobuf.message.Message) """ previous_version: builtins.str """Deprecated. Use `previous_deployment_version`.""" + previous_percentage: builtins.float + """The ramping version percentage before executing this operation. + Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the + Ramping version info before calling this API. By passing the `conflict_token` got from the + `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes + between the two calls. + """ @property def previous_deployment_version( self, @@ -9906,13 +10388,7 @@ class SetWorkerDeploymentRampingVersionResponse(google.protobuf.message.Message) `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes between the two calls. """ - previous_percentage: builtins.float - """The ramping version percentage before executing this operation. - Deprecated in favor of idempotency of the API. Use `DescribeWorkerDeployment` to get the - Ramping version info before calling this API. By passing the `conflict_token` got from the - `DescribeWorkerDeployment` call to this API you can ensure there is no interfering changes - between the two calls. - """ + def __init__( self, *, @@ -9924,13 +10400,13 @@ class SetWorkerDeploymentRampingVersionResponse(google.protobuf.message.Message) ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "previous_deployment_version", b"previous_deployment_version" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "conflict_token", b"conflict_token", "previous_deployment_version", @@ -9946,6 +10422,7 @@ global___SetWorkerDeploymentRampingVersionResponse = ( SetWorkerDeploymentRampingVersionResponse ) +@typing.final class CreateWorkerDeploymentRequest(google.protobuf.message.Message): """Creates a new WorkerDeployment.""" @@ -9974,7 +10451,7 @@ class CreateWorkerDeploymentRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_name", b"deployment_name", "identity", @@ -9988,6 +10465,7 @@ class CreateWorkerDeploymentRequest(google.protobuf.message.Message): global___CreateWorkerDeploymentRequest = CreateWorkerDeploymentRequest +@typing.final class CreateWorkerDeploymentResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10003,11 +10481,12 @@ class CreateWorkerDeploymentResponse(google.protobuf.message.Message): conflict_token: builtins.bytes = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["conflict_token", b"conflict_token"] + self, field_name: typing.Literal["conflict_token", b"conflict_token"] ) -> None: ... global___CreateWorkerDeploymentResponse = CreateWorkerDeploymentResponse +@typing.final class ListWorkerDeploymentsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10026,7 +10505,7 @@ class ListWorkerDeploymentsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "next_page_token", @@ -10038,9 +10517,11 @@ class ListWorkerDeploymentsRequest(google.protobuf.message.Message): global___ListWorkerDeploymentsRequest = ListWorkerDeploymentsRequest +@typing.final class ListWorkerDeploymentsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class WorkerDeploymentSummary(google.protobuf.message.Message): """(-- api-linter: core::0123::resource-annotation=disabled --) A subset of WorkerDeploymentInfo @@ -10066,16 +10547,19 @@ class ListWorkerDeploymentsResponse(google.protobuf.message.Message): self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentInfo.WorkerDeploymentVersionSummary: """Summary of the version that was added most recently in the Worker Deployment.""" + @property def current_version_summary( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentInfo.WorkerDeploymentVersionSummary: """Summary of the current version of the Worker Deployment.""" + @property def ramping_version_summary( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentInfo.WorkerDeploymentVersionSummary: """Summary of the ramping version of the Worker Deployment.""" + def __init__( self, *, @@ -10092,7 +10576,7 @@ class ListWorkerDeploymentsResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "current_version_summary", @@ -10107,7 +10591,7 @@ class ListWorkerDeploymentsResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "create_time", b"create_time", "current_version_summary", @@ -10133,6 +10617,7 @@ class ListWorkerDeploymentsResponse(google.protobuf.message.Message): global___ListWorkerDeploymentsResponse.WorkerDeploymentSummary ]: """The list of worker deployments.""" + def __init__( self, *, @@ -10144,7 +10629,7 @@ class ListWorkerDeploymentsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "worker_deployments", @@ -10154,6 +10639,7 @@ class ListWorkerDeploymentsResponse(google.protobuf.message.Message): global___ListWorkerDeploymentsResponse = ListWorkerDeploymentsResponse +@typing.final class CreateWorkerDeploymentVersionRequest(google.protobuf.message.Message): """Creates a new WorkerDeploymentVersion.""" @@ -10165,23 +10651,25 @@ class CreateWorkerDeploymentVersionRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int REQUEST_ID_FIELD_NUMBER: builtins.int namespace: builtins.str + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" + request_id: builtins.str + """A unique identifier for this create request for idempotence. Typically UUIDv4. + If a second request with the same ID is recieved, it is considered a successful no-op. + Retrying with a different request ID for the same deployment name + build ID is an error. + """ @property def deployment_version( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: """Required.""" + @property def compute_config(self) -> temporalio.api.compute.v1.config_pb2.ComputeConfig: """Optional. Contains the new worker compute configuration for the Worker Deployment. Used for worker scale management. """ - identity: builtins.str - """Optional. The identity of the client who initiated this request.""" - request_id: builtins.str - """A unique identifier for this create request for idempotence. Typically UUIDv4. - If a second request with the same ID is recieved, it is considered a successful no-op. - Retrying with a different request ID for the same deployment name + build ID is an error. - """ + def __init__( self, *, @@ -10194,7 +10682,7 @@ class CreateWorkerDeploymentVersionRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "compute_config", b"compute_config", "deployment_version", @@ -10203,7 +10691,7 @@ class CreateWorkerDeploymentVersionRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "compute_config", b"compute_config", "deployment_version", @@ -10219,6 +10707,7 @@ class CreateWorkerDeploymentVersionRequest(google.protobuf.message.Message): global___CreateWorkerDeploymentVersionRequest = CreateWorkerDeploymentVersionRequest +@typing.final class CreateWorkerDeploymentVersionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10228,6 +10717,7 @@ class CreateWorkerDeploymentVersionResponse(google.protobuf.message.Message): global___CreateWorkerDeploymentVersionResponse = CreateWorkerDeploymentVersionResponse +@typing.final class DeleteWorkerDeploymentVersionRequest(google.protobuf.message.Message): """Used for manual deletion of Versions. User can delete a Version only when all the following conditions are met: @@ -10247,17 +10737,18 @@ class DeleteWorkerDeploymentVersionRequest(google.protobuf.message.Message): namespace: builtins.str version: builtins.str """Deprecated. Use `deployment_version`.""" - @property - def deployment_version( - self, - ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: - """Required.""" skip_drainage: builtins.bool """Pass to force deletion even if the Version is draining. In this case the open pinned workflows will be stuck until manually moved to another version by UpdateWorkflowExecutionOptions. """ identity: builtins.str """Optional. The identity of the client who initiated this request.""" + @property + def deployment_version( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: + """Required.""" + def __init__( self, *, @@ -10269,14 +10760,11 @@ class DeleteWorkerDeploymentVersionRequest(google.protobuf.message.Message): identity: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "deployment_version", b"deployment_version" - ], + self, field_name: typing.Literal["deployment_version", b"deployment_version"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_version", b"deployment_version", "identity", @@ -10292,6 +10780,7 @@ class DeleteWorkerDeploymentVersionRequest(google.protobuf.message.Message): global___DeleteWorkerDeploymentVersionRequest = DeleteWorkerDeploymentVersionRequest +@typing.final class DeleteWorkerDeploymentVersionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10301,6 +10790,7 @@ class DeleteWorkerDeploymentVersionResponse(google.protobuf.message.Message): global___DeleteWorkerDeploymentVersionResponse = DeleteWorkerDeploymentVersionResponse +@typing.final class DeleteWorkerDeploymentRequest(google.protobuf.message.Message): """Deletes records of (an old) Deployment. A deployment can only be deleted if it has no Version in it. @@ -10324,7 +10814,7 @@ class DeleteWorkerDeploymentRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_name", b"deployment_name", "identity", @@ -10336,6 +10826,7 @@ class DeleteWorkerDeploymentRequest(google.protobuf.message.Message): global___DeleteWorkerDeploymentRequest = DeleteWorkerDeploymentRequest +@typing.final class DeleteWorkerDeploymentResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10345,6 +10836,7 @@ class DeleteWorkerDeploymentResponse(google.protobuf.message.Message): global___DeleteWorkerDeploymentResponse = DeleteWorkerDeploymentResponse +@typing.final class UpdateWorkerDeploymentVersionComputeConfigRequest( google.protobuf.message.Message ): @@ -10352,6 +10844,7 @@ class UpdateWorkerDeploymentVersionComputeConfigRequest( DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ComputeConfigScalingGroupsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10370,11 +10863,10 @@ class UpdateWorkerDeploymentVersionComputeConfigRequest( | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAMESPACE_FIELD_NUMBER: builtins.int @@ -10384,11 +10876,19 @@ class UpdateWorkerDeploymentVersionComputeConfigRequest( IDENTITY_FIELD_NUMBER: builtins.int REQUEST_ID_FIELD_NUMBER: builtins.int namespace: builtins.str + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" + request_id: builtins.str + """A unique identifier for this create request for idempotence. Typically UUIDv4. + If a second request with the same ID is recieved, it is considered a successful no-op. + Retrying with a different request ID for the same deployment name + build ID is an error. + """ @property def deployment_version( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: """Required.""" + @property def compute_config_scaling_groups( self, @@ -10399,18 +10899,13 @@ class UpdateWorkerDeploymentVersionComputeConfigRequest( """Optional. Contains the compute config scaling groups to add or update for the Worker Deployment. """ + @property def remove_compute_config_scaling_groups( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Optional. Contains the compute config scaling groups to remove from the Worker Deployment.""" - identity: builtins.str - """Optional. The identity of the client who initiated this request.""" - request_id: builtins.str - """A unique identifier for this create request for idempotence. Typically UUIDv4. - If a second request with the same ID is recieved, it is considered a successful no-op. - Retrying with a different request ID for the same deployment name + build ID is an error. - """ + def __init__( self, *, @@ -10428,14 +10923,11 @@ class UpdateWorkerDeploymentVersionComputeConfigRequest( request_id: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "deployment_version", b"deployment_version" - ], + self, field_name: typing.Literal["deployment_version", b"deployment_version"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "compute_config_scaling_groups", b"compute_config_scaling_groups", "deployment_version", @@ -10455,6 +10947,7 @@ global___UpdateWorkerDeploymentVersionComputeConfigRequest = ( UpdateWorkerDeploymentVersionComputeConfigRequest ) +@typing.final class UpdateWorkerDeploymentVersionComputeConfigResponse( google.protobuf.message.Message ): @@ -10468,6 +10961,7 @@ global___UpdateWorkerDeploymentVersionComputeConfigResponse = ( UpdateWorkerDeploymentVersionComputeConfigResponse ) +@typing.final class ValidateWorkerDeploymentVersionComputeConfigRequest( google.protobuf.message.Message ): @@ -10475,6 +10969,7 @@ class ValidateWorkerDeploymentVersionComputeConfigRequest( DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class ComputeConfigScalingGroupsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10493,11 +10988,10 @@ class ValidateWorkerDeploymentVersionComputeConfigRequest( | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAMESPACE_FIELD_NUMBER: builtins.int @@ -10506,11 +11000,14 @@ class ValidateWorkerDeploymentVersionComputeConfigRequest( REMOVE_COMPUTE_CONFIG_SCALING_GROUPS_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int namespace: builtins.str + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" @property def deployment_version( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: """Required.""" + @property def compute_config_scaling_groups( self, @@ -10521,13 +11018,13 @@ class ValidateWorkerDeploymentVersionComputeConfigRequest( """Optional. Contains the compute config scaling groups to add or update for the Worker Deployment. """ + @property def remove_compute_config_scaling_groups( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Optional. Contains the compute config scaling groups to remove from the Worker Deployment.""" - identity: builtins.str - """Optional. The identity of the client who initiated this request.""" + def __init__( self, *, @@ -10544,14 +11041,11 @@ class ValidateWorkerDeploymentVersionComputeConfigRequest( identity: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "deployment_version", b"deployment_version" - ], + self, field_name: typing.Literal["deployment_version", b"deployment_version"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "compute_config_scaling_groups", b"compute_config_scaling_groups", "deployment_version", @@ -10569,6 +11063,7 @@ global___ValidateWorkerDeploymentVersionComputeConfigRequest = ( ValidateWorkerDeploymentVersionComputeConfigRequest ) +@typing.final class ValidateWorkerDeploymentVersionComputeConfigResponse( google.protobuf.message.Message ): @@ -10582,11 +11077,13 @@ global___ValidateWorkerDeploymentVersionComputeConfigResponse = ( ValidateWorkerDeploymentVersionComputeConfigResponse ) +@typing.final class UpdateWorkerDeploymentVersionMetadataRequest(google.protobuf.message.Message): """Used to update the user-defined metadata of a Worker Deployment Version.""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class UpsertEntriesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10602,11 +11099,10 @@ class UpdateWorkerDeploymentVersionMetadataRequest(google.protobuf.message.Messa value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAMESPACE_FIELD_NUMBER: builtins.int @@ -10618,11 +11114,14 @@ class UpdateWorkerDeploymentVersionMetadataRequest(google.protobuf.message.Messa namespace: builtins.str version: builtins.str """Deprecated. Use `deployment_version`.""" + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" @property def deployment_version( self, ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion: """Required.""" + @property def upsert_entries( self, @@ -10634,8 +11133,7 @@ class UpdateWorkerDeploymentVersionMetadataRequest(google.protobuf.message.Messa self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of keys to remove from the metadata.""" - identity: builtins.str - """Optional. The identity of the client who initiated this request.""" + def __init__( self, *, @@ -10651,14 +11149,11 @@ class UpdateWorkerDeploymentVersionMetadataRequest(google.protobuf.message.Messa identity: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "deployment_version", b"deployment_version" - ], + self, field_name: typing.Literal["deployment_version", b"deployment_version"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_version", b"deployment_version", "identity", @@ -10678,6 +11173,7 @@ global___UpdateWorkerDeploymentVersionMetadataRequest = ( UpdateWorkerDeploymentVersionMetadataRequest ) +@typing.final class UpdateWorkerDeploymentVersionMetadataResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10685,22 +11181,24 @@ class UpdateWorkerDeploymentVersionMetadataResponse(google.protobuf.message.Mess @property def metadata(self) -> temporalio.api.deployment.v1.message_pb2.VersionMetadata: """Full metadata after performing the update.""" + def __init__( self, *, metadata: temporalio.api.deployment.v1.message_pb2.VersionMetadata | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["metadata", b"metadata"] + self, field_name: typing.Literal["metadata", b"metadata"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["metadata", b"metadata"] + self, field_name: typing.Literal["metadata", b"metadata"] ) -> None: ... global___UpdateWorkerDeploymentVersionMetadataResponse = ( UpdateWorkerDeploymentVersionMetadataResponse ) +@typing.final class SetWorkerDeploymentManagerRequest(google.protobuf.message.Message): """Update the ManagerIdentity of a Worker Deployment.""" @@ -10729,8 +11227,7 @@ class SetWorkerDeploymentManagerRequest(google.protobuf.message.Message): identity: builtins.str """Required. The identity of the client who initiated this request.""" def __init__( - # pyright: reportSelfClsParameterName=false - self_, + self_, # pyright: ignore[reportSelfClsParameterName] *, namespace: builtins.str = ..., deployment_name: builtins.str = ..., @@ -10741,7 +11238,7 @@ class SetWorkerDeploymentManagerRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "manager_identity", b"manager_identity", "new_manager_identity", @@ -10752,7 +11249,7 @@ class SetWorkerDeploymentManagerRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "conflict_token", b"conflict_token", "deployment_name", @@ -10771,13 +11268,12 @@ class SetWorkerDeploymentManagerRequest(google.protobuf.message.Message): ) -> None: ... def WhichOneof( self, - oneof_group: typing_extensions.Literal[ - "new_manager_identity", b"new_manager_identity" - ], - ) -> typing_extensions.Literal["manager_identity", "self"] | None: ... + oneof_group: typing.Literal["new_manager_identity", b"new_manager_identity"], + ) -> typing.Literal["manager_identity", "self"] | None: ... global___SetWorkerDeploymentManagerRequest = SetWorkerDeploymentManagerRequest +@typing.final class SetWorkerDeploymentManagerResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10803,7 +11299,7 @@ class SetWorkerDeploymentManagerResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "conflict_token", b"conflict_token", "previous_manager_identity", @@ -10813,6 +11309,7 @@ class SetWorkerDeploymentManagerResponse(google.protobuf.message.Message): global___SetWorkerDeploymentManagerResponse = SetWorkerDeploymentManagerResponse +@typing.final class GetCurrentDeploymentRequest(google.protobuf.message.Message): """Returns the Current Deployment of a deployment series. [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later @@ -10832,13 +11329,14 @@ class GetCurrentDeploymentRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "series_name", b"series_name" ], ) -> None: ... global___GetCurrentDeploymentRequest = GetCurrentDeploymentRequest +@typing.final class GetCurrentDeploymentResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" @@ -10857,19 +11355,20 @@ class GetCurrentDeploymentResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_deployment_info", b"current_deployment_info" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_deployment_info", b"current_deployment_info" ], ) -> None: ... global___GetCurrentDeploymentResponse = GetCurrentDeploymentResponse +@typing.final class GetDeploymentReachabilityRequest(google.protobuf.message.Message): """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" @@ -10887,17 +11386,18 @@ class GetDeploymentReachabilityRequest(google.protobuf.message.Message): deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["deployment", b"deployment"] + self, field_name: typing.Literal["deployment", b"deployment"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment", b"deployment", "namespace", b"namespace" ], ) -> None: ... global___GetDeploymentReachabilityRequest = GetDeploymentReachabilityRequest +@typing.final class GetDeploymentReachabilityResponse(google.protobuf.message.Message): """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" @@ -10906,18 +11406,19 @@ class GetDeploymentReachabilityResponse(google.protobuf.message.Message): DEPLOYMENT_INFO_FIELD_NUMBER: builtins.int REACHABILITY_FIELD_NUMBER: builtins.int LAST_UPDATE_TIME_FIELD_NUMBER: builtins.int + reachability: ( + temporalio.api.enums.v1.deployment_pb2.DeploymentReachability.ValueType + ) @property def deployment_info( self, ) -> temporalio.api.deployment.v1.message_pb2.DeploymentInfo: ... - reachability: ( - temporalio.api.enums.v1.deployment_pb2.DeploymentReachability.ValueType - ) @property def last_update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Reachability level might come from server cache. This timestamp specifies when the value was actually calculated. """ + def __init__( self, *, @@ -10928,7 +11429,7 @@ class GetDeploymentReachabilityResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_info", b"deployment_info", "last_update_time", @@ -10937,7 +11438,7 @@ class GetDeploymentReachabilityResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_info", b"deployment_info", "last_update_time", @@ -10949,6 +11450,7 @@ class GetDeploymentReachabilityResponse(google.protobuf.message.Message): global___GetDeploymentReachabilityResponse = GetDeploymentReachabilityResponse +@typing.final class CreateWorkflowRuleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -10959,9 +11461,6 @@ class CreateWorkflowRuleRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def spec(self) -> temporalio.api.rules.v1.message_pb2.WorkflowRuleSpec: - """The rule specification .""" force_scan: builtins.bool """If true, the rule will be applied to the currently running workflows via batch job. If not set , the rule will only be applied when triggering condition is satisfied. @@ -10973,6 +11472,10 @@ class CreateWorkflowRuleRequest(google.protobuf.message.Message): """Identity of the actor who created the rule. Will be stored with the rule.""" description: builtins.str """Rule description.Will be stored with the rule.""" + @property + def spec(self) -> temporalio.api.rules.v1.message_pb2.WorkflowRuleSpec: + """The rule specification .""" + def __init__( self, *, @@ -10984,11 +11487,11 @@ class CreateWorkflowRuleRequest(google.protobuf.message.Message): description: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["spec", b"spec"] + self, field_name: typing.Literal["spec", b"spec"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "description", b"description", "force_scan", @@ -11006,16 +11509,18 @@ class CreateWorkflowRuleRequest(google.protobuf.message.Message): global___CreateWorkflowRuleRequest = CreateWorkflowRuleRequest +@typing.final class CreateWorkflowRuleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor RULE_FIELD_NUMBER: builtins.int JOB_ID_FIELD_NUMBER: builtins.int + job_id: builtins.str + """Batch Job ID if force-scan flag was provided. Otherwise empty.""" @property def rule(self) -> temporalio.api.rules.v1.message_pb2.WorkflowRule: """Created rule.""" - job_id: builtins.str - """Batch Job ID if force-scan flag was provided. Otherwise empty.""" + def __init__( self, *, @@ -11023,15 +11528,15 @@ class CreateWorkflowRuleResponse(google.protobuf.message.Message): job_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["rule", b"rule"] + self, field_name: typing.Literal["rule", b"rule"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["job_id", b"job_id", "rule", b"rule"], + self, field_name: typing.Literal["job_id", b"job_id", "rule", b"rule"] ) -> None: ... global___CreateWorkflowRuleResponse = CreateWorkflowRuleResponse +@typing.final class DescribeWorkflowRuleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11048,13 +11553,12 @@ class DescribeWorkflowRuleRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "namespace", b"namespace", "rule_id", b"rule_id" - ], + field_name: typing.Literal["namespace", b"namespace", "rule_id", b"rule_id"], ) -> None: ... global___DescribeWorkflowRuleRequest = DescribeWorkflowRuleRequest +@typing.final class DescribeWorkflowRuleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11062,20 +11566,20 @@ class DescribeWorkflowRuleResponse(google.protobuf.message.Message): @property def rule(self) -> temporalio.api.rules.v1.message_pb2.WorkflowRule: """The rule that was read.""" + def __init__( self, *, rule: temporalio.api.rules.v1.message_pb2.WorkflowRule | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["rule", b"rule"] + self, field_name: typing.Literal["rule", b"rule"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["rule", b"rule"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["rule", b"rule"]) -> None: ... global___DescribeWorkflowRuleResponse = DescribeWorkflowRuleResponse +@typing.final class DeleteWorkflowRuleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11092,13 +11596,12 @@ class DeleteWorkflowRuleRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "namespace", b"namespace", "rule_id", b"rule_id" - ], + field_name: typing.Literal["namespace", b"namespace", "rule_id", b"rule_id"], ) -> None: ... global___DeleteWorkflowRuleRequest = DeleteWorkflowRuleRequest +@typing.final class DeleteWorkflowRuleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11108,6 +11611,7 @@ class DeleteWorkflowRuleResponse(google.protobuf.message.Message): global___DeleteWorkflowRuleResponse = DeleteWorkflowRuleResponse +@typing.final class ListWorkflowRulesRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11123,25 +11627,26 @@ class ListWorkflowRulesRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "next_page_token", b"next_page_token" ], ) -> None: ... global___ListWorkflowRulesRequest = ListWorkflowRulesRequest +@typing.final class ListWorkflowRulesResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor RULES_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes @property def rules( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.rules.v1.message_pb2.WorkflowRule ]: ... - next_page_token: builtins.bytes def __init__( self, *, @@ -11153,13 +11658,14 @@ class ListWorkflowRulesResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "rules", b"rules" ], ) -> None: ... global___ListWorkflowRulesResponse = ListWorkflowRulesResponse +@typing.final class TriggerWorkflowRuleRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11169,15 +11675,17 @@ class TriggerWorkflowRuleRequest(google.protobuf.message.Message): SPEC_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int namespace: builtins.str + id: builtins.str + identity: builtins.str + """The identity of the client who initiated this request""" @property def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: """Execution info of the workflow which scheduled this activity""" - id: builtins.str + @property def spec(self) -> temporalio.api.rules.v1.message_pb2.WorkflowRuleSpec: """Note: Rule ID and expiration date are not used in the trigger request.""" - identity: builtins.str - """The identity of the client who initiated this request""" + def __init__( self, *, @@ -11189,13 +11697,13 @@ class TriggerWorkflowRuleRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution", b"execution", "id", b"id", "rule", b"rule", "spec", b"spec" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "execution", b"execution", "id", @@ -11211,11 +11719,12 @@ class TriggerWorkflowRuleRequest(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["rule", b"rule"] - ) -> typing_extensions.Literal["id", "spec"] | None: ... + self, oneof_group: typing.Literal["rule", b"rule"] + ) -> typing.Literal["id", "spec"] | None: ... global___TriggerWorkflowRuleRequest = TriggerWorkflowRuleRequest +@typing.final class TriggerWorkflowRuleResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11227,12 +11736,11 @@ class TriggerWorkflowRuleResponse(google.protobuf.message.Message): *, applied: builtins.bool = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["applied", b"applied"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["applied", b"applied"]) -> None: ... global___TriggerWorkflowRuleResponse = TriggerWorkflowRuleResponse +@typing.final class RecordWorkerHeartbeatRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11244,14 +11752,14 @@ class RecordWorkerHeartbeatRequest(google.protobuf.message.Message): """Namespace this worker belongs to.""" identity: builtins.str """The identity of the client who initiated this request.""" + resource_id: builtins.str + """Resource ID for routing. Contains the worker grouping key.""" @property def worker_heartbeat( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.worker.v1.message_pb2.WorkerHeartbeat ]: ... - resource_id: builtins.str - """Resource ID for routing. Contains the worker grouping key.""" def __init__( self, *, @@ -11265,7 +11773,7 @@ class RecordWorkerHeartbeatRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -11279,6 +11787,7 @@ class RecordWorkerHeartbeatRequest(google.protobuf.message.Message): global___RecordWorkerHeartbeatRequest = RecordWorkerHeartbeatRequest +@typing.final class RecordWorkerHeartbeatResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11288,6 +11797,7 @@ class RecordWorkerHeartbeatResponse(google.protobuf.message.Message): global___RecordWorkerHeartbeatResponse = RecordWorkerHeartbeatResponse +@typing.final class ListWorkersRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11328,7 +11838,7 @@ class ListWorkersRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "include_system_workers", b"include_system_workers", "namespace", @@ -11344,12 +11854,15 @@ class ListWorkersRequest(google.protobuf.message.Message): global___ListWorkersRequest = ListWorkersRequest +@typing.final class ListWorkersResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor WORKERS_INFO_FIELD_NUMBER: builtins.int WORKERS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes + """Next page token""" @property def workers_info( self, @@ -11359,6 +11872,7 @@ class ListWorkersResponse(google.protobuf.message.Message): """Deprecated: Use workers instead. This field returns full WorkerInfo which includes expensive runtime metrics. We will stop populating this field in the future. """ + @property def workers( self, @@ -11366,8 +11880,7 @@ class ListWorkersResponse(google.protobuf.message.Message): temporalio.api.worker.v1.message_pb2.WorkerListInfo ]: """Limited worker information.""" - next_page_token: builtins.bytes - """Next page token""" + def __init__( self, *, @@ -11383,7 +11896,7 @@ class ListWorkersResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "workers", @@ -11395,19 +11908,22 @@ class ListWorkersResponse(google.protobuf.message.Message): global___ListWorkersResponse = ListWorkersResponse +@typing.final class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class RateLimitUpdate(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor RATE_LIMIT_FIELD_NUMBER: builtins.int REASON_FIELD_NUMBER: builtins.int + reason: builtins.str + """Reason for why the rate limit was set.""" @property def rate_limit(self) -> temporalio.api.taskqueue.v1.message_pb2.RateLimit: """Rate Limit to be updated""" - reason: builtins.str - """Reason for why the rate limit was set.""" + def __init__( self, *, @@ -11415,15 +11931,16 @@ class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): reason: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["rate_limit", b"rate_limit"] + self, field_name: typing.Literal["rate_limit", b"rate_limit"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "rate_limit", b"rate_limit", "reason", b"reason" ], ) -> None: ... + @typing.final class SetFairnessWeightOverridesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11438,8 +11955,7 @@ class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): value: builtins.float = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAMESPACE_FIELD_NUMBER: builtins.int @@ -11464,6 +11980,7 @@ class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): NOTE: A limit set by the worker is overriden; and restored again when reset. If the `rate_limit` field in the `RateLimitUpdate` is missing, remove the existing rate limit. """ + @property def update_fairness_key_rate_limit_default( self, @@ -11472,6 +11989,7 @@ class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): If not set, this configuration is unchanged. If the `rate_limit` field in the `RateLimitUpdate` is missing, remove the existing rate limit. """ + @property def set_fairness_weight_overrides( self, @@ -11479,6 +11997,7 @@ class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): """If set, overrides the fairness weight for each specified fairness key. Fairness keys not listed in this map will keep their existing overrides (if any). """ + @property def unset_fairness_weight_overrides( self, @@ -11487,6 +12006,7 @@ class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): Fairness weights for corresponding keys fall back to the values set during task creation (if any), or to the default weight of 1.0. """ + def __init__( self, *, @@ -11507,7 +12027,7 @@ class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "update_fairness_key_rate_limit_default", b"update_fairness_key_rate_limit_default", "update_queue_rate_limit", @@ -11516,7 +12036,7 @@ class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -11538,6 +12058,7 @@ class UpdateTaskQueueConfigRequest(google.protobuf.message.Message): global___UpdateTaskQueueConfigRequest = UpdateTaskQueueConfigRequest +@typing.final class UpdateTaskQueueConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11550,14 +12071,13 @@ class UpdateTaskQueueConfigResponse(google.protobuf.message.Message): config: temporalio.api.taskqueue.v1.message_pb2.TaskQueueConfig | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["config", b"config"] + self, field_name: typing.Literal["config", b"config"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["config", b"config"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["config", b"config"]) -> None: ... global___UpdateTaskQueueConfigResponse = UpdateTaskQueueConfigResponse +@typing.final class FetchWorkerConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11572,13 +12092,14 @@ class FetchWorkerConfigRequest(google.protobuf.message.Message): """The identity of the client who initiated this request.""" reason: builtins.str """Reason for sending worker command, can be used for audit purpose.""" + resource_id: builtins.str + """Resource ID for routing. Contains the worker grouping key.""" @property def selector(self) -> temporalio.api.common.v1.message_pb2.WorkerSelector: """Defines which workers should receive this command. only single worker is supported at this time. """ - resource_id: builtins.str - """Resource ID for routing. Contains the worker grouping key.""" + def __init__( self, *, @@ -11589,11 +12110,11 @@ class FetchWorkerConfigRequest(google.protobuf.message.Message): resource_id: builtins.str = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["selector", b"selector"] + self, field_name: typing.Literal["selector", b"selector"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -11609,6 +12130,7 @@ class FetchWorkerConfigRequest(google.protobuf.message.Message): global___FetchWorkerConfigRequest = FetchWorkerConfigRequest +@typing.final class FetchWorkerConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11616,6 +12138,7 @@ class FetchWorkerConfigResponse(google.protobuf.message.Message): @property def worker_config(self) -> temporalio.api.sdk.v1.worker_config_pb2.WorkerConfig: """The worker configuration.""" + def __init__( self, *, @@ -11623,14 +12146,15 @@ class FetchWorkerConfigResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["worker_config", b"worker_config"] + self, field_name: typing.Literal["worker_config", b"worker_config"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["worker_config", b"worker_config"] + self, field_name: typing.Literal["worker_config", b"worker_config"] ) -> None: ... global___FetchWorkerConfigResponse = FetchWorkerConfigResponse +@typing.final class UpdateWorkerConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11647,19 +12171,22 @@ class UpdateWorkerConfigRequest(google.protobuf.message.Message): """The identity of the client who initiated this request.""" reason: builtins.str """Reason for sending worker command, can be used for audit purpose.""" + resource_id: builtins.str + """Resource ID for routing. Contains the worker grouping key.""" @property def worker_config(self) -> temporalio.api.sdk.v1.worker_config_pb2.WorkerConfig: """Partial updates are accepted and controlled by update_mask. The worker configuration to set. """ + @property def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: """Controls which fields from `worker_config` will be applied""" + @property def selector(self) -> temporalio.api.common.v1.message_pb2.WorkerSelector: """Defines which workers should receive this command.""" - resource_id: builtins.str - """Resource ID for routing. Contains the worker grouping key.""" + def __init__( self, *, @@ -11674,7 +12201,7 @@ class UpdateWorkerConfigRequest(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "selector", b"selector", "update_mask", @@ -11685,7 +12212,7 @@ class UpdateWorkerConfigRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -11705,6 +12232,7 @@ class UpdateWorkerConfigRequest(google.protobuf.message.Message): global___UpdateWorkerConfigRequest = UpdateWorkerConfigRequest +@typing.final class UpdateWorkerConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11712,6 +12240,7 @@ class UpdateWorkerConfigResponse(google.protobuf.message.Message): @property def worker_config(self) -> temporalio.api.sdk.v1.worker_config_pb2.WorkerConfig: """The worker configuration. Will be returned if the command was sent to a single worker.""" + def __init__( self, *, @@ -11720,22 +12249,23 @@ class UpdateWorkerConfigResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "response", b"response", "worker_config", b"worker_config" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "response", b"response", "worker_config", b"worker_config" ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["response", b"response"] - ) -> typing_extensions.Literal["worker_config"] | None: ... + self, oneof_group: typing.Literal["response", b"response"] + ) -> typing.Literal["worker_config"] | None: ... global___UpdateWorkerConfigResponse = UpdateWorkerConfigResponse +@typing.final class DescribeWorkerRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11753,13 +12283,14 @@ class DescribeWorkerRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "worker_instance_key", b"worker_instance_key" ], ) -> None: ... global___DescribeWorkerRequest = DescribeWorkerRequest +@typing.final class DescribeWorkerResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11772,14 +12303,15 @@ class DescribeWorkerResponse(google.protobuf.message.Message): worker_info: temporalio.api.worker.v1.message_pb2.WorkerInfo | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["worker_info", b"worker_info"] + self, field_name: typing.Literal["worker_info", b"worker_info"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["worker_info", b"worker_info"] + self, field_name: typing.Literal["worker_info", b"worker_info"] ) -> None: ... global___DescribeWorkerResponse = DescribeWorkerResponse +@typing.final class CountWorkersRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11804,7 +12336,7 @@ class CountWorkersRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "include_system_workers", b"include_system_workers", "namespace", @@ -11816,6 +12348,7 @@ class CountWorkersRequest(google.protobuf.message.Message): global___CountWorkersRequest = CountWorkersRequest +@typing.final class CountWorkersResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11827,12 +12360,11 @@ class CountWorkersResponse(google.protobuf.message.Message): *, count: builtins.int = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["count", b"count"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["count", b"count"]) -> None: ... global___CountWorkersResponse = CountWorkersResponse +@typing.final class PauseWorkflowExecutionRequest(google.protobuf.message.Message): """Request to pause a workflow execution.""" @@ -11868,7 +12400,7 @@ class PauseWorkflowExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -11886,6 +12418,7 @@ class PauseWorkflowExecutionRequest(google.protobuf.message.Message): global___PauseWorkflowExecutionRequest = PauseWorkflowExecutionRequest +@typing.final class PauseWorkflowExecutionResponse(google.protobuf.message.Message): """Response to a successful PauseWorkflowExecution request.""" @@ -11897,6 +12430,7 @@ class PauseWorkflowExecutionResponse(google.protobuf.message.Message): global___PauseWorkflowExecutionResponse = PauseWorkflowExecutionResponse +@typing.final class UnpauseWorkflowExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11930,7 +12464,7 @@ class UnpauseWorkflowExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -11948,6 +12482,7 @@ class UnpauseWorkflowExecutionRequest(google.protobuf.message.Message): global___UnpauseWorkflowExecutionRequest = UnpauseWorkflowExecutionRequest +@typing.final class UnpauseWorkflowExecutionResponse(google.protobuf.message.Message): """Response to a successful UnpauseWorkflowExecution request.""" @@ -11959,6 +12494,7 @@ class UnpauseWorkflowExecutionResponse(google.protobuf.message.Message): global___UnpauseWorkflowExecutionResponse = UnpauseWorkflowExecutionResponse +@typing.final class StartActivityExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -11984,6 +12520,8 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): LINKS_FIELD_NUMBER: builtins.int ON_CONFLICT_OPTIONS_FIELD_NUMBER: builtins.int START_DELAY_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int + REQUEST_EAGER_EXECUTION_FIELD_NUMBER: builtins.int namespace: builtins.str identity: builtins.str """The identity of the client who initiated this request""" @@ -11994,12 +12532,32 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): own system. It must be unique among activities in the same namespace, subject to the rules imposed by id_reuse_policy and id_conflict_policy. """ + id_reuse_policy: ( + temporalio.api.enums.v1.activity_pb2.ActivityIdReusePolicy.ValueType + ) + """Defines whether to allow re-using the activity id from a previously *closed* activity. + The default policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE. + """ + id_conflict_policy: ( + temporalio.api.enums.v1.activity_pb2.ActivityIdConflictPolicy.ValueType + ) + """Defines how to resolve an activity id conflict with a *running* activity. + The default policy is ACTIVITY_ID_CONFLICT_POLICY_FAIL. + """ + request_eager_execution: builtins.bool + """Request that the first activity task be returned directly in the start response instead of + being dispatched through a task queue. If set to true, the caller is expected to have a + worker available and capable of processing the task. The returned task will be marked as + started. The server may ignore this request. + """ @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: """The type of the activity, a string that corresponds to a registered activity on a worker.""" + @property def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: """Task queue to schedule this activity on.""" + @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Indicates how long the caller is willing to wait for an activity completion. Limits how long @@ -12008,6 +12566,7 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Limits time an activity task can stay in a task queue before a worker picks it up. This @@ -12017,6 +12576,7 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum time an activity is allowed to execute after being picked up by a worker. This @@ -12026,41 +12586,37 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum permitted time between successful worker heartbeats.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """The retry policy for the activity. Will never exceed `schedule_to_close_timeout`.""" + @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized arguments to the activity. These are passed as arguments to the activity function.""" - id_reuse_policy: ( - temporalio.api.enums.v1.activity_pb2.ActivityIdReusePolicy.ValueType - ) - """Defines whether to allow re-using the activity id from a previously *closed* activity. - The default policy is ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE. - """ - id_conflict_policy: ( - temporalio.api.enums.v1.activity_pb2.ActivityIdConflictPolicy.ValueType - ) - """Defines how to resolve an activity id conflict with a *running* activity. - The default policy is ACTIVITY_ID_CONFLICT_POLICY_FAIL. - """ + @property def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: """Search attributes for indexing.""" + @property def header(self) -> temporalio.api.common.v1.message_pb2.Header: """Header for context propagation and tracing purposes.""" + @property def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: """Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity.""" + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority metadata.""" + @property def completion_callbacks( self, @@ -12070,6 +12626,7 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): """Callbacks to be called by the server when this activity reaches a terminal state. Callback addresses must be whitelisted in the server's dynamic configuration. """ + @property def links( self, @@ -12079,14 +12636,23 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): """Links to be associated with the activity. Callbacks may also have associated links; links already included with a callback should not be duplicated here. """ + @property def on_conflict_options( self, ) -> temporalio.api.common.v1.message_pb2.OnConflictOptions: """Options for handling conflicts when using ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING.""" + @property def start_delay(self) -> google.protobuf.duration_pb2.Duration: """Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.""" + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this activity.""" + def __init__( self, *, @@ -12119,10 +12685,13 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): on_conflict_options: temporalio.api.common.v1.message_pb2.OnConflictOptions | None = ..., start_delay: google.protobuf.duration_pb2.Duration | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., + request_eager_execution: builtins.bool = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_type", b"activity_type", "header", @@ -12135,6 +12704,8 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): b"on_conflict_options", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -12155,7 +12726,7 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_type", @@ -12182,6 +12753,10 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): b"on_conflict_options", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + "request_eager_execution", + b"request_eager_execution", "request_id", b"request_id", "retry_policy", @@ -12205,12 +12780,14 @@ class StartActivityExecutionRequest(google.protobuf.message.Message): global___StartActivityExecutionRequest = StartActivityExecutionRequest +@typing.final class StartActivityExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor RUN_ID_FIELD_NUMBER: builtins.int STARTED_FIELD_NUMBER: builtins.int LINK_FIELD_NUMBER: builtins.int + EAGER_ACTIVITY_TASK_FIELD_NUMBER: builtins.int run_id: builtins.str """The run ID of the activity that was started - or used (via ACTIVITY_ID_CONFLICT_POLICY_USE_EXISTING).""" started: builtins.bool @@ -12218,25 +12795,44 @@ class StartActivityExecutionResponse(google.protobuf.message.Message): @property def link(self) -> temporalio.api.common.v1.message_pb2.Link: """Link to the started activity.""" + + @property + def eager_activity_task(self) -> global___PollActivityTaskQueueResponse: + """The first activity task when eager execution was requested and accepted. + This is set only for the first attempt of a newly started activity. + """ + def __init__( self, *, run_id: builtins.str = ..., started: builtins.bool = ..., link: temporalio.api.common.v1.message_pb2.Link | None = ..., + eager_activity_task: global___PollActivityTaskQueueResponse | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["link", b"link"] + self, + field_name: typing.Literal[ + "eager_activity_task", b"eager_activity_task", "link", b"link" + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "link", b"link", "run_id", b"run_id", "started", b"started" + field_name: typing.Literal[ + "eager_activity_task", + b"eager_activity_task", + "link", + b"link", + "run_id", + b"run_id", + "started", + b"started", ], ) -> None: ... global___StartActivityExecutionResponse = StartActivityExecutionResponse +@typing.final class DescribeActivityExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12282,7 +12878,7 @@ class DescribeActivityExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "include_heartbeat_details", @@ -12304,6 +12900,7 @@ class DescribeActivityExecutionRequest(google.protobuf.message.Message): global___DescribeActivityExecutionRequest = DescribeActivityExecutionRequest +@typing.final class DescribeActivityExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12315,23 +12912,26 @@ class DescribeActivityExecutionResponse(google.protobuf.message.Message): CALLBACKS_FIELD_NUMBER: builtins.int run_id: builtins.str """The run ID of the activity, useful when run_id was not specified in the request.""" + long_poll_token: builtins.bytes + """Token for follow-on long-poll requests. Absent only if the activity is complete.""" @property def info(self) -> temporalio.api.activity.v1.message_pb2.ActivityExecutionInfo: """Information about the activity execution. Fields heartbeat_details and last_failure are omitted unless the request has include_heartbeat_details or include_last_failure set to true, respectively. """ + @property def input(self) -> temporalio.api.common.v1.message_pb2.Payloads: """Serialized activity input, passed as arguments to the activity function. Only set if include_input was true in the request. """ + @property def outcome( self, ) -> temporalio.api.activity.v1.message_pb2.ActivityExecutionOutcome: """Only set if the activity is completed and include_outcome was true in the request.""" - long_poll_token: builtins.bytes - """Token for follow-on long-poll requests. Absent only if the activity is complete.""" + @property def callbacks( self, @@ -12339,6 +12939,7 @@ class DescribeActivityExecutionResponse(google.protobuf.message.Message): temporalio.api.activity.v1.message_pb2.CallbackInfo ]: """Callbacks attached to this activity execution and their current state.""" + def __init__( self, *, @@ -12355,13 +12956,13 @@ class DescribeActivityExecutionResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "info", b"info", "input", b"input", "outcome", b"outcome" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "callbacks", b"callbacks", "info", @@ -12379,6 +12980,7 @@ class DescribeActivityExecutionResponse(google.protobuf.message.Message): global___DescribeActivityExecutionResponse = DescribeActivityExecutionResponse +@typing.final class PollActivityExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12398,7 +13000,7 @@ class PollActivityExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "namespace", @@ -12410,36 +13012,58 @@ class PollActivityExecutionRequest(google.protobuf.message.Message): global___PollActivityExecutionRequest = PollActivityExecutionRequest +@typing.final class PollActivityExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor RUN_ID_FIELD_NUMBER: builtins.int OUTCOME_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int run_id: builtins.str """The run ID of the activity, useful when run_id was not specified in the request.""" @property def outcome( self, ) -> temporalio.api.activity.v1.message_pb2.ActivityExecutionOutcome: ... + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context propagated from the Nexus caller that started this activity.""" + def __init__( self, *, run_id: builtins.str = ..., outcome: temporalio.api.activity.v1.message_pb2.ActivityExecutionOutcome | None = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["outcome", b"outcome"] + self, + field_name: typing.Literal[ + "outcome", + b"outcome", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "outcome", b"outcome", "run_id", b"run_id" + field_name: typing.Literal[ + "outcome", + b"outcome", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + "run_id", + b"run_id", ], ) -> None: ... global___PollActivityExecutionResponse = PollActivityExecutionResponse +@typing.final class ListActivityExecutionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12464,7 +13088,7 @@ class ListActivityExecutionsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "next_page_token", @@ -12478,19 +13102,20 @@ class ListActivityExecutionsRequest(google.protobuf.message.Message): global___ListActivityExecutionsRequest = ListActivityExecutionsRequest +@typing.final class ListActivityExecutionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor EXECUTIONS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes + """Token to use to fetch the next page. If empty, there is no next page.""" @property def executions( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.activity.v1.message_pb2.ActivityExecutionListInfo ]: ... - next_page_token: builtins.bytes - """Token to use to fetch the next page. If empty, there is no next page.""" def __init__( self, *, @@ -12502,16 +13127,18 @@ class ListActivityExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "executions", b"executions", "next_page_token", b"next_page_token" ], ) -> None: ... global___ListActivityExecutionsResponse = ListActivityExecutionsResponse +@typing.final class StartNexusOperationExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class NexusHeaderEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12526,8 +13153,7 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... NAMESPACE_FIELD_NUMBER: builtins.int @@ -12543,9 +13169,12 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): INPUT_FIELD_NUMBER: builtins.int ID_REUSE_POLICY_FIELD_NUMBER: builtins.int ID_CONFLICT_POLICY_FIELD_NUMBER: builtins.int + ON_CONFLICT_OPTIONS_FIELD_NUMBER: builtins.int SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int NEXUS_HEADER_FIELD_NUMBER: builtins.int USER_METADATA_FIELD_NUMBER: builtins.int + COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int + LINKS_FIELD_NUMBER: builtins.int namespace: builtins.str identity: builtins.str """The identity of the client who initiated this request.""" @@ -12564,6 +13193,18 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): """Service name.""" operation: builtins.str """Operation name.""" + id_reuse_policy: ( + temporalio.api.enums.v1.nexus_pb2.NexusOperationIdReusePolicy.ValueType + ) + """Defines whether to allow re-using the operation id from a previously *closed* operation. + The default policy is NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE. + """ + id_conflict_policy: ( + temporalio.api.enums.v1.nexus_pb2.NexusOperationIdConflictPolicy.ValueType + ) + """Defines how to resolve an operation id conflict with a *running* operation. + The default policy is NEXUS_OPERATION_ID_CONFLICT_POLICY_FAIL. + """ @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-close timeout for this operation. @@ -12572,6 +13213,7 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-start timeout for this operation. @@ -12581,6 +13223,7 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Start-to-close timeout for this operation. @@ -12590,26 +13233,26 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "to" is used to indicate interval. --) """ + @property def input(self) -> temporalio.api.common.v1.message_pb2.Payload: """Serialized input to the operation. Passed as the request payload.""" - id_reuse_policy: ( - temporalio.api.enums.v1.nexus_pb2.NexusOperationIdReusePolicy.ValueType - ) - """Defines whether to allow re-using the operation id from a previously *closed* operation. - The default policy is NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE. - """ - id_conflict_policy: ( - temporalio.api.enums.v1.nexus_pb2.NexusOperationIdConflictPolicy.ValueType - ) - """Defines how to resolve an operation id conflict with a *running* operation. - The default policy is NEXUS_OPERATION_ID_CONFLICT_POLICY_FAIL. - """ + + @property + def on_conflict_options( + self, + ) -> temporalio.api.nexusoperation.v1.message_pb2.OnConflictOptions: + """Defines actions to be done to the existing running standalone Nexus when the conflict policy + NEXUS_OPERATION_ID_CONFLICT_POLICY_USE_EXISTING is used. If not set or set to a empty object + (all options with default value), it will not modify the running operation. + """ + @property def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: """Search attributes for indexing.""" + @property def nexus_header( self, @@ -12621,9 +13264,29 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): Note these headers are not the same as Temporal headers on internal activities and child workflows, these are transmitted to Nexus operations that may be external and are not traditional payloads. """ + @property def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: """Metadata for use by user interfaces to display the fixed as-of-start summary and details of the operation.""" + + @property + def completion_callbacks( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.common.v1.message_pb2.Callback + ]: + """Completion callbacks to be invoked once the Nexus operation reaches a terminal state.""" + + @property + def links( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.common.v1.message_pb2.Link + ]: + """Links to be associated with the Nexus operation. Callbacks may also have associated links; + links already included with a callback should not be duplicated here. + """ + def __init__( self, *, @@ -12640,17 +13303,27 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): input: temporalio.api.common.v1.message_pb2.Payload | None = ..., id_reuse_policy: temporalio.api.enums.v1.nexus_pb2.NexusOperationIdReusePolicy.ValueType = ..., id_conflict_policy: temporalio.api.enums.v1.nexus_pb2.NexusOperationIdConflictPolicy.ValueType = ..., + on_conflict_options: temporalio.api.nexusoperation.v1.message_pb2.OnConflictOptions + | None = ..., search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes | None = ..., nexus_header: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., user_metadata: temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata | None = ..., + completion_callbacks: collections.abc.Iterable[ + temporalio.api.common.v1.message_pb2.Callback + ] + | None = ..., + links: collections.abc.Iterable[temporalio.api.common.v1.message_pb2.Link] + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "input", b"input", + "on_conflict_options", + b"on_conflict_options", "schedule_to_close_timeout", b"schedule_to_close_timeout", "schedule_to_start_timeout", @@ -12665,7 +13338,9 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ + "completion_callbacks", + b"completion_callbacks", "endpoint", b"endpoint", "id_conflict_policy", @@ -12676,10 +13351,14 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): b"identity", "input", b"input", + "links", + b"links", "namespace", b"namespace", "nexus_header", b"nexus_header", + "on_conflict_options", + b"on_conflict_options", "operation", b"operation", "operation_id", @@ -12703,6 +13382,7 @@ class StartNexusOperationExecutionRequest(google.protobuf.message.Message): global___StartNexusOperationExecutionRequest = StartNexusOperationExecutionRequest +@typing.final class StartNexusOperationExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12719,14 +13399,12 @@ class StartNexusOperationExecutionResponse(google.protobuf.message.Message): started: builtins.bool = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "run_id", b"run_id", "started", b"started" - ], + self, field_name: typing.Literal["run_id", b"run_id", "started", b"started"] ) -> None: ... global___StartNexusOperationExecutionResponse = StartNexusOperationExecutionResponse +@typing.final class DescribeNexusOperationExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12764,7 +13442,7 @@ class DescribeNexusOperationExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "include_input", b"include_input", "include_outcome", @@ -12782,6 +13460,7 @@ class DescribeNexusOperationExecutionRequest(google.protobuf.message.Message): global___DescribeNexusOperationExecutionRequest = DescribeNexusOperationExecutionRequest +@typing.final class DescribeNexusOperationExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12791,24 +13470,39 @@ class DescribeNexusOperationExecutionResponse(google.protobuf.message.Message): RESULT_FIELD_NUMBER: builtins.int FAILURE_FIELD_NUMBER: builtins.int LONG_POLL_TOKEN_FIELD_NUMBER: builtins.int + COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int run_id: builtins.str """The run ID of the operation, useful when run_id was not specified in the request.""" + long_poll_token: builtins.bytes + """Token for follow-on long-poll requests. Absent only if the operation is complete.""" @property def info(self) -> temporalio.api.nexus.v1.message_pb2.NexusOperationExecutionInfo: """Information about the operation.""" + @property def input(self) -> temporalio.api.common.v1.message_pb2.Payload: """Serialized operation input, passed as the request payload. Only set if include_input was true in the request. """ + @property def result(self) -> temporalio.api.common.v1.message_pb2.Payload: """The result if the operation completed successfully.""" + @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The failure if the operation completed unsuccessfully.""" - long_poll_token: builtins.bytes - """Token for follow-on long-poll requests. Absent only if the operation is complete.""" + + @property + def completion_callbacks( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.nexusoperation.v1.message_pb2.CallbackInfo + ]: + """Completion callbacks to be invoked once the Nexus operation reaches a terminal state. + They will remain in the CALLBACK_STATE_STANDBY state until the Nexus operation is finished. + """ + def __init__( self, *, @@ -12819,10 +13513,14 @@ class DescribeNexusOperationExecutionResponse(google.protobuf.message.Message): result: temporalio.api.common.v1.message_pb2.Payload | None = ..., failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., long_poll_token: builtins.bytes = ..., + completion_callbacks: collections.abc.Iterable[ + temporalio.api.nexusoperation.v1.message_pb2.CallbackInfo + ] + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "info", @@ -12837,7 +13535,9 @@ class DescribeNexusOperationExecutionResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ + "completion_callbacks", + b"completion_callbacks", "failure", b"failure", "info", @@ -12855,13 +13555,14 @@ class DescribeNexusOperationExecutionResponse(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["outcome", b"outcome"] - ) -> typing_extensions.Literal["result", "failure"] | None: ... + self, oneof_group: typing.Literal["outcome", b"outcome"] + ) -> typing.Literal["result", "failure"] | None: ... global___DescribeNexusOperationExecutionResponse = ( DescribeNexusOperationExecutionResponse ) +@typing.final class PollNexusOperationExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12885,7 +13586,7 @@ class PollNexusOperationExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "operation_id", @@ -12899,12 +13600,14 @@ class PollNexusOperationExecutionRequest(google.protobuf.message.Message): global___PollNexusOperationExecutionRequest = PollNexusOperationExecutionRequest +@typing.final class PollNexusOperationExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor RUN_ID_FIELD_NUMBER: builtins.int WAIT_STAGE_FIELD_NUMBER: builtins.int OPERATION_TOKEN_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int RESULT_FIELD_NUMBER: builtins.int FAILURE_FIELD_NUMBER: builtins.int run_id: builtins.str @@ -12913,36 +13616,57 @@ class PollNexusOperationExecutionResponse(google.protobuf.message.Message): """The current stage of the operation. May be more advanced than the stage requested in the poll.""" operation_token: builtins.str """Operation token. Only populated for asynchronous operations after a successful StartOperation call.""" + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context for this operation's payloads, derived from its stored target. + For a reused operation, this is the original execution's context. + """ + @property def result(self) -> temporalio.api.common.v1.message_pb2.Payload: """The result if the operation completed successfully.""" + @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The failure if the operation completed unsuccessfully.""" + def __init__( self, *, run_id: builtins.str = ..., wait_stage: temporalio.api.enums.v1.nexus_pb2.NexusOperationWaitStage.ValueType = ..., operation_token: builtins.str = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., result: temporalio.api.common.v1.message_pb2.Payload | None = ..., failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "failure", b"failure", "outcome", b"outcome", "result", b"result" + field_name: typing.Literal[ + "failure", + b"failure", + "outcome", + b"outcome", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + "result", + b"result", ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "operation_token", b"operation_token", "outcome", b"outcome", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "result", b"result", "run_id", @@ -12952,11 +13676,12 @@ class PollNexusOperationExecutionResponse(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["outcome", b"outcome"] - ) -> typing_extensions.Literal["result", "failure"] | None: ... + self, oneof_group: typing.Literal["outcome", b"outcome"] + ) -> typing.Literal["result", "failure"] | None: ... global___PollNexusOperationExecutionResponse = PollNexusOperationExecutionResponse +@typing.final class ListNexusOperationExecutionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -12995,7 +13720,7 @@ class ListNexusOperationExecutionsRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "next_page_token", @@ -13009,19 +13734,20 @@ class ListNexusOperationExecutionsRequest(google.protobuf.message.Message): global___ListNexusOperationExecutionsRequest = ListNexusOperationExecutionsRequest +@typing.final class ListNexusOperationExecutionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor OPERATIONS_FIELD_NUMBER: builtins.int NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes + """Token to use to fetch the next page. If empty, there is no next page.""" @property def operations( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.nexus.v1.message_pb2.NexusOperationExecutionListInfo ]: ... - next_page_token: builtins.bytes - """Token to use to fetch the next page. If empty, there is no next page.""" def __init__( self, *, @@ -13033,13 +13759,14 @@ class ListNexusOperationExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "next_page_token", b"next_page_token", "operations", b"operations" ], ) -> None: ... global___ListNexusOperationExecutionsResponse = ListNexusOperationExecutionsResponse +@typing.final class CountActivityExecutionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13055,29 +13782,28 @@ class CountActivityExecutionsRequest(google.protobuf.message.Message): query: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "namespace", b"namespace", "query", b"query" - ], + self, field_name: typing.Literal["namespace", b"namespace", "query", b"query"] ) -> None: ... global___CountActivityExecutionsRequest = CountActivityExecutionsRequest +@typing.final class CountActivityExecutionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class AggregationGroup(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor GROUP_VALUES_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int + count: builtins.int @property def group_values( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.common.v1.message_pb2.Payload ]: ... - count: builtins.int def __init__( self, *, @@ -13089,7 +13815,7 @@ class CountActivityExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "count", b"count", "group_values", b"group_values" ], ) -> None: ... @@ -13112,6 +13838,7 @@ class CountActivityExecutionsResponse(google.protobuf.message.Message): """Contains the groups if the request is grouping by a field. The list might not be complete, and the counts of each group is approximate. """ + def __init__( self, *, @@ -13122,12 +13849,12 @@ class CountActivityExecutionsResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["count", b"count", "groups", b"groups"], + self, field_name: typing.Literal["count", b"count", "groups", b"groups"] ) -> None: ... global___CountActivityExecutionsResponse = CountActivityExecutionsResponse +@typing.final class CountNexusOperationExecutionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13145,29 +13872,28 @@ class CountNexusOperationExecutionsRequest(google.protobuf.message.Message): query: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "namespace", b"namespace", "query", b"query" - ], + self, field_name: typing.Literal["namespace", b"namespace", "query", b"query"] ) -> None: ... global___CountNexusOperationExecutionsRequest = CountNexusOperationExecutionsRequest +@typing.final class CountNexusOperationExecutionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class AggregationGroup(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor GROUP_VALUES_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int + count: builtins.int @property def group_values( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.common.v1.message_pb2.Payload ]: ... - count: builtins.int def __init__( self, *, @@ -13179,7 +13905,7 @@ class CountNexusOperationExecutionsResponse(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "count", b"count", "group_values", b"group_values" ], ) -> None: ... @@ -13202,6 +13928,7 @@ class CountNexusOperationExecutionsResponse(google.protobuf.message.Message): """Contains the groups if the request is grouping by a field. The list might not be complete, and the counts of each group is approximate. """ + def __init__( self, *, @@ -13212,12 +13939,12 @@ class CountNexusOperationExecutionsResponse(google.protobuf.message.Message): | None = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["count", b"count", "groups", b"groups"], + self, field_name: typing.Literal["count", b"count", "groups", b"groups"] ) -> None: ... global___CountNexusOperationExecutionsResponse = CountNexusOperationExecutionsResponse +@typing.final class RequestCancelActivityExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13251,7 +13978,7 @@ class RequestCancelActivityExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "identity", @@ -13269,6 +13996,7 @@ class RequestCancelActivityExecutionRequest(google.protobuf.message.Message): global___RequestCancelActivityExecutionRequest = RequestCancelActivityExecutionRequest +@typing.final class RequestCancelActivityExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13278,6 +14006,7 @@ class RequestCancelActivityExecutionResponse(google.protobuf.message.Message): global___RequestCancelActivityExecutionResponse = RequestCancelActivityExecutionResponse +@typing.final class TerminateActivityExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13309,7 +14038,7 @@ class TerminateActivityExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "identity", @@ -13327,6 +14056,7 @@ class TerminateActivityExecutionRequest(google.protobuf.message.Message): global___TerminateActivityExecutionRequest = TerminateActivityExecutionRequest +@typing.final class TerminateActivityExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13336,6 +14066,7 @@ class TerminateActivityExecutionResponse(google.protobuf.message.Message): global___TerminateActivityExecutionResponse = TerminateActivityExecutionResponse +@typing.final class DeleteActivityExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13355,7 +14086,7 @@ class DeleteActivityExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "namespace", @@ -13367,6 +14098,7 @@ class DeleteActivityExecutionRequest(google.protobuf.message.Message): global___DeleteActivityExecutionRequest = DeleteActivityExecutionRequest +@typing.final class DeleteActivityExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13376,6 +14108,7 @@ class DeleteActivityExecutionResponse(google.protobuf.message.Message): global___DeleteActivityExecutionResponse = DeleteActivityExecutionResponse +@typing.final class RequestCancelNexusOperationExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13407,7 +14140,7 @@ class RequestCancelNexusOperationExecutionRequest(google.protobuf.message.Messag ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -13427,6 +14160,7 @@ global___RequestCancelNexusOperationExecutionRequest = ( RequestCancelNexusOperationExecutionRequest ) +@typing.final class RequestCancelNexusOperationExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13438,6 +14172,7 @@ global___RequestCancelNexusOperationExecutionResponse = ( RequestCancelNexusOperationExecutionResponse ) +@typing.final class TerminateNexusOperationExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13469,7 +14204,7 @@ class TerminateNexusOperationExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "identity", b"identity", "namespace", @@ -13489,6 +14224,7 @@ global___TerminateNexusOperationExecutionRequest = ( TerminateNexusOperationExecutionRequest ) +@typing.final class TerminateNexusOperationExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13500,6 +14236,7 @@ global___TerminateNexusOperationExecutionResponse = ( TerminateNexusOperationExecutionResponse ) +@typing.final class DeleteNexusOperationExecutionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13519,7 +14256,7 @@ class DeleteNexusOperationExecutionRequest(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "operation_id", @@ -13531,6 +14268,7 @@ class DeleteNexusOperationExecutionRequest(google.protobuf.message.Message): global___DeleteNexusOperationExecutionRequest = DeleteNexusOperationExecutionRequest +@typing.final class DeleteNexusOperationExecutionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13540,6 +14278,7 @@ class DeleteNexusOperationExecutionResponse(google.protobuf.message.Message): global___DeleteNexusOperationExecutionResponse = DeleteNexusOperationExecutionResponse +@typing.final class PollWorkflowExecutionTimeSkippingRequest(google.protobuf.message.Message): """A long-poll request that blocks according to a time-skipping waiting policy on the workflow execution. Currently the only supported policy is waiting for completion of the fast-forward @@ -13553,14 +14292,14 @@ class PollWorkflowExecutionTimeSkippingRequest(google.protobuf.message.Message): WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int FAST_FORWARD_ID_FIELD_NUMBER: builtins.int namespace: builtins.str - @property - def workflow_execution( - self, - ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... fast_forward_id: builtins.str """Required. Identifies the fast-forward whose completion the caller wants to wait for. Must match the `fast_forward_id` set in the execution's TimeSkippingConfig. """ + @property + def workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... def __init__( self, *, @@ -13570,14 +14309,11 @@ class PollWorkflowExecutionTimeSkippingRequest(google.protobuf.message.Message): fast_forward_id: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "fast_forward_id", b"fast_forward_id", "namespace", @@ -13591,6 +14327,7 @@ global___PollWorkflowExecutionTimeSkippingRequest = ( PollWorkflowExecutionTimeSkippingRequest ) +@typing.final class PollWorkflowExecutionTimeSkippingResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -13610,6 +14347,7 @@ class PollWorkflowExecutionTimeSkippingResponse(google.protobuf.message.Message) self, ) -> temporalio.api.common.v1.message_pb2.TimeSkippingFastForwardInfo: """The execution's current fast-forward, if any.""" + def __init__( self, *, @@ -13619,14 +14357,11 @@ class PollWorkflowExecutionTimeSkippingResponse(google.protobuf.message.Message) | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "fast_forward_info", b"fast_forward_info" - ], + self, field_name: typing.Literal["fast_forward_info", b"fast_forward_info"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failed_reason", b"failed_reason", "fast_forward_info", diff --git a/temporalio/api/workflowservice/v1/request_response_pb2_grpc.pyi b/temporalio/api/workflowservice/v1/request_response_pb2_grpc.pyi index f3a5a087e..de236ac81 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2_grpc.pyi +++ b/temporalio/api/workflowservice/v1/request_response_pb2_grpc.pyi @@ -2,3 +2,20 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + +import abc +import collections.abc +import typing + +import grpc +import grpc.aio + +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... diff --git a/temporalio/api/workflowservice/v1/service_pb2.py b/temporalio/api/workflowservice/v1/service_pb2.py index 92da5d6c2..a0e5ad183 100644 --- a/temporalio/api/workflowservice/v1/service_pb2.py +++ b/temporalio/api/workflowservice/v1/service_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -30,8 +29,8 @@ b'\n-temporal/api/workflowservice/v1/service.proto\x12\x1ftemporal.api.workflowservice.v1\x1a\x1cgoogle/api/annotations.proto\x1a!nexusannotations/v1/options.proto\x1a+temporal/api/protometa/v1/annotations.proto\x1a\x36temporal/api/workflowservice/v1/request_response.proto2\xdc\xb2\x02\n\x0fWorkflowService\x12\xc3\x01\n\x11RegisterNamespace\x12\x39.temporal.api.workflowservice.v1.RegisterNamespaceRequest\x1a:.temporal.api.workflowservice.v1.RegisterNamespaceResponse"7\x82\xd3\xe4\x93\x02\x31"\x13/cluster/namespaces:\x01*Z\x17"\x12/api/v1/namespaces:\x01*\x12\xd5\x01\n\x11\x44\x65scribeNamespace\x12\x39.temporal.api.workflowservice.v1.DescribeNamespaceRequest\x1a:.temporal.api.workflowservice.v1.DescribeNamespaceResponse"I\x82\xd3\xe4\x93\x02\x43\x12\x1f/cluster/namespaces/{namespace}Z \x12\x1e/api/v1/namespaces/{namespace}\x12\xb4\x01\n\x0eListNamespaces\x12\x36.temporal.api.workflowservice.v1.ListNamespacesRequest\x1a\x37.temporal.api.workflowservice.v1.ListNamespacesResponse"1\x82\xd3\xe4\x93\x02+\x12\x13/cluster/namespacesZ\x14\x12\x12/api/v1/namespaces\x12\xe3\x01\n\x0fUpdateNamespace\x12\x37.temporal.api.workflowservice.v1.UpdateNamespaceRequest\x1a\x38.temporal.api.workflowservice.v1.UpdateNamespaceResponse"]\x82\xd3\xe4\x93\x02W"&/cluster/namespaces/{namespace}/update:\x01*Z*"%/api/v1/namespaces/{namespace}/update:\x01*\x12\x8f\x01\n\x12\x44\x65precateNamespace\x12:.temporal.api.workflowservice.v1.DeprecateNamespaceRequest\x1a;.temporal.api.workflowservice.v1.DeprecateNamespaceResponse"\x00\x12\xc6\x02\n\x16StartWorkflowExecution\x12>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponse"\xaa\x01\x82\xd3\xe4\x93\x02q"//namespaces/{namespace}/workflows/{workflow_id}:\x01*Z;"6/api/v1/namespaces/{namespace}/workflows/{workflow_id}:\x01*\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16workflow:{workflow_id}\x12\xc2\x01\n\x15\x45xecuteMultiOperation\x12=.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest\x1a>.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse"*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xfe\x02\n\x1bGetWorkflowExecutionHistory\x12\x43.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest\x1a\x44.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse"\xd3\x01\x82\xd3\xe4\x93\x02\x8f\x01\x12\x41/namespaces/{namespace}/workflows/{execution.workflow_id}/historyZJ\x12H/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history\x8a\x9d\xcc\x1b\x38\n\x14temporal-resource-id\x12 workflow:{execution.workflow_id}\x12\xa3\x03\n"GetWorkflowExecutionHistoryReverse\x12J.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest\x1aK.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse"\xe3\x01\x82\xd3\xe4\x93\x02\x9f\x01\x12I/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverseZR\x12P/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverse\x8a\x9d\xcc\x1b\x38\n\x14temporal-resource-id\x12 workflow:{execution.workflow_id}\x12\xcd\x01\n\x15PollWorkflowTaskQueue\x12=.temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"5\x8a\x9d\xcc\x1b\x30\n\x14temporal-resource-id\x12\x18poller:{poller_group_id}\x12\xd7\x01\n\x1cRespondWorkflowTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse"*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xce\x01\n\x19RespondWorkflowTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse"*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xcd\x01\n\x15PollActivityTaskQueue\x12=.temporal.api.workflowservice.v1.PollActivityTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse"5\x8a\x9d\xcc\x1b\x30\n\x14temporal-resource-id\x12\x18poller:{poller_group_id}\x12\xc2\x02\n\x1bRecordActivityTaskHeartbeat\x12\x43.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest\x1a\x44.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse"\x97\x01\x82\xd3\xe4\x93\x02g"*/namespaces/{namespace}/activity-heartbeat:\x01*Z6"1/api/v1/namespaces/{namespace}/activity-heartbeat:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xa8\x04\n\x1fRecordActivityTaskHeartbeatById\x12G.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest\x1aH.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse"\xf1\x02\x82\xd3\xe4\x93\x02\xc0\x02":/namespaces/{namespace}/activities/{activity_id}/heartbeat:\x01*ZF"A/api/v1/namespaces/{namespace}/activities/{activity_id}/heartbeat:\x01*ZW"R/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/heartbeat:\x01*Z^"Y/api/v1/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/heartbeat:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xc3\x02\n\x1cRespondActivityTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse"\x95\x01\x82\xd3\xe4\x93\x02\x65")/namespaces/{namespace}/activity-complete:\x01*Z5"0/api/v1/namespaces/{namespace}/activity-complete:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xa7\x04\n RespondActivityTaskCompletedById\x12H.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest\x1aI.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse"\xed\x02\x82\xd3\xe4\x93\x02\xbc\x02"9/namespaces/{namespace}/activities/{activity_id}/complete:\x01*ZE"@/api/v1/namespaces/{namespace}/activities/{activity_id}/complete:\x01*ZV"Q/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/complete:\x01*Z]"X/api/v1/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/complete:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xb2\x02\n\x19RespondActivityTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse"\x8d\x01\x82\xd3\xe4\x93\x02]"%/namespaces/{namespace}/activity-fail:\x01*Z1",/api/v1/namespaces/{namespace}/activity-fail:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\x8e\x04\n\x1dRespondActivityTaskFailedById\x12\x45.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest\x1a\x46.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse"\xdd\x02\x82\xd3\xe4\x93\x02\xac\x02"5/namespaces/{namespace}/activities/{activity_id}/fail:\x01*ZA".temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse"\xf0\x01\x82\xd3\xe4\x93\x02\xa3\x01"H/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset:\x01*ZT"O/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset:\x01*\x8a\x9d\xcc\x1b\x41\n\x14temporal-resource-id\x12)workflow:{workflow_execution.workflow_id}\x12\xa0\x03\n\x1aTerminateWorkflowExecution\x12\x42.temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest\x1a\x43.temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse"\xf8\x01\x82\xd3\xe4\x93\x02\xab\x01"L/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate:\x01*ZX"S/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate:\x01*\x8a\x9d\xcc\x1b\x41\n\x14temporal-resource-id\x12)workflow:{workflow_execution.workflow_id}\x12\xe4\x01\n\x17\x44\x65leteWorkflowExecution\x12?.temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse"F\x8a\x9d\xcc\x1b\x41\n\x14temporal-resource-id\x12)workflow:{workflow_execution.workflow_id}\x12\xa7\x01\n\x1aListOpenWorkflowExecutions\x12\x42.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest\x1a\x43.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse"\x00\x12\xad\x01\n\x1cListClosedWorkflowExecutions\x12\x44.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest\x1a\x45.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse"\x00\x12\xf0\x01\n\x16ListWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse"U\x82\xd3\xe4\x93\x02O\x12!/namespaces/{namespace}/workflowsZ*\x12(/api/v1/namespaces/{namespace}/workflows\x12\x9a\x02\n\x1eListArchivedWorkflowExecutions\x12\x46.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest\x1aG.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse"g\x82\xd3\xe4\x93\x02\x61\x12*/namespaces/{namespace}/archived-workflowsZ3\x12\x31/api/v1/namespaces/{namespace}/archived-workflows\x12\x9b\x01\n\x16ScanWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse"\x00\x12\xfd\x01\n\x17\x43ountWorkflowExecutions\x12?.temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest\x1a@.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse"_\x82\xd3\xe4\x93\x02Y\x12&/namespaces/{namespace}/workflow-countZ/\x12-/api/v1/namespaces/{namespace}/workflow-count\x12\x92\x01\n\x13GetSearchAttributes\x12;.temporal.api.workflowservice.v1.GetSearchAttributesRequest\x1a<.temporal.api.workflowservice.v1.GetSearchAttributesResponse"\x00\x12\xd9\x01\n\x19RespondQueryTaskCompleted\x12\x41.temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse"5\x8a\x9d\xcc\x1b\x30\n\x14temporal-resource-id\x12\x18poller:{poller_group_id}\x12\xd2\x01\n\x14ResetStickyTaskQueue\x12<.temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest\x1a=.temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse"=\x8a\x9d\xcc\x1b\x38\n\x14temporal-resource-id\x12 workflow:{execution.workflow_id}\x12\x83\x01\n\x0eShutdownWorker\x12\x36.temporal.api.workflowservice.v1.ShutdownWorkerRequest\x1a\x37.temporal.api.workflowservice.v1.ShutdownWorkerResponse"\x00\x12\xfc\x02\n\rQueryWorkflow\x12\x35.temporal.api.workflowservice.v1.QueryWorkflowRequest\x1a\x36.temporal.api.workflowservice.v1.QueryWorkflowResponse"\xfb\x01\x82\xd3\xe4\x93\x02\xb7\x01"R/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}:\x01*Z^"Y/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}:\x01*\x8a\x9d\xcc\x1b\x38\n\x14temporal-resource-id\x12 workflow:{execution.workflow_id}\x12\xe7\x02\n\x19\x44\x65scribeWorkflowExecution\x12\x41.temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest\x1a\x42.temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse"\xc2\x01\x82\xd3\xe4\x93\x02\x7f\x12\x39/namespaces/{namespace}/workflows/{execution.workflow_id}ZB\x12@/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}\x8a\x9d\xcc\x1b\x38\n\x14temporal-resource-id\x12 workflow:{execution.workflow_id}\x12\xc2\x02\n\x11\x44\x65scribeTaskQueue\x12\x39.temporal.api.workflowservice.v1.DescribeTaskQueueRequest\x1a:.temporal.api.workflowservice.v1.DescribeTaskQueueResponse"\xb5\x01\x82\xd3\xe4\x93\x02w\x12\x35/namespaces/{namespace}/task-queues/{task_queue.name}Z>\x12/namespaces/{namespace}/schedules/{schedule_id}/matching-timesZG\x12\x45/api/v1/namespaces/{namespace}/schedules/{schedule_id}/matching-times\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16schedule:{schedule_id}\x12\xa8\x02\n\x0e\x44\x65leteSchedule\x12\x36.temporal.api.workflowservice.v1.DeleteScheduleRequest\x1a\x37.temporal.api.workflowservice.v1.DeleteScheduleResponse"\xa4\x01\x82\xd3\xe4\x93\x02k*//namespaces/{namespace}/schedules/{schedule_id}Z8*6/api/v1/namespaces/{namespace}/schedules/{schedule_id}\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16schedule:{schedule_id}\x12\xd5\x01\n\rListSchedules\x12\x35.temporal.api.workflowservice.v1.ListSchedulesRequest\x1a\x36.temporal.api.workflowservice.v1.ListSchedulesResponse"U\x82\xd3\xe4\x93\x02O\x12!/namespaces/{namespace}/schedulesZ*\x12(/api/v1/namespaces/{namespace}/schedules\x12\xe2\x01\n\x0e\x43ountSchedules\x12\x36.temporal.api.workflowservice.v1.CountSchedulesRequest\x1a\x37.temporal.api.workflowservice.v1.CountSchedulesResponse"_\x82\xd3\xe4\x93\x02Y\x12&/namespaces/{namespace}/schedule-countZ/\x12-/api/v1/namespaces/{namespace}/schedule-count\x12\xb9\x01\n UpdateWorkerBuildIdCompatibility\x12H.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest\x1aI.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse"\x00\x12\xe1\x02\n\x1dGetWorkerBuildIdCompatibility\x12\x45.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest\x1a\x46.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse"\xb0\x01\x82\xd3\xe4\x93\x02\xa9\x01\x12N/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibilityZW\x12U/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibility\x12\xaa\x01\n\x1bUpdateWorkerVersioningRules\x12\x43.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest\x1a\x44.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse"\x00\x12\xc6\x02\n\x18GetWorkerVersioningRules\x12@.temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest\x1a\x41.temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01\x12H/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rulesZQ\x12O/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rules\x12\x97\x02\n\x19GetWorkerTaskReachability\x12\x41.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest\x1a\x42.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse"s\x82\xd3\xe4\x93\x02m\x12\x30/namespaces/{namespace}/worker-task-reachabilityZ9\x12\x37/api/v1/namespaces/{namespace}/worker-task-reachability\x12\xc8\x02\n\x12\x44\x65scribeDeployment\x12:.temporal.api.workflowservice.v1.DescribeDeploymentRequest\x1a;.temporal.api.workflowservice.v1.DescribeDeploymentResponse"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01\x12R/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}Z[\x12Y/api/v1/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}\x12\x81\x04\n\x1f\x44\x65scribeWorkerDeploymentVersion\x12G.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionRequest\x1aH.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse"\xca\x02\x82\xd3\xe4\x93\x02\xf7\x01\x12u/namespaces/{namespace}/worker-deployment-versions/{deployment_version.deployment_name}/{deployment_version.build_id}Z~\x12|/api/v1/namespaces/{namespace}/worker-deployment-versions/{deployment_version.deployment_name}/{deployment_version.build_id}\x8a\x9d\xcc\x1bG\n\x14temporal-resource-id\x12/deployment:{deployment_version.deployment_name}\x12\xdf\x01\n\x0fListDeployments\x12\x37.temporal.api.workflowservice.v1.ListDeploymentsRequest\x1a\x38.temporal.api.workflowservice.v1.ListDeploymentsResponse"Y\x82\xd3\xe4\x93\x02S\x12#/namespaces/{namespace}/deploymentsZ,\x12*/api/v1/namespaces/{namespace}/deployments\x12\xf7\x02\n\x19GetDeploymentReachability\x12\x41.temporal.api.workflowservice.v1.GetDeploymentReachabilityRequest\x1a\x42.temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse"\xd2\x01\x82\xd3\xe4\x93\x02\xcb\x01\x12_/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}/reachabilityZh\x12\x66/api/v1/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}/reachability\x12\x99\x02\n\x14GetCurrentDeployment\x12<.temporal.api.workflowservice.v1.GetCurrentDeploymentRequest\x1a=.temporal.api.workflowservice.v1.GetCurrentDeploymentResponse"\x83\x01\x82\xd3\xe4\x93\x02}\x12\x38/namespaces/{namespace}/current-deployment/{series_name}ZA\x12?/api/v1/namespaces/{namespace}/current-deployment/{series_name}\x12\xb6\x02\n\x14SetCurrentDeployment\x12<.temporal.api.workflowservice.v1.SetCurrentDeploymentRequest\x1a=.temporal.api.workflowservice.v1.SetCurrentDeploymentResponse"\xa0\x01\x82\xd3\xe4\x93\x02\x99\x01"C/namespaces/{namespace}/current-deployment/{deployment.series_name}:\x01*ZO"J/api/v1/namespaces/{namespace}/current-deployment/{deployment.series_name}:\x01*\x12\xb0\x03\n!SetWorkerDeploymentCurrentVersion\x12I.temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest\x1aJ.temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionResponse"\xf3\x01\x82\xd3\xe4\x93\x02\xb3\x01"P/namespaces/{namespace}/worker-deployments/{deployment_name}/set-current-version:\x01*Z\\"W/api/v1/namespaces/{namespace}/worker-deployments/{deployment_name}/set-current-version:\x01*\x8a\x9d\xcc\x1b\x34\n\x14temporal-resource-id\x12\x1c\x64\x65ployment:{deployment_name}\x12\xe7\x02\n\x18\x44\x65scribeWorkerDeployment\x12@.temporal.api.workflowservice.v1.DescribeWorkerDeploymentRequest\x1a\x41.temporal.api.workflowservice.v1.DescribeWorkerDeploymentResponse"\xc5\x01\x82\xd3\xe4\x93\x02\x85\x01\x12.temporal.api.workflowservice.v1.DeleteWorkerDeploymentRequest\x1a?.temporal.api.workflowservice.v1.DeleteWorkerDeploymentResponse"\xc5\x01\x82\xd3\xe4\x93\x02\x85\x01*.temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse"g\x82\xd3\xe4\x93\x02\x61\x12*/namespaces/{namespace}/worker-deploymentsZ3\x12\x31/api/v1/namespaces/{namespace}/worker-deployments\x12\xae\x02\n\x16\x43reateWorkerDeployment\x12>.temporal.api.workflowservice.v1.CreateWorkerDeploymentRequest\x1a?.temporal.api.workflowservice.v1.CreateWorkerDeploymentResponse"\x92\x01\x82\xd3\xe4\x93\x02\x8b\x01".temporal.api.workflowservice.v1.DescribeBatchOperationRequest\x1a?.temporal.api.workflowservice.v1.DescribeBatchOperationResponse"\xa0\x01\x82\xd3\xe4\x93\x02o\x12\x31/namespaces/{namespace}/batch-operations/{job_id}Z:\x12\x38/api/v1/namespaces/{namespace}/batch-operations/{job_id}\x8a\x9d\xcc\x1b&\n\x14temporal-resource-id\x12\x0e\x62\x61tch:{job_id}\x12\xf5\x01\n\x13ListBatchOperations\x12;.temporal.api.workflowservice.v1.ListBatchOperationsRequest\x1a<.temporal.api.workflowservice.v1.ListBatchOperationsResponse"c\x82\xd3\xe4\x93\x02]\x12(/namespaces/{namespace}/batch-operationsZ1\x12//api/v1/namespaces/{namespace}/batch-operations\x12\xc4\x01\n\x12PollNexusTaskQueue\x12:.temporal.api.workflowservice.v1.PollNexusTaskQueueRequest\x1a;.temporal.api.workflowservice.v1.PollNexusTaskQueueResponse"5\x8a\x9d\xcc\x1b\x30\n\x14temporal-resource-id\x12\x18poller:{poller_group_id}\x12\xd9\x01\n\x19RespondNexusTaskCompleted\x12\x41.temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse"5\x8a\x9d\xcc\x1b\x30\n\x14temporal-resource-id\x12\x18poller:{poller_group_id}\x12\xd0\x01\n\x16RespondNexusTaskFailed\x12>.temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest\x1a?.temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse"5\x8a\x9d\xcc\x1b\x30\n\x14temporal-resource-id\x12\x18poller:{poller_group_id}\x12\xe8\x02\n\x15UpdateActivityOptions\x12=.temporal.api.workflowservice.v1.UpdateActivityOptionsRequest\x1a>.temporal.api.workflowservice.v1.UpdateActivityOptionsResponse"\xcf\x01\x82\xd3\xe4\x93\x02\x8b\x01".temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse"\x95\x01\x82\xd3\xe4\x93\x02\x65")/namespaces/{namespace}/workers/heartbeat:\x01*Z5"0/api/v1/namespaces/{namespace}/workers/heartbeat:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xcb\x01\n\x0bListWorkers\x12\x33.temporal.api.workflowservice.v1.ListWorkersRequest\x1a\x34.temporal.api.workflowservice.v1.ListWorkersResponse"Q\x82\xd3\xe4\x93\x02K\x12\x1f/namespaces/{namespace}/workersZ(\x12&/api/v1/namespaces/{namespace}/workers\x12\xd8\x01\n\x0c\x43ountWorkers\x12\x34.temporal.api.workflowservice.v1.CountWorkersRequest\x1a\x35.temporal.api.workflowservice.v1.CountWorkersResponse"[\x82\xd3\xe4\x93\x02U\x12$/namespaces/{namespace}/worker-countZ-\x12+/api/v1/namespaces/{namespace}/worker-count\x12\xe2\x02\n\x15UpdateTaskQueueConfig\x12=.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest\x1a>.temporal.api.workflowservice.v1.UpdateTaskQueueConfigResponse"\xc9\x01\x82\xd3\xe4\x93\x02\x8f\x01">/namespaces/{namespace}/task-queues/{task_queue}/update-config:\x01*ZJ"E/api/v1/namespaces/{namespace}/task-queues/{task_queue}/update-config:\x01*\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16taskqueue:{task_queue}\x12\xa8\x02\n\x11\x46\x65tchWorkerConfig\x12\x39.temporal.api.workflowservice.v1.FetchWorkerConfigRequest\x1a:.temporal.api.workflowservice.v1.FetchWorkerConfigResponse"\x9b\x01\x82\xd3\xe4\x93\x02k",/namespaces/{namespace}/workers/fetch-config:\x01*Z8"3/api/v1/namespaces/{namespace}/workers/fetch-config:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xad\x02\n\x12UpdateWorkerConfig\x12:.temporal.api.workflowservice.v1.UpdateWorkerConfigRequest\x1a;.temporal.api.workflowservice.v1.UpdateWorkerConfigResponse"\x9d\x01\x82\xd3\xe4\x93\x02m"-/namespaces/{namespace}/workers/update-config:\x01*Z9"4/api/v1/namespaces/{namespace}/workers/update-config:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xcd\x02\n\x0e\x44\x65scribeWorker\x12\x36.temporal.api.workflowservice.v1.DescribeWorkerRequest\x1a\x37.temporal.api.workflowservice.v1.DescribeWorkerResponse"\xc9\x01\x82\xd3\xe4\x93\x02\x89\x01\x12>/namespaces/{namespace}/workers/describe/{worker_instance_key}ZG\x12\x45/api/v1/namespaces/{namespace}/workers/describe/{worker_instance_key}\x8a\x9d\xcc\x1b\x34\n\x14temporal-resource-id\x12\x1cworker:{worker_instance_key}\x12\xd2\x02\n\x16PauseWorkflowExecution\x12>.temporal.api.workflowservice.v1.PauseWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.PauseWorkflowExecutionResponse"\xb6\x01\x82\xd3\xe4\x93\x02}"5/namespaces/{namespace}/workflows/{workflow_id}/pause:\x01*ZA"/api/v1/namespaces/{namespace}/workflows/{workflow_id}/unpause:\x01*\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16workflow:{workflow_id}\x12\xc8\x02\n\x16StartActivityExecution\x12>.temporal.api.workflowservice.v1.StartActivityExecutionRequest\x1a?.temporal.api.workflowservice.v1.StartActivityExecutionResponse"\xac\x01\x82\xd3\xe4\x93\x02s"0/namespaces/{namespace}/activities/{activity_id}:\x01*Z<"7/api/v1/namespaces/{namespace}/activities/{activity_id}:\x01*\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16\x61\x63tivity:{activity_id}\x12\xb6\x02\n\x1cStartNexusOperationExecution\x12\x44.temporal.api.workflowservice.v1.StartNexusOperationExecutionRequest\x1a\x45.temporal.api.workflowservice.v1.StartNexusOperationExecutionResponse"\x88\x01\x82\xd3\xe4\x93\x02\x81\x01"7/namespaces/{namespace}/nexus-operations/{operation_id}:\x01*ZC">/api/v1/namespaces/{namespace}/nexus-operations/{operation_id}:\x01*\x12\xcb\x02\n\x19\x44\x65scribeActivityExecution\x12\x41.temporal.api.workflowservice.v1.DescribeActivityExecutionRequest\x1a\x42.temporal.api.workflowservice.v1.DescribeActivityExecutionResponse"\xa6\x01\x82\xd3\xe4\x93\x02m\x12\x30/namespaces/{namespace}/activities/{activity_id}Z9\x12\x37/api/v1/namespaces/{namespace}/activities/{activity_id}\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16\x61\x63tivity:{activity_id}\x12\xb8\x02\n\x1f\x44\x65scribeNexusOperationExecution\x12G.temporal.api.workflowservice.v1.DescribeNexusOperationExecutionRequest\x1aH.temporal.api.workflowservice.v1.DescribeNexusOperationExecutionResponse"\x81\x01\x82\xd3\xe4\x93\x02{\x12\x37/namespaces/{namespace}/nexus-operations/{operation_id}Z@\x12>/api/v1/namespaces/{namespace}/nexus-operations/{operation_id}\x12\xcf\x02\n\x15PollActivityExecution\x12=.temporal.api.workflowservice.v1.PollActivityExecutionRequest\x1a>.temporal.api.workflowservice.v1.PollActivityExecutionResponse"\xb6\x01\x82\xd3\xe4\x93\x02}\x12\x38/namespaces/{namespace}/activities/{activity_id}/outcomeZA\x12?/api/v1/namespaces/{namespace}/activities/{activity_id}/outcome\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16\x61\x63tivity:{activity_id}\x12\xb7\x02\n\x1bPollNexusOperationExecution\x12\x43.temporal.api.workflowservice.v1.PollNexusOperationExecutionRequest\x1a\x44.temporal.api.workflowservice.v1.PollNexusOperationExecutionResponse"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01\x12.temporal.api.workflowservice.v1.ListActivityExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ListActivityExecutionsResponse"W\x82\xd3\xe4\x93\x02Q\x12"/namespaces/{namespace}/activitiesZ+\x12)/api/v1/namespaces/{namespace}/activities\x12\x90\x02\n\x1cListNexusOperationExecutions\x12\x44.temporal.api.workflowservice.v1.ListNexusOperationExecutionsRequest\x1a\x45.temporal.api.workflowservice.v1.ListNexusOperationExecutionsResponse"c\x82\xd3\xe4\x93\x02]\x12(/namespaces/{namespace}/nexus-operationsZ1\x12//api/v1/namespaces/{namespace}/nexus-operations\x12\xfd\x01\n\x17\x43ountActivityExecutions\x12?.temporal.api.workflowservice.v1.CountActivityExecutionsRequest\x1a@.temporal.api.workflowservice.v1.CountActivityExecutionsResponse"_\x82\xd3\xe4\x93\x02Y\x12&/namespaces/{namespace}/activity-countZ/\x12-/api/v1/namespaces/{namespace}/activity-count\x12\x9d\x02\n\x1d\x43ountNexusOperationExecutions\x12\x45.temporal.api.workflowservice.v1.CountNexusOperationExecutionsRequest\x1a\x46.temporal.api.workflowservice.v1.CountNexusOperationExecutionsResponse"m\x82\xd3\xe4\x93\x02g\x12-/namespaces/{namespace}/nexus-operation-countZ6\x12\x34/api/v1/namespaces/{namespace}/nexus-operation-count\x12\xef\x02\n\x1eRequestCancelActivityExecution\x12\x46.temporal.api.workflowservice.v1.RequestCancelActivityExecutionRequest\x1aG.temporal.api.workflowservice.v1.RequestCancelActivityExecutionResponse"\xbb\x01\x82\xd3\xe4\x93\x02\x81\x01"7/namespaces/{namespace}/activities/{activity_id}/cancel:\x01*ZC">/api/v1/namespaces/{namespace}/activities/{activity_id}/cancel:\x01*\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16\x61\x63tivity:{activity_id}\x12\xdc\x02\n$RequestCancelNexusOperationExecution\x12L.temporal.api.workflowservice.v1.RequestCancelNexusOperationExecutionRequest\x1aM.temporal.api.workflowservice.v1.RequestCancelNexusOperationExecutionResponse"\x96\x01\x82\xd3\xe4\x93\x02\x8f\x01">/namespaces/{namespace}/nexus-operations/{operation_id}/cancel:\x01*ZJ"E/api/v1/namespaces/{namespace}/nexus-operations/{operation_id}/cancel:\x01*\x12\xe9\x02\n\x1aTerminateActivityExecution\x12\x42.temporal.api.workflowservice.v1.TerminateActivityExecutionRequest\x1a\x43.temporal.api.workflowservice.v1.TerminateActivityExecutionResponse"\xc1\x01\x82\xd3\xe4\x93\x02\x87\x01":/namespaces/{namespace}/activities/{activity_id}/terminate:\x01*ZF"A/api/v1/namespaces/{namespace}/activities/{activity_id}/terminate:\x01*\x8a\x9d\xcc\x1b.\n\x14temporal-resource-id\x12\x16\x61\x63tivity:{activity_id}\x12\x9e\x01\n\x17\x44\x65leteActivityExecution\x12?.temporal.api.workflowservice.v1.DeleteActivityExecutionRequest\x1a@.temporal.api.workflowservice.v1.DeleteActivityExecutionResponse"\x00\x12\xfd\x03\n\x16PauseActivityExecution\x12>.temporal.api.workflowservice.v1.PauseActivityExecutionRequest\x1a?.temporal.api.workflowservice.v1.PauseActivityExecutionResponse"\xe1\x02\x82\xd3\xe4\x93\x02\xb0\x02"6/namespaces/{namespace}/activities/{activity_id}/pause:\x01*ZB"=/api/v1/namespaces/{namespace}/activities/{activity_id}/pause:\x01*ZS"N/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/pause:\x01*ZZ"U/api/v1/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/pause:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xfd\x03\n\x16ResetActivityExecution\x12>.temporal.api.workflowservice.v1.ResetActivityExecutionRequest\x1a?.temporal.api.workflowservice.v1.ResetActivityExecutionResponse"\xe1\x02\x82\xd3\xe4\x93\x02\xb0\x02"6/namespaces/{namespace}/activities/{activity_id}/reset:\x01*ZB"=/api/v1/namespaces/{namespace}/activities/{activity_id}/reset:\x01*ZS"N/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/reset:\x01*ZZ"U/api/v1/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/reset:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\x8b\x04\n\x18UnpauseActivityExecution\x12@.temporal.api.workflowservice.v1.UnpauseActivityExecutionRequest\x1a\x41.temporal.api.workflowservice.v1.UnpauseActivityExecutionResponse"\xe9\x02\x82\xd3\xe4\x93\x02\xb8\x02"8/namespaces/{namespace}/activities/{activity_id}/unpause:\x01*ZD"?/api/v1/namespaces/{namespace}/activities/{activity_id}/unpause:\x01*ZU"P/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/unpause:\x01*Z\\"W/api/v1/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/unpause:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xb9\x04\n\x1eUpdateActivityExecutionOptions\x12\x46.temporal.api.workflowservice.v1.UpdateActivityExecutionOptionsRequest\x1aG.temporal.api.workflowservice.v1.UpdateActivityExecutionOptionsResponse"\x85\x03\x82\xd3\xe4\x93\x02\xd4\x02"?/namespaces/{namespace}/activities/{activity_id}/update-options:\x01*ZK"F/api/v1/namespaces/{namespace}/activities/{activity_id}/update-options:\x01*Z\\"W/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/update-options:\x01*Zc"^/api/v1/namespaces/{namespace}/workflows/{workflow_id}/activities/{activity_id}/update-options:\x01*\x8a\x9d\xcc\x1b%\n\x14temporal-resource-id\x12\r{resource_id}\x12\xd6\x02\n TerminateNexusOperationExecution\x12H.temporal.api.workflowservice.v1.TerminateNexusOperationExecutionRequest\x1aI.temporal.api.workflowservice.v1.TerminateNexusOperationExecutionResponse"\x9c\x01\x82\xd3\xe4\x93\x02\x95\x01"A/namespaces/{namespace}/nexus-operations/{operation_id}/terminate:\x01*ZM"H/api/v1/namespaces/{namespace}/nexus-operations/{operation_id}/terminate:\x01*\x12\xb0\x01\n\x1d\x44\x65leteNexusOperationExecution\x12\x45.temporal.api.workflowservice.v1.DeleteNexusOperationExecutionRequest\x1a\x46.temporal.api.workflowservice.v1.DeleteNexusOperationExecutionResponse"\x00\x12\xc1\x03\n!PollWorkflowExecutionTimeSkipping\x12I.temporal.api.workflowservice.v1.PollWorkflowExecutionTimeSkippingRequest\x1aJ.temporal.api.workflowservice.v1.PollWorkflowExecutionTimeSkippingResponse"\x84\x02\x82\xd3\xe4\x93\x02\xb7\x01\x12U/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/time-skipping/pollZ^\x12\\/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/time-skipping/poll\x8a\x9d\xcc\x1b\x41\n\x14temporal-resource-id\x12)workflow:{workflow_execution.workflow_id}B\xb6\x01\n"io.temporal.api.workflowservice.v1B\x0cServiceProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' ) - -_WORKFLOWSERVICE = DESCRIPTOR.services_by_name["WorkflowService"] +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n"io.temporal.api.workflowservice.v1B\014ServiceProtoP\001Z5go.temporal.io/api/workflowservice/v1;workflowservice\252\002!Temporalio.Api.WorkflowService.V1\352\002$Temporalio::Api::WorkflowService::V1' diff --git a/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi b/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi index b743a159c..8f9ff69ff 100644 --- a/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi @@ -4,11 +4,24 @@ isort:skip_file """ import abc +import collections.abc +import typing import grpc +import grpc.aio import temporalio.api.workflowservice.v1.request_response_pb2 +_T = typing.TypeVar("_T") + +class _MaybeAsyncIterator( + collections.abc.AsyncIterator[_T], + collections.abc.Iterator[_T], + metaclass=abc.ABCMeta, +): ... +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] + ... + class WorkflowServiceStub: """WorkflowService API defines how Temporal SDKs and other clients interact with the Temporal server to create and interact with workflows and activities. @@ -23,7 +36,9 @@ class WorkflowServiceStub: activity, responding with completion or failure. """ - def __init__(self, channel: grpc.Channel) -> None: ... + def __init__( + self, channel: typing.Union[grpc.Channel, grpc.aio.Channel] + ) -> None: ... RegisterNamespace: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RegisterNamespaceRequest, temporalio.api.workflowservice.v1.request_response_pb2.RegisterNamespaceResponse, @@ -35,16 +50,19 @@ class WorkflowServiceStub: isolation for all resources within the namespace. All resources belongs to exactly one namespace. """ + DescribeNamespace: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeNamespaceRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeNamespaceResponse, ] """DescribeNamespace returns the information and configuration for a registered namespace.""" + ListNamespaces: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListNamespacesRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListNamespacesResponse, ] """ListNamespaces returns the information and configuration for all namespaces.""" + UpdateNamespace: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateNamespaceRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateNamespaceResponse, @@ -52,6 +70,7 @@ class WorkflowServiceStub: """UpdateNamespace is used to update the information and configuration of a registered namespace. """ + DeprecateNamespace: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceRequest, temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceResponse, @@ -65,6 +84,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: Deprecated --) """ + StartWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionResponse, @@ -75,6 +95,7 @@ class WorkflowServiceStub: also schedule the first workflow task. Returns `WorkflowExecutionAlreadyStarted`, if an instance already exists with same workflow id. """ + ExecuteMultiOperation: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationRequest, temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationResponse, @@ -90,6 +111,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: To be exposed over HTTP in the future. --) """ + GetWorkflowExecutionHistory: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryResponse, @@ -97,6 +119,7 @@ class WorkflowServiceStub: """GetWorkflowExecutionHistory returns the history of specified workflow execution. Fails with `NotFound` if the specified workflow execution is unknown to the service. """ + GetWorkflowExecutionHistoryReverse: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseResponse, @@ -105,6 +128,7 @@ class WorkflowServiceStub: order (starting from last event). Fails with`NotFound` if the specified workflow execution is unknown to the service. """ + PollWorkflowTaskQueue: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueRequest, temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueResponse, @@ -119,6 +143,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + RespondWorkflowTaskCompleted: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedResponse, @@ -133,6 +158,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + RespondWorkflowTaskFailed: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedResponse, @@ -150,6 +176,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + PollActivityTaskQueue: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueRequest, temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueResponse, @@ -170,6 +197,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + RecordActivityTaskHeartbeat: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatRequest, temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatResponse, @@ -188,6 +216,7 @@ class WorkflowServiceStub: used by the activity to checkpoint progress. The `cancel_requested` field in the response indicates whether cancellation has been requested for the activity. """ + RecordActivityTaskHeartbeatById: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdRequest, temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdResponse, @@ -198,6 +227,7 @@ class WorkflowServiceStub: (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "By" is used to indicate request type. --) """ + RespondActivityTaskCompleted: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedResponse, @@ -209,6 +239,7 @@ class WorkflowServiceStub: and a new workflow task created for the workflow. Fails with `NotFound` if the task token is no longer valid due to activity timeout, already being completed, or never having existed. """ + RespondActivityTaskCompletedById: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdResponse, @@ -219,6 +250,7 @@ class WorkflowServiceStub: (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "By" is used to indicate request type. --) """ + RespondActivityTaskFailed: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedResponse, @@ -229,6 +261,7 @@ class WorkflowServiceStub: a new workflow task created for the workflow. Fails with `NotFound` if the task token is no longer valid due to activity timeout, already being completed, or never having existed. """ + RespondActivityTaskFailedById: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdResponse, @@ -239,6 +272,7 @@ class WorkflowServiceStub: (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "By" is used to indicate request type. --) """ + RespondActivityTaskCanceled: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledResponse, @@ -249,6 +283,7 @@ class WorkflowServiceStub: and a new workflow task created for the workflow. Fails with `NotFound` if the task token is no longer valid due to activity timeout, already being completed, or never having existed. """ + RespondActivityTaskCanceledById: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdResponse, @@ -259,6 +294,7 @@ class WorkflowServiceStub: (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "By" is used to indicate request type. --) """ + RequestCancelWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionResponse, @@ -270,6 +306,7 @@ class WorkflowServiceStub: workflow history and a new workflow task created for the workflow. It returns success if the requested workflow is already closed. It fails with 'NotFound' if the requested workflow doesn't exist. """ + SignalWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionResponse, @@ -279,6 +316,7 @@ class WorkflowServiceStub: This results in a `WORKFLOW_EXECUTION_SIGNALED` event recorded in the history and a workflow task being created for the execution. """ + SignalWithStartWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse, @@ -296,6 +334,7 @@ class WorkflowServiceStub: (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "With" is used to indicate combined operation. --) """ + ResetWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionResponse, @@ -306,6 +345,7 @@ class WorkflowServiceStub: in the reset history; the preceding `WORKFLOW_TASK_STARTED` event remains and will be marked as failed immediately, and a new workflow task will be scheduled to retry it. """ + TerminateWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionResponse, @@ -314,6 +354,7 @@ class WorkflowServiceStub: `WORKFLOW_EXECUTION_TERMINATED` event in the history and immediately terminating the execution instance. """ + DeleteWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionResponse, @@ -326,6 +367,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: Workflow deletion not exposed to HTTP, users should use cancel or terminate. --) """ + ListOpenWorkflowExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsResponse, @@ -335,6 +377,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) """ + ListClosedWorkflowExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsResponse, @@ -344,16 +387,19 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) """ + ListWorkflowExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsResponse, ] """ListWorkflowExecutions is a visibility API to list workflow executions in a specific namespace.""" + ListArchivedWorkflowExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsResponse, ] """ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific namespace.""" + ScanWorkflowExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsResponse, @@ -365,11 +411,13 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) """ + CountWorkflowExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsResponse, ] """CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace.""" + GetSearchAttributes: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesResponse, @@ -379,6 +427,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose this search attribute API to HTTP (but may expose on OperatorService). --) """ + RespondQueryTaskCompleted: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedResponse, @@ -392,6 +441,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + ResetStickyTaskQueue: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueRequest, temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueResponse, @@ -411,6 +461,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + ShutdownWorker: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ShutdownWorkerRequest, temporalio.api.workflowservice.v1.request_response_pb2.ShutdownWorkerResponse, @@ -429,16 +480,19 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + QueryWorkflow: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.QueryWorkflowRequest, temporalio.api.workflowservice.v1.request_response_pb2.QueryWorkflowResponse, ] """QueryWorkflow requests a query be executed for a specified workflow execution.""" + DescribeWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionResponse, ] """DescribeWorkflowExecution returns information about the specified workflow execution.""" + DescribeTaskQueue: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueResponse, @@ -448,16 +502,19 @@ class WorkflowServiceStub: - Workflow Reachability status - Backlog info for Workflow and/or Activity tasks """ + GetClusterInfo: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoResponse, ] """GetClusterInfo returns information about temporal cluster""" + GetSystemInfo: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetSystemInfoRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetSystemInfoResponse, ] """GetSystemInfo returns information about the system.""" + ListTaskQueuePartitions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsResponse, @@ -465,46 +522,55 @@ class WorkflowServiceStub: """(-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose this low-level API to HTTP. --) """ + CreateSchedule: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.CreateScheduleRequest, temporalio.api.workflowservice.v1.request_response_pb2.CreateScheduleResponse, ] """Creates a new schedule.""" + DescribeSchedule: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeScheduleRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeScheduleResponse, ] """Returns the schedule description and current state of an existing schedule.""" + UpdateSchedule: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateScheduleRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateScheduleResponse, ] """Changes the configuration or state of an existing schedule.""" + PatchSchedule: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PatchScheduleRequest, temporalio.api.workflowservice.v1.request_response_pb2.PatchScheduleResponse, ] """Makes a specific change to a schedule or triggers an immediate action.""" + ListScheduleMatchingTimes: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesResponse, ] """Lists matching times within a range.""" + DeleteSchedule: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DeleteScheduleRequest, temporalio.api.workflowservice.v1.request_response_pb2.DeleteScheduleResponse, ] """Deletes a schedule, removing it from the system.""" + ListSchedules: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListSchedulesRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListSchedulesResponse, ] """List all schedules in a namespace.""" + CountSchedules: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.CountSchedulesRequest, temporalio.api.workflowservice.v1.request_response_pb2.CountSchedulesResponse, ] """CountSchedules is a visibility API to count schedules in a specific namespace.""" + UpdateWorkerBuildIdCompatibility: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityResponse, @@ -528,6 +594,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do yet expose versioning API to HTTP. --) """ + GetWorkerBuildIdCompatibility: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityResponse, @@ -536,6 +603,7 @@ class WorkflowServiceStub: Will be removed in server version v1.32.0. Fetches the worker build id versioning sets for a task queue. """ + UpdateWorkerVersioningRules: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesResponse, @@ -565,6 +633,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do yet expose versioning API to HTTP. --) """ + GetWorkerVersioningRules: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesResponse, @@ -572,6 +641,7 @@ class WorkflowServiceStub: """Fetches the Build ID assignment and redirect rules for a Task Queue. Will be removed in server version v1.32.0. """ + GetWorkerTaskReachability: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityResponse, @@ -592,6 +662,7 @@ class WorkflowServiceStub: Open source users can adjust this limit by setting the server's dynamic config value for `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. """ + DescribeDeployment: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentResponse, @@ -599,11 +670,13 @@ class WorkflowServiceStub: """Describes a worker deployment. Deprecated. Replaced with `DescribeWorkerDeploymentVersion`. """ + DescribeWorkerDeploymentVersion: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionResponse, ] """Describes a worker deployment version.""" + ListDeployments: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsResponse, @@ -612,6 +685,7 @@ class WorkflowServiceStub: name. Deprecated. Replaced with `ListWorkerDeployments`. """ + GetDeploymentReachability: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityResponse, @@ -624,6 +698,7 @@ class WorkflowServiceStub: reachability calculation time. Deprecated. Replaced with `DrainageInfo` returned by `DescribeWorkerDeploymentVersion`. """ + GetCurrentDeployment: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentRequest, temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentResponse, @@ -631,6 +706,7 @@ class WorkflowServiceStub: """Returns the current deployment (and its info) for a given deployment series. Deprecated. Replaced by `current_version` returned by `DescribeWorkerDeployment`. """ + SetCurrentDeployment: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentRequest, temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentResponse, @@ -639,6 +715,7 @@ class WorkflowServiceStub: the metadata of the deployment as well. Deprecated. Replaced by `SetWorkerDeploymentCurrentVersion`. """ + SetWorkerDeploymentCurrentVersion: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionRequest, temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionResponse, @@ -646,11 +723,13 @@ class WorkflowServiceStub: """Set/unset the Current Version of a Worker Deployment. Automatically unsets the Ramping Version if it is the Version being set as Current. """ + DescribeWorkerDeployment: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentResponse, ] """Describes a Worker Deployment.""" + DeleteWorkerDeployment: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentRequest, temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentResponse, @@ -658,6 +737,7 @@ class WorkflowServiceStub: """Deletes records of (an old) Deployment. A deployment can only be deleted if it has no Version in it. """ + DeleteWorkerDeploymentVersion: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionRequest, temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionResponse, @@ -669,6 +749,7 @@ class WorkflowServiceStub: - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition can be skipped by passing `skip-drainage=true`. """ + SetWorkerDeploymentRampingVersion: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionRequest, temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionResponse, @@ -676,11 +757,13 @@ class WorkflowServiceStub: """Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. Can be used for gradual ramp to unversioned workers too. """ + ListWorkerDeployments: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsResponse, ] """Lists all Worker Deployments that are tracked in the Namespace.""" + CreateWorkerDeployment: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentRequest, temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentResponse, @@ -690,6 +773,7 @@ class WorkflowServiceStub: Experimental. This API might significantly change or be removed in a future release. """ + CreateWorkerDeploymentVersion: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentVersionRequest, temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentVersionResponse, @@ -699,6 +783,7 @@ class WorkflowServiceStub: Experimental. This API might significantly change or be removed in a future release. """ + UpdateWorkerDeploymentVersionComputeConfig: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionComputeConfigRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionComputeConfigResponse, @@ -706,6 +791,7 @@ class WorkflowServiceStub: """Updates the compute config attached to a Worker Deployment Version. Experimental. This API might significantly change or be removed in a future release. """ + ValidateWorkerDeploymentVersionComputeConfig: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ValidateWorkerDeploymentVersionComputeConfigRequest, temporalio.api.workflowservice.v1.request_response_pb2.ValidateWorkerDeploymentVersionComputeConfigResponse, @@ -713,11 +799,13 @@ class WorkflowServiceStub: """Validates the compute config without attaching it to a Worker Deployment Version. Experimental. This API might significantly change or be removed in a future release. """ + UpdateWorkerDeploymentVersionMetadata: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataResponse, ] """Updates the user-given metadata attached to a Worker Deployment Version.""" + SetWorkerDeploymentManager: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentManagerRequest, temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentManagerResponse, @@ -725,11 +813,13 @@ class WorkflowServiceStub: """Set/unset the ManagerIdentity of a Worker Deployment. Experimental. This API might significantly change or be removed in a future release. """ + UpdateWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionResponse, ] """Invokes the specified Update function on user Workflow code.""" + PollWorkflowExecutionUpdate: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateRequest, temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateResponse, @@ -742,26 +832,31 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We don't expose update polling API to HTTP in favor of a potential future non-blocking form. --) """ + StartBatchOperation: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationRequest, temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationResponse, ] """StartBatchOperation starts a new batch operation""" + StopBatchOperation: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationRequest, temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationResponse, ] """StopBatchOperation stops a batch operation""" + DescribeBatchOperation: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationResponse, ] """DescribeBatchOperation returns the information about a batch operation""" + ListBatchOperations: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsResponse, ] """ListBatchOperations returns a list of batch operations""" + PollNexusTaskQueue: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueRequest, temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse, @@ -770,6 +865,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + RespondNexusTaskCompleted: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedResponse, @@ -778,6 +874,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + RespondNexusTaskFailed: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedRequest, temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedResponse, @@ -786,6 +883,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + UpdateActivityOptions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsResponse, @@ -795,11 +893,13 @@ class WorkflowServiceStub: This API will be deprecated soon and replaced with a newer UpdateActivityExecutionOptions that is better named and structured to work well for standalone activities. """ + UpdateWorkflowExecutionOptions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsResponse, ] """UpdateWorkflowExecutionOptions partially updates the WorkflowExecutionOptions of an existing workflow execution.""" + PauseActivity: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityRequest, temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityResponse, @@ -823,6 +923,7 @@ class WorkflowServiceStub: This API will be deprecated soon and replaced with a newer PauseActivityExecution that is better named and structured to work well for standalone activities. """ + UnpauseActivity: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityRequest, temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityResponse, @@ -843,6 +944,7 @@ class WorkflowServiceStub: This API will be deprecated soon and replaced with a newer UnpauseActivityExecution that is better named and structured to work well for standalone activities. """ + ResetActivity: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityRequest, temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityResponse, @@ -867,6 +969,7 @@ class WorkflowServiceStub: This API will be deprecated soon and replaced with a newer ResetActivityExecution that is better named and structured to work well for standalone activities. """ + CreateWorkflowRule: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkflowRuleRequest, temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkflowRuleResponse, @@ -877,6 +980,7 @@ class WorkflowServiceStub: Note: the rules are part of namespace configuration and will be stored in the namespace config. Namespace config is eventually consistent. """ + DescribeWorkflowRule: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowRuleRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowRuleResponse, @@ -884,16 +988,19 @@ class WorkflowServiceStub: """DescribeWorkflowRule return the rule specification for existing rule id. If there is no rule with such id - NOT FOUND error will be returned. """ + DeleteWorkflowRule: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowRuleRequest, temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowRuleResponse, ] """Delete rule by rule id""" + ListWorkflowRules: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowRulesRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowRulesResponse, ] """Return all namespace workflow rules""" + TriggerWorkflowRule: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.TriggerWorkflowRuleRequest, temporalio.api.workflowservice.v1.request_response_pb2.TriggerWorkflowRuleResponse, @@ -903,21 +1010,25 @@ class WorkflowServiceStub: * trigger rule for a specific workflow execution without creating a rule; This is useful for one-off operations. """ + RecordWorkerHeartbeat: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RecordWorkerHeartbeatRequest, temporalio.api.workflowservice.v1.request_response_pb2.RecordWorkerHeartbeatResponse, ] """WorkerHeartbeat receive heartbeat request from the worker.""" + ListWorkers: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListWorkersRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListWorkersResponse, ] """ListWorkers is a visibility API to list worker status information in a specific namespace.""" + CountWorkers: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.CountWorkersRequest, temporalio.api.workflowservice.v1.request_response_pb2.CountWorkersResponse, ] """CountWorkers counts the number of workers in a specific namespace.""" + UpdateTaskQueueConfig: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateTaskQueueConfigRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateTaskQueueConfigResponse, @@ -927,11 +1038,13 @@ class WorkflowServiceStub: which uncouples the rate limit from the worker lifecycle. If the overall queue rate limit is unset, the worker-set rate limit takes effect. """ + FetchWorkerConfig: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.FetchWorkerConfigRequest, temporalio.api.workflowservice.v1.request_response_pb2.FetchWorkerConfigResponse, ] """FetchWorkerConfig returns the worker configuration for a specific worker.""" + UpdateWorkerConfig: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerConfigRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerConfigResponse, @@ -940,11 +1053,13 @@ class WorkflowServiceStub: Can be used to partially update the worker configuration. Can be used to update the configuration of multiple workers. """ + DescribeWorker: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerResponse, ] """DescribeWorker returns information about the specified worker.""" + PauseWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PauseWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.PauseWorkflowExecutionResponse, @@ -958,6 +1073,7 @@ class WorkflowServiceStub: - All server-side events will continue to be processed by the server. - Queries & Updates on a paused workflow will be rejected. """ + UnpauseWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UnpauseWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.UnpauseWorkflowExecutionResponse, @@ -968,6 +1084,7 @@ class WorkflowServiceStub: - The workflow execution status changes to `RUNNING` and a new WORKFLOW_EXECUTION_UNPAUSED event is added to the history - Workflow tasks and activity tasks are resumed. """ + StartActivityExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.StartActivityExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.StartActivityExecutionResponse, @@ -977,6 +1094,7 @@ class WorkflowServiceStub: Returns an `ActivityExecutionAlreadyStarted` error if an instance already exists with same activity ID in this namespace unless permitted by the specified ID conflict policy. """ + StartNexusOperationExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.StartNexusOperationExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.StartNexusOperationExecutionResponse, @@ -986,6 +1104,7 @@ class WorkflowServiceStub: Returns a `NexusOperationExecutionAlreadyStarted` error if an instance already exists with same operation ID in this namespace unless permitted by the specified ID conflict policy. """ + DescribeActivityExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionResponse, @@ -996,6 +1115,7 @@ class WorkflowServiceStub: - Long-poll for next state change and return new activity info Response can optionally include activity input or outcome (if the activity has completed). """ + DescribeNexusOperationExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DescribeNexusOperationExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.DescribeNexusOperationExecutionResponse, @@ -1006,6 +1126,7 @@ class WorkflowServiceStub: - Long-poll for next state change and return new operation info Response can optionally include operation input or outcome (if the operation has completed). """ + PollActivityExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PollActivityExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.PollActivityExecutionResponse, @@ -1013,6 +1134,7 @@ class WorkflowServiceStub: """PollActivityExecution long-polls for an activity execution to complete and returns the outcome (result or failure). """ + PollNexusOperationExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PollNexusOperationExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.PollNexusOperationExecutionResponse, @@ -1020,26 +1142,31 @@ class WorkflowServiceStub: """PollNexusOperationExecution long-polls for a Nexus operation for a given wait stage to complete and returns the outcome (result or failure). """ + ListActivityExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListActivityExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListActivityExecutionsResponse, ] """ListActivityExecutions is a visibility API to list activity executions in a specific namespace.""" + ListNexusOperationExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ListNexusOperationExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.ListNexusOperationExecutionsResponse, ] """ListNexusOperationExecutions is a visibility API to list Nexus operations in a specific namespace.""" + CountActivityExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.CountActivityExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.CountActivityExecutionsResponse, ] """CountActivityExecutions is a visibility API to count activity executions in a specific namespace.""" + CountNexusOperationExecutions: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.CountNexusOperationExecutionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.CountNexusOperationExecutionsResponse, ] """CountNexusOperationExecutions is a visibility API to count Nexus operations in a specific namespace.""" + RequestCancelActivityExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelActivityExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelActivityExecutionResponse, @@ -1051,6 +1178,7 @@ class WorkflowServiceStub: delivered via `cancel_requested` in the heartbeat response; SDKs surface this via language-idiomatic mechanisms (context cancellation, exceptions, abort signals). """ + RequestCancelNexusOperationExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelNexusOperationExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelNexusOperationExecutionResponse, @@ -1061,6 +1189,7 @@ class WorkflowServiceStub: The operation will only transition to canceled status if it supports cancellation and the handler processes the cancellation request. """ + TerminateActivityExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.TerminateActivityExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.TerminateActivityExecutionResponse, @@ -1070,6 +1199,7 @@ class WorkflowServiceStub: Termination does not reach the worker and the activity code cannot react to it. A terminated activity may have a running attempt. """ + DeleteActivityExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DeleteActivityExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.DeleteActivityExecutionResponse, @@ -1082,6 +1212,7 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: Activity deletion not exposed to HTTP, users should use cancel or terminate. --) """ + PauseActivityExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityExecutionResponse, @@ -1102,6 +1233,7 @@ class WorkflowServiceStub: Returns a `NotFound` error if there is no pending activity with the provided ID """ + ResetActivityExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityExecutionResponse, @@ -1117,7 +1249,1282 @@ class WorkflowServiceStub: Returns a `NotFound` error if there is no pending activity with the provided ID or type. """ - UnpauseActivityExecution: grpc.UnaryUnaryMultiCallable[ + + UnpauseActivityExecution: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityExecutionResponse, + ] + """UnpauseActivityExecution unpauses the execution of an activity specified by its ID. + This API can be used to target a workflow activity or a standalone activity. + + If activity is not paused, this call will have no effect. + If the activity was paused while waiting for retry, it will be scheduled immediately (* see 'jitter' flag). + Once the activity is unpaused, all timeout timers will be regenerated. + + Returns a `NotFound` error if there is no pending activity with the provided ID + """ + + UpdateActivityExecutionOptions: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityExecutionOptionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityExecutionOptionsResponse, + ] + """UpdateActivityExecutionOptions is called by the client to update the options of an activity by its ID. + This API can be used to target a workflow activity or a standalone activity. + """ + + TerminateNexusOperationExecution: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.TerminateNexusOperationExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.TerminateNexusOperationExecutionResponse, + ] + """TerminateNexusOperationExecution terminates an existing Nexus operation immediately. + + Termination happens immediately and the operation handler cannot react to it. A terminated operation will have + its outcome set to a failure with a termination reason. + """ + + DeleteNexusOperationExecution: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteNexusOperationExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeleteNexusOperationExecutionResponse, + ] + """DeleteNexusOperationExecution asynchronously deletes a specific Nexus operation run (when + run_id is provided) or the latest run (when run_id is not provided). If the operation + is running, it will be terminated before deletion. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: Nexus operation deletion not exposed to HTTP, users should use cancel or terminate. --) + """ + + PollWorkflowExecutionTimeSkipping: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionTimeSkippingRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionTimeSkippingResponse, + ] + +class WorkflowServiceAsyncStub: + """WorkflowService API defines how Temporal SDKs and other clients interact with the Temporal server + to create and interact with workflows and activities. + + Users are expected to call `StartWorkflowExecution` to create a new workflow execution. + + To drive workflows, a worker using a Temporal SDK must exist which regularly polls for workflow + and activity tasks from the service. For each workflow task, the sdk must process the + (incremental or complete) event history and respond back with any newly generated commands. + + For each activity task, the worker is expected to execute the user's code which implements that + activity, responding with completion or failure. + """ + + RegisterNamespace: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RegisterNamespaceRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RegisterNamespaceResponse, + ] + """RegisterNamespace creates a new namespace which can be used as a container for all resources. + + A Namespace is a top level entity within Temporal, and is used as a container for resources + like workflow executions, task queues, etc. A Namespace acts as a sandbox and provides + isolation for all resources within the namespace. All resources belongs to exactly one + namespace. + """ + + DescribeNamespace: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeNamespaceRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeNamespaceResponse, + ] + """DescribeNamespace returns the information and configuration for a registered namespace.""" + + ListNamespaces: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListNamespacesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListNamespacesResponse, + ] + """ListNamespaces returns the information and configuration for all namespaces.""" + + UpdateNamespace: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateNamespaceRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateNamespaceResponse, + ] + """UpdateNamespace is used to update the information and configuration of a registered + namespace. + """ + + DeprecateNamespace: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceResponse, + ] + """DeprecateNamespace is used to update the state of a registered namespace to DEPRECATED. + + Once the namespace is deprecated it cannot be used to start new workflow executions. Existing + workflow executions will continue to run on deprecated namespaces. + Deprecated. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: Deprecated --) + """ + + StartWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionResponse, + ] + """StartWorkflowExecution starts a new workflow execution. + + It will create the execution with a `WORKFLOW_EXECUTION_STARTED` event in its history and + also schedule the first workflow task. Returns `WorkflowExecutionAlreadyStarted`, if an + instance already exists with same workflow id. + """ + + ExecuteMultiOperation: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationResponse, + ] + """ExecuteMultiOperation executes multiple operations within a single workflow. + + Operations are started atomically, meaning if *any* operation fails to be started, none are, + and the request fails. Upon start, the API returns only when *all* operations have a response. + + Upon failure, it returns `MultiOperationExecutionFailure` where the status code + equals the status code of the *first* operation that failed to be started. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: To be exposed over HTTP in the future. --) + """ + + GetWorkflowExecutionHistory: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryResponse, + ] + """GetWorkflowExecutionHistory returns the history of specified workflow execution. Fails with + `NotFound` if the specified workflow execution is unknown to the service. + """ + + GetWorkflowExecutionHistoryReverse: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseResponse, + ] + """GetWorkflowExecutionHistoryReverse returns the history of specified workflow execution in reverse + order (starting from last event). Fails with`NotFound` if the specified workflow execution is + unknown to the service. + """ + + PollWorkflowTaskQueue: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueResponse, + ] + """PollWorkflowTaskQueue is called by workers to make progress on workflows. + + A WorkflowTask is dispatched to callers for active workflow executions with pending workflow + tasks. The worker is expected to call `RespondWorkflowTaskCompleted` when it is done + processing the task. The service will create a `WorkflowTaskStarted` event in the history for + this task before handing it to the worker. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + RespondWorkflowTaskCompleted: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedResponse, + ] + """RespondWorkflowTaskCompleted is called by workers to successfully complete workflow tasks + they received from `PollWorkflowTaskQueue`. + + Completing a WorkflowTask will write a `WORKFLOW_TASK_COMPLETED` event to the workflow's + history, along with events corresponding to whatever commands the SDK generated while + executing the task (ex timer started, activity task scheduled, etc). + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + RespondWorkflowTaskFailed: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedResponse, + ] + """RespondWorkflowTaskFailed is called by workers to indicate the processing of a workflow task + failed. + + This results in a `WORKFLOW_TASK_FAILED` event written to the history, and a new workflow + task will be scheduled. This API can be used to report unhandled failures resulting from + applying the workflow task. + + Temporal will only append first WorkflowTaskFailed event to the history of workflow execution + for consecutive failures. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + PollActivityTaskQueue: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueResponse, + ] + """PollActivityTaskQueue is called by workers to process activity tasks from a specific task + queue. + + The worker is expected to call one of the `RespondActivityTaskXXX` methods when it is done + processing the task. + + An activity task is dispatched whenever a `SCHEDULE_ACTIVITY_TASK` command is produced during + workflow execution. An in memory `ACTIVITY_TASK_STARTED` event is written to mutable state + before the task is dispatched to the worker. The started event, and the final event + (`ACTIVITY_TASK_COMPLETED` / `ACTIVITY_TASK_FAILED` / `ACTIVITY_TASK_TIMED_OUT`) will both be + written permanently to Workflow execution history when Activity is finished. This is done to + avoid writing many events in the case of a failure/retry loop. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + RecordActivityTaskHeartbeat: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatResponse, + ] + """RecordActivityTaskHeartbeat is optionally called by workers while they execute activities. + + If a worker fails to heartbeat within the `heartbeat_timeout` interval for the activity task, + then the current attempt times out. Depending on RetryPolicy, this may trigger a retry or + time out the activity. + + For workflow activities, an `ACTIVITY_TASK_TIMED_OUT` event will be written to the workflow + history. Calling `RecordActivityTaskHeartbeat` will fail with `NotFound` in such situations, + in that event, the SDK should request cancellation of the activity. + + The request may contain response `details` which will be persisted by the server and may be + used by the activity to checkpoint progress. The `cancel_requested` field in the response + indicates whether cancellation has been requested for the activity. + """ + + RecordActivityTaskHeartbeatById: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdResponse, + ] + """See `RecordActivityTaskHeartbeat`. This version allows clients to record heartbeats by + namespace/workflow id/activity id instead of task token. + + (-- api-linter: core::0136::prepositions=disabled + aip.dev/not-precedent: "By" is used to indicate request type. --) + """ + + RespondActivityTaskCompleted: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedResponse, + ] + """RespondActivityTaskCompleted is called by workers when they successfully complete an activity + task. + + For workflow activities, this results in a new `ACTIVITY_TASK_COMPLETED` event being written to the workflow history + and a new workflow task created for the workflow. Fails with `NotFound` if the task token is + no longer valid due to activity timeout, already being completed, or never having existed. + """ + + RespondActivityTaskCompletedById: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdResponse, + ] + """See `RespondActivityTaskCompleted`. This version allows clients to record completions by + namespace/workflow id/activity id instead of task token. + + (-- api-linter: core::0136::prepositions=disabled + aip.dev/not-precedent: "By" is used to indicate request type. --) + """ + + RespondActivityTaskFailed: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedResponse, + ] + """RespondActivityTaskFailed is called by workers when processing an activity task fails. + + This results in a new `ACTIVITY_TASK_FAILED` event being written to the workflow history and + a new workflow task created for the workflow. Fails with `NotFound` if the task token is no + longer valid due to activity timeout, already being completed, or never having existed. + """ + + RespondActivityTaskFailedById: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdResponse, + ] + """See `RecordActivityTaskFailed`. This version allows clients to record failures by + namespace/workflow id/activity id instead of task token. + + (-- api-linter: core::0136::prepositions=disabled + aip.dev/not-precedent: "By" is used to indicate request type. --) + """ + + RespondActivityTaskCanceled: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledResponse, + ] + """RespondActivityTaskFailed is called by workers when processing an activity task fails. + + For workflow activities, this results in a new `ACTIVITY_TASK_CANCELED` event being written to the workflow history + and a new workflow task created for the workflow. Fails with `NotFound` if the task token is + no longer valid due to activity timeout, already being completed, or never having existed. + """ + + RespondActivityTaskCanceledById: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdResponse, + ] + """See `RespondActivityTaskCanceled`. This version allows clients to record failures by + namespace/workflow id/activity id instead of task token. + + (-- api-linter: core::0136::prepositions=disabled + aip.dev/not-precedent: "By" is used to indicate request type. --) + """ + + RequestCancelWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionResponse, + ] + """RequestCancelWorkflowExecution is called by workers when they want to request cancellation of + a workflow execution. + + This results in a new `WORKFLOW_EXECUTION_CANCEL_REQUESTED` event being written to the + workflow history and a new workflow task created for the workflow. It returns success if the requested + workflow is already closed. It fails with 'NotFound' if the requested workflow doesn't exist. + """ + + SignalWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionResponse, + ] + """SignalWorkflowExecution is used to send a signal to a running workflow execution. + + This results in a `WORKFLOW_EXECUTION_SIGNALED` event recorded in the history and a workflow + task being created for the execution. + """ + + SignalWithStartWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse, + ] + """SignalWithStartWorkflowExecution is used to ensure a signal is sent to a workflow, even if + it isn't yet started. + + If the workflow is running, a `WORKFLOW_EXECUTION_SIGNALED` event is recorded in the history + and a workflow task is generated. + + If the workflow is not running or not found, then the workflow is created with + `WORKFLOW_EXECUTION_STARTED` and `WORKFLOW_EXECUTION_SIGNALED` events in its history, and a + workflow task is generated. + + (-- api-linter: core::0136::prepositions=disabled + aip.dev/not-precedent: "With" is used to indicate combined operation. --) + """ + + ResetWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionResponse, + ] + """ResetWorkflowExecution will reset an existing workflow execution to a specified + `WORKFLOW_TASK_COMPLETED` event (exclusive). It will immediately terminate the current + execution instance. "Exclusive" means the identified completed event itself is not replayed + in the reset history; the preceding `WORKFLOW_TASK_STARTED` event remains and will be marked as failed + immediately, and a new workflow task will be scheduled to retry it. + """ + + TerminateWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionResponse, + ] + """TerminateWorkflowExecution terminates an existing workflow execution by recording a + `WORKFLOW_EXECUTION_TERMINATED` event in the history and immediately terminating the + execution instance. + """ + + DeleteWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionResponse, + ] + """DeleteWorkflowExecution asynchronously deletes a specific Workflow Execution (when + WorkflowExecution.run_id is provided) or the latest Workflow Execution (when + WorkflowExecution.run_id is not provided). If the Workflow Execution is Running, it will be + terminated before deletion. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: Workflow deletion not exposed to HTTP, users should use cancel or terminate. --) + """ + + ListOpenWorkflowExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsResponse, + ] + """ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific namespace. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) + """ + + ListClosedWorkflowExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsResponse, + ] + """ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific namespace. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) + """ + + ListWorkflowExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsResponse, + ] + """ListWorkflowExecutions is a visibility API to list workflow executions in a specific namespace.""" + + ListArchivedWorkflowExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsResponse, + ] + """ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific namespace.""" + + ScanWorkflowExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsResponse, + ] + """ScanWorkflowExecutions _was_ a visibility API to list large amount of workflow executions in a specific namespace without order. + It has since been deprecated in favor of `ListWorkflowExecutions` and rewritten to use `ListWorkflowExecutions` internally. + + Deprecated: Replaced with `ListWorkflowExecutions`. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) + """ + + CountWorkflowExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsResponse, + ] + """CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace.""" + + GetSearchAttributes: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesResponse, + ] + """GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose this search attribute API to HTTP (but may expose on OperatorService). --) + """ + + RespondQueryTaskCompleted: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedResponse, + ] + """RespondQueryTaskCompleted is called by workers to complete queries which were delivered on + the `query` (not `queries`) field of a `PollWorkflowTaskQueueResponse`. + + Completing the query will unblock the corresponding client call to `QueryWorkflow` and return + the query result a response. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + ResetStickyTaskQueue: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueResponse, + ] + """ResetStickyTaskQueue resets the sticky task queue related information in the mutable state of + a given workflow. This is prudent for workers to perform if a workflow has been paged out of + their cache. + + Things cleared are: + 1. StickyTaskQueue + 2. StickyScheduleToStartTimeout + + When possible, ShutdownWorker should be preferred over + ResetStickyTaskQueue (particularly when a worker is shutting down or + cycling). + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + ShutdownWorker: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ShutdownWorkerRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ShutdownWorkerResponse, + ] + """ShutdownWorker is used to indicate that the given sticky task + queue is no longer being polled by its worker. Following the completion of + ShutdownWorker, newly-added workflow tasks will instead be placed + in the normal task queue, eligible for any worker to pick up. + + ShutdownWorker should be called by workers while shutting down, + after they've shut down their pollers. If another sticky poll + request is issued, the sticky task queue will be revived. + + As of Temporal Server v1.25.0, ShutdownWorker hasn't yet been implemented. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + QueryWorkflow: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.QueryWorkflowRequest, + temporalio.api.workflowservice.v1.request_response_pb2.QueryWorkflowResponse, + ] + """QueryWorkflow requests a query be executed for a specified workflow execution.""" + + DescribeWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionResponse, + ] + """DescribeWorkflowExecution returns information about the specified workflow execution.""" + + DescribeTaskQueue: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueResponse, + ] + """DescribeTaskQueue returns the following information about the target task queue, broken down by Build ID: + - List of pollers + - Workflow Reachability status + - Backlog info for Workflow and/or Activity tasks + """ + + GetClusterInfo: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoResponse, + ] + """GetClusterInfo returns information about temporal cluster""" + + GetSystemInfo: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetSystemInfoRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetSystemInfoResponse, + ] + """GetSystemInfo returns information about the system.""" + + ListTaskQueuePartitions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsResponse, + ] + """(-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose this low-level API to HTTP. --) + """ + + CreateSchedule: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateScheduleRequest, + temporalio.api.workflowservice.v1.request_response_pb2.CreateScheduleResponse, + ] + """Creates a new schedule.""" + + DescribeSchedule: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeScheduleRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeScheduleResponse, + ] + """Returns the schedule description and current state of an existing schedule.""" + + UpdateSchedule: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateScheduleRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateScheduleResponse, + ] + """Changes the configuration or state of an existing schedule.""" + + PatchSchedule: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PatchScheduleRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PatchScheduleResponse, + ] + """Makes a specific change to a schedule or triggers an immediate action.""" + + ListScheduleMatchingTimes: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesResponse, + ] + """Lists matching times within a range.""" + + DeleteSchedule: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteScheduleRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeleteScheduleResponse, + ] + """Deletes a schedule, removing it from the system.""" + + ListSchedules: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListSchedulesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListSchedulesResponse, + ] + """List all schedules in a namespace.""" + + CountSchedules: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountSchedulesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.CountSchedulesResponse, + ] + """CountSchedules is a visibility API to count schedules in a specific namespace.""" + + UpdateWorkerBuildIdCompatibility: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityResponse, + ] + """Deprecated. Use `UpdateWorkerVersioningRules`. + Will be removed in server version v1.32.0. + + Allows users to specify sets of worker build id versions on a per task queue basis. Versions + are ordered, and may be either compatible with some extant version, or a new incompatible + version, forming sets of ids which are incompatible with each other, but whose contained + members are compatible with one another. + + A single build id may be mapped to multiple task queues using this API for cases where a single process hosts + multiple workers. + + To query which workers can be retired, use the `GetWorkerTaskReachability` API. + + NOTE: The number of task queues mapped to a single build id is limited by the `limit.taskQueuesPerBuildId` + (default is 20), if this limit is exceeded this API will error with a FailedPrecondition. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do yet expose versioning API to HTTP. --) + """ + + GetWorkerBuildIdCompatibility: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityResponse, + ] + """Deprecated. Use `GetWorkerVersioningRules`. + Will be removed in server version v1.32.0. + Fetches the worker build id versioning sets for a task queue. + """ + + UpdateWorkerVersioningRules: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesResponse, + ] + """Use this API to manage Worker Versioning Rules for a given Task Queue. There are two types of + rules: Build ID Assignment rules and Compatible Build ID Redirect rules. + + Assignment rules determine how to assign new executions to a Build IDs. Their primary + use case is to specify the latest Build ID but they have powerful features for gradual rollout + of a new Build ID. + + Once a workflow execution is assigned to a Build ID and it completes its first Workflow Task, + the workflow stays on the assigned Build ID regardless of changes in assignment rules. This + eliminates the need for compatibility between versions when you only care about using the new + version for new workflows and let existing workflows finish in their own version. + + Activities, Child Workflows and Continue-as-New executions have the option to inherit the + Build ID of their parent/previous workflow or use the latest assignment rules to independently + select a Build ID. + + Redirect rules should only be used when you want to move workflows and activities assigned to + one Build ID (source) to another compatible Build ID (target). You are responsible to make sure + the target Build ID of a redirect rule is able to process event histories made by the source + Build ID by using [Patching](https://docs.temporal.io/workflows#patching) or other means. + + Will be removed in server version v1.32.0. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do yet expose versioning API to HTTP. --) + """ + + GetWorkerVersioningRules: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesResponse, + ] + """Fetches the Build ID assignment and redirect rules for a Task Queue. + Will be removed in server version v1.32.0. + """ + + GetWorkerTaskReachability: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityResponse, + ] + """Deprecated. Use `DescribeTaskQueue`. + Will be removed in server version v1.32.0. + + Fetches task reachability to determine whether a worker may be retired. + The request may specify task queues to query for or let the server fetch all task queues mapped to the given + build IDs. + + When requesting a large number of task queues or all task queues associated with the given build ids in a + namespace, all task queues will be listed in the response but some of them may not contain reachability + information due to a server enforced limit. When reaching the limit, task queues that reachability information + could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue + another call to get the reachability for those task queues. + + Open source users can adjust this limit by setting the server's dynamic config value for + `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. + """ + + DescribeDeployment: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentResponse, + ] + """Describes a worker deployment. + Deprecated. Replaced with `DescribeWorkerDeploymentVersion`. + """ + + DescribeWorkerDeploymentVersion: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionResponse, + ] + """Describes a worker deployment version.""" + + ListDeployments: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsResponse, + ] + """Lists worker deployments in the namespace. Optionally can filter based on deployment series + name. + Deprecated. Replaced with `ListWorkerDeployments`. + """ + + GetDeploymentReachability: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityResponse, + ] + """Returns the reachability level of a worker deployment to help users decide when it is time + to decommission a deployment. Reachability level is calculated based on the deployment's + `status` and existing workflows that depend on the given deployment for their execution. + Calculating reachability is relatively expensive. Therefore, server might return a recently + cached value. In such a case, the `last_update_time` will inform you about the actual + reachability calculation time. + Deprecated. Replaced with `DrainageInfo` returned by `DescribeWorkerDeploymentVersion`. + """ + + GetCurrentDeployment: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentResponse, + ] + """Returns the current deployment (and its info) for a given deployment series. + Deprecated. Replaced by `current_version` returned by `DescribeWorkerDeployment`. + """ + + SetCurrentDeployment: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentResponse, + ] + """Sets a deployment as the current deployment for its deployment series. Can optionally update + the metadata of the deployment as well. + Deprecated. Replaced by `SetWorkerDeploymentCurrentVersion`. + """ + + SetWorkerDeploymentCurrentVersion: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionResponse, + ] + """Set/unset the Current Version of a Worker Deployment. Automatically unsets the Ramping + Version if it is the Version being set as Current. + """ + + DescribeWorkerDeployment: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentResponse, + ] + """Describes a Worker Deployment.""" + + DeleteWorkerDeployment: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentResponse, + ] + """Deletes records of (an old) Deployment. A deployment can only be deleted if + it has no Version in it. + """ + + DeleteWorkerDeploymentVersion: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionResponse, + ] + """Used for manual deletion of Versions. User can delete a Version only when all the + following conditions are met: + - It is not the Current or Ramping Version of its Deployment. + - It has no active pollers (none of the task queues in the Version have pollers) + - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition + can be skipped by passing `skip-drainage=true`. + """ + + SetWorkerDeploymentRampingVersion: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionResponse, + ] + """Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. Can be used for + gradual ramp to unversioned workers too. + """ + + ListWorkerDeployments: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsResponse, + ] + """Lists all Worker Deployments that are tracked in the Namespace.""" + + CreateWorkerDeployment: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentResponse, + ] + """Creates a new Worker Deployment. + + Experimental. This API might significantly change or be removed in a + future release. + """ + + CreateWorkerDeploymentVersion: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentVersionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentVersionResponse, + ] + """Creates a new Worker Deployment Version. + + Experimental. This API might significantly change or be removed in a + future release. + """ + + UpdateWorkerDeploymentVersionComputeConfig: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionComputeConfigRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionComputeConfigResponse, + ] + """Updates the compute config attached to a Worker Deployment Version. + Experimental. This API might significantly change or be removed in a future release. + """ + + ValidateWorkerDeploymentVersionComputeConfig: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ValidateWorkerDeploymentVersionComputeConfigRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ValidateWorkerDeploymentVersionComputeConfigResponse, + ] + """Validates the compute config without attaching it to a Worker Deployment Version. + Experimental. This API might significantly change or be removed in a future release. + """ + + UpdateWorkerDeploymentVersionMetadata: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataResponse, + ] + """Updates the user-given metadata attached to a Worker Deployment Version.""" + + SetWorkerDeploymentManager: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentManagerRequest, + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentManagerResponse, + ] + """Set/unset the ManagerIdentity of a Worker Deployment. + Experimental. This API might significantly change or be removed in a future release. + """ + + UpdateWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionResponse, + ] + """Invokes the specified Update function on user Workflow code.""" + + PollWorkflowExecutionUpdate: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateResponse, + ] + """Polls a Workflow Execution for the outcome of a Workflow Update + previously issued through the UpdateWorkflowExecution RPC. The effective + timeout on this call will be shorter of the the caller-supplied gRPC + timeout and the server's configured long-poll timeout. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We don't expose update polling API to HTTP in favor of a potential future non-blocking form. --) + """ + + StartBatchOperation: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationRequest, + temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationResponse, + ] + """StartBatchOperation starts a new batch operation""" + + StopBatchOperation: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationRequest, + temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationResponse, + ] + """StopBatchOperation stops a batch operation""" + + DescribeBatchOperation: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationResponse, + ] + """DescribeBatchOperation returns the information about a batch operation""" + + ListBatchOperations: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsResponse, + ] + """ListBatchOperations returns a list of batch operations""" + + PollNexusTaskQueue: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse, + ] + """PollNexusTaskQueue is a long poll call used by workers to receive Nexus tasks. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + RespondNexusTaskCompleted: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedResponse, + ] + """RespondNexusTaskCompleted is called by workers to respond to Nexus tasks received via PollNexusTaskQueue. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + RespondNexusTaskFailed: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedResponse, + ] + """RespondNexusTaskFailed is called by workers to fail Nexus tasks received via PollNexusTaskQueue. + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: We do not expose worker API to HTTP. --) + """ + + UpdateActivityOptions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsResponse, + ] + """UpdateActivityOptions is called by the client to update the options of an activity by its ID or type. + If there are multiple pending activities of the provided type - all of them will be updated. + This API will be deprecated soon and replaced with a newer UpdateActivityExecutionOptions that is better named and + structured to work well for standalone activities. + """ + + UpdateWorkflowExecutionOptions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsResponse, + ] + """UpdateWorkflowExecutionOptions partially updates the WorkflowExecutionOptions of an existing workflow execution.""" + + PauseActivity: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityResponse, + ] + """PauseActivity pauses the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be paused + + Pausing an activity means: + - If the activity is currently waiting for a retry or is running and subsequently fails, + it will not be rescheduled until it is unpaused. + - If the activity is already paused, calling this method will have no effect. + - If the activity is running and finishes successfully, the activity will be completed. + - If the activity is running and finishes with failure: + * if there is no retry left - the activity will be completed. + * if there are more retries left - the activity will be paused. + For long-running activities: + - activities in paused state will send a cancellation with "activity_paused" set to 'true' in response to 'RecordActivityTaskHeartbeat'. + - The activity should respond to the cancellation accordingly. + + Returns a `NotFound` error if there is no pending activity with the provided ID or type + This API will be deprecated soon and replaced with a newer PauseActivityExecution that is better named and + structured to work well for standalone activities. + """ + + UnpauseActivity: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityResponse, + ] + """UnpauseActivity unpauses the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be unpaused. + + If activity is not paused, this call will have no effect. + If the activity was paused while waiting for retry, it will be scheduled immediately (* see 'jitter' flag). + Once the activity is unpaused, all timeout timers will be regenerated. + + Flags: + 'jitter': the activity will be scheduled at a random time within the jitter duration. + 'reset_attempts': the number of attempts will be reset. + 'reset_heartbeat': the activity heartbeat timer and heartbeats will be reset. + + Returns a `NotFound` error if there is no pending activity with the provided ID or type + This API will be deprecated soon and replaced with a newer UnpauseActivityExecution that is better named and + structured to work well for standalone activities. + """ + + ResetActivity: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityResponse, + ] + """ResetActivity resets the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be reset. + + Resetting an activity means: + * number of attempts will be reset to 0. + * activity timeouts will be reset. + * if the activity is waiting for retry, and it is not paused or 'keep_paused' is not provided: + it will be scheduled immediately (* see 'jitter' flag), + + Flags: + + 'jitter': the activity will be scheduled at a random time within the jitter duration. + If the activity currently paused it will be unpaused, unless 'keep_paused' flag is provided. + 'reset_heartbeats': the activity heartbeat timer and heartbeats will be reset. + 'keep_paused': if the activity is paused, it will remain paused. + + Returns a `NotFound` error if there is no pending activity with the provided ID or type. + This API will be deprecated soon and replaced with a newer ResetActivityExecution that is better named and + structured to work well for standalone activities. + """ + + CreateWorkflowRule: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkflowRuleRequest, + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkflowRuleResponse, + ] + """Create a new workflow rule. The rules are used to control the workflow execution. + The rule will be applied to all running and new workflows in the namespace. + If the rule with such ID already exist this call will fail + Note: the rules are part of namespace configuration and will be stored in the namespace config. + Namespace config is eventually consistent. + """ + + DescribeWorkflowRule: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowRuleRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowRuleResponse, + ] + """DescribeWorkflowRule return the rule specification for existing rule id. + If there is no rule with such id - NOT FOUND error will be returned. + """ + + DeleteWorkflowRule: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowRuleRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowRuleResponse, + ] + """Delete rule by rule id""" + + ListWorkflowRules: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowRulesRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowRulesResponse, + ] + """Return all namespace workflow rules""" + + TriggerWorkflowRule: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.TriggerWorkflowRuleRequest, + temporalio.api.workflowservice.v1.request_response_pb2.TriggerWorkflowRuleResponse, + ] + """TriggerWorkflowRule allows to: + * trigger existing rule for a specific workflow execution; + * trigger rule for a specific workflow execution without creating a rule; + This is useful for one-off operations. + """ + + RecordWorkerHeartbeat: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RecordWorkerHeartbeatRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RecordWorkerHeartbeatResponse, + ] + """WorkerHeartbeat receive heartbeat request from the worker.""" + + ListWorkers: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkersRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkersResponse, + ] + """ListWorkers is a visibility API to list worker status information in a specific namespace.""" + + CountWorkers: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountWorkersRequest, + temporalio.api.workflowservice.v1.request_response_pb2.CountWorkersResponse, + ] + """CountWorkers counts the number of workers in a specific namespace.""" + + UpdateTaskQueueConfig: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateTaskQueueConfigRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateTaskQueueConfigResponse, + ] + """Updates task queue configuration. + For the overall queue rate limit: the rate limit set by this api overrides the worker-set rate limit, + which uncouples the rate limit from the worker lifecycle. + If the overall queue rate limit is unset, the worker-set rate limit takes effect. + """ + + FetchWorkerConfig: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.FetchWorkerConfigRequest, + temporalio.api.workflowservice.v1.request_response_pb2.FetchWorkerConfigResponse, + ] + """FetchWorkerConfig returns the worker configuration for a specific worker.""" + + UpdateWorkerConfig: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerConfigRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerConfigResponse, + ] + """UpdateWorkerConfig updates the worker configuration of one or more workers. + Can be used to partially update the worker configuration. + Can be used to update the configuration of multiple workers. + """ + + DescribeWorker: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerResponse, + ] + """DescribeWorker returns information about the specified worker.""" + + PauseWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PauseWorkflowExecutionResponse, + ] + """Note: This is an experimental API and the behavior may change in a future release. + PauseWorkflowExecution pauses the workflow execution specified in the request. Pausing a workflow execution results in + - The workflow execution status changes to `PAUSED` and a new WORKFLOW_EXECUTION_PAUSED event is added to the history + - No new workflow tasks or activity tasks are dispatched. + - Any workflow task currently executing on the worker will be allowed to complete. + - Any activity task currently executing will be paused. + - All server-side events will continue to be processed by the server. + - Queries & Updates on a paused workflow will be rejected. + """ + + UnpauseWorkflowExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseWorkflowExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseWorkflowExecutionResponse, + ] + """Note: This is an experimental API and the behavior may change in a future release. + UnpauseWorkflowExecution unpauses a previously paused workflow execution specified in the request. + Unpausing a workflow execution results in + - The workflow execution status changes to `RUNNING` and a new WORKFLOW_EXECUTION_UNPAUSED event is added to the history + - Workflow tasks and activity tasks are resumed. + """ + + StartActivityExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.StartActivityExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.StartActivityExecutionResponse, + ] + """StartActivityExecution starts a new activity execution. + + Returns an `ActivityExecutionAlreadyStarted` error if an instance already exists with same activity ID in this namespace + unless permitted by the specified ID conflict policy. + """ + + StartNexusOperationExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.StartNexusOperationExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.StartNexusOperationExecutionResponse, + ] + """StartNexusOperationExecution starts a new Nexus operation. + + Returns a `NexusOperationExecutionAlreadyStarted` error if an instance already exists with same operation ID in this + namespace unless permitted by the specified ID conflict policy. + """ + + DescribeActivityExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionResponse, + ] + """DescribeActivityExecution returns information about an activity execution. + It can be used to: + - Get current activity info without waiting + - Long-poll for next state change and return new activity info + Response can optionally include activity input or outcome (if the activity has completed). + """ + + DescribeNexusOperationExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeNexusOperationExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeNexusOperationExecutionResponse, + ] + """DescribeNexusOperationExecution returns information about a Nexus operation. + Supported use cases include: + - Get current operation info without waiting + - Long-poll for next state change and return new operation info + Response can optionally include operation input or outcome (if the operation has completed). + """ + + PollActivityExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollActivityExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PollActivityExecutionResponse, + ] + """PollActivityExecution long-polls for an activity execution to complete and returns the + outcome (result or failure). + """ + + PollNexusOperationExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusOperationExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusOperationExecutionResponse, + ] + """PollNexusOperationExecution long-polls for a Nexus operation for a given wait stage to complete and returns + the outcome (result or failure). + """ + + ListActivityExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListActivityExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListActivityExecutionsResponse, + ] + """ListActivityExecutions is a visibility API to list activity executions in a specific namespace.""" + + ListNexusOperationExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListNexusOperationExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListNexusOperationExecutionsResponse, + ] + """ListNexusOperationExecutions is a visibility API to list Nexus operations in a specific namespace.""" + + CountActivityExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountActivityExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.CountActivityExecutionsResponse, + ] + """CountActivityExecutions is a visibility API to count activity executions in a specific namespace.""" + + CountNexusOperationExecutions: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountNexusOperationExecutionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.CountNexusOperationExecutionsResponse, + ] + """CountNexusOperationExecutions is a visibility API to count Nexus operations in a specific namespace.""" + + RequestCancelActivityExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelActivityExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelActivityExecutionResponse, + ] + """RequestCancelActivityExecution requests cancellation of an activity execution. + + Cancellation is cooperative: this call records the request, but the activity must detect and + acknowledge it for the activity to reach CANCELED status. The cancellation signal is + delivered via `cancel_requested` in the heartbeat response; SDKs surface this via + language-idiomatic mechanisms (context cancellation, exceptions, abort signals). + """ + + RequestCancelNexusOperationExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelNexusOperationExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelNexusOperationExecutionResponse, + ] + """RequestCancelNexusOperationExecution requests cancellation of a Nexus operation. + + Requesting to cancel an operation does not automatically transition the operation to canceled status. + The operation will only transition to canceled status if it supports cancellation and the handler + processes the cancellation request. + """ + + TerminateActivityExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.TerminateActivityExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.TerminateActivityExecutionResponse, + ] + """TerminateActivityExecution terminates an existing activity execution immediately. + + Termination does not reach the worker and the activity code cannot react to it. A terminated activity may have a + running attempt. + """ + + DeleteActivityExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteActivityExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeleteActivityExecutionResponse, + ] + """DeleteActivityExecution asynchronously deletes a specific activity execution (when + ActivityExecution.run_id is provided) or the latest activity execution (when + ActivityExecution.run_id is not provided). If the activity Execution is running, it will be + terminated before deletion. + + (-- api-linter: core::0127::http-annotation=disabled + aip.dev/not-precedent: Activity deletion not exposed to HTTP, users should use cancel or terminate. --) + """ + + PauseActivityExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityExecutionResponse, + ] + """PauseActivityExecution pauses the execution of an activity specified by its ID. + This API can be used to target a workflow activity or a standalone activity + + Pausing an activity means: + - If the activity is currently waiting for a retry or is running and subsequently fails, + it will not be rescheduled until it is unpaused. + - If the activity is already paused, calling this method will have no effect. + - If the activity is running and finishes successfully, the activity will be completed. + - If the activity is running and finishes with failure: + * if there is no retry left - the activity will be completed. + * if there are more retries left - the activity will be paused. + For long-running activities: + - activities in paused state will send a cancellation with "activity_paused" set to 'true' in response to 'RecordActivityTaskHeartbeat'. + + Returns a `NotFound` error if there is no pending activity with the provided ID + """ + + ResetActivityExecution: grpc.aio.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityExecutionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityExecutionResponse, + ] + """ResetActivityExecution resets the execution of an activity specified by its ID. + This API can be used to target a workflow activity or a standalone activity. + + Resetting an activity means: + * number of attempts will be reset to 0. + * activity timeouts will be reset. + * if the activity is waiting for retry, and it is not paused or 'keep_paused' is not provided: + it will be scheduled immediately (* see 'jitter' flag) + + Returns a `NotFound` error if there is no pending activity with the provided ID or type. + """ + + UnpauseActivityExecution: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityExecutionResponse, ] @@ -1130,14 +2537,16 @@ class WorkflowServiceStub: Returns a `NotFound` error if there is no pending activity with the provided ID """ - UpdateActivityExecutionOptions: grpc.UnaryUnaryMultiCallable[ + + UpdateActivityExecutionOptions: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityExecutionOptionsRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityExecutionOptionsResponse, ] """UpdateActivityExecutionOptions is called by the client to update the options of an activity by its ID. This API can be used to target a workflow activity or a standalone activity. """ - TerminateNexusOperationExecution: grpc.UnaryUnaryMultiCallable[ + + TerminateNexusOperationExecution: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.TerminateNexusOperationExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.TerminateNexusOperationExecutionResponse, ] @@ -1146,7 +2555,8 @@ class WorkflowServiceStub: Termination happens immediately and the operation handler cannot react to it. A terminated operation will have its outcome set to a failure with a termination reason. """ - DeleteNexusOperationExecution: grpc.UnaryUnaryMultiCallable[ + + DeleteNexusOperationExecution: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.DeleteNexusOperationExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.DeleteNexusOperationExecutionResponse, ] @@ -1157,7 +2567,8 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: Nexus operation deletion not exposed to HTTP, users should use cancel or terminate. --) """ - PollWorkflowExecutionTimeSkipping: grpc.UnaryUnaryMultiCallable[ + + PollWorkflowExecutionTimeSkipping: grpc.aio.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionTimeSkippingRequest, temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionTimeSkippingResponse, ] @@ -1180,10 +2591,13 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): def RegisterNamespace( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RegisterNamespaceRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RegisterNamespaceResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RegisterNamespaceResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RegisterNamespaceResponse + ], + ]: """RegisterNamespace creates a new namespace which can be used as a container for all resources. A Namespace is a top level entity within Temporal, and is used as a container for resources @@ -1191,37 +2605,59 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): isolation for all resources within the namespace. All resources belongs to exactly one namespace. """ + @abc.abstractmethod def DescribeNamespace( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeNamespaceRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.DescribeNamespaceResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeNamespaceResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeNamespaceResponse + ], + ]: """DescribeNamespace returns the information and configuration for a registered namespace.""" + @abc.abstractmethod def ListNamespaces( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListNamespacesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListNamespacesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListNamespacesResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListNamespacesResponse + ], + ]: """ListNamespaces returns the information and configuration for all namespaces.""" + @abc.abstractmethod def UpdateNamespace( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateNamespaceRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateNamespaceResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateNamespaceResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateNamespaceResponse + ], + ]: """UpdateNamespace is used to update the information and configuration of a registered namespace. """ + @abc.abstractmethod def DeprecateNamespace( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceResponse + ], + ]: """DeprecateNamespace is used to update the state of a registered namespace to DEPRECATED. Once the namespace is deprecated it cannot be used to start new workflow executions. Existing @@ -1231,24 +2667,36 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: Deprecated --) """ + @abc.abstractmethod def StartWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionResponse + ], + ]: """StartWorkflowExecution starts a new workflow execution. It will create the execution with a `WORKFLOW_EXECUTION_STARTED` event in its history and also schedule the first workflow task. Returns `WorkflowExecutionAlreadyStarted`, if an instance already exists with same workflow id. """ + @abc.abstractmethod def ExecuteMultiOperation( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationResponse + ], + ]: """ExecuteMultiOperation executes multiple operations within a single workflow. Operations are started atomically, meaning if *any* operation fails to be started, none are, @@ -1260,31 +2708,49 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: To be exposed over HTTP in the future. --) """ + @abc.abstractmethod def GetWorkflowExecutionHistory( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryResponse + ], + ]: """GetWorkflowExecutionHistory returns the history of specified workflow execution. Fails with `NotFound` if the specified workflow execution is unknown to the service. """ + @abc.abstractmethod def GetWorkflowExecutionHistoryReverse( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseResponse + ], + ]: """GetWorkflowExecutionHistoryReverse returns the history of specified workflow execution in reverse order (starting from last event). Fails with`NotFound` if the specified workflow execution is unknown to the service. """ + @abc.abstractmethod def PollWorkflowTaskQueue( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueResponse + ], + ]: """PollWorkflowTaskQueue is called by workers to make progress on workflows. A WorkflowTask is dispatched to callers for active workflow executions with pending workflow @@ -1295,12 +2761,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def RespondWorkflowTaskCompleted( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedResponse + ], + ]: """RespondWorkflowTaskCompleted is called by workers to successfully complete workflow tasks they received from `PollWorkflowTaskQueue`. @@ -1311,12 +2783,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def RespondWorkflowTaskFailed( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedResponse + ], + ]: """RespondWorkflowTaskFailed is called by workers to indicate the processing of a workflow task failed. @@ -1330,12 +2808,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def PollActivityTaskQueue( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueResponse + ], + ]: """PollActivityTaskQueue is called by workers to process activity tasks from a specific task queue. @@ -1352,12 +2836,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def RecordActivityTaskHeartbeat( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatResponse + ], + ]: """RecordActivityTaskHeartbeat is optionally called by workers while they execute activities. If a worker fails to heartbeat within the `heartbeat_timeout` interval for the activity task, @@ -1372,24 +2862,36 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): used by the activity to checkpoint progress. The `cancel_requested` field in the response indicates whether cancellation has been requested for the activity. """ + @abc.abstractmethod def RecordActivityTaskHeartbeatById( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdResponse + ], + ]: """See `RecordActivityTaskHeartbeat`. This version allows clients to record heartbeats by namespace/workflow id/activity id instead of task token. (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "By" is used to indicate request type. --) """ + @abc.abstractmethod def RespondActivityTaskCompleted( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedResponse + ], + ]: """RespondActivityTaskCompleted is called by workers when they successfully complete an activity task. @@ -1397,72 +2899,108 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): and a new workflow task created for the workflow. Fails with `NotFound` if the task token is no longer valid due to activity timeout, already being completed, or never having existed. """ + @abc.abstractmethod def RespondActivityTaskCompletedById( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdResponse + ], + ]: """See `RespondActivityTaskCompleted`. This version allows clients to record completions by namespace/workflow id/activity id instead of task token. (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "By" is used to indicate request type. --) """ + @abc.abstractmethod def RespondActivityTaskFailed( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedResponse + ], + ]: """RespondActivityTaskFailed is called by workers when processing an activity task fails. This results in a new `ACTIVITY_TASK_FAILED` event being written to the workflow history and a new workflow task created for the workflow. Fails with `NotFound` if the task token is no longer valid due to activity timeout, already being completed, or never having existed. """ + @abc.abstractmethod def RespondActivityTaskFailedById( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdResponse + ], + ]: """See `RecordActivityTaskFailed`. This version allows clients to record failures by namespace/workflow id/activity id instead of task token. (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "By" is used to indicate request type. --) """ + @abc.abstractmethod def RespondActivityTaskCanceled( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledResponse + ], + ]: """RespondActivityTaskFailed is called by workers when processing an activity task fails. For workflow activities, this results in a new `ACTIVITY_TASK_CANCELED` event being written to the workflow history and a new workflow task created for the workflow. Fails with `NotFound` if the task token is no longer valid due to activity timeout, already being completed, or never having existed. """ + @abc.abstractmethod def RespondActivityTaskCanceledById( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdResponse + ], + ]: """See `RespondActivityTaskCanceled`. This version allows clients to record failures by namespace/workflow id/activity id instead of task token. (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "By" is used to indicate request type. --) """ + @abc.abstractmethod def RequestCancelWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionResponse + ], + ]: """RequestCancelWorkflowExecution is called by workers when they want to request cancellation of a workflow execution. @@ -1470,23 +3008,35 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): workflow history and a new workflow task created for the workflow. It returns success if the requested workflow is already closed. It fails with 'NotFound' if the requested workflow doesn't exist. """ + @abc.abstractmethod def SignalWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionResponse + ], + ]: """SignalWorkflowExecution is used to send a signal to a running workflow execution. This results in a `WORKFLOW_EXECUTION_SIGNALED` event recorded in the history and a workflow task being created for the execution. """ + @abc.abstractmethod def SignalWithStartWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse + ], + ]: """SignalWithStartWorkflowExecution is used to ensure a signal is sent to a workflow, even if it isn't yet started. @@ -1500,34 +3050,52 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0136::prepositions=disabled aip.dev/not-precedent: "With" is used to indicate combined operation. --) """ + @abc.abstractmethod def ResetWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionResponse + ], + ]: """ResetWorkflowExecution will reset an existing workflow execution to a specified `WORKFLOW_TASK_COMPLETED` event (exclusive). It will immediately terminate the current execution instance. "Exclusive" means the identified completed event itself is not replayed in the reset history; the preceding `WORKFLOW_TASK_STARTED` event remains and will be marked as failed immediately, and a new workflow task will be scheduled to retry it. """ + @abc.abstractmethod def TerminateWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionResponse + ], + ]: """TerminateWorkflowExecution terminates an existing workflow execution by recording a `WORKFLOW_EXECUTION_TERMINATED` event in the history and immediately terminating the execution instance. """ + @abc.abstractmethod def DeleteWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionResponse + ], + ]: """DeleteWorkflowExecution asynchronously deletes a specific Workflow Execution (when WorkflowExecution.run_id is provided) or the latest Workflow Execution (when WorkflowExecution.run_id is not provided). If the Workflow Execution is Running, it will be @@ -1536,48 +3104,78 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: Workflow deletion not exposed to HTTP, users should use cancel or terminate. --) """ + @abc.abstractmethod def ListOpenWorkflowExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsResponse + ], + ]: """ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific namespace. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) """ + @abc.abstractmethod def ListClosedWorkflowExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsResponse + ], + ]: """ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific namespace. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) """ + @abc.abstractmethod def ListWorkflowExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsResponse + ], + ]: """ListWorkflowExecutions is a visibility API to list workflow executions in a specific namespace.""" + @abc.abstractmethod def ListArchivedWorkflowExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsResponse + ], + ]: """ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific namespace.""" + @abc.abstractmethod def ScanWorkflowExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsResponse + ], + ]: """ScanWorkflowExecutions _was_ a visibility API to list large amount of workflow executions in a specific namespace without order. It has since been deprecated in favor of `ListWorkflowExecutions` and rewritten to use `ListWorkflowExecutions` internally. @@ -1585,30 +3183,48 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) """ + @abc.abstractmethod def CountWorkflowExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsResponse + ], + ]: """CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace.""" + @abc.abstractmethod def GetSearchAttributes( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesResponse + ], + ]: """GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose this search attribute API to HTTP (but may expose on OperatorService). --) """ + @abc.abstractmethod def RespondQueryTaskCompleted( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedResponse + ], + ]: """RespondQueryTaskCompleted is called by workers to complete queries which were delivered on the `query` (not `queries`) field of a `PollWorkflowTaskQueueResponse`. @@ -1618,12 +3234,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def ResetStickyTaskQueue( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueResponse + ], + ]: """ResetStickyTaskQueue resets the sticky task queue related information in the mutable state of a given workflow. This is prudent for workers to perform if a workflow has been paged out of their cache. @@ -1639,12 +3261,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def ShutdownWorker( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ShutdownWorkerRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ShutdownWorkerResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ShutdownWorkerResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ShutdownWorkerResponse + ], + ]: """ShutdownWorker is used to indicate that the given sticky task queue is no longer being polled by its worker. Following the completion of ShutdownWorker, newly-added workflow tasks will instead be placed @@ -1659,120 +3287,206 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def QueryWorkflow( self, request: temporalio.api.workflowservice.v1.request_response_pb2.QueryWorkflowRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.QueryWorkflowResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.QueryWorkflowResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.QueryWorkflowResponse + ], + ]: """QueryWorkflow requests a query be executed for a specified workflow execution.""" + @abc.abstractmethod def DescribeWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionResponse + ], + ]: """DescribeWorkflowExecution returns information about the specified workflow execution.""" + @abc.abstractmethod def DescribeTaskQueue( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeTaskQueueResponse + ], + ]: """DescribeTaskQueue returns the following information about the target task queue, broken down by Build ID: - List of pollers - Workflow Reachability status - Backlog info for Workflow and/or Activity tasks """ + @abc.abstractmethod def GetClusterInfo( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetClusterInfoResponse + ], + ]: """GetClusterInfo returns information about temporal cluster""" + @abc.abstractmethod def GetSystemInfo( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetSystemInfoRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetSystemInfoResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetSystemInfoResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetSystemInfoResponse + ], + ]: """GetSystemInfo returns information about the system.""" + @abc.abstractmethod def ListTaskQueuePartitions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsResponse + ], + ]: """(-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose this low-level API to HTTP. --) """ + @abc.abstractmethod def CreateSchedule( self, request: temporalio.api.workflowservice.v1.request_response_pb2.CreateScheduleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.CreateScheduleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateScheduleResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateScheduleResponse + ], + ]: """Creates a new schedule.""" + @abc.abstractmethod def DescribeSchedule( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeScheduleRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.DescribeScheduleResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeScheduleResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeScheduleResponse + ], + ]: """Returns the schedule description and current state of an existing schedule.""" + @abc.abstractmethod def UpdateSchedule( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateScheduleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateScheduleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateScheduleResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateScheduleResponse + ], + ]: """Changes the configuration or state of an existing schedule.""" + @abc.abstractmethod def PatchSchedule( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PatchScheduleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PatchScheduleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PatchScheduleResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PatchScheduleResponse + ], + ]: """Makes a specific change to a schedule or triggers an immediate action.""" + @abc.abstractmethod def ListScheduleMatchingTimes( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesResponse + ], + ]: """Lists matching times within a range.""" + @abc.abstractmethod def DeleteSchedule( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteScheduleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteScheduleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteScheduleResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteScheduleResponse + ], + ]: """Deletes a schedule, removing it from the system.""" + @abc.abstractmethod def ListSchedules( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListSchedulesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListSchedulesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListSchedulesResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListSchedulesResponse + ], + ]: """List all schedules in a namespace.""" + @abc.abstractmethod def CountSchedules( self, request: temporalio.api.workflowservice.v1.request_response_pb2.CountSchedulesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.CountSchedulesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.CountSchedulesResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountSchedulesResponse + ], + ]: """CountSchedules is a visibility API to count schedules in a specific namespace.""" + @abc.abstractmethod def UpdateWorkerBuildIdCompatibility( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityResponse + ], + ]: """Deprecated. Use `UpdateWorkerVersioningRules`. Will be removed in server version v1.32.0. @@ -1792,22 +3506,34 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do yet expose versioning API to HTTP. --) """ + @abc.abstractmethod def GetWorkerBuildIdCompatibility( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityResponse + ], + ]: """Deprecated. Use `GetWorkerVersioningRules`. Will be removed in server version v1.32.0. Fetches the worker build id versioning sets for a task queue. """ + @abc.abstractmethod def UpdateWorkerVersioningRules( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesResponse + ], + ]: """Use this API to manage Worker Versioning Rules for a given Task Queue. There are two types of rules: Build ID Assignment rules and Compatible Build ID Redirect rules. @@ -1833,21 +3559,33 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do yet expose versioning API to HTTP. --) """ + @abc.abstractmethod def GetWorkerVersioningRules( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesResponse + ], + ]: """Fetches the Build ID assignment and redirect rules for a Task Queue. Will be removed in server version v1.32.0. """ + @abc.abstractmethod def GetWorkerTaskReachability( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityResponse + ], + ]: """Deprecated. Use `DescribeTaskQueue`. Will be removed in server version v1.32.0. @@ -1864,38 +3602,62 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): Open source users can adjust this limit by setting the server's dynamic config value for `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. """ + @abc.abstractmethod def DescribeDeployment( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentResponse + ], + ]: """Describes a worker deployment. Deprecated. Replaced with `DescribeWorkerDeploymentVersion`. """ + @abc.abstractmethod def DescribeWorkerDeploymentVersion( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionResponse + ], + ]: """Describes a worker deployment version.""" + @abc.abstractmethod def ListDeployments( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsResponse + ], + ]: """Lists worker deployments in the namespace. Optionally can filter based on deployment series name. Deprecated. Replaced with `ListWorkerDeployments`. """ + @abc.abstractmethod def GetDeploymentReachability( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityResponse + ], + ]: """Returns the reachability level of a worker deployment to help users decide when it is time to decommission a deployment. Reachability level is calculated based on the deployment's `status` and existing workflows that depend on the given deployment for their execution. @@ -1904,56 +3666,92 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): reachability calculation time. Deprecated. Replaced with `DrainageInfo` returned by `DescribeWorkerDeploymentVersion`. """ + @abc.abstractmethod def GetCurrentDeployment( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentResponse + ], + ]: """Returns the current deployment (and its info) for a given deployment series. Deprecated. Replaced by `current_version` returned by `DescribeWorkerDeployment`. """ + @abc.abstractmethod def SetCurrentDeployment( self, request: temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentResponse + ], + ]: """Sets a deployment as the current deployment for its deployment series. Can optionally update the metadata of the deployment as well. Deprecated. Replaced by `SetWorkerDeploymentCurrentVersion`. """ + @abc.abstractmethod def SetWorkerDeploymentCurrentVersion( self, request: temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionResponse + ], + ]: """Set/unset the Current Version of a Worker Deployment. Automatically unsets the Ramping Version if it is the Version being set as Current. """ + @abc.abstractmethod def DescribeWorkerDeployment( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentResponse + ], + ]: """Describes a Worker Deployment.""" + @abc.abstractmethod def DeleteWorkerDeployment( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentResponse + ], + ]: """Deletes records of (an old) Deployment. A deployment can only be deleted if it has no Version in it. """ + @abc.abstractmethod def DeleteWorkerDeploymentVersion( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionResponse + ], + ]: """Used for manual deletion of Versions. User can delete a Version only when all the following conditions are met: - It is not the Current or Ramping Version of its Deployment. @@ -1961,91 +3759,151 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition can be skipped by passing `skip-drainage=true`. """ + @abc.abstractmethod def SetWorkerDeploymentRampingVersion( self, request: temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionResponse + ], + ]: """Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. Can be used for gradual ramp to unversioned workers too. """ + @abc.abstractmethod def ListWorkerDeployments( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsResponse + ], + ]: """Lists all Worker Deployments that are tracked in the Namespace.""" + @abc.abstractmethod def CreateWorkerDeployment( self, request: temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentResponse + ], + ]: """Creates a new Worker Deployment. Experimental. This API might significantly change or be removed in a future release. """ + @abc.abstractmethod def CreateWorkerDeploymentVersion( self, request: temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentVersionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentVersionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentVersionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkerDeploymentVersionResponse + ], + ]: """Creates a new Worker Deployment Version. Experimental. This API might significantly change or be removed in a future release. """ + @abc.abstractmethod def UpdateWorkerDeploymentVersionComputeConfig( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionComputeConfigRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionComputeConfigResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionComputeConfigResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionComputeConfigResponse + ], + ]: """Updates the compute config attached to a Worker Deployment Version. Experimental. This API might significantly change or be removed in a future release. """ + @abc.abstractmethod def ValidateWorkerDeploymentVersionComputeConfig( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ValidateWorkerDeploymentVersionComputeConfigRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ValidateWorkerDeploymentVersionComputeConfigResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ValidateWorkerDeploymentVersionComputeConfigResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ValidateWorkerDeploymentVersionComputeConfigResponse + ], + ]: """Validates the compute config without attaching it to a Worker Deployment Version. Experimental. This API might significantly change or be removed in a future release. """ + @abc.abstractmethod def UpdateWorkerDeploymentVersionMetadata( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataResponse + ], + ]: """Updates the user-given metadata attached to a Worker Deployment Version.""" + @abc.abstractmethod def SetWorkerDeploymentManager( self, request: temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentManagerRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentManagerResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentManagerResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentManagerResponse + ], + ]: """Set/unset the ManagerIdentity of a Worker Deployment. Experimental. This API might significantly change or be removed in a future release. """ + @abc.abstractmethod def UpdateWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionResponse + ], + ]: """Invokes the specified Update function on user Workflow code.""" + @abc.abstractmethod def PollWorkflowExecutionUpdate( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateResponse + ], + ]: """Polls a Workflow Execution for the outcome of a Workflow Update previously issued through the UpdateWorkflowExecution RPC. The effective timeout on this call will be shorter of the the caller-supplied gRPC @@ -2054,88 +3912,148 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We don't expose update polling API to HTTP in favor of a potential future non-blocking form. --) """ + @abc.abstractmethod def StartBatchOperation( self, request: temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationResponse + ], + ]: """StartBatchOperation starts a new batch operation""" + @abc.abstractmethod def StopBatchOperation( self, request: temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationResponse + ], + ]: """StopBatchOperation stops a batch operation""" + @abc.abstractmethod def DescribeBatchOperation( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationResponse + ], + ]: """DescribeBatchOperation returns the information about a batch operation""" + @abc.abstractmethod def ListBatchOperations( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsResponse + ], + ]: """ListBatchOperations returns a list of batch operations""" + @abc.abstractmethod def PollNexusTaskQueue( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse + ], + ]: """PollNexusTaskQueue is a long poll call used by workers to receive Nexus tasks. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def RespondNexusTaskCompleted( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedResponse + ], + ]: """RespondNexusTaskCompleted is called by workers to respond to Nexus tasks received via PollNexusTaskQueue. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def RespondNexusTaskFailed( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedResponse + ], + ]: """RespondNexusTaskFailed is called by workers to fail Nexus tasks received via PollNexusTaskQueue. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ + @abc.abstractmethod def UpdateActivityOptions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsResponse + ], + ]: """UpdateActivityOptions is called by the client to update the options of an activity by its ID or type. If there are multiple pending activities of the provided type - all of them will be updated. This API will be deprecated soon and replaced with a newer UpdateActivityExecutionOptions that is better named and structured to work well for standalone activities. """ + @abc.abstractmethod def UpdateWorkflowExecutionOptions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsResponse + ], + ]: """UpdateWorkflowExecutionOptions partially updates the WorkflowExecutionOptions of an existing workflow execution.""" + @abc.abstractmethod def PauseActivity( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityResponse + ], + ]: """PauseActivity pauses the execution of an activity specified by its ID or type. If there are multiple pending activities of the provided type - all of them will be paused @@ -2155,12 +4073,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): This API will be deprecated soon and replaced with a newer PauseActivityExecution that is better named and structured to work well for standalone activities. """ + @abc.abstractmethod def UnpauseActivity( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityResponse + ], + ]: """UnpauseActivity unpauses the execution of an activity specified by its ID or type. If there are multiple pending activities of the provided type - all of them will be unpaused. @@ -2177,12 +4101,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): This API will be deprecated soon and replaced with a newer UnpauseActivityExecution that is better named and structured to work well for standalone activities. """ + @abc.abstractmethod def ResetActivity( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityResponse + ], + ]: """ResetActivity resets the execution of an activity specified by its ID or type. If there are multiple pending activities of the provided type - all of them will be reset. @@ -2203,118 +4133,192 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): This API will be deprecated soon and replaced with a newer ResetActivityExecution that is better named and structured to work well for standalone activities. """ + @abc.abstractmethod def CreateWorkflowRule( self, request: temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkflowRuleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkflowRuleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkflowRuleResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.CreateWorkflowRuleResponse + ], + ]: """Create a new workflow rule. The rules are used to control the workflow execution. The rule will be applied to all running and new workflows in the namespace. If the rule with such ID already exist this call will fail Note: the rules are part of namespace configuration and will be stored in the namespace config. Namespace config is eventually consistent. """ + @abc.abstractmethod def DescribeWorkflowRule( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowRuleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowRuleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowRuleResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowRuleResponse + ], + ]: """DescribeWorkflowRule return the rule specification for existing rule id. If there is no rule with such id - NOT FOUND error will be returned. """ + @abc.abstractmethod def DeleteWorkflowRule( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowRuleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowRuleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowRuleResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowRuleResponse + ], + ]: """Delete rule by rule id""" + @abc.abstractmethod def ListWorkflowRules( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowRulesRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowRulesResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowRulesResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowRulesResponse + ], + ]: """Return all namespace workflow rules""" + @abc.abstractmethod def TriggerWorkflowRule( self, request: temporalio.api.workflowservice.v1.request_response_pb2.TriggerWorkflowRuleRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.TriggerWorkflowRuleResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.TriggerWorkflowRuleResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.TriggerWorkflowRuleResponse + ], + ]: """TriggerWorkflowRule allows to: * trigger existing rule for a specific workflow execution; * trigger rule for a specific workflow execution without creating a rule; This is useful for one-off operations. """ + @abc.abstractmethod def RecordWorkerHeartbeat( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RecordWorkerHeartbeatRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RecordWorkerHeartbeatResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RecordWorkerHeartbeatResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RecordWorkerHeartbeatResponse + ], + ]: """WorkerHeartbeat receive heartbeat request from the worker.""" + @abc.abstractmethod def ListWorkers( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListWorkersRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListWorkersResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkersResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkersResponse + ], + ]: """ListWorkers is a visibility API to list worker status information in a specific namespace.""" + @abc.abstractmethod def CountWorkers( self, request: temporalio.api.workflowservice.v1.request_response_pb2.CountWorkersRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.CountWorkersResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.CountWorkersResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountWorkersResponse + ], + ]: """CountWorkers counts the number of workers in a specific namespace.""" + @abc.abstractmethod def UpdateTaskQueueConfig( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateTaskQueueConfigRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateTaskQueueConfigResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateTaskQueueConfigResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateTaskQueueConfigResponse + ], + ]: """Updates task queue configuration. For the overall queue rate limit: the rate limit set by this api overrides the worker-set rate limit, which uncouples the rate limit from the worker lifecycle. If the overall queue rate limit is unset, the worker-set rate limit takes effect. """ + @abc.abstractmethod def FetchWorkerConfig( self, request: temporalio.api.workflowservice.v1.request_response_pb2.FetchWorkerConfigRequest, - context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.FetchWorkerConfigResponse - ): + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.FetchWorkerConfigResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.FetchWorkerConfigResponse + ], + ]: """FetchWorkerConfig returns the worker configuration for a specific worker.""" + @abc.abstractmethod def UpdateWorkerConfig( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerConfigRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerConfigResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerConfigResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerConfigResponse + ], + ]: """UpdateWorkerConfig updates the worker configuration of one or more workers. Can be used to partially update the worker configuration. Can be used to update the configuration of multiple workers. """ + @abc.abstractmethod def DescribeWorker( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerResponse + ], + ]: """DescribeWorker returns information about the specified worker.""" + @abc.abstractmethod def PauseWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PauseWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PauseWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseWorkflowExecutionResponse + ], + ]: """Note: This is an experimental API and the behavior may change in a future release. PauseWorkflowExecution pauses the workflow execution specified in the request. Pausing a workflow execution results in - The workflow execution status changes to `PAUSED` and a new WORKFLOW_EXECUTION_PAUSED event is added to the history @@ -2324,116 +4328,188 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): - All server-side events will continue to be processed by the server. - Queries & Updates on a paused workflow will be rejected. """ + @abc.abstractmethod def UnpauseWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UnpauseWorkflowExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UnpauseWorkflowExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseWorkflowExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseWorkflowExecutionResponse + ], + ]: """Note: This is an experimental API and the behavior may change in a future release. UnpauseWorkflowExecution unpauses a previously paused workflow execution specified in the request. Unpausing a workflow execution results in - The workflow execution status changes to `RUNNING` and a new WORKFLOW_EXECUTION_UNPAUSED event is added to the history - Workflow tasks and activity tasks are resumed. """ + @abc.abstractmethod def StartActivityExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.StartActivityExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.StartActivityExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.StartActivityExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.StartActivityExecutionResponse + ], + ]: """StartActivityExecution starts a new activity execution. Returns an `ActivityExecutionAlreadyStarted` error if an instance already exists with same activity ID in this namespace unless permitted by the specified ID conflict policy. """ + @abc.abstractmethod def StartNexusOperationExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.StartNexusOperationExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.StartNexusOperationExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.StartNexusOperationExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.StartNexusOperationExecutionResponse + ], + ]: """StartNexusOperationExecution starts a new Nexus operation. Returns a `NexusOperationExecutionAlreadyStarted` error if an instance already exists with same operation ID in this namespace unless permitted by the specified ID conflict policy. """ + @abc.abstractmethod def DescribeActivityExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeActivityExecutionResponse + ], + ]: """DescribeActivityExecution returns information about an activity execution. It can be used to: - Get current activity info without waiting - Long-poll for next state change and return new activity info Response can optionally include activity input or outcome (if the activity has completed). """ + @abc.abstractmethod def DescribeNexusOperationExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeNexusOperationExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeNexusOperationExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeNexusOperationExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeNexusOperationExecutionResponse + ], + ]: """DescribeNexusOperationExecution returns information about a Nexus operation. Supported use cases include: - Get current operation info without waiting - Long-poll for next state change and return new operation info Response can optionally include operation input or outcome (if the operation has completed). """ + @abc.abstractmethod def PollActivityExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollActivityExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollActivityExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PollActivityExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollActivityExecutionResponse + ], + ]: """PollActivityExecution long-polls for an activity execution to complete and returns the outcome (result or failure). """ + @abc.abstractmethod def PollNexusOperationExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollNexusOperationExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollNexusOperationExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusOperationExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollNexusOperationExecutionResponse + ], + ]: """PollNexusOperationExecution long-polls for a Nexus operation for a given wait stage to complete and returns the outcome (result or failure). """ + @abc.abstractmethod def ListActivityExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListActivityExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListActivityExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListActivityExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListActivityExecutionsResponse + ], + ]: """ListActivityExecutions is a visibility API to list activity executions in a specific namespace.""" + @abc.abstractmethod def ListNexusOperationExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListNexusOperationExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListNexusOperationExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ListNexusOperationExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListNexusOperationExecutionsResponse + ], + ]: """ListNexusOperationExecutions is a visibility API to list Nexus operations in a specific namespace.""" + @abc.abstractmethod def CountActivityExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.CountActivityExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.CountActivityExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.CountActivityExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountActivityExecutionsResponse + ], + ]: """CountActivityExecutions is a visibility API to count activity executions in a specific namespace.""" + @abc.abstractmethod def CountNexusOperationExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.CountNexusOperationExecutionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.CountNexusOperationExecutionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.CountNexusOperationExecutionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.CountNexusOperationExecutionsResponse + ], + ]: """CountNexusOperationExecutions is a visibility API to count Nexus operations in a specific namespace.""" + @abc.abstractmethod def RequestCancelActivityExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelActivityExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelActivityExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelActivityExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelActivityExecutionResponse + ], + ]: """RequestCancelActivityExecution requests cancellation of an activity execution. Cancellation is cooperative: this call records the request, but the activity must detect and @@ -2441,35 +4517,53 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): delivered via `cancel_requested` in the heartbeat response; SDKs surface this via language-idiomatic mechanisms (context cancellation, exceptions, abort signals). """ + @abc.abstractmethod def RequestCancelNexusOperationExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelNexusOperationExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelNexusOperationExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelNexusOperationExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelNexusOperationExecutionResponse + ], + ]: """RequestCancelNexusOperationExecution requests cancellation of a Nexus operation. Requesting to cancel an operation does not automatically transition the operation to canceled status. The operation will only transition to canceled status if it supports cancellation and the handler processes the cancellation request. """ + @abc.abstractmethod def TerminateActivityExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.TerminateActivityExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.TerminateActivityExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.TerminateActivityExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.TerminateActivityExecutionResponse + ], + ]: """TerminateActivityExecution terminates an existing activity execution immediately. Termination does not reach the worker and the activity code cannot react to it. A terminated activity may have a running attempt. """ + @abc.abstractmethod def DeleteActivityExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteActivityExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteActivityExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteActivityExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteActivityExecutionResponse + ], + ]: """DeleteActivityExecution asynchronously deletes a specific activity execution (when ActivityExecution.run_id is provided) or the latest activity execution (when ActivityExecution.run_id is not provided). If the activity Execution is running, it will be @@ -2478,12 +4572,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: Activity deletion not exposed to HTTP, users should use cancel or terminate. --) """ + @abc.abstractmethod def PauseActivityExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityExecutionResponse + ], + ]: """PauseActivityExecution pauses the execution of an activity specified by its ID. This API can be used to target a workflow activity or a standalone activity @@ -2500,12 +4600,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): Returns a `NotFound` error if there is no pending activity with the provided ID """ + @abc.abstractmethod def ResetActivityExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityExecutionResponse + ], + ]: """ResetActivityExecution resets the execution of an activity specified by its ID. This API can be used to target a workflow activity or a standalone activity. @@ -2517,12 +4623,18 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): Returns a `NotFound` error if there is no pending activity with the provided ID or type. """ + @abc.abstractmethod def UnpauseActivityExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityExecutionResponse + ], + ]: """UnpauseActivityExecution unpauses the execution of an activity specified by its ID. This API can be used to target a workflow activity or a standalone activity. @@ -2532,32 +4644,50 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): Returns a `NotFound` error if there is no pending activity with the provided ID """ + @abc.abstractmethod def UpdateActivityExecutionOptions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityExecutionOptionsRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityExecutionOptionsResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityExecutionOptionsResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityExecutionOptionsResponse + ], + ]: """UpdateActivityExecutionOptions is called by the client to update the options of an activity by its ID. This API can be used to target a workflow activity or a standalone activity. """ + @abc.abstractmethod def TerminateNexusOperationExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.TerminateNexusOperationExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.TerminateNexusOperationExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.TerminateNexusOperationExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.TerminateNexusOperationExecutionResponse + ], + ]: """TerminateNexusOperationExecution terminates an existing Nexus operation immediately. Termination happens immediately and the operation handler cannot react to it. A terminated operation will have its outcome set to a failure with a termination reason. """ + @abc.abstractmethod def DeleteNexusOperationExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteNexusOperationExecutionRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteNexusOperationExecutionResponse: + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteNexusOperationExecutionResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteNexusOperationExecutionResponse + ], + ]: """DeleteNexusOperationExecution asynchronously deletes a specific Nexus operation run (when run_id is provided) or the latest run (when run_id is not provided). If the operation is running, it will be terminated before deletion. @@ -2565,13 +4695,20 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: Nexus operation deletion not exposed to HTTP, users should use cancel or terminate. --) """ + @abc.abstractmethod def PollWorkflowExecutionTimeSkipping( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionTimeSkippingRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionTimeSkippingResponse: ... + context: _ServicerContext, + ) -> typing.Union[ + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionTimeSkippingResponse, + collections.abc.Awaitable[ + temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionTimeSkippingResponse + ], + ]: ... def add_WorkflowServiceServicer_to_server( - servicer: WorkflowServiceServicer, server: grpc.Server + servicer: WorkflowServiceServicer, + server: typing.Union[grpc.Server, grpc.aio.Server], ) -> None: ... diff --git a/temporalio/bridge/Cargo.lock b/temporalio/bridge/Cargo.lock index cfa4f9f5f..3285c012c 100644 --- a/temporalio/bridge/Cargo.lock +++ b/temporalio/bridge/Cargo.lock @@ -10,19 +10,13 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "aho-corasick" -version = "1.1.4" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" dependencies = [ "memchr", ] -[[package]] -name = "allocator-api2" -version = "0.2.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" - [[package]] name = "anstyle" version = "1.0.14" @@ -37,13 +31,13 @@ checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" [[package]] name = "async-trait" -version = "0.1.91" +version = "0.1.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae36dc4177970ef04fde5178d3e2429882def40e57a451f919c098f72baa6cec" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -60,9 +54,9 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" [[package]] name = "aws-lc-fips-sys" -version = "0.14.1" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "118303cd75f63d1933a90c2ceb7e697281ac6acbdbcc490b46419f25a527ab90" +checksum = "b744eed18cd75d814effdf2aba2880f912abe0fe1c327b361341d31aba9a7005" dependencies = [ "bindgen", "cc", @@ -75,9 +69,9 @@ dependencies = [ [[package]] name = "aws-lc-rs" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce2b2dcc879c3bae0d371e77c99f2238400ef24ec001394befa67b6e543add9e" +checksum = "048006790404103c488e6c5616b3e7e702a71292aadda08e8f7698a9e0d2eb53" dependencies = [ "aws-lc-fips-sys", "aws-lc-sys", @@ -87,9 +81,9 @@ dependencies = [ [[package]] name = "aws-lc-sys" -version = "0.44.0" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f09fae7be8bb3174e05c6afdb34199e6dc0c7c04ba9fa237b1967adfbde27483" +checksum = "8bfbe32ac36b3c428696ce315464181bc4029d689fd58e3f2a4e58c252242f52" dependencies = [ "cc", "cmake", @@ -156,62 +150,65 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + [[package]] name = "bindgen" -version = "0.72.1" +version = "0.73.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895" +checksum = "787ef8ef523575546b106a58213d6e6b06198a05c2f757258c68a74273670cfa" dependencies = [ "bitflags", "cexpr", "clang-sys", - "itertools 0.13.0", "log", - "prettyplease", + "prettyplease 0.3.0", "proc-macro2", "quote", "regex", "rustc-hash", - "shlex 1.3.0", - "syn 2.0.119", + "shlex", + "syn 3.0.10", ] [[package]] name = "bitflags" -version = "2.13.1" +version = "2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" [[package]] name = "bon" -version = "3.9.3" +version = "3.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a602c73c7b0148ec6d12af6fd5cc7a46e2eacc8878271a999abac56eed12f561" +checksum = "a05442cd7005532d0cfedec676b5b9333d2b4c7c3afabe2b1a9ce2742fbe2ee6" dependencies = [ "bon-macros", - "rustversion", ] [[package]] name = "bon-macros" -version = "3.9.3" +version = "3.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dee98b0db6a962de883bf5d20362dee4d7ca0d12fe39a7c6c73c844e1cd7c1f" +checksum = "93833e97ac7c46ba97045afcf247238c27057538fcf2f06344662ddd5f567be6" dependencies = [ "darling", "ident_case", - "prettyplease", + "prettyplease 0.3.0", "proc-macro2", "quote", - "rustversion", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] name = "bumpalo" -version = "3.20.3" +version = "3.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" +checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db" [[package]] name = "bytes" @@ -230,14 +227,14 @@ dependencies = [ [[package]] name = "cc" -version = "1.4.0" +version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5add81bb678e6cb321aff7fa0dc7689ad82b112dbc032cea19f91d6b8e3582b9" +checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" dependencies = [ "find-msvc-tools", "jobserver", "libc", - "shlex 2.0.1", + "shlex", ] [[package]] @@ -251,9 +248,9 @@ dependencies = [ [[package]] name = "cfg-if" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" [[package]] name = "cfg_aliases" @@ -263,9 +260,9 @@ checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" [[package]] name = "chacha20" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" dependencies = [ "cfg-if", "cpufeatures", @@ -304,14 +301,23 @@ dependencies = [ [[package]] name = "combine" -version = "4.6.7" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" dependencies = [ "bytes", "memchr", ] +[[package]] +name = "constant_time_eq" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eb6feb175df65d0a3ccd3e73484e940d0ac664e8034f0519fd49a93db3071d9" +dependencies = [ + "rustversion", +] + [[package]] name = "convert_case" version = "0.10.0" @@ -339,42 +345,42 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "cpufeatures" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" dependencies = [ "libc", ] [[package]] name = "crc32fast" -version = "1.5.0" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" dependencies = [ "cfg-if", ] [[package]] name = "crossbeam-channel" -version = "0.5.16" +version = "0.5.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d85363c37faeca707aef026efa9f3b34d077bce547e48f770770625c6013679e" +checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1" dependencies = [ "crossbeam-utils", ] [[package]] name = "crossbeam-utils" -version = "0.8.22" +version = "0.8.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" [[package]] name = "darling" -version = "0.23.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +checksum = "ed17f5901b6630b993ca003def43f2f8ef4014fc13b047b57aad617ff32bc2ec" dependencies = [ "darling_core", "darling_macro", @@ -382,26 +388,26 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.23.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +checksum = "6837e2cf7485aaae18f86181d2f0e9a7ed297a025e220aeabf63fdebd3a2ddff" dependencies = [ "ident_case", "proc-macro2", "quote", "strsim", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] name = "darling_macro" -version = "0.23.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785" dependencies = [ "darling_core", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] @@ -429,9 +435,9 @@ dependencies = [ [[package]] name = "dirs" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f" dependencies = [ "dirs-sys", ] @@ -450,13 +456,13 @@ dependencies = [ [[package]] name = "displaydoc" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] @@ -479,9 +485,9 @@ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" [[package]] name = "either" -version = "1.17.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" [[package]] name = "enum-iterator" @@ -517,15 +523,15 @@ dependencies = [ [[package]] name = "equivalent" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" [[package]] name = "erased-serde" -version = "0.4.10" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec" +checksum = "1e59b668157f32d3459d4bd634861a06ffa2503a461ca5f0916b9f0252605e66" dependencies = [ "serde", "serde_core", @@ -534,9 +540,9 @@ dependencies = [ [[package]] name = "errno" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" dependencies = [ "libc", "windows-sys 0.61.2", @@ -560,21 +566,21 @@ dependencies = [ [[package]] name = "find-msvc-tools" -version = "0.1.9" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" [[package]] name = "fixedbitset" -version = "0.5.7" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" +checksum = "5905ec755cc8386d7928353e4d356d2be3e89e81e5ca01fe630a1ca4d08dc175" [[package]] name = "flate2" -version = "1.1.9" +version = "1.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" dependencies = [ "crc32fast", "miniz_oxide", @@ -625,9 +631,9 @@ checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" [[package]] name = "futures" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a88cf1f829d945f548cf8fec32c61b1f202b6d93b45848602fc02af4b12ad218" +checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3" dependencies = [ "futures-channel", "futures-core", @@ -640,9 +646,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" dependencies = [ "futures-core", "futures-sink", @@ -650,15 +656,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" [[package]] name = "futures-executor" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6754879cc9f2c66f88c6e5c35344bb0bdb0708b0352b1201815667c7eabc7458" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" dependencies = [ "futures-core", "futures-task", @@ -667,19 +673,19 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" [[package]] name = "futures-macro" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d6d3cde68c518367be28956066ddfef33813991b77a55005a69dae04bf3b10b" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] @@ -695,21 +701,21 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" [[package]] name = "futures-task" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" [[package]] name = "futures-util" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" dependencies = [ "futures-channel", "futures-core", @@ -779,9 +785,9 @@ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" [[package]] name = "h2" -version = "0.4.15" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cb093c84e8bd9b188d4c4a8cb6579fc016968d14c99882163cd3ff402a4f155" +checksum = "7d29020232d6aa3fb1daca64c1127cf662cf97f254ae16c18c05b8ab635fc118" dependencies = [ "atomic-waker", "bytes", @@ -811,8 +817,6 @@ version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" dependencies = [ - "allocator-api2", - "equivalent", "foldhash 0.2.0", ] @@ -824,9 +828,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "http" -version = "1.4.2" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" dependencies = [ "bytes", "itoa", @@ -844,9 +848,9 @@ dependencies = [ [[package]] name = "http-body-util" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2" +checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" dependencies = [ "bytes", "futures-core", @@ -869,9 +873,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "1.11.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72" +checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" dependencies = [ "atomic-waker", "bytes", @@ -891,9 +895,9 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.9" +version = "0.27.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" +checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53" dependencies = [ "http", "hyper", @@ -919,16 +923,17 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.20" +version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" dependencies = [ - "base64", + "base64 0.23.1", "bytes", "futures-channel", "futures-util", "http", "http-body", + "httparse", "hyper", "ipnet", "libc", @@ -942,9 +947,9 @@ dependencies = [ [[package]] name = "icu_collections" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" dependencies = [ "displaydoc", "potential_utf", @@ -956,9 +961,9 @@ dependencies = [ [[package]] name = "icu_locale_core" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" dependencies = [ "displaydoc", "litemap", @@ -969,9 +974,9 @@ dependencies = [ [[package]] name = "icu_normalizer" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599" dependencies = [ "icu_collections", "icu_normalizer_data", @@ -983,16 +988,17 @@ dependencies = [ [[package]] name = "icu_normalizer_data" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" +checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc" [[package]] name = "icu_properties" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f" dependencies = [ + "displaydoc", "icu_collections", "icu_locale_core", "icu_properties_data", @@ -1003,15 +1009,15 @@ dependencies = [ [[package]] name = "icu_properties_data" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" +checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf" [[package]] name = "icu_provider" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" dependencies = [ "displaydoc", "icu_locale_core", @@ -1051,9 +1057,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.14.0" +version = "2.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" dependencies = [ "equivalent", "hashbrown 0.17.1", @@ -1061,42 +1067,42 @@ dependencies = [ [[package]] name = "inventory" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4f0c30c76f2f4ccee3fe55a2435f691ca00c0e4bd87abe4f4a851b1d4dac39b" +checksum = "6928282826c822ad91bf1c9a1cb90a30ba1c26770749929b4656cd6be829cd7c" dependencies = [ "rustversion", ] [[package]] name = "ipnet" -version = "2.12.0" +version = "2.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" +checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" [[package]] name = "itertools" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" dependencies = [ "either", ] [[package]] name = "itertools" -version = "0.14.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +checksum = "8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc" dependencies = [ "either", ] [[package]] name = "itoa" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" [[package]] name = "jni" @@ -1159,9 +1165,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.103" +version = "0.3.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102" +checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a" dependencies = [ "cfg-if", "futures-util", @@ -1170,21 +1176,21 @@ dependencies = [ [[package]] name = "lazy_static" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" [[package]] name = "libbz2-rs-sys" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34b357333733e8260735ba5894eb928c02ecc69c78715f01a8019e7fa7f2db4c" +checksum = "32f454fd6831a29c0e827ed075bca2a15be201bd57f4168f0fd1041124eab17e" [[package]] name = "libc" -version = "0.2.189" +version = "0.2.191" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" [[package]] name = "libloading" @@ -1198,9 +1204,9 @@ dependencies = [ [[package]] name = "libredox" -version = "0.1.18" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c943259e342f1e06ff2da7a83eabdfe7f92ce10262688dbf1895ff0b3e6e4652" +checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" dependencies = [ "libc", ] @@ -1213,9 +1219,9 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "litemap" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" [[package]] name = "lock_api" @@ -1228,24 +1234,24 @@ dependencies = [ [[package]] name = "log" -version = "0.4.33" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" [[package]] name = "lru" -version = "0.18.1" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b6180140927ee907000b0aa540091f6ea512ead4447c92b8fc35bc72788a5a6" +checksum = "4a9f71e3591c7ec44d3e563e87bf14ddc2bada8519dca046e5b0e560cd004e2d" dependencies = [ "hashbrown 0.17.1", ] [[package]] name = "lru-slab" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" +checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f" [[package]] name = "matchers" @@ -1270,9 +1276,9 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "mime" -version = "0.3.17" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +checksum = "d5848f5a9e8117cf94f2f90faac24a87ff81600ff8628c1e3deaab572e76bfa1" [[package]] name = "minimal-lexical" @@ -1282,9 +1288,9 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.8.9" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" dependencies = [ "adler2", "simd-adler32", @@ -1292,9 +1298,9 @@ dependencies = [ [[package]] name = "mio" -version = "1.2.2" +version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427" +checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a" dependencies = [ "libc", "wasi", @@ -1333,6 +1339,18 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084" +[[package]] +name = "nix" +version = "0.31.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +dependencies = [ + "bitflags", + "cfg-if", + "cfg_aliases", + "libc", +] + [[package]] name = "nom" version = "7.1.3" @@ -1397,9 +1415,9 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "openssl-probe" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" +checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1" [[package]] name = "opentelemetry" @@ -1512,7 +1530,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8edd1efdd8ab23ba9cb9ace3d9987a72663d5d7c9f74fa00b51d6213645cf6c" dependencies = [ - "base64", + "base64 0.22.1", "serde", ] @@ -1582,30 +1600,30 @@ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" [[package]] name = "pkg-config" -version = "0.3.33" +version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" [[package]] name = "portable-atomic" -version = "1.14.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" [[package]] name = "portable-atomic-util" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618" +checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715" dependencies = [ "portable-atomic", ] [[package]] name = "potential_utf" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" dependencies = [ "zerovec", ] @@ -1655,6 +1673,16 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "prettyplease" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bfe0f4c752e450fc2faf62654f1c134747922825d5b04ca717b8874f41a40c0" +dependencies = [ + "proc-macro2", + "syn 3.0.10", +] + [[package]] name = "proc-macro2" version = "1.0.107" @@ -1680,9 +1708,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.14.4" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "528ac67416ff8646872a3c02cad9cc4ee5dc9f9540c9b10771855c95cb2e5ae1" +checksum = "3ef0b569d1d907ab3a28596aee62cf1f61dacb0529a4bedcd8e7460e2d5228b4" dependencies = [ "bytes", "prost-derive", @@ -1690,33 +1718,33 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.14.4" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03da047801ff44bb6a4d407d4860c05fd70bb81714e6b2f3812603d5b145b042" +checksum = "b6e4d69d0fa3e7f6f9cf6b53a0e83e4fc99ba3586f65ce166cff30bd13bb4ad2" dependencies = [ "heck", - "itertools 0.14.0", + "itertools 0.15.0", "log", "multimap", "petgraph", - "prettyplease", + "prettyplease 0.3.0", "prost", "prost-types", "pulldown-cmark", "pulldown-cmark-to-cmark", "regex", - "syn 2.0.119", + "syn 3.0.10", "tempfile", ] [[package]] name = "prost-derive" -version = "0.14.4" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b570b25f7617e43d59005d0990ccb79e950a423952cea19671b7a876da390adf" +checksum = "1ad9c5423459fa2f729b8d9235fab810aa29628b171467744fc86d21460ad70d" dependencies = [ "anyhow", - "itertools 0.14.0", + "itertools 0.15.0", "proc-macro2", "quote", "syn 2.0.119", @@ -1724,18 +1752,18 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.14.4" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f94967dc7688f3054c7fac87473ffae4cc4c3904800e2d9f5b857246d8963b0a" +checksum = "f29a7c4c7a84cef41a53d338a2d10d4f1b043ea5c3dde26db22ee2c9c1b1c75b" dependencies = [ "prost", ] [[package]] name = "prost-wkt" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd3de5e9c9e84fcb5efa204b8e283d23e615a8bc8c777bf1d6622bb01dc61445" +checksum = "4bf89e78de037257a7be0177e894311c31bf7f0a02b752e74f402a5b324cc0fc" dependencies = [ "chrono", "inventory", @@ -1748,9 +1776,9 @@ dependencies = [ [[package]] name = "prost-wkt-build" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe500dc80e757a75e1e8fb7290e448d62dfba3105ece1d058579cb00b58151cd" +checksum = "cb5cd191fad9142d096efc97c64715db73db4adb60c38ebdf22f5b54cd6ea712" dependencies = [ "heck", "prost", @@ -1761,9 +1789,9 @@ dependencies = [ [[package]] name = "prost-wkt-types" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13807eaa7e15833d06e899008371926201cdcd11d74b6d490f49130cdb3f415e" +checksum = "9c46d9cbfee659aaabc63e8ab7d88e4814c2ad6eacdc09b404244ce3c7fbcdfc" dependencies = [ "chrono", "prost", @@ -1779,9 +1807,9 @@ dependencies = [ [[package]] name = "pulldown-cmark" -version = "0.13.4" +version = "0.13.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9f068eba8e7071c5f9511831b44f32c740d5adf574e990f946ddb53db2f314e" +checksum = "3db2be46835f013dd3f4fa7f5f7402c537787b54ebb6fe2b94bbdd7e2669bb7b" dependencies = [ "bitflags", "memchr", @@ -1790,18 +1818,18 @@ dependencies = [ [[package]] name = "pulldown-cmark-to-cmark" -version = "22.0.0" +version = "22.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50793def1b900256624a709439404384204a5dc3a6ec580281bfaac35e882e90" +checksum = "84bbb29c624230c4bd1047bbdb2aa47e41c860e9665ce62ba9504eebe91bf867" dependencies = [ "pulldown-cmark", ] [[package]] name = "pyo3" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c" +checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655" dependencies = [ "anyhow", "inventory", @@ -1829,18 +1857,18 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078" +checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb" dependencies = [ "target-lexicon", ] [[package]] name = "pyo3-ffi" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b" +checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330" dependencies = [ "libc", "pyo3-build-config", @@ -1848,9 +1876,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771" +checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -1860,9 +1888,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362" +checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3" dependencies = [ "heck", "proc-macro2", @@ -1882,9 +1910,9 @@ dependencies = [ [[package]] name = "quinn" -version = "0.11.11" +version = "0.11.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8" +checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11" dependencies = [ "bytes", "cfg_aliases", @@ -1902,15 +1930,15 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.16" +version = "0.11.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560" +checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe" dependencies = [ "aws-lc-rs", "bytes", "getrandom 0.4.3", "lru-slab", - "rand 0.10.2", + "rand 0.10.3", "rand_pcg", "ring", "rustc-hash", @@ -1925,9 +1953,9 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.15" +version = "0.5.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694" +checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016" dependencies = [ "cfg_aliases", "libc", @@ -1970,9 +1998,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80" +checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" dependencies = [ "chacha20", "getrandom 0.4.3", @@ -2024,11 +2052,10 @@ dependencies = [ [[package]] name = "redox_users" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +checksum = "60dc65c0ff1a7ae1294b0c67b9f14baf70b644404010370171787bfac1038fc0" dependencies = [ - "getrandom 0.2.17", "libredox", "thiserror", ] @@ -2047,9 +2074,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.16" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fcfdb36bda0c880c5931cdc7a2bcdc8ba4556847b9d912bca70bc94708711ad" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" dependencies = [ "aho-corasick", "memchr", @@ -2064,11 +2091,11 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" [[package]] name = "reqwest" -version = "0.13.4" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3" +checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029" dependencies = [ - "base64", + "base64 0.23.1", "bytes", "futures-channel", "futures-core", @@ -2120,9 +2147,9 @@ dependencies = [ [[package]] name = "ringbuf" -version = "0.5.1" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a158e09ede21a14b172ca6cdd6208386c6ae2cb6acef58d774368ef8c450dfa7" +checksum = "b58b631e416dd7d84549d7e6a50f767e111f9b03e30d04f40072f6618f386aaf" dependencies = [ "crossbeam-utils", "portable-atomic", @@ -2146,9 +2173,9 @@ dependencies = [ [[package]] name = "rustix" -version = "1.1.4" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" dependencies = [ "bitflags", "errno", @@ -2159,9 +2186,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.42" +version = "0.23.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c54fcab019b409d04215d3a17cb438fd7fbf192ee61461f20f4fe18704bc138" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" dependencies = [ "aws-lc-rs", "log", @@ -2175,9 +2202,9 @@ dependencies = [ [[package]] name = "rustls-native-certs" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d" +checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4" dependencies = [ "openssl-probe", "rustls-pki-types", @@ -2187,9 +2214,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.15.1" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +checksum = "102f35f7de7b06d8c61f1cff6592f5253e0dea431c74867aad5dfd70f44663fb" dependencies = [ "web-time", "zeroize", @@ -2197,9 +2224,9 @@ dependencies = [ [[package]] name = "rustls-platform-verifier" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0" +checksum = "1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98" dependencies = [ "core-foundation", "core-foundation-sys", @@ -2218,15 +2245,15 @@ dependencies = [ [[package]] name = "rustls-platform-verifier-android" -version = "0.1.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" +checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" [[package]] name = "rustls-webpki" -version = "0.103.13" +version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ "aws-lc-rs", "ring", @@ -2257,9 +2284,9 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.29" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5" dependencies = [ "windows-sys 0.61.2", ] @@ -2326,14 +2353,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] name = "serde_json" -version = "1.0.151" +version = "1.0.154" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" dependencies = [ "itoa", "memchr", @@ -2344,9 +2371,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "1.1.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782" dependencies = [ "serde_core", ] @@ -2372,12 +2399,6 @@ dependencies = [ "lazy_static", ] -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - [[package]] name = "shlex" version = "2.0.1" @@ -2418,9 +2439,9 @@ checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" [[package]] name = "siphasher" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" +checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256" [[package]] name = "slab" @@ -2439,9 +2460,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.15.2" +version = "1.16.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" +checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" [[package]] name = "socket2" @@ -2484,9 +2505,9 @@ dependencies = [ [[package]] name = "syn" -version = "3.0.3" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" dependencies = [ "proc-macro2", "quote", @@ -2504,13 +2525,13 @@ dependencies = [ [[package]] name = "synstructure" -version = "0.13.2" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] @@ -2540,9 +2561,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.13.5" +version = "0.13.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca" +checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da" [[package]] name = "tempfile" @@ -2582,12 +2603,12 @@ dependencies = [ [[package]] name = "temporalio-client" -version = "0.7.0" +version = "1.2.0" dependencies = [ "anyhow", "async-trait", "backon", - "base64", + "base64 0.23.1", "bon", "bytes", "derive_more", @@ -2599,7 +2620,7 @@ dependencies = [ "hyper", "hyper-util", "parking_lot", - "rand 0.10.2", + "rand 0.10.3", "serde_json", "temporalio-common", "thiserror", @@ -2614,7 +2635,7 @@ dependencies = [ [[package]] name = "temporalio-common" -version = "0.7.0" +version = "1.2.0" dependencies = [ "anyhow", "async-trait", @@ -2655,7 +2676,7 @@ dependencies = [ [[package]] name = "temporalio-common-wasm" -version = "0.7.0" +version = "1.2.0" dependencies = [ "anyhow", "async-trait", @@ -2680,25 +2701,24 @@ dependencies = [ [[package]] name = "temporalio-macros" -version = "0.7.0" +version = "1.2.0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] name = "temporalio-protos" -version = "0.7.0" +version = "0.11.0" dependencies = [ "anyhow", - "base64", + "base64 0.23.1", "derive_more", "http", "pbjson", "pbjson-build", "prost", - "prost-types", "prost-wkt-types", "serde", "serde_json", @@ -2710,7 +2730,7 @@ dependencies = [ [[package]] name = "temporalio-sdk-core" -version = "0.7.0" +version = "0.11.0" dependencies = [ "anyhow", "async-trait", @@ -2734,7 +2754,7 @@ dependencies = [ "pin-project", "prost", "prost-wkt-types", - "rand 0.10.2", + "rand 0.10.3", "reqwest", "serde", "serde_json", @@ -2764,22 +2784,22 @@ checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683" [[package]] name = "thiserror" -version = "2.0.19" +version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09a43598840e33d5b0331f38c5e30d13bb11c11210a4b58f0d9b18a5a5eefcd9" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "2.0.19" +version = "2.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43cbfe0cf76104d42a574802844187e84a305e531ed54455f11fbde0f10541cd" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] @@ -2793,9 +2813,9 @@ dependencies = [ [[package]] name = "tinystr" -version = "0.8.3" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" dependencies = [ "displaydoc", "zerovec", @@ -2803,24 +2823,15 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.1" +version = "1.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" [[package]] name = "tokio" -version = "1.53.1" +version = "1.54.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" dependencies = [ "bytes", "libc", @@ -2835,20 +2846,20 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.7.1" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6328af13490e73a9b4694030fafd93f8c8c6a9dede33e821c3fc63eddf8042ba" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] name = "tokio-rustls" -version = "0.26.4" +version = "0.26.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db" dependencies = [ "rustls", "tokio", @@ -2867,9 +2878,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.19" +version = "0.7.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b" dependencies = [ "bytes", "futures-core", @@ -2881,9 +2892,9 @@ dependencies = [ [[package]] name = "toml" -version = "1.1.3+spec-1.1.0" +version = "1.2.1+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53c96ecdfa941c8fc4fcaed14f99ada8ebed502eef533015095a07e3301d4c3c" +checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7" dependencies = [ "indexmap", "serde_core", @@ -2896,37 +2907,37 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "1.1.1+spec-1.1.0" +version = "1.1.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" dependencies = [ "serde_core", ] [[package]] name = "toml_parser" -version = "1.1.2+spec-1.1.0" +version = "1.1.5+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" dependencies = [ "winnow", ] [[package]] name = "toml_writer" -version = "1.1.2+spec-1.1.0" +version = "1.2.0+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" +checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a" [[package]] name = "tonic" -version = "0.14.6" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac2a5518c70fa84342385732db33fb3f44bc4cc748936eb5833d2df34d6445ef" +checksum = "e2cdfc673aabd30fe8fee92e65837b644c37c5d47f0f97ae6d5e0f1237d15e1b" dependencies = [ "async-trait", "axum", - "base64", + "base64 0.22.1", "bytes", "flate2", "h2", @@ -2944,6 +2955,7 @@ dependencies = [ "tokio", "tokio-rustls", "tokio-stream", + "tokio-util", "tower", "tower-layer", "tower-service", @@ -2952,11 +2964,11 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.14.6" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c68f61875ac5293cf72e6c8cf0158086428c82c37229e98c840878f1706b0322" +checksum = "ac6d916d206ed7bdda1778ddff9bda43303789c258877e7bc22fb44ee5c984b4" dependencies = [ - "prettyplease", + "prettyplease 0.2.37", "proc-macro2", "quote", "syn 2.0.119", @@ -2964,9 +2976,9 @@ dependencies = [ [[package]] name = "tonic-prost" -version = "0.14.6" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50849f68853be452acf590cde0b146665b8d507b3b8af17261df47e02c209ea0" +checksum = "eba464054e2226f182a34489b8b079bf4c6e3e7ab5fd7fc30e024f24aa92a484" dependencies = [ "bytes", "prost", @@ -2975,11 +2987,11 @@ dependencies = [ [[package]] name = "tonic-prost-build" -version = "0.14.6" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "654e5643eff75d7f8c99197ce1440ed19a3474eada74c12bbac488b2cafdae27" +checksum = "2ea216ddc448e08e7839ab09e20e60b06b6a1c32745ccb212c0ebd161c199f1b" dependencies = [ - "prettyplease", + "prettyplease 0.2.37", "proc-macro2", "prost-build", "prost-types", @@ -2991,9 +3003,9 @@ dependencies = [ [[package]] name = "tonic-types" -version = "0.14.6" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73ab1b02061f83d519bba3caa167f88f261ef05720ab8ebc954ade70de3348e8" +checksum = "ccbb6c31deb8e99dcdf87df19c5289b7838a600da74a8224baa671e52fe7c5ad" dependencies = [ "prost", "prost-types", @@ -3119,9 +3131,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "typed-path" -version = "0.12.3" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e" +checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e" [[package]] name = "typeid" @@ -3150,20 +3162,20 @@ checksum = "f153acc4e99a5f2a5aefa09fb078be54e26271b2813f6041200b224c098d8328" dependencies = [ "proc-macro2", "quote", - "syn 3.0.3", + "syn 3.0.10", ] [[package]] name = "unicase" -version = "2.9.0" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" +checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f" [[package]] name = "unicode-ident" -version = "1.0.24" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" [[package]] name = "unicode-segmentation" @@ -3203,15 +3215,24 @@ dependencies = [ [[package]] name = "utf8_iter" -version = "1.0.4" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf_types" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" [[package]] name = "uuid" -version = "1.24.0" +version = "1.29.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf3923a6f5c4c6382e0b653c4117f48d631ea17f38ed86e2a828e6f7412f5239" +checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c" dependencies = [ "getrandom 0.4.3", ] @@ -3240,9 +3261,9 @@ dependencies = [ [[package]] name = "want" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b" dependencies = [ "try-lock", ] @@ -3264,12 +3285,11 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.126" +version = "0.2.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" dependencies = [ "cfg-if", - "once_cell", "rustversion", "wasm-bindgen-macro", "wasm-bindgen-shared", @@ -3277,19 +3297,20 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.76" +version = "0.4.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d" +checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501" dependencies = [ "js-sys", + "tokio", "wasm-bindgen", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.126" +version = "0.2.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3297,22 +3318,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.126" +version = "0.2.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.126" +version = "0.2.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24" +checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e" dependencies = [ "unicode-ident", ] @@ -3332,9 +3353,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.103" +version = "0.3.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141" +checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88" dependencies = [ "js-sys", "wasm-bindgen", @@ -3352,9 +3373,9 @@ dependencies = [ [[package]] name = "webpki-root-certs" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b96554aa2acc8ccdb7e1c9a58a7a68dd5d13bccc69cd124cb09406db612a1c9b" +checksum = "293198dcebfb821155b5092ab94b5a82ff180eddd7241df3bd6e66a4ffd1a585" dependencies = [ "rustls-pki-types", ] @@ -3584,9 +3605,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" [[package]] name = "wit-bindgen" @@ -3596,15 +3617,15 @@ checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" [[package]] name = "writeable" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" [[package]] name = "xattr" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" +checksum = "963d6fab92d5504b971dc8bd90ca743c2575e590bc8071ea5bc571598667ae08" dependencies = [ "libc", "rustix", @@ -3612,9 +3633,9 @@ dependencies = [ [[package]] name = "yoke" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" dependencies = [ "stable_deref_trait", "yoke-derive", @@ -3623,30 +3644,30 @@ dependencies = [ [[package]] name = "yoke-derive" -version = "0.8.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", "synstructure", ] [[package]] name = "zerocopy" -version = "0.8.55" +version = "0.8.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5a105cd7b140f6eeec8acff2ea38135d3cab283ada58540f629fe51e46696eb" +checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.55" +version = "0.8.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fe976fb70c78cd64cccfe3a6fc142244e8a77b70959b30faf9d0ac37ee228eb" +checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" dependencies = [ "proc-macro2", "quote", @@ -3664,27 +3685,41 @@ dependencies = [ [[package]] name = "zerofrom-derive" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", "synstructure", ] [[package]] name = "zeroize" -version = "1.9.0" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" +checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] [[package]] name = "zerotrie" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" dependencies = [ "displaydoc", "yoke", @@ -3693,9 +3728,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.6" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" dependencies = [ "yoke", "zerofrom", @@ -3704,36 +3739,42 @@ dependencies = [ [[package]] name = "zerovec-derive" -version = "0.11.3" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] name = "zip" -version = "8.6.0" +version = "9.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" +checksum = "e3476fd497ac8af5b1ec7b51acab7bef380f7e8dd8e0487595bafd839417a302" dependencies = [ "bzip2", + "constant_time_eq", "crc32fast", "flate2", + "getrandom 0.4.3", "indexmap", + "libc", "memchr", + "nix", "typed-path", + "windows-sys 0.61.2", + "zeroize", "zopfli", "zstd", ] [[package]] name = "zlib-rs" -version = "0.6.6" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b142a20ec14a91d5bc708c1dc21b080c550113d8aa77afa29635673a65dd02c5" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" [[package]] name = "zmij" @@ -3743,9 +3784,9 @@ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" [[package]] name = "zopfli" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f05cd8797d63865425ff89b5c4a48804f35ba0ce8d125800027ad6017d2b5249" +checksum = "aaf7fc5d30c28483d93805c4a5e12b05bbb52407fa67c5f8bd552374cd01fb11" dependencies = [ "bumpalo", "crc32fast", @@ -3755,27 +3796,27 @@ dependencies = [ [[package]] name = "zstd" -version = "0.13.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +checksum = "ad5020ab8f27bfc0024ad0a07aed6bf022a16208f479686fbed4fdd0c85eb0b3" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "7.2.4" +version = "8.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" +checksum = "5a9ea9cc2576c2fcc104e9cec04f46e3ede564f4fbc206831e4ef7e859a4140d" dependencies = [ "zstd-sys", ] [[package]] name = "zstd-sys" -version = "2.0.16+zstd.1.5.7" +version = "2.1.3+zstd.1.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748" +checksum = "f729a06d0257428fd9d997ac8db7e1407bd0262ab016b085b36bc52957c0052d" dependencies = [ "cc", "pkg-config", diff --git a/temporalio/bridge/Cargo.toml b/temporalio/bridge/Cargo.toml index 3e4b3d37b..4b23ae6ce 100644 --- a/temporalio/bridge/Cargo.toml +++ b/temporalio/bridge/Cargo.toml @@ -49,7 +49,7 @@ futures = "0.3" prost = "0.14" pyo3 = { version = "0.29", features = [ "extension-module", - "abi3-py310", + "abi3-py311", "anyhow", "multiple-pymethods", ] } @@ -58,15 +58,16 @@ pythonize = "0.29" # default-features disabled so the rustls provider isn't pinned to `tls-ring`; # the bridge's tls-ring/tls-aws-lc features (above) select it. Re-add the # crate's non-TLS default (`envconfig`). -temporalio-client = { version = "0.7", path = "./sdk-core/crates/client", default-features = false, features = [ +temporalio-client = { version = "1.2.0", path = "./sdk-core/crates/client", default-features = false, features = [ "envconfig", + "experimental", ] } -temporalio-common = { version = "0.7", path = "./sdk-core/crates/common", features = [ +temporalio-common = { version = "1.2.0", path = "./sdk-core/crates/common", features = [ "envconfig", "otel" ]} # default-features disabled (drops the pinned `tls-ring`); re-add the non-TLS # defaults the bridge relied on (`envconfig`, `prometheus`) plus `ephemeral-server`. -temporalio-sdk-core = { version = "0.7", path = "./sdk-core/crates/sdk-core", default-features = false, features = [ +temporalio-sdk-core = { version = "0.11.0", path = "./sdk-core/crates/sdk-core", default-features = false, features = [ "ephemeral-server", "envconfig", "prometheus", diff --git a/temporalio/bridge/_visitor.py b/temporalio/bridge/_visitor.py index d8fa05edf..ead09a986 100644 --- a/temporalio/bridge/_visitor.py +++ b/temporalio/bridge/_visitor.py @@ -624,6 +624,21 @@ async def _visit_coresdk_nexus_NexusTaskCompletion( elif o.HasField("failure"): await self._visit_temporal_api_failure_v1_Failure(fs, o.failure) + async def _visit_temporal_api_notificationservice_v1_OnCompleteRequest( + self, fs: VisitorFunctions, o: Any + ): + if o.HasField("source_context"): + await self._visit_temporal_api_common_v1_Payload(fs, o.source_context) + if o.HasField("success"): + await self._visit_temporal_api_common_v1_Payload(fs, o.success) + elif o.HasField("failure"): + await self._visit_temporal_api_failure_v1_Failure(fs, o.failure) + + async def _visit_temporal_api_notificationservice_v1_OnCompleteResponse( + self, fs: VisitorFunctions, o: Any + ) -> None: + pass + async def _visit_temporal_api_common_v1_Header(self, fs: VisitorFunctions, o: Any): for v in o.fields.values(): await self._visit_temporal_api_common_v1_Payload(fs, v) diff --git a/temporalio/bridge/client.py b/temporalio/bridge/client.py index 213443f29..10d5c6b54 100644 --- a/temporalio/bridge/client.py +++ b/temporalio/bridge/client.py @@ -85,6 +85,7 @@ class ClientConfig: grpc_compression: str payloads_warn_size: int memo_warn_size: int + connect_timeout_millis: int | None = None @dataclass diff --git a/temporalio/bridge/proto/activity_result/__init__.py b/temporalio/bridge/proto/activity_result/__init__.py index 2354de1ed..c910af687 100644 --- a/temporalio/bridge/proto/activity_result/__init__.py +++ b/temporalio/bridge/proto/activity_result/__init__.py @@ -1,7 +1,6 @@ from .activity_result_pb2 import ( ActivityExecutionResult, ActivityResolution, - ActivityTaskFailedCause, Cancellation, DoBackoff, Failure, @@ -12,7 +11,6 @@ __all__ = [ "ActivityExecutionResult", "ActivityResolution", - "ActivityTaskFailedCause", "Cancellation", "DoBackoff", "Failure", diff --git a/temporalio/bridge/proto/activity_result/activity_result_pb2.py b/temporalio/bridge/proto/activity_result/activity_result_pb2.py index 2e3353f37..c7ecc2a0e 100644 --- a/temporalio/bridge/proto/activity_result/activity_result_pb2.py +++ b/temporalio/bridge/proto/activity_result/activity_result_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -21,125 +19,36 @@ from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.enums.v1 import ( + failed_cause_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_failed__cause__pb2, +) from temporalio.api.failure.v1 import ( message_pb2 as temporal_dot_api_dot_failure_dot_v1_dot_message__pb2, ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n7temporal/sdk/core/activity_result/activity_result.proto\x12\x17\x63oresdk.activity_result\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto"\x95\x02\n\x17\x41\x63tivityExecutionResult\x12\x35\n\tcompleted\x18\x01 \x01(\x0b\x32 .coresdk.activity_result.SuccessH\x00\x12\x32\n\x06\x66\x61iled\x18\x02 \x01(\x0b\x32 .coresdk.activity_result.FailureH\x00\x12:\n\tcancelled\x18\x03 \x01(\x0b\x32%.coresdk.activity_result.CancellationH\x00\x12I\n\x13will_complete_async\x18\x04 \x01(\x0b\x32*.coresdk.activity_result.WillCompleteAsyncH\x00\x42\x08\n\x06status"\xfc\x01\n\x12\x41\x63tivityResolution\x12\x35\n\tcompleted\x18\x01 \x01(\x0b\x32 .coresdk.activity_result.SuccessH\x00\x12\x32\n\x06\x66\x61iled\x18\x02 \x01(\x0b\x32 .coresdk.activity_result.FailureH\x00\x12:\n\tcancelled\x18\x03 \x01(\x0b\x32%.coresdk.activity_result.CancellationH\x00\x12\x35\n\x07\x62\x61\x63koff\x18\x04 \x01(\x0b\x32".coresdk.activity_result.DoBackoffH\x00\x42\x08\n\x06status":\n\x07Success\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"}\n\x07\x46\x61ilure\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12?\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32\x30.coresdk.activity_result.ActivityTaskFailedCause"A\n\x0c\x43\x61ncellation\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\x13\n\x11WillCompleteAsync"\x8d\x01\n\tDoBackoff\x12\x0f\n\x07\x61ttempt\x18\x01 \x01(\r\x12\x33\n\x10\x62\x61\x63koff_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12:\n\x16original_schedule_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp*\xf3\x01\n\x17\x41\x63tivityTaskFailedCause\x12*\n&ACTIVITY_TASK_FAILED_CAUSE_UNSPECIFIED\x10\x00\x12\x31\n-ACTIVITY_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE\x10\x01\x12\x37\n3ACTIVITY_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILURE\x10\x02\x12@\n= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor -class _ActivityTaskFailedCause: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _ActivityTaskFailedCauseEnumTypeWrapper( - google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ - _ActivityTaskFailedCause.ValueType - ], - builtins.type, -): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - ACTIVITY_TASK_FAILED_CAUSE_UNSPECIFIED: _ActivityTaskFailedCause.ValueType # 0 - ACTIVITY_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE: ( - _ActivityTaskFailedCause.ValueType - ) # 1 - """A payload-bearing field on a request the worker sent for this activity task exceeded the - per-field size limit configured on the server for the namespace. - Check the activity task failure message for more information. - """ - ACTIVITY_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILURE: ( - _ActivityTaskFailedCause.ValueType - ) # 2 - """The worker failed to offload a payload to, or retrieve one from, external storage while - processing this activity task. - Check the activity task failure message for more information. - """ - ACTIVITY_TASK_FAILED_CAUSE_ACTIVITY_WORKER_UNHANDLED_FAILURE: ( - _ActivityTaskFailedCause.ValueType - ) # 3 - """The default cause for an activity task failure reported by a worker; a more specific cause - takes precedence whenever the condition is recognized. - Check the activity task failure message for more information. - """ - -class ActivityTaskFailedCause( - _ActivityTaskFailedCause, metaclass=_ActivityTaskFailedCauseEnumTypeWrapper -): - """ - A well-known condition that caused an activity task to fail. Lang reports one alongside the - failure so core can categorize activity failures instead of treating them all alike; it becomes - the `failure_reason` metric label, so the set of values is deliberately small and bounded. - """ - -ACTIVITY_TASK_FAILED_CAUSE_UNSPECIFIED: ActivityTaskFailedCause.ValueType # 0 -ACTIVITY_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE: ActivityTaskFailedCause.ValueType # 1 -"""A payload-bearing field on a request the worker sent for this activity task exceeded the -per-field size limit configured on the server for the namespace. -Check the activity task failure message for more information. -""" -ACTIVITY_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILURE: ( - ActivityTaskFailedCause.ValueType -) # 2 -"""The worker failed to offload a payload to, or retrieve one from, external storage while -processing this activity task. -Check the activity task failure message for more information. -""" -ACTIVITY_TASK_FAILED_CAUSE_ACTIVITY_WORKER_UNHANDLED_FAILURE: ( - ActivityTaskFailedCause.ValueType -) # 3 -"""The default cause for an activity task failure reported by a worker; a more specific cause -takes precedence whenever the condition is recognized. -Check the activity task failure message for more information. -""" -global___ActivityTaskFailedCause = ActivityTaskFailedCause - +@typing.final class ActivityExecutionResult(google.protobuf.message.Message): """Used to report activity completions to core""" @@ -115,7 +45,7 @@ class ActivityExecutionResult(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancelled", b"cancelled", "completed", @@ -130,7 +60,7 @@ class ActivityExecutionResult(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancelled", b"cancelled", "completed", @@ -144,16 +74,14 @@ class ActivityExecutionResult(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["status", b"status"] + self, oneof_group: typing.Literal["status", b"status"] ) -> ( - typing_extensions.Literal[ - "completed", "failed", "cancelled", "will_complete_async" - ] - | None + typing.Literal["completed", "failed", "cancelled", "will_complete_async"] | None ): ... global___ActivityExecutionResult = ActivityExecutionResult +@typing.final class ActivityResolution(google.protobuf.message.Message): """Used to report activity resolutions to lang. IE: This is what the activities are resolved with in the workflow. @@ -183,7 +111,7 @@ class ActivityResolution(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backoff", b"backoff", "cancelled", @@ -198,7 +126,7 @@ class ActivityResolution(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backoff", b"backoff", "cancelled", @@ -212,13 +140,12 @@ class ActivityResolution(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["status", b"status"] - ) -> ( - typing_extensions.Literal["completed", "failed", "cancelled", "backoff"] | None - ): ... + self, oneof_group: typing.Literal["status", b"status"] + ) -> typing.Literal["completed", "failed", "cancelled", "backoff"] | None: ... global___ActivityResolution = ActivityResolution +@typing.final class Success(google.protobuf.message.Message): """Used to report successful completion either when executing or resolving""" @@ -233,14 +160,13 @@ class Success(google.protobuf.message.Message): result: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["result", b"result"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result"]) -> None: ... global___Success = Success +@typing.final class Failure(google.protobuf.message.Message): """Used to report activity failure either when executing or resolving""" @@ -248,28 +174,28 @@ class Failure(google.protobuf.message.Message): FAILURE_FIELD_NUMBER: builtins.int CAUSE_FIELD_NUMBER: builtins.int - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... - cause: global___ActivityTaskFailedCause.ValueType + cause: temporalio.api.enums.v1.failed_cause_pb2.ActivityTaskFailedCause.ValueType """Only meaningful on ActivityExecutionResult (lang -> core); ignored on ActivityResolution, which reuses this message. """ + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... def __init__( self, *, failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., - cause: global___ActivityTaskFailedCause.ValueType = ..., + cause: temporalio.api.enums.v1.failed_cause_pb2.ActivityTaskFailedCause.ValueType = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["cause", b"cause", "failure", b"failure"], + self, field_name: typing.Literal["cause", b"cause", "failure", b"failure"] ) -> None: ... global___Failure = Failure +@typing.final class Cancellation(google.protobuf.message.Message): """ Used to report cancellation from both Core and Lang. @@ -289,14 +215,13 @@ class Cancellation(google.protobuf.message.Message): failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["failure", b"failure"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["failure", b"failure"]) -> None: ... global___Cancellation = Cancellation +@typing.final class WillCompleteAsync(google.protobuf.message.Message): """ Used in ActivityExecutionResult to notify Core that this Activity will complete asynchronously. @@ -311,6 +236,7 @@ class WillCompleteAsync(google.protobuf.message.Message): global___WillCompleteAsync = WillCompleteAsync +@typing.final class DoBackoff(google.protobuf.message.Message): """ Issued when a local activity needs to retry but also wants to back off more than would be @@ -338,6 +264,7 @@ class DoBackoff(google.protobuf.message.Message): """The time the first attempt of this local activity was scheduled. Must be passed with attempt to the retry LA. """ + def __init__( self, *, @@ -347,7 +274,7 @@ class DoBackoff(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backoff_duration", b"backoff_duration", "original_schedule_time", @@ -356,7 +283,7 @@ class DoBackoff(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "attempt", b"attempt", "backoff_duration", diff --git a/temporalio/bridge/proto/activity_task/__init__.py b/temporalio/bridge/proto/activity_task/__init__.py index 779ebf353..9e69a0f89 100644 --- a/temporalio/bridge/proto/activity_task/__init__.py +++ b/temporalio/bridge/proto/activity_task/__init__.py @@ -4,6 +4,7 @@ ActivityTask, Cancel, Start, + WorkflowTaskAttempt, ) __all__ = [ @@ -12,4 +13,5 @@ "ActivityTask", "Cancel", "Start", + "WorkflowTaskAttempt", ] diff --git a/temporalio/bridge/proto/activity_task/activity_task_pb2.py b/temporalio/bridge/proto/activity_task/activity_task_pb2.py index 0e09839dc..25233f524 100644 --- a/temporalio/bridge/proto/activity_task/activity_task_pb2.py +++ b/temporalio/bridge/proto/activity_task/activity_task_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -21,85 +19,19 @@ from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.nexus.v1 import ( + message_pb2 as temporal_dot_api_dot_nexus_dot_v1_dot_message__pb2, +) from temporalio.bridge.proto.common import ( common_pb2 as temporal_dot_sdk_dot_core_dot_common_dot_common__pb2, ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n3temporal/sdk/core/activity_task/activity_task.proto\x12\x15\x63oresdk.activity_task\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/sdk/core/common/common.proto"\x8d\x01\n\x0c\x41\x63tivityTask\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12-\n\x05start\x18\x03 \x01(\x0b\x32\x1c.coresdk.activity_task.StartH\x00\x12/\n\x06\x63\x61ncel\x18\x04 \x01(\x0b\x32\x1d.coresdk.activity_task.CancelH\x00\x42\t\n\x07variant"\xb1\x07\n\x05Start\x12\x1a\n\x12workflow_namespace\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x15\n\ractivity_type\x18\x05 \x01(\t\x12\x45\n\rheader_fields\x18\x06 \x03(\x0b\x32..coresdk.activity_task.Start.HeaderFieldsEntry\x12.\n\x05input\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12:\n\x11heartbeat_details\x18\x08 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x0c \x01(\r\x12<\n\x19schedule_to_close_timeout\x18\r \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x32\n\x08priority\x18\x12 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\x10\n\x08is_local\x18\x11 \x01(\x08\x12\x0e\n\x06run_id\x18\x13 \x01(\t\x1aT\n\x11HeaderFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x8a\x01\n\x06\x43\x61ncel\x12;\n\x06reason\x18\x01 \x01(\x0e\x32+.coresdk.activity_task.ActivityCancelReason\x12\x43\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x32.coresdk.activity_task.ActivityCancellationDetails"\xa0\x01\n\x1b\x41\x63tivityCancellationDetails\x12\x14\n\x0cis_not_found\x18\x01 \x01(\x08\x12\x14\n\x0cis_cancelled\x18\x02 \x01(\x08\x12\x11\n\tis_paused\x18\x03 \x01(\x08\x12\x14\n\x0cis_timed_out\x18\x04 \x01(\x08\x12\x1a\n\x12is_worker_shutdown\x18\x05 \x01(\x08\x12\x10\n\x08is_reset\x18\x06 \x01(\x08*o\n\x14\x41\x63tivityCancelReason\x12\r\n\tNOT_FOUND\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\r\n\tTIMED_OUT\x10\x02\x12\x13\n\x0fWORKER_SHUTDOWN\x10\x03\x12\n\n\x06PAUSED\x10\x04\x12\t\n\x05RESET\x10\x05\x42\x32\xea\x02/Temporalio::Internal::Bridge::Api::ActivityTaskb\x06proto3' -) - -_ACTIVITYCANCELREASON = DESCRIPTOR.enum_types_by_name["ActivityCancelReason"] -ActivityCancelReason = enum_type_wrapper.EnumTypeWrapper(_ACTIVITYCANCELREASON) -NOT_FOUND = 0 -CANCELLED = 1 -TIMED_OUT = 2 -WORKER_SHUTDOWN = 3 -PAUSED = 4 -RESET = 5 - - -_ACTIVITYTASK = DESCRIPTOR.message_types_by_name["ActivityTask"] -_START = DESCRIPTOR.message_types_by_name["Start"] -_START_HEADERFIELDSENTRY = _START.nested_types_by_name["HeaderFieldsEntry"] -_CANCEL = DESCRIPTOR.message_types_by_name["Cancel"] -_ACTIVITYCANCELLATIONDETAILS = DESCRIPTOR.message_types_by_name[ - "ActivityCancellationDetails" -] -ActivityTask = _reflection.GeneratedProtocolMessageType( - "ActivityTask", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTASK, - "__module__": "temporal.sdk.core.activity_task.activity_task_pb2", - # @@protoc_insertion_point(class_scope:coresdk.activity_task.ActivityTask) - }, -) -_sym_db.RegisterMessage(ActivityTask) - -Start = _reflection.GeneratedProtocolMessageType( - "Start", - (_message.Message,), - { - "HeaderFieldsEntry": _reflection.GeneratedProtocolMessageType( - "HeaderFieldsEntry", - (_message.Message,), - { - "DESCRIPTOR": _START_HEADERFIELDSENTRY, - "__module__": "temporal.sdk.core.activity_task.activity_task_pb2", - # @@protoc_insertion_point(class_scope:coresdk.activity_task.Start.HeaderFieldsEntry) - }, - ), - "DESCRIPTOR": _START, - "__module__": "temporal.sdk.core.activity_task.activity_task_pb2", - # @@protoc_insertion_point(class_scope:coresdk.activity_task.Start) - }, -) -_sym_db.RegisterMessage(Start) -_sym_db.RegisterMessage(Start.HeaderFieldsEntry) - -Cancel = _reflection.GeneratedProtocolMessageType( - "Cancel", - (_message.Message,), - { - "DESCRIPTOR": _CANCEL, - "__module__": "temporal.sdk.core.activity_task.activity_task_pb2", - # @@protoc_insertion_point(class_scope:coresdk.activity_task.Cancel) - }, -) -_sym_db.RegisterMessage(Cancel) - -ActivityCancellationDetails = _reflection.GeneratedProtocolMessageType( - "ActivityCancellationDetails", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYCANCELLATIONDETAILS, - "__module__": "temporal.sdk.core.activity_task.activity_task_pb2", - # @@protoc_insertion_point(class_scope:coresdk.activity_task.ActivityCancellationDetails) - }, + b'\n3temporal/sdk/core/activity_task/activity_task.proto\x12\x15\x63oresdk.activity_task\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a#temporal/api/nexus/v1/message.proto\x1a%temporal/sdk/core/common/common.proto"\x8d\x01\n\x0c\x41\x63tivityTask\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12-\n\x05start\x18\x03 \x01(\x0b\x32\x1c.coresdk.activity_task.StartH\x00\x12/\n\x06\x63\x61ncel\x18\x04 \x01(\x0b\x32\x1d.coresdk.activity_task.CancelH\x00\x42\t\n\x07variant"\xdb\x08\n\x05Start\x12\x1a\n\x12workflow_namespace\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x15\n\ractivity_type\x18\x05 \x01(\t\x12\x45\n\rheader_fields\x18\x06 \x03(\x0b\x32..coresdk.activity_task.Start.HeaderFieldsEntry\x12.\n\x05input\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12:\n\x11heartbeat_details\x18\x08 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x0c \x01(\r\x12<\n\x19schedule_to_close_timeout\x18\r \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x32\n\x08priority\x18\x12 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\x10\n\x08is_local\x18\x11 \x01(\x08\x12\x0e\n\x06run_id\x18\x13 \x01(\t\x12\x65\n&propagated_nexus_serialization_context\x18\x14 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12\x41\n\rworkflow_task\x18\x15 \x01(\x0b\x32*.coresdk.activity_task.WorkflowTaskAttempt\x1aT\n\x11HeaderFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x80\x02\n\x13WorkflowTaskAttempt\x12\x18\n\x10started_event_id\x18\x01 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x02 \x01(\r\x12\x30\n\x0cstarted_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x14\n\x0c\x66\x61iled_tasks\x18\x05 \x03(\x03\x12\x18\n\x10previous_attempt\x18\x06 \x01(\r\x12\x39\n\x15previous_started_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x8a\x01\n\x06\x43\x61ncel\x12;\n\x06reason\x18\x01 \x01(\x0e\x32+.coresdk.activity_task.ActivityCancelReason\x12\x43\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x32.coresdk.activity_task.ActivityCancellationDetails"\xa0\x01\n\x1b\x41\x63tivityCancellationDetails\x12\x14\n\x0cis_not_found\x18\x01 \x01(\x08\x12\x14\n\x0cis_cancelled\x18\x02 \x01(\x08\x12\x11\n\tis_paused\x18\x03 \x01(\x08\x12\x14\n\x0cis_timed_out\x18\x04 \x01(\x08\x12\x1a\n\x12is_worker_shutdown\x18\x05 \x01(\x08\x12\x10\n\x08is_reset\x18\x06 \x01(\x08*o\n\x14\x41\x63tivityCancelReason\x12\r\n\tNOT_FOUND\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\r\n\tTIMED_OUT\x10\x02\x12\x13\n\x0fWORKER_SHUTDOWN\x10\x03\x12\n\n\x06PAUSED\x10\x04\x12\t\n\x05RESET\x10\x05\x42\x32\xea\x02/Temporalio::Internal::Bridge::Api::ActivityTaskb\x06proto3' ) -_sym_db.RegisterMessage(ActivityCancellationDetails) +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( @@ -107,16 +39,18 @@ ) _START_HEADERFIELDSENTRY._options = None _START_HEADERFIELDSENTRY._serialized_options = b"8\001" - _ACTIVITYCANCELREASON._serialized_start = 1616 - _ACTIVITYCANCELREASON._serialized_end = 1727 - _ACTIVITYTASK._serialized_start = 221 - _ACTIVITYTASK._serialized_end = 362 - _START._serialized_start = 365 - _START._serialized_end = 1310 - _START_HEADERFIELDSENTRY._serialized_start = 1226 - _START_HEADERFIELDSENTRY._serialized_end = 1310 - _CANCEL._serialized_start = 1313 - _CANCEL._serialized_end = 1451 - _ACTIVITYCANCELLATIONDETAILS._serialized_start = 1454 - _ACTIVITYCANCELLATIONDETAILS._serialized_end = 1614 + _ACTIVITYCANCELREASON._serialized_start = 2082 + _ACTIVITYCANCELREASON._serialized_end = 2193 + _ACTIVITYTASK._serialized_start = 258 + _ACTIVITYTASK._serialized_end = 399 + _START._serialized_start = 402 + _START._serialized_end = 1517 + _START_HEADERFIELDSENTRY._serialized_start = 1433 + _START_HEADERFIELDSENTRY._serialized_end = 1517 + _WORKFLOWTASKATTEMPT._serialized_start = 1520 + _WORKFLOWTASKATTEMPT._serialized_end = 1776 + _CANCEL._serialized_start = 1779 + _CANCEL._serialized_end = 1917 + _ACTIVITYCANCELLATIONDETAILS._serialized_start = 1920 + _ACTIVITYCANCELLATIONDETAILS._serialized_end = 2080 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi b/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi index 1a2f8c7d2..345b0a6b1 100644 --- a/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi +++ b/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi @@ -18,6 +18,7 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import temporalio.api.common.v1.message_pb2 +import temporalio.api.nexus.v1.message_pb2 if sys.version_info >= (3, 10): import typing as typing_extensions @@ -35,7 +36,7 @@ class _ActivityCancelReasonEnumTypeWrapper( _ActivityCancelReason.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor NOT_FOUND: _ActivityCancelReason.ValueType # 0 """The activity no longer exists according to server (may be already completed)""" @@ -68,6 +69,7 @@ RESET: ActivityCancelReason.ValueType # 5 """Activity was reset""" global___ActivityCancelReason = ActivityCancelReason +@typing.final class ActivityTask(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -79,9 +81,11 @@ class ActivityTask(google.protobuf.message.Message): @property def start(self) -> global___Start: """Start activity execution.""" + @property def cancel(self) -> global___Cancel: """Attempt to cancel activity execution.""" + def __init__( self, *, @@ -91,13 +95,13 @@ class ActivityTask(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel", b"cancel", "start", b"start", "variant", b"variant" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel", b"cancel", "start", @@ -109,16 +113,18 @@ class ActivityTask(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["start", "cancel"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["start", "cancel"] | None: ... global___ActivityTask = ActivityTask +@typing.final class Start(google.protobuf.message.Message): """Begin executing an activity""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeaderFieldsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -134,11 +140,10 @@ class Start(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... WORKFLOW_NAMESPACE_FIELD_NUMBER: builtins.int @@ -160,19 +165,29 @@ class Start(google.protobuf.message.Message): PRIORITY_FIELD_NUMBER: builtins.int IS_LOCAL_FIELD_NUMBER: builtins.int RUN_ID_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int + WORKFLOW_TASK_FIELD_NUMBER: builtins.int workflow_namespace: builtins.str """The namespace the workflow lives in""" workflow_type: builtins.str """The workflow's type name or function identifier""" + activity_id: builtins.str + """The activity's ID""" + activity_type: builtins.str + """The activity's type name or function identifier""" + attempt: builtins.int + is_local: builtins.bool + """Set to true if this is a local activity. Note that heartbeating does not apply to local + activities. + """ + run_id: builtins.str + """Run ID of this activity execution. Only set for standalone activities.""" @property def workflow_execution( self, ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: """The workflow execution which requested this activity""" - activity_id: builtins.str - """The activity's ID""" - activity_type: builtins.str - """The activity's type name or function identifier""" + @property def header_fields( self, @@ -186,6 +201,7 @@ class Start(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Payload ]: """Arguments to the activity""" + @property def heartbeat_details( self, @@ -193,40 +209,57 @@ class Start(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Payload ]: """The last details that were recorded by a heartbeat when this task was generated""" + @property def scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When the task was *first* scheduled""" + @property def current_attempt_scheduled_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When this current attempt at the task was scheduled""" + @property def started_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When this attempt was started, which is to say when core received it by polling.""" - attempt: builtins.int + @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout from the first schedule time to completion""" + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout from starting an attempt to reporting its result""" + @property def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration: """If set a heartbeat must be reported within this interval""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """This is an actual retry policy the service uses. It can be different from the one provided (or not) during activity scheduling as the service can override the provided one in case its values are not specified or exceed configured system limits. """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority of this activity. Local activities will always have this field set to the default.""" - is_local: builtins.bool - """Set to true if this is a local activity. Note that heartbeating does not apply to local - activities. - """ - run_id: builtins.str - """Run ID of this activity execution. Only set for standalone activities.""" + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context of the Nexus operation handler that started this activity, if any. + Only set for standalone activities. Lang should use it to serialize the activity's result and + failure, which are returned to the Nexus caller. + """ + + @property + def workflow_task(self) -> global___WorkflowTaskAttempt: + """For a local activity, the workflow task in which Core dispatched this execution. Retries that + Core runs locally keep the value. Unset for other activities. + """ + def __init__( self, *, @@ -258,16 +291,21 @@ class Start(google.protobuf.message.Message): priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., is_local: builtins.bool = ..., run_id: builtins.str = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., + workflow_task: global___WorkflowTaskAttempt | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "current_attempt_scheduled_time", b"current_attempt_scheduled_time", "heartbeat_timeout", b"heartbeat_timeout", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -280,11 +318,13 @@ class Start(google.protobuf.message.Message): b"started_time", "workflow_execution", b"workflow_execution", + "workflow_task", + b"workflow_task", ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_type", @@ -305,6 +345,8 @@ class Start(google.protobuf.message.Message): b"is_local", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "run_id", @@ -321,6 +363,8 @@ class Start(google.protobuf.message.Message): b"workflow_execution", "workflow_namespace", b"workflow_namespace", + "workflow_task", + b"workflow_task", "workflow_type", b"workflow_type", ], @@ -328,6 +372,87 @@ class Start(google.protobuf.message.Message): global___Start = Start +@typing.final +class WorkflowTaskAttempt(google.protobuf.message.Message): + """One attempt of a workflow task, from the poll response and the history of that attempt.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STARTED_EVENT_ID_FIELD_NUMBER: builtins.int + ATTEMPT_FIELD_NUMBER: builtins.int + STARTED_TIME_FIELD_NUMBER: builtins.int + PREVIOUS_STARTED_EVENT_ID_FIELD_NUMBER: builtins.int + FAILED_TASKS_FIELD_NUMBER: builtins.int + PREVIOUS_ATTEMPT_FIELD_NUMBER: builtins.int + PREVIOUS_STARTED_TIME_FIELD_NUMBER: builtins.int + started_event_id: builtins.int + """The event id of the task's WorkflowTaskStarted event.""" + attempt: builtins.int + previous_started_event_id: builtins.int + """The started event id of the run's last completed workflow task, from the poll response. + 0 when no task of the run has completed. + """ + previous_attempt: builtins.int + """The attempt and the started time of the task at previous_started_event_id, from its + WorkflowTaskScheduled and WorkflowTaskStarted events. Unset when no task has completed. + """ + @property + def started_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """When the server started the task.""" + + @property + def failed_tasks( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: + """The started event ids of the run's last 100 failed and timed out workflow tasks in history, + in event order. The cap keeps each start small. A transient attempt has no such event. + """ + + @property + def previous_started_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__( + self, + *, + started_event_id: builtins.int = ..., + attempt: builtins.int = ..., + started_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + previous_started_event_id: builtins.int = ..., + failed_tasks: collections.abc.Iterable[builtins.int] | None = ..., + previous_attempt: builtins.int = ..., + previous_started_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing.Literal[ + "previous_started_time", + b"previous_started_time", + "started_time", + b"started_time", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing.Literal[ + "attempt", + b"attempt", + "failed_tasks", + b"failed_tasks", + "previous_attempt", + b"previous_attempt", + "previous_started_event_id", + b"previous_started_event_id", + "previous_started_time", + b"previous_started_time", + "started_event_id", + b"started_event_id", + "started_time", + b"started_time", + ], + ) -> None: ... + +global___WorkflowTaskAttempt = WorkflowTaskAttempt + +@typing.final class Cancel(google.protobuf.message.Message): """Attempt to cancel a running activity""" @@ -340,6 +465,7 @@ class Cancel(google.protobuf.message.Message): @property def details(self) -> global___ActivityCancellationDetails: """Activity cancellation details, surfaces all cancellation reasons.""" + def __init__( self, *, @@ -347,17 +473,15 @@ class Cancel(google.protobuf.message.Message): details: global___ActivityCancellationDetails | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "details", b"details", "reason", b"reason" - ], + self, field_name: typing.Literal["details", b"details", "reason", b"reason"] ) -> None: ... global___Cancel = Cancel +@typing.final class ActivityCancellationDetails(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -385,7 +509,7 @@ class ActivityCancellationDetails(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "is_cancelled", b"is_cancelled", "is_not_found", diff --git a/temporalio/bridge/proto/child_workflow/child_workflow_pb2.py b/temporalio/bridge/proto/child_workflow/child_workflow_pb2.py index e8e485e02..dd45fe6dd 100644 --- a/temporalio/bridge/proto/child_workflow/child_workflow_pb2.py +++ b/temporalio/bridge/proto/child_workflow/child_workflow_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -26,83 +24,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n5temporal/sdk/core/child_workflow/child_workflow.proto\x12\x16\x63oresdk.child_workflow\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a%temporal/sdk/core/common/common.proto"\xc3\x01\n\x13\x43hildWorkflowResult\x12\x34\n\tcompleted\x18\x01 \x01(\x0b\x32\x1f.coresdk.child_workflow.SuccessH\x00\x12\x31\n\x06\x66\x61iled\x18\x02 \x01(\x0b\x32\x1f.coresdk.child_workflow.FailureH\x00\x12\x39\n\tcancelled\x18\x03 \x01(\x0b\x32$.coresdk.child_workflow.CancellationH\x00\x42\x08\n\x06status":\n\x07Success\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"<\n\x07\x46\x61ilure\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"A\n\x0c\x43\x61ncellation\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure*\xa4\x01\n\x11ParentClosePolicy\x12#\n\x1fPARENT_CLOSE_POLICY_UNSPECIFIED\x10\x00\x12!\n\x1dPARENT_CLOSE_POLICY_TERMINATE\x10\x01\x12\x1f\n\x1bPARENT_CLOSE_POLICY_ABANDON\x10\x02\x12&\n"PARENT_CLOSE_POLICY_REQUEST_CANCEL\x10\x03*\xae\x01\n&StartChildWorkflowExecutionFailedCause\x12;\n7START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED\x10\x00\x12G\nCSTART_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS\x10\x01*~\n\x1d\x43hildWorkflowCancellationType\x12\x0b\n\x07\x41\x42\x41NDON\x10\x00\x12\x0e\n\nTRY_CANCEL\x10\x01\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x02\x12\x1f\n\x1bWAIT_CANCELLATION_REQUESTED\x10\x03\x42\x33\xea\x02\x30Temporalio::Internal::Bridge::Api::ChildWorkflowb\x06proto3' + b'\n5temporal/sdk/core/child_workflow/child_workflow.proto\x12\x16\x63oresdk.child_workflow\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a%temporal/sdk/core/common/common.proto"\xc3\x01\n\x13\x43hildWorkflowResult\x12\x34\n\tcompleted\x18\x01 \x01(\x0b\x32\x1f.coresdk.child_workflow.SuccessH\x00\x12\x31\n\x06\x66\x61iled\x18\x02 \x01(\x0b\x32\x1f.coresdk.child_workflow.FailureH\x00\x12\x39\n\tcancelled\x18\x03 \x01(\x0b\x32$.coresdk.child_workflow.CancellationH\x00\x42\x08\n\x06status":\n\x07Success\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"<\n\x07\x46\x61ilure\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"A\n\x0c\x43\x61ncellation\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure*\xa4\x01\n\x11ParentClosePolicy\x12#\n\x1fPARENT_CLOSE_POLICY_UNSPECIFIED\x10\x00\x12!\n\x1dPARENT_CLOSE_POLICY_TERMINATE\x10\x01\x12\x1f\n\x1bPARENT_CLOSE_POLICY_ABANDON\x10\x02\x12&\n"PARENT_CLOSE_POLICY_REQUEST_CANCEL\x10\x03*\xc0\x02\n&StartChildWorkflowExecutionFailedCause\x12;\n7START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED\x10\x00\x12G\nCSTART_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS\x10\x01\x12\x43\n?START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND\x10\x02\x12K\nGSTART_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID_VERSIONING_OVERRIDE\x10\x03*~\n\x1d\x43hildWorkflowCancellationType\x12\x0b\n\x07\x41\x42\x41NDON\x10\x00\x12\x0e\n\nTRY_CANCEL\x10\x01\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x02\x12\x1f\n\x1bWAIT_CANCELLATION_REQUESTED\x10\x03\x42\x33\xea\x02\x30Temporalio::Internal::Bridge::Api::ChildWorkflowb\x06proto3' ) -_PARENTCLOSEPOLICY = DESCRIPTOR.enum_types_by_name["ParentClosePolicy"] -ParentClosePolicy = enum_type_wrapper.EnumTypeWrapper(_PARENTCLOSEPOLICY) -_STARTCHILDWORKFLOWEXECUTIONFAILEDCAUSE = DESCRIPTOR.enum_types_by_name[ - "StartChildWorkflowExecutionFailedCause" -] -StartChildWorkflowExecutionFailedCause = enum_type_wrapper.EnumTypeWrapper( - _STARTCHILDWORKFLOWEXECUTIONFAILEDCAUSE -) -_CHILDWORKFLOWCANCELLATIONTYPE = DESCRIPTOR.enum_types_by_name[ - "ChildWorkflowCancellationType" -] -ChildWorkflowCancellationType = enum_type_wrapper.EnumTypeWrapper( - _CHILDWORKFLOWCANCELLATIONTYPE -) -PARENT_CLOSE_POLICY_UNSPECIFIED = 0 -PARENT_CLOSE_POLICY_TERMINATE = 1 -PARENT_CLOSE_POLICY_ABANDON = 2 -PARENT_CLOSE_POLICY_REQUEST_CANCEL = 3 -START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0 -START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS = 1 -ABANDON = 0 -TRY_CANCEL = 1 -WAIT_CANCELLATION_COMPLETED = 2 -WAIT_CANCELLATION_REQUESTED = 3 - - -_CHILDWORKFLOWRESULT = DESCRIPTOR.message_types_by_name["ChildWorkflowResult"] -_SUCCESS = DESCRIPTOR.message_types_by_name["Success"] -_FAILURE = DESCRIPTOR.message_types_by_name["Failure"] -_CANCELLATION = DESCRIPTOR.message_types_by_name["Cancellation"] -ChildWorkflowResult = _reflection.GeneratedProtocolMessageType( - "ChildWorkflowResult", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWRESULT, - "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2", - # @@protoc_insertion_point(class_scope:coresdk.child_workflow.ChildWorkflowResult) - }, -) -_sym_db.RegisterMessage(ChildWorkflowResult) - -Success = _reflection.GeneratedProtocolMessageType( - "Success", - (_message.Message,), - { - "DESCRIPTOR": _SUCCESS, - "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2", - # @@protoc_insertion_point(class_scope:coresdk.child_workflow.Success) - }, -) -_sym_db.RegisterMessage(Success) - -Failure = _reflection.GeneratedProtocolMessageType( - "Failure", - (_message.Message,), - { - "DESCRIPTOR": _FAILURE, - "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2", - # @@protoc_insertion_point(class_scope:coresdk.child_workflow.Failure) - }, -) -_sym_db.RegisterMessage(Failure) - -Cancellation = _reflection.GeneratedProtocolMessageType( - "Cancellation", - (_message.Message,), - { - "DESCRIPTOR": _CANCELLATION, - "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2", - # @@protoc_insertion_point(class_scope:coresdk.child_workflow.Cancellation) - }, -) -_sym_db.RegisterMessage(Cancellation) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( @@ -111,9 +37,9 @@ _PARENTCLOSEPOLICY._serialized_start = 585 _PARENTCLOSEPOLICY._serialized_end = 749 _STARTCHILDWORKFLOWEXECUTIONFAILEDCAUSE._serialized_start = 752 - _STARTCHILDWORKFLOWEXECUTIONFAILEDCAUSE._serialized_end = 926 - _CHILDWORKFLOWCANCELLATIONTYPE._serialized_start = 928 - _CHILDWORKFLOWCANCELLATIONTYPE._serialized_end = 1054 + _STARTCHILDWORKFLOWEXECUTIONFAILEDCAUSE._serialized_end = 1072 + _CHILDWORKFLOWCANCELLATIONTYPE._serialized_start = 1074 + _CHILDWORKFLOWCANCELLATIONTYPE._serialized_end = 1200 _CHILDWORKFLOWRESULT._serialized_start = 198 _CHILDWORKFLOWRESULT._serialized_end = 393 _SUCCESS._serialized_start = 395 diff --git a/temporalio/bridge/proto/child_workflow/child_workflow_pb2.pyi b/temporalio/bridge/proto/child_workflow/child_workflow_pb2.pyi index a41c5b2be..27a4edfd5 100644 --- a/temporalio/bridge/proto/child_workflow/child_workflow_pb2.pyi +++ b/temporalio/bridge/proto/child_workflow/child_workflow_pb2.pyi @@ -30,7 +30,7 @@ class _ParentClosePolicyEnumTypeWrapper( _ParentClosePolicy.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PARENT_CLOSE_POLICY_UNSPECIFIED: _ParentClosePolicy.ValueType # 0 """Let's the server set the default.""" @@ -67,7 +67,7 @@ class _StartChildWorkflowExecutionFailedCauseEnumTypeWrapper( _StartChildWorkflowExecutionFailedCause.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( _StartChildWorkflowExecutionFailedCause.ValueType @@ -75,6 +75,12 @@ class _StartChildWorkflowExecutionFailedCauseEnumTypeWrapper( START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: ( _StartChildWorkflowExecutionFailedCause.ValueType ) # 1 + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: ( + _StartChildWorkflowExecutionFailedCause.ValueType + ) # 2 + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID_VERSIONING_OVERRIDE: ( + _StartChildWorkflowExecutionFailedCause.ValueType + ) # 3 class StartChildWorkflowExecutionFailedCause( _StartChildWorkflowExecutionFailedCause, @@ -88,6 +94,12 @@ START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: ( StartChildWorkflowExecutionFailedCause.ValueType ) # 1 +START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: ( + StartChildWorkflowExecutionFailedCause.ValueType +) # 2 +START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID_VERSIONING_OVERRIDE: ( + StartChildWorkflowExecutionFailedCause.ValueType +) # 3 global___StartChildWorkflowExecutionFailedCause = StartChildWorkflowExecutionFailedCause class _ChildWorkflowCancellationType: @@ -99,7 +111,7 @@ class _ChildWorkflowCancellationTypeEnumTypeWrapper( _ChildWorkflowCancellationType.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ABANDON: _ChildWorkflowCancellationType.ValueType # 0 """Do not request cancellation of the child workflow if already scheduled""" @@ -126,6 +138,7 @@ WAIT_CANCELLATION_REQUESTED: ChildWorkflowCancellationType.ValueType # 3 """Request cancellation of the child and wait for confirmation that the request was received.""" global___ChildWorkflowCancellationType = ChildWorkflowCancellationType +@typing.final class ChildWorkflowResult(google.protobuf.message.Message): """Used by core to resolve child workflow executions.""" @@ -149,7 +162,7 @@ class ChildWorkflowResult(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancelled", b"cancelled", "completed", @@ -162,7 +175,7 @@ class ChildWorkflowResult(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancelled", b"cancelled", "completed", @@ -174,11 +187,12 @@ class ChildWorkflowResult(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["status", b"status"] - ) -> typing_extensions.Literal["completed", "failed", "cancelled"] | None: ... + self, oneof_group: typing.Literal["status", b"status"] + ) -> typing.Literal["completed", "failed", "cancelled"] | None: ... global___ChildWorkflowResult = ChildWorkflowResult +@typing.final class Success(google.protobuf.message.Message): """Used in ChildWorkflowResult to report successful completion.""" @@ -193,14 +207,13 @@ class Success(google.protobuf.message.Message): result: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["result", b"result"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result"]) -> None: ... global___Success = Success +@typing.final class Failure(google.protobuf.message.Message): """Used in ChildWorkflowResult to report non successful outcomes such as application failures, timeouts, terminations, and cancellations. @@ -217,14 +230,13 @@ class Failure(google.protobuf.message.Message): failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["failure", b"failure"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["failure", b"failure"]) -> None: ... global___Failure = Failure +@typing.final class Cancellation(google.protobuf.message.Message): """Used in ChildWorkflowResult to report cancellation. Failure should be ChildWorkflowFailure with a CanceledFailure cause. @@ -241,10 +253,8 @@ class Cancellation(google.protobuf.message.Message): failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["failure", b"failure"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["failure", b"failure"]) -> None: ... global___Cancellation = Cancellation diff --git a/temporalio/bridge/proto/common/common_pb2.py b/temporalio/bridge/proto/common/common_pb2.py index 481cf216d..0b9a5c816 100644 --- a/temporalio/bridge/proto/common/common_pb2.py +++ b/temporalio/bridge/proto/common/common_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -21,51 +19,8 @@ b'\n%temporal/sdk/core/common/common.proto\x12\x0e\x63oresdk.common\x1a\x1egoogle/protobuf/duration.proto"U\n\x1bNamespacedWorkflowExecution\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"D\n\x17WorkerDeploymentVersion\x12\x17\n\x0f\x64\x65ployment_name\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t"\x92\x01\n\x16\x45xternalStorageMetrics\x12\x15\n\rpayload_count\x18\x01 \x01(\x04\x12\x18\n\x10total_size_bytes\x18\x02 \x01(\x04\x12\x31\n\x0etotal_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x14\n\x0c\x64river_names\x18\x04 \x03(\t*@\n\x10VersioningIntent\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nCOMPATIBLE\x10\x01\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x02\x42,\xea\x02)Temporalio::Internal::Bridge::Api::Commonb\x06proto3' ) -_VERSIONINGINTENT = DESCRIPTOR.enum_types_by_name["VersioningIntent"] -VersioningIntent = enum_type_wrapper.EnumTypeWrapper(_VERSIONINGINTENT) -UNSPECIFIED = 0 -COMPATIBLE = 1 -DEFAULT = 2 - - -_NAMESPACEDWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name[ - "NamespacedWorkflowExecution" -] -_WORKERDEPLOYMENTVERSION = DESCRIPTOR.message_types_by_name["WorkerDeploymentVersion"] -_EXTERNALSTORAGEMETRICS = DESCRIPTOR.message_types_by_name["ExternalStorageMetrics"] -NamespacedWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "NamespacedWorkflowExecution", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACEDWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.common.common_pb2", - # @@protoc_insertion_point(class_scope:coresdk.common.NamespacedWorkflowExecution) - }, -) -_sym_db.RegisterMessage(NamespacedWorkflowExecution) - -WorkerDeploymentVersion = _reflection.GeneratedProtocolMessageType( - "WorkerDeploymentVersion", - (_message.Message,), - { - "DESCRIPTOR": _WORKERDEPLOYMENTVERSION, - "__module__": "temporal.sdk.core.common.common_pb2", - # @@protoc_insertion_point(class_scope:coresdk.common.WorkerDeploymentVersion) - }, -) -_sym_db.RegisterMessage(WorkerDeploymentVersion) - -ExternalStorageMetrics = _reflection.GeneratedProtocolMessageType( - "ExternalStorageMetrics", - (_message.Message,), - { - "DESCRIPTOR": _EXTERNALSTORAGEMETRICS, - "__module__": "temporal.sdk.core.common.common_pb2", - # @@protoc_insertion_point(class_scope:coresdk.common.ExternalStorageMetrics) - }, -) -_sym_db.RegisterMessage(ExternalStorageMetrics) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( diff --git a/temporalio/bridge/proto/common/common_pb2.pyi b/temporalio/bridge/proto/common/common_pb2.pyi index 8862fa036..7c2b05702 100644 --- a/temporalio/bridge/proto/common/common_pb2.pyi +++ b/temporalio/bridge/proto/common/common_pb2.pyi @@ -30,7 +30,7 @@ class _VersioningIntentEnumTypeWrapper( _VersioningIntent.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNSPECIFIED: _VersioningIntent.ValueType # 0 """Indicates that core should choose the most sensible default behavior for the type of @@ -68,6 +68,7 @@ build ID. """ global___VersioningIntent = VersioningIntent +@typing.final class NamespacedWorkflowExecution(google.protobuf.message.Message): """Identifying information about a particular workflow execution, including namespace""" @@ -91,7 +92,7 @@ class NamespacedWorkflowExecution(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "namespace", b"namespace", "run_id", @@ -103,6 +104,7 @@ class NamespacedWorkflowExecution(google.protobuf.message.Message): global___NamespacedWorkflowExecution = NamespacedWorkflowExecution +@typing.final class WorkerDeploymentVersion(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -118,13 +120,14 @@ class WorkerDeploymentVersion(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "build_id", b"build_id", "deployment_name", b"deployment_name" ], ) -> None: ... global___WorkerDeploymentVersion = WorkerDeploymentVersion +@typing.final class ExternalStorageMetrics(google.protobuf.message.Message): """Metrics for a set of external payload storage operations (all uploads and downloads) performed while processing a task, so core can emit unified logging and metrics. @@ -143,11 +146,13 @@ class ExternalStorageMetrics(google.protobuf.message.Message): @property def total_duration(self) -> google.protobuf.duration_pb2.Duration: """Wall-clock time spent on the external storage operations.""" + @property def driver_names( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Names of the drivers that participated in the operations.""" + def __init__( self, *, @@ -157,11 +162,11 @@ class ExternalStorageMetrics(google.protobuf.message.Message): driver_names: collections.abc.Iterable[builtins.str] | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["total_duration", b"total_duration"] + self, field_name: typing.Literal["total_duration", b"total_duration"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "driver_names", b"driver_names", "payload_count", diff --git a/temporalio/bridge/proto/core_interface_pb2.py b/temporalio/bridge/proto/core_interface_pb2.py index 19f330433..250b1f28b 100644 --- a/temporalio/bridge/proto/core_interface_pb2.py +++ b/temporalio/bridge/proto/core_interface_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -47,102 +46,8 @@ b'\n&temporal/sdk/core/core_interface.proto\x12\x07\x63oresdk\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a\x37temporal/sdk/core/activity_result/activity_result.proto\x1a\x33temporal/sdk/core/activity_task/activity_task.proto\x1a%temporal/sdk/core/common/common.proto\x1a\x33temporal/sdk/core/external_data/external_data.proto\x1a?temporal/sdk/core/workflow_activation/workflow_activation.proto\x1a;temporal/sdk/core/workflow_commands/workflow_commands.proto\x1a?temporal/sdk/core/workflow_completion/workflow_completion.proto"Y\n\x11\x41\x63tivityHeartbeat\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload"n\n\x16\x41\x63tivityTaskCompletion\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12@\n\x06result\x18\x02 \x01(\x0b\x32\x30.coresdk.activity_result.ActivityExecutionResult"<\n\x10WorkflowSlotInfo\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x11\n\tis_sticky\x18\x02 \x01(\x08")\n\x10\x41\x63tivitySlotInfo\x12\x15\n\ractivity_type\x18\x01 \x01(\t".\n\x15LocalActivitySlotInfo\x12\x15\n\ractivity_type\x18\x01 \x01(\t"3\n\rNexusSlotInfo\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t"\x86\x01\n\rNamespaceInfo\x12-\n\x06limits\x18\x01 \x01(\x0b\x32\x1d.coresdk.NamespaceInfo.Limits\x1a\x46\n\x06Limits\x12\x1d\n\x15\x62lob_size_limit_error\x18\x01 \x01(\x03\x12\x1d\n\x15memo_size_limit_error\x18\x02 \x01(\x03\x42\x33\xea\x02\x30Temporalio::Internal::Bridge::Api::CoreInterfaceb\x06proto3' ) - -_ACTIVITYHEARTBEAT = DESCRIPTOR.message_types_by_name["ActivityHeartbeat"] -_ACTIVITYTASKCOMPLETION = DESCRIPTOR.message_types_by_name["ActivityTaskCompletion"] -_WORKFLOWSLOTINFO = DESCRIPTOR.message_types_by_name["WorkflowSlotInfo"] -_ACTIVITYSLOTINFO = DESCRIPTOR.message_types_by_name["ActivitySlotInfo"] -_LOCALACTIVITYSLOTINFO = DESCRIPTOR.message_types_by_name["LocalActivitySlotInfo"] -_NEXUSSLOTINFO = DESCRIPTOR.message_types_by_name["NexusSlotInfo"] -_NAMESPACEINFO = DESCRIPTOR.message_types_by_name["NamespaceInfo"] -_NAMESPACEINFO_LIMITS = _NAMESPACEINFO.nested_types_by_name["Limits"] -ActivityHeartbeat = _reflection.GeneratedProtocolMessageType( - "ActivityHeartbeat", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYHEARTBEAT, - "__module__": "temporal.sdk.core.core_interface_pb2", - # @@protoc_insertion_point(class_scope:coresdk.ActivityHeartbeat) - }, -) -_sym_db.RegisterMessage(ActivityHeartbeat) - -ActivityTaskCompletion = _reflection.GeneratedProtocolMessageType( - "ActivityTaskCompletion", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYTASKCOMPLETION, - "__module__": "temporal.sdk.core.core_interface_pb2", - # @@protoc_insertion_point(class_scope:coresdk.ActivityTaskCompletion) - }, -) -_sym_db.RegisterMessage(ActivityTaskCompletion) - -WorkflowSlotInfo = _reflection.GeneratedProtocolMessageType( - "WorkflowSlotInfo", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWSLOTINFO, - "__module__": "temporal.sdk.core.core_interface_pb2", - # @@protoc_insertion_point(class_scope:coresdk.WorkflowSlotInfo) - }, -) -_sym_db.RegisterMessage(WorkflowSlotInfo) - -ActivitySlotInfo = _reflection.GeneratedProtocolMessageType( - "ActivitySlotInfo", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYSLOTINFO, - "__module__": "temporal.sdk.core.core_interface_pb2", - # @@protoc_insertion_point(class_scope:coresdk.ActivitySlotInfo) - }, -) -_sym_db.RegisterMessage(ActivitySlotInfo) - -LocalActivitySlotInfo = _reflection.GeneratedProtocolMessageType( - "LocalActivitySlotInfo", - (_message.Message,), - { - "DESCRIPTOR": _LOCALACTIVITYSLOTINFO, - "__module__": "temporal.sdk.core.core_interface_pb2", - # @@protoc_insertion_point(class_scope:coresdk.LocalActivitySlotInfo) - }, -) -_sym_db.RegisterMessage(LocalActivitySlotInfo) - -NexusSlotInfo = _reflection.GeneratedProtocolMessageType( - "NexusSlotInfo", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSSLOTINFO, - "__module__": "temporal.sdk.core.core_interface_pb2", - # @@protoc_insertion_point(class_scope:coresdk.NexusSlotInfo) - }, -) -_sym_db.RegisterMessage(NexusSlotInfo) - -NamespaceInfo = _reflection.GeneratedProtocolMessageType( - "NamespaceInfo", - (_message.Message,), - { - "Limits": _reflection.GeneratedProtocolMessageType( - "Limits", - (_message.Message,), - { - "DESCRIPTOR": _NAMESPACEINFO_LIMITS, - "__module__": "temporal.sdk.core.core_interface_pb2", - # @@protoc_insertion_point(class_scope:coresdk.NamespaceInfo.Limits) - }, - ), - "DESCRIPTOR": _NAMESPACEINFO, - "__module__": "temporal.sdk.core.core_interface_pb2", - # @@protoc_insertion_point(class_scope:coresdk.NamespaceInfo) - }, -) -_sym_db.RegisterMessage(NamespaceInfo) -_sym_db.RegisterMessage(NamespaceInfo.Limits) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( diff --git a/temporalio/bridge/proto/core_interface_pb2.pyi b/temporalio/bridge/proto/core_interface_pb2.pyi index 46fa4eccd..742525c57 100644 --- a/temporalio/bridge/proto/core_interface_pb2.pyi +++ b/temporalio/bridge/proto/core_interface_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers @@ -14,13 +14,9 @@ import google.protobuf.message import temporalio.api.common.v1.message_pb2 import temporalio.bridge.proto.activity_result.activity_result_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ActivityHeartbeat(google.protobuf.message.Message): """A request as given to `record_activity_heartbeat`""" @@ -44,13 +40,12 @@ class ActivityHeartbeat(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "details", b"details", "task_token", b"task_token" - ], + field_name: typing.Literal["details", b"details", "task_token", b"task_token"], ) -> None: ... global___ActivityHeartbeat = ActivityHeartbeat +@typing.final class ActivityTaskCompletion(google.protobuf.message.Message): """A request as given to `complete_activity_task`""" @@ -71,17 +66,16 @@ class ActivityTaskCompletion(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "result", b"result", "task_token", b"task_token" - ], + field_name: typing.Literal["result", b"result", "task_token", b"task_token"], ) -> None: ... global___ActivityTaskCompletion = ActivityTaskCompletion +@typing.final class WorkflowSlotInfo(google.protobuf.message.Message): """Info about workflow task slot usage""" @@ -99,13 +93,14 @@ class WorkflowSlotInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "is_sticky", b"is_sticky", "workflow_type", b"workflow_type" ], ) -> None: ... global___WorkflowSlotInfo = WorkflowSlotInfo +@typing.final class ActivitySlotInfo(google.protobuf.message.Message): """Info about activity task slot usage""" @@ -119,11 +114,12 @@ class ActivitySlotInfo(google.protobuf.message.Message): activity_type: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["activity_type", b"activity_type"] + self, field_name: typing.Literal["activity_type", b"activity_type"] ) -> None: ... global___ActivitySlotInfo = ActivitySlotInfo +@typing.final class LocalActivitySlotInfo(google.protobuf.message.Message): """Info about local activity slot usage""" @@ -137,11 +133,12 @@ class LocalActivitySlotInfo(google.protobuf.message.Message): activity_type: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["activity_type", b"activity_type"] + self, field_name: typing.Literal["activity_type", b"activity_type"] ) -> None: ... global___LocalActivitySlotInfo = LocalActivitySlotInfo +@typing.final class NexusSlotInfo(google.protobuf.message.Message): """Info about nexus task slot usage""" @@ -159,18 +156,18 @@ class NexusSlotInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "operation", b"operation", "service", b"service" - ], + field_name: typing.Literal["operation", b"operation", "service", b"service"], ) -> None: ... global___NexusSlotInfo = NexusSlotInfo +@typing.final class NamespaceInfo(google.protobuf.message.Message): """Info about a namespace""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class Limits(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -191,7 +188,7 @@ class NamespaceInfo(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "blob_size_limit_error", b"blob_size_limit_error", "memo_size_limit_error", @@ -203,16 +200,15 @@ class NamespaceInfo(google.protobuf.message.Message): @property def limits(self) -> global___NamespaceInfo.Limits: """Namespace configured limits""" + def __init__( self, *, limits: global___NamespaceInfo.Limits | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["limits", b"limits"] + self, field_name: typing.Literal["limits", b"limits"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["limits", b"limits"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["limits", b"limits"]) -> None: ... global___NamespaceInfo = NamespaceInfo diff --git a/temporalio/bridge/proto/external_data/external_data_pb2.py b/temporalio/bridge/proto/external_data/external_data_pb2.py index e8070efa7..4bda6f514 100644 --- a/temporalio/bridge/proto/external_data/external_data_pb2.py +++ b/temporalio/bridge/proto/external_data/external_data_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -18,41 +17,18 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n3temporal/sdk/core/external_data/external_data.proto\x12\x15\x63oresdk.external_data\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xfe\x01\n\x17LocalActivityMarkerData\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x0f\n\x07\x61ttempt\x18\x02 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x15\n\ractivity_type\x18\x04 \x01(\t\x12\x31\n\rcomplete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x07\x62\x61\x63koff\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12:\n\x16original_schedule_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"3\n\x11PatchedMarkerData\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\ndeprecated\x18\x02 \x01(\x08\x42\x32\xea\x02/Temporalio::Internal::Bridge::Api::ExternalDatab\x06proto3' + b'\n3temporal/sdk/core/external_data/external_data.proto\x12\x15\x63oresdk.external_data\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xb2\x02\n\x17LocalActivityMarkerData\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x0f\n\x07\x61ttempt\x18\x02 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x15\n\ractivity_type\x18\x04 \x01(\t\x12\x31\n\rcomplete_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x07\x62\x61\x63koff\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12:\n\x16original_schedule_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x10\x61\x63tivation_index\x18\x08 \x01(\x04H\x00\x88\x01\x01\x42\x13\n\x11_activation_index"3\n\x11PatchedMarkerData\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\ndeprecated\x18\x02 \x01(\x08\x42\x32\xea\x02/Temporalio::Internal::Bridge::Api::ExternalDatab\x06proto3' ) - -_LOCALACTIVITYMARKERDATA = DESCRIPTOR.message_types_by_name["LocalActivityMarkerData"] -_PATCHEDMARKERDATA = DESCRIPTOR.message_types_by_name["PatchedMarkerData"] -LocalActivityMarkerData = _reflection.GeneratedProtocolMessageType( - "LocalActivityMarkerData", - (_message.Message,), - { - "DESCRIPTOR": _LOCALACTIVITYMARKERDATA, - "__module__": "temporal.sdk.core.external_data.external_data_pb2", - # @@protoc_insertion_point(class_scope:coresdk.external_data.LocalActivityMarkerData) - }, -) -_sym_db.RegisterMessage(LocalActivityMarkerData) - -PatchedMarkerData = _reflection.GeneratedProtocolMessageType( - "PatchedMarkerData", - (_message.Message,), - { - "DESCRIPTOR": _PATCHEDMARKERDATA, - "__module__": "temporal.sdk.core.external_data.external_data_pb2", - # @@protoc_insertion_point(class_scope:coresdk.external_data.PatchedMarkerData) - }, -) -_sym_db.RegisterMessage(PatchedMarkerData) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( b"\352\002/Temporalio::Internal::Bridge::Api::ExternalData" ) _LOCALACTIVITYMARKERDATA._serialized_start = 144 - _LOCALACTIVITYMARKERDATA._serialized_end = 398 - _PATCHEDMARKERDATA._serialized_start = 400 - _PATCHEDMARKERDATA._serialized_end = 451 + _LOCALACTIVITYMARKERDATA._serialized_end = 450 + _PATCHEDMARKERDATA._serialized_start = 452 + _PATCHEDMARKERDATA._serialized_end = 503 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/bridge/proto/external_data/external_data_pb2.pyi b/temporalio/bridge/proto/external_data/external_data_pb2.pyi index a1d29e39d..edcd4581a 100644 --- a/temporalio/bridge/proto/external_data/external_data_pb2.pyi +++ b/temporalio/bridge/proto/external_data/external_data_pb2.pyi @@ -4,20 +4,16 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.message import google.protobuf.timestamp_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class LocalActivityMarkerData(google.protobuf.message.Message): """This file defines data that Core might write externally. The first motivating case being storing data in markers in event history. Defining such data as protos provides an easy way @@ -33,6 +29,7 @@ class LocalActivityMarkerData(google.protobuf.message.Message): COMPLETE_TIME_FIELD_NUMBER: builtins.int BACKOFF_FIELD_NUMBER: builtins.int ORIGINAL_SCHEDULE_TIME_FIELD_NUMBER: builtins.int + ACTIVATION_INDEX_FIELD_NUMBER: builtins.int seq: builtins.int attempt: builtins.int """The number of attempts at execution before we recorded this result. Typically starts at 1, @@ -40,23 +37,31 @@ class LocalActivityMarkerData(google.protobuf.message.Message): """ activity_id: builtins.str activity_type: builtins.str + activation_index: builtins.int + """Position, within the workflow task, of the activation this resolution was delivered in. + Replay must deliver resolutions in the same activations because workflow code can branch on + which handles are ready. Absent in markers written by Core versions that predate this field. + """ @property def complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """You can think of this as "perceived completion time". It is the time the local activity thought it was when it completed. Which could be different from wall-clock time because of workflow replay. It's the WFT start time + the LA's runtime """ + @property def backoff(self) -> google.protobuf.duration_pb2.Duration: """If set, this local activity conceptually is retrying after the specified backoff. Implementation wise, they are really two different LA machines, but with the same type & input. The retry starts with an attempt number > 1. """ + @property def original_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time the LA was originally scheduled (wall clock time). This is used to track schedule-to-close timeouts when timer-based backoffs are used """ + def __init__( self, *, @@ -67,10 +72,15 @@ class LocalActivityMarkerData(google.protobuf.message.Message): complete_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., backoff: google.protobuf.duration_pb2.Duration | None = ..., original_schedule_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + activation_index: builtins.int | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ + "_activation_index", + b"_activation_index", + "activation_index", + b"activation_index", "backoff", b"backoff", "complete_time", @@ -81,7 +91,11 @@ class LocalActivityMarkerData(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ + "_activation_index", + b"_activation_index", + "activation_index", + b"activation_index", "activity_id", b"activity_id", "activity_type", @@ -98,9 +112,13 @@ class LocalActivityMarkerData(google.protobuf.message.Message): b"seq", ], ) -> None: ... + def WhichOneof( + self, oneof_group: typing.Literal["_activation_index", b"_activation_index"] + ) -> typing.Literal["activation_index"] | None: ... global___LocalActivityMarkerData = LocalActivityMarkerData +@typing.final class PatchedMarkerData(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -117,8 +135,7 @@ class PatchedMarkerData(google.protobuf.message.Message): deprecated: builtins.bool = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["deprecated", b"deprecated", "id", b"id"], + self, field_name: typing.Literal["deprecated", b"deprecated", "id", b"id"] ) -> None: ... global___PatchedMarkerData = PatchedMarkerData diff --git a/temporalio/bridge/proto/health/v1/health_pb2.py b/temporalio/bridge/proto/health/v1/health_pb2.py index 8e31dcecb..c10a1ffe4 100644 --- a/temporalio/bridge/proto/health/v1/health_pb2.py +++ b/temporalio/bridge/proto/health/v1/health_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -18,35 +17,8 @@ b'\n\x16health/v1/health.proto\x12\x17temporal.grpc.health.v1"%\n\x12HealthCheckRequest\x12\x0f\n\x07service\x18\x01 \x01(\t"\xb2\x01\n\x13HealthCheckResponse\x12J\n\x06status\x18\x01 \x01(\x0e\x32:.temporal.grpc.health.v1.HealthCheckResponse.ServingStatus"O\n\rServingStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07SERVING\x10\x01\x12\x0f\n\x0bNOT_SERVING\x10\x02\x12\x13\n\x0fSERVICE_UNKNOWN\x10\x03\x32\xd2\x01\n\x06Health\x12\x62\n\x05\x43heck\x12+.temporal.grpc.health.v1.HealthCheckRequest\x1a,.temporal.grpc.health.v1.HealthCheckResponse\x12\x64\n\x05Watch\x12+.temporal.grpc.health.v1.HealthCheckRequest\x1a,.temporal.grpc.health.v1.HealthCheckResponse0\x01\x42\x61\n\x11io.grpc.health.v1B\x0bHealthProtoP\x01Z,google.golang.org/grpc/health/grpc_health_v1\xaa\x02\x0eGrpc.Health.V1b\x06proto3' ) - -_HEALTHCHECKREQUEST = DESCRIPTOR.message_types_by_name["HealthCheckRequest"] -_HEALTHCHECKRESPONSE = DESCRIPTOR.message_types_by_name["HealthCheckResponse"] -_HEALTHCHECKRESPONSE_SERVINGSTATUS = _HEALTHCHECKRESPONSE.enum_types_by_name[ - "ServingStatus" -] -HealthCheckRequest = _reflection.GeneratedProtocolMessageType( - "HealthCheckRequest", - (_message.Message,), - { - "DESCRIPTOR": _HEALTHCHECKREQUEST, - "__module__": "health.v1.health_pb2", - # @@protoc_insertion_point(class_scope:temporal.grpc.health.v1.HealthCheckRequest) - }, -) -_sym_db.RegisterMessage(HealthCheckRequest) - -HealthCheckResponse = _reflection.GeneratedProtocolMessageType( - "HealthCheckResponse", - (_message.Message,), - { - "DESCRIPTOR": _HEALTHCHECKRESPONSE, - "__module__": "health.v1.health_pb2", - # @@protoc_insertion_point(class_scope:temporal.grpc.health.v1.HealthCheckResponse) - }, -) -_sym_db.RegisterMessage(HealthCheckResponse) - -_HEALTH = DESCRIPTOR.services_by_name["Health"] +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\021io.grpc.health.v1B\013HealthProtoP\001Z,google.golang.org/grpc/health/grpc_health_v1\252\002\016Grpc.Health.V1" diff --git a/temporalio/bridge/proto/health/v1/health_pb2.pyi b/temporalio/bridge/proto/health/v1/health_pb2.pyi index 2e1121e3c..007e6c2c2 100644 --- a/temporalio/bridge/proto/health/v1/health_pb2.pyi +++ b/temporalio/bridge/proto/health/v1/health_pb2.pyi @@ -18,6 +18,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class HealthCheckRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -28,12 +29,11 @@ class HealthCheckRequest(google.protobuf.message.Message): *, service: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["service", b"service"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["service", b"service"]) -> None: ... global___HealthCheckRequest = HealthCheckRequest +@typing.final class HealthCheckResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -46,7 +46,7 @@ class HealthCheckResponse(google.protobuf.message.Message): HealthCheckResponse._ServingStatus.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNKNOWN: HealthCheckResponse._ServingStatus.ValueType # 0 SERVING: HealthCheckResponse._ServingStatus.ValueType # 1 @@ -68,8 +68,6 @@ class HealthCheckResponse(google.protobuf.message.Message): *, status: global___HealthCheckResponse.ServingStatus.ValueType = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["status", b"status"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ... global___HealthCheckResponse = HealthCheckResponse diff --git a/temporalio/bridge/proto/nexus/nexus_pb2.py b/temporalio/bridge/proto/nexus/nexus_pb2.py index d932c3571..51618a5ce 100644 --- a/temporalio/bridge/proto/nexus/nexus_pb2.py +++ b/temporalio/bridge/proto/nexus/nexus_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -37,70 +35,8 @@ b'\n#temporal/sdk/core/nexus/nexus.proto\x12\rcoresdk.nexus\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\x36temporal/api/workflowservice/v1/request_response.proto\x1a%temporal/sdk/core/common/common.proto"\xf8\x01\n\x14NexusOperationResult\x12\x34\n\tcompleted\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x32\n\x06\x66\x61iled\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x35\n\tcancelled\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x35\n\ttimed_out\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status"\xee\x01\n\x13NexusTaskCompletion\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x34\n\tcompleted\x18\x02 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.ResponseH\x00\x12\x38\n\x05\x65rror\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerErrorB\x02\x18\x01H\x00\x12\x14\n\nack_cancel\x18\x04 \x01(\x08H\x00\x12\x33\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status"\xe2\x01\n\tNexusTask\x12K\n\x04task\x18\x01 \x01(\x0b\x32;.temporal.api.workflowservice.v1.PollNexusTaskQueueResponseH\x00\x12\x35\n\x0b\x63\x61ncel_task\x18\x02 \x01(\x0b\x32\x1e.coresdk.nexus.CancelNexusTaskH\x00\x12\x34\n\x10request_deadline\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\tB\t\n\x07variant"[\n\x0f\x43\x61ncelNexusTask\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x34\n\x06reason\x18\x02 \x01(\x0e\x32$.coresdk.nexus.NexusTaskCancelReason*;\n\x15NexusTaskCancelReason\x12\r\n\tTIMED_OUT\x10\x00\x12\x13\n\x0fWORKER_SHUTDOWN\x10\x01*\x7f\n\x1eNexusOperationCancellationType\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x00\x12\x0b\n\x07\x41\x42\x41NDON\x10\x01\x12\x0e\n\nTRY_CANCEL\x10\x02\x12\x1f\n\x1bWAIT_CANCELLATION_REQUESTED\x10\x03\x42+\xea\x02(Temporalio::Internal::Bridge::Api::Nexusb\x06proto3' ) -_NEXUSTASKCANCELREASON = DESCRIPTOR.enum_types_by_name["NexusTaskCancelReason"] -NexusTaskCancelReason = enum_type_wrapper.EnumTypeWrapper(_NEXUSTASKCANCELREASON) -_NEXUSOPERATIONCANCELLATIONTYPE = DESCRIPTOR.enum_types_by_name[ - "NexusOperationCancellationType" -] -NexusOperationCancellationType = enum_type_wrapper.EnumTypeWrapper( - _NEXUSOPERATIONCANCELLATIONTYPE -) -TIMED_OUT = 0 -WORKER_SHUTDOWN = 1 -WAIT_CANCELLATION_COMPLETED = 0 -ABANDON = 1 -TRY_CANCEL = 2 -WAIT_CANCELLATION_REQUESTED = 3 - - -_NEXUSOPERATIONRESULT = DESCRIPTOR.message_types_by_name["NexusOperationResult"] -_NEXUSTASKCOMPLETION = DESCRIPTOR.message_types_by_name["NexusTaskCompletion"] -_NEXUSTASK = DESCRIPTOR.message_types_by_name["NexusTask"] -_CANCELNEXUSTASK = DESCRIPTOR.message_types_by_name["CancelNexusTask"] -NexusOperationResult = _reflection.GeneratedProtocolMessageType( - "NexusOperationResult", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSOPERATIONRESULT, - "__module__": "temporal.sdk.core.nexus.nexus_pb2", - # @@protoc_insertion_point(class_scope:coresdk.nexus.NexusOperationResult) - }, -) -_sym_db.RegisterMessage(NexusOperationResult) - -NexusTaskCompletion = _reflection.GeneratedProtocolMessageType( - "NexusTaskCompletion", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSTASKCOMPLETION, - "__module__": "temporal.sdk.core.nexus.nexus_pb2", - # @@protoc_insertion_point(class_scope:coresdk.nexus.NexusTaskCompletion) - }, -) -_sym_db.RegisterMessage(NexusTaskCompletion) - -NexusTask = _reflection.GeneratedProtocolMessageType( - "NexusTask", - (_message.Message,), - { - "DESCRIPTOR": _NEXUSTASK, - "__module__": "temporal.sdk.core.nexus.nexus_pb2", - # @@protoc_insertion_point(class_scope:coresdk.nexus.NexusTask) - }, -) -_sym_db.RegisterMessage(NexusTask) - -CancelNexusTask = _reflection.GeneratedProtocolMessageType( - "CancelNexusTask", - (_message.Message,), - { - "DESCRIPTOR": _CANCELNEXUSTASK, - "__module__": "temporal.sdk.core.nexus.nexus_pb2", - # @@protoc_insertion_point(class_scope:coresdk.nexus.CancelNexusTask) - }, -) -_sym_db.RegisterMessage(CancelNexusTask) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( diff --git a/temporalio/bridge/proto/nexus/nexus_pb2.pyi b/temporalio/bridge/proto/nexus/nexus_pb2.pyi index 3cfafac26..d1ccb9aa7 100644 --- a/temporalio/bridge/proto/nexus/nexus_pb2.pyi +++ b/temporalio/bridge/proto/nexus/nexus_pb2.pyi @@ -33,7 +33,7 @@ class _NexusTaskCancelReasonEnumTypeWrapper( _NexusTaskCancelReason.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TIMED_OUT: _NexusTaskCancelReason.ValueType # 0 """The nexus task is known to have timed out""" @@ -59,7 +59,7 @@ class _NexusOperationCancellationTypeEnumTypeWrapper( _NexusOperationCancellationType.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor WAIT_CANCELLATION_COMPLETED: _NexusOperationCancellationType.ValueType # 0 """Wait for operation cancellation completion. Default.""" @@ -92,6 +92,7 @@ WAIT_CANCELLATION_REQUESTED: NexusOperationCancellationType.ValueType # 3 """Request cancellation of the operation and wait for confirmation that the request was received.""" global___NexusOperationCancellationType = NexusOperationCancellationType +@typing.final class NexusOperationResult(google.protobuf.message.Message): """Used by core to resolve nexus operations.""" @@ -119,7 +120,7 @@ class NexusOperationResult(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancelled", b"cancelled", "completed", @@ -134,7 +135,7 @@ class NexusOperationResult(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancelled", b"cancelled", "completed", @@ -148,14 +149,12 @@ class NexusOperationResult(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["status", b"status"] - ) -> ( - typing_extensions.Literal["completed", "failed", "cancelled", "timed_out"] - | None - ): ... + self, oneof_group: typing.Literal["status", b"status"] + ) -> typing.Literal["completed", "failed", "cancelled", "timed_out"] | None: ... global___NexusOperationResult = NexusOperationResult +@typing.final class NexusTaskCompletion(google.protobuf.message.Message): """A response to a Nexus task""" @@ -168,23 +167,26 @@ class NexusTaskCompletion(google.protobuf.message.Message): FAILURE_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The unique identifier for this task provided in the poll response""" + ack_cancel: builtins.bool + """The lang SDK acknowledges that it is responding to a `CancelNexusTask` and thus the + response is irrelevant. This is not the only way to respond to a cancel, the other + variants can still be used, but this variant should be used when the handler was aborted + by cancellation. + """ @property def completed(self) -> temporalio.api.nexus.v1.message_pb2.Response: """The handler completed (successfully or not). Note that the response kind must match the request kind (start or cancel). """ + @property def error(self) -> temporalio.api.nexus.v1.message_pb2.HandlerError: """The handler could not complete the request for some reason. Deprecated, use failure.""" - ack_cancel: builtins.bool - """The lang SDK acknowledges that it is responding to a `CancelNexusTask` and thus the - response is irrelevant. This is not the only way to respond to a cancel, the other - variants can still be used, but this variant should be used when the handler was aborted - by cancellation. - """ + @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """The handler could not complete the request for some reason.""" + def __init__( self, *, @@ -196,7 +198,7 @@ class NexusTaskCompletion(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "ack_cancel", b"ack_cancel", "completed", @@ -211,7 +213,7 @@ class NexusTaskCompletion(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "ack_cancel", b"ack_cancel", "completed", @@ -227,13 +229,12 @@ class NexusTaskCompletion(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["status", b"status"] - ) -> ( - typing_extensions.Literal["completed", "error", "ack_cancel", "failure"] | None - ): ... + self, oneof_group: typing.Literal["status", b"status"] + ) -> typing.Literal["completed", "error", "ack_cancel", "failure"] | None: ... global___NexusTaskCompletion = NexusTaskCompletion +@typing.final class NexusTask(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -241,11 +242,16 @@ class NexusTask(google.protobuf.message.Message): CANCEL_TASK_FIELD_NUMBER: builtins.int REQUEST_DEADLINE_FIELD_NUMBER: builtins.int ENDPOINT_FIELD_NUMBER: builtins.int + endpoint: builtins.str + """The endpoint this request was addressed to. Extracted from the request for convenient access. + Only set when variant is `task`. + """ @property def task( self, ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse: """A nexus task from server""" + @property def cancel_task(self) -> global___CancelNexusTask: """A request by Core to notify an in-progress operation handler that it should cancel. This @@ -260,16 +266,14 @@ class NexusTask(google.protobuf.message.Message): EX: Core knows the nexus operation has timed out, and it does not make sense for the user's operation handler to continue doing work. """ + @property def request_deadline(self) -> google.protobuf.timestamp_pb2.Timestamp: """The deadline for this request, parsed from the "Request-Timeout" header. Only set when variant is `task` and the header was present with a valid value. Represented as an absolute timestamp. """ - endpoint: builtins.str - """The endpoint this request was addressed to. Extracted from the request for convenient access. - Only set when variant is `task`. - """ + def __init__( self, *, @@ -281,7 +285,7 @@ class NexusTask(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_task", b"cancel_task", "request_deadline", @@ -294,7 +298,7 @@ class NexusTask(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_task", b"cancel_task", "endpoint", @@ -308,11 +312,12 @@ class NexusTask(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["task", "cancel_task"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["task", "cancel_task"] | None: ... global___NexusTask = NexusTask +@typing.final class CancelNexusTask(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -330,9 +335,7 @@ class CancelNexusTask(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ - "reason", b"reason", "task_token", b"task_token" - ], + field_name: typing.Literal["reason", b"reason", "task_token", b"task_token"], ) -> None: ... global___CancelNexusTask = CancelNexusTask diff --git a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py index 0caca7d48..589119c72 100644 --- a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py +++ b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -21,12 +20,18 @@ from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.enums.v1 import ( + failed_cause_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_failed__cause__pb2, +) from temporalio.api.enums.v1 import ( workflow_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_workflow__pb2, ) from temporalio.api.failure.v1 import ( message_pb2 as temporal_dot_api_dot_failure_dot_v1_dot_message__pb2, ) +from temporalio.api.nexus.v1 import ( + message_pb2 as temporal_dot_api_dot_nexus_dot_v1_dot_message__pb2, +) from temporalio.api.update.v1 import ( message_pb2 as temporal_dot_api_dot_update_dot_v1_dot_message__pb2, ) @@ -44,325 +49,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n?temporal/sdk/core/workflow_activation/workflow_activation.proto\x12\x1b\x63oresdk.workflow_activation\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a\x37temporal/sdk/core/activity_result/activity_result.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a%temporal/sdk/core/common/common.proto\x1a#temporal/sdk/core/nexus/nexus.proto"\xa2\x04\n\x12WorkflowActivation\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cis_replaying\x18\x03 \x01(\x08\x12\x16\n\x0ehistory_length\x18\x04 \x01(\r\x12@\n\x04jobs\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.WorkflowActivationJob\x12 \n\x18\x61vailable_internal_flags\x18\x06 \x03(\r\x12\x1a\n\x12history_size_bytes\x18\x07 \x01(\x04\x12!\n\x19\x63ontinue_as_new_suggested\x18\x08 \x01(\x08\x12T\n#deployment_version_for_current_task\x18\t \x01(\x0b\x32\'.coresdk.common.WorkerDeploymentVersion\x12\x18\n\x10last_sdk_version\x18\n \x01(\t\x12Z\n\x1fsuggest_continue_as_new_reasons\x18\x0b \x03(\x0e\x32\x31.temporal.api.enums.v1.SuggestContinueAsNewReason\x12\x30\n(target_worker_deployment_version_changed\x18\x0c \x01(\x08"\xe0\n\n\x15WorkflowActivationJob\x12N\n\x13initialize_workflow\x18\x01 \x01(\x0b\x32/.coresdk.workflow_activation.InitializeWorkflowH\x00\x12<\n\nfire_timer\x18\x02 \x01(\x0b\x32&.coresdk.workflow_activation.FireTimerH\x00\x12K\n\x12update_random_seed\x18\x04 \x01(\x0b\x32-.coresdk.workflow_activation.UpdateRandomSeedH\x00\x12\x44\n\x0equery_workflow\x18\x05 \x01(\x0b\x32*.coresdk.workflow_activation.QueryWorkflowH\x00\x12\x46\n\x0f\x63\x61ncel_workflow\x18\x06 \x01(\x0b\x32+.coresdk.workflow_activation.CancelWorkflowH\x00\x12\x46\n\x0fsignal_workflow\x18\x07 \x01(\x0b\x32+.coresdk.workflow_activation.SignalWorkflowH\x00\x12H\n\x10resolve_activity\x18\x08 \x01(\x0b\x32,.coresdk.workflow_activation.ResolveActivityH\x00\x12G\n\x10notify_has_patch\x18\t \x01(\x0b\x32+.coresdk.workflow_activation.NotifyHasPatchH\x00\x12q\n&resolve_child_workflow_execution_start\x18\n \x01(\x0b\x32?.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartH\x00\x12\x66\n resolve_child_workflow_execution\x18\x0b \x01(\x0b\x32:.coresdk.workflow_activation.ResolveChildWorkflowExecutionH\x00\x12\x66\n resolve_signal_external_workflow\x18\x0c \x01(\x0b\x32:.coresdk.workflow_activation.ResolveSignalExternalWorkflowH\x00\x12u\n(resolve_request_cancel_external_workflow\x18\r \x01(\x0b\x32\x41.coresdk.workflow_activation.ResolveRequestCancelExternalWorkflowH\x00\x12:\n\tdo_update\x18\x0e \x01(\x0b\x32%.coresdk.workflow_activation.DoUpdateH\x00\x12`\n\x1dresolve_nexus_operation_start\x18\x0f \x01(\x0b\x32\x37.coresdk.workflow_activation.ResolveNexusOperationStartH\x00\x12U\n\x17resolve_nexus_operation\x18\x10 \x01(\x0b\x32\x32.coresdk.workflow_activation.ResolveNexusOperationH\x00\x12I\n\x11remove_from_cache\x18\x32 \x01(\x0b\x32,.coresdk.workflow_activation.RemoveFromCacheH\x00\x42\t\n\x07variant"\xfc\n\n\x12InitializeWorkflow\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x17\n\x0frandomness_seed\x18\x04 \x01(\x04\x12M\n\x07headers\x18\x05 \x03(\x0b\x32<.coresdk.workflow_activation.InitializeWorkflow.HeadersEntry\x12\x10\n\x08identity\x18\x06 \x01(\t\x12I\n\x14parent_workflow_info\x18\x07 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12=\n\x1aworkflow_execution_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\'\n\x1f\x63ontinued_from_execution_run_id\x18\x0b \x01(\t\x12J\n\x13\x63ontinued_initiator\x18\x0c \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\r \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1e\n\x16\x66irst_execution_run_id\x18\x0f \x01(\t\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x11 \x01(\x05\x12\x15\n\rcron_schedule\x18\x12 \x01(\t\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n"cron_schedule_to_schedule_interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x15 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x16 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\nstart_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\rroot_workflow\x18\x18 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x08priority\x18\x19 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12!\n\x19original_execution_run_id\x18\x1a \x01(\t\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x18\n\tFireTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"m\n\x0fResolveActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.activity_result.ActivityResolution\x12\x10\n\x08is_local\x18\x03 \x01(\x08"\xd1\x02\n"ResolveChildWorkflowExecutionStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12[\n\tsucceeded\x18\x02 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartSuccessH\x00\x12X\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartFailureH\x00\x12]\n\tcancelled\x18\x04 \x01(\x0b\x32H.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartCancelledH\x00\x42\x08\n\x06status";\n)ResolveChildWorkflowExecutionStartSuccess\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\xa6\x01\n)ResolveChildWorkflowExecutionStartFailure\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12M\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32>.coresdk.child_workflow.StartChildWorkflowExecutionFailedCause"`\n+ResolveChildWorkflowExecutionStartCancelled\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"i\n\x1dResolveChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.child_workflow.ChildWorkflowResult"+\n\x10UpdateRandomSeed\x12\x17\n\x0frandomness_seed\x18\x01 \x01(\x04"\x84\x02\n\rQueryWorkflow\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12\x12\n\nquery_type\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12H\n\x07headers\x18\x05 \x03(\x0b\x32\x37.coresdk.workflow_activation.QueryWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01" \n\x0e\x43\x61ncelWorkflow\x12\x0e\n\x06reason\x18\x01 \x01(\t"\xa1\x02\n\x0eSignalWorkflow\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12.\n\x05input\x18\x02 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x07headers\x18\x05 \x03(\x0b\x32\x38.coresdk.workflow_activation.SignalWorkflow.HeadersEntry\x12\x1c\n\x14originating_event_id\x18\x06 \x01(\x03\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01""\n\x0eNotifyHasPatch\x12\x10\n\x08patch_id\x18\x01 \x01(\t"_\n\x1dResolveSignalExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"f\n$ResolveRequestCancelExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xcb\x02\n\x08\x44oUpdate\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x14protocol_instance_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x43\n\x07headers\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.DoUpdate.HeadersEntry\x12*\n\x04meta\x18\x06 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x15\n\rrun_validator\x18\x07 \x01(\x08\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x9a\x01\n\x1aResolveNexusOperationStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x19\n\x0foperation_token\x18\x02 \x01(\tH\x00\x12\x16\n\x0cstarted_sync\x18\x03 \x01(\x08H\x00\x12\x32\n\x06\x66\x61iled\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status"Y\n\x15ResolveNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x33\n\x06result\x18\x02 \x01(\x0b\x32#.coresdk.nexus.NexusOperationResult"\xe0\x02\n\x0fRemoveFromCache\x12\x0f\n\x07message\x18\x01 \x01(\t\x12K\n\x06reason\x18\x02 \x01(\x0e\x32;.coresdk.workflow_activation.RemoveFromCache.EvictionReason"\xee\x01\n\x0e\x45victionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nCACHE_FULL\x10\x01\x12\x0e\n\nCACHE_MISS\x10\x02\x12\x12\n\x0eNONDETERMINISM\x10\x03\x12\r\n\tLANG_FAIL\x10\x04\x12\x12\n\x0eLANG_REQUESTED\x10\x05\x12\x12\n\x0eTASK_NOT_FOUND\x10\x06\x12\x15\n\x11UNHANDLED_COMMAND\x10\x07\x12\t\n\x05\x46\x41TAL\x10\x08\x12\x1f\n\x1bPAGINATION_OR_HISTORY_FETCH\x10\t\x12\x1d\n\x19WORKFLOW_EXECUTION_ENDING\x10\nB8\xea\x02\x35Temporalio::Internal::Bridge::Api::WorkflowActivationb\x06proto3' -) - - -_WORKFLOWACTIVATION = DESCRIPTOR.message_types_by_name["WorkflowActivation"] -_WORKFLOWACTIVATIONJOB = DESCRIPTOR.message_types_by_name["WorkflowActivationJob"] -_INITIALIZEWORKFLOW = DESCRIPTOR.message_types_by_name["InitializeWorkflow"] -_INITIALIZEWORKFLOW_HEADERSENTRY = _INITIALIZEWORKFLOW.nested_types_by_name[ - "HeadersEntry" -] -_FIRETIMER = DESCRIPTOR.message_types_by_name["FireTimer"] -_RESOLVEACTIVITY = DESCRIPTOR.message_types_by_name["ResolveActivity"] -_RESOLVECHILDWORKFLOWEXECUTIONSTART = DESCRIPTOR.message_types_by_name[ - "ResolveChildWorkflowExecutionStart" -] -_RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS = DESCRIPTOR.message_types_by_name[ - "ResolveChildWorkflowExecutionStartSuccess" -] -_RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE = DESCRIPTOR.message_types_by_name[ - "ResolveChildWorkflowExecutionStartFailure" -] -_RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED = DESCRIPTOR.message_types_by_name[ - "ResolveChildWorkflowExecutionStartCancelled" -] -_RESOLVECHILDWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name[ - "ResolveChildWorkflowExecution" -] -_UPDATERANDOMSEED = DESCRIPTOR.message_types_by_name["UpdateRandomSeed"] -_QUERYWORKFLOW = DESCRIPTOR.message_types_by_name["QueryWorkflow"] -_QUERYWORKFLOW_HEADERSENTRY = _QUERYWORKFLOW.nested_types_by_name["HeadersEntry"] -_CANCELWORKFLOW = DESCRIPTOR.message_types_by_name["CancelWorkflow"] -_SIGNALWORKFLOW = DESCRIPTOR.message_types_by_name["SignalWorkflow"] -_SIGNALWORKFLOW_HEADERSENTRY = _SIGNALWORKFLOW.nested_types_by_name["HeadersEntry"] -_NOTIFYHASPATCH = DESCRIPTOR.message_types_by_name["NotifyHasPatch"] -_RESOLVESIGNALEXTERNALWORKFLOW = DESCRIPTOR.message_types_by_name[ - "ResolveSignalExternalWorkflow" -] -_RESOLVEREQUESTCANCELEXTERNALWORKFLOW = DESCRIPTOR.message_types_by_name[ - "ResolveRequestCancelExternalWorkflow" -] -_DOUPDATE = DESCRIPTOR.message_types_by_name["DoUpdate"] -_DOUPDATE_HEADERSENTRY = _DOUPDATE.nested_types_by_name["HeadersEntry"] -_RESOLVENEXUSOPERATIONSTART = DESCRIPTOR.message_types_by_name[ - "ResolveNexusOperationStart" -] -_RESOLVENEXUSOPERATION = DESCRIPTOR.message_types_by_name["ResolveNexusOperation"] -_REMOVEFROMCACHE = DESCRIPTOR.message_types_by_name["RemoveFromCache"] -_REMOVEFROMCACHE_EVICTIONREASON = _REMOVEFROMCACHE.enum_types_by_name["EvictionReason"] -WorkflowActivation = _reflection.GeneratedProtocolMessageType( - "WorkflowActivation", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWACTIVATION, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.WorkflowActivation) - }, -) -_sym_db.RegisterMessage(WorkflowActivation) - -WorkflowActivationJob = _reflection.GeneratedProtocolMessageType( - "WorkflowActivationJob", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWACTIVATIONJOB, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.WorkflowActivationJob) - }, -) -_sym_db.RegisterMessage(WorkflowActivationJob) - -InitializeWorkflow = _reflection.GeneratedProtocolMessageType( - "InitializeWorkflow", - (_message.Message,), - { - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _INITIALIZEWORKFLOW_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.InitializeWorkflow.HeadersEntry) - }, - ), - "DESCRIPTOR": _INITIALIZEWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.InitializeWorkflow) - }, -) -_sym_db.RegisterMessage(InitializeWorkflow) -_sym_db.RegisterMessage(InitializeWorkflow.HeadersEntry) - -FireTimer = _reflection.GeneratedProtocolMessageType( - "FireTimer", - (_message.Message,), - { - "DESCRIPTOR": _FIRETIMER, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.FireTimer) - }, -) -_sym_db.RegisterMessage(FireTimer) - -ResolveActivity = _reflection.GeneratedProtocolMessageType( - "ResolveActivity", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVEACTIVITY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveActivity) - }, -) -_sym_db.RegisterMessage(ResolveActivity) - -ResolveChildWorkflowExecutionStart = _reflection.GeneratedProtocolMessageType( - "ResolveChildWorkflowExecutionStart", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTIONSTART, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecutionStart) - }, -) -_sym_db.RegisterMessage(ResolveChildWorkflowExecutionStart) - -ResolveChildWorkflowExecutionStartSuccess = _reflection.GeneratedProtocolMessageType( - "ResolveChildWorkflowExecutionStartSuccess", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecutionStartSuccess) - }, -) -_sym_db.RegisterMessage(ResolveChildWorkflowExecutionStartSuccess) - -ResolveChildWorkflowExecutionStartFailure = _reflection.GeneratedProtocolMessageType( - "ResolveChildWorkflowExecutionStartFailure", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecutionStartFailure) - }, -) -_sym_db.RegisterMessage(ResolveChildWorkflowExecutionStartFailure) - -ResolveChildWorkflowExecutionStartCancelled = _reflection.GeneratedProtocolMessageType( - "ResolveChildWorkflowExecutionStartCancelled", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecutionStartCancelled) - }, -) -_sym_db.RegisterMessage(ResolveChildWorkflowExecutionStartCancelled) - -ResolveChildWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "ResolveChildWorkflowExecution", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecution) - }, -) -_sym_db.RegisterMessage(ResolveChildWorkflowExecution) - -UpdateRandomSeed = _reflection.GeneratedProtocolMessageType( - "UpdateRandomSeed", - (_message.Message,), - { - "DESCRIPTOR": _UPDATERANDOMSEED, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.UpdateRandomSeed) - }, -) -_sym_db.RegisterMessage(UpdateRandomSeed) - -QueryWorkflow = _reflection.GeneratedProtocolMessageType( - "QueryWorkflow", - (_message.Message,), - { - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _QUERYWORKFLOW_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.QueryWorkflow.HeadersEntry) - }, - ), - "DESCRIPTOR": _QUERYWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.QueryWorkflow) - }, -) -_sym_db.RegisterMessage(QueryWorkflow) -_sym_db.RegisterMessage(QueryWorkflow.HeadersEntry) - -CancelWorkflow = _reflection.GeneratedProtocolMessageType( - "CancelWorkflow", - (_message.Message,), - { - "DESCRIPTOR": _CANCELWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.CancelWorkflow) - }, -) -_sym_db.RegisterMessage(CancelWorkflow) - -SignalWorkflow = _reflection.GeneratedProtocolMessageType( - "SignalWorkflow", - (_message.Message,), - { - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALWORKFLOW_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.SignalWorkflow.HeadersEntry) - }, - ), - "DESCRIPTOR": _SIGNALWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.SignalWorkflow) - }, -) -_sym_db.RegisterMessage(SignalWorkflow) -_sym_db.RegisterMessage(SignalWorkflow.HeadersEntry) - -NotifyHasPatch = _reflection.GeneratedProtocolMessageType( - "NotifyHasPatch", - (_message.Message,), - { - "DESCRIPTOR": _NOTIFYHASPATCH, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.NotifyHasPatch) - }, -) -_sym_db.RegisterMessage(NotifyHasPatch) - -ResolveSignalExternalWorkflow = _reflection.GeneratedProtocolMessageType( - "ResolveSignalExternalWorkflow", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVESIGNALEXTERNALWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveSignalExternalWorkflow) - }, -) -_sym_db.RegisterMessage(ResolveSignalExternalWorkflow) - -ResolveRequestCancelExternalWorkflow = _reflection.GeneratedProtocolMessageType( - "ResolveRequestCancelExternalWorkflow", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVEREQUESTCANCELEXTERNALWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveRequestCancelExternalWorkflow) - }, -) -_sym_db.RegisterMessage(ResolveRequestCancelExternalWorkflow) - -DoUpdate = _reflection.GeneratedProtocolMessageType( - "DoUpdate", - (_message.Message,), - { - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _DOUPDATE_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.DoUpdate.HeadersEntry) - }, - ), - "DESCRIPTOR": _DOUPDATE, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.DoUpdate) - }, -) -_sym_db.RegisterMessage(DoUpdate) -_sym_db.RegisterMessage(DoUpdate.HeadersEntry) - -ResolveNexusOperationStart = _reflection.GeneratedProtocolMessageType( - "ResolveNexusOperationStart", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVENEXUSOPERATIONSTART, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveNexusOperationStart) - }, -) -_sym_db.RegisterMessage(ResolveNexusOperationStart) - -ResolveNexusOperation = _reflection.GeneratedProtocolMessageType( - "ResolveNexusOperation", - (_message.Message,), - { - "DESCRIPTOR": _RESOLVENEXUSOPERATION, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveNexusOperation) - }, -) -_sym_db.RegisterMessage(ResolveNexusOperation) - -RemoveFromCache = _reflection.GeneratedProtocolMessageType( - "RemoveFromCache", - (_message.Message,), - { - "DESCRIPTOR": _REMOVEFROMCACHE, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.RemoveFromCache) - }, + b'\n?temporal/sdk/core/workflow_activation/workflow_activation.proto\x12\x1b\x63oresdk.workflow_activation\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a%temporal/api/failure/v1/message.proto\x1a#temporal/api/nexus/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a\x37temporal/sdk/core/activity_result/activity_result.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a%temporal/sdk/core/common/common.proto\x1a#temporal/sdk/core/nexus/nexus.proto"\xa2\x04\n\x12WorkflowActivation\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cis_replaying\x18\x03 \x01(\x08\x12\x16\n\x0ehistory_length\x18\x04 \x01(\r\x12@\n\x04jobs\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.WorkflowActivationJob\x12 \n\x18\x61vailable_internal_flags\x18\x06 \x03(\r\x12\x1a\n\x12history_size_bytes\x18\x07 \x01(\x04\x12!\n\x19\x63ontinue_as_new_suggested\x18\x08 \x01(\x08\x12T\n#deployment_version_for_current_task\x18\t \x01(\x0b\x32\'.coresdk.common.WorkerDeploymentVersion\x12\x18\n\x10last_sdk_version\x18\n \x01(\t\x12Z\n\x1fsuggest_continue_as_new_reasons\x18\x0b \x03(\x0e\x32\x31.temporal.api.enums.v1.SuggestContinueAsNewReason\x12\x30\n(target_worker_deployment_version_changed\x18\x0c \x01(\x08"\xe0\n\n\x15WorkflowActivationJob\x12N\n\x13initialize_workflow\x18\x01 \x01(\x0b\x32/.coresdk.workflow_activation.InitializeWorkflowH\x00\x12<\n\nfire_timer\x18\x02 \x01(\x0b\x32&.coresdk.workflow_activation.FireTimerH\x00\x12K\n\x12update_random_seed\x18\x04 \x01(\x0b\x32-.coresdk.workflow_activation.UpdateRandomSeedH\x00\x12\x44\n\x0equery_workflow\x18\x05 \x01(\x0b\x32*.coresdk.workflow_activation.QueryWorkflowH\x00\x12\x46\n\x0f\x63\x61ncel_workflow\x18\x06 \x01(\x0b\x32+.coresdk.workflow_activation.CancelWorkflowH\x00\x12\x46\n\x0fsignal_workflow\x18\x07 \x01(\x0b\x32+.coresdk.workflow_activation.SignalWorkflowH\x00\x12H\n\x10resolve_activity\x18\x08 \x01(\x0b\x32,.coresdk.workflow_activation.ResolveActivityH\x00\x12G\n\x10notify_has_patch\x18\t \x01(\x0b\x32+.coresdk.workflow_activation.NotifyHasPatchH\x00\x12q\n&resolve_child_workflow_execution_start\x18\n \x01(\x0b\x32?.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartH\x00\x12\x66\n resolve_child_workflow_execution\x18\x0b \x01(\x0b\x32:.coresdk.workflow_activation.ResolveChildWorkflowExecutionH\x00\x12\x66\n resolve_signal_external_workflow\x18\x0c \x01(\x0b\x32:.coresdk.workflow_activation.ResolveSignalExternalWorkflowH\x00\x12u\n(resolve_request_cancel_external_workflow\x18\r \x01(\x0b\x32\x41.coresdk.workflow_activation.ResolveRequestCancelExternalWorkflowH\x00\x12:\n\tdo_update\x18\x0e \x01(\x0b\x32%.coresdk.workflow_activation.DoUpdateH\x00\x12`\n\x1dresolve_nexus_operation_start\x18\x0f \x01(\x0b\x32\x37.coresdk.workflow_activation.ResolveNexusOperationStartH\x00\x12U\n\x17resolve_nexus_operation\x18\x10 \x01(\x0b\x32\x32.coresdk.workflow_activation.ResolveNexusOperationH\x00\x12I\n\x11remove_from_cache\x18\x32 \x01(\x0b\x32,.coresdk.workflow_activation.RemoveFromCacheH\x00\x42\t\n\x07variant"\xe3\x0b\n\x12InitializeWorkflow\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x17\n\x0frandomness_seed\x18\x04 \x01(\x04\x12M\n\x07headers\x18\x05 \x03(\x0b\x32<.coresdk.workflow_activation.InitializeWorkflow.HeadersEntry\x12\x10\n\x08identity\x18\x06 \x01(\t\x12I\n\x14parent_workflow_info\x18\x07 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12=\n\x1aworkflow_execution_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\'\n\x1f\x63ontinued_from_execution_run_id\x18\x0b \x01(\t\x12J\n\x13\x63ontinued_initiator\x18\x0c \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\r \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1e\n\x16\x66irst_execution_run_id\x18\x0f \x01(\t\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x11 \x01(\x05\x12\x15\n\rcron_schedule\x18\x12 \x01(\t\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n"cron_schedule_to_schedule_interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x15 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x16 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\nstart_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\rroot_workflow\x18\x18 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x08priority\x18\x19 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12!\n\x19original_execution_run_id\x18\x1a \x01(\t\x12\x65\n&propagated_nexus_serialization_context\x18\x1b \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x18\n\tFireTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"m\n\x0fResolveActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.activity_result.ActivityResolution\x12\x10\n\x08is_local\x18\x03 \x01(\x08"\xd1\x02\n"ResolveChildWorkflowExecutionStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12[\n\tsucceeded\x18\x02 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartSuccessH\x00\x12X\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartFailureH\x00\x12]\n\tcancelled\x18\x04 \x01(\x0b\x32H.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartCancelledH\x00\x42\x08\n\x06status";\n)ResolveChildWorkflowExecutionStartSuccess\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\xa6\x01\n)ResolveChildWorkflowExecutionStartFailure\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12M\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32>.coresdk.child_workflow.StartChildWorkflowExecutionFailedCause"`\n+ResolveChildWorkflowExecutionStartCancelled\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"i\n\x1dResolveChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.child_workflow.ChildWorkflowResult"+\n\x10UpdateRandomSeed\x12\x17\n\x0frandomness_seed\x18\x01 \x01(\x04"\x84\x02\n\rQueryWorkflow\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12\x12\n\nquery_type\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12H\n\x07headers\x18\x05 \x03(\x0b\x32\x37.coresdk.workflow_activation.QueryWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01" \n\x0e\x43\x61ncelWorkflow\x12\x0e\n\x06reason\x18\x01 \x01(\t"\xa1\x02\n\x0eSignalWorkflow\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12.\n\x05input\x18\x02 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x07headers\x18\x05 \x03(\x0b\x32\x38.coresdk.workflow_activation.SignalWorkflow.HeadersEntry\x12\x1c\n\x14originating_event_id\x18\x06 \x01(\x03\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01""\n\x0eNotifyHasPatch\x12\x10\n\x08patch_id\x18\x01 \x01(\t"\xb1\x01\n\x1dResolveSignalExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12P\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32\x41.temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause"\xb8\x01\n$ResolveRequestCancelExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12P\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32\x41.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause"\xb2\x03\n\x08\x44oUpdate\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x14protocol_instance_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x43\n\x07headers\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.DoUpdate.HeadersEntry\x12*\n\x04meta\x18\x06 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x15\n\rrun_validator\x18\x07 \x01(\x08\x12\x65\n&propagated_nexus_serialization_context\x18\x08 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x9a\x01\n\x1aResolveNexusOperationStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x19\n\x0foperation_token\x18\x02 \x01(\tH\x00\x12\x16\n\x0cstarted_sync\x18\x03 \x01(\x08H\x00\x12\x32\n\x06\x66\x61iled\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status"Y\n\x15ResolveNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x33\n\x06result\x18\x02 \x01(\x0b\x32#.coresdk.nexus.NexusOperationResult"\xe0\x02\n\x0fRemoveFromCache\x12\x0f\n\x07message\x18\x01 \x01(\t\x12K\n\x06reason\x18\x02 \x01(\x0e\x32;.coresdk.workflow_activation.RemoveFromCache.EvictionReason"\xee\x01\n\x0e\x45victionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nCACHE_FULL\x10\x01\x12\x0e\n\nCACHE_MISS\x10\x02\x12\x12\n\x0eNONDETERMINISM\x10\x03\x12\r\n\tLANG_FAIL\x10\x04\x12\x12\n\x0eLANG_REQUESTED\x10\x05\x12\x12\n\x0eTASK_NOT_FOUND\x10\x06\x12\x15\n\x11UNHANDLED_COMMAND\x10\x07\x12\t\n\x05\x46\x41TAL\x10\x08\x12\x1f\n\x1bPAGINATION_OR_HISTORY_FETCH\x10\t\x12\x1d\n\x19WORKFLOW_EXECUTION_ENDING\x10\nB8\xea\x02\x35Temporalio::Internal::Bridge::Api::WorkflowActivationb\x06proto3' ) -_sym_db.RegisterMessage(RemoveFromCache) +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( @@ -376,56 +67,56 @@ _SIGNALWORKFLOW_HEADERSENTRY._serialized_options = b"8\001" _DOUPDATE_HEADERSENTRY._options = None _DOUPDATE_HEADERSENTRY._serialized_options = b"8\001" - _WORKFLOWACTIVATION._serialized_start = 532 - _WORKFLOWACTIVATION._serialized_end = 1078 - _WORKFLOWACTIVATIONJOB._serialized_start = 1081 - _WORKFLOWACTIVATIONJOB._serialized_end = 2457 - _INITIALIZEWORKFLOW._serialized_start = 2460 - _INITIALIZEWORKFLOW._serialized_end = 3864 - _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_start = 3785 - _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_end = 3864 - _FIRETIMER._serialized_start = 3866 - _FIRETIMER._serialized_end = 3890 - _RESOLVEACTIVITY._serialized_start = 3892 - _RESOLVEACTIVITY._serialized_end = 4001 - _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_start = 4004 - _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_end = 4341 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_start = 4343 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_end = 4402 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_start = 4405 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_end = 4571 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_start = 4573 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_end = 4669 - _RESOLVECHILDWORKFLOWEXECUTION._serialized_start = 4671 - _RESOLVECHILDWORKFLOWEXECUTION._serialized_end = 4776 - _UPDATERANDOMSEED._serialized_start = 4778 - _UPDATERANDOMSEED._serialized_end = 4821 - _QUERYWORKFLOW._serialized_start = 4824 - _QUERYWORKFLOW._serialized_end = 5084 - _QUERYWORKFLOW_HEADERSENTRY._serialized_start = 3785 - _QUERYWORKFLOW_HEADERSENTRY._serialized_end = 3864 - _CANCELWORKFLOW._serialized_start = 5086 - _CANCELWORKFLOW._serialized_end = 5118 - _SIGNALWORKFLOW._serialized_start = 5121 - _SIGNALWORKFLOW._serialized_end = 5410 - _SIGNALWORKFLOW_HEADERSENTRY._serialized_start = 3785 - _SIGNALWORKFLOW_HEADERSENTRY._serialized_end = 3864 - _NOTIFYHASPATCH._serialized_start = 5412 - _NOTIFYHASPATCH._serialized_end = 5446 - _RESOLVESIGNALEXTERNALWORKFLOW._serialized_start = 5448 - _RESOLVESIGNALEXTERNALWORKFLOW._serialized_end = 5543 - _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_start = 5545 - _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_end = 5647 - _DOUPDATE._serialized_start = 5650 - _DOUPDATE._serialized_end = 5981 - _DOUPDATE_HEADERSENTRY._serialized_start = 3785 - _DOUPDATE_HEADERSENTRY._serialized_end = 3864 - _RESOLVENEXUSOPERATIONSTART._serialized_start = 5984 - _RESOLVENEXUSOPERATIONSTART._serialized_end = 6138 - _RESOLVENEXUSOPERATION._serialized_start = 6140 - _RESOLVENEXUSOPERATION._serialized_end = 6229 - _REMOVEFROMCACHE._serialized_start = 6232 - _REMOVEFROMCACHE._serialized_end = 6584 - _REMOVEFROMCACHE_EVICTIONREASON._serialized_start = 6346 - _REMOVEFROMCACHE_EVICTIONREASON._serialized_end = 6584 + _WORKFLOWACTIVATION._serialized_start = 611 + _WORKFLOWACTIVATION._serialized_end = 1157 + _WORKFLOWACTIVATIONJOB._serialized_start = 1160 + _WORKFLOWACTIVATIONJOB._serialized_end = 2536 + _INITIALIZEWORKFLOW._serialized_start = 2539 + _INITIALIZEWORKFLOW._serialized_end = 4046 + _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_start = 3967 + _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_end = 4046 + _FIRETIMER._serialized_start = 4048 + _FIRETIMER._serialized_end = 4072 + _RESOLVEACTIVITY._serialized_start = 4074 + _RESOLVEACTIVITY._serialized_end = 4183 + _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_start = 4186 + _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_end = 4523 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_start = 4525 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_end = 4584 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_start = 4587 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_end = 4753 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_start = 4755 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_end = 4851 + _RESOLVECHILDWORKFLOWEXECUTION._serialized_start = 4853 + _RESOLVECHILDWORKFLOWEXECUTION._serialized_end = 4958 + _UPDATERANDOMSEED._serialized_start = 4960 + _UPDATERANDOMSEED._serialized_end = 5003 + _QUERYWORKFLOW._serialized_start = 5006 + _QUERYWORKFLOW._serialized_end = 5266 + _QUERYWORKFLOW_HEADERSENTRY._serialized_start = 3967 + _QUERYWORKFLOW_HEADERSENTRY._serialized_end = 4046 + _CANCELWORKFLOW._serialized_start = 5268 + _CANCELWORKFLOW._serialized_end = 5300 + _SIGNALWORKFLOW._serialized_start = 5303 + _SIGNALWORKFLOW._serialized_end = 5592 + _SIGNALWORKFLOW_HEADERSENTRY._serialized_start = 3967 + _SIGNALWORKFLOW_HEADERSENTRY._serialized_end = 4046 + _NOTIFYHASPATCH._serialized_start = 5594 + _NOTIFYHASPATCH._serialized_end = 5628 + _RESOLVESIGNALEXTERNALWORKFLOW._serialized_start = 5631 + _RESOLVESIGNALEXTERNALWORKFLOW._serialized_end = 5808 + _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_start = 5811 + _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_end = 5995 + _DOUPDATE._serialized_start = 5998 + _DOUPDATE._serialized_end = 6432 + _DOUPDATE_HEADERSENTRY._serialized_start = 3967 + _DOUPDATE_HEADERSENTRY._serialized_end = 4046 + _RESOLVENEXUSOPERATIONSTART._serialized_start = 6435 + _RESOLVENEXUSOPERATIONSTART._serialized_end = 6589 + _RESOLVENEXUSOPERATION._serialized_start = 6591 + _RESOLVENEXUSOPERATION._serialized_end = 6680 + _REMOVEFROMCACHE._serialized_start = 6683 + _REMOVEFROMCACHE._serialized_end = 7035 + _REMOVEFROMCACHE_EVICTIONREASON._serialized_start = 6797 + _REMOVEFROMCACHE_EVICTIONREASON._serialized_end = 7035 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi index afc7eb4ab..af1a2e38a 100644 --- a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi +++ b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi @@ -19,8 +19,10 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import temporalio.api.common.v1.message_pb2 +import temporalio.api.enums.v1.failed_cause_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 +import temporalio.api.nexus.v1.message_pb2 import temporalio.api.update.v1.message_pb2 import temporalio.bridge.proto.activity_result.activity_result_pb2 import temporalio.bridge.proto.child_workflow.child_workflow_pb2 @@ -34,6 +36,7 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowActivation(google.protobuf.message.Message): """An instruction to the lang sdk to run some workflow code, whether for the first time or from a cached state. @@ -99,15 +102,27 @@ class WorkflowActivation(google.protobuf.message.Message): """The id of the currently active run of the workflow. Also used as a cache key. There may only ever be one active workflow task (and hence activation) of a run at one time. """ - @property - def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: - """The current time as understood by the workflow, which is set by workflow task started events""" is_replaying: builtins.bool """Whether or not the activation is replaying past events""" history_length: builtins.int """Current history length as determined by the event id of the most recently processed event. This ensures that the number is always deterministic """ + history_size_bytes: builtins.int + """The history size in bytes as of the last WFT started event""" + continue_as_new_suggested: builtins.bool + """Set true if the most recent WFT started event had this suggestion""" + last_sdk_version: builtins.str + """The last seen SDK version from the most recent WFT completed event""" + target_worker_deployment_version_changed: builtins.bool + """True if Workflow's Target Worker Deployment Version is different from its Pinned Version and + the workflow is Pinned. + Experimental. + """ + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: + """The current time as understood by the workflow, which is set by workflow task started events""" + @property def jobs( self, @@ -115,6 +130,7 @@ class WorkflowActivation(google.protobuf.message.Message): global___WorkflowActivationJob ]: """The things to do upon activating the workflow""" + @property def available_internal_flags( self, @@ -123,10 +139,7 @@ class WorkflowActivation(google.protobuf.message.Message): internal flags may be used. This is not a delta - all previously used flags always appear since this representation is cheap. """ - history_size_bytes: builtins.int - """The history size in bytes as of the last WFT started event""" - continue_as_new_suggested: builtins.bool - """Set true if the most recent WFT started event had this suggestion""" + @property def deployment_version_for_current_task( self, @@ -139,8 +152,7 @@ class WorkflowActivation(google.protobuf.message.Message): build id, if this worker was using the deprecated Build ID-only feature(s). """ - last_sdk_version: builtins.str - """The last seen SDK version from the most recent WFT completed event""" + @property def suggest_continue_as_new_reasons( self, @@ -151,11 +163,7 @@ class WorkflowActivation(google.protobuf.message.Message): For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version of the previous run. """ - target_worker_deployment_version_changed: builtins.bool - """True if Workflow's Target Worker Deployment Version is different from its Pinned Version and - the workflow is Pinned. - Experimental. - """ + def __init__( self, *, @@ -178,7 +186,7 @@ class WorkflowActivation(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deployment_version_for_current_task", b"deployment_version_for_current_task", "timestamp", @@ -187,7 +195,7 @@ class WorkflowActivation(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "available_internal_flags", b"available_internal_flags", "continue_as_new_suggested", @@ -217,6 +225,7 @@ class WorkflowActivation(google.protobuf.message.Message): global___WorkflowActivation = WorkflowActivation +@typing.final class WorkflowActivationJob(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -239,67 +248,83 @@ class WorkflowActivationJob(google.protobuf.message.Message): @property def initialize_workflow(self) -> global___InitializeWorkflow: """A workflow is starting, record all of the information from its start event""" + @property def fire_timer(self) -> global___FireTimer: """A timer has fired, allowing whatever was waiting on it (if anything) to proceed""" + @property def update_random_seed(self) -> global___UpdateRandomSeed: """Workflow was reset. The randomness seed must be updated.""" + @property def query_workflow(self) -> global___QueryWorkflow: """A request to query the workflow was received. It is guaranteed that queries (one or more) always come in their own activation after other mutating jobs. """ + @property def cancel_workflow(self) -> global___CancelWorkflow: """A request to cancel the workflow was received.""" + @property def signal_workflow(self) -> global___SignalWorkflow: """A request to signal the workflow was received.""" + @property def resolve_activity(self) -> global___ResolveActivity: """An activity was resolved, result could be completed, failed or cancelled""" + @property def notify_has_patch(self) -> global___NotifyHasPatch: """A patch marker has been detected and lang is being told that change exists. This job is strange in that it is sent pre-emptively to lang without any corresponding command being sent first. """ + @property def resolve_child_workflow_execution_start( self, ) -> global___ResolveChildWorkflowExecutionStart: """A child workflow execution has started or failed to start""" + @property def resolve_child_workflow_execution( self, ) -> global___ResolveChildWorkflowExecution: """A child workflow was resolved, result could be completed or failed""" + @property def resolve_signal_external_workflow( self, ) -> global___ResolveSignalExternalWorkflow: """An attempt to signal an external workflow resolved""" + @property def resolve_request_cancel_external_workflow( self, ) -> global___ResolveRequestCancelExternalWorkflow: """An attempt to cancel an external workflow resolved""" + @property def do_update(self) -> global___DoUpdate: """A request to handle a workflow update.""" + @property def resolve_nexus_operation_start(self) -> global___ResolveNexusOperationStart: """A nexus operation started.""" + @property def resolve_nexus_operation(self) -> global___ResolveNexusOperation: """A nexus operation resolved.""" + @property def remove_from_cache(self) -> global___RemoveFromCache: """Remove the workflow identified by the [WorkflowActivation] containing this job from the cache after performing the activation. It is guaranteed that this will be the only job in the activation if present. """ + def __init__( self, *, @@ -326,7 +351,7 @@ class WorkflowActivationJob(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_workflow", b"cancel_workflow", "do_update", @@ -365,7 +390,7 @@ class WorkflowActivationJob(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_workflow", b"cancel_workflow", "do_update", @@ -403,9 +428,9 @@ class WorkflowActivationJob(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] + self, oneof_group: typing.Literal["variant", b"variant"] ) -> ( - typing_extensions.Literal[ + typing.Literal[ "initialize_workflow", "fire_timer", "update_random_seed", @@ -428,11 +453,13 @@ class WorkflowActivationJob(google.protobuf.message.Message): global___WorkflowActivationJob = WorkflowActivationJob +@typing.final class InitializeWorkflow(google.protobuf.message.Message): """Initialize a new workflow""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -448,11 +475,10 @@ class InitializeWorkflow(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... WORKFLOW_TYPE_FIELD_NUMBER: builtins.int @@ -481,10 +507,36 @@ class InitializeWorkflow(google.protobuf.message.Message): ROOT_WORKFLOW_FIELD_NUMBER: builtins.int PRIORITY_FIELD_NUMBER: builtins.int ORIGINAL_EXECUTION_RUN_ID_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int workflow_type: builtins.str """The identifier the lang-specific sdk uses to execute workflow code""" workflow_id: builtins.str """The workflow id used on the temporal server""" + randomness_seed: builtins.int + """The seed must be used to initialize the random generator used by SDK. + RandomSeedUpdatedAttributes are used to deliver seed updates. + """ + identity: builtins.str + """Identity of the client who requested this execution""" + continued_from_execution_run_id: builtins.str + """Run id of the previous workflow which continued-as-new or retired or cron executed into this + workflow, if any. + """ + continued_initiator: ( + temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType + ) + """If this workflow was a continuation, indicates the type of continuation.""" + first_execution_run_id: builtins.str + """This is the very first run id the workflow ever had, following continuation chains.""" + attempt: builtins.int + """Starting at 1, the number of times we have tried to execute this workflow""" + cron_schedule: builtins.str + """If this workflow runs on a cron schedule, it will appear here""" + original_execution_run_id: builtins.str + """The run id recorded on the `WORKFLOW_EXECUTION_STARTED` event. Unlike the execution's current + run id, this value is preserved across workflow resets. Mirrors the `original_execution_run_id` + field from `WorkflowExecutionStartedEventAttributes`. + """ @property def arguments( self, @@ -492,10 +544,7 @@ class InitializeWorkflow(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Payload ]: """Inputs to the workflow code""" - randomness_seed: builtins.int - """The seed must be used to initialize the random generator used by SDK. - RandomSeedUpdatedAttributes are used to deliver seed updates. - """ + @property def headers( self, @@ -503,45 +552,37 @@ class InitializeWorkflow(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payload ]: """Used to add metadata e.g. for tracing and auth, meant to be read and written to by interceptors.""" - identity: builtins.str - """Identity of the client who requested this execution""" + @property def parent_workflow_info( self, ) -> temporalio.bridge.proto.common.common_pb2.NamespacedWorkflowExecution: """If this workflow is a child, information about the parent""" + @property def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: """Total workflow execution timeout including retries and continue as new.""" + @property def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow run.""" + @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - continued_from_execution_run_id: builtins.str - """Run id of the previous workflow which continued-as-new or retired or cron executed into this - workflow, if any. - """ - continued_initiator: ( - temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType - ) - """If this workflow was a continuation, indicates the type of continuation.""" + @property def continued_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """If this workflow was a continuation and that continuation failed, the details of that.""" + @property def last_completion_result(self) -> temporalio.api.common.v1.message_pb2.Payloads: """If this workflow was a continuation and that continuation completed, the details of that.""" - first_execution_run_id: builtins.str - """This is the very first run id the workflow ever had, following continuation chains.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """This workflow's retry policy""" - attempt: builtins.int - """Starting at 1, the number of times we have tried to execute this workflow""" - cron_schedule: builtins.str - """If this workflow runs on a cron schedule, it will appear here""" + @property def workflow_execution_expiration_time( self, @@ -549,6 +590,7 @@ class InitializeWorkflow(google.protobuf.message.Message): """The absolute time at which the workflow will be timed out. This is passed without change to the next run/retry of a workflow. """ + @property def cron_schedule_to_schedule_interval( self, @@ -556,17 +598,21 @@ class InitializeWorkflow(google.protobuf.message.Message): """For a cron workflow, this contains the amount of time between when this iteration of the cron workflow was scheduled and when it should run next per its cron_schedule. """ + @property def memo(self) -> temporalio.api.common.v1.message_pb2.Memo: """User-defined memo""" + @property def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: """Search attributes created/updated when this workflow was started""" + @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When the workflow execution started event was first written""" + @property def root_workflow(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: """Contains information about the root workflow execution. It is possible for the namespace to @@ -580,14 +626,20 @@ class InitializeWorkflow(google.protobuf.message.Message): See field in WorkflowExecutionStarted for more detail. """ + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """Priority of this workflow execution""" - original_execution_run_id: builtins.str - """The run id recorded on the `WORKFLOW_EXECUTION_STARTED` event. Unlike the execution's current - run id, this value is preserved across workflow resets. Mirrors the `original_execution_run_id` - field from `WorkflowExecutionStartedEventAttributes`. - """ + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context of the Nexus operation handler that started this workflow, if any. + Lang should use it to serialize the workflow's result and failure, which are returned to the + Nexus caller. + """ + def __init__( self, *, @@ -629,10 +681,12 @@ class InitializeWorkflow(google.protobuf.message.Message): | None = ..., priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., original_execution_run_id: builtins.str = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "continued_failure", b"continued_failure", "cron_schedule_to_schedule_interval", @@ -645,6 +699,8 @@ class InitializeWorkflow(google.protobuf.message.Message): b"parent_workflow_info", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "retry_policy", b"retry_policy", "root_workflow", @@ -665,7 +721,7 @@ class InitializeWorkflow(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "arguments", b"arguments", "attempt", @@ -696,6 +752,8 @@ class InitializeWorkflow(google.protobuf.message.Message): b"parent_workflow_info", "priority", b"priority", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "randomness_seed", b"randomness_seed", "retry_policy", @@ -723,6 +781,7 @@ class InitializeWorkflow(google.protobuf.message.Message): global___InitializeWorkflow = InitializeWorkflow +@typing.final class FireTimer(google.protobuf.message.Message): """Notify a workflow that a timer has fired""" @@ -736,12 +795,11 @@ class FireTimer(google.protobuf.message.Message): *, seq: builtins.int = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["seq", b"seq"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["seq", b"seq"]) -> None: ... global___FireTimer = FireTimer +@typing.final class ResolveActivity(google.protobuf.message.Message): """Notify a workflow that an activity has been resolved""" @@ -752,16 +810,16 @@ class ResolveActivity(google.protobuf.message.Message): IS_LOCAL_FIELD_NUMBER: builtins.int seq: builtins.int """Sequence number as provided by lang in the corresponding ScheduleActivity command""" + is_local: builtins.bool + """Set to true if the resolution is for a local activity. This is used internally by Core and + lang does not need to care about it. + """ @property def result( self, ) -> ( temporalio.bridge.proto.activity_result.activity_result_pb2.ActivityResolution ): ... - is_local: builtins.bool - """Set to true if the resolution is for a local activity. This is used internally by Core and - lang does not need to care about it. - """ def __init__( self, *, @@ -771,17 +829,18 @@ class ResolveActivity(google.protobuf.message.Message): is_local: builtins.bool = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "is_local", b"is_local", "result", b"result", "seq", b"seq" ], ) -> None: ... global___ResolveActivity = ResolveActivity +@typing.final class ResolveChildWorkflowExecutionStart(google.protobuf.message.Message): """Notify a workflow that a start child workflow execution request has succeeded, failed or was cancelled. @@ -811,7 +870,7 @@ class ResolveChildWorkflowExecutionStart(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancelled", b"cancelled", "failed", @@ -824,7 +883,7 @@ class ResolveChildWorkflowExecutionStart(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancelled", b"cancelled", "failed", @@ -838,11 +897,12 @@ class ResolveChildWorkflowExecutionStart(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["status", b"status"] - ) -> typing_extensions.Literal["succeeded", "failed", "cancelled"] | None: ... + self, oneof_group: typing.Literal["status", b"status"] + ) -> typing.Literal["succeeded", "failed", "cancelled"] | None: ... global___ResolveChildWorkflowExecutionStart = ResolveChildWorkflowExecutionStart +@typing.final class ResolveChildWorkflowExecutionStartSuccess(google.protobuf.message.Message): """Simply pass the run_id to lang""" @@ -855,14 +915,13 @@ class ResolveChildWorkflowExecutionStartSuccess(google.protobuf.message.Message) *, run_id: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["run_id", b"run_id"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["run_id", b"run_id"]) -> None: ... global___ResolveChildWorkflowExecutionStartSuccess = ( ResolveChildWorkflowExecutionStartSuccess ) +@typing.final class ResolveChildWorkflowExecutionStartFailure(google.protobuf.message.Message): """Provide lang the cause of failure""" @@ -886,7 +945,7 @@ class ResolveChildWorkflowExecutionStartFailure(google.protobuf.message.Message) ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cause", b"cause", "workflow_id", @@ -900,6 +959,7 @@ global___ResolveChildWorkflowExecutionStartFailure = ( ResolveChildWorkflowExecutionStartFailure ) +@typing.final class ResolveChildWorkflowExecutionStartCancelled(google.protobuf.message.Message): """`failure` should be ChildWorkflowFailure with cause set to CancelledFailure. The failure is constructed in core for lang's convenience. @@ -916,16 +976,15 @@ class ResolveChildWorkflowExecutionStartCancelled(google.protobuf.message.Messag failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["failure", b"failure"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["failure", b"failure"]) -> None: ... global___ResolveChildWorkflowExecutionStartCancelled = ( ResolveChildWorkflowExecutionStartCancelled ) +@typing.final class ResolveChildWorkflowExecution(google.protobuf.message.Message): """Notify a workflow that a child workflow execution has been resolved""" @@ -949,14 +1008,15 @@ class ResolveChildWorkflowExecution(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["result", b"result", "seq", b"seq"] + self, field_name: typing.Literal["result", b"result", "seq", b"seq"] ) -> None: ... global___ResolveChildWorkflowExecution = ResolveChildWorkflowExecution +@typing.final class UpdateRandomSeed(google.protobuf.message.Message): """Update the workflow's random seed""" @@ -970,17 +1030,18 @@ class UpdateRandomSeed(google.protobuf.message.Message): randomness_seed: builtins.int = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["randomness_seed", b"randomness_seed"], + self, field_name: typing.Literal["randomness_seed", b"randomness_seed"] ) -> None: ... global___UpdateRandomSeed = UpdateRandomSeed +@typing.final class QueryWorkflow(google.protobuf.message.Message): """Query a workflow""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -996,11 +1057,10 @@ class QueryWorkflow(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... QUERY_ID_FIELD_NUMBER: builtins.int @@ -1027,6 +1087,7 @@ class QueryWorkflow(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payload ]: """Headers attached to the query""" + def __init__( self, *, @@ -1043,7 +1104,7 @@ class QueryWorkflow(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "arguments", b"arguments", "headers", @@ -1057,6 +1118,7 @@ class QueryWorkflow(google.protobuf.message.Message): global___QueryWorkflow = QueryWorkflow +@typing.final class CancelWorkflow(google.protobuf.message.Message): """Cancel a running workflow""" @@ -1070,17 +1132,17 @@ class CancelWorkflow(google.protobuf.message.Message): *, reason: builtins.str = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["reason", b"reason"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["reason", b"reason"]) -> None: ... global___CancelWorkflow = CancelWorkflow +@typing.final class SignalWorkflow(google.protobuf.message.Message): """Send a signal to a workflow""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1096,11 +1158,10 @@ class SignalWorkflow(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SIGNAL_NAME_FIELD_NUMBER: builtins.int @@ -1109,14 +1170,16 @@ class SignalWorkflow(google.protobuf.message.Message): HEADERS_FIELD_NUMBER: builtins.int ORIGINATING_EVENT_ID_FIELD_NUMBER: builtins.int signal_name: builtins.str + identity: builtins.str + """Identity of the sender of the signal""" + originating_event_id: builtins.int + """Event ID of the `WORKFLOW_EXECUTION_SIGNALED` history event that produced this job.""" @property def input( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.common.v1.message_pb2.Payload ]: ... - identity: builtins.str - """Identity of the sender of the signal""" @property def headers( self, @@ -1124,8 +1187,7 @@ class SignalWorkflow(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payload ]: """Headers attached to the signal""" - originating_event_id: builtins.int - """Event ID of the `WORKFLOW_EXECUTION_SIGNALED` history event that produced this job.""" + def __init__( self, *, @@ -1141,7 +1203,7 @@ class SignalWorkflow(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "headers", b"headers", "identity", @@ -1157,6 +1219,7 @@ class SignalWorkflow(google.protobuf.message.Message): global___SignalWorkflow = SignalWorkflow +@typing.final class NotifyHasPatch(google.protobuf.message.Message): """Inform lang what the result of a call to `patched` or similar API should be -- this is always sent pre-emptively, so any time it is sent the change is present @@ -1172,71 +1235,88 @@ class NotifyHasPatch(google.protobuf.message.Message): patch_id: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["patch_id", b"patch_id"] + self, field_name: typing.Literal["patch_id", b"patch_id"] ) -> None: ... global___NotifyHasPatch = NotifyHasPatch +@typing.final class ResolveSignalExternalWorkflow(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SEQ_FIELD_NUMBER: builtins.int FAILURE_FIELD_NUMBER: builtins.int + CAUSE_FIELD_NUMBER: builtins.int seq: builtins.int """Sequence number as provided by lang in the corresponding SignalExternalWorkflowExecution command """ + cause: temporalio.api.enums.v1.failed_cause_pb2.SignalExternalWorkflowExecutionFailedCause.ValueType + """The server-reported cause when the signal failed. Unspecified when the signal succeeded or + was cancelled before being sent. + """ @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: """If populated, this signal either failed to be sent or was cancelled depending on failure type / info. """ + def __init__( self, *, seq: builtins.int = ..., failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., + cause: temporalio.api.enums.v1.failed_cause_pb2.SignalExternalWorkflowExecutionFailedCause.ValueType = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["failure", b"failure", "seq", b"seq"], + field_name: typing.Literal[ + "cause", b"cause", "failure", b"failure", "seq", b"seq" + ], ) -> None: ... global___ResolveSignalExternalWorkflow = ResolveSignalExternalWorkflow +@typing.final class ResolveRequestCancelExternalWorkflow(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor SEQ_FIELD_NUMBER: builtins.int FAILURE_FIELD_NUMBER: builtins.int + CAUSE_FIELD_NUMBER: builtins.int seq: builtins.int """Sequence number as provided by lang in the corresponding RequestCancelExternalWorkflowExecution command """ + cause: temporalio.api.enums.v1.failed_cause_pb2.CancelExternalWorkflowExecutionFailedCause.ValueType + """The server-reported cause when the cancellation request failed.""" @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: - """If populated, this signal either failed to be sent or was cancelled depending on failure - type / info. - """ + """If populated, the cancellation request failed.""" + def __init__( self, *, seq: builtins.int = ..., failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., + cause: temporalio.api.enums.v1.failed_cause_pb2.CancelExternalWorkflowExecutionFailedCause.ValueType = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal["failure", b"failure", "seq", b"seq"], + field_name: typing.Literal[ + "cause", b"cause", "failure", b"failure", "seq", b"seq" + ], ) -> None: ... global___ResolveRequestCancelExternalWorkflow = ResolveRequestCancelExternalWorkflow +@typing.final class DoUpdate(google.protobuf.message.Message): """Lang is requested to invoke an update handler on the workflow. Lang should invoke the update validator first (if requested). If it accepts the update, immediately invoke the update handler. @@ -1245,6 +1325,7 @@ class DoUpdate(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1260,11 +1341,10 @@ class DoUpdate(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... ID_FIELD_NUMBER: builtins.int @@ -1274,6 +1354,7 @@ class DoUpdate(google.protobuf.message.Message): HEADERS_FIELD_NUMBER: builtins.int META_FIELD_NUMBER: builtins.int RUN_VALIDATOR_FIELD_NUMBER: builtins.int + PROPAGATED_NEXUS_SERIALIZATION_CONTEXT_FIELD_NUMBER: builtins.int id: builtins.str """A workflow-unique identifier for this update""" protocol_instance_id: builtins.str @@ -1282,6 +1363,10 @@ class DoUpdate(google.protobuf.message.Message): """ name: builtins.str """The name of the update handler""" + run_validator: builtins.bool + """If set true, lang must run the update's validator before running the handler. This will be + set false during replay, since validation is not re-run during replay. + """ @property def input( self, @@ -1289,6 +1374,7 @@ class DoUpdate(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Payload ]: """The input to the update""" + @property def headers( self, @@ -1296,15 +1382,22 @@ class DoUpdate(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payload ]: """Headers attached to the update""" + @property def meta(self) -> temporalio.api.update.v1.message_pb2.Meta: """Remaining metadata associated with the update. The `update_id` field is stripped from here and moved to `id`, since it is guaranteed to be present. """ - run_validator: builtins.bool - """If set true, lang must run the update's validator before running the handler. This will be - set false during replay, since validation is not re-run during replay. - """ + + @property + def propagated_nexus_serialization_context( + self, + ) -> temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext: + """Serialization context of the Nexus operation handler that sent this update, if any. Lang + should use it to serialize the update's result and failure, which are returned to the Nexus + caller. + """ + def __init__( self, *, @@ -1319,13 +1412,21 @@ class DoUpdate(google.protobuf.message.Message): | None = ..., meta: temporalio.api.update.v1.message_pb2.Meta | None = ..., run_validator: builtins.bool = ..., + propagated_nexus_serialization_context: temporalio.api.nexus.v1.message_pb2.PropagatedSerializationContext + | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["meta", b"meta"] + self, + field_name: typing.Literal[ + "meta", + b"meta", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", + ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "headers", b"headers", "id", @@ -1336,6 +1437,8 @@ class DoUpdate(google.protobuf.message.Message): b"meta", "name", b"name", + "propagated_nexus_serialization_context", + b"propagated_nexus_serialization_context", "protocol_instance_id", b"protocol_instance_id", "run_validator", @@ -1345,6 +1448,7 @@ class DoUpdate(google.protobuf.message.Message): global___DoUpdate = DoUpdate +@typing.final class ResolveNexusOperationStart(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1369,6 +1473,7 @@ class ResolveNexusOperationStart(google.protobuf.message.Message): failed synchronously. Details are included inside the message. In this case, the subsequent ResolveNexusOperation will never be sent. """ + def __init__( self, *, @@ -1379,7 +1484,7 @@ class ResolveNexusOperationStart(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failed", b"failed", "operation_token", @@ -1392,7 +1497,7 @@ class ResolveNexusOperationStart(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failed", b"failed", "operation_token", @@ -1406,13 +1511,12 @@ class ResolveNexusOperationStart(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["status", b"status"] - ) -> ( - typing_extensions.Literal["operation_token", "started_sync", "failed"] | None - ): ... + self, oneof_group: typing.Literal["status", b"status"] + ) -> typing.Literal["operation_token", "started_sync", "failed"] | None: ... global___ResolveNexusOperationStart = ResolveNexusOperationStart +@typing.final class ResolveNexusOperation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1432,14 +1536,15 @@ class ResolveNexusOperation(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["result", b"result", "seq", b"seq"] + self, field_name: typing.Literal["result", b"result", "seq", b"seq"] ) -> None: ... global___ResolveNexusOperation = ResolveNexusOperation +@typing.final class RemoveFromCache(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1452,7 +1557,7 @@ class RemoveFromCache(google.protobuf.message.Message): RemoveFromCache._EvictionReason.ValueType ], builtins.type, - ): # noqa: F821 + ): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNSPECIFIED: RemoveFromCache._EvictionReason.ValueType # 0 CACHE_FULL: RemoveFromCache._EvictionReason.ValueType # 1 @@ -1530,10 +1635,7 @@ class RemoveFromCache(google.protobuf.message.Message): reason: global___RemoveFromCache.EvictionReason.ValueType = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "message", b"message", "reason", b"reason" - ], + self, field_name: typing.Literal["message", b"message", "reason", b"reason"] ) -> None: ... global___RemoveFromCache = RemoveFromCache diff --git a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py index 64fa8a255..3573f36b1 100644 --- a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py +++ b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py @@ -5,10 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -34,6 +32,9 @@ from temporalio.api.sdk.v1 import ( user_metadata_pb2 as temporal_dot_api_dot_sdk_dot_v1_dot_user__metadata__pb2, ) +from temporalio.api.workflow.v1 import ( + message_pb2 as temporal_dot_api_dot_workflow_dot_v1_dot_message__pb2, +) from temporalio.bridge.proto.child_workflow import ( child_workflow_pb2 as temporal_dot_sdk_dot_core_dot_child__workflow_dot_child__workflow__pb2, ) @@ -45,424 +46,11 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n;temporal/sdk/core/workflow_commands/workflow_commands.proto\x12\x19\x63oresdk.workflow_commands\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a,temporal/api/sdk/v1/event_group_marker.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a#temporal/sdk/core/nexus/nexus.proto\x1a%temporal/sdk/core/common/common.proto"\xa9\x10\n\x0fWorkflowCommand\x12\x38\n\ruser_metadata\x18\x64 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12\x42\n\x13\x65vent_group_markers\x18\x65 \x03(\x0b\x32%.temporal.api.sdk.v1.EventGroupMarker\x12<\n\x0bstart_timer\x18\x01 \x01(\x0b\x32%.coresdk.workflow_commands.StartTimerH\x00\x12H\n\x11schedule_activity\x18\x02 \x01(\x0b\x32+.coresdk.workflow_commands.ScheduleActivityH\x00\x12\x42\n\x10respond_to_query\x18\x03 \x01(\x0b\x32&.coresdk.workflow_commands.QueryResultH\x00\x12S\n\x17request_cancel_activity\x18\x04 \x01(\x0b\x32\x30.coresdk.workflow_commands.RequestCancelActivityH\x00\x12>\n\x0c\x63\x61ncel_timer\x18\x05 \x01(\x0b\x32&.coresdk.workflow_commands.CancelTimerH\x00\x12[\n\x1b\x63omplete_workflow_execution\x18\x06 \x01(\x0b\x32\x34.coresdk.workflow_commands.CompleteWorkflowExecutionH\x00\x12S\n\x17\x66\x61il_workflow_execution\x18\x07 \x01(\x0b\x32\x30.coresdk.workflow_commands.FailWorkflowExecutionH\x00\x12g\n"continue_as_new_workflow_execution\x18\x08 \x01(\x0b\x32\x39.coresdk.workflow_commands.ContinueAsNewWorkflowExecutionH\x00\x12W\n\x19\x63\x61ncel_workflow_execution\x18\t \x01(\x0b\x32\x32.coresdk.workflow_commands.CancelWorkflowExecutionH\x00\x12\x45\n\x10set_patch_marker\x18\n \x01(\x0b\x32).coresdk.workflow_commands.SetPatchMarkerH\x00\x12`\n\x1estart_child_workflow_execution\x18\x0b \x01(\x0b\x32\x36.coresdk.workflow_commands.StartChildWorkflowExecutionH\x00\x12\x62\n\x1f\x63\x61ncel_child_workflow_execution\x18\x0c \x01(\x0b\x32\x37.coresdk.workflow_commands.CancelChildWorkflowExecutionH\x00\x12w\n*request_cancel_external_workflow_execution\x18\r \x01(\x0b\x32\x41.coresdk.workflow_commands.RequestCancelExternalWorkflowExecutionH\x00\x12h\n"signal_external_workflow_execution\x18\x0e \x01(\x0b\x32:.coresdk.workflow_commands.SignalExternalWorkflowExecutionH\x00\x12Q\n\x16\x63\x61ncel_signal_workflow\x18\x0f \x01(\x0b\x32/.coresdk.workflow_commands.CancelSignalWorkflowH\x00\x12S\n\x17schedule_local_activity\x18\x10 \x01(\x0b\x32\x30.coresdk.workflow_commands.ScheduleLocalActivityH\x00\x12^\n\x1drequest_cancel_local_activity\x18\x11 \x01(\x0b\x32\x35.coresdk.workflow_commands.RequestCancelLocalActivityH\x00\x12\x66\n!upsert_workflow_search_attributes\x18\x12 \x01(\x0b\x32\x39.coresdk.workflow_commands.UpsertWorkflowSearchAttributesH\x00\x12Y\n\x1amodify_workflow_properties\x18\x13 \x01(\x0b\x32\x33.coresdk.workflow_commands.ModifyWorkflowPropertiesH\x00\x12\x44\n\x0fupdate_response\x18\x14 \x01(\x0b\x32).coresdk.workflow_commands.UpdateResponseH\x00\x12U\n\x18schedule_nexus_operation\x18\x15 \x01(\x0b\x32\x31.coresdk.workflow_commands.ScheduleNexusOperationH\x00\x12`\n\x1erequest_cancel_nexus_operation\x18\x16 \x01(\x0b\x32\x36.coresdk.workflow_commands.RequestCancelNexusOperationH\x00\x42\t\n\x07variant"S\n\nStartTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\x1a\n\x0b\x43\x61ncelTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"\xb8\x06\n\x10ScheduleActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12I\n\x07headers\x18\x06 \x03(\x0b\x32\x38.coresdk.workflow_commands.ScheduleActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x12\x1e\n\x16\x64o_not_eagerly_execute\x18\x0e \x01(\x08\x12;\n\x11versioning_intent\x18\x0f \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x10 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\xee\x05\n\x15ScheduleLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\r\x12:\n\x16original_schedule_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\x07headers\x18\x06 \x03(\x0b\x32=.coresdk.workflow_commands.ScheduleLocalActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x38\n\x15local_retry_threshold\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"$\n\x15RequestCancelActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r")\n\x1aRequestCancelLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r"\x9c\x01\n\x0bQueryResult\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12<\n\tsucceeded\x18\x02 \x01(\x0b\x32\'.coresdk.workflow_commands.QuerySuccessH\x00\x12\x32\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07variant"A\n\x0cQuerySuccess\x12\x31\n\x08response\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"L\n\x19\x43ompleteWorkflowExecution\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"J\n\x15\x46\x61ilWorkflowExecution\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\x92\x07\n\x1e\x43ontinueAsNewWorkflowExecution\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12Q\n\x04memo\x18\x06 \x03(\x0b\x32\x43.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.MemoEntry\x12W\n\x07headers\x18\x07 \x03(\x0b\x32\x46.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.HeadersEntry\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12;\n\x11versioning_intent\x18\n \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12[\n\x1binitial_versioning_behavior\x18\x0b \x01(\x0e\x32\x36.temporal.api.enums.v1.ContinueAsNewVersioningBehavior\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"L\n\x17\x43\x61ncelWorkflowExecution\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"6\n\x0eSetPatchMarker\x12\x10\n\x08patch_id\x18\x01 \x01(\t\x12\x12\n\ndeprecated\x18\x02 \x01(\x08"\x96\t\n\x1bStartChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x03 \x01(\t\x12\x15\n\rworkflow_type\x18\x04 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12.\n\x05input\x18\x06 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x46\n\x13parent_close_policy\x18\n \x01(\x0e\x32).coresdk.child_workflow.ParentClosePolicy\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12T\n\x07headers\x18\x0f \x03(\x0b\x32\x43.coresdk.workflow_commands.StartChildWorkflowExecution.HeadersEntry\x12N\n\x04memo\x18\x10 \x03(\x0b\x32@.coresdk.workflow_commands.StartChildWorkflowExecution.MemoEntry\x12\x43\n\x11search_attributes\x18\x11 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12P\n\x11\x63\x61ncellation_type\x18\x12 \x01(\x0e\x32\x35.coresdk.child_workflow.ChildWorkflowCancellationType\x12;\n\x11versioning_intent\x18\x13 \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x14 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"J\n\x1c\x43\x61ncelChildWorkflowExecution\x12\x1a\n\x12\x63hild_workflow_seq\x18\x01 \x01(\r\x12\x0e\n\x06reason\x18\x02 \x01(\t"\x8e\x01\n&RequestCancelExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12G\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t"\x8f\x03\n\x1fSignalExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12I\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecutionH\x00\x12\x1b\n\x11\x63hild_workflow_id\x18\x03 \x01(\tH\x00\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12-\n\x04\x61rgs\x18\x05 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12X\n\x07headers\x18\x06 \x03(\x0b\x32G.coresdk.workflow_commands.SignalExternalWorkflowExecution.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x42\x08\n\x06target"#\n\x14\x43\x61ncelSignalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r"e\n\x1eUpsertWorkflowSearchAttributes\x12\x43\n\x11search_attributes\x18\x01 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"O\n\x18ModifyWorkflowProperties\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xd2\x01\n\x0eUpdateResponse\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12*\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x08rejected\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x34\n\tcompleted\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x42\n\n\x08response"\x9a\x04\n\x16ScheduleNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12.\n\x05input\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12X\n\x0cnexus_header\x18\x07 \x03(\x0b\x32\x42.coresdk.workflow_commands.ScheduleNexusOperation.NexusHeaderEntry\x12H\n\x11\x63\x61ncellation_type\x18\x08 \x01(\x0e\x32-.coresdk.nexus.NexusOperationCancellationType\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"*\n\x1bRequestCancelNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r*X\n\x18\x41\x63tivityCancellationType\x12\x0e\n\nTRY_CANCEL\x10\x00\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x01\x12\x0b\n\x07\x41\x42\x41NDON\x10\x02\x42\x36\xea\x02\x33Temporalio::Internal::Bridge::Api::WorkflowCommandsb\x06proto3' -) - -_ACTIVITYCANCELLATIONTYPE = DESCRIPTOR.enum_types_by_name["ActivityCancellationType"] -ActivityCancellationType = enum_type_wrapper.EnumTypeWrapper(_ACTIVITYCANCELLATIONTYPE) -TRY_CANCEL = 0 -WAIT_CANCELLATION_COMPLETED = 1 -ABANDON = 2 - - -_WORKFLOWCOMMAND = DESCRIPTOR.message_types_by_name["WorkflowCommand"] -_STARTTIMER = DESCRIPTOR.message_types_by_name["StartTimer"] -_CANCELTIMER = DESCRIPTOR.message_types_by_name["CancelTimer"] -_SCHEDULEACTIVITY = DESCRIPTOR.message_types_by_name["ScheduleActivity"] -_SCHEDULEACTIVITY_HEADERSENTRY = _SCHEDULEACTIVITY.nested_types_by_name["HeadersEntry"] -_SCHEDULELOCALACTIVITY = DESCRIPTOR.message_types_by_name["ScheduleLocalActivity"] -_SCHEDULELOCALACTIVITY_HEADERSENTRY = _SCHEDULELOCALACTIVITY.nested_types_by_name[ - "HeadersEntry" -] -_REQUESTCANCELACTIVITY = DESCRIPTOR.message_types_by_name["RequestCancelActivity"] -_REQUESTCANCELLOCALACTIVITY = DESCRIPTOR.message_types_by_name[ - "RequestCancelLocalActivity" -] -_QUERYRESULT = DESCRIPTOR.message_types_by_name["QueryResult"] -_QUERYSUCCESS = DESCRIPTOR.message_types_by_name["QuerySuccess"] -_COMPLETEWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name[ - "CompleteWorkflowExecution" -] -_FAILWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name["FailWorkflowExecution"] -_CONTINUEASNEWWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name[ - "ContinueAsNewWorkflowExecution" -] -_CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY = ( - _CONTINUEASNEWWORKFLOWEXECUTION.nested_types_by_name["MemoEntry"] -) -_CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY = ( - _CONTINUEASNEWWORKFLOWEXECUTION.nested_types_by_name["HeadersEntry"] -) -_CANCELWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name["CancelWorkflowExecution"] -_SETPATCHMARKER = DESCRIPTOR.message_types_by_name["SetPatchMarker"] -_STARTCHILDWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name[ - "StartChildWorkflowExecution" -] -_STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY = ( - _STARTCHILDWORKFLOWEXECUTION.nested_types_by_name["HeadersEntry"] -) -_STARTCHILDWORKFLOWEXECUTION_MEMOENTRY = ( - _STARTCHILDWORKFLOWEXECUTION.nested_types_by_name["MemoEntry"] -) -_CANCELCHILDWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name[ - "CancelChildWorkflowExecution" -] -_REQUESTCANCELEXTERNALWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name[ - "RequestCancelExternalWorkflowExecution" -] -_SIGNALEXTERNALWORKFLOWEXECUTION = DESCRIPTOR.message_types_by_name[ - "SignalExternalWorkflowExecution" -] -_SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY = ( - _SIGNALEXTERNALWORKFLOWEXECUTION.nested_types_by_name["HeadersEntry"] -) -_CANCELSIGNALWORKFLOW = DESCRIPTOR.message_types_by_name["CancelSignalWorkflow"] -_UPSERTWORKFLOWSEARCHATTRIBUTES = DESCRIPTOR.message_types_by_name[ - "UpsertWorkflowSearchAttributes" -] -_MODIFYWORKFLOWPROPERTIES = DESCRIPTOR.message_types_by_name["ModifyWorkflowProperties"] -_UPDATERESPONSE = DESCRIPTOR.message_types_by_name["UpdateResponse"] -_SCHEDULENEXUSOPERATION = DESCRIPTOR.message_types_by_name["ScheduleNexusOperation"] -_SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY = _SCHEDULENEXUSOPERATION.nested_types_by_name[ - "NexusHeaderEntry" -] -_REQUESTCANCELNEXUSOPERATION = DESCRIPTOR.message_types_by_name[ - "RequestCancelNexusOperation" -] -WorkflowCommand = _reflection.GeneratedProtocolMessageType( - "WorkflowCommand", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWCOMMAND, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.WorkflowCommand) - }, -) -_sym_db.RegisterMessage(WorkflowCommand) - -StartTimer = _reflection.GeneratedProtocolMessageType( - "StartTimer", - (_message.Message,), - { - "DESCRIPTOR": _STARTTIMER, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.StartTimer) - }, -) -_sym_db.RegisterMessage(StartTimer) - -CancelTimer = _reflection.GeneratedProtocolMessageType( - "CancelTimer", - (_message.Message,), - { - "DESCRIPTOR": _CANCELTIMER, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CancelTimer) - }, -) -_sym_db.RegisterMessage(CancelTimer) - -ScheduleActivity = _reflection.GeneratedProtocolMessageType( - "ScheduleActivity", - (_message.Message,), - { - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULEACTIVITY_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleActivity.HeadersEntry) - }, - ), - "DESCRIPTOR": _SCHEDULEACTIVITY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleActivity) - }, -) -_sym_db.RegisterMessage(ScheduleActivity) -_sym_db.RegisterMessage(ScheduleActivity.HeadersEntry) - -ScheduleLocalActivity = _reflection.GeneratedProtocolMessageType( - "ScheduleLocalActivity", - (_message.Message,), - { - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULELOCALACTIVITY_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleLocalActivity.HeadersEntry) - }, - ), - "DESCRIPTOR": _SCHEDULELOCALACTIVITY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleLocalActivity) - }, -) -_sym_db.RegisterMessage(ScheduleLocalActivity) -_sym_db.RegisterMessage(ScheduleLocalActivity.HeadersEntry) - -RequestCancelActivity = _reflection.GeneratedProtocolMessageType( - "RequestCancelActivity", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELACTIVITY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.RequestCancelActivity) - }, -) -_sym_db.RegisterMessage(RequestCancelActivity) - -RequestCancelLocalActivity = _reflection.GeneratedProtocolMessageType( - "RequestCancelLocalActivity", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELLOCALACTIVITY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.RequestCancelLocalActivity) - }, -) -_sym_db.RegisterMessage(RequestCancelLocalActivity) - -QueryResult = _reflection.GeneratedProtocolMessageType( - "QueryResult", - (_message.Message,), - { - "DESCRIPTOR": _QUERYRESULT, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.QueryResult) - }, -) -_sym_db.RegisterMessage(QueryResult) - -QuerySuccess = _reflection.GeneratedProtocolMessageType( - "QuerySuccess", - (_message.Message,), - { - "DESCRIPTOR": _QUERYSUCCESS, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.QuerySuccess) - }, -) -_sym_db.RegisterMessage(QuerySuccess) - -CompleteWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "CompleteWorkflowExecution", - (_message.Message,), - { - "DESCRIPTOR": _COMPLETEWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CompleteWorkflowExecution) - }, -) -_sym_db.RegisterMessage(CompleteWorkflowExecution) - -FailWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "FailWorkflowExecution", - (_message.Message,), - { - "DESCRIPTOR": _FAILWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.FailWorkflowExecution) - }, -) -_sym_db.RegisterMessage(FailWorkflowExecution) - -ContinueAsNewWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "ContinueAsNewWorkflowExecution", - (_message.Message,), - { - "MemoEntry": _reflection.GeneratedProtocolMessageType( - "MemoEntry", - (_message.Message,), - { - "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ContinueAsNewWorkflowExecution.MemoEntry) - }, - ), - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ContinueAsNewWorkflowExecution.HeadersEntry) - }, - ), - "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ContinueAsNewWorkflowExecution) - }, -) -_sym_db.RegisterMessage(ContinueAsNewWorkflowExecution) -_sym_db.RegisterMessage(ContinueAsNewWorkflowExecution.MemoEntry) -_sym_db.RegisterMessage(ContinueAsNewWorkflowExecution.HeadersEntry) - -CancelWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "CancelWorkflowExecution", - (_message.Message,), - { - "DESCRIPTOR": _CANCELWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CancelWorkflowExecution) - }, -) -_sym_db.RegisterMessage(CancelWorkflowExecution) - -SetPatchMarker = _reflection.GeneratedProtocolMessageType( - "SetPatchMarker", - (_message.Message,), - { - "DESCRIPTOR": _SETPATCHMARKER, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.SetPatchMarker) - }, -) -_sym_db.RegisterMessage(SetPatchMarker) - -StartChildWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "StartChildWorkflowExecution", - (_message.Message,), - { - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.StartChildWorkflowExecution.HeadersEntry) - }, - ), - "MemoEntry": _reflection.GeneratedProtocolMessageType( - "MemoEntry", - (_message.Message,), - { - "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.StartChildWorkflowExecution.MemoEntry) - }, - ), - "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.StartChildWorkflowExecution) - }, -) -_sym_db.RegisterMessage(StartChildWorkflowExecution) -_sym_db.RegisterMessage(StartChildWorkflowExecution.HeadersEntry) -_sym_db.RegisterMessage(StartChildWorkflowExecution.MemoEntry) - -CancelChildWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "CancelChildWorkflowExecution", - (_message.Message,), - { - "DESCRIPTOR": _CANCELCHILDWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CancelChildWorkflowExecution) - }, -) -_sym_db.RegisterMessage(CancelChildWorkflowExecution) - -RequestCancelExternalWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "RequestCancelExternalWorkflowExecution", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.RequestCancelExternalWorkflowExecution) - }, -) -_sym_db.RegisterMessage(RequestCancelExternalWorkflowExecution) - -SignalExternalWorkflowExecution = _reflection.GeneratedProtocolMessageType( - "SignalExternalWorkflowExecution", - (_message.Message,), - { - "HeadersEntry": _reflection.GeneratedProtocolMessageType( - "HeadersEntry", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.SignalExternalWorkflowExecution.HeadersEntry) - }, - ), - "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.SignalExternalWorkflowExecution) - }, -) -_sym_db.RegisterMessage(SignalExternalWorkflowExecution) -_sym_db.RegisterMessage(SignalExternalWorkflowExecution.HeadersEntry) - -CancelSignalWorkflow = _reflection.GeneratedProtocolMessageType( - "CancelSignalWorkflow", - (_message.Message,), - { - "DESCRIPTOR": _CANCELSIGNALWORKFLOW, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CancelSignalWorkflow) - }, -) -_sym_db.RegisterMessage(CancelSignalWorkflow) - -UpsertWorkflowSearchAttributes = _reflection.GeneratedProtocolMessageType( - "UpsertWorkflowSearchAttributes", - (_message.Message,), - { - "DESCRIPTOR": _UPSERTWORKFLOWSEARCHATTRIBUTES, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.UpsertWorkflowSearchAttributes) - }, -) -_sym_db.RegisterMessage(UpsertWorkflowSearchAttributes) - -ModifyWorkflowProperties = _reflection.GeneratedProtocolMessageType( - "ModifyWorkflowProperties", - (_message.Message,), - { - "DESCRIPTOR": _MODIFYWORKFLOWPROPERTIES, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ModifyWorkflowProperties) - }, -) -_sym_db.RegisterMessage(ModifyWorkflowProperties) - -UpdateResponse = _reflection.GeneratedProtocolMessageType( - "UpdateResponse", - (_message.Message,), - { - "DESCRIPTOR": _UPDATERESPONSE, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.UpdateResponse) - }, -) -_sym_db.RegisterMessage(UpdateResponse) - -ScheduleNexusOperation = _reflection.GeneratedProtocolMessageType( - "ScheduleNexusOperation", - (_message.Message,), - { - "NexusHeaderEntry": _reflection.GeneratedProtocolMessageType( - "NexusHeaderEntry", - (_message.Message,), - { - "DESCRIPTOR": _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleNexusOperation.NexusHeaderEntry) - }, - ), - "DESCRIPTOR": _SCHEDULENEXUSOPERATION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleNexusOperation) - }, -) -_sym_db.RegisterMessage(ScheduleNexusOperation) -_sym_db.RegisterMessage(ScheduleNexusOperation.NexusHeaderEntry) - -RequestCancelNexusOperation = _reflection.GeneratedProtocolMessageType( - "RequestCancelNexusOperation", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELNEXUSOPERATION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.RequestCancelNexusOperation) - }, + b'\n;temporal/sdk/core/workflow_commands/workflow_commands.proto\x12\x19\x63oresdk.workflow_commands\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a,temporal/api/sdk/v1/event_group_marker.proto\x1a&temporal/api/workflow/v1/message.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a#temporal/sdk/core/nexus/nexus.proto\x1a%temporal/sdk/core/common/common.proto"\xa9\x10\n\x0fWorkflowCommand\x12\x38\n\ruser_metadata\x18\x64 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12\x42\n\x13\x65vent_group_markers\x18\x65 \x03(\x0b\x32%.temporal.api.sdk.v1.EventGroupMarker\x12<\n\x0bstart_timer\x18\x01 \x01(\x0b\x32%.coresdk.workflow_commands.StartTimerH\x00\x12H\n\x11schedule_activity\x18\x02 \x01(\x0b\x32+.coresdk.workflow_commands.ScheduleActivityH\x00\x12\x42\n\x10respond_to_query\x18\x03 \x01(\x0b\x32&.coresdk.workflow_commands.QueryResultH\x00\x12S\n\x17request_cancel_activity\x18\x04 \x01(\x0b\x32\x30.coresdk.workflow_commands.RequestCancelActivityH\x00\x12>\n\x0c\x63\x61ncel_timer\x18\x05 \x01(\x0b\x32&.coresdk.workflow_commands.CancelTimerH\x00\x12[\n\x1b\x63omplete_workflow_execution\x18\x06 \x01(\x0b\x32\x34.coresdk.workflow_commands.CompleteWorkflowExecutionH\x00\x12S\n\x17\x66\x61il_workflow_execution\x18\x07 \x01(\x0b\x32\x30.coresdk.workflow_commands.FailWorkflowExecutionH\x00\x12g\n"continue_as_new_workflow_execution\x18\x08 \x01(\x0b\x32\x39.coresdk.workflow_commands.ContinueAsNewWorkflowExecutionH\x00\x12W\n\x19\x63\x61ncel_workflow_execution\x18\t \x01(\x0b\x32\x32.coresdk.workflow_commands.CancelWorkflowExecutionH\x00\x12\x45\n\x10set_patch_marker\x18\n \x01(\x0b\x32).coresdk.workflow_commands.SetPatchMarkerH\x00\x12`\n\x1estart_child_workflow_execution\x18\x0b \x01(\x0b\x32\x36.coresdk.workflow_commands.StartChildWorkflowExecutionH\x00\x12\x62\n\x1f\x63\x61ncel_child_workflow_execution\x18\x0c \x01(\x0b\x32\x37.coresdk.workflow_commands.CancelChildWorkflowExecutionH\x00\x12w\n*request_cancel_external_workflow_execution\x18\r \x01(\x0b\x32\x41.coresdk.workflow_commands.RequestCancelExternalWorkflowExecutionH\x00\x12h\n"signal_external_workflow_execution\x18\x0e \x01(\x0b\x32:.coresdk.workflow_commands.SignalExternalWorkflowExecutionH\x00\x12Q\n\x16\x63\x61ncel_signal_workflow\x18\x0f \x01(\x0b\x32/.coresdk.workflow_commands.CancelSignalWorkflowH\x00\x12S\n\x17schedule_local_activity\x18\x10 \x01(\x0b\x32\x30.coresdk.workflow_commands.ScheduleLocalActivityH\x00\x12^\n\x1drequest_cancel_local_activity\x18\x11 \x01(\x0b\x32\x35.coresdk.workflow_commands.RequestCancelLocalActivityH\x00\x12\x66\n!upsert_workflow_search_attributes\x18\x12 \x01(\x0b\x32\x39.coresdk.workflow_commands.UpsertWorkflowSearchAttributesH\x00\x12Y\n\x1amodify_workflow_properties\x18\x13 \x01(\x0b\x32\x33.coresdk.workflow_commands.ModifyWorkflowPropertiesH\x00\x12\x44\n\x0fupdate_response\x18\x14 \x01(\x0b\x32).coresdk.workflow_commands.UpdateResponseH\x00\x12U\n\x18schedule_nexus_operation\x18\x15 \x01(\x0b\x32\x31.coresdk.workflow_commands.ScheduleNexusOperationH\x00\x12`\n\x1erequest_cancel_nexus_operation\x18\x16 \x01(\x0b\x32\x36.coresdk.workflow_commands.RequestCancelNexusOperationH\x00\x42\t\n\x07variant"S\n\nStartTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\x1a\n\x0b\x43\x61ncelTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"\xb8\x06\n\x10ScheduleActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12I\n\x07headers\x18\x06 \x03(\x0b\x32\x38.coresdk.workflow_commands.ScheduleActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x12\x1e\n\x16\x64o_not_eagerly_execute\x18\x0e \x01(\x08\x12;\n\x11versioning_intent\x18\x0f \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x10 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x93\x06\n\x15ScheduleLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\r\x12:\n\x16original_schedule_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\x07headers\x18\x06 \x03(\x0b\x32=.coresdk.workflow_commands.ScheduleLocalActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x38\n\x15local_retry_threshold\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x12#\n\x1binclude_arguments_in_marker\x18\x0e \x01(\x08\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"$\n\x15RequestCancelActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r")\n\x1aRequestCancelLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r"\x9c\x01\n\x0bQueryResult\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12<\n\tsucceeded\x18\x02 \x01(\x0b\x32\'.coresdk.workflow_commands.QuerySuccessH\x00\x12\x32\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07variant"A\n\x0cQuerySuccess\x12\x31\n\x08response\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"L\n\x19\x43ompleteWorkflowExecution\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"J\n\x15\x46\x61ilWorkflowExecution\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\x92\x07\n\x1e\x43ontinueAsNewWorkflowExecution\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12Q\n\x04memo\x18\x06 \x03(\x0b\x32\x43.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.MemoEntry\x12W\n\x07headers\x18\x07 \x03(\x0b\x32\x46.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.HeadersEntry\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12;\n\x11versioning_intent\x18\n \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12[\n\x1binitial_versioning_behavior\x18\x0b \x01(\x0e\x32\x36.temporal.api.enums.v1.ContinueAsNewVersioningBehavior\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"L\n\x17\x43\x61ncelWorkflowExecution\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"6\n\x0eSetPatchMarker\x12\x10\n\x08patch_id\x18\x01 \x01(\t\x12\x12\n\ndeprecated\x18\x02 \x01(\x08"\xe1\t\n\x1bStartChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x03 \x01(\t\x12\x15\n\rworkflow_type\x18\x04 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12.\n\x05input\x18\x06 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x46\n\x13parent_close_policy\x18\n \x01(\x0e\x32).coresdk.child_workflow.ParentClosePolicy\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12T\n\x07headers\x18\x0f \x03(\x0b\x32\x43.coresdk.workflow_commands.StartChildWorkflowExecution.HeadersEntry\x12N\n\x04memo\x18\x10 \x03(\x0b\x32@.coresdk.workflow_commands.StartChildWorkflowExecution.MemoEntry\x12\x43\n\x11search_attributes\x18\x11 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12P\n\x11\x63\x61ncellation_type\x18\x12 \x01(\x0e\x32\x35.coresdk.child_workflow.ChildWorkflowCancellationType\x12;\n\x11versioning_intent\x18\x13 \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x14 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12I\n\x13versioning_override\x18\x15 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"J\n\x1c\x43\x61ncelChildWorkflowExecution\x12\x1a\n\x12\x63hild_workflow_seq\x18\x01 \x01(\r\x12\x0e\n\x06reason\x18\x02 \x01(\t"\x8e\x01\n&RequestCancelExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12G\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t"\x8f\x03\n\x1fSignalExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12I\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecutionH\x00\x12\x1b\n\x11\x63hild_workflow_id\x18\x03 \x01(\tH\x00\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12-\n\x04\x61rgs\x18\x05 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12X\n\x07headers\x18\x06 \x03(\x0b\x32G.coresdk.workflow_commands.SignalExternalWorkflowExecution.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x42\x08\n\x06target"#\n\x14\x43\x61ncelSignalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r"e\n\x1eUpsertWorkflowSearchAttributes\x12\x43\n\x11search_attributes\x18\x01 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"O\n\x18ModifyWorkflowProperties\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xd2\x01\n\x0eUpdateResponse\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12*\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x08rejected\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x34\n\tcompleted\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x42\n\n\x08response"\x9a\x04\n\x16ScheduleNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12.\n\x05input\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12X\n\x0cnexus_header\x18\x07 \x03(\x0b\x32\x42.coresdk.workflow_commands.ScheduleNexusOperation.NexusHeaderEntry\x12H\n\x11\x63\x61ncellation_type\x18\x08 \x01(\x0e\x32-.coresdk.nexus.NexusOperationCancellationType\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"*\n\x1bRequestCancelNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r*X\n\x18\x41\x63tivityCancellationType\x12\x0e\n\nTRY_CANCEL\x10\x00\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x01\x12\x0b\n\x07\x41\x42\x41NDON\x10\x02\x42\x36\xea\x02\x33Temporalio::Internal::Bridge::Api::WorkflowCommandsb\x06proto3' ) -_sym_db.RegisterMessage(RequestCancelNexusOperation) +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( @@ -484,70 +72,70 @@ _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY._serialized_options = b"8\001" _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._options = None _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_options = b"8\001" - _ACTIVITYCANCELLATIONTYPE._serialized_start = 8633 - _ACTIVITYCANCELLATIONTYPE._serialized_end = 8721 - _WORKFLOWCOMMAND._serialized_start = 518 - _WORKFLOWCOMMAND._serialized_end = 2607 - _STARTTIMER._serialized_start = 2609 - _STARTTIMER._serialized_end = 2692 - _CANCELTIMER._serialized_start = 2694 - _CANCELTIMER._serialized_end = 2720 - _SCHEDULEACTIVITY._serialized_start = 2723 - _SCHEDULEACTIVITY._serialized_end = 3547 - _SCHEDULEACTIVITY_HEADERSENTRY._serialized_start = 3468 - _SCHEDULEACTIVITY_HEADERSENTRY._serialized_end = 3547 - _SCHEDULELOCALACTIVITY._serialized_start = 3550 - _SCHEDULELOCALACTIVITY._serialized_end = 4300 - _SCHEDULELOCALACTIVITY_HEADERSENTRY._serialized_start = 3468 - _SCHEDULELOCALACTIVITY_HEADERSENTRY._serialized_end = 3547 - _REQUESTCANCELACTIVITY._serialized_start = 4302 - _REQUESTCANCELACTIVITY._serialized_end = 4338 - _REQUESTCANCELLOCALACTIVITY._serialized_start = 4340 - _REQUESTCANCELLOCALACTIVITY._serialized_end = 4381 - _QUERYRESULT._serialized_start = 4384 - _QUERYRESULT._serialized_end = 4540 - _QUERYSUCCESS._serialized_start = 4542 - _QUERYSUCCESS._serialized_end = 4607 - _COMPLETEWORKFLOWEXECUTION._serialized_start = 4609 - _COMPLETEWORKFLOWEXECUTION._serialized_end = 4685 - _FAILWORKFLOWEXECUTION._serialized_start = 4687 - _FAILWORKFLOWEXECUTION._serialized_end = 4761 - _CONTINUEASNEWWORKFLOWEXECUTION._serialized_start = 4764 - _CONTINUEASNEWWORKFLOWEXECUTION._serialized_end = 5678 - _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY._serialized_start = 5521 - _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY._serialized_end = 5597 - _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3468 - _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3547 - _CANCELWORKFLOWEXECUTION._serialized_start = 5680 - _CANCELWORKFLOWEXECUTION._serialized_end = 5756 - _SETPATCHMARKER._serialized_start = 5758 - _SETPATCHMARKER._serialized_end = 5812 - _STARTCHILDWORKFLOWEXECUTION._serialized_start = 5815 - _STARTCHILDWORKFLOWEXECUTION._serialized_end = 6989 - _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3468 - _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3547 - _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY._serialized_start = 5521 - _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY._serialized_end = 5597 - _CANCELCHILDWORKFLOWEXECUTION._serialized_start = 6991 - _CANCELCHILDWORKFLOWEXECUTION._serialized_end = 7065 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTION._serialized_start = 7068 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTION._serialized_end = 7210 - _SIGNALEXTERNALWORKFLOWEXECUTION._serialized_start = 7213 - _SIGNALEXTERNALWORKFLOWEXECUTION._serialized_end = 7612 - _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3468 - _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3547 - _CANCELSIGNALWORKFLOW._serialized_start = 7614 - _CANCELSIGNALWORKFLOW._serialized_end = 7649 - _UPSERTWORKFLOWSEARCHATTRIBUTES._serialized_start = 7651 - _UPSERTWORKFLOWSEARCHATTRIBUTES._serialized_end = 7752 - _MODIFYWORKFLOWPROPERTIES._serialized_start = 7754 - _MODIFYWORKFLOWPROPERTIES._serialized_end = 7833 - _UPDATERESPONSE._serialized_start = 7836 - _UPDATERESPONSE._serialized_end = 8046 - _SCHEDULENEXUSOPERATION._serialized_start = 8049 - _SCHEDULENEXUSOPERATION._serialized_end = 8587 - _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_start = 8537 - _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_end = 8587 - _REQUESTCANCELNEXUSOPERATION._serialized_start = 8589 - _REQUESTCANCELNEXUSOPERATION._serialized_end = 8631 + _ACTIVITYCANCELLATIONTYPE._serialized_start = 8785 + _ACTIVITYCANCELLATIONTYPE._serialized_end = 8873 + _WORKFLOWCOMMAND._serialized_start = 558 + _WORKFLOWCOMMAND._serialized_end = 2647 + _STARTTIMER._serialized_start = 2649 + _STARTTIMER._serialized_end = 2732 + _CANCELTIMER._serialized_start = 2734 + _CANCELTIMER._serialized_end = 2760 + _SCHEDULEACTIVITY._serialized_start = 2763 + _SCHEDULEACTIVITY._serialized_end = 3587 + _SCHEDULEACTIVITY_HEADERSENTRY._serialized_start = 3508 + _SCHEDULEACTIVITY_HEADERSENTRY._serialized_end = 3587 + _SCHEDULELOCALACTIVITY._serialized_start = 3590 + _SCHEDULELOCALACTIVITY._serialized_end = 4377 + _SCHEDULELOCALACTIVITY_HEADERSENTRY._serialized_start = 3508 + _SCHEDULELOCALACTIVITY_HEADERSENTRY._serialized_end = 3587 + _REQUESTCANCELACTIVITY._serialized_start = 4379 + _REQUESTCANCELACTIVITY._serialized_end = 4415 + _REQUESTCANCELLOCALACTIVITY._serialized_start = 4417 + _REQUESTCANCELLOCALACTIVITY._serialized_end = 4458 + _QUERYRESULT._serialized_start = 4461 + _QUERYRESULT._serialized_end = 4617 + _QUERYSUCCESS._serialized_start = 4619 + _QUERYSUCCESS._serialized_end = 4684 + _COMPLETEWORKFLOWEXECUTION._serialized_start = 4686 + _COMPLETEWORKFLOWEXECUTION._serialized_end = 4762 + _FAILWORKFLOWEXECUTION._serialized_start = 4764 + _FAILWORKFLOWEXECUTION._serialized_end = 4838 + _CONTINUEASNEWWORKFLOWEXECUTION._serialized_start = 4841 + _CONTINUEASNEWWORKFLOWEXECUTION._serialized_end = 5755 + _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY._serialized_start = 5598 + _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY._serialized_end = 5674 + _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3508 + _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3587 + _CANCELWORKFLOWEXECUTION._serialized_start = 5757 + _CANCELWORKFLOWEXECUTION._serialized_end = 5833 + _SETPATCHMARKER._serialized_start = 5835 + _SETPATCHMARKER._serialized_end = 5889 + _STARTCHILDWORKFLOWEXECUTION._serialized_start = 5892 + _STARTCHILDWORKFLOWEXECUTION._serialized_end = 7141 + _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3508 + _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3587 + _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY._serialized_start = 5598 + _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY._serialized_end = 5674 + _CANCELCHILDWORKFLOWEXECUTION._serialized_start = 7143 + _CANCELCHILDWORKFLOWEXECUTION._serialized_end = 7217 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTION._serialized_start = 7220 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTION._serialized_end = 7362 + _SIGNALEXTERNALWORKFLOWEXECUTION._serialized_start = 7365 + _SIGNALEXTERNALWORKFLOWEXECUTION._serialized_end = 7764 + _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3508 + _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3587 + _CANCELSIGNALWORKFLOW._serialized_start = 7766 + _CANCELSIGNALWORKFLOW._serialized_end = 7801 + _UPSERTWORKFLOWSEARCHATTRIBUTES._serialized_start = 7803 + _UPSERTWORKFLOWSEARCHATTRIBUTES._serialized_end = 7904 + _MODIFYWORKFLOWPROPERTIES._serialized_start = 7906 + _MODIFYWORKFLOWPROPERTIES._serialized_end = 7985 + _UPDATERESPONSE._serialized_start = 7988 + _UPDATERESPONSE._serialized_end = 8198 + _SCHEDULENEXUSOPERATION._serialized_start = 8201 + _SCHEDULENEXUSOPERATION._serialized_end = 8739 + _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_start = 8689 + _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_end = 8739 + _REQUESTCANCELNEXUSOPERATION._serialized_start = 8741 + _REQUESTCANCELNEXUSOPERATION._serialized_end = 8783 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi index 510643132..81c47c0b0 100644 --- a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi +++ b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi @@ -25,6 +25,7 @@ import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 import temporalio.api.sdk.v1.event_group_marker_pb2 import temporalio.api.sdk.v1.user_metadata_pb2 +import temporalio.api.workflow.v1.message_pb2 import temporalio.bridge.proto.child_workflow.child_workflow_pb2 import temporalio.bridge.proto.common.common_pb2 import temporalio.bridge.proto.nexus.nexus_pb2 @@ -45,7 +46,7 @@ class _ActivityCancellationTypeEnumTypeWrapper( _ActivityCancellationType.ValueType ], builtins.type, -): # noqa: F821 +): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TRY_CANCEL: _ActivityCancellationType.ValueType # 0 """Initiate a cancellation request and immediately report cancellation to the workflow.""" @@ -76,6 +77,7 @@ workflow """ global___ActivityCancellationType = ActivityCancellationType +@typing.final class WorkflowCommand(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -109,6 +111,7 @@ class WorkflowCommand(google.protobuf.message.Message): Lang layers are expected to expose the setting of the internals of this metadata on a per-command basis where applicable. """ + @property def event_group_markers( self, @@ -119,6 +122,7 @@ class WorkflowCommand(google.protobuf.message.Message): the corresponding server-side Command, and consequently surfaced on the resulting HistoryEvent. See `temporal/api/sdk/v1/event_group_marker.proto`. """ + @property def start_timer(self) -> global___StartTimer: ... @property @@ -218,7 +222,7 @@ class WorkflowCommand(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_child_workflow_execution", b"cancel_child_workflow_execution", "cancel_signal_workflow", @@ -271,7 +275,7 @@ class WorkflowCommand(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancel_child_workflow_execution", b"cancel_child_workflow_execution", "cancel_signal_workflow", @@ -325,9 +329,9 @@ class WorkflowCommand(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] + self, oneof_group: typing.Literal["variant", b"variant"] ) -> ( - typing_extensions.Literal[ + typing.Literal[ "start_timer", "schedule_activity", "respond_to_query", @@ -356,6 +360,7 @@ class WorkflowCommand(google.protobuf.message.Message): global___WorkflowCommand = WorkflowCommand +@typing.final class StartTimer(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -373,19 +378,18 @@ class StartTimer(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ - "start_to_fire_timeout", b"start_to_fire_timeout" - ], + field_name: typing.Literal["start_to_fire_timeout", b"start_to_fire_timeout"], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "seq", b"seq", "start_to_fire_timeout", b"start_to_fire_timeout" ], ) -> None: ... global___StartTimer = StartTimer +@typing.final class CancelTimer(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -397,15 +401,15 @@ class CancelTimer(google.protobuf.message.Message): *, seq: builtins.int = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["seq", b"seq"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["seq", b"seq"]) -> None: ... global___CancelTimer = CancelTimer +@typing.final class ScheduleActivity(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -421,11 +425,10 @@ class ScheduleActivity(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SEQ_FIELD_NUMBER: builtins.int @@ -449,6 +452,17 @@ class ScheduleActivity(google.protobuf.message.Message): activity_type: builtins.str task_queue: builtins.str """The name of the task queue to place this activity request in""" + cancellation_type: global___ActivityCancellationType.ValueType + """Defines how the workflow will wait (or not) for cancellation of the activity to be confirmed""" + do_not_eagerly_execute: builtins.bool + """If set, the worker will not tell the service that it can immediately start executing this + activity. When unset/default, workers will always attempt to do so if activity execution + slots are available. + """ + versioning_intent: ( + temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType + ) + """Whether this activity should run on a worker with a compatible build id or not.""" @property def headers( self, @@ -462,46 +476,42 @@ class ScheduleActivity(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Payload ]: """Arguments/input to the activity. Called "input" upstream.""" + @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Indicates how long the caller is willing to wait for an activity completion. Limits how long retries will be attempted. Either this or start_to_close_timeout_seconds must be specified. When not specified defaults to the workflow execution timeout. """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Limits time an activity task can stay in a task queue before a worker picks it up. This timeout is always non retryable as all a retry would achieve is to put it back into the same queue. Defaults to schedule_to_close_timeout or workflow execution timeout if not specified. """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum time an activity is allowed to execute after a pick up by a worker. This timeout is always retryable. Either this or schedule_to_close_timeout must be specified. """ + @property def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum time allowed between successful worker heartbeats.""" + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """Activities are provided by a default retry policy controlled through the service dynamic configuration. Retries are happening up to schedule_to_close_timeout. To disable retries set retry_policy.maximum_attempts to 1. """ - cancellation_type: global___ActivityCancellationType.ValueType - """Defines how the workflow will wait (or not) for cancellation of the activity to be confirmed""" - do_not_eagerly_execute: builtins.bool - """If set, the worker will not tell the service that it can immediately start executing this - activity. When unset/default, workers will always attempt to do so if activity execution - slots are available. - """ - versioning_intent: ( - temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType - ) - """Whether this activity should run on a worker with a compatible build id or not.""" + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """The Priority to use for this activity""" + def __init__( self, *, @@ -529,7 +539,7 @@ class ScheduleActivity(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "heartbeat_timeout", b"heartbeat_timeout", "priority", @@ -546,7 +556,7 @@ class ScheduleActivity(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_type", @@ -582,9 +592,11 @@ class ScheduleActivity(google.protobuf.message.Message): global___ScheduleActivity = ScheduleActivity +@typing.final class ScheduleLocalActivity(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -600,11 +612,10 @@ class ScheduleLocalActivity(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SEQ_FIELD_NUMBER: builtins.int @@ -620,6 +631,7 @@ class ScheduleLocalActivity(google.protobuf.message.Message): RETRY_POLICY_FIELD_NUMBER: builtins.int LOCAL_RETRY_THRESHOLD_FIELD_NUMBER: builtins.int CANCELLATION_TYPE_FIELD_NUMBER: builtins.int + INCLUDE_ARGUMENTS_IN_MARKER_FIELD_NUMBER: builtins.int seq: builtins.int """Lang's incremental sequence number, used as the operation identifier""" activity_id: builtins.str @@ -629,11 +641,22 @@ class ScheduleLocalActivity(google.protobuf.message.Message): a timer before retrying. It should pass the attempt number from a `DoBackoff` activity resolution. """ + cancellation_type: global___ActivityCancellationType.ValueType + """Defines how the workflow will wait (or not) for cancellation of the activity to be + confirmed. Lang should default this to `WAIT_CANCELLATION_COMPLETED`, even though proto + will default to `TRY_CANCEL` automatically. + """ + include_arguments_in_marker: builtins.bool + """If set, the local activity arguments will be included in the resulting marker under the + `input` key. This is disabled by default to avoid increasing history size unless the lang + SDK explicitly chooses to expose it. + """ @property def original_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """If this local activity is a retry (as per the attempt field) this needs to be the original scheduling time (as provided in `DoBackoff`) """ + @property def headers( self, @@ -647,12 +670,14 @@ class ScheduleLocalActivity(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Payload ]: """Arguments/input to the activity.""" + @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Indicates how long the caller is willing to wait for local activity completion. Limits how long retries will be attempted. When not specified defaults to the workflow execution timeout (which may be unset). """ + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Limits time the local activity can idle internally before being executed. That can happen if @@ -661,6 +686,7 @@ class ScheduleLocalActivity(google.protobuf.message.Message): to `schedule_to_close_timeout` if not specified and that is set. Must be <= `schedule_to_close_timeout` when set, otherwise, it will be clamped down. """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Maximum time the local activity is allowed to execute after the task is dispatched. This @@ -668,22 +694,20 @@ class ScheduleLocalActivity(google.protobuf.message.Message): specified. If set, this must be <= `schedule_to_close_timeout`, otherwise, it will be clamped down. """ + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """Specify a retry policy for the local activity. By default local activities will be retried indefinitely. """ + @property def local_retry_threshold(self) -> google.protobuf.duration_pb2.Duration: """If the activity is retrying and backoff would exceed this value, lang will be told to schedule a timer and retry the activity after. Otherwise, backoff will happen internally in core. Defaults to 1 minute. """ - cancellation_type: global___ActivityCancellationType.ValueType - """Defines how the workflow will wait (or not) for cancellation of the activity to be - confirmed. Lang should default this to `WAIT_CANCELLATION_COMPLETED`, even though proto - will default to `TRY_CANCEL` automatically. - """ + def __init__( self, *, @@ -706,10 +730,11 @@ class ScheduleLocalActivity(google.protobuf.message.Message): retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ..., local_retry_threshold: google.protobuf.duration_pb2.Duration | None = ..., cancellation_type: global___ActivityCancellationType.ValueType = ..., + include_arguments_in_marker: builtins.bool = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "local_retry_threshold", b"local_retry_threshold", "original_schedule_time", @@ -726,7 +751,7 @@ class ScheduleLocalActivity(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "activity_id", b"activity_id", "activity_type", @@ -739,6 +764,8 @@ class ScheduleLocalActivity(google.protobuf.message.Message): b"cancellation_type", "headers", b"headers", + "include_arguments_in_marker", + b"include_arguments_in_marker", "local_retry_threshold", b"local_retry_threshold", "original_schedule_time", @@ -758,6 +785,7 @@ class ScheduleLocalActivity(google.protobuf.message.Message): global___ScheduleLocalActivity = ScheduleLocalActivity +@typing.final class RequestCancelActivity(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -769,12 +797,11 @@ class RequestCancelActivity(google.protobuf.message.Message): *, seq: builtins.int = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["seq", b"seq"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["seq", b"seq"]) -> None: ... global___RequestCancelActivity = RequestCancelActivity +@typing.final class RequestCancelLocalActivity(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -786,12 +813,11 @@ class RequestCancelLocalActivity(google.protobuf.message.Message): *, seq: builtins.int = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["seq", b"seq"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["seq", b"seq"]) -> None: ... global___RequestCancelLocalActivity = RequestCancelLocalActivity +@typing.final class QueryResult(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -813,13 +839,13 @@ class QueryResult(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failed", b"failed", "succeeded", b"succeeded", "variant", b"variant" ], ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failed", b"failed", "query_id", @@ -831,11 +857,12 @@ class QueryResult(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["variant", b"variant"] - ) -> typing_extensions.Literal["succeeded", "failed"] | None: ... + self, oneof_group: typing.Literal["variant", b"variant"] + ) -> typing.Literal["succeeded", "failed"] | None: ... global___QueryResult = QueryResult +@typing.final class QuerySuccess(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -848,14 +875,15 @@ class QuerySuccess(google.protobuf.message.Message): response: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["response", b"response"] + self, field_name: typing.Literal["response", b"response"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["response", b"response"] + self, field_name: typing.Literal["response", b"response"] ) -> None: ... global___QuerySuccess = QuerySuccess +@typing.final class CompleteWorkflowExecution(google.protobuf.message.Message): """Issued when the workflow completes successfully""" @@ -870,14 +898,13 @@ class CompleteWorkflowExecution(google.protobuf.message.Message): result: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["result", b"result"] + self, field_name: typing.Literal["result", b"result"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["result", b"result"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["result", b"result"]) -> None: ... global___CompleteWorkflowExecution = CompleteWorkflowExecution +@typing.final class FailWorkflowExecution(google.protobuf.message.Message): """Issued when the workflow errors out""" @@ -892,19 +919,19 @@ class FailWorkflowExecution(google.protobuf.message.Message): failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["failure", b"failure"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["failure", b"failure"]) -> None: ... global___FailWorkflowExecution = FailWorkflowExecution +@typing.final class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): """Continue the workflow as a new execution""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class MemoEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -920,13 +947,13 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -942,11 +969,10 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... WORKFLOW_TYPE_FIELD_NUMBER: builtins.int @@ -965,6 +991,17 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): """The identifier the lang-specific sdk uses to execute workflow code""" task_queue: builtins.str """Task queue for the new workflow execution""" + versioning_intent: ( + temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType + ) + """Whether the continued workflow should run on a worker with a compatible build id or not.""" + initial_versioning_behavior: ( + temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType + ) + """Experimental. Optionally decide the versioning behavior that the first task of the new run should use. + For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version + of the previous run. + """ @property def arguments( self, @@ -974,12 +1011,15 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): """Inputs to the workflow code. Should be specified. Will not re-use old arguments, as that typically wouldn't make any sense. """ + @property def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout for a single run of the new workflow. Will not re-use current workflow's value.""" + @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task. Will not re-use current workflow's value.""" + @property def memo( self, @@ -987,6 +1027,7 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payload ]: """If set, the new workflow will have this memo. If unset, re-uses the current workflow's memo""" + @property def headers( self, @@ -996,6 +1037,7 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): """If set, the new workflow will have these headers. Will *not* re-use current workflow's headers otherwise. """ + @property def search_attributes( self, @@ -1003,25 +1045,17 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): """If set, the new workflow will have these search attributes. If unset, re-uses the current workflow's search attributes. """ + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: """If set, the new workflow will have this retry policy. If unset, re-uses the current workflow's retry policy. """ - versioning_intent: ( - temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType - ) - """Whether the continued workflow should run on a worker with a compatible build id or not.""" - initial_versioning_behavior: ( - temporalio.api.enums.v1.workflow_pb2.ContinueAsNewVersioningBehavior.ValueType - ) - """Experimental. Optionally decide the versioning behavior that the first task of the new run should use. - For example, choose to AutoUpgrade on continue-as-new instead of inheriting the pinned version - of the previous run. - """ + @property def backoff_start_interval(self) -> google.protobuf.duration_pb2.Duration: """Delay before the first workflow task of the continued run is scheduled.""" + def __init__( self, *, @@ -1050,7 +1084,7 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "backoff_start_interval", b"backoff_start_interval", "retry_policy", @@ -1065,7 +1099,7 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "arguments", b"arguments", "backoff_start_interval", @@ -1095,6 +1129,7 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): global___ContinueAsNewWorkflowExecution = ContinueAsNewWorkflowExecution +@typing.final class CancelWorkflowExecution(google.protobuf.message.Message): """Indicate a workflow has completed as cancelled. Generally sent as a response to an activation containing a cancellation job. @@ -1111,14 +1146,13 @@ class CancelWorkflowExecution(google.protobuf.message.Message): details: temporalio.api.common.v1.message_pb2.Payloads | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing.Literal["details", b"details"] ) -> builtins.bool: ... - def ClearField( - self, field_name: typing_extensions.Literal["details", b"details"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["details", b"details"]) -> None: ... global___CancelWorkflowExecution = CancelWorkflowExecution +@typing.final class SetPatchMarker(google.protobuf.message.Message): """A request to set/check if a certain patch is present or not""" @@ -1143,18 +1177,20 @@ class SetPatchMarker(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "deprecated", b"deprecated", "patch_id", b"patch_id" ], ) -> None: ... global___SetPatchMarker = SetPatchMarker +@typing.final class StartChildWorkflowExecution(google.protobuf.message.Message): """Start a child workflow execution""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1170,13 +1206,13 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... + @typing.final class MemoEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1192,11 +1228,10 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SEQ_FIELD_NUMBER: builtins.int @@ -1218,12 +1253,28 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): CANCELLATION_TYPE_FIELD_NUMBER: builtins.int VERSIONING_INTENT_FIELD_NUMBER: builtins.int PRIORITY_FIELD_NUMBER: builtins.int + VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int seq: builtins.int """Lang's incremental sequence number, used as the operation identifier""" namespace: builtins.str workflow_id: builtins.str workflow_type: builtins.str task_queue: builtins.str + parent_close_policy: temporalio.bridge.proto.child_workflow.child_workflow_pb2.ParentClosePolicy.ValueType + """Default: PARENT_CLOSE_POLICY_TERMINATE.""" + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) + """string control = 11; (unused from StartChildWorkflowExecutionCommandAttributes) + Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. + """ + cron_schedule: builtins.str + cancellation_type: temporalio.bridge.proto.child_workflow.child_workflow_pb2.ChildWorkflowCancellationType.ValueType + """Defines behaviour of the underlying workflow when child workflow cancellation has been requested.""" + versioning_intent: ( + temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType + ) + """Whether this child should run on a worker with a compatible build id or not.""" @property def input( self, @@ -1233,23 +1284,17 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): @property def workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: """Total workflow execution timeout including retries and continue as new.""" + @property def workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow run.""" + @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - parent_close_policy: temporalio.bridge.proto.child_workflow.child_workflow_pb2.ParentClosePolicy.ValueType - """Default: PARENT_CLOSE_POLICY_TERMINATE.""" - workflow_id_reuse_policy: ( - temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType - ) - """string control = 11; (unused from StartChildWorkflowExecutionCommandAttributes) - Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. - """ + @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: ... - cron_schedule: builtins.str @property def headers( self, @@ -1257,6 +1302,7 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payload ]: """Header fields""" + @property def memo( self, @@ -1264,20 +1310,25 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payload ]: """Memo fields""" + @property def search_attributes( self, ) -> temporalio.api.common.v1.message_pb2.SearchAttributes: """Search attributes""" - cancellation_type: temporalio.bridge.proto.child_workflow.child_workflow_pb2.ChildWorkflowCancellationType.ValueType - """Defines behaviour of the underlying workflow when child workflow cancellation has been requested.""" - versioning_intent: ( - temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType - ) - """Whether this child should run on a worker with a compatible build id or not.""" + @property def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: """The Priority to use for this activity""" + + @property + def versioning_override( + self, + ) -> temporalio.api.workflow.v1.message_pb2.VersioningOverride: + """Allows routing the child independently of the parent's worker deployment version. + Requires Temporal Server 1.32+. + """ + def __init__( self, *, @@ -1308,16 +1359,20 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): cancellation_type: temporalio.bridge.proto.child_workflow.child_workflow_pb2.ChildWorkflowCancellationType.ValueType = ..., versioning_intent: temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType = ..., priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., + versioning_override: temporalio.api.workflow.v1.message_pb2.VersioningOverride + | None = ..., ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "priority", b"priority", "retry_policy", b"retry_policy", "search_attributes", b"search_attributes", + "versioning_override", + b"versioning_override", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_run_timeout", @@ -1328,7 +1383,7 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancellation_type", b"cancellation_type", "cron_schedule", @@ -1355,6 +1410,8 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): b"task_queue", "versioning_intent", b"versioning_intent", + "versioning_override", + b"versioning_override", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_id", @@ -1372,6 +1429,7 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): global___StartChildWorkflowExecution = StartChildWorkflowExecution +@typing.final class CancelChildWorkflowExecution(google.protobuf.message.Message): """Cancel a child workflow""" @@ -1391,13 +1449,14 @@ class CancelChildWorkflowExecution(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "child_workflow_seq", b"child_workflow_seq", "reason", b"reason" ], ) -> None: ... global___CancelChildWorkflowExecution = CancelChildWorkflowExecution +@typing.final class RequestCancelExternalWorkflowExecution(google.protobuf.message.Message): """Request cancellation of an external workflow execution. For cancellation of a child workflow, prefer `CancelChildWorkflowExecution` instead, as it guards against cancel-before-start issues. @@ -1410,13 +1469,14 @@ class RequestCancelExternalWorkflowExecution(google.protobuf.message.Message): REASON_FIELD_NUMBER: builtins.int seq: builtins.int """Lang's incremental sequence number, used as the operation identifier""" + reason: builtins.str + """A reason for the cancellation""" @property def workflow_execution( self, ) -> temporalio.bridge.proto.common.common_pb2.NamespacedWorkflowExecution: """The workflow instance being targeted""" - reason: builtins.str - """A reason for the cancellation""" + def __init__( self, *, @@ -1426,14 +1486,11 @@ class RequestCancelExternalWorkflowExecution(google.protobuf.message.Message): reason: builtins.str = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "workflow_execution", b"workflow_execution" - ], + self, field_name: typing.Literal["workflow_execution", b"workflow_execution"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "reason", b"reason", "seq", @@ -1445,11 +1502,13 @@ class RequestCancelExternalWorkflowExecution(google.protobuf.message.Message): global___RequestCancelExternalWorkflowExecution = RequestCancelExternalWorkflowExecution +@typing.final class SignalExternalWorkflowExecution(google.protobuf.message.Message): """Send a signal to an external or child workflow""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class HeadersEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1465,11 +1524,10 @@ class SignalExternalWorkflowExecution(google.protobuf.message.Message): value: temporalio.api.common.v1.message_pb2.Payload | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["value", b"value"] + self, field_name: typing.Literal["value", b"value"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SEQ_FIELD_NUMBER: builtins.int @@ -1480,15 +1538,16 @@ class SignalExternalWorkflowExecution(google.protobuf.message.Message): HEADERS_FIELD_NUMBER: builtins.int seq: builtins.int """Lang's incremental sequence number, used as the operation identifier""" + child_workflow_id: builtins.str + """The desired target must be a child of the issuing workflow, and this is its workflow id""" + signal_name: builtins.str + """Name of the signal handler""" @property def workflow_execution( self, ) -> temporalio.bridge.proto.common.common_pb2.NamespacedWorkflowExecution: """A specific workflow instance""" - child_workflow_id: builtins.str - """The desired target must be a child of the issuing workflow, and this is its workflow id""" - signal_name: builtins.str - """Name of the signal handler""" + @property def args( self, @@ -1496,6 +1555,7 @@ class SignalExternalWorkflowExecution(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Payload ]: """Arguments for the handler""" + @property def headers( self, @@ -1503,6 +1563,7 @@ class SignalExternalWorkflowExecution(google.protobuf.message.Message): builtins.str, temporalio.api.common.v1.message_pb2.Payload ]: """Headers to attach to the signal""" + def __init__( self, *, @@ -1520,7 +1581,7 @@ class SignalExternalWorkflowExecution(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "child_workflow_id", b"child_workflow_id", "target", @@ -1531,7 +1592,7 @@ class SignalExternalWorkflowExecution(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "args", b"args", "child_workflow_id", @@ -1549,13 +1610,12 @@ class SignalExternalWorkflowExecution(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["target", b"target"] - ) -> ( - typing_extensions.Literal["workflow_execution", "child_workflow_id"] | None - ): ... + self, oneof_group: typing.Literal["target", b"target"] + ) -> typing.Literal["workflow_execution", "child_workflow_id"] | None: ... global___SignalExternalWorkflowExecution = SignalExternalWorkflowExecution +@typing.final class CancelSignalWorkflow(google.protobuf.message.Message): """Can be used to cancel not-already-sent `SignalExternalWorkflowExecution` commands""" @@ -1569,12 +1629,11 @@ class CancelSignalWorkflow(google.protobuf.message.Message): *, seq: builtins.int = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["seq", b"seq"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["seq", b"seq"]) -> None: ... global___CancelSignalWorkflow = CancelSignalWorkflow +@typing.final class UpsertWorkflowSearchAttributes(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1586,6 +1645,7 @@ class UpsertWorkflowSearchAttributes(google.protobuf.message.Message): """SearchAttributes to upsert. The indexed_fields map will be merged with existing search attributes, with these values taking precedence. """ + def __init__( self, *, @@ -1593,20 +1653,15 @@ class UpsertWorkflowSearchAttributes(google.protobuf.message.Message): | None = ..., ) -> None: ... def HasField( - self, - field_name: typing_extensions.Literal[ - "search_attributes", b"search_attributes" - ], + self, field_name: typing.Literal["search_attributes", b"search_attributes"] ) -> builtins.bool: ... def ClearField( - self, - field_name: typing_extensions.Literal[ - "search_attributes", b"search_attributes" - ], + self, field_name: typing.Literal["search_attributes", b"search_attributes"] ) -> None: ... global___UpsertWorkflowSearchAttributes = UpsertWorkflowSearchAttributes +@typing.final class ModifyWorkflowProperties(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1617,20 +1672,22 @@ class ModifyWorkflowProperties(google.protobuf.message.Message): the existing memo. If the user wants to delete values, a default/empty Payload should be used as the value for the key being deleted. """ + def __init__( self, *, upserted_memo: temporalio.api.common.v1.message_pb2.Memo | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["upserted_memo", b"upserted_memo"] + self, field_name: typing.Literal["upserted_memo", b"upserted_memo"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["upserted_memo", b"upserted_memo"] + self, field_name: typing.Literal["upserted_memo", b"upserted_memo"] ) -> None: ... global___ModifyWorkflowProperties = ModifyWorkflowProperties +@typing.final class UpdateResponse(google.protobuf.message.Message): """A reply to a `DoUpdate` job - lang must run the update's validator if told to, and then immediately run the handler, if the update was accepted. @@ -1657,14 +1714,17 @@ class UpdateResponse(google.protobuf.message.Message): thus should be considered already-accepted, allowing lang to always send the same sequence on replay). """ + @property def rejected(self) -> temporalio.api.failure.v1.message_pb2.Failure: """Must be sent if the update's validator does not pass, or after acceptance if the update handler fails. """ + @property def completed(self) -> temporalio.api.common.v1.message_pb2.Payload: """Must be sent once the update handler completes successfully.""" + def __init__( self, *, @@ -1675,7 +1735,7 @@ class UpdateResponse(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "accepted", b"accepted", "completed", @@ -1688,7 +1748,7 @@ class UpdateResponse(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "accepted", b"accepted", "completed", @@ -1702,16 +1762,18 @@ class UpdateResponse(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["response", b"response"] - ) -> typing_extensions.Literal["accepted", "rejected", "completed"] | None: ... + self, oneof_group: typing.Literal["response", b"response"] + ) -> typing.Literal["accepted", "rejected", "completed"] | None: ... global___UpdateResponse = UpdateResponse +@typing.final class ScheduleNexusOperation(google.protobuf.message.Message): """A request to begin a Nexus operation""" DESCRIPTOR: google.protobuf.descriptor.Descriptor + @typing.final class NexusHeaderEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -1726,8 +1788,7 @@ class ScheduleNexusOperation(google.protobuf.message.Message): value: builtins.str = ..., ) -> None: ... def ClearField( - self, - field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + self, field_name: typing.Literal["key", b"key", "value", b"value"] ) -> None: ... SEQ_FIELD_NUMBER: builtins.int @@ -1748,6 +1809,10 @@ class ScheduleNexusOperation(google.protobuf.message.Message): """Service name.""" operation: builtins.str """Operation name.""" + cancellation_type: ( + temporalio.bridge.proto.nexus.nexus_pb2.NexusOperationCancellationType.ValueType + ) + """Defines behaviour of the underlying nexus operation when operation cancellation has been requested.""" @property def input(self) -> temporalio.api.common.v1.message_pb2.Payload: """Input for the operation. The server converts this into Nexus request content and the @@ -1755,12 +1820,14 @@ class ScheduleNexusOperation(google.protobuf.message.Message): handler side, if it is also backed by Temporal, the content is transformed back to the original Payload sent in this command. """ + @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-close timeout for this operation. Indicates how long the caller is willing to wait for operation completion. Calls are retried internally by the server. """ + @property def nexus_header( self, @@ -1772,10 +1839,7 @@ class ScheduleNexusOperation(google.protobuf.message.Message): activities and child workflows, these are transmitted to Nexus operations that may be external and are not traditional payloads. """ - cancellation_type: ( - temporalio.bridge.proto.nexus.nexus_pb2.NexusOperationCancellationType.ValueType - ) - """Defines behaviour of the underlying nexus operation when operation cancellation has been requested.""" + @property def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-start timeout for this operation. @@ -1784,6 +1848,7 @@ class ScheduleNexusOperation(google.protobuf.message.Message): TIMEOUT_TYPE_SCHEDULE_TO_START. If not set or zero, no schedule-to-start timeout is enforced. """ + @property def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Start-to-close timeout for this operation. @@ -1793,6 +1858,7 @@ class ScheduleNexusOperation(google.protobuf.message.Message): Only applies to asynchronous operations. Synchronous operations ignore this timeout. If not set or zero, no start-to-close timeout is enforced. """ + def __init__( self, *, @@ -1809,7 +1875,7 @@ class ScheduleNexusOperation(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "input", b"input", "schedule_to_close_timeout", @@ -1822,7 +1888,7 @@ class ScheduleNexusOperation(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "cancellation_type", b"cancellation_type", "endpoint", @@ -1848,6 +1914,7 @@ class ScheduleNexusOperation(google.protobuf.message.Message): global___ScheduleNexusOperation = ScheduleNexusOperation +@typing.final class RequestCancelNexusOperation(google.protobuf.message.Message): """Request cancellation of a nexus operation started via `ScheduleNexusOperation`""" @@ -1861,8 +1928,6 @@ class RequestCancelNexusOperation(google.protobuf.message.Message): *, seq: builtins.int = ..., ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["seq", b"seq"] - ) -> None: ... + def ClearField(self, field_name: typing.Literal["seq", b"seq"]) -> None: ... global___RequestCancelNexusOperation = RequestCancelNexusOperation diff --git a/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.py b/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.py index 057b301e4..d50863361 100644 --- a/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.py +++ b/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -34,45 +33,8 @@ b'\n?temporal/sdk/core/workflow_completion/workflow_completion.proto\x12\x1b\x63oresdk.workflow_completion\x1a%temporal/api/failure/v1/message.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/sdk/core/common/common.proto\x1a;temporal/sdk/core/workflow_commands/workflow_commands.proto"\xbe\x02\n\x1cWorkflowActivationCompletion\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12:\n\nsuccessful\x18\x02 \x01(\x0b\x32$.coresdk.workflow_completion.SuccessH\x00\x12\x36\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32$.coresdk.workflow_completion.FailureH\x00\x12H\n\x18payload_download_metrics\x18\x04 \x01(\x0b\x32&.coresdk.common.ExternalStorageMetrics\x12\x46\n\x16payload_upload_metrics\x18\x05 \x01(\x0b\x32&.coresdk.common.ExternalStorageMetricsB\x08\n\x06status"\xac\x01\n\x07Success\x12<\n\x08\x63ommands\x18\x01 \x03(\x0b\x32*.coresdk.workflow_commands.WorkflowCommand\x12\x1b\n\x13used_internal_flags\x18\x06 \x03(\r\x12\x46\n\x13versioning_behavior\x18\x07 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior"\x81\x01\n\x07\x46\x61ilure\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x43\n\x0b\x66orce_cause\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCauseB8\xea\x02\x35Temporalio::Internal::Bridge::Api::WorkflowCompletionb\x06proto3' ) - -_WORKFLOWACTIVATIONCOMPLETION = DESCRIPTOR.message_types_by_name[ - "WorkflowActivationCompletion" -] -_SUCCESS = DESCRIPTOR.message_types_by_name["Success"] -_FAILURE = DESCRIPTOR.message_types_by_name["Failure"] -WorkflowActivationCompletion = _reflection.GeneratedProtocolMessageType( - "WorkflowActivationCompletion", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWACTIVATIONCOMPLETION, - "__module__": "temporal.sdk.core.workflow_completion.workflow_completion_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_completion.WorkflowActivationCompletion) - }, -) -_sym_db.RegisterMessage(WorkflowActivationCompletion) - -Success = _reflection.GeneratedProtocolMessageType( - "Success", - (_message.Message,), - { - "DESCRIPTOR": _SUCCESS, - "__module__": "temporal.sdk.core.workflow_completion.workflow_completion_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_completion.Success) - }, -) -_sym_db.RegisterMessage(Success) - -Failure = _reflection.GeneratedProtocolMessageType( - "Failure", - (_message.Message,), - { - "DESCRIPTOR": _FAILURE, - "__module__": "temporal.sdk.core.workflow_completion.workflow_completion_pb2", - # @@protoc_insertion_point(class_scope:coresdk.workflow_completion.Failure) - }, -) -_sym_db.RegisterMessage(Failure) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = ( diff --git a/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.pyi b/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.pyi index 8e12736aa..46411d2fe 100644 --- a/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.pyi +++ b/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.pyi @@ -5,7 +5,7 @@ isort:skip_file import builtins import collections.abc -import sys +import typing import google.protobuf.descriptor import google.protobuf.internal.containers @@ -17,13 +17,9 @@ import temporalio.api.failure.v1.message_pb2 import temporalio.bridge.proto.common.common_pb2 import temporalio.bridge.proto.workflow_commands.workflow_commands_pb2 -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class WorkflowActivationCompletion(google.protobuf.message.Message): """Result of a single workflow activation, reported from lang to core""" @@ -47,6 +43,7 @@ class WorkflowActivationCompletion(google.protobuf.message.Message): """Metrics for external payload storage downloads (retrievals) performed while processing this activation. Only set when external storage retrieved payloads. """ + @property def payload_upload_metrics( self, @@ -54,6 +51,7 @@ class WorkflowActivationCompletion(google.protobuf.message.Message): """Metrics for external payload storage uploads (stores) performed while processing this activation. Only set when external storage stored payloads. """ + def __init__( self, *, @@ -67,7 +65,7 @@ class WorkflowActivationCompletion(google.protobuf.message.Message): ) -> None: ... def HasField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failed", b"failed", "payload_download_metrics", @@ -82,7 +80,7 @@ class WorkflowActivationCompletion(google.protobuf.message.Message): ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failed", b"failed", "payload_download_metrics", @@ -98,11 +96,12 @@ class WorkflowActivationCompletion(google.protobuf.message.Message): ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["status", b"status"] - ) -> typing_extensions.Literal["successful", "failed"] | None: ... + self, oneof_group: typing.Literal["status", b"status"] + ) -> typing.Literal["successful", "failed"] | None: ... global___WorkflowActivationCompletion = WorkflowActivationCompletion +@typing.final class Success(google.protobuf.message.Message): """Successful workflow activation with a list of commands generated by the workflow execution""" @@ -111,6 +110,10 @@ class Success(google.protobuf.message.Message): COMMANDS_FIELD_NUMBER: builtins.int USED_INTERNAL_FLAGS_FIELD_NUMBER: builtins.int VERSIONING_BEHAVIOR_FIELD_NUMBER: builtins.int + versioning_behavior: ( + temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType + ) + """The versioning behavior this workflow is currently using""" @property def commands( self, @@ -118,15 +121,13 @@ class Success(google.protobuf.message.Message): temporalio.bridge.proto.workflow_commands.workflow_commands_pb2.WorkflowCommand ]: """A list of commands to send back to the temporal server""" + @property def used_internal_flags( self, ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: """Any internal flags which the lang SDK used in the processing of this activation""" - versioning_behavior: ( - temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType - ) - """The versioning behavior this workflow is currently using""" + def __init__( self, *, @@ -139,7 +140,7 @@ class Success(google.protobuf.message.Message): ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "commands", b"commands", "used_internal_flags", @@ -151,6 +152,7 @@ class Success(google.protobuf.message.Message): global___Success = Success +@typing.final class Failure(google.protobuf.message.Message): """Failure to activate or execute a workflow""" @@ -158,12 +160,12 @@ class Failure(google.protobuf.message.Message): FAILURE_FIELD_NUMBER: builtins.int FORCE_CAUSE_FIELD_NUMBER: builtins.int - @property - def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... force_cause: ( temporalio.api.enums.v1.failed_cause_pb2.WorkflowTaskFailedCause.ValueType ) """Forces overriding the WFT failure cause""" + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... def __init__( self, *, @@ -171,11 +173,11 @@ class Failure(google.protobuf.message.Message): force_cause: temporalio.api.enums.v1.failed_cause_pb2.WorkflowTaskFailedCause.ValueType = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["failure", b"failure"] + self, field_name: typing.Literal["failure", b"failure"] ) -> builtins.bool: ... def ClearField( self, - field_name: typing_extensions.Literal[ + field_name: typing.Literal[ "failure", b"failure", "force_cause", b"force_cause" ], ) -> None: ... diff --git a/temporalio/bridge/sdk-core b/temporalio/bridge/sdk-core index b860e3f14..c675c3246 160000 --- a/temporalio/bridge/sdk-core +++ b/temporalio/bridge/sdk-core @@ -1 +1 @@ -Subproject commit b860e3f14f68af64bd4d0e372b3c78b2ce9ecff1 +Subproject commit c675c32469af707e1c979a7b808c70b4a0608b82 diff --git a/temporalio/bridge/src/client.rs b/temporalio/bridge/src/client.rs index c154d6a58..28b3bb37c 100644 --- a/temporalio/bridge/src/client.rs +++ b/temporalio/bridge/src/client.rs @@ -44,6 +44,7 @@ pub struct ClientConfig { tls_config: Option, retry_config: Option, keep_alive_config: Option, + connect_timeout_millis: Option, http_connect_proxy_config: Option, dns_load_balancing_config: Option, grpc_compression: String, @@ -277,6 +278,7 @@ impl ClientConfig { .map_or(RetryOptions::default(), |c| c.into()), ) .keep_alive(self.keep_alive_config.map(Into::into)) + .maybe_connect_timeout(self.connect_timeout_millis.map(Duration::from_millis)) .maybe_http_connect_proxy(self.http_connect_proxy_config.map(Into::into)) .dns_load_balancing(dns_load_balancing) .grpc_compression(grpc_compression_from_str(&self.grpc_compression)?) diff --git a/temporalio/bridge/src/envconfig.rs b/temporalio/bridge/src/envconfig.rs index 7ce2f4664..a21bb935a 100644 --- a/temporalio/bridge/src/envconfig.rs +++ b/temporalio/bridge/src/envconfig.rs @@ -1,12 +1,12 @@ use pyo3::prelude::*; use pyo3::{ exceptions::PyRuntimeError, - types::{PyBytes, PyDict}, + types::{PyBytes, PyDict, PyList}, }; use std::collections::HashMap; use temporalio_common::envconfig::{ load_client_config as core_load_client_config, - load_client_config_profile as core_load_client_config_profile, + load_client_config_profile as core_load_client_config_profile, toml, ClientConfig as CoreClientConfig, ClientConfigCodec, ClientConfigProfile as CoreClientConfigProfile, ClientConfigTLS as CoreClientConfigTLS, DataSource, LoadClientConfigOptions, LoadClientConfigProfileOptions, @@ -19,6 +19,11 @@ fn data_source_to_dict(py: Python, ds: &DataSource) -> PyResult> { match ds { DataSource::Path(p) => dict.set_item("path", p)?, DataSource::Data(d) => dict.set_item("data", PyBytes::new(py, d))?, + _ => { + return Err(PyRuntimeError::new_err( + "unsupported configuration data source", + )) + } }; Ok(dict.into()) } @@ -73,9 +78,81 @@ fn profile_to_dict(py: Python, profile: &CoreClientConfigProfile) -> PyResult PyResult> { + let dict = PyDict::new(py); + for (k, v) in table { + dict.set_item(k, toml_value_to_py(py, v)?)?; + } Ok(dict.into()) } +// Values are converted the same way as by Python's tomllib. +fn toml_value_to_py(py: Python, value: &toml::Value) -> PyResult> { + Ok(match value { + toml::Value::String(s) => s.into_pyobject(py)?.into_any().unbind(), + toml::Value::Integer(i) => i.into_pyobject(py)?.into_any().unbind(), + toml::Value::Float(f) => f.into_pyobject(py)?.into_any().unbind(), + toml::Value::Boolean(b) => b.into_pyobject(py)?.to_owned().into_any().unbind(), + toml::Value::Datetime(dt) => toml_datetime_to_py(py, dt)?, + toml::Value::Array(a) => { + let list = PyList::empty(py); + for v in a { + list.append(toml_value_to_py(py, v)?)?; + } + list.into_any().unbind() + } + toml::Value::Table(t) => toml_table_to_py(py, t)?, + }) +} + +// Offset datetimes become aware datetimes, local datetimes become naive datetimes, local dates +// become dates, and local times become times. Fractional seconds are truncated to microseconds. +// Built via the datetime module since the datetime C API isn't part of the limited API. +fn toml_datetime_to_py(py: Python, dt: &toml::value::Datetime) -> PyResult> { + let datetime = py.import("datetime")?; + let time = dt.time.map(|t| { + ( + t.hour, + t.minute, + t.second.unwrap_or(0), + t.nanosecond.unwrap_or(0) / 1000, + ) + }); + let obj = match (dt.date, time) { + (Some(d), Some((hour, minute, second, micros))) => { + let tz = match dt.offset { + None => py.None().into_bound(py), + Some(toml::value::Offset::Z) => datetime.getattr("timezone")?.getattr("utc")?, + Some(toml::value::Offset::Custom { minutes }) => { + let delta = datetime + .getattr("timedelta")? + .call1((0, i32::from(minutes) * 60))?; + datetime.getattr("timezone")?.call1((delta,))? + } + }; + datetime + .getattr("datetime")? + .call1((d.year, d.month, d.day, hour, minute, second, micros, tz))? + } + (Some(d), None) => datetime.getattr("date")?.call1((d.year, d.month, d.day))?, + (None, Some((hour, minute, second, micros))) => datetime + .getattr("time")? + .call1((hour, minute, second, micros))?, + (None, None) => return Err(PyRuntimeError::new_err("empty TOML datetime")), + }; + Ok(obj.unbind()) +} + fn core_config_to_dict(py: Python, core_config: &CoreClientConfig) -> PyResult> { let profiles_dict = PyDict::new(py); for (name, profile) in &core_config.profiles { diff --git a/temporalio/bridge/src/runtime.rs b/temporalio/bridge/src/runtime.rs index c8fca51e5..b5d70df08 100644 --- a/temporalio/bridge/src/runtime.rs +++ b/temporalio/bridge/src/runtime.rs @@ -33,11 +33,30 @@ pub struct RuntimeRef { #[derive(Clone)] pub(crate) struct Runtime { pub(crate) pid: u32, - pub(crate) core: Arc, + pub(crate) core: Arc, metrics_call_buffer: Option>>, log_forwarder_handle: Option>>, } +/// Owns the Core runtime so the last runtime clone can shut it down with the GIL released. +/// Shutting down waits for running Tokio tasks, and the log forwarder may be one of them, +/// waiting for the GIL. +pub(crate) struct CoreRuntimeHandle(Option); + +impl std::ops::Deref for CoreRuntimeHandle { + type Target = CoreRuntime; + + fn deref(&self) -> &CoreRuntime { + self.0.as_ref().expect("Core runtime used after drop") + } +} + +impl Drop for CoreRuntimeHandle { + fn drop(&mut self) { + let _ = Python::try_attach(|py| py.detach(|| drop(self.0.take()))); + } +} + #[derive(FromPyObject)] pub struct TelemetryConfig { logging: Option, @@ -199,7 +218,7 @@ pub fn init_runtime(options: RuntimeOptions) -> PyResult { Ok(RuntimeRef { runtime: Runtime { pid: std::process::id(), - core: Arc::new(core), + core: Arc::new(CoreRuntimeHandle(Some(core))), metrics_call_buffer, log_forwarder_handle, }, @@ -239,8 +258,9 @@ impl Runtime { impl Drop for Runtime { fn drop(&mut self) { - // Stop the log forwarder - if let Some(handle) = self.log_forwarder_handle.as_ref() { + // Clients and workers each hold a clone of the runtime, so only stop the + // log forwarder when the last clone is dropped + if let Some(handle) = self.log_forwarder_handle.take().and_then(Arc::into_inner) { handle.abort(); } } diff --git a/temporalio/bridge/src/testing.rs b/temporalio/bridge/src/testing.rs index 33f2be74f..b0c72b709 100644 --- a/temporalio/bridge/src/testing.rs +++ b/temporalio/bridge/src/testing.rs @@ -29,6 +29,7 @@ pub struct DevServerConfig { log_format: String, log_level: String, extra_args: Vec, + startup_timeout_ms: Option, } #[derive(FromPyObject)] @@ -41,6 +42,7 @@ pub struct TestServerConfig { download_ttl_ms: Option, port: Option, extra_args: Vec, + startup_timeout_ms: Option, } pub fn start_dev_server<'a>( @@ -137,6 +139,7 @@ impl From for ephemeral_server::TemporalDevServerConfig { .maybe_ui_port(conf.ui_port) .log((conf.log_format, conf.log_level)) .extra_args(conf.extra_args) + .maybe_startup_timeout(conf.startup_timeout_ms.map(Duration::from_millis)) .build() } } @@ -162,6 +165,7 @@ impl From for ephemeral_server::TestServerConfig { }) .maybe_port(conf.port) .extra_args(conf.extra_args) + .maybe_startup_timeout(conf.startup_timeout_ms.map(Duration::from_millis)) .build() } } diff --git a/temporalio/bridge/src/worker.rs b/temporalio/bridge/src/worker.rs index 321dc6560..39cdc5e77 100644 --- a/temporalio/bridge/src/worker.rs +++ b/temporalio/bridge/src/worker.rs @@ -48,9 +48,9 @@ pub struct WorkerConfig { identity_override: Option, max_cached_workflows: usize, tuner: TunerHolder, - workflow_task_poller_behavior: PollerBehavior, + workflow_task_poller_behavior: Option, nonsticky_to_sticky_poll_ratio: f32, - activity_task_poller_behavior: PollerBehavior, + activity_task_poller_behavior: Option, task_types: WorkerTaskTypes, sticky_queue_schedule_to_start_timeout_millis: u64, max_heartbeat_throttle_interval_millis: u64, @@ -61,8 +61,8 @@ pub struct WorkerConfig { graceful_shutdown_period_millis: u64, nondeterminism_as_workflow_fail: bool, nondeterminism_as_workflow_fail_for_types: HashSet, - nexus_task_poller_behavior: PollerBehavior, - plugins: Vec, + nexus_task_poller_behavior: Option, + plugins: Vec<(String, String)>, storage_drivers: HashSet, disable_payload_error_limit: bool, } @@ -724,10 +724,10 @@ fn convert_worker_config( .versioning_strategy(converted_versioning_strategy) .maybe_client_identity_override(conf.identity_override) .max_cached_workflows(conf.max_cached_workflows) - .workflow_task_poller_behavior(conf.workflow_task_poller_behavior.into()) + .maybe_workflow_task_poller_behavior(conf.workflow_task_poller_behavior.map(Into::into)) .tuner(Arc::new(converted_tuner)) .nonsticky_to_sticky_poll_ratio(conf.nonsticky_to_sticky_poll_ratio) - .activity_task_poller_behavior(conf.activity_task_poller_behavior.into()) + .maybe_activity_task_poller_behavior(conf.activity_task_poller_behavior.map(Into::into)) .task_types(conf.task_types.into()) .sticky_queue_schedule_to_start_timeout(Duration::from_millis( conf.sticky_queue_schedule_to_start_timeout_millis, @@ -763,14 +763,11 @@ fn convert_worker_config( }) .collect(), ) - .nexus_task_poller_behavior(conf.nexus_task_poller_behavior.into()) + .maybe_nexus_task_poller_behavior(conf.nexus_task_poller_behavior.map(Into::into)) .plugins( conf.plugins .into_iter() - .map(|name| PluginInfo { - name, - version: String::new(), - }) + .map(|(name, version)| PluginInfo { name, version }) .collect(), ) .storage_drivers( @@ -900,10 +897,10 @@ fn convert_versioning_strategy( WorkerVersioningStrategy::DeploymentBased(options) => { temporalio_sdk_core::WorkerVersioningStrategy::WorkerDeploymentBased( temporalio_common::worker::WorkerDeploymentOptions::new( - temporalio_common::worker::WorkerDeploymentVersion { - deployment_name: options.version.deployment_name, - build_id: options.version.build_id, - }, + temporalio_common::worker::WorkerDeploymentVersion::builder() + .deployment_name(options.version.deployment_name) + .build_id(options.version.build_id) + .build(), ) .use_worker_versioning(options.use_worker_versioning) .maybe_default_versioning_behavior(if options.use_worker_versioning { diff --git a/temporalio/bridge/testing.py b/temporalio/bridge/testing.py index e428a33b2..1998dd6b3 100644 --- a/temporalio/bridge/testing.py +++ b/temporalio/bridge/testing.py @@ -31,6 +31,7 @@ class DevServerConfig: log_format: str log_level: str extra_args: Sequence[str] + startup_timeout_ms: int | None @dataclass @@ -45,6 +46,7 @@ class TestServerConfig: download_ttl_ms: int | None port: int | None extra_args: Sequence[str] + startup_timeout_ms: int | None class EphemeralServer: diff --git a/temporalio/bridge/worker.py b/temporalio/bridge/worker.py index 4b7f55d09..fa5f337ca 100644 --- a/temporalio/bridge/worker.py +++ b/temporalio/bridge/worker.py @@ -42,9 +42,9 @@ class WorkerConfig: identity_override: str | None max_cached_workflows: int tuner: TunerHolder - workflow_task_poller_behavior: PollerBehavior + workflow_task_poller_behavior: PollerBehavior | None nonsticky_to_sticky_poll_ratio: float - activity_task_poller_behavior: PollerBehavior + activity_task_poller_behavior: PollerBehavior | None no_remote_activities: bool task_types: WorkerTaskTypes sticky_queue_schedule_to_start_timeout_millis: int @@ -56,8 +56,8 @@ class WorkerConfig: graceful_shutdown_period_millis: int nondeterminism_as_workflow_fail: bool nondeterminism_as_workflow_fail_for_types: set[str] - nexus_task_poller_behavior: PollerBehavior - plugins: Sequence[str] + nexus_task_poller_behavior: PollerBehavior | None + plugins: Sequence[tuple[str, str]] storage_drivers: set[str] disable_payload_error_limit: bool @@ -315,6 +315,11 @@ async def decode_activation( Returns: Metrics from any external storage retrieval operations that occurred. """ + await CommandAwarePayloadVisitor( + skip_search_attributes=True, + skip_headers=not decode_headers, + ).visit(_Visitor(data_converter._decode_reference_payload_sequence), activation) + metrics = temporalio.converter._extstore.StorageOperationMetrics() with metrics.track(): await CommandAwarePayloadVisitor( @@ -325,10 +330,11 @@ async def decode_activation( _Visitor(data_converter._external_retrieve_payload_sequence), activation ) - await CommandAwarePayloadVisitor( - skip_search_attributes=True, - skip_headers=not decode_headers, - ).visit(_Visitor(data_converter._decode_payload_sequence), activation) + if data_converter.payload_codec: + await CommandAwarePayloadVisitor( + skip_search_attributes=True, + skip_headers=not decode_headers, + ).visit(_Visitor(data_converter._decode_payload_sequence), activation) return metrics @@ -344,6 +350,10 @@ async def encode_completion( Returns: Metrics from any external storage store operations that occurred. """ + metrics = temporalio.converter._extstore.StorageOperationMetrics() + if not data_converter._has_codec_or_external_storage: + return metrics + await CommandAwarePayloadVisitor( skip_search_attributes=True, skip_headers=not encode_headers, @@ -352,15 +362,23 @@ async def encode_completion( completion, ) - metrics = temporalio.converter._extstore.StorageOperationMetrics() - with metrics.track(): - await CommandAwarePayloadVisitor( - skip_search_attributes=True, - skip_headers=not encode_headers, - concurrency_limit=storage_concurrency_limit, - ).visit( - _Visitor(data_converter._external_store_payload_sequence), - completion, - ) + if data_converter.external_storage: + with metrics.track(): + await CommandAwarePayloadVisitor( + skip_search_attributes=True, + skip_headers=not encode_headers, + concurrency_limit=storage_concurrency_limit, + ).visit( + _Visitor(data_converter._external_store_payload_sequence), + completion, + ) + + await CommandAwarePayloadVisitor( + skip_search_attributes=True, + skip_headers=not encode_headers, + ).visit( + _Visitor(data_converter._encode_reference_payload_sequence), + completion, + ) return metrics diff --git a/temporalio/client/__init__.py b/temporalio/client/__init__.py index cdb34b860..2eef41a39 100644 --- a/temporalio/client/__init__.py +++ b/temporalio/client/__init__.py @@ -8,6 +8,7 @@ DataConverter, SerializationContext, StorageDriverActivityInfo, + StorageDriverSelectContext, StorageDriverStoreContext, StorageDriverWorkflowInfo, WithSerializationContext, @@ -50,8 +51,12 @@ ActivityExecutionCount, ActivityExecutionCountAggregationGroup, ActivityExecutionDescription, + ActivityExecutionOptions, ActivityExecutionStatus, ActivityHandle, + ActivityOptionsKey, + ActivityOptionsKeys, + ActivityOptionsUpdate, AsyncActivityHandle, AsyncActivityIDReference, PendingActivityState, @@ -116,6 +121,7 @@ ListSchedulesInput, ListWorkflowsInput, OutboundInterceptor, + PauseActivityInput, PauseScheduleInput, QueryWorkflowInput, ReportCancellationAsyncActivityInput, @@ -129,7 +135,9 @@ TerminateNexusOperationInput, TerminateWorkflowInput, TriggerScheduleInput, + UnpauseActivityInput, UnpauseScheduleInput, + UpdateActivityOptionsInput, UpdateScheduleInput, UpdateWithStartStartWorkflowInput, UpdateWithStartUpdateWorkflowInput, @@ -226,6 +234,10 @@ "ActivityExecutionAsyncIterator", "ActivityExecution", "ActivityExecutionDescription", + "ActivityExecutionOptions", + "ActivityOptionsKey", + "ActivityOptionsKeys", + "ActivityOptionsUpdate", "ActivityExecutionStatus", "PendingActivityState", "ActivityExecutionCount", @@ -291,6 +303,9 @@ "CancelActivityInput", "TerminateActivityInput", "DescribeActivityInput", + "PauseActivityInput", + "UpdateActivityOptionsInput", + "UnpauseActivityInput", "ListActivitiesInput", "CountActivitiesInput", "StartNexusOperationInput", @@ -351,6 +366,7 @@ "DataConverter", "SerializationContext", "StorageDriverActivityInfo", + "StorageDriverSelectContext", "StorageDriverStoreContext", "StorageDriverWorkflowInfo", "WithSerializationContext", diff --git a/temporalio/client/_activity.py b/temporalio/client/_activity.py index 138d09dc7..92f0d75de 100644 --- a/temporalio/client/_activity.py +++ b/temporalio/client/_activity.py @@ -9,14 +9,14 @@ Mapping, Sequence, ) -from dataclasses import dataclass +from dataclasses import dataclass, field from datetime import datetime, timedelta, timezone from enum import IntEnum from typing import ( TYPE_CHECKING, Any, Generic, - cast, + TypeVar, ) from typing_extensions import Self @@ -28,6 +28,7 @@ import temporalio.common import temporalio.converter import temporalio.converter._search_attributes +import temporalio.converter._serialization_context from temporalio.converter import ( ActivitySerializationContext, DataConverter, @@ -49,8 +50,11 @@ DescribeActivityInput, FailAsyncActivityInput, HeartbeatAsyncActivityInput, + PauseActivityInput, ReportCancellationAsyncActivityInput, TerminateActivityInput, + UnpauseActivityInput, + UpdateActivityOptionsInput, ) if TYPE_CHECKING: @@ -62,9 +66,6 @@ class ActivityExecutionAsyncIterator: """Asynchronous iterator for activity execution values. You should typically use ``async for`` on this iterator and not call any of its methods. - - .. warning:: - This API is experimental. """ def __init__( @@ -163,13 +164,9 @@ async def __anext__(self) -> ActivityExecution: return ret -@dataclass(frozen=True) +@dataclass(frozen=True, eq=False, kw_only=True) class ActivityExecution: - """Info for an activity execution not started by a workflow, from list response. - - .. warning:: - This API is experimental. - """ + """Info for an activity execution not started by a workflow, from list response.""" activity_id: str """Activity ID.""" @@ -184,23 +181,17 @@ class ActivityExecution: """Time the activity reached a terminal status, if closed.""" execution_duration: timedelta | None - """Duration from scheduled to close time, only populated if closed.""" + """Duration from schedule to close time, only populated if closed.""" + + execution_time: datetime | None + """The time at which the first activity task is made available for dispatch, computed as schedule time + start delay.""" namespace: str """Namespace of the activity (copied from calling client).""" - raw_info: ( - temporalio.api.activity.v1.ActivityExecutionListInfo - | temporalio.api.activity.v1.ActivityExecutionInfo - ) - """Underlying protobuf info.""" - - scheduled_time: datetime + schedule_time: datetime """Time the activity was originally scheduled.""" - state_transition_count: int | None - """Number of state transitions, if available.""" - status: ActivityExecutionStatus """Current status of the activity.""" @@ -210,17 +201,28 @@ class ActivityExecution: typed_search_attributes: temporalio.common.TypedSearchAttributes """Current set of search attributes if any.""" + raw_info: ( + temporalio.api.activity.v1.ActivityExecutionListInfo + | temporalio.api.activity.v1.ActivityExecutionInfo + ) = field(repr=False) + """Underlying protobuf info.""" + @classmethod def _from_raw_info( - cls, info: temporalio.api.activity.v1.ActivityExecutionListInfo, namespace: str + cls, + info: ( + temporalio.api.activity.v1.ActivityExecutionListInfo + | temporalio.api.activity.v1.ActivityExecutionInfo + ), + namespace: str, + **kwargs: Any, ) -> Self: """Create from raw proto activity list info.""" return cls( + raw_info=info, activity_id=info.activity_id, activity_run_id=info.run_id or None, - activity_type=( - info.activity_type.name if info.HasField("activity_type") else "" - ), + activity_type=info.activity_type.name, close_time=( info.close_time.ToDatetime().replace(tzinfo=timezone.utc) if info.HasField("close_time") @@ -231,16 +233,17 @@ def _from_raw_info( if info.HasField("execution_duration") else None ), + execution_time=( + info.execution_time.ToDatetime().replace(tzinfo=timezone.utc) + if info.HasField("execution_time") + else None + ), namespace=namespace, - raw_info=info, - scheduled_time=( + schedule_time=( info.schedule_time.ToDatetime().replace(tzinfo=timezone.utc) if info.HasField("schedule_time") else datetime.min ), - state_transition_count=( - info.state_transition_count if info.state_transition_count else None - ), status=( ActivityExecutionStatus(info.status) if info.status @@ -250,16 +253,13 @@ def _from_raw_info( typed_search_attributes=temporalio.converter.decode_typed_search_attributes( info.search_attributes ), + **kwargs, ) -@dataclass(frozen=True) +@dataclass(frozen=True, eq=False, kw_only=True) class ActivityExecutionDescription(ActivityExecution): - """Detailed information about an activity execution not started by a workflow. - - .. warning:: - This API is experimental. - """ + """Detailed information about an activity execution not started by a workflow.""" attempt: int """Current attempt number.""" @@ -267,20 +267,23 @@ class ActivityExecutionDescription(ActivityExecution): canceled_reason: str | None """Reason for cancellation, if cancel was requested.""" + close_time: datetime | None + """Time when the activity transitioned to a closed state.""" + current_retry_interval: timedelta | None """Time until the next retry, if applicable.""" - eager_execution_requested: bool - """Whether eager execution was requested for this activity.""" + expiration_time: datetime | None + """The time at which the activity's schedule-to-close timeout expires.""" - expiration_time: datetime - """Scheduled time plus schedule_to_close_timeout.""" + heartbeat_timeout: timedelta | None + """Configured heartbeat timeout of the activity.""" last_attempt_complete_time: datetime | None """Time when the last attempt completed.""" - last_failure: Exception | None - """Failure from the last failed attempt, if any.""" + last_deployment_version: temporalio.common.WorkerDeploymentVersion | None + """The Worker Deployment Version this activity was dispatched to most recently.""" last_heartbeat_time: datetime | None """Time of the last heartbeat.""" @@ -288,17 +291,14 @@ class ActivityExecutionDescription(ActivityExecution): last_started_time: datetime | None """Time the last attempt was started.""" - last_worker_identity: str + last_worker_identity: str | None """Identity of the last worker that processed the activity.""" next_attempt_schedule_time: datetime | None """Time when the next attempt will be scheduled.""" - paused: bool - """Whether the activity is paused.""" - - raw_heartbeat_details: Sequence[temporalio.api.common.v1.Payload] - """Details from the last heartbeat.""" + priority: temporalio.common.Priority + """Priority metadata.""" retry_policy: temporalio.common.RetryPolicy | None """Retry policy for the activity.""" @@ -306,123 +306,269 @@ class ActivityExecutionDescription(ActivityExecution): run_state: PendingActivityState | None """More detailed breakdown if status is RUNNING.""" - long_poll_token: bytes | None - """Token for follow-on long-poll requests. None if the activity is complete.""" + schedule_to_close_timeout: timedelta | None + """Configured schedule-to-close timeout of the activity.""" + + schedule_to_start_timeout: timedelta | None + """Configured schedule-to-start timeout of the activity.""" + + start_to_close_timeout: timedelta | None + """Configured start-to-close timeout of the activity.""" + + start_delay: timedelta | None + """Time to wait before making the first activity task available for dispatch.""" + + total_heartbeat_count: int + """Total number of heartbeats recorded across all attempts of this activity, including retries. - raw_callbacks: Sequence[temporalio.api.activity.v1.CallbackInfo] + Zero if the activity has not sent any heartbeats or if the server didn't report heartbeat count. + """ + + raw_info: temporalio.api.activity.v1.ActivityExecutionInfo = field(repr=False) + """Underlying protobuf info.""" + + raw_callbacks: Sequence[temporalio.api.activity.v1.CallbackInfo] = field(repr=False) """Underlying protobuf callbacks""" + raw_input: temporalio.api.common.v1.Payloads | None = field(repr=False) + """Raw input of the activity. Use `input` to decode.""" + + raw_outcome: temporalio.api.activity.v1.ActivityExecutionOutcome | None = field( + repr=False + ) + """Raw outcome of the activity. Use :py:meth:`result` or :py:meth:`outcome_failure` to decode.""" + + data_converter: DataConverter = field(repr=False) + """Data converter used to convert raw payloads. By default it's the same as the client's data converter.""" + @classmethod - async def _from_execution_info( + def _from_resp( cls, - info: temporalio.api.activity.v1.ActivityExecutionInfo, - long_poll_token: bytes | None, + resp: temporalio.api.workflowservice.v1.DescribeActivityExecutionResponse, namespace: str, data_converter: temporalio.converter.DataConverter, - callbacks: Sequence[temporalio.api.activity.v1.CallbackInfo], + **kwargs: Any, ) -> Self: """Create from raw proto activity execution info.""" - # Decode heartbeat details if present - decoded_heartbeat_details: Sequence[temporalio.api.common.v1.Payload] = ( - info.heartbeat_details.payloads - ) - if decoded_heartbeat_details and data_converter.payload_codec: - decoded_heartbeat_details = await data_converter.payload_codec.decode( - decoded_heartbeat_details - ) - - return cls( - activity_id=info.activity_id, - activity_run_id=info.run_id or None, - activity_type=( - info.activity_type.name if info.HasField("activity_type") else "" - ), - attempt=info.attempt, - canceled_reason=info.canceled_reason or None, - close_time=( - info.close_time.ToDatetime(tzinfo=timezone.utc) - if info.HasField("close_time") - else None - ), + return cls._from_raw_info( + info=resp.info, + namespace=namespace, + attempt=resp.info.attempt, + canceled_reason=resp.info.canceled_reason or None, current_retry_interval=( - info.current_retry_interval.ToTimedelta() - if info.HasField("current_retry_interval") + resp.info.current_retry_interval.ToTimedelta() + if resp.info.HasField("current_retry_interval") else None ), - eager_execution_requested=getattr(info, "eager_execution_requested", False), - execution_duration=( - info.execution_duration.ToTimedelta() - if info.HasField("execution_duration") + expiration_time=( + resp.info.expiration_time.ToDatetime(tzinfo=timezone.utc) + if resp.info.HasField("expiration_time") else None ), - expiration_time=( - info.expiration_time.ToDatetime(tzinfo=timezone.utc) - if info.HasField("expiration_time") - else datetime.min + heartbeat_timeout=( + resp.info.heartbeat_timeout.ToTimedelta() + if resp.info.HasField("heartbeat_timeout") + else None ), last_attempt_complete_time=( - info.last_attempt_complete_time.ToDatetime(tzinfo=timezone.utc) - if info.HasField("last_attempt_complete_time") + resp.info.last_attempt_complete_time.ToDatetime(tzinfo=timezone.utc) + if resp.info.HasField("last_attempt_complete_time") else None ), - last_failure=( - cast( - Exception | None, - await data_converter.decode_failure(info.last_failure), + last_deployment_version=( + temporalio.common.WorkerDeploymentVersion( + deployment_name=resp.info.last_deployment_version.deployment_name, + build_id=resp.info.last_deployment_version.build_id, ) - if info.HasField("last_failure") + if resp.info.HasField("last_deployment_version") else None ), last_heartbeat_time=( - info.last_heartbeat_time.ToDatetime(tzinfo=timezone.utc) - if info.HasField("last_heartbeat_time") + resp.info.last_heartbeat_time.ToDatetime(tzinfo=timezone.utc) + if resp.info.HasField("last_heartbeat_time") else None ), last_started_time=( - info.last_started_time.ToDatetime(tzinfo=timezone.utc) - if info.HasField("last_started_time") + resp.info.last_started_time.ToDatetime(tzinfo=timezone.utc) + if resp.info.HasField("last_started_time") else None ), - last_worker_identity=info.last_worker_identity, - long_poll_token=long_poll_token or None, - namespace=namespace, + last_worker_identity=resp.info.last_worker_identity or None, next_attempt_schedule_time=( - info.next_attempt_schedule_time.ToDatetime(tzinfo=timezone.utc) - if info.HasField("next_attempt_schedule_time") + resp.info.next_attempt_schedule_time.ToDatetime(tzinfo=timezone.utc) + if resp.info.HasField("next_attempt_schedule_time") + else None + ), + priority=temporalio.common.Priority._from_proto(resp.info.priority), + retry_policy=( + temporalio.common.RetryPolicy.from_proto(resp.info.retry_policy) + if resp.info.HasField("retry_policy") else None ), - paused=getattr(info, "paused", False), - raw_heartbeat_details=decoded_heartbeat_details, - raw_info=info, - retry_policy=temporalio.common.RetryPolicy.from_proto(info.retry_policy) - if info.HasField("retry_policy") - else None, run_state=( - PendingActivityState(info.run_state) if info.run_state else None + PendingActivityState(resp.info.run_state) + if resp.info.run_state + else None ), - scheduled_time=(info.schedule_time.ToDatetime(tzinfo=timezone.utc)), - state_transition_count=( - info.state_transition_count if info.state_transition_count else None + schedule_to_close_timeout=( + resp.info.schedule_to_close_timeout.ToTimedelta() + if resp.info.HasField("schedule_to_close_timeout") + else None ), - status=( - ActivityExecutionStatus(info.status) - if info.status - else ActivityExecutionStatus.UNSPECIFIED + schedule_to_start_timeout=( + resp.info.schedule_to_start_timeout.ToTimedelta() + if resp.info.HasField("schedule_to_start_timeout") + else None ), - task_queue=info.task_queue, - typed_search_attributes=temporalio.converter.decode_typed_search_attributes( - info.search_attributes + start_to_close_timeout=( + resp.info.start_to_close_timeout.ToTimedelta() + if resp.info.HasField("start_to_close_timeout") + else None ), - raw_callbacks=callbacks, + start_delay=( + resp.info.start_delay.ToTimedelta() + if resp.info.HasField("start_delay") + else None + ), + total_heartbeat_count=resp.info.total_heartbeat_count, + raw_callbacks=resp.callbacks, + raw_input=resp.input if resp.HasField("input") else None, + raw_outcome=resp.outcome if resp.HasField("outcome") else None, + data_converter=data_converter, + **kwargs, + ) + + @functools.cached_property + def _caller_facing_data_converter(self) -> DataConverter: + # An activity started by a Nexus operation handler encodes its result, failures and + # heartbeat details with the handler's Nexus context, which the server returns with the + # activity info. Its input keeps the activity context. + context = temporalio.converter._serialization_context._propagated_nexus_serialization_context( + self.raw_info + ) + if context is None: + return self.data_converter + return self.data_converter.with_context(context) + + def has_heartbeat_details(self) -> bool: + """True if heartbeat details are available. Use `heartbeat_details` to retrieve them. + + Always false if `include_heartbeat_details` was false in the `ActivityHandle.describe` call. + """ + return self.raw_info.HasField("heartbeat_details") + + async def heartbeat_details( + self, type_hints: list[type] | None = None + ) -> list[Any] | None: + """Returns details from the last heartbeat, or `None` if not available. + + Always `None` if ``include_heartbeat_details`` was false in the `ActivityHandle.describe` call. + Type hints can be provided to aid data conversion. + """ + return ( + await self._caller_facing_data_converter.decode_wrapper( + self.raw_info.heartbeat_details, type_hints + ) + if self.has_heartbeat_details() + else None + ) + + def has_last_failure(self) -> bool: + """True if last failure is available. Use `last_failure` to retrieve it. + + Always false if ``include_last_failure`` was false in the `ActivityHandle.describe` call. + """ + return self.raw_info.HasField("last_failure") + + async def last_failure(self) -> BaseException | None: + """Returns failure from the last failed attempt, or `None` if not available. + + Always `None` if ``include_last_failure`` was false in the `ActivityHandle.describe` call. + """ + return ( + await self._caller_facing_data_converter.decode_failure( + self.raw_info.last_failure + ) + if self.has_last_failure() + else None + ) + + def has_input(self) -> bool: + """True if activity input is available. Use `input ` to retrieve it. + + Always false if ``include_input`` was false in the `ActivityHandle.describe` call. + """ + return self.raw_input is not None + + async def input(self, type_hints: list[type] | None = None) -> list[Any] | None: + """Returns activity input, or `None` if not available. + + Always `None` if ``include_input`` was false in the `ActivityHandle.describe` call. + Type hints can be provided to aid data conversion. + """ + return ( + await self.data_converter.decode_wrapper(self.raw_input, type_hints) + if self.has_input() + else None + ) + + def has_result(self) -> bool: + """True if activity result is available. Use `result` to retrieve it. + + Activity result is only available if the activity has completed and was successful. + Always false if `include_outcome` was false in the `ActivityHandle.describe` call. + """ + return self.raw_outcome is not None and self.raw_outcome.HasField("result") + + async def result(self, type_hint: type | None = None) -> Any | None: + """Returns activity result, or `None` if not available. + + Activity result is only available if the activity has completed successfully. + Always false if ``include_outcome`` was false in the `ActivityHandle.describe` call. + Type hints can be provided to aid data conversion. + """ + if self.raw_outcome is None or not self.raw_outcome.HasField("result"): + return None + type_hints = [type_hint] if type_hint is not None else None + results = await self._caller_facing_data_converter.decode_wrapper( + self.raw_outcome.result, type_hints + ) + if not results: + return None + if len(results) > 1: + warnings.warn(f"Expected single activity result, got {len(results)}") + return results[0] + + def has_outcome_failure(self) -> bool: + """True if activity outcome failure is available. Use `outcome_failure` to retrieve it. + + Activity outcome failure is only available if the activity has closed with a failure. + Use `last_failure` to retrieve failure of the most recent failed attempt of an activity that's still running or + that completed successfully. + Always false if ``include_outcome`` was false in the `ActivityHandle.describe` call. + """ + return self.raw_outcome is not None and self.raw_outcome.HasField("failure") + + async def outcome_failure(self) -> BaseException | None: + """Returns activity outcome failure, or `None` if not available. + + Activity outcome failure is only available if the activity has closed with a failure. + Use `last_failure` to retrieve failure of the most recent failed attempt of an activity that's still running or + that completed successfully. + Always false if ``include_outcome`` was false in the `ActivityHandle.describe` call. + """ + return ( + await self._caller_facing_data_converter.decode_failure( + self.raw_outcome.failure + ) + if self.raw_outcome is not None and self.raw_outcome.HasField("failure") + else None ) class ActivityExecutionStatus(IntEnum): """Status of an activity execution. - .. warning:: - This API is experimental. - See :py:class:`temporalio.api.enums.v1.ActivityExecutionStatus`. """ @@ -447,14 +593,14 @@ class ActivityExecutionStatus(IntEnum): TIMED_OUT = int( temporalio.api.enums.v1.ActivityExecutionStatus.ACTIVITY_EXECUTION_STATUS_TIMED_OUT ) + PAUSED = int( + temporalio.api.enums.v1.ActivityExecutionStatus.ACTIVITY_EXECUTION_STATUS_PAUSED + ) class PendingActivityState(IntEnum): """Detailed state of an activity execution that is in ACTIVITY_EXECUTION_STATUS_RUNNING. - .. warning:: - This API is experimental. - See :py:class:`temporalio.api.enums.v1.PendingActivityState`. """ @@ -478,14 +624,166 @@ class PendingActivityState(IntEnum): ) +ActivityOptionValueType = TypeVar("ActivityOptionValueType") + + @dataclass(frozen=True) -class ActivityExecutionCount: - """Representation of a count from a count activities call. +class ActivityOptionsKey(Generic[ActivityOptionValueType]): + """Typed key for one updatable activity option. + + Use the keys on :py:class:`ActivityOptionsKeys` rather than constructing + these directly. + + .. warning:: + This API is experimental. + """ + + name: str + """Field-mask path this key updates.""" + + def value_set( + self, value: ActivityOptionValueType + ) -> ActivityOptionsUpdate[ActivityOptionValueType]: + """Create an update that sets this option to the given value.""" + return ActivityOptionsUpdate(self, value) + + def value_unset(self) -> ActivityOptionsUpdate[ActivityOptionValueType]: + """Create an update that clears this option server-side.""" + return ActivityOptionsUpdate(self, None) + + +@dataclass(frozen=True) +class ActivityOptionsUpdate(Generic[ActivityOptionValueType]): + """A single change to an activity's options. + + An option not represented by any update in the call is left untouched; an + update carrying None clears the option. + + .. warning:: + This API is experimental. + """ + + key: ActivityOptionsKey[ActivityOptionValueType] + """Option being changed.""" + + value: ActivityOptionValueType | None + """Value being set, or None to clear the option.""" + + +class ActivityOptionsKeys: + """The activity options that :py:meth:`ActivityHandle.update_options` can change. + + .. warning:: + This API is experimental. + """ + + task_queue: ActivityOptionsKey[str] = ActivityOptionsKey("task_queue.name") + schedule_to_close_timeout: ActivityOptionsKey[timedelta] = ActivityOptionsKey( + "schedule_to_close_timeout" + ) + schedule_to_start_timeout: ActivityOptionsKey[timedelta] = ActivityOptionsKey( + "schedule_to_start_timeout" + ) + start_to_close_timeout: ActivityOptionsKey[timedelta] = ActivityOptionsKey( + "start_to_close_timeout" + ) + heartbeat_timeout: ActivityOptionsKey[timedelta] = ActivityOptionsKey( + "heartbeat_timeout" + ) + start_delay: ActivityOptionsKey[timedelta] = ActivityOptionsKey("start_delay") + retry_policy: ActivityOptionsKey[temporalio.common.RetryPolicy] = ( + ActivityOptionsKey("retry_policy") + ) + priority: ActivityOptionsKey[temporalio.common.Priority] = ActivityOptionsKey( + "priority" + ) + + +@dataclass(frozen=True) +class ActivityExecutionOptions: + """An activity's options as resolved by the server. + + Returned by :py:meth:`ActivityHandle.update_options` and + :py:meth:`ActivityHandle.restore_original_options`. .. warning:: This API is experimental. """ + task_queue: str | None + """Task queue the activity is scheduled on.""" + + schedule_to_close_timeout: timedelta | None + """Total time the caller is willing to wait, including retries.""" + + schedule_to_start_timeout: timedelta | None + """Maximum time the activity may wait to be picked up by a worker.""" + + start_to_close_timeout: timedelta | None + """Maximum time for a single attempt.""" + + heartbeat_timeout: timedelta | None + """Maximum allowed time between heartbeats.""" + + start_delay: timedelta | None + """Delay before the first attempt is made available for dispatch.""" + + retry_policy: temporalio.common.RetryPolicy | None + """Retry policy in effect for the activity.""" + + priority: temporalio.common.Priority | None + """Priority of the activity.""" + + @staticmethod + def _from_proto( + options: temporalio.api.activity.v1.ActivityOptions, + ) -> ActivityExecutionOptions: + return ActivityExecutionOptions( + task_queue=options.task_queue.name + if options.HasField("task_queue") + else None, + schedule_to_close_timeout=( + options.schedule_to_close_timeout.ToTimedelta() + if options.HasField("schedule_to_close_timeout") + else None + ), + schedule_to_start_timeout=( + options.schedule_to_start_timeout.ToTimedelta() + if options.HasField("schedule_to_start_timeout") + else None + ), + start_to_close_timeout=( + options.start_to_close_timeout.ToTimedelta() + if options.HasField("start_to_close_timeout") + else None + ), + heartbeat_timeout=( + options.heartbeat_timeout.ToTimedelta() + if options.HasField("heartbeat_timeout") + else None + ), + start_delay=( + options.start_delay.ToTimedelta() + if options.HasField("start_delay") + else None + ), + retry_policy=( + temporalio.common.RetryPolicy.from_proto(options.retry_policy) + if options.HasField("retry_policy") + else None + ), + priority=( + temporalio.common.Priority._from_proto(options.priority) + if options.HasField("priority") + else None + ), + ) + + +@dataclass(frozen=True) +class ActivityExecutionCount: + """Representation of a count from a count activities call.""" + count: int """Total count matching the filter, if any.""" @@ -507,11 +805,7 @@ def _from_raw( @dataclass(frozen=True) class ActivityExecutionCountAggregationGroup: - """A single aggregation group from a count activities call. - - .. warning:: - This API is experimental. - """ + """A single aggregation group from a count activities call.""" count: int """Count for this group.""" @@ -665,6 +959,11 @@ def with_context(self, context: SerializationContext) -> Self: with :py:class:`ActivitySerializationContext` set as context. If you are using a custom data converter that makes use of this context then you can use this method to supply matching context data to the data converter used to serialize and encode the outbound payloads. + + A standalone activity started by a Nexus operation handler encodes its result, failure and + heartbeat details with the handler's + :py:class:`temporalio.converter.NexusSerializationContext`. To complete or heartbeat such an + activity, pass :py:attr:`temporalio.activity.Info.nexus_serialization_context`. """ data_converter = self._client.data_converter.with_context(context) if data_converter is self._client.data_converter: @@ -683,11 +982,7 @@ def with_context(self, context: SerializationContext) -> Self: class ActivityHandle(Generic[ReturnType]): - """Handle representing an activity execution not started by a workflow. - - .. warning:: - This API is experimental. - """ + """Handle representing an activity execution not started by a workflow.""" def __init__( self, @@ -705,6 +1000,9 @@ def __init__( self._known_outcome: ( temporalio.api.activity.v1.ActivityExecutionOutcome | None ) = None + self._known_outcome_nexus_context: ( + temporalio.converter.NexusSerializationContext | None + ) = None @functools.cached_property def _data_converter(self) -> temporalio.converter.DataConverter: @@ -738,9 +1036,6 @@ async def result( ) -> ReturnType: """Wait for result of the activity. - .. warning:: - This API is experimental. - The result may already be known if this method has been called before, in which case no network call is made. Otherwise the result will be polled for until it is available. @@ -764,18 +1059,22 @@ async def result( rpc_metadata=rpc_metadata, rpc_timeout=rpc_timeout ) - # Convert outcome to failure or value + # Convert outcome to failure or value. An activity started by a Nexus operation handler + # encodes them with the handler's Nexus context, which the server returns with the outcome. assert self._known_outcome + data_converter = ( + self._client.data_converter.with_context(self._known_outcome_nexus_context) + if self._known_outcome_nexus_context + else self._data_converter + ) if self._known_outcome.HasField("failure"): raise ActivityFailureError( - cause=await self._data_converter.decode_failure( - self._known_outcome.failure - ), + cause=await data_converter.decode_failure(self._known_outcome.failure), ) if not self._known_outcome.result.payloads: return None # type: ignore type_hints = [self._result_type] if self._result_type else None - results = await self._data_converter.decode( + results = await data_converter.decode( self._known_outcome.result.payloads, type_hints ) if not results: @@ -810,6 +1109,9 @@ async def _poll_until_outcome( ) if res.HasField("outcome"): self._known_outcome = res.outcome + self._known_outcome_nexus_context = temporalio.converter._serialization_context._propagated_nexus_serialization_context( + res + ) return except RPCError as err: if err.status == RPCStatusCode.DEADLINE_EXCEEDED: @@ -831,9 +1133,6 @@ async def cancel( ) -> None: """Request cancellation of the activity. - .. warning:: - This API is experimental. - Requesting cancellation of an activity does not automatically transition the activity to canceled status. If the activity is heartbeating, a :py:class:`exceptions.CancelledError` exception will be raised when receiving the heartbeat response; if the activity allows this @@ -864,9 +1163,6 @@ async def terminate( ) -> None: """Terminate the activity execution immediately. - .. warning:: - This API is experimental. - Termination does not reach the worker and the activity code cannot react to it. A terminated activity may have a running attempt and will be requested to be canceled by the server when it heartbeats. @@ -886,21 +1182,171 @@ async def terminate( ) ) - async def describe( + async def pause( self, *, - long_poll_token: bytes | None = None, + reason: str | None = None, rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, - ) -> ActivityExecutionDescription: - """Describe the activity execution. + ) -> None: + """Pause the activity. + + A paused activity is not scheduled or retried until it is unpaused via + :py:meth:`unpause`. + + .. warning:: + This API is experimental. + + Args: + reason: Reason for pausing. Recorded and available via describe. + rpc_metadata: Headers used on the RPC call. + rpc_timeout: Optional RPC deadline to set for the RPC call. + """ + await self._client._impl.pause_activity( + PauseActivityInput( + activity_id=self._id, + activity_run_id=self._run_id, + reason=reason, + rpc_metadata=rpc_metadata, + rpc_timeout=rpc_timeout, + ) + ) + + async def unpause( + self, + *, + reason: str | None = None, + jitter: timedelta | None = None, + rpc_metadata: Mapping[str, str | bytes] = {}, + rpc_timeout: timedelta | None = None, + ) -> None: + """Unpause the activity, allowing it to be scheduled or retried again. .. warning:: This API is experimental. Args: - long_poll_token: Token from a previous describe response. If provided, - the request will long-poll until the activity state changes. + reason: Reason for unpausing. Recorded on the server. + jitter: If set, the activity starts at a random time within this + duration rather than immediately. + rpc_metadata: Headers used on the RPC call. + rpc_timeout: Optional RPC deadline to set for the RPC call. + """ + await self._client._impl.unpause_activity( + UnpauseActivityInput( + activity_id=self._id, + activity_run_id=self._run_id, + reason=reason, + jitter=jitter, + rpc_metadata=rpc_metadata, + rpc_timeout=rpc_timeout, + ) + ) + + async def update_options( + self, + updates: Sequence[ActivityOptionsUpdate[Any]], + *, + rpc_metadata: Mapping[str, str | bytes] = {}, + rpc_timeout: timedelta | None = None, + ) -> ActivityExecutionOptions: + """Update the activity's options. + + Only the options named by ``updates`` are changed; anything not named is + left as-is. An update created with + :py:meth:`ActivityOptionsKey.value_unset` clears that option. + + Each option may be named at most once; naming the same option twice + raises :py:class:`ValueError`. + + .. warning:: + This API is experimental. + + Args: + updates: Options to change, built from :py:class:`ActivityOptionsKeys`. + rpc_metadata: Headers used on the RPC call. + rpc_timeout: Optional RPC deadline to set for the RPC call. + + Returns: + The activity options as resolved by the server after the update. + + Raises: + ValueError: If ``updates`` is empty or names the same option twice. + """ + if not updates: + raise ValueError( + "update_options requires at least one update; use " + "restore_original_options() to revert options" + ) + seen: set[str] = set() + for update in updates: + name = update.key.name + if name in seen: + raise ValueError( + f"update_options received more than one update for {name}" + ) + seen.add(name) + return await self._client._impl.update_activity_options( + UpdateActivityOptionsInput( + activity_id=self._id, + activity_run_id=self._run_id, + updates=updates, + restore_original=False, + rpc_metadata=rpc_metadata, + rpc_timeout=rpc_timeout, + ) + ) + + async def restore_original_options( + self, + *, + rpc_metadata: Mapping[str, str | bytes] = {}, + rpc_timeout: timedelta | None = None, + ) -> ActivityExecutionOptions: + """Restore the activity's options to the ones it was created with. + + This is a separate call rather than an option on + :py:meth:`update_options` because the server rejects a request that + combines the restore flag with any other option. + + .. warning:: + This API is experimental. + + Args: + rpc_metadata: Headers used on the RPC call. + rpc_timeout: Optional RPC deadline to set for the RPC call. + + Returns: + The activity options as resolved by the server after the restore. + """ + return await self._client._impl.update_activity_options( + UpdateActivityOptionsInput( + activity_id=self._id, + activity_run_id=self._run_id, + updates=[], + restore_original=True, + rpc_metadata=rpc_metadata, + rpc_timeout=rpc_timeout, + ) + ) + + async def describe( + self, + *, + include_input: bool = False, + include_outcome: bool = False, + include_heartbeat_details: bool = False, + include_last_failure: bool = False, + rpc_metadata: Mapping[str, str | bytes] = {}, + rpc_timeout: timedelta | None = None, + ) -> ActivityExecutionDescription: + """Describe the activity execution. + + Args: + include_input: Include activity input in the response if available. + include_outcome: Include activity outcome in the response if available. + include_heartbeat_details: Include heartbeat details in the response if available. + include_last_failure: Include last failure in the response if available. rpc_metadata: Headers used on the RPC call. rpc_timeout: Optional RPC deadline to set for the RPC call. @@ -911,7 +1357,10 @@ async def describe( DescribeActivityInput( activity_id=self._id, activity_run_id=self._run_id, - long_poll_token=long_poll_token, + include_input=include_input, + include_outcome=include_outcome, + include_heartbeat_details=include_heartbeat_details, + include_last_failure=include_last_failure, rpc_metadata=rpc_metadata, rpc_timeout=rpc_timeout, ) diff --git a/temporalio/client/_client.py b/temporalio/client/_client.py index 3c89c10ff..efef5cb52 100644 --- a/temporalio/client/_client.py +++ b/temporalio/client/_client.py @@ -146,6 +146,7 @@ async def connect( tls: bool | TLSConfig | None = None, retry_config: RetryConfig | None = None, keep_alive_config: KeepAliveConfig | None = KeepAliveConfig.default, + connect_timeout: timedelta | None = None, rpc_metadata: Mapping[str, str | bytes] = {}, identity: str | None = None, lazy: bool = False, @@ -200,6 +201,10 @@ async def connect( connection. Default is to check every 30s and kill the connection if a response doesn't come back in 15s. Can be set to ``None`` to disable. + connect_timeout: Maximum duration of a TCP connection attempt. + If unset, no explicit connection timeout is applied. This is + separate from RPC timeouts and does not bound the total duration + of a call with retries. rpc_metadata: Headers to use for all calls to the server. Keys here can be overriden by per-call RPC metadata keys. identity: Identity for this client. If unset, a default is created @@ -227,6 +232,7 @@ async def connect( tls=tls, retry_config=retry_config, keep_alive_config=keep_alive_config, + connect_timeout=connect_timeout, rpc_metadata=rpc_metadata, identity=identity or "", lazy=lazy, @@ -578,6 +584,8 @@ async def start_workflow( id_conflict_policy: Behavior when a workflow is currently running with the same ID. Default is UNSPECIFIED, which effectively means fail the start attempt. Set to USE_EXISTING for idempotent deduplication on workflow ID. + With Temporal Server 1.32.0 or later, the returned handle is + scoped to the existing workflow's run chain. Cannot be set if ``id_reuse_policy`` is set to TERMINATE_IF_RUNNING. id_reuse_policy: Behavior when a closed workflow with the same ID exists. Default is ALLOW_DUPLICATE. @@ -1200,7 +1208,9 @@ def on_start( WorkflowHandle( self, start_workflow_operation._start_workflow_input.id, - first_execution_run_id=start_response.run_id, + first_execution_run_id=( + start_response.first_execution_run_id or start_response.run_id + ), result_run_id=start_response.run_id, result_type=start_workflow_operation._start_workflow_input.ret_type, ) @@ -1487,9 +1497,6 @@ async def start_activity( ) -> ActivityHandle[ReturnType]: """Start an activity and return its handle. - .. warning:: - This API is experimental. - Args: activity: String name or callable activity function to execute. arg: Single argument to the activity. @@ -1741,9 +1748,6 @@ async def execute_activity( ) -> ReturnType: """Start an activity, wait for it to complete, and return its result. - .. warning:: - This API is experimental. - This is a convenience method that combines :py:meth:`start_activity` and :py:meth:`ActivityHandle.result`. @@ -1943,9 +1947,6 @@ async def start_activity_class( ) -> ActivityHandle[Any]: """Start an activity from a callable class. - .. warning:: - This API is experimental. - See :py:meth:`start_activity` for parameter and return details. """ return await self.start_activity( @@ -2137,9 +2138,6 @@ async def execute_activity_class( ) -> Any: """Start an activity from a callable class and wait for completion. - .. warning:: - This API is experimental. - This is a shortcut for ``await`` :py:meth:`start_activity_class`. """ return await self.execute_activity( @@ -2286,9 +2284,6 @@ async def start_activity_method( ) -> ActivityHandle[Any]: """Start an activity from a method. - .. warning:: - This API is experimental. - See :py:meth:`start_activity` for parameter and return details. """ return await self.start_activity( @@ -2435,9 +2430,6 @@ async def execute_activity_method( ) -> Any: """Start an activity from a method and wait for completion. - .. warning:: - This API is experimental. - This is a shortcut for ``await`` :py:meth:`start_activity_method`. """ return await self.execute_activity( @@ -2474,9 +2466,6 @@ def list_activities( ) -> ActivityExecutionAsyncIterator: """List activities not started by a workflow. - .. warning:: - This API is experimental. - This does not make a request until the first iteration is attempted. Therefore any errors will not occur until then. @@ -2517,9 +2506,6 @@ async def count_activities( ) -> ActivityExecutionCount: """Count activities not started by a workflow. - .. warning:: - This API is experimental. - Args: query: A Temporal visibility filter for activities. rpc_metadata: Headers used on the RPC call. Keys here override @@ -2563,9 +2549,6 @@ def get_activity_handle( The activity must not have been started by a workflow. - .. warning:: - This API is experimental. - To get a handle to an activity execution that you control for manual completion and heartbeating, see :py:meth:`Client.get_async_activity_handle`. @@ -3036,6 +3019,7 @@ class ClientConnectConfig(TypedDict, total=False): tls: bool | TLSConfig | None retry_config: RetryConfig | None keep_alive_config: KeepAliveConfig | None + connect_timeout: timedelta | None rpc_metadata: Mapping[str, str | bytes] identity: str | None lazy: bool diff --git a/temporalio/client/_exceptions.py b/temporalio/client/_exceptions.py index fdcd263e6..2d91372f1 100644 --- a/temporalio/client/_exceptions.py +++ b/temporalio/client/_exceptions.py @@ -104,11 +104,7 @@ def __init__(self) -> None: class ActivityFailureError(temporalio.exceptions.TemporalError): - """Error that occurs when an activity is unsuccessful. - - .. warning:: - This API is experimental. - """ + """Error that occurs when an activity is unsuccessful.""" def __init__(self, *, cause: BaseException) -> None: """Create activity failure error.""" diff --git a/temporalio/client/_impl.py b/temporalio/client/_impl.py index 78471baf7..e6424c15e 100644 --- a/temporalio/client/_impl.py +++ b/temporalio/client/_impl.py @@ -11,6 +11,7 @@ Mapping, ) from datetime import timedelta +from functools import cached_property from typing import ( TYPE_CHECKING, Any, @@ -29,6 +30,7 @@ import temporalio.api.workflowservice.v1 import temporalio.common import temporalio.converter +import temporalio.converter._serialization_context import temporalio.exceptions import temporalio.nexus import temporalio.nexus._operation_context @@ -50,6 +52,7 @@ ActivityExecutionAsyncIterator, ActivityExecutionCount, ActivityExecutionDescription, + ActivityExecutionOptions, ActivityHandle, AsyncActivityIDReference, ) @@ -87,6 +90,7 @@ ListSchedulesInput, ListWorkflowsInput, OutboundInterceptor, + PauseActivityInput, PauseScheduleInput, QueryWorkflowInput, ReportCancellationAsyncActivityInput, @@ -100,7 +104,9 @@ TerminateNexusOperationInput, TerminateWorkflowInput, TriggerScheduleInput, + UnpauseActivityInput, UnpauseScheduleInput, + UpdateActivityOptionsInput, UpdateScheduleInput, UpdateWithStartStartWorkflowInput, UpdateWithStartUpdateWorkflowInput, @@ -141,6 +147,12 @@ def __init__(self, client: Client) -> None: # type: ignore # We are intentionally not calling the base class's __init__ here self._client = client + @cached_property + def _targetless_data_converter(self) -> temporalio.converter.DataConverter: + return self._client.data_converter._with_store_context( + StorageDriverStoreContext(namespace=self._client.namespace) + ) + ### Workflow calls async def start_workflow( @@ -166,11 +178,17 @@ async def start_workflow( req, temporalio.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest, ): - resp = await self._client.workflow_service.signal_with_start_workflow_execution( - req, - retry=True, - metadata=input.rpc_metadata, - timeout=input.rpc_timeout, + with temporalio.nexus._operation_context._signal_request_nexus_context( + req + ): + resp = await self._client.workflow_service.signal_with_start_workflow_execution( + req, + retry=True, + metadata=input.rpc_metadata, + timeout=input.rpc_timeout, + ) + first_execution_run_id = resp.first_execution_run_id or ( + resp.run_id if resp.started else None ) else: resp = await self._client.workflow_service.start_workflow_execution( @@ -179,7 +197,7 @@ async def start_workflow( metadata=input.rpc_metadata, timeout=input.rpc_timeout, ) - first_execution_run_id = resp.run_id + first_execution_run_id = resp.first_execution_run_id or resp.run_id eagerly_started = resp.HasField("eager_workflow_task") except RPCError as err: # If the status is ALREADY_EXISTS and the details can be extracted @@ -188,7 +206,10 @@ async def start_workflow( details = temporalio.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure() if err.grpc_status.details[0].Unpack(details): raise temporalio.exceptions.WorkflowAlreadyStartedError( - input.id, input.workflow, run_id=details.run_id + input.id, + input.workflow, + run_id=details.run_id, + first_run_id=details.first_execution_run_id or None, ) raise handle: WorkflowHandle[Any, Any] = WorkflowHandle( @@ -231,6 +252,7 @@ async def _build_signal_with_start_workflow_execution_request( workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, type=input.workflow, namespace=self._client.namespace ), @@ -244,9 +266,6 @@ async def _build_signal_with_start_workflow_execution_request( await data_converter.encode(input.start_signal_args) ) await self._populate_start_workflow_execution_request(req, input) - temporalio.nexus._operation_context._apply_nexus_context_to_signal_with_start_workflow_request( - req - ) return req async def _build_update_with_start_start_workflow_execution_request( @@ -254,6 +273,9 @@ async def _build_update_with_start_start_workflow_execution_request( ) -> temporalio.api.workflowservice.v1.StartWorkflowExecutionRequest: req = temporalio.api.workflowservice.v1.StartWorkflowExecutionRequest() await self._populate_start_workflow_execution_request(req, input) + temporalio.nexus._operation_context._apply_nexus_serialization_context_to_start_workflow_request( + req + ) return req async def _populate_start_workflow_execution_request( @@ -270,6 +292,7 @@ async def _populate_start_workflow_execution_request( workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, type=input.workflow, namespace=self._client.namespace ), @@ -320,6 +343,8 @@ async def _populate_start_workflow_execution_request( req.priority.CopyFrom(input.priority._to_proto()) if input.versioning_override is not None: req.versioning_override.CopyFrom(input.versioning_override._to_proto()) + if input.time_skipping_config is not None: + req.time_skipping_config.CopyFrom(input.time_skipping_config) async def cancel_workflow(self, input: CancelWorkflowInput) -> None: await self._client.workflow_service.request_cancel_workflow_execution( @@ -396,6 +421,7 @@ async def query_workflow(self, input: QueryWorkflowInput) -> Any: workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, run_id=input.run_id or None, @@ -462,6 +488,7 @@ async def signal_workflow(self, input: SignalWorkflowInput) -> None: workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, run_id=input.run_id or None, @@ -483,12 +510,10 @@ async def signal_workflow(self, input: SignalWorkflowInput) -> None: req.input.payloads.extend(await data_converter.encode(input.args)) if input.headers is not None: # type:ignore[reportUnnecessaryComparison] await self._apply_headers(input.headers, req.header.fields) - temporalio.nexus._operation_context._apply_nexus_context_to_signal_workflow_request( - req - ) - resp = await self._client.workflow_service.signal_workflow_execution( - req, retry=True, metadata=input.rpc_metadata, timeout=input.rpc_timeout - ) + with temporalio.nexus._operation_context._signal_request_nexus_context(req): + resp = await self._client.workflow_service.signal_workflow_execution( + req, retry=True, metadata=input.rpc_metadata, timeout=input.rpc_timeout + ) temporalio.nexus._operation_context._apply_signal_workflow_response_to_nexus_context( resp ) @@ -500,6 +525,7 @@ async def terminate_workflow(self, input: TerminateWorkflowInput) -> None: workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, run_id=input.run_id or None, @@ -580,6 +606,7 @@ async def _build_start_activity_execution_request( workflow_type=None, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverActivityInfo( id=input.id, type=input.activity_type, @@ -675,12 +702,105 @@ async def terminate_activity(self, input: TerminateActivityInput) -> None: run_id=input.activity_run_id or "", reason=input.reason or "", identity=self._client.identity, + request_id=str(uuid.uuid4()), + ), + retry=True, + metadata=input.rpc_metadata, + timeout=input.rpc_timeout, + ) + + async def pause_activity(self, input: PauseActivityInput) -> None: + """Pause an activity.""" + await self._client.workflow_service.pause_activity_execution( + temporalio.api.workflowservice.v1.PauseActivityExecutionRequest( + namespace=self._client.namespace, + activity_id=input.activity_id, + run_id=input.activity_run_id or "", + identity=self._client.identity, + request_id=str(uuid.uuid4()), + reason=input.reason or "", ), retry=True, metadata=input.rpc_metadata, timeout=input.rpc_timeout, ) + async def unpause_activity(self, input: UnpauseActivityInput) -> None: + """Unpause an activity.""" + req = temporalio.api.workflowservice.v1.UnpauseActivityExecutionRequest( + namespace=self._client.namespace, + activity_id=input.activity_id, + run_id=input.activity_run_id or "", + identity=self._client.identity, + request_id=str(uuid.uuid4()), + reason=input.reason or "", + ) + if input.jitter is not None: + req.jitter.FromTimedelta(input.jitter) + await self._client.workflow_service.unpause_activity_execution( + req, + retry=True, + metadata=input.rpc_metadata, + timeout=input.rpc_timeout, + ) + + async def update_activity_options( + self, input: UpdateActivityOptionsInput + ) -> ActivityExecutionOptions: + """Update or restore an activity's options.""" + # restore_original is exclusive to all other updates. + if input.restore_original and input.updates: + raise ValueError( + "restore_original cannot be combined with individual option updates" + ) + req = temporalio.api.workflowservice.v1.UpdateActivityExecutionOptionsRequest( + namespace=self._client.namespace, + activity_id=input.activity_id, + run_id=input.activity_run_id or "", + identity=self._client.identity, + request_id=str(uuid.uuid4()), + ) + if input.restore_original: + req.restore_original = True + else: + # The handle rejects a repeated option, but an interceptor could still add one. + seen: set[str] = set() + for update in input.updates: + name = update.key.name + if name in seen: + raise ValueError( + f"update_activity_options received more than one update for {name}" + ) + seen.add(name) + req.update_mask.paths.append(name) + if update.value is None: + continue + if name == "task_queue.name": + req.activity_options.task_queue.name = update.value + elif name == "retry_policy": + update.value.apply_to_proto(req.activity_options.retry_policy) + elif name == "priority": + req.activity_options.priority.CopyFrom(update.value._to_proto()) + elif name in ( + "schedule_to_close_timeout", + "schedule_to_start_timeout", + "start_to_close_timeout", + "heartbeat_timeout", + "start_delay", + ): + getattr(req.activity_options, name).FromTimedelta(update.value) + else: + # Reached only if a key is added without a conversion for it here. + raise ValueError(f"No conversion for activity option {name!r}") + + resp = await self._client.workflow_service.update_activity_execution_options( + req, + retry=True, + metadata=input.rpc_metadata, + timeout=input.rpc_timeout, + ) + return ActivityExecutionOptions._from_proto(resp.activity_options) + async def describe_activity( self, input: DescribeActivityInput ) -> ActivityExecutionDescription: @@ -690,15 +810,18 @@ async def describe_activity( namespace=self._client.namespace, activity_id=input.activity_id, run_id=input.activity_run_id or "", - long_poll_token=input.long_poll_token or b"", + include_input=input.include_input, + include_outcome=input.include_outcome, + include_heartbeat_details=input.include_heartbeat_details, + include_last_failure=input.include_last_failure, ), retry=True, metadata=input.rpc_metadata, timeout=input.rpc_timeout, ) - return await ActivityExecutionDescription._from_execution_info( - info=resp.info, - long_poll_token=resp.long_poll_token or None, + + return ActivityExecutionDescription._from_resp( + resp=resp, namespace=self._client.namespace, data_converter=self._client.data_converter.with_context( ActivitySerializationContext( @@ -711,7 +834,6 @@ async def describe_activity( is_local=False, ) ), - callbacks=resp.callbacks, ) def list_activities( @@ -780,7 +902,7 @@ async def start_workflow_update( result_type=input.ret_type, ) if resp.HasField("outcome"): - handle._known_outcome = resp.outcome + handle._set_known_outcome(resp) if input.wait_for_stage == WorkflowUpdateStage.COMPLETED: await handle._poll_until_outcome() return handle @@ -796,6 +918,7 @@ async def _build_update_workflow_execution_request( workflow_id=workflow_id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=workflow_id, run_id=(input.run_id or None) @@ -839,6 +962,10 @@ async def _build_update_workflow_execution_request( temporalio.nexus._operation_context._apply_nexus_context_to_start_workflow_update_request( req ) + else: + temporalio.nexus._operation_context._apply_nexus_serialization_context_to_workflow_update_request( + req + ) if input.args: req.request.input.args.payloads.extend( await data_converter.encode(input.args) @@ -914,6 +1041,9 @@ def on_start( input.start_workflow_input.id, input.start_workflow_input.workflow, run_id=details.run_id, + first_run_id=( + details.first_execution_run_id or None + ), ) else: err = RPCError( @@ -969,9 +1099,6 @@ async def _start_workflow_update_with_start( start_response = multiop_response.responses[0].start_workflow update_response = multiop_response.responses[1].update_workflow on_start(start_response) - known_outcome = ( - update_response.outcome if update_response.HasField("outcome") else None - ) if ( update_response.stage >= temporalio.api.enums.v1.UpdateWorkflowExecutionLifecycleStage.UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED @@ -983,9 +1110,10 @@ async def _start_workflow_update_with_start( id=update_req.request.meta.update_id, workflow_id=start_input.id, workflow_run_id=start_response.run_id, - known_outcome=known_outcome, result_type=update_input.ret_type, ) + if update_response.HasField("outcome"): + handle._set_known_outcome(update_response) if update_input.wait_for_stage == WorkflowUpdateStage.COMPLETED: await handle._poll_until_outcome() @@ -999,6 +1127,7 @@ def _get_async_activity_store_context( if isinstance(id_or_token, AsyncActivityIDReference): if id_or_token.workflow_id: return StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=id_or_token.workflow_id or None, run_id=id_or_token.run_id or None, @@ -1006,6 +1135,7 @@ def _get_async_activity_store_context( ), ) return StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverActivityInfo( id=id_or_token.activity_id, run_id=id_or_token.run_id or None, @@ -1013,7 +1143,7 @@ def _get_async_activity_store_context( ), ) else: - return StorageDriverStoreContext(target=None) + return StorageDriverStoreContext(namespace=self._client.namespace) async def heartbeat_async_activity( self, input: HeartbeatAsyncActivityInput @@ -1065,7 +1195,7 @@ async def heartbeat_async_activity( metadata=input.rpc_metadata, timeout=input.rpc_timeout, ) - if resp.cancel_requested or resp.activity_paused: + if resp.cancel_requested or resp.activity_paused or resp.activity_reset: raise AsyncActivityCancelledError( details=ActivityCancellationDetails( cancel_requested=resp.cancel_requested, @@ -1231,7 +1361,7 @@ async def create_schedule(self, input: CreateScheduleInput) -> ScheduleHandle: initial_patch=initial_patch, identity=self._client.identity, request_id=str(uuid.uuid4()), - memo=await self._client.data_converter._encode_memo(input.memo) + memo=await self._targetless_data_converter._encode_memo(input.memo) if input.memo else None, ) @@ -1451,6 +1581,14 @@ async def start_nexus_operation( self, input: StartNexusOperationInput ) -> NexusOperationHandle[Any]: """Start a nexus operation and return a handle to it.""" + nexus_context = temporalio.converter.NexusSerializationContext( + endpoint=input.endpoint, + service=input.service, + operation=input.operation, + ) + data_converter = self._client.data_converter._with_contexts( + nexus_context, StorageDriverStoreContext(namespace=self._client.namespace) + ) req = temporalio.api.workflowservice.v1.StartNexusOperationExecutionRequest( namespace=self._client.namespace, identity=self._client.identity, @@ -1467,6 +1605,11 @@ async def start_nexus_operation( "temporalio.api.enums.v1.NexusOperationIdConflictPolicy.ValueType", int(input.id_conflict_policy), ), + # Callback source contexts use the started operation's serialization + # context, like the rest of the request. + completion_callbacks=[ + await cb._to_proto(data_converter) for cb in input.completion_callbacks + ], ) if input.schedule_to_close_timeout is not None: @@ -1477,7 +1620,7 @@ async def start_nexus_operation( req.start_to_close_timeout.FromTimedelta(input.start_to_close_timeout) # Set input payload - encoded = await self._client.data_converter.encode([input.arg]) + encoded = await data_converter.encode([input.arg]) if encoded: req.input.CopyFrom(encoded[0]) @@ -1488,9 +1631,7 @@ async def start_nexus_operation( ) # Set user metadata - metadata = await _encode_user_metadata( - self._client.data_converter, input.summary, None - ) + metadata = await _encode_user_metadata(data_converter, input.summary, None) if metadata is not None: req.user_metadata.CopyFrom(metadata) @@ -1522,6 +1663,7 @@ async def start_nexus_operation( result_type=input.result_type, endpoint=input.endpoint, service=input.service, + operation=input.operation, ) async def describe_nexus_operation( @@ -1539,15 +1681,33 @@ async def describe_nexus_operation( metadata=input.rpc_metadata, timeout=input.rpc_timeout, ) + data_converter = self._client.data_converter.with_context( + temporalio.converter.NexusSerializationContext( + endpoint=resp.info.endpoint, + service=resp.info.service, + operation=resp.info.operation, + ) + ) return await NexusOperationExecutionDescription._from_execution_info( info=resp.info, - data_converter=self._client.data_converter, + data_converter=data_converter, ) async def get_nexus_operation_result( self, input: GetNexusOperationResultInput ) -> Any: """Poll for nexus operation result until it's available.""" + data_converter = self._client.data_converter + # Fallback for older servers that don't return the context when polling. Handles obtained + # by operation ID alone have no start request context. + if input.endpoint and input.service and input.operation: + data_converter = data_converter.with_context( + temporalio.converter.NexusSerializationContext( + endpoint=input.endpoint, + service=input.service, + operation=input.operation, + ) + ) req = temporalio.api.workflowservice.v1.PollNexusOperationExecutionRequest( namespace=self._client.namespace, operation_id=input.operation_id, @@ -1566,24 +1726,26 @@ async def get_nexus_operation_result( timeout=input.rpc_timeout, ) ) + # The context the server returns also identifies an operation whose handle was + # obtained by operation ID + server_context = temporalio.converter._serialization_context._propagated_nexus_serialization_context( + res + ) + if server_context: + data_converter = self._client.data_converter.with_context( + server_context + ) match res.WhichOneof("outcome"): case "result": type_hints = [input.result_type] if input.result_type else None - [result] = await self._client.data_converter.decode( - [res.result], type_hints - ) + [result] = await data_converter.decode([res.result], type_hints) return result - case "failure": raise NexusOperationFailureError( - cause=await self._client.data_converter.decode_failure( - res.failure - ) + cause=await data_converter.decode_failure(res.failure) ) - case None: - # poll again - pass + continue except RPCError as err: match err.status: case RPCStatusCode.DEADLINE_EXCEEDED: @@ -1658,5 +1820,5 @@ async def _apply_headers( dest, self._client.config(active_config=True)["header_codec_behavior"] == HeaderCodecBehavior.CODEC, - self._client.data_converter, + self._targetless_data_converter, ) diff --git a/temporalio/client/_interceptor.py b/temporalio/client/_interceptor.py index a0310ac19..75463b497 100644 --- a/temporalio/client/_interceptor.py +++ b/temporalio/client/_interceptor.py @@ -18,16 +18,17 @@ import temporalio.api.common.v1 import temporalio.api.workflowservice.v1 import temporalio.common -from temporalio.converter import ( - DataConverter, -) +import temporalio.nexus +from temporalio.converter import DataConverter if TYPE_CHECKING: from ._activity import ( ActivityExecutionAsyncIterator, ActivityExecutionCount, ActivityExecutionDescription, + ActivityExecutionOptions, ActivityHandle, + ActivityOptionsUpdate, AsyncActivityIDReference, ) from ._nexus import ( @@ -96,6 +97,7 @@ class StartWorkflowInput: request_eager_start: bool priority: temporalio.common.Priority versioning_override: temporalio.common.VersioningOverride | None = None + time_skipping_config: temporalio.api.common.v1.TimeSkippingConfig | None = None @dataclass @@ -200,11 +202,7 @@ class TerminateWorkflowInput: @dataclass class StartActivityInput: - """Input for :py:meth:`OutboundInterceptor.start_activity`. - - .. warning:: - This API is experimental. - """ + """Input for :py:meth:`OutboundInterceptor.start_activity`.""" activity_type: str args: Sequence[Any] @@ -229,11 +227,7 @@ class StartActivityInput: @dataclass class CancelActivityInput: - """Input for :py:meth:`OutboundInterceptor.cancel_activity`. - - .. warning:: - This API is experimental. - """ + """Input for :py:meth:`OutboundInterceptor.cancel_activity`.""" activity_id: str activity_run_id: str | None @@ -244,7 +238,18 @@ class CancelActivityInput: @dataclass class TerminateActivityInput: - """Input for :py:meth:`OutboundInterceptor.terminate_activity`. + """Input for :py:meth:`OutboundInterceptor.terminate_activity`.""" + + activity_id: str + activity_run_id: str | None + reason: str | None + rpc_metadata: Mapping[str, str | bytes] + rpc_timeout: timedelta | None + + +@dataclass +class PauseActivityInput: + """Input for :py:meth:`OutboundInterceptor.pause_activity`. .. warning:: This API is experimental. @@ -258,8 +263,8 @@ class TerminateActivityInput: @dataclass -class DescribeActivityInput: - """Input for :py:meth:`OutboundInterceptor.describe_activity`. +class UnpauseActivityInput: + """Input for :py:meth:`OutboundInterceptor.unpause_activity`. .. warning:: This API is experimental. @@ -267,19 +272,46 @@ class DescribeActivityInput: activity_id: str activity_run_id: str | None - long_poll_token: bytes | None + reason: str | None + jitter: timedelta | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass -class ListActivitiesInput: - """Input for :py:meth:`OutboundInterceptor.list_activities`. +class UpdateActivityOptionsInput: + """Input for :py:meth:`OutboundInterceptor.update_activity_options`. .. warning:: This API is experimental. """ + activity_id: str + activity_run_id: str | None + updates: Sequence[ActivityOptionsUpdate[Any]] + restore_original: bool + rpc_metadata: Mapping[str, str | bytes] + rpc_timeout: timedelta | None + + +@dataclass +class DescribeActivityInput: + """Input for :py:meth:`OutboundInterceptor.describe_activity`.""" + + activity_id: str + activity_run_id: str | None + include_input: bool + include_outcome: bool + include_heartbeat_details: bool + include_last_failure: bool + rpc_metadata: Mapping[str, str | bytes] + rpc_timeout: timedelta | None + + +@dataclass +class ListActivitiesInput: + """Input for :py:meth:`OutboundInterceptor.list_activities`.""" + query: str | None page_size: int next_page_token: bytes | None @@ -290,11 +322,7 @@ class ListActivitiesInput: @dataclass class CountActivitiesInput: - """Input for :py:meth:`OutboundInterceptor.count_activities`. - - .. warning:: - This API is experimental. - """ + """Input for :py:meth:`OutboundInterceptor.count_activities`.""" query: str | None rpc_metadata: Mapping[str, str | bytes] @@ -360,6 +388,7 @@ class UpdateWithStartStartWorkflowInput: ret_type: type | None priority: temporalio.common.Priority versioning_override: temporalio.common.VersioningOverride | None = None + time_skipping_config: temporalio.api.common.v1.TimeSkippingConfig | None = None @dataclass @@ -579,6 +608,7 @@ class StartNexusOperationInput: headers: Mapping[str, str] rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None + completion_callbacks: Sequence[temporalio.nexus.CompletionCallback[Any]] = () @dataclass @@ -605,6 +635,9 @@ class GetNexusOperationResultInput: operation_id: str run_id: str | None + endpoint: str + service: str + operation: str rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None result_type: type[Any] | None @@ -755,57 +788,60 @@ async def terminate_workflow(self, input: TerminateWorkflowInput) -> None: ### Activity calls async def start_activity(self, input: StartActivityInput) -> ActivityHandle[Any]: - """Called for every :py:meth:`Client.start_activity` call. + """Called for every :py:meth:`Client.start_activity` call.""" + return await self.next.start_activity(input) + + async def cancel_activity(self, input: CancelActivityInput) -> None: + """Called for every :py:meth:`ActivityHandle.cancel` call.""" + await self.next.cancel_activity(input) + + async def terminate_activity(self, input: TerminateActivityInput) -> None: + """Called for every :py:meth:`ActivityHandle.terminate` call.""" + await self.next.terminate_activity(input) + + async def pause_activity(self, input: PauseActivityInput) -> None: + """Called for every :py:meth:`ActivityHandle.pause` call. .. warning:: This API is experimental. """ - return await self.next.start_activity(input) + await self.next.pause_activity(input) - async def cancel_activity(self, input: CancelActivityInput) -> None: - """Called for every :py:meth:`ActivityHandle.cancel` call. + async def unpause_activity(self, input: UnpauseActivityInput) -> None: + """Called for every :py:meth:`ActivityHandle.unpause` call. .. warning:: This API is experimental. """ - await self.next.cancel_activity(input) + await self.next.unpause_activity(input) - async def terminate_activity(self, input: TerminateActivityInput) -> None: - """Called for every :py:meth:`ActivityHandle.terminate` call. + async def update_activity_options( + self, input: UpdateActivityOptionsInput + ) -> ActivityExecutionOptions: + """Called for every :py:meth:`ActivityHandle.update_options` and + :py:meth:`ActivityHandle.restore_original_options` call. .. warning:: This API is experimental. """ - await self.next.terminate_activity(input) + return await self.next.update_activity_options(input) async def describe_activity( self, input: DescribeActivityInput ) -> ActivityExecutionDescription: - """Called for every :py:meth:`ActivityHandle.describe` call. - - .. warning:: - This API is experimental. - """ + """Called for every :py:meth:`ActivityHandle.describe` call.""" return await self.next.describe_activity(input) def list_activities( self, input: ListActivitiesInput ) -> ActivityExecutionAsyncIterator: - """Called for every :py:meth:`Client.list_activities` call. - - .. warning:: - This API is experimental. - """ + """Called for every :py:meth:`Client.list_activities` call.""" return self.next.list_activities(input) async def count_activities( self, input: CountActivitiesInput ) -> ActivityExecutionCount: - """Called for every :py:meth:`Client.count_activities` call. - - .. warning:: - This API is experimental. - """ + """Called for every :py:meth:`Client.count_activities` call.""" return await self.next.count_activities(input) async def start_workflow_update( diff --git a/temporalio/client/_nexus.py b/temporalio/client/_nexus.py index 7eea155a9..fa22c11c2 100644 --- a/temporalio/client/_nexus.py +++ b/temporalio/client/_nexus.py @@ -490,11 +490,15 @@ async def start_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> NexusOperationHandle[OutputT]: ... - # Overload for string operation name + # Overload for string operation name with result_type. Callbacks must accept + # the result type. @overload @abstractmethod async def start_operation( @@ -505,17 +509,46 @@ async def start_operation( id: str, id_reuse_policy: temporalio.common.NexusOperationIDReusePolicy = temporalio.common.NexusOperationIDReusePolicy.ALLOW_DUPLICATE, id_conflict_policy: temporalio.common.NexusOperationIDConflictPolicy = temporalio.common.NexusOperationIDConflictPolicy.FAIL, - result_type: type[OutputT] | None = None, + result_type: type[OutputT], schedule_to_close_timeout: timedelta | None = None, schedule_to_start_timeout: timedelta | None = None, start_to_close_timeout: timedelta | None = None, search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> NexusOperationHandle[OutputT]: ... + # Overload for string operation name without result_type. Callbacks of any + # output type are accepted. + @overload + @abstractmethod + async def start_operation( + self, + operation: str, + arg: Any, + *, + id: str, + id_reuse_policy: temporalio.common.NexusOperationIDReusePolicy = temporalio.common.NexusOperationIDReusePolicy.ALLOW_DUPLICATE, + id_conflict_policy: temporalio.common.NexusOperationIDConflictPolicy = temporalio.common.NexusOperationIDConflictPolicy.FAIL, + result_type: None = None, + schedule_to_close_timeout: timedelta | None = None, + schedule_to_start_timeout: timedelta | None = None, + start_to_close_timeout: timedelta | None = None, + search_attributes: temporalio.common.TypedSearchAttributes | None = None, + summary: str | None = None, + headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), + rpc_metadata: Mapping[str, str | bytes] = {}, + rpc_timeout: timedelta | None = None, + ) -> NexusOperationHandle[Any]: ... + # Overload for workflow_run_operation methods @overload @abstractmethod @@ -536,6 +569,9 @@ async def start_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> NexusOperationHandle[OutputT]: ... @@ -560,6 +596,9 @@ async def start_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> NexusOperationHandle[OutputT]: ... @@ -584,6 +623,9 @@ async def start_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> NexusOperationHandle[OutputT]: ... @@ -607,6 +649,9 @@ async def start_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> NexusOperationHandle[OutputT]: ... @@ -636,6 +681,9 @@ async def start_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> NexusOperationHandle[OutputT]: ... @@ -656,6 +704,7 @@ async def start_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[temporalio.nexus.CompletionCallback[Any]] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> NexusOperationHandle[Any]: @@ -686,6 +735,12 @@ async def start_operation( search_attributes: Search attributes for the operation. summary: Summary for the operation. headers: Headers to attach to the Nexus request. + completion_callbacks: Callbacks that report the outcome of the + operation. Create them with + :py:func:`temporalio.nexus.create_completion_callback`. Each + callback must accept the output type of the operation. For a + string operation name, type checkers check callbacks against + ``result_type`` if it is set. rpc_metadata: Headers used on the RPC call. rpc_timeout: Optional RPC deadline to set for the RPC call. @@ -711,11 +766,15 @@ async def execute_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> OutputT: ... - # Overload for string operation name + # Overload for string operation name with result_type. Callbacks must accept + # the result type. @overload @abstractmethod async def execute_operation( @@ -726,17 +785,46 @@ async def execute_operation( id: str, id_reuse_policy: temporalio.common.NexusOperationIDReusePolicy = temporalio.common.NexusOperationIDReusePolicy.ALLOW_DUPLICATE, id_conflict_policy: temporalio.common.NexusOperationIDConflictPolicy = temporalio.common.NexusOperationIDConflictPolicy.FAIL, - result_type: type[OutputT] | None = None, + result_type: type[OutputT], schedule_to_close_timeout: timedelta | None = None, schedule_to_start_timeout: timedelta | None = None, start_to_close_timeout: timedelta | None = None, search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> OutputT: ... + # Overload for string operation name without result_type. Callbacks of any + # output type are accepted. + @overload + @abstractmethod + async def execute_operation( + self, + operation: str, + arg: Any, + *, + id: str, + id_reuse_policy: temporalio.common.NexusOperationIDReusePolicy = temporalio.common.NexusOperationIDReusePolicy.ALLOW_DUPLICATE, + id_conflict_policy: temporalio.common.NexusOperationIDConflictPolicy = temporalio.common.NexusOperationIDConflictPolicy.FAIL, + result_type: None = None, + schedule_to_close_timeout: timedelta | None = None, + schedule_to_start_timeout: timedelta | None = None, + start_to_close_timeout: timedelta | None = None, + search_attributes: temporalio.common.TypedSearchAttributes | None = None, + summary: str | None = None, + headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), + rpc_metadata: Mapping[str, str | bytes] = {}, + rpc_timeout: timedelta | None = None, + ) -> Any: ... + # Overload for workflow_run_operation methods @overload @abstractmethod @@ -757,6 +845,9 @@ async def execute_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> OutputT: ... @@ -781,6 +872,9 @@ async def execute_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> OutputT: ... @@ -805,6 +899,9 @@ async def execute_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> OutputT: ... @@ -829,6 +926,9 @@ async def execute_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> OutputT: ... @@ -858,6 +958,9 @@ async def execute_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[ + temporalio.nexus.CompletionCallback[OutputT] + ] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> OutputT: ... @@ -878,6 +981,7 @@ async def execute_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[temporalio.nexus.CompletionCallback[Any]] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> Any: @@ -910,6 +1014,12 @@ async def execute_operation( search_attributes: Search attributes for the operation. summary: Summary for the operation. headers: Headers to attach to the Nexus request. + completion_callbacks: Callbacks that report the outcome of the + operation. Create them with + :py:func:`temporalio.nexus.create_completion_callback`. Each + callback must accept the output type of the operation. For a + string operation name, type checkers check callbacks against + ``result_type`` if it is set. rpc_metadata: Headers used on the RPC call. rpc_timeout: Optional RPC deadline to set for the RPC call. @@ -974,6 +1084,7 @@ async def start_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[temporalio.nexus.CompletionCallback[Any]] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> NexusOperationHandle[Any]: @@ -1005,6 +1116,7 @@ async def start_operation( headers=dict(headers) if headers else {}, rpc_metadata=rpc_metadata, rpc_timeout=rpc_timeout, + completion_callbacks=completion_callbacks, ) ) @@ -1023,6 +1135,7 @@ async def execute_operation( search_attributes: temporalio.common.TypedSearchAttributes | None = None, summary: str | None = None, headers: Mapping[str, str] | None = None, + completion_callbacks: Sequence[temporalio.nexus.CompletionCallback[Any]] = (), rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, ) -> Any: @@ -1046,6 +1159,7 @@ async def execute_operation( headers=headers, rpc_metadata=rpc_metadata, rpc_timeout=rpc_timeout, + completion_callbacks=completion_callbacks, ) return await handle.result() @@ -1066,6 +1180,7 @@ def __init__( result_type: type | None = None, endpoint: str = "", service: str = "", + operation: str = "", ) -> None: """Create nexus operation handle.""" self._client = client @@ -1074,6 +1189,7 @@ def __init__( self._result_type = result_type self._endpoint = endpoint self._service = service + self._operation = operation # the default value is `_arg_unset` because ReturnType could be None self._known_outcome: ReturnType | NexusOperationFailureError | object = ( temporalio.common._arg_unset @@ -1136,9 +1252,12 @@ async def result( GetNexusOperationResultInput( operation_id=self._operation_id, run_id=self._run_id, - result_type=self._result_type, + endpoint=self._endpoint, + service=self._service, + operation=self._operation, rpc_metadata=rpc_metadata, rpc_timeout=rpc_timeout, + result_type=self._result_type, ) ) ) diff --git a/temporalio/client/_plugin.py b/temporalio/client/_plugin.py index 95b47e43d..fb1bf6e13 100644 --- a/temporalio/client/_plugin.py +++ b/temporalio/client/_plugin.py @@ -40,6 +40,17 @@ def name(self) -> str: """ return type(self).__module__ + "." + type(self).__qualname__ + def version(self) -> str: + """Get the version of this plugin. Can be overridden to provide a version. + + Clients don't report plugin versions yet. A plugin that is also a + temporalio.worker.Plugin reports its version in worker heartbeats. + + Returns: + The version of the plugin. Empty by default. + """ + return "" + @abstractmethod def configure_client(self, config: ClientConfig) -> ClientConfig: """Hook called when creating a client to allow modification of configuration. diff --git a/temporalio/client/_schedule.py b/temporalio/client/_schedule.py index 15946cfe8..7f4b438c0 100644 --- a/temporalio/client/_schedule.py +++ b/temporalio/client/_schedule.py @@ -800,6 +800,7 @@ async def _to_proto( workflow_id=self.id, ), StorageDriverStoreContext( + namespace=client.namespace, target=StorageDriverWorkflowInfo( id=self.id, type=self.workflow, namespace=client.namespace ), @@ -858,7 +859,9 @@ async def _to_proto( client.config(active_config=True)["header_codec_behavior"] == HeaderCodecBehavior.CODEC and not self._from_raw, - client.data_converter, + client.data_converter._with_store_context( + StorageDriverStoreContext(namespace=client.namespace) + ), ) return action @@ -956,9 +959,9 @@ class SchedulePolicy: """Controls what happens when an action is started while another is still running.""" - catchup_window: timedelta = timedelta(days=365) + catchup_window: timedelta | None = None """After a Temporal server is unavailable, amount of time in the past to - execute missed actions.""" + execute missed actions. If None, the server configured default is used (currently one year).""" pause_on_failure: bool = False """Whether to pause the schedule if an action fails or times out. @@ -971,20 +974,24 @@ class SchedulePolicy: def _from_proto(pol: temporalio.api.schedule.v1.SchedulePolicies) -> SchedulePolicy: return SchedulePolicy( overlap=ScheduleOverlapPolicy(int(pol.overlap_policy)), - catchup_window=pol.catchup_window.ToTimedelta(), + catchup_window=( + pol.catchup_window.ToTimedelta() + if pol.HasField("catchup_window") + else None + ), pause_on_failure=pol.pause_on_failure, ) def _to_proto(self) -> temporalio.api.schedule.v1.SchedulePolicies: - catchup_window = google.protobuf.duration_pb2.Duration() - catchup_window.FromTimedelta(self.catchup_window) - return temporalio.api.schedule.v1.SchedulePolicies( + policy = temporalio.api.schedule.v1.SchedulePolicies( overlap_policy=temporalio.api.enums.v1.ScheduleOverlapPolicy.ValueType( self.overlap ), - catchup_window=catchup_window, pause_on_failure=self.pause_on_failure, ) + if self.catchup_window is not None: + policy.catchup_window.FromTimedelta(self.catchup_window) + return policy @dataclass @@ -1060,8 +1067,6 @@ def _from_proto(sched: temporalio.api.schedule.v1.Schedule) -> Schedule: ) async def _to_proto(self, client: Client) -> temporalio.api.schedule.v1.Schedule: - catchup_window = google.protobuf.duration_pb2.Duration() - catchup_window.FromTimedelta(self.policy.catchup_window) return temporalio.api.schedule.v1.Schedule( spec=self.spec._to_proto(), action=await self.action._to_proto(client), diff --git a/temporalio/client/_workflow.py b/temporalio/client/_workflow.py index 0607ade0a..8a2c423a5 100644 --- a/temporalio/client/_workflow.py +++ b/temporalio/client/_workflow.py @@ -37,6 +37,7 @@ import temporalio.common import temporalio.converter import temporalio.converter._search_attributes +import temporalio.converter._serialization_context import temporalio.exceptions import temporalio.workflow from temporalio.converter import ( @@ -136,6 +137,17 @@ def _data_converter(self) -> temporalio.converter.DataConverter: ) ) + def _close_event_data_converter( + self, events: WorkflowHistoryEventAsyncIterator + ) -> temporalio.converter.DataConverter: + # A workflow started by a Nexus operation handler encodes its result and closing failure + # with the handler's Nexus context, which the server returns with the history. An + # interceptor may return its own iterator, which then falls back to the workflow context. + context = getattr(events, "_propagated_nexus_serialization_context", None) + if context is None: + return self._data_converter + return self._client.data_converter.with_context(context) + @property def id(self) -> str: """ID of the workflow.""" @@ -174,9 +186,13 @@ def first_execution_run_id(self) -> str | None: """Run ID used to ensure requested operations apply to a workflow ID started with this run ID. - This can be set when using :py:meth:`Client.get_workflow_handle`. When - :py:meth:`Client.start_workflow` is called without a start signal, this - is set to the resulting run. + This can be set when using :py:meth:`Client.get_workflow_handle`. + :py:meth:`Client.start_workflow` sets this from the server response. + With Temporal Server 1.32.0 or later, this is also correct when the + start attaches to a running workflow with a conflict policy of + ``USE_EXISTING``. Earlier servers may leave this unset for + signal-with-start or set it to the current run when a traditional + start attaches to a running workflow. This cannot be mutated. If a different first execution run ID is needed, :py:meth:`Client.get_workflow_handle` must be used instead. @@ -221,14 +237,16 @@ async def result( # executions hist_run_id = self._result_run_id while True: - async for event in self._fetch_history_events_for_run( + events = self._fetch_history_events_for_run( hist_run_id, wait_new_event=True, event_filter_type=WorkflowHistoryEventFilterType.CLOSE_EVENT, skip_archival=True, rpc_metadata=rpc_metadata, rpc_timeout=rpc_timeout, - ): + ) + async for event in events: + data_converter = self._close_event_data_converter(events) if event.HasField("workflow_execution_completed_event_attributes"): complete_attr = event.workflow_execution_completed_event_attributes # Follow execution @@ -237,7 +255,7 @@ async def result( break # Ignoring anything after the first response like TypeScript type_hints = [self._result_type] if self._result_type else None - results = await self._data_converter.decode_wrapper( + results = await data_converter.decode_wrapper( complete_attr.result, type_hints, ) @@ -253,20 +271,14 @@ async def result( hist_run_id = fail_attr.new_execution_run_id break raise WorkflowFailureError( - cause=await self._data_converter.decode_failure( - fail_attr.failure - ), + cause=await data_converter.decode_failure(fail_attr.failure), ) elif event.HasField("workflow_execution_canceled_event_attributes"): cancel_attr = event.workflow_execution_canceled_event_attributes raise WorkflowFailureError( cause=temporalio.exceptions.CancelledError( "Workflow cancelled", - *( - await self._data_converter.decode_wrapper( - cancel_attr.details - ) - ), + *(await data_converter.decode_wrapper(cancel_attr.details)), ) ) elif event.HasField("workflow_execution_terminated_event_attributes"): @@ -274,11 +286,7 @@ async def result( raise WorkflowFailureError( cause=temporalio.exceptions.TerminatedError( term_attr.reason or "Workflow terminated", - *( - await self._data_converter.decode_wrapper( - term_attr.details - ) - ), + *(await data_converter.decode_wrapper(term_attr.details)), ), ) elif event.HasField("workflow_execution_timed_out_event_attributes"): @@ -330,9 +338,10 @@ async def cancel( these values, use :py:meth:`Client.get_workflow_handle`. .. warning:: - Handles created as a result of :py:meth:`Client.start_workflow` with - a start signal will cancel the latest workflow with the same - workflow ID even if it is unrelated to the started workflow. + With Temporal Server earlier than 1.32.0, handles created by + :py:meth:`Client.start_workflow` with a start signal may cancel the + latest workflow with the same workflow ID even if it is unrelated + to the started workflow. Args: reason: Reason recorded with the cancellation request. Available @@ -714,9 +723,10 @@ async def terminate( these values, use :py:meth:`Client.get_workflow_handle`. .. warning:: - Handles created as a result of :py:meth:`Client.start_workflow` with - a start signal will terminate the latest workflow with the same - workflow ID even if it is unrelated to the started workflow. + With Temporal Server earlier than 1.32.0, handles created by + :py:meth:`Client.start_workflow` with a start signal may terminate + the latest workflow with the same workflow ID even if it is + unrelated to the started workflow. Args: args: Details to store on the termination. @@ -1754,6 +1764,9 @@ def __init__( None | (Sequence[temporalio.api.history.v1.HistoryEvent]) ) = None self._current_page_index = 0 + self._propagated_nexus_serialization_context: ( + temporalio.converter.NexusSerializationContext | None + ) = None @property def current_page_index(self) -> int: @@ -1805,6 +1818,13 @@ async def fetch_next_page(self, *, page_size: int | None = None) -> None: # typ self._current_page = list(resp.history.events) self._current_page_index = 0 self._next_page_token = resp.next_page_token or None + # Pages after the first may omit the context, such as the page holding the close event + # after a long poll times out + context = temporalio.converter._serialization_context._propagated_nexus_serialization_context( + resp + ) + if context is not None: + self._propagated_nexus_serialization_context = context def __aiter__(self) -> WorkflowHistoryEventAsyncIterator: """Return self as the iterator.""" @@ -1858,6 +1878,9 @@ def __init__( self._workflow_run_id = workflow_run_id self._result_type = result_type self._known_outcome = known_outcome + self._known_outcome_nexus_context: ( + temporalio.converter.NexusSerializationContext | None + ) = None @functools.cached_property def _data_converter(self) -> temporalio.converter.DataConverter: @@ -1868,6 +1891,18 @@ def _data_converter(self) -> temporalio.converter.DataConverter: ) ) + def _set_known_outcome( + self, + resp: temporalio.api.workflowservice.v1.UpdateWorkflowExecutionResponse + | temporalio.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse, + ) -> None: + self._known_outcome = resp.outcome + # An update sent by a Nexus operation handler encodes its outcome with the handler's + # Nexus context, which the server returns with the outcome + self._known_outcome_nexus_context = temporalio.converter._serialization_context._propagated_nexus_serialization_context( + resp + ) + @property def id(self) -> str: """ID of this Update request.""" @@ -1912,14 +1947,19 @@ async def result( # Convert outcome to failure or value assert self._known_outcome + data_converter = ( + self._client.data_converter.with_context(self._known_outcome_nexus_context) + if self._known_outcome_nexus_context + else self._data_converter + ) if self._known_outcome.HasField("failure"): raise WorkflowUpdateFailedError( - await self._data_converter.decode_failure(self._known_outcome.failure), + await data_converter.decode_failure(self._known_outcome.failure), ) if not self._known_outcome.success.payloads: return None # type: ignore type_hints = [self._result_type] if self._result_type else None - results = await self._data_converter.decode( + results = await data_converter.decode( self._known_outcome.success.payloads, type_hints ) if not results: @@ -1962,7 +2002,7 @@ async def _poll_until_outcome( ) ) if res.HasField("outcome"): - self._known_outcome = res.outcome + self._set_known_outcome(res) return except RPCError as err: if ( diff --git a/temporalio/common.py b/temporalio/common.py index ad75b56b9..8bcc66a4a 100644 --- a/temporalio/common.py +++ b/temporalio/common.py @@ -151,9 +151,6 @@ class WorkflowIDConflictPolicy(IntEnum): class ActivityIDReusePolicy(IntEnum): """How already-closed activity IDs are handled on start. - .. warning:: - This API is experimental. - See :py:class:`temporalio.api.enums.v1.ActivityIdReusePolicy`. """ @@ -174,9 +171,6 @@ class ActivityIDReusePolicy(IntEnum): class ActivityIDConflictPolicy(IntEnum): """How already-running activity IDs are handled on start. - .. warning:: - This API is experimental. - See :py:class:`temporalio.api.enums.v1.ActivityIdConflictPolicy`. """ @@ -1320,6 +1314,29 @@ def _to_proto(self) -> temporalio.api.workflow.v1.VersioningOverride: ) +@dataclass(frozen=True) +class OneTimeVersioningOverride(VersioningOverride): + """Route workflow tasks to a specific deployment version until a task completes + on that version, then clear the override. + + The worker's reported versioning behavior governs subsequent tasks. This does + not pin the workflow to the target version. + + .. warning:: + This API is experimental and requires Temporal Server 1.32 or newer. + """ + + target_version: WorkerDeploymentVersion + + def _to_proto(self) -> temporalio.api.workflow.v1.VersioningOverride: + """Convert to proto representation.""" + return temporalio.api.workflow.v1.VersioningOverride( + one_time=temporalio.api.workflow.v1.VersioningOverride.OneTimeOverride( + target_deployment_version=self.target_version._to_proto(), + ), + ) + + # Should be set as the "arg" argument for _arg_or_args checks where the argument # is unset. This is different than None which is a legitimate argument. _arg_unset = object() @@ -1372,7 +1389,8 @@ def _type_hints_from_func( # type:ignore[reportUnusedFunction] Tuple containing parameter types and return type. The parameter types will be None if there are any non-positional parameters or if any of the parameters to not have an annotation that represents a class. If the - first parameter is "self" with no attribute, it is not included. + first parameter is "self" and is unannotated or annotated as Self, it is + not included. """ # If this is a class instance with user-defined __call__, then use that as # the func. This mimics inspect logic inside Python. @@ -1406,7 +1424,7 @@ def _type_hints_from_func( # type:ignore[reportUnusedFunction] and value.name == "self" and ( value.annotation is inspect.Parameter.empty - or str(value.annotation) == "typing.Self" + or hints.get(value.name) is Self ) ): continue diff --git a/temporalio/contrib/aws/lambda_worker/_configure.py b/temporalio/contrib/aws/lambda_worker/_configure.py index dd1657f6d..2c50b4fa2 100644 --- a/temporalio/contrib/aws/lambda_worker/_configure.py +++ b/temporalio/contrib/aws/lambda_worker/_configure.py @@ -41,10 +41,11 @@ class LambdaWorkerConfig: ``graceful_shutdown_timeout + 2s``. If you change ``graceful_shutdown_timeout`` in ``worker_config``, adjust this accordingly. - shutdown_hooks: Functions called at the end of each Lambda invocation, - after the worker has stopped. Run in list order. Each may be sync - or async. Use this to flush telemetry providers or release other - per-process resources. + shutdown_hooks: Functions called at invocation exit, including failure + or cancellation, after configuration setup succeeds. Run in list + order, after the worker stops (if started) and before configure + teardown. Each may be sync or async. Use this to flush telemetry + providers or release other per-process resources. """ client_connect_config: ClientConnectConfig = field( diff --git a/temporalio/contrib/aws/lambda_worker/_run_worker.py b/temporalio/contrib/aws/lambda_worker/_run_worker.py index f384fb954..a6ed358f2 100644 --- a/temporalio/contrib/aws/lambda_worker/_run_worker.py +++ b/temporalio/contrib/aws/lambda_worker/_run_worker.py @@ -271,7 +271,7 @@ async def _invocation_config_scope( """Run *configure* (see run_worker for the forms) against a fresh per-invocation config and yield it. For the generator / context-manager forms, post-``yield`` teardown runs when the caller's block exits, including on error. Task queue is validated after - setup. + setup. The config's shutdown hooks run even if validation fails, before that teardown. """ config = new_config() if inspect.isasyncgenfunction(configure): @@ -285,13 +285,21 @@ async def _invocation_config_scope( # A @asynccontextmanager-decorated callback returns the context manager directly. cm = result if result is not None and hasattr(result, "__aenter__") else None + # Run hooks on failure as well as success, before configure teardown can + # close resources used by the hooks. if cm is not None: async with cm: + try: + _validate_task_queue(config) + yield config + finally: + await _run_shutdown_hooks(config) + else: + try: _validate_task_queue(config) yield config - else: - _validate_task_queue(config) - yield config + finally: + await _run_shutdown_hooks(config) async def _invocation_handler( @@ -363,7 +371,3 @@ async def _invocation_handler( else: # No deadline - run until cancelled. await worker.run() - - # Run shutdown hooks after worker has stopped, before any async-generator - # configure teardown (which unwinds on scope exit). - await _run_shutdown_hooks(config) diff --git a/temporalio/contrib/aws/lambda_worker/otel.py b/temporalio/contrib/aws/lambda_worker/otel.py index 216e80f48..d6834aa61 100644 --- a/temporalio/contrib/aws/lambda_worker/otel.py +++ b/temporalio/contrib/aws/lambda_worker/otel.py @@ -11,21 +11,26 @@ from __future__ import annotations import logging -import os from dataclasses import dataclass, field from datetime import timedelta from opentelemetry.sdk.resources import Resource -from opentelemetry.sdk.trace.export import BatchSpanProcessor from opentelemetry.semconv.attributes.service_attributes import SERVICE_NAME from opentelemetry.trace import get_tracer_provider, set_tracer_provider from temporalio.contrib.aws.lambda_worker._configure import LambdaWorkerConfig -from temporalio.contrib.opentelemetry import OpenTelemetryPlugin, create_tracer_provider -from temporalio.runtime import OpenTelemetryConfig, Runtime, TelemetryConfig +from temporalio.contrib.opentelemetry import ( + OpenTelemetryPlugin, + ReplaySafeTracerProvider, + _serverless, + create_tracer_provider, +) +from temporalio.runtime import Runtime, TelemetryConfig logger = logging.getLogger(__name__) +_installed_tracer_provider: ReplaySafeTracerProvider | None = None + @dataclass class OtelOptions: @@ -51,23 +56,69 @@ class OtelOptions: def _resolve_service_name(options: OtelOptions) -> str: - service_name = options.service_name - if not service_name: - service_name = os.environ.get("OTEL_SERVICE_NAME", "") - if not service_name: - service_name = os.environ.get("AWS_LAMBDA_FUNCTION_NAME", "") - if not service_name: - service_name = "temporal-lambda-worker" - return service_name + return _serverless.resolve_service_name( + options.service_name, + ["AWS_LAMBDA_FUNCTION_NAME"], + "temporal-lambda-worker", + ) def _resolve_endpoint(options: OtelOptions) -> str: - endpoint = options.collector_endpoint - if not endpoint: - endpoint = os.environ.get("OTEL_EXPORTER_OTLP_ENDPOINT", "") - if not endpoint: - endpoint = "http://localhost:4317" - return endpoint + return _serverless.resolve_endpoint(options.collector_endpoint) + + +def _ensure_tracer_provider(endpoint: str, service_name: str) -> None: + """Install the global replay-safe ``TracerProvider`` once per process. + + ``configure`` runs on every Lambda invocation, but OpenTelemetry only allows the global + provider to be set once and a warm container keeps the process alive. Later calls + reuse the installed provider instead of building (and leaking) a new span processor. + """ + global _installed_tracer_provider + if ( + _installed_tracer_provider is not None + and get_tracer_provider() is _installed_tracer_provider + ): + return + + resource = Resource.create({SERVICE_NAME: service_name}) + + # Try to use X-Ray ID generator if available. + try: + from opentelemetry.sdk.extension.aws.trace import ( # type: ignore[reportMissingTypeStubs] + AwsXRayIdGenerator, + ) + + tracer_provider = create_tracer_provider( + resource=resource, id_generator=AwsXRayIdGenerator() + ) + except ImportError: + logger.warning( + "opentelemetry-sdk-extension-aws is not installed; " + "X-Ray trace ID generation is disabled. " + "Install the 'lambda-worker-otel' extra for full ADOT support." + ) + tracer_provider = create_tracer_provider(resource=resource) + + # Use OTLP gRPC exporter if available, otherwise skip trace export. + try: + tracer_provider.add_span_processor( + _serverless.build_otlp_span_processor(endpoint, insecure=True) + ) + except ImportError: + logger.warning( + "opentelemetry-exporter-otlp-proto-grpc is not installed; " + "traces will not be exported to the OTLP collector. " + "Install the 'lambda-worker-otel' extra for full ADOT support." + ) + + # Set as global so the OpenTelemetryPlugin picks it up. + set_tracer_provider(tracer_provider) + if get_tracer_provider() is tracer_provider: + _installed_tracer_provider = tracer_provider + else: + # Another provider is already global; ours is unused, so don't leak its exporter. + tracer_provider.shutdown() def apply_defaults( @@ -84,7 +135,8 @@ def apply_defaults( Creates a replay-safe ``TracerProvider`` (with X-Ray ID generator and OTLP gRPC exporter if available) and sets it as the global OpenTelemetry tracer provider. The :py:class:`temporalio.contrib.opentelemetry.OpenTelemetryPlugin` uses the global provider, so - it must be set before the worker starts. + it must be set before the worker starts. The provider is created once per process: when this + is called again on a warm Lambda invocation, the installed provider is reused. The collector endpoint defaults to ``http://localhost:4317``, which is the endpoint expected by the ADOT collector Lambda layer. @@ -114,43 +166,7 @@ def apply_defaults( runtime = Runtime(telemetry=telemetry_config) config.client_connect_config["runtime"] = runtime - resource = Resource.create({SERVICE_NAME: service_name}) - - # Try to use X-Ray ID generator if available. - try: - from opentelemetry.sdk.extension.aws.trace import ( # type: ignore[reportMissingTypeStubs] - AwsXRayIdGenerator, - ) - - tracer_provider = create_tracer_provider( - resource=resource, id_generator=AwsXRayIdGenerator() - ) - except ImportError: - logger.warning( - "opentelemetry-sdk-extension-aws is not installed; " - "X-Ray trace ID generation is disabled. " - "Install the 'lambda-worker-otel' extra for full ADOT support." - ) - tracer_provider = create_tracer_provider(resource=resource) - - # Use OTLP gRPC exporter if available, otherwise skip trace export. - try: - from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( - OTLPSpanExporter, - ) - - tracer_provider.add_span_processor( - BatchSpanProcessor(OTLPSpanExporter(endpoint=endpoint, insecure=True)) - ) - except ImportError: - logger.warning( - "opentelemetry-exporter-otlp-proto-grpc is not installed; " - "traces will not be exported to the OTLP collector. " - "Install the 'lambda-worker-otel' extra for full ADOT support." - ) - - # Set as global so the OpenTelemetryPlugin picks it up. - set_tracer_provider(tracer_provider) + _ensure_tracer_provider(endpoint, service_name) apply_tracing(config) @@ -195,23 +211,12 @@ def build_metrics_telemetry_config( A ``TelemetryConfig`` ready to pass to :py:class:`temporalio.runtime.Runtime`. """ - if not endpoint: - endpoint = "http://localhost:4317" - - otel_config = OpenTelemetryConfig( - url=endpoint, + return _serverless.build_metrics_telemetry_config( + endpoint=endpoint, + service_name=service_name, metric_periodicity=metric_periodicity, ) - global_tags: dict[str, str] = {} - if service_name: - global_tags["service_name"] = service_name - - return TelemetryConfig( - metrics=otel_config, - global_tags=global_tags, - ) - def apply_tracing(config: LambdaWorkerConfig) -> None: """Configure only OTel tracing (no metrics) on the Lambda worker config. diff --git a/temporalio/contrib/aws/s3driver/README.md b/temporalio/contrib/aws/s3driver/README.md index 7494e4b96..d4939a37e 100644 --- a/temporalio/contrib/aws/s3driver/README.md +++ b/temporalio/contrib/aws/s3driver/README.md @@ -68,13 +68,16 @@ Activity key: v0/ns/{namespace}/at/{activity-type}/ai/{activity-id}/ri/{run-id}/d/{hash-algorithm}/{hex-digest} -Fallback key (used when no namespace, workflow, or activity information is available): +Key without a target, scoped to the namespace of the client or worker performing the operation +(`null` when it is unknown): - v0/d/{hash-algorithm}/{hex-digest} + v0/ns/{namespace}/d/{hash-algorithm}/{hex-digest} - Missing values (including a missing run ID) are encoded as the literal `null`. +- An empty namespace on a workflow or activity target is written as `/ns/null`. - `hex-digest` is the lower-case SHA-256 hex digest (64 characters). - Dynamic path segments are percent-encoded: any byte outside S3's [safe character set](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html) (`0-9`, `a-z`, `A-Z`, and `! - _ . * ' ( )`) is escaped as `%XX` over its UTF-8 bytes. +- Keys exceeding S3's 1,024-byte limit after encoding fall back to `v0/ns/{namespace}/d/sha256/{hex-digest}`, retaining the namespace for access policies. Existing saved references remain readable, including references with no namespace segment. ### Notes @@ -103,17 +106,26 @@ driver = S3StorageDriver( ### Required IAM permissions -The AWS credentials used by your S3 client must have the following S3 permissions on the target bucket and its objects: +Components that store payloads with the built-in aioboto3 adapter require `s3:PutObject`, `s3:GetObject`, and `s3:ListBucket`: ```json { - "Effect": "Allow", - "Action": [ - "s3:PutObject", - "s3:GetObject" - ], - "Resource": "arn:aws:s3:::my-temporal-payloads/*" + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": ["s3:PutObject", "s3:GetObject"], + "Resource": "arn:aws:s3:::my-temporal-payloads/*" + }, + { + "Effect": "Allow", + "Action": "s3:ListBucket", + "Resource": "arn:aws:s3:::my-temporal-payloads" + } + ] } ``` -`s3:PutObject` is required by components that store payloads (typically the Temporal client and worker sending workflow/activity inputs), and `s3:GetObject` is required by components that retrieve them (typically workers and clients reading results). Components that only retrieve payloads do not need `s3:PutObject`, and vice versa. +Uploads check whether an object already exists using `HeadObject`, which requires read permission even for components that only store payloads. Without `s3:ListBucket`, S3 returns 403 instead of 404 for a missing object, so the driver cannot distinguish it from an access denial and stops the upload. See the [AWS HeadObject permissions documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html). + +Components that only retrieve payloads require `s3:GetObject`; they do not need `s3:PutObject` or `s3:ListBucket`. diff --git a/temporalio/contrib/aws/s3driver/_driver.py b/temporalio/contrib/aws/s3driver/_driver.py index 4bcf9de25..d7a7ca9a6 100644 --- a/temporalio/contrib/aws/s3driver/_driver.py +++ b/temporalio/contrib/aws/s3driver/_driver.py @@ -146,12 +146,16 @@ async def store( Python value may serialize differently across payload converter versions (e.g. proto binary). The returned list is the same length as ``payloads``. + + Object keys exceeding 1,024 bytes fall back to a namespace-scoped hash + key. Without a target, keys are scoped to the context's namespace. An + empty or missing namespace uses ``"null"``. """ # Build context segments from the target identity. context_segments = "" target = context.target - namespace = _percent_encode(target.namespace) if target is not None else None - namespace_segment = f"/ns/{namespace}" if namespace else "" + namespace = target.namespace if target is not None else context.namespace + namespace_segment = f"/ns/{_percent_encode(namespace) or 'null'}" if isinstance(target, StorageDriverWorkflowInfo): wf_type = _percent_encode(target.type) or "null" wf_id = _percent_encode(target.id) or "null" @@ -178,6 +182,9 @@ async def _upload(payload: Payload) -> StorageDriverClaim: digest_segments = f"/d/sha256/{hash_digest}" key = f"v0{namespace_segment}{context_segments}{digest_segments}" + if len(key.encode("utf-8")) > 1024: + # Retain namespace scope for authorization policies on object prefixes. + key = f"v0{namespace_segment}{digest_segments}" try: if not await self._client.object_exists(bucket=bucket, key=key): diff --git a/temporalio/contrib/aws/s3driver/aioboto3.py b/temporalio/contrib/aws/s3driver/aioboto3.py index f6eda82ec..538aa38e1 100644 --- a/temporalio/contrib/aws/s3driver/aioboto3.py +++ b/temporalio/contrib/aws/s3driver/aioboto3.py @@ -43,7 +43,11 @@ def describe(self) -> Mapping[str, str]: return {"client_region": region} if region else {} async def object_exists(self, *, bucket: str, key: str) -> bool: - """Check existence via aioboto3's ``head_object``.""" + """Check existence via aioboto3's ``head_object``. + + Requires ``s3:GetObject`` and ``s3:ListBucket`` permissions so missing + objects return 404 rather than an ambiguous 403. + """ try: await self._client.head_object(Bucket=bucket, Key=key) return True diff --git a/temporalio/contrib/deepagents/README.md b/temporalio/contrib/deepagents/README.md index da9092978..b95edb7fb 100644 --- a/temporalio/contrib/deepagents/README.md +++ b/temporalio/contrib/deepagents/README.md @@ -1,339 +1,39 @@ -# DeepAgentsPlugin — Temporal plugin for LangChain Deep Agents +# Deep Agents integration -Make a [Deep Agent](https://github.com/langchain-ai/deepagents) durable by adding -one plugin. Build your agent with `create_temporal_deep_agent(...)` (or vanilla -`create_deep_agent(...)`) inside a `@workflow.defn`, add -`plugins=[DeepAgentsPlugin(...)]` to your Client (or Worker), and each LLM call -and each I/O tool call becomes a Temporal Activity — while the agent's control -loop runs, and deterministically replays, inside the Workflow. +The Deep Agents integration has moved to the independently versioned +[`temporalio-deepagents`](https://pypi.org/project/temporalio-deepagents/) +package. Its canonical Python API is `temporalio.deepagents`. -The code you already wrote against `deepagents` does not change: sub-agents, -planning/todo state, the filesystem middleware, human-in-the-loop interrupts, and -`agent.ainvoke(...)` all keep working. You get crash-durability, resumable -human-in-the-loop, and bounded history on top. +The complete integration guide now lives in the +[`temporalio-deepagents` README](https://github.com/temporalio/ai-integrations/tree/main/python/deepagents#readme). -> This package is experimental and may change in future versions. +## Migrating to the standalone package -## Install +Remove the `deepagents` extra from the existing Temporal dependency: -```bash -uv add "temporalio[deepagents]" -``` - -(or `pip install "temporalio[deepagents]"`). Requires Python ≥ 3.11 (the same -floor `deepagents` sets). - -## Hello world - -```python -import asyncio -from datetime import timedelta - -from deepagents import create_deep_agent # no import guard needed; see below -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.deepagents import ( - DeepAgentsPlugin, - create_temporal_deep_agent, -) -from temporalio.worker import Worker - - -@workflow.defn -class ResearchAgent: - @workflow.run - async def run(self, question: str) -> str: - # create_temporal_deep_agent wraps deepagents' create_deep_agent and - # scopes this agent's model-call activity options explicitly. - agent = create_temporal_deep_agent( - model="anthropic:claude-sonnet-4-5", - system_prompt="You are a careful research assistant.", - activity_options={"start_to_close_timeout": timedelta(minutes=5)}, - ) - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": question}]} - ) - return result["messages"][-1].content - - -async def main() -> None: - # API keys live on the worker via the model provider, never in workflow - # inputs or history. The default provider is LangChain's init_chat_model. - plugin = DeepAgentsPlugin() - # Add the plugin on ONE side. The SDK propagates a Client plugin to any - # Worker built from that Client, so the Worker below inherits it. - client = await Client.connect("localhost:7233", plugins=[plugin]) - worker = Worker( - client, - task_queue="deepagents-task-queue", - workflows=[ResearchAgent], - ) - await worker.run() - - -if __name__ == "__main__": - asyncio.run(main()) -``` - -Two things worth noticing: - -- **No `workflow.unsafe.imports_passed_through()` guard.** The plugin - configures the workflow sandbox to pass the `deepagents` / LangChain import - tree through, so workflow files import them like any other module. -- **Vanilla `create_deep_agent(...)` also works.** The plugin substitutes the - durable model automatically whenever `model=` is a name string; use - `create_temporal_deep_agent` when you want to scope `activity_options` to one - agent instead of configuring plugin-wide defaults. - -## What this plugin gives you - -- **Drop-in durability.** `create_deep_agent(...).ainvoke(...)` runs unchanged - inside a Workflow. The loop replays deterministically; every nondeterministic - step (LLM, I/O tool, real filesystem/shell op) is an Activity. -- **One LLM call per Activity.** The Workflow ships only the model *name*; the - worker's `model_provider` builds the real client. Temporal owns retries and - timeouts (LLM-SDK retries are disabled). -- **Sub-agents inherit durability.** Because sub-agents inherit the parent's - `model` object and tools, substituting them once propagates to the whole agent - tree — no per-sub-agent wiring. -- Tools, real-I/O backends, human-in-the-loop, streaming, and continue-as-new - each get a section below. - -## Configuring activity options +```toml +# Before +dependencies = [ + "temporalio[deepagents,opentelemetry,pydantic]", +] -Per agent (recommended): `create_temporal_deep_agent(..., activity_options=...)` -as in Hello world above. Plugin-wide defaults use two keyed maps, because model -calls and tool calls have different timeout profiles: - -```python -from datetime import timedelta - -from temporalio.contrib.deepagents import DeepAgentsPlugin - -plugin = DeepAgentsPlugin( - # A single config, or a map keyed by MODEL name (thinking-mode models get - # longer timeouts than fast ones). - model_activity_options={"start_to_close_timeout": timedelta(minutes=5)}, - # A single config, or a map keyed by TOOL name. - tool_activity_options={"start_to_close_timeout": timedelta(seconds=30)}, -) +# After +dependencies = [ + "temporalio[opentelemetry,pydantic]", +] ``` -## Tools: the Workflow-vs-Activity choice, made explicit - -A tool that only mutates agent state can run in-workflow; a tool that does real -I/O must not. Both directions are one call: - -```python -from datetime import timedelta - -from langchain_core.tools import tool -from temporalio import activity -from temporalio.contrib.deepagents import activity_as_tool, tool_as_activity - - -@activity.defn -async def get_weather(city: str) -> str: - """Return the current weather for a city.""" - return f"It is sunny and 22C in {city}." +Remove the brackets if no extras remain. Then install the standalone package directly: - -@tool -def web_search(query: str) -> str: - """Search the web for a query.""" - return f"Top result for {query!r}: ..." - - -# An existing Temporal activity, exposed to the agent as a tool: -weather_tool = activity_as_tool( - get_weather, start_to_close_timeout=timedelta(seconds=30) -) -# A LangChain tool whose body does I/O, moved into an activity: -search_tool = tool_as_activity( - web_search, start_to_close_timeout=timedelta(seconds=30) -) -``` - -Pass both to `create_temporal_deep_agent(..., tools=[weather_tool, -search_tool])`. An unwrapped, non-builtin tool runs in-workflow and the plugin -warns at construction, so the choice is never silent. Deep Agents' pure -built-ins (`write_todos`, state-backed file tools) stay in-workflow by design. - -## Durable file and shell backends - -Wrap a real-I/O backend (`FilesystemBackend` / `LocalShellBackend` / -`StoreBackend`) in `TemporalBackend` and the agent's *built-in* file and shell -tools execute as durable `deepagents.backend_op` Activities instead of touching -disk from workflow code: - -```python -from datetime import timedelta - -from deepagents.backends import FilesystemBackend -from temporalio import workflow -from temporalio.contrib.deepagents import TemporalBackend, create_temporal_deep_agent - - -@workflow.defn -class FilesystemAgent: - @workflow.run - async def run(self, root_dir: str) -> str: - backend = TemporalBackend( - FilesystemBackend(root_dir=root_dir, virtual_mode=True), - activity_options={"start_to_close_timeout": timedelta(seconds=30)}, - ) - agent = create_temporal_deep_agent( - model="anthropic:claude-sonnet-4-5", - backend=backend, - ) - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": "Take notes as you work."}]} - ) - return result["messages"][-1].content -``` - -State-only backends (the default) need no wrapping — they are pure workflow -state, replayed deterministically. - -## Human-in-the-loop - -With `interrupt_on=...`, the agent pauses before a guarded tool and -`ainvoke(...)` returns the pending approval under the SDK-native -`__interrupt__` key — directly in your workflow. Expose it via a Query and -resume with an Update; no shim exception, the native LangGraph resume protocol -is used as-is: - -```python -from langgraph.checkpoint.memory import InMemorySaver -from langgraph.types import Command -from temporalio import workflow -from temporalio.contrib.deepagents import create_temporal_deep_agent - - -@workflow.defn -class ApprovalAgent: - def __init__(self) -> None: - self._pending: str | None = None - self._decision: str | None = None - - @workflow.run - async def run(self, request: str) -> str: - agent = create_temporal_deep_agent( - model="anthropic:claude-sonnet-4-5", - interrupt_on={"book_trip": True}, - checkpointer=InMemorySaver(), - ) - config = {"configurable": {"thread_id": workflow.info().workflow_id}} - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": request}]}, config=config - ) - if result.get("__interrupt__"): - self._pending = str(result["__interrupt__"][0].value) - await workflow.wait_condition(lambda: self._decision is not None) - result = await agent.ainvoke( - Command(resume={"decisions": [{"type": self._decision}]}), - config=config, - ) - return result["messages"][-1].content - - @workflow.query - def pending_approval(self) -> str | None: - return self._pending - - @workflow.update - async def resume(self, decision: str) -> None: - self._decision = decision -``` - -A client polls `pending_approval`, shows it to a person, and calls the -`resume` update with `"approve"` / `"reject"`. - -## Streaming - -Set `streaming_topic=` on the plugin and model dispatch switches to a streaming -Activity that publishes chunk batches to a -`temporalio.contrib.workflow_streams` topic for live subscribers — while the -aggregated final message still returns to the workflow, so the durable result -is identical to the non-streaming path: - -```python -from temporalio.contrib.deepagents import DeepAgentsPlugin - -plugin = DeepAgentsPlugin(streaming_topic="agent-stream") -``` - -Subscribers read the topic with `WorkflowStreamClient`; each item is an -`AIMessageChunk` in `langchain_core.load.dumpd` form. - -## Continue-as-new: what carries and what does not - -Long conversations bloat workflow history. `run_deep_agent(agent, input, -state_snapshot=...)` snapshots state and continues into a fresh run when the -turn ends with pending todos and the server recommends continuing -(`workflow.info().is_continue_as_new_suggested()`, the default and recommended -mode — it accounts for history length *and* size): - -```python -from deepagents import create_deep_agent -from temporalio import workflow -from temporalio.contrib.deepagents import run_deep_agent - - -@workflow.defn -class LongResearchAgent: - @workflow.run - async def run(self, input: dict, state_snapshot: dict | None = None) -> dict: - agent = create_deep_agent(model="anthropic:claude-sonnet-4-5") - return await run_deep_agent( - agent, - input, - state_snapshot=state_snapshot, - ) +```bash +uv add temporalio-deepagents ``` -Pass `continue_as_new_after=N` instead to trigger on a fixed history-event -count. - -- **Carries forward:** the accumulated messages and the model/tool result cache - (so an LLM/tool call completed before the continue-as-new is *not* re-run - after it). Your `@workflow.run` must accept `state_snapshot=None` as shown. -- **Does not carry forward:** anything held only in an in-memory checkpointer's - own structures beyond the messages/todos snapshot. The default in-workflow - `InMemorySaver` is rehydrated for free by deterministic replay; a durable - checkpointer that does its own I/O is not replay-safe from inside a workflow, - and the plugin warns if you pass one — prefer the snapshot + continue-as-new - path above. - -## Runtime behavior - -While a worker built with this plugin is running, the plugin wraps -`deepagents.create_deep_agent` so a bare `model="provider:name"` string is -auto-routed through an Activity. The wrapper only rewrites arguments when called -*inside a workflow*, so importing `deepagents` on a plain client or activity -worker is unaffected, and the original function is restored when the worker -stops. If you would rather be explicit, use `create_temporal_deep_agent` or -pass `TemporalModel("provider:name")` yourself. - -## Composing with other plugins - -This plugin carries no tracing context of its own. For observability, compose it -with `temporalio.contrib.langsmith` or `temporalio.contrib.opentelemetry` — -registration order does not matter: +Change application imports to the standalone package: ```python -from temporalio.client import Client -from temporalio.contrib.deepagents import DeepAgentsPlugin - - -async def connect(): - return await Client.connect( - "localhost:7233", - plugins=[ - # LangSmithPlugin(), # or OpenTelemetryPlugin(), in either order - DeepAgentsPlugin(), - ], - ) +from temporalio.deepagents import DeepAgentsPlugin ``` -For agents built directly as LangGraph graphs (rather than a compiled Deep -Agent), see `temporalio.contrib.langgraph`. +The new import path selects the standalone implementation instead of the +SDK-bundled `temporalio.contrib.deepagents` implementation. diff --git a/temporalio/contrib/deepagents/__init__.py b/temporalio/contrib/deepagents/__init__.py index 26febecb3..e2d768bee 100644 --- a/temporalio/contrib/deepagents/__init__.py +++ b/temporalio/contrib/deepagents/__init__.py @@ -1,68 +1,12 @@ -"""Temporal plugin for LangChain Deep Agents. +"""Compatibility imports for the standalone Deep Agents integration. -Make an existing Deep Agent durable by adding one plugin: build your agent with -``create_deep_agent(...)`` inside a ``@workflow.defn`` and add -``plugins=[DeepAgentsPlugin(...)]`` to your Client or Worker. Each LLM call and -each I/O tool call becomes a Temporal activity, while the agent's control loop -runs — and deterministically replays — inside the workflow. +Install ``temporalio-deepagents`` and import ``temporalio.deepagents`` +directly in new code. -.. warning:: - This package is experimental and may change in future versions. - -The public names are imported lazily so ``import temporalio.contrib.deepagents`` -succeeds before LangChain is installed; touching a name that needs LangChain -imports it on first access. +Legacy ``testing`` and ``workflow`` modules forward the standalone public API. """ -from __future__ import annotations - -from typing import TYPE_CHECKING - -__all__ = [ - "DeepAgentsPlugin", - "TemporalModel", - "TemporalBackend", - "activity_as_tool", - "tool_as_activity", - "run_deep_agent", - "create_temporal_deep_agent", - "DeepAgentsWorkflowError", -] - -if TYPE_CHECKING: - from temporalio.contrib.deepagents._model import TemporalModel - from temporalio.contrib.deepagents._plugin import DeepAgentsPlugin - from temporalio.contrib.deepagents._tools import ( - TemporalBackend, - activity_as_tool, - tool_as_activity, - ) - from temporalio.contrib.deepagents.workflow import ( - DeepAgentsWorkflowError, - create_temporal_deep_agent, - run_deep_agent, - ) - - -def __getattr__(name: str) -> object: - if name == "DeepAgentsPlugin": - from temporalio.contrib.deepagents._plugin import DeepAgentsPlugin - - return DeepAgentsPlugin - if name == "TemporalModel": - from temporalio.contrib.deepagents._model import TemporalModel - - return TemporalModel - if name in ("TemporalBackend", "activity_as_tool", "tool_as_activity"): - from temporalio.contrib.deepagents import _tools - - return getattr(_tools, name) - if name in ( - "DeepAgentsWorkflowError", - "run_deep_agent", - "create_temporal_deep_agent", - ): - from temporalio.contrib.deepagents import workflow - - return getattr(workflow, name) - raise AttributeError(f"module {__name__!r} has no attribute {name!r}") +from temporalio.deepagents import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.deepagents import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, +) diff --git a/temporalio/contrib/deepagents/_activity.py b/temporalio/contrib/deepagents/_activity.py deleted file mode 100644 index 3c1501a42..000000000 --- a/temporalio/contrib/deepagents/_activity.py +++ /dev/null @@ -1,363 +0,0 @@ -"""The activities that carry every nondeterministic Deep Agents operation. - -The Deep Agents control loop runs *inside* the workflow; the operations that -must not run there — talking to an LLM, executing a tool that does real I/O, or -touching a real filesystem / shell backend — are moved out to these activities. - -Each activity is a method on :class:`DeepAgentActivities` so the worker-only -dependencies (the ``model_provider`` that builds real chat models from a name, -the streaming batch interval) can be captured on the instance rather than -smuggled through activity inputs. API keys therefore live on the worker, never -in a workflow input or in history. - -Every method: - -* takes a single serializable dataclass in and returns a single dataclass out - (LangChain objects travel as their ``dumpd`` JSON form via - :mod:`temporalio.contrib.deepagents._serde`); -* translates the LLM SDK's HTTP error into Temporal's retry contract so a 429 - honors the upstream ``retry-after`` instead of hammering it; -* heartbeats on a background task so a slow (thinking-mode / long-context) call - is not mistaken for a stuck worker. -""" - -from __future__ import annotations - -import asyncio -import dataclasses -import importlib -from datetime import timedelta -from functools import wraps -from typing import Any, Callable - -from temporalio import activity -from temporalio.contrib.deepagents import _serde -from temporalio.exceptions import ApplicationError - -# Activity type names. The workflow dispatches by these strings, so the -# in-workflow model / tool stubs never import the activity class itself. -INVOKE_MODEL = "deepagents.invoke_model" -INVOKE_MODEL_STREAMING = "deepagents.invoke_model_streaming" -INVOKE_TOOL = "deepagents.invoke_tool" -BACKEND_OP = "deepagents.backend_op" - - -# --------------------------------------------------------------------------- -# Boundary payloads -# --------------------------------------------------------------------------- - - -@dataclasses.dataclass -class ModelActivityInput: - """A single LLM request. - - ``model_name`` is resolved to a real model by the worker's - ``model_provider``; the workflow never ships credentials. - """ - - model_name: str - messages: list[Any] - """Messages in ``langchain_core.load.dumpd`` form.""" - tool_schemas: list[dict[str, Any]] = dataclasses.field(default_factory=list) - """OpenAI-format tool advertisements (name + description + argument schema).""" - bind_kwargs: dict[str, Any] = dataclasses.field(default_factory=dict) - config: dict[str, Any] = dataclasses.field(default_factory=dict) - """A stripped ``RunnableConfig`` (see :func:`_serde.strip_runnable_config`).""" - streaming_topic: str | None = None - - -@dataclasses.dataclass -class ModelActivityOutput: - """The model's reply. - - ``message`` is an ``AIMessage`` in ``dumpd`` form, carrying tool calls, - usage, and response metadata. - """ - - message: Any - - -@dataclasses.dataclass -class ToolActivityInput: - """One tool execution routed to an activity.""" - - tool_name: str - tool_call_id: str - args: dict[str, Any] - config: dict[str, Any] = dataclasses.field(default_factory=dict) - - -@dataclasses.dataclass -class ToolActivityOutput: - """A tool result as a ``ToolMessage`` in ``dumpd`` form.""" - - message: Any - - -@dataclasses.dataclass -class BackendOpInput: - """A single filesystem / shell / store operation for a wrapped backend.""" - - backend_ref: str - """Key identifying which registered backend to act on.""" - op: str - """Backend method name, e.g. ``ls`` / ``read_file`` / ``write_file`` / ``execute``.""" - args: list[Any] = dataclasses.field(default_factory=list) - kwargs: dict[str, Any] = dataclasses.field(default_factory=dict) - - -@dataclasses.dataclass -class BackendOpOutput: - """The backend operation's return value. - - Deepagents protocol dataclasses (``WriteResult`` / ``ReadResult`` / …) - ride in the tagged form produced by ``_serde.dump_backend_result`` so the - in-workflow stub can rebuild the real type; plain JSON values pass - through unchanged. - """ - - result: Any - - -# --------------------------------------------------------------------------- -# Heartbeating + error translation -# --------------------------------------------------------------------------- - - -def _auto_heartbeater(fn: Callable) -> Callable: - """Heartbeat at half the configured ``heartbeat_timeout`` while ``fn`` runs. - - Long LLM calls (thinking mode, long context, streaming accumulation) can run - well past a scheduler's patience; without a heartbeat Temporal would cancel - them and surface a ``HeartbeatTimeoutError`` instead of the real problem. - """ - - @wraps(fn) - async def wrapped(*args: Any, **kwargs: Any) -> Any: - heartbeat_timeout = activity.info().heartbeat_timeout - beat_task: asyncio.Task | None = None - if heartbeat_timeout: - interval = heartbeat_timeout.total_seconds() / 2 - - async def beat() -> None: - while True: - activity.heartbeat() - await asyncio.sleep(interval) - - beat_task = asyncio.create_task(beat()) - try: - return await fn(*args, **kwargs) - finally: - if beat_task is not None: - beat_task.cancel() - # Let the cancellation land before returning so no pending task - # outlives the activity (a bare ``cancel()`` leaves the task to - # be destroyed while pending if the loop shuts down first). - # ``asyncio.wait`` never re-raises the task's CancelledError. - await asyncio.wait([beat_task]) - - return wrapped - - -def _translate_api_error(exc: Exception) -> ApplicationError | None: - """Map an LLM SDK HTTP error onto Temporal's retry contract. - - Works by duck typing so neither ``openai`` nor ``anthropic`` needs to be - imported here: both expose ``status_code`` and ``response.headers``. Returns - ``None`` when ``exc`` is not a recognizable HTTP status error, so the caller - can fall through to its generic handling. - """ - status = getattr(exc, "status_code", None) - if status is None: - return None - headers: dict[str, Any] = {} - response = getattr(exc, "response", None) - if response is not None: - headers = dict(getattr(response, "headers", {}) or {}) - # Case-insensitive header access. - lower = {str(k).lower(): v for k, v in headers.items()} - - retryable = status in (408, 409, 429) or 500 <= status < 600 - should_retry = lower.get("x-should-retry") - if should_retry == "false": - retryable = False - elif should_retry == "true": - retryable = True - - delay_ms = lower.get("retry-after-ms") - retry_after = lower.get("retry-after") - next_delay: timedelta | None = None - try: - if delay_ms is not None: - next_delay = timedelta(milliseconds=int(delay_ms)) - elif retry_after is not None: - next_delay = timedelta(seconds=int(retry_after)) - except (TypeError, ValueError): - next_delay = None - - return ApplicationError( - str(exc), - type=type(exc).__name__, - non_retryable=not retryable, - next_retry_delay=next_delay, - ) - - -# --------------------------------------------------------------------------- -# The activities -# --------------------------------------------------------------------------- - - -def _default_model_provider(model_name: str) -> Any: - """Build a chat model from a name string with LLM-SDK retries disabled. - - Temporal owns retries; the model client must not also retry, or a single - logical attempt fans out into nested retry storms that Temporal can neither - see nor bound. - """ - # importlib: `langchain` (unlike langchain-core) is absent on Python 3.10 - # environments where the deepagents extra cannot install; a static import - # here fails type-checking there. - init_chat_model = importlib.import_module("langchain.chat_models").init_chat_model - - return init_chat_model(model_name, max_retries=0) - - -class DeepAgentActivities: - """Holds the worker-side dependencies and exposes the four activities. - - An instance is created by ``DeepAgentsPlugin`` - and its bound methods are registered on the worker. - """ - - def __init__( - self, - *, - model_provider: Callable[[str], Any] | None = None, - streaming_batch_interval: timedelta = timedelta(milliseconds=100), - ) -> None: - """Store the worker-side model provider + streaming configuration.""" - self._model_provider = model_provider or _default_model_provider - self._streaming_batch_interval = streaming_batch_interval - - def _build_bound_model(self, input: ModelActivityInput) -> Any: - model = self._model_provider(input.model_name) - if input.bind_kwargs: - model = model.bind(**input.bind_kwargs) - if input.tool_schemas: - model = model.bind_tools(input.tool_schemas) - return model - - @activity.defn(name=INVOKE_MODEL) - @_auto_heartbeater - async def invoke_model(self, input: ModelActivityInput) -> ModelActivityOutput: - """Run exactly one LLM call and return the resulting ``AIMessage``.""" - messages = _serde.load_messages(input.messages) - config = _serde.rebuild_runnable_config(input.config) - model = self._build_bound_model(input) - try: - message = await model.ainvoke(messages, config=config) - except Exception as exc: - translated = _translate_api_error(exc) - if translated is not None: - activity.logger.warning( - "Model call failed with an HTTP status error", exc_info=True - ) - raise translated from exc - raise - return ModelActivityOutput(message=_serde.dump_object(message)) - - @activity.defn(name=INVOKE_MODEL_STREAMING) - @_auto_heartbeater - async def invoke_model_streaming( - self, input: ModelActivityInput - ) -> ModelActivityOutput: - """Stream one LLM call, publishing chunk batches to ``streaming_topic``. - - Token-level deltas are coalesced at ``streaming_batch_interval`` and - pushed to external subscribers via the shared workflow-streams topic; the - aggregated final ``AIMessage`` is returned to the workflow so the - durable result is identical to the non-streaming path. - """ - from temporalio.contrib.workflow_streams import WorkflowStreamClient - - messages = _serde.load_messages(input.messages) - config = _serde.rebuild_runnable_config(input.config) - model = self._build_bound_model(input) - - final: Any = None - try: - async with WorkflowStreamClient.from_within_activity( - batch_interval=self._streaming_batch_interval - ) as client: - topic = ( - client.topic(input.streaming_topic) - if input.streaming_topic - else None - ) - async for chunk in model.astream(messages, config=config): - if topic is not None: - topic.publish(_serde.dump_object(chunk)) - final = chunk if final is None else final + chunk - except Exception as exc: - translated = _translate_api_error(exc) - if translated is not None: - activity.logger.warning( - "Streaming model call failed with an HTTP status error", - exc_info=True, - ) - raise translated from exc - raise - return ModelActivityOutput(message=_serde.dump_object(final)) - - @activity.defn(name=INVOKE_TOOL) - @_auto_heartbeater - async def invoke_tool(self, input: ToolActivityInput) -> ToolActivityOutput: - """Execute one registered tool and return its ``ToolMessage``.""" - from temporalio.contrib.deepagents._tools import get_registered_tool - - tool = get_registered_tool(input.tool_name) - if tool is None: - raise ApplicationError( - f"Tool {input.tool_name!r} is not registered on this worker. " - f"Wrap it with tool_as_activity(...) or activity_as_tool(...).", - type="DeepAgentsUnknownTool", - non_retryable=True, - ) - config = _serde.rebuild_runnable_config(input.config) - tool_call = { - "name": input.tool_name, - "args": input.args, - "id": input.tool_call_id, - "type": "tool_call", - } - message = await tool.ainvoke(tool_call, config=config) - return ToolActivityOutput(message=_serde.dump_object(message)) - - @activity.defn(name=BACKEND_OP) - @_auto_heartbeater - async def backend_op(self, input: BackendOpInput) -> BackendOpOutput: - """Run one operation against a registered (real-I/O) backend.""" - from temporalio.contrib.deepagents._tools import registered_backends - - backend = registered_backends().get(input.backend_ref) - if backend is None: - raise ApplicationError( - f"Backend {input.backend_ref!r} is not registered on this worker.", - type="DeepAgentsUnknownBackend", - non_retryable=True, - ) - method = getattr(backend, input.op, None) - if method is None: - raise ApplicationError( - f"Backend {input.backend_ref!r} has no operation {input.op!r}.", - type="DeepAgentsUnknownBackendOp", - non_retryable=True, - ) - result = method(*input.args, **input.kwargs) - if asyncio.iscoroutine(result): - result = await result - # Protocol results are plain dataclasses whose attributes the - # middleware reads in-workflow — tag them so the stub can rebuild - # the real type instead of receiving a decayed dict. - return BackendOpOutput(result=_serde.dump_backend_result(result)) diff --git a/temporalio/contrib/deepagents/_model.py b/temporalio/contrib/deepagents/_model.py deleted file mode 100644 index 2d97f992d..000000000 --- a/temporalio/contrib/deepagents/_model.py +++ /dev/null @@ -1,372 +0,0 @@ -"""The model seam: a chat model whose every call becomes a Temporal activity. - -:class:`TemporalModel` is a real ``BaseChatModel``. Placed anywhere Deep Agents -expects a model, it routes each generation through the ``deepagents.invoke_model`` -activity instead of calling the provider inline. Because Deep Agents' sub-agents -inherit the parent's ``model`` instance by default, substituting this one object -makes every model call in the whole agent tree durable — no middleware injection -that a sub-agent could silently miss. - -Two ways to get one: - -* explicit — the user writes ``TemporalModel("anthropic:claude-...")`` and hands - it to ``create_deep_agent(model=...)``; this is the public type users assert - against; -* implicit — while running inside a workflow, the plugin patches - ``create_deep_agent`` so a bare ``model="anthropic:..."`` string is wrapped - automatically (see :func:`install_model_patch`). - -Worker-wide dispatch defaults (activity options, streaming topic) live in -:class:`temporalio.contrib.deepagents._serde.Settings`, a module global set by -the plugin. They live in ``_serde`` (not here) so the plugin can configure them -without importing this module — which would drag LangChain into plugin -construction. This module is under ``temporalio``, which the workflow sandbox -passes through, so the object the workflow reads is the same one the plugin set. -""" - -from __future__ import annotations - -import importlib -from collections.abc import AsyncIterator, Iterator, Mapping, Sequence -from datetime import timedelta -from typing import Any - -from temporalio import workflow -from temporalio.contrib.deepagents import _activity, _serde - -with workflow.unsafe.imports_passed_through(): - from langchain_core.callbacks import ( - AsyncCallbackManagerForLLMRun, - CallbackManagerForLLMRun, - ) - from langchain_core.language_models import BaseChatModel - from langchain_core.messages import AIMessageChunk, BaseMessage - from langchain_core.outputs import ChatGeneration, ChatGenerationChunk, ChatResult - - -def _as_message_chunk(message: Any) -> Any: - """Re-shape a finished ``AIMessage`` as the ``AIMessageChunk`` a stream yields.""" - return AIMessageChunk( - content=getattr(message, "content", ""), - additional_kwargs=getattr(message, "additional_kwargs", {}) or {}, - response_metadata=getattr(message, "response_metadata", {}) or {}, - id=getattr(message, "id", None), - tool_calls=getattr(message, "tool_calls", []) or [], - usage_metadata=getattr(message, "usage_metadata", None), - ) - - -# --------------------------------------------------------------------------- -# Activity-option resolution (worker-wide defaults live in _serde.Settings) -# --------------------------------------------------------------------------- - - -_DEFAULT_MODEL_TIMEOUT = timedelta(minutes=5) - - -def _resolve_activity_options( - model_name: str, instance_options: Mapping[str, Any] | None -) -> dict[str, Any]: - """Merge worker defaults with a per-instance override into execute_activity kwargs.""" - opts: dict[str, Any] = {} - default = _serde.get_settings().model_activity_options - if isinstance(default, Mapping) and not _looks_like_activity_config(default): - # Mapping[model_name, ActivityConfig]: pick this model's entry. - chosen = default.get(model_name) - if isinstance(chosen, Mapping): - opts.update(chosen) - elif isinstance(default, Mapping): - opts.update(default) - if instance_options: - opts.update(instance_options) - opts.setdefault("start_to_close_timeout", _DEFAULT_MODEL_TIMEOUT) - return opts - - -def _looks_like_activity_config(m: Mapping[str, Any]) -> bool: - """A single ``ActivityConfig`` has known option keys; a per-model map does not.""" - known = { - "task_queue", - "schedule_to_close_timeout", - "schedule_to_start_timeout", - "start_to_close_timeout", - "heartbeat_timeout", - "retry_policy", - "cancellation_type", - "activity_id", - "versioning_intent", - "summary", - "priority", - } - return bool(m) and all(k in known for k in m) - - -# --------------------------------------------------------------------------- -# The model -# --------------------------------------------------------------------------- - - -class TemporalModel(BaseChatModel): - """A ``BaseChatModel`` that runs each generation as a Temporal activity. - - Args: - model: The provider model name resolved worker-side by the plugin's - ``model_provider`` (e.g. ``"anthropic:claude-sonnet-4-5"``). Only the - name crosses the workflow boundary; credentials stay on the worker. - activity_options: Optional per-model ``execute_activity`` overrides - (timeouts, retry policy). Falls back to the plugin's - ``model_activity_options``. - """ - - model: str - activity_options: dict[str, Any] | None = None - - # ``protected_namespaces=()`` silences pydantic's warning about the ``model`` - # field colliding with its ``model_`` namespace. - model_config = {"arbitrary_types_allowed": True, "protected_namespaces": ()} - - @property - def _llm_type(self) -> str: - return "temporal-deepagents" - - def bind_tools( - self, - tools: Sequence[Any], - *, - tool_choice: Any | None = None, - **kwargs: Any, - ) -> Any: - """Bind tools to the model the way LangChain's ``create_agent`` expects. - - ``BaseChatModel.bind_tools`` is abstract (raises ``NotImplementedError``), - but the agent factory calls ``model.bind_tools(tools, ...)`` on every model - node — so a durable model must implement it or the whole loop dies. The - tools are converted to their JSON schema *now* (at bind time) so the bound - object is serialization-safe, and carried as the ``tools`` kwarg that - :meth:`_build_input` already reads and forwards to the activity, where the - real provider model is what actually binds them. - """ - schemas = [ - t if isinstance(t, dict) else _serde.tool_to_schema(t) for t in tools - ] - if tool_choice is not None: - kwargs["tool_choice"] = tool_choice - return self.bind(tools=schemas, **kwargs) - - def _summary(self) -> str: - return f"invoke_model[{self.model}]" - - def _build_input( - self, - messages: Sequence[BaseMessage], - streaming_topic: str | None, - **kwargs: Any, - ) -> _activity.ModelActivityInput: - tools = kwargs.get("tools") or [] - tool_schemas = [ - t if isinstance(t, dict) else _serde.tool_to_schema(t) for t in tools - ] - bind_kwargs = { - k: v - for k, v in kwargs.items() - if k not in ("tools", "config", "run_manager", "stop", "callbacks") - and _serde._is_jsonish(v) - } - if kwargs.get("stop"): - bind_kwargs["stop"] = kwargs["stop"] - return _activity.ModelActivityInput( - model_name=self.model, - messages=_serde.dump_messages(messages), - tool_schemas=tool_schemas, - bind_kwargs=bind_kwargs, - config=_serde.strip_runnable_config(kwargs.get("config") or {}), - streaming_topic=streaming_topic, - ) - - def _generate( - self, - messages: list[BaseMessage], - stop: list[str] | None = None, - run_manager: CallbackManagerForLLMRun | None = None, - **kwargs: Any, - ) -> ChatResult: - raise NotImplementedError( - "TemporalModel is async-only inside a Temporal workflow. Drive the " - "agent with `await agent.ainvoke(...)` / `.astream(...)`, which uses " - "the async model path." - ) - - async def _agenerate( - self, - messages: list[BaseMessage], - stop: list[str] | None = None, - run_manager: AsyncCallbackManagerForLLMRun | None = None, - **kwargs: Any, - ) -> ChatResult: - from temporalio.contrib.deepagents.workflow import call_model - - activity_input = self._build_input(messages, None, stop=stop, **kwargs) - opts = _resolve_activity_options(self.model, self.activity_options) - output = await call_model( - _activity.INVOKE_MODEL, - activity_input, - summary=self._summary(), - **opts, - ) - message = _serde.load_object(output.message) - return ChatResult(generations=[ChatGeneration(message=message)]) - - async def _astream( - self, - messages: list[BaseMessage], - stop: list[str] | None = None, - run_manager: AsyncCallbackManagerForLLMRun | None = None, - **kwargs: Any, - ) -> AsyncIterator[ChatGenerationChunk]: - from temporalio.contrib.deepagents.workflow import call_model - - topic = _serde.get_settings().streaming_topic - opts = _resolve_activity_options(self.model, self.activity_options) - if topic: - activity_input = self._build_input(messages, topic, stop=stop, **kwargs) - output = await call_model( - _activity.INVOKE_MODEL_STREAMING, - activity_input, - summary=f"invoke_model_streaming[{self.model}]", - **opts, - ) - else: - # No topic configured: fall back to a single response-level chunk. - activity_input = self._build_input(messages, None, stop=stop, **kwargs) - output = await call_model( - _activity.INVOKE_MODEL, - activity_input, - summary=self._summary(), - **opts, - ) - message = _serde.load_object(output.message) - yield ChatGenerationChunk(message=_as_message_chunk(message)) - - def _stream( - self, - messages: list[BaseMessage], - stop: list[str] | None = None, - run_manager: CallbackManagerForLLMRun | None = None, - **kwargs: Any, - ) -> Iterator[ChatGenerationChunk]: - raise NotImplementedError( - "TemporalModel streaming is async-only; use `agent.astream(...)`." - ) - - -# --------------------------------------------------------------------------- -# create_deep_agent model patch (implicit wrapping) -# --------------------------------------------------------------------------- -# -# The durability seam is ``deepagents._models.resolve_model``, which -# ``create_deep_agent`` calls to turn a ``model=`` string (or instance) into a -# ``BaseChatModel`` — for both the top-level agent and every ``SubAgent`` -# (``graph.py`` lines 592 and 634). We patch it on the ``deepagents.graph`` -# module, where ``create_deep_agent``'s body resolves the ``resolve_model`` name -# at call time. -# -# Patching *this* seam (not ``deepagents.create_deep_agent``) is what makes the -# rewrite survive the user's import style. A user who writes the idiomatic -# ``from deepagents import create_deep_agent`` binds the *original* function -# object into their module; rebinding the ``deepagents.create_deep_agent`` -# attribute would never be seen by that already-bound reference, so string -# models would reach the real provider inside the workflow (a hang / non- -# determinism). ``create_deep_agent``'s body, by contrast, always looks up -# ``resolve_model`` in the ``deepagents.graph`` globals afresh on each call, so -# rebinding it there is observed no matter how the caller imported the factory. -# It also preserves ``_model_spec`` (the original string), which the factory -# reads *before* calling ``resolve_model`` for harness-profile lookup. -# -# ``create_deep_agent`` is still wrapped separately, best-effort, purely to fire -# the construction-time warnings that need the ``tools`` / ``checkpointer`` -# kwargs (those warnings are advisory and carry no durability weight). - -_original_create_deep_agent: Any = None -_original_resolve_model: Any = None - - -def _wrap_model_arg(model: Any) -> Any: - """Resolve a ``create_deep_agent`` model argument to a durable model. - - A name string becomes a :class:`TemporalModel`. A :class:`TemporalModel` - passes through. Any other live ``BaseChatModel`` instance is rejected at the - workflow boundary: it has no name the activity could rebuild from, so it would - run its provider call *inside the workflow* — nondeterministic and unsafe. - """ - from temporalio.contrib.deepagents.workflow import DeepAgentsWorkflowError - - if isinstance(model, str): - return TemporalModel(model=model) - if isinstance(model, TemporalModel): - return model - if isinstance(model, BaseChatModel): - raise DeepAgentsWorkflowError( - f"create_deep_agent received a live {type(model).__name__} model " - f"instance, which would run inside the workflow (nondeterministic). " - f'Pass model="provider:name" (auto-routed through an activity) or ' - f"wrap it as TemporalModel(...) instead." - ) - return model - - -def install_model_patch() -> None: - """Route Deep Agents' model resolution through :class:`TemporalModel`. - - Patches ``deepagents.graph.resolve_model`` (the seam ``create_deep_agent`` - uses for the main agent *and* every sub-agent) so a bare ``model="..."`` - string becomes a durable :class:`TemporalModel`, and additionally wraps - ``deepagents.create_deep_agent`` to fire the advisory tool / checkpointer - warnings. Both only act when called inside a workflow, so importing - deepagents on a plain client / activity worker is unaffected. Idempotent. - """ - global _original_create_deep_agent, _original_resolve_model - # importlib: `deepagents` is absent on Python 3.10 environments (its floor - # is 3.11), so static imports here fail type-checking there. - deepagents = importlib.import_module("deepagents") - _graph = importlib.import_module("deepagents.graph") - - if _original_resolve_model is None: - _original_resolve_model = _graph.resolve_model - - def patched_resolve_model(model: Any) -> Any: - if workflow.in_workflow(): - return _wrap_model_arg(model) - return _original_resolve_model(model) - - setattr(_graph, "resolve_model", patched_resolve_model) - - if _original_create_deep_agent is None: - _original_create_deep_agent = deepagents.create_deep_agent - - def patched(*args: Any, **kwargs: Any) -> Any: - if workflow.in_workflow(): - from temporalio.contrib.deepagents._tools import warn_unwrapped_tools - from temporalio.contrib.deepagents.workflow import ( - warn_durable_checkpointer, - ) - - warn_unwrapped_tools(kwargs.get("tools")) - warn_durable_checkpointer(kwargs.get("checkpointer")) - return _original_create_deep_agent(*args, **kwargs) - - setattr(deepagents, "create_deep_agent", patched) - - -def uninstall_model_patch() -> None: - """Restore the original ``resolve_model`` / ``create_deep_agent``.""" - global _original_create_deep_agent, _original_resolve_model - if _original_resolve_model is not None: - _graph = importlib.import_module("deepagents.graph") - - setattr(_graph, "resolve_model", _original_resolve_model) - _original_resolve_model = None - if _original_create_deep_agent is not None: - deepagents = importlib.import_module("deepagents") - - setattr(deepagents, "create_deep_agent", _original_create_deep_agent) - _original_create_deep_agent = None diff --git a/temporalio/contrib/deepagents/_plugin.py b/temporalio/contrib/deepagents/_plugin.py deleted file mode 100644 index 3b95fcdaf..000000000 --- a/temporalio/contrib/deepagents/_plugin.py +++ /dev/null @@ -1,296 +0,0 @@ -"""The plugin object users add to ``plugins=[...]``. - -:class:`DeepAgentsPlugin` wires everything together so that existing -``deepagents`` code — ``create_deep_agent(...).ainvoke(...)`` — runs durably -inside a ``@workflow.defn`` with no other changes: - -* registers the four activities that carry the nondeterministic work; -* installs the LangChain-aware data converter (composing, never clobbering, a - user converter); -* passes the LangChain / LangGraph / deepagents import tree through the workflow - sandbox; -* wraps the worker run in a ``run_context`` that patches Deep Agents' model - resolution seam (``deepagents.graph.resolve_model``) to auto-route bare - ``model=`` strings through activities — regardless of how the user imported - ``create_deep_agent``; -* registers :class:`DeepAgentsWorkflowError` as a workflow-failure type; -* pushes the model / tool dispatch defaults down to the seams that read them. - -The plugin auto-propagates from a ``Client`` to any ``Worker`` built from it, so -add it on exactly one side. ``configure_worker`` additionally de-duplicates -activities by name, so a user who mistakenly adds it on both sides gets a clean -no-op instead of a "More than one activity named ..." crash. -""" - -from __future__ import annotations - -import sys -import warnings -from collections.abc import AsyncIterator, Sequence -from contextlib import asynccontextmanager -from dataclasses import replace -from datetime import timedelta -from typing import Any, Callable - -from temporalio import activity as activity_mod -from temporalio.contrib.deepagents import _serde, _tools -from temporalio.contrib.deepagents._activity import DeepAgentActivities -from temporalio.contrib.deepagents.workflow import DeepAgentsWorkflowError -from temporalio.plugin import SimplePlugin -from temporalio.worker import WorkflowRunner -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner - -# Runtime floor for the Deep Agents control loop. Kept in a constant so -# static checkers do not narrow `sys.version_info` comparisons into -# unreachable-code findings on new interpreters. -_MIN_PYTHON = (3, 11) - - -class DeepAgentsPlugin(SimplePlugin): - """Temporal plugin that makes LangChain Deep Agents durable. - - Args: - model_provider: Builds a real chat model from a name string, worker-side. - This is where API keys live; only the model name ever crosses the - workflow boundary. Defaults to LangChain's ``init_chat_model`` with - LLM-SDK retries disabled (Temporal owns retries). - model_activity_options: ``ActivityConfig`` (or ``Mapping[model_name, - ActivityConfig]``) for the model activities — timeouts, retry policy. - tool_activity_options: ``ActivityConfig`` (or ``Mapping[tool_name, - ActivityConfig]``) default for tools wrapped with ``tool_as_activity``. - streaming_topic: When set, model calls stream through the streaming - activity and publish chunk batches to this workflow-streams topic. - streaming_batch_interval: How long the streaming activity coalesces - chunks before publishing a batch. - passthrough_modules: Extra sandbox-passthrough modules, merged with the - plugin's LangChain/deepagents defaults. - data_converter: Override the default LangChain-aware converter. ``None`` - installs the default; the SDK default is upgraded in place; any other - converter raises (fold ``DeepAgentsPayloadConverter`` into your own). - """ - - def __init__( - self, - *, - model_provider: Callable[[str], Any] | None = None, - model_activity_options: Any = None, - tool_activity_options: Any = None, - streaming_topic: str | None = None, - streaming_batch_interval: timedelta = timedelta(milliseconds=100), - passthrough_modules: Sequence[str] | None = None, - data_converter: Any = None, - ) -> None: - """Configure the plugin; see the class docstring for parameters.""" - if sys.version_info < _MIN_PYTHON: - warnings.warn( - "DeepAgentsPlugin requires Python >= 3.11 (deepagents pins " - ">=3.11); the Deep Agents control loop relies on contextvars " - "propagation through asyncio that older versions lack.", - stacklevel=2, - ) - - self._passthrough_modules = passthrough_modules - # Held on the instance so the wiring is statically traceable: each is - # passed straight into the call that consumes it (below), not stashed as - # dead config. - self._tool_activity_options = tool_activity_options - self._data_converter = data_converter - - # Push dispatch defaults down to the model and tool seams that read them. - # These live in ``_serde`` / ``_tools`` (langchain-free modules) so - # constructing the plugin never imports LangChain. ``tool_activity_options`` - # is stored under ``_tools._tool_defaults`` and read back on the tool - # dispatch path by ``_tools._resolve_tool_options(...)`` — which - # ``tool_as_activity`` calls to compute each tool activity's timeout/retry - # when the caller does not override ``activity_options``. - _serde.set_settings( - model_activity_options=model_activity_options, - streaming_topic=streaming_topic, - ) - # wired-via-composition: consumed on the tool dispatch path in _tools.py - # (_resolve_tool_options), renamed to ``options`` at the callsite. - _tools.set_tool_defaults(self._tool_activity_options) - - # The activities that carry the nondeterministic work. model_provider and - # the batch interval are captured here so API keys never enter an input. - self._activities = DeepAgentActivities( - model_provider=model_provider, - streaming_batch_interval=streaming_batch_interval, - ) - activities = [ - self._activities.invoke_model, - self._activities.invoke_model_streaming, - self._activities.invoke_tool, - self._activities.backend_op, - ] - - super().__init__( - "langchain.DeepAgentsPlugin", - activities=activities, - # wired-via-composition: ``data_converter`` flows into SimplePlugin's - # own ``data_converter`` kwarg (renamed to ``user_converter`` inside - # build_data_converter), which installs it on the client/worker. - data_converter=_serde.build_data_converter(self._data_converter), - workflow_runner=self._make_workflow_runner(), - workflow_failure_exception_types=[DeepAgentsWorkflowError], - run_context=self._run_context, - ) - - # -- sandbox passthrough ------------------------------------------------- - - def _make_workflow_runner( - self, - ) -> Callable[[WorkflowRunner | None], WorkflowRunner]: - modules = _serde.resolve_passthrough_modules(self._passthrough_modules) - - def workflow_runner(runner: WorkflowRunner | None) -> WorkflowRunner: - if runner is None: - raise ValueError("No WorkflowRunner provided to DeepAgentsPlugin.") - if isinstance(runner, SandboxedWorkflowRunner): - return replace( - runner, - restrictions=runner.restrictions.with_passthrough_modules(*modules), - ) - return runner - - return workflow_runner - - # -- run context --------------------------------------------------------- - - @asynccontextmanager - async def _run_context(self) -> AsyncIterator[None]: - """Patch Deep Agents' model resolution seam for the worker's lifetime. - - The patch (on ``deepagents.graph.resolve_model``, the seam - ``create_deep_agent`` uses for the agent and every sub-agent) only - rewrites ``model=`` strings when running inside a workflow, so it is inert - on plain clients / activity workers. Determinism itself - rides on the same mechanism ``contrib.langgraph`` uses — the loop is - in-workflow and every nondeterministic call is an activity — so no - speculative time/uuid shims are installed here. - - One shim *is* required: LangChain's ``create_agent`` factory wraps every - model node with LangSmith's ``@traceable``, whose async path hops onto a - thread via ``asyncio.run_in_executor`` — which the deterministic workflow - event loop does not implement (it raises ``NotImplementedError``). Tracing - is an observability concern that must not run in-workflow, so we install - LangSmith's own Temporal escape hatch (``set_runtime_overrides``) to run - that setup inline when ``in_workflow()``, and defer to the default thread - hop everywhere else (activities / clients, where tracing is fine). - """ - # Imported lazily (not at module top) so plugin construction stays - # langchain-free; the patch is only needed once the worker is running. - # The import itself is inside the guard: on a worker without LangChain - # installed (e.g. one that only runs the plugin's determinism / failure - # paths) importing ``_model`` raises ``ModuleNotFoundError``, and the - # worker must still start — it simply runs without the auto-wrap patch. - patched = False - try: - from temporalio.contrib.deepagents import _model, _tools - - _model.install_model_patch() - _tools.install_backend_async_patch() - patched = True - except ImportError as exc: # LangChain / deepagents absent on this worker - # Deliberately ImportError only: a *missing* optional dependency - # must not stop the worker, but a genuine patch-installation bug - # (e.g. upstream renaming the seam raises AttributeError) must - # surface at startup, not degrade into silent in-workflow calls. - warnings.warn( - f"DeepAgentsPlugin could not patch create_deep_agent ({exc}); " - "use explicit TemporalModel(...) instances to route model calls " - "through activities.", - stacklevel=2, - ) - # Installed for the life of the process, never uninstalled — see - # _install_langsmith_temporal_override for why. - _install_langsmith_temporal_override() - try: - yield - finally: - if patched: - # Import is cached: patched=True implies the import above succeeded. - from temporalio.contrib.deepagents import _model, _tools - - _model.uninstall_model_patch() - _tools.uninstall_backend_async_patch() - - # -- worker config ------------------------------------------------------- - - def configure_worker(self, config: Any) -> Any: - """Deduplicate activity registrations after the base configuration.""" - config = super().configure_worker(config) - activities = config.get("activities") - if activities: - config["activities"] = _dedupe_activities(activities) - return config - - -async def _temporal_aio_to_thread( - default_aio_to_thread: Callable[..., Any], - ctx: Any, - func: Callable[..., Any], - /, - *args: Any, - **kwargs: Any, -) -> Any: - """Run LangSmith's ``aio_to_thread`` seam safely inside a workflow. - - Outside a workflow (activities, clients) we defer to LangSmith's default - thread hop. Inside a workflow the deterministic event loop cannot spawn a - thread, so we run the setup inline in the requested context. ``func`` here is - LangSmith's own run-tree bookkeeping — cheap and side-effect-free with respect - to workflow determinism. - """ - from temporalio import workflow - - if not workflow.in_workflow(): - return await default_aio_to_thread(ctx, func, *args, **kwargs) - with workflow.unsafe.sandbox_unrestricted(): - return ctx.run(func, *args, **kwargs) - - -def _install_langsmith_temporal_override() -> None: - """Route LangSmith's thread hop inline while in a workflow. - - ``set_runtime_overrides`` mutates a module global in the sandbox-passthrough - ``langsmith`` package, so the in-workflow tracer sees it too. No-op (and - harmless) when LangSmith is not installed or too old to expose - ``set_runtime_overrides``. - - The override is deliberately installed for the life of the process and - never uninstalled: LangSmith exposes a single process-wide override slot - (each ``set_runtime_overrides`` call replaces it wholesale), and - ``temporalio.contrib.langsmith`` installs a behaviorally identical override - exactly once, without reinstalling. Resetting the slot on this worker's - shutdown would therefore permanently strip a composed LangSmith plugin's - workflow-safety override. Leaving it installed is safe: the override defers - to LangSmith's default thread hop whenever ``workflow.in_workflow()`` is - false, so it is inert outside workflows. - """ - try: - import langsmith - - langsmith.set_runtime_overrides(aio_to_thread=_temporal_aio_to_thread) - except Exception: - pass - - -def _dedupe_activities(activities: Sequence[Any]) -> list[Any]: - """Drop duplicate activity registrations by defn name, keeping the first. - - Guards the "plugin added on both Client and Worker" trap, where the plugin's - activities would otherwise be appended twice and the worker would reject the - duplicate names. - """ - seen: set[str] = set() - out: list[Any] = [] - for act in activities: - defn = activity_mod._Definition.from_callable(act) - name = defn.name if defn is not None else getattr(act, "__name__", repr(act)) - key = name or repr(act) - if key in seen: - continue - seen.add(key) - out.append(act) - return out diff --git a/temporalio/contrib/deepagents/_serde.py b/temporalio/contrib/deepagents/_serde.py deleted file mode 100644 index 13ed0d1c6..000000000 --- a/temporalio/contrib/deepagents/_serde.py +++ /dev/null @@ -1,410 +0,0 @@ -"""Serialization helpers, a result cache, and worker-runtime configuration. - -The Deep Agents control loop runs *inside* the Temporal workflow, so the values -that actually cross the workflow⇄activity boundary are a small set of LangChain -types: chat messages, tool-call descriptors, and the ``RunnableConfig`` metadata -attached to each model / tool call. LangChain messages are polymorphic -``Serializable`` models (an ``AIMessage`` must not be rehydrated as a -``ToolMessage``) and ``RunnableConfig`` carries live callback / checkpointer -references, so neither survives a naive round-trip. This module owns: - -* message (de)serialization via ``langchain_core.load.dumpd`` / ``load`` — the - round-trip that preserves message subtype and tool-call structure; -* the strip → ship → rebuild dance for ``RunnableConfig``; -* tool → JSON-schema advertisement (full name + description + argument schema, - never ``{name, description}`` alone — without the argument schema the model - picks the right tool but hallucinates its arguments); -* the Pydantic data converter (``exclude_unset=True``) the plugin installs on - the client and replayer, so message payloads stay small and round-trip - cleanly; -* a workflow-scoped result cache so model / tool results computed before a - ``continue_as_new`` are reused rather than recomputed after it; -* the sandbox passthrough module list covering LangChain's transitive - eager-import tree. - -LangChain imports are deferred into the functions that need them, so importing -this module — and constructing the plugin — does not require LangChain to be -installed on the machine assembling the worker. -""" - -from __future__ import annotations - -import contextvars -import dataclasses -import hashlib -import json -from typing import TYPE_CHECKING, Any, cast - -if TYPE_CHECKING: - from langchain_core.runnables import RunnableConfig - -from temporalio.contrib.pydantic import PydanticPayloadConverter, ToJsonOptions -from temporalio.converter import DataConverter - -# --------------------------------------------------------------------------- -# Worker-wide dispatch settings -# --------------------------------------------------------------------------- -# -# These are fixed for the worker's lifetime (not per-workflow state), so a module -# global is correct. This module lives under ``temporalio``, which the workflow -# sandbox passes through, so the object the in-workflow model stub reads is the -# same one the plugin configured. They live here (not in ``_model``) so that -# ``DeepAgentsPlugin`` can push them down without importing ``_model`` — which -# would drag in LangChain at plugin-construction time. - - -@dataclasses.dataclass -class Settings: - """Dispatch defaults shared by every ``TemporalModel`` on the worker.""" - - model_activity_options: Any = None - """``ActivityConfig`` or ``Mapping[model_name, ActivityConfig]``.""" - streaming_topic: str | None = None - - -_settings = Settings() - - -def set_settings( - *, - model_activity_options: Any = None, - streaming_topic: str | None = None, -) -> None: - """Install the worker-wide model dispatch defaults (called by the plugin).""" - _settings.model_activity_options = model_activity_options - _settings.streaming_topic = streaming_topic - - -def get_settings() -> Settings: - """Return the active dispatch settings.""" - return _settings - - -# --------------------------------------------------------------------------- -# Data converter -# --------------------------------------------------------------------------- - - -class DeepAgentsPayloadConverter(PydanticPayloadConverter): - """Pydantic payload converter pinned to ``exclude_unset=True``. - - LangChain request/response types (and ``DeepAgentState``) are deeply nested - with many ``Optional[...] = None`` fields. Shipping every unset default - inflates payloads several-fold and some peers reject the explicit nulls on - round-trip, so we exclude unset fields by convention. - """ - - def __init__(self) -> None: - """Construct the converter with ``exclude_unset`` serialization.""" - super().__init__(ToJsonOptions(exclude_unset=True)) - - -data_converter = DataConverter(payload_converter_class=DeepAgentsPayloadConverter) -"""The plugin's default data converter (LangChain messages are shipped as their -``dumpd`` JSON form, so the Pydantic converter only ever sees plain containers).""" - - -def build_data_converter( - user_converter: DataConverter | None, -) -> DataConverter: - """Compose the plugin's converter with whatever the caller already set. - - * ``None`` — install the plugin default. - * the SDK default converter — swap in the LangChain-aware Pydantic - converter via :func:`dataclasses.replace`. - * a custom converter — refuse rather than silently clobber it; the caller - must fold :class:`DeepAgentsPayloadConverter` into their own converter. - """ - if user_converter is None: - return data_converter - if user_converter is DataConverter.default: - return dataclasses.replace( - user_converter, payload_converter_class=DeepAgentsPayloadConverter - ) - raise ValueError( - "DeepAgentsPlugin cannot compose with a custom data_converter " - "automatically. Set payload_converter_class=DeepAgentsPayloadConverter " - "on your own DataConverter (so LangChain messages serialize with " - "exclude_unset=True), or omit data_converter to use the plugin default." - ) - - -# --------------------------------------------------------------------------- -# LangChain object (de)serialization -# --------------------------------------------------------------------------- - - -def dump_object(obj: Any) -> Any: - """Serialize a single LangChain ``Serializable`` (message, tool call, …).""" - from langchain_core.load import dumpd - - return dumpd(obj) - - -def load_object(data: Any) -> Any: - """Rehydrate a value produced by :func:`dump_object`, preserving subtype.""" - from langchain_core.load import load - - return load(data) - - -# --------------------------------------------------------------------------- -# Backend protocol result (de)serialization -# --------------------------------------------------------------------------- - -_BACKEND_DATACLASS_KEY = "__deepagents_dataclass__" - - -def dump_backend_result(value: Any) -> Any: - """Encode a backend op's return value for the activity boundary. - - Backend protocol results (``WriteResult`` / ``ReadResult`` / ``GrepResult`` - and their nested ``FileInfo`` / ``GrepMatch`` items, …) are plain - dataclasses — not LangChain ``Serializable`` objects — and the filesystem - middleware reads their ATTRIBUTES in-workflow, so a plain JSON round-trip - (which decays them to dicts) breaks the seam at the first real backend op. - Tag deepagents dataclasses with their import path so - :func:`load_backend_result` rebuilds the real type; anything else (str, - dict, a custom backend's own types) passes through with today's - plain-JSON behavior. - """ - import dataclasses - - if dataclasses.is_dataclass(value) and not isinstance(value, type): - cls = type(value) - dumped_fields = { - f.name: dump_backend_result(getattr(value, f.name)) - for f in dataclasses.fields(value) - } - if cls.__module__.split(".", 1)[0] == "deepagents": - return { - _BACKEND_DATACLASS_KEY: f"{cls.__module__}:{cls.__qualname__}", - "fields": dumped_fields, - } - return dumped_fields - if isinstance(value, (list, tuple)): - return [dump_backend_result(v) for v in value] - if isinstance(value, dict): - return {k: dump_backend_result(v) for k, v in value.items()} - return value - - -def load_backend_result(value: Any) -> Any: - """Rebuild a value produced by :func:`dump_backend_result`. - - Only ``deepagents.*`` dataclasses are reconstructed (the tag is written - exclusively for them); anything else would mean a forged payload, so - refuse rather than import arbitrary types. Reconstruction suppresses - ``DeprecationWarning``: this is transport, not user code — the backend - already constructed the object once on the activity side, and required - deprecated fields (e.g. ``WriteResult.files_update``) would otherwise - warn on every op. Field values equal to a declared default are omitted - from the constructor call. - """ - import dataclasses - import importlib - import warnings - - if isinstance(value, dict) and _BACKEND_DATACLASS_KEY in value: - path = value[_BACKEND_DATACLASS_KEY] - module_name, _, qualname = path.partition(":") - if module_name.split(".", 1)[0] != "deepagents": - raise ValueError(f"refusing to rebuild non-deepagents type {path!r}") - obj: Any = importlib.import_module(module_name) - for part in qualname.split("."): - obj = getattr(obj, part) - if not (isinstance(obj, type) and dataclasses.is_dataclass(obj)): - raise ValueError(f"{path!r} is not a dataclass") - loaded = {k: load_backend_result(v) for k, v in value["fields"].items()} - kwargs = {} - for f in dataclasses.fields(obj): - if f.name not in loaded: - continue - if f.default is not dataclasses.MISSING and loaded[f.name] == f.default: - continue - kwargs[f.name] = loaded[f.name] - with warnings.catch_warnings(): - warnings.simplefilter("ignore", DeprecationWarning) - return obj(**kwargs) - if isinstance(value, list): - return [load_backend_result(v) for v in value] - if isinstance(value, dict): - return {k: load_backend_result(v) for k, v in value.items()} - return value - - -def dump_messages(messages: Any) -> list[Any]: - """Serialize a sequence of LangChain messages to their ``dumpd`` form.""" - from langchain_core.load import dumpd - - return [dumpd(m) for m in messages] - - -def load_messages(dumped: list[Any]) -> list[Any]: - """Rehydrate messages serialized by :func:`dump_messages`.""" - from langchain_core.load import load - - return [load(d) for d in dumped] - - -def tool_to_schema(tool: Any) -> dict[str, Any]: - """Advertise a tool to the model as a full OpenAI tool schema. - - Carries name + description + argument JSON schema so the model can build - valid arguments, not just select the tool by name. - """ - from langchain_core.utils.function_calling import convert_to_openai_tool - - return convert_to_openai_tool(tool) - - -# --------------------------------------------------------------------------- -# RunnableConfig strip / rebuild -# --------------------------------------------------------------------------- - - -def _is_jsonish(value: Any) -> bool: - if value is None or isinstance(value, (str, int, float, bool)): - return True - if isinstance(value, (list, tuple)): - return all(_is_jsonish(v) for v in value) - if isinstance(value, dict): - return all(isinstance(k, str) and _is_jsonish(v) for k, v in value.items()) - return False - - -def strip_runnable_config(config: Any) -> dict[str, Any]: - """Reduce a live ``RunnableConfig`` to its JSON-safe subset for shipping. - - Keeps ``tags``, ``run_name``, ``run_id``, ``recursion_limit``, JSON-safe - ``metadata`` and the JSON-safe (non-dunder) ``configurable`` keys. Drops - callbacks, checkpointer / store / cache handles and every other live - reference — those are reconstructed activity-side. - """ - if not config: - return {} - out: dict[str, Any] = {} - if config.get("tags"): - out["tags"] = list(config["tags"]) - for key in ("run_id", "run_name"): - if config.get(key) is not None: - out[key] = str(config[key]) - if config.get("recursion_limit") is not None: - out["recursion_limit"] = config["recursion_limit"] - metadata = config.get("metadata") - if isinstance(metadata, dict): - out["metadata"] = {k: v for k, v in metadata.items() if _is_jsonish(v)} - configurable = config.get("configurable") - if isinstance(configurable, dict): - kept = { - k: v - for k, v in configurable.items() - if not k.startswith("__") and _is_jsonish(v) - } - if kept: - out["configurable"] = kept - return out - - -def rebuild_runnable_config(data: dict[str, Any]) -> "RunnableConfig": - """Reconstruct a minimal ``RunnableConfig`` from :func:`strip_runnable_config`.""" - config: dict[str, Any] = {"metadata": dict(data.get("metadata", {}))} - if data.get("tags"): - config["tags"] = list(data["tags"]) - for key in ("run_id", "run_name"): - if data.get(key) is not None: - config[key] = data[key] - if data.get("recursion_limit") is not None: - config["recursion_limit"] = data["recursion_limit"] - if data.get("configurable"): - config["configurable"] = dict(data["configurable"]) - # Double cast: a TypedDict and dict[str, Any] "insufficiently overlap" - # for basedpyright's reportInvalidCast; object is the sanctioned bridge. - return cast("RunnableConfig", cast(object, config)) - - -# --------------------------------------------------------------------------- -# Result cache (continue-as-new dedup) -# --------------------------------------------------------------------------- - -# Per-workflow state: set at the top of the workflow run, read by the model and -# tool dispatch paths, snapshotted for continue-as-new. A ContextVar (not a -# module-global keyed by run id) so update / signal handler tasks spawned by the -# workflow inherit the same cache automatically. -_result_cache: contextvars.ContextVar[dict[str, Any] | None] = contextvars.ContextVar( - "_deepagents_result_cache", default=None -) - - -def set_result_cache(cache: dict[str, Any] | None) -> None: - """Seed the workflow-scoped result cache (e.g. carried across CAN).""" - _result_cache.set(dict(cache) if cache else {}) - - -def result_cache_snapshot() -> dict[str, Any] | None: - """Return a serializable copy of the cache, or ``None`` when empty.""" - cache = _result_cache.get() - return dict(cache) if cache else None - - -def cache_key(kind: str, call_id: str, args: Any) -> str: - """Stable key over ``(kind, call_id, args)`` for cache lookups.""" - blob = json.dumps([kind, call_id, args], default=str, sort_keys=True) - return hashlib.sha256(blob.encode("utf-8")).hexdigest() - - -def cache_lookup(key: str) -> tuple[bool, Any]: - """Return ``(hit, value)`` for ``key`` in the active cache.""" - cache = _result_cache.get() - if cache is not None and key in cache: - return True, cache[key] - return False, None - - -def cache_put(key: str, value: Any) -> None: - """Record ``value`` under ``key`` when a cache is active for this run.""" - cache = _result_cache.get() - if cache is not None: - cache[key] = value - - -# --------------------------------------------------------------------------- -# Sandbox passthrough -# --------------------------------------------------------------------------- - -# The workflow sandbox re-imports modules per run; LangChain / LangGraph / -# deepagents build large class hierarchies with eager import side effects, and -# LangSmith pulls in numpy. Passing them through means "import once in the host -# and share", which is both faster and required for identity checks -# (isinstance across the sandbox boundary) to hold. -_DEFAULT_PASSTHROUGH: tuple[str, ...] = ( - "langchain", - "langchain_core", - "langchain_anthropic", - "langgraph", - "deepagents", - "langsmith", - "numpy", - "pydantic", - "pydantic_core", - "anthropic", - "tiktoken", - "jsonpatch", - "jsonpointer", - "tenacity", - "orjson", - "httpx", - "httpcore", -) - - -def default_passthrough_modules() -> tuple[str, ...]: - """The LangChain / deepagents transitive import tree passed through the sandbox.""" - return _DEFAULT_PASSTHROUGH - - -def resolve_passthrough_modules(user: Any) -> tuple[str, ...]: - """Merge caller-supplied passthrough modules with the plugin defaults.""" - merged = [*_DEFAULT_PASSTHROUGH, *(user or ())] - # dict.fromkeys preserves order while de-duplicating. - return tuple(dict.fromkeys(merged)) diff --git a/temporalio/contrib/deepagents/_tools.py b/temporalio/contrib/deepagents/_tools.py deleted file mode 100644 index 1235224c6..000000000 --- a/temporalio/contrib/deepagents/_tools.py +++ /dev/null @@ -1,517 +0,0 @@ -"""The tool + backend seams: the explicit per-unit Workflow-vs-Activity choice. - -Deep Agents holds its tools and filesystem/shell backends in-workflow. A tool or -backend op that only reads and writes ``DeepAgentState`` is pure and belongs in -the workflow (deterministic, replay-safe). One that does real I/O — a web -search, a shell command, a disk write — must not run there. This module gives -the user three explicit ways to move that work to an activity: - -* :func:`activity_as_tool` — expose an existing ``@activity.defn`` as a Deep - Agents tool (Temporal adopters already have activities; don't make them - re-declare); -* :func:`tool_as_activity` — wrap a LangChain ``BaseTool`` / callable so its - execution runs as an activity; -* :class:`TemporalBackend` — wrap a real-I/O backend so each file/exec op runs - as an activity. - -The choice is always explicit: an unwrapped non-builtin tool runs in-workflow, -and the plugin warns at construction so that is a conscious decision, never a -silent one. - -Registries here live in a ``temporalio``-namespaced (sandbox-passthrough) module, -so the object the worker's activity sees is the same one the module-level -``tool_as_activity(...)`` / ``TemporalBackend(...)`` call populated. They hold -worker-wide wiring, not per-workflow state. -""" - -from __future__ import annotations - -import importlib -import threading -import uuid as _uuid -import warnings -import weakref -from collections.abc import Mapping -from datetime import timedelta -from functools import wraps -from typing import TYPE_CHECKING, Any, Callable - -from temporalio import activity as activity_mod -from temporalio import workflow -from temporalio.contrib.deepagents import _activity, _serde - -# LangChain is a runtime dependency of the *tool seam*, but importing this module -# must not require it (the plugin imports it just to read tool defaults). So the -# ``langchain_core.tools`` symbols are imported lazily inside the functions that -# actually build tools; ``from __future__ import annotations`` keeps the type -# hints below as strings so they never touch LangChain at import time. -if TYPE_CHECKING: - from langchain_core.tools import BaseTool - - -# --------------------------------------------------------------------------- -# Tool registry (worker-side execution targets) -# --------------------------------------------------------------------------- - -_TOOL_REGISTRY: dict[str, "BaseTool"] = {} -_BACKEND_REGISTRY: dict[str, Any] = {} -# Serializes registration against the GC-time unregister in -# _unregister_backend, which may run on another thread. -_BACKEND_REGISTRY_LOCK = threading.Lock() - -# Worker-wide default activity options for tools wrapped with tool_as_activity, -# set by the plugin. Not per-workflow state: fixed for the worker's lifetime, and -# this module is sandbox-passthrough so the workflow sees the configured value. -_tool_defaults: dict[str, Any] = {} - - -def set_tool_defaults(options: Any) -> None: - """Install the plugin's default ``tool_activity_options`` (called by the plugin). - - Accepts a single ``ActivityConfig`` or a ``Mapping[tool_name, ActivityConfig]``. - """ - _tool_defaults.clear() - if options: - _tool_defaults["__value__"] = options - - -def _resolve_tool_options( - tool_name: str, instance_options: Mapping[str, Any] | None -) -> dict[str, Any]: - """Merge plugin tool defaults (possibly per-tool) with a per-call override.""" - opts: dict[str, Any] = {} - default = _tool_defaults.get("__value__") - if isinstance(default, Mapping): - per_tool = default.get(tool_name) - if isinstance(per_tool, Mapping): - opts.update(per_tool) - elif not any(isinstance(v, Mapping) for v in default.values()): - opts.update(default) - if instance_options: - opts.update(instance_options) - return opts - - -# Names of tools that route through Temporal (activity_as_tool / tool_as_activity), -# used to warn about unwrapped non-builtin tools at workflow build time. -_ROUTED_TOOL_NAMES: set[str] = set() - -# Deep Agents' built-in tools run in-workflow (pure state mutations); they are -# not expected to be wrapped, so they never trigger the unwrapped-tool warning. -# These are the LLM-facing TOOL names (``read_file``, ``write_file``, …) — -# NOT the backend protocol method names in ``_BACKEND_OPS`` (``read``, -# ``aread``, …); the two namespaces intentionally differ. -_BUILTIN_TOOL_NAMES = frozenset( - { - "write_todos", - "ls", - "read_file", - "write_file", - "edit_file", - "glob", - "grep", - "execute", - "task", - } -) - - -def register_tool(tool: BaseTool) -> None: - """Record ``tool`` so :meth:`DeepAgentActivities.invoke_tool` can run it.""" - _TOOL_REGISTRY[tool.name] = tool - - -def warn_unwrapped_tools(tools: Any) -> None: - """Warn once per unwrapped, non-builtin tool passed to ``create_deep_agent``. - - Running a tool in-workflow is only safe if it is pure/deterministic. The - Workflow-vs-Activity choice must be conscious, so any user tool that was not - routed through :func:`tool_as_activity` / :func:`activity_as_tool` gets a - construction-time warning rather than silently executing in the workflow. - """ - for tool in tools or (): - name = getattr(tool, "name", getattr(tool, "__name__", None)) - if name is None or name in _BUILTIN_TOOL_NAMES or name in _ROUTED_TOOL_NAMES: - continue - warnings.warn( - f"Tool {name!r} is passed to create_deep_agent unwrapped and will run " - f"inside the workflow. That is only safe if it is pure/deterministic. " - f"If it does I/O, wrap it with tool_as_activity(...) or expose an " - f"existing activity with activity_as_tool(...).", - stacklevel=3, - ) - - -def get_registered_tool(name: str) -> BaseTool | None: - """Look up a tool registered by :func:`register_tool`.""" - return _TOOL_REGISTRY.get(name) - - -def register_backend(ref: str, backend: Any) -> None: - """Record a backend so :meth:`DeepAgentActivities.backend_op` can reach it.""" - with _BACKEND_REGISTRY_LOCK: - _BACKEND_REGISTRY[ref] = backend - - -def _unregister_backend(ref: str, inner: Any) -> None: - """Drop ``ref`` from the registry if it still maps to ``inner``. - - GC hook for :class:`TemporalBackend` (via ``weakref.finalize``): a wrapper - is typically constructed per workflow run, so without cleanup a long-lived - worker accumulates one registry entry per run. The identity guard is - load-bearing: refs are deterministic per run, so after a cache eviction a - replay re-registers the *same* ref with a fresh inner backend — the evicted - wrapper's finalizer must not remove that live registration. - """ - with _BACKEND_REGISTRY_LOCK: - if _BACKEND_REGISTRY.get(ref) is inner: - del _BACKEND_REGISTRY[ref] - - -def registered_backends() -> dict[str, Any]: - """Return the live backend registry (read by the plugin at worker build).""" - return _BACKEND_REGISTRY - - -# --------------------------------------------------------------------------- -# activity_as_tool -# --------------------------------------------------------------------------- - - -def activity_as_tool( - activity: Callable, - *, - start_to_close_timeout: timedelta, - name: str | None = None, - description: str | None = None, - retry_policy: Any = None, - summary: str | None = None, -) -> BaseTool: - """Expose an existing Temporal activity as a Deep Agents tool. - - The returned tool advertises the activity's argument schema to the model and, - when called in-workflow, dispatches to the activity via - ``workflow.execute_activity`` — Temporal owns its retries and timeout. - - Args: - activity: A function decorated with ``@activity.defn``. - start_to_close_timeout: Required per-call timeout for the activity. - name: Override the tool name advertised to the model (defaults to - the activity definition name). - description: Override the tool description advertised to the model - (defaults to the activity docstring). - retry_policy: Optional Temporal retry policy for the activity. - summary: Optional ``summary=`` recorded on each activity invocation. - """ - with workflow.unsafe.imports_passed_through(): - from langchain_core.tools import StructuredTool - - defn = activity_mod._Definition.from_callable(activity) - if defn is None: - raise ValueError( - "activity_as_tool requires a function decorated with @activity.defn; " - f"{getattr(activity, '__name__', activity)!r} is not an activity." - ) - tool_name = name or defn.name - if tool_name is None: - raise ValueError( - "activity_as_tool requires a named activity (dynamic activities " - "have no definition name); pass name= explicitly." - ) - tool_desc = description or (activity.__doc__ or f"Temporal activity {tool_name}.") - act_summary = summary or f"tool:{tool_name}" - - # Temporal activities take a single positional argument. StructuredTool infers - # the model-facing schema from ``_run``'s signature, so we mirror the activity's - # own parameter names onto ``_run`` (via ``@wraps``) and then collapse the - # keyword call the model produces back into that single positional payload. - import inspect - - params = [ - p for p in inspect.signature(activity).parameters if p not in ("self", "cls") - ] - - @wraps(activity) - async def _run(*args: Any, **kwargs: Any) -> Any: - if args and not kwargs: - payload: Any = args[0] if len(args) == 1 else list(args) - elif len(params) == 1 and len(kwargs) == 1: - # Single-argument activity: pass the value directly, not {"arg": value}. - payload = next(iter(kwargs.values())) - else: - payload = kwargs - return await workflow.execute_activity( - activity, - payload, - start_to_close_timeout=start_to_close_timeout, - retry_policy=retry_policy, - summary=act_summary, - ) - - _ROUTED_TOOL_NAMES.add(tool_name) - return StructuredTool.from_function( - coroutine=_run, - name=tool_name, - description=tool_desc, - ) - - -# --------------------------------------------------------------------------- -# tool_as_activity -# --------------------------------------------------------------------------- - - -def tool_as_activity( - tool: BaseTool | Callable, - *, - start_to_close_timeout: timedelta, - activity_options: Mapping[str, Any] | None = None, -) -> BaseTool: - """Wrap a LangChain tool / callable so its execution runs as an activity. - - The underlying tool is registered on the worker; the returned tool keeps the - same name and argument schema (so the model's calls are unchanged) but, when - invoked in-workflow, dispatches ``deepagents.invoke_tool`` instead of running - the tool body inline. - """ - with workflow.unsafe.imports_passed_through(): - from langchain_core.tools import BaseTool, StructuredTool - - base_tool: BaseTool - if isinstance(tool, BaseTool): - base_tool = tool - else: - base_tool = StructuredTool.from_function( - tool if not _is_coroutine(tool) else None, - coroutine=tool if _is_coroutine(tool) else None, - ) - register_tool(base_tool) - - tool_name = base_tool.name - opts = _resolve_tool_options(tool_name, activity_options) - opts.setdefault("start_to_close_timeout", start_to_close_timeout) - - async def _run(**kwargs: Any) -> Any: - from temporalio.contrib.deepagents.workflow import call_tool - - tool_call_id = kwargs.pop("__tool_call_id__", None) or workflow.uuid4().hex - activity_input = _activity.ToolActivityInput( - tool_name=tool_name, - tool_call_id=tool_call_id, - args=kwargs, - ) - output = await call_tool( - activity_input, - summary=f"tool:{tool_name}", - **opts, - ) - message = _serde.load_object(output.message) - # Return CONTENT, not the pre-built ToolMessage: the activity cannot - # know the model's real tool_call_id, so a ToolMessage assembled there - # carries a generated id that a real provider rejects as an unpaired - # tool_result. Given plain content, the tool node stamps the model's - # own id — exactly as it does for unwrapped tools. - with workflow.unsafe.imports_passed_through(): - from langchain_core.messages import ToolMessage - - if isinstance(message, ToolMessage): - return message.content - return message - - _ROUTED_TOOL_NAMES.add(tool_name) - return StructuredTool( - name=tool_name, - description=base_tool.description, - args_schema=base_tool.args_schema, # type: ignore[arg-type] - coroutine=_run, - ) - - -def _is_coroutine(fn: Any) -> bool: - import inspect - - return inspect.iscoroutinefunction(fn) - - -# --------------------------------------------------------------------------- -# TemporalBackend -# --------------------------------------------------------------------------- - -# Async protocol methods and their sync twins. deepagents' ``BackendProtocol`` -# implements each async DEFAULT as ``asyncio.to_thread(sync_twin, ...)``; the -# deterministic workflow event loop has no thread executor, so any built-in -# tool call against an unwrapped in-workflow backend (e.g. the default -# ``StateBackend``) raises ``NotImplementedError``. A real model hits this on -# its first spontaneous ``grep``/``read_file`` call; scripted-model tests that -# never call built-ins sail past it. -_ASYNC_TO_SYNC_OPS: dict[str, str] = { - "als": "ls", - "als_info": "ls_info", - "aread": "read", - "awrite": "write", - "aedit": "edit", - "aglob": "glob", - "aglob_info": "glob_info", - "agrep": "grep", - "agrep_raw": "grep_raw", - "adownload_files": "download_files", - "aupload_files": "upload_files", - "aexecute": "execute", -} - -_original_backend_async_defaults: dict[str, Any] = {} - - -def install_backend_async_patch() -> None: - """Make ``BackendProtocol``'s async defaults workflow-safe. - - Inside a workflow, run the sync twin inline: for state-only backends that - is deterministic and semantically identical to the upstream default, - which merely moves the same sync call onto a worker thread. Outside a - workflow (activities, clients) the upstream default — thread hop plus - timeout guard — is used unchanged. Subclasses that override an async - method natively are unaffected; only the protocol defaults are replaced. - Idempotent. - """ - # importlib: `deepagents` is absent on Python 3.10 environments (its floor - # is 3.11), so a static import here fails type-checking there. - BackendProtocol = importlib.import_module( - "deepagents.backends.protocol" - ).BackendProtocol - - if _original_backend_async_defaults: - return - for async_name, sync_name in _ASYNC_TO_SYNC_OPS.items(): - original = BackendProtocol.__dict__.get(async_name) - if original is None: - continue - - def _make(sync_name: str, original: Any) -> Any: - async def patched(self: Any, *args: Any, **kwargs: Any) -> Any: - if workflow.in_workflow(): - return getattr(self, sync_name)(*args, **kwargs) - return await original(self, *args, **kwargs) - - return patched - - _original_backend_async_defaults[async_name] = original - setattr(BackendProtocol, async_name, _make(sync_name, original)) - - -def uninstall_backend_async_patch() -> None: - """Restore ``BackendProtocol``'s upstream async defaults.""" - if not _original_backend_async_defaults: - return - BackendProtocol = importlib.import_module( - "deepagents.backends.protocol" - ).BackendProtocol - - for async_name, original in _original_backend_async_defaults.items(): - setattr(BackendProtocol, async_name, original) - _original_backend_async_defaults.clear() - - -# Backend METHOD names (deepagents ``BackendProtocol`` + -# ``SandboxBackendProtocol``) whose calls must cross the activity boundary: -# every sync I/O method, its async ``a``-prefixed twin, and the sandbox/shell -# execute pair. The async twins are load-bearing — deepagents' filesystem -# middleware drives backends through ``als``/``aread``/``awrite``/… — so -# intercepting only sync names lets an agent's built-in file tools run I/O -# in-workflow. These are backend PROTOCOL method names, distinct from the -# LLM-facing tool names in ``_BUILTIN_TOOL_NAMES`` (``read_file`` etc.). -_BACKEND_OPS = ( - # Sync protocol surface. - "ls", - "ls_info", - "read", - "write", - "edit", - "glob", - "glob_info", - "grep", - "grep_raw", - "download_files", - "upload_files", - "execute", - # Async twins (what FilesystemMiddleware actually calls). - "als", - "als_info", - "aread", - "awrite", - "aedit", - "aglob", - "aglob_info", - "agrep", - "agrep_raw", - "adownload_files", - "aupload_files", - "aexecute", -) - - -class TemporalBackend: - """Route a real-I/O backend's operations through Temporal activities. - - Wrap a ``FilesystemBackend`` / ``LocalShellBackend`` / ``StoreBackend`` / - ``CompositeBackend`` so each file or shell operation becomes a durable - ``deepagents.backend_op`` activity instead of touching disk / shell from the - workflow. State-only backends (``StateBackend``) need no wrapping — they are - pure workflow state and run in-workflow. - - Unknown attribute access is forwarded to the inner backend so backend - metadata / configuration the agent reads (but that does no I/O) still works. - """ - - def __init__( - self, - inner: Any, - *, - activity_options: Mapping[str, Any] | None = None, - ) -> None: - """Wrap ``inner`` so its I/O ops dispatch as durable activities.""" - self._inner = inner - # A deterministic id: workflow.uuid4() is seeded per-run, so the ref is - # identical across replays (unlike id(inner)). Falls back to a plain uuid - # when a backend is wrapped outside a workflow (e.g. in a plain test). - if workflow.in_workflow(): - self._ref = f"backend:{workflow.uuid4().hex}" - else: - self._ref = f"backend:{_uuid.uuid4().hex}" - self._opts: dict[str, Any] = dict(activity_options or {}) - self._opts.setdefault("start_to_close_timeout", timedelta(minutes=1)) - register_backend(self._ref, inner) - # Balance the registration when this wrapper is garbage-collected - # (workflow completion / cache eviction) so per-run backends do not - # accumulate in the worker-global registry. The finalizer captures - # (ref, inner) — not ``self`` — so it cannot keep the wrapper alive, - # and it only removes its own registration (see _unregister_backend). - self._finalizer = weakref.finalize(self, _unregister_backend, self._ref, inner) - - async def _dispatch(self, op: str, *args: Any, **kwargs: Any) -> Any: - from temporalio.contrib.deepagents.workflow import call_backend_op - - activity_input = _activity.BackendOpInput( - backend_ref=self._ref, - op=op, - args=list(args), - kwargs=dict(kwargs), - ) - output = await call_backend_op( - activity_input, - summary=f"backend:{op}", - **self._opts, - ) - return _serde.load_backend_result(output.result) - - def __getattr__(self, name: str) -> Any: - """Bound-method access for a known I/O op returns an activity dispatcher. - - Everything else forwards to the inner backend unchanged. - """ - if name in _BACKEND_OPS: - - async def _op(*args: Any, **kwargs: Any) -> Any: - return await self._dispatch(name, *args, **kwargs) - - return _op - return getattr(self._inner, name) diff --git a/temporalio/contrib/deepagents/testing.py b/temporalio/contrib/deepagents/testing.py index 749b1ab96..ea8ce5660 100644 --- a/temporalio/contrib/deepagents/testing.py +++ b/temporalio/contrib/deepagents/testing.py @@ -1,141 +1,6 @@ -"""Test helpers for users adopting :class:`DeepAgentsPlugin`. +"""Compatibility imports for temporalio.deepagents.testing.""" -Unit-testing a Deep Agent under Temporal should not require a live LLM endpoint -or a paid API key. This module ships: - -* :class:`FakeModel` — a real ``BaseChatModel`` returning scripted replies (plain - text or full ``AIMessage`` objects carrying ``tool_calls``), cycling when - exhausted; -* :func:`fake_model_factory` — a one-liner for the common text-only case; -* :func:`mock_model_provider` — a ``model_provider`` (name → model) you pass to - ``DeepAgentsPlugin(model_provider=...)`` so the model activity runs offline; -* :class:`MockTool` — a scripted ``BaseTool`` for exercising the tool seam. - -Importing this module has no process-wide side effects. -""" - -from __future__ import annotations - -from collections.abc import Callable, Sequence -from typing import Any - -from langchain_core.callbacks import ( - AsyncCallbackManagerForLLMRun, - CallbackManagerForLLMRun, +from temporalio.deepagents.testing import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.deepagents.testing import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, ) -from langchain_core.language_models.chat_models import BaseChatModel -from langchain_core.messages import AIMessage, BaseMessage -from langchain_core.outputs import ChatGeneration, ChatResult -from langchain_core.tools import BaseTool -from pydantic import PrivateAttr - -__all__ = ["FakeModel", "fake_model_factory", "mock_model_provider", "MockTool"] - -Response = str | AIMessage - - -class FakeModel(BaseChatModel): - """A ``BaseChatModel`` returning scripted responses, for offline tests. - - Args: - responses: Replies returned one per call, cycling when exhausted. Each is - either a string (becomes an ``AIMessage``) or an ``AIMessage`` (so you - can script ``tool_calls`` to drive the agent's tool path). - """ - - responses: list[Any] - _cursor: int = PrivateAttr(default=0) - - def __init__(self, responses: Sequence[Response], **kwargs: Any) -> None: - """Validate and store the scripted responses.""" - resp = list(responses) - if not resp: - raise ValueError("FakeModel needs at least one scripted response.") - super().__init__(responses=resp, **kwargs) # type: ignore[call-arg] - - @property - def _llm_type(self) -> str: - return "temporalio-deepagents-fake-model" - - def bind_tools(self, tools: Sequence[Any], **kwargs: Any) -> "FakeModel": - """Ignore the tool set; the fake just replays its script. - - Returning ``self`` keeps ``model.bind_tools(...)`` chainable like a - real model. - """ - return self - - def _next(self) -> AIMessage: - item = self.responses[self._cursor % len(self.responses)] - self._cursor += 1 - return item if isinstance(item, AIMessage) else AIMessage(content=item) - - def _generate( - self, - messages: list[BaseMessage], - stop: list[str] | None = None, - run_manager: CallbackManagerForLLMRun | None = None, - **kwargs: Any, - ) -> ChatResult: - return ChatResult(generations=[ChatGeneration(message=self._next())]) - - async def _agenerate( - self, - messages: list[BaseMessage], - stop: list[str] | None = None, - run_manager: AsyncCallbackManagerForLLMRun | None = None, - **kwargs: Any, - ) -> ChatResult: - return ChatResult(generations=[ChatGeneration(message=self._next())]) - - -def fake_model_factory(responses: Sequence[Response]) -> FakeModel: - """One-liner scripted fake chat model. - - Example:: - - model = fake_model_factory(["The capital of France is Paris."]) - """ - return FakeModel(responses) - - -def mock_model_provider( - responses: Sequence[Response], -) -> Callable[[str], FakeModel]: - """A ``model_provider`` that hands out the scripted responses one call at a time. - - Each model activity invocation (main agent, a sub-agent, a follow-up turn - after a tool call) advances through ``responses`` and cycles when exhausted, - so a multi-turn agent can be scripted deterministically. The model activity - builds a fresh model per call, so the cursor lives on the provider closure - (shared for the worker's lifetime) rather than on any one model instance. - - Pass to the plugin so the model activity runs offline:: - - plugin = DeepAgentsPlugin(model_provider=mock_model_provider(["Paris."])) - """ - resp = list(responses) - if not resp: - raise ValueError("mock_model_provider needs at least one response.") - cursor = {"i": 0} - - def provider(_model_name: str) -> FakeModel: - reply = resp[cursor["i"] % len(resp)] - cursor["i"] += 1 - return FakeModel([reply]) - - return provider - - -class MockTool(BaseTool): - """A scripted ``BaseTool`` whose call returns a fixed value, for tests.""" - - name: str = "mock_tool" - description: str = "A mock tool that returns a scripted result." - result: Any = "ok" - - def _run(self, *args: Any, **kwargs: Any) -> Any: - return self.result - - async def _arun(self, *args: Any, **kwargs: Any) -> Any: - return self.result diff --git a/temporalio/contrib/deepagents/workflow.py b/temporalio/contrib/deepagents/workflow.py index cb3e45b03..4f75a90e6 100644 --- a/temporalio/contrib/deepagents/workflow.py +++ b/temporalio/contrib/deepagents/workflow.py @@ -1,317 +1,3 @@ -"""Workflow-side surface: the failure type, the dispatch helpers, and the runner. +"""Compatibility imports for temporalio.deepagents.workflow.""" -Everything here runs *inside* the workflow. The dispatch helpers -(:func:`call_model` / :func:`call_tool` / :func:`call_backend_op`) are the single -choke point through which the in-workflow model / tool / backend stubs reach -their activities; they also consult the continue-as-new result cache so work -done before a ``continue_as_new`` is reused rather than repeated after it. - -:func:`run_deep_agent` is the optional driver that adds continue-as-new -state-carry around a native ``agent.ainvoke(...)`` — plain ``agent.ainvoke(...)`` -still works without it. -""" - -from __future__ import annotations - -import importlib -import warnings -from collections.abc import Mapping -from typing import Any - -from temporalio import workflow -from temporalio.contrib.deepagents import _activity, _serde -from temporalio.exceptions import ApplicationError - -# Reserved key under which the CAN result cache rides inside a state snapshot. -_CACHE_KEY = "__temporal_cache__" - -# Checkpointer classes that keep their state in the workflow's own memory and are -# therefore rehydrated for free by deterministic replay. Anything else does its -# own I/O and is not replay-safe from inside the workflow. -_IN_WORKFLOW_SAVERS = frozenset({"InMemorySaver", "MemorySaver"}) - - -def warn_durable_checkpointer(checkpointer: Any) -> None: - """Warn when a user hands ``create_deep_agent`` a durable checkpointer. - - The Deep Agents loop runs inside the workflow, so a checkpointer that does - its own database / disk I/O would run that I/O from workflow code — not - replay-safe. We respect the user's choice (a warning, not a hard failure), - and point them at the durability path that *is* safe: the default in-workflow - ``InMemorySaver`` rehydrated by replay, plus - :func:`run_deep_agent` with ``continue_as_new_after`` for long conversations. - """ - if checkpointer is None: - return - if type(checkpointer).__name__ in _IN_WORKFLOW_SAVERS: - return - warnings.warn( - f"create_deep_agent received a durable checkpointer " - f"{type(checkpointer).__name__!r}. The agent loop runs inside the " - f"workflow, so this checkpointer's I/O would run from workflow code, " - f"which is not replay-safe. Prefer the default in-workflow InMemorySaver " - f"(rehydrated by replay) plus run_deep_agent(continue_as_new_after=...) " - f"for long-conversation durability.", - stacklevel=3, - ) - - -class DeepAgentsWorkflowError(ApplicationError): - """Raised for non-retryable Deep Agents failures surfaced in the workflow. - - This is the type registered in the plugin's - ``workflow_failure_exception_types``, so a model / tool failure that Temporal - has exhausted (or an invalid agent configuration) fails the workflow with a - stable ``ApplicationError.type`` — never a stringified peer exception. - """ - - TYPE = "deepagents.DeepAgentsWorkflowError" - - def __init__(self, message: str, *, non_retryable: bool = True) -> None: - """Construct the error with the plugin's stable failure ``type``.""" - super().__init__(message, type=self.TYPE, non_retryable=non_retryable) - - -# --------------------------------------------------------------------------- -# Dispatch helpers (the model / tool / backend choke point) -# --------------------------------------------------------------------------- - - -async def call_model( - activity_name: str, - activity_input: _activity.ModelActivityInput, - *, - summary: str, - **opts: Any, -) -> _activity.ModelActivityOutput: - """Dispatch one model call, reusing a cached result across continue-as-new.""" - key = _serde.cache_key( - "model", - activity_input.model_name, - [activity_input.messages, activity_input.tool_schemas], - ) - hit, cached = _serde.cache_lookup(key) - if hit: - return _activity.ModelActivityOutput(message=cached) - output = await workflow.execute_activity( - activity_name, - activity_input, - result_type=_activity.ModelActivityOutput, - summary=summary, - **opts, - ) - _serde.cache_put(key, output.message) - return output - - -async def call_tool( - activity_input: _activity.ToolActivityInput, - *, - summary: str, - **opts: Any, -) -> _activity.ToolActivityOutput: - """Dispatch one tool call, reusing a cached result across continue-as-new.""" - key = _serde.cache_key("tool", activity_input.tool_name, activity_input.args) - hit, cached = _serde.cache_lookup(key) - if hit: - return _activity.ToolActivityOutput(message=cached) - output = await workflow.execute_activity( - _activity.INVOKE_TOOL, - activity_input, - result_type=_activity.ToolActivityOutput, - summary=summary, - **opts, - ) - _serde.cache_put(key, output.message) - return output - - -async def call_backend_op( - activity_input: _activity.BackendOpInput, - *, - summary: str, - **opts: Any, -) -> _activity.BackendOpOutput: - """Dispatch one backend op, reusing a cached result across continue-as-new.""" - key = _serde.cache_key( - f"backend:{activity_input.backend_ref}", - activity_input.op, - [activity_input.args, activity_input.kwargs], - ) - hit, cached = _serde.cache_lookup(key) - if hit: - return _activity.BackendOpOutput(result=cached) - output = await workflow.execute_activity( - _activity.BACKEND_OP, - activity_input, - result_type=_activity.BackendOpOutput, - summary=summary, - **opts, - ) - _serde.cache_put(key, output.result) - return output - - -# --------------------------------------------------------------------------- -# run_deep_agent (continue-as-new state carry) -# --------------------------------------------------------------------------- - - -def _merge_snapshot(input: Any, snapshot: Mapping[str, Any]) -> Any: - """Prepend a snapshot's carried messages onto the next turn's input.""" - raw_prior: Any = snapshot.get("messages") or [] - prior = list(raw_prior) - if not prior: - return input - if isinstance(input, Mapping): - merged = dict(input) - raw_next: Any = input.get("messages") or [] - merged["messages"] = [*prior, *list(raw_next)] - return merged - return {"messages": [*prior, *_as_message_list(input)]} - - -def _as_message_list(input: Any) -> list[Any]: - if isinstance(input, (list, tuple)): - return list(input) - return [input] - - -async def run_deep_agent( - agent: Any, - input: Any, - *, - continue_as_new_after: int | None = None, - state_snapshot: Mapping[str, Any] | None = None, -) -> Any: - """Drive ``agent.ainvoke(input)`` with continue-as-new state carry. - - Once the completed turn leaves pending todos AND history has grown past the - limit, the turn's state (messages + the model/tool result cache) is - snapshotted and carried into a fresh run via ``workflow.continue_as_new``, - so long conversations do not accumulate unbounded history. - - By default (``continue_as_new_after=None``) the limit is the server's own - recommendation — ``workflow.info().is_continue_as_new_suggested()`` — which - accounts for both history length and size; this is the recommended mode. - Pass an explicit ``continue_as_new_after=N`` to trigger on a fixed history - event count instead. To run an agent with NO continue-as-new behavior, call - ``agent.ainvoke(...)`` directly rather than using this driver. - - The enclosing ``@workflow.run`` method must accept the continued call — i.e. - its signature is ``(input, state_snapshot=None)`` — because that is how the - carried state is threaded into the next run. - """ - # Resume path: rehydrate the result cache and fold carried messages in. - if state_snapshot is not None: - _serde.set_result_cache(dict(state_snapshot.get(_CACHE_KEY) or {})) - input = _merge_snapshot(input, state_snapshot) - else: - _serde.set_result_cache({}) - - try: - result = await agent.ainvoke(input) - except ApplicationError: - raise - except Exception as exc: - # If the framework wrapped a Temporal failure, surface the registered - # workflow-failure type rather than the framework's generic exception. - cause = exc.__cause__ - if cause is not None and workflow.is_failure_exception(cause): - raise DeepAgentsWorkflowError(f"Deep Agents run failed: {exc}") from cause - raise - - if continue_as_new_after is None: - # Default: follow the server's judgement. The suggestion accounts for - # history count AND size limits, which a fixed event threshold cannot. - should_continue = workflow.info().is_continue_as_new_suggested() - else: - should_continue = ( - workflow.info().get_current_history_length() >= continue_as_new_after - ) - if should_continue and _has_pending_work(result): - snapshot = { - "messages": _extract_messages(result), - _CACHE_KEY: _serde.result_cache_snapshot() or {}, - } - # ``continue_as_new`` threads positional args into the next run via - # ``args=``; the enclosing ``@workflow.run`` receives them as - # ``(input, state_snapshot)``. - workflow.continue_as_new(args=[input, snapshot]) - - return result - - -def _extract_messages(result: Any) -> list[Any]: - if isinstance(result, Mapping): - raw: Any = result.get("messages") or [] - return list(raw) - return [] - - -def _has_pending_work(result: Any) -> bool: - """True when the agent left unfinished todos worth carrying past a CAN. - - A finished single-shot run has no pending todos, so this returns False and the - driver returns the result instead of looping on continue-as-new forever. - """ - if isinstance(result, Mapping): - todos: Any = result.get("todos") or [] - return any( - isinstance(t, Mapping) and t.get("status") not in ("completed", "done") - for t in todos - ) - return False - - -def create_temporal_deep_agent( - *args: Any, - activity_options: Mapping[str, Any] | None = None, - **kwargs: Any, -) -> Any: - """Build a Deep Agent whose model calls run as durable activities. - - A thin wrapper over ``deepagents.create_deep_agent`` that makes the - Temporal wiring explicit: a ``model=`` name string is wrapped in - ``TemporalModel`` carrying this - agent's ``activity_options`` (``execute_activity`` overrides — timeouts, - retry policy — for its model calls). Every other argument — tools, - backend, sub-agents, ``interrupt_on`` — is forwarded unchanged. - - Unmodified ``create_deep_agent(...)`` also works inside a workflow (the - plugin substitutes the durable model automatically, using the plugin's - ``model_activity_options``); use this wrapper to scope activity options - to one agent instead of configuring them plugin-wide. - """ - with workflow.unsafe.imports_passed_through(): - # importlib keeps this resolution absolute: a static - # `import deepagents` from inside this same-named package directory - # is flagged (and on 3.10, mis-resolved) as implicitly relative. - deepagents_mod: Any = importlib.import_module("deepagents") - - from temporalio.contrib.deepagents._model import TemporalModel - - model = args[0] if args else kwargs.pop("model", None) - if isinstance(model, str): - model = TemporalModel( - model=model, - activity_options=( - dict(activity_options) if activity_options is not None else None - ), - ) - elif activity_options is not None: - if isinstance(model, TemporalModel): - model = TemporalModel( - model=model.model, activity_options=dict(activity_options) - ) - else: - raise ValueError( - "activity_options requires model= to be a model-name string " - "or a TemporalModel; got " - f"{type(model).__name__ if model is not None else 'no model'}." - ) - if args: - args = (model, *args[1:]) - else: - kwargs["model"] = model - return deepagents_mod.create_deep_agent(*args, **kwargs) +from temporalio.deepagents.workflow import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] diff --git a/temporalio/contrib/gcp/__init__.py b/temporalio/contrib/gcp/__init__.py new file mode 100644 index 000000000..ca6e0d7df --- /dev/null +++ b/temporalio/contrib/gcp/__init__.py @@ -0,0 +1 @@ +"""Google Cloud Platform integrations for Temporal.""" diff --git a/temporalio/contrib/gcp/cloud_run/__init__.py b/temporalio/contrib/gcp/cloud_run/__init__.py new file mode 100644 index 000000000..83eeb6d4c --- /dev/null +++ b/temporalio/contrib/gcp/cloud_run/__init__.py @@ -0,0 +1 @@ +"""Google Cloud Run integrations for Temporal.""" diff --git a/temporalio/contrib/gcp/cloud_run/id/README.md b/temporalio/contrib/gcp/cloud_run/id/README.md new file mode 100644 index 000000000..cb56b0045 --- /dev/null +++ b/temporalio/contrib/gcp/cloud_run/id/README.md @@ -0,0 +1,84 @@ +# id + +> ⚠️ **This package is currently at an experimental release stage.** ⚠️ + +A plugin for running [Temporal](https://temporal.io) workers on Google Cloud Run. `CloudRunIdPlugin` +reads Cloud Run instance metadata and sets the client identity. Both Cloud Run **worker pools** and +**services** are supported. + +Register the plugin once when connecting the client and it sets the client **identity** to a value +derived from the Cloud Run instance (unless you already passed an `identity`). + +## Quick start + +```python +import asyncio + +from temporalio.client import Client +from temporalio.contrib.gcp.cloud_run.id import CloudRunIdPlugin +from temporalio.worker import Worker + +from my_workflows import MyWorkflow +from my_activities import my_activity + + +async def main() -> None: + # Install the plugin on the client; it propagates to workers automatically. + client = await Client.connect( + "localhost:7233", + plugins=[CloudRunIdPlugin()], + ) + + worker = Worker( + client, + task_queue="my-task-queue", + workflows=[MyWorkflow], + activities=[my_activity], + ) + await worker.run() + + +if __name__ == "__main__": + asyncio.run(main()) +``` + +## How it works + +Cloud Run exposes workload metadata through environment variables and a metadata server: + +- **Worker pools** get `CLOUD_RUN_WORKER_POOL` and `CLOUD_RUN_REVISION` (and no `K_*` variables). +- **Services** get `K_SERVICE`, `K_REVISION`, and `K_CONFIGURATION` (and no `CLOUD_RUN_*` variables). + +The unique instance id is not available as an environment variable on either; it is only exposed by +the +[Cloud Run metadata server](https://cloud.google.com/run/docs/container-contract#metadata-server) +at `http://metadata.google.internal/computeMetadata/v1/instance/id`, which requires the +`Metadata-Flavor: Google` request header. + +When the client connects, `CloudRunIdPlugin` resolves the worker pool name from +`CLOUD_RUN_WORKER_POOL` (falling back to the service name `K_SERVICE`) and the revision from +`CLOUD_RUN_REVISION` (falling back to +`K_REVISION`), then performs a single synchronous HTTP GET to the metadata server for the instance +id. From that metadata the plugin sets: + +- **Client identity** -- `@`, uniquely identifying this worker instance in + Temporal tooling. It falls back to `@`, then to just ``, when the + revision or name is unavailable. An `identity` you pass to `Client.connect` always wins. + +The metadata server is only reachable from within Cloud Run, so connecting elsewhere raises an +error. The plugin uses only the Python standard library and adds no new dependencies. + +## Advanced / non-plugin use + +For advanced scenarios or unit tests you can bypass the metadata server by passing a pre-built +metadata object, or steer the fetch with `getenv` / `metadata_url` / `timeout`: + +```python +from temporalio.contrib.gcp.cloud_run.id import CloudRunIdPlugin, get_google_cloud_run_metadata + +metadata = get_google_cloud_run_metadata() +plugin = CloudRunIdPlugin(metadata=metadata) + +# metadata.identity exposes the same value the plugin applies, for use +# without the plugin if needed. +``` diff --git a/temporalio/contrib/gcp/cloud_run/id/__init__.py b/temporalio/contrib/gcp/cloud_run/id/__init__.py new file mode 100644 index 000000000..40f349797 --- /dev/null +++ b/temporalio/contrib/gcp/cloud_run/id/__init__.py @@ -0,0 +1,44 @@ +"""Run Temporal workers on Google Cloud Run. + +:py:class:`CloudRunIdPlugin` reads Cloud Run instance metadata (from a worker pool or a service) and +sets the client identity from the Cloud Run instance. + +Quick start:: + + import asyncio + + from temporalio.client import Client + from temporalio.contrib.gcp.cloud_run.id import CloudRunIdPlugin + from temporalio.worker import Worker + + async def main() -> None: + # Install the plugin on the client; it propagates to workers automatically. + client = await Client.connect( + "localhost:7233", + plugins=[CloudRunIdPlugin()], + ) + + worker = Worker( + client, + task_queue="my-task-queue", + workflows=[MyWorkflow], + activities=[my_activity], + ) + await worker.run() + + asyncio.run(main()) +""" + +from temporalio.contrib.gcp.cloud_run.id._cloud_run_id_plugin import CloudRunIdPlugin +from temporalio.contrib.gcp.cloud_run.id._metadata import ( + CLOUD_RUN_METADATA_URL, + GoogleCloudRunMetadata, + get_google_cloud_run_metadata, +) + +__all__ = [ + "CLOUD_RUN_METADATA_URL", + "GoogleCloudRunMetadata", + "CloudRunIdPlugin", + "get_google_cloud_run_metadata", +] diff --git a/temporalio/contrib/gcp/cloud_run/id/_cloud_run_id_plugin.py b/temporalio/contrib/gcp/cloud_run/id/_cloud_run_id_plugin.py new file mode 100644 index 000000000..ba11f43fe --- /dev/null +++ b/temporalio/contrib/gcp/cloud_run/id/_cloud_run_id_plugin.py @@ -0,0 +1,102 @@ +"""Plugin setting a Temporal client's identity from Google Cloud Run instance metadata.""" + +from __future__ import annotations + +import os +import socket +from collections.abc import Awaitable, Callable + +import temporalio.plugin +from temporalio.contrib.gcp.cloud_run.id._metadata import ( + CLOUD_RUN_METADATA_URL, + GoogleCloudRunMetadata, + get_google_cloud_run_metadata, +) +from temporalio.service import ConnectConfig, ServiceClient + + +class CloudRunIdPlugin(temporalio.plugin.SimplePlugin): + """Set a Temporal client's identity from Google Cloud Run instance metadata. + + Install this plugin once when connecting the client; the identity it sets + automatically propagates to workers created from that client. It sets the + client **identity** to a value derived from the Cloud Run instance, but only + when the caller did not already provide one. Both Cloud Run worker pools and + services are supported. + + The Cloud Run instance metadata is fetched once, lazily, when the client + connects. If it cannot be read (usually because the process is not running on + Cloud Run), connecting raises an error. + + Unit tests and advanced callers can bypass the metadata server by passing a + pre-built ``metadata`` object, or steer the fetch with ``getenv`` / + ``metadata_url`` / ``timeout``. + + .. warning:: + Google Cloud Run support is experimental and may change in future versions. + """ + + def __init__( + self, + *, + metadata: GoogleCloudRunMetadata | None = None, + timeout: float = 2.0, + metadata_url: str = CLOUD_RUN_METADATA_URL, + getenv: Callable[[str], str | None] = os.environ.get, + ) -> None: + """Create a Cloud Run plugin. + + Args: + metadata: Pre-fetched Cloud Run instance metadata. When supplied, the + plugin uses it directly and never contacts the metadata server. + Primarily for testing and advanced use. + timeout: Timeout, in seconds, for the request to the metadata server. + Ignored when ``metadata`` is supplied. + metadata_url: URL of the Cloud Run metadata server endpoint that + returns the instance id. Ignored when ``metadata`` is supplied. + getenv: Callable used to look up environment variables. Defaults to + ``os.environ.get`` and exists primarily for testing. Ignored when + ``metadata`` is supplied. + """ + super().__init__("CloudRunIdPlugin") + self._metadata = metadata + self._timeout = timeout + self._metadata_url = metadata_url + self._getenv = getenv + + async def connect_service_client( + self, + config: ConnectConfig, + next: Callable[[ConnectConfig], Awaitable[ServiceClient]], + ) -> ServiceClient: + """Fetch Cloud Run metadata and set the client identity before connecting. + + The identity is only set when the caller did not provide one, so an + explicit ``identity`` passed to :py:meth:`temporalio.client.Client.connect` + always wins. + """ + metadata = self._resolve_metadata() + if not config.identity or config.identity == _default_identity(): + config.identity = metadata.identity + return await super().connect_service_client(config, next) + + def _resolve_metadata(self) -> GoogleCloudRunMetadata: + """Return the cached Cloud Run metadata, fetching it once on first use.""" + if self._metadata is None: + self._metadata = get_google_cloud_run_metadata( + timeout=self._timeout, + metadata_url=self._metadata_url, + getenv=self._getenv, # type: ignore[arg-type] + ) + return self._metadata + + +def _default_identity() -> str: + """Recreate the identity ``ConnectConfig`` auto-generates when none is given. + + :py:class:`temporalio.service.ConnectConfig` fills an unset identity with + ``@`` in ``__post_init__``, so by the time this plugin runs the + identity is never literally empty. Matching that value lets the plugin tell an + auto-generated identity (safe to replace) from one the caller chose (kept). + """ + return f"{os.getpid()}@{socket.gethostname()}" diff --git a/temporalio/contrib/gcp/cloud_run/id/_metadata.py b/temporalio/contrib/gcp/cloud_run/id/_metadata.py new file mode 100644 index 000000000..df545bae6 --- /dev/null +++ b/temporalio/contrib/gcp/cloud_run/id/_metadata.py @@ -0,0 +1,104 @@ +"""Read Google Cloud Run instance metadata for Temporal worker configuration. + +Helpers for deriving a worker identity from Cloud Run instance metadata. Both Cloud Run worker pools +and services are supported. +""" + +from __future__ import annotations + +import os +import urllib.request +from collections.abc import Callable +from dataclasses import dataclass + +CLOUD_RUN_METADATA_URL = ( + "http://metadata.google.internal/computeMetadata/v1/instance/id" +) +"""Default Cloud Run metadata server endpoint returning the unique instance id.""" + + +@dataclass(frozen=True) +class GoogleCloudRunMetadata: + """Identifying metadata for the current Google Cloud Run instance. + + Both Cloud Run worker pools and services are supported. Worker pools expose + ``CLOUD_RUN_WORKER_POOL`` and ``CLOUD_RUN_REVISION``; services expose ``K_SERVICE`` and + ``K_REVISION``. + + Attributes: + instance_id: Unique id of this Cloud Run container instance, read from the Cloud Run + metadata server. + name: The Cloud Run worker pool name (``CLOUD_RUN_WORKER_POOL``) or, for a service, the + service name (``K_SERVICE``). May be empty when the process is not running on Cloud Run. + revision: Cloud Run revision name (``CLOUD_RUN_REVISION`` for worker pools or ``K_REVISION`` + for services). May be empty when the process is not running on Cloud Run. + """ + + instance_id: str + name: str + revision: str + + @property + def identity(self) -> str: + """Worker identity string uniquely identifying this Cloud Run instance. + + The format is ``@``. When the revision is empty the worker pool or + service name is used instead (``@``); when both are empty the instance id + is returned on its own. + """ + if self.revision: + return f"{self.instance_id}@{self.revision}" + if self.name: + return f"{self.instance_id}@{self.name}" + return self.instance_id + + +def get_google_cloud_run_metadata( + *, + timeout: float = 2.0, + metadata_url: str = CLOUD_RUN_METADATA_URL, + getenv: Callable[[str], str] = os.environ.get, # type: ignore[assignment] +) -> GoogleCloudRunMetadata: + """Read metadata identifying the current Google Cloud Run instance. + + Resolves the worker pool name from ``CLOUD_RUN_WORKER_POOL`` (Cloud Run worker pools), falling + back to the service name (``K_SERVICE``, Cloud Run services), and the revision from + ``CLOUD_RUN_REVISION`` falling back to ``K_REVISION``. The unique instance id is fetched from + the Cloud Run metadata server with a single synchronous HTTP GET. Intended to be called once at + worker startup. + + Args: + timeout: Timeout, in seconds, for the request to the metadata server. + metadata_url: URL of the Cloud Run metadata server endpoint that returns the instance id. + getenv: Callable used to look up environment variables. Defaults to ``os.environ.get`` and + exists primarily for testing. + + Returns: + A :py:class:`GoogleCloudRunMetadata` describing the current instance. + + Raises: + RuntimeError: If the metadata server cannot be reached, which usually means the process is + not running on a Cloud Run worker pool or service. + """ + name = getenv("CLOUD_RUN_WORKER_POOL") or getenv("K_SERVICE") or "" + revision = getenv("CLOUD_RUN_REVISION") or getenv("K_REVISION") or "" + + request = urllib.request.Request( + metadata_url, + headers={"Metadata-Flavor": "Google"}, + method="GET", + ) + try: + with urllib.request.urlopen(request, timeout=timeout) as response: + instance_id = response.read().decode("utf-8").strip() + except OSError as err: + raise RuntimeError( + f"Failed to reach the Cloud Run metadata server at {metadata_url!r}; " + "this process may not be running on a Cloud Run worker pool or service." + ) from err + + return GoogleCloudRunMetadata( + instance_id=instance_id, + name=name, + revision=revision, + ) diff --git a/temporalio/contrib/gcp/cloud_run/opentelemetry/README.md b/temporalio/contrib/gcp/cloud_run/opentelemetry/README.md new file mode 100644 index 000000000..64431bece --- /dev/null +++ b/temporalio/contrib/gcp/cloud_run/opentelemetry/README.md @@ -0,0 +1,150 @@ +# Temporal Google Cloud Run integration + +`temporalio.contrib.gcp.cloud_run.opentelemetry` provides an OpenTelemetry plugin with +defaults for Temporal Python SDK workers running on Google Cloud Run. Cloud Run +worker pools are the recommended deployment because Temporal workers are +continuous, pull-based background workloads. + +> **Collector required by default:** The plugin exports metrics and traces to an +> OTLP collector at `http://localhost:4317`. It does not export directly to +> Google Cloud. Deploy the Google-Built OpenTelemetry Collector as a sidecar, +> configure another collector endpoint, or provide an application-owned runtime +> and tracer provider. Without a collector at the configured endpoint, +> telemetry is not delivered to Google Cloud. + +This integration is for container-based Cloud Run workloads. It does not +implement a Cloud Run functions invocation lifecycle. + +A Cloud Run service can also host a Temporal worker, but it must use +instance-based billing so CPU is available outside request handling, keep at +least one instance active through minimum instances or manual scaling, and run +an ingress container that listens on `PORT`. These are deployment requirements; +the plugin cannot configure them from inside the worker process. + +## Installation + +Install the SDK with the Cloud Run OpenTelemetry dependencies: + +```bash +python -m pip install 'temporalio[cloud-run-worker-otel]' +``` + +## Usage + +Create one plugin and install it when connecting the Temporal client. Client +plugins automatically propagate to workers created from that client. + +```python +import asyncio +from datetime import timedelta + +from temporalio.client import Client +from temporalio.contrib.gcp.cloud_run.opentelemetry import OpenTelemetryPlugin +from temporalio.worker import Worker + +otel_plugin = OpenTelemetryPlugin() +client = await Client.connect( + "localhost:7233", + plugins=[otel_plugin], +) +worker = Worker( + client, + task_queue="my-task-queue", + workflows=[MyWorkflow], + activities=[my_activity], +) + +try: + await worker.run() +finally: + # Run this only after every worker using the plugin has stopped. + await asyncio.to_thread(otel_plugin.shutdown, timedelta(seconds=2)) +``` + +The plugin configures Temporal Core metrics through a +`temporalio.runtime.Runtime` and delegates tracing to +`temporalio.contrib.opentelemetry.OpenTelemetryPlugin`. Do not install both the +Cloud Run and generic OpenTelemetry plugins on the same client. + +## Shutdown lifecycle + +`Worker.shutdown()` waits for worker shutdown to complete. Stop every worker +using the plugin, then call `OpenTelemetryPlugin.shutdown()` with the time +remaining before Cloud Run sends `SIGKILL`. The call force-flushes Python traces +and shuts down a tracer provider created by the plugin. An application-owned +provider is force-flushed but remains the application's responsibility. + +The Python SDK Core runtime exports metrics periodically and currently has no +explicit metrics-flush API. The default metric periodicity is 60 seconds, +matching the upstream OpenTelemetry SDK default. This avoids sending multiple +cumulative snapshots of the same Temporal series too frequently. Tune it with +`metric_periodicity` when the metrics backend semantics support a different +interval. + +Do not use a collector batch processor on the Google Managed Service for +Prometheus metrics pipeline. A runtime shutdown can force a metrics export +immediately after a periodic export, regardless of the periodicity. If the +collector combines both cumulative snapshots into one write, Google Managed +Service for Prometheus can reject it with `Duplicate TimeSeries`. Send each +OTLP metrics export directly through the memory limiter, GCP resource detection, +and any required resource/metric transforms to the Google Managed Prometheus +exporter. Keep a separate batch processor on the traces pipeline; trace batching +does not have the cumulative time-series collision. + +`flush_on_worker_stop=True` enables a best-effort trace flush after an +individual worker stops. It is disabled by default because one plugin can be +used by multiple workers and the remaining workers can emit telemetry after the +first worker stops. + +The OTLP endpoint is resolved in this order: + +1. `OpenTelemetryPlugin(endpoint=...)`. +2. `OTEL_EXPORTER_OTLP_ENDPOINT`. +3. `http://localhost:4317`. + +The OpenTelemetry service name is resolved in this order: + +1. `OpenTelemetryPlugin(service_name=...)`. +2. `OTEL_SERVICE_NAME`. +3. `CLOUD_RUN_WORKER_POOL` for a Cloud Run worker pool. +4. `K_SERVICE` for a Cloud Run service. +5. `temporal-worker`. + +The plugin owns the runtime and replay-safe tracer provider it creates. To use +an application-owned runtime or provider, pass `runtime=` or `tracer_provider=`. +An application-owned provider must be created with +`temporalio.contrib.opentelemetry.create_tracer_provider`. Use +`build_metrics_telemetry_config()` to compose GCP metrics defaults with custom +runtime logging or other telemetry settings. Do not also pass a different +`runtime` to `Client.connect()`. + +OpenTelemetry has one global tracer provider per process. Create the Cloud Run +plugin before installing another provider, or pass the already-installed +replay-safe provider through `tracer_provider=`. The plugin raises instead of +silently using a different global provider. + +The collector should use its GCP resource detector to add the Google Cloud +attributes it recognizes. Do not rely on the detector to infer Cloud Run +worker-pool-specific location or revision attributes; configure those explicitly +with a collector resource processor if they are required. This module does not +call the Google Cloud metadata server and adds no Google Cloud client libraries +or exporters to the worker process. + +## Collector sidecar + +Google publishes the Google-Built OpenTelemetry Collector as a container image. +Configure it as a second Cloud Run container, listen for OTLP gRPC on +`localhost:4317`, and use its GCP exporters for metrics and traces. Configure +separate pipelines: metrics without a batch processor, and traces with a +dedicated batch processor. For the image, collector configuration, IAM roles, +health check, and Secret Manager mount, see [Deploy Google-Built OpenTelemetry +Collector on Cloud Run](https://cloud.google.com/stackdriver/docs/instrumentation/opentelemetry-collector-cloud-run). +That guide demonstrates a Cloud Run service; adapt its collector container and +configuration when deploying a worker pool. + +Cloud Run worker pools support sidecar containers over localhost and are +intended for continuous background work. Start the collector before the +Temporal worker and use the collector health extension as its startup probe. + +To use an external collector instead, set `OTEL_EXPORTER_OTLP_ENDPOINT` or pass +`endpoint=` to the plugin. diff --git a/temporalio/contrib/gcp/cloud_run/opentelemetry/__init__.py b/temporalio/contrib/gcp/cloud_run/opentelemetry/__init__.py new file mode 100644 index 000000000..d4384649d --- /dev/null +++ b/temporalio/contrib/gcp/cloud_run/opentelemetry/__init__.py @@ -0,0 +1,36 @@ +"""OpenTelemetry integration for Temporal workers running on Google Cloud Run. + +This package is designed for container-based Cloud Run workers, especially +worker pools, and exports telemetry to an OpenTelemetry collector sidecar by +default. + +.. warning:: + This package is experimental and may change in future versions. + Use with caution in production environments. +""" + +from temporalio.contrib.gcp.cloud_run.opentelemetry._opentelemetry import ( + CLOUD_RUN_SERVICE_ENV_VAR, + CLOUD_RUN_WORKER_POOL_ENV_VAR, + DEFAULT_FLUSH_TIMEOUT, + DEFAULT_METRIC_PERIODICITY, + DEFAULT_OTLP_ENDPOINT, + DEFAULT_SERVICE_NAME, + OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VAR, + OTEL_SERVICE_NAME_ENV_VAR, + OpenTelemetryPlugin, + build_metrics_telemetry_config, +) + +__all__ = [ + "CLOUD_RUN_SERVICE_ENV_VAR", + "CLOUD_RUN_WORKER_POOL_ENV_VAR", + "DEFAULT_FLUSH_TIMEOUT", + "DEFAULT_METRIC_PERIODICITY", + "DEFAULT_OTLP_ENDPOINT", + "DEFAULT_SERVICE_NAME", + "OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VAR", + "OTEL_SERVICE_NAME_ENV_VAR", + "OpenTelemetryPlugin", + "build_metrics_telemetry_config", +] diff --git a/temporalio/contrib/gcp/cloud_run/opentelemetry/_opentelemetry.py b/temporalio/contrib/gcp/cloud_run/opentelemetry/_opentelemetry.py new file mode 100644 index 000000000..e8fff526f --- /dev/null +++ b/temporalio/contrib/gcp/cloud_run/opentelemetry/_opentelemetry.py @@ -0,0 +1,351 @@ +"""OpenTelemetry plugin with Google Cloud Run defaults.""" + +from __future__ import annotations + +import asyncio +import logging +import threading +from collections.abc import Awaitable, Callable +from datetime import timedelta + +from opentelemetry.sdk.resources import Resource +from opentelemetry.trace import ( + ProxyTracerProvider, + TracerProvider, + get_tracer_provider, + set_tracer_provider, +) + +from temporalio.contrib.opentelemetry import ( + OpenTelemetryPlugin as TemporalOpenTelemetryPlugin, +) +from temporalio.contrib.opentelemetry import _serverless, create_tracer_provider +from temporalio.contrib.opentelemetry._tracer_provider import ( + ReplaySafeTracerProvider, +) +from temporalio.runtime import Runtime, TelemetryConfig +from temporalio.service import ConnectConfig, ServiceClient +from temporalio.worker import Worker + +logger = logging.getLogger(__name__) + +OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VAR = _serverless.OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VAR +"""Standard OpenTelemetry environment variable for the common OTLP endpoint.""" + +OTEL_SERVICE_NAME_ENV_VAR = _serverless.OTEL_SERVICE_NAME_ENV_VAR +"""Standard OpenTelemetry environment variable for ``service.name``.""" + +CLOUD_RUN_WORKER_POOL_ENV_VAR = "CLOUD_RUN_WORKER_POOL" +"""Cloud Run environment variable containing the worker-pool name.""" + +CLOUD_RUN_SERVICE_ENV_VAR = "K_SERVICE" +"""Cloud Run environment variable containing the service name.""" + +DEFAULT_OTLP_ENDPOINT = _serverless.DEFAULT_OTLP_ENDPOINT +"""Default local OTLP gRPC collector endpoint.""" + +DEFAULT_SERVICE_NAME = "temporal-worker" +"""Service name used outside a recognized Cloud Run environment.""" + +DEFAULT_METRIC_PERIODICITY = timedelta(seconds=60) +"""Default interval between Temporal Core metric exports.""" + +DEFAULT_FLUSH_TIMEOUT = timedelta(seconds=10) +"""Default timeout for tracing force-flush operations.""" + + +class OpenTelemetryPlugin(TemporalOpenTelemetryPlugin): + """OpenTelemetry plugin for Temporal workers running on Google Cloud Run. + + The default configuration sends Temporal Core metrics and Python traces over + OTLP gRPC to a collector on ``localhost:4317``. The collector is responsible + for Google Cloud resource detection, authentication, and export. + + The plugin creates and installs a replay-safe global tracer provider unless + ``tracer_provider`` is supplied. It also creates a Temporal runtime for Core + metrics unless ``runtime`` is supplied. Call :py:meth:`shutdown` after every + worker using the plugin has stopped. + + .. warning:: + This class is experimental and may change in future versions. + Use with caution in production environments. + """ + + def __init__( + self, + *, + endpoint: str | None = None, + service_name: str | None = None, + metric_periodicity: timedelta | None = None, + flush_timeout: timedelta = DEFAULT_FLUSH_TIMEOUT, + flush_on_worker_stop: bool = False, + tracer_provider: TracerProvider | None = None, + runtime: Runtime | None = None, + add_temporal_spans: bool = False, + ) -> None: + """Initialize the Google Cloud OpenTelemetry plugin. + + Args: + endpoint: OTLP gRPC endpoint. Falls back to + ``OTEL_EXPORTER_OTLP_ENDPOINT``, then ``http://localhost:4317``. + service_name: OpenTelemetry service name. Falls back to + ``OTEL_SERVICE_NAME``, ``CLOUD_RUN_WORKER_POOL``, ``K_SERVICE``, + then ``temporal-worker``. + metric_periodicity: How often Temporal Core metrics are exported. + Defaults to 60 seconds. Cannot be used with ``runtime``. + flush_timeout: Default tracing force-flush timeout. + flush_on_worker_stop: Whether to force-flush traces after each + worker stops. Disabled by default because one plugin can be used + by multiple workers. + tracer_provider: Application-owned replay-safe tracer provider. It + must have been created with + :py:func:`temporalio.contrib.opentelemetry.create_tracer_provider`. + When supplied, the plugin does not create an exporter or shut + down the provider. + runtime: Application-owned Temporal runtime. When supplied, the + plugin does not create or modify Core metrics configuration. Use + :py:func:`build_metrics_telemetry_config` to build a composable + telemetry configuration for a custom runtime. + add_temporal_spans: Whether the underlying Temporal OpenTelemetry + plugin should add Temporal-specific operation spans. + """ + _validate_positive_duration("flush_timeout", flush_timeout) + if metric_periodicity is not None: + _validate_positive_duration("metric_periodicity", metric_periodicity) + if runtime is not None and metric_periodicity is not None: + raise ValueError("metric_periodicity cannot be set with runtime") + + resolved_endpoint = _resolve_endpoint(endpoint) + resolved_service_name = _resolve_service_name(service_name) + resolved_metric_periodicity = ( + metric_periodicity + if metric_periodicity is not None + else DEFAULT_METRIC_PERIODICITY + ) + + owns_tracer_provider = tracer_provider is None + if tracer_provider is None: + resolved_tracer_provider = _create_tracer_provider( + resolved_endpoint, resolved_service_name + ) + elif isinstance(tracer_provider, ReplaySafeTracerProvider): + resolved_tracer_provider = tracer_provider + else: + raise TypeError( + "tracer_provider must be created with " + "temporalio.contrib.opentelemetry.create_tracer_provider" + ) + + try: + if runtime is None: + runtime = Runtime( + telemetry=_serverless.build_metrics_telemetry_config( + endpoint=resolved_endpoint, + service_name=resolved_service_name, + metric_periodicity=resolved_metric_periodicity, + ) + ) + _install_global_tracer_provider(resolved_tracer_provider) + except BaseException: + if owns_tracer_provider: + resolved_tracer_provider.shutdown() + raise + + self._endpoint = resolved_endpoint + self._service_name = resolved_service_name + self._flush_timeout = flush_timeout + self._flush_on_worker_stop = flush_on_worker_stop + self._tracer_provider = resolved_tracer_provider + self._owns_tracer_provider = owns_tracer_provider + self._runtime = runtime + self._shutdown_lock = threading.Lock() + self._shutdown = False + self._shutdown_succeeded = True + + super().__init__(add_temporal_spans=add_temporal_spans) + + @property + def endpoint(self) -> str: + """Resolved OTLP collector endpoint.""" + return self._endpoint + + @property + def service_name(self) -> str: + """Resolved OpenTelemetry service name.""" + return self._service_name + + @property + def tracer_provider(self) -> ReplaySafeTracerProvider: + """Replay-safe tracer provider used by the plugin.""" + return self._tracer_provider + + @property + def runtime(self) -> Runtime: + """Temporal runtime used for Core metrics.""" + return self._runtime + + async def connect_service_client( + self, + config: ConnectConfig, + next: Callable[[ConnectConfig], Awaitable[ServiceClient]], + ) -> ServiceClient: + """Install the metrics runtime before connecting the service client.""" + if config.runtime is not None and config.runtime is not self._runtime: + raise ValueError( + "OpenTelemetryPlugin runtime conflicts with the runtime passed " + "to Client.connect; pass that runtime to the plugin instead" + ) + config.runtime = self._runtime + return await super().connect_service_client(config, next) + + async def run_worker( + self, worker: Worker, next: Callable[[Worker], Awaitable[None]] + ) -> None: + """Run a worker and optionally force-flush traces after it stops.""" + try: + await super().run_worker(worker, next) + finally: + if self._flush_on_worker_stop: + try: + succeeded = await asyncio.to_thread( + self.force_flush, self._flush_timeout + ) + if not succeeded: + logger.warning( + "OpenTelemetry trace flush timed out after worker stop" + ) + except Exception: + logger.exception( + "OpenTelemetry trace flush failed after worker stop" + ) + + def force_flush(self, timeout: timedelta | None = None) -> bool: + """Export buffered Python traces without shutting down the provider. + + Temporal Core metrics are exported periodically and the Python runtime + currently has no explicit metrics-flush API. + + Args: + timeout: Maximum time to wait. Defaults to ``flush_timeout`` from + the constructor. + + Returns: + ``True`` when the tracer provider reports a successful flush. + """ + resolved_timeout = timeout if timeout is not None else self._flush_timeout + _validate_positive_duration("timeout", resolved_timeout) + return self._tracer_provider.force_flush( + _duration_to_milliseconds(resolved_timeout) + ) + + def shutdown(self, timeout: timedelta | None = None) -> bool: + """Flush traces and shut down a provider created by the plugin. + + Application-owned tracer providers are force-flushed but are not shut + down. This method is idempotent. Stop every worker using the plugin + before calling it. + + Args: + timeout: Maximum time allowed for the tracing force-flush. Provider + shutdown happens after that flush. + + Returns: + ``True`` when the tracing force-flush succeeded. + """ + with self._shutdown_lock: + if self._shutdown: + return self._shutdown_succeeded + + succeeded = self.force_flush(timeout) + if self._owns_tracer_provider: + self._tracer_provider.shutdown() + self._shutdown = True + self._shutdown_succeeded = succeeded + return succeeded + + +def build_metrics_telemetry_config( + *, + endpoint: str | None = None, + service_name: str | None = None, + metric_periodicity: timedelta | None = None, +) -> TelemetryConfig: + """Build Temporal Core telemetry with Google Cloud Run defaults. + + This helper is useful when the application needs to customize runtime + logging or other telemetry settings before constructing a + :py:class:`temporalio.runtime.Runtime`. + + Args: + endpoint: OTLP gRPC endpoint, with the same resolution order as + :py:class:`OpenTelemetryPlugin`. + service_name: Service name, with the same resolution order as + :py:class:`OpenTelemetryPlugin`. + metric_periodicity: Metric export interval. Defaults to 60 seconds. + + Returns: + Telemetry configuration ready for a Temporal runtime. + """ + resolved_periodicity = ( + metric_periodicity + if metric_periodicity is not None + else DEFAULT_METRIC_PERIODICITY + ) + _validate_positive_duration("metric_periodicity", resolved_periodicity) + return _serverless.build_metrics_telemetry_config( + endpoint=_resolve_endpoint(endpoint), + service_name=_resolve_service_name(service_name), + metric_periodicity=resolved_periodicity, + ) + + +def _create_tracer_provider( + endpoint: str, service_name: str +) -> ReplaySafeTracerProvider: + provider = create_tracer_provider( + resource=Resource.create({"service.name": service_name}) + ) + try: + provider.add_span_processor(_serverless.build_otlp_span_processor(endpoint)) + except ImportError as err: + raise RuntimeError( + "The OTLP gRPC exporter is required. Install the " + "'temporalio[cloud-run-worker-otel]' extra." + ) from err + return provider + + +def _install_global_tracer_provider(provider: ReplaySafeTracerProvider) -> None: + current = get_tracer_provider() + if current is provider: + return + if not isinstance(current, ProxyTracerProvider): + raise RuntimeError( + "The global OpenTelemetry tracer provider is already configured. " + "Pass that provider as tracer_provider if it was created with " + "temporalio.contrib.opentelemetry.create_tracer_provider." + ) + set_tracer_provider(provider) + if get_tracer_provider() is not provider: + raise RuntimeError("Failed to install the OpenTelemetry tracer provider") + + +def _resolve_endpoint(explicit: str | None) -> str: + return _serverless.resolve_endpoint(explicit) + + +def _resolve_service_name(explicit: str | None) -> str: + return _serverless.resolve_service_name( + explicit, + [CLOUD_RUN_WORKER_POOL_ENV_VAR, CLOUD_RUN_SERVICE_ENV_VAR], + DEFAULT_SERVICE_NAME, + ) + + +def _validate_positive_duration(name: str, value: timedelta) -> None: + if value <= timedelta(0): + raise ValueError(f"{name} must be positive") + + +def _duration_to_milliseconds(value: timedelta) -> int: + return max(1, round(value.total_seconds() * 1000)) diff --git a/temporalio/contrib/gcp/gcsdriver/README.md b/temporalio/contrib/gcp/gcsdriver/README.md new file mode 100644 index 000000000..3b1aa42f3 --- /dev/null +++ b/temporalio/contrib/gcp/gcsdriver/README.md @@ -0,0 +1,92 @@ +# Google Cloud Storage Driver + +> ⚠️ **This package is experimental.** ⚠️ + +`GCSStorageDriver` stores and retrieves Temporal payloads in Google Cloud Storage. + +Install the async GCS client: + +```bash +python -m pip install "temporalio[gcloud-aio-storage]" +``` + +```python +import dataclasses + +from gcloud.aio.storage import Storage + +from temporalio.client import Client +from temporalio.contrib.gcp.gcsdriver import GCSStorageDriver +from temporalio.contrib.gcp.gcsdriver.gcloud_aio import new_gcloud_aio_client +from temporalio.converter import DataConverter, ExternalStorage + +async with Storage() as storage: + driver = GCSStorageDriver( + client=new_gcloud_aio_client(storage), + bucket="my-temporal-payloads", + ) + client = await Client.connect( + "localhost:7233", + data_converter=dataclasses.replace( + DataConverter.default, + external_storage=ExternalStorage(drivers=[driver]), + ), + ) + # Run clients and workers inside this context so their storage client stays open. +``` + +Configure credentials, timeouts, and retries through the `Storage` client. See the +[gcloud-aio documentation](https://talkiq.github.io/gcloud-aio/) for details. +The adapter does not add retries, and interrupted uploads must restart. + +## Configuration + +- Configure this driver on every Temporal client and worker that stores or retrieves + its payloads, using the same `driver_name` (default: `gcp.gcsdriver`). +- `bucket` accepts a name or a function taking `(context, payload)` and returning + a bucket name. Downloads use the bucket recorded at upload time. +- The bucket must already exist. Use a flat namespace bucket and credentials with + `storage.objects.get` and `storage.objects.create` permissions. +- `ExternalStorage.payload_size_threshold` defaults to 256 KiB. The driver accepts + serialized payloads up to `max_payload_size` (default: 50 MiB). +- Retain objects for as long as workflow histories may need them, including replay. + The driver leaves deletion and lifecycle policies to the application. + +To use another async GCS client, implement `GCSStorageDriverClient` with +`object_exists`, `put_object`, and `get_object`. `put_object` must leave an existing +object unchanged. + +## Object names and integrity + +Objects store the full Temporal payload, including metadata. Names include the +namespace, available workflow or activity identifiers, and a SHA-256 hash: + +```text +v0/ns/{namespace}/wt/{workflow-type}/wi/{workflow-id}/ri/{run-id}/d/sha256/{hex-digest} +v0/ns/{namespace}/at/{activity-type}/ai/{activity-id}/ri/{run-id}/d/sha256/{hex-digest} +v0/ns/{namespace}/d/sha256/{hex-digest} +``` + +The last form is used when no target is available, with the namespace of the +client or worker performing the operation. Empty or missing fields use +`null`, including an empty namespace on a workflow or activity target. Names +preserve Unicode and escape characters that interfere with +[GCS tools](https://cloud.google.com/storage/docs/objects#naming), including `/` +and `%` within individual fields. + +Names over 1,024 UTF-8 bytes fall back to +`v0/ns/{namespace}/d/sha256/{hex-digest}`, retaining the namespace for access policies. +Identical payload bytes in the same context reuse an object. Uploads never +overwrite existing objects, and downloads verify the hash before decoding. + +## Testing + +Run the tests: + +```bash +poe test -s tests/contrib/gcp/gcsdriver +``` + +Pytest downloads and caches [fake-gcs-server](https://github.com/fsouza/fake-gcs-server) +in `.pytest_cache`, starts it locally, and cleans up after the tests. To use a +preinstalled binary, put `fake-gcs-server` on `PATH`. diff --git a/temporalio/contrib/gcp/gcsdriver/__init__.py b/temporalio/contrib/gcp/gcsdriver/__init__.py new file mode 100644 index 000000000..8032618e8 --- /dev/null +++ b/temporalio/contrib/gcp/gcsdriver/__init__.py @@ -0,0 +1,13 @@ +"""Google Cloud Storage driver for Temporal external storage. + +.. warning:: + This API is experimental. +""" + +from temporalio.contrib.gcp.gcsdriver._client import GCSStorageDriverClient +from temporalio.contrib.gcp.gcsdriver._driver import GCSStorageDriver + +__all__ = [ + "GCSStorageDriverClient", + "GCSStorageDriver", +] diff --git a/temporalio/contrib/gcp/gcsdriver/_client.py b/temporalio/contrib/gcp/gcsdriver/_client.py new file mode 100644 index 000000000..5ebf75b00 --- /dev/null +++ b/temporalio/contrib/gcp/gcsdriver/_client.py @@ -0,0 +1,42 @@ +"""GCS storage driver client abstraction for the GCS storage driver. + +.. warning:: + This API is experimental. +""" + +from __future__ import annotations + +from abc import ABC, abstractmethod +from collections.abc import Mapping + + +class GCSStorageDriverClient(ABC): + """Abstract base class for GCS object operations. + + Implementations must support ``object_exists``, ``put_object``, and + ``get_object``. Resumable uploads (if needed) are an internal concern of + each implementation. Uploads must leave existing objects unchanged. + + .. warning:: + This API is experimental. + """ + + @abstractmethod + async def put_object(self, *, bucket: str, object_name: str, data: bytes) -> None: + """Upload *data* if absent at the given GCS *bucket* and *object_name*.""" + + @abstractmethod + async def object_exists(self, *, bucket: str, object_name: str) -> bool: + """Return ``True`` if an object exists at the given *bucket* and *object_name*.""" + + @abstractmethod + async def get_object(self, *, bucket: str, object_name: str) -> bytes: + """Download and return the bytes stored at the given GCS *bucket* and *object_name*.""" + + def describe(self) -> Mapping[str, str]: + """Return client-specific diagnostic metadata (e.g. region, credentials + source) that the driver appends to error messages. Implementations may + override this to surface configuration that is useful for debugging + common misconfigurations. Returns an empty mapping by default. + """ + return {} diff --git a/temporalio/contrib/gcp/gcsdriver/_driver.py b/temporalio/contrib/gcp/gcsdriver/_driver.py new file mode 100644 index 000000000..523b1c3e2 --- /dev/null +++ b/temporalio/contrib/gcp/gcsdriver/_driver.py @@ -0,0 +1,261 @@ +"""Google Cloud Storage driver for Temporal external storage. + +.. warning:: + This API is experimental. +""" + +from __future__ import annotations + +import asyncio +import hashlib +from collections.abc import Callable, Coroutine, Sequence +from typing import Any, TypeVar + +from temporalio.api.common.v1 import Payload +from temporalio.contrib.gcp.gcsdriver._client import GCSStorageDriverClient +from temporalio.converter import ( + StorageDriver, + StorageDriverActivityInfo, + StorageDriverClaim, + StorageDriverRetrieveContext, + StorageDriverStoreContext, + StorageDriverWorkflowInfo, +) + +_T = TypeVar("_T") + +_GCS_UNSAFE_CHARS = frozenset('#[]*?:"<>|/%') + + +def _percent_encode(val: str | None) -> str | None: + """Percent-encode a segment of a GCS object name. + + Escape characters that interfere with GCS tooling, path separators, and + percent signs, preserving readable Unicode. Returns ``None`` for empty or + missing values so callers can substitute ``"null"``. + """ + if not val: + return None + encoded: list[str] = [] + for char in val: + if char in _GCS_UNSAFE_CHARS or ord(char) <= 0x1F or 0x7F <= ord(char) <= 0x9F: + encoded.extend(f"%{byte:02X}" for byte in char.encode("utf-8")) + else: + encoded.append(char) + segment = "".join(encoded) + if segment in (".", ".."): + return segment.replace(".", "%2E") + return segment + + +def _format_client_context(client: GCSStorageDriverClient) -> str: + """Format the client's ``describe()`` output as ", k=v, k=v" for error + messages. Returns an empty string when the client reports no metadata or + describe itself raises (diagnostic output must never mask the real error). + """ + try: + info = client.describe() + except Exception: + return "" + if not info: + return "" + return "".join(f", {k}={v}" for k, v in info.items()) + + +async def _gather_with_cancellation( + coros: Sequence[Coroutine[Any, Any, _T]], +) -> list[_T]: + """Run coroutines concurrently, cancelling all remaining tasks if one fails.""" + if not coros: + return [] + tasks = [asyncio.ensure_future(c) for c in coros] + try: + return list(await asyncio.gather(*tasks)) + except BaseException: + for t in tasks: + t.cancel() + await asyncio.gather(*tasks, return_exceptions=True) + raise + + +class GCSStorageDriver(StorageDriver): + """Driver for storing and retrieving Temporal payloads in Google Cloud Storage. + + Requires an :class:`GCSStorageDriverClient` and a ``bucket``. Payloads are keyed by + a SHA-256 hash of their serialized bytes, segmented by namespace and + workflow/activity identifiers derived from the serialization context. + + .. warning:: + This API is experimental. + """ + + def __init__( + self, + client: GCSStorageDriverClient, + bucket: str | Callable[[StorageDriverStoreContext, Payload], str], + driver_name: str = "gcp.gcsdriver", + max_payload_size: int = 50 * 1024 * 1024, + ): + """Constructs the GCS driver. + + Args: + client: An :class:`GCSStorageDriverClient` implementation. Use + :func:`temporalio.contrib.gcp.gcsdriver.gcloud_aio.new_gcloud_aio_client` to + wrap a gcloud-aio-storage client. + bucket: GCS bucket name or a callable that + accepts ``(StorageDriverStoreContext, Payload)`` and returns + a bucket name. A callable allows dynamic per-payload bucket + selection. + driver_name: Name of this driver instance. Defaults to + ``"gcp.gcsdriver"``. Override when registering + multiple GCSStorageDriver instances with distinct configurations + under the same ``temporalio.converter.ExternalStorage.drivers`` list. + max_payload_size: Maximum serialized payload size in bytes that the + driver will accept. Defaults to 52428800 (50 MiB). Raise this + value if your workload requires larger payloads; lower it to + enforce stricter limits. + """ + if max_payload_size <= 0: + raise ValueError("max_payload_size must be greater than zero") + self._client = client + self._bucket = bucket + self._driver_name = driver_name or "gcp.gcsdriver" + self._max_payload_size = max_payload_size + + def name(self) -> str: + """Return the driver instance name.""" + return self._driver_name + + def type(self) -> str: + """Return the driver type identifier.""" + return "gcp.gcsdriver" + + def _get_bucket(self, context: StorageDriverStoreContext, payload: Payload) -> str: + """Resolve bucket using the configured strategy.""" + if callable(self._bucket): + return self._bucket(context, payload) + return self._bucket + + async def store( + self, + context: StorageDriverStoreContext, + payloads: Sequence[Payload], + ) -> list[StorageDriverClaim]: + """Stores payloads in GCS and returns a ``StorageDriverClaim`` for each one. + + Payloads are keyed by their SHA-256 hash, so identical serialized bytes + share the same GCS object. Deduplication is best-effort because the same + Python value may serialize differently across payload converter versions + (e.g. proto binary). The returned list is the same length as + ``payloads``. + + Without a target, object names are scoped to the context's namespace. An + empty or missing namespace uses ``"null"``. + """ + context_segments = "" + target = context.target + namespace = target.namespace if target is not None else context.namespace + namespace_segment = f"/ns/{_percent_encode(namespace) or 'null'}" + if isinstance(target, StorageDriverWorkflowInfo): + wf_type = _percent_encode(target.type) or "null" + wf_id = _percent_encode(target.id) or "null" + wf_run_id = _percent_encode(target.run_id) or "null" + context_segments = f"/wt/{wf_type}/wi/{wf_id}/ri/{wf_run_id}" + elif isinstance(target, StorageDriverActivityInfo): + act_type = _percent_encode(target.type) or "null" + act_id = _percent_encode(target.id) or "null" + act_run_id = _percent_encode(target.run_id) or "null" + context_segments = f"/at/{act_type}/ai/{act_id}/ri/{act_run_id}" + + async def _upload(payload: Payload) -> StorageDriverClaim: + bucket = self._get_bucket(context, payload) + + payload_bytes = payload.SerializeToString() + if len(payload_bytes) > self._max_payload_size: + raise ValueError( + f"Payload size {len(payload_bytes)} bytes exceeds the configured " + f"max_payload_size of {self._max_payload_size} bytes" + ) + + hash_digest = hashlib.sha256(payload_bytes).hexdigest() + + digest_segments = f"/d/sha256/{hash_digest}" + + object_name = f"v0{namespace_segment}{context_segments}{digest_segments}" + if len(object_name.encode("utf-8")) > 1024: + # Retain namespace scope for authorization policies on object prefixes. + object_name = f"v0{namespace_segment}{digest_segments}" + + try: + if not await self._client.object_exists( + bucket=bucket, object_name=object_name + ): + await self._client.put_object( + bucket=bucket, object_name=object_name, data=payload_bytes + ) + except Exception as e: + raise RuntimeError( + f"GCSStorageDriver store failed [bucket={bucket}, object_name={object_name}" + f"{_format_client_context(self._client)}]" + ) from e + + return StorageDriverClaim( + claim_data={ + "bucket": bucket, + "object_name": object_name, + "hash_algorithm": "sha256", + "hash_value": hash_digest, + }, + ) + + return await _gather_with_cancellation([_upload(p) for p in payloads]) + + async def retrieve( + self, + context: StorageDriverRetrieveContext, # noqa: ARG002 + claims: Sequence[StorageDriverClaim], + ) -> list[Payload]: + """Retrieves payloads from GCS for the given ``StorageDriverClaim`` list.""" + + async def _download(claim: StorageDriverClaim) -> Payload: + bucket = claim.claim_data["bucket"] + object_name = claim.claim_data["object_name"] + + try: + payload_bytes = await self._client.get_object( + bucket=bucket, object_name=object_name + ) + except Exception as e: + raise RuntimeError( + f"GCSStorageDriver retrieve failed [bucket={bucket}, object_name={object_name}" + f"{_format_client_context(self._client)}]" + ) from e + + hash_algorithm = claim.claim_data.get("hash_algorithm") + expected_hash = claim.claim_data.get("hash_value") + if not hash_algorithm or not expected_hash: + raise ValueError( + f"GCSStorageDriver claim is missing required content hash information " + f"[bucket={bucket}, object_name={object_name}]: " + f"claim_data must contain 'hash_algorithm' and 'hash_value'" + ) + if hash_algorithm != "sha256": + raise ValueError( + f"GCSStorageDriver unsupported hash algorithm " + f"[bucket={bucket}, object_name={object_name}]: " + f"expected sha256, got {hash_algorithm}" + ) + actual_hash = hashlib.sha256(payload_bytes).hexdigest() + if actual_hash != expected_hash: + raise ValueError( + f"GCSStorageDriver integrity check failed " + f"[bucket={bucket}, object_name={object_name}]: " + f"expected {hash_algorithm}:{expected_hash}, " + f"got {hash_algorithm}:{actual_hash}" + ) + + payload = Payload() + payload.ParseFromString(payload_bytes) + return payload + + return await _gather_with_cancellation([_download(c) for c in claims]) diff --git a/temporalio/contrib/gcp/gcsdriver/gcloud_aio.py b/temporalio/contrib/gcp/gcsdriver/gcloud_aio.py new file mode 100644 index 000000000..0d9ae1cae --- /dev/null +++ b/temporalio/contrib/gcp/gcsdriver/gcloud_aio.py @@ -0,0 +1,64 @@ +"""Gcloud-aio-storage adapter for the GCS storage driver client. + +.. warning:: + This API is experimental. +""" + +from __future__ import annotations + +from aiohttp import ClientResponseError +from gcloud.aio.storage import Storage + +from temporalio.contrib.gcp.gcsdriver._client import GCSStorageDriverClient + + +class _GcloudAioStorageDriverClient(GCSStorageDriverClient): + """Adapter for an application-owned gcloud-aio-storage client.""" + + def __init__(self, client: Storage) -> None: + """Wrap the async storage client.""" + self._client = client + + async def object_exists(self, *, bucket: str, object_name: str) -> bool: + """Check existence via object metadata.""" + try: + await self._client.download_metadata(bucket, object_name) + return True + except ClientResponseError as err: + if err.status == 404: + return False + raise + + async def put_object(self, *, bucket: str, object_name: str, data: bytes) -> None: + """Upload bytes using conditional object creation.""" + try: + await self._client.upload( + bucket, + object_name, + data, + content_type="application/octet-stream", + parameters={"ifGenerationMatch": "0"}, + force_resumable_upload=False, + ) + except ClientResponseError as err: + # Another writer may create the content-addressed object after our check. + if err.status == 412: + return + raise + + async def get_object(self, *, bucket: str, object_name: str) -> bytes: + """Download the object's bytes.""" + return await self._client.download(bucket, object_name) + + +def new_gcloud_aio_client(client: Storage) -> GCSStorageDriverClient: + """Create a GCS storage driver client from a gcloud-aio-storage client. + + Args: + client: An application-owned ``gcloud.aio.storage.Storage`` client. Keep + it open until all Temporal clients and workers using it have stopped. + + .. warning:: + This API is experimental. + """ + return _GcloudAioStorageDriverClient(client) diff --git a/temporalio/contrib/google_adk_agents/README.md b/temporalio/contrib/google_adk_agents/README.md index 294e5dddd..10ee383a3 100644 --- a/temporalio/contrib/google_adk_agents/README.md +++ b/temporalio/contrib/google_adk_agents/README.md @@ -1,318 +1,39 @@ -# Google ADK Agents SDK Integration for Temporal +# Google ADK integration -This package provides the integration layer between the Google ADK and Temporal. It allows ADK Agents to run reliably within Temporal Workflows by ensuring determinism and correctly routing external calls (network I/O) through Temporal Activities. +The Google ADK integration has moved to the independently versioned +[`temporalio-google-adk`](https://pypi.org/project/temporalio-google-adk/) +package. Its canonical Python API is `temporalio.google_adk`. -## Benefits of Temporal to the ADK +The complete integration guide now lives in the +[`temporalio-google-adk` README](https://github.com/temporalio/ai-integrations/tree/main/python/google_adk#readme). -Temporal provides a holistic, unified solution that centralizes your orchestration needs in one Workflow abstraction. Rather than cobbling together separate servers, task queues, gateways, and databases, you get: +## Migrating to the standalone package -- **Recovering from crashes and stalls automatically**, rather than manually managing [sessions](https://google.github.io/adk-docs/sessions/session/#example-examining-session-properties) and [resuming](https://google.github.io/adk-docs/runtime/resume/#resume-a-stopped-workflow) them. (Google offers [Vertex Agent Engine](https://docs.cloud.google.com/agent-builder/agent-engine/sessions/manage-sessions-adk), which still leaves resumption to the user). No need to set up a separate [database](https://dev.to/greyisheepai/mastering-google-adk-databasesessionservice-and-events-complete-guide-to-event-injection-and-pdm#understanding-adk-databasesessionservice) - - Along with [Retries](https://docs.temporal.io/encyclopedia/retry-policies) and mechanisms for handling backpressure and rate limits. -- **Support for [ambient](https://temporal.io/blog/orchestrating-ambient-agents-with-temporal)/long-running agent patterns** via blocking awaits and [worker versioning](https://docs.temporal.io/production-deployment/worker-deployments/worker-versioning). -- **Automatic execution state [persistence](https://docs.temporal.io/temporal-service/persistence)**, not just for agent interactions but for any custom automations in your workflows, without setting up a separate [database](https://dev.to/greyisheepai/mastering-google-adk-databasesessionservice-and-events-complete-guide-to-event-injection-and-pdm#understanding-adk-databasesessionservice). -- For **Human-in-the-Loop patterns,** an api gateway to scalably [route](https://docs.temporal.io/task-routing) incoming messages (such as user chats) to awaken the correct workflow on your worker pool. -- [**Long-running tools](https://google.github.io/adk-docs/tools-custom/function-tools/#long-run-tool) support** using [Activities](https://docs.temporal.io/activities) — no need to set up and maintain microservices. -- [Manage and debug your agent workflow](https://temporal.io/resources/on-demand/demo-ai-agent) execution and pinpoint problems using Temporal UI. +Remove the `google-adk` extra from the existing Temporal dependency: -## Benefits of the ADK to Temporal +```toml +# Before +dependencies = [ + "temporalio[google-adk,opentelemetry,pydantic]", +] -ADK provides: (from the [ADK overview](https://google.github.io/adk-docs/#learn-more)): - -- Improved Agent development velocity with a first-class Agentic abstraction and integration with LLMs and an ecosystem of tools. -- Improved agent robustness using built-in evals -- Build complex agents using its Multi-agent architecture. -- [Safety and security](https://google.github.io/adk-docs/safety/), via guardrails and integrations with sandboxing solutions like Vertex Agent Runtime. - -## What's Included - -### Core ADK Integration -- **`TemporalModel`**: Intercepts model calls and executes them as Temporal activities -- **`GoogleAdkPlugin`**: Worker plugin that configures runtime determinism and Pydantic serialization -- **`invoke_model`**: Activity for executing LLM model calls with proper error handling - -### MCP (Model Context Protocol) Integration -- **`TemporalMcpToolSet`**: Executes MCP tools as Temporal activities -- **`TemporalMcpToolSetProvider`**: Manages toolset creation and activity registration -- Full support for tool confirmation and event actions within workflows - -### OpenTelemetry Integration -- Automatic instrumentation for ADK components when exporters are provided -- Tracing integration that works within Temporal's execution context -- Support for custom span exporters - -### Key Features - -#### 1. Deterministic Runtime -- Replaces `time.time()` with `workflow.now()` when in workflow context -- Replaces `uuid.uuid4()` with `workflow.uuid4()` for deterministic IDs -- Automatic setup when using `GoogleAdkPlugin` - -#### 2. Activity-Based Model Execution -Model calls are intercepted and executed as Temporal activities with configurable: -- Timeouts (schedule-to-close, start-to-close, heartbeat) -- Retry policies -- Task queues -- Cancellation behavior -- Priority levels - -#### 3. Sandbox Compatibility -- Automatic passthrough for `google.adk`, `google.genai`, and `mcp` modules -- Works with both sandboxed and unsandboxed workflow runners - -#### 4. Advanced Serialization -- Pydantic payload converter for ADK objects -- Proper handling of complex ADK data types -- Maintains type safety across workflow boundaries - -## Usage - -### Basic Setup - -**Agent (Workflow) Side:** -```python -from temporalio.contrib.google_adk_agents import TemporalModel -from temporalio.workflow import ActivityConfig -from google.adk import Agent - - -# Add to agent -agent = Agent( - name="test_agent", - model=TemporalModel("gemini-2.5-pro", activity_config=ActivityConfig(summary="Researcher Agent")), -) +# After +dependencies = [ + "temporalio[opentelemetry,pydantic]", +] ``` -**Worker Side:** - -```python -from temporalio.client import Client -from temporalio.worker import Worker -from temporalio.contrib.google_adk_agents import GoogleAdkPlugin - -client = await Client.connect( - "localhost:7233", - plugins=[ - GoogleAdkPlugin(), - ], -) +Remove the brackets if no extras remain. Then install the standalone package directly: -worker = Worker( - client, - task_queue="my-queue", -) +```bash +uv add temporalio-google-adk ``` -### Advanced Features - -**With MCP Tools:** +Change application imports to the standalone package: ```python -import os -from google.adk import Agent -from google.adk.tools.mcp_tool import McpToolset -from google.adk.tools.mcp_tool.mcp_session_manager import StdioConnectionParams -from mcp import StdioServerParameters -from temporalio.client import Client -from temporalio.worker import Worker - -from temporalio.contrib.google_adk_agents import ( - GoogleAdkPlugin, - TemporalMcpToolSetProvider, - TemporalMcpToolSet, -) - - -def toolset_factory(_): - return McpToolset( - connection_params=StdioConnectionParams( - server_params=StdioServerParameters( - command="npx", - args=[ - "-y", - "@modelcontextprotocol/server-filesystem", - os.path.dirname(os.path.abspath(__file__)), - ], - ), - ), - ) - -# Use in agent workflow -agent = Agent( - name="test_agent", - model="gemini-2.5-pro", - tools=[ - TemporalMcpToolSet( - "my-tools", - not_in_workflow_toolset=toolset_factory, - ) - ], -) - -client = await Client.connect( - "localhost:7233", - plugins=[ - GoogleAdkPlugin( - toolset_providers=[ - TemporalMcpToolSetProvider("my-tools", toolset_factory), - ], - ), - ], -) - -# Configure worker -worker = Worker( - client, - task_queue="task-queue" -) +from temporalio.google_adk import GoogleAdkPlugin ``` -`TemporalMcpToolSet` also accepts an optional `factory_argument`. It is sent to the toolset activities and passed to the registered `toolset_factory` when the `McpToolset` is created. - -**Do not pass secrets, credentials, or API keys through `factory_argument`.** It is an activity argument, so it is recorded in workflow history and, without a payload codec, visible in the web UI. Resolve credentials worker-side inside the toolset factory instead. - -### Reading Session State in Activity Tools - -ADK's live `ToolContext` holds non-serializable objects, so it cannot be an -activity argument. To read the serializable subset from an activity-backed -tool, declare a parameter named `tool_context` annotated with -`ToolContextSnapshot`: - -```python -from datetime import timedelta - -from temporalio import activity -from temporalio.contrib.google_adk_agents.workflow import ( - ToolContextSnapshot, - activity_as_tool, -) - - -@activity.defn -async def get_weather(query: str, tool_context: ToolContextSnapshot) -> dict: - db_url = tool_context.state.get("url", "") - ... - - -weather_tool = activity_as_tool( - get_weather, start_to_close_timeout=timedelta(seconds=30) -) -``` - -Exactly like a native ADK function tool's `tool_context` parameter, it is -excluded from the LLM-facing tool schema; at invocation the wrapper snapshots -the live `ToolContext` (session state as a plain dict, plus the function-call -id) and passes it to the activity. Annotating any parameter with a live ADK -context type raises `ValueError` at wrap time, since ADK would inject the -non-serializable context into it regardless of its name. - -When running under Temporal, the entire session state crosses the activity -boundary: every value in it must be serializable by the configured data -converter and the total size must fit within payload limits, even for keys -the tool never reads. Local ADK runs pass the snapshot in memory and have no -such constraint. - -The snapshot is one-way and should be treated as read-only: mutations inside -the activity do not propagate back to the session, because the activity may -run on a different worker (and in local ADK runs, where the snapshot is -passed in memory, nested state values may alias the live session state, so -mutating them can corrupt the session). To modify session state, return the -needed information from the activity and apply it in workflow-side code (for -example an ADK callback or a plain tool function). - -### Local ADK Runs - -The same agent definitions can also be exercised outside Temporal with -`adk run` or `adk web`. - -- `TemporalModel` and `activity_as_tool(...)` work in local ADK runs without - additional configuration. -- If the agent uses `TemporalMcpToolSet`, define a shared toolset factory, - register it with `TemporalMcpToolSetProvider(...)` for workflow runs, and - reuse the same function for `not_in_workflow_toolset=...` so the agent can - fall back to the underlying `McpToolset` when it is not running inside - `workflow.in_workflow()`. - -Example: - -```python -# Reuse the same toolset_factory registered in GoogleAdkPlugin above. -agent = Agent( - name="test_agent", - model=TemporalModel("gemini-2.5-pro"), - tools=[ - TemporalMcpToolSet( - "my-tools", - not_in_workflow_toolset=toolset_factory, - ) - ], -) -``` - -## Telemetry and Workflow Replay - -ADK records OpenTelemetry metrics (scope `gcp.vertex.agent`, e.g. -`gen_ai.client.token.usage`), spans, and log events (e.g. `gen_ai.choice`) -through the process-global OpenTelemetry providers from code that runs -inside the workflow. Workflow code re-executes on every replay, so with a -plain global provider each replay re-records all of that telemetry even -though no model or tool actually ran again — for example, 1 real execution -followed by 3 replays yields 4x the observations on every instrument and 4 -copies of every log event. Replays happen routinely in production: workflow -cache eviction, worker restarts, redeploys, or running with -`max_cached_workflows=0`. - -To avoid this, install Temporal's replay-safe providers as the global -OpenTelemetry providers. They pass recordings through on first execution and -drop them while history events are replaying (queries and update validators -are live operations and still record): - -```python -import opentelemetry._logs -import opentelemetry.metrics -import opentelemetry.trace -from opentelemetry.sdk._logs import LoggerProvider -from opentelemetry.sdk._logs.export import BatchLogRecordProcessor -from opentelemetry.sdk.metrics import MeterProvider -from opentelemetry.sdk.metrics.export import PeriodicExportingMetricReader -from opentelemetry.sdk.trace.export import BatchSpanProcessor - -from temporalio.contrib.opentelemetry import ( - ReplaySafeLoggerProvider, - ReplaySafeMeterProvider, - create_tracer_provider, -) - -# The global set_*_provider functions only take effect once per process, so -# these wrappers must be the first and only global providers set. -opentelemetry.metrics.set_meter_provider( - ReplaySafeMeterProvider( - MeterProvider(metric_readers=[PeriodicExportingMetricReader(my_exporter)]) - ) -) -tracer_provider = create_tracer_provider() -tracer_provider.add_span_processor(BatchSpanProcessor(my_span_exporter)) -opentelemetry.trace.set_tracer_provider(tracer_provider) -logger_provider = LoggerProvider() -logger_provider.add_log_record_processor(BatchLogRecordProcessor(my_log_exporter)) -opentelemetry._logs.set_logger_provider(ReplaySafeLoggerProvider(logger_provider)) -``` - -`GoogleAdkPlugin` warns at worker and replayer configuration time when the -global meter or tracer provider is positively identified as not replay-safe -(an OpenTelemetry SDK provider used directly). The global logger provider is -not checked because the OpenTelemetry logs SDK has no public import path yet, -but the same replay duplication applies to it. - -Recordings are first-execution-only, matching -`temporalio.workflow.metric_meter()`: a retried workflow task re-executes -live and can record again, and tokens consumed by failed activity attempts -are not counted. Telemetry recorded from activities (worker-side) is -unaffected. - -## Integration Points - -This integration provides comprehensive support for running Google ADK Agents within Temporal workflows while maintaining: -- **Determinism**: All non-deterministic operations are routed through Temporal -- **Observability**: Full tracing and activity visibility -- **Reliability**: Proper retry handling and error propagation -- **Extensibility**: Support for custom tools via MCP protocol +The new import path selects the standalone implementation instead of the +SDK-bundled `temporalio.contrib.google_adk_agents` implementation. diff --git a/temporalio/contrib/google_adk_agents/__init__.py b/temporalio/contrib/google_adk_agents/__init__.py index d4c969fb3..c0244190e 100644 --- a/temporalio/contrib/google_adk_agents/__init__.py +++ b/temporalio/contrib/google_adk_agents/__init__.py @@ -1,24 +1,12 @@ -"""Temporal Integration for ADK. +"""Compatibility imports for the standalone Google ADK integration. -This module provides the necessary components to run ADK Agents within Temporal Workflows. +Install ``temporalio-google-adk`` and import ``temporalio.google_adk`` +directly in new code. + +Legacy ``workflow`` module forwards the standalone public API. """ -from temporalio.contrib.google_adk_agents._mcp import ( - TemporalMcpToolSet, - TemporalMcpToolSetProvider, - TemporalStatefulMcpToolSet, - TemporalStatefulMcpToolSetProvider, -) -from temporalio.contrib.google_adk_agents._model import TemporalModel -from temporalio.contrib.google_adk_agents._plugin import ( - GoogleAdkPlugin, +from temporalio.google_adk import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.google_adk import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, ) - -__all__ = [ - "GoogleAdkPlugin", - "TemporalMcpToolSet", - "TemporalMcpToolSetProvider", - "TemporalStatefulMcpToolSet", - "TemporalStatefulMcpToolSetProvider", - "TemporalModel", -] diff --git a/temporalio/contrib/google_adk_agents/_mcp.py b/temporalio/contrib/google_adk_agents/_mcp.py deleted file mode 100644 index b342c9c3c..000000000 --- a/temporalio/contrib/google_adk_agents/_mcp.py +++ /dev/null @@ -1,718 +0,0 @@ -import asyncio -import functools -from collections.abc import Sequence -from dataclasses import dataclass -from datetime import timedelta -from types import TracebackType -from typing import Any, Callable - -from google.adk.agents.readonly_context import ReadonlyContext -from google.adk.events import EventActions -from google.adk.tools.base_tool import BaseTool -from google.adk.tools.base_toolset import BaseToolset -from google.adk.tools.mcp_tool import McpToolset -from google.adk.tools.tool_confirmation import ToolConfirmation -from google.adk.tools.tool_context import ToolContext -from google.genai import types -from google.genai.types import FunctionDeclaration - -from temporalio import activity, workflow -from temporalio.api.enums.v1.workflow_pb2 import ( - TIMEOUT_TYPE_HEARTBEAT, - TIMEOUT_TYPE_SCHEDULE_TO_START, -) -from temporalio.exceptions import ( - ActivityError, - ApplicationError, - is_cancelled_exception, -) -from temporalio.worker import PollerBehaviorSimpleMaximum, Worker -from temporalio.workflow import ActivityConfig, ActivityHandle - - -@dataclass -class _GetToolsArguments: - factory_argument: Any | None - - -@dataclass -class _ToolResult: - name: str - description: str - is_long_running: bool - custom_metadata: dict[str, Any] | None - function_declaration: FunctionDeclaration | None - - -@dataclass -class TemporalToolContext: - """Context for tools running within Temporal workflows. - - Provides access to tool confirmation and event actions for ADK integration. - """ - - tool_confirmation: ToolConfirmation | None - function_call_id: str | None - event_actions: EventActions - - def request_confirmation( - self, - *, - hint: str | None = None, - payload: Any | None = None, - ) -> None: - """Requests confirmation for the given function call. - - Args: - hint: A hint to the user on how to confirm the tool call. - payload: The payload used to confirm the tool call. - """ - if not self.function_call_id: - raise ValueError("function_call_id is not set.") - self.event_actions.requested_tool_confirmations[self.function_call_id] = ( - ToolConfirmation( - hint=hint or "", - payload=payload, - ) - ) - - -@dataclass -class _CallToolResult: - result: Any - tool_context: TemporalToolContext - - -@dataclass -class _CallToolArguments: - factory_argument: Any | None - name: str - arguments: dict[str, Any] - tool_context: TemporalToolContext - - -class TemporalMcpToolSetProvider: - """Provider for creating Temporal-aware MCP toolsets. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - Manages the creation of toolset activities and handles tool execution - within Temporal workflows. - - This provider is *stateless*: every ``list-tools``/``call-tool`` activity - invocation builds a fresh ``McpToolset`` via ``toolset_factory``, runs the - operation, and always closes the toolset in a ``finally`` block. This means - ``factory_argument`` is honored on every single call (no cross-workflow - connection sharing or silent mis-routing) and no MCP session or stdio - subprocess is leaked. State is not maintained across calls; if a persistent - connection is required, use :class:`TemporalStatefulMcpToolSetProvider`. - """ - - def __init__( - self, - name: str, - toolset_factory: Callable[[Any | None], McpToolset], - ) -> None: - """Initializes the toolset provider. - - Args: - name: Name prefix for the generated activities. - toolset_factory: Factory function that creates McpToolset instances. - It should return a new toolset each time so that no state is - shared between workflow runs. - """ - super().__init__() - self._name = name - self._toolset_factory = toolset_factory - - def _get_activities(self) -> Sequence[Callable]: - @activity.defn(name=self._name + "-list-tools") - async def get_tools( - args: _GetToolsArguments, - ) -> list[_ToolResult]: - # Build a fresh toolset per call, honoring this call's - # ``factory_argument``, and always close it so no MCP session - # (or stdio subprocess) leaks. See issue #1663. - toolset = self._toolset_factory(args.factory_argument) - try: - tools = await toolset.get_tools() - return [ - _ToolResult( - tool.name, - tool.description, - tool.is_long_running, - tool.custom_metadata, - tool._get_declaration(), - ) - for tool in tools - ] - finally: - await toolset.close() - - @activity.defn(name=self._name + "-call-tool") - async def call_tool( - args: _CallToolArguments, - ) -> _CallToolResult: - toolset = self._toolset_factory(args.factory_argument) - try: - tools = await toolset.get_tools() - - tool_match = [tool for tool in tools if tool.name == args.name] - if len(tool_match) == 0: - raise ApplicationError( - f"Unable to find matching mcp tool by name: {args.name}" - ) - if len(tool_match) > 1: - raise ApplicationError( - f"Found multiple MCP tools with the same name: {args.name}" - ) - tool = tool_match[0] - - # We cannot provide a full-fledged ToolContext so we need to provide only what is needed by the tool - result = await tool.run_async( - args=args.arguments, - tool_context=args.tool_context, # type:ignore - ) - return _CallToolResult(result=result, tool_context=args.tool_context) - finally: - await toolset.close() - - return get_tools, call_tool - - -class _TemporalTool(BaseTool): - def __init__( - self, - set_name: str, - factory_argument: Any | None, - config: ActivityConfig | None, - declaration: FunctionDeclaration | None, - *, - name: str, - description: str, - is_long_running: bool = False, - custom_metadata: dict[str, Any] | None = None, - ): - super().__init__( - name=name, - description=description, - is_long_running=is_long_running, - custom_metadata=custom_metadata, - ) - self._set_name = set_name - self._factory_argument = factory_argument - self._config = config or ActivityConfig( - start_to_close_timeout=timedelta(minutes=1) - ) - self._declaration = declaration - - def _get_declaration(self) -> types.FunctionDeclaration | None: - return self._declaration - - async def run_async( - self, *, args: dict[str, Any], tool_context: ToolContext - ) -> Any: - result: _CallToolResult = await workflow.execute_activity( - self._set_name + "-call-tool", - _CallToolArguments( - self._factory_argument, - self.name, - arguments=args, - tool_context=TemporalToolContext( - tool_confirmation=tool_context.tool_confirmation, - function_call_id=tool_context.function_call_id, - event_actions=tool_context._event_actions, - ), - ), - result_type=_CallToolResult, - **self._config, - ) - - # We need to propagate any event actions back to the main context - tool_context._event_actions = result.tool_context.event_actions - return result.result - - -class TemporalMcpToolSet(BaseToolset): - """Temporal-aware MCP toolset implementation. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - Executes MCP tools as Temporal activities, providing proper isolation - and execution guarantees within workflows. - """ - - def __init__( - self, - name: str, - config: ActivityConfig | None = None, - factory_argument: Any | None = None, - not_in_workflow_toolset: Callable[[Any | None], McpToolset] | None = None, - ): - """Initializes the Temporal MCP toolset. - - .. warning:: - Do not pass secrets, credentials, or API keys through ``factory_argument``. It - is an activity argument, so it is recorded in workflow history and, without a - payload codec, visible in the web UI. Resolve credentials worker-side inside the - toolset factory instead. - - Args: - name: Name of the toolset (used for activity naming). - config: Optional activity configuration. - factory_argument: Optional argument passed to ``toolset_factory``. - Must not contain secrets. - not_in_workflow_toolset: Optional factory that returns the - underlying ``McpToolset`` to use when this wrapper executes - outside ``workflow.in_workflow()``, such as local ADK runs. - This is not needed during normal workflow execution, but - ``get_tools()`` raises ``ValueError`` outside a workflow if it - is omitted. - """ - super().__init__() - self._name = name - self._factory_argument = factory_argument - self._config = config or ActivityConfig( - start_to_close_timeout=timedelta(minutes=1) - ) - self._not_in_workflow_toolset = not_in_workflow_toolset - - async def get_tools( - self, readonly_context: ReadonlyContext | None = None - ) -> list[BaseTool]: - """Retrieves available tools from the MCP toolset. - - Args: - readonly_context: Optional readonly context (unused in this implementation). - - Returns: - List of available tools wrapped as Temporal activities. - """ - # If executed outside a workflow, like when doing local adk runs, use the mcp server directly - if not workflow.in_workflow(): - if self._not_in_workflow_toolset is None: - raise ValueError( - "Attempted to use TemporalMcpToolSet outside a workflow, but " - "no not_in_workflow_toolset was provided. Either use " - "McpToolSet directly or pass a factory that returns the " - "underlying McpToolset for non-workflow execution." - ) - return await self._not_in_workflow_toolset(None).get_tools(readonly_context) - - tool_results: list[_ToolResult] = await workflow.execute_activity( - self._name + "-list-tools", - _GetToolsArguments(self._factory_argument), - result_type=list[_ToolResult], - **self._config, - ) - return [ - _TemporalTool( - set_name=self._name, - factory_argument=self._factory_argument, - config=self._config, - declaration=tool_result.function_declaration, - name=tool_result.name, - description=tool_result.description, - is_long_running=tool_result.is_long_running, - custom_metadata=tool_result.custom_metadata, - ) - for tool_result in tool_results - ] - - -def _handle_worker_failure(func: Callable) -> Callable: - """Surface dedicated-worker failures on the run-scoped task queue. - - A schedule-to-start timeout means the dedicated ``-server-session`` worker - never picked the activity up (it is gone); a heartbeat timeout means it - died mid-session. Either way Temporal cannot recreate the in-memory toolset - state, so we re-raise as an ``ApplicationError`` of type - ``"DedicatedWorkerFailure"`` for the caller to handle. - - Duplicated (rather than shared) from ``openai_agents._mcp`` on purpose: - these two contribs do not currently share internal code, and importing - across them would create an unwanted dependency. - """ - - @functools.wraps(func) - async def wrapper(*args: Any, **kwargs: Any): - try: - return await func(*args, **kwargs) - except ActivityError as e: - failure = e.failure - if failure: - cause = failure.cause - if cause: - if ( - cause.timeout_failure_info.timeout_type - == TIMEOUT_TYPE_SCHEDULE_TO_START - ): - raise ApplicationError( - "MCP Stateful Server Worker failed to schedule activity.", - type="DedicatedWorkerFailure", - ) from e - if ( - cause.timeout_failure_info.timeout_type - == TIMEOUT_TYPE_HEARTBEAT - ): - raise ApplicationError( - "MCP Stateful Server Worker failed to heartbeat.", - type="DedicatedWorkerFailure", - ) from e - raise e - - return wrapper - - -@dataclass -class _StatefulServerSessionArguments: - factory_argument: Any | None - - -@dataclass -class _StatefulCallToolArguments: - name: str - arguments: dict[str, Any] - tool_context: TemporalToolContext - - -class TemporalStatefulMcpToolSetProvider: - """Provider for a stateful, pooled MCP toolset backed by a dedicated worker. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - Unlike :class:`TemporalMcpToolSetProvider` (which builds and closes a fresh - ``McpToolset`` per activity call), this provider maintains a single - ``McpToolset`` for the lifetime of a workflow run. The workflow-side - :class:`TemporalStatefulMcpToolSet` starts a dedicated ``-server-session`` - activity on a task queue scoped to that specific run - (``name@run_id``); that activity builds the toolset once via - ``toolset_factory(factory_argument)``, holds it open, and runs a nested - :py:class:`temporalio.worker.Worker` serving the ``-list-tools``/``-call-tool`` - activities off the same run-scoped queue. The toolset is closed when the - workflow cancels the session activity on cleanup. - - Because state lives in a dedicated worker's memory, the caller must handle - the case where that worker fails, as Temporal cannot seamlessly recreate the - lost toolset. Failure surfaces as an ``ApplicationError`` with - ``type="DedicatedWorkerFailure"``. Prefer the stateless - :class:`TemporalMcpToolSetProvider` unless a persistent connection is - genuinely required. - """ - - def __init__( - self, - name: str, - toolset_factory: Callable[[Any | None], McpToolset], - ) -> None: - """Initializes the stateful toolset provider. - - Args: - name: Name prefix for the generated activities. It is suffixed with - ``-stateful`` so it never collides with a stateless provider of - the same base name registered on the same worker. - toolset_factory: Factory function that creates McpToolset instances. - It should return a new toolset each time so that no state is - shared between workflow runs. - """ - super().__init__() - self._name = name + "-stateful" - self._toolset_factory = toolset_factory - self._toolsets: dict[str, McpToolset] = {} - - @property - def name(self) -> str: - """The activity-name prefix (base name with the ``-stateful`` suffix).""" - return self._name - - def _get_activities(self) -> Sequence[Callable]: - def _server_id() -> str: - return self._name + "@" + (activity.info().workflow_run_id or "") - - @activity.defn(name=self._name + "-list-tools") - async def get_tools() -> list[_ToolResult]: - toolset = self._toolsets[_server_id()] - tools = await toolset.get_tools() - return [ - _ToolResult( - tool.name, - tool.description, - tool.is_long_running, - tool.custom_metadata, - tool._get_declaration(), - ) - for tool in tools - ] - - @activity.defn(name=self._name + "-call-tool") - async def call_tool(args: _StatefulCallToolArguments) -> _CallToolResult: - toolset = self._toolsets[_server_id()] - tools = await toolset.get_tools() - - tool_match = [tool for tool in tools if tool.name == args.name] - if len(tool_match) == 0: - raise ApplicationError( - f"Unable to find matching mcp tool by name: {args.name}" - ) - if len(tool_match) > 1: - raise ApplicationError( - f"Found multiple MCP tools with the same name: {args.name}" - ) - tool = tool_match[0] - - # We cannot provide a full-fledged ToolContext so we need to provide only what is needed by the tool - result = await tool.run_async( - args=args.arguments, - tool_context=args.tool_context, # type:ignore - ) - return _CallToolResult(result=result, tool_context=args.tool_context) - - async def heartbeat_every(delay: float, *details: Any) -> None: - """Heartbeat every ``delay`` seconds until cancelled.""" - while True: - await asyncio.sleep(delay) - activity.heartbeat(*details) - - @activity.defn(name=self._name + "-server-session") - async def connect( - args: _StatefulServerSessionArguments | None = None, - ) -> None: - server_id = self._name + "@" + (activity.info().workflow_run_id or "") - if server_id in self._toolsets: - raise ApplicationError( - "Cannot connect to an already running toolset. Use a distinct " - "name if running multiple stateful toolsets in one workflow." - ) - - # Created only once the duplicate-connect check has passed, and - # cancelled in the outermost ``finally`` below so it is torn down - # on every exit path -- including a ``toolset.close()`` failure, - # which would otherwise leave it heartbeating forever after this - # activity has already exited. - heartbeat_task = asyncio.create_task(heartbeat_every(30)) - try: - toolset = self._toolset_factory(args.factory_argument if args else None) - try: - self._toolsets[server_id] = toolset - try: - worker = Worker( - activity.client(), - task_queue=server_id, - activities=[get_tools, call_tool], - activity_task_poller_behavior=PollerBehaviorSimpleMaximum( - 1 - ), - ) - await worker.run() - finally: - await toolset.close() - finally: - del self._toolsets[server_id] - finally: - heartbeat_task.cancel() - try: - await heartbeat_task - except asyncio.CancelledError: - pass - - return (connect,) - - -class _TemporalStatefulTool(BaseTool): - def __init__( - self, - set_name: str, - config: ActivityConfig, - declaration: FunctionDeclaration | None, - *, - name: str, - description: str, - is_long_running: bool = False, - custom_metadata: dict[str, Any] | None = None, - ): - super().__init__( - name=name, - description=description, - is_long_running=is_long_running, - custom_metadata=custom_metadata, - ) - self._set_name = set_name - self._config = config - self._declaration = declaration - - def _get_declaration(self) -> types.FunctionDeclaration | None: - return self._declaration - - @_handle_worker_failure - async def run_async( - self, *, args: dict[str, Any], tool_context: ToolContext - ) -> Any: - result: _CallToolResult = await workflow.execute_activity( - self._set_name + "-call-tool", - _StatefulCallToolArguments( - self.name, - arguments=args, - tool_context=TemporalToolContext( - tool_confirmation=tool_context.tool_confirmation, - function_call_id=tool_context.function_call_id, - event_actions=tool_context._event_actions, - ), - ), - result_type=_CallToolResult, - **self._config, - ) - - # We need to propagate any event actions back to the main context - tool_context._event_actions = result.tool_context.event_actions - return result.result - - -class TemporalStatefulMcpToolSet(BaseToolset): - """Workflow-side handle for a stateful MCP toolset. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - Use it as an async context manager inside a workflow so the dedicated - ``-server-session`` worker is started on ``connect`` and torn down on - ``cleanup``:: - - async with TemporalStatefulMcpToolSet("my-tools") as toolset: - agent = Agent(..., tools=[toolset]) - await runner.run(...) - - The connection (and any MCP subprocess) lives for the duration of the - ``async with`` block and is reused across every tool call in that block, - then closed on exit. Callers must be prepared to handle - ``ApplicationError(type="DedicatedWorkerFailure")`` should the dedicated - worker die mid-run. - """ - - def __init__( - self, - name: str, - config: ActivityConfig | None = None, - server_session_config: ActivityConfig | None = None, - factory_argument: Any | None = None, - not_in_workflow_toolset: Callable[[Any | None], McpToolset] | None = None, - ): - """Initializes the stateful Temporal MCP toolset handle. - - Args: - name: Base name of the toolset. Must match the ``name`` passed to - the :class:`TemporalStatefulMcpToolSetProvider` (the - ``-stateful`` suffix is applied here automatically). - config: Optional activity configuration for the per-operation - (``-list-tools``/``-call-tool``) activities. A - ``schedule_to_start_timeout`` is used to detect a dead - dedicated worker. - server_session_config: Optional activity configuration for the - long-running ``-server-session`` activity. - factory_argument: Optional argument passed once to the toolset - factory when the session connects. - not_in_workflow_toolset: Optional factory that returns the - underlying ``McpToolset`` to use when this wrapper executes - outside ``workflow.in_workflow()``, such as local ADK runs. - """ - super().__init__() - self._name = name + "-stateful" - self._config = config or ActivityConfig( - start_to_close_timeout=timedelta(minutes=1), - schedule_to_start_timeout=timedelta(seconds=30), - ) - self._server_session_config = server_session_config or ActivityConfig( - start_to_close_timeout=timedelta(hours=1), - ) - self._factory_argument = factory_argument - self._not_in_workflow_toolset = not_in_workflow_toolset - self._connect_handle: ActivityHandle | None = None - - async def connect(self) -> None: - """Starts the dedicated ``-server-session`` activity for this run.""" - if not workflow.in_workflow(): - return - self._config["task_queue"] = self._name + "@" + workflow.info().run_id - self._connect_handle = workflow.start_activity( - self._name + "-server-session", - _StatefulServerSessionArguments(self._factory_argument), - **self._server_session_config, - ) - - async def cleanup(self) -> None: - """Cancels the dedicated session activity and awaits its teardown.""" - if self._connect_handle: - self._connect_handle.cancel() - try: - await self._connect_handle - except Exception as e: - if not is_cancelled_exception(e): - raise - finally: - self._connect_handle = None - - async def close(self) -> None: - """``BaseToolset`` teardown hook; delegates to :meth:`cleanup`.""" - await self.cleanup() - - async def __aenter__(self) -> "TemporalStatefulMcpToolSet": - """Connects the toolset and returns it for use as a context manager.""" - await self.connect() - return self - - async def __aexit__( - self, - exc_type: type[BaseException] | None, - exc_value: BaseException | None, - traceback: TracebackType | None, - ) -> None: - """Cleans up the toolset when exiting the context manager.""" - await self.cleanup() - - @_handle_worker_failure - async def get_tools( - self, readonly_context: ReadonlyContext | None = None - ) -> list[BaseTool]: - """Retrieves available tools from the stateful MCP toolset.""" - # If executed outside a workflow, like when doing local adk runs, use the mcp server directly - if not workflow.in_workflow(): - if self._not_in_workflow_toolset is None: - raise ValueError( - "Attempted to use TemporalStatefulMcpToolSet outside a " - "workflow, but no not_in_workflow_toolset was provided. " - "Either use McpToolSet directly or pass a factory that " - "returns the underlying McpToolset for non-workflow execution." - ) - return await self._not_in_workflow_toolset( - self._factory_argument - ).get_tools(readonly_context) - - if not self._connect_handle: - raise ApplicationError( - "Stateful MCP toolset not connected. Use it as an async context " - "manager (async with ...) or call connect() first." - ) - - tool_results: list[_ToolResult] = await workflow.execute_activity( - self._name + "-list-tools", - result_type=list[_ToolResult], - **self._config, - ) - return [ - _TemporalStatefulTool( - set_name=self._name, - config=self._config, - declaration=tool_result.function_declaration, - name=tool_result.name, - description=tool_result.description, - is_long_running=tool_result.is_long_running, - custom_metadata=tool_result.custom_metadata, - ) - for tool_result in tool_results - ] diff --git a/temporalio/contrib/google_adk_agents/_model.py b/temporalio/contrib/google_adk_agents/_model.py deleted file mode 100644 index 1992d0f4c..000000000 --- a/temporalio/contrib/google_adk_agents/_model.py +++ /dev/null @@ -1,209 +0,0 @@ -from collections.abc import AsyncGenerator, Callable -from dataclasses import dataclass -from datetime import timedelta - -from google.adk.models import BaseLlm, LLMRegistry -from google.adk.models.llm_request import LlmRequest -from google.adk.models.llm_response import LlmResponse - -import temporalio.workflow -from temporalio import activity, workflow -from temporalio.contrib.workflow_streams import WorkflowStreamClient -from temporalio.exceptions import ApplicationError -from temporalio.workflow import ActivityConfig - - -@activity.defn -async def invoke_model(llm_request: LlmRequest) -> list[LlmResponse]: - """Activity that invokes an LLM model. - - Args: - llm_request: The LLM request containing model name and parameters. - - Returns: - List of LLM responses from the model. - - Raises: - ValueError: If model name is not provided or LLM creation fails. - """ - if llm_request.model is None: - raise ValueError(f"No model name provided, could not create LLM.") - - llm = LLMRegistry.new_llm(llm_request.model) - if not llm: - raise ValueError(f"Failed to create LLM for model: {llm_request.model}") - - return [ - response - async for response in llm.generate_content_async(llm_request=llm_request) - ] - - -@dataclass -class StreamingInvokeInput: - """Input for :func:`invoke_model_streaming`.""" - - llm_request: LlmRequest - streaming_topic: str - streaming_batch_interval: timedelta - - -@activity.defn -async def invoke_model_streaming( - input: StreamingInvokeInput, -) -> list[LlmResponse]: - """Streaming-aware model activity. - - .. warning:: - Streaming support is experimental and may change in future - versions. - - Calls the LLM with ``stream=True`` and returns the collected list of - raw ``LlmResponse`` chunks. The workflow's ``TemporalModel.generate_content_async`` - yields these to the caller. - - Each response is also published to the workflow's stream on - ``streaming_topic`` so external consumers (UIs, tracing, etc.) - can observe responses as they arrive. - """ - llm_request = input.llm_request - if llm_request.model is None: - raise ValueError("No model name provided, could not create LLM.") - - llm = LLMRegistry.new_llm(llm_request.model) - if not llm: - raise ValueError(f"Failed to create LLM for model: {llm_request.model}") - - responses: list[LlmResponse] = [] - - stream = WorkflowStreamClient.from_within_activity( - batch_interval=input.streaming_batch_interval, - ) - events = stream.topic(input.streaming_topic, type=LlmResponse) - async with stream: - async for response in llm.generate_content_async( - llm_request=llm_request, stream=True - ): - activity.heartbeat() - responses.append(response) - events.publish(response) - - return responses - - -class TemporalModel(BaseLlm): - """A Temporal-based LLM model that executes model invocations as activities.""" - - def __init__( - self, - model_name: str, - activity_config: ActivityConfig | None = None, - *, - summary_fn: Callable[[LlmRequest], str | None] | None = None, - streaming_topic: str | None = None, - streaming_batch_interval: timedelta = timedelta(milliseconds=100), - ) -> None: - """Initialize the TemporalModel. - - Streaming is selected by the caller via the ADK - ``generate_content_async(stream=True)`` argument; no plugin-level - flag is needed. - - Args: - model_name: The name of the model to use. - activity_config: Configuration options for the activity execution. - summary_fn: Optional callable that receives the LlmRequest and - returns a summary string (or None) for the activity. Must be - deterministic as it is called during workflow execution. If - the callable raises, the exception will propagate and fail - the workflow task. - streaming_topic: Stream topic to publish raw - ``LlmResponse`` chunks to when streaming. Required when - callers invoke ``generate_content_async(stream=True)``; - if ``None``, the streaming call raises before scheduling - an activity. The workflow must host a - :class:`temporalio.contrib.workflow_streams.WorkflowStream` - to receive the publishes; otherwise the signals are - unhandled and dropped. Streaming support is - experimental and may change in future versions. - streaming_batch_interval: Interval between automatic - flushes for the stream publisher used by the streaming - activity. Streaming support is experimental and may - change in future versions. - - Raises: - ValueError: If both ``ActivityConfig["summary"]`` and ``summary_fn`` are set. - """ - super().__init__(model=model_name) - self._model_name = model_name - self._summary_fn = summary_fn - self._streaming_topic = streaming_topic - self._streaming_batch_interval = streaming_batch_interval - self._activity_config = ActivityConfig( - start_to_close_timeout=timedelta(seconds=60) - ) - if activity_config is not None: - if summary_fn is not None and activity_config.get("summary") is not None: - raise ValueError( - "Cannot specify both ActivityConfig 'summary' and 'summary_fn'" - ) - self._activity_config.update(activity_config) - - async def generate_content_async( - self, llm_request: LlmRequest, stream: bool = False - ) -> AsyncGenerator[LlmResponse, None]: - """Generate content asynchronously by executing model invocation as a Temporal activity. - - Args: - llm_request: The LLM request containing model parameters and content. - stream: Whether to use the streaming activity. When ``True``, - each chunk is also published to ``streaming_topic`` - (if set) for external consumers. Streaming support is - experimental and may change in future versions. - - Yields: - The responses from the model. - """ - # If executed outside a workflow, like when doing local adk runs, use the model directly - if not temporalio.workflow.in_workflow(): - async for response in LLMRegistry.new_llm( - self._model_name - ).generate_content_async(llm_request, stream=stream): - yield response - return - - config = self._activity_config.copy() - if self._summary_fn is not None: - summary = self._summary_fn(llm_request) - if summary is not None: - config["summary"] = summary - elif "summary" not in config: - if llm_request.config and llm_request.config.labels: - agent_name = llm_request.config.labels.get("adk_agent_name") - if agent_name: - config["summary"] = agent_name - - if stream: - if self._streaming_topic is None: - raise ApplicationError( - "generate_content_async(stream=True) requires " - "TemporalModel(streaming_topic=...) to be set.", - non_retryable=True, - ) - responses = await workflow.execute_activity( - invoke_model_streaming, - StreamingInvokeInput( - llm_request=llm_request, - streaming_topic=self._streaming_topic, - streaming_batch_interval=self._streaming_batch_interval, - ), - **config, - ) - else: - responses = await workflow.execute_activity( - invoke_model, - args=[llm_request], - **config, - ) - for response in responses: - yield response diff --git a/temporalio/contrib/google_adk_agents/_plugin.py b/temporalio/contrib/google_adk_agents/_plugin.py deleted file mode 100644 index 36515aa1a..000000000 --- a/temporalio/contrib/google_adk_agents/_plugin.py +++ /dev/null @@ -1,234 +0,0 @@ -from __future__ import annotations - -import dataclasses -import inspect -import time -import uuid -import warnings -from collections.abc import AsyncIterator, Callable -from contextlib import asynccontextmanager -from types import FrameType -from typing import Any - -import opentelemetry.metrics -import opentelemetry.trace - -from temporalio import workflow -from temporalio.contrib.google_adk_agents._mcp import ( - TemporalMcpToolSetProvider, - TemporalStatefulMcpToolSetProvider, -) -from temporalio.contrib.google_adk_agents._model import ( - invoke_model, - invoke_model_streaming, -) -from temporalio.contrib.pydantic import ( - PydanticPayloadConverter, - ToJsonOptions, -) -from temporalio.converter import DataConverter, DefaultPayloadConverter -from temporalio.plugin import SimplePlugin -from temporalio.worker import ( - ReplayerConfig, - WorkerConfig, - WorkflowRunner, -) -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner - - -def _stacklevel_outside_temporalio() -> int: - # Attribute provider warnings to the nearest frame outside temporalio, - # e.g. the user's Worker(...)/Replayer(...) call or a user plugin that - # delegates here, however many plugin frames sit in between. - level = 1 - own_frame: FrameType | None = inspect.currentframe() - frame = own_frame.f_back if own_frame is not None else None - while frame is not None: - module = frame.f_globals.get("__name__", "") - if module != "temporalio" and not module.startswith("temporalio."): - return level - frame = frame.f_back - level += 1 - return 1 - - -def _warn_if_global_otel_providers_not_replay_safe() -> None: - # ADK records metrics, spans, and log events through the process-global - # OpenTelemetry providers from code that runs workflow-side, so a - # non-replay-safe global provider re-emits that telemetry on every - # workflow replay. Warn only on providers positively identified as - # replay-unsafe: an OpenTelemetry SDK provider used directly as the - # global. Anything else stays silent -- unset (proxy) and no-op providers - # drop recordings, and unknown provider types (e.g. a custom provider - # delegating to a replay-safe one) cannot be classified, where a false - # positive is worse than a missed warning. The SDK logger provider is not - # checked because its class is only importable from the underscore - # namespace opentelemetry.sdk._logs while opentelemetry-python has not - # promoted the logs SDK to a public namespace. - try: - from opentelemetry.sdk.metrics import MeterProvider as SdkMeterProvider - from opentelemetry.sdk.trace import TracerProvider as SdkTracerProvider - except ImportError: - # Without the opentelemetry-sdk package installed no SDK provider can - # exist, so there is nothing replay-unsafe to warn about. - return - stacklevel = _stacklevel_outside_temporalio() - if isinstance(opentelemetry.metrics.get_meter_provider(), SdkMeterProvider): - warnings.warn( - "The global OpenTelemetry MeterProvider is not replay-safe: Google ADK " - "records metrics from workflow code, so every workflow replay will " - "re-record them. Wrap your provider in " - "temporalio.contrib.opentelemetry.ReplaySafeMeterProvider and make it " - "the first and only global provider set: " - "opentelemetry.metrics.set_meter_provider(ReplaySafeMeterProvider(provider))", - UserWarning, - stacklevel=stacklevel, - ) - if isinstance(opentelemetry.trace.get_tracer_provider(), SdkTracerProvider): - warnings.warn( - "The global OpenTelemetry TracerProvider is not replay-safe: Google ADK " - "creates spans from workflow code, so every workflow replay will " - "re-emit them. Install a replay-safe provider: " - "opentelemetry.trace.set_tracer_provider(" - "temporalio.contrib.opentelemetry.create_tracer_provider())", - UserWarning, - stacklevel=stacklevel, - ) - - -def setup_deterministic_runtime(): - """Configures ADK runtime for Temporal determinism. - - .. warning:: - This function is experimental and may change in future versions. - Use with caution in production environments. - - This should be called at the start of a Temporal Workflow before any ADK components - (like SessionService) are used, if they rely on runtime.get_time() or runtime.new_uuid(). - """ - try: - import google.adk.platform.time - import google.adk.platform.uuid - - # Define safer, context-aware providers - def _deterministic_time_provider() -> float: - if workflow.in_workflow(): - return workflow.now().timestamp() - return time.time() - - def _deterministic_id_provider() -> str: - if workflow.in_workflow(): - return str(workflow.uuid4()) - return str(uuid.uuid4()) - - google.adk.platform.time.set_time_provider(_deterministic_time_provider) - google.adk.platform.uuid.set_id_provider(_deterministic_id_provider) - except ImportError: - pass - except Exception as e: - print(f"Warning: Failed to set deterministic runtime providers: {e}") - - -class GoogleAdkPlugin(SimplePlugin): - """A Temporal Worker Plugin configured for ADK. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - This plugin configures: - - Pydantic Payload Converter (required for ADK objects). - - Sandbox Passthrough for google.adk and google.genai modules. - - At worker and replayer configuration time it also warns when the global - OpenTelemetry meter or tracer provider is not replay-safe, since ADK - telemetry recorded from workflow code would duplicate on replay. - """ - - def __init__( - self, - toolset_providers: list[ - TemporalMcpToolSetProvider | TemporalStatefulMcpToolSetProvider - ] - | None = None, - ): - """Initializes the Temporal ADK Plugin. - - Args: - toolset_providers: Optional list of stateless - (:class:`TemporalMcpToolSetProvider`) or stateful - (:class:`TemporalStatefulMcpToolSetProvider`) toolset providers - for MCP integration. - """ - - @asynccontextmanager - async def run_context() -> AsyncIterator[None]: - setup_deterministic_runtime() - yield - - def workflow_runner(runner: WorkflowRunner | None) -> WorkflowRunner: - if not runner: - raise ValueError("No WorkflowRunner provided to the ADK plugin.") - - # If in sandbox, add additional passthrough - if isinstance(runner, SandboxedWorkflowRunner): - return dataclasses.replace( - runner, - restrictions=runner.restrictions.with_passthrough_modules( - "google.adk", "google.genai", "mcp" - ), - ) - return runner - - # Annotate as Sequence[Callable[..., Any]] because invoke_model - # and invoke_model_streaming have different signatures, so the - # inferred list type would not satisfy SimplePlugin's parameter. - new_activities: list[Callable[..., Any]] = [ - invoke_model, - invoke_model_streaming, - ] - if toolset_providers is not None: - for toolset_provider in toolset_providers: - new_activities.extend(toolset_provider._get_activities()) - - super().__init__( - name="google.AdkPlugin", - data_converter=self._configure_data_converter, - activities=new_activities, - run_context=lambda: run_context(), - workflow_runner=workflow_runner, - ) - - def configure_worker(self, config: WorkerConfig) -> WorkerConfig: - """See base class. Also warns when the global OpenTelemetry meter or - tracer provider is not replay-safe, since ADK telemetry would - duplicate on replay. - """ - _warn_if_global_otel_providers_not_replay_safe() - return super().configure_worker(config) - - def configure_replayer(self, config: ReplayerConfig) -> ReplayerConfig: - """See base class. Also warns when the global OpenTelemetry meter or - tracer provider is not replay-safe, since every replayed workflow - would re-emit ADK telemetry. - """ - _warn_if_global_otel_providers_not_replay_safe() - return super().configure_replayer(config) - - def _configure_data_converter( - self, converter: DataConverter | None - ) -> DataConverter: - if converter is None: - return DataConverter(payload_converter_class=_AdkPayloadConverter) - elif converter.payload_converter_class is DefaultPayloadConverter: - return dataclasses.replace( - converter, payload_converter_class=_AdkPayloadConverter - ) - return converter - - -class _AdkPayloadConverter(PydanticPayloadConverter): - """PayloadConverter for Google ADK that strips unset None fields.""" - - def __init__(self) -> None: - super().__init__(ToJsonOptions(exclude_unset=True)) diff --git a/temporalio/contrib/google_adk_agents/workflow.py b/temporalio/contrib/google_adk_agents/workflow.py index 23b254123..226fdb7be 100644 --- a/temporalio/contrib/google_adk_agents/workflow.py +++ b/temporalio/contrib/google_adk_agents/workflow.py @@ -1,251 +1,3 @@ -"""Workflow utilities for Google ADK agents integration with Temporal.""" +"""Compatibility imports for temporalio.google_adk.workflow.""" -import functools -import inspect -import types -import typing -from dataclasses import dataclass, field -from typing import Any, Callable, cast - -import temporalio.workflow -from temporalio import workflow - -_TOOL_CONTEXT_PARAM = "tool_context" - - -@dataclass(frozen=True) -class ToolContextSnapshot: - """Serializable snapshot of the ADK ``ToolContext`` for activity-backed tools. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - ADK's ``ToolContext`` holds live, non-serializable objects, so it cannot - cross the activity boundary: activity inputs are sent to the server and - may run on a different worker than the workflow. This snapshot carries the - serializable subset instead. - - Declare a parameter named ``tool_context`` annotated with this type (or - ``ToolContextSnapshot | None``) on an activity wrapped by - :func:`activity_as_tool`: - - .. code-block:: python - - @activity.defn - async def get_weather(query: str, tool_context: ToolContextSnapshot) -> dict: - db_url = tool_context.state.get("url", "") - ... - - Exactly like a native ADK function tool's ``tool_context`` parameter, it - is excluded from the LLM-facing tool schema and filled in at invocation - time — here with a snapshot taken from the live ``ToolContext`` before the - activity is scheduled. - - When running under Temporal, the entire session state crosses the - activity boundary: every value in it must be serializable by the - configured data converter and the total size must fit within payload - limits, even for keys the tool never reads. A non-serializable value - fails the workflow task when the activity is scheduled. Local ADK runs - pass the snapshot in memory and have no such constraint. - - The snapshot is one-way and should be treated as read-only: mutating it - inside the activity does not propagate back to the session (and in local - runs nested values may alias the live session state, so mutating them can - corrupt the session). To modify session state, return the needed - information from the activity and apply it in workflow-side code (for - example an ADK callback or a plain tool function). - - Attributes: - state: The session state visible to this tool call, as a plain dict. - function_call_id: The id of the function call being handled, when - available. - """ - - state: dict[str, Any] = field(default_factory=dict) - function_call_id: str | None = None - - -def _annotation_members(annotation: Any) -> tuple[Any, ...]: - """Returns a union annotation's members, or the annotation itself.""" - origin = typing.get_origin(annotation) - if origin is typing.Union or origin is types.UnionType: # pyright: ignore[reportDeprecated] - return typing.get_args(annotation) - return (annotation,) - - -def _annotation_display(members: tuple[Any, ...]) -> str: - """Renders annotation members for error messages.""" - return " | ".join( - "None" if member is type(None) else getattr(member, "__name__", str(member)) - for member in members - ) - - -def _adk_context_error( - activity_def: Callable, name: str, annotation_name: str -) -> ValueError: - """Builds the error for a parameter annotated with a live ADK context.""" - return ValueError( - f"Activity '{activity_def.__name__}' declares '{name}:" - f" {annotation_name}', but ADK context objects are not serializable" - " and cannot be activity arguments. Declare a parameter named" - " 'tool_context' annotated with ToolContextSnapshot instead to receive" - " the serializable subset (session state and function-call id)." - ) - - -def _validated_tool_context_parameter( - activity_def: Callable, parameter: inspect.Parameter, members: tuple[Any, ...] -) -> inspect.Parameter: - """Returns the ``tool_context`` parameter after validating its annotation. - - The parameter must be annotated with :class:`ToolContextSnapshot` or - ``ToolContextSnapshot | None``. - """ - if parameter.annotation is inspect.Parameter.empty: - raise ValueError( - f"Activity '{activity_def.__name__}' has an unannotated" - " 'tool_context' parameter. Annotate it with ToolContextSnapshot" - " to receive the serializable subset of the ADK tool context" - " (session state and function-call id)." - ) - non_none = [member for member in members if member is not type(None)] - if non_none == [ToolContextSnapshot]: - return parameter - annotation_name = _annotation_display(members) - if any( - getattr(member, "__module__", "").startswith("google.adk") - for member in non_none - ): - raise _adk_context_error(activity_def, _TOOL_CONTEXT_PARAM, annotation_name) - raise ValueError( - f"Activity '{activity_def.__name__}' has a 'tool_context' parameter" - f" annotated with {annotation_name}. The name 'tool_context' is" - " reserved by ADK for context injection; annotate the parameter with" - " ToolContextSnapshot to receive the serializable subset of the tool" - " context." - ) - - -def _tool_context_parameter(activity_def: Callable) -> inspect.Parameter | None: - """Validates context-related parameters and returns the ``tool_context`` one. - - ADK injects the live context into the first parameter annotated with an - ADK context type (regardless of name), or failing that into one named - ``tool_context``, and excludes that parameter from the LLM-facing tool - schema. Live context objects cannot cross the activity boundary, so the - only supported declaration is a parameter named ``tool_context`` annotated - with :class:`ToolContextSnapshot` (or ``ToolContextSnapshot | None``); - anything else ADK would treat as a context parameter is rejected at wrap - time, as is a misplaced ToolContextSnapshot annotation that would leak - into the tool schema. - """ - try: - hints = typing.get_type_hints(activity_def) - except Exception: - hints = {} - adk_context: type[Any] | None - try: - from google.adk.tools.tool_context import ToolContext - - adk_context = ToolContext - except ImportError: - adk_context = None - tool_context_parameter: inspect.Parameter | None = None - for name, parameter in inspect.signature(activity_def).parameters.items(): - members = _annotation_members(hints.get(name, parameter.annotation)) - if name == _TOOL_CONTEXT_PARAM: - tool_context_parameter = _validated_tool_context_parameter( - activity_def, parameter, members - ) - elif adk_context is not None and any( - member is adk_context for member in members - ): - raise _adk_context_error(activity_def, name, _annotation_display(members)) - elif any(member is ToolContextSnapshot for member in members): - raise ValueError( - f"Activity '{activity_def.__name__}' annotates parameter" - f" '{name}' with ToolContextSnapshot, but ADK only injects the" - " tool context into a parameter named 'tool_context'; under" - " any other name it would appear in the LLM-facing tool" - " schema. Rename the parameter to 'tool_context'." - ) - return tool_context_parameter - - -def _snapshot_tool_context(tool_context: Any) -> ToolContextSnapshot: - """Builds the serializable snapshot from a live ADK ``ToolContext``.""" - state: dict[str, Any] = {} - state_object = getattr(tool_context, "state", None) - if state_object is not None: - to_dict = getattr(state_object, "to_dict", None) - state = dict(cast(Any, to_dict() if callable(to_dict) else state_object)) - return ToolContextSnapshot( - state=state, - function_call_id=getattr(tool_context, "function_call_id", None), - ) - - -def activity_as_tool(activity_def: Callable, **kwargs: Any) -> Callable: - """Decorator/Wrapper to wrap a Temporal Activity as an ADK Tool. - - .. warning:: - This function is experimental and may change in future versions. - Use with caution in production environments. - - This ensures the activity's signature is preserved for ADK's tool schema generation - while marking it as a tool that executes via 'workflow.execute_activity'. - - If the activity declares a parameter named ``tool_context``, it must be - annotated with :class:`ToolContextSnapshot` (or ``ToolContextSnapshot | - None``). ADK excludes the parameter from the tool schema and injects the - live ``ToolContext`` into the wrapper, which passes the activity a - serializable snapshot of it (session state and function-call id) in that - parameter's position. Annotating any parameter with a live ADK context - type raises ``ValueError`` at wrap time, since ADK would inject the - non-serializable context into it regardless of its name. - """ - tool_context_param = _tool_context_parameter(activity_def) - - @functools.wraps(activity_def) - async def wrapper(*args: Any, **kw: Any): - # ADK injects the live ToolContext by name; replace it with the - # serializable snapshot the activity actually declares. - if tool_context_param is not None and _TOOL_CONTEXT_PARAM in kw: - kw[_TOOL_CONTEXT_PARAM] = _snapshot_tool_context(kw[_TOOL_CONTEXT_PARAM]) - - # Inspect signature to bind arguments - sig = inspect.signature(activity_def) - bound = sig.bind(*args, **kw) - bound.apply_defaults() - - # Convert to positional args for Temporal - activity_args = list(bound.arguments.values()) - - # Decorator kwargs are defaults. - options = kwargs.copy() - - if not temporalio.workflow.in_workflow(): - # If executed outside a workflow, like when doing local adk runs, use the function directly - result = activity_def(*args, **kw) - if inspect.isawaitable(result): - return await result - else: - return result - - if not activity_args: - return await workflow.execute_activity(activity_def, **options) - if len(activity_args) == 1: - return await workflow.execute_activity( - activity_def, activity_args[0], **options - ) - return await workflow.execute_activity( - activity_def, args=activity_args, **options - ) - - # functools.wraps copies name/doc/module/annotations/qualname/dict. - # Signature must be set explicitly since the wrapper uses *args/**kw. - setattr(wrapper, "__signature__", inspect.signature(activity_def)) - - return wrapper +from temporalio.google_adk.workflow import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] diff --git a/temporalio/contrib/google_genai/README.md b/temporalio/contrib/google_genai/README.md index fca5311f5..514866ecd 100644 --- a/temporalio/contrib/google_genai/README.md +++ b/temporalio/contrib/google_genai/README.md @@ -1,285 +1,39 @@ -# Google Gemini SDK Integration for Temporal +# Google GenAI integration -> ⚠️ **Experimental.** This integration may change in future versions. Use with -> caution in production. +The Google GenAI integration has moved to the independently versioned +[`temporalio-google-genai`](https://pypi.org/project/temporalio-google-genai/) +package. Its canonical Python API is `temporalio.google_genai`. -## Overview +The complete integration guide now lives in the +[`temporalio-google-genai` README](https://github.com/temporalio/ai-integrations/tree/main/python/google_genai#readme). -This plugin lets you use the [Google Gemini SDK](https://googleapis.github.io/python-genai/) -(`google-genai`) inside Temporal workflows with durable execution. Every Gemini -API call becomes a **Temporal activity**, so model calls, tool calls, file -operations, interactions, and managed agents are retried, recorded in history, -and survive worker restarts. +## Migrating to the standalone package -Key properties: +Remove the `google-genai` extra from the existing Temporal dependency: -- **Credentials never enter the workflow.** The real `genai.Client` lives only - on the worker, inside activities; no API keys or tokens appear in event - history. -- **The SDK's automatic function calling (AFC) loop runs in the workflow**, so - tool wrappers (`activity_as_tool`) work naturally — no manual agent loop. -- **Temporal owns retries.** Configure them via the activity `retry_policy`; the - SDK's own retry loop is rejected to avoid double-retry (see - [Retries & errors](#retries--errors)). +```toml +# Before +dependencies = [ + "temporalio[google-genai,opentelemetry,pydantic]", +] -## Install - -```bash -uv add temporalio google-genai -# For client-side MCP support, also: -uv add mcp -``` - -## Hello World - -```python -import os -from datetime import timedelta - -from google import genai -from google.genai import types - -from temporalio import activity, workflow -from temporalio.client import Client -from temporalio.contrib.google_genai import ( - GoogleGenAIPlugin, - TemporalAsyncClient, - activity_as_tool, -) -from temporalio.worker import Worker -from temporalio.workflow import ActivityConfig - - -# ---- a tool, as a normal Temporal activity (runs on the worker) ---- -@activity.defn -async def get_weather(city: str) -> str: - return f"It's sunny in {city}." - - -# ---- the workflow (runs in the Temporal sandbox) ---- -@workflow.defn -class WeatherAgent: - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - config=types.GenerateContentConfig( - tools=[ - activity_as_tool( - get_weather, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=30), - ), - ), - ], - ), - ) - return response.text or "" - - -# ---- worker setup (outside the sandbox: real client + credentials) ---- -async def main() -> None: - gemini = genai.Client(api_key=os.environ["GOOGLE_API_KEY"]) - plugin = GoogleGenAIPlugin(gemini) - - client = await Client.connect("localhost:7233", plugins=[plugin]) - async with Worker( - client, - task_queue="gemini", - workflows=[WeatherAgent], - activities=[get_weather], - ): - result = await client.execute_workflow( - WeatherAgent.run, - "What's the weather in Tokyo?", - id="weather-1", - task_queue="gemini", - ) - print(result) -``` - -Construct `TemporalAsyncClient` **inside** the workflow; construct the real -`genai.Client` and `GoogleGenAIPlugin` **on the worker**. - -## What this plugin gives you - -| Surface | Workflow API | Runs as | -| --- | --- | --- | -| Model calls | `client.models.generate_content` / `generate_content_stream` | activity (AFC loop in workflow) | -| Tools | `activity_as_tool(fn, ...)` | one activity per tool call | -| Files | `client.files.upload` / `download` | activity | -| File search | `client.file_search_stores.upload_to_file_search_store` | activity | -| Interactions | `client.interactions.create` / `get` / `cancel` / `delete` | whole-operation activity | -| Managed agents | `client.agents.create` / `get` / `list` / `delete` | whole-operation activity | -| MCP (client-side) | `TemporalMcpClientSession(name)` in `tools=[...]` | `list_tools` / `call_tool` activities | - -Streamed responses are batched: the activity drains the stream and the workflow -iterates the collected chunks/events. `client.webhooks` is not supported in -workflows and raises. - -## Tool calling - -`activity_as_tool` wraps any `@activity.defn` function as a Gemini tool. When the -model calls it, the AFC loop (running in the workflow) dispatches it as a -durable activity: - -```python -activity_as_tool( - get_weather, - activity_config=ActivityConfig(start_to_close_timeout=timedelta(seconds=30)), -) -``` - -A timeout is required — `activity_config` must set `start_to_close_timeout` or -`schedule_to_close_timeout` (Temporal needs one; there is no default for tools). - -## MCP support - -Client-side MCP (Gemini Developer API) is wired through the plugin: register the -server on the worker and reference it by name in the workflow. - -```python -from contextlib import asynccontextmanager -import sys - -from mcp import ClientSession, StdioServerParameters -from mcp.client.stdio import stdio_client - -from temporalio.contrib.google_genai import TemporalMcpClientSession - - -# ---- worker: a factory yielding a connected, initialized session ---- -@asynccontextmanager -async def weather_mcp(): - params = StdioServerParameters(command=sys.executable, args=["weather_server.py"]) - async with stdio_client(params) as (read, write): - async with ClientSession(read, write) as session: - await session.initialize() - yield session - - -plugin = GoogleGenAIPlugin( - genai.Client(api_key=os.environ["GOOGLE_API_KEY"]), - mcp_servers={"weather": weather_mcp}, - mcp_connection_idle_timeout=timedelta(minutes=5), -) - - -# ---- workflow: reference the server by name in the tools list ---- -@workflow.defn -class McpAgent: - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient() - session = TemporalMcpClientSession( - "weather", - activity_config=ActivityConfig(start_to_close_timeout=timedelta(seconds=30)), - ) - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - config=types.GenerateContentConfig(tools=[session]), - ) - return response.text or "" -``` - -The MCP connection lives on the worker (pooled, idle-evicted); the workflow only -carries the server name. Tool discovery and calls run as `{name}-list-tools` / -`{name}-call-tool` activities, so the full tool parameter schema reaches the -model. Set `cache_tools=True` to list a server's tools once per workflow instead -of per turn. - -## Streaming - -`generate_content_stream` works as usual — the workflow iterates chunks (batched -from the activity). To let an **external** consumer (a chat UI) observe chunks in -real time while the workflow runs durably, set `streaming_topic` on the client -and host a [`WorkflowStream`](../workflow_streams/) in the workflow. Each -streamed `GenerateContentResponse` is published to that topic as it arrives: - -```python -from temporalio.contrib.workflow_streams import WorkflowStream - - -@workflow.defn -class StreamingAgent: - @workflow.init - def __init__(self, prompt: str) -> None: - self.stream = WorkflowStream() # required when streaming_topic is set - - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient(streaming_topic="gemini") - text = [] - async for chunk in await client.models.generate_content_stream( - model="gemini-2.5-flash", contents=prompt, - ): - text.append(chunk.text or "") - return "".join(text) +# After +dependencies = [ + "temporalio[opentelemetry,pydantic]", +] ``` -Consume the stream from outside the workflow: - -```python -from temporalio.contrib.workflow_streams import WorkflowStreamClient - +Remove the brackets if no extras remain. Then install the standalone package directly: -async def consume(client, workflow_id): - stream = WorkflowStreamClient.create(client, workflow_id) - async for item in stream.subscribe( - ["gemini"], result_type=types.GenerateContentResponse, - ): - print(item.data.text, end="", flush=True) +```bash +uv add temporalio-google-genai ``` -The workflow's own iteration is unchanged (it still receives batched chunks for -the SDK to parse); the topic is purely for external real-time observation. If -`streaming_topic` is set but the workflow hosts no `WorkflowStream`, the call -raises `GoogleGenAIError`. Tune flush cadence with -`TemporalAsyncClient(streaming_topic=..., streaming_batch_interval=...)` -(default 100ms). - -## Retries & errors - -Temporal owns retries. Configure them with the activity `retry_policy` via -`activity_config`. The plugin **rejects** the SDK's own retry config so retries -don't compound: - -- Constructing the plugin with a `genai.Client` that has - `http_options.retry_options` raises `ValueError`. -- Setting `http_options.retry_options` on a per-request call raises - `GoogleGenAIError`. - -API-call activities classify failures: transient statuses (408, 429, 5xx) stay -retryable (the activity's `retry_policy` applies); other statuses (e.g. 4xx) are -non-retryable so the workflow fails fast. - -## Vertex AI - -Pass `vertexai=True` to both the worker-side `genai.Client` and the -workflow-side `TemporalAsyncClient`. On the workflow side you must also set -`project` and `location` **explicitly**: +Change application imports to the standalone package: ```python -# worker -genai.Client(vertexai=True, project="my-project", location="us-central1") - -# workflow -TemporalAsyncClient(vertexai=True, project="my-project", location="us-central1") +from temporalio.google_genai import GoogleGenAIPlugin ``` -Normally the SDK auto-discovers `project`/`location` from the environment -(credentials, ADC, metadata server). That discovery -would be non-deterministic and break replay. Setting them by hand -keeps it deterministic. - -## Composing with other plugins - -`GoogleGenAIPlugin` is a `temporalio.plugin.SimplePlugin`; pass it in the -`plugins=[...]` list alongside others (e.g. OpenTelemetry). It contributes a -Pydantic data converter, the Gemini activities, a sandbox-passthrough config for -`google.genai` (and `mcp`), and registers `GoogleGenAIError` as a workflow -failure type. When composing data converters, construct the plugins so their -converters are compatible. +The new import path selects the standalone implementation instead of the +SDK-bundled `temporalio.contrib.google_genai` implementation. diff --git a/temporalio/contrib/google_genai/__init__.py b/temporalio/contrib/google_genai/__init__.py index 8cedcbc63..94ef0d2c9 100644 --- a/temporalio/contrib/google_genai/__init__.py +++ b/temporalio/contrib/google_genai/__init__.py @@ -1,119 +1,12 @@ -"""First-class Temporal integration for the Google Gemini SDK. +"""Compatibility imports for the standalone Google GenAI integration. -.. warning:: - This module is experimental and may change in future versions. - Use with caution in production environments. +Install ``temporalio-google-genai`` and import ``temporalio.google_genai`` +directly in new code. -This integration lets you use the Gemini SDK's async client with full -automatic function calling (AFC) support. Every API call becomes a -**durable Temporal activity**. Tools default to plain workflow methods -that run deterministically in-workflow; wrap any ``@activity.defn`` with -:func:`activity_as_tool` to run a tool as a durable activity instead. - -No credentials are fetched in the workflow, and no auth material appears in -Temporal's event history. - -- :class:`GoogleGenAIPlugin` — registers the Gemini SDK activities using a - caller-provided ``genai.Client`` on the worker side. -- :class:`TemporalAsyncClient` — construct from a workflow to get an - ``AsyncClient`` that routes API calls through activities. -- :func:`activity_as_tool` — convert any ``@activity.defn`` function into a - Gemini tool callable; Gemini's AFC invokes it as a Temporal activity. - -The Interactions API (``client.interactions``) and managed agents -(``client.agents``) are supported as whole-operation activities; streamed -interactions are batched (the activity drains the SSE stream and the -workflow iterates the collected events). ``client.webhooks`` is not -supported in workflows. The Interactions API has no automatic function -calling: declare tools as ``{"type": "function", ...}`` dicts (per the -Gemini docs) and drive the tool loop yourself, executing each call via -``workflow.execute_activity`` or an :func:`activity_as_tool` callable. - -MCP is supported across three paths. Client-side MCP (Gemini Developer API) -uses :class:`TemporalMcpClientSession`: register a server with -``GoogleGenAIPlugin(mcp_servers={name: factory})`` on the worker, then place -``TemporalMcpClientSession(name)`` in a ``generate_content`` ``tools`` list — -the SDK's AFC loop drives it, with ``list_tools`` / ``call_tool`` running as -activities against a pooled worker-side connection. Server-side MCP on Vertex -AI (``Tool(mcp_servers=[McpServer(...)])``) and the Interactions API's MCP step -types are executed by Google's backend and flow through unchanged as request / -response data — no extra wiring needed. Client-side MCP requires the ``mcp`` -package. - -Streaming: set ``TemporalAsyncClient(streaming_topic=...)`` and host a -:class:`temporalio.contrib.workflow_streams.WorkflowStream` in the workflow's -``@workflow.init``. Each ``generate_content_stream`` chunk is then published to -that topic as it arrives, so external consumers can observe model output in real -time while the workflow runs durably; the workflow's own iteration is unchanged. - -Quickstart:: - - # ---- worker setup (outside the Temporal Python Sandbox) ---- - client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"]) - plugin = GoogleGenAIPlugin(client) - - @activity.defn - async def get_weather(state: str) -> str: ... - - # ---- workflow (inside the Temporal Python Sandbox) ---- - @workflow.defn - class AgentWorkflow: - @workflow.run - async def run(self, query: str) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=query, - config=types.GenerateContentConfig( - tools=[ - activity_as_tool( - get_weather, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=30), - ), - ), - ], - ), - ) - return response.text +Legacy ``testing`` and ``workflow`` modules forward the standalone public API. """ -from __future__ import annotations - -from typing import TYPE_CHECKING, Any - -from temporalio.contrib.google_genai._errors import GoogleGenAIError -from temporalio.contrib.google_genai._google_genai_plugin import GoogleGenAIPlugin -from temporalio.contrib.google_genai._temporal_async_client import ( - TemporalAsyncClient, -) -from temporalio.contrib.google_genai.workflow import ( - activity_as_tool, +from temporalio.google_genai import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.google_genai import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, ) - -if TYPE_CHECKING: - from temporalio.contrib.google_genai._temporal_mcp import TemporalMcpClientSession - -__all__ = [ - "GoogleGenAIError", - "GoogleGenAIPlugin", - "TemporalAsyncClient", - "TemporalMcpClientSession", - "activity_as_tool", -] - - -def __getattr__(name: str) -> Any: - """Lazily expose ``TemporalMcpClientSession`` without importing ``mcp`` eagerly. - - ``mcp`` is an optional dependency, so importing this package must not require - it; the import (and any resulting ``ImportError``) is deferred until the - symbol is actually accessed. - """ - if name == "TemporalMcpClientSession": - from temporalio.contrib.google_genai._temporal_mcp import ( - TemporalMcpClientSession, - ) - - return TemporalMcpClientSession - raise AttributeError(f"module {__name__!r} has no attribute {name!r}") diff --git a/temporalio/contrib/google_genai/_compat.py b/temporalio/contrib/google_genai/_compat.py deleted file mode 100644 index 6613e2b9c..000000000 --- a/temporalio/contrib/google_genai/_compat.py +++ /dev/null @@ -1,24 +0,0 @@ -"""Version-compatibility shims for the ``google-genai`` SDK. - -Single home for workarounds that keep the plugin importable and -type-checkable across the supported ``google-genai`` range; remove entries -as upstream fixes land. -""" - -from __future__ import annotations - -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - # google-genai 2.12.0 exports two ``Interaction`` names: the interaction - # resource class and a ``TypeAliasType`` over the trigger-request - # variants. At runtime we get the resource class but type checkers - # resolve to the alias which causes failures (the alias has no ``id``, - # etc.). Force the type checker to see the class' defining module (in - # the same location in 2.10 and 2.12). - from google.genai._gaos.types.interactions.interaction import Interaction -else: - # At runtime, Interaction resolves properly for 2.10 and 2.12 - from google.genai.interactions import Interaction - -__all__ = ["Interaction"] diff --git a/temporalio/contrib/google_genai/_errors.py b/temporalio/contrib/google_genai/_errors.py deleted file mode 100644 index 3f6595e4b..000000000 --- a/temporalio/contrib/google_genai/_errors.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Error types for the Google Gemini SDK Temporal integration.""" - -from __future__ import annotations - -from temporalio.exceptions import ApplicationError - - -class GoogleGenAIError(ApplicationError): - """Error raised by the Google Gemini Temporal integration. - - Registered with the worker (and replayer) via - ``workflow_failure_exception_types`` so that, when raised in workflow code, - it terminally fails the workflow execution rather than failing the workflow - task and retrying it indefinitely. Use it for conditions that cannot be - recovered by retry — e.g. a tool that is not a valid Temporal activity. - """ diff --git a/temporalio/contrib/google_genai/_gemini_activity.py b/temporalio/contrib/google_genai/_gemini_activity.py deleted file mode 100644 index 496bbf1ab..000000000 --- a/temporalio/contrib/google_genai/_gemini_activity.py +++ /dev/null @@ -1,356 +0,0 @@ -"""Temporal activity that executes Gemini SDK API calls with real credentials. - -The ``TemporalApiClient`` in the workflow dispatches calls here. This -activity holds a user-provided ``genai.Client`` and forwards structured -requests. Credentials are fetched/refreshed only within the activity — -they never appear in workflow event history. -""" - -from __future__ import annotations - -from collections.abc import Sequence -from contextlib import AsyncExitStack -from datetime import timedelta -from typing import Any, Callable - -import google.auth.credentials -from google.genai import Client as GeminiClient -from google.genai import errors as genai_errors -from google.genai import types -from google.genai.types import HttpOptions -from google.genai.types import HttpResponse as SdkHttpResponse - -from temporalio import activity -from temporalio.contrib.google_genai._compat import Interaction -from temporalio.contrib.google_genai._models import ( - _GeminiApiRequest, - _GeminiApiResponse, - _GeminiApiStreamedResponse, - _GeminiDownloadFileRequest, - _GeminiInteractionIdRequest, - _GeminiInteractionRequest, - _GeminiInteractionStreamedResponse, - _GeminiRegisterFilesRequest, - _GeminiUploadFileRequest, - _GeminiUploadToFileSearchStoreRequest, -) -from temporalio.contrib.workflow_streams import WorkflowStreamClient -from temporalio.exceptions import ApplicationError - - -def _resolve_http_options( - overrides: Any, -) -> HttpOptions | None: - """Reconstruct ``HttpOptions`` from serializable overrides, or None.""" - if overrides is None: - return None - return HttpOptions.model_validate(overrides.model_dump(exclude_none=True)) - - -# HTTP status codes the Gemini SDK itself treats as transient/retryable. -_RETRYABLE_HTTP_STATUS = frozenset({408, 429, 500, 502, 503, 504}) - - -def _classify_api_error(err: genai_errors.APIError) -> ApplicationError: - """Map a Gemini ``APIError`` to an ``ApplicationError`` Temporal can act on. - - Transient statuses (timeouts, rate limits, 5xx) stay retryable so the - activity's retry policy applies; everything else (e.g. 4xx client errors) - is marked non-retryable so the workflow fails fast instead of retrying a - request that cannot succeed. - """ - code = getattr(err, "code", None) - retryable = code in _RETRYABLE_HTTP_STATUS - return ApplicationError( - str(err), - type=type(err).__name__, - non_retryable=not retryable, - ) - - -async def _drain_interaction_stream( - stream: Any, -) -> _GeminiInteractionStreamedResponse: - """Collect every SSE event from an interaction stream, heartbeating per event. - - ``stream`` is the SDK's async streaming response; its concrete class is not a - stable public name, so it is typed structurally — only ``async with`` / - ``async for`` / ``event.model_dump(...)`` are used. - """ - events: list[dict[str, Any]] = [] - async with stream: - async for event in stream: - activity.heartbeat() - events.append( - event.model_dump(by_alias=True, exclude_none=True, mode="json") - ) - return _GeminiInteractionStreamedResponse(events=events) - - -class GeminiApiCaller: - """Wraps a ``genai.Client`` and exposes Temporal activities for SDK calls. - - The caller owns a reference to the user-provided ``genai.Client``. - All credential management, HTTP client configuration, etc. is the - responsibility of whoever constructs the client. - """ - - def __init__( - self, - client: GeminiClient, - credentials: google.auth.credentials.Credentials | None = None, - ) -> None: - """Initialize with a genai.Client and optional extra credentials.""" - self._client = client - self._credentials = credentials - - def activities(self) -> Sequence[Callable]: - """Return activities that route SDK calls through this client.""" - - @activity.defn - async def gemini_api_client_async_request( - req: _GeminiApiRequest, - ) -> _GeminiApiResponse: - """Execute a Gemini SDK API call with real credentials.""" - try: - response: SdkHttpResponse = ( - await self._client.aio._api_client.async_request( - http_method=req.http_method, - path=req.path, - request_dict=req.request_dict, - http_options=_resolve_http_options(req.http_options_overrides), - ) - ) - except genai_errors.APIError as err: - raise _classify_api_error(err) from err - return _GeminiApiResponse( - headers=response.headers or {}, - body=response.body or "", - ) - - @activity.defn - async def gemini_api_client_async_request_streamed( - req: _GeminiApiRequest, - ) -> _GeminiApiStreamedResponse: - """Execute a streamed Gemini SDK API call, collecting all chunks. - - When ``req.streaming_topic`` is set, each chunk is also published to - that workflow-stream topic (parsed as ``GenerateContentResponse``) - as it arrives, so external consumers see the model output in real - time. Chunks are still returned batched for the SDK to parse - in-workflow; publishing is best-effort and never breaks that path. - """ - chunks: list[_GeminiApiResponse] = [] - try: - async with AsyncExitStack() as stack: - topic = None - if req.streaming_topic: - publisher = WorkflowStreamClient.from_within_activity( - batch_interval=timedelta( - milliseconds=req.streaming_batch_interval_ms - ), - ) - await stack.enter_async_context(publisher) - topic = publisher.topic( - req.streaming_topic, type=types.GenerateContentResponse - ) - - stream = await self._client.aio._api_client.async_request_streamed( - http_method=req.http_method, - path=req.path, - request_dict=req.request_dict, - http_options=_resolve_http_options(req.http_options_overrides), - ) - async for chunk in stream: - body = chunk.body or "" - chunks.append( - _GeminiApiResponse(headers=chunk.headers or {}, body=body) - ) - if topic is not None and body: - try: - topic.publish( - types.GenerateContentResponse.model_validate_json( - body - ) - ) - except Exception: - # Best-effort: a malformed/transform-needing chunk - # must not break the batched return. - pass - except genai_errors.APIError as err: - raise _classify_api_error(err) from err - return _GeminiApiStreamedResponse(chunks=chunks) - - @activity.defn - async def gemini_files_upload( - req: _GeminiUploadFileRequest, - ) -> types.File: - """Upload a file using the real genai.Client on the worker.""" - if req.file_bytes is not None: - import io - - file_arg: Any = io.BytesIO(req.file_bytes) - else: - file_arg = req.file_path - - return await self._client.aio.files.upload(file=file_arg, config=req.config) - - @activity.defn - async def gemini_files_download( - req: _GeminiDownloadFileRequest, - ) -> bytes: - """Download a file using the real genai.Client on the worker.""" - return await self._client.aio.files.download( - file=req.file, config=req.config - ) - - @activity.defn - async def gemini_files_register( - req: _GeminiRegisterFilesRequest, - ) -> types.RegisterFilesResponse: - """Register GCS files using the real genai.Client on the worker. - - Uses ``credentials`` if provided at plugin init, - otherwise falls back to the client's own credentials. - Token refresh happens here on the worker side, so no auth - material enters the workflow event history. - """ - auth = self._credentials or self._client._api_client._credentials - if auth is None: - raise ValueError( - "No credentials available for register_files(). " - "Pass extra_credentials to GoogleGenAIPlugin or initialize " - "the genai.Client with credentials." - ) - return await self._client.aio.files.register_files( - auth=auth, - uris=req.uris, - config=req.config, - ) - - @activity.defn - async def gemini_file_search_stores_upload( - req: _GeminiUploadToFileSearchStoreRequest, - ) -> types.UploadToFileSearchStoreOperation: - """Upload a file to a file search store on the worker.""" - if req.file_bytes is not None: - import io - - file_arg: Any = io.BytesIO(req.file_bytes) - else: - file_arg = req.file_path - - return ( - await self._client.aio.file_search_stores.upload_to_file_search_store( - file_search_store_name=req.file_search_store_name, - file=file_arg, - config=req.config, - ) - ) - - @activity.defn - async def gemini_interactions_create( - req: _GeminiInteractionRequest, - ) -> dict[str, Any]: - """Create an interaction using the real genai.Client on the worker.""" - interaction = await self._client.aio.interactions.create(**req.params) - assert isinstance(interaction, Interaction) - return interaction.model_dump(by_alias=True, exclude_none=True, mode="json") - - @activity.defn - async def gemini_interactions_create_streamed( - req: _GeminiInteractionRequest, - ) -> _GeminiInteractionStreamedResponse: - """Create a streamed interaction, collecting all SSE events.""" - stream = await self._client.aio.interactions.create( - stream=True, **req.params - ) - assert not isinstance(stream, Interaction) - return await _drain_interaction_stream(stream) - - @activity.defn - async def gemini_interactions_get( - req: _GeminiInteractionIdRequest, - ) -> dict[str, Any]: - """Get an interaction using the real genai.Client on the worker.""" - interaction = await self._client.aio.interactions.get(req.id, **req.params) - return interaction.model_dump(by_alias=True, exclude_none=True, mode="json") - - @activity.defn - async def gemini_interactions_get_streamed( - req: _GeminiInteractionIdRequest, - ) -> _GeminiInteractionStreamedResponse: - """Get a streamed interaction, collecting all SSE events.""" - stream = await self._client.aio.interactions.get( - req.id, stream=True, **req.params - ) - assert not isinstance(stream, Interaction) - return await _drain_interaction_stream(stream) - - @activity.defn - async def gemini_interactions_delete( - req: _GeminiInteractionIdRequest, - ) -> Any: - """Delete an interaction using the real genai.Client on the worker.""" - return await self._client.aio.interactions.delete(req.id, **req.params) - - @activity.defn - async def gemini_interactions_cancel( - req: _GeminiInteractionIdRequest, - ) -> dict[str, Any]: - """Cancel an interaction using the real genai.Client on the worker.""" - interaction = await self._client.aio.interactions.cancel( - req.id, **req.params - ) - return interaction.model_dump(by_alias=True, exclude_none=True, mode="json") - - @activity.defn - async def gemini_agents_create( - req: _GeminiInteractionRequest, - ) -> dict[str, Any]: - """Create a managed agent using the real genai.Client on the worker.""" - agent = await self._client.aio.agents.create(**req.params) - return agent.model_dump(by_alias=True, exclude_none=True, mode="json") - - @activity.defn - async def gemini_agents_list( - req: _GeminiInteractionRequest, - ) -> dict[str, Any]: - """List managed agents using the real genai.Client on the worker.""" - response = await self._client.aio.agents.list(**req.params) - return response.model_dump(by_alias=True, exclude_none=True, mode="json") - - @activity.defn - async def gemini_agents_get( - req: _GeminiInteractionIdRequest, - ) -> dict[str, Any]: - """Get a managed agent using the real genai.Client on the worker.""" - agent = await self._client.aio.agents.get(req.id, **req.params) - return agent.model_dump(by_alias=True, exclude_none=True, mode="json") - - @activity.defn - async def gemini_agents_delete( - req: _GeminiInteractionIdRequest, - ) -> dict[str, Any]: - """Delete a managed agent using the real genai.Client on the worker.""" - response = await self._client.aio.agents.delete(req.id, **req.params) - return response.model_dump(by_alias=True, exclude_none=True, mode="json") - - return [ - gemini_api_client_async_request, - gemini_api_client_async_request_streamed, - gemini_files_upload, - gemini_files_download, - gemini_files_register, - gemini_file_search_stores_upload, - gemini_interactions_create, - gemini_interactions_create_streamed, - gemini_interactions_get, - gemini_interactions_get_streamed, - gemini_interactions_delete, - gemini_interactions_cancel, - gemini_agents_create, - gemini_agents_list, - gemini_agents_get, - gemini_agents_delete, - ] diff --git a/temporalio/contrib/google_genai/_google_genai_plugin.py b/temporalio/contrib/google_genai/_google_genai_plugin.py deleted file mode 100644 index f7b65b769..000000000 --- a/temporalio/contrib/google_genai/_google_genai_plugin.py +++ /dev/null @@ -1,158 +0,0 @@ -"""Temporal plugin for Google Gemini SDK integration.""" - -from __future__ import annotations - -import dataclasses -from datetime import timedelta -from typing import TYPE_CHECKING - -import google.auth.credentials -from google.genai import Client as GeminiClient - -from temporalio.contrib.google_genai._errors import GoogleGenAIError -from temporalio.contrib.google_genai._gemini_activity import GeminiApiCaller -from temporalio.contrib.pydantic import PydanticPayloadConverter -from temporalio.converter import DataConverter, DefaultPayloadConverter -from temporalio.plugin import SimplePlugin -from temporalio.worker import WorkflowRunner -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner - -if TYPE_CHECKING: - from temporalio.contrib.google_genai._mcp import McpSessionFactory - - -_RETRY_OPTIONS_MESSAGE = ( - "genai.Client is configured with http_options.retry_options, but Temporal " - "owns retries for durable execution. Remove retry_options from the client " - "and configure retries with the activity retry_policy instead — e.g. " - "TemporalAsyncClient(activity_config=ActivityConfig(retry_policy=...)) or " - "activity_as_tool(fn, activity_config=ActivityConfig(retry_policy=...))." -) - - -def _reject_sdk_retries(client: GeminiClient) -> None: - """Raise if the client enables the SDK's own retry loop. - - Temporal must own retries so each attempt is a separate, observable activity - attempt; an SDK-internal retry loop would hide retries inside one activity - and compound with Temporal's retry policy. - """ - http_options = getattr(client._api_client, "_http_options", None) - if http_options is not None and getattr(http_options, "retry_options", None): - raise ValueError(_RETRY_OPTIONS_MESSAGE) - - -def _data_converter(converter: DataConverter | None) -> DataConverter: - if converter is None: - return DataConverter(payload_converter_class=PydanticPayloadConverter) - elif converter.payload_converter_class is DefaultPayloadConverter: - return dataclasses.replace( - converter, payload_converter_class=PydanticPayloadConverter - ) - return converter - - -class GoogleGenAIPlugin(SimplePlugin): - """A Temporal Worker Plugin configured for the Google Gemini SDK. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - This plugin registers the ``gemini_api_client_async_request`` activity - using the provided ``genai.Client`` with real credentials. Workflows - construct a :class:`temporalio.contrib.google_genai.TemporalAsyncClient` - to get an ``AsyncClient`` backed by a ``TemporalApiClient`` that routes all - API calls through this activity. - - No credentials are passed to or from the workflow. Auth material never - appears in Temporal's event history. - - Example (Gemini Developer API):: - - client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"]) - plugin = GoogleGenAIPlugin(client) - - Example (Vertex AI):: - - client = genai.Client( - vertexai=True, project="my-project", location="us-central1", - ) - plugin = GoogleGenAIPlugin(client) - - Example (with separate GCS credentials for file registration):: - - client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"]) - gcs_creds, _ = google.auth.default() - plugin = GoogleGenAIPlugin(client, extra_credentials=gcs_creds) - """ - - def __init__( - self, - client: GeminiClient, - extra_credentials: google.auth.credentials.Credentials | None = None, - mcp_servers: dict[str, McpSessionFactory] | None = None, - mcp_connection_idle_timeout: timedelta | None = None, - ) -> None: - """Initialize the Gemini plugin. - - Args: - client: A fully configured ``genai.Client`` instance. - All credential management, HTTP client configuration, etc. - is the responsibility of the caller. - extra_credentials: Optional Google Cloud credentials used for - operations that require explicit auth (e.g. - ``files.register_files()``). If not provided, the - client's own credentials are used. - mcp_servers: MCP servers to expose to workflows, keyed by name. - Each value is a factory returning an async context manager that - yields a connected, initialized ``mcp.ClientSession``. A - workflow references a server by name with - ``TemporalMcpClientSession(name)`` in a ``generate_content`` - ``tools`` list; ``list_tools`` / ``call_tool`` then run as the - ``{name}-list-tools`` / ``{name}-call-tool`` activities against a - worker-side connection. Requires the ``mcp`` package. - mcp_connection_idle_timeout: How long a worker-process MCP - connection stays open while idle before being disconnected - (the timer resets on each reuse). Defaults to 5 minutes. - """ - _reject_sdk_retries(client) - self._api_caller = GeminiApiCaller(client, credentials=extra_credentials) - - activities = list(self._api_caller.activities()) - if mcp_servers: - # Imported lazily: ``mcp`` is an optional dependency, only needed - # when MCP servers are registered. - from temporalio.contrib.google_genai._mcp import build_mcp_activities - - activities.extend( - build_mcp_activities(mcp_servers, mcp_connection_idle_timeout) - ) - - def workflow_runner(runner: WorkflowRunner | None) -> WorkflowRunner: - if not runner: - raise ValueError("No WorkflowRunner provided to GoogleGenAIPlugin.") - if isinstance(runner, SandboxedWorkflowRunner): - return dataclasses.replace( - runner, - restrictions=runner.restrictions.with_passthrough_modules( - # The SDK's request formatting + AFC loop run in-workflow - # and validate google.genai's Pydantic models; mcp is - # imported to subclass ClientSession. pydantic itself is - # in the SDK default passthrough, but its compiled core - # and Annotated helper are not, so extend them. - "google.genai", - "mcp", - "pydantic_core", - "annotated_types", - ), - ) - return runner - - super().__init__( - name="google_genai.GoogleGenAIPlugin", - data_converter=_data_converter, - activities=activities, - workflow_runner=workflow_runner, - workflow_failure_exception_types=[GoogleGenAIError], - ) diff --git a/temporalio/contrib/google_genai/_mcp.py b/temporalio/contrib/google_genai/_mcp.py deleted file mode 100644 index 157ce458c..000000000 --- a/temporalio/contrib/google_genai/_mcp.py +++ /dev/null @@ -1,226 +0,0 @@ -"""Worker-side MCP activities and a pooled-connection subsystem. - -The Gemini SDK's automatic-function-calling loop runs *inside* the workflow, -where it would otherwise call ``McpClientSession.list_tools`` / -``call_tool`` directly (network I/O — forbidden in a workflow). The -workflow-side ``TemporalMcpClientSession`` shim redirects those two methods to -the ``{server}-list-tools`` / ``{server}-call-tool`` activities defined here, -so the real ``mcp.ClientSession`` lives only on the worker. - -A single live session per server is held open in the worker process and reused -across activity invocations, with idle eviction — modeled on the strands -plugin's ``_temporal_mcp_client``. The MCP transport and ``ClientSession`` are -anyio context managers whose cancel scope is bound to the task that enters -them, so a dedicated owner task (``_ConnectionRecord._run``) holds them open for -the connection's lifetime while concurrent activities on the same event loop -call through the shared session. -""" - -from __future__ import annotations - -import asyncio -from collections.abc import Callable -from contextlib import AbstractAsyncContextManager -from datetime import timedelta - -from mcp import ClientSession -from mcp.types import CallToolResult, ListToolsResult - -from temporalio import activity -from temporalio.contrib.google_genai._models import _McpCallToolRequest - -# A factory yields a ready-to-use (connected and ``initialize()``-d) -# ``ClientSession`` as an async context manager. Mirrors the strands -# ``mcp_clients={name: factory}`` shape; the user writes a small -# ``@asynccontextmanager`` that enters the transport, opens the session, and -# initializes it before ``yield``. -McpSessionFactory = Callable[[], AbstractAsyncContextManager[ClientSession]] - -# Default time an idle MCP connection stays open before being disconnected. -# The timer resets on every call that reuses the connection. Override per -# worker via ``GoogleGenAIPlugin(mcp_connection_idle_timeout=...)``. -_MCP_CONNECTION_IDLE = timedelta(minutes=5) - -# Server name -> live connection held open in the activity worker process. -# Activities run in the worker process, so this module state is shared across -# activity invocations on the worker. -_CONNECTIONS: dict[str, _ConnectionRecord] = {} - - -class _ConnectionRecord: - """A single MCP session held open by a dedicated owner task. - - ``_run`` enters and exits the session's context manager in the same task - for the connection's whole lifetime; ``list_tools`` / ``call_tool`` - activities on the same event loop call through the shared session (MCP - multiplexes concurrent requests by id). - """ - - def __init__( - self, - server: str, - factory: McpSessionFactory, - idle_timeout: timedelta, - ) -> None: - loop = asyncio.get_running_loop() - self._server = server - self._idle_timeout = idle_timeout - self._stop = asyncio.Event() - self._ready: asyncio.Future[ClientSession] = loop.create_future() - self._idle_handle: asyncio.TimerHandle | None = None - self._inflight = 0 - self._owner = asyncio.create_task(self._run(factory)) - - async def _run(self, factory: McpSessionFactory) -> None: - try: - async with factory() as session: - self._ready.set_result(session) - await self._stop.wait() - except BaseException as err: - # A failed connect should not be cached; drop it so the next call - # retries instead of awaiting a permanently rejected future. - if not self._ready.done(): - self._ready.set_exception(err) - _CONNECTIONS.pop(self._server, None) - raise - - def acquire(self) -> None: - """Mark a call in flight; pause idle eviction while calls are active.""" - self._inflight += 1 - if self._idle_handle is not None: - self._idle_handle.cancel() - self._idle_handle = None - - def release(self) -> None: - """Mark a call done; arm idle eviction once no calls remain in flight.""" - self._inflight -= 1 - # Only the record still cached under this server arms a timer; a record - # already evicted or never cached must not schedule one, or it could - # later evict a different, healthy connection for the same server. - if self._inflight == 0 and _CONNECTIONS.get(self._server) is self: - loop = asyncio.get_running_loop() - self._idle_handle = loop.call_later( - self._idle_timeout.total_seconds(), self._on_idle - ) - - def _on_idle(self) -> None: - asyncio.ensure_future(self._maybe_evict()) - - async def _maybe_evict(self) -> None: - # A call may have acquired the connection between the timer firing and - # this task running; only evict if it is still idle. - if self._inflight == 0: - await _evict_connection(self._server) - - async def aclose(self) -> None: - """Signal the owner task to exit its context manager and wait for it.""" - if self._idle_handle is not None: - self._idle_handle.cancel() - self._idle_handle = None - self._stop.set() - try: - await self._owner - except BaseException: - pass - - async def session(self) -> ClientSession: - """Return the live session, or raise the connect failure.""" - return await self._ready - - -async def get_connection( - server: str, factory: McpSessionFactory, idle_timeout: timedelta -) -> tuple[ClientSession, _ConnectionRecord]: - """Return the cached session for ``server``, opening one lazily if needed. - - Concurrent first-callers dedupe onto a single connect handshake by awaiting - the same record. The returned record is acquired; the caller must - ``release()`` it once the call completes so idle eviction can resume. - """ - record = _CONNECTIONS.get(server) - if record is None: - record = _ConnectionRecord(server, factory, idle_timeout) - _CONNECTIONS[server] = record - record.acquire() - try: - session = await record.session() - except BaseException: - record.release() - raise - return session, record - - -async def _evict_connection(server: str) -> None: - record = _CONNECTIONS.pop(server, None) - if record is not None: - await record.aclose() - - -def build_list_tools_activity( - server: str, - factory: McpSessionFactory, - idle_timeout: timedelta | None = None, -) -> Callable: - """Return the per-server ``{server}-list-tools`` activity for registration. - - Reuses a lazily-opened, idle-evicted worker-process MCP session. Returns - the raw ``mcp.types.ListToolsResult`` so the workflow-side shim can hand it - to the Gemini SDK exactly as a live session would (preserving the full tool - parameter schema). - """ - idle = idle_timeout if idle_timeout is not None else _MCP_CONNECTION_IDLE - - @activity.defn(name=f"{server}-list-tools") - async def list_tools() -> ListToolsResult: - session, record = await get_connection(server, factory, idle) - try: - return await session.list_tools() - except Exception: - # The session may be broken; drop it so the next call reconnects. - await _evict_connection(server) - raise - finally: - record.release() - - return list_tools - - -def build_call_tool_activity( - server: str, - factory: McpSessionFactory, - idle_timeout: timedelta | None = None, -) -> Callable: - """Return the per-server ``{server}-call-tool`` activity for registration. - - Reuses the same lazily-opened, idle-evicted worker-process MCP session as - ``{server}-list-tools``. Returns the raw ``mcp.types.CallToolResult`` — - including tool-level error results (``isError=True``), which the model is - meant to see; only transport/protocol failures raise (and evict). - """ - idle = idle_timeout if idle_timeout is not None else _MCP_CONNECTION_IDLE - - @activity.defn(name=f"{server}-call-tool") - async def call_tool(req: _McpCallToolRequest) -> CallToolResult: - session, record = await get_connection(server, factory, idle) - try: - return await session.call_tool(name=req.name, arguments=req.arguments) - except Exception: - # The session may be broken; drop it so the next call reconnects. - await _evict_connection(server) - raise - finally: - record.release() - - return call_tool - - -def build_mcp_activities( - mcp_servers: dict[str, McpSessionFactory], - idle_timeout: timedelta | None = None, -) -> list[Callable]: - """Build the list-tools and call-tool activities for every registered server.""" - activities: list[Callable] = [] - for server, factory in mcp_servers.items(): - activities.append(build_list_tools_activity(server, factory, idle_timeout)) - activities.append(build_call_tool_activity(server, factory, idle_timeout)) - return activities diff --git a/temporalio/contrib/google_genai/_models.py b/temporalio/contrib/google_genai/_models.py deleted file mode 100644 index 2f70d9b4d..000000000 --- a/temporalio/contrib/google_genai/_models.py +++ /dev/null @@ -1,172 +0,0 @@ -"""Serializable Pydantic models for the Gemini SDK Temporal integration. - -These models cross the activity boundary — they're constructed on the -workflow side and deserialized on the activity side (or vice versa). -""" - -from __future__ import annotations - -from typing import Any - -from google.genai import types -from pydantic import BaseModel - -__all__ = [ - "_GeminiApiRequest", - "_GeminiApiResponse", - "_GeminiApiStreamedResponse", - "_GeminiDownloadFileRequest", - "_GeminiInteractionIdRequest", - "_GeminiInteractionRequest", - "_GeminiInteractionStreamedResponse", - "_GeminiRegisterFilesRequest", - "_GeminiUploadFileRequest", - "_GeminiUploadToFileSearchStoreRequest", - "_McpCallToolRequest", - "_SerializableHttpOptions", -] - - -class _SerializableHttpOptions(BaseModel): - """Per-request HTTP options that can be serialized across the activity boundary. - - Non-serializable fields (httpx_client, httpx_async_client, aiohttp_client, - client_args, async_client_args) must be configured at GoogleGenAIPlugin init. - - ``timeout`` is excluded because Temporal owns timeouts/retries — configure - via ``ActivityConfig`` instead. - """ - - base_url: str | None = None - base_url_resource_scope: str | None = None - api_version: str | None = None - headers: dict[str, str] | None = None - extra_body: dict[str, Any] | None = None - - -# ── async_request models ────────────────────────────────────────────────── - - -class _GeminiApiRequest(BaseModel): - """Serializable activity input for a Gemini SDK API call. - - ``streaming_topic`` / ``streaming_batch_interval_ms`` are only read by the - streamed activity: when a topic is set, each streamed chunk is published to - that workflow-stream topic as it arrives (in addition to being returned - batched), so external consumers can observe the model output in real time. - """ - - http_method: str - path: str - request_dict: dict[str, object] - http_options_overrides: _SerializableHttpOptions | None = None - streaming_topic: str | None = None - streaming_batch_interval_ms: int = 100 - - -class _GeminiApiResponse(BaseModel): - """Serializable activity output for a Gemini SDK API call.""" - - headers: dict[str, str] - body: str - - -class _GeminiApiStreamedResponse(BaseModel): - """Serializable activity output for a batched streamed API call. - - The activity collects all streamed chunks and returns them as a list. - The ``TemporalApiClient`` then yields them one at a time to the SDK. - """ - - chunks: list[_GeminiApiResponse] - - -# ── files upload/download models ────────────────────────────────────────── - - -class _GeminiUploadFileRequest(BaseModel): - """Serializable activity input for a file upload. - - For file path uploads the path is resolved on the worker. For - in-memory uploads the raw bytes are sent across the activity boundary. - """ - - file_bytes: bytes | None = None - file_path: str | None = None - config: types.UploadFileConfig | None = None - - -class _GeminiDownloadFileRequest(BaseModel): - """Serializable activity input for a file download.""" - - file: str - config: types.DownloadFileConfig | None = None - - -class _GeminiRegisterFilesRequest(BaseModel): - """Serializable activity input for registering GCS files.""" - - uris: list[str] - config: types.RegisterFilesConfig | None = None - - -class _GeminiUploadToFileSearchStoreRequest(BaseModel): - """Serializable activity input for uploading a file to a file search store.""" - - file_search_store_name: str - file_bytes: bytes | None = None - file_path: str | None = None - config: types.UploadToFileSearchStoreConfig | None = None - - -# ── interactions / agents models ────────────────────────────────────────── - - -class _GeminiInteractionRequest(BaseModel): - """Serializable activity input for interactions/agents calls without an id. - - ``params`` is the caller's kwargs forwarded verbatim to the real SDK - method on the worker — ``stream`` and ``timeout`` are popped by the - workflow-side shim before dispatch (``stream`` selects the activity, - ``timeout`` maps to the activity's ``start_to_close_timeout``). - """ - - params: dict[str, Any] = {} - - -class _GeminiInteractionIdRequest(BaseModel): - """Serializable activity input for id-addressed interactions/agents calls.""" - - id: str - params: dict[str, Any] = {} - - -class _GeminiInteractionStreamedResponse(BaseModel): - """Serializable activity output for a batched streamed interaction call. - - ``events`` is the verbatim sequence of ``InteractionSSEEvent`` objects - yielded by the SDK's stream, each serialized via - ``model_dump(exclude_none=True, mode="json")``. The workflow-side shim - rehydrates each entry with ``_temporal_interactions._deserialize`` so - workflow code iterates the same typed events it would get from the SDK - directly. - """ - - events: list[dict[str, Any]] = [] - - -# ── MCP models ───────────────────────────────────────────────────────────── - - -class _McpCallToolRequest(BaseModel): - """Serializable activity input for an MCP ``call_tool`` invocation. - - Carries the tool name and arguments the Gemini SDK's AFC loop selected; - the worker-side activity forwards them to the real ``mcp.ClientSession``. - The ``mcp.types.ListToolsResult`` / ``CallToolResult`` returned by the - activities are themselves Pydantic models, so they serialize directly via - the plugin's ``PydanticPayloadConverter`` and need no wrapper here. - """ - - name: str - arguments: dict[str, Any] = {} diff --git a/temporalio/contrib/google_genai/_temporal_agents.py b/temporalio/contrib/google_genai/_temporal_agents.py deleted file mode 100644 index 2aaac8f78..000000000 --- a/temporalio/contrib/google_genai/_temporal_agents.py +++ /dev/null @@ -1,143 +0,0 @@ -"""Temporal-aware agents resource shim. - -``TemporalAsyncAgents`` exposes the same surface as google-genai's -``AsyncClient.agents`` resource, but each operation is dispatched through a -Temporal activity holding the real ``genai.Client`` on the worker. Agents are -server-side managed agent definitions (created once, then referenced by id in -``interactions.create(agent=...)``); like the Interactions API, the resource -lives in the vendored Stainless client that bypasses ``BaseApiClient``, so each -operation is routed as a whole through an activity instead. - -The shim depends only on the public ``google.genai.interactions`` surface, not -on google-genai internals. -""" - -from __future__ import annotations - -from datetime import timedelta -from typing import Any, cast - -# These types are runtime-public (in ``google.genai.interactions.__all__``) but -# pyright's stubs don't mark them re-exported; the alternative it suggests is a -# private ``_gaos`` path, so suppress the false positive. -from google.genai.interactions import ( - Agent, # pyright: ignore[reportPrivateImportUsage] - AgentDeleteResponse, # pyright: ignore[reportPrivateImportUsage] - AgentListResponse, # pyright: ignore[reportPrivateImportUsage] -) - -from temporalio import workflow as temporal_workflow -from temporalio.contrib.google_genai._models import ( - _GeminiInteractionIdRequest, - _GeminiInteractionRequest, -) -from temporalio.contrib.google_genai._temporal_interactions import ( - _deserialize, - _pop_timeout, -) -from temporalio.workflow import ActivityConfig - - -class TemporalAsyncAgents: - """Agents resource shim that routes calls through activities. - - Methods accept the same keyword arguments as the real resource and - forward them verbatim — the SDK validates them on the worker side, so - a bad argument surfaces as an activity failure (retried per the - activity's retry policy) rather than a workflow-side error. - - ``with_raw_response`` / ``with_streaming_response`` are not supported - in workflows. - """ - - def __init__( - self, - activity_config: ActivityConfig | None = None, - ) -> None: - """Initialize with activity config for agent operation timeouts.""" - self._activity_config = ( - ActivityConfig(start_to_close_timeout=timedelta(seconds=60)) - if activity_config is None - else activity_config - ) - - def _config(self, summary: str, params: dict[str, Any]) -> ActivityConfig: - config: ActivityConfig = {**self._activity_config} - if "summary" not in config: - config["summary"] = summary - _pop_timeout(params, config) - return config - - async def create( - self, - **kwargs: Any, - ) -> Agent: - """Create a managed agent definition via a Temporal activity.""" - params = dict(kwargs) - config = self._config("agents.create", params) - raw = await temporal_workflow.execute_activity( - "gemini_agents_create", - _GeminiInteractionRequest(params=params), - result_type=dict[str, Any], - **config, - ) - return cast(Agent, _deserialize(raw, Agent)) - - async def list( - self, - **kwargs: Any, - ) -> AgentListResponse: - """List managed agent definitions via a Temporal activity.""" - params = dict(kwargs) - config = self._config("agents.list", params) - raw = await temporal_workflow.execute_activity( - "gemini_agents_list", - _GeminiInteractionRequest(params=params), - result_type=dict[str, Any], - **config, - ) - return cast(AgentListResponse, _deserialize(raw, AgentListResponse)) - - async def get( - self, - id: str, - **kwargs: Any, - ) -> Agent: - """Get a managed agent definition via a Temporal activity.""" - params = dict(kwargs) - config = self._config("agents.get", params) - raw = await temporal_workflow.execute_activity( - "gemini_agents_get", - _GeminiInteractionIdRequest(id=id, params=params), - result_type=dict[str, Any], - **config, - ) - return cast(Agent, _deserialize(raw, Agent)) - - async def delete( - self, - id: str, - **kwargs: Any, - ) -> AgentDeleteResponse: - """Delete a managed agent definition via a Temporal activity.""" - params = dict(kwargs) - config = self._config("agents.delete", params) - raw = await temporal_workflow.execute_activity( - "gemini_agents_delete", - _GeminiInteractionIdRequest(id=id, params=params), - result_type=dict[str, Any], - **config, - ) - return cast(AgentDeleteResponse, _deserialize(raw, AgentDeleteResponse)) - - @property - def with_raw_response(self) -> Any: - """Raise — raw responses are not available in workflows.""" - raise RuntimeError("with_raw_response is not supported in Temporal workflows.") - - @property - def with_streaming_response(self) -> Any: - """Raise — streaming responses are not available in workflows.""" - raise RuntimeError( - "with_streaming_response is not supported in Temporal workflows." - ) diff --git a/temporalio/contrib/google_genai/_temporal_api_client.py b/temporalio/contrib/google_genai/_temporal_api_client.py deleted file mode 100644 index 0763d6890..000000000 --- a/temporalio/contrib/google_genai/_temporal_api_client.py +++ /dev/null @@ -1,319 +0,0 @@ -"""Temporal-aware BaseApiClient that routes SDK calls through activities. - -This module provides ``_TemporalApiClient``, a ``BaseApiClient`` subclass -whose HTTP methods dispatch through Temporal activities instead of making -direct calls. The real ``genai.Client`` with real credentials only exists -on the worker side inside the activity. - -This ensures: - -- No credential fetching or refreshing happens in the workflow. -- No auth material (tokens, API keys) appears in Temporal event history. -- The SDK's AFC (automatic function calling) loop runs in the workflow, - so ``activity_as_tool()`` wrappers work naturally. -""" - -from __future__ import annotations - -from datetime import timedelta -from typing import Any - -from google.genai._api_client import BaseApiClient -from google.genai.types import HttpOptions, HttpOptionsOrDict -from google.genai.types import HttpResponse as SdkHttpResponse - -from temporalio import workflow as temporal_workflow -from temporalio.contrib.google_genai._errors import GoogleGenAIError -from temporalio.contrib.google_genai._models import ( - _GeminiApiRequest, - _GeminiApiResponse, - _GeminiApiStreamedResponse, - _SerializableHttpOptions, -) -from temporalio.contrib.workflow_streams._stream import _PUBLISH_SIGNAL -from temporalio.workflow import ActivityConfig - -# Fields on HttpOptions that cannot be serialized or should not be forwarded. -_REJECTED_HTTP_OPTION_FIELDS = frozenset( - { - "httpx_client", - "httpx_async_client", - "aiohttp_client", - "client_args", - "async_client_args", - } -) - - -def _validate_http_options(http_options: HttpOptions | None) -> None: - """Raise if http_options contains non-serializable fields.""" - if http_options is None: - return - bad_fields = [ - f - for f in _REJECTED_HTTP_OPTION_FIELDS - if getattr(http_options, f, None) is not None - ] - if bad_fields: - raise ValueError( - f"http_options cannot include {bad_fields}. " - f"Configure custom HTTP clients at GoogleGenAIPlugin init instead." - ) - - -class _TemporalApiClient(BaseApiClient): # pyright: ignore[reportUnusedClass] - """A ``BaseApiClient`` that routes all API calls through Temporal activities. - - This client is used on the workflow side. It does NOT initialize HTTP - clients, load credentials, or make any network calls. It only holds the - minimal configuration needed for the SDK's request formatting logic - (e.g., choosing between Vertex AI and ML Dev parameter transformations). - - All actual HTTP calls are dispatched via ``workflow.execute_activity``. - """ - - def __init__( # pyright: ignore[reportMissingSuperCall] - self, - *, - vertexai: bool = False, - project: str | None = None, - location: str | None = None, - activity_config: ActivityConfig | None = None, - streaming_topic: str | None = None, - streaming_batch_interval: timedelta = timedelta(milliseconds=100), - ) -> None: - """Initialize without calling super (no HTTP clients needed).""" - # Do NOT call super().__init__() — it creates HTTP clients, loads - # credentials, etc. We only set the properties the SDK's request - # formatting code accesses. - self.vertexai = vertexai - self.project = project - self.location = location - self.api_key: str | None = None - self.custom_base_url: str | None = None - - self._activity_config = ( - ActivityConfig(start_to_close_timeout=timedelta(seconds=60)) - if activity_config is None - else activity_config - ) - self._streaming_topic = streaming_topic - self._streaming_batch_interval = streaming_batch_interval - - def _verify_response(self, response_model: Any) -> None: - """No-op — matches the base implementation.""" - pass - - def close(self) -> None: - """No-op — no HTTP resources to close.""" - pass - - async def aclose(self) -> None: - """No-op — no HTTP resources to close.""" - pass - - def __del__(self) -> None: - """No-op — no HTTP resources to clean up.""" - pass - - @staticmethod - def _process_http_options( - http_options: HttpOptionsOrDict | None, - config: ActivityConfig, - ) -> _SerializableHttpOptions | None: - """Validate and extract serializable per-request HTTP options. - - Rejects non-serializable fields (custom HTTP clients), maps timeout - to the Temporal activity config, and returns the remaining options - for forwarding to the activity. - - Args: - http_options: Per-request options from the SDK call. - config: Mutable activity config dict — timeout is applied here. - - Returns: - Serializable options to forward, or None if nothing to forward. - """ - if http_options is None: - return None - - if isinstance(http_options, HttpOptions): - opts = http_options - else: - opts = HttpOptions.model_validate(http_options) - - _validate_http_options(opts) - - if opts.retry_options is not None: - raise GoogleGenAIError( - "Per-request http_options.retry_options is not supported in " - "Temporal workflows. Temporal owns retries; configure them with " - "the activity retry_policy via activity_config instead." - ) - - # timeout is owned by Temporal — apply it to the activity config - # rather than forwarding to the underlying HTTP client. - if opts.timeout is not None: - config["start_to_close_timeout"] = timedelta(milliseconds=opts.timeout) - - result = _SerializableHttpOptions( - base_url=opts.base_url, - base_url_resource_scope=( - opts.base_url_resource_scope.value - if opts.base_url_resource_scope - else None - ), - api_version=opts.api_version, - headers=opts.headers, - extra_body=opts.extra_body, - ) - # Only return if there are actual values set - if not result.model_dump(exclude_none=True): - return None - return result - - # ── Async (primary path for workflows) ────────────────────────────── - - async def async_request( - self, - http_method: str, - path: str, - request_dict: dict[str, object], - http_options: HttpOptionsOrDict | None = None, - ) -> SdkHttpResponse: - """Dispatch an async API request through a Temporal activity.""" - config: ActivityConfig = {**self._activity_config} - if "summary" not in config: - # Default summary is the API path (e.g. "models/gemini-2.5-flash:generateContent"). - config["summary"] = f"{http_method.upper()} {path}" - overrides = self._process_http_options(http_options, config) - - resp = await temporal_workflow.execute_activity( - "gemini_api_client_async_request", - _GeminiApiRequest( - http_method=http_method, - path=path, - request_dict=request_dict, - http_options_overrides=overrides, - ), - result_type=_GeminiApiResponse, - **config, - ) - return SdkHttpResponse(headers=resp.headers, body=resp.body) - - # ── Sync (not expected in async workflows, but raise clearly) ─────── - - def request( - self, - http_method: str, - path: str, - request_dict: dict[str, object], - http_options: HttpOptionsOrDict | None = None, - ) -> SdkHttpResponse: - """Raise — sync requests not supported in workflows.""" - raise RuntimeError( - "Synchronous requests are not supported in Temporal workflows. " - "Use TemporalAsyncClient instead." - ) - - def request_streamed( - self, - http_method: str, - path: str, - request_dict: dict[str, object], - http_options: HttpOptionsOrDict | None = None, - ) -> Any: - """Raise — sync streaming not supported in workflows.""" - raise RuntimeError( - "Synchronous streaming is not supported in Temporal workflows. " - "Use TemporalAsyncClient instead." - ) - - async def async_request_streamed( - self, - http_method: str, - path: str, - request_dict: dict[str, object], - http_options: HttpOptionsOrDict | None = None, - ) -> Any: - """Dispatch a streamed request, batching chunks in the activity. - - When a ``streaming_topic`` is configured, the activity also publishes - each chunk to that workflow-stream topic as it arrives; the workflow - must host a ``WorkflowStream`` to receive them. - """ - config: ActivityConfig = {**self._activity_config} - if "summary" not in config: - config["summary"] = f"{http_method.upper()} {path}" - overrides = self._process_http_options(http_options, config) - - if self._streaming_topic is not None: - self._require_workflow_stream() - - resp = await temporal_workflow.execute_activity( - "gemini_api_client_async_request_streamed", - _GeminiApiRequest( - http_method=http_method, - path=path, - request_dict=request_dict, - http_options_overrides=overrides, - streaming_topic=self._streaming_topic, - streaming_batch_interval_ms=int( - self._streaming_batch_interval.total_seconds() * 1000 - ), - ), - result_type=_GeminiApiStreamedResponse, - **config, - ) - - async def _yield_chunks(): - for chunk in resp.chunks: - yield SdkHttpResponse(headers=chunk.headers, body=chunk.body) - - return _yield_chunks() - - def _require_workflow_stream(self) -> None: - """Fail fast if streaming is configured but no WorkflowStream is hosted. - - Published chunks are delivered to the workflow's ``WorkflowStream`` via - a signal; without a registered handler the signals would be silently - dropped, so surface a clear error instead. - """ - if temporal_workflow.get_signal_handler(_PUBLISH_SIGNAL) is None: - raise GoogleGenAIError( - "streaming_topic is set but this workflow has no WorkflowStream. " - "Construct WorkflowStream() in the workflow's @workflow.init " - "(from temporalio.contrib.workflow_streams).", - non_retryable=True, - ) - - # ── File upload/download ───────────────────────────────────────────── - # File operations are handled at a higher level by TemporalAsyncFiles - # (in _temporal_files.py), which dispatches the entire upload/download - # as a Temporal activity using the real client on the worker side. - # These internal BaseApiClient methods are not called in that path, - # so we raise here to catch any unexpected direct usage. - - def upload_file(self, *args: Any, **kwargs: Any) -> Any: - """Raise — use client.files.upload() instead.""" - raise NotImplementedError( - "Use client.files.upload() instead of the internal upload_file() method." - ) - - async def async_upload_file(self, *args: Any, **kwargs: Any) -> Any: - """Raise — use client.files.upload() instead.""" - raise NotImplementedError( - "Use client.files.upload() instead of the internal async_upload_file() method." - ) - - def download_file(self, *args: Any, **kwargs: Any) -> Any: - """Raise — use client.files.download() instead.""" - raise NotImplementedError( - "Use client.files.download() instead of the internal download_file() method." - ) - - async def async_download_file(self, *args: Any, **kwargs: Any) -> Any: - """Raise — use client.files.download() instead.""" - raise NotImplementedError( - "Use client.files.download() instead of the internal async_download_file() method." - ) diff --git a/temporalio/contrib/google_genai/_temporal_async_client.py b/temporalio/contrib/google_genai/_temporal_async_client.py deleted file mode 100644 index c77cd5cee..000000000 --- a/temporalio/contrib/google_genai/_temporal_async_client.py +++ /dev/null @@ -1,285 +0,0 @@ -"""Temporal-aware ``AsyncClient``. - -``TemporalAsyncClient`` is an ``AsyncClient`` whose every Gemini API call runs -as a Temporal activity. It builds and wraps a private ``BaseApiClient`` that -dispatches HTTP through ``workflow.execute_activity`` instead of making network -calls, so the SDK's request-formatting code (including the AFC loop) runs in -the workflow while the real ``genai.Client`` with real credentials only exists -on the worker side inside the activity. - -Construct it from within a workflow:: - - client = TemporalAsyncClient(activity_config=...) - response = await client.models.generate_content(...) - -This ensures: - -- No credential fetching or refreshing happens in the workflow. -- No auth material (tokens, API keys) appears in Temporal event history. -- The SDK's AFC (automatic function calling) loop runs in the workflow, so - ``activity_as_tool()`` wrappers work naturally. - -``AsyncFiles`` and ``AsyncFileSearchStores`` are replaced with shims that run -upload/download as activities; ``interactions`` and ``agents`` — which bypass -``BaseApiClient`` via a vendored HTTP client — are likewise replaced with -activity-backed shims; ``webhooks`` is not supported in workflows and raises. - -Replay determinism ------------------- -The SDK's request-formatting and automatic-function-calling loop run *in the -workflow*, so they must be deterministic. A survey of ``google.genai`` found no -``time``/``uuid``/``random`` use on the ``generate_content``/AFC path; the SDK's -own non-deterministic code (HTTP retry backoff, the interactions/agents vendored -client, local tokenizer temp paths) runs only inside activities on the worker. -The SDK exposes no time/id provider hooks to override, and none are needed. - -The one in-workflow exception is ``batches.create`` on Vertex AI: when -``display_name``/``dest`` are omitted the SDK auto-generates them from a -timestamp + UUID (``_common.timestamped_unique_name``), which is not -replay-safe. Pass explicit ``display_name`` and ``dest`` when creating Vertex -batch jobs from a workflow. -""" - -from __future__ import annotations - -import functools -import inspect -from collections.abc import AsyncIterator, Callable -from datetime import timedelta -from typing import Any, NoReturn, cast - -from google.genai import types -from google.genai.client import AsyncClient -from google.genai.models import AsyncModels - -from temporalio.contrib.google_genai._temporal_agents import ( - TemporalAsyncAgents, -) -from temporalio.contrib.google_genai._temporal_api_client import ( - _TemporalApiClient, -) -from temporalio.contrib.google_genai._temporal_file_search_stores import ( - TemporalAsyncFileSearchStores, -) -from temporalio.contrib.google_genai._temporal_files import ( - TemporalAsyncFiles, -) -from temporalio.contrib.google_genai._temporal_interactions import ( - TemporalAsyncInteractions, -) -from temporalio.workflow import ActivityConfig - - -def _closure_if_bound_method(tool: object) -> object: - """Return a plain-function wrapper for a bound method, else ``tool`` as-is. - - google-genai >= 2.8.0 deep-copies the request config internally - (``config.model_copy(deep=True)``). ``copy.deepcopy`` clones a bound - method's ``__self__``, so a workflow-method tool would run against a throwaway - clone of the workflow instance and its in-workflow state mutation would be - lost. ``deepcopy`` leaves plain functions untouched, so wrapping the method - in a closure keeps the tool bound to the real instance. Plain functions and - ``activity_as_tool`` wrappers are already closures and pass through unchanged. - """ - if not inspect.ismethod(tool): - return tool - method: Callable = tool - if inspect.iscoroutinefunction(method): - - @functools.wraps(method) - async def async_wrapper(*args: object, **kwargs: object) -> object: - return await method(*args, **kwargs) - - return async_wrapper - - @functools.wraps(method) - def sync_wrapper(*args: object, **kwargs: object) -> object: - return method(*args, **kwargs) - - return sync_wrapper - - -def _wrap_bound_method_tools( - config: types.GenerateContentConfigOrDict | None, -) -> types.GenerateContentConfigOrDict | None: - """Closure-wrap any bound-method tools in ``config`` (see :func:`_closure_if_bound_method`). - - Returns ``config`` unchanged when it holds no bound-method tools; otherwise - returns a shallow copy with the tools list rewritten, so the caller's config - is never mutated. - """ - if not config: - return config - if isinstance(config, dict): - tools = config.get("tools") - if not tools or not any(inspect.ismethod(t) for t in tools): - return config - updated: Any = { - **config, - "tools": [_closure_if_bound_method(t) for t in tools], - } - return cast(types.GenerateContentConfigDict, updated) - if not config.tools or not any(inspect.ismethod(t) for t in config.tools): - return config - return config.model_copy( - update={"tools": [_closure_if_bound_method(t) for t in config.tools]} - ) - - -class _TemporalAsyncModels(AsyncModels): - """``AsyncModels`` that closure-wraps bound-method tools before each call. - - This shields workflow-method tools from google-genai's internal deep-copy of - the config (>= 2.8.0), which would otherwise clone the workflow instance and - silently drop the tool's in-workflow state mutations. - """ - - async def generate_content( # type: ignore[override] - self, - *, - model: str, - contents: types.ContentListUnion | types.ContentListUnionDict, - config: types.GenerateContentConfigOrDict | None = None, - ) -> types.GenerateContentResponse: - return await super().generate_content( - model=model, - contents=contents, - config=_wrap_bound_method_tools(config), - ) - - async def generate_content_stream( # type: ignore[override] - self, - *, - model: str, - contents: types.ContentListUnion | types.ContentListUnionDict, - config: types.GenerateContentConfigOrDict | None = None, - ) -> AsyncIterator[types.GenerateContentResponse]: - return await super().generate_content_stream( - model=model, - contents=contents, - config=_wrap_bound_method_tools(config), - ) - - -class TemporalAsyncClient(AsyncClient): - """An ``AsyncClient`` whose API calls run as Temporal activities. - - .. warning:: - This API is experimental and may change in future versions. - Use with caution in production environments. - - Builds a private ``BaseApiClient`` that dispatches HTTP calls through - ``workflow.execute_activity`` and wraps it, so the SDK's request-formatting - code (including the AFC loop) runs in the workflow while only the actual - API calls cross into activities. Credentials are never fetched or stored - in the workflow — the activity worker handles authentication independently. - - ``AsyncFiles`` and ``AsyncFileSearchStores`` are replaced with shims that - run upload/download as activities; ``interactions`` and ``agents`` — which - bypass ``BaseApiClient`` via a vendored HTTP client — are likewise replaced - with activity-backed shims; ``webhooks`` is not supported in workflows and - raises. Other modules (models, tunings, caches, batches, live, tokens, - operations) are inherited unchanged and work through the private api - client's activity-backed HTTP methods. - - Construct it from within a workflow ``run`` method: - - .. code-block:: python - - @workflow.defn - class MyWorkflow: - @workflow.run - async def run(self, query: str) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.0-flash", - contents=query, - config=GenerateContentConfig( - tools=[ - activity_as_tool( - my_tool, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=30), - ), - ), - ], - ), - ) - return response.text - """ - - def __init__( - self, - *, - vertexai: bool = False, - project: str | None = None, - location: str | None = None, - activity_config: ActivityConfig | None = None, - streaming_topic: str | None = None, - streaming_batch_interval: timedelta = timedelta(milliseconds=100), - ) -> None: - """Initialize a Temporal-aware client. - - Args: - vertexai: Whether to use Vertex AI API endpoints. Must match the - ``GoogleGenAIPlugin`` configuration on the worker side. - Defaults to ``False`` (Gemini Developer API). - project: Google Cloud project ID. Only needed when - ``vertexai=True`` and the SDK's request formatting requires it - (e.g., cache operations). - location: Google Cloud location. Same conditions as ``project``. - activity_config: Override the default activity configuration - (timeouts, retry policy, etc.) for Gemini API call activities. - When not provided, every operation (model calls, files, - interactions, managed agents) defaults to a 60-second - ``start_to_close_timeout`` and Temporal's default retry policy. - streaming_topic: When set, ``generate_content_stream`` publishes each - streamed ``GenerateContentResponse`` to this - :class:`temporalio.contrib.workflow_streams.WorkflowStream` - topic as it arrives, so external consumers can observe the model - output in real time. The workflow must construct a - ``WorkflowStream`` in ``@workflow.init``; otherwise the call - raises. The workflow's own stream iteration is unchanged. - streaming_batch_interval: How often the streaming activity flushes - published chunks to the workflow stream. Defaults to 100ms. - """ - api_client = _TemporalApiClient( - vertexai=vertexai, - project=project, - location=location, - activity_config=activity_config, - streaming_topic=streaming_topic, - streaming_batch_interval=streaming_batch_interval, - ) - super().__init__(api_client) - # Closure-wrap bound-method tools so google-genai's internal - # config deep-copy (>= 2.8.0) can't clone the workflow instance. - self._models = _TemporalAsyncModels(api_client) - self._files = TemporalAsyncFiles(api_client, activity_config) - self._file_search_stores = TemporalAsyncFileSearchStores( - api_client, activity_config - ) - self._temporal_interactions = TemporalAsyncInteractions(activity_config) - self._temporal_agents = TemporalAsyncAgents(activity_config) - - @property - def interactions( # type: ignore[override] - self, - ) -> TemporalAsyncInteractions: # pyright: ignore[reportIncompatibleMethodOverride] - """Temporal-aware interactions resource; operations run as activities.""" - return self._temporal_interactions - - @property - def agents( # type: ignore[override] - self, - ) -> TemporalAsyncAgents: # pyright: ignore[reportIncompatibleMethodOverride] - """Temporal-aware agents resource; operations run as activities.""" - return self._temporal_agents - - @property - def webhooks(self) -> NoReturn: # pyright: ignore[reportIncompatibleMethodOverride] - """Raise — webhooks are not supported in Temporal workflows.""" - raise RuntimeError( - "client.webhooks is not supported in Temporal workflows. " - "Manage webhooks outside the workflow with a regular genai.Client." - ) diff --git a/temporalio/contrib/google_genai/_temporal_file_search_stores.py b/temporalio/contrib/google_genai/_temporal_file_search_stores.py deleted file mode 100644 index 7b7e3bbc8..000000000 --- a/temporalio/contrib/google_genai/_temporal_file_search_stores.py +++ /dev/null @@ -1,109 +0,0 @@ -"""Temporal-aware AsyncFileSearchStores shim. - -``TemporalAsyncFileSearchStores`` is an ``AsyncFileSearchStores`` subclass -whose ``upload_to_file_search_store`` method dispatches through a Temporal -activity so the entire upload (including filesystem access and resumable -upload negotiation) runs on the activity worker. -""" - -from __future__ import annotations - -import io -import os -from datetime import timedelta - -from google.genai import types -from google.genai.file_search_stores import AsyncFileSearchStores - -from temporalio import workflow as temporal_workflow -from temporalio.contrib.google_genai._models import ( - _GeminiUploadToFileSearchStoreRequest, -) -from temporalio.contrib.google_genai._temporal_api_client import ( - _TemporalApiClient, - _validate_http_options, -) -from temporalio.workflow import ActivityConfig - - -class TemporalAsyncFileSearchStores(AsyncFileSearchStores): - """``AsyncFileSearchStores`` subclass that routes ``upload_to_file_search_store`` through an activity. - - The entire upload operation — including filesystem access, resumable - upload negotiation, and chunked transfer — runs inside a Temporal - activity on the worker. All other methods (``create``, ``get``, - ``delete``, ``list``, ``import_file``, ``documents``) are inherited - and already work through the ``_TemporalApiClient``'s ``async_request`` - activity. - """ - - def __init__( - self, - api_client: _TemporalApiClient, - activity_config: ActivityConfig | None = None, - ) -> None: - """Initialize with activity config for upload timeouts.""" - super().__init__(api_client) - self._activity_config = ( - ActivityConfig(start_to_close_timeout=timedelta(seconds=60)) - if activity_config is None - else activity_config - ) - - async def upload_to_file_search_store( - self, - *, - file_search_store_name: str, - file: str | os.PathLike[str] | io.IOBase, - config: types.UploadToFileSearchStoreConfigOrDict | None = None, - ) -> types.UploadToFileSearchStoreOperation: - """Upload a file to a file search store via a Temporal activity. - - Accepts a file path (resolved on the worker), ``os.PathLike``, or - an ``io.IOBase`` (bytes sent across the activity boundary). - """ - act_config: ActivityConfig = {**self._activity_config} - if "summary" not in act_config: - act_config["summary"] = "file_search_stores.upload" - - upload_config = None - if config is not None: - if isinstance(config, dict): - upload_config = types.UploadToFileSearchStoreConfig.model_validate( - config - ) - else: - upload_config = config - _validate_http_options(upload_config.http_options) - - if isinstance(file, io.IOBase): - file_bytes = file.read() - if not isinstance(file_bytes, bytes): - raise TypeError( - "file must be a binary stream when passing an io.IOBase; " - f"file.read() must return bytes (got {type(file_bytes).__name__})" - ) - req = _GeminiUploadToFileSearchStoreRequest( - file_search_store_name=file_search_store_name, - file_bytes=file_bytes, - config=upload_config, - ) - elif isinstance(file, str): - req = _GeminiUploadToFileSearchStoreRequest( - file_search_store_name=file_search_store_name, - file_path=file, - config=upload_config, - ) - else: - req = _GeminiUploadToFileSearchStoreRequest( - file_search_store_name=file_search_store_name, - file_path=file.__fspath__(), - config=upload_config, - ) - - return await temporal_workflow.execute_activity( - "gemini_file_search_stores_upload", - req, - result_type=types.UploadToFileSearchStoreOperation, - **act_config, - ) diff --git a/temporalio/contrib/google_genai/_temporal_files.py b/temporalio/contrib/google_genai/_temporal_files.py deleted file mode 100644 index f785c00cb..000000000 --- a/temporalio/contrib/google_genai/_temporal_files.py +++ /dev/null @@ -1,169 +0,0 @@ -"""Temporal-aware AsyncFiles shim. - -``TemporalAsyncFiles`` is an ``AsyncFiles`` subclass whose ``upload`` -and ``download`` methods dispatch through Temporal activities so the -entire file operation (including filesystem access) runs on the -activity worker. -""" - -from __future__ import annotations - -import io -import os -from datetime import timedelta -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - import google.auth.credentials -from google.genai import types -from google.genai.files import AsyncFiles - -from temporalio import workflow as temporal_workflow -from temporalio.contrib.google_genai._models import ( - _GeminiDownloadFileRequest, - _GeminiRegisterFilesRequest, - _GeminiUploadFileRequest, -) -from temporalio.contrib.google_genai._temporal_api_client import ( - _TemporalApiClient, - _validate_http_options, -) -from temporalio.workflow import ActivityConfig - - -class TemporalAsyncFiles(AsyncFiles): - """``AsyncFiles`` subclass that routes ``upload`` and ``download`` through activities. - - The entire file operation — including filesystem access, resumable - upload negotiation, and chunked transfer — runs inside a Temporal - activity on the worker. ``get``, ``delete``, and ``list`` are - inherited from ``AsyncFiles`` and already work through the - ``_TemporalApiClient``'s ``async_request`` activity. - """ - - def __init__( - self, - api_client: _TemporalApiClient, - activity_config: ActivityConfig | None = None, - ) -> None: - """Initialize with activity config for file operation timeouts.""" - super().__init__(api_client) - self._activity_config = ( - ActivityConfig(start_to_close_timeout=timedelta(seconds=60)) - if activity_config is None - else activity_config - ) - - async def upload( - self, - *, - file: str | os.PathLike[str] | io.IOBase, - config: types.UploadFileConfigOrDict | None = None, - ) -> types.File: - """Upload a file via a Temporal activity. - - Accepts a file path (resolved on the worker), ``os.PathLike``, or - an ``io.IOBase`` (bytes sent across the activity boundary). - """ - act_config: ActivityConfig = {**self._activity_config} - if "summary" not in act_config: - act_config["summary"] = "files.upload" - - upload_config = None - if config is not None: - if isinstance(config, dict): - upload_config = types.UploadFileConfig.model_validate(config) - else: - upload_config = config - _validate_http_options(upload_config.http_options) - - if isinstance(file, io.IOBase): - file_bytes = file.read() - if not isinstance(file_bytes, bytes): - raise TypeError( - "file must be a binary stream when passing an io.IOBase; " - f"file.read() must return bytes (got {type(file_bytes).__name__})" - ) - req = _GeminiUploadFileRequest(file_bytes=file_bytes, config=upload_config) - elif isinstance(file, str): - req = _GeminiUploadFileRequest(file_path=file, config=upload_config) - else: - # os.PathLike — convert via __fspath__() to avoid importing os - req = _GeminiUploadFileRequest( - file_path=file.__fspath__(), config=upload_config - ) - - return await temporal_workflow.execute_activity( - "gemini_files_upload", - req, - result_type=types.File, - **act_config, - ) - - async def download( - self, - *, - file: str | types.File, - config: types.DownloadFileConfigOrDict | None = None, - ) -> bytes: - """Download a file via a Temporal activity.""" - act_config: ActivityConfig = {**self._activity_config} - if "summary" not in act_config: - act_config["summary"] = "files.download" - - download_config = None - if config is not None: - if isinstance(config, dict): - download_config = types.DownloadFileConfig.model_validate(config) - else: - download_config = config - _validate_http_options(download_config.http_options) - - if isinstance(file, types.File): - if not file.name: - raise ValueError("File object must have a name to download.") - file_name = file.name - else: - file_name = file - - return await temporal_workflow.execute_activity( - "gemini_files_download", - _GeminiDownloadFileRequest(file=file_name, config=download_config), - result_type=bytes, - **act_config, - ) - - async def register_files( - self, - *, - auth: google.auth.credentials.Credentials, - uris: list[str], - config: types.RegisterFilesConfigOrDict | None = None, - ) -> types.RegisterFilesResponse: - """Register GCS files via a Temporal activity. - - .. note:: - The ``auth`` parameter is **ignored**. The activity uses - ``credentials`` if provided to ``GoogleGenAIPlugin``, - otherwise falls back to the ``genai.Client``'s own credentials. - Either way, those credentials must have access to the GCS URIs - being registered. - """ - act_config: ActivityConfig = {**self._activity_config} - if "summary" not in act_config: - act_config["summary"] = "files.register_files" - - register_config = None - if config is not None: - if isinstance(config, dict): - register_config = types.RegisterFilesConfig.model_validate(config) - else: - register_config = config - _validate_http_options(register_config.http_options) - - return await temporal_workflow.execute_activity( - "gemini_files_register", - _GeminiRegisterFilesRequest(uris=uris, config=register_config), - result_type=types.RegisterFilesResponse, - **act_config, - ) diff --git a/temporalio/contrib/google_genai/_temporal_interactions.py b/temporalio/contrib/google_genai/_temporal_interactions.py deleted file mode 100644 index 54d8353cd..000000000 --- a/temporalio/contrib/google_genai/_temporal_interactions.py +++ /dev/null @@ -1,258 +0,0 @@ -"""Temporal-aware interactions resource shim. - -``TemporalAsyncInteractions`` exposes the same surface as google-genai's -``AsyncClient.interactions`` resource, but each operation is dispatched through -a Temporal activity holding the real ``genai.Client`` on the worker. The -Interactions API does not go through ``BaseApiClient`` — it uses a vendored, -Stainless-generated HTTP client that the ``TemporalApiClient`` shim never sees — -so each operation is routed as a whole through an activity instead. - -The shim depends only on the public ``google.genai.interactions`` surface (types -plus ``client.aio.interactions`` on the worker), not on google-genai internals, -so it is unaffected by regeneration of the vendored client. -""" - -from __future__ import annotations - -from collections.abc import AsyncIterator -from datetime import timedelta -from types import TracebackType -from typing import Any, cast - -import pydantic -from google.genai.interactions import InteractionSSEEvent - -from temporalio import workflow as temporal_workflow -from temporalio.contrib.google_genai._compat import Interaction -from temporalio.contrib.google_genai._models import ( - _GeminiInteractionIdRequest, - _GeminiInteractionRequest, - _GeminiInteractionStreamedResponse, -) -from temporalio.workflow import ActivityConfig - -_DEFAULT_INTERACTION_TIMEOUT = timedelta(seconds=60) - -# ``InteractionSSEEvent`` is a discriminated union (on ``event_type``); a -# ``TypeAdapter`` dispatches it — including nested unions such as a -# ``step.start`` event's ``step`` — leniently. -_SSE_EVENT_ADAPTER: pydantic.TypeAdapter[Any] = pydantic.TypeAdapter( - InteractionSSEEvent -) - - -def _deserialize(value: dict[str, Any], type_: Any) -> Any: - """Rehydrate a dict returned by an activity into its public genai model. - - ``InteractionSSEEvent`` is deserialized through its ``TypeAdapter``, which - dispatches the discriminated union (and nested unions) and tolerates the - sparse nested payloads the API legitimately emits (e.g. an - ``interaction.created`` event carrying an ``Interaction`` with just ``id`` - and ``object``). Plain models use ``model_validate``, which recurses nested - models (e.g. ``AgentListResponse.agents`` into ``Agent``) and resolves - aliases; the SDK's optional fields keep it tolerant of the minimal objects - the API returns. Both paths are pure functions, safe to run in the workflow - on every replay. - """ - if type_ is InteractionSSEEvent: - return _SSE_EVENT_ADAPTER.validate_python(value) - return type_.model_validate(value) - - -def _pop_timeout(params: dict[str, Any], config: ActivityConfig) -> None: - """Pop a per-call ``timeout`` kwarg and apply it to the activity config. - - The Interactions API expresses timeouts in seconds. Temporal owns - timeouts/retries, so the value maps to ``start_to_close_timeout`` - rather than being forwarded to the underlying HTTP client. - """ - timeout = params.pop("timeout", None) - if timeout is None: - return - if not isinstance(timeout, (int, float)) or isinstance(timeout, bool): - raise ValueError( - "timeout must be numeric seconds when calling the Interactions " - "API from a workflow; configure anything more granular via " - "activity_config instead." - ) - config["start_to_close_timeout"] = timedelta(seconds=timeout) - - -class _TemporalInteractionAsyncStream: - """Async stream over interaction events already drained in an activity. - - Presents the same ``async for`` / ``async with`` / ``close()`` surface as - the SDK's streaming response, but iterates an in-memory event list drained - inside the activity (there is no httpx response or client on the workflow - side), rehydrating each event back into its typed form on iteration. - """ - - def __init__( - self, - events: list[dict[str, Any]], - ) -> None: - self._events = events - - def __aiter__(self) -> AsyncIterator[InteractionSSEEvent]: - return self._iter() - - async def _iter(self) -> AsyncIterator[InteractionSSEEvent]: - for event in self._events: - yield cast(InteractionSSEEvent, _deserialize(event, InteractionSSEEvent)) - - async def __aenter__(self) -> _TemporalInteractionAsyncStream: - return self - - async def __aexit__( - self, - exc_type: type[BaseException] | None, - exc: BaseException | None, - exc_tb: TracebackType | None, - ) -> None: - pass - - async def close(self) -> None: - """No-op — the upstream stream was drained inside the activity.""" - pass - - -class TemporalAsyncInteractions: - """Interactions resource shim that routes calls through activities. - - Methods accept the same keyword arguments as the real resource and - forward them verbatim — the SDK validates them on the worker side, so - a bad argument surfaces as an activity failure (retried per the - activity's retry policy) rather than a workflow-side error. - - ``with_raw_response`` / ``with_streaming_response`` are not supported - in workflows. - """ - - def __init__( - self, - activity_config: ActivityConfig | None = None, - ) -> None: - """Initialize with activity config for interaction operation timeouts.""" - self._activity_config = ( - ActivityConfig(start_to_close_timeout=_DEFAULT_INTERACTION_TIMEOUT) - if activity_config is None - else activity_config - ) - - def _config(self, summary: str, params: dict[str, Any]) -> ActivityConfig: - config: ActivityConfig = {**self._activity_config} - if "summary" not in config: - config["summary"] = summary - _pop_timeout(params, config) - return config - - async def create( - self, - *, - stream: bool = False, - **kwargs: Any, - ) -> Interaction | _TemporalInteractionAsyncStream: - """Create an interaction via a Temporal activity. - - ``kwargs`` is forwarded verbatim to ``client.aio.interactions.create`` - on the worker. With ``stream=True`` the activity drains the SSE - stream and returns all events batched; the returned object supports - ``async for`` / ``async with`` like the SDK's streaming response. - """ - params = dict(kwargs) - config = self._config( - "interactions.create (stream)" if stream else "interactions.create", - params, - ) - req = _GeminiInteractionRequest(params=params) - if stream: - resp = await temporal_workflow.execute_activity( - "gemini_interactions_create_streamed", - req, - result_type=_GeminiInteractionStreamedResponse, - **config, - ) - return _TemporalInteractionAsyncStream(resp.events) - raw = await temporal_workflow.execute_activity( - "gemini_interactions_create", - req, - result_type=dict[str, Any], - **config, - ) - return cast(Interaction, _deserialize(raw, Interaction)) - - async def get( - self, - id: str, - *, - stream: bool = False, - **kwargs: Any, - ) -> Interaction | _TemporalInteractionAsyncStream: - """Get an interaction via a Temporal activity. - - Supports ``stream=True`` (with the SDK's ``last_event_id`` kwarg - for resumption); events come back batched like :meth:`create`. - """ - params = dict(kwargs) - config = self._config( - "interactions.get (stream)" if stream else "interactions.get", - params, - ) - req = _GeminiInteractionIdRequest(id=id, params=params) - if stream: - resp = await temporal_workflow.execute_activity( - "gemini_interactions_get_streamed", - req, - result_type=_GeminiInteractionStreamedResponse, - **config, - ) - return _TemporalInteractionAsyncStream(resp.events) - raw = await temporal_workflow.execute_activity( - "gemini_interactions_get", - req, - result_type=dict[str, Any], - **config, - ) - return cast(Interaction, _deserialize(raw, Interaction)) - - async def delete( - self, - id: str, - **kwargs: Any, - ) -> object: - """Delete an interaction via a Temporal activity.""" - params = dict(kwargs) - config = self._config("interactions.delete", params) - return await temporal_workflow.execute_activity( - "gemini_interactions_delete", - _GeminiInteractionIdRequest(id=id, params=params), - **config, - ) - - async def cancel( - self, - id: str, - **kwargs: Any, - ) -> Interaction: - """Cancel an interaction via a Temporal activity.""" - params = dict(kwargs) - config = self._config("interactions.cancel", params) - raw = await temporal_workflow.execute_activity( - "gemini_interactions_cancel", - _GeminiInteractionIdRequest(id=id, params=params), - result_type=dict[str, Any], - **config, - ) - return cast(Interaction, _deserialize(raw, Interaction)) - - @property - def with_raw_response(self) -> Any: - """Raise — raw responses are not available in workflows.""" - raise RuntimeError("with_raw_response is not supported in Temporal workflows.") - - @property - def with_streaming_response(self) -> Any: - """Raise — streaming responses are not available in workflows.""" - raise RuntimeError( - "with_streaming_response is not supported in Temporal workflows." - ) diff --git a/temporalio/contrib/google_genai/_temporal_mcp.py b/temporalio/contrib/google_genai/_temporal_mcp.py deleted file mode 100644 index 718c6aaa3..000000000 --- a/temporalio/contrib/google_genai/_temporal_mcp.py +++ /dev/null @@ -1,116 +0,0 @@ -"""Temporal-aware ``mcp.ClientSession`` shim. - -``TemporalMcpClientSession`` is an ``mcp.ClientSession`` subclass that the user -places in ``generate_content(config=GenerateContentConfig(tools=[...]))`` just -like a real MCP session. The Gemini SDK recognizes it via -``isinstance(tool, McpClientSession)`` and, inside ``generate_content`` (which -runs in the workflow), calls only two methods on it: ``list_tools()`` at tool -discovery and ``call_tool(name, arguments)`` in the automatic-function-calling -loop. Both are overridden here to dispatch to the ``{server}-list-tools`` / -``{server}-call-tool`` activities, so the real ``mcp.ClientSession`` lives only -on the worker (registered via ``GoogleGenAIPlugin(mcp_servers=...)``). - -This mirrors strands' ``TemporalMCPClient``: the handle carries only the server -name (which selects the worker-side factory) plus activity options; the -connection factory is never passed to the workflow or the root client. -""" - -from __future__ import annotations - -from datetime import timedelta -from typing import Any - -from mcp import ClientSession -from mcp.shared.session import ProgressFnT -from mcp.types import CallToolResult, ListToolsResult, PaginatedRequestParams - -from temporalio import workflow as temporal_workflow -from temporalio.contrib.google_genai._models import _McpCallToolRequest -from temporalio.workflow import ActivityConfig - -_DEFAULT_MCP_TIMEOUT = timedelta(seconds=60) - - -class TemporalMcpClientSession(ClientSession): - """``mcp.ClientSession`` whose tool discovery and calls run as activities. - - .. warning:: - This API is experimental and may change in future versions. - - Construct inside a workflow and pass it in the ``tools`` list of a - ``generate_content`` call. The matching server name must be registered on - the worker via ``GoogleGenAIPlugin(mcp_servers={name: factory})``. - - ``cache_tools`` controls how often tools are listed. When ``False`` (the - default) the ``{server}-list-tools`` activity runs each time the SDK - discovers tools (i.e. per ``generate_content`` call), so a server whose - tools changed mid-workflow is picked up. When ``True`` the first listing is - cached on this instance and reused for its lifetime (replay-safe in-workflow - state). - - Args: - server_name: Name selecting the worker-side factory; also the activity - prefix (``{server_name}-list-tools`` / ``{server_name}-call-tool``). - cache_tools: Cache the tool listing after the first call. - activity_config: Activity configuration (timeouts, retry policy, etc.) - for the MCP activities. Defaults to a 60-second - ``start_to_close_timeout``. - """ - - def __init__( # pyright: ignore[reportMissingSuperCall] - self, - server_name: str, - *, - cache_tools: bool = False, - activity_config: ActivityConfig | None = None, - ) -> None: - """Initialize without calling super (no real streams exist here).""" - self._server_name = server_name - self._cache_tools = cache_tools - self._cached_tools: ListToolsResult | None = None - self._activity_config: ActivityConfig = ( - ActivityConfig(start_to_close_timeout=_DEFAULT_MCP_TIMEOUT) - if activity_config is None - else activity_config - ) - - def _config(self, summary: str) -> ActivityConfig: - config: ActivityConfig = {**self._activity_config} - if "summary" not in config: - config["summary"] = summary - return config - - async def list_tools( # pyright: ignore[reportIncompatibleMethodOverride] - self, - cursor: str | None = None, - *, - params: PaginatedRequestParams | None = None, - ) -> ListToolsResult: - """List the server's tools via the ``{server}-list-tools`` activity.""" - if self._cache_tools and self._cached_tools is not None: - return self._cached_tools - result = await temporal_workflow.execute_activity( - f"{self._server_name}-list-tools", - result_type=ListToolsResult, - **self._config(f"mcp.{self._server_name}.list_tools"), - ) - if self._cache_tools: - self._cached_tools = result - return result - - async def call_tool( # pyright: ignore[reportIncompatibleMethodOverride] - self, - name: str, - arguments: dict[str, Any] | None = None, - read_timeout_seconds: timedelta | None = None, - progress_callback: ProgressFnT | None = None, - *, - meta: dict[str, Any] | None = None, - ) -> CallToolResult: - """Call a tool via the ``{server}-call-tool`` activity.""" - return await temporal_workflow.execute_activity( - f"{self._server_name}-call-tool", - _McpCallToolRequest(name=name, arguments=arguments or {}), - result_type=CallToolResult, - **self._config(f"mcp.{self._server_name}.call_tool:{name}"), - ) diff --git a/temporalio/contrib/google_genai/testing.py b/temporalio/contrib/google_genai/testing.py index 5d4a40486..1b56e7280 100644 --- a/temporalio/contrib/google_genai/testing.py +++ b/temporalio/contrib/google_genai/testing.py @@ -1,177 +1,6 @@ -"""Testing utilities for the Google Gemini SDK Temporal integration. +"""Compatibility imports for temporalio.google_genai.testing.""" -These let you exercise workflows that use -:class:`temporalio.contrib.google_genai.TemporalAsyncClient` without making -real Gemini API calls. Script the model's responses with :func:`text_response` -/ :func:`function_call_response`, build a plugin with -:class:`GeminiTestServer`, and register it on your worker like the real -:class:`temporalio.contrib.google_genai.GoogleGenAIPlugin`. - -Example:: - - server = GeminiTestServer( - [ - function_call_response("get_weather", {"city": "Tokyo"}), - text_response("It's sunny in Tokyo."), - ] - ) - async with Worker( - client, - task_queue="test", - workflows=[MyAgentWorkflow], - activities=[get_weather], - plugins=[server.plugin()], - ): - ... - assert len(server.requests) == 2 # one per model turn -""" - -from __future__ import annotations - -import json -from collections.abc import Sequence -from datetime import timedelta -from typing import TYPE_CHECKING, Any - -from google.genai import Client as GeminiClient -from google.genai.types import HttpResponse as SdkHttpResponse - -from temporalio.contrib.google_genai._google_genai_plugin import GoogleGenAIPlugin - -if TYPE_CHECKING: - from temporalio.contrib.google_genai._mcp import McpSessionFactory - -__all__ = [ - "GeminiTestServer", - "function_call_response", - "text_response", -] - - -def text_response(text: str) -> str: - """Build a ``generate_content`` response body with a single text part.""" - return json.dumps( - { - "candidates": [ - { - "content": {"role": "model", "parts": [{"text": text}]}, - "finishReason": "STOP", - } - ], - "usageMetadata": { - "promptTokenCount": 5, - "candidatesTokenCount": 10, - }, - } - ) - - -def function_call_response(name: str, args: dict[str, Any]) -> str: - """Build a ``generate_content`` response body with a single function call. - - The Gemini SDK's automatic function calling loop will invoke the matching - tool, then request another response — so pair each function-call response - with a following :func:`text_response` (or further calls). - """ - return json.dumps( - { - "candidates": [ - { - "content": { - "role": "model", - "parts": [{"functionCall": {"name": name, "args": args}}], - }, - "finishReason": "STOP", - } - ], - "usageMetadata": { - "promptTokenCount": 10, - "candidatesTokenCount": 15, - }, - } - ) - - -class GeminiTestServer: - """Scripts Gemini model responses so workflows run without real API calls. - - Pass canned response bodies built with :func:`text_response` / - :func:`function_call_response`. Each model call — including each turn of an - automatic-function-calling loop and each ``generate_content_stream`` call — - consumes the next response in order. Build a plugin with :meth:`plugin` - and register it on your worker; inspect :attr:`requests` afterwards to - assert exactly what the integration sent. - - Only model calls (``client.models``) are scripted. File, interaction, and - agent operations are not; mock those on a ``genai.Client`` directly if a - test needs them. MCP servers can be registered with - ``plugin(mcp_servers=...)`` and run for real. - """ - - def __init__(self, responses: Sequence[str]) -> None: - """Initialize with the response bodies to serve, in order.""" - self._responses = list(responses) - self._index = 0 - self.requests: list[dict[str, Any]] = [] - - def _next(self) -> str: - idx = self._index - self._index += 1 - if idx >= len(self._responses): - raise AssertionError( - f"GeminiTestServer ran out of responses (call {idx + 1}, " - f"have {len(self._responses)}); script another response." - ) - return self._responses[idx] - - def plugin( - self, - *, - mcp_servers: dict[str, McpSessionFactory] | None = None, - mcp_connection_idle_timeout: timedelta | None = None, - ) -> GoogleGenAIPlugin: - """Return a :class:`GoogleGenAIPlugin` whose model calls serve the script. - - The real plugin activities run; only the underlying HTTP layer is - replaced, so request formatting and the AFC loop are exercised exactly - as in production. - - Args: - mcp_servers: MCP servers to expose to workflows, as on - :class:`temporalio.contrib.google_genai.GoogleGenAIPlugin`. - These are *not* scripted — ``list_tools`` / ``call_tool`` run - for real against the given sessions — so a test can drive an - MCP tool call with a scripted - :func:`function_call_response` and assert on what the server - actually returned. - mcp_connection_idle_timeout: How long an idle worker-side MCP - connection stays open, as on - :class:`temporalio.contrib.google_genai.GoogleGenAIPlugin`. - """ - client = GeminiClient(api_key="fake-test-key") - - async def fake_async_request(*_args: Any, **kwargs: Any) -> SdkHttpResponse: - self.requests.append(dict(kwargs.get("request_dict") or {})) - return SdkHttpResponse( - headers={"content-type": "application/json"}, - body=self._next(), - ) - - async def fake_async_request_streamed(*_args: Any, **kwargs: Any) -> Any: - self.requests.append(dict(kwargs.get("request_dict") or {})) - body = self._next() - - async def _gen() -> Any: - yield SdkHttpResponse( - headers={"content-type": "application/json"}, body=body - ) - - return _gen() - - client._api_client.async_request = fake_async_request # type: ignore[assignment] - client._api_client.async_request_streamed = fake_async_request_streamed # type: ignore[assignment] - return GoogleGenAIPlugin( - client, - mcp_servers=mcp_servers, - mcp_connection_idle_timeout=mcp_connection_idle_timeout, - ) +from temporalio.google_genai.testing import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.google_genai.testing import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, +) diff --git a/temporalio/contrib/google_genai/workflow.py b/temporalio/contrib/google_genai/workflow.py index 08e40f0c5..6f6934214 100644 --- a/temporalio/contrib/google_genai/workflow.py +++ b/temporalio/contrib/google_genai/workflow.py @@ -1,111 +1,3 @@ -"""Workflow utilities for Google Gemini SDK integration with Temporal. +"""Compatibility imports for temporalio.google_genai.workflow.""" -This module provides utilities for using the Google Gemini SDK within Temporal -workflows. The key entry points are: - -- :func:`activity_as_tool` — converts a Temporal activity into a Gemini tool - callable for use with automatic function calling (AFC). -""" - -from __future__ import annotations - -import functools -import inspect -from collections.abc import Callable -from typing import Any - -from temporalio import activity -from temporalio import workflow as temporal_workflow -from temporalio.contrib.google_genai._errors import GoogleGenAIError -from temporalio.workflow import ActivityConfig - - -def activity_as_tool( - fn: Callable, - *, - activity_config: ActivityConfig | None = None, -) -> Callable: - """Convert a Temporal activity into a Gemini-compatible async tool callable. - - .. warning:: - This API is experimental and may change in future versions. - Use with caution in production environments. - - Returns an async callable with the same name, docstring, and type signature as - ``fn``. When Gemini's automatic function calling (AFC) invokes the returned - callable from within a Temporal workflow, the call is executed as a Temporal - activity via :func:`workflow.execute_activity`. Each tool invocation therefore - appears as a separate, durable entry in the workflow event history. - - Because AFC is left **enabled**, the Gemini SDK owns the agentic loop — no - manual ``while`` loop or ``run_agent()`` helper is required. Pass the returned - callable directly to ``GenerateContentConfig(tools=[...])``. - - Args: - fn: A Temporal activity function decorated with ``@activity.defn``. - activity_config: Configuration for the activity execution (timeouts, - retry policy, etc.). Must set ``start_to_close_timeout`` or - ``schedule_to_close_timeout`` — Temporal requires one, and there is - no default; otherwise the tool call raises when the activity is - invoked. - - Returns: - An async callable suitable for use as a Gemini tool. - - Raises: - GoogleGenAIError: If ``fn`` is not decorated with ``@activity.defn`` or - has no activity name. - """ - ret = activity._Definition.from_callable(fn) - if not ret: - raise GoogleGenAIError( - "Bare function without @activity.defn decorator is not supported", - "invalid_tool", - ) - if ret.name is None: - raise GoogleGenAIError( - "Activity must have a name to be used as a Gemini tool", - "invalid_tool", - ) - - config: ActivityConfig = {**(activity_config or {})} - if "summary" not in config: - config["summary"] = "tool_call" - - # For class-based activities the first parameter is 'self'. Partially apply - # it so that Gemini inspects only the user-facing parameters when building - # the function-call schema, while the worker resolves the real instance at - # execution time. - params = list(inspect.signature(fn).parameters.keys()) - schema_fn: Callable = fn - if params and params[0] == "self": - partial = functools.partial(fn, None) - setattr(partial, "__name__", fn.__name__) - partial.__annotations__ = getattr(fn, "__annotations__", {}) - setattr( - partial, - "__temporal_activity_definition", - getattr(fn, "__temporal_activity_definition", None), - ) - partial.__doc__ = fn.__doc__ - schema_fn = partial - - activity_name: str = ret.name - - async def wrapper(*args: Any, **kwargs: Any) -> Any: - sig = inspect.signature(schema_fn) - bound = sig.bind(*args, **kwargs) - bound.apply_defaults() - activity_args = list(bound.arguments.values()) - return await temporal_workflow.execute_activity( - activity_name, - args=activity_args, - **config, - ) - - wrapper.__name__ = schema_fn.__name__ # type: ignore - wrapper.__doc__ = schema_fn.__doc__ - setattr(wrapper, "__signature__", inspect.signature(schema_fn)) - wrapper.__annotations__ = getattr(schema_fn, "__annotations__", {}) - - return wrapper +from temporalio.google_genai.workflow import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] diff --git a/temporalio/contrib/langgraph/README.md b/temporalio/contrib/langgraph/README.md index d5b7d4e0f..ac7256d23 100644 --- a/temporalio/contrib/langgraph/README.md +++ b/temporalio/contrib/langgraph/README.md @@ -1,311 +1,39 @@ -# LangGraph Plugin for Temporal Python SDK +# LangGraph integration -⚠️ **This package is currently at an experimental release stage.** ⚠️ +The LangGraph integration has moved to the independently versioned +[`temporalio-langgraph`](https://pypi.org/project/temporalio-langgraph/) +package. Its canonical Python API is `temporalio.langgraph`. -This Temporal [Plugin](https://docs.temporal.io/develop/plugins-guide) allows you to run [LangGraph](https://www.langchain.com/langgraph) nodes and tasks as Temporal Activities, giving your AI workflows durable execution, automatic retries, and timeouts. It supports both the LangGraph Graph API (``StateGraph``) and Functional API (``@entrypoint`` / ``@task``). +The complete integration guide now lives in the +[`temporalio-langgraph` README](https://github.com/temporalio/ai-integrations/tree/main/python/langgraph#readme). -## Installation +## Migrating to the standalone package -```sh -uv add temporalio[langgraph] -``` - -## Plugin Initialization - -### Graph API - -```python -from langgraph.graph import StateGraph -from temporalio.contrib.langgraph import LangGraphPlugin - -g = StateGraph(State) -g.add_node("my_node", my_node, metadata={"execute_in": "activity"}) - -plugin = LangGraphPlugin(graphs={"my-graph": g}) -``` - -### Functional API - -```python -from temporalio.contrib.langgraph import LangGraphPlugin - -plugin = LangGraphPlugin( - entrypoints={"my_entrypoint": my_entrypoint}, - tasks=[my_task], - activity_options={"my_task": {"execute_in": "activity"}}, -) -``` - -## Checkpointer - -If your LangGraph code requires a checkpointer (for example, if you're using interrupts), use `InMemorySaver`. -Temporal handles durability, so third-party checkpointers (like PostgreSQL or Redis) are not needed. - -```python -import langgraph.checkpoint.memory -import typing - -from temporalio.contrib.langgraph import graph -from temporalio import workflow - -@workflow.defn -class MyWorkflow: - @workflow.run - async def run(self, input: str) -> typing.Any: - g = graph("my-graph").compile( - checkpointer=langgraph.checkpoint.memory.InMemorySaver(), - ) - - ... -``` - -## Execution Location - -Every node (Graph API) and task (Functional API) must be labeled with `execute_in`, set to either `"activity"` or `"workflow"`. This is required per node/task; it cannot be set in `default_activity_options`. - -```python -# Graph API -graph.add_node("my_node", my_node, metadata={"execute_in": "activity"}) -graph.add_node("tool_node", tool_node, metadata={"execute_in": "workflow"}) +Remove the `langgraph` extra from the existing Temporal dependency: -# Functional API -plugin = LangGraphPlugin( - tasks=[my_task, tool_task], - activity_options={ - "my_task": {"execute_in": "activity"}, - "tool_task": {"execute_in": "workflow"}, - }, -) -``` - -## Activity Options - -Options are passed through to [`workflow.execute_activity()`](https://python.temporal.io/temporalio.workflow.html#execute_activity), which supports parameters like `start_to_close_timeout`, `retry_policy`, `schedule_to_close_timeout`, `heartbeat_timeout`, and more. - -### Graph API - -Pass Activity options as node `metadata` when calling `add_node`: - -```python -from datetime import timedelta -from temporalio.common import RetryPolicy +```toml +# Before +dependencies = [ + "temporalio[langgraph,opentelemetry,pydantic]", +] -g = StateGraph(State) -g.add_node("my_node", my_node, metadata={ - "execute_in": "activity", - "start_to_close_timeout": timedelta(seconds=30), - "retry_policy": RetryPolicy(maximum_attempts=3), -}) +# After +dependencies = [ + "temporalio[opentelemetry,pydantic]", +] ``` -### Functional API +Remove the brackets if no extras remain. Then install the standalone package directly: -Pass Activity options to the `LangGraphPlugin` constructor, keyed by task function name: - -```python -from datetime import timedelta -from temporalio.common import RetryPolicy -from temporalio.contrib.langgraph import LangGraphPlugin - -plugin = LangGraphPlugin( - entrypoints={"my_entrypoint": my_entrypoint}, - tasks=[my_task], - activity_options={ - "my_task": { - "execute_in": "activity", - "start_to_close_timeout": timedelta(seconds=30), - "retry_policy": RetryPolicy(maximum_attempts=3), - }, - }, -) +```bash +uv add temporalio-langgraph ``` -### Runtime Context - -LangGraph's run-scoped context (`context_schema`) is reconstructed on the Activity side, so nodes and tasks can read from and write to `runtime.context`: +Change application imports to the standalone package: ```python -from langgraph.runtime import Runtime -from typing_extensions import TypedDict - -from temporalio.contrib.langgraph import graph - -class Context(TypedDict): - user_id: str - -async def my_node(state: State, runtime: Runtime[Context]) -> dict: - return {"user": runtime.context["user_id"]} - -# In the Workflow: -g = graph("my-graph").compile() -await g.ainvoke({...}, context=Context(user_id="alice")) -``` - -Your `context` object must be serializable by the configured Temporal payload converter, since it crosses the Activity boundary. - -## Summaries - -Summaries are short, human-readable labels that show up in the Temporal UI and CLI, making it easier to see what each step of a run is doing. - -### Static summary - -`summary` is an ordinary Activity option, so a fixed per-node label works today — pass it like any other option: - -```python -g.add_node("plan", plan, metadata={"execute_in": "activity", "summary": "Planning step"}) -``` - -It is attached to the node's scheduled-activity event (`execute_in="activity"` only). - -### Dynamic summary (`summary_fn`) - -To derive the label from the node's input at runtime, supply a `summary_fn`. It receives the node's `(args, kwargs)` and returns a summary string, or `None`/`""` for no summary. For a `StateGraph` node `args[0]` is the state; for a Functional `@task` it is the task's arguments. - -```python -def summarize(args, kwargs) -> str | None: - state = args[0] - return f"stage={state['stage']} doc={state['doc_id']}" - -# Graph API: per-node -g.add_node("plan", plan, metadata={"execute_in": "activity", "summary_fn": summarize}) - -# Functional API: per-task -plugin = LangGraphPlugin( - tasks=[plan], - activity_options={"plan": {"execute_in": "activity", "summary_fn": summarize}}, -) -``` - -`summary_fn` is set per node/task (like the static `summary`), so different nodes — which receive different inputs — can compute their summaries independently. You can also put a `summary` or `summary_fn` in `default_activity_options` as a fallback for every node; a node/task that sets either form overrides the inherited default (you just can't set both forms at the same level). - -- For `execute_in="activity"` nodes the result sets the activity `summary` (one per scheduled-activity event, visible in history). -- For `execute_in="workflow"` nodes there is no activity, so the result updates the workflow's current details via [`workflow.set_current_details()`](https://python.temporal.io/temporalio.workflow.html#set_current_details). This is a single workflow-level slot (last-writer-wins) reflecting the most recent workflow-bound node that defines a `summary_fn`; a `None`/`""` result clears it. It is queryable via `__temporal_workflow_metadata`. - -`summary_fn` runs in workflow context on every replay, so it **must be deterministic and must not raise** (an exception fails the workflow task). Setting both a static `summary` and a `summary_fn` on the same node raises `ValueError`. - -## Streaming - -When `streaming_topic` is set on `LangGraphPlugin`, calls to `langgraph.config.get_stream_writer()` inside a node publish to the named topic on the workflow's [`WorkflowStream`](https://github.com/temporalio/sdk-python/tree/main/temporalio/contrib/workflow_streams). Activity-side nodes publish via `WorkflowStreamClient` (a signal carrying batched items, controlled by `streaming_batch_interval`); workflow-side nodes publish synchronously to the in-workflow stream (no signal). External subscribers consume the stream with `WorkflowStreamClient.create(...).topic(...).subscribe(...)`. - -The workflow **must** construct `WorkflowStream()` in its `@workflow.init` (i.e. `__init__`) - -```python -from datetime import timedelta -from typing import Any - -from langgraph.config import get_stream_writer -from langgraph.graph import START, StateGraph -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.contrib.workflow_streams import WorkflowStream, WorkflowStreamClient -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def token_node(state: State) -> dict[str, str]: - writer = get_stream_writer() - for token in ["hello", " ", "world"]: - writer({"token": token}) - writer({"done": True}) - return {"value": "hello world"} - - -@workflow.defn -class StreamingWorkflow: - def __init__(self) -> None: - # Required when streaming_topic is set on the plugin. - _ = WorkflowStream() - self.app = graph("streaming").compile() - - @workflow.run - async def run(self) -> str: - result = await self.app.ainvoke({"value": ""}) - return result["value"] - - -async def main(client: Client) -> None: - g = StateGraph(State) - g.add_node("token_node", token_node, metadata={"execute_in": "activity"}) - g.add_edge(START, "token_node") - - async with Worker( - client, - task_queue="streaming-tq", - workflows=[StreamingWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"streaming": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - streaming_topic="tokens", - ) - ], - ): - handle = await client.start_workflow( - StreamingWorkflow.run, id="streaming-wf", task_queue="streaming-tq" - ) - - ws_client = WorkflowStreamClient.create(client, handle.id) - async for item in ws_client.topic("tokens", type=dict).subscribe(from_offset=0): - print(item.data) - if item.data.get("done"): - break - - print(await handle.result()) -``` - -### What's covered, and what isn't - -`streaming_topic` wires up exactly **one** LangGraph stream mode: `stream_mode="custom"`, i.e. values written through `get_stream_writer()`. The other modes — `"messages"`, `"values"`, `"updates"`, `"debug"` — are **not** captured by `streaming_topic`. They aren't produced by node-side writers; LangGraph's orchestrator emits them as it walks the graph. The documented pattern is to **bridge `astream()` in the workflow** and republish each yielded chunk to a `WorkflowStream` topic yourself: - -```python -@workflow.defn -class AstreamBridge: - def __init__(self) -> None: - self.stream = WorkflowStream() - self.app = graph("g").compile() - - @workflow.run - async def run(self) -> None: - topic = self.stream.topic("astream") - async for chunk in self.app.astream({...}, stream_mode="messages"): - topic.publish(chunk) - topic.publish({"done": True}) -``` - -### Retry semantics - -Streaming has **at-least-once** delivery per activity attempt. When an activity-wrapped node retries (transient failure, worker crash, etc.), the user function re-runs from scratch and re-publishes its writes — earlier publishes from the failed attempt are not rolled back. Subscribers should be ready to see duplicates and recover idempotently (e.g. dedupe on a sequence id you include in each chunk, or treat the stream as advisory and rely on the workflow's final result for state). - -## Tracing - -We recommend the [Temporal LangSmith Plugin](https://github.com/temporalio/sdk-python/tree/main/temporalio/contrib/langsmith) to trace your LangGraph Workflows and Activities. - -## Stores are not supported - -LangGraph's `Store` (e.g. `InMemoryStore` passed via `graph.compile(store=...)` or `@entrypoint(store=...)`) isn't accessible inside Activity-wrapped nodes: the Store holds live state that can't cross the Activity boundary, and Activities may run on a different worker than the Workflow. If you pass a store, the plugin logs a warning on first use and `runtime.store` is `None` inside nodes. - -Use Workflow state for per-run memory, or an external database (Postgres/Redis/etc.) configured on each worker if you need shared memory across runs. - -## Running Tests - -Install dependencies: - -```sh -uv sync --all-extras -``` - -Run the test suite: - -```sh -uv run pytest tests/contrib/langgraph +from temporalio.langgraph import LangGraphPlugin ``` -Tests start a local Temporal dev server automatically — no external server needed. +The new import path selects the standalone implementation instead of the +SDK-bundled `temporalio.contrib.langgraph` implementation. diff --git a/temporalio/contrib/langgraph/__init__.py b/temporalio/contrib/langgraph/__init__.py index e9aaf5605..310b009ef 100644 --- a/temporalio/contrib/langgraph/__init__.py +++ b/temporalio/contrib/langgraph/__init__.py @@ -1,25 +1,10 @@ -"""LangGraph plugin for Temporal SDK. +"""Compatibility imports for the standalone LangGraph integration. -.. warning:: - This package is experimental and may change in future versions. - Use with caution in production environments. - -This plugin runs `LangGraph `_ nodes -and tasks as Temporal Activities, giving your AI agent workflows durable -execution, automatic retries, and timeouts. It supports both the LangGraph Graph -API (``StateGraph``) and Functional API (``@entrypoint`` / ``@task``). +Install ``temporalio-langgraph`` and import ``temporalio.langgraph`` +directly in new code. """ -from temporalio.contrib.langgraph._plugin import ( - LangGraphPlugin, - cache, - entrypoint, - graph, +from temporalio.langgraph import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.langgraph import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, ) - -__all__ = [ - "LangGraphPlugin", - "cache", - "entrypoint", - "graph", -] diff --git a/temporalio/contrib/langgraph/_activity.py b/temporalio/contrib/langgraph/_activity.py deleted file mode 100644 index c8447df47..000000000 --- a/temporalio/contrib/langgraph/_activity.py +++ /dev/null @@ -1,188 +0,0 @@ -"""Activity wrappers for executing LangGraph nodes and tasks.""" - -import asyncio -from collections.abc import Awaitable -from dataclasses import dataclass -from datetime import timedelta -from inspect import iscoroutinefunction, signature -from typing import Any, Callable - -from langgraph.errors import GraphInterrupt -from langgraph.types import Command, Interrupt - -from temporalio import workflow -from temporalio.contrib.langgraph._langgraph_config import ( - get_langgraph_config, - set_langgraph_config, - strip_runnable_config, -) -from temporalio.contrib.langgraph._task_cache import ( - cache_key, - cache_lookup, - cache_put, -) -from temporalio.contrib.workflow_streams import WorkflowStreamClient - -# Per-run dedupe so we only warn once when a user passes a Store via -# graph.compile(store=...) / @entrypoint(store=...). Cleared by -# LangGraphInterceptor.execute_workflow on workflow exit. -_warned_store_runs: set[str] = set() - - -def clear_store_warning(run_id: str) -> None: - """Drop the store-warning dedupe entry for a workflow run.""" - _warned_store_runs.discard(run_id) - - -@dataclass -class ActivityInput: - """Input for a LangGraph activity, containing args, kwargs, and config.""" - - args: tuple[Any, ...] - kwargs: dict[str, Any] - langgraph_config: dict[str, Any] - - -@dataclass -class ActivityOutput: - """Output from an Activity, containing result, command, or interrupts.""" - - result: Any = None - langgraph_command: Any = None - langgraph_interrupts: tuple[Interrupt] | None = None - - -def wrap_activity( - func: Callable, - *, - streaming_topic: str | None = None, - streaming_batch_interval: timedelta = timedelta(milliseconds=100), -) -> Callable[[ActivityInput], Awaitable[ActivityOutput]]: - """Wrap a function as a Temporal activity that handles LangGraph config and interrupts.""" - accepts_runtime = "runtime" in signature(func).parameters - - async def wrapper(input: ActivityInput) -> ActivityOutput: - async def run(stream_writer: Callable[[Any], None] | None) -> ActivityOutput: - # Sync funcs run on a thread (so the loop keeps flushing the - # stream client mid-execution); marshal writer calls back to - # the loop thread because the client's flush event is an - # asyncio.Event and isn't safe to set off-thread. - effective_writer = stream_writer - if not iscoroutinefunction(func) and stream_writer is not None: - loop = asyncio.get_running_loop() - inner_writer = stream_writer - - def thread_safe_writer(value: Any) -> None: - loop.call_soon_threadsafe(inner_writer, value) - - effective_writer = thread_safe_writer - - runtime = set_langgraph_config( - input.langgraph_config, stream_writer=effective_writer - ) - kwargs = dict(input.kwargs) - if accepts_runtime: - kwargs["runtime"] = runtime - - try: - if iscoroutinefunction(func): - result = await func(*input.args, **kwargs) - else: - result = await asyncio.to_thread(func, *input.args, **kwargs) - if isinstance(result, Command): - return ActivityOutput(langgraph_command=result) - return ActivityOutput(result=result) - except GraphInterrupt as e: - return ActivityOutput(langgraph_interrupts=e.args[0]) - - if streaming_topic is None: - return await run(stream_writer=None) - async with WorkflowStreamClient.from_within_activity( - batch_interval=streaming_batch_interval, - ) as client: - topic = client.topic(streaming_topic) - return await run(stream_writer=topic.publish) - - return wrapper - - -def wrap_execute_activity( - afunc: Callable[[ActivityInput], Awaitable[ActivityOutput]], - task_id: str = "", - summary_fn: Callable[[tuple[Any, ...], dict[str, Any]], str | None] | None = None, - **execute_activity_kwargs: Any, -) -> Callable[..., Any]: - """Wrap an activity function to be called via workflow.execute_activity with caching.""" - - async def wrapper(*args: Any, **kwargs: Any) -> Any: - # LangGraph may inject a RunnableConfig as the 'config' kwarg. Strip it - # down to a serializable subset so it can cross the activity boundary; - # callbacks, stores, etc. aren't serializable. - if "config" in kwargs: - kwargs["config"] = strip_runnable_config(kwargs["config"]) - - # LangGraph may inject a Runtime as the 'runtime' kwarg. It's - # reconstructed on the activity side from the serialized langgraph - # config, so drop the live Runtime from the kwargs that cross the - # activity boundary (it holds non-serializable stream_writer, store). - runtime = kwargs.pop("runtime", None) - run_id = workflow.info().run_id - if ( - getattr(runtime, "store", None) is not None - and run_id not in _warned_store_runs - ): - _warned_store_runs.add(run_id) - workflow.logger.warning( - "LangGraph Store passed via compile(store=...) / @entrypoint(store=...) " - "is not accessible inside activity-wrapped nodes and tasks: the Store " - "object isn't serializable across the activity boundary, and activities " - "may run on a different worker than the workflow. Use a backend-backed " - "store (Postgres/Redis) configured on each worker if you need shared " - "memory, or use workflow state for per-run memory." - ) - - langgraph_config = get_langgraph_config() - - # Check task result cache (for continue-as-new deduplication). - key = ( - cache_key(task_id, args, kwargs, langgraph_config.get("context")) - if task_id - else "" - ) - if task_id: - found, cached = cache_lookup(key) - if found: - return cached - - input = ActivityInput( - args=args, kwargs=kwargs, langgraph_config=langgraph_config - ) - # Compute a dynamic activity summary (if configured) on the schedule - # path only; a cache hit above returns before reaching here, so no - # activity is scheduled and no summary is needed. - call_kwargs = dict(execute_activity_kwargs) - if summary_fn is not None: - summary = summary_fn(args, kwargs) - if summary: - call_kwargs["summary"] = summary - output = await workflow.execute_activity(afunc, input, **call_kwargs) - if output.langgraph_interrupts is not None: - raise GraphInterrupt(output.langgraph_interrupts) - - result = output.result - if output.langgraph_command is not None: - cmd = output.langgraph_command - result = Command( - graph=cmd["graph"], - update=cmd["update"], - resume=cmd["resume"], - goto=cmd["goto"], - ) - - # Store in cache for future continue-as-new cycles. - if task_id: - cache_put(key, result) - - return result - - return wrapper diff --git a/temporalio/contrib/langgraph/_interceptor.py b/temporalio/contrib/langgraph/_interceptor.py deleted file mode 100644 index f68d9d45d..000000000 --- a/temporalio/contrib/langgraph/_interceptor.py +++ /dev/null @@ -1,77 +0,0 @@ -"""Workflow interceptor that scopes LangGraph graphs/entrypoints to the workflow run.""" - -# pyright: reportMissingTypeStubs=false - -from __future__ import annotations - -from typing import Any - -from langgraph.graph import StateGraph -from langgraph.pregel import Pregel - -from temporalio import workflow -from temporalio.contrib.langgraph._activity import clear_store_warning -from temporalio.contrib.workflow_streams._stream import _PUBLISH_SIGNAL -from temporalio.worker import ( - ExecuteWorkflowInput, - Interceptor, - WorkflowInboundInterceptor, - WorkflowInterceptorClassInput, - WorkflowOutboundInterceptor, -) - -_workflow_graphs: dict[str, dict[str, StateGraph[Any, Any, Any, Any]]] = {} -_workflow_entrypoints: dict[str, dict[str, Pregel[Any, Any, Any, Any]]] = {} - - -class LangGraphInterceptor(Interceptor): - """Interceptor that registers a workflow's graphs and entrypoints for the run.""" - - def __init__( - self, - graphs: dict[str, StateGraph[Any, Any, Any, Any]], - entrypoints: dict[str, Pregel[Any, Any, Any, Any]], - streaming_topic: str | None = None, - ) -> None: - """Initialize with the graphs and entrypoints to scope to each workflow run.""" - self._graphs = graphs - self._entrypoints = entrypoints - self._streaming_topic = streaming_topic - - def workflow_interceptor_class( - self, input: WorkflowInterceptorClassInput - ) -> type[WorkflowInboundInterceptor]: - """Return the inbound interceptor class used to scope graphs per run.""" - graphs = self._graphs - entrypoints = self._entrypoints - streaming_topic = self._streaming_topic - - class Inbound(WorkflowInboundInterceptor): - def init(self, outbound: WorkflowOutboundInterceptor) -> None: - run_id = outbound.info().run_id - _workflow_graphs[run_id] = graphs - _workflow_entrypoints[run_id] = entrypoints - super().init(outbound) - - async def execute_workflow(self, input: ExecuteWorkflowInput) -> Any: - if ( - streaming_topic is not None - and workflow.get_signal_handler(_PUBLISH_SIGNAL) is None - ): - raise RuntimeError( - f"LangGraphPlugin was configured with " - f"streaming_topic={streaming_topic!r}, but workflow " - f"{workflow.info().workflow_type!r} did not register a " - f"WorkflowStream. Construct WorkflowStream() in the " - f"workflow's @workflow.init (i.e. __init__) method so " - f"streaming activities can publish to it." - ) - try: - return await self.next.execute_workflow(input) - finally: - run_id = workflow.info().run_id - _workflow_graphs.pop(run_id, None) - _workflow_entrypoints.pop(run_id, None) - clear_store_warning(run_id) - - return Inbound diff --git a/temporalio/contrib/langgraph/_langgraph_config.py b/temporalio/contrib/langgraph/_langgraph_config.py deleted file mode 100644 index 90c6c810d..000000000 --- a/temporalio/contrib/langgraph/_langgraph_config.py +++ /dev/null @@ -1,164 +0,0 @@ -"""LangGraph configuration management for Temporal workflows.""" - -# pyright: reportMissingTypeStubs=false - -import dataclasses -from typing import Any, Callable - -from langchain_core.runnables.config import var_child_runnable_config -from langgraph._internal._constants import ( - CONFIG_KEY_CHECKPOINT_ID, - CONFIG_KEY_CHECKPOINT_MAP, - CONFIG_KEY_CHECKPOINT_NS, - CONFIG_KEY_DURABILITY, - CONFIG_KEY_RESUMING, - CONFIG_KEY_RUNTIME, - CONFIG_KEY_SCRATCHPAD, - CONFIG_KEY_SEND, - CONFIG_KEY_TASK_ID, - CONFIG_KEY_THREAD_ID, -) -from langgraph._internal._scratchpad import PregelScratchpad -from langgraph.graph.state import RunnableConfig -from langgraph.pregel._algo import LazyAtomicCounter -from langgraph.runtime import ExecutionInfo, Runtime - - -def strip_runnable_config(config: RunnableConfig | None) -> RunnableConfig: - """Return a serializable subset of a RunnableConfig. - - LangGraph injects the active RunnableConfig into user functions as a - config kwarg. The full object holds non-serializable things (callbacks, - checkpointer/store/cache handles, pregel send/read callables) that can't - cross an activity boundary, so we keep only primitive fields and the - serializable subset of configurable. - """ - orig = config or {} - configurable = orig.get("configurable") or {} - - result: RunnableConfig = { - "tags": list(orig.get("tags") or []), - "metadata": dict(orig.get("metadata") or {}), - } - if run_name := orig.get("run_name"): - result["run_name"] = run_name - if run_id := orig.get("run_id"): - result["run_id"] = run_id - if (recursion_limit := orig.get("recursion_limit")) is not None: - result["recursion_limit"] = recursion_limit - - stripped_configurable: dict[str, Any] = { - key: configurable[key] - for key in ( - CONFIG_KEY_CHECKPOINT_NS, - CONFIG_KEY_CHECKPOINT_ID, - CONFIG_KEY_CHECKPOINT_MAP, - CONFIG_KEY_THREAD_ID, - CONFIG_KEY_TASK_ID, - CONFIG_KEY_RESUMING, - CONFIG_KEY_DURABILITY, - ) - if key in configurable - } - if stripped_configurable: - result["configurable"] = stripped_configurable - return result - - -def get_langgraph_config() -> dict[str, Any]: - """Get the current LangGraph runnable config as a serializable dict.""" - config = var_child_runnable_config.get() - configurable = (config or {}).get("configurable") or {} - scratchpad = configurable.get(CONFIG_KEY_SCRATCHPAD) - runtime = configurable.get(CONFIG_KEY_RUNTIME) - execution_info = getattr(runtime, "execution_info", None) - - stripped = strip_runnable_config(config) - return { - **stripped, - "configurable": { - **(stripped.get("configurable") or {}), - CONFIG_KEY_SCRATCHPAD: { - "step": getattr(scratchpad, "step", 0), - "stop": getattr(scratchpad, "stop", 0), - "resume": list(getattr(scratchpad, "resume", [])), - "null_resume": scratchpad.get_null_resume() if scratchpad else None, - }, - }, - "context": getattr(runtime, "context", None), - "previous": getattr(runtime, "previous", None), - "execution_info": ( - dataclasses.asdict(execution_info) if execution_info else None - ), - } - - -def set_langgraph_config( - config: dict[str, Any], - *, - stream_writer: Callable[[Any], None] | None = None, -) -> Runtime: - """Restore a LangGraph runnable config from a serialized dict. - - Returns the reconstructed Runtime so callers can re-inject it into the - user function's kwargs without needing to know the configurable layout. - """ - configurable = config.get("configurable") or {} - scratchpad = configurable.get(CONFIG_KEY_SCRATCHPAD) or {} - null_resume_box = [scratchpad.get("null_resume")] - - def get_null_resume(consume: bool = False) -> Any: - val = null_resume_box[0] - if consume and val is not None: - null_resume_box[0] = None - return val - - execution_info_dict = config.get("execution_info") - runtime = Runtime( - context=config.get("context"), - stream_writer=stream_writer or (lambda _: None), - previous=config.get("previous"), - execution_info=( - ExecutionInfo(**execution_info_dict) if execution_info_dict else None - ), - ) - - restored_configurable: dict[str, Any] = { - key: configurable[key] - for key in ( - CONFIG_KEY_CHECKPOINT_NS, - CONFIG_KEY_CHECKPOINT_ID, - CONFIG_KEY_CHECKPOINT_MAP, - CONFIG_KEY_THREAD_ID, - CONFIG_KEY_TASK_ID, - CONFIG_KEY_RESUMING, - CONFIG_KEY_DURABILITY, - ) - if key in configurable - } - restored_configurable[CONFIG_KEY_SCRATCHPAD] = PregelScratchpad( - step=scratchpad.get("step", 0), - stop=scratchpad.get("stop", 0), - call_counter=LazyAtomicCounter(), - interrupt_counter=LazyAtomicCounter(), - get_null_resume=get_null_resume, - resume=list(scratchpad.get("resume", [])), - subgraph_counter=LazyAtomicCounter(), - ) - restored_configurable[CONFIG_KEY_SEND] = lambda _: None - restored_configurable[CONFIG_KEY_RUNTIME] = runtime - - runnable_config: RunnableConfig = {"configurable": restored_configurable} - if tags := config.get("tags"): - runnable_config["tags"] = tags - if metadata := config.get("metadata"): - runnable_config["metadata"] = metadata - if run_name := config.get("run_name"): - runnable_config["run_name"] = run_name - if run_id := config.get("run_id"): - runnable_config["run_id"] = run_id - if (recursion_limit := config.get("recursion_limit")) is not None: - runnable_config["recursion_limit"] = recursion_limit - - var_child_runnable_config.set(runnable_config) - return runtime diff --git a/temporalio/contrib/langgraph/_plugin.py b/temporalio/contrib/langgraph/_plugin.py deleted file mode 100644 index 03881ca2a..000000000 --- a/temporalio/contrib/langgraph/_plugin.py +++ /dev/null @@ -1,382 +0,0 @@ -"""LangGraph plugin for running LangGraph nodes and tasks as Temporal activities.""" - -# pyright: reportMissingTypeStubs=false - -from __future__ import annotations - -import inspect -import sys -import warnings -from dataclasses import replace -from datetime import timedelta -from typing import Any, Callable - -from langgraph._internal._runnable import RunnableCallable -from langgraph.graph import StateGraph -from langgraph.pregel import Pregel - -from temporalio import activity, workflow -from temporalio.contrib.langgraph._activity import wrap_activity, wrap_execute_activity -from temporalio.contrib.langgraph._interceptor import ( - LangGraphInterceptor, - _workflow_entrypoints, - _workflow_graphs, -) -from temporalio.contrib.langgraph._task_cache import ( - get_task_cache, - set_task_cache, - task_id, -) -from temporalio.contrib.langgraph._workflow import wrap_workflow -from temporalio.plugin import SimplePlugin -from temporalio.worker import WorkflowRunner -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner - -_ACTIVITY_OPTION_KEYS: frozenset[str] = frozenset( - {"execute_in", *inspect.signature(workflow.execute_activity).parameters} -) -# Node/task option keys beyond the raw execute_activity parameters: -# 'summary_fn' is a callable consumed in the workflow (not a Temporal -# option), so it must be split out of Graph API metadata too. -_LANGGRAPH_OPTION_KEYS: frozenset[str] = _ACTIVITY_OPTION_KEYS | frozenset( - {"summary_fn"} -) - - -def _constant_summary_fn( - value: str, -) -> Callable[[tuple[Any, ...], dict[str, Any]], str]: - """Adapt a static summary string to the summary_fn interface.""" - return lambda args, kwargs: value - - -def _merge_activity_opts( - defaults: dict[str, Any] | None, specific: dict[str, Any] -) -> dict[str, Any]: - """Layer per-node/task options over the plugin defaults. - - ``summary`` and ``summary_fn`` are two forms of one setting, so a node or - task that supplies either form overrides an inherited default of *either* - form, rather than coexisting with it and tripping the exclusivity check. - """ - merged = dict(defaults or {}) - if "summary" in specific or "summary_fn" in specific: - merged.pop("summary", None) - merged.pop("summary_fn", None) - merged.update(specific) - return merged - - -class LangGraphPlugin(SimplePlugin): - """LangGraph plugin for Temporal SDK. - - .. warning:: - This package is experimental and may change in future versions. - Use with caution in production environments. - - This plugin runs `LangGraph `_ nodes - and tasks as Temporal Activities, giving your AI agent workflows durable - execution, automatic retries, and timeouts. It supports both the LangGraph Graph - API (``StateGraph``) and Functional API (``@entrypoint`` / ``@task``). - - Args: - graphs: Graph API graphs to make available to workflows, keyed by name. - Workflows retrieve them with :func:`graph` and call - ``.compile()`` to get a runnable. Each node's ``metadata`` must - include ``execute_in`` (``"activity"`` or ``"workflow"``) and - may include any kwarg accepted by - :func:`workflow.execute_activity` (e.g. ``start_to_close_timeout``, - ``retry_policy``). - entrypoints: Functional API entrypoints to make available to - workflows, keyed by name. Workflows retrieve them with - :func:`entrypoint`. - tasks: Functional API ``@task`` functions to wrap as Temporal - Activities. - activity_options: Per-task activity options for the Functional - API, keyed by task function name. Each entry must include - ``execute_in`` and may include any - :func:`workflow.execute_activity` kwarg. Used because LangGraph's - Functional API has no per-task ``metadata`` channel. - default_activity_options: Activity options applied to every - activity-bound node and task, overridable per-node (Graph API - ``metadata``) or per-task (``activity_options[name]``). A - node/task that sets ``summary`` or ``summary_fn`` overrides an - inherited default of either form. - streaming_topic: When set, ``langgraph.config.get_stream_writer()`` - inside a node publishes to this topic on the workflow's - :class:`WorkflowStream`. The workflow must construct - ``WorkflowStream()`` in its ``@workflow.init`` (the plugin's - interceptor verifies this on workflow start). Nodes with - ``execute_in='activity'`` publish through - :class:`WorkflowStreamClient` (signal); nodes with - ``execute_in='workflow'`` publish synchronously to the - in-workflow stream (no signal). - streaming_batch_interval: How often the activity-side stream - client flushes buffered publishes into a single - ``__temporal_workflow_stream_publish`` signal. Has no effect - on workflow-side nodes (their publishes are synchronous - in-memory log appends). Lower values reduce streaming - latency at the cost of more signals (more workflow history - events); higher values amortize signal cost but make - chunks arrive in larger bursts. Default 100ms suits - interactive token streaming; raise to 250–1000ms for - non-interactive aggregation, lower toward 10–50ms only if - you've measured the latency need and accept the history - cost. - """ - - def __init__( - self, - # Graph API - graphs: dict[str, StateGraph[Any, Any, Any, Any]] | None = None, - # Functional API - entrypoints: dict[str, Pregel[Any, Any, Any, Any]] | None = None, - tasks: list | None = None, - # TODO: Remove activity_options when we have support for @task(metadata=...) - activity_options: dict[str, dict[str, Any]] | None = None, - default_activity_options: dict[str, Any] | None = None, - streaming_topic: str | None = None, - streaming_batch_interval: timedelta = timedelta(milliseconds=100), - ): - """Initialize the LangGraph plugin with graphs, entrypoints, and tasks. - - .. warning:: - Streaming support is experimental and may change in - future versions. - """ - if sys.version_info < (3, 11): - warnings.warn( # type: ignore[reportUnreachable] - "LangGraphPlugin requires Python >= 3.11 for full async support. " - "On older versions, the Functional API (@task/@entrypoint) and " - "interrupt() will not work because LangGraph relies on " - "contextvars propagation through asyncio.create_task(), which is " - "only available in Python 3.11+. See " - "https://reference.langchain.com/python/langgraph/config/get_store/", - stacklevel=2, - ) - - if default_activity_options and "execute_in" in default_activity_options: - raise ValueError( - "execute_in cannot be set in default_activity_options. " - "Set it on each node's metadata (Graph API) or in " - "activity_options[task_name] (Functional API)." - ) - - if ( - default_activity_options - and "summary" in default_activity_options - and "summary_fn" in default_activity_options - ): - raise ValueError( - "Set either 'summary' or 'summary_fn' in default_activity_options, " - "not both." - ) - - self.activities: list = [] - self._streaming_topic = streaming_topic - self._streaming_batch_interval = streaming_batch_interval - - # Graph API: Wrap graph nodes as Temporal Activities. - if graphs: - for graph_name, graph in graphs.items(): - for node_name, node in graph.nodes.items(): - if node.retry_policy: - raise ValueError( - f"Node {graph_name}.{node_name} has a LangGraph " - f"retry_policy set. Use Temporal activity options " - f"instead, e.g. pass retry_policy=RetryPolicy(...) " - f"via default_activity_options or in the node's " - f"metadata dict." - ) - runnable = node.runnable - if not isinstance(runnable, RunnableCallable): - raise ValueError(f"Node {node_name} must be a RunnableCallable") - user_func = runnable.func or runnable.afunc - if user_func is None: - raise ValueError(f"Node {node_name} must have a function") - # Keep 'config' (for metadata/tags) and 'runtime' (for - # context + store — reconstructed on the activity side). - # Drop writer/etc., which hold non-serializable objects - # that can't cross the activity boundary. - runnable.func_accepts = { - k: v - for k, v in runnable.func_accepts.items() - if k in ("config", "runtime") - } - # Split node.metadata into activity options vs. user - # metadata. Activity-option keys (timeouts, retry policy, - # etc.) become kwargs to workflow.execute_activity; user - # keys stay on node.metadata so LangGraph exposes them to - # the node function via config["metadata"]. - node_meta = node.metadata or {} - node_opts = { - k: v - for k, v in node_meta.items() - if k in _LANGGRAPH_OPTION_KEYS - } - node.metadata = { - k: v - for k, v in node_meta.items() - if k not in _LANGGRAPH_OPTION_KEYS - } - if "execute_in" not in node_opts: - raise ValueError( - f"Node {graph_name}.{node_name} is missing required " - f"'execute_in' in metadata. Set it to 'activity' or " - f"'workflow'." - ) - opts = _merge_activity_opts(default_activity_options, node_opts) - # Route all LangGraph node calls through afunc so the async - # activity wrapper is always used. wrap_activity handles - # sync vs. async user functions inside the activity itself. - runnable.afunc = self.execute( - f"{graph_name}.{node_name}", user_func, opts - ) - runnable.func = None - - # Functional API: Wrap @task functions as Temporal Activities. - if tasks: - for task in tasks: - name = task.func.__name__ - if task.retry_policy: - raise ValueError( - f"Task {name} has a LangGraph retry_policy set. " - f"Use Temporal activity options instead, e.g. pass " - f"retry_policy=RetryPolicy(...) via " - f"default_activity_options or activity_options[{name!r}]." - ) - task_opts = (activity_options or {}).get(name, {}) - if "execute_in" not in task_opts: - raise ValueError( - f"Task {name} is missing required 'execute_in' in " - f"activity_options[{name!r}]. Set it to 'activity' or " - f"'workflow'." - ) - opts = _merge_activity_opts(default_activity_options, task_opts) - - task.func = self.execute(task_id(task.func), task.func, opts) - task.func.__name__ = name - task.func.__qualname__ = getattr(task.func, "__qualname__", name) - - def workflow_runner(runner: WorkflowRunner | None) -> WorkflowRunner: - if not runner: - raise ValueError("No WorkflowRunner provided to the LangGraph plugin.") - if isinstance(runner, SandboxedWorkflowRunner): - return replace( - runner, - restrictions=runner.restrictions.with_passthrough_modules( - "langchain", - "langchain_core", - "langgraph", - "langsmith", - "numpy", # LangSmith uses numpy - ), - ) - return runner - - super().__init__( - "langchain.LangGraphPlugin", - activities=self.activities, - workflow_runner=workflow_runner, - interceptors=[ - LangGraphInterceptor( - graphs or {}, entrypoints or {}, streaming_topic=streaming_topic - ) - ], - ) - - def execute( - self, - activity_name: str, - func: Callable, - kwargs: dict[str, Any] | None = None, - ) -> Callable: - """Prepare a node or task to execute as an activity or inline in the workflow.""" - opts = kwargs or {} - execute_in = opts.pop("execute_in") - # Normalize the node's summary to a single summary_fn. Both keys are - # popped so neither reaches workflow.execute_activity (which takes no - # summary_fn, and would get a duplicate summary kwarg); a static - # summary becomes a summary_fn that ignores its input. - summary_fn = opts.pop("summary_fn", None) - static_summary = opts.pop("summary", None) - if summary_fn is not None and static_summary is not None: - raise ValueError( - f"{activity_name}: set either 'summary' or 'summary_fn', not both." - ) - if static_summary is not None: - summary_fn = _constant_summary_fn(static_summary) - - if execute_in == "activity": - wrapped = wrap_activity( - func, - streaming_topic=self._streaming_topic, - streaming_batch_interval=self._streaming_batch_interval, - ) - a = activity.defn(name=activity_name)(wrapped) - self.activities.append(a) - return wrap_execute_activity( - a, task_id=task_id(func), summary_fn=summary_fn, **opts - ) - elif execute_in == "workflow": - return wrap_workflow( - func, streaming_topic=self._streaming_topic, summary_fn=summary_fn - ) - else: - raise ValueError(f"Invalid execute_in value: {execute_in}") - - -def graph( - name: str, cache: dict[str, Any] | None = None -) -> StateGraph[Any, Any, Any, Any]: - """Retrieve a registered graph by name. - - Args: - name: Graph name as registered with LangGraphPlugin. - cache: Optional task result cache from a previous cache() call. - Restores cached results so previously-completed nodes are - not re-executed after continue-as-new. - """ - set_task_cache(cache or {}) - graphs = _workflow_graphs.get(workflow.info().run_id) - if graphs is None: - raise RuntimeError( - "graph() must be called from inside a workflow running under LangGraphPlugin" - ) - if name not in graphs: - raise KeyError(f"Graph {name!r} not found. Available graphs: {list(graphs)}") - return graphs[name] - - -def entrypoint( - name: str, cache: dict[str, Any] | None = None -) -> Pregel[Any, Any, Any, Any]: - """Retrieve a registered entrypoint by name. - - Args: - name: Entrypoint name as registered with Plugin. - cache: Optional task result cache from a previous cache() call. - Restores cached results so previously-completed tasks are - not re-executed after continue-as-new. - """ - set_task_cache(cache or {}) - entrypoints = _workflow_entrypoints.get(workflow.info().run_id) - if entrypoints is None: - raise RuntimeError( - "entrypoint() must be called from inside a workflow running under LangGraphPlugin" - ) - if name not in entrypoints: - raise KeyError( - f"Entrypoint {name!r} not found. Available entrypoints: {list(entrypoints)}" - ) - return entrypoints[name] - - -def cache() -> dict[str, Any] | None: - """Return the task result cache as a serializable dict. - - Returns a dict suitable for passing to entrypoint(name, cache=...) to - restore cached task results across continue-as-new boundaries. - Returns None if the cache is empty. - """ - return get_task_cache() or None diff --git a/temporalio/contrib/langgraph/_task_cache.py b/temporalio/contrib/langgraph/_task_cache.py deleted file mode 100644 index ab3e683d7..000000000 --- a/temporalio/contrib/langgraph/_task_cache.py +++ /dev/null @@ -1,83 +0,0 @@ -"""Task result cache for continue-as-new support. - -Caches task results by (module.qualname, args, kwargs) hash so that previously -completed tasks are not re-executed after a continue-as-new. The cache state -is a plain dict that can travel through workflow.continue_as_new(). -""" - -from __future__ import annotations - -from contextvars import ContextVar -from hashlib import sha256 -from json import dumps -from typing import Any - -_task_cache: ContextVar[dict[str, Any] | None] = ContextVar( - "_temporal_task_cache", default=None -) - - -def set_task_cache(cache: dict[str, Any] | None) -> None: - """Set the task result cache for the current context.""" - _task_cache.set(cache) - - -def get_task_cache() -> dict[str, Any] | None: - """Get the task result cache for the current context.""" - return _task_cache.get() - - -def task_id(func: Any) -> str: - """Return the fully-qualified module.qualname for a function. - - Raises ValueError for functions that cannot be identified unambiguously - (lambdas, closures, __main__ functions). - """ - module = getattr(func, "__module__", None) - qualname = getattr(func, "__qualname__", None) or getattr(func, "__name__", None) - - if module is None or qualname is None: - raise ValueError( - f"Cannot identify task {func}: missing __module__ or __qualname__. " - "Tasks must be defined at module level." - ) - if module == "__main__": - raise ValueError( - f"Cannot identify task {qualname}: defined in __main__. " - "Tasks must be importable from a named module." - ) - if "" in qualname: - raise ValueError( - f"Cannot identify task {qualname}: closures/local functions are not supported. " - "Tasks must be defined at module level." - ) - return f"{module}.{qualname}" - - -def cache_key( - task_id: str, - args: tuple[Any, ...], - kwargs: dict[str, Any], - context: Any = None, -) -> str: - """Build a cache key from the full task identifier, arguments, and runtime context.""" - try: - key_str = dumps([task_id, args, kwargs, context], sort_keys=True, default=str) - except (TypeError, ValueError): - key_str = repr([task_id, args, kwargs, context]) - return sha256(key_str.encode()).hexdigest()[:32] - - -def cache_lookup(key: str) -> tuple[bool, Any]: - """Return (True, value) if cached, (False, None) otherwise.""" - cache = _task_cache.get() - if cache is not None and key in cache: - return True, cache[key] - return False, None - - -def cache_put(key: str, value: Any) -> None: - """Store a value in the task result cache.""" - cache = _task_cache.get() - if cache is not None: - cache[key] = value diff --git a/temporalio/contrib/langgraph/_workflow.py b/temporalio/contrib/langgraph/_workflow.py deleted file mode 100644 index 43b3d06ae..000000000 --- a/temporalio/contrib/langgraph/_workflow.py +++ /dev/null @@ -1,73 +0,0 @@ -"""Workflow-side wrappers for executing LangGraph nodes inline in a workflow.""" - -# pyright: reportMissingTypeStubs=false - -from __future__ import annotations - -import dataclasses -from collections.abc import Awaitable -from inspect import iscoroutinefunction -from typing import Any, Callable - -from langchain_core.runnables.config import var_child_runnable_config -from langgraph._internal._constants import CONFIG_KEY_RUNTIME - -from temporalio import workflow -from temporalio.contrib.workflow_streams._stream import _PUBLISH_SIGNAL - - -def wrap_workflow( - func: Callable[..., Any], - *, - streaming_topic: str | None = None, - summary_fn: Callable[[tuple[Any, ...], dict[str, Any]], str | None] | None = None, -) -> Callable[..., Awaitable[Any]]: - """Wrap a function as a workflow-side LangGraph node. - - Mirrors :func:`wrap_activity`: the outer wrapper resolves a stream - writer and passes it to an inner ``run`` that invokes the user - function with the writer installed. Workflow-side nodes publish - synchronously to the in-workflow ``WorkflowStream`` (no signal - round-trip); activity-side nodes go through ``WorkflowStreamClient``. - - Workflow-side nodes have no activity to carry a summary, so a - ``summary_fn`` result updates the workflow's current details via - :func:`temporalio.workflow.set_current_details` (last-writer-wins); - an empty result clears it. - """ - - async def wrapper(*args: Any, **kwargs: Any) -> Any: - if summary_fn is not None: - # Always write (clearing when empty) so this node never shows a - # stale summary left by an earlier workflow-bound node. - workflow.set_current_details(summary_fn(args, kwargs) or "") - - async def run(stream_writer: Callable[[Any], None] | None) -> Any: - token = None - if stream_writer is not None: - config = var_child_runnable_config.get() or {} - configurable = dict(config.get("configurable") or {}) - runtime = configurable.get(CONFIG_KEY_RUNTIME) - if runtime is not None: - configurable[CONFIG_KEY_RUNTIME] = dataclasses.replace( - runtime, stream_writer=stream_writer - ) - token = var_child_runnable_config.set( - {**config, "configurable": configurable} - ) - try: - if iscoroutinefunction(func): - return await func(*args, **kwargs) - return func(*args, **kwargs) - finally: - if token is not None: - var_child_runnable_config.reset(token) - - if streaming_topic is None: - return await run(stream_writer=None) - publish_handler = workflow.get_signal_handler(_PUBLISH_SIGNAL) - stream = getattr(publish_handler, "__self__") - topic = stream.topic(streaming_topic) - return await run(stream_writer=topic.publish) - - return wrapper diff --git a/temporalio/contrib/langsmith/README.md b/temporalio/contrib/langsmith/README.md index 421a76c02..53245cb7f 100644 --- a/temporalio/contrib/langsmith/README.md +++ b/temporalio/contrib/langsmith/README.md @@ -1,246 +1,39 @@ -# LangSmith Plugin for Temporal Python SDK +# LangSmith integration -> ⚠️ **This package is currently at an experimental release stage.** ⚠️ +The LangSmith integration has moved to the independently versioned +[`temporalio-langsmith`](https://pypi.org/project/temporalio-langsmith/) +package. Its canonical Python API is `temporalio.langsmith`. -This Temporal [Plugin](https://docs.temporal.io/develop/plugins-guide) allows your [LangSmith](https://smith.langchain.com/) traces to work within Temporal Workflows. It propagates trace context across Worker boundaries so that `@traceable` calls, LLM invocations, and Temporal operations show up in a single connected trace, and ensures that replaying does not generate duplicate traces. +The complete integration guide now lives in the +[`temporalio-langsmith` README](https://github.com/temporalio/ai-integrations/tree/main/python/langsmith#readme). -## Quick Start +## Migrating to the standalone package -Install Temporal with the LangSmith feature enabled: +Remove the `langsmith` extra from the existing Temporal dependency: -```bash -uv add temporalio[langsmith] -``` - -Register the Plugin on your Temporal Client. You need it on both the Client (starter) side and the Workers: - -```python -from temporalio.client import Client -from temporalio.contrib.langsmith import LangSmithPlugin - -client = await Client.connect( - "localhost:7233", - plugins=[LangSmithPlugin(project_name="my-project")], -) -``` - -Once that's set up, any `@traceable` function inside your Workflows and Activities will show up in LangSmith with correct parent-child relationships, even across Worker boundaries. - -## Example: AI Chatbot - -A conversational chatbot using OpenAI, orchestrated by a Temporal Workflow. The Workflow stays alive waiting for user messages via Signals, and dispatches each message to an Activity that calls the LLM. - -### Activity (Wraps the LLM Call) - -```python -from langsmith import traceable - -@traceable(name="Call OpenAI", run_type="chain") -@activity.defn -async def call_openai(request: OpenAIRequest) -> Response: - client = wrap_openai(AsyncOpenAI()) # This is a traced langsmith function - return await client.responses.create( - model=request.model, - input=request.input, - instructions=request.instructions, - ) -``` - -### Workflow (Orchestrates the Conversation) - -```python -@workflow.defn -class ChatbotWorkflow: - @workflow.run - async def run(self) -> str: - # @traceable works inside Workflows — fully replay-safe - now = workflow.now().strftime("%b %d %H:%M") - return await traceable( - name=f"Session {now}", run_type="chain", - )(self._run_with_trace)() - - async def _run_with_trace(self) -> str: - while not self._done: - await workflow.wait_condition( - lambda: self._pending_message is not None or self._done - ) - if self._done: - break - - message = self._pending_message - self._pending_message = None - - @traceable(name=f"Query: {message[:60]}", run_type="chain") - async def _query(msg: str) -> str: - response = await workflow.execute_activity( - call_openai, - OpenAIRequest(model="gpt-4o-mini", input=msg), - start_to_close_timeout=timedelta(seconds=60), - ) - return response.output_text - - self._last_response = await _query(message) - - return "Session ended." -``` - -### Worker - -```python -client = await Client.connect( - "localhost:7233", - plugins=[LangSmithPlugin(project_name="chatbot")], -) - -worker = Worker( - client, - task_queue="chatbot", - workflows=[ChatbotWorkflow], - activities=[call_openai], -) -await worker.run() -``` - -### What you see in LangSmith - -With the default configuration (`add_temporal_runs=False`), the trace contains only your application logic: - -``` -Session Apr 03 14:30 - Query: "What's the weather in NYC?" - Call OpenAI - openai.responses.create (auto-traced by wrap_openai) -``` - -An actual look at the LangSmith UI: - -![Screenshot: LangSmith trace tree with add_temporal_runs=False showing clean application-only hierarchy](images/langsmith-no-temporal.png) - -## `add_temporal_runs` — Temporal Operation Visibility - -By default, `add_temporal_runs` is `False` and only your `@traceable` application logic appears in traces. Setting it to `True` also adds Temporal operations (StartWorkflow, RunWorkflow, StartActivity, RunActivity, etc.): - -```python -plugins=[LangSmithPlugin(project_name="my-project", add_temporal_runs=True)] -``` - -This adds Temporal operation nodes to the trace tree so that the orchestration layer is visible alongside your application logic. If the caller wraps `start_workflow` in a `@traceable` function, the full trace looks like: - -``` -Ask Chatbot # @traceable wrapper around client.start_workflow - StartWorkflow:ChatbotWorkflow - RunWorkflow:ChatbotWorkflow - Session Apr 03 14:30 - Query: "What's the weather in NYC?" - StartActivity:call_openai - RunActivity:call_openai - Call OpenAI - openai.responses.create -``` - -Note: `StartFoo` and `RunFoo` appear as siblings. The start is the short-lived outbound RPC that enqueues work on a task queue and completes immediately, and the run is the actual execution which may be delayed and may take much longer. - -An actual look at the LangSmith UI: - -![Screenshot: LangSmith trace tree with add_temporal_runs=True showing Temporal operation nodes](images/langsmith-with-temporal.png) - -And here is a waterfall view of the Workflow in Temporal UI: - -![Screenshot: Temporal UI showing the corresponding Workflow execution](images/temporal-ui.png) - -## Migrating Existing LangSmith Code to Temporal - -If you already have code with LangSmith tracing, you should be able to move it into a Temporal Workflow and keep the same trace hierarchy. The Plugin handles sandbox restrictions and context propagation behind the scenes, so anything that was traceable before should remain traceable after the move. More details below: - -### Where `@traceable` Works - -The Plugin allows `@traceable` to work inside Temporal's deterministic Workflow sandbox, where it normally can't run. Note that `@traceable` on an Activity fires on each retry. - -| Location | Works? | Notes | -|-------------------------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Inside Workflow methods | Yes | Traces called from inside `@workflow.run`, `@workflow.signal`, etc.; can trace sync and async methods | -| Inside Activity methods | Yes | Traces called from inside `@activity.defn`; can trace sync and async methods | -| On `@activity.defn` functions | Yes | Must stack `@traceable` decorator on top of `@activity.defn` decorator for correct functionality. *Note*: This trace fires on every retry; see [Wrapping Retriable Steps section](#example-wrapping-retriable-steps-in-a-trace) for more info | -| On `@workflow.defn` classes | No | Use `@traceable` inside `@workflow.run` instead. Decorating the workflow class or the `@workflow.run` function is not supported. | - -## Replay Safety - -Temporal Workflows are deterministic and get replayed from event history on recovery. The Plugin accounts for this by injecting replay-safe data into your traceable runs: - -- **No duplicate traces on replay.** Run IDs are derived deterministically from the Workflow's random seed, so replayed operations produce the same IDs and LangSmith deduplicates them. -- **No non-deterministic calls.** The Plugin injects metadata using `workflow.now()` for timestamps and `workflow.random()` for UUIDs instead of `datetime.now()` and `uuid4()`. -- **Background I/O stays outside the sandbox.** LangSmith HTTP calls to the server are submitted to a background thread pool that doesn't interfere with the deterministic Workflow execution. - -You don't need to do anything special for this. Your `@traceable` functions behave the same whether it's a fresh execution or a replay. - -### Example: Worker Crash Mid-Workflow +```toml +# Before +dependencies = [ + "temporalio[langsmith,opentelemetry,pydantic]", +] +# After +dependencies = [ + "temporalio[opentelemetry,pydantic]", +] ``` -1. Workflow starts, executes Activity A -> trace appears in LangSmith -2. Worker crashes during Activity B -3. New Worker picks up the Workflow -4. Workflow replays Activity A (skips execution) -> NO duplicate trace -5. Workflow executes Activity B (new work) -> new trace appears -``` - -As you can see in the UI example below, a crash in the `Call OpenAI` activity didn't cause earlier traces to be duplicated: -![Screenshot: LangSmith showing a Workflow trace that survived a Worker restart with no duplicate runs](images/langsmith-with-crash-no-temporal.png) +Remove the brackets if no extras remain. Then install the standalone package directly: -### Example: Wrapping Retriable Steps in a Trace - -Since Temporal retries failed Activities, you can use an outer `@traceable` to group the attempts together: - -```python -@traceable(name="Call OpenAI", run_type="llm") -@activity.defn -async def call_openai(...): - ... - -@traceable(name="my_step", run_type="chain") -async def my_step(message: str) -> str: - return await workflow.execute_activity( - call_openai, - ... - ) -``` - -This groups everything under one run: -``` -my_step - Call OpenAI # first attempt - openai.responses.create - Call OpenAI # retry - openai.responses.create -``` - -## Context Propagation - -The Plugin propagates trace context across process boundaries (Client -> Workflow -> Activity -> Child Workflow -> Nexus) via Temporal headers. You don't need to pass any context manually. - -``` -Client Process Worker Process (Workflow) Worker Process (Activity) -───────────── ────────────────────────── ───────────────────────── -@traceable("my workflow") - start_workflow ──headers──> RunWorkflow - @traceable("session") - execute_activity ──headers──> RunActivity - @traceable("Call OpenAI") - openai.create(...) +```bash +uv add temporalio-langsmith ``` -## API Reference - -### `LangSmithPlugin` +Change application imports to the standalone package: ```python -LangSmithPlugin( - client=None, # langsmith.Client instance (auto-created if None) - project_name=None, # LangSmith project name - add_temporal_runs=False, # Show Temporal operation nodes in traces - default_metadata=None, # Custom metadata attached to all LangSmith traces (https://docs.smith.langchain.com/observability/how_to_guides/add_metadata_tags) - default_tags=None, # Custom tags attached to all LangSmith traces (see link above) -) +from temporalio.langsmith import LangSmithPlugin ``` -We recommend registering the Plugin on both the Client and all Workers. Strictly speaking, you only need it on the sides that produce traces, but adding it everywhere avoids surprises with context propagation. The Client and Worker don't need to share the same configuration — for example, they can use different `add_temporal_runs` settings. +The new import path selects the standalone implementation instead of the +SDK-bundled `temporalio.contrib.langsmith` implementation. diff --git a/temporalio/contrib/langsmith/__init__.py b/temporalio/contrib/langsmith/__init__.py index c174fe92b..96da40fd3 100644 --- a/temporalio/contrib/langsmith/__init__.py +++ b/temporalio/contrib/langsmith/__init__.py @@ -1,18 +1,10 @@ -"""LangSmith integration for Temporal SDK. +"""Compatibility imports for the standalone LangSmith integration. -.. warning:: - This package is experimental and may change in future versions. - Use with caution in production environments. - -This package provides LangSmith tracing integration for Temporal workflows, -activities, and other operations. It includes automatic run creation and -context propagation for distributed tracing in LangSmith. +Install ``temporalio-langsmith`` and import ``temporalio.langsmith`` +directly in new code. """ -from temporalio.contrib.langsmith._interceptor import LangSmithInterceptor -from temporalio.contrib.langsmith._plugin import LangSmithPlugin - -__all__ = [ - "LangSmithInterceptor", - "LangSmithPlugin", -] +from temporalio.langsmith import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.langsmith import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, +) diff --git a/temporalio/contrib/langsmith/_interceptor.py b/temporalio/contrib/langsmith/_interceptor.py deleted file mode 100644 index a7eea0714..000000000 --- a/temporalio/contrib/langsmith/_interceptor.py +++ /dev/null @@ -1,983 +0,0 @@ -"""LangSmith interceptor implementation for Temporal SDK.""" - -from __future__ import annotations - -import json -import logging -import random -import uuid -from collections.abc import Callable, Iterator, Mapping, Sequence -from concurrent.futures import Future, ThreadPoolExecutor -from contextlib import contextmanager -from typing import Any, ClassVar, NoReturn, Protocol - -import langsmith -import langsmith.utils -import nexusrpc.handler -from langsmith import tracing_context -from langsmith.run_helpers import get_current_run_tree -from langsmith.run_trees import RunTree, WriteReplica - -import temporalio.activity -import temporalio.client -import temporalio.converter -import temporalio.worker -import temporalio.workflow -from temporalio.api.common.v1 import Payload -from temporalio.exceptions import ApplicationError, ApplicationErrorCategory - -# This logger is only used in _log_future_exception, which runs on the -# executor thread (not the workflow thread). Never log directly from -# workflow interceptor code — the sandbox blocks logging I/O. -logger = logging.getLogger(__name__) - -# --------------------------------------------------------------------------- -# Constants -# --------------------------------------------------------------------------- - -HEADER_KEY = "_temporal-langsmith-context" - -_BUILTIN_QUERIES: frozenset[str] = frozenset( - { - "__stack_trace", - "__enhanced_stack_trace", - } -) - - -# --------------------------------------------------------------------------- -# Context helpers -# --------------------------------------------------------------------------- - -_payload_converter = temporalio.converter.PayloadConverter.default - - -class _InputWithHeaders(Protocol): - headers: Mapping[str, Payload] - - -def _inject_context( - headers: Mapping[str, Payload], - run_tree: RunTree, -) -> dict[str, Payload]: - """Inject LangSmith context into Temporal payload headers. - - Serializes the run's trace context (trace ID, parent run ID, dotted order) - into a Temporal header under ``_temporal-langsmith-context``, enabling parent-child - trace nesting across process boundaries (client → worker, workflow → activity). - """ - ls_headers = run_tree.to_headers() - return { - **headers, - HEADER_KEY: _payload_converter.to_payloads([ls_headers])[0], - } - - -def _inject_current_context( - headers: Mapping[str, Payload], -) -> Mapping[str, Payload]: - """Inject the current ambient LangSmith context into Temporal payload headers. - - Reads ``_get_current_run_for_propagation()`` and injects if present. Returns - headers unchanged if no context is active. Called unconditionally so that - context propagation is independent of the ``add_temporal_runs`` toggle. - """ - current = _get_current_run_for_propagation() - if current is not None: - return _inject_context(headers, current) - return headers - - -def _extract_context( - headers: Mapping[str, Payload], - executor: ThreadPoolExecutor, - ls_client: langsmith.Client, -) -> _ReplaySafeRunTree | None: - """Extract LangSmith context from Temporal payload headers. - - Reconstructs a ``RunTree`` from the ``_temporal-langsmith-context`` header on - the receiving side, wrapped in a :class:`_ReplaySafeRunTree` so inbound - interceptors can establish a parent-child relationship with the sender's - run. Returns ``None`` if no header is present. - """ - header = headers.get(HEADER_KEY) - if not header: - return None - ls_headers = _payload_converter.from_payloads([header])[0] - run = RunTree.from_headers(ls_headers) - if run is None: - return None - run.ls_client = ls_client - return _ReplaySafeRunTree(run, executor=executor) - - -def _inject_nexus_context( - headers: Mapping[str, str], - run_tree: RunTree, -) -> dict[str, str]: - """Inject LangSmith context into Nexus string headers.""" - ls_headers = run_tree.to_headers() - return { - **headers, - HEADER_KEY: json.dumps(ls_headers), - } - - -def _extract_nexus_context( - headers: Mapping[str, str], - executor: ThreadPoolExecutor, - ls_client: langsmith.Client, -) -> _ReplaySafeRunTree | None: - """Extract LangSmith context from Nexus string headers.""" - raw = headers.get(HEADER_KEY) - if not raw: - return None - ls_headers = json.loads(raw) - run = RunTree.from_headers(ls_headers) - if run is None: - return None - run.ls_client = ls_client - return _ReplaySafeRunTree(run, executor=executor) - - -def _get_current_run_for_propagation() -> RunTree | None: - """Get the current ambient run for context propagation. - - Filters out ``_RootReplaySafeRunTreeFactory``, which is internal - scaffolding that should never be serialized into headers or used as - parent runs. - """ - run = get_current_run_tree() - if isinstance(run, _RootReplaySafeRunTreeFactory): - return None - return run - - -# --------------------------------------------------------------------------- -# Workflow event loop safety: override @traceable's aio_to_thread -# --------------------------------------------------------------------------- - -_aio_to_thread_override_installed = False - - -async def _temporal_aio_to_thread( - default_aio_to_thread: Callable[..., Any], - ctx: Any, - func: Callable[..., Any], - /, - *args: Any, - **kwargs: Any, -) -> Any: - """Run LangSmith's ``aio_to_thread`` synchronously inside Temporal workflows. - - The ``@traceable`` decorator on async functions uses ``aio_to_thread()`` → - ``loop.run_in_executor()`` for run setup/teardown. The Temporal workflow - event loop does not support ``run_in_executor``. This override runs those - functions synchronously on the workflow thread when inside a workflow, - and delegates to the default implementation outside workflows. - - Registered via ``langsmith.set_runtime_overrides(aio_to_thread=...)``. - """ - if not temporalio.workflow.in_workflow(): - return await default_aio_to_thread(ctx, func, *args, **kwargs) - with temporalio.workflow.unsafe.sandbox_unrestricted(): - return ctx.run(func, *args, **kwargs) - - -def _install_aio_to_thread_override() -> None: - """Install the ``aio_to_thread`` override via LangSmith's official API. - - Safe to call multiple times; the override is only installed once. - """ - global _aio_to_thread_override_installed # noqa: PLW0603 - if _aio_to_thread_override_installed: - return - langsmith.set_runtime_overrides(aio_to_thread=_temporal_aio_to_thread) - _aio_to_thread_override_installed = True - - -# --------------------------------------------------------------------------- -# Replay safety -# --------------------------------------------------------------------------- - - -def _is_replaying() -> bool: - """Check if we're currently replaying workflow history.""" - return ( - temporalio.workflow.in_workflow() - and temporalio.workflow.unsafe.is_replaying_history_events() - ) - - -def _get_workflow_random() -> random.Random | None: - """Get a deterministic random generator for the current workflow. - - Creates a workflow-safe random generator once via - ``workflow.new_random()`` and stores it on the workflow instance so - subsequent calls return the same generator. The generator is seeded - from the workflow's deterministic seed, so it produces identical UUIDs - across replays and worker restarts. - - Returns ``None`` outside a workflow, in read-only (query) contexts, or - when workflow APIs are mocked (unit tests). - """ - try: - if not temporalio.workflow.in_workflow(): - return None - if temporalio.workflow.unsafe.is_read_only(): - return None - inst = temporalio.workflow.instance() - rng = getattr(inst, "__temporal_langsmith_random", None) - if rng is None: - rng = temporalio.workflow.new_random() - setattr(inst, "__temporal_langsmith_random", rng) - return rng - except Exception: - return None - - -def _uuid_from_random(rng: random.Random) -> uuid.UUID: - """Generate a deterministic UUID4 from a workflow-bound random generator.""" - return uuid.UUID(int=rng.getrandbits(128), version=4) - - -# --------------------------------------------------------------------------- -# _ReplaySafeRunTree wrapper -# --------------------------------------------------------------------------- - - -class _ReplaySafeRunTree(RunTree): - """Wrapper around a ``RunTree`` with replay-safe ``post``, ``end``, and ``patch``. - - Inherits from ``RunTree`` so ``isinstance`` checks pass, but does - **not** call ``super().__init__()``—the wrapped ``_run`` is the real - RunTree. Attribute access is delegated via ``__getattr__``/``__setattr__``. - - During replay, ``post()``, ``end()``, and ``patch()`` become no-ops - (I/O suppression), but ``create_child()`` still runs to maintain - parent-child linkage so ``@traceable``'s ``_setup_run`` can build the - run tree across the replay boundary. In workflow context, ``post()`` - and ``patch()`` submit to a single-worker ``ThreadPoolExecutor`` for - FIFO ordering, avoiding blocking on the workflow task thread. - """ - - def __init__( # pyright: ignore[reportMissingSuperCall] - self, - run_tree: RunTree, - *, - executor: ThreadPoolExecutor, - ) -> None: - """Wrap an existing RunTree with replay-safe overrides.""" - object.__setattr__(self, "_run", run_tree) - object.__setattr__(self, "_executor", executor) - - def __getattr__(self, name: str) -> Any: - """Delegate attribute access to the wrapped RunTree.""" - return getattr(self._run, name) - - def __setattr__(self, name: str, value: Any) -> None: - """Delegate attribute setting to the wrapped RunTree.""" - setattr(self._run, name, value) - - def to_headers(self) -> dict[str, str]: - """Delegate to the wrapped RunTree's to_headers.""" - return self._run.to_headers() - - def _inject_deterministic_ids(self, kwargs: dict[str, Any]) -> None: - """Inject deterministic run_id and start_time in workflow context.""" - if temporalio.workflow.in_workflow(): - if kwargs.get("run_id") is None: - rng = _get_workflow_random() - if rng is not None: - kwargs["run_id"] = _uuid_from_random(rng) - if kwargs.get("start_time") is None: - kwargs["start_time"] = temporalio.workflow.now() - - def create_child(self, *args: Any, **kwargs: Any) -> _ReplaySafeRunTree: - """Create a child run, returning another _ReplaySafeRunTree. - - In workflow context, injects deterministic ``run_id`` and ``start_time`` - unless they are passed in manually via ``kwargs``. - """ - self._inject_deterministic_ids(kwargs) - child_run = self._run.create_child(*args, **kwargs) - return _ReplaySafeRunTree(child_run, executor=self._executor) - - def _submit(self, fn: Callable[..., object], *args: Any, **kwargs: Any) -> None: - """Submit work to the background executor.""" - - def _log_future_exception(future: Future[None]) -> None: - exc = future.exception() - if exc is not None: - logger.error("LangSmith background I/O error: %s", exc) - - future = self._executor.submit(fn, *args, **kwargs) - future.add_done_callback(_log_future_exception) - - def post(self, exclude_child_runs: bool = True) -> None: - """Post the run to LangSmith, skipping during replay.""" - if temporalio.workflow.in_workflow(): - if _is_replaying(): - return - self._submit(self._run.post, exclude_child_runs=exclude_child_runs) - else: - self._run.post(exclude_child_runs=exclude_child_runs) - - def end(self, **kwargs: Any) -> None: - """End the run, skipping during replay. - - Pre-computes ``end_time`` via ``workflow.now()`` in workflow context - so ``RunTree.end()`` doesn't call ``datetime.now()`` (non-deterministic - and sandbox-restricted). - """ - if _is_replaying(): - return - if temporalio.workflow.in_workflow(): - kwargs.setdefault("end_time", temporalio.workflow.now()) - self._run.end(**kwargs) - - def patch(self, *, exclude_inputs: bool = False) -> None: - """Patch the run to LangSmith, skipping during replay.""" - if temporalio.workflow.in_workflow(): - if _is_replaying(): - return - self._submit(self._run.patch, exclude_inputs=exclude_inputs) - else: - self._run.patch(exclude_inputs=exclude_inputs) - - -class _RootReplaySafeRunTreeFactory(_ReplaySafeRunTree): - """Factory that produces independent root ``_ReplaySafeRunTree`` instances with no parent link. - - When ``add_temporal_runs=False`` and no parent was propagated via headers, - ``@traceable`` functions still need *something* in the LangSmith - ``tracing_context`` to call ``create_child()`` on — otherwise they - cannot create ``_ReplaySafeRunTree`` children at all and instead default to - creating generic ``RunTree``s, which are not replay safe. This class fills - that role: it sits in the context as the nominal parent so - ``@traceable`` has a ``create_child()`` target. - - However, ``create_child()`` deliberately creates fresh ``RunTree`` - instances with **no** ``parent_run_id``. This means every child appears - as an independent root run in LangSmith rather than being nested under - a phantom parent that was never meant to be visible. - - ``post()``, ``patch()``, and ``end()`` all raise ``RuntimeError`` - because this object is purely internal scaffolding — it must never - appear in LangSmith. If any of these methods are called, it indicates - a programming error. - """ - - def __init__( # pyright: ignore[reportMissingSuperCall] - self, - *, - ls_client: langsmith.Client, - executor: ThreadPoolExecutor, - session_name: str | None = None, - replicas: Sequence[WriteReplica] | None = None, - ) -> None: - """Create a root factory with the given LangSmith client.""" - # Create a minimal RunTree for the factory — it will never be posted - factory_run = RunTree( - name="__root_factory__", - run_type="chain", - ls_client=ls_client, - ) - if session_name is not None: - factory_run.session_name = session_name - if replicas is not None: - factory_run.replicas = replicas - object.__setattr__(self, "_run", factory_run) - object.__setattr__(self, "_executor", executor) - - def post(self, exclude_child_runs: bool = True) -> NoReturn: - """Factory must never be posted.""" - raise RuntimeError("_RootReplaySafeRunTreeFactory must never be posted") - - def patch(self, *, exclude_inputs: bool = False) -> NoReturn: - """Factory must never be patched.""" - raise RuntimeError("_RootReplaySafeRunTreeFactory must never be patched") - - def end(self, **kwargs: Any) -> NoReturn: - """Factory must never be ended.""" - raise RuntimeError("_RootReplaySafeRunTreeFactory must never be ended") - - def create_child(self, *args: Any, **kwargs: Any) -> _ReplaySafeRunTree: - """Create a root _ReplaySafeRunTree (no parent_run_id). - - Creates a fresh ``RunTree(...)`` directly (bypassing - ``self._run.create_child``) so children are independent root runs - with no link back to the factory. - """ - self._inject_deterministic_ids(kwargs) - - # RunTree expects "id", but callers pass "run_id". RunTree.create_child - # also does the same mapping internally. - if "run_id" in kwargs: - kwargs["id"] = kwargs.pop("run_id") - - # Inherit ls_client and session_name from factory. - # session_name must be passed at construction time. - kwargs.setdefault("ls_client", self._run.ls_client) - kwargs.setdefault("session_name", self._run.session_name) - - child_run = RunTree(*args, **kwargs) - # Replicas must be set post-construction - if self._run.replicas is not None: - child_run.replicas = self._run.replicas - return _ReplaySafeRunTree(child_run, executor=self._executor) - - -# --------------------------------------------------------------------------- -# _maybe_run context manager -# --------------------------------------------------------------------------- - - -def _is_benign_error(exc: Exception) -> bool: - """Check if an exception is a benign ApplicationError.""" - return ( - isinstance(exc, ApplicationError) - and getattr(exc, "category", None) == ApplicationErrorCategory.BENIGN - ) - - -@contextmanager -def _maybe_run( - client: langsmith.Client, - name: str, - *, - add_temporal_runs: bool, - run_type: str = "chain", - inputs: dict[str, Any] | None = None, - metadata: dict[str, Any] | None = None, - tags: list[str] | None = None, - parent: RunTree | None = None, - project_name: str | None = None, - executor: ThreadPoolExecutor, -) -> Iterator[None]: - """Create a LangSmith run, handling errors. - - - If add_temporal_runs is False **or** ``langsmith.utils.tracing_is_enabled()`` - returns False, yields None (no run created). - Context propagation is handled unconditionally by callers. - - When a run IS created, uses :class:`_ReplaySafeRunTree` for - replay and event loop safety, then sets it as ambient context via - ``tracing_context(parent=run_tree)`` so ``get_current_run_tree()`` - returns it and ``_inject_current_context()`` can inject it. - - On exception: marks run as errored (unless benign ApplicationError), re-raises. - - Note on ``tracing_is_enabled()`` and cross-process traces: - ``tracing_is_enabled()`` checks for an active run tree in context - *before* consulting the ``LANGSMITH_TRACING`` env var (langsmith - semantics). If a parent run is propagated into this worker via - headers from an upstream tracer, tracing continues regardless of - ``LANGSMITH_TRACING=false``. This matches langsmith's "continue - mid-trace" model: the env var suppresses *new* local traces but - does not break an inbound parent trace. - - Args: - client: LangSmith client instance. - name: Display name for the run. - add_temporal_runs: Whether to create Temporal-level trace runs. - run_type: LangSmith run type (default ``"chain"``). - inputs: Input data to record on the run. - metadata: Extra metadata to attach to the run. - tags: Tags to attach to the run. - parent: Parent run for nesting. - project_name: LangSmith project name override. - executor: ThreadPoolExecutor for background I/O. - """ - if not add_temporal_runs or not langsmith.utils.tracing_is_enabled(): - yield None - return - - # If no explicit parent, inherit from ambient @traceable context - if parent is None: - parent = _get_current_run_for_propagation() - - run_tree_args: dict[str, Any] = dict( - name=name, - run_type=run_type, - inputs=inputs or {}, - ls_client=client, - ) - # Deterministic IDs so replayed workflows produce identical runs - # instead of duplicates (see _get_workflow_random for details). - rng = _get_workflow_random() - # In read-only contexts (queries, update validators), _get_workflow_random() - # returns None. Deterministic IDs aren't needed — these aren't replayed. - # LangSmith will auto-generate a random UUID. - if rng is not None: - run_tree_args["id"] = _uuid_from_random(rng) - run_tree_args["start_time"] = temporalio.workflow.now() - if project_name is not None: - run_tree_args["project_name"] = project_name - if parent is not None: - run_tree_args["parent_run"] = parent - if metadata: - run_tree_args["extra"] = {"metadata": metadata} - if tags: - run_tree_args["tags"] = tags - run_tree = _ReplaySafeRunTree(RunTree(**run_tree_args), executor=executor) - run_tree.post() - try: - with tracing_context(parent=run_tree, client=client): - yield None - except Exception as exc: - if not _is_benign_error(exc): - run_tree.end(error=f"{type(exc).__name__}: {exc}") - run_tree.patch() - raise - else: - run_tree.end(outputs={"status": "ok"}) - run_tree.patch() - - -# --------------------------------------------------------------------------- -# LangSmithInterceptor -# --------------------------------------------------------------------------- - - -class LangSmithInterceptor( - temporalio.client.Interceptor, temporalio.worker.Interceptor -): - """Interceptor that supports client and worker LangSmith run creation - and context propagation. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - """ - - def __init__( - self, - *, - client: langsmith.Client | None = None, - project_name: str | None = None, - add_temporal_runs: bool = False, - default_metadata: dict[str, Any] | None = None, - default_tags: list[str] | None = None, - ) -> None: - """Initialize the LangSmith interceptor with tracing configuration.""" - super().__init__() - if client is None: - client = langsmith.Client() - self._client = client - self._project_name = project_name - self._add_temporal_runs = add_temporal_runs - self._default_metadata = default_metadata or {} - self._default_tags = default_tags or [] - self._executor = ThreadPoolExecutor(max_workers=1) - - @contextmanager - def maybe_run( - self, - name: str, - *, - run_type: str = "chain", - parent: RunTree | None = None, - extra_metadata: dict[str, Any] | None = None, - ) -> Iterator[None]: - """Create a LangSmith run with this interceptor's config already applied.""" - metadata = {**self._default_metadata, **(extra_metadata or {})} - with _maybe_run( - self._client, - name, - add_temporal_runs=self._add_temporal_runs, - run_type=run_type, - metadata=metadata, - tags=list(self._default_tags), - parent=parent, - executor=self._executor, - project_name=self._project_name, - ) as run: - yield run - - def intercept_client( - self, next: temporalio.client.OutboundInterceptor - ) -> temporalio.client.OutboundInterceptor: - """Create a client outbound interceptor for LangSmith tracing.""" - return _LangSmithClientOutboundInterceptor(next, self) - - def intercept_activity( - self, next: temporalio.worker.ActivityInboundInterceptor - ) -> temporalio.worker.ActivityInboundInterceptor: - """Create an activity inbound interceptor for LangSmith tracing.""" - return _LangSmithActivityInboundInterceptor(next, self) - - def workflow_interceptor_class( - self, input: temporalio.worker.WorkflowInterceptorClassInput - ) -> type[_LangSmithWorkflowInboundInterceptor]: - """Return the workflow interceptor class with config bound.""" - _install_aio_to_thread_override() - config = self - - class InterceptorWithConfig(_LangSmithWorkflowInboundInterceptor): - _config = config - - return InterceptorWithConfig - - def intercept_nexus_operation( - self, next: temporalio.worker.NexusOperationInboundInterceptor - ) -> temporalio.worker.NexusOperationInboundInterceptor: - """Create a Nexus operation inbound interceptor for LangSmith tracing.""" - return _LangSmithNexusOperationInboundInterceptor(next, self) - - -# --------------------------------------------------------------------------- -# Client Outbound Interceptor -# --------------------------------------------------------------------------- - - -class _LangSmithClientOutboundInterceptor(temporalio.client.OutboundInterceptor): - """Instruments all client-side calls with LangSmith runs.""" - - def __init__( - self, - next: temporalio.client.OutboundInterceptor, - config: LangSmithInterceptor, - ) -> None: - super().__init__(next) - self._config = config - - @contextmanager - def _traced_call(self, name: str, input: _InputWithHeaders) -> Iterator[None]: - """Wrap a client call with a LangSmith run and inject context into headers.""" - with self._config.maybe_run(name): - input.headers = _inject_current_context(input.headers) - yield - - @contextmanager - def _traced_start(self, name: str, input: _InputWithHeaders) -> Iterator[None]: - """Wrap a start operation, injecting ambient parent context before creating the run. - - Unlike ``_traced_call``, this injects headers *before* ``maybe_run`` - so the downstream ``RunFoo`` becomes a sibling of ``StartFoo`` rather - than a child. - """ - input.headers = _inject_current_context(input.headers) - with self._config.maybe_run(name): - yield - - async def start_workflow( - self, input: temporalio.client.StartWorkflowInput - ) -> temporalio.client.WorkflowHandle[Any, Any]: - prefix = "SignalWithStartWorkflow" if input.start_signal else "StartWorkflow" - with self._traced_start(f"{prefix}:{input.workflow}", input): - return await super().start_workflow(input) - - async def query_workflow(self, input: temporalio.client.QueryWorkflowInput) -> Any: - with self._traced_call(f"QueryWorkflow:{input.query}", input): - return await super().query_workflow(input) - - async def signal_workflow( - self, input: temporalio.client.SignalWorkflowInput - ) -> None: - with self._traced_call(f"SignalWorkflow:{input.signal}", input): - return await super().signal_workflow(input) - - async def start_workflow_update( - self, input: temporalio.client.StartWorkflowUpdateInput - ) -> temporalio.client.WorkflowUpdateHandle[Any]: - with self._traced_call(f"StartWorkflowUpdate:{input.update}", input): - return await super().start_workflow_update(input) - - async def start_update_with_start_workflow( - self, input: temporalio.client.StartWorkflowUpdateWithStartInput - ) -> temporalio.client.WorkflowUpdateHandle[Any]: - input.start_workflow_input.headers = _inject_current_context( - input.start_workflow_input.headers - ) - input.update_workflow_input.headers = _inject_current_context( - input.update_workflow_input.headers - ) - with self._config.maybe_run( - f"StartUpdateWithStartWorkflow:{input.start_workflow_input.workflow}", - ): - return await super().start_update_with_start_workflow(input) - - -# --------------------------------------------------------------------------- -# Activity Inbound Interceptor -# --------------------------------------------------------------------------- - - -class _LangSmithActivityInboundInterceptor( - temporalio.worker.ActivityInboundInterceptor -): - """Instruments activity execution with LangSmith runs.""" - - def __init__( - self, - next: temporalio.worker.ActivityInboundInterceptor, - config: LangSmithInterceptor, - ) -> None: - super().__init__(next) - self._config = config - - async def execute_activity( - self, input: temporalio.worker.ExecuteActivityInput - ) -> Any: - parent = _extract_context( - input.headers, self._config._executor, self._config._client - ) - info = temporalio.activity.info() - extra_metadata = { - "temporalWorkflowID": info.workflow_id or "", - "temporalRunID": info.workflow_run_id or "", - "temporalActivityID": info.activity_id or "", - } - tracing_args: dict[str, Any] = { - "client": self._config._client, - "project_name": self._config._project_name, - "parent": parent, - } - with tracing_context(**tracing_args): - with self._config.maybe_run( - f"RunActivity:{info.activity_type}", - run_type="tool", - parent=parent, - extra_metadata=extra_metadata, - ): - return await super().execute_activity(input) - - -# --------------------------------------------------------------------------- -# Workflow Inbound Interceptor -# --------------------------------------------------------------------------- - - -class _LangSmithWorkflowInboundInterceptor( - temporalio.worker.WorkflowInboundInterceptor -): - """Instruments workflow execution with LangSmith runs.""" - - _config: ClassVar[LangSmithInterceptor] - - def init(self, outbound: temporalio.worker.WorkflowOutboundInterceptor) -> None: - super().init(_LangSmithWorkflowOutboundInterceptor(outbound, self._config)) - - @contextmanager - def _workflow_maybe_run( - self, - name: str, - headers: Mapping[str, Payload] | None = None, - ) -> Iterator[None]: - """Workflow-specific run creation with metadata. - - Extracts parent from headers (if provided) and sets up - ``tracing_context`` so ``@traceable`` functions called from workflow - code can discover the parent and LangSmith client, independent of the - ``add_temporal_runs`` toggle. - """ - parent = ( - _extract_context(headers, self._config._executor, self._config._client) - if headers - else None - ) - # When add_temporal_runs=False and no external parent, create a - # _RootReplaySafeRunTreeFactory so @traceable calls get a - # _ReplaySafeRunTree parent via create_child. The factory is - # invisible in LangSmith. - # tracing_parent can be None when add_temporal_runs=True but no parent was - # propagated via headers — maybe_run will later create a root run in that case. - tracing_parent: _ReplaySafeRunTree | _RootReplaySafeRunTreeFactory | None = ( - parent - if parent is not None or self._config._add_temporal_runs - else _RootReplaySafeRunTreeFactory( - ls_client=self._config._client, - executor=self._config._executor, - session_name=self._config._project_name, - ) - ) - tracing_args: dict[str, Any] = { - "client": self._config._client, - "project_name": self._config._project_name, - "parent": tracing_parent, - } - info = temporalio.workflow.info() - extra_metadata = { - "temporalWorkflowID": info.workflow_id, - "temporalRunID": info.run_id, - } - with tracing_context(**tracing_args): - with self._config.maybe_run( - name, - parent=parent, - extra_metadata=extra_metadata, - ) as run: - yield run - - async def execute_workflow( - self, input: temporalio.worker.ExecuteWorkflowInput - ) -> Any: - wf_type = temporalio.workflow.info().workflow_type - with self._workflow_maybe_run( - f"RunWorkflow:{wf_type}", - input.headers, - ): - return await super().execute_workflow(input) - - async def handle_signal(self, input: temporalio.worker.HandleSignalInput) -> None: - with self._workflow_maybe_run(f"HandleSignal:{input.signal}", input.headers): - return await super().handle_signal(input) - - async def handle_query(self, input: temporalio.worker.HandleQueryInput) -> Any: - if input.query.startswith("__temporal") or input.query in _BUILTIN_QUERIES: - return await super().handle_query(input) - with self._workflow_maybe_run(f"HandleQuery:{input.query}", input.headers): - return await super().handle_query(input) - - def handle_update_validator( - self, input: temporalio.worker.HandleUpdateInput - ) -> None: - with self._workflow_maybe_run(f"ValidateUpdate:{input.update}", input.headers): - return super().handle_update_validator(input) - - async def handle_update_handler( - self, input: temporalio.worker.HandleUpdateInput - ) -> Any: - with self._workflow_maybe_run(f"HandleUpdate:{input.update}", input.headers): - return await super().handle_update_handler(input) - - -# --------------------------------------------------------------------------- -# Workflow Outbound Interceptor -# --------------------------------------------------------------------------- - - -class _LangSmithWorkflowOutboundInterceptor( - temporalio.worker.WorkflowOutboundInterceptor -): - """Instruments all outbound calls from workflow code.""" - - def __init__( - self, - next: temporalio.worker.WorkflowOutboundInterceptor, - config: LangSmithInterceptor, - ) -> None: - super().__init__(next) - self._config = config - - @contextmanager - def _traced_outbound(self, name: str, input: _InputWithHeaders) -> Iterator[None]: - """Outbound workflow run creation with context injection into input.headers. - - Uses ambient context so ``@traceable`` step functions that wrap - outbound calls correctly parent the outbound run under themselves. - """ - context_source = _get_current_run_for_propagation() - with self._config.maybe_run(name): - if context_source: - input.headers = _inject_context(input.headers, context_source) - yield None - - def start_activity( - self, input: temporalio.worker.StartActivityInput - ) -> temporalio.workflow.ActivityHandle[Any]: - with self._traced_outbound(f"StartActivity:{input.activity}", input): - return super().start_activity(input) - - def start_local_activity( - self, input: temporalio.worker.StartLocalActivityInput - ) -> temporalio.workflow.ActivityHandle[Any]: - with self._traced_outbound(f"StartActivity:{input.activity}", input): - return super().start_local_activity(input) - - async def start_child_workflow( - self, input: temporalio.worker.StartChildWorkflowInput - ) -> temporalio.workflow.ChildWorkflowHandle[Any, Any]: - with self._traced_outbound(f"StartChildWorkflow:{input.workflow}", input): - return await super().start_child_workflow(input) - - async def signal_child_workflow( - self, input: temporalio.worker.SignalChildWorkflowInput - ) -> None: - with self._traced_outbound(f"SignalChildWorkflow:{input.signal}", input): - return await super().signal_child_workflow(input) - - async def signal_external_workflow( - self, input: temporalio.worker.SignalExternalWorkflowInput - ) -> None: - with self._traced_outbound(f"SignalExternalWorkflow:{input.signal}", input): - return await super().signal_external_workflow(input) - - def continue_as_new(self, input: temporalio.worker.ContinueAsNewInput) -> NoReturn: - # No trace created, but inject context from ambient run - current_run = _get_current_run_for_propagation() - if current_run: - input.headers = _inject_context(input.headers, current_run) - super().continue_as_new(input) - - async def start_nexus_operation( - self, input: temporalio.worker.StartNexusOperationInput[Any, Any] - ) -> temporalio.workflow.NexusOperationHandle[Any]: - context_source = _get_current_run_for_propagation() - with self._config.maybe_run( - f"StartNexusOperation:{input.service}/{input.operation_name}", - ): - if context_source: - input.headers = _inject_nexus_context( - input.headers or {}, context_source - ) - return await super().start_nexus_operation(input) - - -# --------------------------------------------------------------------------- -# Nexus Operation Inbound Interceptor -# --------------------------------------------------------------------------- - - -class _LangSmithNexusOperationInboundInterceptor( - temporalio.worker.NexusOperationInboundInterceptor -): - """Instruments Nexus operations with LangSmith runs.""" - - def __init__( - self, - next: temporalio.worker.NexusOperationInboundInterceptor, - config: LangSmithInterceptor, - ) -> None: - super().__init__(next) - self._config = config - - async def execute_nexus_operation_start( - self, input: temporalio.worker.ExecuteNexusOperationStartInput - ) -> ( - nexusrpc.handler.StartOperationResultSync[Any] - | nexusrpc.handler.StartOperationResultAsync - ): - parent = _extract_nexus_context( - input.ctx.headers, self._config._executor, self._config._client - ) - tracing_args: dict[str, Any] = { - "client": self._config._client, - "project_name": self._config._project_name, - "parent": parent, - } - with tracing_context(**tracing_args): - with self._config.maybe_run( - f"RunStartNexusOperationHandler:{input.ctx.service}/{input.ctx.operation}", - run_type="tool", - parent=parent, - ): - return await self.next.execute_nexus_operation_start(input) - - async def execute_nexus_operation_cancel( - self, input: temporalio.worker.ExecuteNexusOperationCancelInput - ) -> None: - parent = _extract_nexus_context( - input.ctx.headers, self._config._executor, self._config._client - ) - tracing_args: dict[str, Any] = { - "client": self._config._client, - "project_name": self._config._project_name, - "parent": parent, - } - with tracing_context(**tracing_args): - with self._config.maybe_run( - f"RunCancelNexusOperationHandler:{input.ctx.service}/{input.ctx.operation}", - run_type="tool", - parent=parent, - ): - return await self.next.execute_nexus_operation_cancel(input) diff --git a/temporalio/contrib/langsmith/_plugin.py b/temporalio/contrib/langsmith/_plugin.py deleted file mode 100644 index cb2333ff1..000000000 --- a/temporalio/contrib/langsmith/_plugin.py +++ /dev/null @@ -1,93 +0,0 @@ -"""LangSmith plugin for Temporal SDK.""" - -from __future__ import annotations - -import dataclasses -from collections.abc import AsyncIterator -from contextlib import asynccontextmanager -from typing import Any - -import langsmith - -# langsmith conditionally imports langchain_core when it is installed. -# Pre-import the lazily-loaded submodule so it is in sys.modules before the -# workflow sandbox starts; otherwise the sandbox's __getattr__-triggered -# import hits restrictions on concurrent.futures.ThreadPoolExecutor. -try: - import langchain_core.runnables.config # noqa: F401 # pyright: ignore[reportUnusedImport] -except ImportError: - pass - -from temporalio.contrib.langsmith._interceptor import LangSmithInterceptor -from temporalio.plugin import SimplePlugin -from temporalio.worker import WorkflowRunner -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner - - -class LangSmithPlugin(SimplePlugin): - """LangSmith tracing plugin for Temporal SDK. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - Provides automatic LangSmith run creation for workflows, activities, - and other Temporal operations with context propagation. - """ - - def __init__( - self, - *, - client: langsmith.Client | None = None, - project_name: str | None = None, - add_temporal_runs: bool = False, - default_metadata: dict[str, Any] | None = None, - default_tags: list[str] | None = None, - ) -> None: - """Initialize the LangSmith plugin. - - Args: - client: A langsmith.Client instance. If None, one will be created - automatically (using LANGSMITH_API_KEY env var). - project_name: LangSmith project name for traces. - add_temporal_runs: Whether to create LangSmith runs for Temporal - operations. Defaults to False. - default_metadata: Default metadata to attach to all runs. - default_tags: Default tags to attach to all runs. - """ - interceptor = LangSmithInterceptor( - client=client, - project_name=project_name, - add_temporal_runs=add_temporal_runs, - default_metadata=default_metadata, - default_tags=default_tags, - ) - interceptors = [interceptor] - - def workflow_runner(runner: WorkflowRunner | None) -> WorkflowRunner: - if not runner: - raise ValueError("No WorkflowRunner provided to the LangSmith plugin.") - if isinstance(runner, SandboxedWorkflowRunner): - return dataclasses.replace( - runner, - restrictions=runner.restrictions.with_passthrough_modules( - "langsmith", - "langchain_core", - "opentelemetry", - ), - ) - return runner - - @asynccontextmanager - async def run_context() -> AsyncIterator[None]: - try: - yield - finally: - interceptor._client.flush() - - super().__init__( - "langchain.LangSmithPlugin", - interceptors=interceptors, - workflow_runner=workflow_runner, - run_context=run_context, - ) diff --git a/temporalio/contrib/langsmith/images/langsmith-no-temporal.png b/temporalio/contrib/langsmith/images/langsmith-no-temporal.png deleted file mode 100644 index 037e0d9ba..000000000 Binary files a/temporalio/contrib/langsmith/images/langsmith-no-temporal.png and /dev/null differ diff --git a/temporalio/contrib/langsmith/images/langsmith-with-crash-no-temporal.png b/temporalio/contrib/langsmith/images/langsmith-with-crash-no-temporal.png deleted file mode 100644 index 9a84c5dbe..000000000 Binary files a/temporalio/contrib/langsmith/images/langsmith-with-crash-no-temporal.png and /dev/null differ diff --git a/temporalio/contrib/langsmith/images/langsmith-with-temporal.png b/temporalio/contrib/langsmith/images/langsmith-with-temporal.png deleted file mode 100644 index fc4c4a76a..000000000 Binary files a/temporalio/contrib/langsmith/images/langsmith-with-temporal.png and /dev/null differ diff --git a/temporalio/contrib/langsmith/images/temporal-ui.png b/temporalio/contrib/langsmith/images/temporal-ui.png deleted file mode 100644 index 55ee90970..000000000 Binary files a/temporalio/contrib/langsmith/images/temporal-ui.png and /dev/null differ diff --git a/temporalio/contrib/openai_agents/README.md b/temporalio/contrib/openai_agents/README.md index 2266e38a7..8cd45c5e5 100644 --- a/temporalio/contrib/openai_agents/README.md +++ b/temporalio/contrib/openai_agents/README.md @@ -1,1106 +1,39 @@ -# OpenAI Agents SDK Integration for Temporal +# OpenAI Agents SDK integration -We welcome questions and feedback in the [#python-sdk](https://temporalio.slack.com/archives/CTT84RS0P) Slack channel at [temporalio.slack.com](https://temporalio.slack.com/). +The OpenAI Agents integration has moved to the independently versioned +[`temporalio-openai-agents`](https://pypi.org/project/temporalio-openai-agents/) +package. Its canonical Python API is `temporalio.openai_agents`. -## Introduction +The complete integration guide now lives in the +[`temporalio-openai-agents` README](https://github.com/temporalio/ai-integrations/tree/main/python/openai_agents#readme). -This integration combines [OpenAI Agents SDK](https://github.com/openai/openai-agents-python) with [Temporal's durable execution](https://docs.temporal.io/evaluate/understanding-temporal#durable-execution). -It allows you to build durable agents that never lose their progress and handle long-running, asynchronous, and human-in-the-loop workflows with production-grade reliability. +## Migrating to the standalone package -Temporal and OpenAI Agents SDK are complementary technologies, both of which contribute to simplifying what it takes to build highly capable, high-quality AI systems. -Temporal provides a crash-proof system foundation, taking care of the distributed systems challenges inherent to production agentic systems. -OpenAI Agents SDK offers a lightweight yet powerful framework for defining those agents. +Remove the `openai-agents` extra from the existing Temporal dependency: -This document is organized as follows: - -- **[Hello World Durable Agent](#hello-world-durable-agent).** Your first durable agent example. -- **[Background Concepts](#core-concepts).** Background on durable execution and AI agents. -- **[Full Example](#full-example)** Running the Hello World Durable Agent example. -- **[Tool Calling](#tool-calling).** Calling agent Tools in Temporal. -- **[Sandbox Support](#sandbox-support).** Running sandbox agents in Temporal. -- **[Feature Support](#feature-support).** Compatibility matrix. - -The [samples repository](https://github.com/temporalio/samples-python/tree/main/openai_agents) contains examples including basic usage, common agent patterns, and more complete samples. - -## Hello World Durable Agent - -The code below shows how to wrap an agent for durable execution. - -### File 1: Durable Agent (`hello_world.py`) - -```python -from temporalio import workflow -from agents import Agent, Runner - -@workflow.defn -class HelloWorldAgent: - @workflow.run - async def run(self, prompt: str) -> str: - agent = Agent( - name="Assistant", - instructions="You only respond in haikus.", - ) - - result = await Runner.run(agent, input=prompt) - return result.final_output -``` - -In this example, Temporal provides the durable execution wrapper: the `HelloWorldAgent.run` method. -The content of that method, is regular OpenAI Agents SDK code. - -If you are familiar with Temporal and with Open AI Agents SDK, this code will look very familiar. -The `@workflow.defn` annotation on the `HelloWorldAgent` indicates that this class will contain durable execution logic. The `@workflow.run` annotation defines the entry point. -We use the `Agent` class from OpenAI Agents SDK to define a simple agent, instructing it to always respond with haikus. -We then run that agent, using the `Runner` class from OpenAI Agents SDK, passing through `prompt` as an argument. - -We will [complete this example below](#full-example). -Before digging further into the code, we will review some background that will make it easier to understand. - -## Background Concepts - -We encourage you to review this section thoroughly to gain a solid understanding of AI agents and durable execution with Temporal. -This knowledge will make it easier to design and build durable agents. -If you are already well versed in these topics, feel free to skim this section or skip ahead. - -### AI Agents - -In the OpenAI Agents SDK, an agent is an AI model configured with instructions, tools, MCP servers, guardrails, handoffs, context, and more. - -We describe each of these briefly: - -- _AI model_. An LLM such as OpenAI's GPT, Google's Gemini, or one of many others. -- _Instructions_. Also known as a system prompt, the instructions contain the initial input to the model, which configures it for the job it will do. -- _Tools_. Typically, Python functions that the model may choose to invoke. Tools are functions with text-descriptions that explain their functionality to the model. -- _MCP servers_. Best known for providing tools, MCP offers a pluggable standard for interoperability, including file-like resources, prompt templates, and human approvals. MCP servers may be accessed over the network or run in a local process. -- _Guardrails_. Checks on the input or the output of an agent to ensure compliance or safety. Guardrails may be implemented as regular code or as AI agents. -- _Handoffs_. A handoff occurs when an agent delegates a task to another agent. During a handoff the conversation history remains the same, and passes to a new agent with its own model, instructions, tools. -- _Context_. This is an overloaded term. Here, context refers to a framework object that is shared across tools and other code, but is not passed to the model. - -Now, let's see how these components work together. -In a common pattern, the model first receives user input and then reasons about which tool to invoke. -The tool's response is passed back to the model, which may call additional tools, repeating this loop until the task is complete. - -The diagram below illustrates this flow. - -```text - +-------------------+ - | User Input | - +-------------------+ - | - v - +---------------------+ - | Reasoning (Model) | <--+ - +---------------------+ | - | | - (decides which action) | - v | - +---------------------+ | - | Action | | - | (e.g., use a Tool) | | - +---------------------+ | - | | - v | - +---------------------+ | - | Observation | | - | (Tool Output) | | - +---------------------+ | - | | - +----------------+ - (loop: uses new info to reason - again, until task is complete) -``` - -Even in a simple example like this, there are many places where things can go wrong. -Tools call APIs that sometimes fail, while models can encounter rate limits, requiring retries. -The longer the agent runs, the more costly it is to start the job over. -We next describe durable execution, which handles such failures seamlessly. - -### Durable Execution - -In Temporal's durable execution implementation, a program that crashes or encounters an exception while interacting with a model or API will retry until it can successfully complete. - -Temporal relies primarily on a replay mechanism to recover from failures. -As the program makes progress, Temporal saves key inputs and decisions, allowing a re-started program to pick up right where it left off. - -The key to making this work is to separate the applications repeatable (deterministic) and non-repeatable (non-deterministic) parts: - -1. Deterministic pieces, termed _workflows_, execute the same way when re-run with the same inputs. -2. Non-deterministic pieces, termed _activities_, can run arbitrary code, performing I/O and any other operations. - -Workflow code can run for extended periods and, if interrupted, resume exactly where it left off. -Activity code faces no restrictions on I/O or external interactions, but if it fails part-way through it restarts from the beginning. - -In this integration, model invocations are automatically routed through Temporal activities, while the logic that coordinates them lives in the workflow. -Tools that perform I/O or other non-deterministic work should run as Temporal activities, while deterministic, workflow-safe tools can run directly in the workflow. -This pattern generalizes to more sophisticated agents. -We refer to the coordinating logic as _agent orchestration_. - -The diagram below shows the overall architecture of an agentic application in Temporal. -The Temporal Server is responsible to tracking program execution and making sure associated state is preserved reliably (i.e., stored to a database, possibly replicated across cloud regions). -Temporal Server manages data in encrypted form, so all data processing occurs on the Worker, which runs the workflow and activities. - -```text - +---------------------+ - | Temporal Server | (Stores workflow state, - +---------------------+ schedules activities, - ^ persists progress) - | - Save state, | Schedule Tasks, - progress, | load state on resume - timeouts | - | -+------------------------------------------------------+ -| Worker | -| +----------------------------------------------+ | -| | Workflow Code | | -| | (Agent orchestration + deterministic tools) | | -| +----------------------------------------------+ | -| | | | | -| v v v | -| +-----------+ +-----------+ +-------------+ | -| | Activity | | Activity | | Activity | | -| | (I/O Tool | | (I/O Tool | | (Model API) | | -| | 1) | | 2) | | | | -| +-----------+ +-----------+ +-------------+ | -| | | | | -+------------------------------------------------------+ - | | | - v v v - [External APIs, services, databases, etc.] -``` - -See the [Temporal documentation](https://docs.temporal.io/evaluate/understanding-temporal#temporal-application-the-building-blocks) for more information. - -## Complete Example - -To make the [Hello World durable agent](#hello-world-durable-agent) shown earlier available in Temporal, we need to create a worker program. -To see it run, we also need a client to launch it. -We show these files below. - -### File 2: Launch Worker (`run_worker.py`) - -```python -# File: run_worker.py - -import asyncio -from datetime import timedelta - -from temporalio.client import Client -from temporalio.contrib.openai_agents import OpenAIAgentsPlugin, ModelActivityParameters -from temporalio.worker import Worker - -from hello_world_workflow import HelloWorldAgent - - -async def worker_main(): - # Use the plugin to configure Temporal for use with OpenAI Agents SDK - client = await Client.connect( - "localhost:7233", - plugins=[ - OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30) - ) - ), - ], - ) - - worker = Worker( - client, - task_queue="my-task-queue", - workflows=[HelloWorldAgent], - ) - await worker.run() - - -if __name__ == "__main__": - asyncio.run(worker_main()) -``` - -We use the `OpenAIAgentsPlugin` to configure Temporal for use with OpenAI Agents SDK. -The plugin automatically handles several important setup tasks: - -- Ensures proper serialization of Pydantic types -- Propagates context for [OpenAI Agents tracing](https://openai.github.io/openai-agents-python/tracing/). -- Registers an activity for invoking model calls with the Temporal worker. -- Configures OpenAI Agents SDK to run model calls as Temporal activities. - -### File 3: Client Execution (`run_hello_world_workflow.py`) - -```python -# File: run_hello_world_workflow.py - -import asyncio - -from temporalio.client import Client -from temporalio.common import WorkflowIDReusePolicy -from temporalio.contrib.openai_agents import OpenAIAgentsPlugin - -from hello_world_workflow import HelloWorldAgent - -async def main(): - # Create client connected to server at the given address - client = await Client.connect( - "localhost:7233", - plugins=[OpenAIAgentsPlugin()], - ) - - # Execute a workflow - result = await client.execute_workflow( - HelloWorldAgent.run, - "Tell me about recursion in programming.", - id="my-workflow-id", - task_queue="my-task-queue", - id_reuse_policy=WorkflowIDReusePolicy.ALLOW_DUPLICATE, - id_conflict_policy=WorkflowIDConflictPolicy.TERMINATE_EXISTING, - ) - print(f"Result: {result}") - -if __name__ == "__main__": - asyncio.run(main()) -``` - -This file is a standard Temporal launch script. -We also configure the client with the `OpenAIAgentsPlugin` to ensure serialization is compatible with the worker. - -To run this example, see the detailed instructions in the [Temporal Python Samples Repository](https://github.com/temporalio/samples-python/tree/main/openai_agents). - -## Tool Calling - -Model invocations are automatically routed through Temporal activities. -OpenAI-hosted tools are passed through the model invocation and executed by the model provider. -User-defined `FunctionTool`s, including tools created with `@function_tool`, are not automatically converted into Temporal activities; they execute in the workflow unless explicitly backed by a Temporal activity. -Where a tool executes depends on how it is defined: - -| Tool | Execution | Use for | -| --- | --- | --- | -| `activity_as_tool()` | Temporal activity | External I/O and non-deterministic operations | -| `FunctionTool` / `@function_tool` | Workflow | Deterministic, workflow-safe computation | -| OpenAI-hosted tool | Model provider | Provider-hosted features executed as part of the model invocation | - -### Temporal Activities as OpenAI Agents Tools - -One of the powerful features of this integration is the ability to convert Temporal activities into agent tools using `activity_as_tool`. -This allows your agent to leverage Temporal's durable execution for tool calls. -`activity_as_tool()` creates an OpenAI Agents `FunctionTool` whose invocation schedules the underlying Temporal activity. - -In the example below, we apply the `@activity.defn` decorator to the `get_weather` function to create a Temporal activity. -We then pass this through the `activity_as_tool` helper function to create an OpenAI Agents tool that is passed to the `Agent`. - -```python -from dataclasses import dataclass -from datetime import timedelta -from temporalio import activity, workflow -from temporalio.contrib import openai_agents -from agents import Agent, Runner - -@dataclass -class Weather: - city: str - temperature_range: str - conditions: str - -@activity.defn -async def get_weather(city: str) -> Weather: - """Get the weather for a given city.""" - return Weather(city=city, temperature_range="14-20C", conditions="Sunny with wind.") - -@workflow.defn -class WeatherAgent: - @workflow.run - async def run(self, question: str) -> str: - agent = Agent( - name="Weather Assistant", - instructions="You are a helpful weather agent.", - tools=[ - openai_agents.workflow.activity_as_tool( - get_weather, - start_to_close_timeout=timedelta(seconds=10) - ) - ], - ) - result = await Runner.run(starting_agent=agent, input=question) - return result.final_output -``` - -The activity must also be registered with a Worker. -`activity_as_tool()` controls how the Agent invokes the activity; it does not register the activity with the Worker. - -```python -from temporalio.worker import Worker - -worker = Worker( - client, - task_queue="my-task-queue", - workflows=[WeatherAgent], - activities=[get_weather], -) -``` - -### Calling OpenAI Agents Tools inside Temporal Workflows - -For simple computations that don't involve external calls, you can call the tool directly from the workflow by using the standard OpenAI Agents SDK `@function_tool` decorator. - -```python -from temporalio import workflow -from agents import Agent, Runner -from agents import function_tool - -@function_tool -def calculate_circle_area(radius: float) -> float: - """Calculate the area of a circle given its radius.""" - import math - return math.pi * radius ** 2 - -@workflow.defn -class MathAssistantAgent: - @workflow.run - async def run(self, message: str) -> str: - agent = Agent( - name="Math Assistant", - instructions="You are a helpful math assistant. Use the available tools to help with calculations.", - tools=[calculate_circle_area], - ) - result = await Runner.run(agent, input=message) - return result.final_output -``` - -Use regular `@function_tool` tools only for deterministic, workflow-safe logic. -Do not perform network, database, filesystem, or other external I/O directly from these tools. -Use a Temporal activity with `activity_as_tool()` instead. -Code running in the workflow can also invoke a Temporal activity directly when needed. - -Tools that run in the workflow can also update OpenAI Agents context, which is read-only for tools run as Temporal activities. - -## MCP Support - -This integration provides support for Model Context Protocol (MCP) servers through two wrapper approaches designed to handle different implications of failures. - -While Temporal provides durable execution for your workflows, this durability does not extend to MCP servers, which operate independently of the workflow and must provide their own durability. The integration handles this by offering stateless and stateful wrappers that you can choose based on your MCP server's design. - -### Stateless vs Stateful MCP Servers - -You need to understand your MCP server's behavior to choose the correct wrapper: - -**Stateless MCP servers** treat each operation independently. For example, a weather server with a `get_weather(location)` tool is stateless because each call is self-contained and includes all necessary information. These servers can be safely restarted or reconnected to without changing their behavior. - -**Stateful MCP servers** maintain session state between calls. For example, a weather server that requires calling `set_location(location)` followed by `get_weather()` is stateful because it remembers the configured location and uses it for subsequent calls. If the session or the server is restarted, state crucial for operation is lost. Temporal identifies such failures and raises an `ApplicationError` to signal the need for application-level failure handling. - -### Usage Example (Stateless MCP) - -The code below gives an example of using a stateless MCP server. - -#### Worker Configuration - -```python -import asyncio -from datetime import timedelta -from agents.mcp import MCPServerStdio -from temporalio.client import Client -from temporalio.contrib.openai_agents import ( - ModelActivityParameters, - OpenAIAgentsPlugin, - StatelessMCPServerProvider, -) -from temporalio.worker import Worker - - -async def main(): - # Create the MCP server provider - filesystem_server = StatelessMCPServerProvider( - lambda: MCPServerStdio( - name="FileSystemServer", - params={ - "command": "npx", - "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/files"], - }, - ) - ) - - # Register the MCP server with the OpenAI Agents plugin - client = await Client.connect( - "localhost:7233", - plugins=[ - OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=60) - ), - mcp_server_providers=[filesystem_server], - ), - ], - ) - - worker = Worker( - client, - task_queue="my-task-queue", - workflows=[FileSystemWorkflow], - ) - await worker.run() - - -if __name__ == "__main__": - asyncio.run(main()) -``` - -#### Workflow Implementation - -```python -from temporalio import workflow -from temporalio.contrib import openai_agents -from agents import Agent, Runner - -@workflow.defn -class FileSystemWorkflow: - @workflow.run - async def run(self, query: str) -> str: - # Reference the MCP server by name (matches name in worker configuration) - server = openai_agents.workflow.stateless_mcp_server("FileSystemServer") - - agent = Agent( - name="File Assistant", - instructions="Use the filesystem tools to read files and answer questions.", - mcp_servers=[server], - ) - - result = await Runner.run(agent, input=query) - return result.final_output -``` - -The `StatelessMCPServerProvider` takes a factory function that creates new MCP server instances. The server name used in `stateless_mcp_server()` must match the name configured in the MCP server instance. In this example, the name is `FileSystemServer`. - -### Stateful MCP Servers - -For implementation details and examples, see the [samples repository](https://github.com/temporalio/samples-python/tree/main/openai_agents/mcp). - -When using stateful servers, the dedicated worker maintaining the connection may fail due to network issues or server problems. When this happens, Temporal raises an `ApplicationError` and cannot automatically recover because it cannot restore the lost server state. -To recover from such failures, you need to implement your own application-level retry logic. - -### Factory Arguments - -Both `stateless_mcp_server()` and `stateful_mcp_server()` accept an optional `factory_argument`, which is passed to the registered server factory when the MCP server is created. - -A stateless factory that declares no parameters — like the `lambda: MCPServerStdio(...)` example above — ignores the value, but it is still recorded in history. - -**Do not pass secrets, credentials, or API keys through `factory_argument`.** It is an activity argument, so it is recorded in workflow history and, without a payload codec, visible in the web UI. Resolve credentials worker-side inside the server factory instead. - -### Hosted MCP Tool - -For network-accessible MCP servers, you can also use `HostedMCPTool` from the OpenAI Agents SDK, which uses an MCP client hosted by OpenAI. - -## Secrets from the Worker's Environment - -⚠️ **Experimental** - This functionality is subject to change prior to General Availability. - -A credential an agent needs can stay in the worker process's environment instead of being written into your workflow. Where the value would otherwise go, you name the environment variable that holds it, and the worker reads that variable when the value is actually needed. - -There are two forms, and which one you use follows from where the value goes: - -- For a hosted tool credential, use `temporal_worker_env_ref()`. It is substituted only in the fields listed under [Hosted Tool Credentials](#hosted-tool-credentials). -- For a sandbox environment variable, use `TemporalWorkerEnvValue`. - -Both are gated by `resolvable_worker_env_vars`, an allowlist of the variable names a worker is willing to read. On every worker that runs model or sandbox activities, set the variable and add its name to that list: - -```python -plugin = OpenAIAgentsPlugin(resolvable_worker_env_vars=["MY_MCP_TOKEN"]) -``` - -Names are matched exactly, with no globbing. Passing `AllowAllWorkerEnvVars()` in place of the list makes every environment variable on the worker resolvable, so a workflow-authored sandbox manifest can name any variable on the worker and have its value land inside the container. - -```python -from temporalio.contrib.openai_agents import AllowAllWorkerEnvVars - -plugin = OpenAIAgentsPlugin(resolvable_worker_env_vars=AllowAllWorkerEnvVars()) -``` - -The reference form never raises. A name the worker does not allow is sent on as the reference string, and a name it allows resolves to whatever the variable holds — an empty string when that variable is unset or empty. - -### Hosted Tool Credentials - -Pass `temporal_worker_env_ref()` the *name of an environment variable*, in place of the credential itself: - -```python -from agents import HostedMCPTool -from temporalio.contrib.openai_agents import temporal_worker_env_ref - -tool = HostedMCPTool( - tool_config={ - "type": "mcp", - "server_label": "my_server", - "server_url": "https://example.com/mcp", - "authorization": temporal_worker_env_ref("MY_MCP_TOKEN"), - } -) -``` - -A reference can sit inside a larger value: in `"Bearer " + temporal_worker_env_ref("MY_MCP_TOKEN")`, the reference is replaced in place and the rest of the string is sent unchanged. - -The environment variable's value is substituted in these fields and no others: - -- `authorization`, and the value of each entry in `headers`, in a `HostedMCPTool`'s `tool_config` -- `value` in each entry of `network_policy.domain_secrets` under a hosted `ShellTool`'s `environment` -- `value` in each entry of `network_policy.domain_secrets` under the `container` in a `CodeInterpreterTool`'s `tool_config` - -### Sandbox Environment Variables - -Put a `TemporalWorkerEnvValue` in the environment of a [sandbox](#sandbox-support) manifest, in place of the value itself: - -```python -from agents.sandbox import Manifest -from agents.sandbox.manifest import Environment - -from temporalio.contrib.openai_agents import TemporalWorkerEnvValue - -manifest = Manifest( - environment=Environment( - value={ - "OPENAI_API_KEY": TemporalWorkerEnvValue(name="PROD_OPENAI_KEY"), - "REGION": "us-west-2", - } - ) -) -``` - -Pass that manifest to `SandboxRunConfig(manifest=...)`. This reads `PROD_OPENAI_KEY` on the worker and sets `OPENAI_API_KEY` inside the sandbox, so the two names need not match. - -## Sandbox Support - -⚠️ **Pre-release** - This functionality is subject to change prior to General Availability. - -The sandbox integration lets `SandboxAgent` from the OpenAI Agents SDK execute inside a remote or local sandbox (Daytona, Docker, E2B, local Unix, etc.) while keeping all coordination durable in Temporal. - -Every sandbox operation — creating a session, running commands, reading/writing files, PTY interactions — is dispatched as a Temporal activity. This means sandbox work is fully observable, retryable, and recoverable like any other activity, and sandbox session state is serialized with the workflow so it survives worker restarts. - -### Architecture - -```text -Workflow Code - ↓ -temporal_sandbox_client("daytona") [returns TemporalSandboxClient] - ↓ -SandboxAgent.run(run_config=RunConfig(sandbox=SandboxRunConfig(client=...))) - ↓ -sandbox agent calls session.exec / session.read / session.write / … - ↓ -TemporalSandboxSession routes each call as a Temporal activity -("daytona-sandbox_session_exec", "daytona-sandbox_session_read", …) - ↓ -SandboxClientProvider activities on the worker call the real sandbox client - ↓ -Actual sandbox backend (Daytona, Docker, local, …) -``` - -### Worker Configuration - -Register one or more `SandboxClientProvider` instances with the plugin. Each provider pairs a unique name with a real `BaseSandboxClient` implementation. The plugin automatically registers all required activities on the worker. - -```python -import asyncio -from datetime import timedelta -from temporalio.client import Client -from temporalio.worker import Worker -from temporalio.contrib.openai_agents import OpenAIAgentsPlugin, SandboxClientProvider, ModelActivityParameters -from agents.extensions.sandbox.daytona import DaytonaSandboxClient -from agents.sandbox.sandboxes.unix_local import UnixLocalSandboxClient - -async def main(): - client = await Client.connect( - "localhost:7233", - plugins=[ - OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30) - ), - sandbox_clients=[ - SandboxClientProvider("daytona", DaytonaSandboxClient()), - SandboxClientProvider("local", UnixLocalSandboxClient()), - ], - ), - ], - ) - - worker = Worker( - client, - task_queue="my-task-queue", - workflows=[MyWorkflow], - ) - await worker.run() -``` - -Provider names must be unique. Each name becomes the prefix for that backend's activities, allowing multiple backends to coexist on a single worker. - -### Workflow Usage - -In the workflow, use `temporal_sandbox_client()` to create a reference to a registered backend by name. Pass it to `SandboxRunConfig` inside `RunConfig`: - -```python -from temporalio import workflow -from temporalio.contrib.openai_agents.workflow import temporal_sandbox_client -from agents import Runner -from agents.sandbox import SandboxAgent, SandboxRunConfig -from agents.run import RunConfig -from agents.extensions.sandbox.daytona import DaytonaSandboxClientOptions - -@workflow.defn -class MyWorkflow: - @workflow.run - async def run(self, prompt: str) -> str: - agent = SandboxAgent( - name="Coding Assistant", - instructions="You are a helpful coding assistant with access to a sandbox.", - ) - - result = await Runner.run( - agent, - prompt, - run_config=RunConfig( - sandbox=SandboxRunConfig( - client=temporal_sandbox_client("daytona"), - options=DaytonaSandboxClientOptions(pause_on_exit=False), - ), - ), - ) - return result.final_output -``` - -The name passed to `temporal_sandbox_client()` must exactly match the name used in `SandboxClientProvider` on the worker. - -### Multiple Backends - -A single workflow can target different backends by name. Register all backends on the worker and reference each by name in the workflow: - -```python -# Run a task on the "daytona" backend -result = await Runner.run( - agent, prompt, - run_config=RunConfig(sandbox=SandboxRunConfig( - client=temporal_sandbox_client("daytona"), - options=DaytonaSandboxClientOptions(pause_on_exit=False), - )), -) - -# Run a different task on the "local" backend -result = await Runner.run( - agent, prompt, - run_config=RunConfig(sandbox=SandboxRunConfig( - client=temporal_sandbox_client("local"), - options=UnixLocalSandboxClientOptions(), - )), -) -``` - -## Streaming - -⚠️ **Experimental** - This functionality is subject to change prior to General Availability. - -The integration supports streaming model responses via the SDK-native -`Runner.run_streamed` API. Inside a workflow, model calls execute as a -streaming activity (`invoke_model_activity_streaming`) that consumes -`Model.stream_response` and returns the collected list of native OpenAI -response events. The workflow surfaces those events to the caller -through `RunResultStreaming.stream_events()`, which wraps them in the -agents-SDK `StreamEvent` union (so raw model events arrive as -`RawResponsesStreamEvent.data`). - -External consumers (UIs, tracing pipelines, etc.) observe events as -they arrive by hosting a [`WorkflowStream`](../workflow_streams/README.md) -in the workflow and subscribing with `WorkflowStreamClient`. The -streaming activity publishes each event to the topic configured on -`ModelActivityParameters.streaming_topic`. The topic is required -when using `Runner.run_streamed`; calling it without a configured topic -raises before any activity is scheduled. - -Example workflow consuming events via `stream_events()` while the -streaming activity publishes to the `"events"` topic: - -```python -from agents import Agent, Runner -from agents.stream_events import RawResponsesStreamEvent - -from temporalio import workflow - -@workflow.defn -class MyAgent: - @workflow.run - async def run(self, prompt: str) -> str: - agent = Agent(name="Assistant", instructions="...") - result = Runner.run_streamed(agent, prompt) - async for event in result.stream_events(): - if isinstance(event, RawResponsesStreamEvent): - raw_event = event.data # native OpenAI ResponseStreamEvent - ... - return result.final_output -``` - -To publish raw model events to external subscribers, host a -`WorkflowStream` in the workflow and configure -`OpenAIAgentsPlugin(model_params=ModelActivityParameters(streaming_topic="events"))`. See [`temporalio.contrib.workflow_streams`](../workflow_streams/README.md) for the -publisher and subscriber API. - -`RunResultStreaming.stream_events()` yields the agents-SDK -`StreamEvent` union (`RawResponsesStreamEvent`, `RunItemStreamEvent`, -`AgentUpdatedStreamEvent`); native OpenAI response events arrive -wrapped as `RawResponsesStreamEvent.data`. Workflow-stream subscribers, -by contrast, receive the unwrapped native events directly because the -streaming activity publishes them straight from `Model.stream_response`. - -Streaming is incompatible with `use_local_activity` because local -activities support neither activity heartbeats nor the workflow stream -signal channel. - -Activity retries surface to workflow-stream subscribers but not to -`RunResultStreaming.stream_events()`. Events are published to the -stream as `Model.stream_response` produces them, so a partial attempt -that fails mid-response leaves its emitted events on the stream and the -retry attempt publishes a second sequence. `stream_events()` only sees -the final successful attempt's collected events because it consumes the -activity's return value. Workflow-stream subscribers should treat -retries the same way as any other workflow_streams publisher — see -[Delivery semantics](../workflow_streams/README.md) for the trade and -the conventional `RETRY` event pattern for surfacing the transition to -consumers. - -## Feature Support - -This integration is presently subject to certain limitations. -Realtime agents are not supported. Streaming is supported via -`Runner.run_streamed` — see [Streaming](#streaming) above. -Certain tools are not suitable for a distributed computing environment, so these have been disabled as well. - -### Model Providers - -| Model Provider | Supported | -| :------------- | :-------: | -| OpenAI | Yes | -| LiteLLM | Yes | - -### Model Response format - -| Model Response | Supported | -| :------------- | :------------------: | -| Get Response | Yes | -| Streaming | Yes (experimental) | - -### Tools - -#### Tool Type - -`LocalShellTool` and `ComputerTool` are not suited to a distributed computing setting. - -| Tool Type | Supported | -| :------------------ | :-------: | -| FunctionTool | Yes | -| LocalShellTool | No | -| WebSearchTool | Yes | -| FileSearchTool | Yes | -| HostedMCPTool | Yes | -| ImageGenerationTool | Yes | -| CodeInterpreterTool | Yes | -| ShellTool | Yes | -| ComputerTool | No | - -#### Tool Context - -As described in [Tool Calling](#tool-calling), context propagation is read-only when Temporal activities are used as tools. - -| Context Propagation | Supported | -| :------------------------------------- | :-------: | -| Activity Tool receives copy of context | Yes | -| Activity Tool can update context | No | -| Function Tool received context | Yes | -| Function Tool can update context | Yes | - -### MCP - -The MCP protocol is stateful, but many MCP servers are stateless. -We let you choose between two MCP wrappers, one designed for stateless MCP servers and one for stateful MCP servers. -These wrappers work with all transport varieties. - -Note that when using network-accessible MCP servers, you also can also use the tool `HostedMCPTool`, which is part of the OpenAI Responses API and uses an MCP client hosted by OpenAI. - -| MCP Class | Supported | -| :---------------------- | :-------: | -| MCPServerStdio | Yes | -| MCPServerSse | Yes | -| MCPServerStreamableHttp | Yes | - -### Guardrails - -| Guardrail Type | Supported | -| :------------- | :-------: | -| Code | Yes | -| Agent | Yes | - -### Sessions - -SQLite storage is not suited to a distributed environment. - -| Feature | Supported | -| :------------ | :-------: | -| SQLiteSession | No | - -### Tracing - -| Tracing Provider | Supported | -| :--------------- | :-------: | -| OpenAI platform | Yes | - -## OpenTelemetry Integration - -⚠️ **Public Preview** - This functionality is subject to change prior to General Availability. - -This integration provides seamless export of OpenAI agent telemetry to OpenTelemetry (OTEL) endpoints for observability and monitoring. The integration automatically handles workflow replay semantics, ensuring spans are only exported when workflows actually complete. - -### Quick Start - -To enable OTEL telemetry export, you need to set up a global `ReplaySafeTracerProvider` and enable the integration in the `OpenAIAgentsPlugin`: - -```python -from datetime import timedelta -from temporalio.client import Client -from temporalio.contrib.openai_agents import OpenAIAgentsPlugin, ModelActivityParameters -from temporalio.contrib.opentelemetry import create_tracer_provider -from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter -from opentelemetry import trace -from opentelemetry.sdk.trace.export import SimpleSpanProcessor - -# Configure your OTEL exporters - -# Set up the global tracer provider -tracer_provider = create_tracer_provider() -tracer_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter(endpoint="http://localhost:4317"))) -trace.set_tracer_provider(tracer_provider) - -client = await Client.connect( - "localhost:7233", - plugins=[ - OpenAIAgentsPlugin( - use_otel_instrumentation=True, # Enable OTEL integration - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30) - ) - ), - ], -) -``` - -### Features - -- **Multiple Exporters**: Send telemetry to multiple OTEL endpoints simultaneously via the global tracer provider -- **Replay-Safe**: Spans are only exported when workflows actually complete, not during replays -- **Deterministic IDs**: Consistent span IDs across workflow replays for reliable correlation -- **Automatic Setup**: No manual instrumentation required - just enable the flag and set up the global tracer provider -- **Graceful Degradation**: Works seamlessly whether OTEL dependencies are installed or not - -### Dependencies - -OTEL integration requires additional dependencies: - -```bash -pip install openinference-instrumentation-openai-agents opentelemetry-sdk -``` - -Choose the appropriate OTEL exporter for your monitoring system: - -```bash -# For OTLP (works with most OTEL collectors and monitoring systems) -pip install opentelemetry-exporter-otlp - -# For Console output (development/debugging) -pip install opentelemetry-exporter-console - -# Other exporters available for specific systems -pip install opentelemetry-exporter- -``` - -### Example: Multiple Exporters - -```python -from temporalio.contrib.opentelemetry import create_tracer_provider -from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter -from opentelemetry.exporter.console import ConsoleSpanExporter -from opentelemetry import trace - -exporters = [ - # Production monitoring system - OTLPSpanExporter( - endpoint="https://your-monitoring-system:4317", - headers={"api-key": "your-api-key"} - ), - - # Secondary monitoring endpoint - OTLPSpanExporter(endpoint="https://backup-collector:4317"), - - # Development debugging - ConsoleSpanExporter(), +```toml +# Before +dependencies = [ + "temporalio[openai-agents,otel,pydantic]", ] -# Set up global tracer provider with multiple exporters -tracer_provider = create_tracer_provider(exporters=exporters) -trace.set_tracer_provider(tracer_provider) - -plugin = OpenAIAgentsPlugin(use_otel_instrumentation=True) -``` - -### Error Handling - -If you enable OTEL instrumentation but the required dependencies are not installed, you'll receive a clear error message: - -``` -ImportError: OTEL dependencies not available. Install with: pip install openinference-instrumentation-openai-agents opentelemetry-sdk -``` - -If you enable OTEL instrumentation but don't have a proper global tracer provider set up, you'll get: - -``` -ValueError: Global tracer provider must a ReplaySafeTracerProvider. Use temporalio.contrib.opentelemtry.create_trace_provider to create one. -``` - -### Direct OpenTelemetry API Calls in Workflows - -When using direct OpenTelemetry API calls within workflows (e.g., `opentelemetry.trace.get_tracer(__name__).start_as_current_span()`), you need to ensure proper context bridging and sandbox configuration. - -#### Sandbox Configuration - -Workflows run in a sandbox that restricts module access. To use direct OTEL API calls, you must explicitly allow OpenTelemetry passthrough: - -```python -from temporalio.worker import Worker -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner, SandboxRestrictions - -# Configure worker with OpenTelemetry passthrough -worker = Worker( - client, - task_queue="my-task-queue", - workflows=[MyWorkflow], - workflow_runner=SandboxedWorkflowRunner( - SandboxRestrictions.default.with_passthrough_modules("opentelemetry") - ) -) -``` - -#### Context Bridging Pattern - -Direct OTEL spans must be created within an active OpenAI Agents SDK span to ensure proper parenting: - -```python -import opentelemetry.trace -from agents import custom_span -from temporalio import workflow - -@workflow.defn -class MyWorkflow: - @workflow.run - async def run(self) -> str: - # Start an SDK span first to establish OTEL context bridge - with custom_span("Workflow coordination"): - # Now direct OTEL spans will be properly parented - tracer = opentelemetry.trace.get_tracer(__name__) - with tracer.start_as_current_span("Custom workflow span"): - # Your workflow logic here - result = await self.do_work() - return result +# After +dependencies = [ + "temporalio[otel,pydantic]", +] ``` -#### Why This Pattern is Required - -- **OpenInference instrumentation** bridges OpenAI Agents SDK spans to OpenTelemetry context -- **Direct OTEL API calls** without an active SDK span become root spans with no parent -- **SDK spans** (`custom_span()`) establish the context bridge that allows subsequent direct OTEL spans to inherit proper trace parenting - -#### Complete Example +Remove the brackets if no extras remain. Then install the standalone package directly: -```python -import opentelemetry.trace -from agents import custom_span -from temporalio import workflow -from temporalio.worker import Worker -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner, SandboxRestrictions - -@workflow.defn -class TracedWorkflow: - @workflow.run - async def run(self) -> str: - # Establish OTEL context with SDK span - with custom_span("Main workflow"): - # Create direct OTEL spans for fine-grained tracing - tracer = opentelemetry.trace.get_tracer(__name__) - - with tracer.start_as_current_span("Data processing"): - data = await self.process_data() - - with tracer.start_as_current_span("Business logic"): - result = await self.execute_business_logic(data) - - return result - -# Worker configuration -worker = Worker( - client, - task_queue="traced-workflows", - workflows=[TracedWorkflow], - workflow_runner=SandboxedWorkflowRunner( - SandboxRestrictions.default.with_passthrough_modules("opentelemetry") - ) -) +```bash +uv add temporalio-openai-agents ``` -This ensures your direct OTEL spans are properly parented within the trace hierarchy initiated by your client SDK traces. - -### Client-Side Trace Initialization - -You can also start an Agents SDK trace on the client side before executing a workflow. This is useful when you want the entire workflow execution to be part of a larger trace context: +Change application imports to the standalone package: ```python -from agents import trace, custom_span -from temporalio.contrib.openai_agents import OpenAIAgentsPlugin - -# Set up the plugin with OTEL integration -plugin = OpenAIAgentsPlugin(use_otel_instrumentation=True) - -# Client setup -client = await Client.connect( - "localhost:7233", - plugins=[plugin] -) - -# Start a trace on the client side -with plugin.tracing_context(): - with trace("Customer support workflow"): - with custom_span("Workflow execution"): - # Execute workflow within the trace context - result = await client.execute_workflow( - CustomerSupportAgent.run, - "Help me with my order", - id="customer-support-123", - task_queue="my-task-queue", - ) - print(f"Result: {result}") +from temporalio.openai_agents import OpenAIAgentsPlugin ``` -The `plugin.tracing_context()` is required when starting traces outside of a worker context. This ensures proper instrumentation setup and trace propagation into the workflow execution. - -If OTEL instrumentation is not enabled, the integration works normally without any OTEL setup. - -### Voice - -| Mode | Supported | -| :----------------------- | :-----------: | -| Voice agents (pipelines) | Yes [^voice] | -| Realtime agents | No | - -[^voice]: `VoicePipeline` runs in your process and delegates the agent - step (`VoiceWorkflowBase.run`) to a Temporal workflow that uses - `Runner.run` or `Runner.run_streamed`. STT and TTS run outside - Temporal; the agent loop is durable. - -### Utilities - -The REPL utility is not suitable for a distributed setting. - -| Utility | Supported | -| :------ | :-------: | -| REPL | No | - -## Additional Examples - -You can find additional examples in the [Temporal Python Samples Repository](https://github.com/temporalio/samples-python/tree/main/openai_agents). +The new import path selects the standalone implementation instead of the +SDK-bundled `temporalio.contrib.openai_agents` implementation. diff --git a/temporalio/contrib/openai_agents/__init__.py b/temporalio/contrib/openai_agents/__init__.py index b00620fb5..6f6cfdb66 100644 --- a/temporalio/contrib/openai_agents/__init__.py +++ b/temporalio/contrib/openai_agents/__init__.py @@ -1,43 +1,12 @@ -"""Support for using the OpenAI Agents SDK as part of Temporal workflows. +"""Compatibility imports for the standalone OpenAI Agents integration. -This module provides compatibility between the -`OpenAI Agents SDK `_ and Temporal workflows. +Install ``temporalio-openai-agents`` and import ``temporalio.openai_agents`` +directly in new code. + +Legacy ``testing`` and ``workflow`` modules forward the standalone public API. """ -from temporalio.contrib.openai_agents._errors import AgentsWorkflowError -from temporalio.contrib.openai_agents._mcp import ( - StatefulMCPServerProvider, - StatelessMCPServerProvider, -) -from temporalio.contrib.openai_agents._model_parameters import ModelActivityParameters -from temporalio.contrib.openai_agents._temporal_openai_agents import ( - OpenAIAgentsPlugin, - OpenAIPayloadConverter, -) -from temporalio.contrib.openai_agents._temporal_worker_env_ref import ( - AllowAllWorkerEnvVars, - temporal_worker_env_ref, -) -from temporalio.contrib.openai_agents.sandbox._sandbox_client_provider import ( - SandboxClientProvider, +from temporalio.openai_agents import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.openai_agents import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, ) -from temporalio.contrib.openai_agents.sandbox._temporal_worker_env_value import ( - TemporalWorkerEnvValue, -) - -from . import testing, workflow - -__all__ = [ - "AgentsWorkflowError", - "AllowAllWorkerEnvVars", - "ModelActivityParameters", - "OpenAIAgentsPlugin", - "OpenAIPayloadConverter", - "SandboxClientProvider", - "StatelessMCPServerProvider", - "StatefulMCPServerProvider", - "TemporalWorkerEnvValue", - "temporal_worker_env_ref", - "testing", - "workflow", -] diff --git a/temporalio/contrib/openai_agents/_errors.py b/temporalio/contrib/openai_agents/_errors.py deleted file mode 100644 index 5ca502376..000000000 --- a/temporalio/contrib/openai_agents/_errors.py +++ /dev/null @@ -1,11 +0,0 @@ -"""Error types for the OpenAI Agents SDK Temporal integration.""" - -from temporalio.exceptions import TemporalError - - -class AgentsWorkflowError(TemporalError): - """Error that terminates the calling workflow or update. - - Raised when the agents SDK raises an error which should terminate, or when - the plugin rejects an unsupported configuration. - """ diff --git a/temporalio/contrib/openai_agents/_heartbeat_decorator.py b/temporalio/contrib/openai_agents/_heartbeat_decorator.py deleted file mode 100644 index 7c5b9193d..000000000 --- a/temporalio/contrib/openai_agents/_heartbeat_decorator.py +++ /dev/null @@ -1,38 +0,0 @@ -import asyncio -from collections.abc import Awaitable, Callable -from functools import wraps -from typing import Any, TypeVar, cast - -from temporalio import activity - -F = TypeVar("F", bound=Callable[..., Awaitable[Any]]) - - -def auto_heartbeater(fn: F) -> F: - """Decorator that heartbeats at half the activity's heartbeat timeout.""" - - @wraps(fn) - async def wrapper(*args: Any, **kwargs: Any) -> Any: - heartbeat_timeout = activity.info().heartbeat_timeout - heartbeat_task = None - if heartbeat_timeout: - heartbeat_task = asyncio.create_task( - _heartbeat_every(heartbeat_timeout.total_seconds() / 2) - ) - try: - return await fn(*args, **kwargs) - finally: - if heartbeat_task: - heartbeat_task.cancel() - try: - await heartbeat_task - except asyncio.CancelledError: - pass - - return cast(F, wrapper) - - -async def _heartbeat_every(delay: float) -> None: - while True: - await asyncio.sleep(delay) - activity.heartbeat() diff --git a/temporalio/contrib/openai_agents/_invoke_model_activity.py b/temporalio/contrib/openai_agents/_invoke_model_activity.py deleted file mode 100644 index 8cf735f9f..000000000 --- a/temporalio/contrib/openai_agents/_invoke_model_activity.py +++ /dev/null @@ -1,442 +0,0 @@ -"""A temporal activity that invokes a LLM model. - -Implements mapping of OpenAI datastructures to Pydantic friendly types. -""" - -import enum -from collections.abc import Collection -from dataclasses import dataclass -from datetime import timedelta -from typing import Any, NoReturn - -from agents import ( - AgentOutputSchemaBase, - CodeInterpreterTool, - FileSearchTool, - FunctionTool, - Handoff, - HostedMCPTool, - ImageGenerationTool, - ModelProvider, - ModelResponse, - ModelSettings, - ModelTracing, - OpenAIProvider, - RunContextWrapper, - Tool, - TResponseInputItem, - UserError, - WebSearchTool, -) -from agents.items import TResponseStreamEvent -from agents.tool import ( - ApplyPatchTool, - CustomTool, - LocalShellTool, - ShellTool, - ShellToolEnvironment, - ToolSearchTool, -) -from openai import ( - APIStatusError, - AsyncOpenAI, -) -from openai.types.responses import CustomToolParam -from openai.types.responses.tool_param import Mcp -from typing_extensions import Required, TypedDict - -from temporalio import activity -from temporalio.contrib.openai_agents._heartbeat_decorator import auto_heartbeater -from temporalio.contrib.openai_agents._temporal_worker_env_ref import ( - AllowAllWorkerEnvVars, - _WorkerEnvRefResolver, -) -from temporalio.contrib.workflow_streams import WorkflowStreamClient -from temporalio.exceptions import ApplicationError - - -@dataclass -class HandoffInput: - """Data conversion friendly representation of a Handoff. Contains only the fields which are needed by the model - execution to determine what to handoff to, not the actual handoff invocation, which remains in the workflow context. - """ - - tool_name: str - tool_description: str - input_json_schema: dict[str, Any] - agent_name: str - strict_json_schema: bool = True - - -@dataclass -class FunctionToolInput: - """Data conversion friendly representation of a FunctionTool. Contains only the fields which are needed by the model - execution to determine what tool to call, not the actual tool invocation, which remains in the workflow context. - """ - - name: str - description: str - params_json_schema: dict[str, Any] - strict_json_schema: bool = True - - -@dataclass -class HostedMCPToolInput: - """Data conversion friendly representation of a HostedMCPTool. Contains only the fields which are needed by the model - execution to determine what tool to call, not the actual tool invocation, which remains in the workflow context. - """ - - tool_config: Mcp - - -@dataclass -class ShellToolInput: - """Data conversion friendly representation of a ShellTool. Contains only the fields which are needed by the model - execution to determine what tool to call, not the actual tool invocation, which remains in the workflow context. - """ - - name: str = "shell" - environment: ShellToolEnvironment | None = None - - -class _NoopApplyPatchEditor: - """Satisfies the ApplyPatchEditor protocol for tool reconstruction during model calls.""" - - def create_file(self, operation: Any) -> None: # type: ignore[reportUnusedParameter] - return None - - def update_file(self, operation: Any) -> None: # type: ignore[reportUnusedParameter] - return None - - def delete_file(self, operation: Any) -> None: # type: ignore[reportUnusedParameter] - return None - - -@dataclass -class ApplyPatchToolInput: - """Data conversion friendly representation of an ApplyPatchTool.""" - - name: str = "apply_patch" - - -@dataclass -class CustomToolInput: - """Data conversion friendly representation of a CustomTool. Contains only the fields which are needed by the model - execution to determine what tool to call, not the actual tool invocation, which remains in the workflow context. - """ - - tool_config: CustomToolParam - - -ToolInput = ( - FunctionToolInput - | FileSearchTool - | WebSearchTool - | ImageGenerationTool - | CodeInterpreterTool - | HostedMCPToolInput - | ShellToolInput - | LocalShellTool - | ApplyPatchToolInput - | CustomToolInput - | ToolSearchTool -) - - -@dataclass -class AgentOutputSchemaInput(AgentOutputSchemaBase): - """Data conversion friendly representation of AgentOutputSchema.""" - - output_type_name: str | None - is_wrapped: bool - output_schema: dict[str, Any] | None - strict_json_schema: bool - - def is_plain_text(self) -> bool: - """Whether the output type is plain text (versus a JSON object).""" - return self.output_type_name is None or self.output_type_name == "str" - - def is_strict_json_schema(self) -> bool: - """Whether the JSON schema is in strict mode.""" - return self.strict_json_schema - - def json_schema(self) -> dict[str, Any]: - """The JSON schema of the output type.""" - if self.is_plain_text(): - raise UserError("Output type is plain text, so no JSON schema is available") - if self.output_schema is None: - raise UserError("Output schema is not defined") - return self.output_schema - - def validate_json(self, json_str: str) -> Any: - """Validate the JSON string against the schema.""" - raise NotImplementedError() - - def name(self) -> str: - """Get the name of the output type.""" - if self.output_type_name is None: - raise ValueError("output_type_name is None") - return self.output_type_name - - -class ModelTracingInput(enum.IntEnum): - """Conversion friendly representation of ModelTracing. - - Needed as ModelTracing is enum.Enum instead of IntEnum - """ - - DISABLED = 0 - ENABLED = 1 - ENABLED_WITHOUT_DATA = 2 - - -class ActivityModelInput(TypedDict, total=False): - """Input for the invoke_model_activity activity.""" - - model_name: str | None - system_instructions: str | None - input: Required[str | list[TResponseInputItem]] - model_settings: Required[ModelSettings] - tools: list[ToolInput] - output_schema: AgentOutputSchemaInput | None - handoffs: list[HandoffInput] - tracing: Required[ModelTracingInput] - previous_response_id: str | None - conversation_id: str | None - prompt: Any | None - - -class StreamingActivityModelInput(ActivityModelInput, total=False): - """Input for the invoke_model_activity_streaming activity. - - Adds the streaming-only fields on top of :class:`ActivityModelInput`. - """ - - streaming_topic: Required[str] - streaming_batch_interval: timedelta - - -async def _empty_on_invoke_tool(_ctx: RunContextWrapper[Any], _input: str) -> str: - return "" - - -async def _empty_on_invoke_handoff(_ctx: RunContextWrapper[Any], _input: str) -> Any: - return None - - -async def _noop_shell_executor(*_a: Any, **_kw: Any) -> str: - return "" - - -def _build_tool(tool: ToolInput, env_refs: _WorkerEnvRefResolver) -> Tool: - """Reconstruct a Tool from its data-conversion-friendly input form.""" - if isinstance( - tool, - ( - FileSearchTool, - WebSearchTool, - ImageGenerationTool, - LocalShellTool, - ToolSearchTool, - ), - ): - return tool - elif isinstance(tool, CodeInterpreterTool): - return CodeInterpreterTool( - tool_config=env_refs.resolve_code_interpreter_tool_config(tool.tool_config) - ) - elif isinstance(tool, ShellToolInput): - environment = env_refs.resolve_shell_tool_environment(tool.environment) - # Only a local environment takes an executor. - return ShellTool( - name=tool.name, - environment=environment, - executor=_noop_shell_executor if environment["type"] == "local" else None, - ) - elif isinstance(tool, ApplyPatchToolInput): - return ApplyPatchTool(name=tool.name, editor=_NoopApplyPatchEditor()) - elif isinstance(tool, HostedMCPToolInput): - return HostedMCPTool( - tool_config=env_refs.resolve_mcp_tool_config(tool.tool_config) - ) - elif isinstance(tool, CustomToolInput): - return CustomTool( - name=tool.tool_config["name"], - description=tool.tool_config.get("description", ""), - on_invoke_tool=_empty_on_invoke_tool, - format=tool.tool_config.get("format"), - defer_loading=tool.tool_config.get("defer_loading", False), - ) - elif isinstance(tool, FunctionToolInput): - return FunctionTool( - name=tool.name, - description=tool.description, - params_json_schema=tool.params_json_schema, - on_invoke_tool=_empty_on_invoke_tool, - strict_json_schema=tool.strict_json_schema, - ) - else: - raise UserError(f"Unknown tool type: {tool.name}") # type:ignore[reportUnreachable] - - -def _build_tools_and_handoffs( - input: ActivityModelInput, - env_refs: _WorkerEnvRefResolver, -) -> tuple[list[Tool], list[Handoff[Any, Any]]]: - tools = [_build_tool(x, env_refs) for x in input.get("tools", [])] - handoffs: list[Handoff[Any, Any]] = [ - Handoff( - tool_name=x.tool_name, - tool_description=x.tool_description, - input_json_schema=x.input_json_schema, - agent_name=x.agent_name, - strict_json_schema=x.strict_json_schema, - on_invoke_handoff=_empty_on_invoke_handoff, - ) - for x in input.get("handoffs", []) - ] - return tools, handoffs - - -def _raise_for_openai_status(e: APIStatusError) -> NoReturn: - """Translate an OpenAI APIStatusError into the right retry posture.""" - retry_after: timedelta | None = None - retry_after_ms_header = e.response.headers.get("retry-after-ms") - if retry_after_ms_header is not None: - retry_after = timedelta(milliseconds=float(retry_after_ms_header)) - - if retry_after is None: - retry_after_header = e.response.headers.get("retry-after") - if retry_after_header is not None: - retry_after = timedelta(seconds=float(retry_after_header)) - - should_retry_header = e.response.headers.get("x-should-retry") - if should_retry_header == "true": - raise e - if should_retry_header == "false": - raise ApplicationError( - "Non retryable OpenAI error", - non_retryable=True, - next_retry_delay=retry_after, - ) from e - - # Retry on 408 (Request Timeout), 409 (Conflict / often transient - # state mismatch), 429 (Too Many Requests / rate-limited), and any - # 5xx (server-side errors). All other 4xx codes are caller errors - # that won't recover on retry. - retryable = ( - e.response.status_code in [408, 409, 429] or e.response.status_code >= 500 - ) - raise ApplicationError( - f"{'Retryable' if retryable else 'Non retryable'} OpenAI status code: " - f"{e.response.status_code}", - non_retryable=not retryable, - next_retry_delay=retry_after, - ) from e - - -class ModelActivity: - """Class wrapper for model invocation activities to allow model customization. By default, we use an OpenAIProvider with retries disabled. - Disabling retries in your model of choice is recommended to allow activity retries to define the retry model. - """ - - def __init__( - self, - model_provider: ModelProvider | None = None, - resolvable_worker_env_vars: Collection[str] | AllowAllWorkerEnvVars = (), - ): - """Initialize the activity with a model provider.""" - self._model_provider = model_provider or OpenAIProvider( - openai_client=AsyncOpenAI(max_retries=0) - ) - self._env_refs = _WorkerEnvRefResolver(resolvable_worker_env_vars) - - @activity.defn - @auto_heartbeater - async def invoke_model_activity(self, input: ActivityModelInput) -> ModelResponse: - """Activity that invokes a model with the given input.""" - model = self._model_provider.get_model(input.get("model_name")) - tools, handoffs = _build_tools_and_handoffs(input, self._env_refs) - - try: - return await model.get_response( - system_instructions=input.get("system_instructions"), - input=input["input"], - model_settings=input["model_settings"], - tools=tools, - output_schema=input.get("output_schema"), - handoffs=handoffs, - tracing=ModelTracing(input["tracing"]), - previous_response_id=input.get("previous_response_id"), - conversation_id=input.get("conversation_id"), - prompt=input.get("prompt"), - ) - except APIStatusError as e: - _raise_for_openai_status(e) - - @activity.defn - @auto_heartbeater - async def invoke_model_activity_streaming( - self, input: StreamingActivityModelInput - ) -> list[TResponseStreamEvent]: - """Streaming-aware model activity. - - .. warning:: - Streaming support is experimental and may change in future - versions. - - Calls ``model.stream_response()`` and returns the collected list - of native OpenAI stream events. The workflow's - ``Model.stream_response`` stub yields these to the agents - framework, which builds the final ``ModelResponse`` from the - terminal ``ResponseCompletedEvent``. - - Each event is also published to the workflow's stream on - ``streaming_topic`` so external consumers (UIs, tracing, - etc.) can observe events as they arrive. - - Heartbeats run on a background task via ``auto_heartbeater`` so - long initial-token latency or long pauses between chunks do not - trip ``heartbeat_timeout``. - """ - model = self._model_provider.get_model(input.get("model_name")) - tools, handoffs = _build_tools_and_handoffs(input, self._env_refs) - - topic = input["streaming_topic"] - batch_interval = input.get( - "streaming_batch_interval", timedelta(milliseconds=100) - ) - events: list[TResponseStreamEvent] = [] - - stream = WorkflowStreamClient.from_within_activity( - batch_interval=batch_interval - ) - # TResponseStreamEvent is a typing.Annotated[Union[...]] — a typing - # special form, not a class — so it cannot be passed as type[T]. - # Leave the topic untyped (default Any); subscribers that want - # typed decode can pass result_type=TResponseStreamEvent on - # their own subscribe call. - events_topic = stream.topic(topic) - async with stream: - try: - async for event in model.stream_response( - system_instructions=input.get("system_instructions"), - input=input["input"], - model_settings=input["model_settings"], - tools=tools, - output_schema=input.get("output_schema"), - handoffs=handoffs, - tracing=ModelTracing(input["tracing"]), - previous_response_id=input.get("previous_response_id"), - conversation_id=input.get("conversation_id"), - prompt=input.get("prompt"), - ): - # OpenAI models set defer_build=True, so an event's pydantic - # schema may still be an unbuilt placeholder. - type(event).model_rebuild() - events.append(event) - events_topic.publish(event) - except APIStatusError as e: - _raise_for_openai_status(e) - - return events diff --git a/temporalio/contrib/openai_agents/_mcp.py b/temporalio/contrib/openai_agents/_mcp.py deleted file mode 100644 index 8f5294c42..000000000 --- a/temporalio/contrib/openai_agents/_mcp.py +++ /dev/null @@ -1,539 +0,0 @@ -import asyncio -import dataclasses -import functools -import inspect -from collections.abc import Callable, Sequence -from contextlib import AbstractAsyncContextManager -from datetime import timedelta -from types import TracebackType -from typing import Any, cast - -from agents import AgentBase, RunContextWrapper -from agents.mcp import MCPServer -from mcp import GetPromptResult, ListPromptsResult # type:ignore -from mcp import Tool as MCPTool # type:ignore -from mcp.types import CallToolResult # type:ignore - -from temporalio import activity, workflow -from temporalio.api.enums.v1.workflow_pb2 import ( - TIMEOUT_TYPE_HEARTBEAT, - TIMEOUT_TYPE_SCHEDULE_TO_START, -) -from temporalio.exceptions import ( - ActivityError, - ApplicationError, - is_cancelled_exception, -) -from temporalio.worker import PollerBehaviorSimpleMaximum, Worker -from temporalio.workflow import ActivityConfig, ActivityHandle - - -@dataclasses.dataclass -class _StatelessListToolsArguments: - factory_argument: Any | None - - -@dataclasses.dataclass -class _StatelessCallToolsArguments: - tool_name: str - arguments: dict[str, Any] | None - factory_argument: Any | None - meta: dict[str, Any] | None = None - - -@dataclasses.dataclass -class _StatelessListPromptsArguments: - factory_argument: Any | None - - -@dataclasses.dataclass -class _StatelessGetPromptArguments: - name: str - arguments: dict[str, Any] | None - factory_argument: Any | None - - -class _StatelessMCPServerReference(MCPServer): # type:ignore[reportUnusedClass] - def __init__( - self, - server: str, - config: ActivityConfig | None, - cache_tools_list: bool, - factory_argument: Any | None = None, - ): - self._name = server + "-stateless" - self._config = config or ActivityConfig( - start_to_close_timeout=timedelta(minutes=1) - ) - self._cache_tools_list = cache_tools_list - self._tools = None - self._factory_argument = factory_argument - super().__init__() - - @property - def name(self) -> str: - return self._name - - async def connect(self) -> None: - pass - - async def cleanup(self) -> None: - pass - - async def list_tools( - self, - run_context: RunContextWrapper[Any] | None = None, - agent: AgentBase | None = None, - ) -> list[MCPTool]: - if self._tools: - return self._tools - tools = await workflow.execute_activity( - self.name + "-list-tools", - _StatelessListToolsArguments(self._factory_argument), - result_type=list[MCPTool], - **self._config, - ) - if self._cache_tools_list: - self._tools = tools - return tools - - async def call_tool( - self, - tool_name: str, - arguments: dict[str, Any] | None, - meta: dict[str, Any] | None = None, - ) -> CallToolResult: - return await workflow.execute_activity( - self.name + "-call-tool-v2", - _StatelessCallToolsArguments( - tool_name, arguments, self._factory_argument, meta - ), - result_type=CallToolResult, - **self._config, - ) - - async def list_prompts(self) -> ListPromptsResult: - return await workflow.execute_activity( - self.name + "-list-prompts", - _StatelessListPromptsArguments(self._factory_argument), - result_type=ListPromptsResult, - **self._config, - ) - - async def get_prompt( - self, name: str, arguments: dict[str, Any] | None = None - ) -> GetPromptResult: - return await workflow.execute_activity( - self.name + "-get-prompt-v2", - _StatelessGetPromptArguments(name, arguments, self._factory_argument), - result_type=GetPromptResult, - **self._config, - ) - - -class StatelessMCPServerProvider: - """A stateless MCP server implementation for Temporal workflows. - - This class wraps a function to create MCP servers to make them stateless by executing each MCP operation - as a separate Temporal activity. Each operation (list_tools, call_tool, etc.) will - connect to the underlying server, execute the operation, and then clean up the connection. - - This approach will not maintain state across calls. If the desired MCPServer needs persistent state in order to - function, this cannot be used. - """ - - def __init__( - self, - name: str, - server_factory: (Callable[[], MCPServer] | Callable[[Any | None], MCPServer]), - ): - """Initialize the stateless temporal MCP server. - - Args: - name: The name of the MCP server. - server_factory: A function which will produce MCPServer instances. It should return a new server each time - so that state is not shared between workflow runs. It may accept a single positional parameter, which - receives a ``factory_argument`` from the workflow. - """ - self._server_factory = server_factory - - # Cache whether the server factory needs to be provided with arguments - sig = inspect.signature(self._server_factory) - self._server_accepts_arguments = len(sig.parameters) != 0 - - self._name = name + "-stateless" - super().__init__() - - def _create_server(self, factory_argument: Any | None) -> MCPServer: - if self._server_accepts_arguments: - return cast(Callable[[Any | None], MCPServer], self._server_factory)( - factory_argument - ) - else: - return cast(Callable[[], MCPServer], self._server_factory)() - - @property - def name(self) -> str: - """Get the server name.""" - return self._name - - def _get_activities(self) -> Sequence[Callable]: - @activity.defn(name=self.name + "-list-tools") - async def list_tools( - args: _StatelessListToolsArguments | None = None, - ) -> list[MCPTool]: - server = self._create_server(args.factory_argument if args else None) - try: - await server.connect() - return await server.list_tools() - finally: - await server.cleanup() - - @activity.defn(name=self.name + "-call-tool-v2") - async def call_tool(args: _StatelessCallToolsArguments) -> CallToolResult: - server = self._create_server(args.factory_argument) - try: - await server.connect() - return await server.call_tool(args.tool_name, args.arguments, args.meta) - finally: - await server.cleanup() - - @activity.defn(name=self.name + "-list-prompts") - async def list_prompts( - args: _StatelessListPromptsArguments | None = None, - ) -> ListPromptsResult: - server = self._create_server(args.factory_argument if args else None) - try: - await server.connect() - return await server.list_prompts() - finally: - await server.cleanup() - - @activity.defn(name=self.name + "-get-prompt-v2") - async def get_prompt(args: _StatelessGetPromptArguments) -> GetPromptResult: - server = self._create_server(args.factory_argument) - try: - await server.connect() - return await server.get_prompt(args.name, args.arguments) - finally: - await server.cleanup() - - @activity.defn(name=self.name + "-call-tool") - async def call_tool_deprecated( - tool_name: str, - arguments: dict[str, Any] | None, - ) -> CallToolResult: - return await call_tool( - _StatelessCallToolsArguments(tool_name, arguments, None) - ) - - @activity.defn(name=self.name + "-get-prompt") - async def get_prompt_deprecated( - name: str, - arguments: dict[str, Any] | None, - ) -> GetPromptResult: - return await get_prompt(_StatelessGetPromptArguments(name, arguments, None)) - - return ( - list_tools, - call_tool, - list_prompts, - get_prompt, - call_tool_deprecated, - get_prompt_deprecated, - ) - - -def _handle_worker_failure(func: Callable) -> Callable: - @functools.wraps(func) - async def wrapper(*args: Any, **kwargs: Any): - try: - return await func(*args, **kwargs) - except ActivityError as e: - failure = e.failure - if failure: - cause = failure.cause - if cause: - if ( - cause.timeout_failure_info.timeout_type - == TIMEOUT_TYPE_SCHEDULE_TO_START - ): - raise ApplicationError( - "MCP Stateful Server Worker failed to schedule activity.", - type="DedicatedWorkerFailure", - ) from e - if ( - cause.timeout_failure_info.timeout_type - == TIMEOUT_TYPE_HEARTBEAT - ): - raise ApplicationError( - "MCP Stateful Server Worker failed to heartbeat.", - type="DedicatedWorkerFailure", - ) from e - raise e - - return wrapper - - -@dataclasses.dataclass -class _StatefulCallToolsArguments: - tool_name: str - arguments: dict[str, Any] | None - meta: dict[str, Any] | None = None - - -@dataclasses.dataclass -class _StatefulGetPromptArguments: - name: str - arguments: dict[str, Any] | None - - -@dataclasses.dataclass -class _StatefulServerSessionArguments: - factory_argument: Any | None - - -class _StatefulMCPServerReference(MCPServer, AbstractAsyncContextManager): # type:ignore[reportUnusedClass] - def __init__( - self, - server: str, - config: ActivityConfig | None, - server_session_config: ActivityConfig | None, - factory_argument: Any | None, - ): - self._name = server + "-stateful" - self._config = config or ActivityConfig( - start_to_close_timeout=timedelta(minutes=1), - schedule_to_start_timeout=timedelta(seconds=30), - ) - self._server_session_config = server_session_config or ActivityConfig( - start_to_close_timeout=timedelta(hours=1), - ) - self._connect_handle: ActivityHandle | None = None - self._factory_argument = factory_argument - super().__init__() - - @property - def name(self) -> str: - return self._name - - async def connect(self) -> None: - self._config["task_queue"] = self.name + "@" + workflow.info().run_id - self._connect_handle = workflow.start_activity( - self.name + "-server-session", - _StatefulServerSessionArguments(self._factory_argument), - **self._server_session_config, - ) - - async def cleanup(self) -> None: - if self._connect_handle: - self._connect_handle.cancel() - try: - await self._connect_handle - except Exception as e: - if is_cancelled_exception(e): - pass - else: - raise - - async def __aenter__(self): - await self.connect() - return self - - async def __aexit__( - self, - exc_type: type[BaseException] | None, - exc_value: BaseException | None, - traceback: TracebackType | None, - ) -> None: - await self.cleanup() - - @_handle_worker_failure - async def list_tools( - self, - run_context: RunContextWrapper[Any] | None = None, - agent: AgentBase | None = None, - ) -> list[MCPTool]: - if not self._connect_handle: - raise ApplicationError( - "Stateful MCP Server not connected. Call connect first." - ) - return await workflow.execute_activity( - self.name + "-list-tools", - args=[], - result_type=list[MCPTool], - **self._config, - ) - - @_handle_worker_failure - async def call_tool( - self, - tool_name: str, - arguments: dict[str, Any] | None, - meta: dict[str, Any] | None = None, - ) -> CallToolResult: - if not self._connect_handle: - raise ApplicationError( - "Stateful MCP Server not connected. Call connect first." - ) - return await workflow.execute_activity( - self.name + "-call-tool-v2", - _StatefulCallToolsArguments(tool_name, arguments, meta), - result_type=CallToolResult, - **self._config, - ) - - @_handle_worker_failure - async def list_prompts(self) -> ListPromptsResult: - if not self._connect_handle: - raise ApplicationError( - "Stateful MCP Server not connected. Call connect first." - ) - return await workflow.execute_activity( - self.name + "-list-prompts", - args=[], - result_type=ListPromptsResult, - **self._config, - ) - - @_handle_worker_failure - async def get_prompt( - self, name: str, arguments: dict[str, Any] | None = None - ) -> GetPromptResult: - if not self._connect_handle: - raise ApplicationError( - "Stateful MCP Server not connected. Call connect first." - ) - return await workflow.execute_activity( - self.name + "-get-prompt-v2", - _StatefulGetPromptArguments(name, arguments), - result_type=GetPromptResult, - **self._config, - ) - - -class StatefulMCPServerProvider: - """A stateful MCP server implementation for Temporal workflows. - - This class wraps a function to create MCP servers to maintain a persistent connection throughout - the workflow execution. It creates a dedicated worker that stays connected to - the MCP server and processes operations on a dedicated task queue. - - This approach will allow the MCPServer to maintain state across calls if needed, but the caller - will have to handle cases where the dedicated worker fails, as Temporal is unable to seamlessly - recreate any lost state in that case. It is discouraged to use this approach unless necessary. - - Handling dedicated worker failure will entail catching ApplicationError with type "DedicatedWorkerFailure". - Depending on the usage pattern, the caller will then have to either restart from the point at which the Stateful - server was needed or handle continuing from that loss of state in some other way. - """ - - def __init__( - self, - name: str, - server_factory: Callable[[Any | None], MCPServer], - ): - """Initialize the stateful temporal MCP server. - - Args: - name: The name of the MCP server. - server_factory: A function which will produce MCPServer instances. It should return a new server each time - so that state is not shared between workflow runs. It receives an optional ``factory_argument`` from the - workflow. - """ - self._server_factory = server_factory - self._name = name + "-stateful" - self._connect_handle: ActivityHandle | None = None - self._servers: dict[str, MCPServer] = {} - super().__init__() - - @property - def name(self) -> str: - """Get the server name.""" - return self._name - - def _get_activities(self) -> Sequence[Callable]: - def _server_id(): - return self.name + "@" + (activity.info().workflow_run_id or "") - - @activity.defn(name=self.name + "-list-tools") - async def list_tools() -> list[MCPTool]: - return await self._servers[_server_id()].list_tools() - - @activity.defn(name=self.name + "-call-tool") - async def call_tool_deprecated( - tool_name: str, arguments: dict[str, Any] | None - ) -> CallToolResult: - return await self._servers[_server_id()].call_tool(tool_name, arguments) - - @activity.defn(name=self.name + "-call-tool-v2") - async def call_tool(args: _StatefulCallToolsArguments) -> CallToolResult: - return await self._servers[_server_id()].call_tool( - args.tool_name, args.arguments, args.meta - ) - - @activity.defn(name=self.name + "-list-prompts") - async def list_prompts() -> ListPromptsResult: - return await self._servers[_server_id()].list_prompts() - - @activity.defn(name=self.name + "-get-prompt") - async def get_prompt_deprecated( - name: str, arguments: dict[str, Any] | None - ) -> GetPromptResult: - return await self._servers[_server_id()].get_prompt(name, arguments) - - @activity.defn(name=self.name + "-get-prompt-v2") - async def get_prompt(args: _StatefulGetPromptArguments) -> GetPromptResult: - return await self._servers[_server_id()].get_prompt( - args.name, args.arguments - ) - - async def heartbeat_every(delay: float, *details: Any) -> None: - """Heartbeat every so often while not cancelled""" - while True: - await asyncio.sleep(delay) - activity.heartbeat(*details) - - @activity.defn(name=self.name + "-server-session") - async def connect( - args: _StatefulServerSessionArguments | None = None, - ) -> None: - heartbeat_task = asyncio.create_task(heartbeat_every(30)) - - server_id = self.name + "@" + (activity.info().workflow_run_id or "") - if server_id in self._servers: - raise ApplicationError( - "Cannot connect to an already running server. Use a distinct name if running multiple servers in one workflow." - ) - server = self._server_factory(args.factory_argument if args else None) - try: - self._servers[server_id] = server - try: - await server.connect() - - worker = Worker( - activity.client(), - task_queue=server_id, - activities=[ - list_tools, - call_tool, - list_prompts, - get_prompt, - call_tool_deprecated, - get_prompt_deprecated, - ], - activity_task_poller_behavior=PollerBehaviorSimpleMaximum(1), - ) - - await worker.run() - finally: - await server.cleanup() - heartbeat_task.cancel() - try: - await heartbeat_task - except asyncio.CancelledError: - pass - finally: - del self._servers[server_id] - - return (connect,) diff --git a/temporalio/contrib/openai_agents/_model_parameters.py b/temporalio/contrib/openai_agents/_model_parameters.py deleted file mode 100644 index c7dcf0a35..000000000 --- a/temporalio/contrib/openai_agents/_model_parameters.py +++ /dev/null @@ -1,96 +0,0 @@ -"""Parameters for configuring Temporal activity execution for model calls.""" - -from abc import ABC, abstractmethod -from dataclasses import dataclass -from datetime import timedelta -from typing import Any - -from agents import Agent, TResponseInputItem - -from temporalio.common import Priority, RetryPolicy -from temporalio.workflow import ActivityCancellationType, VersioningIntent - - -class ModelSummaryProvider(ABC): - """Abstract base class for providing model summaries. Essentially just a callable, - but the arguments are sufficiently complex to benefit from names. - """ - - @abstractmethod - def provide( - self, - agent: Agent[Any] | None, - instructions: str | None, - input: str | list[TResponseInputItem], - ) -> str: - """Given the provided information, produce a summary for the model invocation activity.""" - pass - - -@dataclass -class ModelActivityParameters: - """Parameters for configuring Temporal activity execution for model calls. - - This class encapsulates all the parameters that can be used to configure - how Temporal activities are executed when making model calls through the - OpenAI Agents integration. - """ - - task_queue: str | None = None - """Specific task queue to use for model activities.""" - - schedule_to_close_timeout: timedelta | None = None - """Maximum time from scheduling to completion.""" - - schedule_to_start_timeout: timedelta | None = None - """Maximum time from scheduling to starting.""" - - start_to_close_timeout: timedelta | None = timedelta(seconds=60) - """Maximum time for the activity to complete.""" - - heartbeat_timeout: timedelta | None = None - """Maximum time between heartbeats. For streaming - (``Runner.run_streamed``), set this lower than - ``start_to_close_timeout`` so a stuck model call is detected before the - overall activity timeout fires.""" - - retry_policy: RetryPolicy | None = None - """Policy for retrying failed activities.""" - - cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL - """How the activity handles cancellation.""" - - versioning_intent: VersioningIntent | None = None - """Versioning intent for the activity.""" - - summary_override: None | (str | ModelSummaryProvider) = None - """Summary for the activity execution.""" - - priority: Priority = Priority.default - """Priority for the activity execution.""" - - use_local_activity: bool = False - """Whether to use a local activity. If changed during a workflow execution, that would break determinism.""" - - streaming_topic: str | None = None - """Stream topic to publish raw model stream events to when the workflow - calls ``Runner.run_streamed``. Required for ``Runner.run_streamed``; - if left as ``None``, ``run_streamed`` raises before scheduling any - activity. The workflow must host a - :class:`temporalio.contrib.workflow_streams.WorkflowStream` to receive - the publishes; otherwise the signals are unhandled and dropped. - - Streaming is incompatible with ``use_local_activity`` (local activities - do not support heartbeats or the workflow stream signal channel). - - .. warning:: - Streaming support is experimental and may change in future - versions.""" - - streaming_batch_interval: timedelta = timedelta(milliseconds=100) - """Interval between automatic flushes for the stream publisher used - by the streaming activity. - - .. warning:: - Streaming support is experimental and may change in future - versions.""" diff --git a/temporalio/contrib/openai_agents/_openai_runner.py b/temporalio/contrib/openai_agents/_openai_runner.py deleted file mode 100644 index 369b1d345..000000000 --- a/temporalio/contrib/openai_agents/_openai_runner.py +++ /dev/null @@ -1,381 +0,0 @@ -import dataclasses -from collections.abc import AsyncIterator, Awaitable -from typing import Any, Callable - -from agents import ( - Agent, - AgentsException, - Handoff, - RunConfig, - RunContextWrapper, - RunResult, - RunResultStreaming, - RunState, - SQLiteSession, - TContext, - TResponseInputItem, -) -from agents.run import DEFAULT_AGENT_RUNNER, AgentRunner, RunOptions -from agents.sandbox import SandboxAgent -from typing_extensions import Unpack - -from temporalio import workflow -from temporalio.contrib.openai_agents._errors import AgentsWorkflowError -from temporalio.contrib.openai_agents._model_parameters import ModelActivityParameters -from temporalio.contrib.openai_agents._temporal_model_stub import _TemporalModelStub -from temporalio.contrib.openai_agents.sandbox._temporal_sandbox_client import ( - TemporalSandboxClient, -) - - -# Recursively replace models in all agents -def _convert_agent( - model_params: ModelActivityParameters, - agent: Agent[Any], - seen: dict[int, Agent] | None, -) -> Agent[Any]: - if seen is None: - seen = dict() - - # Short circuit if this model was already seen to prevent looping from circular handoffs - if id(agent) in seen: - return seen[id(agent)] - - # This agent has already been processed in some other run - if isinstance(agent.model, _TemporalModelStub): - return agent - - # Save the new version of the agent so that we can replace loops - new_agent = dataclasses.replace(agent) - seen[id(agent)] = new_agent - - name = _model_name(agent) - - new_handoffs: list[Agent | Handoff] = [] - for handoff in agent.handoffs: - if isinstance(handoff, Agent): - new_handoffs.append(_convert_agent(model_params, handoff, seen)) - elif isinstance(handoff, Handoff): - original_invoke = handoff.on_invoke_handoff - - # Use default parameter to capture original_invoke by value, not reference - async def on_invoke( - context: RunContextWrapper[Any], - args: str, - invoke_func: Callable[ - [RunContextWrapper[Any], str], Awaitable[Any] - ] = original_invoke, - ) -> Agent: - handoff_agent = await invoke_func(context, args) - return _convert_agent(model_params, handoff_agent, seen) - - new_handoffs.append( - dataclasses.replace(handoff, on_invoke_handoff=on_invoke) - ) - else: - raise TypeError(f"Unknown handoff type: {type(handoff)}") - - new_agent.model = _TemporalModelStub( - model_name=name, - model_params=model_params, - agent=agent, - ) - new_agent.handoffs = new_handoffs - return new_agent - - -def _has_sandbox_agent(agent: Agent[Any], seen: set[int] | None = None) -> bool: - """Check if any agent in the graph (following direct Agent handoffs) is a SandboxAgent.""" - if seen is None: - seen = set() - if id(agent) in seen: - return False - seen.add(id(agent)) - if isinstance(agent, SandboxAgent): - return True - for handoff in agent.handoffs: - if isinstance(handoff, Agent) and _has_sandbox_agent(handoff, seen): - return True - return False - - -def _coerce_run_config(value: object) -> RunConfig: - """openai-agents >= 0.19 also accepts a plain dict for ``run_config``. - - This function normalizes to a RunConfig instance. - """ - if isinstance(value, RunConfig): - return value - if not isinstance(value, dict): - raise TypeError( - f"run_config must be a RunConfig instance or a dict, got {type(value).__name__}" - ) - field_names = { - config_field.name - for config_field in dataclasses.fields(RunConfig) - if config_field.init - } - unknown_fields = sorted(str(name) for name in value if name not in field_names) - if unknown_fields: - raise TypeError(f"Unknown run_config settings: {', '.join(unknown_fields)}") - return RunConfig(**value) - - -class TemporalOpenAIRunner(AgentRunner): - """Temporal Runner for OpenAI agents. - - Forwards model calls to a Temporal activity. - - """ - - def __init__( - self, - model_params: ModelActivityParameters, - ) -> None: - """Initialize the Temporal OpenAI Runner.""" - self._runner = DEFAULT_AGENT_RUNNER or AgentRunner() - self.model_params = model_params - - def _prepare_workflow_run( - self, - starting_agent: Agent[TContext], - kwargs: RunOptions[TContext], - ) -> Agent[Any]: - """Workflow-only validation and ``kwargs`` rewrite shared by ``run()`` and ``run_streamed()``.""" - for t in starting_agent.tools: - if callable(t): - raise ValueError( - "Provided tool is not a tool type. If using an activity, make sure to wrap it with openai_agents.workflow.activity_as_tool." - ) - - if starting_agent.mcp_servers: - from temporalio.contrib.openai_agents._mcp import ( - _StatefulMCPServerReference, - _StatelessMCPServerReference, - ) - - for s in starting_agent.mcp_servers: - if not isinstance( - s, - ( - _StatelessMCPServerReference, - _StatefulMCPServerReference, - ), - ): - raise ValueError( - f"Unknown mcp_server type {type(s)} may not work durably." - ) - - if isinstance(kwargs.get("session"), SQLiteSession): - raise ValueError("Temporal workflows don't support SQLite sessions.") - - run_config = kwargs.get("run_config") - run_config = ( - RunConfig() if run_config is None else _coerce_run_config(run_config) - ) - - if run_config.model and not isinstance(run_config.model, _TemporalModelStub): - if not isinstance(run_config.model, str): - raise ValueError( - "Temporal workflows require a model name to be a string in the run config." - ) - run_config = dataclasses.replace( - run_config, - model=_TemporalModelStub( - run_config.model, model_params=self.model_params, agent=None - ), - ) - - # run_config.sandbox is global for the entire run — configure it if any agent needs it. - if _has_sandbox_agent(starting_agent) or run_config.sandbox: - if run_config.sandbox is None: - raise ValueError( - "A SandboxAgent was provided but run_config.sandbox is not configured. " - "You must set run_config.sandbox to a SandboxRunConfig. " - "For example:\n" - " from temporalio.contrib.openai_agents.workflow import temporal_sandbox_client\n" - " run_config = RunConfig(sandbox=SandboxRunConfig(client=temporal_sandbox_client('my-backend')))" - ) - elif run_config.sandbox.session is not None: - raise AgentsWorkflowError( - "run_config.sandbox.session is not supported by the Temporal OpenAI Agents " - "plugin. A live sandbox session is not a durable construct in a workflow. " - "Pass run_config.sandbox.client=temporal_sandbox_client(name) instead." - ) - elif run_config.sandbox.client is None: - raise ValueError( - "run_config.sandbox.client must be set to a temporal sandbox client. " - "Use temporalio.contrib.openai_agents.workflow.temporal_sandbox_client(name) " - "to create one, where name matches a SandboxClientProvider registered on the plugin." - ) - elif not isinstance(run_config.sandbox.client, TemporalSandboxClient): - raise ValueError( - "run_config.sandbox.client must be created via " - "temporalio.contrib.openai_agents.workflow.temporal_sandbox_client(name). " - "Do not pass a raw sandbox client directly." - ) - - kwargs["run_config"] = run_config - return _convert_agent(self.model_params, starting_agent, None) - - async def run( - self, - starting_agent: Agent[TContext], - input: str | list[TResponseInputItem] | RunState[TContext], - **kwargs: Unpack[RunOptions[TContext]], - ) -> RunResult: - """Run the agent in a Temporal workflow.""" - if not workflow.in_workflow(): - return await self._runner.run( - starting_agent, - input, - **kwargs, - ) - - converted_agent = self._prepare_workflow_run(starting_agent, kwargs) - - try: - return await self._runner.run( - starting_agent=converted_agent, - input=input, - **kwargs, - ) - except AgentsException as e: - # In order for workflow failures to properly fail the workflow, we need to rewrap them in - # a Temporal error - if e.__cause__ and workflow.is_failure_exception(e.__cause__): - reraise = AgentsWorkflowError( - f"Workflow failure exception in Agents Framework: {e}" - ) - reraise.__traceback__ = e.__traceback__ - raise reraise from e.__cause__ - else: - raise e - - def run_sync( - self, - starting_agent: Agent[TContext], - input: str | list[TResponseInputItem] | RunState[TContext], - **kwargs: Any, - ) -> RunResult: - """Run the agent synchronously (not supported in Temporal workflows).""" - if not workflow.in_workflow(): - return self._runner.run_sync( - starting_agent, - input, - **kwargs, - ) - raise RuntimeError("Temporal workflows do not support synchronous model calls.") - - def run_streamed( - self, - starting_agent: Agent[TContext], - input: str | list[TResponseInputItem] | RunState[TContext], - **kwargs: Unpack[RunOptions[TContext]], - ) -> RunResultStreaming: - """Run the agent with streaming responses. - - .. warning:: - Streaming inside Temporal workflows is experimental and may - change in future versions. - - Inside a workflow, model calls execute as the streaming model - activity. The workflow consumes events via - ``RunResultStreaming.stream_events()`` after each activity - completes; external clients can subscribe to the configured - stream topic to receive events as they arrive. - """ - if not workflow.in_workflow(): - return self._runner.run_streamed( - starting_agent, - input, - **kwargs, - ) - - # Fail-fast before the agents framework starts a background task: - # validation raised inside ``Model.stream_response`` is otherwise - # captured into ``RunResultStreaming._stored_exception`` and may - # be silently dropped if the queue completion sentinel is read - # before the run_loop_task is observed as done. - if self.model_params.streaming_topic is None: - raise AgentsWorkflowError( - "Runner.run_streamed requires " - "ModelActivityParameters.streaming_topic to be set." - ) - if self.model_params.use_local_activity: - raise AgentsWorkflowError( - "Runner.run_streamed is incompatible with " - "use_local_activity (local activities do not support " - "heartbeats or the workflow stream signal channel)." - ) - - converted_agent = self._prepare_workflow_run(starting_agent, kwargs) - - streamed_result = self._runner.run_streamed( - starting_agent=converted_agent, - input=input, - **kwargs, - ) - - # Mirror the AgentsException -> AgentsWorkflowError rewrap done - # in run() above. The streaming runner attaches the actual run - # to ``run_loop_task``; we wrap ``stream_events()`` (rather than - # the task itself) so the rewrap happens on the consumer's - # coroutine. Wrapping in a second asyncio task introduces a - # scheduling gap: ``RunResultStreaming.stream_events()`` reads - # the queue completion sentinel as soon as the run loop ends, - # but the wrapper task only resumes its ``await`` after another - # event-loop tick — between those two points, ``_check_errors`` - # sees no exception and ``_await_task_safely`` later swallows - # the rewrapped one. Iterating the underlying generator first, - # then inspecting the finished task on exit, keeps the rewrap - # race-free without touching ``run_loop_task``. - original_stream_events = streamed_result.stream_events - run_loop_task = streamed_result.run_loop_task - - async def _stream_events_with_rewrap() -> AsyncIterator[Any]: - try: - async for event in original_stream_events(): - yield event - except AgentsException as e: - _reraise_workflow_failure(e) - raise - # The agents framework may have stored the run-loop - # exception on ``_stored_exception`` (or surfaced it through - # the iterator) without re-raising it through stream_events. - # By the time the iterator is exhausted, ``run_loop_task`` - # is done — surface its exception here so a failed run - # cannot appear successful, applying the workflow-failure - # rewrap when applicable. - if run_loop_task is not None and run_loop_task.done(): - exc = run_loop_task.exception() - if exc is not None: - if isinstance(exc, AgentsException): - _reraise_workflow_failure(exc) - raise exc - - streamed_result.stream_events = _stream_events_with_rewrap # type: ignore[method-assign] - return streamed_result - - -def _reraise_workflow_failure(e: AgentsException) -> None: - """Rewrap an AgentsException whose cause is a Temporal workflow failure. - - Returns normally when ``e`` is not workflow-failure-bearing so the - caller can re-raise the original. - """ - if e.__cause__ and workflow.is_failure_exception(e.__cause__): - reraise = AgentsWorkflowError( - f"Workflow failure exception in Agents Framework: {e}" - ) - reraise.__traceback__ = e.__traceback__ - raise reraise from e.__cause__ - - -def _model_name(agent: Agent[Any]) -> str | None: - name = agent.model - if name is not None and not isinstance(name, str): - raise ValueError( - "Temporal workflows require a model name to be a string in the agent." - ) - return name diff --git a/temporalio/contrib/openai_agents/_otel_trace_interceptor.py b/temporalio/contrib/openai_agents/_otel_trace_interceptor.py deleted file mode 100644 index 63f8f9d83..000000000 --- a/temporalio/contrib/openai_agents/_otel_trace_interceptor.py +++ /dev/null @@ -1,88 +0,0 @@ -"""OTEL-aware variant of OpenAI Agents trace interceptor.""" - -from __future__ import annotations - -from typing import Any - -import opentelemetry.trace - -import temporalio.converter - -from ..opentelemetry._id_generator import TemporalIdGenerator -from ._trace_interceptor import ( - OpenAIAgentsContextPropagationInterceptor, - _InputWithHeaders, -) - - -class OTelOpenAIAgentsContextPropagationInterceptor( - OpenAIAgentsContextPropagationInterceptor -): - """OTEL-aware variant that enhances headers with OpenTelemetry span context.""" - - def __init__( - self, - otel_id_generator: TemporalIdGenerator, - payload_converter: temporalio.converter.PayloadConverter = temporalio.converter.default().payload_converter, - add_temporal_spans: bool = True, - ) -> None: - """Initialize OTEL-aware context propagation interceptor. - - Args: - otel_id_generator: Generator for OTEL-compatible IDs. - payload_converter: Converter for serializing trace context. - add_temporal_spans: Whether to add Temporal-specific spans. - """ - super().__init__(payload_converter, add_temporal_spans, start_traces=True) - self._otel_id_generator = otel_id_generator - - def header_contents(self) -> dict[str, Any]: - """Get header contents enhanced with OpenTelemetry span context. - - Returns: - Dictionary containing trace context with OTEL span information. - """ - otel_span = opentelemetry.trace.get_current_span() - - if otel_span and otel_span.get_span_context().is_valid: - span_context = otel_span.get_span_context() - return { - **super().header_contents(), - "otelSpanId": span_context.span_id, - "otelTraceId": span_context.trace_id, - } - else: - return super().header_contents() - - def context_from_header( - self, - input: _InputWithHeaders, - ): - """Extracts and initializes trace information the input header.""" - span_info = self.get_header_contents(input) - - if span_info is None: - return - otel_span_id = span_info.get("otelSpanId") - otel_trace_id = span_info.get("otelTraceId") - - # Seed the trace id before the trace is reconstructed so the workflow's root - # OTEL span shares the caller's trace id rather than generating a new one. - if otel_trace_id and self._otel_id_generator: - self._otel_id_generator.seed_trace_id(otel_trace_id) - - # If only a trace was propagated from the caller, we need to seed for trace context - if otel_span_id and self._otel_id_generator and span_info.get("spanId") is None: - self._otel_id_generator.seed_span_id(otel_span_id) - - super().trace_context_from_header_contents(span_info) - - # If a span was propagated from the caller, we need to seed for span context - if ( - otel_span_id - and self._otel_id_generator - and span_info.get("spanId") is not None - ): - self._otel_id_generator.seed_span_id(otel_span_id) - - super().span_context_from_header_contents(span_info) diff --git a/temporalio/contrib/openai_agents/_temporal_model_stub.py b/temporalio/contrib/openai_agents/_temporal_model_stub.py deleted file mode 100644 index d184daa4a..000000000 --- a/temporalio/contrib/openai_agents/_temporal_model_stub.py +++ /dev/null @@ -1,296 +0,0 @@ -from __future__ import annotations - -from collections.abc import AsyncIterator -from typing import Any - -from agents import ( - Agent, - AgentOutputSchema, - AgentOutputSchemaBase, - CodeInterpreterTool, - FileSearchTool, - FunctionTool, - Handoff, - HostedMCPTool, - ImageGenerationTool, - Model, - ModelResponse, - ModelSettings, - ModelTracing, - Tool, - TResponseInputItem, - WebSearchTool, -) -from agents.items import TResponseStreamEvent -from agents.tool import ( - ApplyPatchTool, - CustomTool, - LocalShellTool, - ShellTool, - ToolSearchTool, -) -from openai.types.responses.response_prompt_param import ResponsePromptParam - -from temporalio import workflow -from temporalio.contrib.openai_agents._invoke_model_activity import ( - ActivityModelInput, - AgentOutputSchemaInput, - ApplyPatchToolInput, - CustomToolInput, - FunctionToolInput, - HandoffInput, - HostedMCPToolInput, - ModelActivity, - ModelTracingInput, - ShellToolInput, - StreamingActivityModelInput, - ToolInput, -) -from temporalio.contrib.openai_agents._model_parameters import ModelActivityParameters - - -class _TemporalModelStub(Model): # type:ignore[reportUnusedClass] - """A stub that allows invoking models as Temporal activities.""" - - def __init__( - self, - model_name: str | None, - *, - model_params: ModelActivityParameters, - agent: Agent[Any] | None, - ) -> None: - self.model_name = model_name - self.model_params = model_params - self.agent = agent - - def _build_activity_input( - self, - *, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - previous_response_id: str | None, - conversation_id: str | None, - prompt: ResponsePromptParam | None, - ) -> tuple[ActivityModelInput, str | None]: - def make_tool_info(tool: Tool) -> ToolInput: - if isinstance( - tool, - ( - FileSearchTool, - WebSearchTool, - ImageGenerationTool, - CodeInterpreterTool, - LocalShellTool, - ToolSearchTool, - ), - ): - return tool - elif isinstance(tool, ShellTool): - return ShellToolInput( - name=tool.name, - environment=tool.environment, - ) - elif isinstance(tool, ApplyPatchTool): - return ApplyPatchToolInput(name=tool.name) - elif isinstance(tool, HostedMCPTool): - return HostedMCPToolInput(tool_config=tool.tool_config) - elif isinstance(tool, CustomTool): - return CustomToolInput(tool_config=tool.tool_config) - elif isinstance(tool, FunctionTool): - return FunctionToolInput( - name=tool.name, - description=tool.description, - params_json_schema=tool.params_json_schema, - strict_json_schema=tool.strict_json_schema, - ) - else: - raise ValueError(f"Unsupported tool type: {tool.name}") - - tool_infos = [make_tool_info(x) for x in tools] - handoff_infos = [ - HandoffInput( - tool_name=x.tool_name, - tool_description=x.tool_description, - input_json_schema=x.input_json_schema, - agent_name=x.agent_name, - strict_json_schema=x.strict_json_schema, - ) - for x in handoffs - ] - if output_schema is not None and not isinstance( - output_schema, AgentOutputSchema - ): - raise TypeError( - f"Only AgentOutputSchema is supported by Temporal Model, got {type(output_schema).__name__}" - ) - agent_output_schema = output_schema - output_schema_input = ( - None - if agent_output_schema is None - else AgentOutputSchemaInput( - output_type_name=agent_output_schema.name(), - is_wrapped=agent_output_schema._is_wrapped, - output_schema=agent_output_schema.json_schema() - if not agent_output_schema.is_plain_text() - else None, - strict_json_schema=agent_output_schema.is_strict_json_schema(), - ) - ) - - activity_input = ActivityModelInput( - model_name=self.model_name, - system_instructions=system_instructions, - input=input, - model_settings=model_settings, - tools=tool_infos, - output_schema=output_schema_input, - handoffs=handoff_infos, - tracing=ModelTracingInput(tracing.value), - previous_response_id=previous_response_id, - conversation_id=conversation_id, - prompt=prompt, - ) - - if self.model_params.summary_override: - summary = ( - self.model_params.summary_override - if isinstance(self.model_params.summary_override, str) - else ( - self.model_params.summary_override.provide( - self.agent, system_instructions, input - ) - ) - ) - elif self.agent: - summary = self.agent.name - else: - summary = None - - return activity_input, summary - - async def get_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - *, - previous_response_id: str | None, - conversation_id: str | None, - prompt: ResponsePromptParam | None, - ) -> ModelResponse: - activity_input, summary = self._build_activity_input( - system_instructions=system_instructions, - input=input, - model_settings=model_settings, - tools=tools, - output_schema=output_schema, - handoffs=handoffs, - tracing=tracing, - previous_response_id=previous_response_id, - conversation_id=conversation_id, - prompt=prompt, - ) - - if self.model_params.use_local_activity: - return await workflow.execute_local_activity_method( - ModelActivity.invoke_model_activity, - activity_input, - summary=summary, - schedule_to_close_timeout=self.model_params.schedule_to_close_timeout, - schedule_to_start_timeout=self.model_params.schedule_to_start_timeout, - start_to_close_timeout=self.model_params.start_to_close_timeout, - retry_policy=self.model_params.retry_policy, - cancellation_type=self.model_params.cancellation_type, - ) - return await workflow.execute_activity_method( - ModelActivity.invoke_model_activity, - activity_input, - summary=summary, - task_queue=self.model_params.task_queue, - schedule_to_close_timeout=self.model_params.schedule_to_close_timeout, - schedule_to_start_timeout=self.model_params.schedule_to_start_timeout, - start_to_close_timeout=self.model_params.start_to_close_timeout, - heartbeat_timeout=self.model_params.heartbeat_timeout, - retry_policy=self.model_params.retry_policy, - cancellation_type=self.model_params.cancellation_type, - versioning_intent=self.model_params.versioning_intent, - priority=self.model_params.priority, - ) - - async def stream_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - *, - previous_response_id: str | None, - conversation_id: str | None, - prompt: ResponsePromptParam | None, - ) -> AsyncIterator[TResponseStreamEvent]: - # Streaming relies on activity heartbeats to detect a stuck LLM - # call and on WorkflowStreamClient.from_within_activity() to signal - # partial results back to the workflow. Local activities support - # neither: their result commits with the workflow task, so there - # is no independent task to heartbeat against or to send signals - # from. - if self.model_params.use_local_activity: - raise ValueError( - "Streaming is incompatible with use_local_activity " - "(local activities do not support heartbeats or the " - "workflow stream signal channel)." - ) - - topic = self.model_params.streaming_topic - if topic is None: - raise ValueError( - "Runner.run_streamed requires " - "ModelActivityParameters.streaming_topic to be set." - ) - - base_input, summary = self._build_activity_input( - system_instructions=system_instructions, - input=input, - model_settings=model_settings, - tools=tools, - output_schema=output_schema, - handoffs=handoffs, - tracing=tracing, - previous_response_id=previous_response_id, - conversation_id=conversation_id, - prompt=prompt, - ) - streaming_input: StreamingActivityModelInput = { - **base_input, - "streaming_topic": topic, - "streaming_batch_interval": self.model_params.streaming_batch_interval, - } - - events = await workflow.execute_activity_method( - ModelActivity.invoke_model_activity_streaming, - streaming_input, - summary=summary, - task_queue=self.model_params.task_queue, - schedule_to_close_timeout=self.model_params.schedule_to_close_timeout, - schedule_to_start_timeout=self.model_params.schedule_to_start_timeout, - start_to_close_timeout=self.model_params.start_to_close_timeout, - heartbeat_timeout=self.model_params.heartbeat_timeout, - retry_policy=self.model_params.retry_policy, - cancellation_type=self.model_params.cancellation_type, - versioning_intent=self.model_params.versioning_intent, - priority=self.model_params.priority, - ) - for event in events: - yield event diff --git a/temporalio/contrib/openai_agents/_temporal_openai_agents.py b/temporalio/contrib/openai_agents/_temporal_openai_agents.py deleted file mode 100644 index 6023ad090..000000000 --- a/temporalio/contrib/openai_agents/_temporal_openai_agents.py +++ /dev/null @@ -1,482 +0,0 @@ -"""Initialize Temporal OpenAI Agents overrides.""" - -import dataclasses -import json -import threading -import typing -from collections.abc import AsyncIterator, Callable, Collection, Iterator, Sequence -from contextlib import asynccontextmanager, contextmanager -from datetime import timedelta - -import pydantic -from agents import ModelProvider, Trace, set_trace_provider -from agents.run import get_default_agent_runner, set_default_agent_runner -from agents.tracing import get_trace_provider -from agents.tracing.provider import DefaultTraceProvider - -# construct_type is OpenAI's lenient (non-validating) model builder, the same -# one the SDK uses to parse live API responses. It is in a private module but -# has no public alias. -from openai._models import construct_type - -import temporalio.api.common.v1 -from temporalio.contrib.openai_agents._errors import AgentsWorkflowError -from temporalio.contrib.openai_agents._invoke_model_activity import ModelActivity -from temporalio.contrib.openai_agents._model_parameters import ModelActivityParameters -from temporalio.contrib.openai_agents._openai_runner import ( - TemporalOpenAIRunner, -) -from temporalio.contrib.openai_agents._temporal_trace_provider import ( - TemporalTraceProvider, -) -from temporalio.contrib.openai_agents._temporal_worker_env_ref import ( - AllowAllWorkerEnvVars, - _snapshot_resolvable_env_vars, -) -from temporalio.contrib.openai_agents._trace_interceptor import ( - OpenAIAgentsContextPropagationInterceptor, -) -from temporalio.contrib.opentelemetry._tracer_provider import ReplaySafeTracerProvider -from temporalio.contrib.pydantic import ( - PydanticJSONPlainPayloadConverter, - ToJsonOptions, -) -from temporalio.converter import ( - CompositePayloadConverter, - DataConverter, - DefaultPayloadConverter, - JSONPlainPayloadConverter, -) -from temporalio.plugin import SimplePlugin -from temporalio.worker import WorkflowRunner -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner - -if typing.TYPE_CHECKING: - from temporalio.contrib.openai_agents import ( - SandboxClientProvider, - StatefulMCPServerProvider, - StatelessMCPServerProvider, - ) - - -_otel_trace_start_patch_lock = threading.RLock() -_otel_trace_start_patch_ref_count = 0 -_otel_trace_start_original: Callable[..., typing.Any] | None = None -_otel_trace_start_instrumentor: typing.Any | None = None - - -def _install_otel_instrumentation(tracer_provider: typing.Any) -> None: - """Configure OpenInference while at least one tracing context is active.""" - global _otel_trace_start_instrumentor - global _otel_trace_start_original - global _otel_trace_start_patch_ref_count - - from openinference.instrumentation.openai_agents import OpenAIAgentsInstrumentor - from openinference.instrumentation.openai_agents._processor import ( - OpenInferenceTracingProcessor, - ) - from opentelemetry.context import attach - from opentelemetry.trace import set_span_in_context - - with _otel_trace_start_patch_lock: - if _otel_trace_start_patch_ref_count == 0: - original_on_trace_start = OpenInferenceTracingProcessor.on_trace_start - _otel_trace_start_original = original_on_trace_start - - def on_trace_start(self: typing.Any, trace: Trace) -> None: # type: ignore[reportUnusedFunction] - original_on_trace_start(self, trace) - attach(set_span_in_context(self._root_spans[trace.trace_id])) - - setattr(OpenInferenceTracingProcessor, "on_trace_start", on_trace_start) - try: - _otel_trace_start_instrumentor = OpenAIAgentsInstrumentor() - _otel_trace_start_instrumentor.instrument( - tracer_provider=tracer_provider - ) - except BaseException: - setattr( - OpenInferenceTracingProcessor, - "on_trace_start", - _otel_trace_start_original, - ) - _otel_trace_start_original = None - _otel_trace_start_instrumentor = None - raise - _otel_trace_start_patch_ref_count += 1 - - -def _uninstall_otel_instrumentation() -> None: - """Tear down OpenInference after the final tracing context exits.""" - global _otel_trace_start_instrumentor - global _otel_trace_start_original - global _otel_trace_start_patch_ref_count - - from openinference.instrumentation.openai_agents._processor import ( - OpenInferenceTracingProcessor, - ) - - with _otel_trace_start_patch_lock: - if _otel_trace_start_patch_ref_count == 0: - raise RuntimeError("OpenInference instrumentation was not acquired") - _otel_trace_start_patch_ref_count -= 1 - if _otel_trace_start_patch_ref_count == 0: - try: - if _otel_trace_start_instrumentor is not None: - _otel_trace_start_instrumentor.uninstrument() - finally: - if _otel_trace_start_original is not None: - setattr( - OpenInferenceTracingProcessor, - "on_trace_start", - _otel_trace_start_original, - ) - _otel_trace_start_original = None - _otel_trace_start_instrumentor = None - - -@contextmanager -def _set_open_ai_agent_temporal_overrides( - model_params: ModelActivityParameters, - start_spans_in_replay: bool = False, -): - previous_runner = get_default_agent_runner() - previous_trace_provider = get_trace_provider() - provider = TemporalTraceProvider( - start_spans_in_replay=start_spans_in_replay, - ) - - try: - set_default_agent_runner(TemporalOpenAIRunner(model_params)) - set_trace_provider(provider) - yield provider - finally: - set_default_agent_runner(previous_runner) - set_trace_provider(previous_trace_provider or DefaultTraceProvider()) - - -def _lenient_construct(type_: typing.Any, value: typing.Any) -> typing.Any: - """Build ``value`` into ``type_`` without enforcing required fields. - - OpenAI's ``construct_type`` handles its own response models (and the - unions/lists thereof), but not the ``agents`` dataclasses that wrap them - (e.g. ``ModelResponse``), so the dataclass layer is reconstructed here and - each field delegated to ``construct_type``. ``include_extras`` preserves the - ``Annotated`` discriminators the unions rely on. - """ - if ( - isinstance(type_, type) - and dataclasses.is_dataclass(type_) - and isinstance(value, dict) - ): - hints = typing.get_type_hints(type_, include_extras=True) - return type_( - **{ - field.name: _lenient_construct( - hints.get(field.name, object), value[field.name] - ) - for field in dataclasses.fields(type_) - if field.name in value - } - ) - return construct_type(type_=type_, value=value) - - -class _OpenAIJSONPlainPayloadConverter(PydanticJSONPlainPayloadConverter): - """Strict pydantic deserialization with a lenient fallback. - - OpenAI's response models can drift from live API payloads (e.g. a - deprecated-but-required field the API has stopped sending). The SDK tolerates - this when parsing responses, but strict ``validate_json`` on the workflow - side does not, so fall back to lenient construction when validation fails. - """ - - def from_payload( - self, - payload: temporalio.api.common.v1.Payload, - type_hint: type | None = None, - ) -> typing.Any: - """See base class.""" - try: - return super().from_payload(payload, type_hint) - except pydantic.ValidationError: - if type_hint is None: - raise - return _lenient_construct(type_hint, json.loads(payload.data)) - - -class OpenAIPayloadConverter(CompositePayloadConverter): - """PayloadConverter for OpenAI agents.""" - - def __init__(self) -> None: - """Initialize a payload converter.""" - json_payload_converter = _OpenAIJSONPlainPayloadConverter( - ToJsonOptions(exclude_unset=True) - ) - super().__init__( - *( - c - if not isinstance(c, JSONPlainPayloadConverter) - else json_payload_converter - for c in DefaultPayloadConverter.default_encoding_payload_converters - ) - ) - - -def _data_converter(converter: DataConverter | None) -> DataConverter: - if converter is None: - return DataConverter(payload_converter_class=OpenAIPayloadConverter) - elif converter.payload_converter_class is DefaultPayloadConverter: - return dataclasses.replace( - converter, payload_converter_class=OpenAIPayloadConverter - ) - elif not isinstance(converter.payload_converter, OpenAIPayloadConverter): - raise ValueError( - "The payload converter must be of type OpenAIPayloadConverter." - ) - return converter - - -class OpenAIAgentsPlugin(SimplePlugin): - """Temporal plugin for integrating OpenAI agents with Temporal workflows. - - This plugin provides seamless integration between the OpenAI Agents SDK and - Temporal workflows. It automatically configures the necessary interceptors, - activities, and data converters to enable OpenAI agents to run within - Temporal workflows with proper tracing and model execution. - - The plugin: - 1. Configures the Pydantic data converter for type-safe serialization - 2. Sets up tracing interceptors for OpenAI agent interactions - 3. Registers model execution activities - 4. Automatically registers MCP server activities and manages their lifecycles - 5. Manages the OpenAI agent runtime overrides during worker execution - - Example: - >>> from temporalio.client import Client - >>> from temporalio.worker import Worker - >>> from temporalio.contrib.openai_agents import OpenAIAgentsPlugin, ModelActivityParameters, StatelessMCPServerProvider - >>> from agents.mcp import MCPServerStdio - >>> from datetime import timedelta - >>> - >>> # Configure model parameters - >>> model_params = ModelActivityParameters( - ... start_to_close_timeout=timedelta(seconds=30), - ... retry_policy=RetryPolicy(maximum_attempts=3) - ... ) - >>> - >>> # Create MCP servers - >>> filesystem_server = StatelessMCPServerProvider(MCPServerStdio( - ... name="Filesystem Server", - ... params={"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."]} - ... )) - >>> - >>> # Create plugin with MCP servers - >>> plugin = OpenAIAgentsPlugin( - ... model_params=model_params, - ... mcp_server_providers=[filesystem_server] - ... ) - >>> - >>> # Use with client and worker - >>> client = await Client.connect( - ... "localhost:7233", - ... plugins=[plugin] - ... ) - >>> worker = Worker( - ... client, - ... task_queue="my-task-queue", - ... workflows=[MyWorkflow], - ... ) - """ - - def __init__( - self, - model_params: ModelActivityParameters | None = None, - model_provider: ModelProvider | None = None, - mcp_server_providers: Sequence[ - "StatelessMCPServerProvider | StatefulMCPServerProvider" - ] = (), - sandbox_clients: Sequence["SandboxClientProvider"] = (), - register_activities: bool = True, - add_temporal_spans: bool = True, - use_otel_instrumentation: bool = False, - resolvable_worker_env_vars: Collection[str] | AllowAllWorkerEnvVars = (), - ) -> None: - """Initialize the OpenAI agents plugin. - - Args: - model_params: Configuration parameters for Temporal activity execution - of model calls. If None, default parameters will be used. - model_provider: Optional model provider for custom model implementations. - Useful for testing or custom model integrations. - mcp_server_providers: Sequence of MCP servers to automatically register with the worker. - Each server will be wrapped in a TemporalMCPServer if not already wrapped, - and their activities will be automatically registered with the worker. - The plugin manages the connection lifecycle of these servers. - sandbox_clients: Sequence of named sandbox client providers to register - on the worker. Each provider pairs a unique name with a real - ``BaseSandboxClient`` (e.g. ``DaytonaSandboxClient``, - ``UnixLocalSandboxClient``). On the workflow side, use - ``temporal_sandbox_client`` - with the matching name to target the correct backend. - Warning: sandbox_clients is experimental and behavior may change in future versions. - Use with caution in production environments. - register_activities: Whether to register activities during the worker execution. - This can be disabled on some workers to allow a separation of workflows and activities - but should not be disabled on all workers, or agents will not be able to progress. - add_temporal_spans: Whether to add temporal spans to traces - use_otel_instrumentation: If set to true, enable open telemetry instrumentation. - Warning: use_otel_instrumentation is experimental and behavior may change in future versions. - Use with caution in production environments. - resolvable_worker_env_vars: Names of the environment variables that - ``temporal_worker_env_ref()`` and ``TemporalWorkerEnvValue`` may - read on this worker. Names are matched exactly, with no globbing; - pass ``AllowAllWorkerEnvVars()`` in place of the names to allow - every variable. - Warning: resolvable_worker_env_vars is experimental and behavior may change in future versions. - Use with caution in production environments. - - """ - if model_params is None: - model_params = ModelActivityParameters() - - # For the default provider, we provide a default start_to_close_timeout of 60 seconds. - # Other providers will need to define their own. - if ( - model_params.start_to_close_timeout is None - and model_params.schedule_to_close_timeout is None - ): - if model_provider is None: - model_params.start_to_close_timeout = timedelta(seconds=60) - else: - raise ValueError( - "When configuring a custom provider, the model activity must have start_to_close_timeout or schedule_to_close_timeout" - ) - - self._use_otel_instrumentation = use_otel_instrumentation - - resolvable_env_vars = _snapshot_resolvable_env_vars(resolvable_worker_env_vars) - - # Delay activity construction until they are actually needed - def add_activities( - activities: Sequence[Callable] | None, - ) -> Sequence[Callable]: - if not register_activities: - return activities or [] - - model_activity = ModelActivity( - model_provider, resolvable_worker_env_vars=resolvable_env_vars - ) - new_activities = [ - model_activity.invoke_model_activity, - model_activity.invoke_model_activity_streaming, - ] - - server_names = [server.name for server in mcp_server_providers] - if len(server_names) != len(set(server_names)): - raise ValueError( - "More than one mcp server registered with the same name. Please provide unique names." - ) - - for mcp_server in mcp_server_providers: - new_activities.extend(mcp_server._get_activities()) - - sandbox_names = [sc.name for sc in sandbox_clients] - if len(sandbox_names) != len(set(sandbox_names)): - raise ValueError( - "More than one sandbox client registered with the same name. Please provide unique names." - ) - - for sandbox_provider in sandbox_clients: - new_activities.extend( - sandbox_provider._get_activities(resolvable_env_vars) - ) - - return list(activities or []) + new_activities - - def workflow_runner(runner: WorkflowRunner | None) -> WorkflowRunner: - if not runner: - raise ValueError("No WorkflowRunner provided to the OpenAI plugin.") - - # If in sandbox, add additional passthrough - if isinstance(runner, SandboxedWorkflowRunner): - return dataclasses.replace( - runner, - restrictions=runner.restrictions.with_passthrough_modules( - "openai", "agents", "mcp" - ), - ) - return runner - - if not use_otel_instrumentation: - interceptor = OpenAIAgentsContextPropagationInterceptor( - add_temporal_spans=add_temporal_spans, - ) - else: - from opentelemetry import trace as otel_trace - - from ._otel_trace_interceptor import ( - OTelOpenAIAgentsContextPropagationInterceptor, - ) - - provider = otel_trace.get_tracer_provider() - if not isinstance(provider, ReplaySafeTracerProvider): - raise ValueError( - "Global tracer provider must a ReplaySafeTracerProvider. Use temporalio.contrib.opentelemtry.create_trace_provider to create one." - ) - - interceptor = OTelOpenAIAgentsContextPropagationInterceptor( - add_temporal_spans=add_temporal_spans, - otel_id_generator=provider.id_generator(), - ) - - @asynccontextmanager - async def run_context() -> AsyncIterator[None]: - with self.tracing_context(): - with _set_open_ai_agent_temporal_overrides( - model_params, - start_spans_in_replay=use_otel_instrumentation, - ): - yield - - super().__init__( - name="OpenAIAgentsPlugin", - data_converter=_data_converter, - interceptors=[interceptor], - activities=add_activities, - workflow_runner=workflow_runner, - workflow_failure_exception_types=[AgentsWorkflowError], - run_context=lambda: run_context(), - ) - - @contextmanager - def tracing_context(self) -> Iterator[None]: - """Context manager for setting up OpenAI Agents tracing instrumentation. - - This should be called if AgentsSDK traces and/or spans are started outside of the context of a worker. - For example: - - .. code-block:: python - - with env.openai_agents_plugin.tracing_context(): - with trace("External trace"): - with custom_span("External span"): - workflow_handle = await new_client.start_workflow( - ... - ) - - Yields: - Context with tracing instrumentation enabled. - """ - # Set up OTEL instrumentation if enabled - otel_instrumentation_installed = False - if self._use_otel_instrumentation: - from opentelemetry import trace - - _install_otel_instrumentation(trace.get_tracer_provider()) - otel_instrumentation_installed = True - try: - yield - finally: - # Clean up OTEL instrumentation - if otel_instrumentation_installed: - _uninstall_otel_instrumentation() diff --git a/temporalio/contrib/openai_agents/_temporal_trace_provider.py b/temporalio/contrib/openai_agents/_temporal_trace_provider.py deleted file mode 100644 index 347473545..000000000 --- a/temporalio/contrib/openai_agents/_temporal_trace_provider.py +++ /dev/null @@ -1,211 +0,0 @@ -"""Provides support for integration with OpenAI Agents SDK tracing across workflows""" - -import uuid -from types import TracebackType -from typing import Any, cast - -from agents import SpanData, Trace, TracingProcessor -from agents.tracing import ( - get_trace_provider, -) -from agents.tracing.provider import ( - DefaultTraceProvider, - SynchronousMultiTracingProcessor, -) -from agents.tracing.spans import Span - -import temporalio.workflow -from temporalio import workflow -from temporalio.workflow import ReadOnlyContextError - - -class ActivitySpanData(SpanData): - """Captures fields from ActivityTaskScheduledEventAttributes for tracing.""" - - def __init__( - self, - activity_id: str, - activity_type: str, - task_queue: str, - schedule_to_close_timeout: float | None = None, - schedule_to_start_timeout: float | None = None, - start_to_close_timeout: float | None = None, - heartbeat_timeout: float | None = None, - ): - """Initialize an ActivitySpanData instance.""" - self.activity_id = activity_id - self.activity_type = activity_type - self.task_queue = task_queue - self.schedule_to_close_timeout = schedule_to_close_timeout - self.schedule_to_start_timeout = schedule_to_start_timeout - self.start_to_close_timeout = start_to_close_timeout - self.heartbeat_timeout = heartbeat_timeout - - @property - def type(self) -> str: - """Return the type of this span data.""" - return "temporal-activity" - - def export(self) -> dict[str, Any]: - """Export the span data as a dictionary.""" - return { - "type": self.type, - "activity_id": self.activity_id, - "activity_type": self.activity_type, - "task_queue": self.task_queue, - "schedule_to_close_timeout": self.schedule_to_close_timeout, - "schedule_to_start_timeout": self.schedule_to_start_timeout, - "start_to_close_timeout": self.start_to_close_timeout, - "heartbeat_timeout": self.heartbeat_timeout, - } - - -def activity_span( - activity_id: str, - activity_type: str, - task_queue: str, - start_to_close_timeout: float, -) -> Span[ActivitySpanData]: - """Create a trace span for a Temporal activity.""" - return get_trace_provider().create_span( - span_data=ActivitySpanData( - activity_id=activity_id, - activity_type=activity_type, - task_queue=task_queue, - start_to_close_timeout=start_to_close_timeout, - ), - ) - - -class _TemporalTracingProcessor(SynchronousMultiTracingProcessor): - def __init__( - self, - impl: SynchronousMultiTracingProcessor, - start_spans_in_replay: bool, - ): - super().__init__() - self._impl = impl - self._emit_spans_in_replay = start_spans_in_replay - - def add_tracing_processor(self, tracing_processor: TracingProcessor): - self._impl.add_tracing_processor(tracing_processor) - - def set_processors(self, processors: list[TracingProcessor]): - self._impl.set_processors(processors) - - def on_trace_start(self, trace: Trace) -> None: - if not self._emit_spans_in_replay: - if workflow.in_workflow() and workflow.unsafe.is_replaying_history_events(): - # In replay mode, don't report - return - - self._impl.on_trace_start(trace) - - def on_trace_end(self, trace: Trace) -> None: - if not self._emit_spans_in_replay: - if workflow.in_workflow() and workflow.unsafe.is_replaying_history_events(): - # In replay mode, don't report - return - - self._impl.on_trace_end(trace) - - def on_span_start(self, span: Span[Any]) -> None: - if not self._emit_spans_in_replay: - if workflow.in_workflow() and workflow.unsafe.is_replaying_history_events(): - # In replay mode, don't report - return - self._impl.on_span_start(span) - - def on_span_end(self, span: Span[Any]) -> None: - if not self._emit_spans_in_replay: - if workflow.in_workflow() and workflow.unsafe.is_replaying_history_events(): - # In replay mode, don't report - return - - self._impl.on_span_end(span) - - def shutdown(self, timeout: float | None = None) -> None: - self._impl.shutdown(timeout) - - def force_flush(self) -> None: - self._impl.force_flush() - - -def _workflow_uuid() -> str: - if ( - getattr( - temporalio.workflow.instance(), "__temporal_openai_tracing_random", None - ) - is None - ): - setattr( - temporalio.workflow.instance(), - "__temporal_openai_tracing_random", - temporalio.workflow.new_random(), - ) - random = getattr(temporalio.workflow.instance(), "__temporal_openai_tracing_random") - return uuid.UUID( - bytes=random.getrandbits(16 * 8).to_bytes(16, "big"), version=4 - ).hex[:24] - - -class TemporalTraceProvider(DefaultTraceProvider): - """A trace provider that integrates with Temporal workflows.""" - - def __init__(self, start_spans_in_replay: bool = False): - """Initialize the TemporalTraceProvider.""" - super().__init__() - self._original_provider = cast(DefaultTraceProvider, get_trace_provider()) - self._multi_processor = _TemporalTracingProcessor( - self._original_provider._multi_processor, - start_spans_in_replay, - ) - - def time_iso(self) -> str: - """Return the current deterministic time in ISO 8601 format.""" - if workflow.in_workflow(): - return workflow.now().isoformat() - return super().time_iso() - - def gen_trace_id(self) -> str: - """Generate a new trace ID.""" - if workflow.in_workflow(): - try: - """Generate a new trace ID.""" - return f"trace_{_workflow_uuid()}" - except ReadOnlyContextError: - return f"trace_{uuid.uuid4().hex}" - return super().gen_trace_id() - - def gen_span_id(self) -> str: - """Generate a span ID.""" - if workflow.in_workflow(): - try: - """Generate a deterministic span ID.""" - return f"span_{_workflow_uuid()}" - except ReadOnlyContextError: - return f"span_{uuid.uuid4().hex[:24]}" - return super().gen_span_id() - - def gen_group_id(self) -> str: - """Generate a group ID.""" - if workflow.in_workflow(): - try: - """Generate a deterministic group ID.""" - return f"group_{_workflow_uuid()}" - except ReadOnlyContextError: - return f"group_{uuid.uuid4().hex[:24]}" - return super().gen_group_id() - - def __enter__(self): - """Enter the context of the Temporal trace provider.""" - return self - - def __exit__( - self, - exc_type: type[BaseException], - exc_val: BaseException, - exc_tb: TracebackType, - ): - """Exit the context of the Temporal trace provider.""" - self._multi_processor.shutdown() diff --git a/temporalio/contrib/openai_agents/_temporal_worker_env_ref.py b/temporalio/contrib/openai_agents/_temporal_worker_env_ref.py deleted file mode 100644 index ab8e82625..000000000 --- a/temporalio/contrib/openai_agents/_temporal_worker_env_ref.py +++ /dev/null @@ -1,177 +0,0 @@ -"""Worker-environment secrets: the reference form, and the allowlist both forms share.""" - -from __future__ import annotations - -import dataclasses -import os -import re -from collections.abc import Collection, Mapping, MutableMapping -from typing import Any, cast - -from agents.tool import ShellToolContainerAutoEnvironment, ShellToolEnvironment -from openai.types.responses.tool_param import CodeInterpreter, Mcp - -_REF_PREFIX = "temporal.worker_env_ref:" - -_REF_PATTERN = re.compile(re.escape(_REF_PREFIX) + r"\{([^}{]*)\}") - - -@dataclasses.dataclass(frozen=True) -class AllowAllWorkerEnvVars: - """Make every environment variable on the worker resolvable. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - Pass an instance in place of a list of names:: - - OpenAIAgentsPlugin(resolvable_worker_env_vars=AllowAllWorkerEnvVars()) - - This grants far more on the sandbox form than on the hosted tool form. A - sandbox manifest is written in workflow code, so allowing every name lets a - workflow name any variable on the worker and have its value set inside the - sandbox container, where a shell command the model composes can read it. - """ - - -def _snapshot_resolvable_env_vars( - resolvable_worker_env_vars: Collection[str] | AllowAllWorkerEnvVars, -) -> frozenset[str] | AllowAllWorkerEnvVars: - if isinstance(resolvable_worker_env_vars, AllowAllWorkerEnvVars): - return resolvable_worker_env_vars - if isinstance(resolvable_worker_env_vars, str): - raise TypeError( - "resolvable_worker_env_vars takes a collection of environment variable " - 'names, such as ["MY_MCP_TOKEN"], or AllowAllWorkerEnvVars(). A single ' - "string is read as the collection of its characters, so pass a list even " - "for one name." - ) - if cast(object, resolvable_worker_env_vars) is AllowAllWorkerEnvVars: - raise TypeError( - "resolvable_worker_env_vars takes an AllowAllWorkerEnvVars instance, not " - "the class itself. Pass AllowAllWorkerEnvVars()." - ) - return frozenset(resolvable_worker_env_vars) - - -def _is_resolvable( - resolvable: frozenset[str] | AllowAllWorkerEnvVars, name: str -) -> bool: - return isinstance(resolvable, AllowAllWorkerEnvVars) or name in resolvable - - -def temporal_worker_env_ref(name: str) -> str: - """Refer to a secret held in the Temporal Worker's environment. - - .. warning:: - This function is experimental and may change in future versions. - Use with caution in production environments. - - Use it for a hosted tool credential that should come from the worker's - environment rather than being written into your workflow. Put the returned - reference in a ``HostedMCPTool``'s ``authorization`` or header value, or in - the ``value`` of a ``domain_secrets`` entry under a ``ShellTool`` or - ``CodeInterpreterTool``. The reference carries only the variable's name, - never its value. - - Every worker that runs model activities must set the variable and name it in - ``OpenAIAgentsPlugin(resolvable_worker_env_vars=[...])``. A name the worker - allows but has not set resolves to an empty value. - - Args: - name: Name of the environment variable to read on the worker. - - Returns: - A reference string to use in place of the secret. - """ - return f"{_REF_PREFIX}{{{name}}}" - - -class _WorkerEnvRefResolver: # type:ignore[reportUnusedClass] - def __init__( - self, - resolvable_worker_env_vars: Collection[str] | AllowAllWorkerEnvVars, - ) -> None: - self._allowed = _snapshot_resolvable_env_vars(resolvable_worker_env_vars) - - def _resolve_ref(self, value: str) -> str: - def substitute(match: re.Match[str]) -> str: - name = match.group(1) - if not _is_resolvable(self._allowed, name): - return match.group(0) - return os.environ.get(name, "") - - return _REF_PATTERN.sub(substitute, value) - - def _resolve_domain_secret(self, secret: Mapping[str, Any]) -> dict[str, Any]: - return {**secret, "value": self._resolve_ref(secret["value"])} - - def _resolve_network_policy(self, network_policy: Any) -> Any: - policy = cast(MutableMapping[str, Any], network_policy) - domain_secrets = policy.get("domain_secrets") - if domain_secrets is None: - return network_policy - unresolved = list(domain_secrets) - # On the code interpreter path pydantic deserializes domain_secrets into a - # single-pass iterator, so the entries read here go back onto the input. - policy["domain_secrets"] = unresolved - return { - **policy, - "domain_secrets": [ - self._resolve_domain_secret(secret) for secret in unresolved - ], - } - - def resolve_mcp_tool_config(self, tool_config: Mcp) -> Mcp: - resolved: Mcp = tool_config - if "authorization" in resolved: - resolved = { - **resolved, - "authorization": self._resolve_ref(resolved["authorization"]), - } - headers = resolved.get("headers") - if headers is not None: - resolved = { - **resolved, - "headers": { - name: self._resolve_ref(value) for name, value in headers.items() - }, - } - return resolved - - def resolve_shell_tool_environment( - self, - environment: ShellToolEnvironment | None, - ) -> ShellToolEnvironment: - """An absent environment comes back as the local one ``ShellTool`` normalizes it to.""" - if environment is None: - return {"type": "local"} - if environment.get("type") != "container_auto": - return environment - auto = cast(ShellToolContainerAutoEnvironment, environment) - network_policy = auto.get("network_policy") - if network_policy is None: - return environment - return { - **auto, - "network_policy": self._resolve_network_policy(network_policy), - } - - def resolve_code_interpreter_tool_config( - self, - tool_config: CodeInterpreter, - ) -> CodeInterpreter: - container = tool_config.get("container") - if not isinstance(container, Mapping): - return tool_config - network_policy = container.get("network_policy") - if network_policy is None: - return tool_config - return { - **tool_config, - "container": { - **container, - "network_policy": self._resolve_network_policy(network_policy), - }, - } diff --git a/temporalio/contrib/openai_agents/_trace_interceptor.py b/temporalio/contrib/openai_agents/_trace_interceptor.py deleted file mode 100644 index 66297e20b..000000000 --- a/temporalio/contrib/openai_agents/_trace_interceptor.py +++ /dev/null @@ -1,445 +0,0 @@ -"""Adds OpenAI Agents traces and spans to Temporal workflows and activities.""" - -from __future__ import annotations - -import abc -from collections.abc import Mapping -from contextlib import contextmanager -from typing import Any, Protocol - -from agents import CustomSpanData, custom_span, get_current_span, trace -from agents.tracing import ( - get_trace_provider, -) -from agents.tracing.scope import Scope -from agents.tracing.spans import Span - -import temporalio.api.common.v1 -import temporalio.client -import temporalio.converter -import temporalio.worker -import temporalio.workflow -from temporalio import activity - -HEADER_KEY = "__openai_span" - - -class _InputWithHeaders(Protocol): - headers: Mapping[str, temporalio.api.common.v1.Payload] - - -@contextmanager -def temporal_span( - add_temporal_spans: bool, - span_name: str, -): - """Create a temporal span context manager. - - Args: - add_temporal_spans: Whether to add temporal-specific span data. - span_name: The name of the span to create. - - Yields: - A span context with temporal metadata if enabled. - """ - if add_temporal_spans: - """Extracts and initializes trace information the input header.""" - data = ( - { - "activityId": activity.info().activity_id, - "activity": activity.info().activity_type, - } - if activity.in_activity() - else None - ) - current_span = get_trace_provider().get_current_span() - - with custom_span(name=span_name, parent=current_span, data=data): - yield - else: - yield - - -class OpenAIAgentsContextPropagationInterceptor( - temporalio.client.Interceptor, temporalio.worker.Interceptor -): - """Interceptor that propagates OpenAI agent tracing context through Temporal workflows and activities. - - This interceptor enables tracing of OpenAI agent operations across Temporal workflows - and activities. It propagates trace context through workflow and activity boundaries, - allowing for end-to-end tracing of agent operations. - - The interceptor handles: - 1. Propagating trace context from client to workflow - 2. Propagating trace context from workflow to activities - 3. Maintaining trace context across workflow and activity boundaries - - Example usage: - interceptor = OpenAIAgentsTracingInterceptor() - client = await Client.connect("localhost:7233", interceptors=[interceptor]) - worker = Worker(client, task_queue="my-task-queue", interceptors=[interceptor]) - """ - - def __init__( - self, - payload_converter: temporalio.converter.PayloadConverter = temporalio.converter.default().payload_converter, - add_temporal_spans: bool = True, - start_traces: bool = False, - ) -> None: - """Initialize the interceptor with a payload converter. - - Args: - payload_converter: The payload converter to use for serializing/deserializing - trace context. Defaults to the default Temporal payload converter. - add_temporal_spans: Whether to add temporal-specific spans to traces. - start_traces: Whether to start new traces if none exist. This will cause duplication if the underlying - trace provider actually process start events. Primarily designed for use with Open Telemetry integration. - """ - super().__init__() - self._payload_converter = payload_converter - self._start_traces = start_traces - self._add_temporal_spans = add_temporal_spans - - def intercept_client( - self, next: temporalio.client.OutboundInterceptor - ) -> temporalio.client.OutboundInterceptor: - """Intercepts client calls to propagate trace context. - - Args: - next: The next interceptor in the chain. - - Returns: - An interceptor that propagates trace context for client operations. - """ - return _ContextPropagationClientOutboundInterceptor(next, self) - - def intercept_activity( - self, next: temporalio.worker.ActivityInboundInterceptor - ) -> temporalio.worker.ActivityInboundInterceptor: - """Intercepts activity calls to propagate trace context. - - Args: - next: The next interceptor in the chain. - - Returns: - An interceptor that propagates trace context for activity operations. - """ - return _ContextPropagationActivityInboundInterceptor(next, self) - - def workflow_interceptor_class( - self, input: temporalio.worker.WorkflowInterceptorClassInput - ) -> type[_ContextPropagationWorkflowInboundInterceptor]: - """Returns the workflow interceptor class to propagate trace context. - - Args: - input: The input for creating the workflow interceptor. - - Returns: - The class of the workflow interceptor that propagates trace context. - """ - _root = self - - class ModifiedInterceptor(_ContextPropagationWorkflowInboundInterceptor): - def root(self): - return _root - - return ModifiedInterceptor - - def set_header_from_context(self, input: _InputWithHeaders) -> None: - """Inserts the OpenAI Agents trace/span data in the input header.""" - input.headers = { - **input.headers, - HEADER_KEY: temporalio.converter.PayloadConverter.default.to_payload( - self.header_contents() - ), - } - - def header_contents(self) -> dict[str, Any]: - """Gets the OpenAI Agents trace/span data for the input header.""" - current = get_current_span() - trace = get_trace_provider().get_current_trace() - return { - "traceName": trace.name if trace else "Unknown Workflow", - "spanId": current.span_id if current else None, - "traceId": trace.trace_id if trace else None, - } - - def get_header_contents(self, input: _InputWithHeaders) -> dict[str, Any] | None: - """Extract trace context information from input headers. - - Args: - input: Input with headers containing trace information. - - Returns: - Dictionary containing trace context or None if no headers present. - """ - payload = input.headers.get(HEADER_KEY) - return self._payload_converter.from_payload(payload) if payload else None - - def trace_context_from_header_contents(self, span_info: dict[str, Any]): - """Initialize trace context from header contents. - - Args: - span_info: Dictionary containing trace information from headers. - """ - current_trace = get_trace_provider().get_current_trace() - if current_trace is None and span_info["traceId"] is not None: - current_trace = trace( - span_info["traceName"], - trace_id=span_info["traceId"], - ) - - if self._start_traces: - current_trace.start(mark_as_current=True) - else: - Scope.set_current_trace(current_trace) - - def span_context_from_header_contents(self, span_info: dict[str, Any]): - """Initialize span context from header contents. - - Args: - span_info: Dictionary containing span information from headers. - """ - current_span = get_trace_provider().get_current_span() - if current_span is None and span_info["spanId"] is not None: - current_span = get_trace_provider().create_span( - span_data=CustomSpanData(name="", data={}), span_id=span_info["spanId"] - ) - if self._start_traces: - current_span.start(mark_as_current=True) - else: - Scope.set_current_span(current_span) - - def context_from_header( - self, - input: _InputWithHeaders, - ): - """Extracts and initializes trace information the input header.""" - span_info = self.get_header_contents(input) - if span_info is None: - return - - self.trace_context_from_header_contents(span_info) - self.span_context_from_header_contents(span_info) - - @contextmanager - def maybe_span(self, span_name: str, data: dict[str, Any] | None): - """Context manager that conditionally creates a span. - - Args: - span_name: Name for the span. - data: Optional data to attach to the span. - - Yields: - Context with optional span tracking. - """ - if ( - self._add_temporal_spans - and get_trace_provider().get_current_trace() is not None - ): - with custom_span(name=span_name, data=data): - yield - else: - yield - - -class _ContextPropagationClientOutboundInterceptor( - temporalio.client.OutboundInterceptor -): - def __init__( - self, - next: temporalio.client.OutboundInterceptor, - root: OpenAIAgentsContextPropagationInterceptor, - ) -> None: - super().__init__(next) - self._root = root - - async def start_workflow( - self, input: temporalio.client.StartWorkflowInput - ) -> temporalio.client.WorkflowHandle[Any, Any]: - data = {"workflowId": input.id} if input.id else None - span_name = "temporal:startWorkflow" - with self._root.maybe_span( - span_name + ":" + input.workflow, - data=data, - ): - self._root.set_header_from_context(input) - return await super().start_workflow(input) - - async def query_workflow(self, input: temporalio.client.QueryWorkflowInput) -> Any: - data = {"workflowId": input.id, "query": input.query} - span_name = "temporal:queryWorkflow" - with self._root.maybe_span( - span_name, - data=data, - ): - self._root.set_header_from_context(input) - return await super().query_workflow(input) - - async def signal_workflow( - self, input: temporalio.client.SignalWorkflowInput - ) -> None: - data = {"workflowId": input.id, "signal": input.signal} - span_name = "temporal:signalWorkflow" - with self._root.maybe_span( - span_name, - data=data, - ): - self._root.set_header_from_context(input) - await super().signal_workflow(input) - - async def start_workflow_update( - self, input: temporalio.client.StartWorkflowUpdateInput - ) -> temporalio.client.WorkflowUpdateHandle[Any]: - data = { - **({"workflowId": input.id} if input.id else {}), - "update": input.update, - } - span_name = "temporal:updateWorkflow" - with self._root.maybe_span( - span_name, - data=data, - ): - self._root.set_header_from_context(input) - return await self.next.start_workflow_update(input) - - -class _ContextPropagationActivityInboundInterceptor( - temporalio.worker.ActivityInboundInterceptor -): - def __init__( - self, - next: temporalio.worker.ActivityInboundInterceptor, - root: OpenAIAgentsContextPropagationInterceptor, - ) -> None: - super().__init__(next) - self._root = root - - async def execute_activity( - self, input: temporalio.worker.ExecuteActivityInput - ) -> Any: - self._root.context_from_header(input) - with temporal_span(self._root._add_temporal_spans, "temporal:executeActivity"): - return await self.next.execute_activity(input) - - -class _ContextPropagationWorkflowInboundInterceptor( - temporalio.worker.WorkflowInboundInterceptor, abc.ABC -): - @abc.abstractmethod - def root(self): - raise NotImplementedError - - def init(self, outbound: temporalio.worker.WorkflowOutboundInterceptor) -> None: - _root = self.root() - - class ModifiedInterceptor(_ContextPropagationWorkflowOutboundInterceptor): - def root(self): - return _root - - self.next.init(ModifiedInterceptor(outbound)) - - async def execute_workflow( - self, input: temporalio.worker.ExecuteWorkflowInput - ) -> Any: - self.root().context_from_header(input) - with temporal_span(self.root()._add_temporal_spans, "temporal:executeWorkflow"): - return await self.next.execute_workflow(input) - - async def handle_signal(self, input: temporalio.worker.HandleSignalInput) -> None: - self.root().context_from_header(input) - with temporal_span(self.root()._add_temporal_spans, "temporal:handleSignal"): - return await self.next.handle_signal(input) - - async def handle_query(self, input: temporalio.worker.HandleQueryInput) -> Any: - with temporal_span(self.root()._add_temporal_spans, "temporal:handleQuery"): - return await self.next.handle_query(input) - - def handle_update_validator( - self, input: temporalio.worker.HandleUpdateInput - ) -> None: - self.root().context_from_header(input) - self.next.handle_update_validator(input) - - async def handle_update_handler( - self, input: temporalio.worker.HandleUpdateInput - ) -> Any: - self.root().context_from_header(input) - return await self.next.handle_update_handler(input) - - -class _ContextPropagationWorkflowOutboundInterceptor( - temporalio.worker.WorkflowOutboundInterceptor, abc.ABC -): - @abc.abstractmethod - def root(self): - raise NotImplementedError - - async def signal_child_workflow( - self, input: temporalio.worker.SignalChildWorkflowInput - ) -> None: - with self.root().maybe_span( - "temporal:signalChildWorkflow", - data={"workflowId": input.child_workflow_id}, - ): - self.root().set_header_from_context(input) - await self.next.signal_child_workflow(input) - - async def signal_external_workflow( - self, input: temporalio.worker.SignalExternalWorkflowInput - ) -> None: - with self.root().maybe_span( - "temporal:signalExternalWorkflow", - data={"workflowId": input.workflow_id}, - ): - self.root().set_header_from_context(input) - await self.next.signal_external_workflow(input) - - def start_activity( - self, input: temporalio.worker.StartActivityInput - ) -> temporalio.workflow.ActivityHandle: - trace = get_trace_provider().get_current_trace() - span: Span | None = None - if trace and self.root()._add_temporal_spans: - span = custom_span( - name="temporal:startActivity", data={"activity": input.activity} - ) - span.start(mark_as_current=True) - - self.root().set_header_from_context(input) - handle = self.next.start_activity(input) - if span: - handle.add_done_callback(lambda _: span.finish()) # type: ignore - return handle - - async def start_child_workflow( - self, input: temporalio.worker.StartChildWorkflowInput - ) -> temporalio.workflow.ChildWorkflowHandle: - trace = get_trace_provider().get_current_trace() - span: Span | None = None - if trace and self.root()._add_temporal_spans: - span = custom_span( - name="temporal:startChildWorkflow", data={"workflow": input.workflow} - ) - span.start(mark_as_current=True) - self.root().set_header_from_context(input) - handle = await self.next.start_child_workflow(input) - if span: - handle.add_done_callback(lambda _: span.finish()) # type: ignore - return handle - - def start_local_activity( - self, input: temporalio.worker.StartLocalActivityInput - ) -> temporalio.workflow.ActivityHandle: - trace = get_trace_provider().get_current_trace() - span: Span | None = None - if trace and self.root()._add_temporal_spans: - span = custom_span( - name="temporal:startLocalActivity", data={"activity": input.activity} - ) - span.start(mark_as_current=True) - self.root().set_header_from_context(input) - handle = self.next.start_local_activity(input) - if span: - handle.add_done_callback(lambda _: span.finish()) # type: ignore - return handle diff --git a/temporalio/contrib/openai_agents/sandbox/__init__.py b/temporalio/contrib/openai_agents/sandbox/__init__.py deleted file mode 100644 index 632b264cd..000000000 --- a/temporalio/contrib/openai_agents/sandbox/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Sandbox support for Temporal OpenAI Agents plugin.""" diff --git a/temporalio/contrib/openai_agents/sandbox/_sandbox_client_provider.py b/temporalio/contrib/openai_agents/sandbox/_sandbox_client_provider.py deleted file mode 100644 index f16895255..000000000 --- a/temporalio/contrib/openai_agents/sandbox/_sandbox_client_provider.py +++ /dev/null @@ -1,304 +0,0 @@ -"""Public-facing provider that pairs a name with a real sandbox client.""" - -from __future__ import annotations - -import io -from collections.abc import Callable, Collection, Iterator, Sequence -from contextlib import contextmanager -from pathlib import Path -from typing import Any - -from agents.sandbox.errors import SandboxError -from agents.sandbox.session.sandbox_client import BaseSandboxClient -from agents.sandbox.session.sandbox_session import SandboxSession - -from temporalio import activity -from temporalio.contrib.openai_agents._temporal_worker_env_ref import ( - AllowAllWorkerEnvVars, - _snapshot_resolvable_env_vars, -) -from temporalio.contrib.openai_agents.sandbox._temporal_activity_models import ( - CreateSessionArgs, - ExecArgs, - HydrateWorkspaceArgs, - PersistWorkspaceArgs, - PersistWorkspaceResult, - PtyExecStartArgs, - PtyExecUpdateResult, - PtyWriteStdinArgs, - ReadArgs, - ReadResult, - ResumeSessionArgs, - RunningArgs, - RunningResult, - SessionResult, - StartArgs, - StopArgs, - WriteArgs, - _HasState, -) -from temporalio.contrib.openai_agents.sandbox._temporal_activity_models import ( - ExecResult as ExecResultModel, -) -from temporalio.contrib.openai_agents.sandbox._temporal_worker_env_value import ( - _resolvable_worker_env_vars_scope, -) -from temporalio.exceptions import ApplicationError - - -@contextmanager -def _translate_sandbox_errors() -> Iterator[None]: - # Temporal retries every activity exception by default, so only a SandboxError - # the library has classified as terminal (retryable is False) is turned into a - # non-retryable ApplicationError. - try: - yield - except SandboxError as e: - if e.retryable is False: - raise ApplicationError( - str(e), type=str(e.error_code), non_retryable=True - ) from e - raise - - -@contextmanager -def _sandbox_activity_scope( - resolvable_worker_env_vars: frozenset[str] | AllowAllWorkerEnvVars, -) -> Iterator[None]: - with _resolvable_worker_env_vars_scope(resolvable_worker_env_vars): - with _translate_sandbox_errors(): - yield - - -class SandboxClientProvider: - """A named sandbox client provider for Temporal workflows. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - Wraps a ``BaseSandboxClient`` with a unique name so that multiple - sandbox backends can be registered on a single Temporal worker. Each - provider gets its own set of Temporal activities whose names are prefixed - with the provider name, allowing them to coexist on the same task queue. - - On the **worker side**, pass one or more providers to the plugin:: - - plugin = OpenAIAgentsPlugin( - sandbox_clients=[ - SandboxClientProvider("daytona", DaytonaSandboxClient()), - SandboxClientProvider("local", UnixLocalSandboxClient()), - ], - ) - - On the **workflow side**, reference a provider by name via - :func:`temporalio.contrib.openai_agents.workflow.temporal_sandbox_client`:: - - run_config = RunConfig( - sandbox=SandboxRunConfig( - client=temporal_sandbox_client("daytona"), - ... - ), - ) - - Args: - name: A unique name for this sandbox backend (e.g. ``"daytona"``, - ``"local"``). Must match the name used on the workflow side. - client: The real ``BaseSandboxClient`` that performs sandbox - lifecycle and I/O operations on the worker. - """ - - def __init__(self, name: str, client: BaseSandboxClient[Any]) -> None: - """Initialize the provider.""" - self._name = name - self._client = client - self._sessions: dict[str, SandboxSession] = {} - - @property - def name(self) -> str: - """The provider name used as an activity-name prefix.""" - return self._name - - async def _session(self, args: _HasState) -> SandboxSession: - key = str(args.state.session_id) - if key not in self._sessions: - self._sessions[key] = await self._client.resume(args.state) - return self._sessions[key] - - def _get_activities( - self, resolvable_worker_env_vars: Collection[str] | AllowAllWorkerEnvVars - ) -> Sequence[Callable[..., Any]]: - """Return all activity callables for registration with a Temporal Worker.""" - prefix = self._name - resolvable = _snapshot_resolvable_env_vars(resolvable_worker_env_vars) - - # -- Client-level operations (lifecycle) -- - - @activity.defn(name=f"{prefix}-sandbox_client_create") - async def create_session(args: CreateSessionArgs) -> SessionResult: - with _sandbox_activity_scope(resolvable): - session = await self._client.create( - snapshot=args.snapshot_spec, - manifest=args.manifest, - options=args.client_options, - ) - self._sessions[str(session.state.session_id)] = session - return SessionResult( - state=session.state, supports_pty=session.supports_pty() - ) - - @activity.defn(name=f"{prefix}-sandbox_client_resume") - async def resume_session(args: ResumeSessionArgs) -> SessionResult: - with _sandbox_activity_scope(resolvable): - session = await self._client.resume(args.state) - self._sessions[str(session.state.session_id)] = session - return SessionResult( - state=session.state, supports_pty=session.supports_pty() - ) - - @activity.defn(name=f"{prefix}-sandbox_client_delete") - async def delete_session(args: StopArgs) -> None: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - await self._client.delete(session) - return None - - # -- Session-level operations (I/O and lifecycle) -- - - @activity.defn(name=f"{prefix}-sandbox_session_exec") - async def exec_(args: ExecArgs) -> ExecResultModel: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - result = await session.exec( - *args.command, - timeout=args.timeout, - shell=args.shell, - user=args.user, - ) - return ExecResultModel( - stdout=result.stdout, - stderr=result.stderr, - exit_code=result.exit_code, - ) - - @activity.defn(name=f"{prefix}-sandbox_session_read") - async def read(args: ReadArgs) -> ReadResult: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - handle = await session.read(Path(args.path)) - return ReadResult(data=handle.read()) - - @activity.defn(name=f"{prefix}-sandbox_session_write") - async def write(args: WriteArgs) -> None: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - await session.write(Path(args.path), io.BytesIO(args.data)) - return None - - @activity.defn(name=f"{prefix}-sandbox_session_running") - async def running(args: RunningArgs) -> RunningResult: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - return RunningResult(is_running=await session.running()) - - @activity.defn(name=f"{prefix}-sandbox_session_persist_workspace") - async def persist_workspace( - args: PersistWorkspaceArgs, - ) -> PersistWorkspaceResult: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - stream = await session.persist_workspace() - return PersistWorkspaceResult(data=stream.read()) - - @activity.defn(name=f"{prefix}-sandbox_session_hydrate_workspace") - async def hydrate_workspace(args: HydrateWorkspaceArgs) -> None: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - await session.hydrate_workspace(io.BytesIO(args.data)) - return None - - @activity.defn(name=f"{prefix}-sandbox_session_pty_exec_start") - async def pty_exec_start(args: PtyExecStartArgs) -> PtyExecUpdateResult: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - update = await session.pty_exec_start( - *args.command, - timeout=args.timeout, - shell=args.shell, - user=args.user, - tty=args.tty, - yield_time_s=args.yield_time_s, - max_output_tokens=args.max_output_tokens, - ) - return PtyExecUpdateResult( - process_id=update.process_id, - output=update.output, - exit_code=update.exit_code, - original_token_count=update.original_token_count, - ) - - @activity.defn(name=f"{prefix}-sandbox_session_pty_write_stdin") - async def pty_write_stdin(args: PtyWriteStdinArgs) -> PtyExecUpdateResult: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - update = await session.pty_write_stdin( - session_id=args.session_id, - chars=args.chars, - yield_time_s=args.yield_time_s, - max_output_tokens=args.max_output_tokens, - ) - return PtyExecUpdateResult( - process_id=update.process_id, - output=update.output, - exit_code=update.exit_code, - original_token_count=update.original_token_count, - ) - - @activity.defn(name=f"{prefix}-sandbox_session_start") - async def start(args: StartArgs) -> None: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - await session.start() - return None - - @activity.defn(name=f"{prefix}-sandbox_session_stop") - async def session_stop(args: StopArgs) -> None: - with _sandbox_activity_scope(resolvable): - session = await self._session(args) - await session.stop() - return None - - @activity.defn(name=f"{prefix}-sandbox_session_shutdown") - async def session_shutdown(args: StopArgs) -> None: - key = str(args.state.session_id) - session = self._sessions.get(key) - if session is None: - return None - try: - with _sandbox_activity_scope(resolvable): - await session.shutdown() - except ApplicationError: - # Terminal failure: the session is dead, so evict it before - # re-raising. A retryable error instead propagates with the - # entry kept so the activity's retry can still shut it down. - del self._sessions[key] - raise - del self._sessions[key] - return None - - return [ - create_session, - resume_session, - delete_session, - exec_, - read, - write, - running, - persist_workspace, - hydrate_workspace, - pty_exec_start, - pty_write_stdin, - start, - session_stop, - session_shutdown, - ] diff --git a/temporalio/contrib/openai_agents/sandbox/_temporal_activity_models.py b/temporalio/contrib/openai_agents/sandbox/_temporal_activity_models.py deleted file mode 100644 index 5cdc0ccba..000000000 --- a/temporalio/contrib/openai_agents/sandbox/_temporal_activity_models.py +++ /dev/null @@ -1,218 +0,0 @@ -"""Pydantic models for Temporal sandbox activity arguments and results. - -Using ``pydantic_data_converter`` on the Temporal client means these models are -serialized/deserialized automatically. Each activity receives a single typed -model instance rather than a positional arg list. -""" - -from __future__ import annotations - -from base64 import b64decode, b64encode -from typing import Annotated, Any, cast - -from agents.sandbox import Manifest -from agents.sandbox.session.sandbox_client import BaseSandboxClientOptions -from agents.sandbox.session.sandbox_session_state import SandboxSessionState -from agents.sandbox.snapshot import SnapshotBase, SnapshotSpecUnion -from agents.sandbox.types import User -from pydantic import ( - BaseModel, - BeforeValidator, - PlainSerializer, - SerializeAsAny, - field_validator, -) - - -def _coerce_bytes(v: Any) -> bytes: - if isinstance(v, bytes): - return v - if isinstance(v, str): - return b64decode(v) - raise ValueError(f"Expected bytes or base64 string, got {type(v)}") - - -# Bytes type that is stored as raw bytes in Python but base64-encoded in JSON, -# ensuring lossless serialization of arbitrary binary data through pydantic. -JsonSafeBytes = Annotated[ - bytes, - BeforeValidator(_coerce_bytes), - PlainSerializer(lambda v: b64encode(v).decode("ascii"), return_type=str), -] - -# --------------------------------------------------------------------------- -# Shared base for all argument models that carry a session state field. -# --------------------------------------------------------------------------- - - -class _HasState(BaseModel): - state: SerializeAsAny[SandboxSessionState] - - @field_validator("state", mode="before") - @classmethod - def _coerce_state(cls, value: object) -> SandboxSessionState: - return SandboxSessionState.parse(value) - - -# --------------------------------------------------------------------------- -# Argument models (workflow -> activity) -# --------------------------------------------------------------------------- - - -class ExecArgs(_HasState): - """Arguments for exec activity.""" - - command: list[str] - timeout: float | None = None - shell: bool | list[str] = True - user: str | User | None = None - - -class ReadArgs(_HasState): - """Arguments for read activity.""" - - path: str - - -class WriteArgs(_HasState): - """Arguments for write activity.""" - - path: str - data: JsonSafeBytes - - -class RunningArgs(_HasState): - """Arguments for running check activity.""" - - pass - - -class PersistWorkspaceArgs(_HasState): - """Arguments for persist workspace activity.""" - - pass - - -class HydrateWorkspaceArgs(_HasState): - """Arguments for hydrate workspace activity.""" - - data: JsonSafeBytes - - -class PtyExecStartArgs(_HasState): - """Arguments for PTY exec start activity.""" - - command: list[str] - timeout: float | None = None - shell: bool | list[str] = True - user: str | User | None = None - tty: bool = False - yield_time_s: float | None = None - max_output_tokens: int | None = None - - -class PtyWriteStdinArgs(_HasState): - """Arguments for PTY write stdin activity.""" - - session_id: int - chars: str - yield_time_s: float | None = None - max_output_tokens: int | None = None - - -class StartArgs(_HasState): - """Arguments for start activity.""" - - pass - - -class StopArgs(_HasState): - """Arguments for stop activity.""" - - pass - - -# --------------------------------------------------------------------------- -# Result models (activity -> workflow) -# --------------------------------------------------------------------------- - - -class ExecResult(BaseModel): - """Result of an exec activity.""" - - stdout: JsonSafeBytes - stderr: JsonSafeBytes - exit_code: int - - -class PtyExecUpdateResult(BaseModel): - """Result of a PTY exec activity.""" - - process_id: int | None - output: JsonSafeBytes - exit_code: int | None - original_token_count: int | None - - -class ReadResult(BaseModel): - """Result of a read activity.""" - - data: JsonSafeBytes - - -class RunningResult(BaseModel): - """Result of a running check activity.""" - - is_running: bool - - -class PersistWorkspaceResult(BaseModel): - """Result of a persist workspace activity.""" - - data: JsonSafeBytes - - -# --------------------------------------------------------------------------- -# Session lifecycle models (create / resume) -# --------------------------------------------------------------------------- - - -class CreateSessionArgs(BaseModel): - """Arguments for create session activity.""" - - snapshot_spec: SnapshotSpecUnion | SerializeAsAny[SnapshotBase] | None = None - manifest: Manifest | None = None - client_options: SerializeAsAny[BaseSandboxClientOptions] | None = None - - @field_validator("snapshot_spec", mode="before") - @classmethod - def _coerce_snapshot_spec( - cls, value: object - ) -> SnapshotSpecUnion | SnapshotBase | None: - if value is None or isinstance(value, SnapshotBase): - return value - # SnapshotBase subclasses always carry an `id` field; - # SnapshotSpec subclasses do not. Use that to distinguish - # serialized SnapshotBase dicts from SnapshotSpecUnion dicts. - if isinstance(value, dict) and "id" in value: - return SnapshotBase.parse(value) - return cast(SnapshotSpecUnion | None, value) - - @field_validator("client_options", mode="before") - @classmethod - def _coerce_client_options(cls, value: object) -> BaseSandboxClientOptions | None: - if value is None: - return None - return BaseSandboxClientOptions.parse(value) - - -class ResumeSessionArgs(_HasState): - """Arguments for resume session activity.""" - - pass - - -class SessionResult(_HasState): - """Result of create/resume -- session state + capabilities.""" - - supports_pty: bool diff --git a/temporalio/contrib/openai_agents/sandbox/_temporal_sandbox_client.py b/temporalio/contrib/openai_agents/sandbox/_temporal_sandbox_client.py deleted file mode 100644 index 4df0d9405..000000000 --- a/temporalio/contrib/openai_agents/sandbox/_temporal_sandbox_client.py +++ /dev/null @@ -1,140 +0,0 @@ -"""Temporal-aware sandbox client that dispatches lifecycle operations as activities.""" - -from __future__ import annotations - -from datetime import timedelta -from typing import Any - -from agents.sandbox import Manifest -from agents.sandbox.session.sandbox_client import ( - BaseSandboxClient, - BaseSandboxClientOptions, -) -from agents.sandbox.session.sandbox_session import SandboxSession -from agents.sandbox.session.sandbox_session_state import SandboxSessionState -from agents.sandbox.snapshot import SnapshotBase, SnapshotSpec, SnapshotSpecUnion -from pydantic.type_adapter import TypeAdapter - -from temporalio import workflow -from temporalio.contrib.openai_agents._errors import AgentsWorkflowError -from temporalio.contrib.openai_agents.sandbox._temporal_activity_models import ( - CreateSessionArgs, - ResumeSessionArgs, - SessionResult, - StopArgs, -) -from temporalio.contrib.openai_agents.sandbox._temporal_sandbox_session import ( - TemporalSandboxSession, -) -from temporalio.workflow import ActivityConfig - - -class TemporalSandboxClient(BaseSandboxClient[BaseSandboxClientOptions]): - """Stateless client that dispatches all lifecycle operations as Temporal activities. - - No inner client is needed -- session creation, resumption, and deletion are - all handled by activities whose names are prefixed with the provider - ``name`` (e.g. ``"daytona-sandbox_create_session"``). The real - ``BaseSandboxClient`` lives inside :class:`SandboxClientProvider` on the worker. - - Users should never need to instantiate this directly -- use - :func:`temporalio.contrib.openai_agents.workflow.temporal_sandbox_client` - instead. - - Args: - name: The name of the :class:`SandboxClientProvider` registered on the - worker. Used as an activity-name prefix so that the correct - sandbox backend is targeted. - config: Optional activity configuration for controlling timeouts, - retries, etc. Defaults to a 5-minute ``start_to_close_timeout``. - """ - - def __init__( - self, - name: str, - config: ActivityConfig | None = None, - ) -> None: - """Initialize the client.""" - self._name = name - self._config: ActivityConfig = config or ActivityConfig( - start_to_close_timeout=timedelta(minutes=5), - ) - self.backend_id = name - - async def create( - self, - *, - snapshot: SnapshotSpec | SnapshotBase | None = None, - manifest: Manifest | None = None, - options: BaseSandboxClientOptions, - ) -> SandboxSession: - """Create a new sandbox session via activity.""" - _reject_host_path_grants(manifest) - result: SessionResult = await workflow.execute_activity( - f"{self._name}-sandbox_client_create", - arg=CreateSessionArgs( - snapshot_spec=TypeAdapter(SnapshotSpecUnion).validate_python(snapshot) - if isinstance(snapshot, SnapshotSpec) - else snapshot, - manifest=manifest, - client_options=options, - ), - result_type=SessionResult, - **self._config, - ) - return self._wrap_session( - TemporalSandboxSession( - name=self._name, - config=self._config, - state=result.state, - supports_pty_flag=result.supports_pty, - ), - # Real instrumentation runs in the activity in the real client session. - instrumentation=None, - ) - - async def resume(self, state: SandboxSessionState) -> SandboxSession: - """Resume an existing sandbox session via activity.""" - _reject_host_path_grants(state.manifest) - result: SessionResult = await workflow.execute_activity( - f"{self._name}-sandbox_client_resume", - arg=ResumeSessionArgs(state=state), - result_type=SessionResult, - **self._config, - ) - return self._wrap_session( - TemporalSandboxSession( - name=self._name, - config=self._config, - state=result.state, - supports_pty_flag=result.supports_pty, - ), - # Real instrumentation runs in the activity in the real client session. - instrumentation=None, - ) - - async def delete(self, session: TemporalSandboxSession) -> TemporalSandboxSession: # type: ignore[override] - """Delete a sandbox session via activity.""" - await workflow.execute_activity( - f"{self._name}-sandbox_client_delete", - arg=StopArgs(state=session.state), - **self._config, - ) - return session - - def deserialize_session_state(self, payload: dict[str, Any]) -> SandboxSessionState: - """Deserialize a session state from a dict.""" - return SandboxSessionState.parse(payload) - - -def _reject_host_path_grants(manifest: Manifest | None) -> None: - if manifest is None: - return - # Sandbox-side paths only: this message reaches the workflow failure event. - bound = [g.path for g in manifest.extra_path_grants if g.host_path is not None] - if bound: - raise AgentsWorkflowError( - "Sandbox path grants with a host_path are not supported by the Temporal OpenAI " - f"Agents plugin (found: {', '.join(bound)}). A grant's host_path is written " - "into the activity argument in plaintext. Remove host_path from these grants." - ) diff --git a/temporalio/contrib/openai_agents/sandbox/_temporal_sandbox_session.py b/temporalio/contrib/openai_agents/sandbox/_temporal_sandbox_session.py deleted file mode 100644 index cccb72936..000000000 --- a/temporalio/contrib/openai_agents/sandbox/_temporal_sandbox_session.py +++ /dev/null @@ -1,239 +0,0 @@ -"""Temporal-aware sandbox session that routes all I/O through Temporal activities.""" - -from __future__ import annotations - -import io -from pathlib import Path - -from agents.sandbox.session.base_sandbox_session import BaseSandboxSession -from agents.sandbox.session.pty_types import PtyExecUpdate -from agents.sandbox.session.sandbox_session_state import SandboxSessionState -from agents.sandbox.types import ExecResult, User - -from temporalio import workflow -from temporalio.contrib.openai_agents.sandbox._temporal_activity_models import ( - ExecArgs, - HydrateWorkspaceArgs, - PersistWorkspaceArgs, - PersistWorkspaceResult, - PtyExecStartArgs, - PtyExecUpdateResult, - PtyWriteStdinArgs, - ReadArgs, - ReadResult, - RunningArgs, - RunningResult, - StartArgs, - StopArgs, - WriteArgs, -) -from temporalio.contrib.openai_agents.sandbox._temporal_activity_models import ( - ExecResult as ExecResultModel, -) -from temporalio.workflow import ActivityConfig - - -class TemporalSandboxSession(BaseSandboxSession): - """A BaseSandboxSession that routes all I/O through Temporal activities. - - This class is fully stateless with respect to the physical sandbox -- it - holds only the serializable ``SandboxSessionState`` and a ``supports_pty`` - flag (both provided by the worker-side ``SessionResult``). - - Activity names are prefixed with the provider ``name`` so that dispatches - reach the correct sandbox backend's activities on the worker. - - Each activity receives a single Pydantic model instance. Because the Temporal - client is configured with ``pydantic_data_converter``, all fields are - serialized and deserialized automatically. - """ - - def __init__( - self, - name: str, - config: ActivityConfig, - state: SandboxSessionState, - supports_pty_flag: bool = True, - ) -> None: - """Initialize the session.""" - self._name = name - self._config = config - self._state = state - self._supports_pty = supports_pty_flag - - @property - def state(self) -> SandboxSessionState: - """The current session state.""" - return self._state - - @state.setter - def state(self, value: SandboxSessionState) -> None: # type: ignore[reportIncompatibleVariableOverride] - self._state = value - - async def exec( - self, - *command: str | Path, - timeout: float | None = None, - shell: bool | list[str] = True, - user: str | User | None = None, - ) -> ExecResult: - """Execute a command in the sandbox via activity.""" - result: ExecResultModel = await workflow.execute_activity( - f"{self._name}-sandbox_session_exec", - arg=ExecArgs( - state=self.state, - command=[str(c) for c in command], - timeout=timeout, - shell=shell, - user=user, - ), - result_type=ExecResultModel, - **self._config, - ) - return ExecResult( - stdout=result.stdout, stderr=result.stderr, exit_code=result.exit_code - ) - - async def _exec_internal( - self, - *command: str | Path, - timeout: float | None = None, - ) -> ExecResult: - raise NotImplementedError("TemporalSandboxSession overrides exec() directly") - - async def read(self, path: Path, *, user: str | User | None = None) -> io.IOBase: - """Read a file from the sandbox via activity.""" - result: ReadResult = await workflow.execute_activity( - f"{self._name}-sandbox_session_read", - arg=ReadArgs(state=self.state, path=str(path)), - result_type=ReadResult, - **self._config, - ) - return io.BytesIO(result.data) - - async def write( - self, path: Path, data: io.IOBase, *, user: str | User | None = None - ) -> None: - """Write a file to the sandbox via activity.""" - await workflow.execute_activity( - f"{self._name}-sandbox_session_write", - arg=WriteArgs(state=self.state, path=str(path), data=data.read()), - **self._config, - ) - - async def running(self) -> bool: - """Check if the sandbox is running via activity.""" - result: RunningResult = await workflow.execute_activity( - f"{self._name}-sandbox_session_running", - arg=RunningArgs(state=self.state), - result_type=RunningResult, - **self._config, - ) - return result.is_running - - async def shutdown(self) -> None: - """Shut down the sandbox via activity.""" - await workflow.execute_activity( - f"{self._name}-sandbox_session_shutdown", - arg=StopArgs(state=self.state), - **self._config, - ) - - async def persist_workspace(self) -> io.IOBase: - """Persist the workspace via activity.""" - result: PersistWorkspaceResult = await workflow.execute_activity( - f"{self._name}-sandbox_session_persist_workspace", - arg=PersistWorkspaceArgs(state=self.state), - result_type=PersistWorkspaceResult, - **self._config, - ) - return io.BytesIO(result.data) - - async def hydrate_workspace(self, data: io.IOBase) -> None: - """Hydrate the workspace via activity.""" - await workflow.execute_activity( - f"{self._name}-sandbox_session_hydrate_workspace", - arg=HydrateWorkspaceArgs(state=self.state, data=data.read()), - **self._config, - ) - - def supports_pty(self) -> bool: - """Whether this session supports PTY operations.""" - return self._supports_pty - - async def pty_exec_start( - self, - *command: str | Path, - timeout: float | None = None, - shell: bool | list[str] = True, - user: str | User | None = None, - tty: bool = False, - yield_time_s: float | None = None, - max_output_tokens: int | None = None, - ) -> PtyExecUpdate: - """Start a PTY exec via activity.""" - result: PtyExecUpdateResult = await workflow.execute_activity( - f"{self._name}-sandbox_session_pty_exec_start", - arg=PtyExecStartArgs( - state=self.state, - command=[str(c) for c in command], - timeout=timeout, - shell=shell, - user=user, - tty=tty, - yield_time_s=yield_time_s, - max_output_tokens=max_output_tokens, - ), - result_type=PtyExecUpdateResult, - **self._config, - ) - return PtyExecUpdate( - process_id=result.process_id, - output=result.output, - exit_code=result.exit_code, - original_token_count=result.original_token_count, - ) - - async def pty_write_stdin( - self, - *, - session_id: int, - chars: str, - yield_time_s: float | None = None, - max_output_tokens: int | None = None, - ) -> PtyExecUpdate: - """Write to PTY stdin via activity.""" - result: PtyExecUpdateResult = await workflow.execute_activity( - f"{self._name}-sandbox_session_pty_write_stdin", - arg=PtyWriteStdinArgs( - state=self.state, - session_id=session_id, - chars=chars, - yield_time_s=yield_time_s, - max_output_tokens=max_output_tokens, - ), - result_type=PtyExecUpdateResult, - **self._config, - ) - return PtyExecUpdate( - process_id=result.process_id, - output=result.output, - exit_code=result.exit_code, - original_token_count=result.original_token_count, - ) - - async def start(self) -> None: - """Start the sandbox session via activity.""" - await workflow.execute_activity( - f"{self._name}-sandbox_session_start", - arg=StartArgs(state=self.state), - **self._config, - ) - - async def stop(self) -> None: - """Stop the sandbox session via activity.""" - await workflow.execute_activity( - f"{self._name}-sandbox_session_stop", - arg=StopArgs(state=self.state), - **self._config, - ) diff --git a/temporalio/contrib/openai_agents/sandbox/_temporal_worker_env_value.py b/temporalio/contrib/openai_agents/sandbox/_temporal_worker_env_value.py deleted file mode 100644 index a9efe240e..000000000 --- a/temporalio/contrib/openai_agents/sandbox/_temporal_worker_env_value.py +++ /dev/null @@ -1,88 +0,0 @@ -"""Sandbox environment value resolved from the Temporal Worker's environment.""" - -from __future__ import annotations - -import os -from collections.abc import Collection, Iterator -from contextlib import contextmanager -from contextvars import ContextVar -from typing import Literal - -from agents.sandbox.manifest import EnvValue - -from temporalio import workflow -from temporalio.contrib.openai_agents._temporal_worker_env_ref import ( - AllowAllWorkerEnvVars, - _is_resolvable, - _snapshot_resolvable_env_vars, -) -from temporalio.exceptions import ApplicationError - -_resolvable_worker_env_vars: ContextVar[frozenset[str] | AllowAllWorkerEnvVars] = ( - ContextVar("temporal_resolvable_worker_env_vars") -) - - -@contextmanager -def _resolvable_worker_env_vars_scope( # type:ignore[reportUnusedFunction] - names: Collection[str] | AllowAllWorkerEnvVars, -) -> Iterator[None]: - token = _resolvable_worker_env_vars.set(_snapshot_resolvable_env_vars(names)) - try: - yield - finally: - _resolvable_worker_env_vars.reset(token) - - -class TemporalWorkerEnvValue(EnvValue): - """A sandbox environment variable whose value is read on the Temporal Worker. - - .. warning:: - This class is experimental and may change in future versions. - Use with caution in production environments. - - Put one in a sandbox manifest's ``Environment`` in place of the value - itself. Only the name travels in the manifest, and the worker reads the - value when the sandbox environment is needed. Every worker that runs sandbox - activities must set the variable and name it in - ``OpenAIAgentsPlugin(resolvable_worker_env_vars=[...])``. - """ - - type: Literal["temporal.worker_env_value"] = "temporal.worker_env_value" # type: ignore[assignment] - - name: str - """Name of the environment variable to read on the worker.""" - - async def resolve(self) -> str: - """Return the value read from the worker's environment. - - Raises: - ApplicationError: If the variable is not resolvable on this worker, - is unset or empty, or if called from workflow code. - """ - if workflow.in_workflow(): - raise ApplicationError( - "TemporalWorkerEnvValue.resolve() must run in an activity: it reads the " - "process environment, which is non-deterministic on replay and would " - "pull the value into workflow state.", - type="TemporalWorkerEnvValueUnresolved", - non_retryable=True, - ) - resolvable = _resolvable_worker_env_vars.get(frozenset()) - if not _is_resolvable(resolvable, self.name): - raise ApplicationError( - f"TemporalWorkerEnvValue environment variable {self.name!r} is not " - "resolvable on this worker. Name it in " - "OpenAIAgentsPlugin(resolvable_worker_env_vars=[...]).", - type="TemporalWorkerEnvValueUnresolved", - non_retryable=True, - ) - value = os.environ.get(self.name) - if not value: - raise ApplicationError( - f"TemporalWorkerEnvValue environment variable {self.name!r} is not set, " - "or is empty, in the worker process environment.", - type="TemporalWorkerEnvValueUnresolved", - non_retryable=True, - ) - return value diff --git a/temporalio/contrib/openai_agents/testing.py b/temporalio/contrib/openai_agents/testing.py index 0c6b149c3..f1ed15bb5 100644 --- a/temporalio/contrib/openai_agents/testing.py +++ b/temporalio/contrib/openai_agents/testing.py @@ -1,277 +1,6 @@ -"""Testing utilities for OpenAI agents.""" +"""Compatibility imports for temporalio.openai_agents.testing.""" -from collections.abc import AsyncIterator, Callable, Collection, Sequence -from typing import Any - -from agents import ( - AgentOutputSchemaBase, - Handoff, - Model, - ModelProvider, - ModelResponse, - ModelSettings, - ModelTracing, - Tool, - TResponseInputItem, - Usage, -) -from agents.items import TResponseOutputItem, TResponseStreamEvent -from openai.types.responses import ( - ResponseFunctionToolCall, - ResponseOutputMessage, - ResponseOutputText, -) - -from temporalio.client import Client -from temporalio.contrib.openai_agents._mcp import ( - StatefulMCPServerProvider, - StatelessMCPServerProvider, -) -from temporalio.contrib.openai_agents._model_parameters import ModelActivityParameters -from temporalio.contrib.openai_agents._temporal_openai_agents import OpenAIAgentsPlugin -from temporalio.contrib.openai_agents._temporal_worker_env_ref import ( - AllowAllWorkerEnvVars, - _snapshot_resolvable_env_vars, +from temporalio.openai_agents.testing import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.openai_agents.testing import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, ) - -__all__ = [ - "AgentEnvironment", - "ResponseBuilders", - "TestModel", - "TestModelProvider", -] - - -class ResponseBuilders: - """Builders for creating model responses for testing.""" - - @staticmethod - def model_response(output: TResponseOutputItem) -> ModelResponse: - """Create a ModelResponse with the given output.""" - return ModelResponse( - output=[output], - usage=Usage(), - response_id=None, - ) - - @staticmethod - def response_output_message(text: str) -> ResponseOutputMessage: - """Create a ResponseOutputMessage with text content.""" - return ResponseOutputMessage( - id="", - content=[ - ResponseOutputText( - text=text, - annotations=[], - type="output_text", - ) - ], - role="assistant", - status="completed", - type="message", - ) - - @staticmethod - def tool_call(arguments: str, name: str) -> ModelResponse: - """Create a ModelResponse with a function tool call.""" - return ResponseBuilders.model_response( - ResponseFunctionToolCall( - arguments=arguments, - call_id="call", - name=name, - type="function_call", - id="id", - status="completed", - ) - ) - - @staticmethod - def output_message(text: str) -> ModelResponse: - """Create a ModelResponse with an output message.""" - return ResponseBuilders.model_response( - ResponseBuilders.response_output_message(text) - ) - - -class TestModelProvider(ModelProvider): - """Test model provider which simply returns the given model.""" - - __test__ = False - - def __init__(self, model: Model): - """Initialize a test model provider with a model.""" - self._model = model - - def get_model(self, model_name: str | None) -> Model: - """Get a model from the model provider.""" - return self._model - - -class TestModel(Model): - """Test model for use mocking model responses.""" - - __test__ = False - - def __init__(self, fn: Callable[[], ModelResponse]) -> None: - """Initialize a test model with a callable.""" - self.fn = fn - - async def get_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - **kwargs: Any, - ) -> ModelResponse: - """Get a response from the mocked model, by calling the callable passed to the constructor.""" - return self.fn() - - def stream_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - **kwargs: Any, - ) -> AsyncIterator[TResponseStreamEvent]: - """Get a streamed response from the model. Unimplemented.""" - raise NotImplementedError() - - @staticmethod - def returning_responses(responses: list[ModelResponse]) -> "TestModel": - """Create a mock model which sequentially returns responses from a list.""" - i = iter(responses) - return TestModel(lambda: next(i)) - - -class AgentEnvironment: - """Testing environment for OpenAI agents with Temporal integration. - - This async context manager provides a convenient way to set up testing environments - for OpenAI agents with mocked model calls and Temporal integration. - - Example: - >>> from temporalio.contrib.openai_agents.testing import AgentEnvironment, TestModelProvider, ResponseBuilders - >>> from temporalio.client import Client - >>> - >>> # Create a mock model that returns predefined responses - >>> mock_model = TestModel.returning_responses([ - ... ResponseBuilders.output_message("Hello, world!"), - ... ResponseBuilders.output_message("How can I help you?") - ... ]) - >>> - >>> async with AgentEnvironment(model=mock_model) as env: - ... client = env.applied_on_client(client) - ... # Use client for testing workflows with mocked model calls - """ - - __test__ = False - - def __init__( - self, - model_params: ModelActivityParameters | None = None, - model_provider: ModelProvider | None = None, - model: Model | None = None, - mcp_server_providers: Sequence[ - StatelessMCPServerProvider | StatefulMCPServerProvider - ] = (), - register_activities: bool = True, - add_temporal_spans: bool = True, - use_otel_instrumentation: bool = False, - resolvable_worker_env_vars: Collection[str] | AllowAllWorkerEnvVars = (), - ) -> None: - """Initialize the AgentEnvironment. - - Args: - model_params: Configuration parameters for Temporal activity execution - of model calls. If None, default parameters will be used. - model_provider: Optional model provider for custom model implementations. - Only one of model_provider or model should be provided. - If both are provided, model_provider will be used. - model: Optional model for custom model implementations. - Use TestModel for mocking model responses. - Equivalent to model_provider=TestModelProvider(model). - Only one of model_provider or model should be provided. - If both are provided, model_provider will be used. - mcp_server_providers: Sequence of MCP servers to automatically register with the worker. - register_activities: Whether to register activities during worker execution. - add_temporal_spans: Whether to add temporal spans to traces - use_otel_instrumentation: If set to true, enable open telemetry instrumentation. - Warning: use_otel_instrumentation is experimental and behavior may change in future versions. - Use with caution in production environments. - resolvable_worker_env_vars: Names of the environment variables that - ``temporal_worker_env_ref()`` may read on this environment's workers; - pass ``AllowAllWorkerEnvVars()`` in place of the names to allow every - variable. - Warning: resolvable_worker_env_vars is experimental and behavior may change in future versions. - Use with caution in production environments. - """ - self._model_params = model_params - self._model_provider = None - if model_provider is not None: - self._model_provider = model_provider - elif model is not None: - self._model_provider = TestModelProvider(model) - self._mcp_server_providers = mcp_server_providers - self._register_activities = register_activities - self._plugin: OpenAIAgentsPlugin | None = None - self._add_temporal_spans = add_temporal_spans - self._use_otel_instrumentation = use_otel_instrumentation - self._resolvable_worker_env_vars = _snapshot_resolvable_env_vars( - resolvable_worker_env_vars - ) - - async def __aenter__(self) -> "AgentEnvironment": - """Enter the async context manager.""" - # Create the plugin with the provided configuration - self._plugin = OpenAIAgentsPlugin( - model_params=self._model_params, - model_provider=self._model_provider, - mcp_server_providers=self._mcp_server_providers, - register_activities=self._register_activities, - add_temporal_spans=self._add_temporal_spans, - use_otel_instrumentation=self._use_otel_instrumentation, - resolvable_worker_env_vars=self._resolvable_worker_env_vars, - ) - - return self - - async def __aexit__(self, *args: Any) -> None: - """Exit the async context manager.""" - # No cleanup needed currently - pass - - def applied_on_client(self, client: Client) -> Client: - """Apply the agent environment's plugin to a client and return a new client instance. - - Args: - client: The base Temporal client to apply the plugin to. - - Returns: - A new Client instance with the OpenAI agents plugin applied. - """ - if self._plugin is None: - raise RuntimeError( - "AgentEnvironment must be entered before applying to client" - ) - - new_config = client.config() - existing_plugins = new_config.get("plugins", []) - new_config["plugins"] = list(existing_plugins) + [self._plugin] - return Client(**new_config) - - @property - def openai_agents_plugin(self) -> OpenAIAgentsPlugin: - """Get the underlying OpenAI agents plugin.""" - if self._plugin is None: - raise RuntimeError( - "AgentEnvironment must be entered before accessing plugin" - ) - return self._plugin diff --git a/temporalio/contrib/openai_agents/workflow.py b/temporalio/contrib/openai_agents/workflow.py index 70f54629f..ad199224e 100644 --- a/temporalio/contrib/openai_agents/workflow.py +++ b/temporalio/contrib/openai_agents/workflow.py @@ -1,382 +1,3 @@ -"""Workflow-specific primitives for working with the OpenAI Agents SDK in a workflow context""" +"""Compatibility imports for temporalio.openai_agents.workflow.""" -import functools -import inspect -import json -import typing -from collections.abc import Callable -from contextlib import AbstractAsyncContextManager -from datetime import timedelta -from typing import Any - -import nexusrpc -from agents import ( - RunContextWrapper, - Tool, -) -from agents.function_schema import function_schema -from agents.tool import ( - FunctionTool, -) - -from temporalio import activity -from temporalio import workflow as temporal_workflow -from temporalio.common import Priority, RetryPolicy -from temporalio.contrib.openai_agents._errors import ( - AgentsWorkflowError as AgentsWorkflowError, -) -from temporalio.contrib.openai_agents.sandbox._temporal_sandbox_client import ( - TemporalSandboxClient, -) -from temporalio.exceptions import ApplicationError, TemporalError -from temporalio.workflow import ( - ActivityCancellationType, - ActivityConfig, - VersioningIntent, -) - -if typing.TYPE_CHECKING: - from agents.mcp import MCPServer - - -def activity_as_tool( - fn: Callable, - *, - task_queue: str | None = None, - schedule_to_close_timeout: timedelta | None = None, - schedule_to_start_timeout: timedelta | None = None, - start_to_close_timeout: timedelta | None = None, - heartbeat_timeout: timedelta | None = None, - retry_policy: RetryPolicy | None = None, - cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, - activity_id: str | None = None, - versioning_intent: VersioningIntent | None = None, - summary: str | None = None, - priority: Priority = Priority.default, - strict_json_schema: bool = True, -) -> Tool: - """Convert a single Temporal activity function to an OpenAI agent tool. - - This function takes a Temporal activity function and converts it into an - OpenAI agent tool that can be used by the agent to execute the activity - during workflow execution. The tool will automatically handle the conversion - of inputs and outputs between the agent and the activity. Note that if you take a context, - mutation will not be persisted, as the activity may not be running in the same location. - - For undocumented arguments, refer to :py:mod:`workflow` and :py:meth:`start_activity` - - Args: - fn: A Temporal activity function to convert to a tool. - strict_json_schema: Whether the tool should follow a strict schema. - See https://openai.github.io/openai-agents-python/ref/tool/#agents.tool.FunctionTool.strict_json_schema - - - Returns: - An OpenAI agent tool that wraps the provided activity. - - Raises: - ApplicationError: If the function is not properly decorated as a Temporal activity. - - Example: - >>> @activity.defn - >>> def process_data(input: str) -> str: - ... return f"Processed: {input}" - >>> - >>> # Create tool with custom activity options - >>> tool = activity_as_tool( - ... process_data, - ... start_to_close_timeout=timedelta(seconds=30), - ... retry_policy=RetryPolicy(maximum_attempts=3), - ... heartbeat_timeout=timedelta(seconds=10) - ... ) - >>> # Use tool with an OpenAI agent - """ - ret = activity._Definition.from_callable(fn) - if not ret: - raise ApplicationError( - "Bare function without tool and activity decorators is not supported", - "invalid_tool", - ) - if ret.name is None: - raise ApplicationError( - "Input activity must have a name to be made into a tool", - "invalid_tool", - ) - # If the provided callable has a first argument of `self`, partially apply it with the same metadata - # The actual instance will be picked up by the activity execution, the partially applied function will never actually be executed - params = list(inspect.signature(fn).parameters.keys()) - if len(params) > 0 and params[0] == "self": - partial = functools.partial(fn, None) - setattr(partial, "__name__", fn.__name__) - partial.__annotations__ = getattr(fn, "__annotations__") - setattr( - partial, - "__temporal_activity_definition", - getattr(fn, "__temporal_activity_definition"), - ) - partial.__doc__ = fn.__doc__ - fn = partial - schema = function_schema(fn) - - async def run_activity(ctx: RunContextWrapper[Any], input: str) -> Any: - try: - json_data = json.loads(input) - except Exception as e: - raise ApplicationError( - f"Invalid JSON input for tool {schema.name}: {input}" - ) from e - - # Activities don't support keyword only arguments, so we can ignore the kwargs_dict return - args, _ = schema.to_call_args(schema.params_pydantic_model(**json_data)) - - # Add the context to the arguments if it takes that - if schema.takes_context: - args = [ctx] + args - result = await temporal_workflow.execute_activity( - ret.name, # type: ignore - args=args, - task_queue=task_queue, - schedule_to_close_timeout=schedule_to_close_timeout, - schedule_to_start_timeout=schedule_to_start_timeout, - start_to_close_timeout=start_to_close_timeout, - heartbeat_timeout=heartbeat_timeout, - retry_policy=retry_policy, - cancellation_type=cancellation_type, - activity_id=activity_id, - versioning_intent=versioning_intent, - summary=summary or schema.description, - priority=priority, - ) - try: - return str(result) - except Exception as e: - raise ToolSerializationError( - "You must return a string representation of the tool output, or something we can call str() on" - ) from e - - return FunctionTool( - name=schema.name, - description=schema.description or "", - params_json_schema=schema.params_json_schema, - on_invoke_tool=run_activity, - strict_json_schema=strict_json_schema, - ) - - -def nexus_operation_as_tool( - operation: nexusrpc.Operation[Any, Any], - *, - service: type[Any], - endpoint: str, - schedule_to_close_timeout: timedelta | None = None, - strict_json_schema: bool = True, -) -> Tool: - """Convert a Nexus operation into an OpenAI agent tool. - - This function takes a Nexus operation and converts it into an - OpenAI agent tool that can be used by the agent to execute the operation - during workflow execution. The tool will automatically handle the conversion - of inputs and outputs between the agent and the operation. - - Args: - operation: A Nexus operation to convert into a tool. - service: The Nexus service class that contains the operation. - endpoint: The Nexus endpoint to use for the operation. - strict_json_schema: Whether the tool should follow a strict schema - - Returns: - An OpenAI agent tool that wraps the provided operation. - - Example: - >>> @nexusrpc.service - ... class WeatherService: - ... get_weather_object_nexus_operation: nexusrpc.Operation[WeatherInput, Weather] - >>> - >>> # Create tool with custom activity options - >>> tool = nexus_operation_as_tool( - ... WeatherService.get_weather_object_nexus_operation, - ... service=WeatherService, - ... endpoint="weather-service", - ... ) - >>> # Use tool with an OpenAI agent - """ - - def operation_callable(input: Any): # type: ignore[reportUnusedParameter] - raise NotImplementedError("This function definition is used as a type only") - - operation_callable.__annotations__ = { - "input": operation.input_type, - "return": operation.output_type, - } - operation_callable.__name__ = operation.name - - schema = function_schema(operation_callable) - - async def run_operation(_ctx: RunContextWrapper[Any], input: str) -> Any: - try: - json_data = json.loads(input) - except Exception as e: - raise ApplicationError( - f"Invalid JSON input for tool {schema.name}: {input}" - ) from e - - nexus_client = temporal_workflow.create_nexus_client( - service=service, endpoint=endpoint - ) - args, _ = schema.to_call_args(schema.params_pydantic_model(**json_data)) - assert len(args) == 1, "Nexus operations must have exactly one argument" - [arg] = args - result = await nexus_client.execute_operation( - operation, - arg, - schedule_to_close_timeout=schedule_to_close_timeout, - ) - try: - return str(result) - except Exception as e: - raise ToolSerializationError( - "You must return a string representation of the tool output, or something we can call str() on" - ) from e - - return FunctionTool( - name=schema.name, - description=schema.description or "", - params_json_schema=schema.params_json_schema, - on_invoke_tool=run_operation, - strict_json_schema=strict_json_schema, - ) - - -def temporal_sandbox_client( - name: str, - config: ActivityConfig | None = None, -) -> Any: - """Create a sandbox client reference for use in a Temporal workflow ``RunConfig``. - - .. warning:: - This is experimental and may change in future versions. - Use with caution in production environments. - - This returns a ``BaseSandboxClient`` that dispatches all sandbox operations - as Temporal activities, targeting the ``SandboxClientProvider`` registered - on the worker with the matching ``name``. - - Example:: - - run_config = RunConfig( - sandbox=SandboxRunConfig( - client=temporal_sandbox_client("daytona"), - options=DaytonaSandboxClientOptions(...), - ), - ) - - Args: - name: The name of the ``SandboxClientProvider`` registered on the - worker. Must match exactly. - config: Optional activity configuration for controlling timeouts, - retries, etc. Defaults to a 5-minute ``start_to_close_timeout``. - """ - return TemporalSandboxClient(name=name, config=config) - - -def stateless_mcp_server( - name: str, - config: ActivityConfig | None = None, - cache_tools_list: bool = False, - factory_argument: Any | None = None, -) -> "MCPServer": - """A stateless MCP server implementation for Temporal workflows. - - This uses a TemporalMCPServer of the same name registered with the OpenAIAgents plugin to implement - durable MCP operations statelessly. - - This approach is suitable for simple use cases where connection overhead is acceptable - and you don't need to maintain state between operations. It should be preferred to stateful when possible due to its - superior durability guarantees. - - .. warning:: - Do not pass secrets, credentials, or API keys through ``factory_argument``. It is an - activity argument, so it is recorded in workflow history and, without a payload codec, - visible in the web UI. Resolve credentials worker-side inside the server factory - instead. - - Args: - name: A string name for the server. Should match that provided in the plugin. - config: Optional activity configuration for MCP operation activities. - Defaults to 1-minute start-to-close timeout. - cache_tools_list: If true, the list of tools will be cached for the duration of the server - factory_argument: Optional argument to be provided to the factory when producing an MCPServer. - Must not contain secrets. - """ - from temporalio.contrib.openai_agents._mcp import ( - _StatelessMCPServerReference, - ) - - return _StatelessMCPServerReference( - name, config, cache_tools_list, factory_argument - ) - - -def stateful_mcp_server( - name: str, - config: ActivityConfig | None = None, - server_session_config: ActivityConfig | None = None, - factory_argument: Any | None = None, -) -> AbstractAsyncContextManager["MCPServer"]: - """A stateful MCP server implementation for Temporal workflows. - - This wraps an MCP server to maintain a persistent connection throughout - the workflow execution. It creates a dedicated worker that stays connected to - the MCP server and processes operations on a dedicated task queue. - - This approach is more efficient for workflows that make multiple MCP calls, - as it avoids connection overhead, but requires more resources to maintain - the persistent connection and worker. - - The caller will have to handle cases where the dedicated worker fails, as Temporal is - unable to seamlessly recreate any lost state in that case. - - .. warning:: - Do not pass secrets, credentials, or API keys through ``factory_argument``. It is an - activity argument, so it is recorded in workflow history and, without a payload codec, - visible in the web UI. Resolve credentials worker-side inside the server factory - instead. - - Args: - name: A string name for the server. Should match that provided in the plugin. - config: Optional activity configuration for MCP operation activities. - Defaults to 1-minute start-to-close and 30-second schedule-to-start timeouts. - server_session_config: Optional activity configuration for the connection activity. - Defaults to 1-hour start-to-close timeout. - factory_argument: Optional argument to be provided to the factory when producing an MCPServer. - Must not contain secrets. - """ - from temporalio.contrib.openai_agents._mcp import ( - _StatefulMCPServerReference, - ) - - return _StatefulMCPServerReference( - name, config, server_session_config, factory_argument - ) - - -class ToolSerializationError(TemporalError): - """Error that occurs when a tool output could not be serialized. - - This exception is raised when a tool (created from an activity or Nexus operation) - returns a value that cannot be properly serialized for use by the OpenAI agent. - All tool outputs must be convertible to strings for the agent to process them. - - The error typically occurs when: - - A tool returns a complex object that doesn't have a meaningful string representation - - The returned object cannot be converted using str() - - Custom serialization is needed but not implemented - - Example: - >>> @activity.defn - >>> def problematic_tool() -> ComplexObject: - ... return ComplexObject() # This might cause ToolSerializationError - - To fix this error, ensure your tool returns string-convertible values or - modify the tool to return a string representation of the result. - """ +from temporalio.openai_agents.workflow import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] diff --git a/temporalio/contrib/opentelemetry/README.md b/temporalio/contrib/opentelemetry/README.md index 9b0ed79da..b2ca0ed0f 100644 --- a/temporalio/contrib/opentelemetry/README.md +++ b/temporalio/contrib/opentelemetry/README.md @@ -1,6 +1,29 @@ # OpenTelemetry Integration for Temporal Python SDK -This package provides OpenTelemetry tracing integration for Temporal workflows, activities, and other operations. It includes automatic span creation and propagation for distributed tracing across your Temporal applications. +This package provides OpenTelemetry tracing and metrics integration for Temporal workflows, activities, and other operations. It includes automatic span creation and propagation for distributed tracing, and a `MetricsExporter` for exporting Temporal SDK/Core metrics through the standard OpenTelemetry metrics API, across your Temporal applications. + +## Metrics + +`MetricsExporter` drains a `temporalio.runtime.MetricBuffer` into an OpenTelemetry `MeterProvider`, so Temporal's own SDK/Core metrics (and any custom metrics recorded via `activity.metric_meter()`/`workflow.metric_meter()`) can be exported through the standard OpenTelemetry metrics pipeline (views, resources, any OTel-compatible backend) instead of only through `PrometheusConfig`/`OpenTelemetryConfig`. + +```python +from opentelemetry.sdk.metrics import MeterProvider +from opentelemetry.sdk.metrics.export import ConsoleMetricExporter, PeriodicExportingMetricReader +from temporalio.contrib.opentelemetry import MetricsExporter +from temporalio.runtime import MetricBuffer, Runtime, TelemetryConfig + +buffer = MetricBuffer(10_000) +runtime = Runtime(telemetry=TelemetryConfig(metrics=buffer)) +meter_provider = MeterProvider( + metric_readers=[PeriodicExportingMetricReader(ConsoleMetricExporter())] +) + +async with MetricsExporter(buffer, meter_provider): + client = await Client.connect("localhost:7233", runtime=runtime) + ... +``` + +**Note:** the `Runtime` must be constructed with the buffer attached *before* `MetricsExporter` is started, and the exporter must keep running (it polls on a fixed interval) for as long as metrics should be exported. ## Overview diff --git a/temporalio/contrib/opentelemetry/__init__.py b/temporalio/contrib/opentelemetry/__init__.py index feafe91ae..9a68be3a6 100644 --- a/temporalio/contrib/opentelemetry/__init__.py +++ b/temporalio/contrib/opentelemetry/__init__.py @@ -1,9 +1,11 @@ """OpenTelemetry v2 integration for Temporal SDK. -This package provides OpenTelemetry tracing integration for Temporal workflows, -activities, and other operations. It includes automatic span creation and -propagation for distributed tracing. It also provides replay-safe wrappers for -the global OpenTelemetry tracer, meter, and logger providers. +This package provides OpenTelemetry tracing and metrics integration for +Temporal workflows, activities, and other operations. It includes automatic +span creation and propagation for distributed tracing, a +:py:class:`MetricsExporter` for exporting Temporal SDK/Core metrics through +the standard OpenTelemetry metrics API, and replay-safe wrappers for the +global OpenTelemetry tracer, meter, and logger providers. """ from temporalio.contrib.opentelemetry._interceptor import ( @@ -16,6 +18,7 @@ from temporalio.contrib.opentelemetry._meter_provider import ( ReplaySafeMeterProvider, ) +from temporalio.contrib.opentelemetry._metrics_exporter import MetricsExporter from temporalio.contrib.opentelemetry._otel_interceptor import OpenTelemetryInterceptor from temporalio.contrib.opentelemetry._plugin import OpenTelemetryPlugin from temporalio.contrib.opentelemetry._tracer_provider import ( @@ -28,6 +31,7 @@ "TracingWorkflowInboundInterceptor", "OpenTelemetryInterceptor", "OpenTelemetryPlugin", + "MetricsExporter", "ReplaySafeLoggerProvider", "ReplaySafeMeterProvider", "ReplaySafeTracerProvider", diff --git a/temporalio/contrib/opentelemetry/_context.py b/temporalio/contrib/opentelemetry/_context.py new file mode 100644 index 000000000..a57f8d48d --- /dev/null +++ b/temporalio/contrib/opentelemetry/_context.py @@ -0,0 +1,51 @@ +"""Attach OpenTelemetry contexts so that the matching detach is always safe.""" + +from __future__ import annotations + +from collections.abc import Iterator +from contextlib import contextmanager +from contextvars import Token + +import opentelemetry.context +from opentelemetry.context import Context + + +@contextmanager +def attached_context(context: Context | None) -> Iterator[None]: + """Attach ``context`` for the block and detach it afterwards where possible. + + ``None`` attaches nothing. The block's ``finally`` can run in a different + ``contextvars.Context`` than the one that attached: a context manager + abandoned by an evicted workflow is finalized wherever garbage collection + happens to run. The token is not valid there, and + ``opentelemetry.context.detach`` would log "Failed to detach context" even + though there is nothing to detach. Checking that the attached context is + still current does not catch every such case, because OpenTelemetry's + threading instrumentation (enabled by strands, among others) propagates + the same ``Context`` object into new threads. The thread is no test + either: workflow activations move between pool threads while the asyncio + task keeps its ``contextvars.Context``, and those detaches must happen. + Only ``contextvars`` knows which ``Context`` a token belongs to, so + :func:`_detach` performs the reset ``detach`` performs and ignores the + ``ValueError`` raised for a token from another ``Context``. + """ + if context is None: + yield + return + token = opentelemetry.context.attach(context) + try: + yield + finally: + _detach(context, token) + + +def _detach(context: Context, token: Token[Context]) -> bool: + """Detach ``context`` if it is current and ``token`` is valid here.""" + if context is not opentelemetry.context.get_current(): + return False + try: + token.var.reset(token) + except ValueError: + # The token was created in a different contextvars.Context. + return False + return True diff --git a/temporalio/contrib/opentelemetry/_id_generator.py b/temporalio/contrib/opentelemetry/_id_generator.py index f553cd273..9aaa00ef1 100644 --- a/temporalio/contrib/opentelemetry/_id_generator.py +++ b/temporalio/contrib/opentelemetry/_id_generator.py @@ -1,5 +1,4 @@ import random -from contextvars import ContextVar from opentelemetry.sdk.trace.id_generator import IdGenerator from opentelemetry.trace import ( @@ -40,39 +39,11 @@ class TemporalIdGenerator(IdGenerator): inside a workflow execution, ensuring deterministic span and trace IDs across workflow replays. Falls back to standard random generation outside of workflows. - - Can be seeded with OpenTelemetry span IDs from client context to maintain - proper span parenting across the client-workflow boundary. """ def __init__(self, id_generator: IdGenerator): """Initialize a TemporalIdGenerator.""" self._id_generator = id_generator - self._traces: ContextVar[tuple[int, ...]] = ContextVar( - "temporalio_otel_trace_id_seeds", default=() - ) - self._spans: ContextVar[tuple[int, ...]] = ContextVar( - "temporalio_otel_span_id_seeds", default=() - ) - - def seed_span_id(self, span_id: int) -> None: - """Seed the generator with a span ID to use as the first result. - - This is typically used to maintain OpenTelemetry span parenting - when crossing the client-workflow boundary. - - Args: - span_id: The span ID to use as the first generated span ID. - """ - self._spans.set((*self._spans.get(), span_id)) - - def seed_trace_id(self, trace_id: int) -> None: - """Seed the generator with a trace ID to use as the first result. - - Args: - trace_id: The trace ID to use as the first generated trace ID. - """ - self._traces.set((*self._traces.get(), trace_id)) def generate_span_id(self) -> int: """Generate a span ID using Temporal's deterministic random when in workflow. @@ -80,11 +51,6 @@ def generate_span_id(self) -> int: Returns: A 64-bit span ID. """ - spans = self._spans.get() - if spans: - self._spans.set(spans[:-1]) - return spans[-1] - if workflow_random := _get_workflow_random(): span_id = workflow_random.getrandbits(64) while span_id == INVALID_SPAN_ID: @@ -98,11 +64,6 @@ def generate_trace_id(self) -> int: Returns: A 128-bit trace ID. """ - traces = self._traces.get() - if traces: - self._traces.set(traces[:-1]) - return traces[-1] - if workflow_random := _get_workflow_random(): trace_id = workflow_random.getrandbits(128) while trace_id == INVALID_TRACE_ID: diff --git a/temporalio/contrib/opentelemetry/_interceptor.py b/temporalio/contrib/opentelemetry/_interceptor.py index eb22f8be6..f503d5ac5 100644 --- a/temporalio/contrib/opentelemetry/_interceptor.py +++ b/temporalio/contrib/opentelemetry/_interceptor.py @@ -33,8 +33,10 @@ import temporalio.client import temporalio.converter import temporalio.exceptions +import temporalio.nexus.system.workflow_service.models import temporalio.worker import temporalio.workflow +from temporalio.contrib.opentelemetry._context import attached_context from temporalio.exceptions import ApplicationError, ApplicationErrorCategory # OpenTelemetry dynamically, lazily chooses its context implementation at @@ -182,8 +184,7 @@ def _start_as_current_span( kind: opentelemetry.trace.SpanKind, context: Context | None = None, ) -> Iterator[None]: - token = opentelemetry.context.attach(context) if context else None - try: + with attached_context(context): with self.tracer.start_as_current_span( name, attributes=attributes, @@ -218,9 +219,6 @@ def _start_as_current_span( ) ) raise - finally: - if token and context is opentelemetry.context.get_current(): - opentelemetry.context.detach(token) def _completed_workflow_span( self, params: _CompletedWorkflowSpanParams @@ -433,6 +431,10 @@ class _InputWithStringHeaders(Protocol): headers: Mapping[str, str] | None +class _InputWithModelHeaders(Protocol): + headers: Mapping[str, Any] | None + + class _InputWithOperationContext(Generic[_ContextT], Protocol): ctx: _ContextT @@ -551,8 +553,7 @@ async def handle_query(self, input: temporalio.worker.HandleQueryInput) -> Any: # We need to put this interceptor on the context too context = self._set_on_context(context) # Run under context with new span - token = opentelemetry.context.attach(context) - try: + with attached_context(context): # This won't be created if there was no context header self._completed_span( f"HandleQuery:{input.query}", @@ -562,13 +563,6 @@ async def handle_query(self, input: temporalio.worker.HandleQueryInput) -> Any: kind=opentelemetry.trace.SpanKind.SERVER, ) return await super().handle_query(input) - finally: - # In some exceptional cases this finally is executed with a - # different contextvars.Context than the one the token was created - # on. As such we do a best effort detach to avoid using a mismatched - # token. - if context is opentelemetry.context.get_current(): - opentelemetry.context.detach(token) def handle_update_validator( self, input: temporalio.worker.HandleUpdateInput @@ -639,31 +633,23 @@ def _top_level_workflow_context( success = False exception: Exception | None = None # Run under this context - token = opentelemetry.context.attach(context) - - try: - yield None - success = True - except temporalio.exceptions.FailureError as err: - # We only record the failure errors since those are the only ones - # that lead to workflow completions - exception = err - raise - finally: - # Create a completed span before detaching context - if exception or (success and success_is_complete): - self._completed_span( - f"CompleteWorkflow:{temporalio.workflow.info().workflow_type}", - exception=exception, - kind=opentelemetry.trace.SpanKind.INTERNAL, - ) - - # In some exceptional cases this finally is executed with a - # different contextvars.Context than the one the token was created - # on. As such we do a best effort detach to avoid using a mismatched - # token. - if context is opentelemetry.context.get_current(): - opentelemetry.context.detach(token) + with attached_context(context): + try: + yield None + success = True + except temporalio.exceptions.FailureError as err: + # We only record the failure errors since those are the only ones + # that lead to workflow completions + exception = err + raise + finally: + # Create a completed span before detaching context + if exception or (success and success_is_complete): + self._completed_span( + f"CompleteWorkflow:{temporalio.workflow.info().workflow_type}", + exception=exception, + kind=opentelemetry.trace.SpanKind.INTERNAL, + ) def _context_to_headers( self, headers: Mapping[str, temporalio.api.common.v1.Payload] @@ -684,6 +670,18 @@ def _context_carrier_to_headers( } return headers + def _context_carrier_to_model_headers( + self, + carrier: _CarrierDict, + headers: Mapping[str, Any] | None, + ) -> Mapping[str, Any]: + if carrier: + return { + **(headers or {}), + self.header_key: carrier, + } + return headers or {} + def _completed_span( self, span_name: str, @@ -691,6 +689,7 @@ def _completed_span( link_context_carrier: _CarrierDict | None = None, add_to_outbound: _InputWithHeaders | None = None, add_to_outbound_str: _InputWithStringHeaders | None = None, + add_to_outbound_model: _InputWithModelHeaders | None = None, new_span_even_on_replay: bool = False, additional_attributes: opentelemetry.util.types.Attributes = None, exception: Exception | None = None, @@ -742,6 +741,11 @@ def _completed_span( updated_context_carrier, add_to_outbound_str.headers ) + if add_to_outbound_model: + add_to_outbound_model.headers = self._context_carrier_to_model_headers( + updated_context_carrier, add_to_outbound_model.headers + ) + def _set_on_context( self, context: opentelemetry.context.Context ) -> opentelemetry.context.Context: @@ -830,6 +834,19 @@ async def start_nexus_operation( return await super().start_nexus_operation(input) + async def start_signal_with_start_workflow( + self, + request: temporalio.nexus.system.workflow_service.models.SignalWithStartWorkflowRequest, + ) -> temporalio.workflow.NexusOperationHandle[ + temporalio.nexus.system.workflow_service.models.SignalWithStartWorkflowResponse + ]: + self.root._completed_span( + "SignalWithStartWorkflow", + kind=opentelemetry.trace.SpanKind.CLIENT, + add_to_outbound_model=request, + ) + return await super().start_signal_with_start_workflow(request) + def _carrier_to_nexus_headers( carrier: _CarrierDict, initial: Mapping[str, str] | None = None diff --git a/temporalio/contrib/opentelemetry/_logger_provider.py b/temporalio/contrib/opentelemetry/_logger_provider.py index 0d663bd97..141004312 100644 --- a/temporalio/contrib/opentelemetry/_logger_provider.py +++ b/temporalio/contrib/opentelemetry/_logger_provider.py @@ -1,6 +1,7 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any +from collections.abc import Mapping +from typing import Any # The OpenTelemetry Logs API specification is stable, but opentelemetry-python # exposes the logs bridge API only under the private opentelemetry._logs @@ -13,11 +14,6 @@ from temporalio import workflow -if TYPE_CHECKING: - # _ExtendedAttributes is the annotation OpenTelemetry's own public - # get_logger signature uses; there is no public alias. - from opentelemetry.util.types import _ExtendedAttributes - def _skip_emitting() -> bool: # in_workflow() must be evaluated first: is_replaying_history_events() @@ -52,6 +48,19 @@ def emit(self, *args: Any, **kwargs: Any) -> None: return self._logger.emit(*args, **kwargs) + def enabled(self, *args: Any, **kwargs: Any) -> bool: + # Abstract on Logger from opentelemetry-api 1.45, so without this + # override the wrapper cannot be instantiated there. Callers use it to + # skip building records, so it must agree with emit() during replay. + if _skip_emitting(): + return False + enabled = getattr(self._logger, "enabled", None) + if enabled is None: + # Loggers from opentelemetry-api before 1.45 have no enabled(), and + # their callers always emit, so leave the decision to emit(). + return True + return enabled(*args, **kwargs) + class ReplaySafeLoggerProvider(LoggerProvider): """A logger provider that is safe for use during workflow replay. @@ -110,7 +119,7 @@ def get_logger( name: str, version: str | None = None, schema_url: str | None = None, - attributes: _ExtendedAttributes | None = None, + attributes: Mapping[str, Any] | None = None, ) -> Logger: """Get a replay-safe logger from the underlying provider. @@ -119,6 +128,8 @@ def get_logger( version: The version string of the instrumenting library. schema_url: The schema URL for the logger. attributes: Instrumentation scope attributes for the logger. + Values are typed permissively to support different OpenTelemetry + attribute types across supported versions. Returns: A replay-safe logger instance. diff --git a/temporalio/contrib/opentelemetry/_metrics_exporter.py b/temporalio/contrib/opentelemetry/_metrics_exporter.py new file mode 100644 index 000000000..8a6e5bd69 --- /dev/null +++ b/temporalio/contrib/opentelemetry/_metrics_exporter.py @@ -0,0 +1,275 @@ +"""OpenTelemetry metrics exporter built on :py:class:`temporalio.runtime.MetricBuffer`.""" + +import asyncio +import contextlib +import logging +import threading +from collections.abc import Callable, Iterable, Mapping +from dataclasses import dataclass, field +from datetime import timedelta + +import opentelemetry.metrics +import opentelemetry.util.types + +import temporalio.runtime + +logger = logging.getLogger(__name__) + + +@dataclass +class _GaugeState: + lock: threading.Lock = field(default_factory=threading.Lock) + # Keyed by attribute values so repeated updates for the same attribute set + # overwrite rather than accumulate -- gauges are "latest value wins", + # unlike counters. + last_values: dict[ + frozenset[tuple[str, opentelemetry.util.types.AttributeValue]], + tuple[Mapping[str, opentelemetry.util.types.AttributeValue], int | float], + ] = field(default_factory=dict) + + +@dataclass +class _Instrument: + kind: temporalio.runtime.BufferedMetricKind + counter: opentelemetry.metrics.Counter | None = None + histogram: opentelemetry.metrics.Histogram | None = None + gauge_state: "_GaugeState | None" = None + + +def _make_gauge_callback( + state: _GaugeState, +) -> Callable[ + [opentelemetry.metrics.CallbackOptions], + Iterable[opentelemetry.metrics.Observation], +]: + # OTel invokes observable-gauge callbacks from its own export thread, which + # runs concurrently with the drain loop mutating last_values -- hence the + # lock on both sides. + def callback( + _options: opentelemetry.metrics.CallbackOptions, + ) -> Iterable[opentelemetry.metrics.Observation]: + with state.lock: + return [ + opentelemetry.metrics.Observation(value, attributes=dict(attrs)) + for attrs, value in state.last_values.values() + ] + + return callback + + +class MetricsExporter: + """Exports metrics recorded via a :py:class:`temporalio.runtime.MetricBuffer` + to an OpenTelemetry :py:class:`opentelemetry.metrics.MeterProvider`. + + .. warning:: + This class is experimental and may change in future versions. + Use with caution in production environments. + + This must be started (via :py:meth:`run` or ``async with``) after the + :py:class:`temporalio.runtime.Runtime` referencing ``buffer`` has been + constructed, and it must be kept running for as long as metrics should be + exported. It drains the buffer on a fixed interval; per + :py:class:`temporalio.runtime.MetricBuffer`, updates are dropped (with an + error logged by Core) if the buffer is not drained regularly. + + Example:: + + from datetime import timedelta + + from opentelemetry.sdk.metrics import MeterProvider + from opentelemetry.sdk.metrics.export import ( + ConsoleMetricExporter, + PeriodicExportingMetricReader, + ) + + from temporalio.client import Client + from temporalio.contrib.opentelemetry import MetricsExporter + from temporalio.runtime import MetricBuffer, Runtime, TelemetryConfig + + buffer = MetricBuffer(10_000) + runtime = Runtime(telemetry=TelemetryConfig(metrics=buffer)) + meter_provider = MeterProvider( + metric_readers=[ + PeriodicExportingMetricReader( + ConsoleMetricExporter(), export_interval_millis=5000 + ) + ] + ) + + async with MetricsExporter(buffer, meter_provider): + client = await Client.connect("localhost:7233", runtime=runtime) + ... + """ + + def __init__( + self, + buffer: temporalio.runtime.MetricBuffer, + meter_provider: opentelemetry.metrics.MeterProvider | None = None, + *, + meter_name: str = "temporalio", + meter_version: str | None = None, + poll_interval: timedelta = timedelta(seconds=1), + on_error: Callable[[Exception], None] | None = None, + ) -> None: + """Create an exporter that drains ``buffer`` into ``meter_provider``. + + Args: + buffer: The buffer to drain. Must already be (or about to be) set + as the ``metrics`` of a + :py:class:`temporalio.runtime.TelemetryConfig` on a + constructed :py:class:`temporalio.runtime.Runtime`. + meter_provider: The provider to create instruments on. Defaults to + :py:func:`opentelemetry.metrics.get_meter_provider` (the + global provider) if not given. + meter_name: Name passed to ``get_meter`` on the provider. + meter_version: Version passed to ``get_meter`` on the provider. + poll_interval: How often to drain the buffer. Must be reasonably + frequent -- see the warning on + :py:class:`temporalio.runtime.MetricBuffer`. + on_error: Optional callback invoked (in addition to logging) when + draining the buffer or applying an individual update fails. + If this callback itself raises, that is logged and ignored. + """ + self._buffer = buffer + self._meter = ( + meter_provider or opentelemetry.metrics.get_meter_provider() + ).get_meter(meter_name, meter_version) + self._poll_interval = poll_interval + self._on_error = on_error + self._instruments: dict[ + tuple[str, temporalio.runtime.BufferedMetricKind], _Instrument + ] = {} + self._started = False + self._shutdown_event = asyncio.Event() + self._run_complete_event = asyncio.Event() + self._run_task: asyncio.Task | None = None + + async def run(self) -> None: + """Drain and export on ``poll_interval`` until :py:meth:`shutdown` is called. + + Raises: + RuntimeError: If ``buffer`` was never attached to a constructed + :py:class:`temporalio.runtime.Runtime`, or if this is called + while already running. + """ + if self._started: + raise RuntimeError("MetricsExporter is already running") + self._started = True + self._run_complete_event.clear() + try: + while not self._shutdown_event.is_set(): + self._drain_once() + with contextlib.suppress(asyncio.TimeoutError): + await asyncio.wait_for( + self._shutdown_event.wait(), + timeout=self._poll_interval.total_seconds(), + ) + # Final drain so nothing recorded right before shutdown is lost. + self._drain_once() + finally: + self._started = False + # Clear here (rather than at the top of this method) so a + # shutdown() requested before this run() got a chance to start + # is still observed on the loop's first check above -- clearing + # up front would silently erase that pending request and poll + # forever, since shutdown() only sets the event once. + self._shutdown_event.clear() + self._run_complete_event.set() + + async def shutdown(self) -> None: + """Stop :py:meth:`run` (including a final drain) and wait for it to finish.""" + self._shutdown_event.set() + await self._run_complete_event.wait() + + async def __aenter__(self) -> "MetricsExporter": + """Start :py:meth:`run` as a background task.""" + self._run_task = asyncio.ensure_future(self.run()) + return self + + async def __aexit__(self, *exc_info: object) -> None: + """Call :py:meth:`shutdown` and await the background task.""" + await self.shutdown() + if self._run_task: + await self._run_task + + def _drain_once(self) -> None: + try: + updates = self._buffer.retrieve_updates() + except RuntimeError: + # Buffer was never attached to a constructed Runtime -- this is a + # setup error, not a transient failure, so it should propagate + # rather than spin silently and drop metrics forever. + raise + except Exception as err: + self._handle_error(err) + return + + for update in updates: + try: + self._apply_update(update) + except Exception as err: + self._handle_error(err) + + def _handle_error(self, err: Exception) -> None: + logger.exception("Error exporting buffered Temporal metrics") + if self._on_error: + try: + self._on_error(err) + except Exception: + logger.exception("on_error handler failed") + + def _apply_update(self, update: temporalio.runtime.BufferedMetricUpdate) -> None: + instrument = self._get_or_create_instrument(update.metric) + attributes: dict[str, opentelemetry.util.types.AttributeValue] = dict( + update.attributes + ) + + if instrument.kind == temporalio.runtime.BUFFERED_METRIC_KIND_COUNTER: + assert instrument.counter is not None + instrument.counter.add(update.value, attributes=attributes) + elif instrument.kind == temporalio.runtime.BUFFERED_METRIC_KIND_HISTOGRAM: + assert instrument.histogram is not None + instrument.histogram.record(update.value, attributes=attributes) + elif instrument.kind == temporalio.runtime.BUFFERED_METRIC_KIND_GAUGE: + assert instrument.gauge_state is not None + with instrument.gauge_state.lock: + instrument.gauge_state.last_values[frozenset(attributes.items())] = ( + attributes, + update.value, + ) + else: + raise ValueError(f"Unrecognized buffered metric kind: {instrument.kind}") + + def _get_or_create_instrument( + self, metric: temporalio.runtime.BufferedMetric + ) -> _Instrument: + key = (metric.name, metric.kind) + instrument = self._instruments.get(key) + if instrument is not None: + return instrument + + unit = metric.unit or "" + description = metric.description or "" + instrument = _Instrument(kind=metric.kind) + if metric.kind == temporalio.runtime.BUFFERED_METRIC_KIND_COUNTER: + instrument.counter = self._meter.create_counter( + metric.name, unit=unit, description=description + ) + elif metric.kind == temporalio.runtime.BUFFERED_METRIC_KIND_HISTOGRAM: + instrument.histogram = self._meter.create_histogram( + metric.name, unit=unit, description=description + ) + elif metric.kind == temporalio.runtime.BUFFERED_METRIC_KIND_GAUGE: + gauge_state = _GaugeState() + instrument.gauge_state = gauge_state + self._meter.create_observable_gauge( + metric.name, + callbacks=[_make_gauge_callback(gauge_state)], + unit=unit, + description=description, + ) + else: + raise ValueError(f"Unrecognized buffered metric kind: {metric.kind}") + + self._instruments[key] = instrument + return instrument diff --git a/temporalio/contrib/opentelemetry/_otel_interceptor.py b/temporalio/contrib/opentelemetry/_otel_interceptor.py index c120fcd03..5207095dc 100644 --- a/temporalio/contrib/opentelemetry/_otel_interceptor.py +++ b/temporalio/contrib/opentelemetry/_otel_interceptor.py @@ -32,8 +32,10 @@ import temporalio.api.common.v1 import temporalio.client import temporalio.converter +import temporalio.nexus.system.workflow_service.models import temporalio.worker import temporalio.workflow +from temporalio.contrib.opentelemetry._context import attached_context from temporalio.contrib.opentelemetry._tracer_provider import ( ReplaySafeTracerProvider, ) @@ -124,8 +126,7 @@ def _maybe_span( yield return - token = opentelemetry.context.attach(context) if context else None - try: + with attached_context(context): with tracer.start_as_current_span( name, attributes=attributes, @@ -147,9 +148,6 @@ def _maybe_span( ) ) raise - finally: - if token and context is opentelemetry.context.get_current(): - opentelemetry.context.detach(token) class OpenTelemetryInterceptor( @@ -333,8 +331,7 @@ async def execute_activity( self, input: temporalio.worker.ExecuteActivityInput ) -> Any: context = _headers_to_context(input.headers) - token = opentelemetry.context.attach(context) - try: + with attached_context(context): info = temporalio.activity.info() with _maybe_span( get_tracer(__name__), @@ -348,9 +345,6 @@ async def execute_activity( kind=opentelemetry.trace.SpanKind.SERVER, ): return await super().execute_activity(input) - finally: - if context is opentelemetry.context.get_current(): - opentelemetry.context.detach(token) class _TracingNexusOperationInboundInterceptor( @@ -367,12 +361,8 @@ def __init__( @contextmanager def _top_level_context(self, headers: Mapping[str, str]) -> Iterator[None]: context = _nexus_headers_to_context(headers) - token = opentelemetry.context.attach(context) - try: + with attached_context(context): yield - finally: - if context is opentelemetry.context.get_current(): - opentelemetry.context.detach(token) async def execute_nexus_operation_start( self, input: temporalio.worker.ExecuteNexusOperationStartInput @@ -500,12 +490,8 @@ async def handle_update_handler( @contextmanager def _top_level_workflow_context(self, input: _InputWithHeaders) -> Iterator[None]: context = _headers_to_context(input.headers) - token = opentelemetry.context.attach(context) - try: + with attached_context(context): yield - finally: - if context is opentelemetry.context.get_current(): - opentelemetry.context.detach(token) class _TracingWorkflowOutboundInterceptor( @@ -600,3 +586,15 @@ async def start_nexus_operation( ): input.headers = _context_to_nexus_headers(input.headers or {}) return await super().start_nexus_operation(input) + + async def start_signal_with_start_workflow( + self, + request: temporalio.nexus.system.workflow_service.models.SignalWithStartWorkflowRequest, + ) -> temporalio.workflow.NexusOperationHandle[ + temporalio.nexus.system.workflow_service.models.SignalWithStartWorkflowResponse + ]: + with self._workflow_maybe_span( + "SignalWithStartWorkflow", kind=opentelemetry.trace.SpanKind.CLIENT + ): + request.headers = _context_to_headers(request.headers or {}) + return await super().start_signal_with_start_workflow(request) diff --git a/temporalio/contrib/opentelemetry/_serverless.py b/temporalio/contrib/opentelemetry/_serverless.py new file mode 100644 index 000000000..37fdd5e86 --- /dev/null +++ b/temporalio/contrib/opentelemetry/_serverless.py @@ -0,0 +1,147 @@ +"""Provider-neutral OpenTelemetry helpers shared by serverless integrations. + +This is a private module. It is intentionally **not** re-exported from +``temporalio.contrib.opentelemetry`` so that importing that package gains no new +imports. The OTLP gRPC span exporter is imported lazily inside +:py:func:`build_otlp_span_processor`, so importing this module does not require +the ``opentelemetry-exporter-otlp-proto-grpc`` dependency. + +The AWS Lambda and GCP Cloud Run integrations layer their provider-specific +policy (ID generators, default service names, environment fallbacks) on top of +these helpers. Empty environment/argument values are skipped with a plain +truthiness check and are not stripped of whitespace, matching the pre-existing +AWS Lambda resolution behavior. +""" + +from __future__ import annotations + +import os +from collections.abc import Mapping, Sequence +from datetime import timedelta + +from opentelemetry.sdk.trace.export import BatchSpanProcessor + +from temporalio.runtime import OpenTelemetryConfig, TelemetryConfig + +OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VAR = "OTEL_EXPORTER_OTLP_ENDPOINT" +"""Standard OpenTelemetry environment variable for the common OTLP endpoint.""" + +OTEL_SERVICE_NAME_ENV_VAR = "OTEL_SERVICE_NAME" +"""Standard OpenTelemetry environment variable for ``service.name``.""" + +DEFAULT_OTLP_ENDPOINT = "http://localhost:4317" +"""Default local OTLP gRPC collector endpoint.""" + + +def resolve_endpoint( + explicit: str | None, + *, + env: Mapping[str, str] = os.environ, + default: str = DEFAULT_OTLP_ENDPOINT, +) -> str: + """Resolve the OTLP collector endpoint. + + Resolution order: ``explicit`` -> ``OTEL_EXPORTER_OTLP_ENDPOINT`` -> + ``default``. Empty values are skipped with a truthiness check, without + stripping whitespace. + + Args: + explicit: Endpoint supplied directly by the caller, if any. + env: Environment mapping. Defaults to the live process environment. + default: Endpoint used when nothing else is provided. + + Returns: + The resolved endpoint. + """ + return explicit or env.get(OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VAR) or default + + +def resolve_service_name( + explicit: str | None, + fallback_env_vars: Sequence[str], + default: str, + *, + env: Mapping[str, str] = os.environ, +) -> str: + """Resolve the OpenTelemetry service name. + + Resolution order: ``explicit`` -> ``OTEL_SERVICE_NAME`` -> each name in + ``fallback_env_vars`` in order -> ``default``. Empty values are skipped with + a truthiness check, without stripping whitespace. + + Args: + explicit: Service name supplied directly by the caller, if any. + fallback_env_vars: Provider-specific environment variable names checked, + in order, after ``OTEL_SERVICE_NAME``. + default: Service name used when nothing else is provided. + env: Environment mapping. Defaults to the live process environment. + + Returns: + The resolved service name. + """ + if explicit: + return explicit + otel_service_name = env.get(OTEL_SERVICE_NAME_ENV_VAR) + if otel_service_name: + return otel_service_name + for name in fallback_env_vars: + value = env.get(name) + if value: + return value + return default + + +def build_metrics_telemetry_config( + *, + endpoint: str, + service_name: str, + metric_periodicity: timedelta | None, +) -> TelemetryConfig: + """Build Core telemetry configuration for OTLP metrics export. + + Args: + endpoint: OTLP collector endpoint. Falls back to + :py:data:`DEFAULT_OTLP_ENDPOINT` when empty. + service_name: Service name added as the ``service_name`` global tag. + When empty, no global tag is added. + metric_periodicity: Metric export interval, passed through unchanged. + + Returns: + A :py:class:`temporalio.runtime.TelemetryConfig` with metrics pointed at + the collector. + """ + return TelemetryConfig( + metrics=OpenTelemetryConfig( + url=endpoint or DEFAULT_OTLP_ENDPOINT, + metric_periodicity=metric_periodicity, + ), + global_tags={"service_name": service_name} if service_name else {}, + ) + + +def build_otlp_span_processor( + endpoint: str, + *, + insecure: bool = True, +) -> BatchSpanProcessor: + """Build a batch span processor backed by the OTLP gRPC exporter. + + The exporter is imported lazily so that importing this module does not + require ``opentelemetry-exporter-otlp-proto-grpc``. + + Args: + endpoint: OTLP collector endpoint. + insecure: Whether to use an insecure (non-TLS) gRPC channel. + + Returns: + A batch span processor that exports to the OTLP collector. + + Raises: + ImportError: If the OTLP gRPC exporter is not installed. The caller + decides whether to warn and continue or re-raise. + """ + from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import ( # type: ignore[reportMissingTypeStubs] + OTLPSpanExporter, + ) + + return BatchSpanProcessor(OTLPSpanExporter(endpoint=endpoint, insecure=insecure)) diff --git a/temporalio/contrib/opentelemetry/_tracer_provider.py b/temporalio/contrib/opentelemetry/_tracer_provider.py index f2ad336d5..0f914b855 100644 --- a/temporalio/contrib/opentelemetry/_tracer_provider.py +++ b/temporalio/contrib/opentelemetry/_tracer_provider.py @@ -44,10 +44,13 @@ def end(self, end_time: int | None = None) -> None: if ( workflow.in_workflow() and self._exception is not None + and not workflow.unsafe.is_read_only() and not workflow.is_failure_exception(self._exception) ): # Skip ending spans with workflow task failures. Otherwise, each failure will create its own span # This may still occur for spans which were completed during failed workflow tasks. + # Queries and update validators run read-only and their exceptions + # never fail the workflow task, so their spans are always ended. return self._span.end(end_time=end_time) diff --git a/temporalio/contrib/pydantic.py b/temporalio/contrib/pydantic.py index dd5d0e67a..5cf8936d7 100644 --- a/temporalio/contrib/pydantic.py +++ b/temporalio/contrib/pydantic.py @@ -51,6 +51,8 @@ class PydanticJSONPlainPayloadConverter(EncodingPayloadConverter): types from the datetime module, sets, UUID, etc, and custom types composed of any of these. + Pickling preserves the cache size limit but excludes cached type adapters. + See https://docs.pydantic.dev/latest/api/standard_library_types/ """ @@ -71,9 +73,26 @@ def __init__( """ if max_cached_type_adapters is not None and max_cached_type_adapters < 0: raise ValueError("max_cached_type_adapters cannot be negative") - self._schema_serializer = SchemaSerializer(any_schema()) + # Match the defaults of pydantic_core.to_json so that the options only + # change what they control + self._schema_serializer = SchemaSerializer( + any_schema(), config={"ser_json_inf_nan": "constants"} + ) self._to_json_options = to_json_options - self._type_adapter = functools.lru_cache(maxsize=max_cached_type_adapters)( + self._type_adapter: functools._lru_cache_wrapper[TypeAdapter[Any]] = ( + functools.lru_cache(maxsize=max_cached_type_adapters)(TypeAdapter) + ) + + def __getstate__(self) -> dict[str, Any]: + """Pickle without the type adapter cache, whose wrapper is not picklable.""" + state = self.__dict__.copy() + state["_type_adapter"] = self._type_adapter.cache_info().maxsize + return state + + def __setstate__(self, state: dict[str, Any]) -> None: + """Restore state with an empty type adapter cache.""" + vars(self).update(state) + self._type_adapter = functools.lru_cache(maxsize=state["_type_adapter"])( TypeAdapter ) @@ -92,7 +111,7 @@ def to_payload(self, value: Any) -> temporalio.api.common.v1.Payload | None: """ data = ( self._schema_serializer.to_json( - value, exclude_unset=self._to_json_options.exclude_unset + value, by_alias=True, exclude_unset=self._to_json_options.exclude_unset ) if self._to_json_options else to_json(value) diff --git a/temporalio/contrib/strands/README.md b/temporalio/contrib/strands/README.md index 126f4bd95..c0c909513 100644 --- a/temporalio/contrib/strands/README.md +++ b/temporalio/contrib/strands/README.md @@ -1,452 +1,39 @@ -# Strands Agents +# Strands Agents integration -⚠️ **This package is currently at an experimental release stage.** ⚠️ +The Strands Agents integration has moved to the independently versioned +[`temporalio-strands-agents`](https://pypi.org/project/temporalio-strands-agents/) +package. Its canonical Python API is `temporalio.strands_agents`. -This Temporal [Plugin](https://docs.temporal.io/develop/plugins-guide) allows you to run [Strands Agents](https://strandsagents.com/) inside Temporal Workflows, routing model invocations, tool calls, and MCP tool calls through Temporal Activities for durable execution, Temporal-managed retries, and timeouts. +The complete integration guide now lives in the +[`temporalio-strands-agents` README](https://github.com/temporalio/ai-integrations/tree/main/python/strands_agents#readme). -## Installation +## Migrating to the standalone package -```sh -uv add temporalio[strands-agents] -``` - -## Quickstart - -`workflow.py` defines the workflow and runs the worker: - -```python -import asyncio -from datetime import timedelta - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.strands import StrandsPlugin, TemporalAgent -from temporalio.worker import Worker - - -@workflow.defn -class MyWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent(start_to_close_timeout=timedelta(seconds=60)) - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - return str(result) - - -async def main() -> None: - client = await Client.connect("localhost:7233") - worker = Worker( - client, - task_queue="strands", - workflows=[MyWorkflow], - plugins=[StrandsPlugin()], - ) - await worker.run() - - -if __name__ == "__main__": - asyncio.run(main()) -``` - -`client.py` starts the workflow: - -```python -import asyncio - -from temporalio.client import Client - -from workflow import MyWorkflow - - -async def main() -> None: - client = await Client.connect("localhost:7233") - result = await client.execute_workflow( - MyWorkflow.run, - "Hello", - id="strands-quickstart", - task_queue="strands", - ) - print(result) - - -if __name__ == "__main__": - asyncio.run(main()) -``` - -Note: Use `agent.invoke_async(message)` instead of `agent(message)`. The synchronous form spawns a worker thread, which the workflow sandbox blocks. - -## Models - -`StrandsPlugin(models=...)` takes a mapping of `name → factory`. Each factory is called lazily on first use (on the worker, outside the workflow sandbox) and the constructed model is cached for the worker's lifetime. `TemporalAgent(model="name", ...)` selects which factory to invoke and carries the activity options for that agent's model calls. If `models` is omitted, the plugin registers a single `BedrockModel()` factory under the name `"bedrock"`, matching Strands' own implicit default. - -```python -from strands.models.anthropic import AnthropicModel -from strands.models.bedrock import BedrockModel - -# workflow -@workflow.defn -class MultiModelWorkflow: - def __init__(self) -> None: - self.agent_a = TemporalAgent( - model="claude", - start_to_close_timeout=timedelta(seconds=60), - ) - self.agent_b = TemporalAgent( - model="bedrock", - start_to_close_timeout=timedelta(seconds=60), - ) - -# worker -Worker(..., plugins=[StrandsPlugin(models={ - "claude": lambda: AnthropicModel(client_args={"api_key": "..."}), - "bedrock": lambda: BedrockModel(), -})]) -``` - -Each `TemporalAgent` carries its own activity options (timeouts, retry policy, task queue, streaming topic) and dispatches to the shared model activity, which resolves the model name against the registered factories at runtime. A name not present in `models` raises `ValueError` inside the activity. - -## Retries - -`TemporalAgent` disables Strands' built-in `ModelRetryStrategy` so retries are handled exclusively by Temporal. Configure retries via `retry_policy` on `TemporalAgent`, and on the activity options accepted by `workflow.activity_as_tool`, `workflow.activity_as_hook`, and `TemporalMCPClient`: - -```python -from temporalio.common import RetryPolicy - -TemporalAgent( - start_to_close_timeout=timedelta(seconds=60), - retry_policy=RetryPolicy(maximum_attempts=3), -) -``` - -Passing `retry_strategy=...` to `TemporalAgent(...)` raises `ValueError`; remove the argument (or pass `retry_strategy=None`) and put the retry config on the activity options instead. - -## Snapshots - -`TemporalAgent.take_snapshot()` and `TemporalAgent.load_snapshot()` raise `NotImplementedError`. Temporal's event history already persists workflow state durably at a finer granularity than Strands snapshots, so calling either inside a workflow is redundant. - -## Structured Output - -Like Strands `Agent`, `TemporalAgent` supports structured output with `structured_output_model`. The plugin defaults to [`pydantic_data_converter`](../pydantic), so Pydantic types easily serialize across the activity and workflow boundary. - -```python -from pydantic import BaseModel - -class PersonInfo(BaseModel): - name: str - age: int - -@workflow.defn -class MyWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - start_to_close_timeout=timedelta(seconds=60), - structured_output_model=PersonInfo, - ) - - @workflow.run - async def run(self, prompt: str) -> PersonInfo: - result = await self.agent.invoke_async(prompt) - return result.structured_output -``` - -## Streaming - -To forward model chunks to external consumers, pass `streaming_topic="..."` to `TemporalAgent` and host a `WorkflowStream` on the workflow. Each `StreamEvent` is published on the named topic from inside the model activity; subscribers read via `WorkflowStreamClient`. Chunks are batched on `streaming_batch_interval` (default 100ms). - -```python -# workflow -@workflow.defn -class MyWorkflow: - def __init__(self) -> None: - self.stream = WorkflowStream() - self.agent = TemporalAgent(streaming_topic="events") - -# client -async for item in WorkflowStreamClient.create(client, workflow_id).subscribe( - ["events"], result_type=StreamEvent, -): - print(item.data) -``` - -## Tools - -Decorate non-deterministic tools with `@activity.defn`, or if you're importing tools from `strands_tools`, wrap them in a thin async function. Then, register the activity on the worker via `Worker(activities=[...])` and pass it to the agent with `workflow.activity_as_tool(activity, **options)` along with any activity options (e.g. `start_to_close_timeout`): - -```python -from strands_tools import shell -from temporalio.contrib.strands import workflow as strands_workflow - -@activity.defn -async def fetch_user(user_id: str) -> dict: - ... - -@activity.defn(name="shell") -async def shell_activity(command: str) -> dict: - return shell.shell(command=command, non_interactive=True) - -# workflow -agent = TemporalAgent( - start_to_close_timeout=timedelta(seconds=60), - tools=[ - strands_workflow.activity_as_tool(fetch_user, start_to_close_timeout=timedelta(seconds=30)), - strands_workflow.activity_as_tool(shell_activity, start_to_close_timeout=timedelta(seconds=15)), - ], -) - -# worker -Worker( - ..., - activities=[fetch_user, shell_activity], - plugins=[StrandsPlugin(models=MODELS)], -) -``` - -## Hooks +Remove the `strands-agents` extra from the existing Temporal dependency: -Strands' [hook system](https://strandsagents.com/) (`strands.hooks`) lets you subscribe callbacks to events in the agent lifecycle — invocation start/end, model call before/after, tool call before/after, message added. Pass `hooks=[MyHookProvider()]` to `TemporalAgent`: every single-agent hook event fires in workflow context, so deterministic callbacks just work. +```toml +# Before +dependencies = [ + "temporalio[strands-agents,opentelemetry,pydantic]", +] -```python -from strands.hooks import HookProvider, HookRegistry -from strands.hooks.events import AfterToolCallEvent - -class AuditHook(HookProvider): - def register_hooks(self, registry: HookRegistry) -> None: - registry.add_callback(AfterToolCallEvent, self._on_tool_call) - - def _on_tool_call(self, event: AfterToolCallEvent) -> None: - # Pure local state - deterministic across replay. - workflow.logger.info(f"tool {event.tool_use['name']} finished") - -agent = TemporalAgent(start_to_close_timeout=..., hooks=[AuditHook()]) -``` - -Callbacks run in workflow context, so they must be deterministic: no `time.time()`, `uuid.uuid4()`, or I/O — same rules as workflow code. For callbacks that need I/O (audit logging, metrics, alerting), use `workflow.activity_as_hook()` to dispatch the work as a Temporal activity: - -```python -from temporalio.contrib.strands.workflow import activity_as_hook - -@activity.defn -async def persist_tool_call(tool_name: str) -> None: - # I/O safely in an activity. - ... - -class AuditHook(HookProvider): - def register_hooks(self, registry: HookRegistry) -> None: - registry.add_callback( - AfterToolCallEvent, - activity_as_hook( - persist_tool_call, - activity_input=lambda event: event.tool_use["name"], - start_to_close_timeout=timedelta(seconds=10), - ), - ) -``` - -`activity_input` extracts serializable values from the event to pass as the activity's input. Use a dataclass or Pydantic model for multiple values. This is needed because events hold references to the `Agent`, `AgentTool` instances, etc., none of which cross the activity boundary. - -## Human-in-the-loop interrupts - -Strands offers two HITL surfaces; both work with the plugin. In each case, `agent.invoke_async()` returns `AgentResult(stop_reason="interrupt", interrupts=[...])` instead of raising. Pair this with a signal handler that supplies responses, then resume by calling `agent.invoke_async(responses)`. - -### Hook-based interrupts - -A hook on an interruptible event (e.g. `BeforeToolCallEvent`) can pause the agent by calling `event.interrupt(name, reason=...)`. The hook runs in workflow context, so it must be deterministic — no I/O. - -```python -from strands.hooks import HookProvider, HookRegistry -from strands.hooks.events import BeforeToolCallEvent - -class ApprovalHook(HookProvider): - def register_hooks(self, registry: HookRegistry) -> None: - registry.add_callback(BeforeToolCallEvent, self._gate) - - def _gate(self, event: BeforeToolCallEvent) -> None: - if event.interrupt("approval", reason="confirm delete") != "approve": - event.cancel_tool = "denied" - -@workflow.defn -class MyWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - start_to_close_timeout=timedelta(seconds=60), - tools=[delete_thing], - hooks=[ApprovalHook()], - ) - self._approval: str | None = None - - @workflow.signal - def approve(self, response: str) -> None: - self._approval = response - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - if result.stop_reason == "interrupt": - await workflow.wait_condition(lambda: self._approval is not None) - result = await self.agent.invoke_async([ - {"interruptResponse": {"interruptId": result.interrupts[0].id, "response": self._approval}} - ]) - return str(result) -``` - -### Tool-body interrupts - -A `@strands.tool` function can raise `InterruptException(Interrupt(...))` directly. The agent stops with the interrupt, the workflow handles the resume the same way as for hooks. - -```python -from strands import tool -from strands.interrupt import Interrupt, InterruptException - -@tool -def delete_thing(name: str) -> str: - raise InterruptException( - Interrupt(id=f"delete:{name}", name="approval", reason=f"delete {name}?") - ) -``` - -The same works from an `activity_as_tool`-wrapped activity. The plugin's failure converter preserves the `Interrupt` payload across the activity boundary, so `AgentResult.interrupts` is populated just like the in-workflow case: - -```python -from strands.interrupt import Interrupt, InterruptException -from temporalio.contrib.strands.workflow import activity_as_tool - -@activity.defn -async def delete_thing(name: str) -> str: - if not await policy.is_authorized(name): - raise InterruptException( - Interrupt(id=f"delete:{name}", name="approval", reason=f"delete {name}?") - ) - await storage.delete(name) - return f"deleted {name}" - -@workflow.defn -class MyWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - start_to_close_timeout=timedelta(seconds=60), - tools=[activity_as_tool(delete_thing, start_to_close_timeout=timedelta(seconds=10))], - ) +# After +dependencies = [ + "temporalio[opentelemetry,pydantic]", +] ``` -This relies on the plugin's failure converter, which is installed via the client's data converter. **Attach `StrandsPlugin` to the client** (not just the worker) for activity-tool interrupts to work — workers built from that client pick up the plugin automatically. +Remove the brackets if no extras remain. Then install the standalone package directly: -```python -client = await Client.connect("localhost:7233", plugins=[StrandsPlugin(models=MODELS)]) -Worker(client, task_queue="strands", workflows=[MyWorkflow], activities=[delete_thing]) +```bash +uv add temporalio-strands-agents ``` -## Continue-as-new - -A chat-style workflow accumulates history with every turn and will eventually hit Temporal's per-workflow history limit. `workflow.info().is_continue_as_new_suggested()` flips true once the server decides history has grown large enough; check it after each turn and hand off to a fresh run, carrying `agent.messages` as input: +Change application imports to the standalone package: ```python -from dataclasses import dataclass, field -from strands.types.content import Messages - -@dataclass -class ChatInput: - messages: Messages = field(default_factory=list) - -@workflow.defn -class ChatWorkflow: - def __init__(self) -> None: - self._pending: list[str] = [] - self._done = False - - @workflow.signal - def user_says(self, prompt: str) -> None: - self._pending.append(prompt) - - @workflow.signal - def end_chat(self) -> None: - self._done = True - - @workflow.run - async def run(self, input: ChatInput) -> None: - agent = TemporalAgent( - start_to_close_timeout=timedelta(seconds=60), - messages=list(input.messages), - ) - while True: - await workflow.wait_condition(lambda: self._pending or self._done) - if self._done: - return - await agent.invoke_async(self._pending.pop(0)) - if workflow.info().is_continue_as_new_suggested(): - workflow.continue_as_new(ChatInput(messages=agent.messages)) -``` - -## MCP - -`StrandsPlugin(mcp_clients=...)` takes a mapping of `name → MCPClient factory`, mirroring the `models=` pattern. The plugin registers per-server `{name}-call-tool` and `{name}-list-tools` activities. Workflow-side, `TemporalMCPClient(server="name")` is a pure handle: it references the server by name, discovers tools by running `{name}-list-tools`, and carries the per-call activity options. - -```python -from mcp import StdioServerParameters, stdio_client -from strands.tools.mcp.mcp_client import MCPClient -from temporalio.contrib.strands import TemporalMCPClient - -# workflow -@workflow.defn -class MyWorkflow: - def __init__(self) -> None: - echo = TemporalMCPClient(server="echo", start_to_close_timeout=timedelta(seconds=30)) - self.agent = TemporalAgent( - start_to_close_timeout=timedelta(seconds=60), - tools=[echo], - ) - -# worker -Worker( - ..., - plugins=[StrandsPlugin( - mcp_clients={ - "echo": lambda: MCPClient( - lambda: stdio_client( - StdioServerParameters(command="...", args=[...]), - ), - ), - }, - )], -) -``` - -Each factory returns a fully configured `MCPClient`, so you can pass options like `tool_filters`, `prefix`, `elicitation_callback`, or `tasks_config` to it. - -By default, `TemporalMCPClient` re-lists the server's tools (via `{name}-list-tools`) on every agent turn, so an MCP server that is restarted mid-workflow — with tools added, removed, or renamed — is picked up. To list the tools just once at the beginning of the workflow and reuse that schema for the workflow's lifetime (one fewer activity per turn), set `cache_tools=True`: - -```python -echo = TemporalMCPClient(server="echo", cache_tools=True, start_to_close_timeout=timedelta(seconds=30)) -``` - -To amortize connection setup, the `{name}-call-tool` and `{name}-list-tools` activities share a worker-process MCP connection that is opened lazily and reused across calls. The connection is disconnected after it sits idle for `mcp_connection_idle_timeout` (default 5 minutes); the timer resets on every reuse: - -```python -StrandsPlugin( - mcp_clients={"echo": lambda: MCPClient(...)}, - mcp_connection_idle_timeout=timedelta(seconds=30), -) -``` - -## Observability - -`StrandsPlugin` composes cleanly with [`OpenTelemetryPlugin`](../opentelemetry). Register `OpenTelemetryPlugin` on the client (workers built from that client pick it up automatically) and `StrandsPlugin` on the worker. You'll get OTel spans around the model, tool, and MCP activities the plugin schedules, plus any spans Strands itself emits inside `invoke_async`: - -```python -import opentelemetry.trace -from temporalio.contrib.opentelemetry import OpenTelemetryPlugin, create_tracer_provider - -opentelemetry.trace.set_tracer_provider(create_tracer_provider()) - -client = await Client.connect("localhost:7233", plugins=[OpenTelemetryPlugin()]) - -Worker( - client, - task_queue="strands", - workflows=[MyWorkflow], - plugins=[StrandsPlugin(models=MODELS)], -) +from temporalio.strands_agents import StrandsPlugin ``` -Set the tracer provider before connecting the client. See the [OpenTelemetry plugin README](../opentelemetry) for exporter setup. +The new import path selects the standalone implementation instead of the +SDK-bundled `temporalio.contrib.strands` implementation. diff --git a/temporalio/contrib/strands/__init__.py b/temporalio/contrib/strands/__init__.py index 39a8e7401..5784a2500 100644 --- a/temporalio/contrib/strands/__init__.py +++ b/temporalio/contrib/strands/__init__.py @@ -1,13 +1,12 @@ -"""Temporal integration for the Strands Agents SDK.""" +"""Compatibility imports for the standalone Strands Agents integration. -from . import workflow -from ._plugin import StrandsPlugin -from ._temporal_agent import TemporalAgent -from ._temporal_mcp_client import TemporalMCPClient +Install ``temporalio-strands-agents`` and import ``temporalio.strands_agents`` +directly in new code. -__all__ = [ - "StrandsPlugin", - "TemporalAgent", - "TemporalMCPClient", - "workflow", -] +Legacy ``workflow`` module forwards the standalone public API. +""" + +from temporalio.strands_agents import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] +from temporalio.strands_agents import ( # pyright: ignore[reportMissingImports] + __all__ as __all__, +) diff --git a/temporalio/contrib/strands/_failure_converter.py b/temporalio/contrib/strands/_failure_converter.py deleted file mode 100644 index c387f47f4..000000000 --- a/temporalio/contrib/strands/_failure_converter.py +++ /dev/null @@ -1,69 +0,0 @@ -"""Failure converter for Strands-specific exceptions.""" - -from strands.interrupt import InterruptException -from strands.types.exceptions import ( - ContextWindowOverflowException, - MaxTokensReachedException, - SessionException, - StructuredOutputException, -) - -import temporalio.api.failure.v1 -from temporalio.converter import DefaultFailureConverter, PayloadConverter -from temporalio.exceptions import ApplicationError - -# Activity-side: when a Strands ``InterruptException`` would otherwise be -# serialized by the default converter, the ``Interrupt`` payload on -# ``exc.interrupt`` is dropped (it lives on the instance, not in the -# serialized ApplicationError). We translate to a typed ApplicationError so -# the interrupt data survives the activity boundary and the workflow side -# can rebuild a real ``Interrupt``. -STRANDS_INTERRUPT_TYPE = "StrandsInterrupt" - -# Strands' model/session exceptions that are deterministic failures (token -# limits, context overflow, structured-output validation, session I/O). They -# won't succeed on retry, so they cross the boundary as non-retryable typed -# ApplicationErrors. TemporalAgent.invoke_async rewraps these as -# StrandsWorkflowError on the workflow side so users can `except` cleanly. -_TERMINAL_EXCEPTIONS: tuple[type[BaseException], ...] = ( - MaxTokensReachedException, - ContextWindowOverflowException, - StructuredOutputException, - SessionException, -) - - -class StrandsFailureConverter(DefaultFailureConverter): - """Failure converter that preserves Strands exception payloads and retryability.""" - - def to_failure( - self, - exception: BaseException, - payload_converter: PayloadConverter, - failure: temporalio.api.failure.v1.Failure, - ) -> None: - """Translate Strands exceptions to typed ApplicationErrors.""" - if isinstance(exception, InterruptException): - super().to_failure( - ApplicationError( - f"interrupt:{exception.interrupt.name}", - exception.interrupt.to_dict(), - type=STRANDS_INTERRUPT_TYPE, - non_retryable=True, - ), - payload_converter, - failure, - ) - return - if isinstance(exception, _TERMINAL_EXCEPTIONS): - super().to_failure( - ApplicationError( - str(exception), - type=type(exception).__name__, - non_retryable=True, - ), - payload_converter, - failure, - ) - return - super().to_failure(exception, payload_converter, failure) diff --git a/temporalio/contrib/strands/_heartbeat_decorator.py b/temporalio/contrib/strands/_heartbeat_decorator.py deleted file mode 100644 index 7c5b9193d..000000000 --- a/temporalio/contrib/strands/_heartbeat_decorator.py +++ /dev/null @@ -1,38 +0,0 @@ -import asyncio -from collections.abc import Awaitable, Callable -from functools import wraps -from typing import Any, TypeVar, cast - -from temporalio import activity - -F = TypeVar("F", bound=Callable[..., Awaitable[Any]]) - - -def auto_heartbeater(fn: F) -> F: - """Decorator that heartbeats at half the activity's heartbeat timeout.""" - - @wraps(fn) - async def wrapper(*args: Any, **kwargs: Any) -> Any: - heartbeat_timeout = activity.info().heartbeat_timeout - heartbeat_task = None - if heartbeat_timeout: - heartbeat_task = asyncio.create_task( - _heartbeat_every(heartbeat_timeout.total_seconds() / 2) - ) - try: - return await fn(*args, **kwargs) - finally: - if heartbeat_task: - heartbeat_task.cancel() - try: - await heartbeat_task - except asyncio.CancelledError: - pass - - return cast(F, wrapper) - - -async def _heartbeat_every(delay: float) -> None: - while True: - await asyncio.sleep(delay) - activity.heartbeat() diff --git a/temporalio/contrib/strands/_model_activity.py b/temporalio/contrib/strands/_model_activity.py deleted file mode 100644 index fba30658d..000000000 --- a/temporalio/contrib/strands/_model_activity.py +++ /dev/null @@ -1,106 +0,0 @@ -from collections.abc import AsyncIterable, Callable -from dataclasses import dataclass, field -from datetime import timedelta -from typing import Any - -from strands.models import Model -from strands.types.streaming import StreamEvent - -from temporalio import activity -from temporalio.contrib.strands._heartbeat_decorator import auto_heartbeater -from temporalio.contrib.workflow_streams import WorkflowStreamClient - - -# Fields are typed as Any because strands TypedDicts (Message, ToolSpec) use -# NotRequired, which Python < 3.11's get_type_hints leaks through unchanged -# and the default JSON converter then fails to deserialize. Values flow -# through unchanged to ``Model.stream`` which accepts the raw dicts. -@dataclass -class _InvokeModelInput: - model_name: str | None - messages: Any - invocation_state: dict[str, Any] = field(default_factory=dict) - tool_specs: Any = None - system_prompt: str | None = None - tool_choice: Any = None - system_prompt_content: Any = None - - -@dataclass -class _StreamingInvokeModelInput(_InvokeModelInput): - streaming_topic: str = "" - streaming_batch_interval_seconds: float = 0.1 - - -class ModelActivity: - """Holds the registered model factories and exposes the model activities.""" - - def __init__( - self, - factories: dict[str, Callable[[], Model]], - *, - default_name: str | None = None, - ) -> None: - """Store the factories; models are constructed lazily on first use. - - ``default_name`` is set only by the plugin's own auto-registered - ``BedrockModel`` default. User-supplied ``models`` leave it ``None``, - which forces every ``TemporalAgent`` to specify ``model=`` explicitly. - """ - self._factories = factories - self._default_name = default_name - self._models: dict[str, Model] = {} - - def _get_model(self, name: str | None) -> Model: - if name is None: - if self._default_name is None: - raise ValueError( - f"TemporalAgent was constructed without an explicit `model`, " - f"but the plugin was configured with user-supplied `models=`. " - f"Pass model='...' to TemporalAgent. " - f"Known: {sorted(self._factories)}" - ) - name = self._default_name - if name not in self._models: - if name not in self._factories: - raise ValueError( - f"Unknown model name {name!r}. Known: {sorted(self._factories)}" - ) - self._models[name] = self._factories[name]() - return self._models[name] - - @activity.defn - @auto_heartbeater - async def invoke_model(self, input: _InvokeModelInput) -> list[StreamEvent]: - """Run the named model and return its stream events as a list.""" - model = self._get_model(input.model_name) - return [event async for event in _stream(model, input)] - - @activity.defn - @auto_heartbeater - async def invoke_model_streaming( - self, input: _StreamingInvokeModelInput - ) -> list[StreamEvent]: - """Run the named model and publish each stream event to a WorkflowStream.""" - model = self._get_model(input.model_name) - events: list[StreamEvent] = [] - stream = WorkflowStreamClient.from_within_activity( - batch_interval=timedelta(seconds=input.streaming_batch_interval_seconds), - ) - topic = stream.topic(input.streaming_topic) - async with stream: - async for event in _stream(model, input): - events.append(event) - topic.publish(event) - return events - - -def _stream(model: Model, input: _InvokeModelInput) -> AsyncIterable[StreamEvent]: - return model.stream( - input.messages, - input.tool_specs, - input.system_prompt, - tool_choice=input.tool_choice, - system_prompt_content=input.system_prompt_content, - invocation_state=input.invocation_state, - ) diff --git a/temporalio/contrib/strands/_plugin.py b/temporalio/contrib/strands/_plugin.py deleted file mode 100644 index 0f1972666..000000000 --- a/temporalio/contrib/strands/_plugin.py +++ /dev/null @@ -1,123 +0,0 @@ -from collections.abc import AsyncGenerator, Callable -from contextlib import asynccontextmanager -from dataclasses import replace -from datetime import timedelta - -from strands.models import BedrockModel, Model -from strands.tools.mcp import MCPClient - -from temporalio.contrib.pydantic import pydantic_data_converter -from temporalio.converter import DataConverter, DefaultPayloadConverter -from temporalio.plugin import SimplePlugin -from temporalio.worker import WorkflowRunner -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner - -from ._failure_converter import StrandsFailureConverter -from ._model_activity import ModelActivity -from ._temporal_mcp_client import ( - _evict_connection, - build_call_tool_activity, - build_list_tools_activity, -) - - -class StrandsPlugin(SimplePlugin): - """Temporal Worker plugin for the Strands Agents SDK. - - When ``models`` is supplied, registers a single pair of model invocation - activities; each call carries the chosen ``model_name`` in its input and - the worker resolves it against the factories. Factories are called lazily - on first use, then cached for the worker's lifetime. Use the same name in - ``TemporalAgent(model=...)`` inside the workflow. - - When ``mcp_clients`` is supplied, registers per-server - ``{server}-call-tool`` and ``{server}-list-tools`` activities for each - entry. Workflow-side ``TemporalMCPClient(server="...")`` discovers tools by - running ``{server}-list-tools``; whether it lists once per workflow or once - per agent turn is controlled by its ``cache_tools`` option. - - ``mcp_connection_idle_timeout`` controls how long a worker-process MCP - connection is kept open between ``call-tool`` activities before it is - disconnected; the timer resets on every reuse. Defaults to 5 minutes. - """ - - def __init__( - self, - *, - models: dict[str, Callable[[], Model]] | None = None, - mcp_clients: dict[str, Callable[[], MCPClient]] | None = None, - mcp_connection_idle_timeout: timedelta | None = None, - ) -> None: - """Build the plugin from optional model and MCP transport factories. - - If ``models`` is omitted, registers a single ``BedrockModel()`` factory - under the name ``"bedrock"``, matching Strands' own implicit default. - """ - default_name: str | None = None - if models is None: - models = {"bedrock": lambda: BedrockModel()} - default_name = "bedrock" - activities: list[Callable] = [] - if models: - ma = ModelActivity(models, default_name=default_name) - activities.extend([ma.invoke_model, ma.invoke_model_streaming]) - - mcp_clients = mcp_clients or {} - for server, client_factory in mcp_clients.items(): - activities.append( - build_call_tool_activity( - server, client_factory, mcp_connection_idle_timeout - ) - ) - activities.append( - build_list_tools_activity( - server, client_factory, mcp_connection_idle_timeout - ) - ) - - @asynccontextmanager - async def run_context() -> AsyncGenerator[None, None]: - try: - yield - finally: - for server in mcp_clients: - await _evict_connection(server) - - super().__init__( - "aws.StrandsPlugin", - workflow_runner=_workflow_runner, - data_converter=_data_converter, - activities=activities or None, - run_context=run_context, - ) - - -def _workflow_runner(runner: WorkflowRunner | None) -> WorkflowRunner: - if not runner: - raise ValueError("No WorkflowRunner provided to the Strands plugin.") - if isinstance(runner, SandboxedWorkflowRunner): - return replace( - runner, - restrictions=runner.restrictions.with_passthrough_modules( - "strands", - "strands_tools", - "mcp", - # ``pydantic`` is already in the SDK default passthrough; extend it - # to its compiled validation core and ``Annotated`` helper. - "pydantic_core", - "annotated_types", - ), - ) - return runner - - -def _data_converter(converter: DataConverter | None) -> DataConverter: - if ( - converter is None - or converter.payload_converter_class is DefaultPayloadConverter - ): - return replace( - pydantic_data_converter, - failure_converter_class=StrandsFailureConverter, - ) - return converter diff --git a/temporalio/contrib/strands/_temporal_activity_tool.py b/temporalio/contrib/strands/_temporal_activity_tool.py deleted file mode 100644 index bb838834e..000000000 --- a/temporalio/contrib/strands/_temporal_activity_tool.py +++ /dev/null @@ -1,95 +0,0 @@ -import inspect -import json -from collections.abc import Callable -from typing import Any - -from strands.interrupt import Interrupt -from strands.tools.decorator import FunctionToolMetadata -from strands.types._events import ToolInterruptEvent, ToolResultEvent -from strands.types.tools import AgentTool, ToolGenerator, ToolResult, ToolSpec, ToolUse - -from temporalio import activity, workflow -from temporalio.exceptions import ActivityError, ApplicationError - -from ._failure_converter import STRANDS_INTERRUPT_TYPE - - -class TemporalActivityTool(AgentTool): - """Strands ``AgentTool`` whose body dispatches a Temporal activity.""" - - def __init__(self, activity_fn: Callable, options: dict[str, Any]) -> None: - """Capture the target activity and the options to invoke it with.""" - super().__init__() - defn = activity._Definition.from_callable(activity_fn) - if not defn or not defn.name: - raise ValueError("activity_fn must be decorated with @activity.defn") - self._activity_name = defn.name - self._options = options - self._signature = inspect.signature(activity_fn) - spec = FunctionToolMetadata(activity_fn).extract_metadata() - spec["name"] = self._activity_name - self._spec: ToolSpec = spec - - @property - def tool_name(self) -> str: - """Name of the underlying Temporal activity.""" - return self._activity_name - - @property - def tool_spec(self) -> ToolSpec: - """Strands ToolSpec derived from the activity's signature.""" - return self._spec - - @property - def tool_type(self) -> str: - """Tool kind identifier used by Strands.""" - return "temporal_activity" - - async def stream( - self, - tool_use: ToolUse, - invocation_state: dict[str, Any], - **kwargs: Any, - ) -> ToolGenerator: - """Execute the tool by dispatching to the bound Temporal activity.""" - bound = self._signature.bind(**tool_use["input"]) - bound.apply_defaults() - positional = list(bound.arguments.values()) - try: - if not positional: - result = await workflow.execute_activity( - self._activity_name, **self._options - ) - elif len(positional) == 1: - result = await workflow.execute_activity( - self._activity_name, positional[0], **self._options - ) - else: - result = await workflow.execute_activity( - self._activity_name, args=positional, **self._options - ) - except ActivityError as e: - cause = e.__cause__ - if ( - isinstance(cause, ApplicationError) - and cause.type == STRANDS_INTERRUPT_TYPE - ): - yield ToolInterruptEvent(tool_use, [Interrupt(**cause.details[0])]) - return - raise - yield ToolResultEvent( - ToolResult( - toolUseId=tool_use["toolUseId"], - status="success", - content=[{"text": _to_text(result)}], - ) - ) - - -def _to_text(result: Any) -> str: - if isinstance(result, str): - return result - try: - return json.dumps(result) - except (TypeError, ValueError): - return str(result) diff --git a/temporalio/contrib/strands/_temporal_agent.py b/temporalio/contrib/strands/_temporal_agent.py deleted file mode 100644 index c2f9f14c7..000000000 --- a/temporalio/contrib/strands/_temporal_agent.py +++ /dev/null @@ -1,132 +0,0 @@ -from datetime import timedelta -from typing import Any - -from strands import Agent -from strands.hooks import BeforeModelCallEvent, HookCallback - -from temporalio.common import Priority, RetryPolicy -from temporalio.workflow import ActivityCancellationType, VersioningIntent - -from ._temporal_mcp_client import TemporalMCPClient -from ._temporal_model import TemporalModel - -_SNAPSHOT_DISABLED = ( - "TemporalAgent disables take_snapshot()/load_snapshot(). Temporal " - "workflows already persist agent state durably via the event history at " - "a finer granularity than Strands snapshots. Remove the snapshot call " - "and rely on Temporal's durable execution instead." -) - - -class TemporalAgent(Agent): - """A Strands ``Agent`` that routes model calls through a Temporal activity. - - ``model`` is the name of a factory registered in - ``StrandsPlugin(models={...})``. The activity options apply to every model - invocation this agent makes. All other keyword arguments are forwarded to - Strands' ``Agent`` (``tools``, ``hooks``, ``system_prompt``, - ``structured_output_model``, ``messages``, etc.). - - Strands' ``retry_strategy`` is disabled; configure retries via - ``retry_policy`` here and on the activity options accepted by - ``activity_as_tool``, ``activity_as_hook``, and ``TemporalMCPClient``. - """ - - def __init__( - self, - *, - model: str | None = None, - task_queue: str | None = None, - schedule_to_close_timeout: timedelta | None = None, - schedule_to_start_timeout: timedelta | None = None, - start_to_close_timeout: timedelta | None = None, - heartbeat_timeout: timedelta | None = None, - retry_policy: RetryPolicy | None = None, - cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, - versioning_intent: VersioningIntent | None = None, - summary: str | None = None, - priority: Priority = Priority.default, - streaming_topic: str | None = None, - streaming_batch_interval: timedelta = timedelta(milliseconds=100), - **agent_kwargs: Any, - ) -> None: - """Build a TemporalAgent from a registered model name and activity options.""" - if agent_kwargs.get("retry_strategy") is not None: - raise ValueError( - "TemporalAgent disables Strands retries; configure retries via " - "retry_policy on TemporalAgent and on the activity options " - "passed to workflow.activity_as_tool, workflow.activity_as_hook, " - "or TemporalMCPClient. Remove retry_strategy from " - "TemporalAgent(...) or pass retry_strategy=None." - ) - agent_kwargs["retry_strategy"] = None - - temporal_model = TemporalModel( - model_name=model, - task_queue=task_queue, - schedule_to_close_timeout=schedule_to_close_timeout, - schedule_to_start_timeout=schedule_to_start_timeout, - start_to_close_timeout=start_to_close_timeout, - heartbeat_timeout=heartbeat_timeout, - retry_policy=retry_policy, - cancellation_type=cancellation_type, - versioning_intent=versioning_intent, - summary=summary, - priority=priority, - streaming_topic=streaming_topic, - streaming_batch_interval=streaming_batch_interval, - ) - super().__init__(model=temporal_model, **agent_kwargs) - - # Strands invokes ToolProvider.load_tools() once at construction on a - # separate run_async thread that has no workflow runtime, so a - # TemporalMCPClient cannot list its tools there. Instead refresh from a - # BeforeModelCallEvent hook, which runs on the workflow loop just before - # the registry is read each turn. cache_tools=True lists once (guarded - # by _fetched); cache_tools=False re-lists every turn. - for provider in self.tool_registry._tool_providers: - if isinstance(provider, TemporalMCPClient): - self.hooks.add_callback( - BeforeModelCallEvent, self._make_mcp_refresh_hook(provider) - ) - - def _make_mcp_refresh_hook( - self, provider: TemporalMCPClient - ) -> HookCallback[BeforeModelCallEvent]: - async def hook(event: BeforeModelCallEvent) -> None: - if provider._cache_tools and provider._fetched: - return - old_names = {tool.tool_name for tool in provider._tools} - await provider._refresh() - self._reconcile_mcp_tools(event, provider, old_names) - - return hook - - def _reconcile_mcp_tools( - self, - event: BeforeModelCallEvent, - provider: TemporalMCPClient, - old_names: set[str], - ) -> None: - reg = event.agent.tool_registry - new = {tool.tool_name: tool for tool in provider._tools} - # Tools the server dropped or renamed since the last listing. There is - # no public unregister, so remove them from the registry directly. - for name in old_names - set(new): - reg.registry.pop(name, None) - reg.dynamic_tools.pop(name, None) - # replace() swaps an existing tool in place (no hot-reload guard); - # register_tool() adds a newly-discovered one. - for name, tool in new.items(): - if name in reg.registry: - reg.replace(tool) - else: - reg.register_tool(tool) - - def take_snapshot(self, *_args: Any, **_kwargs: Any) -> Any: - """Disabled; Temporal's event history is the source of truth.""" - raise NotImplementedError(_SNAPSHOT_DISABLED) - - def load_snapshot(self, *_args: Any, **_kwargs: Any) -> Any: - """Disabled; Temporal's event history is the source of truth.""" - raise NotImplementedError(_SNAPSHOT_DISABLED) diff --git a/temporalio/contrib/strands/_temporal_mcp_client.py b/temporalio/contrib/strands/_temporal_mcp_client.py deleted file mode 100644 index bb096956e..000000000 --- a/temporalio/contrib/strands/_temporal_mcp_client.py +++ /dev/null @@ -1,368 +0,0 @@ -from __future__ import annotations - -import asyncio -from collections.abc import Callable, Sequence -from dataclasses import dataclass, field -from datetime import timedelta -from typing import Any - -from mcp import ClientSession -from mcp.types import PaginatedRequestParams, Tool -from strands.tools import ToolProvider -from strands.tools.mcp import MCPAgentTool, MCPClient -from strands.tools.mcp.mcp_types import MCPToolResult -from strands.types.tools import AgentTool - -from temporalio import activity, workflow -from temporalio.common import Priority, RetryPolicy -from temporalio.workflow import ActivityCancellationType, VersioningIntent - - -@dataclass -class _MCPToolInfo: - name: str - description: str - input_schema: dict[str, Any] - output_schema: dict[str, Any] | None = None - - -@dataclass -class _CallToolArgs: - tool_name: str - arguments: dict[str, Any] = field(default_factory=dict) - tool_use_id: str = "" - - -class TemporalMCPClient(ToolProvider): - """Workflow-side handle to an MCP server registered on the worker. - - The transport factory lives worker-side via - ``StrandsPlugin(mcp_clients={"server": lambda: ...})``. This handle carries - the server name (which selects the registered factory) and the per-call - activity options. Tool discovery runs as the ``{server}-list-tools`` - activity, dispatched from inside the workflow by ``TemporalAgent`` before - each model call. - - ``cache_tools`` controls how often that listing happens. When ``False`` - (the default) the tools are re-listed on every agent turn, so an MCP server - restarted mid-workflow (with tools added, removed, or renamed) is picked up. - When ``True`` the tools are listed once at the beginning of the workflow and - reused for its lifetime. - - Construct once at module level and pass to ``TemporalAgent(tools=[...])`` - inside the workflow. Multiple handles may reference the same server name - with different activity options. - """ - - def __init__( - self, - server: str, - *, - cache_tools: bool = False, - task_queue: str | None = None, - schedule_to_close_timeout: timedelta | None = None, - schedule_to_start_timeout: timedelta | None = None, - start_to_close_timeout: timedelta | None = None, - heartbeat_timeout: timedelta | None = None, - retry_policy: RetryPolicy | None = None, - cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, - versioning_intent: VersioningIntent | None = None, - summary: str | None = None, - priority: Priority = Priority.default, - ) -> None: - """Configure the server name and activity options.""" - self._server = server - self._cache_tools = cache_tools - self._tools: list[AgentTool] = [] - self._fetched = False - self._options: dict[str, Any] = { - "task_queue": task_queue, - "schedule_to_close_timeout": schedule_to_close_timeout, - "schedule_to_start_timeout": schedule_to_start_timeout, - "start_to_close_timeout": start_to_close_timeout, - "heartbeat_timeout": heartbeat_timeout, - "retry_policy": retry_policy, - "cancellation_type": cancellation_type, - "versioning_intent": versioning_intent, - "summary": summary, - "priority": priority, - } - - @property - def server(self) -> str: - """MCP server name used as the activity prefix.""" - return self._server - - async def load_tools(self, **_kwargs: Any) -> Sequence[AgentTool]: - """Return the tools fetched by the most recent ``_refresh``. - - This must stay free of any ``workflow`` API: Strands invokes it once at - ``Agent`` construction on a separate ``run_async`` thread that has no - workflow runtime. ``TemporalAgent`` populates the tools by calling - ``_refresh`` from a ``BeforeModelCallEvent`` hook before the registry is - first read. - """ - return list(self._tools) - - async def _refresh(self) -> None: - """List the server's tools via the ``{server}-list-tools`` activity. - - Runs on the workflow event loop (dispatched from ``TemporalAgent``'s - hook), so the activity result is recorded in history and replay-safe. - """ - from ._temporal_mcp_tool import TemporalMCPTool - - infos: list[_MCPToolInfo] = await workflow.execute_activity( - f"{self._server}-list-tools", - result_type=list[_MCPToolInfo], - **self._options, - ) - self._tools = [ - TemporalMCPTool(self._server, info, self._options) for info in infos - ] - self._fetched = True - - def add_consumer(self, consumer_id: Any, **_kwargs: Any) -> None: - """No-op; consumer tracking is handled by the underlying MCP client.""" - return None - - def remove_consumer(self, consumer_id: Any, **_kwargs: Any) -> None: - """No-op; consumer tracking is handled by the underlying MCP client.""" - return None - - -# Use the MCP session directly instead of MCPClient's background-thread -# helpers. Those helpers route calls through cross-loop futures that are -# unreliable on Python 3.10 when invoked from Temporal's async worker/activity -# event loops. -async def _paginate_list_tools(session: ClientSession) -> list[Tool]: - tools: list[Tool] = [] - pagination_token = None - while True: - page = await session.list_tools( - params=PaginatedRequestParams(cursor=pagination_token) - if pagination_token is not None - else None - ) - tools.extend(page.tools) - pagination_token = page.nextCursor - if pagination_token is None: - return tools - - -def _tool_infos(client: MCPClient, tools: Sequence[Tool]) -> list[_MCPToolInfo]: - """Apply the client's tool filters and project to serializable records.""" - infos: list[_MCPToolInfo] = [] - for tool in tools: - if client._prefix: - agent_tool = MCPAgentTool( - tool, client, name_override=f"{client._prefix}_{tool.name}" - ) - else: - agent_tool = MCPAgentTool(tool, client) - if not client._should_include_tool_with_filters( - agent_tool, client._tool_filters - ): - continue - infos.append( - _MCPToolInfo( - name=tool.name, - description=tool.description or "", - input_schema=tool.inputSchema, - output_schema=tool.outputSchema, - ) - ) - return infos - - -# Default for how long an idle MCP connection stays open before it is -# disconnected. The timer resets on every call that reuses the connection. -# Override per worker via ``StrandsPlugin(mcp_connection_idle_timeout=...)``. -_MCP_CONNECTION_IDLE = timedelta(minutes=5) - -# Server name -> live connection held open in the activity worker process. -# Activities run in the worker process , so this module state is shared across activity invocations on the worker -_CONNECTIONS: dict[str, _ConnectionRecord] = {} - - -class _ConnectionRecord: - """A single MCP session held open by a dedicated owner task. - - The MCP transport and ``ClientSession`` are anyio context managers whose - cancel scope is bound to the task that enters them, so they must be entered - and exited in the same task. ``_run`` owns that task for the connection's - whole lifetime; ``call_tool`` activities on the same event loop invoke - ``session.call_tool`` directly (MCP multiplexes concurrent requests by id). - """ - - def __init__( - self, - server: str, - client_factory: Callable[[], MCPClient], - idle_timeout: timedelta, - ) -> None: - loop = asyncio.get_running_loop() - self._server = server - self._idle_timeout = idle_timeout - self._stop = asyncio.Event() - self._ready: asyncio.Future[tuple[MCPClient, ClientSession]] = ( - loop.create_future() - ) - self._idle_handle: asyncio.TimerHandle | None = None - self._idle_task: asyncio.Task[None] | None = None - self._inflight = 0 - self._owner = asyncio.create_task(self._run(client_factory)) - - async def _run(self, client_factory: Callable[[], MCPClient]) -> None: - client = client_factory() - try: - async with client._transport_callable() as (read_stream, write_stream, *_): - async with ClientSession( - read_stream, - write_stream, - elicitation_callback=client._elicitation_callback, - ) as session: - await session.initialize() - self._ready.set_result((client, session)) - await self._stop.wait() - except BaseException as err: - # A failed connect should not be cached; drop it so the next call - # retries instead of awaiting a permanently rejected future. - if not self._ready.done(): - self._ready.set_exception(err) - _CONNECTIONS.pop(self._server, None) - raise - - def acquire(self) -> None: - """Mark a call in flight; pause idle eviction while calls are active.""" - self._inflight += 1 - if self._idle_handle is not None: - self._idle_handle.cancel() - self._idle_handle = None - - def release(self) -> None: - """Mark a call done; arm idle eviction once no calls remain in flight.""" - self._inflight -= 1 - # Only the record still cached under this server arms a timer; a record - # already evicted or never cached must not schedule one, or it could - # later evict a different, healthy connection for the same server. - if self._inflight == 0 and _CONNECTIONS.get(self._server) is self: - loop = asyncio.get_running_loop() - self._idle_handle = loop.call_later( - self._idle_timeout.total_seconds(), self._on_idle - ) - - def _on_idle(self) -> None: - self._idle_task = asyncio.ensure_future(self._maybe_evict()) - - async def _maybe_evict(self) -> None: - # A call may have acquired the connection between the timer firing and - # this task running; only evict if it is still idle. - if self._inflight == 0: - await _evict_connection(self._server) - - async def aclose(self) -> None: - """Signal the owner task to exit its context managers and wait for it.""" - if self._idle_handle is not None: - self._idle_handle.cancel() - self._idle_handle = None - self._stop.set() - try: - await self._owner - except BaseException: - pass - - async def session(self) -> tuple[MCPClient, ClientSession]: - """Return the live client and session, or raise the connect failure.""" - return await self._ready - - -async def get_connection( - server: str, client_factory: Callable[[], MCPClient], idle_timeout: timedelta -) -> tuple[MCPClient, ClientSession, _ConnectionRecord]: - """Return the cached session for ``server``, opening one lazily if needed. - - Concurrent first-callers dedupe onto a single connect handshake by awaiting - the same record. The returned record is acquired; the caller must - ``release()`` it once the call completes so idle eviction can resume. - """ - record = _CONNECTIONS.get(server) - if record is None: - record = _ConnectionRecord(server, client_factory, idle_timeout) - _CONNECTIONS[server] = record - record.acquire() - try: - client, session = await record.session() - except BaseException: - record.release() - raise - return client, session, record - - -async def _evict_connection(server: str) -> None: - record = _CONNECTIONS.pop(server, None) - if record is not None: - await record.aclose() - - -def build_call_tool_activity( - server: str, - client_factory: Callable[[], MCPClient], - idle_timeout: timedelta | None = None, -) -> Callable: - """Return the per-server ``{server}-call-tool`` activity for registration. - - Reuses a worker-process MCP session opened lazily through ``client_factory``. - Idle connections are disconnected after ``idle_timeout`` (defaults to - ``_MCP_CONNECTION_IDLE``). - """ - idle = idle_timeout if idle_timeout is not None else _MCP_CONNECTION_IDLE - - @activity.defn(name=f"{server}-call-tool") - async def call_tool(args: _CallToolArgs) -> MCPToolResult: - try: - client, session, record = await get_connection(server, client_factory, idle) - except Exception as err: - # Connecting failed; map to a tool error result like a call would. - return client_factory()._handle_tool_execution_error(args.tool_use_id, err) - try: - result = await session.call_tool(args.tool_name, args.arguments) - return client._handle_tool_result(args.tool_use_id, result) - except Exception as err: - # The session may be broken; drop it so the next call reconnects. - await _evict_connection(server) - return client._handle_tool_execution_error(args.tool_use_id, err) - finally: - # No more in-flight call on this connection; let idle eviction - # resume (no-op if the connection was just evicted above). - record.release() - - return call_tool - - -def build_list_tools_activity( - server: str, - client_factory: Callable[[], MCPClient], - idle_timeout: timedelta | None = None, -) -> Callable: - """Return the per-server ``{server}-list-tools`` activity for registration. - - Lists the server's tools (applying the client's tool filters) and reuses - the same lazily-opened, idle-evicted worker-process MCP session as - ``{server}-call-tool``. - """ - idle = idle_timeout if idle_timeout is not None else _MCP_CONNECTION_IDLE - - @activity.defn(name=f"{server}-list-tools") - async def list_tools() -> list[_MCPToolInfo]: - client, session, record = await get_connection(server, client_factory, idle) - try: - return _tool_infos(client, await _paginate_list_tools(session)) - except Exception: - # The session may be broken; drop it so the next call reconnects. - await _evict_connection(server) - raise - finally: - record.release() - - return list_tools diff --git a/temporalio/contrib/strands/_temporal_mcp_tool.py b/temporalio/contrib/strands/_temporal_mcp_tool.py deleted file mode 100644 index 885b1a7e2..000000000 --- a/temporalio/contrib/strands/_temporal_mcp_tool.py +++ /dev/null @@ -1,65 +0,0 @@ -from typing import Any - -from strands.types._events import ToolResultEvent -from strands.types.tools import AgentTool, ToolGenerator, ToolResult, ToolSpec, ToolUse - -from temporalio import workflow - -from ._temporal_mcp_client import _CallToolArgs, _MCPToolInfo - - -class TemporalMCPTool(AgentTool): - """Workflow-side stub for a single MCP tool; dispatches to an activity.""" - - def __init__( - self, - server: str, - info: _MCPToolInfo, - options: dict[str, Any], - ) -> None: - """Bind this tool to a server, its cached info, and activity options.""" - super().__init__() - self._server = server - self._info = info - self._options = options - - @property - def tool_name(self) -> str: - """Name of the underlying MCP tool.""" - return self._info.name - - @property - def tool_spec(self) -> ToolSpec: - """Strands ToolSpec built from the cached MCP tool info.""" - spec: ToolSpec = { - "name": self._info.name, - "description": self._info.description - or f"Tool which performs {self._info.name}", - "inputSchema": {"json": self._info.input_schema}, - } - if self._info.output_schema: - spec["outputSchema"] = {"json": self._info.output_schema} - return spec - - @property - def tool_type(self) -> str: - """Tool kind identifier used by Strands.""" - return "temporal_mcp" - - async def stream( - self, - tool_use: ToolUse, - invocation_state: dict[str, Any], - **kwargs: Any, - ) -> ToolGenerator: - """Execute the tool by dispatching to the per-server call-tool activity.""" - result: ToolResult = await workflow.execute_activity( - f"{self._server}-call-tool", - _CallToolArgs( - tool_name=self._info.name, - arguments=tool_use["input"], - tool_use_id=tool_use["toolUseId"], - ), - **self._options, - ) - yield ToolResultEvent(result) diff --git a/temporalio/contrib/strands/_temporal_model.py b/temporalio/contrib/strands/_temporal_model.py deleted file mode 100644 index 29e5c63a2..000000000 --- a/temporalio/contrib/strands/_temporal_model.py +++ /dev/null @@ -1,148 +0,0 @@ -import json -from collections.abc import AsyncIterable -from datetime import timedelta -from typing import Any - -from strands.models import Model -from strands.types.content import Messages, SystemContentBlock -from strands.types.streaming import StreamEvent -from strands.types.tools import ToolChoice, ToolSpec - -from temporalio import workflow -from temporalio.common import Priority, RetryPolicy -from temporalio.workflow import ActivityCancellationType, VersioningIntent - -from ._model_activity import ( - ModelActivity, - _InvokeModelInput, - _StreamingInvokeModelInput, -) - - -def _filter_serializable(state: dict[str, Any]) -> dict[str, Any]: - """Keep invocation_state entries that JSON-serialize; drop the rest with a debug log.""" - clean: dict[str, Any] = {} - dropped: list[str] = [] - for key, value in state.items(): - try: - json.dumps(value) - except (TypeError, ValueError): - dropped.append(key) - continue - clean[key] = value - if dropped: - workflow.logger.debug( - f"Dropping non-serializable invocation_state keys: {dropped}" - ) - return clean - - -class TemporalModel(Model): - """A Strands ``Model`` that runs ``stream()`` as a Temporal activity. - - ``model_name`` selects which factory the plugin will invoke worker-side; it - must match a key in ``StrandsPlugin(models={...})``. Construction of this - ``TemporalModel`` itself does no I/O, so it is safe to instantiate at - module level. - - When ``streaming_topic`` is set, each ``StreamEvent`` is also published to - the named topic on the workflow's - :class:`temporalio.contrib.workflow_streams.WorkflowStream` for external - consumers. - """ - - def __init__( - self, - model_name: str | None = None, - *, - task_queue: str | None = None, - schedule_to_close_timeout: timedelta | None = None, - schedule_to_start_timeout: timedelta | None = None, - start_to_close_timeout: timedelta | None = None, - heartbeat_timeout: timedelta | None = None, - retry_policy: RetryPolicy | None = None, - cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, - versioning_intent: VersioningIntent | None = None, - summary: str | None = None, - priority: Priority = Priority.default, - streaming_topic: str | None = None, - streaming_batch_interval: timedelta = timedelta(milliseconds=100), - ) -> None: - """Configure the model name, activity options, and streaming settings.""" - self._model_name = model_name - self._streaming_topic = streaming_topic - self._streaming_batch_interval = streaming_batch_interval - self._options: dict[str, Any] = { - "task_queue": task_queue, - "schedule_to_close_timeout": schedule_to_close_timeout, - "schedule_to_start_timeout": schedule_to_start_timeout, - "start_to_close_timeout": start_to_close_timeout, - "heartbeat_timeout": heartbeat_timeout, - "retry_policy": retry_policy, - "cancellation_type": cancellation_type, - "versioning_intent": versioning_intent, - "summary": summary, - "priority": priority, - } - - def update_config(self, **_model_config: Any) -> None: - """No-op; the real model is configured worker-side via the plugin's factories.""" - return None - - def get_config(self) -> dict[str, Any]: - """Return an empty config; configuration lives on the worker-side model.""" - return {} - - def structured_output(self, *_args: Any, **_kwargs: Any) -> Any: - """Not supported; use ``TemporalAgent(structured_output_model=...)`` instead.""" - raise NotImplementedError( - "TemporalModel.structured_output is not supported. Use " - "TemporalAgent(structured_output_model=...) which routes structured " - "output through stream() via the structured_output_tool." - ) - - async def stream( - self, - messages: Messages, - tool_specs: list[ToolSpec] | None = None, - system_prompt: str | None = None, - *, - tool_choice: ToolChoice | None = None, - system_prompt_content: list[SystemContentBlock] | None = None, - invocation_state: dict[str, Any] | None = None, - **kwargs: Any, - ) -> AsyncIterable[StreamEvent]: - """Run the model via the registered Temporal activity and yield events.""" - clean_state = _filter_serializable(invocation_state) if invocation_state else {} - if self._streaming_topic is not None: - events = await workflow.execute_activity_method( - ModelActivity.invoke_model_streaming, - _StreamingInvokeModelInput( - model_name=self._model_name, - messages=messages, - invocation_state=clean_state, - tool_specs=tool_specs, - system_prompt=system_prompt, - tool_choice=tool_choice, - system_prompt_content=system_prompt_content, - streaming_topic=self._streaming_topic, - streaming_batch_interval_seconds=self._streaming_batch_interval.total_seconds(), - ), - **self._options, - ) - else: - events = await workflow.execute_activity_method( - ModelActivity.invoke_model, - _InvokeModelInput( - model_name=self._model_name, - messages=messages, - invocation_state=clean_state, - tool_specs=tool_specs, - system_prompt=system_prompt, - tool_choice=tool_choice, - system_prompt_content=system_prompt_content, - ), - **self._options, - ) - for event in events: - yield event diff --git a/temporalio/contrib/strands/workflow.py b/temporalio/contrib/strands/workflow.py index 98dab1cbc..43f66a855 100644 --- a/temporalio/contrib/strands/workflow.py +++ b/temporalio/contrib/strands/workflow.py @@ -1,103 +1,3 @@ -"""Helpers for wiring Temporal activities into Strands' agent and hook surfaces. +"""Compatibility imports for temporalio.strands_agents.workflow.""" -Both ``activity_as_tool`` and ``activity_as_hook`` produce workflow-side objects -that dispatch user activities via :func:`temporalio.workflow.execute_activity`, -so the I/O actually happens off the workflow. -""" - -from collections.abc import Callable -from datetime import timedelta -from typing import Any, TypeVar - -from strands.hooks import BaseHookEvent, HookCallback -from strands.types.tools import AgentTool - -from temporalio import workflow -from temporalio.common import Priority, RetryPolicy -from temporalio.workflow import ActivityCancellationType, VersioningIntent - -from ._temporal_activity_tool import TemporalActivityTool - - -def activity_as_tool( - activity_fn: Callable, - *, - task_queue: str | None = None, - schedule_to_close_timeout: timedelta | None = None, - schedule_to_start_timeout: timedelta | None = None, - start_to_close_timeout: timedelta | None = None, - heartbeat_timeout: timedelta | None = None, - retry_policy: RetryPolicy | None = None, - cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, - activity_id: str | None = None, - versioning_intent: VersioningIntent | None = None, - summary: str | None = None, - priority: Priority = Priority.default, -) -> AgentTool: - """Wrap a Temporal activity as a Strands tool. - - ``activity_fn`` must be decorated by ``@activity.defn``. All keyword - arguments are forwarded to ``workflow.execute_activity``. - """ - options: dict[str, Any] = { - "task_queue": task_queue, - "schedule_to_close_timeout": schedule_to_close_timeout, - "schedule_to_start_timeout": schedule_to_start_timeout, - "start_to_close_timeout": start_to_close_timeout, - "heartbeat_timeout": heartbeat_timeout, - "retry_policy": retry_policy, - "cancellation_type": cancellation_type, - "activity_id": activity_id, - "versioning_intent": versioning_intent, - "summary": summary, - "priority": priority, - } - return TemporalActivityTool(activity_fn, options) - - -TEvent = TypeVar("TEvent", bound=BaseHookEvent) - - -def activity_as_hook( - activity_fn: Callable, - *, - activity_input: Callable[[TEvent], Any], - task_queue: str | None = None, - schedule_to_close_timeout: timedelta | None = None, - schedule_to_start_timeout: timedelta | None = None, - start_to_close_timeout: timedelta | None = None, - heartbeat_timeout: timedelta | None = None, - retry_policy: RetryPolicy | None = None, - cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, - activity_id: str | None = None, - versioning_intent: VersioningIntent | None = None, - summary: str | None = None, - priority: Priority = Priority.default, -) -> HookCallback[TEvent]: - """Wrap a Temporal activity as a Strands hook callback. - - The returned coroutine, when registered with ``HookRegistry.add_callback``, - dispatches ``activity_fn`` as a Temporal activity each time the associated - event fires. ``activity_input`` is called with the event to produce a - serializable activity input — events themselves are not serializable, since - they hold references to the ``Agent`` and other workflow-bound objects. - All other keyword arguments are forwarded to ``workflow.execute_activity``. - """ - options: dict[str, Any] = { - "task_queue": task_queue, - "schedule_to_close_timeout": schedule_to_close_timeout, - "schedule_to_start_timeout": schedule_to_start_timeout, - "start_to_close_timeout": start_to_close_timeout, - "heartbeat_timeout": heartbeat_timeout, - "retry_policy": retry_policy, - "cancellation_type": cancellation_type, - "activity_id": activity_id, - "versioning_intent": versioning_intent, - "summary": summary, - "priority": priority, - } - - async def callback(event: TEvent) -> None: - await workflow.execute_activity(activity_fn, activity_input(event), **options) - - return callback +from temporalio.strands_agents.workflow import * # noqa: F403 # pyright: ignore[reportMissingImports, reportWildcardImportFromLibrary] diff --git a/temporalio/contrib/workflow_streams/README.md b/temporalio/contrib/workflow_streams/README.md index 2fb4f9485..e8ca461e2 100644 --- a/temporalio/contrib/workflow_streams/README.md +++ b/temporalio/contrib/workflow_streams/README.md @@ -13,7 +13,8 @@ scales with durable batches rather than tokens. Under the hood the stream is built directly on Temporal's existing message-passing primitives: Signals carry publishes, Updates serve -long-poll subscriptions, and a Query exposes the current global offset. +long-poll subscriptions, and Queries expose retained items and the current +global offset. The library packages the boilerplate that turns those primitives into a usable stream: batching to amortize per-event overhead, deduplication for exactly-once delivery, topic filtering, and continue-as-new helpers @@ -31,3 +32,16 @@ snippets throughout. For runnable end-to-end examples, see the [Workflow Streams samples](https://github.com/temporalio/samples-python/tree/main/workflow-streams). + +Subscriptions to completed, failed, canceled, terminated, or timed-out runs +drain their remaining retained items through the +`__temporal_workflow_stream_poll` Query, then finish. Each Query targets the +confirmed terminal run, including when the Workflow ID is reused. Queries +return immediately, paginate within the same response size limit as Updates, +and start at the retained base when the requested offset has been truncated. + +Upgrade workers before enabling upgraded clients. Existing clients work with +upgraded workers; upgraded clients surface missing-query errors from older +workers. Closed-stream reads require retained history and an available +compatible worker. Query rejection policies and server/query errors remain +visible; truncated items and expired history cannot be recovered. diff --git a/temporalio/contrib/workflow_streams/_client.py b/temporalio/contrib/workflow_streams/_client.py index 605bf3f03..791151e6b 100644 --- a/temporalio/contrib/workflow_streams/_client.py +++ b/temporalio/contrib/workflow_streams/_client.py @@ -8,7 +8,7 @@ sync payload converter. The **codec chain** (e.g. encryption, compression) is **not** run per item — it runs once at the envelope level when Temporal's SDK encodes the ``__temporal_workflow_stream_publish`` -signal args and the ``__temporal_workflow_stream_poll`` update result. +signal args and the ``__temporal_workflow_stream_poll`` update/query result. Running the codec per item as well would double-encrypt / double-compress, because the envelope path covers the items again. The per-item ``Payload`` still carries the encoding metadata (``encoding: json/plain``, @@ -56,6 +56,36 @@ T = TypeVar("T") +# Keep these aligned with SDK Core's client retry policy: +# https://github.com/temporalio/sdk-rust/blob/c8551672bb5c7bf1fb211ef1caf10b2c11483bfc/crates/client/src/retry.rs#L16-L25 +_RETRYABLE_RPC_STATUS_CODES: frozenset[RPCStatusCode] = frozenset( + { + RPCStatusCode.ABORTED, + RPCStatusCode.CANCELLED, + RPCStatusCode.DATA_LOSS, + RPCStatusCode.INTERNAL, + RPCStatusCode.OUT_OF_RANGE, + RPCStatusCode.RESOURCE_EXHAUSTED, + RPCStatusCode.UNAVAILABLE, + RPCStatusCode.UNKNOWN, + } +) + +# Core forwards oversized-message errors without retrying: +# https://github.com/temporalio/sdk-rust/blob/c8551672bb5c7bf1fb211ef1caf10b2c11483bfc/crates/client/src/retry.rs#L292-L307 +_MESSAGE_TOO_LARGE_ERROR_PREFIXES: tuple[str, ...] = ( + "grpc: received message larger than max", + "grpc: message after decompression larger than max", + "grpc: received message after decompression larger than max", +) + + +def _is_retryable_rpc_error(error: RPCError) -> bool: + return error.status in _RETRYABLE_RPC_STATUS_CODES and not ( + error.status == RPCStatusCode.RESOURCE_EXHAUSTED + and error.message.startswith(_MESSAGE_TOO_LARGE_ERROR_PREFIXES) + ) + class WorkflowStreamClient: """Client for publishing to and subscribing from a workflow stream. @@ -131,10 +161,6 @@ def __init__( self._pending_seq: int = 0 self._pending_since: float | None = None self._topic_types: dict[str, type[Any]] = {} - # Run id the most recent poll's update was admitted to. Captured before - # waiting for the outcome so a mid-poll continue-as-new can be detected by - # describing that specific run. None until the first poll is admitted. - self._polled_run_id: str | None = None @classmethod def create( @@ -463,7 +489,11 @@ async def _run_flusher(self) -> None: except asyncio.TimeoutError: pass self._flush_event.clear() - await self._flush() + try: + await self._flush() + except RPCError as err: + if not _is_retryable_rpc_error(err): + raise @overload def subscribe( @@ -495,7 +525,13 @@ async def subscribe( """Async iterator that polls for new items. Automatically follows continue-as-new chains when the client - was created via :py:meth:`create`. + was created via :py:meth:`create`. After the workflow completes, + fails, is canceled, terminated, or times out, queries deliver its + remaining retained items before the iterator finishes. These reads + require retained history and an available worker with the poll query + handler. Query failures, including configured query rejection, propagate. + If describing the execution fails with an RPC error, the original poll + error propagates. Args: topics: Topic filter. A single topic name, a list of topic @@ -536,63 +572,75 @@ async def subscribe( else: topic_filter = topics offset = from_offset + poll_handle = self._handle + terminal_handle: WorkflowHandle[Any, Any] | None = None while True: - try: - # Wait only for ACCEPTED so the handle (and the run id it was - # admitted to) is available before we block on the outcome; if - # the run continues-as-new mid-poll, result() fails but we still - # know which run to inspect. - handle = await self._handle.start_update( + if terminal_handle is not None: + result = await terminal_handle.query( "__temporal_workflow_stream_poll", PollInput(topics=topic_filter, from_offset=offset), - wait_for_stage=WorkflowUpdateStage.ACCEPTED, result_type=PollResult, ) - self._polled_run_id = handle.workflow_run_id - result: PollResult = await handle.result() - except asyncio.CancelledError: - return - except WorkflowUpdateFailedError as e: - cause_type = getattr(e.cause, "type", None) - if cause_type == TRUNCATED_OFFSET_ERROR_TYPE: - # Subscriber fell behind truncation. Retry from - # offset 0 which the stream treats as "from the - # beginning of whatever exists" (i.e., from - # base_offset). - offset = 0 - continue - if cause_type == STREAM_DRAINING_ERROR_TYPE: - # Workflow is detaching for continue-as-new. Back off and - # retry; the poll lands on the successor run once the - # rollover completes. - cooldown_secs = poll_cooldown.total_seconds() - if cooldown_secs > 0: - await asyncio.sleep(cooldown_secs) - continue - if cause_type == "AcceptedUpdateCompletedWorkflow": - # Workflow returned (or continued-as-new) before - # this poll's update completed. Either follow the - # chain or exit cleanly. - if await self._follow_continue_as_new(): + else: + # Each attempt tracks its own accepted run, including when the + # same stream client is shared by concurrent subscriptions. + polled_run_id: str | None = None + try: + handle = await poll_handle.start_update( + "__temporal_workflow_stream_poll", + PollInput(topics=topic_filter, from_offset=offset), + wait_for_stage=WorkflowUpdateStage.ACCEPTED, + result_type=PollResult, + ) + polled_run_id = handle.workflow_run_id + result = await handle.result() + except asyncio.CancelledError: + raise + except ( + WorkflowUpdateFailedError, + WorkflowUpdateRPCTimeoutOrCancelledError, + RPCError, + ) as err: + if isinstance(err, WorkflowUpdateFailedError): + cause_type = getattr(err.cause, "type", None) + if cause_type == TRUNCATED_OFFSET_ERROR_TYPE: + offset = 0 + continue + if cause_type == STREAM_DRAINING_ERROR_TYPE: + cooldown_secs = poll_cooldown.total_seconds() + if cooldown_secs > 0: + await asyncio.sleep(cooldown_secs) + continue + if isinstance(err.__cause__, asyncio.CancelledError): + raise err.__cause__ + try: + desc = await self._describe_polled_run( + poll_handle, polled_run_id + ) + except RPCError: + raise err + if ( + desc.status == WorkflowExecutionStatus.CONTINUED_AS_NEW + and self._client is not None + ): + poll_handle = self._client.get_workflow_handle( + self._workflow_id + ) + continue + if desc.run_id and desc.status in ( + WorkflowExecutionStatus.COMPLETED, + WorkflowExecutionStatus.FAILED, + WorkflowExecutionStatus.CANCELED, + WorkflowExecutionStatus.TERMINATED, + WorkflowExecutionStatus.TIMED_OUT, + ): + # Use the handle's client so direct-handle subscriptions + # can pin terminal reads without an explicit client. + terminal_handle = poll_handle._client.get_workflow_handle( + self._workflow_id, run_id=desc.run_id + ) continue - return - raise - except WorkflowUpdateRPCTimeoutOrCancelledError: - if await self._follow_continue_as_new(): - continue - return - except RPCError as e: - # Workflow may have completed between polls; subscribe - # exits cleanly on terminal status so callers don't - # have to wrap the iterator in error handling for the - # normal end-of-stream case. - if e.status != RPCStatusCode.NOT_FOUND: raise - if await self._follow_continue_as_new(): - continue - if await self._workflow_in_terminal_state(): - return - raise converter = self._payload_converter() for wire_item in result.items: payload = _decode_payload(wire_item.data) @@ -607,61 +655,23 @@ async def subscribe( offset=wire_item.offset, ) offset = result.next_offset - cooldown_secs = poll_cooldown.total_seconds() - if not result.more_ready and cooldown_secs > 0: - await asyncio.sleep(cooldown_secs) - - async def _describe_polled_run(self) -> WorkflowExecutionDescription: - """Describe the specific run the most recent poll was admitted to. - - Describing that run (rather than the latest) is what lets a - continue-as-new be detected: a rolled-over run is closed with status - CONTINUED_AS_NEW, whereas the latest run would report RUNNING. Falls - back to the latest run when no run id has been captured yet, or when no - client is available to target a specific run. - """ - if self._client is not None: - return await self._client.get_workflow_handle( - self._workflow_id, run_id=self._polled_run_id + if terminal_handle is not None: + if not result.more_ready: + return + elif not result.more_ready: + cooldown_secs = poll_cooldown.total_seconds() + if cooldown_secs > 0: + await asyncio.sleep(cooldown_secs) + + async def _describe_polled_run( + self, handle: WorkflowHandle[Any, Any], polled_run_id: str | None + ) -> WorkflowExecutionDescription: + """Describe the accepted run, or the targeted execution before acceptance.""" + if polled_run_id is not None: + return await handle._client.get_workflow_handle( + self._workflow_id, run_id=polled_run_id ).describe() - return await self._handle.describe() - - async def _follow_continue_as_new(self) -> bool: - """Check if the polled run continued-as-new and re-target the handle. - - Returns True if the handle was updated (caller should retry). The - successor run id is not needed — re-targeting to an unpinned handle - makes the next poll address the latest (successor) run. - """ - if self._client is None: - return False - try: - desc = await self._describe_polled_run() - except Exception: - return False - if desc.status == WorkflowExecutionStatus.CONTINUED_AS_NEW: - self._handle = self._client.get_workflow_handle(self._workflow_id) - return True - return False - - async def _workflow_in_terminal_state(self) -> bool: - """Return True if the polled run has reached a terminal state. - - Used by ``subscribe()`` to distinguish "workflow finished — - stream is done" from "wrong workflow id" when a poll RPC - returns NOT_FOUND. - """ - try: - desc = await self._describe_polled_run() - except Exception: - return False - return desc.status in ( - WorkflowExecutionStatus.COMPLETED, - WorkflowExecutionStatus.FAILED, - WorkflowExecutionStatus.CANCELED, - WorkflowExecutionStatus.TERMINATED, - WorkflowExecutionStatus.TIMED_OUT, - ) + return await handle.describe() async def get_offset(self) -> int: """Query the current global offset (base_offset + log length).""" diff --git a/temporalio/contrib/workflow_streams/_stream.py b/temporalio/contrib/workflow_streams/_stream.py index ae8608c3b..b018f86a4 100644 --- a/temporalio/contrib/workflow_streams/_stream.py +++ b/temporalio/contrib/workflow_streams/_stream.py @@ -51,7 +51,8 @@ ) _PUBLISH_SIGNAL = "__temporal_workflow_stream_publish" -_POLL_UPDATE = "__temporal_workflow_stream_poll" +# Updates and queries share a name because they implement the same poll protocol. +_POLL = "__temporal_workflow_stream_poll" _OFFSET_QUERY = "__temporal_workflow_stream_offset" _MAX_POLL_RESPONSE_BYTES = 1_000_000 @@ -84,6 +85,7 @@ class WorkflowStream: - ``__temporal_workflow_stream_publish`` signal — external publish with dedup - ``__temporal_workflow_stream_poll`` update — long-poll subscription + - ``__temporal_workflow_stream_poll`` query — immediate retained-item read - ``__temporal_workflow_stream_offset`` query — current log length Note: @@ -155,9 +157,8 @@ def __init__(self, prior_state: WorkflowStreamState | None = None) -> None: self._topic_types: dict[str, type[Any]] = {} workflow.set_signal_handler(_PUBLISH_SIGNAL, self._on_publish) - workflow.set_update_handler( - _POLL_UPDATE, self._on_poll, validator=self._validate_poll - ) + workflow.set_update_handler(_POLL, self._on_poll, validator=self._validate_poll) + workflow.set_query_handler(_POLL, self._collect_batch) workflow.set_query_handler(_OFFSET_QUERY, self._on_offset) def _publish_to_topic(self, topic: str, value: Any) -> None: @@ -337,9 +338,9 @@ async def continue_as_new( def truncate(self, up_to_offset: int) -> None: """Discard log entries before ``up_to_offset``. - After truncation, polls requesting an offset before the new - base will receive an ApplicationError. All global offsets - remain monotonic. + After truncation, poll updates requesting a nonzero offset before + the new base receive an ApplicationError. Poll queries read from + the retained base instead. All global offsets remain monotonic. Raises ApplicationError (not ValueError) when ``up_to_offset`` is past the end of the log so that callers invoking this from @@ -407,21 +408,18 @@ async def _on_poll(self, payload: PollInput) -> PollResult: or self._detaching ), ) - log_offset = payload.from_offset - self._base_offset - if log_offset < 0: - if payload.from_offset == 0: - # "From the beginning" — start at whatever is available. - log_offset = 0 - else: - # Subscriber had a specific position that's been - # truncated. ApplicationError fails this update (client - # gets the error) without crashing the workflow task — - # avoids a poison pill during replay. - raise ApplicationError( - f"Requested offset {payload.from_offset} has been truncated. " - f"Current base offset is {self._base_offset}.", - type=TRUNCATED_OFFSET_ERROR_TYPE, - ) + if payload.from_offset != 0 and payload.from_offset < self._base_offset: + # ApplicationError fails this update without failing the workflow task. + raise ApplicationError( + f"Requested offset {payload.from_offset} has been truncated. " + f"Current base offset is {self._base_offset}.", + type=TRUNCATED_OFFSET_ERROR_TYPE, + ) + return self._collect_batch(payload) + + def _collect_batch(self, payload: PollInput) -> PollResult: + """Read retained items immediately without changing stream state.""" + log_offset = max(0, payload.from_offset - self._base_offset) all_new = self._log[log_offset:] if payload.topics: topic_set = set(payload.topics) diff --git a/temporalio/contrib/workflow_streams/_types.py b/temporalio/contrib/workflow_streams/_types.py index a58cf75ae..9bfcbe467 100644 --- a/temporalio/contrib/workflow_streams/_types.py +++ b/temporalio/contrib/workflow_streams/_types.py @@ -5,7 +5,7 @@ ``Payload`` by the payload converter at publish time, and the resulting bytes/metadata are preserved per item so subscribers can decode with ``subscribe(result_type=T)``. The codec chain (e.g. encryption, compression) -applies once at the outer signal/update envelope level — not separately to each +applies once at the outer signal/update/query envelope level — not separately to each embedded item — so codec behavior is symmetric between workflow-side and client-side publishing. @@ -106,7 +106,10 @@ class PublishInput: @dataclass class PollInput: - """Update payload: request to poll for new items. + """Update/query payload: request to poll for new items. + + Updates wait for items and reject truncated nonzero offsets. Queries + return immediately and clamp offsets to the retained base. .. warning:: This class is experimental and may change in future versions. @@ -127,7 +130,7 @@ class _WorkflowStreamWireItem: @dataclass class PollResult: - """Update response: items matching the poll request. + """Update/query response: items matching the poll request. .. warning:: This class is experimental and may change in future versions. diff --git a/temporalio/converter/__init__.py b/temporalio/converter/__init__.py index 68857049b..324b477f2 100644 --- a/temporalio/converter/__init__.py +++ b/temporalio/converter/__init__.py @@ -10,6 +10,7 @@ StorageDriverActivityInfo, StorageDriverClaim, StorageDriverRetrieveContext, + StorageDriverSelectContext, StorageDriverStoreContext, StorageDriverWorkflowInfo, StorageWarning, @@ -49,6 +50,7 @@ ) from temporalio.converter._serialization_context import ( ActivitySerializationContext, + NexusSerializationContext, SerializationContext, WithSerializationContext, WorkflowSerializationContext, @@ -61,6 +63,7 @@ "StorageDriverActivityInfo", "StorageDriverClaim", "StorageDriverRetrieveContext", + "StorageDriverSelectContext", "StorageDriverStoreContext", "StorageDriverWorkflowInfo", "StorageWarning", @@ -80,6 +83,7 @@ "JSONProtoPayloadConverter", "JSONTypeConverter", "JSONTypeConverterUnhandled", + "NexusSerializationContext", "PayloadCodec", "PayloadConverter", "SerializationContext", diff --git a/temporalio/converter/_data_converter.py b/temporalio/converter/_data_converter.py index 8604ea196..4985c5b7d 100644 --- a/temporalio/converter/_data_converter.py +++ b/temporalio/converter/_data_converter.py @@ -13,8 +13,10 @@ import temporalio.api.common.v1 import temporalio.api.failure.v1 import temporalio.common +import temporalio.converter._extstore from temporalio.converter._extstore import ( _REFERENCE_ENCODING, + _REFERENCE_MARKER_KEY, _REFERENCE_MESSAGE_TYPE, ExternalStorage, StorageDriverStoreContext, @@ -44,6 +46,11 @@ def _is_reference_payload(p: temporalio.api.common.v1.Payload) -> bool: ) +def _has_reference_marker(p: temporalio.api.common.v1.Payload) -> bool: + """Return True if *p* carries the external-storage reference marker.""" + return p.metadata.get(_REFERENCE_MARKER_KEY) == b"true" + + # Import defaults from public API to avoid pydoctor cross-reference issues if TYPE_CHECKING: from temporalio.converter import DefaultFailureConverter, DefaultPayloadConverter @@ -73,7 +80,9 @@ class DataConverter(WithSerializationContext): """Class to instantiate for failure conversion.""" payload_converter: PayloadConverter = dataclasses.field(init=False) - """Payload converter created from the :py:attr:`payload_converter_class`.""" + """Payload converter created from :py:attr:`payload_converter_class` and wrapped + with SDK transfer type conversion, including when called directly. + """ failure_converter: FailureConverter = dataclasses.field(init=False) """Failure converter created from the :py:attr:`failure_converter_class`.""" @@ -116,6 +125,7 @@ async def encode( payloads = self.payload_converter.to_payloads(values) payloads = await self._encode_payload_sequence(payloads) payloads = await self._external_store_payload_sequence(payloads) + payloads = await self._encode_reference_payload_sequence(payloads) return payloads async def decode( @@ -133,6 +143,7 @@ async def decode( Returns: Decoded and converted values. """ + payloads = await self._decode_reference_payload_sequence(payloads) payloads = await self._external_retrieve_payload_sequence(payloads) payloads = await self._decode_payload_sequence(payloads) return self.payload_converter.from_payloads(payloads, type_hints) @@ -208,10 +219,18 @@ def _with_store_context( """Return an instance with ``store_ctx`` bound into :attr:`external_storage`.""" if self.external_storage is None: return self - return dataclasses.replace( - self, - external_storage=self.external_storage._with_store_context(store_ctx), + # dataclasses.replace reruns __post_init__, which builds new payload and + # failure converters and drops the context set by with_context. Keep the + # current ones, like with_context does. + cloned = dataclasses.replace(self) + object.__setattr__(cloned, "payload_converter", self.payload_converter) + object.__setattr__(cloned, "failure_converter", self.failure_converter) + object.__setattr__( + cloned, + "external_storage", + self.external_storage._with_store_context(store_ctx), ) + return cloned def _with_contexts( self, @@ -267,7 +286,7 @@ async def _transform_outbound_payload( payload = (await self.payload_codec.encode([payload]))[0] if self.external_storage: payload = await self.external_storage._store_payload(payload) - return payload + return (await self._encode_reference_payload_sequence([payload]))[0] async def _transform_outbound_payloads( self, payloads: temporalio.api.common.v1.Payloads @@ -276,10 +295,16 @@ async def _transform_outbound_payloads( await self.payload_codec.encode_wrapper(payloads) if self.external_storage: await self.external_storage._store_payloads(payloads) + encoded_payloads = await self._encode_reference_payload_sequence( + payloads.payloads + ) + for i, payload in enumerate(encoded_payloads): + payloads.payloads[i].CopyFrom(payload) async def _transform_inbound_payload( self, payload: temporalio.api.common.v1.Payload ) -> temporalio.api.common.v1.Payload: + payload = (await self._decode_reference_payload_sequence([payload]))[0] if self.external_storage: payload = await self.external_storage._retrieve_payload(payload) if self.payload_codec: @@ -289,6 +314,11 @@ async def _transform_inbound_payload( async def _transform_inbound_payloads( self, payloads: temporalio.api.common.v1.Payloads ): + decoded_payloads = await self._decode_reference_payload_sequence( + payloads.payloads + ) + for i, payload in enumerate(decoded_payloads): + payloads.payloads[i].CopyFrom(payload) if self.external_storage: await self.external_storage._retrieve_payloads(payloads) else: @@ -319,6 +349,55 @@ async def _external_store_payload_sequence( ) return stored_payloads + async def _encode_reference_payload_sequence( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + """Codec encode external storage reference payloads only.""" + encoded_payloads = list(payloads) + if ( + not temporalio.converter._extstore._ENCODE_STORAGE_REFERENCES + or not self.payload_codec + ): + return encoded_payloads + for i, payload in enumerate(encoded_payloads): + if not _is_reference_payload(payload): + continue + [encoded_reference] = await self.payload_codec.encode([payload]) + if not encoded_reference.external_payloads: + encoded_reference.external_payloads.extend(payload.external_payloads) + encoded_reference.metadata[_REFERENCE_MARKER_KEY] = b"true" + encoded_payloads[i] = encoded_reference + return encoded_payloads + + async def _decode_reference_payload_sequence( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + """Codec decode marked external storage reference payloads only.""" + decoded_payloads = list(payloads) + for i, payload in enumerate(decoded_payloads): + if not _has_reference_marker(payload): + continue + if not self.external_storage: + raise RuntimeError( + "[TMPRL1105] Detected externally stored payload(s) but external storage is not configured." + ) + reference = payload + if self.payload_codec: + encoded_reference = temporalio.api.common.v1.Payload() + encoded_reference.CopyFrom(payload) + del encoded_reference.metadata[_REFERENCE_MARKER_KEY] + del encoded_reference.external_payloads[:] + [reference] = await self.payload_codec.decode([encoded_reference]) + if not _is_reference_payload(reference): + raise RuntimeError( + "[TMPRL1106] Encountered an encoded external storage reference that could not be decoded. " + "Check that the payload codec used to write it is configured." + ) + if not reference.external_payloads: + reference.external_payloads.extend(payload.external_payloads) + decoded_payloads[i] = reference + return decoded_payloads + async def _external_retrieve_payload_sequence( self, payloads: Sequence[temporalio.api.common.v1.Payload] ) -> list[temporalio.api.common.v1.Payload]: @@ -344,10 +423,11 @@ async def _decode_payload_sequence( decoded_payloads = await self.payload_codec.decode(decoded_payloads) return decoded_payloads - # Temporary shortcircuit detection while the _decode_* methods may no-op if - # a payload codec is not configured. Remove once those paths have more to them. + # Without a codec or external storage, the payload sequence methods only reject + # external storage references, so workers skip the passes that cannot change a + # payload and the per-command context lookups. @property - def _decode_payload_has_effect(self) -> bool: + def _has_codec_or_external_storage(self) -> bool: return self.payload_codec is not None or self.external_storage is not None diff --git a/temporalio/converter/_extstore.py b/temporalio/converter/_extstore.py index a946b2c0f..19a5d7a72 100644 --- a/temporalio/converter/_extstore.py +++ b/temporalio/converter/_extstore.py @@ -28,6 +28,15 @@ _REFERENCE_ENCODING = b"json/external-storage-reference" _REFERENCE_MESSAGE_TYPE = ExternalStorageReference.DESCRIPTOR.full_name.encode() +# Indicates this payload represents an externally stored payload. If encoded, the +# _REFERENCE_ENCODING could be any value. The presence of the _REFERENCE_MARKER_KEY +# with a value of b"true" is used to reliably identify such payloads. +_REFERENCE_MARKER_KEY = "__temporal_external_storage_reference" +# Writing marked, codec-encoded references is off until a release that can read +# them has been out long enough for workers to upgrade: workers on earlier +# versions cannot read encoded references. Reading is always on. Set to True in a +# later release to start writing them. +_ENCODE_STORAGE_REFERENCES = False @dataclass @@ -40,21 +49,35 @@ class StorageOperationMetrics: total_size: int = 0 """Total size in bytes of externally stored/retrieved payloads.""" - total_duration: timedelta = dataclasses.field(default_factory=timedelta) - """Wall-clock time spent on external storage operations.""" - driver_names: set[str] = dataclasses.field(default_factory=set) """Names of the drivers that participated in the operations.""" + _spans: list[tuple[float, float]] = dataclasses.field(default_factory=list) + """Monotonic-clock start and end of each recorded batch.""" + + @property + def total_duration(self) -> timedelta: + """Wall-clock time spent on external storage operations.""" + # Batches may run concurrently, so summing each batch's duration would + # double-count operations that overlapped. + return timedelta(seconds=_union_seconds(self._spans)) + def record_batch( - self, count: int, size: int, duration: timedelta, driver_names: set[str] + self, count: int, size: int, start: float, end: float, driver_names: set[str] ) -> None: """Record metrics from a batch of storage operations.""" self.payload_count += count self.total_size += size - self.total_duration += duration + self._spans.append((start, end)) self.driver_names.update(driver_names) + def merge(self, other: StorageOperationMetrics) -> None: + """Add the metrics from another set of storage operations.""" + self.payload_count += other.payload_count + self.total_size += other.total_size + self._spans.extend(other._spans) + self.driver_names.update(other.driver_names) + @contextlib.contextmanager def track(self) -> Generator[Self, None, None]: """Set this instance as the current metrics context and reset on exit.""" @@ -70,6 +93,22 @@ def track(self) -> Generator[Self, None, None]: ) +def _union_seconds(spans: list[tuple[float, float]]) -> float: + """Total length of the union of the given monotonic-clock spans, in seconds.""" + ordered = sorted(spans) + if not ordered: + return 0.0 + total = 0.0 + span_start, span_end = ordered[0] + for start, end in ordered[1:]: + if start > span_end: + total += span_end - span_start + span_start, span_end = start, end + elif end > span_end: + span_end = end + return total + (span_end - span_start) + + async def _gather_cancel_on_error( coros: Sequence[Coroutine[Any, Any, _T]], ) -> list[_T]: @@ -143,7 +182,33 @@ class StorageDriverActivityInfo: @dataclass(frozen=True) class StorageDriverStoreContext: - """Context passed to :meth:`StorageDriver.store` and ``driver_selector`` calls. + """Context passed to :meth:`StorageDriver.store` calls. + + .. warning:: + This API is experimental. + """ + + target: StorageDriverActivityInfo | StorageDriverWorkflowInfo | None = None + """The workflow or activity for which this payload is being stored. + + For payloads being stored on behalf of an explicit target (e.g. a child + workflow being started, an activity being scheduled, an external workflow + being signaled), this is that target's identity. When no explicit target + exists the current execution context (workflow or activity) is used as the + target instead.""" + + namespace: str | None = None + """The namespace of the client or worker performing the operation. + + It is set even when :attr:`target` is ``None``, and is ``None`` only when + external storage is used outside a client or worker. A driver choosing a + storage layout should prefer the target's namespace when a target is + present.""" + + +@dataclass(frozen=True) +class StorageDriverSelectContext: + """Context passed to :attr:`ExternalStorage.driver_selector` calls. .. warning:: This API is experimental. @@ -158,6 +223,14 @@ class StorageDriverStoreContext: exists the current execution context (workflow or activity) is used as the target instead.""" + namespace: str | None = None + """The namespace of the client or worker performing the operation. + + It is set even when :attr:`target` is ``None``, and is ``None`` only when + external storage is used outside a client or worker. A driver choosing a + storage layout should prefer the target's namespace when a target is + present.""" + @dataclass(frozen=True) class StorageDriverRetrieveContext: @@ -257,7 +330,7 @@ class ExternalStorage: """ driver_selector: ( - Callable[[StorageDriverStoreContext, Payload], StorageDriver | None] | None + Callable[[StorageDriverSelectContext, Payload], StorageDriver | None] | None ) = None """Controls which driver stores a given payload. A callable that returns the driver instance to use, or ``None`` to leave the payload stored inline. @@ -288,6 +361,14 @@ class ExternalStorage: ) """Store context bound to this instance via :meth:`_with_store_context`.""" + _select_context: StorageDriverSelectContext = dataclasses.field( + default=StorageDriverSelectContext(target=None), + init=False, + repr=False, + compare=False, + ) + """Selector context derived from :attr:`_store_context`.""" + _claim_converter: ClassVar[JSONProtoPayloadConverter] = JSONProtoPayloadConverter() _legacy_claim_converter: ClassVar[JSONPlainPayloadConverter] = ( JSONPlainPayloadConverter(encoding=_REFERENCE_ENCODING.decode()) @@ -325,7 +406,7 @@ def __post_init__(self) -> None: object.__setattr__(self, "_driver_map", driver_map) def _select_driver( - self, context: StorageDriverStoreContext, payload: Payload + self, context: StorageDriverSelectContext, payload: Payload ) -> StorageDriver | None: """Returns the driver to use for this payload, or None to pass through.""" if payload.ByteSize() < self.payload_size_threshold: @@ -354,12 +435,17 @@ def _with_store_context(self, ctx: StorageDriverStoreContext) -> ExternalStorage """Return a copy of this instance with ``ctx`` bound as the store context.""" result = dataclasses.replace(self) object.__setattr__(result, "_store_context", ctx) + object.__setattr__( + result, + "_select_context", + StorageDriverSelectContext(target=ctx.target, namespace=ctx.namespace), + ) return result async def _store_payload(self, payload: Payload) -> Payload: start_time = time.monotonic() - driver = self._select_driver(self._store_context, payload) + driver = self._select_driver(self._select_context, payload) if driver is None: return payload @@ -378,6 +464,8 @@ async def _store_payload(self, payload: Payload) -> Payload: f"Failed to serialize storage reference for driver '{driver.name()}'" ) reference_payload.external_payloads.add().size_bytes = external_size + if _ENCODE_STORAGE_REFERENCES: + reference_payload.metadata[_REFERENCE_MARKER_KEY] = b"true" ExternalStorage._record_metrics(1, external_size, start_time, {driver.name()}) @@ -401,7 +489,7 @@ async def _store_payload_sequence( to_store: list[tuple[int, Payload, StorageDriver]] = [] for index, payload in enumerate(payloads): - driver = self._select_driver(self._store_context, payload) + driver = self._select_driver(self._select_context, payload) if driver is None: continue to_store.append((index, payload, driver)) @@ -442,6 +530,8 @@ async def _store_payload_sequence( f"Failed to serialize storage reference for driver '{driver.name()}'" ) reference_payload.external_payloads.add().size_bytes = sizes[i] + if _ENCODE_STORAGE_REFERENCES: + reference_payload.metadata[_REFERENCE_MARKER_KEY] = b"true" results[indices[i]] = reference_payload external_size += sizes[i] @@ -595,6 +685,7 @@ def _record_metrics( metrics.record_batch( count, size, - timedelta(seconds=time.monotonic() - start_time), + start_time, + time.monotonic(), driver_names, ) diff --git a/temporalio/converter/_failure_converter.py b/temporalio/converter/_failure_converter.py index 848dbc038..f73aa5b7e 100644 --- a/temporalio/converter/_failure_converter.py +++ b/temporalio/converter/_failure_converter.py @@ -336,7 +336,9 @@ def from_failure( *payload_converter.from_payloads_wrapper(app_info.details), type=app_info.type or None, non_retryable=app_info.non_retryable, - next_retry_delay=app_info.next_retry_delay.ToTimedelta(), + next_retry_delay=app_info.next_retry_delay.ToTimedelta() + if app_info.HasField("next_retry_delay") + else None, category=temporalio.exceptions.ApplicationErrorCategory( int(app_info.category) ), diff --git a/temporalio/converter/_payload_converter.py b/temporalio/converter/_payload_converter.py index a8bc35e28..b1df6f5ce 100644 --- a/temporalio/converter/_payload_converter.py +++ b/temporalio/converter/_payload_converter.py @@ -8,14 +8,13 @@ import functools import inspect import json -import sys import typing import uuid import warnings from abc import ABC, abstractmethod from collections.abc import Callable, Mapping, Sequence from datetime import datetime -from enum import IntEnum +from enum import Enum from itertools import zip_longest from types import UnionType from typing import ( @@ -38,14 +37,6 @@ import temporalio.api.common.v1 import temporalio.common import temporalio.types - -if sys.version_info < (3, 11): - # Python's datetime.fromisoformat doesn't support certain formats pre-3.11 - from dateutil import parser # type: ignore -# StrEnum is available in 3.11+ -if sys.version_info >= (3, 11): - from enum import StrEnum # type: ignore[reportUnreachable] - from temporalio.converter._serialization_context import ( SerializationContext, WithSerializationContext, @@ -804,16 +795,12 @@ def from_payload( def _get_iso_datetime_parser() -> Callable[[str], datetime]: - """Isolates system version check and returns relevant datetime passer + """Return the ISO datetime parser. Returns: A callable to parse date strings into datetimes. """ - if sys.version_info >= (3, 11): - return datetime.fromisoformat # type:ignore[reportUnreachable] # noqa - else: - # Isolate import for py > 3.11, as dependency only installed for < 3.11 - return parser.isoparse # type:ignore[reportUnreachable] + return datetime.fromisoformat def value_to_type( @@ -954,6 +941,13 @@ def value_to_type( if isinstance(key, str): if key_type is int or key_type is float: key = key_type(key) + elif ( + inspect.isclass(key_type) + and issubclass(key_type, Enum) + and issubclass(key_type, int) + ): + # JSON serializes int enum keys as their number + key = int(key) elif key_type is bool: key = {"true": True, "false": False}[key] elif key_type is type(None): @@ -992,24 +986,37 @@ def value_to_type( fields = dataclasses.fields(hint) field_hints = get_type_hints(hint) field_values = {} + non_init_field_values = {} for field in fields: field_value = value.get(field.name, dataclasses.MISSING) # We do not check whether field is required here. Rather, we let the # attempted instantiation of the dataclass raise if a field is # missing if field_value is not dataclasses.MISSING: + # Convert init=False fields too, so a mismatched type still + # rejects this dataclass when trying union members try: - field_values[field.name] = value_to_type( + converted = value_to_type( field_hints[field.name], field_value, custom_converters ) except Exception as err: raise TypeError( f"Failed converting field {field.name} on dataclass {hint}" ) from err + if field.init: + field_values[field.name] = converted + else: + non_init_field_values[field.name] = converted # Simply instantiate the dataclass. This will fail as expected when # missing required fields. # TODO(cretz): Want way to convert snake case to camel case? - return hint(**field_values) + obj = hint(**field_values) + # init=False fields cannot be passed to __init__ but are serialized, so + # restore them afterwards. object.__setattr__ also works on frozen + # dataclasses. + for name, field_value in non_init_field_values.items(): + object.__setattr__(obj, name, field_value) + return obj # Pydantic model instance # Pydantic users should use Pydantic v2 with @@ -1027,22 +1034,21 @@ def value_to_type( ) return getattr(hint, "parse_obj")(value) - # IntEnum - if inspect.isclass(hint) and issubclass(hint, IntEnum): + # IntEnum, or any enum that mixes in int + if inspect.isclass(hint) and issubclass(hint, Enum) and issubclass(hint, int): if not isinstance(value, int): raise TypeError( f"Cannot convert to enum {hint}, value not an integer, value is {type(value)}" ) return hint(value) - # StrEnum, available in 3.11+ - if sys.version_info >= (3, 11): - if inspect.isclass(hint) and issubclass(hint, StrEnum): # type:ignore[reportUnreachable] - if not isinstance(value, str): - raise TypeError( - f"Cannot convert to enum {hint}, value not a string, value is {type(value)}" - ) - return hint(value) + # StrEnum, or any enum that mixes in str + if inspect.isclass(hint) and issubclass(hint, Enum) and issubclass(hint, str): + if not isinstance(value, str): + raise TypeError( + f"Cannot convert to enum {hint}, value not a string, value is {type(value)}" + ) + return hint(value) # UUID if inspect.isclass(hint) and issubclass(hint, uuid.UUID): @@ -1079,11 +1085,13 @@ def value_to_type( ret_list.append(value_to_type(arg_type, item, custom_converters)) except Exception as err: raise TypeError(f"Failed converting {hint} index {i}") from err - # If tuple, set, or deque convert back to that type + # If tuple, set, frozenset, or deque convert back to that type if origin is tuple: return tuple(ret_list) elif origin is set: return set(ret_list) + elif origin is frozenset: + return frozenset(ret_list) elif origin is collections.deque: return collections.deque(ret_list) return ret_list diff --git a/temporalio/converter/_search_attributes.py b/temporalio/converter/_search_attributes.py index 4ec154d6f..08cb18709 100644 --- a/temporalio/converter/_search_attributes.py +++ b/temporalio/converter/_search_attributes.py @@ -4,6 +4,7 @@ from collections.abc import Sequence from datetime import datetime +from typing import Any import temporalio.api.common.v1 import temporalio.common @@ -61,6 +62,8 @@ def encode_typed_search_attribute_value( ) # datetime needs to be in isoformat if isinstance(value, datetime): + if value.tzinfo is None: + raise ValueError("Timezone must be present on all search attribute dates") value = value.isoformat() # We'll do an extra sanity check for keyword list and check every value if isinstance(value, Sequence): @@ -180,7 +183,7 @@ def decode_typed_search_attributes( ) if not key: continue - val = conv.from_payload(v) + val: Any = conv.from_payload(v) # If the value is a list but the type is not keyword list, pull out # single item or consider this an invalid value and ignore if ( @@ -198,6 +201,13 @@ def decode_typed_search_attributes( parser = _get_iso_datetime_parser() # We will let this throw val = parser(val) + elif ( + key.indexed_value_type + == temporalio.common.SearchAttributeIndexedValueType.DOUBLE + and type(val) is int + ): + # Visibility returns a whole-number Double as a JSON integer + val = float(val) # If the value isn't the right type, we need to ignore if isinstance(val, key.origin_value_type): pairs.append(temporalio.common.SearchAttributePair(key, val)) diff --git a/temporalio/converter/_serialization_context.py b/temporalio/converter/_serialization_context.py index 73a4a7104..7de64be04 100644 --- a/temporalio/converter/_serialization_context.py +++ b/temporalio/converter/_serialization_context.py @@ -5,6 +5,7 @@ from abc import ABC from dataclasses import dataclass +import google.protobuf.message from typing_extensions import Self @@ -28,6 +29,10 @@ class SerializationContext(ABC): context type is :py:class:`ActivitySerializationContext` and the workflow ID is that of the currently-executing workflow. ActivitySerializationContext is also set on data converter operations in the activity context. + + When operating on a Nexus operation payload, the context type is + :py:class:`NexusSerializationContext` and identifies the Nexus endpoint, service, and + resolved operation name. """ pass @@ -94,6 +99,59 @@ class ActivitySerializationContext(SerializationContext): """Whether the activity is a local activity started from a workflow.""" +@dataclass(frozen=True) +class NexusSerializationContext(SerializationContext): + """Serialization context for Nexus operation payloads. + + Callers receive this context when encoding inputs and decoding results or failures. Handlers + receive it when decoding inputs, encoding synchronous results, and encoding failures produced + while handling a Nexus task. + + Workflows and standalone activities started by a handler, and workflow updates it sends, + receive this context through the server and use it for payloads returned to the caller: + results, failures, and standalone activity heartbeat details. Clients decode these with the + context the server returns. See + :py:attr:`temporalio.activity.Info.nexus_serialization_context` for asynchronous completion. + + A standalone operation handle decodes with the context the server returns, falling back to the + context used to start the operation on older servers. + + A failure encoded by a handler is later decoded by a caller. Because some operation paths may + lack this context, contextual encodings must be self-describing and decoders must continue to + accept payloads encoded without context. + + .. warning:: + This API is experimental and unstable. + """ + + endpoint: str + """Nexus endpoint name.""" + + service: str + """Nexus service name.""" + + operation: str + """Nexus operation name.""" + + +def _propagated_nexus_serialization_context( # pyright: ignore[reportUnusedFunction] + message: google.protobuf.message.Message, +) -> NexusSerializationContext | None: + """Return the Nexus serialization context the server propagated on a message, if any. + + The server sets ``propagated_nexus_serialization_context`` on executions started by a Nexus + operation handler. + """ + if not message.HasField("propagated_nexus_serialization_context"): + return None + context = getattr(message, "propagated_nexus_serialization_context") + return NexusSerializationContext( + endpoint=context.endpoint, + service=context.service, + operation=context.operation, + ) + + class WithSerializationContext(ABC): """Interface for classes that can use serialization context. diff --git a/temporalio/envconfig.py b/temporalio/envconfig.py index ad413b9a9..2b1e8d85a 100644 --- a/temporalio/envconfig.py +++ b/temporalio/envconfig.py @@ -6,13 +6,16 @@ from __future__ import annotations -from collections.abc import Mapping +import os +from abc import ABC, abstractmethod +from collections.abc import Mapping, Sequence from dataclasses import dataclass, field from pathlib import Path from typing import Any, Literal, TypeAlias, cast from typing_extensions import Self, TypedDict +import temporalio.client import temporalio.service from temporalio.bridge.temporal_sdk_bridge import envconfig as _bridge_envconfig @@ -40,6 +43,7 @@ class ClientConfigProfileDict(TypedDict, total=False): api_key: str tls: ClientConfigTLSDict grpc_meta: Mapping[str, str] + ext: Mapping[str, Mapping[str, Any]] def _from_dict_to_source(d: Mapping[str, Any] | None) -> DataSource | None: @@ -147,8 +151,12 @@ def to_connect_tls_config(self) -> bool | temporalio.service.TLSConfig: @classmethod def from_dict(cls, d: ClientConfigTLSDict | None) -> Self | None: - """Create a ClientConfigTLS from a dictionary.""" - if not d: + """Create a ClientConfigTLS from a dictionary. + + ``None`` means there is no TLS table. An empty dictionary is a TLS table + with nothing set, so it gives a default ``ClientConfigTLS``. + """ + if d is None: return None return cls( disabled=d.get("disabled"), @@ -171,6 +179,7 @@ class ClientConnectConfig(TypedDict, total=False): api_key: str tls: bool | temporalio.service.TLSConfig rpc_metadata: Mapping[str, str] + plugins: Sequence[temporalio.client.Plugin] @dataclass(frozen=True) @@ -192,6 +201,16 @@ class ClientConfigProfile: """TLS configuration.""" grpc_meta: Mapping[str, str] = field(default_factory=dict) """gRPC metadata.""" + ext: Mapping[str, Mapping[str, Any]] = field(default_factory=dict) + """Raw extension config from ``profile..ext``, keyed by extension + name. Each extension decodes its own table, which should be treated as + read-only. Values are converted as by :py:mod:`tomllib`, so TOML datetimes + are :py:class:`datetime.datetime`, :py:class:`datetime.date`, or + :py:class:`datetime.time` objects. Not modified by environment variables. + + .. warning:: + This API is experimental and unstable. + """ @classmethod def from_dict(cls, d: ClientConfigProfileDict) -> Self: @@ -202,6 +221,7 @@ def from_dict(cls, d: ClientConfigProfileDict) -> Self: api_key=d.get("api_key"), tls=ClientConfigTLS.from_dict(d.get("tls")), grpc_meta=d.get("grpc_meta") or {}, + ext=d.get("ext") or {}, ) def to_dict(self) -> ClientConfigProfileDict: @@ -213,10 +233,12 @@ def to_dict(self) -> ClientConfigProfileDict: d["namespace"] = self.namespace if self.api_key is not None: d["api_key"] = self.api_key - if self.tls and (tls_dict := self.tls.to_dict()): - d["tls"] = tls_dict + if self.tls is not None: + d["tls"] = self.tls.to_dict() if self.grpc_meta: d["grpc_meta"] = self.grpc_meta + if self.ext: + d["ext"] = self.ext return d def to_client_connect_config(self) -> ClientConnectConfig: @@ -290,6 +312,61 @@ def load( return ClientConfigProfile.from_dict(raw_profile) +@dataclass(frozen=True) +class ClientConfigExtensionRequest: + """Input to :py:meth:`ClientConfigExtension.client_plugin`. + + .. warning:: + This API is experimental and unstable. + """ + + profile: ClientConfigProfile + """The loaded profile, with environment variable overrides applied.""" + env: Mapping[str, str] | None + """Env to read extension env vars from, or None if env loading is disabled.""" + + +class ClientConfigExtension(ABC): + """Extension that adds config to client environment configuration. + + An extension owns the TOML table under ``profile..ext.``, + where ```` is :py:meth:`name`, and turns its config into a client + plugin. Extensions are recommended to use a ``TEMPORAL_EXT__`` prefix + for any environment variables they read. Pass extensions to + :py:meth:`ClientConfig.load_client_connect_config`. + + .. warning:: + This API is experimental and unstable. + """ + + @abstractmethod + def name(self) -> str: + """The extension's table key under ``profile..ext``. Must be + unique among loaded extensions. + """ + + @abstractmethod + def client_plugin( + self, req: ClientConfigExtensionRequest + ) -> temporalio.client.Plugin | None: + """Read this extension's config from the profile and env, and return a + plugin that applies it, or None if there's nothing to apply. + """ + + +def _validate_extensions(extensions: Sequence[ClientConfigExtension]) -> None: + names: set[str] = set() + for i, extension in enumerate(extensions): + if extension is None: # type: ignore[reportUnnecessaryComparison] + raise ValueError(f"client config extension at index {i} is None") + name = extension.name() + if not name: + raise ValueError(f"client config extension at index {i} has empty name") + if name in names: + raise ValueError(f'duplicate client config extension name "{name}"') + names.add(name) + + @dataclass class ClientConfig: """Client configuration loaded from TOML and environment variables. @@ -367,12 +444,14 @@ def load_client_connect_config( disable_env: bool = False, config_file_strict: bool = False, override_env_vars: Mapping[str, str] | None = None, + extensions: Sequence[ClientConfigExtension] = [], ) -> ClientConnectConfig: """Load a single client profile and convert to connect config. This is a convenience function that combines loading a profile and - converting it to a connect config dictionary. This will use the current - process's environment for overrides unless disabled. + converting it to a connect config dictionary, plus any extensions. This + will use the current process's environment for overrides unless + disabled. Args: profile: The profile to load from the config. Defaults to "default". @@ -389,11 +468,22 @@ def load_client_connect_config( environment is used. To use a specific set of environment variables, provide them here. To disable environment variable loading, set ``disable_env`` to true. + extensions: Extensions to apply, in order. Each extension is given + the loaded profile and env, and any plugin it returns is + appended to the ``plugins`` of the returned config. Extension + names must be unique. To also pass other plugins to + :py:meth:`temporalio.client.Client.connect`, combine them with + these rather than passing ``plugins`` separately. + + .. warning:: + This parameter is experimental and unstable. Returns: TypedDict of keyword arguments for :py:meth:`temporalio.client.Client.connect`. """ + _validate_extensions(extensions) + config_source: DataSource | None = None if config_file and not disable_file: config_source = Path(config_file) @@ -406,4 +496,25 @@ def load_client_connect_config( config_file_strict=config_file_strict, override_env_vars=override_env_vars, ) - return prof.to_client_connect_config() + config = prof.to_client_connect_config() + + if extensions: + req = ClientConfigExtensionRequest( + profile=prof, + env=None + if disable_env + else (os.environ if override_env_vars is None else override_env_vars), + ) + plugins: list[temporalio.client.Plugin] = [] + for extension in extensions: + try: + plugin = extension.client_plugin(req) + except Exception as err: + raise RuntimeError( + f'client config extension "{extension.name()}": {err}' + ) from err + if plugin is not None: + plugins.append(plugin) + if plugins: + config["plugins"] = plugins + return config diff --git a/temporalio/exceptions.py b/temporalio/exceptions.py index 43a2e1bad..03a623c21 100644 --- a/temporalio/exceptions.py +++ b/temporalio/exceptions.py @@ -58,16 +58,34 @@ class WorkflowAlreadyStartedError(FailureError): workflow_type: Workflow type name of the already-started workflow. run_id: Run ID of the already-started workflow if this was raised by the client. + first_run_id: First execution run ID of the already-started workflow if + this was raised by the client and provided by the server. """ def __init__( - self, workflow_id: str, workflow_type: str, *, run_id: str | None = None + self, + workflow_id: str, + workflow_type: str, + *, + run_id: str | None = None, + first_run_id: str | None = None, ) -> None: """Initialize a workflow already started error.""" super().__init__("Workflow execution already started") self.workflow_id = workflow_id self.workflow_type = workflow_type self.run_id = run_id + self.first_run_id = first_run_id + + +class InvalidVersioningOverrideError(FailureError): + """Thrown by a workflow when a child cannot start because its versioning + override is invalid. + """ + + def __init__(self) -> None: + """Initialize an invalid versioning override error.""" + super().__init__("Invalid versioning override") class ActivityAlreadyStartedError(FailureError): diff --git a/temporalio/nexus/__init__.py b/temporalio/nexus/__init__.py index 3abc9b0f2..bb7fea18a 100644 --- a/temporalio/nexus/__init__.py +++ b/temporalio/nexus/__init__.py @@ -8,6 +8,10 @@ temporal_operation, workflow_run_operation, ) +from ._notification import ( + CompletionCallback, + create_completion_callback, +) from ._operation_context import ( Info, LoggerAdapter, @@ -38,6 +42,7 @@ "CancelActivityOptions", "CancelWorkflowRunOptions", "CancelUpdateWorkflowOptions", + "CompletionCallback", "Info", "LoggerAdapter", "NexusCallback", @@ -45,6 +50,7 @@ "TemporalCancelOperationContext", "TemporalStartOperationContext", "client", + "create_completion_callback", "in_operation", "info", "is_worker_shutdown", diff --git a/temporalio/nexus/_link_conversion.py b/temporalio/nexus/_link_conversion.py index e3ef3988b..672847ea1 100644 --- a/temporalio/nexus/_link_conversion.py +++ b/temporalio/nexus/_link_conversion.py @@ -3,7 +3,9 @@ import logging import re import urllib.parse +from dataclasses import dataclass from enum import Enum +from functools import cached_property from typing import ( TYPE_CHECKING, Any, @@ -19,17 +21,7 @@ logger = logging.getLogger(__name__) -_NEXUS_OPERATION_LINK_URL_PATH_REGEX = re.compile( - r"^/namespaces/(?P[^/]+)/nexus-operations/(?P[^/]+)/(?P[^/]*)/details$" -) - -_ACTIVITY_LINK_URL_PATH_REGEX = re.compile( - r"^/namespaces/(?P[^/]+)/activities/(?P[^/]+)/(?P[^/]+)/details$" -) - -_WORKFLOW_LINK_URL_PATH_REGEX = re.compile( - r"^/namespaces/(?P[^/]+)/workflows/(?P[^/]+)/(?P[^/]+)(?P/history)?$" -) +_URL_SCHEME = "temporal" class _LinkType(str, Enum): @@ -37,6 +29,57 @@ class _LinkType(str, Enum): WORKFLOW = temporalio.api.common.v1.Link.Workflow.DESCRIPTOR.full_name NEXUS_OPERATION = temporalio.api.common.v1.Link.NexusOperation.DESCRIPTOR.full_name ACTIVITY = temporalio.api.common.v1.Link.Activity.DESCRIPTOR.full_name + CALLBACK = temporalio.api.common.v1.Link.Callback.DESCRIPTOR.full_name + + +@dataclass(frozen=True) +class _LinkPath: + """The URL path shape for one link type. + + Every link path is /namespaces/{namespace}/{keyword}/{id}/{run_id} with an optional trailing + segment, so a link type is fully described by which keyword names it and what follows the + run ID. + """ + + keyword: str + tail: str | None + # A standalone Nexus operation need not have a run ID, so its path may carry an empty segment + # there. The other link types always address a specific run. + run_id_required: bool = True + + @cached_property + def regex(self) -> re.Pattern[str]: + """The pattern matching a URL path of this shape.""" + run_id = "[^/]+" if self.run_id_required else "[^/]*" + tail = f"/{self.tail}" if self.tail else "" + return re.compile( + rf"^/namespaces/(?P[^/]+)/{self.keyword}" + rf"/(?P[^/]+)/(?P{run_id}){tail}$" + ) + + +_LINK_PATHS: dict[_LinkType, _LinkPath] = { + _LinkType.WORKFLOW_EVENT: _LinkPath("workflows", "history"), + _LinkType.WORKFLOW: _LinkPath("workflows", None), + _LinkType.NEXUS_OPERATION: _LinkPath( + "nexus-operations", "details", run_id_required=False + ), + _LinkType.ACTIVITY: _LinkPath("activities", "details"), +} + +_EXECUTION_TYPE_SEGMENTS: dict[temporalio.api.enums.v1.ExecutionType.ValueType, str] = { + temporalio.api.enums.v1.ExecutionType.EXECUTION_TYPE_WORKFLOW: "workflows", + temporalio.api.enums.v1.ExecutionType.EXECUTION_TYPE_ACTIVITY: "activities", + temporalio.api.enums.v1.ExecutionType.EXECUTION_TYPE_NEXUS_OPERATION: "nexus-operations", +} +_SEGMENT_EXECUTION_TYPES = {v: k for k, v in _EXECUTION_TYPE_SEGMENTS.items()} + +# A callback is addressed by its execution's type as well as its IDs, so its path does not fit +# _LinkPath. +_CALLBACK_PATH_REGEX = re.compile( + r"^/namespaces/(?P[^/]+)/(?P[^/]+)" + r"/(?P[^/]+)/(?P[^/]+)/callbacks/(?P[^/]+)$" +) LINK_EVENT_ID_PARAM_NAME = "eventID" @@ -44,6 +87,7 @@ class _LinkType(str, Enum): LINK_REQUEST_ID_PARAM_NAME = "requestID" LINK_REFERENCE_TYPE_PARAM_NAME = "referenceType" LINK_REASON_PARAM_NAME = "reason" +LINK_COMPONENT_PATH_PARAM_NAME = "componentPath" EVENT_REFERENCE_TYPE = "EventReference" REQUEST_ID_REFERENCE_TYPE = "RequestIdReference" @@ -96,13 +140,16 @@ def nexus_link_to_temporal_link( case _LinkType.ACTIVITY: return nexus_link_to_activity_link(nexus_link) + case _LinkType.CALLBACK: + return nexus_link_to_callback_link(nexus_link) + def temporal_link_to_nexus_link( temporal_link: temporalio.api.common.v1.Link, ) -> nexusrpc.Link | None: """Convert a Temporal API Link into a nexusrpc link. - Returns None when the Temporal link variant is missing. + Returns None when the Temporal link variant is missing or cannot be represented. """ match temporal_link.WhichOneof("variant"): case "workflow_event": @@ -120,6 +167,9 @@ def temporal_link_to_nexus_link( case "batch_job": raise NotImplementedError("batch_job links are not supported") + case "callback": + return callback_link_to_nexus_link(temporal_link.callback) + case None: logger.warning("Invalid Temporal link: missing variant") return None @@ -145,11 +195,11 @@ def workflow_event_to_nexus_link( pass return nexusrpc.Link( - url=_workflow_nexus_url( + url=_build_link_url( + _LinkType.WORKFLOW_EVENT, workflow_event.namespace, workflow_event.workflow_id, workflow_event.run_id, - history=True, query_params=query_params, ), type=_LinkType.WORKFLOW_EVENT.value, @@ -169,11 +219,11 @@ def workflow_to_nexus_link( ) return nexusrpc.Link( - url=_workflow_nexus_url( + url=_build_link_url( + _LinkType.WORKFLOW, workflow.namespace, workflow.workflow_id, workflow.run_id, - history=False, query_params=query_params, ), type=_LinkType.WORKFLOW.value, @@ -188,13 +238,13 @@ def nexus_operation_to_nexus_link( Used when propagating links from a StartNexusOperation response to a Nexus start operation response. """ - namespace = urllib.parse.quote(op_link.namespace, safe="") - operation_id = urllib.parse.quote(op_link.operation_id, safe="") - run_id = urllib.parse.quote(op_link.run_id, safe="") - path = f"/namespaces/{namespace}/nexus-operations/{operation_id}/{run_id}/details" - return nexusrpc.Link( - url=_temporal_nexus_url(path), + url=_build_link_url( + _LinkType.NEXUS_OPERATION, + op_link.namespace, + op_link.operation_id, + op_link.run_id, + ), type=_LinkType.NEXUS_OPERATION.value, ) @@ -203,28 +253,68 @@ def activity_link_to_nexus_link( activity: temporalio.api.common.v1.Link.Activity, ) -> nexusrpc.Link: """Convert an Activity link into a nexusrpc link.""" - namespace = urllib.parse.quote(activity.namespace, safe="") - activity_id = urllib.parse.quote(activity.activity_id, safe="") - run_id = urllib.parse.quote(activity.run_id, safe="") - path = f"/namespaces/{namespace}/activities/{activity_id}/{run_id}/details" - return nexusrpc.Link(url=_temporal_nexus_url(path), type=_LinkType.ACTIVITY.value) + return nexusrpc.Link( + url=_build_link_url( + _LinkType.ACTIVITY, + activity.namespace, + activity.activity_id, + activity.run_id, + ), + type=_LinkType.ACTIVITY.value, + ) + + +def callback_link_to_nexus_link( + callback: temporalio.api.common.v1.Link.Callback, +) -> nexusrpc.Link | None: + """Convert a Callback link into a nexusrpc link. + + Returns None when the callback's execution type is unsupported. + """ + execution_type = _EXECUTION_TYPE_SEGMENTS.get(callback.execution.type) + if execution_type is None: + logger.warning( + f"Invalid Temporal callback link: unsupported execution type {callback.execution.type}" + ) + return None + segments = [ + callback.namespace, + execution_type, + callback.execution.business_id, + callback.execution.run_id, + "callbacks", + callback.request_id, + ] + path = "/namespaces/" + "/".join(urllib.parse.quote(s, safe="") for s in segments) + query_params = urllib.parse.urlencode( + [(LINK_COMPONENT_PATH_PARAM_NAME, p) for p in callback.component_path] + ) + return nexusrpc.Link( + url=_temporal_nexus_url(path, query_params=query_params), + type=_LinkType.CALLBACK.value, + ) -def _workflow_nexus_url( +def _build_link_url( + link_type: _LinkType, namespace: str, - workflow_id: str, + id_value: str, run_id: str, *, - history: bool, query_params: str | None = "", ) -> str: - namespace = urllib.parse.quote(namespace, safe="") - workflow_id = urllib.parse.quote(workflow_id, safe="") - run_id = urllib.parse.quote(run_id, safe="") - path = f"/namespaces/{namespace}/workflows/{workflow_id}/{run_id}" - if history: - path += "/history" - return _temporal_nexus_url(path, query_params=query_params) + """Build the URL for a link of the given type.""" + path = _LINK_PATHS[link_type] + segments = [ + "namespaces", + urllib.parse.quote(namespace, safe=""), + path.keyword, + urllib.parse.quote(id_value, safe=""), + urllib.parse.quote(run_id, safe=""), + ] + if path.tail: + segments.append(path.tail) + return _temporal_nexus_url("/" + "/".join(segments), query_params=query_params) def _temporal_nexus_url(path: str, *, query_params: str | None = "") -> str: @@ -232,25 +322,47 @@ def _temporal_nexus_url(path: str, *, query_params: str | None = "") -> str: return f"temporal://{urllib.parse.urlunparse(('', '', path, '', query_params or '', ''))}" -def _parse_workflow_nexus_url( - link: nexusrpc.Link, *, history: bool -) -> tuple[dict[str, str], dict[str, list[str]]] | None: +@dataclass(frozen=True) +class _ParsedLinkUrl: + namespace: str + id: str + run_id: str + query_params: dict[str, list[str]] + + +def _parse_temporal_url(link: nexusrpc.Link) -> urllib.parse.ParseResult | None: + """Return the parsed link URL, or None if it does not carry the temporal scheme.""" url = urllib.parse.urlparse(link.url) - match = _WORKFLOW_LINK_URL_PATH_REGEX.match(url.path) - if not match or bool(match.group("history")) != history: - expected_suffix = "/history" if history else "" + if url.scheme != _URL_SCHEME: logger.warning( - f"Invalid Nexus link: {link}. Expected path to match " - f"/namespaces/{{namespace}}/workflows/{{workflow_id}}/{{run_id}}{expected_suffix}" + f"Invalid Nexus link: {link}. Expected scheme {_URL_SCHEME!r}, got {url.scheme!r}" ) return None + return url - groups = { - name: urllib.parse.unquote(value) - for name, value in match.groupdict().items() - if name != "history" and value is not None - } - return groups, urllib.parse.parse_qs(url.query) + +def _parse_link_url(link: nexusrpc.Link, link_type: _LinkType) -> _ParsedLinkUrl | None: + """Return the parts of a link URL, or None if the URL is not a link of this type. + + The path is matched exactly, so the workflow and workflow-event shapes -- which differ only by + the trailing /history -- cannot be mistaken for one another. + """ + url = _parse_temporal_url(link) + if url is None: + return None + regex = _LINK_PATHS[link_type].regex + match = regex.match(url.path) + if not match: + logger.warning( + f"Invalid Nexus link: {link}. Expected path to match {regex.pattern}" + ) + return None + return _ParsedLinkUrl( + namespace=urllib.parse.unquote(match.group("namespace")), + id=urllib.parse.unquote(match.group("id")), + run_id=urllib.parse.unquote(match.group("run_id")), + query_params=urllib.parse.parse_qs(url.query), + ) def _optional_single_query_param( @@ -273,10 +385,10 @@ def nexus_link_to_workflow_event_link( This is used when propagating links from a Nexus start operation request to a StartWorklow request. """ - parsed = _parse_workflow_nexus_url(link, history=True) + parsed = _parse_link_url(link, _LinkType.WORKFLOW_EVENT) if parsed is None: return None - groups, query_params = parsed + query_params = parsed.query_params try: request_id_ref = None event_ref = None @@ -297,9 +409,9 @@ def nexus_link_to_workflow_event_link( return None workflow_event_link = temporalio.api.common.v1.Link.WorkflowEvent( - namespace=groups["namespace"], - workflow_id=groups["workflow_id"], - run_id=groups["run_id"], + namespace=parsed.namespace, + workflow_id=parsed.id, + run_id=parsed.run_id, event_ref=event_ref, request_id_ref=request_id_ref, ) @@ -310,20 +422,21 @@ def nexus_link_to_workflow_link( link: nexusrpc.Link, ) -> temporalio.api.common.v1.Link | None: """Convert a nexus link into a Temporal Workflow link.""" - parsed = _parse_workflow_nexus_url(link, history=False) + parsed = _parse_link_url(link, _LinkType.WORKFLOW) if parsed is None: return None - groups, query_params = parsed try: - reason = _optional_single_query_param(query_params, LINK_REASON_PARAM_NAME) + reason = _optional_single_query_param( + parsed.query_params, LINK_REASON_PARAM_NAME + ) except ValueError as err: logger.warning(f"Invalid Nexus link: {link}. {err}") return None workflow_link = temporalio.api.common.v1.Link.Workflow( - namespace=groups["namespace"], - workflow_id=groups["workflow_id"], - run_id=groups["run_id"], + namespace=parsed.namespace, + workflow_id=parsed.id, + run_id=parsed.run_id, reason=reason, ) return temporalio.api.common.v1.Link(workflow=workflow_link) @@ -337,60 +450,121 @@ def nexus_link_to_nexus_operation_link( This is used when propagating links from a Nexus start operation request to a StartNexusOperation request. """ - url = urllib.parse.urlparse(nexus_link.url) - match = _NEXUS_OPERATION_LINK_URL_PATH_REGEX.match(url.path) - if not match: - logger.warning( - f"Invalid Nexus link: {nexus_link}. Expected path to match {_NEXUS_OPERATION_LINK_URL_PATH_REGEX.pattern}" - ) + parsed = _parse_link_url(nexus_link, _LinkType.NEXUS_OPERATION) + if parsed is None: return None - - groups = match.groupdict() - nexus_op_link = temporalio.api.common.v1.Link.NexusOperation( - namespace=urllib.parse.unquote(groups["namespace"]), - operation_id=urllib.parse.unquote(groups["operation_id"]), - run_id=urllib.parse.unquote(groups["run_id"]), + return temporalio.api.common.v1.Link( + nexus_operation=temporalio.api.common.v1.Link.NexusOperation( + namespace=parsed.namespace, + operation_id=parsed.id, + run_id=parsed.run_id, + ) ) - return temporalio.api.common.v1.Link(nexus_operation=nexus_op_link) def nexus_link_to_activity_link( nexus_link: nexusrpc.Link, ) -> temporalio.api.common.v1.Link | None: """Convert a Nexus Activity link into a Temporal Activity link.""" - match = _ACTIVITY_LINK_URL_PATH_REGEX.match( - urllib.parse.urlparse(nexus_link.url).path + parsed = _parse_link_url(nexus_link, _LinkType.ACTIVITY) + if parsed is None: + return None + return temporalio.api.common.v1.Link( + activity=temporalio.api.common.v1.Link.Activity( + namespace=parsed.namespace, + activity_id=parsed.id, + run_id=parsed.run_id, + ) ) + + +def nexus_link_to_callback_link( + nexus_link: nexusrpc.Link, +) -> temporalio.api.common.v1.Link | None: + """Convert a Nexus Callback link into a Temporal Callback link.""" + url = _parse_temporal_url(nexus_link) + if url is None: + return None + match = _CALLBACK_PATH_REGEX.match(url.path) if not match: logger.warning( - f"Invalid Nexus link: {nexus_link}. Expected path to match {_ACTIVITY_LINK_URL_PATH_REGEX.pattern}" + f"Invalid Nexus link: {nexus_link}. Expected path to match {_CALLBACK_PATH_REGEX.pattern}" ) return None - groups = match.groupdict() + namespace, execution_type, business_id, run_id, request_id = ( + urllib.parse.unquote(g) for g in match.groups() + ) + execution_type_value = _SEGMENT_EXECUTION_TYPES.get(execution_type) + if execution_type_value is None: + logger.warning( + f"Invalid Nexus link: {nexus_link}. Unsupported execution type {execution_type!r}" + ) + return None + # parse_qs drops empty values by default, which would remove an empty component path segment + # and shift the ones after it. + query_params = urllib.parse.parse_qs(url.query, keep_blank_values=True) return temporalio.api.common.v1.Link( - activity=temporalio.api.common.v1.Link.Activity( - namespace=urllib.parse.unquote(groups["namespace"]), - activity_id=urllib.parse.unquote(groups["activity_id"]), - run_id=urllib.parse.unquote(groups["run_id"]), + callback=temporalio.api.common.v1.Link.Callback( + namespace=namespace, + execution=temporalio.api.common.v1.Execution( + type=execution_type_value, + business_id=business_id, + run_id=run_id, + ), + component_path=query_params.get(LINK_COMPONENT_PATH_PARAM_NAME, []), + request_id=request_id, ) ) -def _event_reference_to_query_params( - event_ref: temporalio.api.common.v1.Link.WorkflowEvent.EventReference, +def _event_type_to_param( + event_type: temporalio.api.enums.v1.EventType.ValueType, ) -> str: - event_type_name = temporalio.api.enums.v1.EventType.Name(event_ref.event_type) + """Render an event type as the short PascalCase name used on the wire.""" + event_type_name = temporalio.api.enums.v1.EventType.Name(event_type) if event_type_name.startswith("EVENT_TYPE_"): event_type_name = _event_type_constant_case_to_pascal_case( event_type_name.removeprefix("EVENT_TYPE_") ) - return urllib.parse.urlencode( - { - LINK_EVENT_ID_PARAM_NAME: event_ref.event_id, - LINK_EVENT_TYPE_PARAM_NAME: event_type_name, - LINK_REFERENCE_TYPE_PARAM_NAME: EVENT_REFERENCE_TYPE, - } - ) + return event_type_name + + +def _query_params_to_event_type( + query_params: dict[str, list[str]], +) -> temporalio.api.enums.v1.EventType.ValueType: + """Return the event type named in the query params, or raise ValueError. + + Both the prefixed proto name and the short PascalCase name are accepted, since either may + arrive on the wire. + """ + match query_params.get(LINK_EVENT_TYPE_PARAM_NAME): + case None: + raise ValueError(f"query params do not contain event type: {query_params}") + + case [raw_event_type_name] if raw_event_type_name.startswith("EVENT_TYPE_"): + event_type_name = raw_event_type_name + + case [raw_event_type_name] if re.match("[A-Z][a-z]", raw_event_type_name): + event_type_name = "EVENT_TYPE_" + _event_type_pascal_case_to_constant_case( + raw_event_type_name + ) + + case raw_event_type_name: + raise ValueError(f"Invalid event type name: {raw_event_type_name}") + return temporalio.api.enums.v1.EventType.Value(event_type_name) + + +def _event_reference_to_query_params( + event_ref: temporalio.api.common.v1.Link.WorkflowEvent.EventReference, +) -> str: + params: dict[str, object] = {} + # An unset event ID is 0, which is not a valid event ID, so omit the param rather than + # send a zero. + if event_ref.event_id: + params[LINK_EVENT_ID_PARAM_NAME] = event_ref.event_id + params[LINK_EVENT_TYPE_PARAM_NAME] = _event_type_to_param(event_ref.event_type) + params[LINK_REFERENCE_TYPE_PARAM_NAME] = EVENT_REFERENCE_TYPE + return urllib.parse.urlencode(params) def _request_id_reference_to_query_params( @@ -403,12 +577,7 @@ def _request_id_reference_to_query_params( if request_id_ref.request_id: params[LINK_REQUEST_ID_PARAM_NAME] = request_id_ref.request_id - event_type_name = temporalio.api.enums.v1.EventType.Name(request_id_ref.event_type) - if event_type_name.startswith("EVENT_TYPE_"): - event_type_name = _event_type_constant_case_to_pascal_case( - event_type_name.removeprefix("EVENT_TYPE_") - ) - params[LINK_EVENT_TYPE_PARAM_NAME] = event_type_name + params[LINK_EVENT_TYPE_PARAM_NAME] = _event_type_to_param(request_id_ref.event_type) return urllib.parse.urlencode(params) @@ -423,21 +592,7 @@ def _query_params_to_event_reference( f"Expected Nexus link URL query parameter referenceType to be EventReference but got: {reference_type}" ) - # event type - match query_params.get(LINK_EVENT_TYPE_PARAM_NAME): - case None: - raise ValueError(f"query params do not contain event type: {query_params}") - - case [raw_event_type_name] if raw_event_type_name.startswith("EVENT_TYPE_"): - event_type_name = raw_event_type_name - - case [raw_event_type_name] if re.match("[A-Z][a-z]", raw_event_type_name): - event_type_name = "EVENT_TYPE_" + _event_type_pascal_case_to_constant_case( - raw_event_type_name - ) - - case raw_event_type_name: - raise ValueError(f"Invalid event type name: {raw_event_type_name}") + event_type = _query_params_to_event_type(query_params) # event id event_id = 0 @@ -449,7 +604,7 @@ def _query_params_to_event_reference( raise ValueError(f"Query params contain invalid event id: {raw_event_id}") return temporalio.api.common.v1.Link.WorkflowEvent.EventReference( - event_type=temporalio.api.enums.v1.EventType.Value(event_type_name), + event_type=event_type, event_id=event_id, ) @@ -458,27 +613,12 @@ def _query_params_to_request_id_reference( query_params: dict[str, list[str]], ) -> temporalio.api.common.v1.Link.WorkflowEvent.RequestIdReference: """Return an EventReference from the query params or raise ValueError.""" - # event type - match query_params.get(LINK_EVENT_TYPE_PARAM_NAME): - case None: - raise ValueError(f"query params do not contain event type: {query_params}") - - case [raw_event_type_name] if raw_event_type_name.startswith("EVENT_TYPE_"): - event_type_name = raw_event_type_name - - case [raw_event_type_name] if re.match("[A-Z][a-z]", raw_event_type_name): - event_type_name = "EVENT_TYPE_" + _event_type_pascal_case_to_constant_case( - raw_event_type_name - ) - - case raw_event_type_name: - raise ValueError(f"Invalid event type name: {raw_event_type_name}") - + event_type = _query_params_to_event_type(query_params) [request_id] = query_params.get(LINK_REQUEST_ID_PARAM_NAME, [""]) return temporalio.api.common.v1.Link.WorkflowEvent.RequestIdReference( request_id=request_id, - event_type=temporalio.api.enums.v1.EventType.Value(event_type_name), + event_type=event_type, ) diff --git a/temporalio/nexus/_notification.py b/temporalio/nexus/_notification.py new file mode 100644 index 000000000..31d954d8d --- /dev/null +++ b/temporalio/nexus/_notification.py @@ -0,0 +1,364 @@ +from __future__ import annotations + +import typing +from abc import ABC, abstractmethod +from collections.abc import Awaitable, Callable +from dataclasses import dataclass +from typing import Any, Generic, TypeVar, overload + +import nexusrpc + +import temporalio.api.common.v1 +import temporalio.common +import temporalio.converter + +from . import notifications +from ._operation_context import ( + TemporalStartOperationContext, + WorkflowRunOperationContext, +) +from ._temporal_client import TemporalNexusClient, TemporalOperationResult +from ._token import WorkflowHandle +from ._util import get_operation_factory + +OutputT = TypeVar("OutputT", contravariant=True) +HandlerOutputT = TypeVar("HandlerOutputT") +HandlerSourceContextT = TypeVar("HandlerSourceContextT") + + +class CompletionCallback(ABC, Generic[OutputT]): + """Callback that reports the outcome of a Nexus operation. + + The type parameter is the output type that the callback accepts. Create + callbacks with :py:func:`create_completion_callback`. Do not subclass this class. + + .. warning:: + This API is experimental and unstable. + """ + + @abstractmethod + async def _to_proto( + self, data_converter: temporalio.converter.DataConverter + ) -> temporalio.api.common.v1.Callback: + """Convert to proto representation.""" + ... + + +@dataclass(frozen=True, kw_only=True) +class _OnCompleteCallback(CompletionCallback[OutputT]): + """Callback that calls an on-complete operation.""" + + service: str + """Service name.""" + + operation: str + """Operation name.""" + + task_queue: str + """Task queue of the worker that runs the operation.""" + + source_context: Any + """Value that the operation receives with the outcome. + + The client encodes it with the serialization context of the source operation. + """ + + async def _to_proto( + self, data_converter: temporalio.converter.DataConverter + ) -> temporalio.api.common.v1.Callback: + """Convert to proto representation.""" + [payload] = await data_converter.encode([self.source_context]) + return temporalio.api.common.v1.Callback( + nexus_handler=temporalio.api.common.v1.Callback.NexusHandler( + service=self.service, + operation=self.operation, + task_queue_name=self.task_queue, + source_context=payload, + ) + ) + + +def _describe(obj: Any) -> str: + if isinstance(obj, nexusrpc.Operation): + return f"operation {obj.name!r}" + name = getattr(obj, "__qualname__", None) + return name if isinstance(name, str) else repr(obj) + + +def _check_on_complete_operation( + service: nexusrpc.ServiceDefinition, + operation: nexusrpc.OperationDefinition[Any, Any], +) -> None: + input_type = operation.input_type + if ( + not ( + input_type is notifications.OnCompleteRequest + or typing.get_origin(input_type) is notifications.OnCompleteRequest + ) + or operation.output_type is not notifications.OnCompleteResponse + ): + raise ValueError( + f"Operation {operation.name!r} of service {service.name!r} is not an " + "on-complete operation: expected input OnCompleteRequest and output " + f"OnCompleteResponse, got input {operation.input_type!r} and output " + f"{operation.output_type!r}" + ) + + +# Service and operation names. Without a handler signature the output type is +# unknown, so the callback accepts the output of any operation. +@overload +def create_completion_callback( + *, + service: str, + operation: str, + task_queue: str, + source_context: Any, +) -> CompletionCallback[Any]: ... + + +# Service definition operations. A handler that receives RawValue can accept the +# output of any operation. +@overload +def create_completion_callback( + *, + operation: nexusrpc.Operation[ + notifications.OnCompleteRequest[ + temporalio.common.RawValue, HandlerSourceContextT + ], + notifications.OnCompleteResponse, + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[Any]: ... + + +@overload +def create_completion_callback( + *, + operation: nexusrpc.Operation[ + notifications.OnCompleteRequest[HandlerOutputT, HandlerSourceContextT], + notifications.OnCompleteResponse, + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[HandlerOutputT]: ... + + +# @sync_operation handler methods defined with async def +@overload +def create_completion_callback( + *, + operation: Callable[ + [ + Any, + nexusrpc.handler.StartOperationContext, + notifications.OnCompleteRequest[ + temporalio.common.RawValue, HandlerSourceContextT + ], + ], + Awaitable[notifications.OnCompleteResponse], + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[Any]: ... + + +@overload +def create_completion_callback( + *, + operation: Callable[ + [ + Any, + nexusrpc.handler.StartOperationContext, + notifications.OnCompleteRequest[HandlerOutputT, HandlerSourceContextT], + ], + Awaitable[notifications.OnCompleteResponse], + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[HandlerOutputT]: ... + + +# @sync_operation handler methods defined with def +@overload +def create_completion_callback( + *, + operation: Callable[ + [ + Any, + nexusrpc.handler.StartOperationContext, + notifications.OnCompleteRequest[ + temporalio.common.RawValue, HandlerSourceContextT + ], + ], + notifications.OnCompleteResponse, + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[Any]: ... + + +@overload +def create_completion_callback( + *, + operation: Callable[ + [ + Any, + nexusrpc.handler.StartOperationContext, + notifications.OnCompleteRequest[HandlerOutputT, HandlerSourceContextT], + ], + notifications.OnCompleteResponse, + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[HandlerOutputT]: ... + + +# @workflow_run_operation handler methods +@overload +def create_completion_callback( + *, + operation: Callable[ + [ + Any, + WorkflowRunOperationContext, + notifications.OnCompleteRequest[ + temporalio.common.RawValue, HandlerSourceContextT + ], + ], + Awaitable[WorkflowHandle[notifications.OnCompleteResponse]], + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[Any]: ... + + +@overload +def create_completion_callback( + *, + operation: Callable[ + [ + Any, + WorkflowRunOperationContext, + notifications.OnCompleteRequest[HandlerOutputT, HandlerSourceContextT], + ], + Awaitable[WorkflowHandle[notifications.OnCompleteResponse]], + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[HandlerOutputT]: ... + + +# @temporal_operation handler methods +@overload +def create_completion_callback( + *, + operation: Callable[ + [ + Any, + TemporalStartOperationContext, + TemporalNexusClient, + notifications.OnCompleteRequest[ + temporalio.common.RawValue, HandlerSourceContextT + ], + ], + Awaitable[TemporalOperationResult[notifications.OnCompleteResponse]], + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[Any]: ... + + +@overload +def create_completion_callback( + *, + operation: Callable[ + [ + Any, + TemporalStartOperationContext, + TemporalNexusClient, + notifications.OnCompleteRequest[HandlerOutputT, HandlerSourceContextT], + ], + Awaitable[TemporalOperationResult[notifications.OnCompleteResponse]], + ], + task_queue: str, + source_context: HandlerSourceContextT, +) -> CompletionCallback[HandlerOutputT]: ... + + +def create_completion_callback( + *, + service: str | None = None, + operation: str | nexusrpc.Operation[Any, Any] | Callable[..., Any], + task_queue: str, + source_context: Any, +) -> CompletionCallback[Any]: + """Create a callback that reports the outcome of a standalone Nexus operation. + + When the operation finishes, the server calls an on-complete operation on a worker + for ``task_queue``. The call carries the result or the failure, and + ``source_context``. + + An on-complete operation takes + :py:class:`temporalio.nexus.notifications.OnCompleteRequest` and returns + :py:class:`temporalio.nexus.notifications.OnCompleteResponse`. The server can + deliver a callback more than once. Make the operation idempotent. + + .. warning:: + This API is experimental and unstable. + + Args: + service: Service name. Required if ``operation`` is a name. Otherwise, leave + it unset. + operation: Handler method, service definition operation, or operation name. + An operation name, or an operation that receives + :py:class:`temporalio.common.RawValue`, accepts any output. + task_queue: Task queue of the worker that runs the operation. + source_context: Value that the operation receives with the outcome. + + Returns: + Callback for the ``completion_callbacks`` argument of + :py:meth:`temporalio.client.NexusClient.start_operation`. + + Raises: + ValueError: If ``operation`` is not an on-complete operation of a Nexus + service, if ``service`` and an operation name are not given together, or + if either name is empty. + """ + if service is not None or isinstance(operation, str): + if not isinstance(service, str) or not isinstance(operation, str): + raise ValueError( + "Give a service name with an operation name. A handler method or a " + "service definition operation identifies its own service" + ) + if not service or not operation: + raise ValueError("Service and operation names must not be empty") + return _OnCompleteCallback( + service=service, + operation=operation, + task_queue=task_queue, + source_context=source_context, + ) + + op = ( + operation + if isinstance(operation, nexusrpc.Operation) + else get_operation_factory(operation)[1] + ) + if op is None: + raise ValueError(f"{_describe(operation)} is not a Nexus operation") + if op.service is None: + raise ValueError( + f"{_describe(operation)} is not an operation of a Nexus service. Use an " + "operation of a class decorated with @nexusrpc.service or " + "@nexusrpc.handler.service_handler" + ) + definition = op.service.operation_definitions[op.name] + _check_on_complete_operation(op.service, definition) + return _OnCompleteCallback( + service=op.service.name, + operation=definition.name, + task_queue=task_queue, + source_context=source_context, + ) diff --git a/temporalio/nexus/_operation_context.py b/temporalio/nexus/_operation_context.py index c44088f21..92c74ac30 100644 --- a/temporalio/nexus/_operation_context.py +++ b/temporalio/nexus/_operation_context.py @@ -10,7 +10,7 @@ MutableMapping, Sequence, ) -from contextlib import contextmanager +from contextlib import contextmanager, nullcontext from contextvars import ContextVar from dataclasses import dataclass from datetime import timedelta @@ -32,6 +32,7 @@ from typing_extensions import Self import temporalio.api.common.v1 +import temporalio.api.nexus.v1 import temporalio.api.workflowservice.v1 import temporalio.common from temporalio.types import ( @@ -74,6 +75,45 @@ ) +class _SignalSlot: + """Allows one in-flight or successful signal per Temporal operation handler invocation.""" + + def __init__(self) -> None: + self._taken = False + + @staticmethod + @contextmanager + def scope() -> Generator[None]: + token = _temporal_operation_signal_slot.set(_SignalSlot()) + try: + yield + finally: + _temporal_operation_signal_slot.reset(token) + + @contextmanager + def reserve(self) -> Generator[None]: + # Every signal from the handler carries the operation's request ID, so the server + # would deduplicate a second one against the first and report it delivered. + if self._taken: + raise nexusrpc.HandlerError( + "Only one signal can be sent per Temporal operation handler invocation", + type=nexusrpc.HandlerErrorType.BAD_REQUEST, + ) + self._taken = True + try: + yield + except BaseException: + self._taken = False + raise + + +# Set for the duration of a Temporal operation handler's start so its signals reuse the +# Nexus request ID and are not delivered twice when the Nexus task is retried. +_temporal_operation_signal_slot: ContextVar[_SignalSlot | None] = ContextVar( + "temporal-operation-signal-slot", default=None +) + + @dataclass(frozen=True) class Info: """Information about the running Nexus operation. @@ -173,6 +213,25 @@ def _try_start_operation_context() -> _TemporalStartOperationContext | None: # return _temporal_start_operation_context.get(None) +def _current_propagated_nexus_serialization_context() -> ( # pyright: ignore[reportUnusedFunction] + temporalio.api.nexus.v1.PropagatedSerializationContext | None +): + """The serialization context of the Nexus operation being handled, in the form sent with start + requests, or None outside a Nexus start operation handler. + + A workflow or standalone activity started by the handler returns its result and failure to the + Nexus caller, so the server propagates this context to the worker and to clients reading them. + """ + nexus_ctx = _try_start_operation_context() + if nexus_ctx is None: + return None + return temporalio.api.nexus.v1.PropagatedSerializationContext( + endpoint=nexus_ctx.info().endpoint, + service=nexus_ctx.nexus_context.service, + operation=nexus_ctx.nexus_context.operation, + ) + + @contextmanager def _nexus_backing_start_context() -> Generator[None]: token = _temporal_nexus_backing_start_context.set(True) @@ -711,6 +770,7 @@ async def _start_nexus_operation_workflow_update( # pyright: ignore[reportUnuse update: str | Callable, arg: Any = temporalio.common._arg_unset, args: Sequence[Any] = [], + wait_for_stage: temporalio.client.WorkflowUpdateStage, update_id: str | None = None, result_type: type | None = None, rpc_metadata: Mapping[str, str | bytes] = {}, @@ -718,6 +778,8 @@ async def _start_nexus_operation_workflow_update( # pyright: ignore[reportUnuse run_id: str | None = None, first_execution_run_id: str | None = None, ) -> temporalio.client.WorkflowUpdateHandle[Any]: + if wait_for_stage != temporalio.client.WorkflowUpdateStage.ACCEPTED: + raise ValueError("Only ACCEPTED wait stage is supported") # Default update ID to the Nexus request ID for retry-safety (matches sdk-go). update_id = update_id or temporal_context.nexus_context.request_id workflow_handle = temporal_context.client.get_workflow_handle( @@ -728,7 +790,7 @@ async def _start_nexus_operation_workflow_update( # pyright: ignore[reportUnuse update, arg, args=args, - wait_for_stage=temporalio.client.WorkflowUpdateStage.ACCEPTED, # hardcoded as nexus only supports async updates + wait_for_stage=wait_for_stage, id=update_id, result_type=result_type, rpc_metadata=rpc_metadata, @@ -744,7 +806,10 @@ def _apply_nexus_context_to_start_workflow_update_request( # pyright: ignore[re This is a no-op unless the update is backing the current Nexus operation. """ nexus_ctx = _try_start_operation_context() - if nexus_ctx is not None and _in_nexus_backing_start_context(): + if nexus_ctx is None: + return + _apply_nexus_serialization_context_to_workflow_update_request(req) + if _in_nexus_backing_start_context(): request_links = nexus_ctx._get_request_links() req.request.request_id = nexus_ctx.nexus_context.request_id req.request.links.extend(request_links) @@ -769,6 +834,18 @@ def _apply_nexus_context_to_start_workflow_update_request( # pyright: ignore[re ) +def _apply_nexus_serialization_context_to_workflow_update_request( # pyright: ignore[reportUnusedFunction] + req: temporalio.api.workflowservice.v1.UpdateWorkflowExecutionRequest, +) -> None: + """Send the current Nexus operation's serialization context with a Workflow Update request. + + This is a no-op outside a Nexus operation context. + """ + context = _current_propagated_nexus_serialization_context() + if context is not None: + req.request.propagated_nexus_serialization_context.CopyFrom(context) + + def _apply_start_workflow_update_response_to_nexus_context( # pyright: ignore[reportUnusedFunction] resp: temporalio.api.workflowservice.v1.UpdateWorkflowExecutionResponse, ) -> None: @@ -786,13 +863,36 @@ def _apply_query_workflow_response_to_nexus_context( # pyright: ignore[reportUn nexus_ctx._add_response_link(resp.link) -def _apply_nexus_context_to_signal_workflow_request( # pyright: ignore[reportUnusedFunction] - req: temporalio.api.workflowservice.v1.SignalWorkflowExecutionRequest, -) -> None: - """Apply the current Nexus operation context to a workflow signal request.""" +@contextmanager +def _signal_request_nexus_context( # pyright: ignore[reportUnusedFunction] + req: ( + temporalio.api.workflowservice.v1.SignalWorkflowExecutionRequest + | temporalio.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest + ), +) -> Generator[None]: + """Apply the current Nexus operation context to a signal or signal-with-start RPC. + + Inside a Temporal operation handler, the request reuses the Nexus request ID and takes + the invocation's only signal, which is released if the RPC fails. + """ nexus_ctx = _try_start_operation_context() - if nexus_ctx is not None: + is_backing_start = ( + isinstance( + req, + temporalio.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest, + ) + and _in_nexus_backing_start_context() + ) + + slot = None + if nexus_ctx is not None and not is_backing_start: req.links.extend(nexus_ctx._get_request_links()) + slot = _temporal_operation_signal_slot.get() + if slot is not None: + req.request_id = nexus_ctx.nexus_context.request_id + + with slot.reserve() if slot is not None else nullcontext(): + yield def _apply_signal_workflow_response_to_nexus_context( # pyright: ignore[reportUnusedFunction] @@ -804,36 +904,26 @@ def _apply_signal_workflow_response_to_nexus_context( # pyright: ignore[reportU nexus_ctx._add_response_link(resp.link) -def _apply_nexus_context_to_signal_with_start_workflow_request( # pyright: ignore[reportUnusedFunction] - req: temporalio.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest, -) -> None: - """Apply the current Nexus operation context to a signal-with-start request.""" - nexus_ctx = _try_start_operation_context() - if nexus_ctx is not None and not _in_nexus_backing_start_context(): - req.links.extend(nexus_ctx._get_request_links()) - - def _apply_nexus_context_to_start_workflow_request( # pyright: ignore[reportUnusedFunction] req: temporalio.api.workflowservice.v1.StartWorkflowExecutionRequest, ) -> None: """Apply the current Nexus operation context to a workflow start request. - This is a no-op outside a Nexus operation context. Within one, it attaches - inbound links and configures conflict handling to preserve Nexus metadata. - The Nexus request ID and completion callbacks are added only when the - workflow is backing the Nexus operation. + This is a no-op outside a Nexus operation context. Within one, it sends the + operation's serialization context, attaches inbound links and configures + conflict handling to preserve Nexus metadata. The Nexus request ID and completion callbacks are added only when the + workflow is backing the Nexus operation. on_conflict_options is populated + only when there are links or callbacks to attach. """ nexus_ctx = _try_start_operation_context() if nexus_ctx is not None: - req.on_conflict_options.attach_request_id = True - req.on_conflict_options.attach_completion_callbacks = True - req.on_conflict_options.attach_links = True - + _apply_nexus_serialization_context_to_start_workflow_request(req) request_links = nexus_ctx._get_request_links() # Links are duplicated on request for compatibility with older server versions. req.links.extend(request_links) + callbacks: list[NexusCallback] = [] if _in_nexus_backing_start_context(): req.request_id = nexus_ctx.nexus_context.request_id callbacks = nexus_ctx._get_callbacks( @@ -854,6 +944,23 @@ def _apply_nexus_context_to_start_workflow_request( # pyright: ignore[reportUnu for callback in callbacks ) + if request_links or callbacks: + req.on_conflict_options.attach_request_id = True + req.on_conflict_options.attach_completion_callbacks = True + req.on_conflict_options.attach_links = True + + +def _apply_nexus_serialization_context_to_start_workflow_request( # pyright: ignore[reportUnusedFunction] + req: temporalio.api.workflowservice.v1.StartWorkflowExecutionRequest, +) -> None: + """Send the current Nexus operation's serialization context with a workflow start request. + + This is a no-op outside a Nexus operation context. + """ + context = _current_propagated_nexus_serialization_context() + if context is not None: + req.propagated_nexus_serialization_context.CopyFrom(context) + def _apply_start_workflow_response_to_nexus_context( # pyright: ignore[reportUnusedFunction] workflow_handle: temporalio.client.WorkflowHandle[Any, Any], @@ -869,19 +976,22 @@ def _apply_nexus_context_to_start_activity_request( # pyright: ignore[reportUnu """Apply the current Nexus operation context to an activity start request. This is a no-op outside a Nexus operation context. Within one, it attaches - the Nexus request ID and configures conflict handling to preserve the Nexus - metadata. Inbound links are attached to the completion callback when the - activity backs the operation and to the request otherwise. + the Nexus request ID and the operation's serialization context and + configures conflict handling to preserve the Nexus metadata. Inbound links + are attached to the completion callback when the activity backs the + operation and has a callback, and to the request otherwise. + on_conflict_options is populated only when there are links or callbacks to + attach. """ nexus_ctx = _try_start_operation_context() if nexus_ctx is not None: - req.on_conflict_options.attach_request_id = True - req.on_conflict_options.attach_completion_callbacks = True - req.on_conflict_options.attach_links = True - req.request_id = nexus_ctx.nexus_context.request_id + context = _current_propagated_nexus_serialization_context() + if context is not None: + req.propagated_nexus_serialization_context.CopyFrom(context) request_links = nexus_ctx._get_request_links() + callbacks: list[NexusCallback] = [] if _in_nexus_backing_start_context(): callbacks = nexus_ctx._get_callbacks( OperationToken( @@ -900,9 +1010,14 @@ def _apply_nexus_context_to_start_activity_request( # pyright: ignore[reportUnu ) for callback in callbacks ) - else: + if not callbacks: req.links.extend(request_links) + if request_links or callbacks: + req.on_conflict_options.attach_request_id = True + req.on_conflict_options.attach_completion_callbacks = True + req.on_conflict_options.attach_links = True + def _apply_start_activity_response_to_nexus_context( # pyright: ignore[reportUnusedFunction] activity_id: str, diff --git a/temporalio/nexus/_operation_handlers.py b/temporalio/nexus/_operation_handlers.py index 36c44e96c..b51507f71 100644 --- a/temporalio/nexus/_operation_handlers.py +++ b/temporalio/nexus/_operation_handlers.py @@ -23,6 +23,7 @@ from temporalio.nexus._operation_context import ( TemporalCancelOperationContext, TemporalStartOperationContext, + _SignalSlot, _temporal_cancel_operation_context, ) from temporalio.nexus._temporal_client import ( @@ -171,6 +172,10 @@ class TemporalOperationHandler(OperationHandler[InputT, OutputT], ABC): """Operation handler for Nexus operations that interact with Temporal. Implementations override the start_operation method. + Signals sent during the start reuse the Nexus request ID, so retried Nexus tasks don't + deliver them twice. Only one signal (including signal-with-start) may be sent per start; + another raises a ``BAD_REQUEST`` :py:class:`nexusrpc.HandlerError` unless the first failed. + .. warning:: This API is experimental and unstable. """ @@ -195,7 +200,8 @@ async def start( """ nexus_client = _TemporalNexusClient() start_ctx = TemporalStartOperationContext._from_start_operation_context(ctx) - result = await self.start_operation(start_ctx, nexus_client, input) + with _SignalSlot.scope(): + result = await self.start_operation(start_ctx, nexus_client, input) return result._to_nexus_result() async def cancel(self, ctx: CancelOperationContext, token: str) -> None: diff --git a/temporalio/nexus/_temporal_client.py b/temporalio/nexus/_temporal_client.py index 393da2fae..4fd34d939 100644 --- a/temporalio/nexus/_temporal_client.py +++ b/temporalio/nexus/_temporal_client.py @@ -10,6 +10,7 @@ Any, Concatenate, Generic, + Literal, TypeVar, cast, overload, @@ -294,6 +295,7 @@ async def start_workflow_update( workflow_id: str, update: temporalio.workflow.UpdateMethodMultiParam[[Any], ReturnType], *, + wait_for_stage: Literal[temporalio.client.WorkflowUpdateStage.ACCEPTED], update_id: str | None = None, rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, @@ -311,6 +313,7 @@ async def start_workflow_update( ], arg: ParamType, *, + wait_for_stage: Literal[temporalio.client.WorkflowUpdateStage.ACCEPTED], update_id: str | None = None, rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, @@ -326,6 +329,7 @@ async def start_workflow_update( update: temporalio.workflow.UpdateMethodMultiParam[MultiParamSpec, ReturnType], *, args: MultiParamSpec.args, # type: ignore + wait_for_stage: Literal[temporalio.client.WorkflowUpdateStage.ACCEPTED], update_id: str | None = None, rpc_metadata: Mapping[str, str | bytes] = {}, rpc_timeout: timedelta | None = None, @@ -342,6 +346,7 @@ async def start_workflow_update( arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = [], + wait_for_stage: Literal[temporalio.client.WorkflowUpdateStage.ACCEPTED], update_id: str | None = None, result_type: type[ReturnType] | None = None, rpc_metadata: Mapping[str, str | bytes] = {}, @@ -358,6 +363,7 @@ async def start_workflow_update( arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = [], + wait_for_stage: Literal[temporalio.client.WorkflowUpdateStage.ACCEPTED], update_id: str | None = None, result_type: type | None = None, rpc_metadata: Mapping[str, str | bytes] = {}, @@ -679,6 +685,7 @@ async def start_workflow_update( arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = [], + wait_for_stage: Literal[temporalio.client.WorkflowUpdateStage.ACCEPTED], update_id: str | None = None, result_type: type | None = None, rpc_metadata: Mapping[str, str | bytes] = {}, @@ -699,6 +706,7 @@ async def start_workflow_update( update=update, arg=arg, args=args, + wait_for_stage=wait_for_stage, update_id=update_id, result_type=result_type, rpc_metadata=rpc_metadata, diff --git a/temporalio/nexus/notifications/__init__.py b/temporalio/nexus/notifications/__init__.py new file mode 100644 index 000000000..7a8bb24ea --- /dev/null +++ b/temporalio/nexus/notifications/__init__.py @@ -0,0 +1,19 @@ +# Generated by nexgen v0.2.8. DO NOT EDIT! + +from __future__ import annotations + +from .models import ( + OnCompleteRequest, + OnCompleteRequestResult, + OnCompleteRequestResultFailure, + OnCompleteRequestResultSuccess, + OnCompleteResponse, +) + +__all__ = [ + "OnCompleteRequest", + "OnCompleteRequestResult", + "OnCompleteRequestResultSuccess", + "OnCompleteRequestResultFailure", + "OnCompleteResponse", +] diff --git a/temporalio/nexus/notifications/models.py b/temporalio/nexus/notifications/models.py new file mode 100644 index 000000000..1bcace512 --- /dev/null +++ b/temporalio/nexus/notifications/models.py @@ -0,0 +1,156 @@ +# Generated by nexgen v0.2.8. DO NOT EDIT! + +from __future__ import annotations + +import dataclasses +import typing + +import typing_extensions + +import temporalio.api.notificationservice.v1.request_response_pb2 +import temporalio.converter +import temporalio.nexus.system._support as _support + +OutputT = typing.TypeVar("OutputT") +SourceContextT = typing.TypeVar("SourceContextT") + + +@dataclasses.dataclass(slots=True) +class OnCompleteRequest(typing.Generic[OutputT, SourceContextT]): + """ + .. warning:: + This API is experimental and subject to change. + """ + + result: OnCompleteRequestResult[OutputT] + source_context: SourceContextT + + +class _OnCompleteRequestTransferTypeConverter( + temporalio.converter.TransferTypeConverter[ + OnCompleteRequest[OutputT, SourceContextT], + temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteRequest, + ] +): + transfer_type: ( + type[ + temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteRequest + ] + | None + ) = temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteRequest + + @typing_extensions.override + def from_transfer_type( + self, + value: temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteRequest, + type_hint: type[OnCompleteRequest[OutputT, SourceContextT]], + ) -> OnCompleteRequest[OutputT, SourceContextT]: + output_type, source_context_type = typing.get_args(type_hint) or ( + typing.Any, + typing.Any, + ) + _oneof_result: ( + OnCompleteRequestResultSuccess[OutputT] | OnCompleteRequestResultFailure + ) + match value.WhichOneof("result"): + case "success": + _oneof_result = OnCompleteRequestResultSuccess( + typing.cast( + OutputT, _support.payload_from_proto(value.success, output_type) + ) + ) + case "failure": + _oneof_result = OnCompleteRequestResultFailure( + _support.failure_from_proto(value.failure) + ) + case None: + raise ValueError("missing required field OnCompleteRequest.result") + if not value.HasField("source_context"): + raise ValueError("missing required field OnCompleteRequest.source_context") + source_context = typing.cast( + SourceContextT, + _support.payload_from_proto(value.source_context, source_context_type), + ) + return OnCompleteRequest( + result=_oneof_result, + source_context=source_context, + ) + + @typing_extensions.override + def to_transfer_type( + self, + value: OnCompleteRequest[OutputT, SourceContextT], + ) -> temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteRequest: + message = temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteRequest() + match value.result: + case OnCompleteRequestResultSuccess(): + message.success.CopyFrom(_support.payload_to_proto(value.result.value)) + case OnCompleteRequestResultFailure(): + message.failure.CopyFrom(_support.failure_to_proto(value.result.value)) + message.source_context.CopyFrom(_support.payload_to_proto(value.source_context)) + return message + + +temporalio.converter.transfer_type_convertible( + _OnCompleteRequestTransferTypeConverter[typing.Any, typing.Any] +)(OnCompleteRequest) # pyright: ignore[reportUnusedCallResult] + + +@dataclasses.dataclass(slots=True) +class OnCompleteResponse: + """ + .. warning:: + This API is experimental and subject to change. + """ + + pass + + +class _OnCompleteResponseTransferTypeConverter( + temporalio.converter.TransferTypeConverter[ + OnCompleteResponse, + temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteResponse, + ] +): + transfer_type: ( + type[ + temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteResponse + ] + | None + ) = temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteResponse + + @typing_extensions.override + def from_transfer_type( + self, + value: temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteResponse, + type_hint: type[OnCompleteResponse], + ) -> OnCompleteResponse: + return OnCompleteResponse() + + @typing_extensions.override + def to_transfer_type( + self, + value: OnCompleteResponse, + ) -> temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteResponse: + message = temporalio.api.notificationservice.v1.request_response_pb2.OnCompleteResponse() + return message + + +temporalio.converter.transfer_type_convertible( + _OnCompleteResponseTransferTypeConverter +)(OnCompleteResponse) # pyright: ignore[reportUnusedCallResult] + + +@dataclasses.dataclass(slots=True) +class OnCompleteRequestResultSuccess(typing.Generic[OutputT]): + value: OutputT + + +@dataclasses.dataclass(slots=True) +class OnCompleteRequestResultFailure: + value: BaseException + + +OnCompleteRequestResult = ( + OnCompleteRequestResultSuccess[OutputT] | OnCompleteRequestResultFailure +) diff --git a/temporalio/nexus/system/workflow_service/_support/nex_gen_support.py b/temporalio/nexus/system/_support.py similarity index 85% rename from temporalio/nexus/system/workflow_service/_support/nex_gen_support.py rename to temporalio/nexus/system/_support.py index fad21151e..15a8e8010 100644 --- a/temporalio/nexus/system/workflow_service/_support/nex_gen_support.py +++ b/temporalio/nexus/system/_support.py @@ -6,6 +6,7 @@ import temporalio.api.common.v1.message_pb2 as common_pb2 import temporalio.api.enums.v1.workflow_pb2 as workflow_enums_pb2 +import temporalio.api.failure.v1.message_pb2 as failure_pb2 import temporalio.api.taskqueue.v1.message_pb2 as taskqueue_pb2 import temporalio.api.workflow.v1 import temporalio.common @@ -128,22 +129,19 @@ def _value_to_payload(value: object | common_pb2.Payload) -> common_pb2.Payload: return _clone_payload(payloads.payloads[0]) -def _payload_to_value(payload: common_pb2.Payload) -> object: - wrapper = common_pb2.Payloads() - wrapper.payloads.add().CopyFrom(payload) - - return typing.cast( - object, - temporalio.nexus.system._current_user_payload_converter().from_payloads_wrapper( - wrapper - )[0], - ) +def _payload_to_value( + payload: common_pb2.Payload, type_hint: typing.Any = None +) -> object: + return temporalio.nexus.system._current_user_payload_converter().from_payloads( + [_clone_payload(payload)], [type_hint] if type_hint is not None else None + )[0] def payload_from_proto( proto: common_pb2.Payload, + type_hint: typing.Any = None, ) -> object: - return _payload_to_value(proto) + return _payload_to_value(proto, type_hint) def payload_to_proto( @@ -152,6 +150,24 @@ def payload_to_proto( return _value_to_payload(payload) +def failure_from_proto( + proto: failure_pb2.Failure, +) -> BaseException: + return temporalio.nexus.system._current_user_failure_converter().from_failure( + proto, temporalio.nexus.system._current_user_payload_converter() + ) + + +def failure_to_proto( + failure: BaseException, +) -> failure_pb2.Failure: + proto = failure_pb2.Failure() + temporalio.nexus.system._current_user_failure_converter().to_failure( + failure, temporalio.nexus.system._current_user_payload_converter(), proto + ) + return proto + + def memo_from_proto( proto: common_pb2.Memo, ) -> collections.abc.Mapping[str, object]: @@ -263,6 +279,16 @@ def versioning_override_from_proto( build_id=version.build_id, ) ) + if proto.HasField("one_time") and proto.one_time.HasField( + "target_deployment_version" + ): + version = proto.one_time.target_deployment_version + return temporalio.common.OneTimeVersioningOverride( + temporalio.common.WorkerDeploymentVersion( + deployment_name=version.deployment_name, + build_id=version.build_id, + ) + ) if proto.pinned_version: return temporalio.common.PinnedVersioningOverride( temporalio.common.WorkerDeploymentVersion.from_canonical_string( diff --git a/temporalio/nexus/system/workflow_service/__init__.py b/temporalio/nexus/system/workflow_service/__init__.py index 49f7e4c12..f6a6f0c68 100644 --- a/temporalio/nexus/system/workflow_service/__init__.py +++ b/temporalio/nexus/system/workflow_service/__init__.py @@ -1,4 +1,4 @@ -# Generated by nexgen v0.2.2. DO NOT EDIT! +# Generated by nexgen v0.2.8. DO NOT EDIT! from __future__ import annotations @@ -8,9 +8,9 @@ import nexusrpc import temporalio.converter +import temporalio.nexus.system._support as _support from . import services as _services -from ._support import signal_with_start_workflow_serialization_context from .operations.signal_with_start_workflow import signal_with_start_workflow __all__ = [ @@ -46,6 +46,6 @@ def __init__( "SignalWithStartWorkflowExecution", ): _NexusOperationInfo( operation=_services.WorkflowService.signal_with_start_workflow, - serialization_context=signal_with_start_workflow_serialization_context, + serialization_context=_support.signal_with_start_workflow_serialization_context, ), } diff --git a/temporalio/nexus/system/workflow_service/_support/__init__.py b/temporalio/nexus/system/workflow_service/_support/__init__.py deleted file mode 100644 index a07fc7273..000000000 --- a/temporalio/nexus/system/workflow_service/_support/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# Generated by nexgen v0.2.2. DO NOT EDIT! - -from __future__ import annotations - -from .nex_gen_support import * # noqa: F401,F403 diff --git a/temporalio/nexus/system/workflow_service/_system_nexus_interceptor.py b/temporalio/nexus/system/workflow_service/_system_nexus_interceptor.py new file mode 100644 index 000000000..5c62e0092 --- /dev/null +++ b/temporalio/nexus/system/workflow_service/_system_nexus_interceptor.py @@ -0,0 +1,95 @@ +# Generated by nexgen v0.2.8. DO NOT EDIT! + +from __future__ import annotations + +import abc +import typing + +from . import models + +if typing.TYPE_CHECKING: + import temporalio.workflow + from temporalio.worker._interceptor import StartNexusOperationInput + + +__all__ = [ + "_start_system_nexus_operation", + "_SystemNexusWorkflowOutboundInterceptorBase", + "_SystemNexusWorkflowOutboundInterceptorTerminal", +] + + +_InputT = typing.TypeVar("_InputT") +_OutputT = typing.TypeVar("_OutputT") + + +async def _start_system_nexus_operation( + interceptor: _SystemNexusWorkflowOutboundInterceptorBase, + input: StartNexusOperationInput[_InputT, _OutputT], +) -> temporalio.workflow.NexusOperationHandle[_OutputT]: + if ( + input.service == "temporal.api.workflowservice.v1.WorkflowService" + and input.operation_name == "SignalWithStartWorkflowExecution" + ): + typed_input = typing.cast( + "StartNexusOperationInput[models.SignalWithStartWorkflowRequest, models.SignalWithStartWorkflowResponse]", + input, + ) + # The dispatch check above establishes that this operation's response type is _OutputT. + return typing.cast( + "temporalio.workflow.NexusOperationHandle[_OutputT]", + await interceptor.start_signal_with_start_workflow(typed_input.input), + ) + raise ValueError( + f"unsupported System Nexus operation: {input.service}/{input.operation_name}" + ) + + +class _SystemNexusWorkflowOutboundInterceptorBase(abc.ABC): + @abc.abstractmethod + def _next_system_nexus_interceptor( + self, + ) -> _SystemNexusWorkflowOutboundInterceptorBase: ... + + async def start_signal_with_start_workflow( + self, request: models.SignalWithStartWorkflowRequest + ) -> temporalio.workflow.NexusOperationHandle[ + models.SignalWithStartWorkflowResponse + ]: + """Intercept the SignalWithStartWorkflow operation.""" + return await self._next_system_nexus_interceptor().start_signal_with_start_workflow( + request + ) + + +class _SystemNexusWorkflowOutboundInterceptorTerminal(abc.ABC): + @abc.abstractmethod + async def _intercept_system_nexus_operation( + self, + input: StartNexusOperationInput[_InputT, _OutputT], + ) -> temporalio.workflow.NexusOperationHandle[_OutputT]: ... + + async def start_signal_with_start_workflow( + self, request: models.SignalWithStartWorkflowRequest + ) -> temporalio.workflow.NexusOperationHandle[ + models.SignalWithStartWorkflowResponse + ]: + from temporalio.nexus.system import TEMPORAL_SYSTEM_ENDPOINT + from temporalio.worker._interceptor import StartNexusOperationInput + from temporalio.workflow import NexusOperationCancellationType + + return await self._intercept_system_nexus_operation( + StartNexusOperationInput( + endpoint=TEMPORAL_SYSTEM_ENDPOINT, + service="temporal.api.workflowservice.v1.WorkflowService", + operation="SignalWithStartWorkflowExecution", + input=request, + output_type=models.SignalWithStartWorkflowResponse, + schedule_to_close_timeout=None, + schedule_to_start_timeout=None, + start_to_close_timeout=None, + cancellation_type=NexusOperationCancellationType.WAIT_COMPLETED, + headers=None, + summary=None, + ) + ) diff --git a/temporalio/nexus/system/workflow_service/models.py b/temporalio/nexus/system/workflow_service/models.py index 5361e77b6..dc7b5ce2e 100644 --- a/temporalio/nexus/system/workflow_service/models.py +++ b/temporalio/nexus/system/workflow_service/models.py @@ -1,4 +1,4 @@ -# Generated by nexgen v0.2.2. DO NOT EDIT! +# Generated by nexgen v0.2.8. DO NOT EDIT! from __future__ import annotations @@ -13,42 +13,44 @@ import temporalio.api.workflowservice.v1.request_response_pb2 import temporalio.common import temporalio.converter +import temporalio.nexus.system._support as _support -from ._support import ( - duration_from_proto, - duration_to_proto, - header_from_proto, - header_to_proto, - memo_from_proto, - memo_to_proto, - payload_from_proto, - payload_to_proto, - payloads_from_proto, - payloads_to_proto, - priority_from_proto, - priority_to_proto, - retry_policy_from_proto, - retry_policy_to_proto, - search_attributes_from_proto, - search_attributes_to_proto, - signal_function_to_proto, - task_queue_from_proto, - task_queue_to_proto, - versioning_override_from_proto, - versioning_override_to_proto, - workflow_id_conflict_policy_from_proto, - workflow_id_conflict_policy_to_proto, - workflow_id_reuse_policy_from_proto, - workflow_id_reuse_policy_to_proto, - workflow_namespace, - workflow_type_from_proto, - workflow_type_to_proto, -) + +@dataclasses.dataclass(slots=True, kw_only=True) +class SignalWithStartWorkflowRequest: + """ + .. warning:: + This API is experimental and subject to change. + """ + + workflow: str | collections.abc.Callable[..., collections.abc.Awaitable[object]] + args: list[typing.Any] | None = None + id: str + task_queue: str + signal: str | collections.abc.Callable[..., None | collections.abc.Awaitable[None]] + signal_args: list[typing.Any] | None = None + execution_timeout: datetime.timedelta | None = None + run_timeout: datetime.timedelta | None = None + task_timeout: datetime.timedelta | None = None + id_reuse_policy: temporalio.common.WorkflowIDReusePolicy = ( + temporalio.common.WorkflowIDReusePolicy.ALLOW_DUPLICATE + ) + id_conflict_policy: temporalio.common.WorkflowIDConflictPolicy | None = None + retry_policy: temporalio.common.RetryPolicy | None = None + cron_schedule: str | None = None + memo: collections.abc.Mapping[str, typing.Any] | None = None + search_attributes: temporalio.common.TypedSearchAttributes | None = None + priority: temporalio.common.Priority | None = None + versioning_override: temporalio.common.VersioningOverride | None = None + start_delay: datetime.timedelta | None = None + user_metadata: UserMetadata | None = None + namespace: str = dataclasses.field(default_factory=_support.workflow_namespace) + headers: collections.abc.Mapping[str, typing.Any] | None = None class _SignalWithStartWorkflowRequestTransferTypeConverter( temporalio.converter.TransferTypeConverter[ - "SignalWithStartWorkflowRequest", + SignalWithStartWorkflowRequest, temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionRequest, ] ): @@ -63,13 +65,13 @@ class _SignalWithStartWorkflowRequestTransferTypeConverter( def from_transfer_type( self, value: temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionRequest, - type_hint: type["SignalWithStartWorkflowRequest"], - ) -> "SignalWithStartWorkflowRequest": + type_hint: type[SignalWithStartWorkflowRequest], + ) -> SignalWithStartWorkflowRequest: if not value.HasField("workflow_type"): raise ValueError( "missing required field SignalWithStartWorkflowRequest.workflow" ) - workflow = workflow_type_from_proto(value.workflow_type) + workflow = _support.workflow_type_from_proto(value.workflow_type) if not value.workflow_id: raise ValueError("missing required field SignalWithStartWorkflowRequest.id") id = value.workflow_id @@ -77,7 +79,7 @@ def from_transfer_type( raise ValueError( "missing required field SignalWithStartWorkflowRequest.task_queue" ) - task_queue = task_queue_from_proto(value.task_queue) + task_queue = _support.task_queue_from_proto(value.task_queue) if not value.signal_name: raise ValueError( "missing required field SignalWithStartWorkflowRequest.signal" @@ -85,47 +87,55 @@ def from_transfer_type( signal = value.signal_name return SignalWithStartWorkflowRequest( workflow=workflow, - args=payloads_from_proto(value.input) if value.HasField("input") else None, + args=_support.payloads_from_proto(value.input) + if value.HasField("input") + else None, id=id, task_queue=task_queue, signal=signal, - signal_args=payloads_from_proto(value.signal_input) + signal_args=_support.payloads_from_proto(value.signal_input) if value.HasField("signal_input") else None, - execution_timeout=duration_from_proto(value.workflow_execution_timeout) + execution_timeout=_support.duration_from_proto( + value.workflow_execution_timeout + ) if value.HasField("workflow_execution_timeout") else None, - run_timeout=duration_from_proto(value.workflow_run_timeout) + run_timeout=_support.duration_from_proto(value.workflow_run_timeout) if value.HasField("workflow_run_timeout") else None, - task_timeout=duration_from_proto(value.workflow_task_timeout) + task_timeout=_support.duration_from_proto(value.workflow_task_timeout) if value.HasField("workflow_task_timeout") else None, - id_reuse_policy=workflow_id_reuse_policy_from_proto( + id_reuse_policy=_support.workflow_id_reuse_policy_from_proto( value.workflow_id_reuse_policy ), - id_conflict_policy=workflow_id_conflict_policy_from_proto( + id_conflict_policy=_support.workflow_id_conflict_policy_from_proto( value.workflow_id_conflict_policy ) if value.workflow_id_conflict_policy != 0 else None, - retry_policy=retry_policy_from_proto(value.retry_policy) + retry_policy=_support.retry_policy_from_proto(value.retry_policy) if value.HasField("retry_policy") else None, cron_schedule=value.cron_schedule if bool(value.cron_schedule) else None, - memo=memo_from_proto(value.memo) if value.HasField("memo") else None, - search_attributes=search_attributes_from_proto(value.search_attributes) + memo=_support.memo_from_proto(value.memo) + if value.HasField("memo") + else None, + search_attributes=_support.search_attributes_from_proto( + value.search_attributes + ) if value.HasField("search_attributes") else None, - priority=priority_from_proto(value.priority) + priority=_support.priority_from_proto(value.priority) if value.HasField("priority") else None, - versioning_override=versioning_override_from_proto( + versioning_override=_support.versioning_override_from_proto( value.versioning_override ) if value.HasField("versioning_override") else None, - start_delay=duration_from_proto(value.workflow_start_delay) + start_delay=_support.duration_from_proto(value.workflow_start_delay) if value.HasField("workflow_start_delay") else None, user_metadata=_UserMetadataTransferTypeConverter().from_transfer_type( @@ -134,7 +144,7 @@ def from_transfer_type( if value.HasField("user_metadata") else None, namespace=value.namespace, - headers=header_from_proto(value.header) + headers=_support.header_from_proto(value.header) if value.HasField("header") else None, ) @@ -142,52 +152,58 @@ def from_transfer_type( @typing_extensions.override def to_transfer_type( self, - value: "SignalWithStartWorkflowRequest", + value: SignalWithStartWorkflowRequest, ) -> temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionRequest: message = temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionRequest() - message.workflow_type.CopyFrom(workflow_type_to_proto(value.workflow)) + message.workflow_type.CopyFrom(_support.workflow_type_to_proto(value.workflow)) if value.args is not None: - message.input.CopyFrom(payloads_to_proto(value.args)) + message.input.CopyFrom(_support.payloads_to_proto(value.args)) message.workflow_id = value.id - message.task_queue.CopyFrom(task_queue_to_proto(value.task_queue)) - message.signal_name = signal_function_to_proto(value.signal) + message.task_queue.CopyFrom(_support.task_queue_to_proto(value.task_queue)) + message.signal_name = _support.signal_function_to_proto(value.signal) if value.signal_args is not None: - message.signal_input.CopyFrom(payloads_to_proto(value.signal_args)) + message.signal_input.CopyFrom(_support.payloads_to_proto(value.signal_args)) if value.execution_timeout is not None: message.workflow_execution_timeout.CopyFrom( - duration_to_proto(value.execution_timeout) + _support.duration_to_proto(value.execution_timeout) ) if value.run_timeout is not None: - message.workflow_run_timeout.CopyFrom(duration_to_proto(value.run_timeout)) + message.workflow_run_timeout.CopyFrom( + _support.duration_to_proto(value.run_timeout) + ) if value.task_timeout is not None: message.workflow_task_timeout.CopyFrom( - duration_to_proto(value.task_timeout) + _support.duration_to_proto(value.task_timeout) ) - message.workflow_id_reuse_policy = workflow_id_reuse_policy_to_proto( + message.workflow_id_reuse_policy = _support.workflow_id_reuse_policy_to_proto( value.id_reuse_policy ) if value.id_conflict_policy is not None: - message.workflow_id_conflict_policy = workflow_id_conflict_policy_to_proto( - value.id_conflict_policy + message.workflow_id_conflict_policy = ( + _support.workflow_id_conflict_policy_to_proto(value.id_conflict_policy) ) if value.retry_policy is not None: - message.retry_policy.CopyFrom(retry_policy_to_proto(value.retry_policy)) + message.retry_policy.CopyFrom( + _support.retry_policy_to_proto(value.retry_policy) + ) if value.cron_schedule is not None: message.cron_schedule = value.cron_schedule if value.memo is not None: - message.memo.CopyFrom(memo_to_proto(value.memo)) + message.memo.CopyFrom(_support.memo_to_proto(value.memo)) if value.search_attributes is not None: message.search_attributes.CopyFrom( - search_attributes_to_proto(value.search_attributes) + _support.search_attributes_to_proto(value.search_attributes) ) if value.priority is not None: - message.priority.CopyFrom(priority_to_proto(value.priority)) + message.priority.CopyFrom(_support.priority_to_proto(value.priority)) if value.versioning_override is not None: message.versioning_override.CopyFrom( - versioning_override_to_proto(value.versioning_override) + _support.versioning_override_to_proto(value.versioning_override) ) if value.start_delay is not None: - message.workflow_start_delay.CopyFrom(duration_to_proto(value.start_delay)) + message.workflow_start_delay.CopyFrom( + _support.duration_to_proto(value.start_delay) + ) if value.user_metadata is not None: message.user_metadata.CopyFrom( _UserMetadataTransferTypeConverter().to_transfer_type( @@ -196,48 +212,29 @@ def to_transfer_type( ) message.namespace = value.namespace if value.headers is not None: - message.header.CopyFrom(header_to_proto(value.headers)) + message.header.CopyFrom(_support.header_to_proto(value.headers)) return message -@temporalio.converter.transfer_type_convertible( +temporalio.converter.transfer_type_convertible( _SignalWithStartWorkflowRequestTransferTypeConverter -) -@dataclasses.dataclass(slots=True, kw_only=True) -class SignalWithStartWorkflowRequest: +)(SignalWithStartWorkflowRequest) # pyright: ignore[reportUnusedCallResult] + + +@dataclasses.dataclass(slots=True) +class UserMetadata: """ .. warning:: This API is experimental and subject to change. """ - workflow: str | collections.abc.Callable[..., collections.abc.Awaitable[object]] - args: list[typing.Any] | None = None - id: str - task_queue: str - signal: str | collections.abc.Callable[..., None | collections.abc.Awaitable[None]] - signal_args: list[typing.Any] | None = None - execution_timeout: datetime.timedelta | None = None - run_timeout: datetime.timedelta | None = None - task_timeout: datetime.timedelta | None = None - id_reuse_policy: temporalio.common.WorkflowIDReusePolicy = ( - temporalio.common.WorkflowIDReusePolicy.ALLOW_DUPLICATE - ) - id_conflict_policy: temporalio.common.WorkflowIDConflictPolicy | None = None - retry_policy: temporalio.common.RetryPolicy | None = None - cron_schedule: str | None = None - memo: collections.abc.Mapping[str, typing.Any] | None = None - search_attributes: temporalio.common.TypedSearchAttributes | None = None - priority: temporalio.common.Priority | None = None - versioning_override: temporalio.common.VersioningOverride | None = None - start_delay: datetime.timedelta | None = None - user_metadata: UserMetadata | None = None - namespace: str = dataclasses.field(default_factory=workflow_namespace) - headers: collections.abc.Mapping[str, typing.Any] | None = None + static_summary: typing.Any | None = None + static_details: typing.Any | None = None class _UserMetadataTransferTypeConverter( temporalio.converter.TransferTypeConverter[ - "UserMetadata", temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata + UserMetadata, temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata ] ): transfer_type: type[temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata] | None = ( @@ -248,13 +245,13 @@ class _UserMetadataTransferTypeConverter( def from_transfer_type( self, value: temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata, - type_hint: type["UserMetadata"], - ) -> "UserMetadata": + type_hint: type[UserMetadata], + ) -> UserMetadata: return UserMetadata( - static_summary=payload_from_proto(value.summary) + static_summary=_support.payload_from_proto(value.summary) if value.HasField("summary") else None, - static_details=payload_from_proto(value.details) + static_details=_support.payload_from_proto(value.details) if value.HasField("details") else None, ) @@ -262,26 +259,35 @@ def from_transfer_type( @typing_extensions.override def to_transfer_type( self, - value: "UserMetadata", + value: UserMetadata, ) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: message = temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata() if value.static_summary is not None: - message.summary.CopyFrom(payload_to_proto(value.static_summary)) + message.summary.CopyFrom(_support.payload_to_proto(value.static_summary)) if value.static_details is not None: - message.details.CopyFrom(payload_to_proto(value.static_details)) + message.details.CopyFrom(_support.payload_to_proto(value.static_details)) return message -@temporalio.converter.transfer_type_convertible(_UserMetadataTransferTypeConverter) +temporalio.converter.transfer_type_convertible(_UserMetadataTransferTypeConverter)( + UserMetadata +) # pyright: ignore[reportUnusedCallResult] + + @dataclasses.dataclass(slots=True) -class UserMetadata: - static_summary: typing.Any | None = None - static_details: typing.Any | None = None +class SignalWithStartWorkflowResponse: + """ + .. warning:: + This API is experimental and subject to change. + """ + + run_id: str | None = None + started: bool | None = None class _SignalWithStartWorkflowResponseTransferTypeConverter( temporalio.converter.TransferTypeConverter[ - "SignalWithStartWorkflowResponse", + SignalWithStartWorkflowResponse, temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse, ] ): @@ -296,8 +302,8 @@ class _SignalWithStartWorkflowResponseTransferTypeConverter( def from_transfer_type( self, value: temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse, - type_hint: type["SignalWithStartWorkflowResponse"], - ) -> "SignalWithStartWorkflowResponse": + type_hint: type[SignalWithStartWorkflowResponse], + ) -> SignalWithStartWorkflowResponse: return SignalWithStartWorkflowResponse( run_id=value.run_id if bool(value.run_id) else None, started=value.started if bool(value.started) else None, @@ -306,7 +312,7 @@ def from_transfer_type( @typing_extensions.override def to_transfer_type( self, - value: "SignalWithStartWorkflowResponse", + value: SignalWithStartWorkflowResponse, ) -> temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse: message = temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse() if value.run_id is not None: @@ -316,15 +322,6 @@ def to_transfer_type( return message -@temporalio.converter.transfer_type_convertible( +temporalio.converter.transfer_type_convertible( _SignalWithStartWorkflowResponseTransferTypeConverter -) -@dataclasses.dataclass(slots=True) -class SignalWithStartWorkflowResponse: - """ - .. warning:: - This API is experimental and subject to change. - """ - - run_id: str | None = None - started: bool | None = None +)(SignalWithStartWorkflowResponse) # pyright: ignore[reportUnusedCallResult] diff --git a/temporalio/nexus/system/workflow_service/operations/__init__.py b/temporalio/nexus/system/workflow_service/operations/__init__.py index 3c550f69c..ff561b55c 100644 --- a/temporalio/nexus/system/workflow_service/operations/__init__.py +++ b/temporalio/nexus/system/workflow_service/operations/__init__.py @@ -1,3 +1,3 @@ -# Generated by nexgen v0.2.2. DO NOT EDIT! +# Generated by nexgen v0.2.8. DO NOT EDIT! from __future__ import annotations diff --git a/temporalio/nexus/system/workflow_service/operations/signal_with_start_workflow.py b/temporalio/nexus/system/workflow_service/operations/signal_with_start_workflow.py index 97eb8159a..28b473543 100644 --- a/temporalio/nexus/system/workflow_service/operations/signal_with_start_workflow.py +++ b/temporalio/nexus/system/workflow_service/operations/signal_with_start_workflow.py @@ -1,4 +1,4 @@ -# Generated by nexgen v0.2.2. DO NOT EDIT! +# Generated by nexgen v0.2.8. DO NOT EDIT! from __future__ import annotations @@ -575,7 +575,7 @@ async def signal_with_start_workflow( args: List-form arguments for workflow. Cannot be set if positional_args are set. For typed workflow callables, list contents are not statically typechecked; pass workflow arguments positionally for precise typechecking. - id: Unique identifier for the workflow execution. + id: Unique identifier for the workflow execution. Must be nonempty. task_queue: Task queue to run the workflow on. signal: Signal name or callable to send with the start request. signal_args: Argument value, or list of argument values, for signal. For typed @@ -584,14 +584,15 @@ async def signal_with_start_workflow( pass a single signal argument that is itself a list, wrap it in another list; otherwise the list is interpreted as multiple signal arguments. execution_timeout: Total workflow execution timeout, including retries and - continue-as-new. - run_timeout: Timeout of a single workflow run. - task_timeout: Timeout of a single workflow task. + continue-as-new. Defaults to unlimited. + run_timeout: Timeout of a single workflow run. Defaults to the workflow + execution timeout. + task_timeout: Timeout of a single workflow task. Defaults to 10 seconds. id_reuse_policy: Behavior when a closed workflow with the same ID exists. Default is allow-duplicate. id_conflict_policy: Behavior when a workflow is currently running with the same ID. Set to use-existing for idempotent deduplication on workflow ID. Cannot - be set if id-reuse-policy is terminate-if-running. + be set if id-reuse-policy is terminate-if-running. Defaults to use-existing. retry_policy: Retry policy for the workflow. cron_schedule: Cron schedule for recurring workflow executions. See https://docs.temporal.io/cron-job. diff --git a/temporalio/nexus/system/workflow_service/services.py b/temporalio/nexus/system/workflow_service/services.py index 237565fff..c95fff35a 100644 --- a/temporalio/nexus/system/workflow_service/services.py +++ b/temporalio/nexus/system/workflow_service/services.py @@ -1,4 +1,4 @@ -# Generated by nexgen v0.2.2. DO NOT EDIT! +# Generated by nexgen v0.2.8. DO NOT EDIT! from __future__ import annotations diff --git a/temporalio/plugin.py b/temporalio/plugin.py index 79d372cfa..4aafd35ec 100644 --- a/temporalio/plugin.py +++ b/temporalio/plugin.py @@ -41,6 +41,7 @@ def __init__( self, name: str, *, + version: str = "", data_converter: PluginParameter[temporalio.converter.DataConverter] = None, interceptors: Sequence[ temporalio.client.Interceptor | temporalio.worker.Interceptor @@ -62,6 +63,7 @@ def __init__( Args: name: The name of the plugin. + version: The version of the plugin, reported in worker heartbeats. data_converter: Data converter for serialization, or callable to customize existing one. Applied to the Client and Replayer. interceptors: Interceptors to append. @@ -85,6 +87,7 @@ def __init__( A configured Plugin instance. """ self._name = name + self._version = version self.data_converter = data_converter self.interceptors = interceptors self.activities = activities @@ -98,6 +101,10 @@ def name(self) -> str: """See base class.""" return self._name + def version(self) -> str: + """See base class.""" + return self._version + def configure_client(self, config: ClientConfig) -> ClientConfig: """See base class.""" data_converter = _resolve_parameter( diff --git a/temporalio/service.py b/temporalio/service.py index 6a3a053dd..afcb8fb5b 100644 --- a/temporalio/service.py +++ b/temporalio/service.py @@ -24,7 +24,7 @@ import temporalio.runtime from temporalio.bridge.client import RPCError as BridgeRPCError -__version__ = "1.32.0" +__version__ = "1.36.1" ServiceRequest = TypeVar("ServiceRequest", bound=google.protobuf.message.Message) ServiceResponse = TypeVar("ServiceResponse", bound=google.protobuf.message.Message) @@ -239,6 +239,7 @@ class ConnectConfig: dns_load_balancing_config: DnsLoadBalancingConfig | None = None grpc_compression: GrpcCompression = GrpcCompression.GZIP payload_limits: PayloadLimitsConfig = field(default_factory=PayloadLimitsConfig) + connect_timeout: timedelta | None = None def __post_init__(self) -> None: """Set extra defaults on unset properties.""" @@ -287,6 +288,11 @@ def _to_bridge_config(self) -> temporalio.bridge.client.ClientConfig: if self.keep_alive_config else None ), + connect_timeout_millis=( + int(self.connect_timeout.total_seconds() * 1000) + if self.connect_timeout is not None + else None + ), metadata=self.rpc_metadata, identity=self.identity, client_name="temporal-python", @@ -418,6 +424,8 @@ def __init__(self, config: ConnectConfig) -> None: self._bridge_config = config._to_bridge_config() self._bridge_client: temporalio.bridge.client.Client | None = None self._bridge_client_connect_lock = asyncio.Lock() + # Runtime we connected with, so the default one if none was set + self._runtime: temporalio.runtime.Runtime | None = None async def _connected_client(self) -> temporalio.bridge.client.Client: # Fast path avoids touching the lock once connected. This keeps the @@ -433,6 +441,7 @@ async def _connected_client(self) -> temporalio.bridge.client.Client: runtime._core_runtime, self._bridge_config, ) + self._runtime = runtime return self._bridge_client @property diff --git a/temporalio/testing/__init__.py b/temporalio/testing/__init__.py index ac534b953..0cd652d86 100644 --- a/temporalio/testing/__init__.py +++ b/temporalio/testing/__init__.py @@ -1,9 +1,12 @@ """Test framework for workflows and activities.""" from ._activity import ActivityEnvironment +from ._timeskipping import TimeSkipper, TimeSkippingConfig from ._workflow import WorkflowEnvironment __all__ = [ "ActivityEnvironment", + "TimeSkipper", "WorkflowEnvironment", + "TimeSkippingConfig", ] diff --git a/temporalio/testing/_timeskipping.py b/temporalio/testing/_timeskipping.py new file mode 100644 index 000000000..a5add56da --- /dev/null +++ b/temporalio/testing/_timeskipping.py @@ -0,0 +1,372 @@ +"""Per-workflow time-skipping API and testing helper.""" + +from __future__ import annotations + +import uuid +from collections.abc import Iterator +from contextlib import contextmanager +from dataclasses import dataclass +from datetime import datetime, timedelta, timezone +from typing import Any + +import google.protobuf.field_mask_pb2 + +import temporalio.api.common.v1 +import temporalio.api.enums.v1.event_type_pb2 as _event_type +import temporalio.api.workflow.v1 +import temporalio.api.workflowservice.v1 +import temporalio.client +from temporalio.api.enums.v1.time_skipping_pb2 import FastForwardPollingResult + + +@dataclass(frozen=True) +class FastForwardConfig: + """One-shot fast-forward within a :py:class:`TimeSkippingConfig`. + + .. warning:: + This API is experimental and unstable. + """ + + id: str + """Identifies this fast-forward for ``PollWorkflowExecutionTimeSkipping``.""" + + duration: timedelta + """Advance the workflow's virtual time by this amount. Time skipping + auto-disables when the target time is reached.""" + + def _to_proto(self) -> temporalio.api.common.v1.FastForwardConfig: + proto = temporalio.api.common.v1.FastForwardConfig(id=self.id) + proto.duration.FromTimedelta(self.duration) + return proto + + +@dataclass(frozen=True) +class TimeSkippingConfig: + """Per-workflow time skipping configuration. + + .. warning:: + This API is experimental and unstable. + """ + + enabled: bool = True + """Whether time skipping is enabled for the workflow.""" + + fast_forward_config: FastForwardConfig | None = None + """One-shot fast-forward. ``None`` means skip unbounded until completion + (when :py:attr:`enabled` is true) or no skipping at all (when it is false).""" + + disable_propagation: bool = False + """If true, child workflows do not inherit the ``enabled`` flag. Virtual + start time inherits regardless.""" + + max_session_skip_count: int = 0 + """Max skips permitted within one time-skipping session (from when + skipping is enabled until it is disabled). Once reached, the server + auto-disables time skipping. Use ``0`` for server default.""" + + def __post_init__(self) -> None: + """Validates that a fast-forward isn't configured with skipping off.""" + if not self.enabled and self.fast_forward_config is not None: + raise ValueError("fast_forward_config cannot be set when enabled is False") + + def _to_proto(self) -> temporalio.api.common.v1.TimeSkippingConfig: + proto = temporalio.api.common.v1.TimeSkippingConfig( + enabled=self.enabled, + disable_propagation=self.disable_propagation, + max_session_skip_count=self.max_session_skip_count, + ) + if self.fast_forward_config is not None: + proto.fast_forward_config.CopyFrom(self.fast_forward_config._to_proto()) + return proto + + +_TERMINAL_EVENT_TYPES = frozenset( + { + _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED, + _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_FAILED, + _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT, + _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED, + _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED, + _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW, + } +) + + +class TimeSkipper: + """Client wrapper for per-workflow time skipping. + + .. warning:: + This API is experimental and unstable. + + Wraps a client with an interceptor that stamps a ``TimeSkippingConfig`` + on every workflow started through :py:attr:`client`. Use + :py:meth:`fast_forward` to advance a running workflow's virtual clock + (awaited the call to :py:meth:`fast_forward` waits for the fast-forward + to complete and the transition event to fire). + + In tests, the same functionality is available via + :py:class:`WorkflowEnvironment.start_time_skipping_v2`. Use + ``TimeSkipper`` directly outside test environments. + """ + + def __init__( + self, + client: temporalio.client.Client, + *, + config: TimeSkippingConfig = TimeSkippingConfig(), + ) -> None: + """Create a time skipper. + + Args: + client: Client to wrap. A cloned client is created; the original + is untouched. + config: Default config stamped on every workflow started via + :py:attr:`client`. + """ + self._config = config + self._ts_enabled = True + client_config = client.config() + client_config["interceptors"] = [ + *client_config["interceptors"], + _TimeSkippingConfigInterceptor(self), + ] + self._client = temporalio.client.Client(**client_config) + + @property + def client(self) -> temporalio.client.Client: + """Client that stamps time-skipping config on every started workflow.""" + return self._client + + @property + def config(self) -> TimeSkippingConfig: + """Configuration applied to future start_workflow calls.""" + return self._config + + @config.setter + def config(self, value: TimeSkippingConfig) -> None: + self._config = value + + async def fast_forward( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], + duration: timedelta | float | None = None, + /, + ) -> bool: + """Issue a fast-forward on a workflow and wait for it to complete. + + Sends an ``UpdateWorkflowExecutionOptions`` with the new + ``TimeSkippingConfig``. For a bounded ``duration``, long-polls + ``PollWorkflowExecutionTimeSkipping`` for completion, which + follows the workflow across multiple runs. + + Args: + handle: Target workflow execution. + duration: One-shot advance by this amount (``timedelta`` or + seconds as a ``float``). If ``None``, enable unbounded + skipping and wait for the workflow to terminate. + + Returns: + For a bounded ``duration``: True if the fast-forward completes, + False if the workflow chain terminates first. Raises + ``RuntimeError`` if the fast-forward id is overridden by a later + fast-forward. For ``duration=None``: always False (there is no + fast-forward completion to observe; the call waits until the + workflow's terminal event). + """ + if duration is not None and not isinstance(duration, timedelta): + duration = timedelta(seconds=duration) + if duration is None: + return await self._wait_for_unbounded_fast_forward_completion(handle) + fast_forward_id = str(uuid.uuid4()) + await self._update_time_skipping_config( + handle, + TimeSkippingConfig( + enabled=True, + fast_forward_config=FastForwardConfig( + id=fast_forward_id, duration=duration + ), + disable_propagation=self._config.disable_propagation, + max_session_skip_count=self._config.max_session_skip_count, + ), + ) + return await self._poll_fast_forward_completion(handle, fast_forward_id) + + async def _wait_for_unbounded_fast_forward_completion( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], + ) -> bool: + """Enable unbounded time skipping and wait for the workflow to terminate. + + There is no fast-forward id to poll on, so we watch history events + for a terminal event on the current run. Always returns False — + unbounded skipping has no completion event of its own; the wait + ends on the workflow's terminal event. + """ + await self._update_time_skipping_config( + handle, + TimeSkippingConfig( + enabled=True, + disable_propagation=self._config.disable_propagation, + max_session_skip_count=self._config.max_session_skip_count, + ), + ) + async for event in handle.fetch_history_events(wait_new_event=True): + if event.event_type in _TERMINAL_EVENT_TYPES: + return False + return False + + async def _poll_fast_forward_completion( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], + fast_forward_id: str, + ) -> bool: + """Long-poll for a bounded fast-forward to complete. + + Passes ``run_id=""`` so the server resolves to the current run in + the chain (retry / CAN / cron) and follows the FF across the chain + boundary. Retries on server-side long-poll timeout until a + terminal poll result arrives. + """ + req = ( + temporalio.api.workflowservice.v1.PollWorkflowExecutionTimeSkippingRequest( + namespace=self._client.namespace, + workflow_execution=temporalio.api.common.v1.WorkflowExecution( + workflow_id=handle.id, + run_id="", + ), + fast_forward_id=fast_forward_id, + ) + ) + while True: + resp = await self._client.workflow_service.poll_workflow_execution_time_skipping( + req, retry=True + ) + if ( + resp.fast_forward_polling_result + == FastForwardPollingResult.FAST_FORWARD_POLLING_RESULT_FAST_FORWARD_COMPLETED + ): + return True + if ( + resp.fast_forward_polling_result + == FastForwardPollingResult.FAST_FORWARD_POLLING_RESULT_FAST_FORWARD_FAILED + ): + # An ID mismatch means this fast-forward was overridden by a laster one, + # so raise in that case; otherwise, return False. + if "fast_forward_id does not match" in resp.failed_reason: + raise RuntimeError( + f"PollWorkflowExecutionTimeSkipping failed for id " + f"{fast_forward_id!r}: {resp.failed_reason}: overridden by a " + "later fast-forward." + ) + return False + + async def get_time_skipping_info( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], + ) -> temporalio.api.common.v1.TimeSkippingInfo | None: + """Fetch a workflow's ``TimeSkippingInfo`` via ``DescribeWorkflowExecution``. + + Returns ``None`` if time skipping has never been enabled on the + workflow. + """ + desc = await handle.describe() + ext = desc.raw_description.workflow_extended_info + if not ext.HasField("time_skipping_info"): + return None + return ext.time_skipping_info + + async def get_current_time( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], + ) -> datetime: + """Get a workflow's current virtual time. + + Reads ``TimeSkippingInfo.current_time`` via + :py:meth:`get_time_skipping_info`. If time skipping has never been + enabled on the workflow, falls back to wall-clock time (the two + coincide when no skipping has ever happened). + """ + tsi = await self.get_time_skipping_info(handle) + if tsi is None: + return datetime.now(timezone.utc) + return tsi.current_time.ToDatetime().replace(tzinfo=timezone.utc) + + async def _update_time_skipping_config( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], + config: TimeSkippingConfig, + ) -> temporalio.api.workflowservice.v1.UpdateWorkflowExecutionOptionsResponse: + """Replace the stored time-skipping config for a running workflow. + + The server accepts the whole ``TimeSkippingConfig`` field only, so + callers must send a complete config. Public callers should use + :py:meth:`fast_forward`. + """ + return await self._client.workflow_service.update_workflow_execution_options( + temporalio.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest( + namespace=self._client.namespace, + workflow_execution=temporalio.api.common.v1.WorkflowExecution( + workflow_id=handle.id, + run_id=handle.run_id or "", + ), + workflow_execution_options=temporalio.api.workflow.v1.WorkflowExecutionOptions( + time_skipping_config=config._to_proto(), + ), + update_mask=google.protobuf.field_mask_pb2.FieldMask( + paths=["time_skipping_config"], + ), + identity=self._client.identity, + ), + retry=True, + ) + + @contextmanager + def with_time_skipping_disabled(self) -> Iterator[None]: + """Suspend time-skipping config stamping on newly-started workflows within the block. + + Workflows started via :py:attr:`client` inside the block do not get + their ``time_skipping_config`` set; existing workflows are unaffected. + """ + was_enabled = self._ts_enabled + self._ts_enabled = False + try: + yield None + finally: + self._ts_enabled = was_enabled + + +class _TimeSkippingConfigInterceptor(temporalio.client.Interceptor): + def __init__(self, skipper: TimeSkipper) -> None: + super().__init__() + self._skipper = skipper + + def intercept_client( + self, next: temporalio.client.OutboundInterceptor + ) -> temporalio.client.OutboundInterceptor: + return _TimeSkippingConfigOutbound(next, self._skipper) + + +class _TimeSkippingConfigOutbound(temporalio.client.OutboundInterceptor): + def __init__( + self, + next: temporalio.client.OutboundInterceptor, + skipper: TimeSkipper, + ) -> None: + super().__init__(next) + self._skipper = skipper + + async def start_workflow( + self, input: temporalio.client.StartWorkflowInput + ) -> temporalio.client.WorkflowHandle[Any, Any]: + if self._skipper._ts_enabled: + input.time_skipping_config = self._skipper.config._to_proto() + return await super().start_workflow(input) + + async def start_update_with_start_workflow( + self, input: temporalio.client.StartWorkflowUpdateWithStartInput + ) -> temporalio.client.WorkflowUpdateHandle[Any]: + if self._skipper._ts_enabled: + input.start_workflow_input.time_skipping_config = ( + self._skipper.config._to_proto() + ) + return await super().start_update_with_start_workflow(input) diff --git a/temporalio/testing/_workflow.py b/temporalio/testing/_workflow.py index 3ab07e5aa..6c8354162 100644 --- a/temporalio/testing/_workflow.py +++ b/temporalio/testing/_workflow.py @@ -13,8 +13,8 @@ ) import google.protobuf.empty_pb2 -from typing_extensions import Self +import temporalio.api.common.v1 import temporalio.api.nexus.v1 import temporalio.api.operatorservice.v1 import temporalio.api.testservice.v1 @@ -26,6 +26,10 @@ import temporalio.runtime import temporalio.service import temporalio.worker +from temporalio.testing._timeskipping import ( + TimeSkipper, + TimeSkippingConfig, +) logger = logging.getLogger(__name__) @@ -33,15 +37,18 @@ class WorkflowEnvironment: """Workflow environment for testing workflows. - Most developers will want to use the static :py:meth:`start_time_skipping` - to start a test server process that automatically skips time as needed. - Alternatively, :py:meth:`start_local` may be used for a full, local Temporal - server with more features. To use an existing server, use - :py:meth:`from_client`. + Most developers will want to use one of these static methods: + + - :py:meth:`start_local`: start a local, full-featured Temporal server + - :py:meth:`start_time_skipping_v2`: start a local, full-featured Temporal + server with time-skipping enabled + - :py:meth:`start_time_skipping`: start the older, featured-limited Java + test server + - :py:meth:`from_client`: use an existing server - This environment is an async context manager, so it can be used with - ``async with`` to make sure it shuts down properly. Otherwise, - :py:meth:`shutdown` can be manually called. + This environment is an async context manager, so it can be used with ``async + with`` to make sure it shuts down properly. Otherwise, :py:meth:`shutdown` + can be manually called. To use the environment, simply use the :py:attr:`client` on it. @@ -50,11 +57,12 @@ class WorkflowEnvironment: """ @classmethod - def from_client(cls, client: temporalio.client.Client) -> Self: + def from_client(cls, client: temporalio.client.Client) -> WorkflowEnvironment: """Create a workflow environment from the given client. - :py:attr:`supports_time_skipping` will always return ``False`` for this - environment. :py:meth:`sleep` will sleep the actual amount of time and + :py:attr:`supports_time_skipping_v1` and :py:attr:`supports_time_skipping_v2` + will both return ``False`` for this environment. + :py:meth:`sleep` will sleep the actual amount of time and :py:meth:`get_current_time` will return the current time. Args: @@ -63,7 +71,6 @@ def from_client(cls, client: temporalio.client.Client) -> Self: Returns: The workflow environment that runs against the given client. """ - # Add the assertion interceptor return cls(_client_with_interceptors(client, _AssertionErrorInterceptor())) @classmethod @@ -93,15 +100,17 @@ async def start_local( dev_server_download_version: str = "default", dev_server_extra_args: Sequence[str] = [], dev_server_download_ttl: timedelta | None = None, + dev_server_startup_timeout: timedelta | None = None, ui_port: int | None = None, ) -> WorkflowEnvironment: """Start a full Temporal server locally, downloading if necessary. This environment is good for testing full server capabilities, but does - not support time skipping like :py:meth:`start_time_skipping` does. - :py:attr:`supports_time_skipping` will always return ``False`` for this - environment. :py:meth:`sleep` will sleep the actual amount of time and - :py:meth:`get_current_time` will return the current time. + not support time skipping like :py:meth:`start_time_skipping` or + :py:meth:`start_time_skipping_v2` do. :py:attr:`supports_time_skipping_v1` + and :py:attr:`supports_time_skipping_v2` will both return ``False`` for + this environment. :py:meth:`sleep` will sleep the actual amount of time + and :py:meth:`get_current_time` will return the current time. Internally, this uses the Temporal CLI dev server from https://github.com/temporalio/cli. This is a self-contained binary for @@ -152,86 +161,41 @@ async def start_local( dev_server_extra_args: Extra arguments for the CLI binary. dev_server_download_ttl: TTL for the downloaded CLI binary. If unset, it will be cached indefinitely. + dev_server_startup_timeout: Maximum time to wait for the dev server to + become ready after spawning. Defaults to 5 seconds and does not + include download time. ui_port: UI port to use if UI is enabled. Returns: The started CLI dev server workflow environment. """ - # Use the logger's configured level if none given - if not dev_server_log_level: - if logger.isEnabledFor(logging.DEBUG): - dev_server_log_level = "debug" - elif logger.isEnabledFor(logging.INFO): - dev_server_log_level = "info" - elif logger.isEnabledFor(logging.WARNING): - dev_server_log_level = "warn" - elif logger.isEnabledFor(logging.ERROR): - dev_server_log_level = "error" - else: - dev_server_log_level = "fatal" - # Add search attributes - if search_attributes: - new_args = [] - for attr in search_attributes: - new_args.append("--search-attribute") - new_args.append(f"{attr.name}={attr._metadata_type}") - new_args += dev_server_extra_args - dev_server_extra_args = new_args - - # Start CLI dev server - runtime = runtime or temporalio.runtime.Runtime.default() - download_ttl_ms = None - if dev_server_download_ttl is not None: - download_ttl_ms = int(dev_server_download_ttl.total_seconds() * 1000) - server = await temporalio.bridge.testing.EphemeralServer.start_dev_server( - runtime._core_runtime, - temporalio.bridge.testing.DevServerConfig( - existing_path=dev_server_existing_path, - sdk_name="sdk-python", - sdk_version=temporalio.service.__version__, - download_version=dev_server_download_version, - download_dest_dir=download_dest_dir, - namespace=namespace, - ip=ip, - port=port, - database_filename=dev_server_database_filename, - ui=ui, - ui_port=ui_port, - log_format=dev_server_log_format, - log_level=dev_server_log_level, - extra_args=dev_server_extra_args, - download_ttl_ms=download_ttl_ms, - ), + return await _NonTsWorkflowEnvironment._create( + namespace=namespace, + data_converter=data_converter, + interceptors=interceptors, + plugins=plugins, + default_workflow_query_reject_condition=default_workflow_query_reject_condition, + retry_config=retry_config, + rpc_metadata=rpc_metadata, + identity=identity, + tls=tls, + ip=ip, + port=port, + download_dest_dir=download_dest_dir, + ui=ui, + runtime=runtime, + search_attributes=search_attributes, + dev_server_existing_path=dev_server_existing_path, + dev_server_database_filename=dev_server_database_filename, + dev_server_log_format=dev_server_log_format, + dev_server_log_level=dev_server_log_level, + dev_server_download_version=dev_server_download_version, + dev_server_extra_args=dev_server_extra_args, + dev_server_download_ttl=dev_server_download_ttl, + dev_server_startup_timeout=dev_server_startup_timeout, + ui_port=ui_port, ) - # If we can't connect to the server, we should shut it down - try: - return _EphemeralServerWorkflowEnvironment( - await temporalio.client.Client.connect( - server.target, - namespace=namespace, - data_converter=data_converter, - interceptors=interceptors, - plugins=plugins, - default_workflow_query_reject_condition=default_workflow_query_reject_condition, - tls=tls, - retry_config=retry_config, - rpc_metadata=rpc_metadata, - identity=identity, - runtime=runtime, - ), - server, - ) - except: - try: - await server.shutdown() - except: - logger.warning( - "Failed stopping local server on client connection failure", - exc_info=True, - ) - raise - @classmethod async def start_time_skipping( cls, @@ -251,8 +215,13 @@ async def start_time_skipping( test_server_download_version: str = "default", test_server_extra_args: Sequence[str] = [], test_server_download_ttl: timedelta | None = None, + test_server_startup_timeout: timedelta | None = None, ) -> WorkflowEnvironment: - """Start a time skipping workflow environment. + """Start a V1 time skipping workflow environment. + + This environment uses a legacy Java Temporal server which does not have + feature parity with the full temporal server, and which is no longer + getting new features. By default, this environment will automatically skip to the next events in time when a workflow's @@ -304,59 +273,60 @@ async def start_time_skipping( test_server_extra_args: Extra arguments for the test server binary. test_server_download_ttl: TTL for the downloaded test server binary. If unset, it will be cached indefinitely. + test_server_startup_timeout: Maximum time to wait for the test server to + become ready after spawning. Defaults to 5 seconds and does not + include download time. Returns: The started workflow environment with time skipping. """ - # Start test server - runtime = runtime or temporalio.runtime.Runtime.default() - download_ttl_ms = None - if test_server_download_ttl: - download_ttl_ms = int(test_server_download_ttl.total_seconds() * 1000) - server = await temporalio.bridge.testing.EphemeralServer.start_test_server( - runtime._core_runtime, - temporalio.bridge.testing.TestServerConfig( - existing_path=test_server_existing_path, - sdk_name="sdk-python", - sdk_version=temporalio.service.__version__, - download_version=test_server_download_version, - download_dest_dir=download_dest_dir, - download_ttl_ms=download_ttl_ms, - port=port, - extra_args=test_server_extra_args, - ), + return await _V1WorkflowEnvironment._create( + data_converter=data_converter, + interceptors=interceptors, + plugins=plugins, + default_workflow_query_reject_condition=default_workflow_query_reject_condition, + retry_config=retry_config, + rpc_metadata=rpc_metadata, + identity=identity, + port=port, + download_dest_dir=download_dest_dir, + runtime=runtime, + test_server_existing_path=test_server_existing_path, + test_server_download_version=test_server_download_version, + test_server_extra_args=test_server_extra_args, + test_server_download_ttl=test_server_download_ttl, + test_server_startup_timeout=test_server_startup_timeout, ) - # If we can't connect to the server, we should shut it down - try: - return _EphemeralServerWorkflowEnvironment( - await temporalio.client.Client.connect( - server.target, - data_converter=data_converter, - interceptors=interceptors, - plugins=plugins, - default_workflow_query_reject_condition=default_workflow_query_reject_condition, - retry_config=retry_config, - rpc_metadata=rpc_metadata, - identity=identity, - runtime=runtime, - ), - server, - ) - except: - try: - await server.shutdown() - except: - logger.warning( - "Failed stopping test server on client connection failure", - exc_info=True, - ) - raise + + @classmethod + async def start_time_skipping_v2( + cls, + *, + ts_config: TimeSkippingConfig = TimeSkippingConfig(), + **kwargs: Any, + ) -> WorkflowEnvironment: + """Start a local Temporal server with per-workflow time skipping enabled. + + .. warning:: + This API is experimental and unstable. + + This environment is good for testing full server capabilities, and + supports time skipping. + + Equivalent to :py:meth:`start_local` plus a :py:class:`TimeSkipper` wrap + on the client, which stamps ``time_skipping_config`` on every workflow + started via :py:attr:`client` and exposes :py:meth:`fast_forward` for + driving time skipping on running workflows. Each workflow has its own + virtual clock, unlike time-skipping V1. + + See :py:meth:`start_local` for other keyword arguments. + """ + return await _V2WorkflowEnvironment._create(ts_config=ts_config, **kwargs) def __init__(self, client: temporalio.client.Client) -> None: """Create a workflow environment from a client. - Most users would use a factory methods instead. - + Most users would use a factory method instead. """ self._client = client @@ -411,19 +381,42 @@ async def sleep(self, duration: timedelta | float) -> None: duration.total_seconds() if isinstance(duration, timedelta) else duration ) - async def get_current_time(self) -> datetime: + async def get_current_time( + self, + handle: temporalio.client.WorkflowHandle[Any, Any] | None = None, # pyright: ignore[reportUnusedParameter] + ) -> datetime: """Get the current time known to this environment. - For non-time-skipping environments this is simply the system time. For - time-skipping environments this is whatever time has been skipped to. + System time on non-time-skipping envs; the V1 test server's virtual + clock on V1 envs. On V2 envs a ``handle`` is required — each + workflow has its own virtual clock, read via + ``TimeSkippingInfo.current_time``. + + Args: + handle: On V2 envs, the workflow whose virtual clock to read. + Ignored on non-V2 envs. """ return datetime.now(timezone.utc) @property - def supports_time_skipping(self) -> bool: - """Whether this environment supports time skipping.""" + def supports_time_skipping_v1(self) -> bool: + """True if this environment uses the V1 Java time-skipping server (which has limited server features).""" + return False + + @property + def supports_time_skipping_v2(self) -> bool: + """True if this environment uses the V2 time-skipping server. + + .. warning:: + This API is experimental and unstable. + """ return False + @property + def supports_time_skipping(self) -> bool: + """Whether this environment supports either V1 or V2 time skipping.""" + return self.supports_time_skipping_v1 or self.supports_time_skipping_v2 + async def create_nexus_endpoint( self, endpoint_name: str, task_queue: str ) -> temporalio.api.nexus.v1.Endpoint: @@ -468,67 +461,335 @@ async def delete_nexus_endpoint( @contextmanager def auto_time_skipping_disabled(self) -> Iterator[None]: - """Disable any automatic time skipping if this is a time-skipping - environment. + """Disable V1's SDK-driven auto-unlock-on-result-await for the block. + + Only meaningful on time-skipping V1 envs. No-op on non-time-skipping + envs. Unsupported on V2 envs — use :py:meth:`with_time_skipping_disabled` + to suspend time-skipping config stamping on newly-started workflows + instead. + """ + yield None + + async def fast_forward( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], # pyright: ignore[reportUnusedParameter] + duration: timedelta | float | None = None, # pyright: ignore[reportUnusedParameter] + /, + ) -> bool: + """Fast-forward this workflow's virtual clock by ``duration``, and wait for it to complete. + + .. warning:: + This API is experimental and unstable. + + Only supported on time-skipping V2 environments (created via + :py:meth:`start_time_skipping_v2`). + + Args: + handle: Target workflow execution. + duration: One-shot advance by this amount (``timedelta`` or + seconds as a ``float``). If ``None``, skip time until workflow + completion. - This is a context manager for use via ``with``. Usually in time-skipping - environments, waiting on a workflow result causes time to automatically - skip until the next event. This can disable that. However, this only - applies to results awaited inside this context. This will not disable - automatic time skipping on previous results. + Returns: + True if the fast-forward transition is observed; False if the + workflow terminates first. + + Raises: + RuntimeError: If called on a V1 or non-time-skipping environment. + """ + raise RuntimeError( + "fast_forward requires a time-skipping environment; use " + "WorkflowEnvironment.start_time_skipping_v2()." + ) + + @contextmanager + def with_time_skipping_disabled(self) -> Iterator[None]: + """Suspend V2 time-skipping config stamping on newly-started workflows within the block. + + .. warning:: + This API is experimental and unstable. - This has no effect on non-time-skipping environments. + Workflows started via :py:attr:`client` during the block do not receive + a ``time_skipping_config`` on their start request. Existing workflows + are unaffected. No-op on non-V2 environments. """ - # It's always disabled for this base class yield None + async def get_time_skipping_info( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], # pyright: ignore[reportUnusedParameter] + ) -> temporalio.api.common.v1.TimeSkippingInfo | None: + """Fetch a workflow's ``TimeSkippingInfo`` via ``DescribeWorkflowExecution``. + + .. warning:: + This API is experimental and unstable. + + Returns ``None`` if time skipping has never been enabled on the + workflow. + + Only supported on time-skipping V2 environments (created via + :py:meth:`start_time_skipping_v2`). + + Raises: + RuntimeError: If called on a V1 or non-time-skipping environment. + """ + raise RuntimeError( + "get_time_skipping_info requires a V2 time-skipping environment; " + "use WorkflowEnvironment.start_time_skipping_v2()." + ) + + +class _HasAServer(WorkflowEnvironment): + """Shared base for envs that own an ``EphemeralServer`` to shut down.""" -class _EphemeralServerWorkflowEnvironment(WorkflowEnvironment): def __init__( self, client: temporalio.client.Client, server: temporalio.bridge.testing.EphemeralServer, ) -> None: - # Add assertion interceptor to client and if time skipping is supported, - # add time skipping interceptor - self._supports_time_skipping = server.has_test_service - interceptors: list[temporalio.client.Interceptor] = [ - _AssertionErrorInterceptor() - ] - if self._supports_time_skipping: - interceptors.append(_TimeSkippingClientInterceptor(self)) - super().__init__(_client_with_interceptors(client, *interceptors)) + super().__init__(client) self._server = server - self._auto_time_skipping = True async def shutdown(self) -> None: await self._server.shutdown() + @classmethod + async def _bootstrap_dev_server( + cls, + *, + namespace: str = "default", + data_converter: temporalio.converter.DataConverter = temporalio.converter.DataConverter.default, + interceptors: Sequence[temporalio.client.Interceptor] = [], + plugins: Sequence[temporalio.client.Plugin] = [], + default_workflow_query_reject_condition: None + | (temporalio.common.QueryRejectCondition) = None, + retry_config: temporalio.service.RetryConfig | None = None, + rpc_metadata: Mapping[str, str | bytes] = {}, + identity: str | None = None, + tls: bool | temporalio.service.TLSConfig = False, + ip: str = "127.0.0.1", + port: int | None = None, + download_dest_dir: str | None = None, + ui: bool = False, + runtime: temporalio.runtime.Runtime | None = None, + search_attributes: Sequence[temporalio.common.SearchAttributeKey] = (), + dev_server_existing_path: str | None = None, + dev_server_database_filename: str | None = None, + dev_server_log_format: str = "pretty", + dev_server_log_level: str | None = "warn", + dev_server_download_version: str = "default", + dev_server_extra_args: Sequence[str] = [], + dev_server_download_ttl: timedelta | None = None, + dev_server_startup_timeout: timedelta | None = None, + ui_port: int | None = None, + ) -> tuple[ + temporalio.bridge.testing.EphemeralServer, + temporalio.client.Client, + ]: + """Start a CLI dev server and connect a client. Shared by non-ts and V2.""" + if not dev_server_log_level: + if logger.isEnabledFor(logging.DEBUG): + dev_server_log_level = "debug" + elif logger.isEnabledFor(logging.INFO): + dev_server_log_level = "info" + elif logger.isEnabledFor(logging.WARNING): + dev_server_log_level = "warn" + elif logger.isEnabledFor(logging.ERROR): + dev_server_log_level = "error" + else: + dev_server_log_level = "fatal" + if search_attributes: + new_args: list[str] = [] + for attr in search_attributes: + new_args.append("--search-attribute") + new_args.append(f"{attr.name}={attr._metadata_type}") + new_args += dev_server_extra_args + dev_server_extra_args = new_args + + runtime = runtime or temporalio.runtime.Runtime.default() + download_ttl_ms = None + if dev_server_download_ttl is not None: + download_ttl_ms = int(dev_server_download_ttl.total_seconds() * 1000) + server = await temporalio.bridge.testing.EphemeralServer.start_dev_server( + runtime._core_runtime, + temporalio.bridge.testing.DevServerConfig( + existing_path=dev_server_existing_path, + sdk_name="sdk-python", + sdk_version=temporalio.service.__version__, + download_version=dev_server_download_version, + download_dest_dir=download_dest_dir, + namespace=namespace, + ip=ip, + port=port, + database_filename=dev_server_database_filename, + ui=ui, + ui_port=ui_port, + log_format=dev_server_log_format, + log_level=dev_server_log_level, + extra_args=dev_server_extra_args, + download_ttl_ms=download_ttl_ms, + startup_timeout_ms=int( + dev_server_startup_timeout.total_seconds() * 1000 + ) + if dev_server_startup_timeout is not None + else None, + ), + ) + + try: + client = await temporalio.client.Client.connect( + server.target, + namespace=namespace, + data_converter=data_converter, + interceptors=interceptors, + plugins=plugins, + default_workflow_query_reject_condition=default_workflow_query_reject_condition, + tls=tls, + retry_config=retry_config, + rpc_metadata=rpc_metadata, + identity=identity, + runtime=runtime, + ) + except: + try: + await server.shutdown() + except: + logger.warning( + "Failed stopping dev server on client connection failure", + exc_info=True, + ) + raise + return server, client + + +class _NonTsWorkflowEnvironment(_HasAServer): + """Dev-server env with no time skipping.""" + + def __init__( + self, + client: temporalio.client.Client, + server: temporalio.bridge.testing.EphemeralServer, + ) -> None: + super().__init__( + _client_with_interceptors(client, _AssertionErrorInterceptor()), + server, + ) + + @classmethod + async def _create(cls, **kwargs: Any) -> _NonTsWorkflowEnvironment: + server, client = await cls._bootstrap_dev_server(**kwargs) + return cls(client, server) + + +class _V1WorkflowEnvironment(_HasAServer): + """Java test-server env with global-clock time skipping.""" + + def __init__( + self, + client: temporalio.client.Client, + server: temporalio.bridge.testing.EphemeralServer, + ) -> None: + self._auto_time_skipping = True + super().__init__( + _client_with_interceptors( + client, + _AssertionErrorInterceptor(), + _TimeSkippingClientInterceptor(self), + ), + server, + ) + + @classmethod + async def _create( + cls, + *, + data_converter: temporalio.converter.DataConverter, + interceptors: Sequence[temporalio.client.Interceptor], + plugins: Sequence[temporalio.client.Plugin], + default_workflow_query_reject_condition: None + | (temporalio.common.QueryRejectCondition), + retry_config: temporalio.service.RetryConfig | None, + rpc_metadata: Mapping[str, str | bytes], + identity: str | None, + port: int | None, + download_dest_dir: str | None, + runtime: temporalio.runtime.Runtime | None, + test_server_existing_path: str | None, + test_server_download_version: str, + test_server_extra_args: Sequence[str], + test_server_download_ttl: timedelta | None, + test_server_startup_timeout: timedelta | None, + ) -> _V1WorkflowEnvironment: + runtime = runtime or temporalio.runtime.Runtime.default() + download_ttl_ms = None + if test_server_download_ttl: + download_ttl_ms = int(test_server_download_ttl.total_seconds() * 1000) + server = await temporalio.bridge.testing.EphemeralServer.start_test_server( + runtime._core_runtime, + temporalio.bridge.testing.TestServerConfig( + existing_path=test_server_existing_path, + sdk_name="sdk-python", + sdk_version=temporalio.service.__version__, + download_version=test_server_download_version, + download_dest_dir=download_dest_dir, + download_ttl_ms=download_ttl_ms, + port=port, + extra_args=test_server_extra_args, + startup_timeout_ms=int( + test_server_startup_timeout.total_seconds() * 1000 + ) + if test_server_startup_timeout is not None + else None, + ), + ) + try: + client = await temporalio.client.Client.connect( + server.target, + data_converter=data_converter, + interceptors=interceptors, + plugins=plugins, + default_workflow_query_reject_condition=default_workflow_query_reject_condition, + retry_config=retry_config, + rpc_metadata=rpc_metadata, + identity=identity, + runtime=runtime, + ) + except: + try: + await server.shutdown() + except: + logger.warning( + "Failed stopping test server on client connection failure", + exc_info=True, + ) + raise + return cls(client, server) + async def sleep(self, duration: timedelta | float) -> None: - # Use regular sleep if no time skipping - if not self._supports_time_skipping: - return await super().sleep(duration) + """Virtual-clock sleep via the V1 test server's ``test_service``.""" req = temporalio.api.testservice.v1.SleepRequest() req.duration.FromTimedelta( duration if isinstance(duration, timedelta) else timedelta(seconds=duration) ) await self._client.test_service.unlock_time_skipping_with_sleep(req) - async def get_current_time(self) -> datetime: - # Use regular time if no time skipping - if not self._supports_time_skipping: - return await super().get_current_time() + async def get_current_time( + self, + handle: temporalio.client.WorkflowHandle[Any, Any] | None = None, + ) -> datetime: + """V1 test server's virtual clock.""" resp = await self._client.test_service.get_current_time( google.protobuf.empty_pb2.Empty() ) return resp.time.ToDatetime().replace(tzinfo=timezone.utc) @property - def supports_time_skipping(self) -> bool: - return self._supports_time_skipping + def supports_time_skipping_v1(self) -> bool: + return True @contextmanager def auto_time_skipping_disabled(self) -> Iterator[None]: + """Disable V1's SDK-driven auto-unlock-on-result-await for the block.""" already_disabled = not self._auto_time_skipping self._auto_time_skipping = False try: @@ -539,25 +800,20 @@ def auto_time_skipping_disabled(self) -> Iterator[None]: @asynccontextmanager async def time_skipping_unlocked(self) -> AsyncIterator[None]: - # If it's disabled or not supported, no locking/unlocking, just yield - # and return - if not self._supports_time_skipping or not self._auto_time_skipping: + if not self._auto_time_skipping: yield None return - # Unlock to start time skipping, lock again to stop it - await self.client.test_service.unlock_time_skipping( + await self._client.test_service.unlock_time_skipping( temporalio.api.testservice.v1.UnlockTimeSkippingRequest() ) try: yield None - # Lock it back, throwing on error - await self.client.test_service.lock_time_skipping( + await self._client.test_service.lock_time_skipping( temporalio.api.testservice.v1.LockTimeSkippingRequest() ) except: - # Lock it back, swallowing error try: - await self.client.test_service.lock_time_skipping( + await self._client.test_service.lock_time_skipping( temporalio.api.testservice.v1.LockTimeSkippingRequest() ) except: @@ -565,6 +821,84 @@ async def time_skipping_unlocked(self) -> AsyncIterator[None]: raise +class _V2WorkflowEnvironment(_HasAServer): + """Dev-server env with per-workflow time skipping via ``TimeSkipper``.""" + + def __init__( + self, + client: temporalio.client.Client, + server: temporalio.bridge.testing.EphemeralServer, + ts_config: TimeSkippingConfig, + ) -> None: + wrapped = _client_with_interceptors(client, _AssertionErrorInterceptor()) + self._ts_skipper = TimeSkipper(wrapped, config=ts_config) + super().__init__(self._ts_skipper.client, server) + + @classmethod + async def _create( + cls, + *, + ts_config: TimeSkippingConfig, + **kwargs: Any, + ) -> _V2WorkflowEnvironment: + server, client = await cls._bootstrap_dev_server(**kwargs) + return cls(client, server, ts_config) + + async def sleep(self, duration: timedelta | float) -> None: + """Unsupported on V2 — use :py:meth:`fast_forward` instead.""" + raise RuntimeError( + "env.sleep is not supported in time-skipping V2 environments; use " + "env.fast_forward(handle, duration) on a specific workflow." + ) + + async def get_current_time( + self, + handle: temporalio.client.WorkflowHandle[Any, Any] | None = None, + ) -> datetime: + """A workflow's current virtual time. Requires a ``handle`` on V2.""" + if handle is None: + raise RuntimeError( + "env.get_current_time requires a workflow handle in " + "time-skipping V2 environments; each workflow has its " + "own virtual clock." + ) + return await self._ts_skipper.get_current_time(handle) + + @property + def supports_time_skipping_v2(self) -> bool: + return True + + @contextmanager + def auto_time_skipping_disabled(self) -> Iterator[None]: + """Unsupported on V2 — use :py:meth:`with_time_skipping_disabled` instead.""" + raise RuntimeError( + "env.auto_time_skipping_disabled is not supported in " + "time-skipping V2 environments; use " + "env.with_time_skipping_disabled() to suspend time-skipping config " + "stamping on newly-started workflows." + ) + yield None # pyright: ignore[reportUnreachable] # unreachable; makes this a generator for @contextmanager + + async def fast_forward( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], + duration: timedelta | float | None = None, + /, + ) -> bool: + return await self._ts_skipper.fast_forward(handle, duration) + + @contextmanager + def with_time_skipping_disabled(self) -> Iterator[None]: + with self._ts_skipper.with_time_skipping_disabled(): + yield None + + async def get_time_skipping_info( + self, + handle: temporalio.client.WorkflowHandle[Any, Any], + ) -> temporalio.api.common.v1.TimeSkippingInfo | None: + return await self._ts_skipper.get_time_skipping_info(handle) + + class _AssertionErrorInterceptor( temporalio.client.Interceptor, temporalio.worker.Interceptor ): @@ -600,7 +934,7 @@ def assert_error_as_app_error(self) -> Iterator[None]: class _TimeSkippingClientInterceptor(temporalio.client.Interceptor): - def __init__(self, env: _EphemeralServerWorkflowEnvironment) -> None: # type: ignore[reportMissingSuperCall] + def __init__(self, env: _V1WorkflowEnvironment) -> None: # type: ignore[reportMissingSuperCall] self.env = env def intercept_client( @@ -613,7 +947,7 @@ class _TimeSkippingClientOutboundInterceptor(temporalio.client.OutboundIntercept def __init__( self, next: temporalio.client.OutboundInterceptor, - env: _EphemeralServerWorkflowEnvironment, + env: _V1WorkflowEnvironment, ) -> None: super().__init__(next) self.env = env @@ -621,7 +955,6 @@ def __init__( async def start_workflow( self, input: temporalio.client.StartWorkflowInput ) -> temporalio.client.WorkflowHandle[Any, Any]: - # We need to change the class of the handle so we can override result handle = cast(_TimeSkippingWorkflowHandle, await super().start_workflow(input)) handle.__class__ = _TimeSkippingWorkflowHandle handle.env = self.env @@ -629,7 +962,7 @@ async def start_workflow( class _TimeSkippingWorkflowHandle(temporalio.client.WorkflowHandle): - env: _EphemeralServerWorkflowEnvironment # type: ignore[reportUninitializedInstanceAttribute] + env: _V1WorkflowEnvironment # type: ignore[reportUninitializedInstanceAttribute] async def result( self, @@ -649,7 +982,6 @@ async def result( def _client_with_interceptors( client: temporalio.client.Client, *interceptors: temporalio.client.Interceptor ) -> temporalio.client.Client: - # Shallow clone client and add interceptors config = client.config() config_interceptors = list(config["interceptors"]) config_interceptors.extend(interceptors) diff --git a/temporalio/worker/_activity.py b/temporalio/worker/_activity.py index ded3047fc..79af99070 100644 --- a/temporalio/worker/_activity.py +++ b/temporalio/worker/_activity.py @@ -32,6 +32,7 @@ import temporalio.client import temporalio.common import temporalio.converter +import temporalio.converter._serialization_context import temporalio.exceptions from temporalio.converter import ( StorageDriverActivityInfo, @@ -95,6 +96,17 @@ def __init__( f"Activity named {defn.name} is a class instead of an instance" ) + # A plain function whose first parameter is "self" is almost always + # a method referenced from the class instead of from an instance + if inspect.isfunction(activity): + params = list(inspect.signature(activity).parameters) + if params and params[0] == "self": + warnings.warn( + f"Activity named {defn.name} has a first parameter named self " + "but is not bound to an instance, did you mean to register it " + "from an instance of the class?" + ) + # Some extra requirements for sync functions if not defn.is_async: if not activity_executor: @@ -154,9 +166,8 @@ async def raise_from_exception_queue() -> NoReturn: if task.HasField("start"): # Cancelled event and sync field will be updated inside - # _run_activity when the activity function is obtained. Max - # size of 1000 should be plenty for the heartbeat queue. - activity = _RunningActivity(pending_heartbeats=asyncio.Queue(1000)) + # _run_activity when the activity function is obtained. + activity = _RunningActivity() activity.task = asyncio.create_task( self._handle_start_activity_task( task.task_token, task.start, activity @@ -197,7 +208,14 @@ async def drain_poll_queue(self) -> None: async def wait_all_completed(self) -> None: running_tasks = [v.task for v in self._running_activities.values() if v.task] if running_tasks: - await asyncio.gather(*running_tasks, return_exceptions=False) + # Never let a task exception escape and stall shutdown + for result in await asyncio.gather(*running_tasks, return_exceptions=True): + if isinstance(result, BaseException) and not isinstance( + result, asyncio.CancelledError + ): + logger.warning( + "Activity task raised during worker shutdown", exc_info=result + ) def _handle_cancel_activity_task( self, @@ -223,14 +241,14 @@ def _heartbeat(self, task_token: bytes, *details: Any) -> None: # converter is async, we have to schedule it. If the activity is done, # we do not schedule any more. Technically this should be impossible to # call if the activity is done because this sync call can only be called - # inside the activity and done is set to False when the activity + # inside the activity and done is set to True when the activity # returns. logger = temporalio.activity.logger activity = self._running_activities.get(task_token) if activity and not activity.done: - # Put on queue and schedule a task. We will let the queue-full error - # be thrown here. - activity.pending_heartbeats.put_nowait(details) + # Only the newest heartbeat gets sent, so it replaces one that hasn't + # been picked up yet + activity.pending_heartbeat = details activity.last_heartbeat_task = asyncio.create_task( self._heartbeat_async(logger, activity, task_token) ) @@ -241,27 +259,45 @@ async def _heartbeat_async( activity: _RunningActivity, task_token: bytes, ) -> None: - # Drain the queue, only taking the last value to actually heartbeat - details: Sequence[Any] | None = None - while not activity.pending_heartbeats.empty(): - details = activity.pending_heartbeats.get_nowait() + # One heartbeat at a time, so a slow encode can't let an older heartbeat + # reach core after a newer one + async with activity.heartbeat_lock: + await self._send_latest_heartbeat(logger, activity, task_token) + + async def _send_latest_heartbeat( + self, + logger: logging.LoggerAdapter, + activity: _RunningActivity, + task_token: bytes, + ) -> None: + # Nothing to send if an earlier task already sent the newest heartbeat + details = activity.pending_heartbeat + activity.pending_heartbeat = None if details is None: return - data_converter = self._data_converter + data_converter = self._data_converter._with_store_context( + StorageDriverStoreContext(namespace=self._client.namespace) + ) if activity.info: - context = temporalio.converter.ActivitySerializationContext( - namespace=activity.info.namespace, - workflow_id=activity.info.workflow_id, - workflow_type=activity.info.workflow_type, - activity_type=activity.info.activity_type, - activity_id=activity.info.activity_id, - activity_task_queue=self._task_queue, - is_local=activity.info.is_local, + # The server puts a standalone activity's last heartbeat details into its timeout + # failure, which goes back to the Nexus caller if a Nexus handler started it + context: temporalio.converter.SerializationContext = ( + activity.info.nexus_serialization_context + or temporalio.converter.ActivitySerializationContext( + namespace=activity.info.namespace, + workflow_id=activity.info.workflow_id, + workflow_type=activity.info.workflow_type, + activity_type=activity.info.activity_type, + activity_id=activity.info.activity_id, + activity_task_queue=self._task_queue, + is_local=activity.info.is_local, + ) ) data_converter = data_converter._with_contexts( context, StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverActivityInfo( id=activity.info.activity_id, type=activity.info.activity_type, @@ -345,13 +381,43 @@ async def _handle_start_activity_task( namespace=ns, ) data_converter = self._data_converter._with_contexts( - context, StorageDriverStoreContext(target=store_target) + context, + StorageDriverStoreContext( + namespace=self._client.namespace, target=store_target + ), ) - try: - result = await self._execute_activity( - start, running_activity, task_token, data_converter + # A standalone activity started by a Nexus operation handler returns its result and + # failure to the Nexus caller, which decodes them with the handler's Nexus context. The + # input keeps the activity context. + nexus_context = temporalio.converter._serialization_context._propagated_nexus_serialization_context( + start + ) + caller_facing_data_converter = ( + self._data_converter._with_contexts( + nexus_context, + StorageDriverStoreContext( + namespace=self._client.namespace, target=store_target + ), ) - [payload] = await data_converter.encode([result]) + if nexus_context + else data_converter + ) + try: + try: + result = await self._execute_activity( + start, + running_activity, + task_token, + data_converter, + caller_facing_data_converter, + nexus_context, + ) + finally: + # The activity code has finished, so a cancel from here on must + # not interrupt reporting its outcome; done stops cancel() from + # cancelling this task + running_activity.done = True + [payload] = await caller_facing_data_converter.encode([result]) completion.result.completed.result.CopyFrom(payload) except BaseException as err: try: @@ -372,7 +438,7 @@ async def _handle_start_activity_task( temporalio.activity.logger.warning( f"Completing as failure during heartbeat with error of type {type(err)}: {err}", ) - await data_converter.encode_failure( + await caller_facing_data_converter.encode_failure( err, completion.result.failed.failure ) elif ( @@ -389,7 +455,7 @@ async def _handle_start_activity_task( temporalio.activity.logger.warning( "Completing as failure due to unhandled cancel error produced by activity pause", ) - await data_converter.encode_failure( + await caller_facing_data_converter.encode_failure( temporalio.exceptions.ApplicationError( type="ActivityPause", message="Unhandled activity cancel error produced by activity pause", @@ -410,7 +476,7 @@ async def _handle_start_activity_task( temporalio.activity.logger.warning( "Completing as failure due to unhandled cancel error produced by activity reset", ) - await data_converter.encode_failure( + await caller_facing_data_converter.encode_failure( temporalio.exceptions.ApplicationError( type="ActivityReset", message="Unhandled activity cancel error produced by activity reset", @@ -428,7 +494,7 @@ async def _handle_start_activity_task( and running_activity.cancelled_by_request ): temporalio.activity.logger.debug("Completing as cancelled") - await data_converter.encode_failure( + await caller_facing_data_converter.encode_failure( # TODO(cretz): Should use some other message? temporalio.exceptions.CancelledError("Cancelled"), completion.result.cancelled.failure, @@ -454,7 +520,7 @@ async def _handle_start_activity_task( exc_info=True, extra={"__temporal_error_identifier": "ActivityFailure"}, ) - await data_converter.encode_failure( + await caller_facing_data_converter.encode_failure( err, completion.result.failed.failure ) # For broken executors, we have to fail the entire worker @@ -472,9 +538,7 @@ async def _handle_start_activity_task( # Do final completion try: - # We mark the activity as done and let the currently running - # heartbeat task finish - running_activity.done = True + # Let the currently running heartbeat task finish if running_activity.last_heartbeat_task: try: await running_activity.last_heartbeat_task @@ -497,6 +561,8 @@ async def _execute_activity( running_activity: _RunningActivity, task_token: bytes, data_converter: temporalio.converter.DataConverter, + caller_facing_data_converter: temporalio.converter.DataConverter, + nexus_context: temporalio.converter.NexusSerializationContext | None, ) -> Any: """Invoke the user's activity function. @@ -586,7 +652,7 @@ async def _execute_activity( heartbeat_details = ( [] if not start.heartbeat_details - else await data_converter.decode(start.heartbeat_details) + else await caller_facing_data_converter.decode(start.heartbeat_details) ) except Exception as err: raise temporalio.exceptions.ApplicationError( @@ -633,6 +699,7 @@ async def _execute_activity( activity_run_id=getattr(start, "run_id", None) if not started_by_workflow else None, + nexus_serialization_context=nexus_context, ) if self._encode_headers: @@ -694,12 +761,13 @@ def assert_activity_valid(self, activity: str) -> None: @dataclass class _RunningActivity: - pending_heartbeats: asyncio.Queue[Sequence[Any]] # Most of these optional values are set before use info: temporalio.activity.Info | None = None task: asyncio.Task | None = None cancelled_event: temporalio.common._CompositeEvent | None = None last_heartbeat_task: asyncio.Task | None = None + pending_heartbeat: Sequence[Any] | None = None + heartbeat_lock: asyncio.Lock = field(default_factory=asyncio.Lock) cancel_thread_raiser: _ThreadExceptionRaiser | None = None sync: bool = False done: bool = False diff --git a/temporalio/worker/_command_aware_visitor.py b/temporalio/worker/_command_aware_visitor.py index 500fc4db5..888c06f29 100644 --- a/temporalio/worker/_command_aware_visitor.py +++ b/temporalio/worker/_command_aware_visitor.py @@ -19,11 +19,14 @@ ) from temporalio.bridge.proto.workflow_commands.workflow_commands_pb2 import ( CompleteWorkflowExecution, + FailWorkflowExecution, ScheduleActivity, ScheduleLocalActivity, ScheduleNexusOperation, SignalExternalWorkflowExecution, StartChildWorkflowExecution, + UpdateResponse, + WorkflowCommand, ) @@ -33,6 +36,7 @@ class CommandInfo: command_type: CommandType.ValueType command_seq: int + update_protocol_instance_id: str | None = None current_command_info: contextvars.ContextVar[CommandInfo | None] = ( @@ -77,6 +81,12 @@ async def _visit_coresdk_workflow_commands_CompleteWorkflowExecution( fs, o ) + async def _visit_coresdk_workflow_commands_FailWorkflowExecution( + self, fs: VisitorFunctions, o: FailWorkflowExecution + ) -> None: + with current_command(CommandType.COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION, 0): + await super()._visit_coresdk_workflow_commands_FailWorkflowExecution(fs, o) + async def _visit_coresdk_workflow_commands_ScheduleActivity( self, fs: VisitorFunctions, o: ScheduleActivity ) -> None: @@ -115,6 +125,29 @@ async def _visit_coresdk_workflow_commands_ScheduleNexusOperation( with current_command(CommandType.COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION, o.seq): await super()._visit_coresdk_workflow_commands_ScheduleNexusOperation(fs, o) + async def _visit_coresdk_workflow_commands_UpdateResponse( + self, fs: VisitorFunctions, o: UpdateResponse + ) -> None: + # Updates have no sequence number, so they're identified by protocol instance ID + with current_command( + CommandType.COMMAND_TYPE_PROTOCOL_MESSAGE, + 0, + update_protocol_instance_id=o.protocol_instance_id, + ): + await super()._visit_coresdk_workflow_commands_UpdateResponse(fs, o) + + async def _visit_coresdk_workflow_commands_WorkflowCommand( + self, fs: VisitorFunctions, o: WorkflowCommand + ) -> None: + if o.HasField("schedule_nexus_operation"): + with current_command( + CommandType.COMMAND_TYPE_SCHEDULE_NEXUS_OPERATION, + o.schedule_nexus_operation.seq, + ): + await super()._visit_coresdk_workflow_commands_WorkflowCommand(fs, o) + else: + await super()._visit_coresdk_workflow_commands_WorkflowCommand(fs, o) + # Workflow activation jobs with payloads async def _visit_coresdk_workflow_activation_ResolveActivity( self, fs: VisitorFunctions, o: ResolveActivity @@ -181,11 +214,18 @@ async def _visit_coresdk_workflow_activation_ResolveNexusOperation( @contextmanager def current_command( - command_type: CommandType.ValueType, command_seq: int + command_type: CommandType.ValueType, + command_seq: int, + *, + update_protocol_instance_id: str | None = None, ) -> Iterator[None]: """Context manager for setting command info.""" token = current_command_info.set( - CommandInfo(command_type=command_type, command_seq=command_seq) + CommandInfo( + command_type=command_type, + command_seq=command_seq, + update_protocol_instance_id=update_protocol_instance_id, + ) ) try: yield diff --git a/temporalio/worker/_interceptor.py b/temporalio/worker/_interceptor.py index 4acf3c5d1..6196f5efe 100644 --- a/temporalio/worker/_interceptor.py +++ b/temporalio/worker/_interceptor.py @@ -4,7 +4,7 @@ import concurrent.futures from collections.abc import Awaitable, Callable, Mapping, MutableMapping, Sequence -from dataclasses import dataclass +from dataclasses import dataclass, field from datetime import timedelta from typing import ( Any, @@ -21,6 +21,9 @@ import temporalio.nexus import temporalio.nexus._util import temporalio.workflow +from temporalio.nexus.system.workflow_service._system_nexus_interceptor import ( + _SystemNexusWorkflowOutboundInterceptorBase, +) from temporalio.workflow import ContinueAsNewVersioningBehavior, VersioningIntent @@ -174,8 +177,12 @@ class ContinueAsNewInput: headers: Mapping[str, temporalio.api.common.v1.Payload] versioning_intent: VersioningIntent | None initial_versioning_behavior: ContinueAsNewVersioningBehavior | None + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None + """.. warning:: + Event Groups is an experimental API and may change without notice. + """ # The types may be absent - arg_types: list[type] | None + arg_types: list[type] | None = None @dataclass @@ -228,6 +235,10 @@ class SignalChildWorkflowInput: args: Sequence[Any] child_workflow_id: str headers: Mapping[str, temporalio.api.common.v1.Payload] + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None + """.. warning:: + Event Groups is an experimental API and may change without notice. + """ @dataclass @@ -240,6 +251,10 @@ class SignalExternalWorkflowInput: workflow_id: str workflow_run_id: str | None headers: Mapping[str, temporalio.api.common.v1.Payload] + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None + """.. warning:: + Event Groups is an experimental API and may change without notice. + """ @dataclass @@ -260,6 +275,12 @@ class StartActivityInput: disable_eager_execution: bool versioning_intent: VersioningIntent | None summary: str | None + event_groups: Sequence[temporalio.workflow.EventGroup] | None = field( + default=None, kw_only=True + ) + """.. warning:: + Event Groups is an experimental API and may change without notice. + """ priority: temporalio.common.Priority # The types may be absent arg_types: list[type] | None @@ -290,6 +311,18 @@ class StartChildWorkflowInput: versioning_intent: VersioningIntent | None static_summary: str | None static_details: str | None + versioning_override: temporalio.common.VersioningOverride | None = field( + default=None, kw_only=True + ) + """.. warning:: + Child workflow versioning overrides are experimental and may change without notice. + """ + event_groups: Sequence[temporalio.workflow.EventGroup] | None = field( + default=None, kw_only=True + ) + """.. warning:: + Event Groups is an experimental API and may change without notice. + """ priority: temporalio.common.Priority # The types may be absent arg_types: list[type] | None @@ -310,6 +343,10 @@ class StartNexusOperationInput(Generic[InputT, OutputT]): cancellation_type: temporalio.workflow.NexusOperationCancellationType headers: Mapping[str, str] | None summary: str | None + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None + """.. warning:: + Event Groups is an experimental API and may change without notice. + """ output_type: type[OutputT] | None = None def __post_init__(self) -> None: @@ -363,10 +400,14 @@ class StartLocalActivityInput: cancellation_type: temporalio.workflow.ActivityCancellationType headers: Mapping[str, temporalio.api.common.v1.Payload] summary: str | None + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None + """.. warning:: + Event Groups is an experimental API and may change without notice. + """ # The types may be absent - arg_types: list[type] | None - ret_type: type | None + arg_types: list[type] | None = None + ret_type: type | None = None class WorkflowInboundInterceptor: @@ -414,12 +455,14 @@ async def handle_update_handler(self, input: HandleUpdateInput) -> Any: return await self.next.handle_update_handler(input) -class WorkflowOutboundInterceptor: +class WorkflowOutboundInterceptor(_SystemNexusWorkflowOutboundInterceptorBase): """Outbound interceptor to wrap calls made from within workflows. This should be extended by any workflow outbound interceptors. """ + next: WorkflowOutboundInterceptor + def __init__(self, next: WorkflowOutboundInterceptor) -> None: """Create the outbound interceptor. @@ -429,6 +472,11 @@ def __init__(self, next: WorkflowOutboundInterceptor) -> None: """ self.next = next + def _next_system_nexus_interceptor( + self, + ) -> _SystemNexusWorkflowOutboundInterceptorBase: + return self.next + def continue_as_new(self, input: ContinueAsNewInput) -> NoReturn: """Called for every :py:func:`temporalio.workflow.continue_as_new` call.""" self.next.continue_as_new(input) @@ -481,6 +529,12 @@ async def start_nexus_operation( """Called for every :py:func:`temporalio.workflow.NexusClient.start_operation` call.""" return await self.next.start_nexus_operation(input) + async def start_system_nexus_operation( + self, input: StartNexusOperationInput[InputT, OutputT] + ) -> temporalio.workflow.NexusOperationHandle[OutputT]: + """Intercept a Temporal System Nexus operation started by a workflow.""" + return await self.next.start_system_nexus_operation(input) + @dataclass class ExecuteNexusOperationStartInput: diff --git a/temporalio/worker/_nexus.py b/temporalio/worker/_nexus.py index 90ba40382..e53efba5a 100644 --- a/temporalio/worker/_nexus.py +++ b/temporalio/worker/_nexus.py @@ -230,18 +230,38 @@ async def _complete_task( await asyncio.shield(self._bridge_worker().complete_nexus_task(completion)) async def _encode_completion( - self, completion: temporalio.bridge.proto.nexus.NexusTaskCompletion + self, + completion: temporalio.bridge.proto.nexus.NexusTaskCompletion, + data_converter: temporalio.converter.DataConverter, ) -> None: - """Apply the payload codec then external storage to the completion's payloads.""" - dc = self._data_converter + """Apply the payload codec, external storage, then the payload codec to + any storage references in the completion's payloads. + """ await PayloadVisitor(skip_search_attributes=True, skip_headers=True).visit( - _PayloadTransformVisitor(dc._encode_payload_sequence), completion + _PayloadTransformVisitor(data_converter._encode_payload_sequence), + completion, ) await PayloadVisitor(skip_search_attributes=True).visit( - _PayloadTransformVisitor(dc._external_store_payload_sequence), + _PayloadTransformVisitor(data_converter._external_store_payload_sequence), + completion, + ) + await PayloadVisitor(skip_search_attributes=True, skip_headers=True).visit( + _PayloadTransformVisitor(data_converter._encode_reference_payload_sequence), completion, ) + def _data_converter_for_nexus_task( + self, endpoint: str, service: str, operation: str + ) -> temporalio.converter.DataConverter: + return self._data_converter._with_contexts( + temporalio.converter.NexusSerializationContext( + endpoint=endpoint, + service=service, + operation=operation, + ), + temporalio.converter.StorageDriverStoreContext(namespace=self._namespace), + ) + # TODO(nexus-preview): stack trace pruning. See sdk-typescript NexusHandler.execute # "Any call up to this function and including this one will be trimmed out of stack traces."" @@ -272,6 +292,9 @@ async def _handle_cancel_operation_task( task_cancellation=task_cancellation, request_deadline=request_deadline, ) + data_converter = self._data_converter_for_nexus_task( + endpoint, request.service, request.operation + ) temporalio.nexus._operation_context._TemporalCancelOperationContext( info=lambda: Info( endpoint=endpoint, @@ -293,7 +316,7 @@ async def _handle_cancel_operation_task( ), ) # No-op but keeps the cancel covered if it ever carries a payload. - await self._encode_completion(completion) + await self._encode_completion(completion, data_converter) except asyncio.CancelledError: completion = temporalio.bridge.proto.nexus.NexusTaskCompletion( task_token=task_token, @@ -305,12 +328,23 @@ async def _handle_cancel_operation_task( completion = temporalio.bridge.proto.nexus.NexusTaskCompletion( task_token=task_token, ) - self._data_converter.failure_converter.to_failure( - handler_error, - self._data_converter.payload_converter, - completion.failure, - ) - await self._encode_completion(completion) + try: + data_converter.failure_converter.to_failure( + handler_error, + data_converter.payload_converter, + completion.failure, + ) + await self._encode_completion(completion, data_converter) + except asyncio.CancelledError: + # Core still needs a completion, or worker shutdown hangs + completion = temporalio.bridge.proto.nexus.NexusTaskCompletion( + task_token=task_token, + ack_cancel=task_cancellation.is_cancelled(), + ) + except Exception as inner_err: + completion = _failure_building_completion( + task_token, err, inner_err + ) await self._complete_task(completion) except Exception: logger.exception("Failed to send Nexus task completion") @@ -336,6 +370,9 @@ async def _handle_start_operation_task( Attempt to execute the user start_operation method and invoke the data converter on the result. Handle errors and send the task completion. """ + data_converter = self._data_converter_for_nexus_task( + endpoint, start_request.service, start_request.operation + ) try: try: start_response = await self._start_operation( @@ -344,6 +381,7 @@ async def _handle_start_operation_task( task_cancellation, request_deadline, endpoint, + data_converter, ) completion = temporalio.bridge.proto.nexus.NexusTaskCompletion( task_token=task_token, @@ -351,7 +389,7 @@ async def _handle_start_operation_task( start_operation=start_response ), ) - await self._encode_completion(completion) + await self._encode_completion(completion, data_converter) except asyncio.CancelledError: completion = temporalio.bridge.proto.nexus.NexusTaskCompletion( task_token=task_token, @@ -363,15 +401,26 @@ async def _handle_start_operation_task( task_token=task_token, ) handler_error = _exception_to_handler_error(err) - self._data_converter.failure_converter.to_failure( - handler_error, - self._data_converter.payload_converter, - completion.failure, - ) if isinstance(err, concurrent.futures.BrokenExecutor): self._fail_worker_exception_queue.put_nowait(err) - await self._encode_completion(completion) + try: + data_converter.failure_converter.to_failure( + handler_error, + data_converter.payload_converter, + completion.failure, + ) + await self._encode_completion(completion, data_converter) + except asyncio.CancelledError: + # Core still needs a completion, or worker shutdown hangs + completion = temporalio.bridge.proto.nexus.NexusTaskCompletion( + task_token=task_token, + ack_cancel=task_cancellation.is_cancelled(), + ) + except Exception as inner_err: + completion = _failure_building_completion( + task_token, err, inner_err + ) await self._complete_task(completion) except Exception: @@ -391,6 +440,7 @@ async def _start_operation( cancellation: nexusrpc.handler.OperationTaskCancellation, request_deadline: datetime | None, endpoint: str, + data_converter: temporalio.converter.DataConverter, ) -> temporalio.api.nexus.v1.StartOperationResponse: """Invoke the Nexus handler's start_operation method and construct the StartOperationResponse. @@ -430,7 +480,7 @@ async def _start_operation( ).set() input = LazyValue( serializer=_NexusPayloadSerializer( - data_converter=self._data_converter, + data_converter=data_converter, payload=start_request.payload, ), headers={}, @@ -450,9 +500,7 @@ async def _start_operation( ) ) elif isinstance(result, nexusrpc.handler.StartOperationResultSync): - [payload] = self._data_converter.payload_converter.to_payloads( - [result.value] - ) + [payload] = data_converter.payload_converter.to_payloads([result.value]) return temporalio.api.nexus.v1.StartOperationResponse( sync_success=temporalio.api.nexus.v1.StartOperationResponse.Sync( payload=payload, @@ -481,9 +529,9 @@ async def _start_operation( ) from err.__cause__ except FailureError as new_err: response = temporalio.api.nexus.v1.StartOperationResponse() - self._data_converter.failure_converter.to_failure( + data_converter.failure_converter.to_failure( new_err, - self._data_converter.payload_converter, + data_converter.payload_converter, response.failure, ) return response @@ -547,6 +595,17 @@ async def deserialize( # payload untouched. payload = temporalio.api.common.v1.Payload() payload.CopyFrom(self.payload) + try: + await PayloadVisitor(skip_search_attributes=True, skip_headers=True).visit( + _PayloadTransformVisitor(dc._decode_reference_payload_sequence), + payload, + ) + except Exception as err: + raise nexusrpc.HandlerError( + "Payload codec failed to decode Nexus operation input storage reference", + type=nexusrpc.HandlerErrorType.INTERNAL, + ) from err + try: await PayloadVisitor(skip_search_attributes=True).visit( _PayloadTransformVisitor(dc._external_retrieve_payload_sequence), @@ -606,6 +665,22 @@ async def deserialize( ) from err +def _failure_building_completion( + task_token: bytes, err: BaseException, inner_err: Exception +) -> temporalio.bridge.proto.nexus.NexusTaskCompletion: + # Core still needs a completion when the failure can't be converted or + # encoded, or the task's slot is never released and shutdown hangs + logger.exception(f"Failed building Nexus failure, original error: {err}") + completion = temporalio.bridge.proto.nexus.NexusTaskCompletion( + task_token=task_token, + ) + completion.failure.message = f"Failed building exception result: {inner_err}" + completion.failure.nexus_handler_failure_info.type = ( + nexusrpc.HandlerErrorType.INTERNAL.name + ) + return completion + + def _exception_to_handler_error(err: BaseException) -> nexusrpc.HandlerError: # Based on sdk-typescript's convertKnownErrors: # https://github.com/temporalio/sdk-typescript/blob/nexus/packages/worker/src/nexus.ts diff --git a/temporalio/worker/_plugin.py b/temporalio/worker/_plugin.py index 969b1d370..d05b56740 100644 --- a/temporalio/worker/_plugin.py +++ b/temporalio/worker/_plugin.py @@ -23,8 +23,6 @@ class Plugin(abc.ABC): Plugins allow customization of worker creation and execution processes through a chain of responsibility pattern. Each plugin can modify the worker configuration or intercept worker execution. - - WARNING: This is an experimental feature and may change in the future. """ def name(self) -> str: @@ -35,6 +33,14 @@ def name(self) -> str: """ return type(self).__module__ + "." + type(self).__qualname__ + def version(self) -> str: + """Get the version of this plugin. Can be overridden to report a version in worker heartbeats. + + Returns: + The version of the plugin. Empty by default. + """ + return "" + @abc.abstractmethod def configure_worker(self, config: WorkerConfig) -> WorkerConfig: """Hook called when creating a worker to allow modification of configuration. diff --git a/temporalio/worker/_replayer.py b/temporalio/worker/_replayer.py index b3eb1a4d1..62a27b29c 100644 --- a/temporalio/worker/_replayer.py +++ b/temporalio/worker/_replayer.py @@ -352,7 +352,9 @@ def on_eviction_hook( nexus_task_poller_behavior=temporalio.bridge.worker.PollerBehaviorSimpleMaximum( 1 ), - plugins=[plugin.name() for plugin in self.plugins], + plugins=[ + (plugin.name(), plugin.version()) for plugin in self.plugins + ], storage_drivers=storage_driver_types, ), ) diff --git a/temporalio/worker/_worker.py b/temporalio/worker/_worker.py index 60f824c4d..e06bb99a4 100644 --- a/temporalio/worker/_worker.py +++ b/temporalio/worker/_worker.py @@ -132,6 +132,7 @@ def __init__( max_task_queue_activities_per_second: float | None = None, max_eager_activity_reservations_per_workflow_task: int = 3, graceful_shutdown_timeout: timedelta = timedelta(), + plugin_shutdown_timeout: timedelta | None = timedelta(seconds=60), workflow_failure_exception_types: Sequence[type[BaseException]] = [], shared_state_manager: SharedStateManager | None = None, debug_mode: bool = False, @@ -141,15 +142,9 @@ def __init__( disable_safe_workflow_eviction: bool = False, deployment_config: WorkerDeploymentConfig | None = None, patch_activation_callback: Callable[[PatchActivationInput], bool] | None = None, - workflow_task_poller_behavior: PollerBehavior = PollerBehaviorSimpleMaximum( - maximum=5 - ), - activity_task_poller_behavior: PollerBehavior = PollerBehaviorSimpleMaximum( - maximum=5 - ), - nexus_task_poller_behavior: PollerBehavior = PollerBehaviorSimpleMaximum( - maximum=5 - ), + workflow_task_poller_behavior: PollerBehavior | None = None, + activity_task_poller_behavior: PollerBehavior | None = None, + nexus_task_poller_behavior: PollerBehavior | None = None, disable_payload_error_limit: bool = False, max_workflow_task_external_storage_concurrency: int = _DEFAULT_WORKFLOW_TASK_EXTERNAL_STORAGE_CONCURRENCY, ) -> None: @@ -172,7 +167,8 @@ def __init__( activity_executor: Concurrent executor to use for non-async activities. This is required if any activities are non-async. :py:class:`concurrent.futures.ThreadPoolExecutor` is - recommended. If this is a + recommended. ``concurrent.futures.InterpreterPoolExecutor`` + is not supported. If this is a :py:class:`concurrent.futures.ProcessPoolExecutor`, all non-async activities must be picklable. ``max_workers`` on the executor should at least be ``max_concurrent_activities`` or a @@ -277,6 +273,12 @@ def __init__( graceful_shutdown_timeout: Amount of time after shutdown is called that activities are given to complete before their tasks are cancelled. + plugin_shutdown_timeout: Amount of time that exiting + ``async with Worker(...)`` waits, after shutdown, for the code + that plugins run after the Worker stops in ``run_worker``. That + code is cancelled after this time. ``None`` waits with no limit. + The default is 60 seconds. + WARNING: This setting is experimental. workflow_failure_exception_types: The types of exceptions that, if a workflow-thrown exception extends, will cause the workflow/update to fail instead of suspending the workflow via @@ -378,6 +380,7 @@ def __init__( max_task_queue_activities_per_second=max_task_queue_activities_per_second, max_eager_activity_reservations_per_workflow_task=max_eager_activity_reservations_per_workflow_task, graceful_shutdown_timeout=graceful_shutdown_timeout, + plugin_shutdown_timeout=plugin_shutdown_timeout, workflow_failure_exception_types=workflow_failure_exception_types, shared_state_manager=shared_state_manager, debug_mode=debug_mode, @@ -417,6 +420,13 @@ def _init_from_config(self, client: temporalio.client.Client, config: WorkerConf Client is safe to take separately since it can't be modified by worker plugins. """ self._config = config + if sys.version_info >= (3, 14) and isinstance( + config.get("activity_executor"), concurrent.futures.InterpreterPoolExecutor + ): + raise ValueError( # pyright: ignore[reportUnreachable] + "InterpreterPoolExecutor is not supported as an activity_executor. " + "Use ThreadPoolExecutor or ProcessPoolExecutor instead." + ) if not ( config.get("activities") or config.get("nexus_service_handlers") @@ -480,10 +490,13 @@ def _init_from_config(self, client: temporalio.client.Client, config: WorkerConf self._async_context_inner_task: asyncio.Task | None = None self._async_context_run_task: asyncio.Task | None = None self._async_context_run_exception: BaseException | None = None + self._async_context_exiting = False self._activity_worker: _ActivityWorker | None = None self._runtime = ( - bridge_client.config.runtime or temporalio.runtime.Runtime.default() + bridge_client._runtime + or bridge_client.config.runtime + or temporalio.runtime.Runtime.default() ) activities = config.get("activities") if activities: @@ -622,7 +635,9 @@ def check_activity(activity: str): maximum=max_activity_polls ) - deduped_plugin_names = list({plugin.name() for plugin in self._plugins}) + deduped_plugins = list( + {(plugin.name(), plugin.version()) for plugin in self._plugins} + ) deduped_storage_driver_types = { driver.type() for driver in self._storage_drivers } @@ -687,12 +702,16 @@ def check_activity(activity: str): else set() ), versioning_strategy=versioning_strategy, - workflow_task_poller_behavior=workflow_task_poller_behavior._to_bridge(), - activity_task_poller_behavior=activity_task_poller_behavior._to_bridge(), - nexus_task_poller_behavior=config[ - "nexus_task_poller_behavior" - ]._to_bridge(), # type: ignore[reportTypedDictNotRequiredAccess,reportOptionalMemberAccess] - plugins=deduped_plugin_names, + workflow_task_poller_behavior=_poller_behavior_to_bridge( + workflow_task_poller_behavior + ), + activity_task_poller_behavior=_poller_behavior_to_bridge( + activity_task_poller_behavior + ), + nexus_task_poller_behavior=_poller_behavior_to_bridge( + config["nexus_task_poller_behavior"] # type: ignore[reportTypedDictNotRequiredAccess] + ), + plugins=deduped_plugins, storage_drivers=deduped_storage_driver_types, disable_payload_error_limit=config.get( "disable_payload_error_limit", False @@ -735,7 +754,7 @@ def client(self, value: temporalio.client.Client) -> None: must be using the same runtime as the current client. """ bridge_client = _extract_bridge_client_for_worker(value) - if self._runtime is not bridge_client.config.runtime: + if self._runtime is not bridge_client._runtime: raise ValueError( "New client is not on the same runtime as the existing client" ) @@ -809,13 +828,20 @@ def make_lambda(plugin: Plugin, next: Callable[[Worker], Awaitable[None]]): await next_function(self) async def _run(self): - # Eagerly validate which will do a namespace check in Core. - await self._bridge_worker.validate() - + # Check before the first await: a bridge worker can only be validated once if self._started: raise RuntimeError("Already started") self._started = True + # Eagerly validate which will do a namespace check in Core. + try: + await self._bridge_worker.validate() + except BaseException: + # Nothing was started, so there is nothing to shut down. Mark + # shutdown complete or shutdown() and async with would wait forever. + self._shutdown_complete_event.set() + raise + # Create a task that raises when a shutdown is requested async def raise_on_shutdown(): try: @@ -950,7 +976,9 @@ async def run(): await self.run() except BaseException as err: self._async_context_run_exception = err - self._async_context_inner_task.cancel() # type: ignore[union-attr] + # After __aexit__ starts, a cancel would stop the caller's code after the block. + if not self._async_context_exiting: + self._async_context_inner_task.cancel() # type: ignore[union-attr] self._async_context_run_task = asyncio.create_task(run()) return self @@ -965,8 +993,21 @@ async def __aexit__(self, exc_type: type[BaseException] | None, *args: Any) -> N if not self._async_context_run_task: raise RuntimeError("Never started") await self.shutdown() - # Cancel our run task - self._async_context_run_task.cancel() + # Plugins can run cleanup code after shutdown. Wait for that code instead of cancelling it. + self._async_context_exiting = True + run_task = self._async_context_run_task + # A plugin's `configure_worker` may drop this key, so default here. + timeout = self._config.get("plugin_shutdown_timeout", timedelta(seconds=60)) + try: + # wait() doesn't raise for the task's own outcome, only when this call is cancelled. + await asyncio.wait( + [run_task], timeout=timeout.total_seconds() if timeout else None + ) + except asyncio.CancelledError: + run_task.cancel() + raise + if not run_task.done(): + run_task.cancel() # Only re-raise our exception if present and exc_type is cancel if exc_type is asyncio.CancelledError and self._async_context_run_exception: raise self._async_context_run_exception @@ -1006,6 +1047,7 @@ class WorkerConfig(TypedDict, total=False): max_task_queue_activities_per_second: float | None max_eager_activity_reservations_per_workflow_task: int graceful_shutdown_timeout: timedelta + plugin_shutdown_timeout: timedelta | None workflow_failure_exception_types: Sequence[type[BaseException]] shared_state_manager: SharedStateManager | None debug_mode: bool @@ -1015,13 +1057,19 @@ class WorkerConfig(TypedDict, total=False): disable_safe_workflow_eviction: bool deployment_config: WorkerDeploymentConfig | None patch_activation_callback: Callable[[PatchActivationInput], bool] | None - workflow_task_poller_behavior: PollerBehavior - activity_task_poller_behavior: PollerBehavior - nexus_task_poller_behavior: PollerBehavior + workflow_task_poller_behavior: PollerBehavior | None + activity_task_poller_behavior: PollerBehavior | None + nexus_task_poller_behavior: PollerBehavior | None disable_payload_error_limit: bool max_workflow_task_external_storage_concurrency: int +def _poller_behavior_to_bridge( + behavior: PollerBehavior | None, +) -> temporalio.bridge.worker.PollerBehavior | None: + return None if behavior is None else behavior._to_bridge() + + def _warn_if_activity_executor_max_workers_is_inconsistent( config: WorkerConfig, ) -> None: diff --git a/temporalio/worker/_workflow.py b/temporalio/worker/_workflow.py index 1b217b4a5..e41db1b47 100644 --- a/temporalio/worker/_workflow.py +++ b/temporalio/worker/_workflow.py @@ -23,6 +23,7 @@ import temporalio.common import temporalio.converter import temporalio.converter._extstore +import temporalio.converter._serialization_context import temporalio.exceptions import temporalio.workflow from temporalio.bridge.worker import PollShutdownError @@ -75,6 +76,29 @@ def _set_external_storage_metrics( target.driver_names.extend(sorted(metrics.driver_names)) +def _take_nexus_previous_run_outcome( + init: temporalio.bridge.proto.workflow_activation.InitializeWorkflow, +) -> temporalio.bridge.proto.workflow_activation.InitializeWorkflow | None: + """Move a Nexus-started workflow's previous run outcome out of ``init``. + + A retried or cron run of a workflow started by a Nexus operation handler receives the previous + run's failure and result, which that run encoded with the Nexus context. The rest of ``init``, + such as the input and memo, keeps the workflow context. + """ + if not init.HasField("propagated_nexus_serialization_context") or not ( + init.HasField("continued_failure") or init.HasField("last_completion_result") + ): + return None + outcome = temporalio.bridge.proto.workflow_activation.InitializeWorkflow() + if init.HasField("continued_failure"): + outcome.continued_failure.CopyFrom(init.continued_failure) + init.ClearField("continued_failure") + if init.HasField("last_completion_result"): + outcome.last_completion_result.CopyFrom(init.last_completion_result) + init.ClearField("last_completion_result") + return outcome + + class _WorkflowWorker: # type:ignore[reportUnusedClass] def __init__( self, @@ -363,6 +387,7 @@ async def _handle_activation( data_converter = self._data_converter._with_contexts( workflow_context, StorageDriverStoreContext( + namespace=self._namespace, target=StorageDriverWorkflowInfo( id=workflow_id, run_id=act.run_id, @@ -376,18 +401,35 @@ async def _handle_activation( ), ) if workflow: - data_converter = _CommandAwareDataConverter.create( - instance=workflow.instance, - context_free_dc=self._data_converter, - workflow_context_dc=data_converter, - workflow_context=workflow_context, - ) + # Resolving a command's context calls into the workflow instance + # (the sandbox, when sandboxed) for every payload sequence, and only + # a codec or external storage can use it. + if data_converter._has_codec_or_external_storage: + data_converter = _CommandAwareDataConverter.create( + instance=workflow.instance, + context_free_dc=self._data_converter, + workflow_context_dc=data_converter, + workflow_context=workflow_context, + ) + else: + # Activation failures are converted with this converter, and + # the command-aware one has no context there. + data_converter = self._data_converter + previous_run_outcome = ( + _take_nexus_previous_run_outcome(init_job) + if not workflow and init_job + else None + ) download_metrics = await temporalio.bridge.worker.decode_activation( act, data_converter, decode_headers=self._encode_headers, storage_concurrency_limit=self._max_workflow_task_external_storage_concurrency, ) + if init_job and previous_run_outcome: + await self._decode_nexus_previous_run_outcome( + act.run_id, init_job, previous_run_outcome, download_metrics + ) if not workflow: assert init_job workflow = _RunningWorkflow( @@ -483,7 +525,7 @@ async def _handle_activation( completion.run_id = act.run_id # Encode completion - if workflow: + if workflow and self._data_converter._has_codec_or_external_storage: workflow_context = temporalio.converter.WorkflowSerializationContext( namespace=self._namespace, workflow_id=workflow.workflow_id, @@ -656,6 +698,40 @@ async def _handle_cache_eviction( logger.debug("Shutting down worker on eviction hook exception") self._bridge_worker().initiate_shutdown() + async def _decode_nexus_previous_run_outcome( + self, + run_id: str, + init: temporalio.bridge.proto.workflow_activation.InitializeWorkflow, + outcome: temporalio.bridge.proto.workflow_activation.InitializeWorkflow, + download_metrics: temporalio.converter._extstore.StorageOperationMetrics, + ) -> None: + """Decode an outcome from :py:func:`_take_nexus_previous_run_outcome` and restore it.""" + nexus_context = temporalio.converter._serialization_context._propagated_nexus_serialization_context( + init + ) + assert nexus_context + act = temporalio.bridge.proto.workflow_activation.WorkflowActivation( + run_id=run_id, + jobs=[ + temporalio.bridge.proto.workflow_activation.WorkflowActivationJob( + initialize_workflow=outcome + ) + ], + ) + metrics = await temporalio.bridge.worker.decode_activation( + act, + self._data_converter.with_context(nexus_context), + decode_headers=self._encode_headers, + storage_concurrency_limit=self._max_workflow_task_external_storage_concurrency, + ) + download_metrics.merge(metrics) + # Constructing the activation copied the outcome, so read the decoded fields from it + decoded = act.jobs[0].initialize_workflow + if decoded.HasField("continued_failure"): + init.continued_failure.CopyFrom(decoded.continued_failure) + if decoded.HasField("last_completion_result"): + init.last_completion_result.CopyFrom(decoded.last_completion_result) + def _create_workflow_instance( self, act: temporalio.bridge.proto.workflow_activation.WorkflowActivation, @@ -694,6 +770,7 @@ def _create_workflow_instance( first_execution_run_id=init.first_execution_run_id, headers=dict(init.headers), namespace=self._namespace, + original_execution_run_id=init.original_execution_run_id or act.run_id, parent=parent, root=root, raw_memo=dict(init.memo.fields), @@ -740,6 +817,9 @@ def _create_workflow_instance( last_completion_result=init.last_completion_result, last_failure=last_failure, default_workflow_logic_flags=frozenset(self._default_workflow_logic_flags), + nexus_serialization_context=temporalio.converter._serialization_context._propagated_nexus_serialization_context( + init + ), ) if defn.sandboxed: return self._workflow_runner.create_instance(det) @@ -955,6 +1035,16 @@ async def _external_store_payload_sequence( dc = self._get_current_dc()._with_store_context(store_ctx) return await dc._external_store_payload_sequence(payloads) + async def _encode_reference_payload_sequence( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + return await self._get_current_dc()._encode_reference_payload_sequence(payloads) + + async def _decode_reference_payload_sequence( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + return await self._get_current_dc()._decode_reference_payload_sequence(payloads) + async def _external_retrieve_payload_sequence( self, payloads: Sequence[temporalio.api.common.v1.Payload] ) -> list[temporalio.api.common.v1.Payload]: diff --git a/temporalio/worker/_workflow_instance.py b/temporalio/worker/_workflow_instance.py index 69b416f26..b2b769dc1 100644 --- a/temporalio/worker/_workflow_instance.py +++ b/temporalio/worker/_workflow_instance.py @@ -9,7 +9,6 @@ import json import logging import random -import sys import threading import traceback import warnings @@ -56,13 +55,23 @@ import temporalio.bridge.proto.workflow_completion import temporalio.common import temporalio.converter +import temporalio.converter._serialization_context import temporalio.exceptions import temporalio.nexus.system import temporalio.workflow from temporalio.converter import StorageDriverStoreContext, StorageDriverWorkflowInfo +from temporalio.nexus.system.workflow_service._system_nexus_interceptor import ( + _start_system_nexus_operation, + _SystemNexusWorkflowOutboundInterceptorTerminal, +) from temporalio.service import __version__ from ..api.failure.v1.message_pb2 import Failure +from ..workflow._event_groups import ( + _capture_event_group_markers, + _inbound_event_group, + _inbound_update_event_group, +) from . import _command_aware_visitor from ._interceptor import ( ContinueAsNewInput, @@ -172,6 +181,10 @@ class WorkflowInstanceDetails: default_workflow_logic_flags: frozenset[_WorkflowLogicFlag] = field( default_factory=lambda: _DEFAULT_ENABLED_WORKFLOW_LOGIC_FLAGS ) + nexus_serialization_context: ( + temporalio.converter.NexusSerializationContext | None + ) = None + """Serialization context of the Nexus operation handler that started the workflow, if any.""" class WorkflowInstance(ABC): @@ -284,6 +297,26 @@ def __init__(self, det: WorkflowInstanceDetails) -> None: self._workflow_context_failure_converter = self._failure_converter_with_context( workflow_context ) + # A workflow started by a Nexus operation handler returns its result and closing failure to + # the Nexus caller, which decodes them with the handler's Nexus context. A retried or cron run + # reads the previous run's result and failure with the same context. + self._nexus_serialization_context = det.nexus_serialization_context + if self._nexus_serialization_context: + self._result_payload_converter = self._payload_converter_with_context( + self._nexus_serialization_context + ) + self._result_failure_converter = self._failure_converter_with_context( + self._nexus_serialization_context + ) + else: + self._result_payload_converter = self._workflow_context_payload_converter + self._result_failure_converter = self._workflow_context_failure_converter + # Keyed by update protocol instance ID. Kept until the activation that finished the update + # has been encoded, so the codec can encode its response with the same context. + self._nexus_update_contexts: dict[ + str, temporalio.converter.NexusSerializationContext + ] = {} + self._finished_nexus_update_ids: list[str] = [] self._extern_functions = det.extern_functions self._disable_eager_activity_execution = det.disable_eager_activity_execution @@ -449,6 +482,9 @@ def activate( temporalio.bridge.proto.workflow_completion.WorkflowActivationCompletion() ) self._current_completion.successful.SetInParent() + for protocol_instance_id in self._finished_nexus_update_ids: + self._nexus_update_contexts.pop(protocol_instance_id, None) + self._finished_nexus_update_ids.clear() self._current_activation_error: Exception | None = None self._deployment_version_for_current_task = ( @@ -505,7 +541,10 @@ def activate( # Let errors bubble out of these to the caller to fail the task self._apply(job) if any(job_sets): - self._run_once(check_conditions=bool(job_sets[1] or job_sets[2])) + self._run_once( + check_conditions=bool(job_sets[1] or job_sets[2]), + jobs=act.jobs, + ) else: # Preserve the legacy scheduling order for histories which do # not contain the single-batch workflow logic flag. @@ -519,7 +558,9 @@ def activate( # Run one iteration of the loop. We do not allow conditions to # be checked in patch jobs (first index) or query jobs (last # index). - self._run_once(check_conditions=index == 1 or index == 2) + self._run_once( + check_conditions=index == 1 or index == 2, jobs=act.jobs + ) except Exception as err: # We want some errors during activation, like those that can happen # during payload conversion, to be able to fail the workflow not the @@ -665,6 +706,24 @@ def _apply_do_update( # Run the validator & handler in a task. Everything, including looking up the update definition, needs to be # inside the task, since the update may not be defined until after we have started the workflow - for example # if an update is in the first WFT & is also registered dynamically at the top of workflow code. + # An update sent by a Nexus operation handler returns its result and failure to the Nexus + # caller, which decodes them with the handler's Nexus context. Its input keeps the workflow + # context. + nexus_context = temporalio.converter._serialization_context._propagated_nexus_serialization_context( + job + ) + if nexus_context: + self._nexus_update_contexts[job.protocol_instance_id] = nexus_context + result_payload_converter = self._payload_converter_with_context( + nexus_context + ) + result_failure_converter = self._failure_converter_with_context( + nexus_context + ) + else: + result_payload_converter = self._workflow_context_payload_converter + result_failure_converter = self._workflow_context_failure_converter + async def run_update() -> None: # Set the current update for the life of this task temporalio.workflow._set_current_update_info( @@ -718,10 +777,9 @@ async def run_update() -> None: command = None # type: ignore # Run the handler - success = await self._inbound.handle_update_handler(handler_input) - result_payloads = self._workflow_context_payload_converter.to_payloads( - [success] - ) + with _inbound_update_event_group(job.id).scope(): + success = await self._inbound.handle_update_handler(handler_input) + result_payloads = result_payload_converter.to_payloads([success]) if len(result_payloads) != 1: raise ValueError( f"Expected 1 result payload, got {len(result_payloads)}" @@ -753,9 +811,9 @@ async def run_update() -> None: job.protocol_instance_id ) command.update_response.rejected.SetInParent() - self._workflow_context_failure_converter.to_failure( + result_failure_converter.to_failure( err, - self._workflow_context_payload_converter, + result_payload_converter, command.update_response.rejected, ) else: @@ -779,6 +837,8 @@ async def run_update() -> None: raise finally: self._in_progress_updates.pop(job.id, None) + if nexus_context: + self._finished_nexus_update_ids.append(job.protocol_instance_id) self.create_task( run_update(), @@ -977,6 +1037,13 @@ def _apply_resolve_child_workflow_execution_start( job.failed.workflow_id, job.failed.workflow_type ) ) + elif ( + job.failed.cause + == temporalio.bridge.proto.child_workflow.StartChildWorkflowExecutionFailedCause.START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID_VERSIONING_OVERRIDE + ): + handle._resolve_failure( + temporalio.exceptions.InvalidVersioningOverrideError() + ) else: handle._resolve_failure( RuntimeError(f"Unknown child start fail cause: {job.failed.cause}") @@ -1091,6 +1158,10 @@ def _apply_resolve_request_cancel_external_workflow( f"Failed finding pending external cancel for sequence {job.seq}" ) fut, external_workflow_id = pending + # Cancelling the task that awaits the request also cancels this future, + # but the request was already sent and Core still resolves it + if fut.cancelled(): + return # We intentionally let this error if future is already done if job.HasField("failure"): workflow_context = temporalio.converter.WorkflowSerializationContext( @@ -1147,9 +1218,7 @@ def _apply_initialize_workflow( async def run_workflow(input: ExecuteWorkflowInput) -> None: try: result = await self._inbound.execute_workflow(input) - result_payloads = self._workflow_context_payload_converter.to_payloads( - [result] - ) + result_payloads = self._result_payload_converter.to_payloads([result]) if len(result_payloads) != 1: raise ValueError( f"Expected 1 result payload, got {len(result_payloads)}" @@ -1237,6 +1306,7 @@ def workflow_continue_as_new( versioning_intent: temporalio.workflow.VersioningIntent | None, initial_versioning_behavior: temporalio.workflow.ContinueAsNewVersioningBehavior | None, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, ) -> NoReturn: self._assert_not_read_only("continue as new") # Use definition if callable @@ -1266,6 +1336,7 @@ def workflow_continue_as_new( arg_types=arg_types, versioning_intent=versioning_intent, initial_versioning_behavior=initial_versioning_behavior, + event_groups=event_groups, ) ) @@ -1374,7 +1445,12 @@ def workflow_memo_value( type_hint, # type: ignore[arg-type] ) - def workflow_upsert_memo(self, updates: Mapping[str, Any]) -> None: + def workflow_upsert_memo( + self, + updates: Mapping[str, Any], + *, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, + ) -> None: # Converting before creating a command so that we don't leave a partial command in case of conversion failure. update_payloads = {} removals = [] @@ -1390,7 +1466,10 @@ def workflow_upsert_memo(self, updates: Mapping[str, Any]) -> None: if not update_payloads and not removals: return + markers = _capture_event_group_markers(event_groups) + command = self._add_command() + command.event_group_markers.extend(markers) fields = command.modify_workflow_properties.upserted_memo.fields # Updating memo inside info by downcasting to mutable mapping. @@ -1434,7 +1513,13 @@ def workflow_metric_meter(self) -> temporalio.common.MetricMeter: self._metric_meter = _ReplaySafeMetricMeter(metric_meter) return self._metric_meter - def workflow_patch(self, id: str, *, deprecated: bool) -> bool: + def workflow_patch( + self, + id: str, + *, + deprecated: bool, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, + ) -> bool: self._assert_not_read_only("patch") # We use a previous memoized result of this if present. If this is being # deprecated, we can still use memoized result and skip the command. @@ -1458,7 +1543,10 @@ def workflow_patch(self, id: str, *, deprecated: bool) -> bool: use_patch = True self._patches_memoized[id] = use_patch if use_patch: + markers = _capture_event_group_markers(event_groups) + command = self._add_command() + command.event_group_markers.extend(markers) command.set_patch_marker.patch_id = id command.set_patch_marker.deprecated = deprecated return use_patch @@ -1557,6 +1645,7 @@ def workflow_start_activity( activity_id: str | None, versioning_intent: temporalio.workflow.VersioningIntent | None, summary: str | None = None, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> temporalio.workflow.ActivityHandle[Any]: self._assert_not_read_only("start activity") @@ -1594,6 +1683,7 @@ def workflow_start_activity( ret_type=ret_type, versioning_intent=versioning_intent, summary=summary, + event_groups=event_groups, priority=priority, ) ) @@ -1622,7 +1712,9 @@ async def workflow_start_child_workflow( versioning_intent: temporalio.workflow.VersioningIntent | None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> temporalio.workflow.ChildWorkflowHandle[Any, Any]: # Use definition if callable name: str @@ -1660,8 +1752,10 @@ async def workflow_start_child_workflow( arg_types=arg_types, ret_type=ret_type, versioning_intent=versioning_intent, + versioning_override=versioning_override, static_summary=static_summary, static_details=static_details, + event_groups=event_groups, priority=priority, ) ) @@ -1679,6 +1773,7 @@ def workflow_start_local_activity( cancellation_type: temporalio.workflow.ActivityCancellationType, activity_id: str | None, summary: str | None, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, ) -> temporalio.workflow.ActivityHandle[Any]: # Get activity definition if it's callable name: str @@ -1712,6 +1807,7 @@ def workflow_start_local_activity( local_retry_threshold=local_retry_threshold, cancellation_type=cancellation_type, summary=summary, + event_groups=event_groups, headers={}, arg_types=arg_types, ret_type=ret_type, @@ -1731,8 +1827,26 @@ async def workflow_start_nexus_operation( cancellation_type: temporalio.workflow.NexusOperationCancellationType, headers: Mapping[str, str] | None, summary: str | None, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, ) -> temporalio.workflow.NexusOperationHandle[OutputT]: - # start_nexus_operation + if temporalio.nexus.system.is_system_endpoint(endpoint): + return await _start_system_nexus_operation( + self._outbound, + StartNexusOperationInput( + endpoint=temporalio.nexus.system.TEMPORAL_SYSTEM_ENDPOINT, + service=service, + operation=operation, + input=input, + output_type=output_type, + schedule_to_close_timeout=schedule_to_close_timeout, + schedule_to_start_timeout=schedule_to_start_timeout, + start_to_close_timeout=start_to_close_timeout, + cancellation_type=cancellation_type, + headers=None, + summary=summary, + event_groups=event_groups, + ), + ) return await self._outbound.start_nexus_operation( StartNexusOperationInput( endpoint=endpoint, @@ -1746,6 +1860,7 @@ async def workflow_start_nexus_operation( cancellation_type=cancellation_type, headers=headers, summary=summary, + event_groups=event_groups, ) ) @@ -1758,8 +1873,14 @@ def workflow_upsert_search_attributes( temporalio.common.SearchAttributes | Sequence[temporalio.common.SearchAttributeUpdate] ), + *, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, ) -> None: - v = self._add_command().upsert_workflow_search_attributes + markers = _capture_event_group_markers(event_groups) + + command = self._add_command() + command.event_group_markers.extend(markers) + v = command.upsert_workflow_search_attributes # Update the attrs on info, casting to their mutable forms first mut_attrs = cast( @@ -1859,7 +1980,11 @@ def workflow_upsert_search_attributes( ) async def workflow_sleep( - self, duration: float, *, summary: str | None = None + self, + duration: float, + *, + summary: str | None = None, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, ) -> None: user_metadata = ( temporalio.api.sdk.v1.UserMetadata( @@ -1868,10 +1993,12 @@ async def workflow_sleep( if summary else None ) + markers = _capture_event_group_markers(event_groups) + fut = self.create_future() timer_handle = self._timer_impl( duration, - _TimerOptions(user_metadata=user_metadata), + _TimerOptions(user_metadata=user_metadata, event_group_markers=markers), lambda: fut.set_result(None) if not fut.done() else None, ) fut.add_done_callback( @@ -1885,6 +2012,7 @@ async def workflow_wait_condition( *, timeout: float | None = None, timeout_summary: str | None = None, + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, ) -> None: self._assert_not_read_only("wait condition") cancellation_requested_before = self._cancel_reason is not None @@ -1911,18 +2039,26 @@ def cancellation_arrived() -> bool: if timeout_summary else None ) - ctxvars = contextvars.copy_context() - - async def in_context(): - _TimerOptionsCtxVar.set(_TimerOptions(user_metadata=user_metadata)) - await asyncio.wait_for(fut, timeout) - + markers = _capture_event_group_markers(event_groups) + # asyncio.wait_for() starts its timer from this task, so the options are + # set in the task's context and reset once the wait ends + token = _TimerOptionsCtxVar.set( + _TimerOptions(user_metadata=user_metadata, event_group_markers=markers) + ) try: - await ctxvars.run(in_context) + await asyncio.wait_for(fut, timeout) except asyncio.TimeoutError: if cancellation_arrived(): raise asyncio.CancelledError() raise + finally: + try: + _TimerOptionsCtxVar.reset(token) + except ValueError: + # Closing rather than resuming a coroutine suspended here + # unwinds it in another context, and the one the options were + # set in is being discarded anyway + pass if cancellation_arrived(): raise asyncio.CancelledError() @@ -1963,18 +2099,18 @@ def workflow_last_completion_result(self, type_hint: type | None) -> Any | None: return None if type_hint is None: - return self._workflow_context_payload_converter.from_payload( + return self._result_payload_converter.from_payload( self._last_completion_result.payloads[0] ) else: - return self._workflow_context_payload_converter.from_payload( + return self._result_payload_converter.from_payload( self._last_completion_result.payloads[0], type_hint ) def workflow_last_failure(self) -> BaseException | None: if self._last_failure: - return self._workflow_context_failure_converter.from_failure( - self._last_failure, self._workflow_context_payload_converter + return self._result_failure_converter.from_failure( + self._last_failure, self._result_payload_converter ) return None @@ -2008,21 +2144,20 @@ def _outbound_schedule_activity( # Function that runs in the handle async def run_activity() -> Any: + handle._started = True while True: - # Mark it as started each loop because backoff could cause it to - # be marked as unstarted - handle._started = True try: return await self._await_temporal_operation( handle._result_fut, - lambda _err, command: handle._apply_cancel_command(command), + lambda _err: handle._request_cancel(), completed_cancellation_flag=_WorkflowLogicFlag.RAISE_ON_CANCELLING_COMPLETED_ACTIVITY, ) except _ActivityDoBackoffError as err: # We have to sleep then reschedule. Note this sleep can be # cancelled like any other timer. - await asyncio.sleep( - err.backoff.backoff_duration.ToTimedelta().total_seconds() + await self.workflow_sleep( + err.backoff.backoff_duration.ToTimedelta().total_seconds(), + event_groups=input.event_groups, ) handle._apply_schedule_command(err.backoff) # We have to put the handle back on the pending activity @@ -2045,6 +2180,8 @@ async def _outbound_signal_child_workflow( ) ) payloads = payload_converter.to_payloads(input.args) if input.args else None + markers = _capture_event_group_markers(input.event_groups) + command = self._add_command() v = command.signal_external_workflow_execution v.child_workflow_id = input.child_workflow_id @@ -2053,6 +2190,8 @@ async def _outbound_signal_child_workflow( v.args.extend(payloads) if input.headers: temporalio.common._apply_headers(input.headers, v.headers) + command.event_group_markers.extend(markers) + await self._signal_external_workflow(command) async def _outbound_signal_external_workflow( @@ -2065,6 +2204,8 @@ async def _outbound_signal_external_workflow( ) ) payloads = payload_converter.to_payloads(input.args) if input.args else None + markers = _capture_event_group_markers(input.event_groups) + command = self._add_command() v = command.signal_external_workflow_execution v.workflow_execution.namespace = input.namespace @@ -2076,6 +2217,8 @@ async def _outbound_signal_external_workflow( v.args.extend(payloads) if input.headers: temporalio.common._apply_headers(input.headers, v.headers) + command.event_group_markers.extend(markers) + await self._signal_external_workflow(command) async def _outbound_start_child_workflow( @@ -2086,8 +2229,8 @@ async def _outbound_start_child_workflow( # Common code for handling cancel for start and run def apply_child_cancel_error( err: asyncio.CancelledError, - cancel_command: temporalio.bridge.proto.workflow_commands.WorkflowCommand, ) -> None: + cancel_command = self._add_command() # Send a cancel request to the child, forwarding the msg passed to # Task.cancel(msg) (if any) as the cancellation reason. reason = err.args[0] if err.args and isinstance(err.args[0], str) else "" @@ -2151,34 +2294,70 @@ async def operation_handle_fn() -> OutputT: OutputT, await self._await_temporal_operation( handle._result_fut, - lambda _err, command: handle._apply_cancel_command(command), + lambda _err: handle._apply_cancel_command(self._add_command()), ), ) if temporalio.nexus.system.is_system_endpoint(input.endpoint): + serialization_context = temporalio.nexus.system._get_serialization_context( + input.service, + input.operation_name, + input.input, + ) + user_payload_converter = self._context_free_payload_converter + user_failure_converter = self._context_free_failure_converter + if serialization_context is not None: + user_payload_converter = self._payload_converter_with_context( + serialization_context + ) + user_failure_converter = self._failure_converter_with_context( + serialization_context + ) payload_converter = temporalio.nexus.system._get_payload_converter( - self._workflow_context_payload_converter, - self._workflow_context_failure_converter, + user_payload_converter, + user_failure_converter, ) + failure_converter = user_failure_converter else: - payload_converter = self._context_free_payload_converter + serialization_context = temporalio.converter.NexusSerializationContext( + endpoint=input.endpoint, + service=input.service, + operation=input.operation_name, + ) + payload_converter = self._payload_converter_with_context( + serialization_context + ) + failure_converter = self._failure_converter_with_context( + serialization_context + ) handle = _NexusOperationHandle( self, self._next_seq("nexus_operation"), input, operation_handle_fn(), payload_converter, + failure_converter, ) handle._apply_schedule_command() self._pending_nexus_operations[handle._seq] = handle await self._await_temporal_operation( handle._start_fut, - lambda _err, command: handle._apply_cancel_command(command), + lambda _err: handle._apply_cancel_command(self._add_command()), reraise_on_workflow_cancellation=True, ) return handle + async def _intercept_system_nexus_operation( + self, input: StartNexusOperationInput[Any, OutputT] + ) -> temporalio.workflow.NexusOperationHandle[OutputT]: + return await self._outbound.start_system_nexus_operation(input) + + async def _schedule_system_nexus_operation( + self, input: StartNexusOperationInput[Any, OutputT] + ) -> _NexusOperationHandle[OutputT]: + return await self._outbound_start_nexus_operation(input) + #### Miscellaneous helpers #### # These are in alphabetical order. @@ -2222,10 +2401,7 @@ async def _await_temporal_operation( self, fut: asyncio.Future[_T], apply_cancel: Callable[ - [ - asyncio.CancelledError, - temporalio.bridge.proto.workflow_commands.WorkflowCommand, - ], + [asyncio.CancelledError], None, ], *, @@ -2253,15 +2429,12 @@ async def _await_temporal_operation( ) raise - apply_cancel(err, self._add_command()) + apply_cancel(err) - # Clear the cancellation counter on Python 3.11+ so the next - # await does not immediately re-raise CancelledError. - if ( - sys.version_info >= (3, 11) - and (task := asyncio.current_task()) is not None - ): - task.uncancel() # type: ignore[union-attr] + # Clear the cancellation counter so the next await does not + # immediately re-raise CancelledError. + if (task := asyncio.current_task()) is not None: + task.uncancel() if reraise_on_workflow_cancellation and ( self._cancel_reason is not None or self._deleting @@ -2351,6 +2524,21 @@ def get_serialization_context( workflow_id=self._info.workflow_id, ) + if self._nexus_serialization_context and command_info.command_type in ( + temporalio.api.enums.v1.command_type_pb2.CommandType.COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION, + temporalio.api.enums.v1.command_type_pb2.CommandType.COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION, + ): + # The result and closing failure go back to the Nexus caller + return self._nexus_serialization_context + + if ( + command_info.command_type + == temporalio.api.enums.v1.command_type_pb2.CommandType.COMMAND_TYPE_PROTOCOL_MESSAGE + and command_info.update_protocol_instance_id in self._nexus_update_contexts + ): + # The update's result and failure go back to the Nexus caller + return self._nexus_update_contexts[command_info.update_protocol_instance_id] + if ( command_info.command_type == temporalio.api.enums.v1.command_type_pb2.CommandType.COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK @@ -2413,9 +2601,11 @@ def get_serialization_context( nexus_operation._input.operation_name, nexus_operation._input.input, ) - # Other Nexus operations have no context because the caller workflow context is - # unavailable on the handler side for decryption. - return None + return temporalio.converter.NexusSerializationContext( + endpoint=nexus_operation._input.endpoint, + service=nexus_operation._input.service, + operation=nexus_operation._input.operation_name, + ) else: # Use payload codec with workflow context for all other payloads @@ -2445,7 +2635,9 @@ def get_external_store_context( ) if command_info is None: - return StorageDriverStoreContext(target=current_wf) + return StorageDriverStoreContext( + namespace=self._info.namespace, target=current_wf + ) COMMAND_TYPE = temporalio.api.enums.v1.command_type_pb2.CommandType @@ -2456,6 +2648,7 @@ def get_external_store_context( ): child = self._pending_child_workflows[command_info.command_seq] return StorageDriverStoreContext( + namespace=self._info.namespace, target=StorageDriverWorkflowInfo( id=child._input.id, type=child._input.workflow, @@ -2470,6 +2663,7 @@ def get_external_store_context( ): _, target_id = self._pending_external_signals[command_info.command_seq] return StorageDriverStoreContext( + namespace=self._info.namespace, target=StorageDriverWorkflowInfo( id=target_id, namespace=self._info.namespace ), @@ -2482,6 +2676,7 @@ def get_external_store_context( and self._info.continued_run_id is None ): return StorageDriverStoreContext( + namespace=self._info.namespace, target=StorageDriverWorkflowInfo( id=self._info.parent.workflow_id, run_id=self._info.parent.run_id, @@ -2490,7 +2685,9 @@ def get_external_store_context( ) else: - return StorageDriverStoreContext(target=current_wf) + return StorageDriverStoreContext( + namespace=self._info.namespace, target=current_wf + ) def _instantiate_workflow_object(self) -> Any: if not self._workflow_input: @@ -2625,8 +2822,12 @@ def _process_signal_job( def done_callback(_f: Any): self._in_progress_signals.pop(id, None) + async def run_signal() -> None: + with _inbound_event_group(job.originating_event_id).scope(): + await self._inbound.handle_signal(input) + task = self.create_task( - self._run_top_level_workflow_function(self._inbound.handle_signal(input)), + self._run_top_level_workflow_function(run_signal()), name=f"signal: {job.signal_name}", ) task.add_done_callback(done_callback) @@ -2654,7 +2855,14 @@ def _register_task( if hasattr(task, "_log_destroy_pending"): setattr(task, "_log_destroy_pending", False) - def _run_once(self, *, check_conditions: bool) -> None: + def _run_once( + self, + *, + check_conditions: bool, + jobs: Sequence[ + temporalio.bridge.proto.workflow_activation.WorkflowActivationJob + ], + ) -> None: try: asyncio._set_running_loop(self) @@ -2679,7 +2887,17 @@ def _run_once(self, *, check_conditions: bool) -> None: # Check conditions which may add to the ready list. Also remove # conditions whose futures have already cancelled (e.g. when # timed out). - if check_conditions: + # + # Rejected updates leave nothing in history, so a condition they + # let through (e.g. one on a value refreshed every activation) + # could not unblock on replay. + if check_conditions and ( + any(not job.HasField("do_update") for job in jobs) + or any( + c.update_response.HasField("accepted") + for c in self._current_completion.successful.commands + ) + ): self._conditions[:] = [ t for t in self._conditions @@ -2745,8 +2963,8 @@ def _set_workflow_failure(self, err: BaseException) -> None: failure = self._add_command().fail_workflow_execution.failure failure.SetInParent() try: - self._workflow_context_failure_converter.to_failure( - err, self._workflow_context_payload_converter, failure + self._result_failure_converter.to_failure( + err, self._result_payload_converter, failure ) except Exception as inner_err: raise ValueError("Failed converting workflow exception") from inner_err @@ -2768,8 +2986,11 @@ async def _signal_external_workflow( def apply_cancel( _err: asyncio.CancelledError, - command: temporalio.bridge.proto.workflow_commands.WorkflowCommand, ) -> None: + # `cancel_signal_workflow` is a Core-only command and apply only if the Signal command + # has not yet been sent to the server. The cancel request itself can't produce a WFT + # command. Hence there's no point in attaching Event Groups or User Metadata to it. + command = self._add_command() command.cancel_signal_workflow.seq = seq # Wait until completed or cancelled @@ -2895,10 +3116,22 @@ def _timer_impl( if delay < 0: raise RuntimeError("Attempting to schedule timer with negative delay") + if options.event_group_markers is None: + options = _TimerOptions( + user_metadata=options.user_metadata, + event_group_markers=_capture_event_group_markers(None), + ) + # Create, schedule, and return seq = self._next_seq("timer") handle = _TimerHandle( - seq, self.time() + delay, options, callback, args, self, context + seq, + self.time() + delay, + options, + callback, + args, + self, + context, ) handle._apply_start_command(self._add_command(), delay) self._pending_timers[seq] = handle @@ -2971,12 +3204,14 @@ def create_task( *, name: str | None = None, context: contextvars.Context | None = None, + eager_start: bool | None = None, ) -> asyncio.Task[_T]: - # Context only supported on newer Python versions - if sys.version_info >= (3, 11): - task = asyncio.Task(coro, loop=self, context=context) # type: ignore - else: - task = asyncio.Task(coro, loop=self) # type: ignore + if eager_start: + # Eager execution would bypass the workflow's deterministic task queue. + raise NotImplementedError( + "Eager task execution is not supported in workflows" + ) + task = asyncio.Task(coro, loop=self, context=context) # type: ignore self._register_task(task, name=name) return task @@ -3131,11 +3366,18 @@ async def handle_update_handler(self, input: HandleUpdateInput) -> Any: return handler(*input.args) -class _WorkflowOutboundImpl(WorkflowOutboundInterceptor): +class _WorkflowOutboundImpl( + _SystemNexusWorkflowOutboundInterceptorTerminal, WorkflowOutboundInterceptor +): def __init__(self, instance: _WorkflowInstanceImpl) -> None: # type: ignore # We are intentionally not calling the base class's __init__ here self._instance = instance + async def _outbound_start_nexus_operation( + self, input: StartNexusOperationInput[InputT, OutputT] + ) -> temporalio.workflow.NexusOperationHandle[OutputT]: + return await self._instance._outbound_start_nexus_operation(input) + def continue_as_new(self, input: ContinueAsNewInput) -> NoReturn: self._instance._outbound_continue_as_new(input) @@ -3165,6 +3407,16 @@ async def start_nexus_operation( ) -> _NexusOperationHandle[OutputT]: return await self._instance._outbound_start_nexus_operation(input) + async def _intercept_system_nexus_operation( + self, input: StartNexusOperationInput[InputT, OutputT] + ) -> temporalio.workflow.NexusOperationHandle[OutputT]: + return await self._instance._intercept_system_nexus_operation(input) + + async def start_system_nexus_operation( + self, input: StartNexusOperationInput[Any, OutputT] + ) -> _NexusOperationHandle[OutputT]: + return await self._instance._schedule_system_nexus_operation(input) + def start_local_activity( self, input: StartLocalActivityInput ) -> temporalio.workflow.ActivityHandle[Any]: @@ -3174,6 +3426,7 @@ def start_local_activity( @dataclass(frozen=True) class _TimerOptions: user_metadata: temporalio.api.sdk.v1.UserMetadata | None = None + event_group_markers: Sequence[temporalio.api.sdk.v1.EventGroupMarker] | None = None _TimerOptionsCtxVar: contextvars.ContextVar[_TimerOptions] = contextvars.ContextVar( @@ -3186,7 +3439,7 @@ def __init__( self, seq: int, when: float, - options: _TimerOptions | None, + options: _TimerOptions, callback: Callable[..., Any], args: Sequence[Any], loop: asyncio.AbstractEventLoop, @@ -3202,8 +3455,9 @@ def _apply_start_command( delay: float, ) -> None: command.start_timer.seq = self._seq - if self._options and self._options.user_metadata: + if self._options.user_metadata: command.user_metadata.CopyFrom(self._options.user_metadata) + command.event_group_markers.extend(self._options.event_group_markers or ()) command.start_timer.start_to_fire_timeout.FromNanoseconds(int(delay * 1e9)) def _apply_cancel_command( @@ -3211,6 +3465,7 @@ def _apply_cancel_command( command: temporalio.bridge.proto.workflow_commands.WorkflowCommand, ) -> None: command.cancel_timer.seq = self._seq + command.event_group_markers.extend(self._options.event_group_markers or ()) class _ActivityDoBackoffError(BaseException): @@ -3234,6 +3489,7 @@ def __init__( self._input = input self._result_fut = instance.create_future() self._started = False + self._cancel_command_seq: int | None = None instance._register_task(self, name=f"activity: {input.activity}") self._payload_converter = self._instance._payload_converter_with_context( temporalio.converter.ActivitySerializationContext( @@ -3250,6 +3506,7 @@ def __init__( is_local=isinstance(self._input, StartLocalActivityInput), ) ) + self._event_group_markers = _capture_event_group_markers(input.event_groups) def cancel(self, msg: Any | None = None) -> bool: # Allow the cancel to go through for the task even if we're deleting, @@ -3260,9 +3517,17 @@ def cancel(self, msg: Any | None = None) -> bool: # to send a cancel command because the async function won't run to trap # the cancel (i.e. cancelled before started) if not self._started and not self.done(): - self._apply_cancel_command(self._instance._add_command()) + self._request_cancel() return super().cancel(msg) + def _request_cancel(self) -> None: + # While evicting, _add_command must still run because the + # _WorkflowBeingEvictedError it raises is what ends this handle's task + if self._cancel_command_seq == self._seq and not self._instance._deleting: + return + self._cancel_command_seq = self._seq + self._apply_cancel_command(self._instance._add_command()) + def _resolve_success(self, result: Any) -> None: # We intentionally let this error if already done self._result_fut.set_result(result) @@ -3283,8 +3548,8 @@ def _resolve_backoff( self._result_fut.set_exception(_ActivityDoBackoffError(backoff)) # Replace the result future since that one is resolved now self._result_fut = self._instance.create_future() - # Mark this as not started since it's a new future - self._started = False + # Leave _started set: run_activity is running and traps a cancel in its + # backoff sleep, and Core has no command for the new seq to cancel yet def _apply_schedule_command( self, @@ -3331,6 +3596,7 @@ def _apply_schedule_command( command.user_metadata.summary.CopyFrom( self._payload_converter.to_payload(self._input.summary) ) + command.event_group_markers.extend(self._event_group_markers) v.cancellation_type = cast( temporalio.bridge.proto.workflow_commands.ActivityCancellationType.ValueType, int(self._input.cancellation_type), @@ -3375,6 +3641,7 @@ def _apply_cancel_command( command.request_cancel_activity.seq = self._seq else: command.request_cancel_local_activity.seq = self._seq + command.event_group_markers.extend(self._event_group_markers) class _ChildWorkflowHandle(temporalio.workflow.ChildWorkflowHandle[Any, Any]): @@ -3403,6 +3670,7 @@ def __init__( self._failure_converter = self._instance._failure_converter_with_context( workflow_context ) + self._event_group_markers = _capture_event_group_markers(input.event_groups) @property def id(self) -> str: @@ -3418,6 +3686,7 @@ async def signal( arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = [], + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, ) -> None: self._instance._assert_not_read_only("signal child handle") await self._instance._outbound.signal_child_workflow( @@ -3428,6 +3697,7 @@ async def signal( args=temporalio.common._arg_or_args(arg, args), child_workflow_id=self._input.id, headers={}, + event_groups=event_groups, ) ) @@ -3499,6 +3769,8 @@ def _apply_start_command(self) -> None: ) if self._input.versioning_intent: v.versioning_intent = self._input.versioning_intent._to_proto() + if self._input.versioning_override: + v.versioning_override.CopyFrom(self._input.versioning_override._to_proto()) if self._input.static_summary: command.user_metadata.summary.CopyFrom( self._payload_converter.to_payload(self._input.static_summary) @@ -3507,6 +3779,7 @@ def _apply_start_command(self) -> None: command.user_metadata.details.CopyFrom( self._payload_converter.to_payload(self._input.static_details) ) + command.event_group_markers.extend(self._event_group_markers) if self._input.priority: v.priority.CopyFrom(self._input.priority._to_proto()) @@ -3520,6 +3793,7 @@ def _apply_cancel_command( v = command.cancel_child_workflow_execution v.child_workflow_seq = self._seq v.reason = reason + command.event_group_markers.extend(self._event_group_markers) class _ExternalWorkflowHandle(temporalio.workflow.ExternalWorkflowHandle[Any]): @@ -3548,6 +3822,7 @@ async def signal( arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = [], + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, ) -> None: self._instance._assert_not_read_only("signal external handle") await self._instance._outbound.signal_external_workflow( @@ -3560,18 +3835,29 @@ async def signal( workflow_id=self._id, workflow_run_id=self._run_id, headers={}, + event_groups=event_groups, ) ) - async def cancel(self, *, reason: str = "") -> None: + async def cancel( + self, + *, + reason: str = "", + event_groups: Sequence[temporalio.workflow.EventGroup] | None = None, + ) -> None: self._instance._assert_not_read_only("cancel external handle") + + markers = _capture_event_group_markers(event_groups) + command = self._instance._add_command() + command.event_group_markers.extend(markers) v = command.request_cancel_external_workflow_execution v.workflow_execution.namespace = self._instance._info.namespace v.workflow_execution.workflow_id = self._id if self._run_id: v.workflow_execution.run_id = self._run_id v.reason = reason + await self._instance._cancel_external_workflow(command) @@ -3583,15 +3869,19 @@ def __init__( input: StartNexusOperationInput[Any, OutputT], fn: Coroutine[Any, Any, OutputT], payload_converter: temporalio.converter.PayloadConverter, + failure_converter: temporalio.converter.FailureConverter, ): self._instance = instance self._seq = seq self._input = input - self._task = asyncio.Task(fn) + self._task = instance.create_task( + fn, name=f"nexus: {input.service}/{input.operation_name}" + ) self._start_fut: asyncio.Future[str | None] = instance.create_future() self._result_fut: asyncio.Future[OutputT | None] = instance.create_future() self._payload_converter = payload_converter - self._failure_converter = self._instance._context_free_failure_converter + self._failure_converter = failure_converter + self._event_group_markers = _capture_event_group_markers(input.event_groups) @property def operation_token(self) -> str | None: @@ -3655,12 +3945,14 @@ def _apply_schedule_command(self) -> None: command.user_metadata.summary.CopyFrom( self._payload_converter.to_payload(self._input.summary) ) + command.event_group_markers.extend(self._event_group_markers) def _apply_cancel_command( self, command: temporalio.bridge.proto.workflow_commands.WorkflowCommand, ) -> None: command.request_cancel_nexus_operation.seq = self._seq + command.event_group_markers.extend(self._event_group_markers) class _ContinueAsNewError(temporalio.workflow.ContinueAsNewError): @@ -3670,6 +3962,7 @@ def __init__( super().__init__("Continue as new") self._instance = instance self._input = input + self._event_group_markers = _capture_event_group_markers(input.event_groups) def _apply_command(self) -> None: # Convert arguments before creating command in case it raises error @@ -3724,6 +4017,7 @@ def _apply_command(self) -> None: "temporalio.api.enums.v1.ContinueAsNewVersioningBehavior.ValueType", int(self._input.initial_versioning_behavior), ) + command.event_group_markers.extend(self._event_group_markers) def _encode_search_attributes( @@ -3969,8 +4263,4 @@ class _WorkflowLogicFlag(IntEnum): PROCESS_WORKFLOW_ACTIVATION_JOBS_AS_SINGLE_BATCH = 2 -# TODO: Enable PROCESS_WORKFLOW_ACTIVATION_JOBS_AS_SINGLE_BATCH by default after -# two published SDK releases have recognized flag 2. When enabling it, remove the -# explicit overrides for this flag from tests/worker/test_workflow.py, then remove -# this reminder. _DEFAULT_ENABLED_WORKFLOW_LOGIC_FLAGS: frozenset[_WorkflowLogicFlag] = frozenset() diff --git a/temporalio/worker/workflow_sandbox/_importer.py b/temporalio/worker/workflow_sandbox/_importer.py index 1ab0a1dd6..ab0d69db9 100644 --- a/temporalio/worker/workflow_sandbox/_importer.py +++ b/temporalio/worker/workflow_sandbox/_importer.py @@ -53,11 +53,15 @@ class Importer: """Importer that restricts modules.""" def __init__( - self, restrictions: SandboxRestrictions, restriction_context: RestrictionContext + self, + restrictions: SandboxRestrictions, + restriction_context: RestrictionContext, + workflow_module_name: str | None = None, ) -> None: """Create importer.""" self.restrictions = restrictions self.restriction_context = restriction_context + self._workflow_module_name = workflow_module_name self.new_modules: dict[str, types.ModuleType] = { "sys": sys, "builtins": builtins, @@ -177,7 +181,7 @@ def _traced_import( name: str, globals: Mapping[str, object] | None = None, locals: Mapping[str, object] | None = None, - fromlist: Sequence[str] = (), + fromlist: Sequence[str] | None = (), level: int = 0, ) -> types.ModuleType: _trace("Importing %s (fromlist: %s, level: %s)", name, fromlist, level) @@ -193,9 +197,10 @@ def _import( name: str, globals: Mapping[str, object] | None = None, locals: Mapping[str, object] | None = None, - fromlist: Sequence[str] = (), + fromlist: Sequence[str] | None = (), level: int = 0, ) -> types.ModuleType: + fromlist = fromlist or () # We have to resolve the full name, it can be relative at different # levels full_name = _resolve_module_name(name, globals, level) @@ -258,7 +263,12 @@ def _import( sys.modules[full_name] = new_mod new_spec.loader.exec_module(new_mod) - mod = importlib.__import__(name, globals, locals, fromlist, level) + mod = _loaded_module_for_import(full_name, fromlist, level) + if mod is None: + package = sys.modules.get(full_name) if fromlist else None + if package is not None and hasattr(package, "__path__"): + self._pass_through_fromlist_submodules(package, fromlist) + mod = importlib.__import__(name, globals, locals, fromlist, level) # Check for restrictions if necessary and apply if mod.__name__ not in self.modules_checked_for_restrictions: self.modules_checked_for_restrictions.add(mod.__name__) @@ -269,6 +279,31 @@ def _import( return mod + def _pass_through_fromlist_submodules( + self, + package: types.ModuleType, + fromlist: Sequence[str], + recursive: bool = False, + ) -> None: + # importlib imports a package's fromlist submodules with its own import + # function, so they never reach the passthrough handling in _import. + for item in fromlist: + if item == "*": + if not recursive and hasattr(package, "__all__"): + self._pass_through_fromlist_submodules( + package, package.__all__, recursive=True + ) + elif not hasattr(package, item): + submodule = f"{package.__name__}.{item}" + if self._is_passed_through(submodule): + try: + self.import_func(submodule) + except ModuleNotFoundError as err: + # Like importlib, leave an item that is not a module + # for the from import to reject + if err.name != submodule: + raise + def _assert_valid_module(self, name: str) -> None: if ( self.restrictions.invalid_modules.match_access( @@ -306,13 +341,19 @@ def _is_import_notification_policy_applied( return policy in self.restrictions.import_notification_policy + def _is_passed_through(self, name: str) -> bool: + return ( + temporalio.workflow.unsafe.is_imports_passed_through() + or self.module_configured_passthrough(name) + ) + def _maybe_passthrough_module(self, name: str) -> types.ModuleType | None: # If imports not passed through and all modules are not passed through # and name not in passthrough modules, check parents - if ( - not temporalio.workflow.unsafe.is_imports_passed_through() - and not self.module_configured_passthrough(name) - ): + if not self._is_passed_through(name): + # Workflow modules are intentionally reloaded to isolate their state. + if name == self._workflow_module_name: + return None if self._is_import_notification_policy_applied( temporalio.workflow.SandboxImportNotificationPolicy.RAISE_ON_UNINTENTIONAL_PASSTHROUGH ): @@ -539,6 +580,27 @@ def _get_thread_local_builtin(name: str) -> _ThreadLocalCallable: return ret +def _loaded_module_for_import( + full_name: str, fromlist: Sequence[str], level: int +) -> types.ModuleType | None: + # The failing GC warning path uses an ordinary absolute import. Leave the + # more involved forms, which may load children or run module hooks, to importlib. + if fromlist or level: + return None + mod = _fully_imported(full_name) + if mod is None: + return None + top = full_name.partition(".")[0] + return mod if top == full_name else _fully_imported(top) + + +def _fully_imported(name: str) -> types.ModuleType | None: + mod = sys.modules.get(name) + if mod is None or getattr(getattr(mod, "__spec__", None), "_initializing", False): + return None + return mod + + def _resolve_module_name( name: str, globals: Mapping[str, object] | None, level: int ) -> str: diff --git a/temporalio/worker/workflow_sandbox/_restrictions.py b/temporalio/worker/workflow_sandbox/_restrictions.py index 23774fcd2..606a17d8c 100644 --- a/temporalio/worker/workflow_sandbox/_restrictions.py +++ b/temporalio/worker/workflow_sandbox/_restrictions.py @@ -513,6 +513,10 @@ def with_child_unrestricted(self, *child_path: str) -> SandboxMatcher: # Due to how Pydantic is importing lazily inside of some classes, we choose # to always pass it through "pydantic", + # Same for its compiled core, which Pydantic-based libraries import lazily + "pydantic_core", + # Pydantic caches constraint classes by identity across sandboxes. + "annotated_types", } ) @@ -570,6 +574,17 @@ def _public_callables(parent: Any, *, exclude: set[str] = set()) -> set[str]: ), "asyncio": SandboxMatcher( children={ + "TaskGroup": SandboxMatcher( + children={ + "__call__": SandboxMatcher( + match_self=True, + leaf_warning=UserWarning, + leaf_message=( + "asyncio.TaskGroup() has non-deterministic task cancellation order" + ), + ) + }, + ), "as_completed": SandboxMatcher( children={ "__call__": SandboxMatcher( @@ -639,16 +654,17 @@ def _public_callables(parent: Any, *, exclude: set[str] = set()) -> set[str]: "os": SandboxMatcher( # As of https://github.com/python/cpython/pull/132662 in python 3.14 we have to allow os.path calls # which may occur during exception tracing. See https://github.com/python/cpython/issues/140228. + # The linecache change behind it was backported to python 3.13.12. children={ "path": SandboxMatcher.none - if sys.version_info >= (3, 14) + if sys.version_info >= (3, 13, 12) else SandboxMatcher.all }, access={"name"}, use={"*"}, # As of https://github.com/python/cpython/pull/112097, os.stat # calls are now made when displaying errors - exclude={"stat", "path"} if sys.version_info >= (3, 14) else {"stat"}, + exclude={"stat", "path"} if sys.version_info >= (3, 13, 12) else {"stat"}, # Only restricted at runtime only_runtime=True, ), @@ -720,7 +736,9 @@ def _public_callables(parent: Any, *, exclude: set[str] = set()) -> set[str]: "token_urlsafe", } ), - "select": SandboxMatcher.all_uses_runtime, + # Python 3.15 probes kqueue while importing subprocess on macOS. + # kevent is an inert value that kqueue.control must receive unproxied. + "select": SandboxMatcher(use={"*"}, exclude={"kevent"}, only_runtime=True), "selectors": SandboxMatcher.all_uses_runtime, "shelve": SandboxMatcher.all_uses, "shutil": SandboxMatcher.all_uses, @@ -738,6 +756,10 @@ def _public_callables(parent: Any, *, exclude: set[str] = set()) -> set[str]: use={ "pthread_getcpuclockid", "get_clock_info", + # Not available on every platform (e.g. Windows); matching a + # nonexistent attribute is harmless + "clock_gettime", + "clock_gettime_ns", "localtime", "monotonic", "monotonic_ns", @@ -954,9 +976,16 @@ def __init__( super().__init__(access_func, fallback_func=fallback_func) def bind_f(instance: _RestrictedProxy, obj: Any) -> Callable: - def i_op(self: Any, other: Any) -> _RestrictedProxy: - access_func(self, other) # type: ignore - return instance + def i_op(self: Any, other: Any) -> Any: + result = access_func(self, other) # type: ignore + if result is self: + return instance + if _is_restrictable(result): + state = _RestrictionState.from_proxy(instance) + return _RestrictedProxy( + state.name, result, state.context, state.matcher + ) + return result return i_op.__get__(obj, type(obj)) # type: ignore diff --git a/temporalio/worker/workflow_sandbox/_runner.py b/temporalio/worker/workflow_sandbox/_runner.py index 7f06bfcd6..74cdaf8f3 100644 --- a/temporalio/worker/workflow_sandbox/_runner.py +++ b/temporalio/worker/workflow_sandbox/_runner.py @@ -41,6 +41,7 @@ first_execution_run_id="sandbox-validate-first-run_id", headers={}, namespace="sandbox-validate-namespace", + original_execution_run_id="sandbox-validate-original-execution-run_id", parent=None, root=None, raw_memo={}, @@ -117,7 +118,11 @@ def __init__( ) -> None: self.instance_details = instance_details self.runner_class = runner_class - self.importer = Importer(restrictions, RestrictionContext()) + self.importer = Importer( + restrictions, + RestrictionContext(), + workflow_module_name=self._workflow_module_name(), + ) self._current_thread_id: int | None = None @@ -127,13 +132,17 @@ def __init__( } self._create_instance() - def _create_instance(self) -> None: + def _workflow_module_name(self) -> str: module_name = self.instance_details.defn.cls.__module__ # If the module name is __main__ then we change to __temporal_main__ so # we don't trigger top-level execution that happens in __main__. We do # not support importing __main__. if module_name == "__main__": module_name = "__temporal_main__" + return module_name + + def _create_instance(self) -> None: + module_name = self._workflow_module_name() try: # Import user code self._run_code( @@ -225,7 +234,10 @@ def get_external_store_context( __temporal_command_info=command_info, ) return self.globals_and_locals.pop( - "__temporal_context", StorageDriverStoreContext(target=None) + "__temporal_context", + StorageDriverStoreContext( + namespace=self.instance_details.info.namespace + ), ) # type: ignore finally: self.importer.restriction_context.is_runtime = False diff --git a/temporalio/workflow/__init__.py b/temporalio/workflow/__init__.py index fa2681139..c631fd88e 100644 --- a/temporalio/workflow/__init__.py +++ b/temporalio/workflow/__init__.py @@ -107,6 +107,10 @@ init, run, ) +from ._event_groups import ( + EventGroup, + create_event_group, +) from ._exceptions import ( ContinueAsNewVersioningBehavior, NondeterminismError, @@ -197,6 +201,7 @@ "ParentInfo", "RootInfo", "UpdateInfo", + "cancellation_reason", "current_update_info", "deprecate_patch", "extern_functions", @@ -204,7 +209,6 @@ "get_last_completion_result", "get_last_failure", "has_last_completion_result", - "cancellation_reason", "in_workflow", "info", "instance", @@ -233,10 +237,12 @@ "dynamic_config", "init", "run", + "EventGroup", + "create_event_group", + "ContinueAsNewVersioningBehavior", "NondeterminismError", "ReadOnlyContextError", "VersioningIntent", - "ContinueAsNewVersioningBehavior", "HandlerUnfinishedPolicy", "UnfinishedSignalHandlersWarning", "UnfinishedUpdateHandlersWarning", diff --git a/temporalio/workflow/_activities.py b/temporalio/workflow/_activities.py index ef883c016..abb24ab09 100644 --- a/temporalio/workflow/_activities.py +++ b/temporalio/workflow/_activities.py @@ -25,6 +25,7 @@ SelfType, ) from ._context import _Runtime +from ._event_groups import EventGroup from ._exceptions import VersioningIntent __all__ = [ @@ -85,6 +86,8 @@ class ActivityCancellationType(IntEnum): class ActivityConfig(TypedDict, total=False): """TypedDict of config that can be used for :py:func:`start_activity` and :py:func:`execute_activity`. + + ``event_groups`` is experimental and may change without notice. """ task_queue: str | None @@ -97,6 +100,7 @@ class ActivityConfig(TypedDict, total=False): activity_id: str | None versioning_intent: VersioningIntent | None summary: str | None + event_groups: Sequence[EventGroup] | None priority: temporalio.common.Priority @@ -115,6 +119,7 @@ def start_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -134,6 +139,7 @@ def start_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -154,6 +160,7 @@ def start_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -174,6 +181,7 @@ def start_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -194,6 +202,7 @@ def start_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -214,6 +223,7 @@ def start_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -236,6 +246,7 @@ def start_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: ... @@ -256,6 +267,7 @@ def start_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: """Start an activity and return its handle. @@ -293,6 +305,9 @@ def start_activity( Deprecated: Use Worker Deployment versioning instead. summary: A single-line fixed summary for this activity that may appear in UI/CLI. This can be in single-line Temporal markdown format. + event_groups: Event Groups to associate this command with, in + addition to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. priority: Priority of the activity. Returns: @@ -312,6 +327,7 @@ def start_activity( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + event_groups=event_groups, priority=priority, ) @@ -331,6 +347,7 @@ async def execute_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -350,6 +367,7 @@ async def execute_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -370,6 +388,7 @@ async def execute_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -390,6 +409,7 @@ async def execute_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -410,6 +430,7 @@ async def execute_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -430,6 +451,7 @@ async def execute_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -452,6 +474,7 @@ async def execute_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: ... @@ -472,6 +495,7 @@ async def execute_activity( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: """Start an activity and wait for completion. @@ -494,6 +518,7 @@ async def execute_activity( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + event_groups=event_groups, priority=priority, ) @@ -513,6 +538,7 @@ def start_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -532,6 +558,7 @@ def start_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -552,6 +579,7 @@ def start_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -572,6 +600,7 @@ def start_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -592,6 +621,7 @@ def start_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -612,6 +642,7 @@ def start_activity_class( # type: ignore[reportOverlappingOverload] activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -631,6 +662,7 @@ def start_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: """Start an activity from a callable class. @@ -651,6 +683,7 @@ def start_activity_class( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + event_groups=event_groups, priority=priority, ) @@ -670,6 +703,7 @@ async def execute_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -689,6 +723,7 @@ async def execute_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -709,6 +744,7 @@ async def execute_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -729,6 +765,7 @@ async def execute_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -749,6 +786,7 @@ async def execute_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -769,6 +807,7 @@ async def execute_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -788,6 +827,7 @@ async def execute_activity_class( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: """Start an activity from a callable class and wait for completion. @@ -808,6 +848,7 @@ async def execute_activity_class( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + event_groups=event_groups, priority=priority, ) @@ -827,6 +868,7 @@ def start_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -846,6 +888,7 @@ def start_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -866,6 +909,7 @@ def start_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -886,6 +930,7 @@ def start_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -906,6 +951,7 @@ def start_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -926,6 +972,7 @@ def start_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -945,6 +992,7 @@ def start_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: """Start an activity from a method. @@ -965,6 +1013,7 @@ def start_activity_method( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + event_groups=event_groups, priority=priority, ) @@ -984,6 +1033,7 @@ async def execute_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -1003,6 +1053,7 @@ async def execute_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -1023,6 +1074,7 @@ async def execute_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -1043,6 +1095,7 @@ async def execute_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -1063,6 +1116,7 @@ async def execute_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -1083,6 +1137,7 @@ async def execute_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -1102,6 +1157,7 @@ async def execute_activity_method( activity_id: str | None = None, versioning_intent: VersioningIntent | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: """Start an activity from a method and wait for completion. @@ -1124,6 +1180,7 @@ async def execute_activity_method( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + event_groups=event_groups, priority=priority, ) @@ -1131,6 +1188,8 @@ async def execute_activity_method( class LocalActivityConfig(TypedDict, total=False): """TypedDict of config that can be used for :py:func:`start_local_activity` and :py:func:`execute_local_activity`. + + ``event_groups`` is experimental and may change without notice. """ schedule_to_close_timeout: timedelta | None @@ -1141,6 +1200,7 @@ class LocalActivityConfig(TypedDict, total=False): cancellation_type: ActivityCancellationType activity_id: str | None summary: str | None + event_groups: Sequence[EventGroup] | None # Overload for async no-param activity @@ -1156,6 +1216,7 @@ def start_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1164,14 +1225,15 @@ def start_local_activity( def start_local_activity( activity: CallableSyncNoParam[ReturnType], *, - activity_id: str | None = None, schedule_to_close_timeout: timedelta | None = None, schedule_to_start_timeout: timedelta | None = None, start_to_close_timeout: timedelta | None = None, retry_policy: temporalio.common.RetryPolicy | None = None, local_retry_threshold: timedelta | None = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, + activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1189,6 +1251,7 @@ def start_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1206,6 +1269,7 @@ def start_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1223,6 +1287,7 @@ def start_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1240,6 +1305,7 @@ def start_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1259,6 +1325,7 @@ def start_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[Any]: ... @@ -1276,6 +1343,7 @@ def start_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[Any]: """Start a local activity and return its handle. @@ -1304,6 +1372,9 @@ def start_local_activity( advanced setting that should not be set unless users are sure they need to. Contact Temporal before setting this value. summary: Optional summary for the activity. + event_groups: Event Groups to associate this command with, in + addition to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. Returns: An activity handle to the activity which is an async task. @@ -1320,6 +1391,7 @@ def start_local_activity( cancellation_type=cancellation_type, activity_id=activity_id, summary=summary, + event_groups=event_groups, ) @@ -1336,6 +1408,7 @@ async def execute_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1352,6 +1425,7 @@ async def execute_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1369,6 +1443,7 @@ async def execute_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1386,6 +1461,7 @@ async def execute_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1403,6 +1479,7 @@ async def execute_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1420,6 +1497,7 @@ async def execute_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1439,6 +1517,7 @@ async def execute_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> Any: ... @@ -1456,6 +1535,7 @@ async def execute_local_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> Any: """Start a local activity and wait for completion. @@ -1475,6 +1555,7 @@ async def execute_local_activity( cancellation_type=cancellation_type, activity_id=activity_id, summary=summary, + event_groups=event_groups, ) @@ -1490,6 +1571,8 @@ def start_local_activity_class( local_retry_threshold: timedelta | None = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, + summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1505,6 +1588,8 @@ def start_local_activity_class( local_retry_threshold: timedelta | None = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, + summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1521,6 +1606,8 @@ def start_local_activity_class( local_retry_threshold: timedelta | None = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, + summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1537,6 +1624,8 @@ def start_local_activity_class( local_retry_threshold: timedelta | None = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, + summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1553,6 +1642,8 @@ def start_local_activity_class( local_retry_threshold: timedelta | None = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, + summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1569,6 +1660,8 @@ def start_local_activity_class( # type: ignore[reportOverlappingOverload] local_retry_threshold: timedelta | None = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, + summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1585,6 +1678,7 @@ def start_local_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[Any]: """Start a local activity from a callable class. @@ -1602,6 +1696,7 @@ def start_local_activity_class( cancellation_type=cancellation_type, activity_id=activity_id, summary=summary, + event_groups=event_groups, ) @@ -1618,6 +1713,7 @@ async def execute_local_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1634,6 +1730,7 @@ async def execute_local_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1651,6 +1748,7 @@ async def execute_local_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1668,6 +1766,7 @@ async def execute_local_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1685,6 +1784,7 @@ async def execute_local_activity_class( # type: ignore[reportOverlappingOverloa cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1702,6 +1802,7 @@ async def execute_local_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1718,6 +1819,7 @@ async def execute_local_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> Any: """Start a local activity from a callable class and wait for completion. @@ -1737,6 +1839,7 @@ async def execute_local_activity_class( cancellation_type=cancellation_type, activity_id=activity_id, summary=summary, + event_groups=event_groups, ) @@ -1753,6 +1856,7 @@ def start_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1769,6 +1873,7 @@ def start_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1786,6 +1891,7 @@ def start_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1803,6 +1909,7 @@ def start_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1820,6 +1927,7 @@ def start_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1837,6 +1945,7 @@ def start_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[ReturnType]: ... @@ -1853,6 +1962,7 @@ def start_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[Any]: """Start a local activity from a method. @@ -1870,6 +1980,7 @@ def start_local_activity_method( cancellation_type=cancellation_type, activity_id=activity_id, summary=summary, + event_groups=event_groups, ) @@ -1886,6 +1997,7 @@ async def execute_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1902,6 +2014,7 @@ async def execute_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1919,6 +2032,7 @@ async def execute_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1936,6 +2050,7 @@ async def execute_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1953,6 +2068,7 @@ async def execute_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1970,6 +2086,7 @@ async def execute_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> ReturnType: ... @@ -1986,6 +2103,7 @@ async def execute_local_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: str | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> Any: """Start a local activity from a method and wait for completion. @@ -2005,4 +2123,5 @@ async def execute_local_activity_method( cancellation_type=cancellation_type, activity_id=activity_id, summary=summary, + event_groups=event_groups, ) diff --git a/temporalio/workflow/_context.py b/temporalio/workflow/_context.py index b33f83150..a33759c37 100644 --- a/temporalio/workflow/_context.py +++ b/temporalio/workflow/_context.py @@ -22,6 +22,7 @@ if TYPE_CHECKING: from ._activities import ActivityCancellationType, ActivityHandle + from ._event_groups import EventGroup from ._exceptions import ContinueAsNewVersioningBehavior, VersioningIntent from ._nexus import NexusOperationCancellationType, NexusOperationHandle from ._workflow_ops import ( @@ -90,6 +91,13 @@ class Info: first_execution_run_id: str headers: Mapping[str, temporalio.api.common.v1.Payload] namespace: str + + original_execution_run_id: str + """Run ID recorded on the ``WorkflowExecutionStarted`` event. + + Unlike :py:attr:`run_id`, this value is preserved across workflow resets. + """ + parent: ParentInfo | None root: RootInfo | None priority: temporalio.common.Priority @@ -296,6 +304,7 @@ def workflow_continue_as_new( ), versioning_intent: VersioningIntent | None, initial_versioning_behavior: ContinueAsNewVersioningBehavior | None, + event_groups: Sequence[EventGroup] | None = None, ) -> NoReturn: ... @abstractmethod @@ -365,13 +374,24 @@ def workflow_memo_value( ) -> Any: ... @abstractmethod - def workflow_upsert_memo(self, updates: Mapping[str, Any]) -> None: ... + def workflow_upsert_memo( + self, + updates: Mapping[str, Any], + *, + event_groups: Sequence[EventGroup] | None = None, + ) -> None: ... @abstractmethod def workflow_metric_meter(self) -> temporalio.common.MetricMeter: ... @abstractmethod - def workflow_patch(self, id: str, *, deprecated: bool) -> bool: ... + def workflow_patch( + self, + id: str, + *, + deprecated: bool, + event_groups: Sequence[EventGroup] | None = None, + ) -> bool: ... @abstractmethod def workflow_payload_converter(self) -> temporalio.converter.PayloadConverter: ... @@ -413,6 +433,7 @@ def workflow_start_activity( activity_id: str | None, versioning_intent: VersioningIntent | None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: ... @@ -440,7 +461,9 @@ async def workflow_start_child_workflow( versioning_intent: VersioningIntent | None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> ChildWorkflowHandle[Any, Any]: ... @abstractmethod @@ -457,6 +480,7 @@ def workflow_start_local_activity( cancellation_type: ActivityCancellationType, activity_id: str | None, summary: str | None, + event_groups: Sequence[EventGroup] | None = None, ) -> ActivityHandle[Any]: ... @abstractmethod @@ -473,6 +497,7 @@ async def workflow_start_nexus_operation( cancellation_type: NexusOperationCancellationType, headers: Mapping[str, str] | None, summary: str | None, + event_groups: Sequence[EventGroup] | None = None, ) -> NexusOperationHandle[OutputT]: ... @abstractmethod @@ -485,11 +510,17 @@ def workflow_upsert_search_attributes( temporalio.common.SearchAttributes | Sequence[temporalio.common.SearchAttributeUpdate] ), + *, + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... @abstractmethod async def workflow_sleep( - self, duration: float, *, summary: str | None = None + self, + duration: float, + *, + summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... @abstractmethod @@ -499,6 +530,7 @@ async def workflow_wait_condition( *, timeout: float | None = None, timeout_summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... @abstractmethod @@ -550,7 +582,9 @@ def current_update_info() -> UpdateInfo | None: return _current_update_info.get(None) -def deprecate_patch(id: str) -> None: +def deprecate_patch( + id: str, *, event_groups: Sequence[EventGroup] | None = None +) -> None: """Mark a patch as deprecated. This marks a workflow that had :py:func:`patched` in a previous version of @@ -560,8 +594,11 @@ def deprecate_patch(id: str) -> None: Args: id: The identifier originally used with :py:func:`patched`. + event_groups: Event Groups to associate this command with, in addition + to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. """ - _Runtime.current().workflow_patch(id, deprecated=True) + _Runtime.current().workflow_patch(id, deprecated=True, event_groups=event_groups) def extern_functions() -> Mapping[str, Callable]: @@ -679,15 +716,26 @@ def memo_value( return _Runtime.current().workflow_memo_value(key, default, type_hint=type_hint) -def upsert_memo(updates: Mapping[str, Any]) -> None: +def upsert_memo( + updates: Mapping[str, Any], + *, + event_groups: Sequence[EventGroup] | None = None, +) -> None: """Adds, modifies, and/or removes memos, with upsert semantics. Every memo that has a matching key has its value replaced with the one specified in ``updates``. If the value is set to ``None``, the memo is removed instead. For every key with no existing memo, a new memo is added with specified value (unless the value is ``None``). Memos with keys not included in ``updates`` remain unchanged. + + Args: + updates: Mapping of memo keys to values. A value of ``None`` removes + the memo. + event_groups: Event Groups to associate this command with, in addition + to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. """ - return _Runtime.current().workflow_upsert_memo(updates) + return _Runtime.current().workflow_upsert_memo(updates, event_groups=event_groups) def get_current_details() -> str: @@ -759,7 +807,7 @@ def now() -> datetime: return datetime.fromtimestamp(time(), timezone.utc) -def patched(id: str) -> bool: +def patched(id: str, *, event_groups: Sequence[EventGroup] | None = None) -> bool: """Patch a workflow. When called, this will only return true if code should take the newer path @@ -772,12 +820,17 @@ def patched(id: str) -> bool: Args: id: The identifier for this patch. This identifier may be used repeatedly in the same workflow to represent the same patch + event_groups: Event Groups to associate this command with, in addition + to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. Returns: True if this should take the newer path, false if it should take the older path. """ - return _Runtime.current().workflow_patch(id, deprecated=False) + return _Runtime.current().workflow_patch( + id, deprecated=False, event_groups=event_groups + ) def payload_converter() -> temporalio.converter.PayloadConverter: @@ -827,21 +880,32 @@ def register_random_seed_callback(callback: Callable[[int], None]) -> None: return _Runtime.current().workflow_register_random_seed_callback(callback) -def new_random() -> Random: +def new_random(name: str | None = None) -> Random: """Create a Random instance that automatically reseeds when the workflow seed changes. This creates a new Random instance that is initially seeded with the current workflow seed, and automatically registers a callback to reseed itself whenever the workflow receives a new seed from core. + Args: + name: Mixed into the seed when given, so differently named instances, + and :py:func:`random`, produce different sequences. Without it the + instance starts out identical to :py:func:`random`. + Returns: A Random instance that stays synchronized with the workflow's randomness. """ - current_seed = random_seed() - auto_random = Random(current_seed) + + def seed_for(workflow_seed: int) -> int | str: + if name is None: + # Unchanged: the same integer seed as :py:func:`random`. + return workflow_seed + return f"{workflow_seed}:{name}" + + auto_random = Random(seed_for(random_seed())) def reseed_callback(new_seed: int) -> None: - auto_random.seed(new_seed) + auto_random.seed(seed_for(new_seed)) register_random_seed_callback(reseed_callback) return auto_random @@ -874,6 +938,8 @@ def upsert_search_attributes( temporalio.common.SearchAttributes | Sequence[temporalio.common.SearchAttributeUpdate] ), + *, + event_groups: Sequence[EventGroup] | None = None, ) -> None: """Upsert search attributes for this workflow. @@ -883,11 +949,16 @@ def upsert_search_attributes( search attribute keys). The dictionary form of attributes is DEPRECATED and if used, result in invalid key types on the typed_search_attributes property in the info. + event_groups: Event Groups to associate this command with, in addition + to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. """ if not attributes: return temporalio.common._warn_on_deprecated_search_attributes(attributes) - _Runtime.current().workflow_upsert_search_attributes(attributes) + _Runtime.current().workflow_upsert_search_attributes( + attributes, event_groups=event_groups + ) def uuid4() -> uuid.UUID: @@ -929,19 +1000,28 @@ def uuid7() -> uuid.UUID: ) -async def sleep(duration: float | timedelta, *, summary: str | None = None) -> None: +async def sleep( + duration: float | timedelta, + *, + summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, +) -> None: """Sleep for the given duration. Args: duration: Duration to sleep in seconds or as a timedelta. summary: A single-line fixed summary for this timer that may appear in UI/CLI. This can be in single-line Temporal markdown format. + event_groups: Event Groups to associate this command with, in addition + to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. """ await _Runtime.current().workflow_sleep( duration=( duration.total_seconds() if isinstance(duration, timedelta) else duration ), summary=summary, + event_groups=event_groups, ) @@ -950,6 +1030,7 @@ async def wait_condition( *, timeout: timedelta | float | None = None, timeout_summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> None: """Wait on a callback to become true. @@ -968,9 +1049,13 @@ async def wait_condition( timeout_summary: Optional simple string identifying the timer (created if ``timeout`` is present) that may be visible in UI/CLI. While it can be normal text, it is best to treat as a timer ID. + event_groups: Event Groups to associate the timer command (created if + ``timeout`` is present) with, in addition to those active in the + current scope. See :py:func:`temporalio.workflow.create_event_group`. """ await _Runtime.current().workflow_wait_condition( fn, timeout=timeout.total_seconds() if isinstance(timeout, timedelta) else timeout, timeout_summary=timeout_summary, + event_groups=event_groups, ) diff --git a/temporalio/workflow/_event_groups.py b/temporalio/workflow/_event_groups.py new file mode 100644 index 000000000..2f34b6960 --- /dev/null +++ b/temporalio/workflow/_event_groups.py @@ -0,0 +1,239 @@ +"""Event Groups, a way to group logically related workflow events. + +.. warning:: + Event Groups is an experimental API and may change without notice. +""" + +from __future__ import annotations + +import contextvars +from abc import ABC, abstractmethod +from collections.abc import Iterator, Sequence +from contextlib import contextmanager +from dataclasses import dataclass, field + +import temporalio.api.sdk.v1 +import temporalio.converter + +from ._context import _Runtime +from ._sandbox import logger + +__all__ = [ + "EventGroup", + "create_event_group", + "_inbound_event_group", + "_inbound_update_event_group", + "_capture_event_group_markers", +] + + +class EventGroup(ABC): + """A discrete token associating workflow commands, and the history events + they produce, with a logical group for UI and observability purposes. + + Multiple Event Groups may be attached to a single command, and a single + Event Group may be attached to multiple commands. + + Instances are created with :py:func:`create_event_group`. They may be + attached to specific commands via the ``event_groups`` option of the API + producing the command, or to every command produced within a block of + workflow code via :py:meth:`scope`. + + .. warning:: + Event Groups is an experimental API and may change without notice. + """ + + @contextmanager + def scope(self) -> Iterator[None]: + """Context manager attaching this Event Group to every command produced + within it. + + Scopes nest and compose: a command produced inside an inner scope + carries the Event Groups of all enclosing scopes. Coroutines started + within a scope inherit it, since they capture the context active at + their creation. + + Only usable from within a workflow. + + .. warning:: + Event Groups is an experimental API and may change without notice. + """ + _Runtime.current() + token = _active_event_groups.set(self._applied_over(_active_event_groups.get())) + try: + yield + finally: + try: + _active_event_groups.reset(token) + except ValueError: + # Unwinding from a context other than the one the scope was + # entered in, which happens when a coroutine suspended inside + # the scope is closed rather than resumed. The context the + # value was set in is being discarded anyway. + pass + + @abstractmethod + def _applied_over(self, active: _ActiveEventGroups) -> _ActiveEventGroups: + """Return the active set resulting from entering this group's scope.""" + ... + + @abstractmethod + def _to_proto(self) -> temporalio.api.sdk.v1.EventGroupMarker: + """Serialize as the marker attached to a workflow command.""" + ... + + +class _LabelEventGroup(EventGroup): + """An Event Group explicitly created by workflow code.""" + + def __init__(self, id: str, label: str | None) -> None: + self._id = id + self._label = label + + def _applied_over(self, active: _ActiveEventGroups) -> _ActiveEventGroups: + return _ActiveEventGroups( + implicit=active.implicit, + explicit={**active.explicit, self._id: self}, + ) + + def _to_proto(self) -> temporalio.api.sdk.v1.EventGroupMarker: + if self._label is None: + return temporalio.api.sdk.v1.EventGroupMarker( + label=temporalio.api.sdk.v1.EventGroupMarker.Label(id=self._id) + ) + # Deliberately the SDK's default converter, not the user-provided one. + return temporalio.api.sdk.v1.EventGroupMarker( + label=temporalio.api.sdk.v1.EventGroupMarker.Label( + id=self._id, + label=temporalio.converter.PayloadConverter.default.to_payload( + self._label + ), + ) + ) + + +class _ImplicitEventGroup(EventGroup): + """An Event Group created by the SDK around an inbound signal or update. + + The workflow's main function deliberately gets no such group, so commands it + produces outside any explicit scope carry no markers at all. + """ + + def __init__(self, marker: temporalio.api.sdk.v1.EventGroupMarker) -> None: + self._marker = marker + + def _applied_over(self, active: _ActiveEventGroups) -> _ActiveEventGroups: + # Implicit groups intentionally do not inherit the enclosing scope: a + # handler registered inside an explicit scope must not attribute its + # commands to that scope. + return _ActiveEventGroups(implicit=self) + + def _to_proto(self) -> temporalio.api.sdk.v1.EventGroupMarker: + return self._marker + + +class _StubImplicitEventGroup(EventGroup): + """No-op implicit group used when an inbound event ID is missing or invalid. + + Event Groups must not fail a workflow task, so the handler still enters a + scope that isolates it from enclosing explicit groups without emitting a + marker. + """ + + def _applied_over(self, active: _ActiveEventGroups) -> _ActiveEventGroups: + return _ActiveEventGroups() + + def _to_proto(self) -> temporalio.api.sdk.v1.EventGroupMarker: + return temporalio.api.sdk.v1.EventGroupMarker() + + +@dataclass(frozen=True) +class _ActiveEventGroups: + implicit: EventGroup | None = None + explicit: dict[str, _LabelEventGroup] = field(default_factory=dict) + + +_active_event_groups: contextvars.ContextVar[_ActiveEventGroups] = ( + contextvars.ContextVar( + "__temporal_active_event_groups", default=_ActiveEventGroups() + ) +) + + +def create_event_group(id: str, *, label: str | None = None) -> EventGroup: + """Create an Event Group that can be attached to commands scheduled by this + workflow. + + Attach the returned group via command ``event_groups`` options, or via + :py:meth:`EventGroup.scope`. + + Args: + id: Non-empty group identity. Commands with the same ``id`` belong to + the same group. The user-provided ID is stored as plain text in the + workflow history and should therefore not contain sensitive + information. + label: Optional non-empty display text for the UI / CLI. If provided, + it is persisted to history as a codec-encoded Payload. + + .. warning:: + Event Groups is an experimental API and may change without notice. + """ + _Runtime.current() + if not id: + raise ValueError("Event group id cannot be empty") + if label is not None and not label: + raise ValueError("Event group label cannot be empty") + return _LabelEventGroup(id, label) + + +def _inbound_event_group(event_id: int) -> EventGroup: + """Create the implicit Event Group for an inbound signal's history event.""" + if event_id <= 0: + logger.warning( + "Cannot create implicit Event Group for signal with invalid " + "originating event ID: %s", + event_id, + ) + return _StubImplicitEventGroup() + return _ImplicitEventGroup( + temporalio.api.sdk.v1.EventGroupMarker( + inbound_event=temporalio.api.sdk.v1.EventGroupMarker.InboundEvent( + inbound_event_id=event_id + ) + ) + ) + + +def _inbound_update_event_group(update_id: str) -> EventGroup: + """Create the implicit Event Group for an inbound update.""" + return _ImplicitEventGroup( + temporalio.api.sdk.v1.EventGroupMarker( + inbound_update=temporalio.api.sdk.v1.EventGroupMarker.InboundUpdate( + inbound_update_id=update_id + ) + ) + ) + + +def _capture_event_group_markers( + directs: Sequence[EventGroup] | None, +) -> list[temporalio.api.sdk.v1.EventGroupMarker]: + """Snapshot ambient and directly attached Event Groups as command markers. + + Must be called from the context the command was requested in, which is not + necessarily the one it is ultimately built in. + """ + active = _active_event_groups.get() + explicit = active.explicit + if directs: + explicit = dict(explicit) + for group in directs: + if not isinstance(group, _LabelEventGroup): + raise TypeError( + "Event groups must be created with workflow.create_event_group()" + ) + explicit[group._id] = group + markers = [group._to_proto() for group in explicit.values()] + if active.implicit: + markers.insert(0, active.implicit._to_proto()) + return markers diff --git a/temporalio/workflow/_handlers.py b/temporalio/workflow/_handlers.py index afa0bb6e4..99fafa205 100644 --- a/temporalio/workflow/_handlers.py +++ b/temporalio/workflow/_handlers.py @@ -267,7 +267,11 @@ def __call__( def validator( self, vfunc: Callable[MultiParamSpec, None] ) -> Callable[MultiParamSpec, None]: - """Use to decorate a function to validate the arguments passed to the update handler.""" + """Use to decorate a function to validate the arguments passed to the update handler. + + The validator must be a regular (non-``async``) function. Decorating an + ``async def`` function raises :py:class:`ValueError`. + """ ... @@ -568,6 +572,10 @@ def bind_validator(self, obj: Any) -> Callable[..., Any]: return lambda *args, **kwargs: None def set_validator(self, validator: Callable[..., None]) -> None: + # Validators are called without being awaited, so an async one would + # never run and every update would be accepted. + if inspect.iscoroutinefunction(validator): + raise ValueError("Update validator must not be an async function") if self.validator: raise RuntimeError(f"Validator already set for update {self.name}") object.__setattr__(self, "validator", validator) diff --git a/temporalio/workflow/_nexus.py b/temporalio/workflow/_nexus.py index 29bd10715..a23432545 100644 --- a/temporalio/workflow/_nexus.py +++ b/temporalio/workflow/_nexus.py @@ -1,7 +1,7 @@ from __future__ import annotations from abc import ABC, abstractmethod -from collections.abc import Awaitable, Callable, Generator, Mapping +from collections.abc import Awaitable, Callable, Generator, Mapping, Sequence from datetime import timedelta from enum import IntEnum from typing import Any, Generic, overload @@ -15,6 +15,7 @@ from temporalio.types import NexusServiceType from ._context import _Runtime +from ._event_groups import EventGroup __all__ = [ "NexusClient", @@ -112,6 +113,7 @@ async def start_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NexusOperationHandle[OutputT]: ... # Overload for string operation name @@ -129,6 +131,7 @@ async def start_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NexusOperationHandle[OutputT]: ... # Overload for workflow_run_operation methods @@ -149,6 +152,7 @@ async def start_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NexusOperationHandle[OutputT]: ... # Overload for sync_operation methods (async def) @@ -169,6 +173,7 @@ async def start_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NexusOperationHandle[OutputT]: ... # Overload for sync_operation methods (def) @@ -189,6 +194,7 @@ async def start_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NexusOperationHandle[OutputT]: ... # Overload for operation_handler @@ -208,6 +214,7 @@ async def start_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NexusOperationHandle[OutputT]: ... # Overload for temporal_operation methods @@ -233,6 +240,7 @@ async def start_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NexusOperationHandle[OutputT]: ... @abstractmethod @@ -248,6 +256,7 @@ async def start_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> Any: """Start a Nexus operation and return its handle. @@ -258,7 +267,14 @@ async def start_operation( schedule_to_close_timeout: Timeout for the entire operation attempt. schedule_to_start_timeout: Timeout for the operation to be started. start_to_close_timeout: Timeout for async operations to complete after starting. + cancellation_type: How the operation is treated when it is cancelled from + the workflow. headers: Headers to send with the Nexus HTTP request. + summary: A single-line fixed summary for this operation that may appear + in UI/CLI. This can be in single-line Temporal markdown format. + event_groups: Event Groups to associate this command with, in + addition to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. Returns: A handle to the Nexus operation. The result can be obtained as @@ -283,6 +299,7 @@ async def execute_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> OutputT: ... # Overload for string operation name @@ -300,6 +317,7 @@ async def execute_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> OutputT: ... # Overload for workflow_run_operation methods @@ -320,6 +338,7 @@ async def execute_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> OutputT: ... # Overload for sync_operation methods (async def) @@ -340,6 +359,7 @@ async def execute_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> OutputT: ... # Overload for sync_operation methods (def) @@ -360,6 +380,7 @@ async def execute_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> OutputT: ... # Overload for operation_handler @@ -380,6 +401,7 @@ async def execute_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> OutputT: ... # Overload for temporal_operation methods @@ -405,6 +427,7 @@ async def execute_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> OutputT: ... @abstractmethod @@ -420,6 +443,7 @@ async def execute_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> Any: """Execute a Nexus operation and return its result. @@ -430,7 +454,14 @@ async def execute_operation( schedule_to_close_timeout: Timeout for the entire operation attempt. schedule_to_start_timeout: Timeout for the operation to be started. start_to_close_timeout: Timeout for async operations to complete after starting. + cancellation_type: How the operation is treated when it is cancelled from + the workflow. headers: Headers to send with the Nexus HTTP request. + summary: A single-line fixed summary for this operation that may appear + in UI/CLI. This can be in single-line Temporal markdown format. + event_groups: Event Groups to associate this command with, in + addition to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. Returns: The operation result. @@ -477,6 +508,7 @@ async def start_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> Any: return await _Runtime.current().workflow_start_nexus_operation( endpoint=self.endpoint, @@ -490,6 +522,7 @@ async def start_operation( cancellation_type=cancellation_type, headers=headers, summary=summary, + event_groups=event_groups, ) async def execute_operation( @@ -504,6 +537,7 @@ async def execute_operation( cancellation_type: NexusOperationCancellationType = NexusOperationCancellationType.WAIT_COMPLETED, headers: Mapping[str, str] | None = None, summary: str | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> Any: handle = await self.start_operation( operation, @@ -515,6 +549,7 @@ async def execute_operation( cancellation_type=cancellation_type, headers=headers, summary=summary, + event_groups=event_groups, ) return await handle diff --git a/temporalio/workflow/_sandbox.py b/temporalio/workflow/_sandbox.py index 32a053604..a30c2aed4 100644 --- a/temporalio/workflow/_sandbox.py +++ b/temporalio/workflow/_sandbox.py @@ -1,7 +1,6 @@ from __future__ import annotations import logging -import sys import threading from collections.abc import Iterator, Mapping, MutableMapping from contextlib import contextmanager @@ -31,9 +30,17 @@ class SandboxImportNotificationPolicy(Flag): WARN_ON_DYNAMIC_IMPORT = auto() """Allows dynamic imports that do not violate sandbox restrictions but issues a warning when an import is triggered in the sandbox after initial workflow load.""" WARN_ON_UNINTENTIONAL_PASSTHROUGH = auto() - """Allows imports that do not violate sandbox restrictions but issues a warning when an import is triggered in the sandbox that was unintentionally passed through.""" + """Allows imports that do not violate sandbox restrictions but issues a warning when an import is triggered in the sandbox that was unintentionally passed through. + + The workflow's defining module is exempt because it is intentionally reloaded + in the sandbox. + """ RAISE_ON_UNINTENTIONAL_PASSTHROUGH = auto() - """Raise an error when an import is triggered in the sandbox that was unintentionally passed through.""" + """Raise an error when an import is triggered in the sandbox that was unintentionally passed through. + + The workflow's defining module is exempt because it is intentionally reloaded + in the sandbox. + """ class unsafe: @@ -282,10 +289,6 @@ def log( **kwargs: Any, ): """Override to potentially disable the sandbox.""" - if sys.version_info < (3, 11) and stacklevel == 1: - # An additional stacklevel is needed on 3.10 because it doesn't skip internal frames until after stacklevel - # is decremented, so it needs an additional stacklevel to skip the internal frame. - stacklevel += 1 # type: ignore[reportUnreachable] stacklevel += 1 if self.disable_sandbox: with unsafe.sandbox_unrestricted(): diff --git a/temporalio/workflow/_workflow_ops.py b/temporalio/workflow/_workflow_ops.py index f80ca1bdb..bbf95f6c2 100644 --- a/temporalio/workflow/_workflow_ops.py +++ b/temporalio/workflow/_workflow_ops.py @@ -20,6 +20,7 @@ ) from ._activities import _AsyncioTask from ._context import _Runtime, uuid4 +from ._event_groups import EventGroup from ._exceptions import ContinueAsNewVersioningBehavior, VersioningIntent __all__ = [ @@ -72,6 +73,8 @@ def first_execution_run_id(self) -> str | None: async def signal( self, signal: MethodSyncOrAsyncNoParam[SelfType, None], + *, + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... @overload @@ -79,6 +82,8 @@ async def signal( self, signal: MethodSyncOrAsyncSingleParam[SelfType, ParamType, None], arg: ParamType, + *, + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... @overload @@ -87,6 +92,7 @@ async def signal( signal: Callable[Concatenate[SelfType, MultiParamSpec], Awaitable[None] | None], *, args: Sequence[Any], + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... @overload @@ -96,6 +102,7 @@ async def signal( arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = [], + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... async def signal( @@ -104,6 +111,7 @@ async def signal( arg: Any = temporalio.common._arg_unset, # type: ignore[reportUnusedParameter] *, args: Sequence[Any] = [], # type: ignore[reportUnusedParameter] + event_groups: Sequence[EventGroup] | None = None, # type: ignore[reportUnusedParameter] ) -> None: """Signal this child workflow. @@ -111,6 +119,8 @@ async def signal( signal: Name or method reference for the signal. arg: Single argument to the signal. args: Multiple arguments to the signal. Cannot be set if arg is. + event_groups: Event Groups to associate this command with, in + addition to any from the current Event Group scope. """ raise NotImplementedError @@ -153,6 +163,9 @@ class ParentClosePolicy(IntEnum): class ChildWorkflowConfig(TypedDict, total=False): """TypedDict of config that can be used for :py:func:`start_child_workflow` and :py:func:`execute_child_workflow`. + + ``event_groups`` and ``versioning_override`` are experimental and may change + without notice. """ id: str | None @@ -170,8 +183,10 @@ class ChildWorkflowConfig(TypedDict, total=False): temporalio.common.SearchAttributes | temporalio.common.TypedSearchAttributes ) versioning_intent: VersioningIntent | None + versioning_override: temporalio.common.VersioningOverride | None static_summary: str | None static_details: str | None + event_groups: Sequence[EventGroup] | None priority: temporalio.common.Priority @@ -198,7 +213,9 @@ async def start_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> ChildWorkflowHandle[SelfType, ReturnType]: ... @@ -226,7 +243,9 @@ async def start_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> ChildWorkflowHandle[SelfType, ReturnType]: ... @@ -254,7 +273,9 @@ async def start_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> ChildWorkflowHandle[SelfType, ReturnType]: ... @@ -284,7 +305,9 @@ async def start_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> ChildWorkflowHandle[Any, Any]: ... @@ -312,7 +335,9 @@ async def start_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> ChildWorkflowHandle[Any, Any]: """Start a child workflow and return its handle. @@ -349,7 +374,13 @@ async def start_child_workflow( UI/CLI. This can be in Temporal markdown format and can span multiple lines. This is a fixed value on the workflow that cannot be updated. For details that can be updated, use :py:meth:`get_current_details` within the workflow. + event_groups: Event Groups to associate this command with, in + addition to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. priority: Priority to use for this workflow. + versioning_override: Experimental override of the child workflow's versioning + behavior. Takes precedence over versioning inherited from the parent + workflow. Requires Temporal Server 1.32 or newer. Returns: A workflow handle to the started/existing workflow. @@ -374,7 +405,9 @@ async def start_child_workflow( versioning_intent=versioning_intent, static_summary=static_summary, static_details=static_details, + event_groups=event_groups, priority=priority, + versioning_override=versioning_override, ) @@ -401,7 +434,9 @@ async def execute_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> ReturnType: ... @@ -429,7 +464,9 @@ async def execute_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> ReturnType: ... @@ -457,7 +494,9 @@ async def execute_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> ReturnType: ... @@ -487,7 +526,9 @@ async def execute_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> Any: ... @@ -515,7 +556,9 @@ async def execute_child_workflow( versioning_intent: VersioningIntent | None = None, static_summary: str | None = None, static_details: str | None = None, + event_groups: Sequence[EventGroup] | None = None, priority: temporalio.common.Priority = temporalio.common.Priority.default, + versioning_override: temporalio.common.VersioningOverride | None = None, ) -> Any: """Start a child workflow and wait for completion. @@ -543,7 +586,9 @@ async def execute_child_workflow( versioning_intent=versioning_intent, static_summary=static_summary, static_details=static_details, + event_groups=event_groups, priority=priority, + versioning_override=versioning_override, ) return await handle @@ -569,6 +614,8 @@ def run_id(self) -> str | None: async def signal( self, signal: MethodSyncOrAsyncNoParam[SelfType, None], + *, + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... @overload @@ -576,6 +623,8 @@ async def signal( self, signal: MethodSyncOrAsyncSingleParam[SelfType, ParamType, None], arg: ParamType, + *, + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... @overload @@ -585,6 +634,7 @@ async def signal( arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = [], + event_groups: Sequence[EventGroup] | None = None, ) -> None: ... async def signal( @@ -593,6 +643,7 @@ async def signal( arg: Any = temporalio.common._arg_unset, # type: ignore[reportUnusedParameter] *, args: Sequence[Any] = [], # type: ignore[reportUnusedParameter] + event_groups: Sequence[EventGroup] | None = None, # type: ignore[reportUnusedParameter] ) -> None: """Signal this external workflow. @@ -600,11 +651,18 @@ async def signal( signal: Name or method reference for the signal. arg: Single argument to the signal. args: Multiple arguments to the signal. Cannot be set if arg is. + event_groups: Event Groups to associate this command with, in + addition to any from the current Event Group scope. """ raise NotImplementedError - async def cancel(self, *, reason: str = "") -> None: # pyright: ignore[reportUnusedParameter] + async def cancel( + self, + *, + reason: str = "", # pyright: ignore[reportUnusedParameter] + event_groups: Sequence[EventGroup] | None = None, # pyright: ignore[reportUnusedParameter] + ) -> None: """Send a cancellation request to this external workflow. This will fail if the workflow cannot accept the request (e.g. if the @@ -613,6 +671,8 @@ async def cancel(self, *, reason: str = "") -> None: # pyright: ignore[reportUn Args: reason: Reason recorded with the cancellation request. Available in the target workflow via :py:func:`cancellation_reason`. + event_groups: Event Groups to associate this command with, in + addition to any from the current Event Group scope. """ raise NotImplementedError @@ -692,6 +752,7 @@ def continue_as_new( ) = None, versioning_intent: VersioningIntent | None = None, initial_versioning_behavior: ContinueAsNewVersioningBehavior | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NoReturn: ... @@ -712,6 +773,7 @@ def continue_as_new( ) = None, versioning_intent: VersioningIntent | None = None, initial_versioning_behavior: ContinueAsNewVersioningBehavior | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NoReturn: ... @@ -733,6 +795,7 @@ def continue_as_new( ) = None, versioning_intent: VersioningIntent | None = None, initial_versioning_behavior: ContinueAsNewVersioningBehavior | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NoReturn: ... @@ -754,6 +817,7 @@ def continue_as_new( ) = None, versioning_intent: VersioningIntent | None = None, initial_versioning_behavior: ContinueAsNewVersioningBehavior | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NoReturn: ... @@ -775,6 +839,7 @@ def continue_as_new( ) = None, versioning_intent: VersioningIntent | None = None, initial_versioning_behavior: ContinueAsNewVersioningBehavior | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NoReturn: ... @@ -795,6 +860,7 @@ def continue_as_new( ) = None, versioning_intent: VersioningIntent | None = None, initial_versioning_behavior: ContinueAsNewVersioningBehavior | None = None, + event_groups: Sequence[EventGroup] | None = None, ) -> NoReturn: """Stop the workflow immediately and continue as new. @@ -819,6 +885,9 @@ def continue_as_new( versioning_intent: When using the Worker Versioning feature, specifies whether this Workflow should Continue-as-New onto a worker with a compatible Build Id or not. Deprecated: Use Worker Deployment versioning instead. + event_groups: Event Groups to associate this command with, in + addition to those active in the current scope. See + :py:func:`temporalio.workflow.create_event_group`. Returns: Never returns, always raises a :py:class:`ContinueAsNewError`. @@ -840,6 +909,7 @@ def continue_as_new( search_attributes=search_attributes, versioning_intent=versioning_intent, initial_versioning_behavior=initial_versioning_behavior, + event_groups=event_groups, ) @@ -979,6 +1049,7 @@ def set_update_handler( name: Name of the update. handler: Callable to set or None to unset. validator: Callable to set or None to unset as the update validator. + This must not be an ``async def`` function. """ _Runtime.current().workflow_set_update_handler(name, handler, validator) @@ -1006,6 +1077,7 @@ def set_dynamic_update_handler( Args: handler: Callable to set or None to unset. validator: Callable to set or None to unset as the update validator. + This must not be an ``async def`` function. """ _Runtime.current().workflow_set_update_handler(None, handler, validator) diff --git a/tests/__init__.py b/tests/__init__.py index eff2c8adb..4d76781a2 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1 @@ -DEV_SERVER_DOWNLOAD_VERSION = "v1.8.3-server-1.32.0-162.0" +DEV_SERVER_DOWNLOAD_VERSION = "v1.9.3-nexus-serialization-context" diff --git a/tests/api/test_protobuf.py b/tests/api/test_protobuf.py new file mode 100644 index 000000000..b42b4e96b --- /dev/null +++ b/tests/api/test_protobuf.py @@ -0,0 +1,31 @@ +import importlib +import pickle + +import pytest + + +@pytest.mark.parametrize( + ("module_name", "type_name"), + [ + ("temporalio.api.common.v1.message_pb2", "Payload"), + ("temporalio.bridge.proto.common.common_pb2", "NamespacedWorkflowExecution"), + ( + "temporalio.api.dependencies.nexusannotations.v1.options_pb2", + "OperationOptions", + ), + ( + "temporalio.api.dependencies.protoc_gen_openapiv2.options.openapiv2_pb2", + "Info", + ), + ( + "tests.worker.workflow_sandbox.testmodules.proto.proto_message_pb2", + "SomeMessage", + ), + ], +) +def test_generated_protobuf_pickle(module_name: str, type_name: str): + module = importlib.import_module(module_name) + message = getattr(module, type_name)() + + assert type(message).__module__ == module_name + assert pickle.loads(pickle.dumps(message)) == message diff --git a/tests/conftest.py b/tests/conftest.py index 3c02d8d18..b96e58f66 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ import asyncio +import gc import multiprocessing.context import os import sys @@ -13,6 +14,7 @@ from opentelemetry.metrics import NoOpMeterProvider from opentelemetry.util._once import Once +import temporalio.converter._extstore from temporalio.client import Client from temporalio.envconfig import ClientConfigProfile from temporalio.testing import WorkflowEnvironment @@ -35,22 +37,6 @@ f"Expected {temporalio.__file__} to be in {sys.prefix}" ) -# Unless specifically overridden, we expect tests to run under protobuf 4.x/5.x/6.x/7.x lib -import google.protobuf - -protobuf_version = google.protobuf.__version__ -if os.getenv("TEMPORAL_TEST_PROTO3"): - assert protobuf_version.startswith("3."), ( - f"Expected protobuf 3.x, got {protobuf_version}" - ) -else: - assert ( - protobuf_version.startswith("4.") - or protobuf_version.startswith("5.") - or protobuf_version.startswith("6.") - or protobuf_version.startswith("7.") - ), f"Expected protobuf 4.x/5.x/6.x/7.x, got {protobuf_version}" - def pytest_runtest_setup(item): # type: ignore[reportMissingParameterType] """Print a newline so that custom printed output starts on new line.""" @@ -58,16 +44,22 @@ def pytest_runtest_setup(item): # type: ignore[reportMissingParameterType] print() +def pytest_collection_finish() -> None: + # Freeze the import-time heap once so full GC passes only cover test allocations + gc.collect() + gc.freeze() + + def pytest_addoption(parser): # type: ignore[reportMissingParameterType] parser.addoption( "-E", "--workflow-environment", default="local", - help="Which workflow environment to use ('local', 'time-skipping', 'envconfig', or ip:port for existing server)", + help="Which workflow environment to use ('local', 'time-skipping-v1', 'time-skipping-v2', 'envconfig', or ip:port for existing server)", ) -def _uses_envconfig_server(env_type: str) -> bool: +def _uses_envconfig_server(env_type: str | None) -> bool: return env_type == "envconfig" @@ -124,11 +116,13 @@ def set_event_loop(self, loop): # type: ignore[reportMissingParameterType] def new_event_loop(self): # type: ignore[reportIncompatibleMethodOverride] return None - def get_child_watcher(self): - return self._underlying.get_child_watcher() # type: ignore[reportDeprecated] + if sys.version_info < (3, 14): + + def get_child_watcher(self): + return self._underlying.get_child_watcher() # type: ignore[reportDeprecated] - def set_child_watcher(self, watcher): # type: ignore[reportMissingParameterType] - return self._underlying.set_child_watcher(watcher) # type: ignore[reportDeprecated] + def set_child_watcher(self, watcher): # type: ignore[reportMissingParameterType] + return self._underlying.set_child_watcher(watcher) # type: ignore[reportDeprecated] @pytest.fixture(scope="session") @@ -138,58 +132,70 @@ def env_type(request: pytest.FixtureRequest) -> str: @pytest_asyncio.fixture(scope="session") # type: ignore[reportUntypedFunctionDecorator] async def env(env_type: str) -> AsyncGenerator[WorkflowEnvironment, None]: + dev_server_extra_args = [ + "--dynamic-config-value", + "system.forceSearchAttributesCacheRefreshOnRead=true", + "--dynamic-config-value", + f"limit.historyCount.suggestContinueAsNew={CONTINUE_AS_NEW_SUGGEST_HISTORY_COUNT}", + "--dynamic-config-value", + "system.enableEagerWorkflowStart=true", + "--dynamic-config-value", + "frontend.enableExecuteMultiOperation=true", + "--dynamic-config-value", + "frontend.workerVersioningWorkflowAPIs=true", + "--dynamic-config-value", + "frontend.workerVersioningDataAPIs=true", + "--dynamic-config-value", + "system.enableDeploymentVersions=true", + "--dynamic-config-value", + "frontend.activityAPIsEnabled=true", + "--dynamic-config-value", + "frontend.enableCancelWorkerPollsOnShutdown=true", + "--dynamic-config-value", + "frontend.WorkerHeartbeatsEnabled=true", + "--dynamic-config-value", + "frontend.ListWorkersEnabled=true", + "--dynamic-config-value", + "component.nexusoperations.recordCancelRequestCompletionEvents=true", + "--dynamic-config-value", + "activity.enableStandalone=true", + "--dynamic-config-value", + "activity.startDelayEnabled=true", + "--dynamic-config-value", + "history.enableChasm=true", + "--dynamic-config-value", + "history.enableTransitionHistory=true", + "--dynamic-config-value", + "history.enableCHASMCallbacks=true", + "--dynamic-config-value", + "history.enableCHASMSignalBacklinks=true", + "--dynamic-config-value", + "nexusoperation.enableStandalone=true", + "--dynamic-config-value", + 'system.system.refreshNexusEndpointsMinWait="0s"', + "--dynamic-config-value", + "frontend.WorkflowTimeSkippingEnabled=true", + "--dynamic-config-value", + "history.enableSignalWithStartFromWorkflow=true", + "--dynamic-config-value", + "history.enableUpdateCallbacks=true", + "--dynamic-config-value", + "activity.enableCallbacks=true", + ] if _uses_envconfig_server(env_type): env = await _create_env_from_envconfig() elif env_type == "local": env = await WorkflowEnvironment.start_local( - dev_server_extra_args=[ - "--dynamic-config-value", - "system.forceSearchAttributesCacheRefreshOnRead=true", - "--dynamic-config-value", - f"limit.historyCount.suggestContinueAsNew={CONTINUE_AS_NEW_SUGGEST_HISTORY_COUNT}", - "--dynamic-config-value", - "system.enableEagerWorkflowStart=true", - "--dynamic-config-value", - "frontend.enableExecuteMultiOperation=true", - "--dynamic-config-value", - "frontend.workerVersioningWorkflowAPIs=true", - "--dynamic-config-value", - "frontend.workerVersioningDataAPIs=true", - "--dynamic-config-value", - "system.enableDeploymentVersions=true", - "--dynamic-config-value", - "frontend.activityAPIsEnabled=true", - "--dynamic-config-value", - "frontend.enableCancelWorkerPollsOnShutdown=true", - "--dynamic-config-value", - "component.nexusoperations.recordCancelRequestCompletionEvents=true", - "--dynamic-config-value", - "activity.enableStandalone=true", - "--dynamic-config-value", - "activity.startDelayEnabled=true", - "--dynamic-config-value", - "history.enableChasm=true", - "--dynamic-config-value", - "history.enableTransitionHistory=true", - "--dynamic-config-value", - "history.enableCHASMCallbacks=true", - "--dynamic-config-value", - "history.enableCHASMSignalBacklinks=true", - "--dynamic-config-value", - "nexusoperation.enableStandalone=true", - "--dynamic-config-value", - 'system.system.refreshNexusEndpointsMinWait="0s"', - "--dynamic-config-value", - "history.enableSignalWithStartFromWorkflow=true", - "--dynamic-config-value", - "history.enableUpdateCallbacks=true", - "--dynamic-config-value", - "activity.enableCallbacks=true", - ], + dev_server_extra_args=dev_server_extra_args, dev_server_download_version=DEV_SERVER_DOWNLOAD_VERSION, ) - elif env_type == "time-skipping": + elif env_type == "time-skipping-v1": env = await WorkflowEnvironment.start_time_skipping() + elif env_type == "time-skipping-v2": + env = await WorkflowEnvironment.start_time_skipping_v2( + dev_server_extra_args=dev_server_extra_args, + dev_server_download_version=DEV_SERVER_DOWNLOAD_VERSION, + ) else: env = WorkflowEnvironment.from_client(await Client.connect(env_type)) @@ -332,3 +338,12 @@ def reset_otel_logger_provider(): yield opentelemetry._logs._internal._LOGGER_PROVIDER_SET_ONCE = Once() opentelemetry._logs._internal._LOGGER_PROVIDER = None + + +@pytest.fixture +def encode_storage_references(monkeypatch: pytest.MonkeyPatch) -> None: + """Turn on writing marked, codec-encoded external storage references, which + is off by default until a later release.""" + monkeypatch.setattr( + temporalio.converter._extstore, "_ENCODE_STORAGE_REFERENCES", True + ) diff --git a/tests/contrib/aws/lambda_worker/test_lambda_worker.py b/tests/contrib/aws/lambda_worker/test_lambda_worker.py index 9d2ec78a7..897ec17bd 100644 --- a/tests/contrib/aws/lambda_worker/test_lambda_worker.py +++ b/tests/contrib/aws/lambda_worker/test_lambda_worker.py @@ -2,8 +2,10 @@ from __future__ import annotations +import asyncio import dataclasses import itertools +from collections.abc import Awaitable, Callable from contextlib import asynccontextmanager from datetime import timedelta from pathlib import Path @@ -258,6 +260,61 @@ def fake_create_worker(_client: Any, **kwargs: Any) -> Any: ) +async def _connect_fails(**_kwargs: Any) -> Any: + raise RuntimeError("cannot connect") + + +def _create_worker_fails(_client: Any, **_kwargs: Any) -> Any: + raise ValueError("bad worker config") + + +async def _run_fails() -> None: + raise RuntimeError("worker boom") + + +async def _run_cancelled() -> None: + raise asyncio.CancelledError() + + +def _create_worker_running(run: Callable[[], Awaitable[None]]) -> Callable[..., Any]: + """A create_worker whose worker runs *run* instead of returning right away.""" + worker = MagicMock() + worker.run = run + return lambda _client, **_kwargs: worker + + +def _invoke( + handler: Callable[[Any, Any], None], error: type[BaseException] | None +) -> None: + """Invoke *handler* once, expecting it to raise *error* if one is given.""" + if error is None: + handler({}, _make_lambda_context()) + else: + with pytest.raises(error): + handler({}, _make_lambda_context()) + + +# (deps overrides, expected exception) for each way an invocation can end. +_INVOCATION_ENDINGS = [ + pytest.param({}, None, id="success"), + pytest.param({"getenv": lambda _: None}, ValueError, id="task-queue-error"), + pytest.param({"connect": _connect_fails}, RuntimeError, id="connect-error"), + pytest.param( + {"create_worker": _create_worker_fails}, ValueError, id="create-worker-error" + ), + pytest.param( + {"create_worker": _create_worker_running(_run_fails)}, + RuntimeError, + id="worker-error", + ), + pytest.param( + {"create_worker": _create_worker_running(_run_cancelled)}, + asyncio.CancelledError, + id="cancelled", + ), +] + + class TestRunWorkerInternal: def test_returns_handler(self) -> None: deps = _make_test_deps() @@ -435,6 +492,77 @@ def second() -> None: handler({}, _make_lambda_context()) assert second_called + @pytest.mark.parametrize(("overrides", "error"), _INVOCATION_ENDINGS) + def test_shutdown_hooks_run_however_invocation_ends( + self, overrides: dict[str, Any], error: type[BaseException] | None + ) -> None: + deps = dataclasses.replace(_make_test_deps(), **overrides) + hook_calls = 0 + + def configure(config: LambdaWorkerConfig) -> None: + def hook() -> None: + nonlocal hook_calls + hook_calls += 1 + + config.shutdown_hooks.append(hook) + + handler = _run_worker_internal(TEST_VERSION, configure, deps) + _invoke(handler, error) + assert hook_calls == 1 + + def test_shutdown_hook_error_keeps_invocation_failure(self) -> None: + deps = dataclasses.replace( + _make_test_deps(), create_worker=_create_worker_running(_run_fails) + ) + order: list[str] = [] + + def configure(config: LambdaWorkerConfig) -> None: + def failing() -> None: + raise RuntimeError("flush failed") + + config.shutdown_hooks.append(failing) + config.shutdown_hooks.append(lambda: order.append("second")) + + handler = _run_worker_internal(TEST_VERSION, configure, deps) + with pytest.raises(RuntimeError, match="worker boom"): + handler({}, _make_lambda_context()) + assert order == ["second"] + + def test_shutdown_hooks_run_when_deadline_is_too_short(self) -> None: + deps = _make_test_deps() + order: list[str] = [] + + def configure(config: LambdaWorkerConfig) -> None: + config.shutdown_deadline_buffer = timedelta(milliseconds=1500) + config.shutdown_hooks.append(lambda: order.append("hook")) + + handler = _run_worker_internal(TEST_VERSION, configure, deps) + with pytest.raises(RuntimeError, match="Lambda timeout is too short"): + handler({}, _make_lambda_context(remaining_ms=2000)) + assert order == ["hook"] + + def test_shutdown_hooks_run_when_deadline_stops_worker(self) -> None: + """The usual end of an invocation: the worker is cancelled at the deadline.""" + + async def run_until_cancelled() -> None: + await asyncio.Event().wait() + + deps = dataclasses.replace( + _make_test_deps(), create_worker=_create_worker_running(run_until_cancelled) + ) + order: list[str] = [] + + def configure(config: LambdaWorkerConfig) -> None: + config.shutdown_deadline_buffer = timedelta(milliseconds=500) + config.shutdown_hooks.append(lambda: order.append("hook")) + + # The first reading passes the deadline check, the second leaves 50ms for work. + context = _make_lambda_context() + context.get_remaining_time_in_millis.side_effect = [2000, 550] + handler = _run_worker_internal(TEST_VERSION, configure, deps) + handler({}, context) + assert order == ["hook"] + def test_tight_deadline_raises_error(self) -> None: deps = _make_test_deps() @@ -610,6 +738,26 @@ async def configure(config: LambdaWorkerConfig): handler({}, _make_lambda_context()) assert torn_down + @pytest.mark.parametrize(("overrides", "error"), _INVOCATION_ENDINGS) + def test_async_generator_shutdown_hooks_run_before_teardown( + self, overrides: dict[str, Any], error: type[BaseException] | None + ) -> None: + """Shutdown hooks run before the post-yield teardown however the invocation ends, + so a hook can still use the resource the teardown closes.""" + deps = dataclasses.replace(_make_test_deps(), **overrides) + events: list[str] = [] + + async def configure(config: LambdaWorkerConfig): + config.shutdown_hooks.append(lambda: events.append("hook")) + try: + yield + finally: + events.append("teardown") + + handler = _run_worker_internal(TEST_VERSION, configure, deps) + _invoke(handler, error) + assert events == ["hook", "teardown"] + def test_async_generator_resource_per_invocation(self) -> None: """Each invocation builds and tears down its own resource instance. Tagging each resource with a construction sequence number proves the instances are distinct diff --git a/tests/contrib/aws/lambda_worker/test_otel.py b/tests/contrib/aws/lambda_worker/test_otel.py index 97f3d9647..3f7e6285f 100644 --- a/tests/contrib/aws/lambda_worker/test_otel.py +++ b/tests/contrib/aws/lambda_worker/test_otel.py @@ -2,11 +2,23 @@ from __future__ import annotations +import threading +from collections.abc import Iterator, Sequence from datetime import timedelta +from typing import Any from unittest.mock import patch import pytest +from opentelemetry import trace +from opentelemetry.sdk.trace import ReadableSpan, TracerProvider +from opentelemetry.sdk.trace.export import ( + BatchSpanProcessor, + SpanExporter, + SpanExportResult, +) +from opentelemetry.util._once import Once +from temporalio.contrib.aws.lambda_worker import otel from temporalio.contrib.aws.lambda_worker._configure import ( LambdaWorkerConfig, _run_shutdown_hooks, @@ -149,6 +161,94 @@ def test_default_options_used_when_none(self) -> None: assert len(config.shutdown_hooks) == 1 +class _RecordingExporter(SpanExporter): + def __init__(self) -> None: + super().__init__() + self.exported: list[str] = [] + + def export(self, spans: Sequence[ReadableSpan]) -> SpanExportResult: + self.exported.extend(span.name for span in spans) + return SpanExportResult.SUCCESS + + +def _span_export_threads() -> int: + return sum( + 1 for t in threading.enumerate() if t.name == "OtelBatchSpanRecordProcessor" + ) + + +class TestApplyDefaultsWarmInvocations: + """``configure`` runs on every Lambda invocation in the same warm process.""" + + @pytest.fixture(autouse=True) + def exporters( + self, monkeypatch: pytest.MonkeyPatch + ) -> Iterator[list[_RecordingExporter]]: + """Isolate the global provider and record every span exporter that gets built.""" + # OpenTelemetry only allows the global provider to be set once per process. + exporters: list[_RecordingExporter] = [] + monkeypatch.setattr(trace, "_TRACER_PROVIDER", None) + monkeypatch.setattr(trace, "_TRACER_PROVIDER_SET_ONCE", Once()) + monkeypatch.setattr(otel, "_installed_tracer_provider", None, raising=False) + + def build_processor(*_args: Any, **_kwargs: Any) -> BatchSpanProcessor: + exporter = _RecordingExporter() + exporters.append(exporter) + return BatchSpanProcessor(exporter) + + monkeypatch.setattr( + otel._serverless, # type: ignore[reportPrivateUsage] + "build_otlp_span_processor", + build_processor, + ) + yield exporters + provider = trace.get_tracer_provider() + if isinstance(provider, TracerProvider): + provider.shutdown() + + def test_reuses_provider_across_invocations( + self, exporters: list[_RecordingExporter] + ) -> None: + baseline = _span_export_threads() + providers = [] + for _ in range(4): + apply_defaults(LambdaWorkerConfig()) + providers.append(trace.get_tracer_provider()) + assert len({id(p) for p in providers}) == 1 + assert len(exporters) == 1 + assert _span_export_threads() == baseline + 1 + + def test_does_not_warn_about_overriding_provider( + self, caplog: pytest.LogCaptureFixture + ) -> None: + apply_defaults(LambdaWorkerConfig()) + caplog.clear() + apply_defaults(LambdaWorkerConfig()) + assert "Overriding of current TracerProvider" not in caplog.text + + @pytest.mark.asyncio + async def test_flush_hook_exports_on_every_invocation( + self, exporters: list[_RecordingExporter] + ) -> None: + for invocation in range(3): + config = LambdaWorkerConfig() + apply_defaults(config) + tracer = trace.get_tracer("test") + with tracer.start_as_current_span(f"span-{invocation}"): + pass + await _run_shutdown_hooks(config) + assert exporters[0].exported == ["span-0", "span-1", "span-2"] + + def test_unused_provider_is_shut_down_when_global_already_set(self) -> None: + foreign = TracerProvider() + trace.set_tracer_provider(foreign) + baseline = _span_export_threads() + for _ in range(3): + apply_defaults(LambdaWorkerConfig()) + assert trace.get_tracer_provider() is foreign + assert _span_export_threads() == baseline + + class TestOtelOptions: def test_defaults(self) -> None: opts = OtelOptions() diff --git a/tests/contrib/aws/s3driver/test_s3driver.py b/tests/contrib/aws/s3driver/test_s3driver.py index 05628a7f2..add26b369 100644 --- a/tests/contrib/aws/s3driver/test_s3driver.py +++ b/tests/contrib/aws/s3driver/test_s3driver.py @@ -15,7 +15,7 @@ from collections.abc import Callable, Coroutine from functools import wraps from typing import Any -from unittest.mock import MagicMock +from unittest.mock import AsyncMock, MagicMock import pytest from botocore.exceptions import ClientError @@ -203,12 +203,159 @@ def test_type(self) -> None: class TestS3StorageDriverKeyConstruction: + @pytest.mark.parametrize( + "target_type,identity", + [ + (StorageDriverWorkflowInfo, "wt/null/wi"), + (StorageDriverActivityInfo, "at/null/ai"), + ], + ) + async def test_empty_namespace( + self, + driver_client: S3StorageDriverClient, + target_type: type[StorageDriverWorkflowInfo] | type[StorageDriverActivityInfo], + identity: str, + ) -> None: + driver = S3StorageDriver(client=driver_client, bucket=BUCKET) + payload = make_payload() + [claim] = await driver.store( + make_store_context(target_type(namespace="")), [payload] + ) + digest = hashlib.sha256(payload.SerializeToString()).hexdigest() + assert claim.claim_data["key"] == ( + f"v0/ns/null/{identity}/null/ri/null/d/sha256/{digest}" + ) + assert await driver.retrieve(StorageDriverRetrieveContext(), [claim]) == [ + payload + ] + + @pytest.mark.parametrize( + "target_type", [StorageDriverWorkflowInfo, StorageDriverActivityInfo] + ) + @pytest.mark.parametrize("size", [1023, 1024, 1025]) + @pytest.mark.parametrize("char", ["x", "日"]) + async def test_key_length_boundary( + self, + driver_client: S3StorageDriverClient, + target_type: type[StorageDriverWorkflowInfo] | type[StorageDriverActivityInfo], + size: int, + char: str, + ) -> None: + driver = S3StorageDriver(client=driver_client, bucket=BUCKET) + payload = make_payload() + digest = hashlib.sha256(payload.SerializeToString()).hexdigest() + identity = ( + "wt/Type/wi" if target_type is StorageDriverWorkflowInfo else "at/Type/ai" + ) + prefix = f"v0/ns/ns/{identity}/" + suffix = f"/ri/run/d/sha256/{digest}" + remaining = size - len(prefix) - len(suffix) + encoded_char = "x" if char == "x" else "%E6%97%A5" + count, padding = divmod(remaining, len(encoded_char)) + target_id = char * count + "x" * padding + [claim] = await driver.store( + make_store_context( + target_type(namespace="ns", type="Type", id=target_id, run_id="run") + ), + [payload], + ) + assert claim.claim_data["key"] == ( + f"v0/ns/ns/d/sha256/{digest}" + if size > 1024 + else f"{prefix}{encoded_char * count}{'x' * padding}{suffix}" + ) + assert await driver.retrieve(StorageDriverRetrieveContext(), [claim]) == [ + payload + ] + + @pytest.mark.parametrize( + "target_type", [StorageDriverWorkflowInfo, StorageDriverActivityInfo] + ) + async def test_long_keys_preserve_namespace( + self, + driver_client: S3StorageDriverClient, + target_type: type[StorageDriverWorkflowInfo] | type[StorageDriverActivityInfo], + ) -> None: + driver = S3StorageDriver(client=driver_client, bucket=BUCKET) + payload = make_payload() + digest = hashlib.sha256(payload.SerializeToString()).hexdigest() + claims = [] + for namespace, encoded in [ + ("first", "first"), + ("second /%", "second%20%2F%25"), + ("", "null"), + ]: + [claim] = await driver.store( + make_store_context(target_type(namespace=namespace, id="日" * 110)), + [payload], + ) + assert claim.claim_data["key"] == f"v0/ns/{encoded}/d/sha256/{digest}" + claims.append(claim) + assert len({claim.claim_data["key"] for claim in claims}) == 3 + assert ( + await driver.retrieve(StorageDriverRetrieveContext(), claims) + == [payload] * 3 + ) + async def test_key_context_none(self, driver_client: S3StorageDriverClient) -> None: driver = S3StorageDriver(client=driver_client, bucket=BUCKET) payload = make_payload() [claim] = await driver.store(make_store_context(), [payload]) expected_hash = hashlib.sha256(payload.SerializeToString()).hexdigest() - assert claim.claim_data["key"] == f"v0/d/sha256/{expected_hash}" + assert claim.claim_data["key"] == f"v0/ns/null/d/sha256/{expected_hash}" + + @pytest.mark.parametrize( + "target,namespace,prefix", + [ + (None, "ambient /%", "v0/ns/ambient%20%2F%25"), + (None, None, "v0/ns/null"), + (None, "", "v0/ns/null"), + ( + StorageDriverWorkflowInfo(namespace="target"), + "ambient", + "v0/ns/target/wt", + ), + ( + StorageDriverActivityInfo(namespace="target"), + "ambient", + "v0/ns/target/at", + ), + (StorageDriverWorkflowInfo(namespace=""), "ambient", "v0/ns/null/wt"), + ], + ) + async def test_key_ambient_namespace( + self, + driver_client: S3StorageDriverClient, + target: StorageDriverWorkflowInfo | StorageDriverActivityInfo | None, + namespace: str | None, + prefix: str, + ) -> None: + driver = S3StorageDriver(client=driver_client, bucket=BUCKET) + payload = make_payload() + [claim] = await driver.store( + StorageDriverStoreContext(target=target, namespace=namespace), [payload] + ) + digest = hashlib.sha256(payload.SerializeToString()).hexdigest() + key = claim.claim_data["key"] + assert key.startswith(f"{prefix}/") + assert key.endswith(f"/d/sha256/{digest}") + if target is None: + assert key == f"{prefix}/d/sha256/{digest}" + assert await driver.retrieve(StorageDriverRetrieveContext(), [claim]) == [ + payload + ] + + async def test_long_key_without_target_uses_ambient_namespace(self) -> None: + client = AsyncMock(spec=S3StorageDriverClient) + client.object_exists.return_value = False + driver = S3StorageDriver(client=client, bucket=BUCKET) + payload = make_payload() + digest = hashlib.sha256(payload.SerializeToString()).hexdigest() + namespace = "x" * 1024 + [claim] = await driver.store( + StorageDriverStoreContext(namespace=namespace), [payload] + ) + assert claim.claim_data["key"] == f"v0/ns/{namespace}/d/sha256/{digest}" async def test_key_context_workflow( self, driver_client: S3StorageDriverClient @@ -436,6 +583,32 @@ async def test_key_urlencoded_roundtrip( class TestS3StorageDriverStoreRetrieve: + @pytest.mark.parametrize("identity", ["wt", "at"]) + async def test_retrieve_legacy_empty_namespace_key( + self, + aioboto3_client: S3Client, + driver_client: S3StorageDriverClient, + identity: str, + ) -> None: + payload = make_payload() + data = payload.SerializeToString() + digest = hashlib.sha256(data).hexdigest() + identifier = "wi" if identity == "wt" else "ai" + key = f"v0/{identity}/null/{identifier}/null/ri/null/d/sha256/{digest}" + await aioboto3_client.put_object(Bucket=BUCKET, Key=key, Body=data) + claim = StorageDriverClaim( + { + "bucket": BUCKET, + "key": key, + "hash_algorithm": "sha256", + "hash_value": digest, + } + ) + driver = S3StorageDriver(client=driver_client, bucket=BUCKET) + assert await driver.retrieve(StorageDriverRetrieveContext(), [claim]) == [ + payload + ] + async def test_store_returns_claim_with_bucket_key_and_hash( self, driver_client: S3StorageDriverClient ) -> None: @@ -690,6 +863,19 @@ def capturing_selector(ctx: StorageDriverStoreContext, p: Payload) -> str: class TestS3StorageDriverErrors: + async def test_store_access_denied_does_not_upload(self) -> None: + aws_client = MagicMock() + cause = ClientError( + {"Error": {"Code": "403", "Message": "Forbidden"}}, "HeadObject" + ) + aws_client.head_object = AsyncMock(side_effect=cause) + aws_client.upload_fileobj = AsyncMock() + driver = S3StorageDriver(_Aioboto3StorageDriverClient(aws_client), BUCKET) + with pytest.raises(RuntimeError) as error: + await driver.store(make_store_context(), [make_payload()]) + assert error.value.__cause__ is cause + aws_client.upload_fileobj.assert_not_awaited() + async def test_store_nonexistent_bucket_raises( self, driver_client: S3StorageDriverClient ) -> None: @@ -697,7 +883,7 @@ async def test_store_nonexistent_bucket_raises( payload = make_payload() driver = S3StorageDriver(client=driver_client, bucket=bucket) expected_hash = hashlib.sha256(payload.SerializeToString()).hexdigest() - expected_key = f"v0/d/sha256/{expected_hash}" + expected_key = f"v0/ns/null/d/sha256/{expected_hash}" with pytest.raises(RuntimeError) as exc_info: await driver.store(make_store_context(), [payload]) assert ( diff --git a/tests/contrib/aws/s3driver/test_s3driver_worker.py b/tests/contrib/aws/s3driver/test_s3driver_worker.py index fcf17fc16..e08a099c2 100644 --- a/tests/contrib/aws/s3driver/test_s3driver_worker.py +++ b/tests/contrib/aws/s3driver/test_s3driver_worker.py @@ -199,7 +199,7 @@ async def test_s3_driver_workflow_activity_output_key( async def test_s3_driver_standalone_activity_input_key( env: WorkflowEnvironment, tmprl_client: Client, aioboto3_client: S3Client ) -> None: - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -233,7 +233,7 @@ async def test_s3_driver_standalone_activity_input_key( async def test_s3_driver_standalone_activity_output_key( env: WorkflowEnvironment, tmprl_client: Client, aioboto3_client: S3Client ) -> None: - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) diff --git a/tests/contrib/deepagents/helpers.py b/tests/contrib/deepagents/helpers.py deleted file mode 100644 index eb5ba295b..000000000 --- a/tests/contrib/deepagents/helpers.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Shared helpers for the Deep Agents plugin test suite.""" - -from collections import Counter - -from temporalio.api.enums.v1 import EventType -from temporalio.client import WorkflowHandle - - -async def count_scheduled_activities(handle: WorkflowHandle) -> Counter: - """Count ``ActivityTaskScheduled`` events by activity-type name.""" - counts: Counter = Counter() - async for event in handle.fetch_history_events(): - if event.event_type == EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED: - name = event.activity_task_scheduled_event_attributes.activity_type.name - counts[name] += 1 - return counts diff --git a/tests/contrib/deepagents/test_backends.py b/tests/contrib/deepagents/test_backends.py deleted file mode 100644 index b32a6f12b..000000000 --- a/tests/contrib/deepagents/test_backends.py +++ /dev/null @@ -1,315 +0,0 @@ -"""``TemporalBackend`` routes real-I/O backend ops through activities. - -A backend that touches disk or a shell must not run its operations from workflow -code. ``TemporalBackend`` wraps such a backend so each op becomes a -``deepagents.backend_op`` activity. The wrapped backend here is a plain object -(no LangChain / deepagents needed), so this boots a real server and proves the -op crosses the activity boundary. - -A state-only backend needs no wrapping — that path is covered against the real -``deepagents.StateBackend`` when it is importable. -""" - -from __future__ import annotations - -import gc -import sys -import uuid -from datetime import timedelta -from pathlib import Path - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) -pytest.importorskip("deepagents") -pytest.importorskip("langchain_core") - -from temporalio import workflow -from temporalio.contrib.deepagents import DeepAgentsPlugin, TemporalBackend -from temporalio.contrib.deepagents._tools import ( - register_backend, - registered_backends, -) -from temporalio.worker import Worker -from tests.contrib.deepagents.helpers import count_scheduled_activities - -BACKEND_OP = "deepagents.backend_op" - - -class RecordingBackend: - """A minimal backend doing 'real' work off-workflow, exposing both halves - of the deepagents backend protocol: a sync op (``read``) and its async - twin (``aread``). The async twin is the regression-critical case — - deepagents' filesystem middleware calls ``aread``/``awrite``/…, and an - earlier op list intercepted only sync names, so agent-driven file tools - ran their I/O in-workflow.""" - - def read(self, file_path: str) -> str: - return f"contents of {file_path}" - - async def aread(self, file_path: str) -> str: - return f"acontents of {file_path}" - - -@workflow.defn -class BackendWorkflow: - @workflow.run - async def run(self, path: str) -> str: - backend = TemporalBackend( - RecordingBackend(), - activity_options={"start_to_close_timeout": timedelta(seconds=10)}, - ) - sync_out = await backend.read(path) - async_out = await backend.aread(path) - return f"{sync_out}|{async_out}" - - -# Bind deepagents symbols off the module importorskip returns: a static -# `from deepagents import ...` cannot resolve on Python 3.10 (deepagents -# needs >= 3.11), and with the package absent the type checkers mis-resolve -# the name against this same-named test directory. -_deepagents_mod = pytest.importorskip("deepagents") -_backends_mod = pytest.importorskip("deepagents.backends") -create_deep_agent = _deepagents_mod.create_deep_agent -FilesystemBackend = _backends_mod.FilesystemBackend -StateBackend = _backends_mod.StateBackend - - -# A state-only backend is pure workflow state and must NOT schedule an activity. -@workflow.defn -class StateBackendWorkflow: - @workflow.run - async def run(self) -> str: - backend = StateBackend() - # Merely holding a StateBackend schedules no activity; it is not - # wrapped. Return the class provenance so the assertion is on a real - # runtime property rather than a statically-decidable comparison. - return type(backend).__module__ - - -# The full agent-level seam: a REAL Deep Agent whose BUILT-IN file tools drive a -# REAL FilesystemBackend through TemporalBackend. This is the path a fake-backend -# test cannot cover: deepagents' filesystem middleware calls the ASYNC protocol -# (`awrite` / `aread`), and the ops return protocol dataclasses (WriteResult / -# ReadResult) that must survive the activity boundary as real objects — the -# middleware reads their attributes in-workflow. -@workflow.defn -class FilesystemAgentWorkflow: - @workflow.run - async def run(self, root_dir: str) -> str: - backend = TemporalBackend( - FilesystemBackend(root_dir=root_dir, virtual_mode=True), - activity_options={"start_to_close_timeout": timedelta(seconds=10)}, - ) - agent = create_deep_agent( - model="anthropic:claude-sonnet-4-5", - backend=backend, - system_prompt="Write the note, read it back, then report it.", - ) - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": "Note 'hello' down."}]} - ) - return str(result["messages"][-1].content) - - -@pytest.mark.asyncio -async def test_temporal_backend_op_activity(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin() - async with Worker( - env.client, - task_queue="da-backend", - workflows=[BackendWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - BackendWorkflow.run, - "notes.txt", - id=f"da-backend-{uuid.uuid4()}", - task_queue="da-backend", - ) - out = await handle.result() - - assert out == "contents of notes.txt|acontents of notes.txt" - counts = await count_scheduled_activities(handle) - # One activity per op — the sync read AND the async aread both cross. - assert counts[BACKEND_OP] == 2, counts - - -def test_temporal_backend_unregisters_on_gc() -> None: - # A wrapper is typically constructed per workflow run; its registry entry - # must not outlive it, or a long-lived worker leaks one entry per run. - inner = RecordingBackend() - before = set(registered_backends()) - wrapper = TemporalBackend(inner) - (ref,) = set(registered_backends()) - before - assert registered_backends()[ref] is inner - del wrapper - gc.collect() - assert ref not in registered_backends() - - -def test_temporal_backend_gc_keeps_reregistered_ref() -> None: - # Refs are deterministic per run: after a cache eviction, a replay - # re-registers the SAME ref with a fresh inner backend. The evicted - # wrapper's GC cleanup must leave that live registration alone. - before = set(registered_backends()) - wrapper = TemporalBackend(RecordingBackend()) - (ref,) = set(registered_backends()) - before - replacement = RecordingBackend() - register_backend(ref, replacement) - del wrapper - gc.collect() - assert registered_backends().get(ref) is replacement - registered_backends().pop(ref, None) - - -@pytest.mark.asyncio -async def test_state_backend_in_workflow(env: WorkflowEnvironment) -> None: - # A state-only backend is pure workflow state and must NOT schedule an - # activity. Exercised against the real StateBackend when deepagents is present. - plugin = DeepAgentsPlugin() - async with Worker( - env.client, - task_queue="da-state-backend", - workflows=[StateBackendWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - StateBackendWorkflow.run, - id=f"da-state-backend-{uuid.uuid4()}", - task_queue="da-state-backend", - ) - assert (await handle.result()).startswith("deepagents") - counts = await count_scheduled_activities(handle) - assert counts[BACKEND_OP] == 0, counts - - -@pytest.mark.asyncio -async def test_agent_builtin_file_tools_route_backend_ops( - env: WorkflowEnvironment, tmp_path: Path -) -> None: - """An unmodified agent's built-in write_file/read_file tools cross the - activity boundary when the backend is TemporalBackend-wrapped — under - ``max_cached_workflows=0``, so every workflow task replays from history. - - Regression: an earlier op list intercepted only sync method names, so the - middleware's async calls (`awrite`/`aread`) forwarded to the inner backend - and ran real disk I/O in-workflow. This test fails if that recurs, if the - protocol result dataclasses stop surviving the activity boundary, or if - replay diverges. - """ - from langchain_core.messages import AIMessage # real lib; guarded above - - write_turn = AIMessage( - content="", - tool_calls=[ - { - "name": "write_file", - "args": {"file_path": "/notes.txt", "content": "hello"}, - "id": "call-write", - } - ], - ) - read_turn = AIMessage( - content="", - tool_calls=[ - { - "name": "read_file", - "args": {"file_path": "/notes.txt"}, - "id": "call-read", - } - ], - ) - final = AIMessage(content="The note says: hello") - from temporalio.contrib.deepagents.testing import mock_model_provider - - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider([write_turn, read_turn, final]), - ) - async with Worker( - env.client, - task_queue="da-fs-agent", - workflows=[FilesystemAgentWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await env.client.start_workflow( - FilesystemAgentWorkflow.run, - str(tmp_path), - id=f"da-fs-agent-{uuid.uuid4()}", - task_queue="da-fs-agent", - ) - out = await handle.result() - - assert "hello" in out - # The write really happened on disk — in the activity, not the workflow. - assert (tmp_path / "notes.txt").read_text() == "hello" - counts = await count_scheduled_activities(handle) - # Exactly one backend_op per file tool call (awrite + aread), three model turns. - assert counts[BACKEND_OP] == 2, counts - assert counts["deepagents.invoke_model"] == 3, counts - - -@workflow.defn -class DefaultBackendGrepWorkflow: - @workflow.run - async def run(self, prompt: str) -> str: - # No backend argument: deepagents uses its default state-only backend. - agent = create_deep_agent(model="anthropic:claude-sonnet-4-5") - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": prompt}]} - ) - return str(result["messages"][-1].content) - - -@pytest.mark.asyncio -async def test_builtin_tool_on_default_backend_runs_in_workflow( - env: WorkflowEnvironment, -) -> None: - """A built-in tool call (grep) on the DEFAULT state backend runs inline - in the workflow — no activity, no thread hop — under - ``max_cached_workflows=0`` so every task replays from history. - - Regression: ``BackendProtocol``'s async defaults wrap their sync twins in - ``asyncio.to_thread``, which the deterministic workflow event loop - rejects with ``NotImplementedError``. A real model's first spontaneous - ``grep``/``read_file`` call crashed the workflow task; scripted tests - that never invoked built-ins on the default backend sailed past it. The - plugin now runs the sync twin inline when ``workflow.in_workflow()``. - """ - from langchain_core.messages import AIMessage - - from temporalio.contrib.deepagents.testing import mock_model_provider - - grep_turn = AIMessage( - content="", - tool_calls=[{"name": "grep", "args": {"pattern": "hello"}, "id": "call-grep"}], - ) - final = AIMessage(content="No matches found; done.") - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider([grep_turn, final]), - ) - async with Worker( - env.client, - task_queue="da-default-backend", - workflows=[DefaultBackendGrepWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await env.client.start_workflow( - DefaultBackendGrepWorkflow.run, - "Grep the workspace for 'hello'.", - id=f"da-default-backend-{uuid.uuid4()}", - task_queue="da-default-backend", - ) - out = await handle.result() - - assert "done" in out - counts = await count_scheduled_activities(handle) - # The state-backend op stays in-workflow: model turns are the ONLY activities. - assert counts[BACKEND_OP] == 0, counts - assert counts["deepagents.invoke_model"] == 2, counts diff --git a/tests/contrib/deepagents/test_checkpointer.py b/tests/contrib/deepagents/test_checkpointer.py deleted file mode 100644 index 851bbb018..000000000 --- a/tests/contrib/deepagents/test_checkpointer.py +++ /dev/null @@ -1,98 +0,0 @@ -"""Checkpointing follows the ``contrib.langgraph`` precedent. - -The zero-config default is an in-workflow ``InMemorySaver`` rehydrated by -deterministic replay; no bespoke checkpointer adapter ships. A user-supplied -durable checkpointer would run its own I/O from workflow code, which is not -replay-safe, so the plugin warns (respecting the choice rather than hard-failing) -and points at the snapshot + continue-as-new path. -""" - -from __future__ import annotations - -import sys -import uuid -import warnings - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) -pytest.importorskip("deepagents") -pytest.importorskip("langchain_core") - -from temporalio import workflow -from temporalio.contrib.deepagents.workflow import warn_durable_checkpointer - -# Bind deepagents symbols off the module importorskip returns: a static -# `from deepagents import ...` cannot resolve on Python 3.10 (deepagents -# needs >= 3.11), and with the package absent the type checkers mis-resolve -# the name against this same-named test directory. -create_deep_agent = pytest.importorskip("deepagents").create_deep_agent - - -class _DurableSaver: - """Stand-in for a checkpointer that does its own database I/O.""" - - -class InMemorySaver: - """Same class name LangGraph's in-workflow saver uses.""" - - -@workflow.defn -class CheckpointWorkflow: - @workflow.run - async def run(self, prompt: str) -> str: - agent = create_deep_agent(model="fake:model") - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": prompt}]} - ) - return str(result["messages"][-1].content) - - -def test_durable_checkpointer_warns() -> None: - # None and in-workflow savers are silent... - with warnings.catch_warnings(record=True) as records: - warnings.simplefilter("always") - warn_durable_checkpointer(None) - warn_durable_checkpointer(InMemorySaver()) - assert not records, [str(r.message) for r in records] - - # ...a durable saver warns (respect the choice, do not hard-fail). - with pytest.warns(UserWarning, match="durable checkpointer"): - warn_durable_checkpointer(_DurableSaver()) - - -@pytest.mark.asyncio -async def test_default_saver_rehydrates(env: WorkflowEnvironment) -> None: - # Against the real deepagents default (in-workflow InMemorySaver): the agent - # runs and its recorded history replays cleanly, proving replay rehydrates - # the in-workflow checkpoint state with no external checkpointer. - pytest.importorskip("deepagents") - pytest.importorskip("langchain_core") - - from temporalio.contrib.deepagents import DeepAgentsPlugin - from temporalio.contrib.deepagents.testing import mock_model_provider - from temporalio.worker import Replayer, Worker - - plugin = DeepAgentsPlugin(model_provider=mock_model_provider(["Checkpointed."])) - async with Worker( - env.client, - task_queue="da-ckpt", - workflows=[CheckpointWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - CheckpointWorkflow.run, - "hello", - id=f"da-ckpt-{uuid.uuid4()}", - task_queue="da-ckpt", - ) - await handle.result() - history = await handle.fetch_history() - - await Replayer( - workflows=[CheckpointWorkflow], plugins=[DeepAgentsPlugin()] - ).replay_workflow(history) diff --git a/tests/contrib/deepagents/test_continue_as_new.py b/tests/contrib/deepagents/test_continue_as_new.py deleted file mode 100644 index c5add7cf7..000000000 --- a/tests/contrib/deepagents/test_continue_as_new.py +++ /dev/null @@ -1,167 +0,0 @@ -"""Continue-as-new state carry for long-running Deep Agents. - -``run_deep_agent(continue_as_new_after=...)`` keeps a long conversation from -bloating workflow history: once the current turn finishes past the threshold and -there is still pending work, it snapshots the accumulated messages plus the -model/tool result cache and continues into a fresh run. These tests use a plain -fake agent (no LangChain needed) so they boot a real Temporal server and exercise -the continue-as-new machinery end to end. -""" - -from __future__ import annotations - -import sys -import uuid -from typing import Any - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) -from temporalio import workflow -from temporalio.contrib.deepagents import DeepAgentsPlugin, _serde, run_deep_agent -from temporalio.worker import Worker - - -class FakeAgent: - """A stand-in compiled agent that appends a step and reports a todo. - - It is *not* a LangChain object — it just satisfies the ``ainvoke`` shape - ``run_deep_agent`` drives, so the continue-as-new path can be tested without - a model provider or the LangChain import tree. - """ - - async def ainvoke(self, input: Any) -> dict: - messages = list(input.get("messages", [])) if isinstance(input, dict) else [] - messages = [*messages, "step"] - done = len(messages) >= 3 - return { - "messages": messages, - "todos": [ - {"content": "work", "status": "completed" if done else "pending"} - ], - } - - -@workflow.defn -class ContinueAsNewWorkflow: - @workflow.run - async def run(self, input: dict, state_snapshot: dict | None = None) -> dict: - # Threshold of 1 means: continue-as-new as soon as there is pending work, - # which the fake agent reports until the conversation reaches 3 messages. - return await run_deep_agent( - FakeAgent(), - input, - continue_as_new_after=1, - state_snapshot=state_snapshot, - ) - - -@pytest.mark.asyncio -async def test_can_threshold_and_cache(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin() - async with Worker( - env.client, - task_queue="da-can", - workflows=[ContinueAsNewWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - ContinueAsNewWorkflow.run, - {"messages": ["start"]}, - id=f"da-can-{uuid.uuid4()}", - task_queue="da-can", - ) - result = await handle.result() - - # The only way the conversation reaches >= 3 messages is if the snapshot from - # the pre-continue-as-new run was carried into the continued run and merged. - assert len(result["messages"]) >= 3, result - assert result["todos"][0]["status"] == "completed" - - -def test_state_snapshot_roundtrip() -> None: - # The result cache carried in a snapshot rehydrates to the same hits, so work - # done before a continue-as-new is reused, not recomputed, afterwards. - _serde.set_result_cache({}) - key = _serde.cache_key("model", "fake:model", [["m"], []]) - _serde.cache_put(key, {"dumped": "message"}) - snapshot = _serde.result_cache_snapshot() - assert snapshot and key in snapshot - - # Simulate the continued run: a fresh cache seeded from the snapshot. - _serde.set_result_cache(dict(snapshot)) - hit, value = _serde.cache_lookup(key) - assert hit and value == {"dumped": "message"} - - -class SlowFakeAgent: - """Like ``FakeAgent`` but each turn burns timers so a single run's history - grows past the dev server's continue-as-new suggestion threshold (the test - env pins ``limit.historyCount.suggestContinueAsNew`` low).""" - - async def ainvoke(self, input: Any) -> dict: - for _ in range(20): - await workflow.sleep(0.001) - messages = list(input.get("messages", [])) if isinstance(input, dict) else [] - messages = [*messages, "step"] - done = len(messages) >= 3 - return { - "messages": messages, - "todos": [ - {"content": "work", "status": "completed" if done else "pending"} - ], - } - - -@workflow.defn -class SuggestedCanWorkflow: - @workflow.run - async def run(self, input: dict, state_snapshot: dict | None = None) -> dict: - # No continue_as_new_after: the default follows the server's own - # is_continue_as_new_suggested() signal. - return await run_deep_agent( - SlowFakeAgent(), - input, - state_snapshot=state_snapshot, - ) - - -@pytest.mark.asyncio -async def test_can_defaults_to_server_suggestion( - env: WorkflowEnvironment, env_type: str -) -> None: - """With ``continue_as_new_after`` unset, the driver continues-as-new when - the SERVER suggests it (history count/size), not on a fixed threshold.""" - if env_type != "local": - pytest.skip("needs the local dev server's low suggestContinueAsNew threshold") - plugin = DeepAgentsPlugin() - async with Worker( - env.client, - task_queue="da-can-suggested", - workflows=[SuggestedCanWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - SuggestedCanWorkflow.run, - {"messages": ["start"]}, - id=f"da-can-suggested-{uuid.uuid4()}", - task_queue="da-can-suggested", - ) - result = await handle.result() - - # Carry across the suggested continue-as-new: the conversation only reaches - # 3 messages if snapshots crossed run boundaries. - assert len(result["messages"]) >= 3, result - assert result["todos"][0]["status"] == "completed" - # The first run really did continue-as-new (not complete). - first = env.client.get_workflow_handle( - handle.id, run_id=handle.first_execution_run_id - ) - desc = await first.describe() - assert desc.status is not None and desc.status.name == "CONTINUED_AS_NEW", ( - desc.status - ) diff --git a/tests/contrib/deepagents/test_failures.py b/tests/contrib/deepagents/test_failures.py deleted file mode 100644 index 6cfe6e5ff..000000000 --- a/tests/contrib/deepagents/test_failures.py +++ /dev/null @@ -1,119 +0,0 @@ -"""Error handling: retry classification and the workflow-failure type. - -Two dep-free paths run against a real server: the HTTP-error → Temporal retry -translation, and that a raised :class:`DeepAgentsWorkflowError` surfaces to the -client as a non-retryable failure with a stable ``ApplicationError.type`` (never -a stringified peer exception). The model-instance validation error needs -LangChain and guards on its import. -""" - -from __future__ import annotations - -import sys -import uuid -from datetime import timedelta - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) -from temporalio import workflow -from temporalio.client import WorkflowFailureError -from temporalio.contrib.deepagents import DeepAgentsPlugin, DeepAgentsWorkflowError -from temporalio.contrib.deepagents._activity import _translate_api_error -from temporalio.exceptions import ApplicationError -from temporalio.worker import Worker - - -class _FakeResponse: - def __init__(self, headers: dict) -> None: - self.headers = headers - - -class _FakeHTTPError(Exception): - def __init__(self, status_code: int, headers: dict | None = None) -> None: - super().__init__(f"HTTP {status_code}") - self.status_code = status_code - self.response = _FakeResponse(headers or {}) - - -def test_error_classification() -> None: - # 429 is retryable and honors the upstream Retry-After. - err = _translate_api_error(_FakeHTTPError(429, {"retry-after": "7"})) - assert isinstance(err, ApplicationError) - assert err.non_retryable is False - assert err.next_retry_delay == timedelta(seconds=7) - - # 400 is a client error: non-retryable. - e400 = _translate_api_error(_FakeHTTPError(400)) - assert isinstance(e400, ApplicationError) - assert e400.non_retryable is True - - # 503 is retryable by default... - e503 = _translate_api_error(_FakeHTTPError(503)) - assert isinstance(e503, ApplicationError) - assert e503.non_retryable is False - # ...unless the server explicitly says not to. - forced = _translate_api_error(_FakeHTTPError(503, {"x-should-retry": "false"})) - assert isinstance(forced, ApplicationError) - assert forced.non_retryable is True - - # retry-after-ms wins over retry-after when both are present. - ms = _translate_api_error( - _FakeHTTPError(429, {"retry-after-ms": "250", "retry-after": "7"}) - ) - assert isinstance(ms, ApplicationError) - assert ms.next_retry_delay == timedelta(milliseconds=250) - - # A non-HTTP exception is not recognized, so the caller falls through. - assert _translate_api_error(ValueError("nope")) is None - - -@workflow.defn -class FailingWorkflow: - @workflow.run - async def run(self) -> None: - raise DeepAgentsWorkflowError("deliberate non-retryable failure") - - -@pytest.mark.asyncio -async def test_workflow_failure_type(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin() - async with Worker( - env.client, - task_queue="da-fail", - workflows=[FailingWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - FailingWorkflow.run, - id=f"da-fail-{uuid.uuid4()}", - task_queue="da-fail", - ) - with pytest.raises(WorkflowFailureError) as excinfo: - await handle.result() - - cause = excinfo.value.cause - assert isinstance(cause, ApplicationError) - assert cause.type == "deepagents.DeepAgentsWorkflowError" - assert cause.non_retryable is True - - -@pytest.mark.asyncio -async def test_unwrappable_model_instance() -> None: - pytest.importorskip("langchain_core") - from langchain_core.language_models.fake_chat_models import FakeListChatModel - - # A string is auto-wrapped; a TemporalModel passes through; a live model - # instance is rejected at the workflow boundary with the typed failure. - from temporalio.contrib.deepagents import TemporalModel - from temporalio.contrib.deepagents._model import _wrap_model_arg - - assert isinstance(_wrap_model_arg("anthropic:claude"), TemporalModel) - tm = TemporalModel(model="anthropic:claude") - assert _wrap_model_arg(tm) is tm - with pytest.raises(DeepAgentsWorkflowError): - _wrap_model_arg(FakeListChatModel(responses=["hi"])) diff --git a/tests/contrib/deepagents/test_hitl.py b/tests/contrib/deepagents/test_hitl.py deleted file mode 100644 index 6124d41f1..000000000 --- a/tests/contrib/deepagents/test_hitl.py +++ /dev/null @@ -1,139 +0,0 @@ -"""Human-in-the-loop: SDK-native interrupt mapped to Query + Update. - -``interrupt_on={...}`` makes Deep Agents pause before a guarded tool runs. With a -checkpointer configured, LangGraph does *not* raise out of ``ainvoke`` — it -returns the current state with an ``__interrupt__`` entry describing the pending -approval (verified against deepagents 0.6.12 / langchain 1.x). Because the loop -runs in the workflow, that pause surfaces directly in workflow code. The plugin's -recommended mapping — used here — is: detect the returned ``__interrupt__``, -expose its payload via a Query, and resume with a Workflow Update carrying the -human's decision through ``Command(resume=...)``. No shim exception is invented; -the native LangGraph resume protocol (``{"decisions": [{"type": ...}]}``) is used -as-is. - -State lives on the workflow instance (per-execution), which is the idiomatic -Temporal pattern for state shared between the run method and its handlers. -""" - -from __future__ import annotations - -import asyncio -import sys -import uuid -from datetime import timedelta -from typing import Any - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) - -pytest.importorskip("deepagents") -pytest.importorskip("langchain_core") -pytest.importorskip("langgraph") - -from temporalio import workflow # noqa: E402 -from temporalio.worker import Worker # noqa: E402 - -# Bind deepagents symbols off the module importorskip returns: a static -# `from deepagents import ...` cannot resolve on Python 3.10 (deepagents -# needs >= 3.11), and with the package absent the type checkers mis-resolve -# the name against this same-named test directory. -create_deep_agent = pytest.importorskip("deepagents").create_deep_agent - -with workflow.unsafe.imports_passed_through(): - from langchain_core.messages import AIMessage - from langchain_core.runnables import RunnableConfig - from langgraph.checkpoint.memory import InMemorySaver - from langgraph.types import Command - - from temporalio.contrib.deepagents import DeepAgentsPlugin, tool_as_activity - from temporalio.contrib.deepagents.testing import mock_model_provider - - -@workflow.defn -class HitlWorkflow: - def __init__(self) -> None: - self._interrupt: str | None = None - self._resume_value: str | None = None - self._resumed = False - - @workflow.run - async def run(self, city: str) -> str: - def book_trip(city: str) -> str: - """Book a trip to a city (requires human approval).""" - return f"Booked a trip to {city}." - - trip_tool = tool_as_activity( - book_trip, start_to_close_timeout=timedelta(seconds=30) - ) - agent = create_deep_agent( - model="anthropic:claude-sonnet-4-5", - tools=[trip_tool], - interrupt_on={"book_trip": True}, - checkpointer=InMemorySaver(), - ) - config: RunnableConfig = { - "configurable": {"thread_id": workflow.info().workflow_id} - } - payload: Any = {"messages": [{"role": "user", "content": f"Book {city}."}]} - result = await agent.ainvoke(payload, config=config) - # LangGraph returns (not raises) the pending approval under __interrupt__. - pending = result.get("__interrupt__") - if pending: - self._interrupt = str(getattr(pending[0], "value", pending[0])) - await workflow.wait_condition(lambda: self._resumed) - result = await agent.ainvoke( - Command(resume={"decisions": [{"type": self._resume_value}]}), - config=config, - ) - return result["messages"][-1].content - - @workflow.query - def pending_interrupt(self) -> str | None: - return self._interrupt - - @workflow.update - async def resume(self, decision: str) -> None: - self._resume_value = decision - self._resumed = True - - -@pytest.mark.asyncio -async def test_interrupt_query_then_resume(env: WorkflowEnvironment) -> None: - approve = AIMessage( - content="", - tool_calls=[{"name": "book_trip", "args": {"city": "Rome"}, "id": "c1"}], - ) - done = AIMessage(content="Booked a trip to Rome.") - plugin = DeepAgentsPlugin(model_provider=mock_model_provider([approve, done])) - async with Worker( - env.client, - task_queue="da-hitl", - workflows=[HitlWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - HitlWorkflow.run, - "Rome", - id=f"da-hitl-{uuid.uuid4()}", - task_queue="da-hitl", - ) - - # Wait for the agent to hit the interrupt (surfaced via the Query), then - # approve via an Update. A bounded poll with a sleep, so a regression that - # never raises the interrupt fails fast instead of busy-spinning. - for _ in range(100): - if await handle.query(HitlWorkflow.pending_interrupt) is not None: - break - await asyncio.sleep(0.1) - else: - pytest.fail("workflow never surfaced the HITL interrupt via the query") - - await handle.execute_update(HitlWorkflow.resume, "approve") - out = await handle.result() - - assert "Rome" in out diff --git a/tests/contrib/deepagents/test_model_activity.py b/tests/contrib/deepagents/test_model_activity.py deleted file mode 100644 index 37a98ef00..000000000 --- a/tests/contrib/deepagents/test_model_activity.py +++ /dev/null @@ -1,103 +0,0 @@ -"""The model seam: every ``TemporalModel`` generation is one activity. - -These exercise the seam directly through ``TemporalModel`` (no full agent -needed), so they depend only on LangChain, not on deepagents. -""" - -from __future__ import annotations - -import sys -import uuid -from datetime import timedelta - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) - -pytest.importorskip("langchain_core") - -from temporalio import workflow # noqa: E402 -from temporalio.worker import Worker # noqa: E402 -from tests.contrib.deepagents.helpers import count_scheduled_activities # noqa: E402 - -with workflow.unsafe.imports_passed_through(): - from langchain_core.messages import HumanMessage - - from temporalio.contrib.deepagents import DeepAgentsPlugin, TemporalModel - from temporalio.contrib.deepagents.testing import mock_model_provider - -INVOKE_MODEL = "deepagents.invoke_model" - - -@workflow.defn -class ModelWorkflow: - @workflow.run - async def run(self, prompt: str) -> str: - model = TemporalModel(model="fake:model") - message = await model.ainvoke([HumanMessage(content=prompt)]) - return str(message.content) - - -@workflow.defn -class ExplicitTimeoutWorkflow: - @workflow.run - async def run(self, prompt: str) -> str: - model = TemporalModel( - model="fake:model", - activity_options={"start_to_close_timeout": timedelta(seconds=20)}, - ) - message = await model.ainvoke([HumanMessage(content=prompt)]) - return str(message.content) - - -@pytest.mark.asyncio -async def test_model_call_is_activity(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider(["The capital of France is Paris."]), - model_activity_options={"start_to_close_timeout": timedelta(seconds=30)}, - ) - async with Worker( - env.client, - task_queue="da-model", - workflows=[ModelWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - ModelWorkflow.run, - "What is the capital of France?", - id=f"da-model-{uuid.uuid4()}", - task_queue="da-model", - ) - out = await handle.result() - assert "Paris" in out - counts = await count_scheduled_activities(handle) - assert counts[INVOKE_MODEL] == 1, counts - - -@pytest.mark.asyncio -async def test_temporal_model_explicit(env: WorkflowEnvironment) -> None: - # The explicit escape hatch routes through the same activity, with a - # per-model timeout override rather than the plugin default. - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider(["Bonjour."]), - ) - async with Worker( - env.client, - task_queue="da-model-explicit", - workflows=[ExplicitTimeoutWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - ExplicitTimeoutWorkflow.run, - "hi", - id=f"da-model-x-{uuid.uuid4()}", - task_queue="da-model-explicit", - ) - out = await handle.result() - assert out == "Bonjour." - counts = await count_scheduled_activities(handle) - assert counts[INVOKE_MODEL] == 1, counts diff --git a/tests/contrib/deepagents/test_native_e2e.py b/tests/contrib/deepagents/test_native_e2e.py deleted file mode 100644 index 29b373da6..000000000 --- a/tests/contrib/deepagents/test_native_e2e.py +++ /dev/null @@ -1,141 +0,0 @@ -"""Cardinal end-to-end test: unmodified ``deepagents`` code, made durable. - -Builds a real Deep Agent with ``create_deep_agent(...)`` and drives it with -``agent.ainvoke(...)`` inside a ``@workflow.defn`` — the only addition is -``plugins=[DeepAgentsPlugin(...)]``. No user call to -``workflow.execute_activity``; the plugin routes model and tool calls to -activities under the hood. - -Guards on the ``deepagents`` / ``langchain_core`` imports (capability detection), -because they are the plugin's own runtime dependency and may be absent on a -docs-only checkout — there is no env-var gate. -""" - -from __future__ import annotations - -import sys -import uuid -from datetime import timedelta - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) - -pytest.importorskip("deepagents") -pytest.importorskip("langchain_core") - -from temporalio import workflow # noqa: E402 -from temporalio.worker import Worker # noqa: E402 -from tests.contrib.deepagents.helpers import count_scheduled_activities # noqa: E402 - -# Bind deepagents symbols off the module importorskip returns: a static -# `from deepagents import ...` cannot resolve on Python 3.10 (deepagents -# needs >= 3.11), and with the package absent the type checkers mis-resolve -# the name against this same-named test directory. -create_deep_agent = pytest.importorskip("deepagents").create_deep_agent - -with workflow.unsafe.imports_passed_through(): - from langchain_core.messages import AIMessage - - from temporalio.contrib.deepagents import DeepAgentsPlugin, tool_as_activity - from temporalio.contrib.deepagents.testing import mock_model_provider - -INVOKE_MODEL = "deepagents.invoke_model" -INVOKE_TOOL = "deepagents.invoke_tool" - - -@workflow.defn -class DeepAgentWorkflow: - @workflow.run - async def run(self, question: str) -> str: - agent = create_deep_agent( - model="anthropic:claude-sonnet-4-5", - system_prompt="You are a helpful assistant.", - ) - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": question}]} - ) - return result["messages"][-1].content - - -@workflow.defn -class ToolLoopWorkflow: - @workflow.run - async def run(self, city: str) -> str: - def get_weather(city: str) -> str: - """Return the weather for a city.""" - return f"It is sunny in {city}." - - weather_tool = tool_as_activity( - get_weather, start_to_close_timeout=timedelta(seconds=30) - ) - agent = create_deep_agent( - model="anthropic:claude-sonnet-4-5", - tools=[weather_tool], - system_prompt="Use the weather tool to answer.", - ) - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": f"Weather in {city}?"}]} - ) - return result["messages"][-1].content - - -@pytest.mark.asyncio -async def test_deep_agent_runs_via_plugin(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider(["The answer is 42."]), - ) - async with Worker( - env.client, - task_queue="da-native", - workflows=[DeepAgentWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - DeepAgentWorkflow.run, - "What is the meaning of life?", - id=f"da-native-{uuid.uuid4()}", - task_queue="da-native", - ) - out = await handle.result() - - assert "42" in out - counts = await count_scheduled_activities(handle) - # The model call was made durable as an activity, with no user wiring. - assert counts[INVOKE_MODEL] >= 1, counts - - -@pytest.mark.asyncio -async def test_agent_tool_loop_routes_to_activities(env: WorkflowEnvironment) -> None: - # Script the model: first turn asks for the tool, second turn answers. This - # forces model -> tool -> model, proving each call routes through an activity. - tool_call = AIMessage( - content="", - tool_calls=[{"name": "get_weather", "args": {"city": "Paris"}, "id": "call-1"}], - ) - final = AIMessage(content="It is sunny in Paris.") - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider([tool_call, final]), - ) - async with Worker( - env.client, - task_queue="da-tool-loop", - workflows=[ToolLoopWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - ToolLoopWorkflow.run, - "Paris", - id=f"da-tool-loop-{uuid.uuid4()}", - task_queue="da-tool-loop", - ) - out = await handle.result() - - assert "Paris" in out - counts = await count_scheduled_activities(handle) - assert counts[INVOKE_MODEL] == 2, counts - assert counts[INVOKE_TOOL] == 1, counts diff --git a/tests/contrib/deepagents/test_readme.py b/tests/contrib/deepagents/test_readme.py deleted file mode 100644 index 7aa8ddd7a..000000000 --- a/tests/contrib/deepagents/test_readme.py +++ /dev/null @@ -1,36 +0,0 @@ -"""The README's code blocks must stay valid Python. - -A copy-paste example that does not even parse is worse than no example. This -compiles every ```python fenced block in the README so a stale snippet fails the -suite. Compilation (not execution) keeps the check dependency-free. -""" - -from __future__ import annotations - -import re -from pathlib import Path - -README = ( - Path(__file__).resolve().parents[3] - / "temporalio" - / "contrib" - / "deepagents" - / "README.md" -) - -_BLOCK = re.compile(r"```python\n(.*?)```", re.DOTALL) - - -def _python_blocks() -> list[str]: - return _BLOCK.findall(README.read_text(encoding="utf-8")) - - -def test_readme_has_python_blocks() -> None: - blocks = _python_blocks() - assert len(blocks) >= 3, "expected the hello-world and composition examples" - - -def test_readme_hello_world_constructs() -> None: - # Every documented snippet must compile as written. - for i, block in enumerate(_python_blocks()): - compile(block, f"", "exec") diff --git a/tests/contrib/deepagents/test_replay.py b/tests/contrib/deepagents/test_replay.py deleted file mode 100644 index ac43a4034..000000000 --- a/tests/contrib/deepagents/test_replay.py +++ /dev/null @@ -1,65 +0,0 @@ -"""Recorded histories replay cleanly through the plugin. - -The Deep Agents control loop runs in the workflow, so replay determinism is the -core safety property. This records the history of a real run (a plain fake agent -driven by ``run_deep_agent``, no LangChain needed) and feeds it back through a -``Replayer`` configured with the plugin. A nondeterministic seam would raise on -replay; a clean pass proves the in-workflow dispatch is deterministic. -""" - -from __future__ import annotations - -import sys -import uuid -from typing import Any - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) -from temporalio import workflow -from temporalio.contrib.deepagents import DeepAgentsPlugin, run_deep_agent -from temporalio.worker import Replayer, Worker - - -class FakeAgent: - async def ainvoke(self, input: Any) -> dict: - messages = list(input.get("messages", [])) if isinstance(input, dict) else [] - return {"messages": [*messages, "answered"], "todos": []} - - -@workflow.defn -class ReplayWorkflow: - @workflow.run - async def run(self, input: dict) -> dict: - return await run_deep_agent(FakeAgent(), input) - - -@pytest.mark.asyncio -async def test_replay_with_plugin(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin() - async with Worker( - env.client, - task_queue="da-replay", - workflows=[ReplayWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - ReplayWorkflow.run, - {"messages": ["question"]}, - id=f"da-replay-{uuid.uuid4()}", - task_queue="da-replay", - ) - await handle.result() - history = await handle.fetch_history() - - # A fresh replayer (new worker identity) must replay the recorded history - # without a nondeterminism error. - replayer = Replayer( - workflows=[ReplayWorkflow], - plugins=[DeepAgentsPlugin()], - ) - await replayer.replay_workflow(history) diff --git a/tests/contrib/deepagents/test_sandbox_passthrough.py b/tests/contrib/deepagents/test_sandbox_passthrough.py deleted file mode 100644 index 26a5ce2e6..000000000 --- a/tests/contrib/deepagents/test_sandbox_passthrough.py +++ /dev/null @@ -1,89 +0,0 @@ -"""The plugin's sandbox passthrough makes explicit import guards unnecessary. - -This module imports ``deepagents`` at the top WITHOUT -``workflow.unsafe.imports_passed_through()``. The workflow sandbox re-imports -the defining module of every workflow, so if the plugin's passthrough -configuration did not cover deepagents' import tree, worker registration -below would fail. This is the executable proof behind the README's -guard-free examples. - -Also the e2e for ``create_temporal_deep_agent``: the explicit construction -path that scopes ``activity_options`` to one agent. -""" - -from __future__ import annotations - -import sys -import uuid -from datetime import timedelta - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) -pytest.importorskip("deepagents") -pytest.importorskip("langchain_core") - -import deepagents # noqa: F401 # pyright: ignore[reportUnusedImport, reportImplicitRelativeImport] - -from temporalio import workflow -from temporalio.contrib.deepagents import ( - DeepAgentsPlugin, - create_temporal_deep_agent, -) -from temporalio.worker import Worker -from tests.contrib.deepagents.helpers import count_scheduled_activities - - -@workflow.defn -class GuardFreeAgentWorkflow: - @workflow.run - async def run(self, question: str) -> str: - agent = create_temporal_deep_agent( - model="anthropic:claude-sonnet-4-5", - activity_options={"start_to_close_timeout": timedelta(minutes=2)}, - ) - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": question}]} - ) - return str(result["messages"][-1].content) - - -@pytest.mark.asyncio -async def test_guard_free_import_and_explicit_agent( - env: WorkflowEnvironment, -) -> None: - from temporalio.contrib.deepagents.testing import mock_model_provider - - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider(["The answer is 42."]), - ) - async with Worker( - env.client, - task_queue="da-guard-free", - workflows=[GuardFreeAgentWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await env.client.start_workflow( - GuardFreeAgentWorkflow.run, - "What is the meaning of life?", - id=f"da-guard-free-{uuid.uuid4()}", - task_queue="da-guard-free", - ) - out = await handle.result() - - assert "42" in out - counts = await count_scheduled_activities(handle) - assert counts["deepagents.invoke_model"] == 1, counts - - -def test_wrapper_rejects_options_without_wrappable_model() -> None: - with pytest.raises(ValueError, match="activity_options requires"): - create_temporal_deep_agent( - model=object(), - activity_options={"start_to_close_timeout": timedelta(minutes=1)}, - ) diff --git a/tests/contrib/deepagents/test_side_effects.py b/tests/contrib/deepagents/test_side_effects.py deleted file mode 100644 index 2b32b9dee..000000000 --- a/tests/contrib/deepagents/test_side_effects.py +++ /dev/null @@ -1,74 +0,0 @@ -"""Determinism: no unexpected side effects and a bounded activity count. - -Running the worker with ``max_cached_workflows=0`` forces the workflow to be -replayed from history on every activation. If the in-workflow dispatch did -anything nondeterministic, replay would diverge and the workflow would fail. A -clean completion plus an exact ``backend_op`` schedule count proves the seam -schedules one activity per op and nothing more. -""" - -from __future__ import annotations - -import sys -import uuid -from datetime import timedelta - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) -from temporalio import workflow -from temporalio.contrib.deepagents import DeepAgentsPlugin, TemporalBackend -from temporalio.worker import Worker -from tests.contrib.deepagents.helpers import count_scheduled_activities - -BACKEND_OP = "deepagents.backend_op" - - -class TwoOpBackend: - """Protocol-named ops: one async (``awrite``, as the filesystem - middleware calls it) and one sync (``read``).""" - - async def awrite(self, file_path: str, _content: str) -> str: - return f"wrote:{file_path}" - - def read(self, file_path: str) -> str: - return f"read:{file_path}" - - -@workflow.defn -class TwoOpWorkflow: - @workflow.run - async def run(self) -> str: - backend = TemporalBackend( - TwoOpBackend(), - activity_options={"start_to_close_timeout": timedelta(seconds=10)}, - ) - await backend.awrite("a.txt", "hello") - return await backend.read("a.txt") - - -@pytest.mark.asyncio -async def test_activity_schedule_counts(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin() - async with Worker( - env.client, - task_queue="da-side-effects", - workflows=[TwoOpWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await env.client.start_workflow( - TwoOpWorkflow.run, - id=f"da-side-effects-{uuid.uuid4()}", - task_queue="da-side-effects", - ) - out = await handle.result() - - assert out == "read:a.txt" - counts = await count_scheduled_activities(handle) - # Exactly the two backend ops, each scheduled once — no hidden replays of work. - assert counts[BACKEND_OP] == 2, counts diff --git a/tests/contrib/deepagents/test_streaming.py b/tests/contrib/deepagents/test_streaming.py deleted file mode 100644 index 6b65aa0af..000000000 --- a/tests/contrib/deepagents/test_streaming.py +++ /dev/null @@ -1,107 +0,0 @@ -"""Streaming: model calls route through the streaming activity when a topic is set. - -Setting ``streaming_topic`` flips model dispatch from ``invoke_model`` to -``invoke_model_streaming``, which streams chunks out of the activity and returns -the aggregated final message to the workflow (so the durable result matches the -non-streaming path). These assert the observable effects: which activity is -scheduled, the aggregated content, and that a custom batch interval is threaded -into the streaming activity. -""" - -from __future__ import annotations - -import sys -import uuid -from datetime import timedelta - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) - -pytest.importorskip("langchain_core") - -from temporalio import workflow # noqa: E402 -from temporalio.worker import Worker # noqa: E402 -from tests.contrib.deepagents.helpers import count_scheduled_activities # noqa: E402 - -with workflow.unsafe.imports_passed_through(): - from langchain_core.messages import HumanMessage - - from temporalio.contrib.deepagents import DeepAgentsPlugin, TemporalModel - from temporalio.contrib.deepagents.testing import mock_model_provider - -INVOKE_MODEL = "deepagents.invoke_model" -INVOKE_MODEL_STREAMING = "deepagents.invoke_model_streaming" - - -@workflow.defn -class StreamWorkflow: - @workflow.run - async def run(self, prompt: str) -> str: - model = TemporalModel(model="fake:model") - parts: list[str] = [] - async for chunk in model.astream([HumanMessage(content=prompt)]): - parts.append(str(chunk.content)) - return "".join(parts) - - -@pytest.mark.asyncio -async def test_stream_chunks_published(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider(["Streamed answer."]), - streaming_topic="da-stream-topic", - model_activity_options={"start_to_close_timeout": timedelta(seconds=30)}, - ) - async with Worker( - env.client, - task_queue="da-stream", - workflows=[StreamWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - StreamWorkflow.run, - "stream please", - id=f"da-stream-{uuid.uuid4()}", - task_queue="da-stream", - ) - out = await handle.result() - - assert "Streamed answer." in out - counts = await count_scheduled_activities(handle) - # The topic is set, so dispatch used the streaming activity, not invoke_model. - assert counts[INVOKE_MODEL_STREAMING] == 1, counts - assert counts[INVOKE_MODEL] == 0, counts - - -@pytest.mark.asyncio -async def test_batch_interval_coalesces(env: WorkflowEnvironment) -> None: - # A custom batch interval is threaded into the streaming activity that - # coalesces chunks; streaming still returns the aggregated message. - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider(["Batched."]), - streaming_topic="da-batch-topic", - streaming_batch_interval=timedelta(milliseconds=500), - ) - assert plugin._activities._streaming_batch_interval == timedelta(milliseconds=500) - - async with Worker( - env.client, - task_queue="da-batch", - workflows=[StreamWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - StreamWorkflow.run, - "batch please", - id=f"da-batch-{uuid.uuid4()}", - task_queue="da-batch", - ) - out = await handle.result() - - assert "Batched." in out - counts = await count_scheduled_activities(handle) - assert counts[INVOKE_MODEL_STREAMING] == 1, counts diff --git a/tests/contrib/deepagents/test_subagents.py b/tests/contrib/deepagents/test_subagents.py deleted file mode 100644 index 49a407e9d..000000000 --- a/tests/contrib/deepagents/test_subagents.py +++ /dev/null @@ -1,90 +0,0 @@ -"""Sub-agents inherit the activity seams. - -Deep Agents builds sub-agents as separate graphs, but they inherit the parent's -``model`` object and tools by default. Because the plugin substitutes the model -*object*, every sub-agent's model call routes through an activity without any -per-sub-agent wiring. This runs a real agent configured with a sub-agent and -asserts model calls still land on the activity seam. - -The exact number of hops depends on ``deepagents`` internals we do not pin, so -the assertion is the robust invariant: the configured agent runs and at least one -model call went through an activity. -""" - -from __future__ import annotations - -import sys -import uuid - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) - -pytest.importorskip("deepagents") -pytest.importorskip("langchain_core") - -from temporalio import workflow # noqa: E402 -from temporalio.worker import Worker # noqa: E402 -from tests.contrib.deepagents.helpers import count_scheduled_activities # noqa: E402 - -# Bind deepagents symbols off the module importorskip returns: a static -# `from deepagents import ...` cannot resolve on Python 3.10 (deepagents -# needs >= 3.11), and with the package absent the type checkers mis-resolve -# the name against this same-named test directory. -create_deep_agent = pytest.importorskip("deepagents").create_deep_agent - -with workflow.unsafe.imports_passed_through(): - from temporalio.contrib.deepagents import DeepAgentsPlugin - from temporalio.contrib.deepagents.testing import mock_model_provider - -INVOKE_MODEL = "deepagents.invoke_model" - - -@workflow.defn -class SubAgentWorkflow: - @workflow.run - async def run(self, question: str) -> str: - agent = create_deep_agent( - model="anthropic:claude-sonnet-4-5", - system_prompt="You coordinate research.", - subagents=[ - { - "name": "researcher", - "description": "Researches a topic in depth.", - "system_prompt": "You research topics.", - } - ], - ) - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": question}]} - ) - return result["messages"][-1].content - - -@pytest.mark.asyncio -async def test_subagent_calls_route_to_activities(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin( - model_provider=mock_model_provider(["Coordinated answer."]), - ) - async with Worker( - env.client, - task_queue="da-subagent", - workflows=[SubAgentWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - SubAgentWorkflow.run, - "Investigate the topic.", - id=f"da-subagent-{uuid.uuid4()}", - task_queue="da-subagent", - ) - out = await handle.result() - - assert out - counts = await count_scheduled_activities(handle) - # A model instance shared with the sub-agent means model calls are activities. - assert counts[INVOKE_MODEL] >= 1, counts diff --git a/tests/contrib/deepagents/test_tools.py b/tests/contrib/deepagents/test_tools.py deleted file mode 100644 index 1fc1ff212..000000000 --- a/tests/contrib/deepagents/test_tools.py +++ /dev/null @@ -1,238 +0,0 @@ -"""The tool seam: existing activities and wrapped tools route to activities. - -These need LangChain (a tool is a ``BaseTool``) and guard on its import. Each -runs a real workflow that invokes the wrapped tool and asserts it scheduled the -expected activity. -""" - -from __future__ import annotations - -import sys -import uuid -from collections.abc import Sequence -from datetime import timedelta -from types import SimpleNamespace -from typing import Any - -import pytest - -from temporalio.testing import WorkflowEnvironment - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), reason="deepagents requires Python >= 3.11" -) - -pytest.importorskip("langchain_core") - -from temporalio import activity, workflow # noqa: E402 -from temporalio.worker import Worker # noqa: E402 -from tests.contrib.deepagents.helpers import count_scheduled_activities # noqa: E402 - -with workflow.unsafe.imports_passed_through(): - from temporalio.contrib.deepagents import ( # noqa: E402 - DeepAgentsPlugin, - activity_as_tool, - tool_as_activity, - ) - from temporalio.contrib.deepagents._tools import warn_unwrapped_tools # noqa: E402 - -INVOKE_TOOL = "deepagents.invoke_tool" - -# Bind deepagents symbols off the module importorskip returns: a static -# `from deepagents import ...` cannot resolve on Python 3.10 (deepagents -# needs >= 3.11), and with the package absent the type checkers mis-resolve -# the name against this same-named test directory. -create_deep_agent = pytest.importorskip("deepagents").create_deep_agent - - -def pairing_weather(city: str) -> str: - """Return the weather for a city.""" - return f"weather:{city}" - - -@activity.defn -async def echo_activity(text: str) -> str: - return f"echo:{text}" - - -@workflow.defn -class ActivityAsToolWorkflow: - @workflow.run - async def run(self, text: str) -> str: - tool = activity_as_tool( - echo_activity, start_to_close_timeout=timedelta(seconds=10) - ) - return await tool.ainvoke({"text": text}) - - -@workflow.defn -class ToolAsActivityWorkflow: - @workflow.run - async def run(self, city: str) -> str: - def get_weather(city: str) -> str: - """Look up the weather for a city.""" - return f"sunny in {city}" - - tool = tool_as_activity( - get_weather, start_to_close_timeout=timedelta(seconds=10) - ) - # The wrapper returns plain CONTENT (the tool node stamps the model's - # tool_call_id onto it) — not a pre-built ToolMessage. - return str(await tool.ainvoke({"city": city})) - - -@pytest.mark.asyncio -async def test_activity_as_tool(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin() - async with Worker( - env.client, - task_queue="da-act-tool", - workflows=[ActivityAsToolWorkflow], - activities=[echo_activity], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - ActivityAsToolWorkflow.run, - "hi", - id=f"da-act-tool-{uuid.uuid4()}", - task_queue="da-act-tool", - ) - out = await handle.result() - - assert out == "echo:hi" - counts = await count_scheduled_activities(handle) - assert counts["echo_activity"] == 1, counts - - -@pytest.mark.asyncio -async def test_tool_as_activity(env: WorkflowEnvironment) -> None: - plugin = DeepAgentsPlugin() - async with Worker( - env.client, - task_queue="da-tool-act", - workflows=[ToolAsActivityWorkflow], - plugins=[plugin], - ): - handle = await env.client.start_workflow( - ToolAsActivityWorkflow.run, - "Paris", - id=f"da-tool-act-{uuid.uuid4()}", - task_queue="da-tool-act", - ) - out = await handle.result() - - assert "sunny in Paris" in out - counts = await count_scheduled_activities(handle) - assert counts[INVOKE_TOOL] == 1, counts - - -def test_builtin_tool_in_workflow(recwarn: pytest.WarningsRecorder) -> None: - # Built-in tool names never warn (they are pure, in-workflow); an unwrapped - # user tool does warn so the Workflow-vs-Activity choice is conscious. - warn_unwrapped_tools([SimpleNamespace(name="write_todos")]) - assert len(recwarn) == 0 - - warn_unwrapped_tools([SimpleNamespace(name="scrape_website")]) - assert any("scrape_website" in str(w.message) for w in recwarn) - - -# Turn-2 requests observed by the fake model, captured activity-side. Module -# state is shared with the in-process worker, same as the tool registries. -_captured_requests: list[list] = [] - - -@workflow.defn -class ToolCallIdPairingWorkflow: - @workflow.run - async def run(self, city: str) -> str: - weather_tool = tool_as_activity( - pairing_weather, start_to_close_timeout=timedelta(seconds=10) - ) - agent = create_deep_agent( - model="anthropic:claude-sonnet-4-5", - tools=[weather_tool], - system_prompt="Use the weather tool.", - ) - result = await agent.ainvoke( - {"messages": [{"role": "user", "content": f"Weather in {city}?"}]} - ) - return str(result["messages"][-1].content) - - -@pytest.mark.asyncio -async def test_wrapped_tool_result_pairs_with_model_tool_call_id( - env: WorkflowEnvironment, -) -> None: - """The tool_result the model sees on turn 2 must carry the model's OWN - tool_call_id. Regression: ``tool_as_activity`` returned the activity-built - ``ToolMessage`` whose workflow-generated id a real provider (Anthropic) - rejects as an unpaired ``tool_result`` — offline fakes never validate the - pairing, so only a live-model run surfaced it. The wrapper now returns - plain content and the tool node stamps the correct id. - """ - from langchain_core.messages import AIMessage, ToolMessage - - from temporalio.contrib.deepagents.testing import FakeModel - - _captured_requests.clear() - - class RecordingModel(FakeModel): - def __init__(self, responses: Sequence[Any]) -> None: - super().__init__(responses) - - async def _agenerate( - self, - messages: list[Any], - stop: list[str] | None = None, - run_manager: Any = None, - **kwargs: Any, - ) -> Any: - _captured_requests.append(list(messages)) - return await super()._agenerate( - messages, stop=stop, run_manager=run_manager, **kwargs - ) - - tool_turn = AIMessage( - content="", - tool_calls=[ - { - "name": "pairing_weather", - "args": {"city": "Paris"}, - "id": "toolu_scripted_pairing_id", - } - ], - ) - final = AIMessage(content="It is sunny in Paris.") - responses = [tool_turn, final] - cursor = {"i": 0} - - def provider(_model_name: str) -> RecordingModel: - reply = responses[cursor["i"] % len(responses)] - cursor["i"] += 1 - return RecordingModel([reply]) - - plugin = DeepAgentsPlugin(model_provider=provider) - async with Worker( - env.client, - task_queue="da-toolcall-pairing", - workflows=[ToolCallIdPairingWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await env.client.start_workflow( - ToolCallIdPairingWorkflow.run, - "Paris", - id=f"da-toolcall-pairing-{uuid.uuid4()}", - task_queue="da-toolcall-pairing", - ) - out = await handle.result() - - assert "sunny" in out.lower() - # Turn 2's request must contain the tool result under the MODEL's id. - assert len(_captured_requests) >= 2, len(_captured_requests) - tool_messages = [m for m in _captured_requests[1] if isinstance(m, ToolMessage)] - assert tool_messages, _captured_requests[1] - assert tool_messages[0].tool_call_id == "toolu_scripted_pairing_id", tool_messages[ - 0 - ].tool_call_id - assert "weather:Paris" in str(tool_messages[0].content) diff --git a/tests/contrib/langgraph/__init__.py b/tests/contrib/gcp/__init__.py similarity index 100% rename from tests/contrib/langgraph/__init__.py rename to tests/contrib/gcp/__init__.py diff --git a/tests/contrib/langsmith/__init__.py b/tests/contrib/gcp/cloud_run/__init__.py similarity index 100% rename from tests/contrib/langsmith/__init__.py rename to tests/contrib/gcp/cloud_run/__init__.py diff --git a/temporalio/contrib/deepagents/py.typed b/tests/contrib/gcp/cloud_run/id/__init__.py similarity index 100% rename from temporalio/contrib/deepagents/py.typed rename to tests/contrib/gcp/cloud_run/id/__init__.py diff --git a/tests/contrib/gcp/cloud_run/id/test_cloud_run_id_plugin.py b/tests/contrib/gcp/cloud_run/id/test_cloud_run_id_plugin.py new file mode 100644 index 000000000..52055ad58 --- /dev/null +++ b/tests/contrib/gcp/cloud_run/id/test_cloud_run_id_plugin.py @@ -0,0 +1,127 @@ +"""Tests for the Google Cloud Run worker-ID plugin.""" + +from __future__ import annotations + +import os +import socket +from typing import cast +from unittest.mock import Mock + +import pytest + +from temporalio.contrib.gcp.cloud_run.id import ( + CloudRunIdPlugin, + GoogleCloudRunMetadata, +) +from temporalio.service import ConnectConfig, ServiceClient + + +def _metadata( + *, + instance_id: str = "instance-1", + name: str = "my-pool", + revision: str = "rev-1", +) -> GoogleCloudRunMetadata: + return GoogleCloudRunMetadata( + instance_id=instance_id, + name=name, + revision=revision, + ) + + +def _closed_port() -> int: + """Return a port number that nothing is listening on.""" + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + sock.bind(("127.0.0.1", 0)) + port = sock.getsockname()[1] + sock.close() + return port + + +def _service_client() -> ServiceClient: + return cast(ServiceClient, Mock(spec=ServiceClient)) + + +# ---- Client identity ---- + + +class TestClientIdentity: + @pytest.mark.asyncio + async def test_sets_identity_when_unset(self) -> None: + plugin = CloudRunIdPlugin( + metadata=_metadata(instance_id="abc", revision="rev-1") + ) + # ConnectConfig auto-fills identity with @ when none is given. + config = ConnectConfig(target_host="localhost:7233") + assert config.identity == f"{os.getpid()}@{socket.gethostname()}" + service_client = _service_client() + + async def connect(input: ConnectConfig) -> ServiceClient: + assert input.identity == "abc@rev-1" + return service_client + + assert await plugin.connect_service_client(config, connect) is service_client + assert config.identity == "abc@rev-1" + + @pytest.mark.asyncio + async def test_preserves_caller_identity(self) -> None: + plugin = CloudRunIdPlugin( + metadata=_metadata(instance_id="abc", revision="rev-1") + ) + config = ConnectConfig(target_host="localhost:7233", identity="my-identity") + service_client = _service_client() + + async def connect(input: ConnectConfig) -> ServiceClient: + assert input.identity == "my-identity" + return service_client + + assert await plugin.connect_service_client(config, connect) is service_client + assert config.identity == "my-identity" + + +# ---- Metadata fetching / caching ---- + + +class TestMetadataFetch: + def test_construction_does_not_fetch(self) -> None: + # A bad metadata URL must not raise at construction -- the fetch is lazy. + CloudRunIdPlugin( + metadata_url=f"http://127.0.0.1:{_closed_port()}/instance/id", + getenv={}.get, # type: ignore[arg-type] + ) + + @pytest.mark.asyncio + async def test_connect_fails_fast_off_platform(self) -> None: + plugin = CloudRunIdPlugin( + timeout=1.0, + metadata_url=f"http://127.0.0.1:{_closed_port()}/instance/id", + getenv={}.get, # type: ignore[arg-type] + ) + config = ConnectConfig(target_host="localhost:7233") + + async def connect(_input: ConnectConfig) -> ServiceClient: + raise AssertionError("should not connect when metadata is unavailable") + + with pytest.raises(RuntimeError, match="metadata server"): + await plugin.connect_service_client(config, connect) + + @pytest.mark.asyncio + async def test_metadata_fetched_from_server_at_connect( + self, monkeypatch: pytest.MonkeyPatch + ) -> None: + fetch = Mock(return_value=_metadata(instance_id="abc", revision="rev-1")) + monkeypatch.setattr( + "temporalio.contrib.gcp.cloud_run.id._cloud_run_id_plugin.get_google_cloud_run_metadata", + fetch, + ) + plugin = CloudRunIdPlugin() + config = ConnectConfig(target_host="localhost:7233") + + async def connect(_input: ConnectConfig) -> ServiceClient: + return _service_client() + + await plugin.connect_service_client(config, connect) + + # Fetched from the metadata server when the client connects. + fetch.assert_called_once() + assert config.identity == "abc@rev-1" diff --git a/tests/contrib/gcp/cloud_run/id/test_metadata.py b/tests/contrib/gcp/cloud_run/id/test_metadata.py new file mode 100644 index 000000000..75b11d65b --- /dev/null +++ b/tests/contrib/gcp/cloud_run/id/test_metadata.py @@ -0,0 +1,220 @@ +"""Tests for temporalio.contrib.gcp.cloud_run.id.""" + +from __future__ import annotations + +import socket +import threading +from collections.abc import Iterator +from email.message import Message +from http.server import BaseHTTPRequestHandler, HTTPServer +from typing import Any + +import pytest + +from temporalio.contrib.gcp.cloud_run.id import ( + GoogleCloudRunMetadata, + get_google_cloud_run_metadata, +) + + +def _metadata( + *, + instance_id: str = "instance-1", + name: str = "", + revision: str = "", +) -> GoogleCloudRunMetadata: + return GoogleCloudRunMetadata( + instance_id=instance_id, + name=name, + revision=revision, + ) + + +# ---- Local metadata-server fixture ---- + + +class _MetadataServer(HTTPServer): + """In-process stand-in for the Cloud Run metadata server. + + Records the headers and path of the last request and serves a configurable + status and body so tests can assert on both the request and the response. + """ + + url: str = "" + response_status: int = 200 + response_body: str = "instance-1" + received_path: str | None = None + received_headers: Message[str, str] | None = None + + +class _Handler(BaseHTTPRequestHandler): + def do_GET(self) -> None: # noqa: N802 (http.server naming) + server: _MetadataServer = self.server # type: ignore[assignment] + server.received_path = self.path + server.received_headers = self.headers + body = server.response_body.encode("utf-8") + self.send_response(server.response_status) + self.send_header("Content-Length", str(len(body))) + self.end_headers() + self.wfile.write(body) + + def log_message(self, format: str, *args: Any) -> None: # noqa: A002 + # Silence the default stderr request logging. The parameter is named + # ``format`` to match BaseHTTPRequestHandler.log_message. + pass + + +@pytest.fixture +def metadata_server() -> Iterator[_MetadataServer]: + server = _MetadataServer(("127.0.0.1", 0), _Handler) + thread = threading.Thread(target=server.serve_forever, daemon=True) + thread.start() + port = server.server_address[1] + server.url = f"http://127.0.0.1:{port}/computeMetadata/v1/instance/id" + try: + yield server + finally: + server.shutdown() + server.server_close() + thread.join(timeout=5) + + +def _closed_port() -> int: + """Return a port number that nothing is listening on.""" + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + sock.bind(("127.0.0.1", 0)) + port = sock.getsockname()[1] + sock.close() + return port + + +# ---- Environment precedence ---- + + +class TestEnvPrecedence: + def test_worker_pool_wins_over_service( + self, metadata_server: _MetadataServer + ) -> None: + env = {"CLOUD_RUN_WORKER_POOL": "my-pool", "K_SERVICE": "my-service"} + metadata = get_google_cloud_run_metadata( + metadata_url=metadata_server.url, + getenv=env.get, # type: ignore[arg-type] + ) + assert metadata.name == "my-pool" + + def test_service_used_when_pool_absent( + self, metadata_server: _MetadataServer + ) -> None: + env = {"K_SERVICE": "my-service"} + metadata = get_google_cloud_run_metadata( + metadata_url=metadata_server.url, + getenv=env.get, # type: ignore[arg-type] + ) + assert metadata.name == "my-service" + + def test_name_empty_when_neither_set( + self, metadata_server: _MetadataServer + ) -> None: + metadata = get_google_cloud_run_metadata( + metadata_url=metadata_server.url, + getenv={}.get, # type: ignore[arg-type] + ) + assert metadata.name == "" + + def test_cloud_run_revision_wins_over_k_revision( + self, metadata_server: _MetadataServer + ) -> None: + env = {"CLOUD_RUN_REVISION": "rev-cr", "K_REVISION": "rev-k"} + metadata = get_google_cloud_run_metadata( + metadata_url=metadata_server.url, + getenv=env.get, # type: ignore[arg-type] + ) + assert metadata.revision == "rev-cr" + + def test_k_revision_used_when_cloud_run_revision_absent( + self, metadata_server: _MetadataServer + ) -> None: + env = {"K_REVISION": "rev-k"} + metadata = get_google_cloud_run_metadata( + metadata_url=metadata_server.url, + getenv=env.get, # type: ignore[arg-type] + ) + assert metadata.revision == "rev-k" + + def test_revision_empty_when_neither_set( + self, metadata_server: _MetadataServer + ) -> None: + metadata = get_google_cloud_run_metadata( + metadata_url=metadata_server.url, + getenv={}.get, # type: ignore[arg-type] + ) + assert metadata.revision == "" + + +# ---- Worker identity ---- + + +class TestWorkerIdentity: + def test_identity_uses_revision(self) -> None: + metadata = _metadata(instance_id="abc", name="my-pool", revision="rev-1") + assert metadata.identity == "abc@rev-1" + + def test_identity_falls_back_to_name(self) -> None: + metadata = _metadata(instance_id="abc", name="my-pool", revision="") + assert metadata.identity == "abc@my-pool" + + def test_identity_falls_back_to_instance_id(self) -> None: + metadata = _metadata(instance_id="abc", name="", revision="") + assert metadata.identity == "abc" + + +# ---- HTTP fetch ---- + + +class TestHttpFetch: + def test_sends_metadata_flavor_header_and_trims_body( + self, metadata_server: _MetadataServer + ) -> None: + metadata_server.response_body = " instance-xyz\n" + metadata = get_google_cloud_run_metadata( + metadata_url=metadata_server.url, + getenv={}.get, # type: ignore[arg-type] + ) + assert metadata.instance_id == "instance-xyz" + assert metadata_server.received_headers is not None + assert metadata_server.received_headers.get("Metadata-Flavor") == "Google" + assert metadata_server.received_path == "/computeMetadata/v1/instance/id" + + def test_errors_on_non_200(self, metadata_server: _MetadataServer) -> None: + metadata_server.response_status = 500 + metadata_server.response_body = "boom" + with pytest.raises(RuntimeError, match="metadata server"): + get_google_cloud_run_metadata( + metadata_url=metadata_server.url, + getenv={}.get, # type: ignore[arg-type] + ) + + def test_errors_when_unreachable(self) -> None: + url = f"http://127.0.0.1:{_closed_port()}/computeMetadata/v1/instance/id" + with pytest.raises(RuntimeError, match="metadata server"): + get_google_cloud_run_metadata( + metadata_url=url, + timeout=1.0, + getenv={}.get, # type: ignore[arg-type] + ) + + def test_end_to_end_from_env_and_server( + self, metadata_server: _MetadataServer + ) -> None: + metadata_server.response_body = "instance-42" + env = {"CLOUD_RUN_WORKER_POOL": "my-pool", "CLOUD_RUN_REVISION": "rev-7"} + metadata = get_google_cloud_run_metadata( + metadata_url=metadata_server.url, + getenv=env.get, # type: ignore[arg-type] + ) + assert metadata == GoogleCloudRunMetadata( + instance_id="instance-42", + name="my-pool", + revision="rev-7", + ) + assert metadata.identity == "instance-42@rev-7" diff --git a/tests/contrib/gcp/cloud_run/opentelemetry/__init__.py b/tests/contrib/gcp/cloud_run/opentelemetry/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/contrib/gcp/cloud_run/opentelemetry/test_opentelemetry.py b/tests/contrib/gcp/cloud_run/opentelemetry/test_opentelemetry.py new file mode 100644 index 000000000..245721d24 --- /dev/null +++ b/tests/contrib/gcp/cloud_run/opentelemetry/test_opentelemetry.py @@ -0,0 +1,315 @@ +"""Tests for the Google Cloud Run OpenTelemetry plugin.""" + +from __future__ import annotations + +from datetime import timedelta +from typing import Any, cast +from unittest.mock import Mock, call + +import pytest +from opentelemetry.trace import NoOpTracerProvider, set_tracer_provider + +from temporalio.client import ClientConfig +from temporalio.contrib.gcp.cloud_run.opentelemetry import ( + CLOUD_RUN_SERVICE_ENV_VAR, + CLOUD_RUN_WORKER_POOL_ENV_VAR, + DEFAULT_METRIC_PERIODICITY, + DEFAULT_OTLP_ENDPOINT, + DEFAULT_SERVICE_NAME, + OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VAR, + OTEL_SERVICE_NAME_ENV_VAR, + OpenTelemetryPlugin, + build_metrics_telemetry_config, +) +from temporalio.contrib.opentelemetry import ( + OpenTelemetryInterceptor, + create_tracer_provider, +) +from temporalio.contrib.opentelemetry._tracer_provider import ( + ReplaySafeTracerProvider, +) +from temporalio.runtime import OpenTelemetryConfig, Runtime +from temporalio.service import ConnectConfig, ServiceClient +from temporalio.worker import Worker + + +@pytest.fixture(autouse=True) +def _reset_global_provider( # pyright: ignore[reportUnusedFunction] + reset_otel_tracer_provider: None, # pyright: ignore[reportUnusedParameter] +) -> None: + pass + + +@pytest.fixture +def tracer_provider() -> ReplaySafeTracerProvider: + return create_tracer_provider(shutdown_on_exit=False) + + +def _application_owned_plugin( + tracer_provider: ReplaySafeTracerProvider, + **kwargs: Any, +) -> OpenTelemetryPlugin: + return OpenTelemetryPlugin( + tracer_provider=tracer_provider, + runtime=cast(Runtime, Mock(spec=Runtime)), + **kwargs, + ) + + +def _clear_environment(monkeypatch: pytest.MonkeyPatch) -> None: + for name in ( + OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VAR, + OTEL_SERVICE_NAME_ENV_VAR, + CLOUD_RUN_WORKER_POOL_ENV_VAR, + CLOUD_RUN_SERVICE_ENV_VAR, + ): + monkeypatch.delenv(name, raising=False) + + +def test_defaults_and_plugin_integration( + tracer_provider: ReplaySafeTracerProvider, monkeypatch: pytest.MonkeyPatch +) -> None: + _clear_environment(monkeypatch) + + plugin = _application_owned_plugin(tracer_provider) + + assert plugin.endpoint == DEFAULT_OTLP_ENDPOINT + assert plugin.service_name == DEFAULT_SERVICE_NAME + assert plugin.tracer_provider is tracer_provider + assert plugin.name() == "OpenTelemetryPlugin" + + config = plugin.configure_client( + cast(ClientConfig, cast(object, {"interceptors": []})) + ) + assert len(config["interceptors"]) == 1 + assert isinstance(config["interceptors"][0], OpenTelemetryInterceptor) + + +def test_resolution_precedence( + tracer_provider: ReplaySafeTracerProvider, monkeypatch: pytest.MonkeyPatch +) -> None: + _clear_environment(monkeypatch) + monkeypatch.setenv(CLOUD_RUN_SERVICE_ENV_VAR, "cloud-run-service") + plugin = _application_owned_plugin(tracer_provider) + assert plugin.service_name == "cloud-run-service" + + monkeypatch.setenv(CLOUD_RUN_WORKER_POOL_ENV_VAR, "worker-pool") + plugin = _application_owned_plugin(tracer_provider) + assert plugin.service_name == "worker-pool" + + monkeypatch.setenv(OTEL_SERVICE_NAME_ENV_VAR, "otel-service") + monkeypatch.setenv(OTEL_EXPORTER_OTLP_ENDPOINT_ENV_VAR, "http://collector:4317") + plugin = _application_owned_plugin(tracer_provider) + assert plugin.service_name == "otel-service" + assert plugin.endpoint == "http://collector:4317" + + plugin = _application_owned_plugin( + tracer_provider, + endpoint="https://explicit-collector:4317", + service_name="explicit-service", + ) + assert plugin.service_name == "explicit-service" + assert plugin.endpoint == "https://explicit-collector:4317" + + +def test_ignores_empty_environment_values( + tracer_provider: ReplaySafeTracerProvider, monkeypatch: pytest.MonkeyPatch +) -> None: + # Empty environment values are falsy and are skipped, falling through to + # the next source in the chain. Whitespace is not stripped, so only truly + # empty values are ignored (matching the shared serverless behavior). + monkeypatch.setenv(OTEL_SERVICE_NAME_ENV_VAR, "") + monkeypatch.setenv(CLOUD_RUN_WORKER_POOL_ENV_VAR, "") + monkeypatch.setenv(CLOUD_RUN_SERVICE_ENV_VAR, "cloud-run-service") + + plugin = _application_owned_plugin(tracer_provider) + + assert plugin.service_name == "cloud-run-service" + + +def test_build_metrics_telemetry_config(monkeypatch: pytest.MonkeyPatch) -> None: + _clear_environment(monkeypatch) + monkeypatch.setenv(CLOUD_RUN_WORKER_POOL_ENV_VAR, "worker-pool") + config = build_metrics_telemetry_config( + endpoint="http://collector:4317", + metric_periodicity=timedelta(seconds=30), + ) + + assert isinstance(config.metrics, OpenTelemetryConfig) + assert config.metrics.url == "http://collector:4317" + assert config.metrics.metric_periodicity == timedelta(seconds=30) + assert config.global_tags == {"service_name": "worker-pool"} + + +def test_default_metric_periodicity_is_sixty_seconds( + monkeypatch: pytest.MonkeyPatch, +) -> None: + _clear_environment(monkeypatch) + + config = build_metrics_telemetry_config() + + assert DEFAULT_METRIC_PERIODICITY == timedelta(seconds=60) + assert isinstance(config.metrics, OpenTelemetryConfig) + assert config.metrics.metric_periodicity == timedelta(seconds=60) + + +@pytest.mark.asyncio +async def test_connect_service_client_installs_runtime( + tracer_provider: ReplaySafeTracerProvider, +) -> None: + runtime = cast(Runtime, Mock(spec=Runtime)) + plugin = OpenTelemetryPlugin( + tracer_provider=tracer_provider, + runtime=runtime, + ) + config = ConnectConfig(target_host="localhost:7233") + service_client = cast(ServiceClient, Mock(spec=ServiceClient)) + + async def connect(input: ConnectConfig) -> ServiceClient: + assert input.runtime is runtime + return service_client + + assert await plugin.connect_service_client(config, connect) is service_client + + conflicting_config = ConnectConfig( + target_host="localhost:7233", + runtime=cast(Runtime, Mock(spec=Runtime)), + ) + with pytest.raises(ValueError, match="runtime conflicts"): + await plugin.connect_service_client(conflicting_config, connect) + + +def test_force_flush_and_application_owned_shutdown( + tracer_provider: ReplaySafeTracerProvider, monkeypatch: pytest.MonkeyPatch +) -> None: + force_flush = Mock(return_value=True) + shutdown = Mock() + monkeypatch.setattr(tracer_provider, "force_flush", force_flush) + monkeypatch.setattr(tracer_provider, "shutdown", shutdown) + plugin = _application_owned_plugin(tracer_provider) + + assert plugin.force_flush(timedelta(seconds=2)) + assert plugin.shutdown(timedelta(seconds=3)) + assert plugin.shutdown(timedelta(seconds=4)) + + assert force_flush.call_args_list == [call(2000), call(3000)] + shutdown.assert_not_called() + + +def test_plugin_owned_provider_is_shut_down( + tracer_provider: ReplaySafeTracerProvider, monkeypatch: pytest.MonkeyPatch +) -> None: + force_flush = Mock(return_value=True) + shutdown = Mock() + monkeypatch.setattr(tracer_provider, "force_flush", force_flush) + monkeypatch.setattr(tracer_provider, "shutdown", shutdown) + monkeypatch.setattr( + "temporalio.contrib.gcp.cloud_run.opentelemetry._opentelemetry._create_tracer_provider", + lambda endpoint, service_name: tracer_provider, + ) + runtime = cast(Runtime, Mock(spec=Runtime)) + runtime_factory = Mock(return_value=runtime) + monkeypatch.setattr( + "temporalio.contrib.gcp.cloud_run.opentelemetry._opentelemetry.Runtime", + runtime_factory, + ) + + plugin = OpenTelemetryPlugin() + + assert plugin.runtime is runtime + telemetry = runtime_factory.call_args.kwargs["telemetry"] + assert isinstance(telemetry.metrics, OpenTelemetryConfig) + assert telemetry.metrics.url == DEFAULT_OTLP_ENDPOINT + assert telemetry.metrics.metric_periodicity == DEFAULT_METRIC_PERIODICITY + assert telemetry.global_tags == {"service_name": DEFAULT_SERVICE_NAME} + assert plugin.shutdown(timedelta(seconds=2)) + force_flush.assert_called_once_with(2000) + shutdown.assert_called_once_with() + + +def test_plugin_owned_provider_is_cleaned_up_on_runtime_failure( + tracer_provider: ReplaySafeTracerProvider, monkeypatch: pytest.MonkeyPatch +) -> None: + shutdown = Mock() + monkeypatch.setattr(tracer_provider, "shutdown", shutdown) + monkeypatch.setattr( + "temporalio.contrib.gcp.cloud_run.opentelemetry._opentelemetry._create_tracer_provider", + lambda endpoint, service_name: tracer_provider, + ) + monkeypatch.setattr( + "temporalio.contrib.gcp.cloud_run.opentelemetry._opentelemetry.Runtime", + Mock(side_effect=RuntimeError("runtime failed")), + ) + + with pytest.raises(RuntimeError, match="runtime failed"): + OpenTelemetryPlugin() + + shutdown.assert_called_once_with() + + +def test_rejects_conflicting_global_tracer_provider( + tracer_provider: ReplaySafeTracerProvider, monkeypatch: pytest.MonkeyPatch +) -> None: + existing_provider = create_tracer_provider(shutdown_on_exit=False) + set_tracer_provider(existing_provider) + shutdown = Mock() + monkeypatch.setattr(tracer_provider, "shutdown", shutdown) + monkeypatch.setattr( + "temporalio.contrib.gcp.cloud_run.opentelemetry._opentelemetry._create_tracer_provider", + lambda endpoint, service_name: tracer_provider, + ) + + with pytest.raises(RuntimeError, match="already configured"): + OpenTelemetryPlugin(runtime=cast(Runtime, Mock(spec=Runtime))) + + shutdown.assert_called_once_with() + + +@pytest.mark.asyncio +@pytest.mark.parametrize("flush_on_worker_stop", [False, True]) +async def test_worker_stop_flush_is_opt_in( + tracer_provider: ReplaySafeTracerProvider, + monkeypatch: pytest.MonkeyPatch, + flush_on_worker_stop: bool, +) -> None: + calls: list[str] = [] + + def record_flush(_timeout_millis: int) -> bool: + calls.append("flush") + return True + + force_flush = Mock(side_effect=record_flush) + monkeypatch.setattr(tracer_provider, "force_flush", force_flush) + plugin = _application_owned_plugin( + tracer_provider, + flush_on_worker_stop=flush_on_worker_stop, + flush_timeout=timedelta(seconds=2), + ) + + async def run(_worker: Worker) -> None: + calls.append("run") + + await plugin.run_worker(cast(Worker, Mock(spec=Worker)), run) + + assert calls == (["run", "flush"] if flush_on_worker_stop else ["run"]) + + +def test_validates_options(tracer_provider: ReplaySafeTracerProvider) -> None: + with pytest.raises(ValueError, match="flush_timeout must be positive"): + _application_owned_plugin(tracer_provider, flush_timeout=timedelta(seconds=-1)) + with pytest.raises(ValueError, match="metric_periodicity cannot be set"): + _application_owned_plugin( + tracer_provider, metric_periodicity=timedelta(seconds=1) + ) + with pytest.raises(ValueError, match="metric_periodicity must be positive"): + build_metrics_telemetry_config(metric_periodicity=timedelta(0)) + + plugin = _application_owned_plugin(tracer_provider) + with pytest.raises(ValueError, match="timeout must be positive"): + plugin.force_flush(timedelta(0)) + + with pytest.raises(TypeError, match="create_tracer_provider"): + OpenTelemetryPlugin( + tracer_provider=NoOpTracerProvider(), + runtime=cast(Runtime, Mock(spec=Runtime)), + ) diff --git a/tests/contrib/gcp/gcsdriver/__init__.py b/tests/contrib/gcp/gcsdriver/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/contrib/gcp/gcsdriver/conftest.py b/tests/contrib/gcp/gcsdriver/conftest.py new file mode 100644 index 000000000..04378cf42 --- /dev/null +++ b/tests/contrib/gcp/gcsdriver/conftest.py @@ -0,0 +1,153 @@ +"""Fixtures for GCS tests against a pytest-managed local emulator.""" + +from __future__ import annotations + +import hashlib +import io +import platform +import shutil +import socket +import subprocess +import tarfile +import tempfile +import time +import urllib.error +import urllib.request +import uuid +from collections.abc import AsyncIterator, Iterator +from pathlib import Path + +import aiohttp +import pytest +from gcloud.aio.storage import Storage + +_EMULATOR_VERSION = "1.56.1" +_EMULATOR_CHECKSUMS = { + "Darwin_amd64": "bbcbb78e57c4a7ad242bc971b70a57f963c8daa616ae649254562fbd7f2bc54d", + "Darwin_arm64": "039d7a520869115b9bc1b354f73612d2dad0aa27b22104f111d8c94985007fe1", + "Linux_amd64": "0f2f9f6884417acd5cc27126a9aa237ccc627372a4aa5008b399641de6db9469", + "Linux_arm64": "89a4b887a50834ce5844f47f9938a1203a89330e660b2af7851b858fa489fa96", + "Windows_amd64": "79c1a92b6d666c6fc2a60439f8ebee9e01b918dad90cae6f003ade4a5877a566", +} + + +def _emulator_binary(config: pytest.Config) -> Path: + installed_binary = shutil.which("fake-gcs-server") + if installed_binary: + return Path(installed_binary).resolve(strict=True) + machine = platform.machine().lower() + arch = {"x86_64": "amd64", "aarch64": "arm64"}.get(machine, machine) + target = f"{platform.system()}_{arch}" + if target not in _EMULATOR_CHECKSUMS: + pytest.fail(f"No fake GCS binary for {target}; install fake-gcs-server on PATH") + assert config.cache is not None + cache = config.cache.mkdir("fake-gcs-server") / _EMULATOR_VERSION / target + cache.mkdir(parents=True, exist_ok=True) + filename = ( + "fake-gcs-server.exe" if platform.system() == "Windows" else "fake-gcs-server" + ) + binary = cache / filename + if binary.is_file(): + return binary + url = ( + "https://github.com/fsouza/fake-gcs-server/releases/download/" + f"v{_EMULATOR_VERSION}/fake-gcs-server_{_EMULATOR_VERSION}_{target}.tar.gz" + ) + with urllib.request.urlopen(url, timeout=30) as response: + data = response.read() + if hashlib.sha256(data).hexdigest() != _EMULATOR_CHECKSUMS[target]: + pytest.fail(f"Checksum mismatch for {url}") + with tempfile.TemporaryDirectory(dir=cache) as staging: + staged_binary = Path(staging) / filename + with tarfile.open(fileobj=io.BytesIO(data)) as archive: + with staged_binary.open("wb") as dest: + source = archive.extractfile(filename) + assert source is not None + with source: + shutil.copyfileobj(source, dest) + staged_binary.chmod(0o755) + try: + # Workers may finish downloading together; Windows refuses replacement. + staged_binary.rename(binary) + except FileExistsError: + pass + return binary + + +@pytest.fixture(scope="session") +def gcs_server_url( + pytestconfig: pytest.Config, tmp_path_factory: pytest.TempPathFactory +) -> Iterator[str]: + binary = _emulator_binary(pytestconfig) + with socket.socket() as sock: + sock.bind(("127.0.0.1", 0)) + port = sock.getsockname()[1] + endpoint = f"http://127.0.0.1:{port}" + log_path = tmp_path_factory.mktemp("fake-gcs-server") / "server.log" + with log_path.open("w") as log: + process = subprocess.Popen( + [ + str(binary), + "-scheme", + "http", + "-host", + "127.0.0.1", + "-port", + str(port), + "-backend", + "memory", + "-external-url", + endpoint, + ], + stdout=log, + stderr=subprocess.STDOUT, + ) + try: + deadline = time.monotonic() + 15 + while process.poll() is None and time.monotonic() < deadline: + try: + with urllib.request.urlopen( + f"{endpoint}/storage/v1/b?project=temporal-test", timeout=1 + ): + pass + except urllib.error.URLError: + time.sleep(0.05) + else: + yield endpoint + return + pytest.fail(f"Fake GCS server failed to start:\n{log_path.read_text()}") + finally: + if process.poll() is None: + process.terminate() + try: + process.wait(timeout=5) + except subprocess.TimeoutExpired: + process.kill() + process.wait(timeout=5) + + +@pytest.fixture +def gcs_bucket() -> str: + return f"temporal-test-{uuid.uuid4()}" + + +@pytest.fixture +async def gcs_storage(gcs_server_url: str, gcs_bucket: str) -> AsyncIterator[Storage]: + async with aiohttp.ClientSession() as session: + async with session.post( + f"{gcs_server_url}/storage/v1/b", + params={"project": "temporal-test"}, + json={"name": gcs_bucket}, + ) as response: + response.raise_for_status() + async with Storage(api_root=gcs_server_url) as storage: + try: + yield storage + finally: + objects = await storage.list_objects(gcs_bucket) + for item in objects.get("items", []): + await storage.delete(gcs_bucket, item["name"]) + async with session.delete( + f"{gcs_server_url}/storage/v1/b/{gcs_bucket}" + ) as response: + response.raise_for_status() diff --git a/tests/contrib/gcp/gcsdriver/test_gcsdriver.py b/tests/contrib/gcp/gcsdriver/test_gcsdriver.py new file mode 100644 index 000000000..a8b2bea3e --- /dev/null +++ b/tests/contrib/gcp/gcsdriver/test_gcsdriver.py @@ -0,0 +1,514 @@ +"""Tests for the GCS storage driver and its async client adapter.""" + +from __future__ import annotations + +import asyncio +import hashlib +from unittest.mock import AsyncMock, MagicMock + +import pytest +from aiohttp import ClientResponseError +from gcloud.aio.storage import Storage + +from temporalio.api.common.v1 import Payload +from temporalio.contrib.gcp.gcsdriver import GCSStorageDriver, GCSStorageDriverClient +from temporalio.contrib.gcp.gcsdriver.gcloud_aio import new_gcloud_aio_client +from temporalio.converter import ( + ExternalStorage, + StorageDriverActivityInfo, + StorageDriverClaim, + StorageDriverRetrieveContext, + StorageDriverStoreContext, + StorageDriverWorkflowInfo, +) + + +class MemoryClient(GCSStorageDriverClient): + def __init__(self) -> None: + self.objects: dict[tuple[str, str], bytes] = {} + self.uploads = 0 + + async def object_exists(self, *, bucket: str, object_name: str) -> bool: + return (bucket, object_name) in self.objects + + async def put_object(self, *, bucket: str, object_name: str, data: bytes) -> None: + self.uploads += 1 + self.objects.setdefault((bucket, object_name), data) + + async def get_object(self, *, bucket: str, object_name: str) -> bytes: + return self.objects[bucket, object_name] + + +@pytest.fixture +def client() -> MemoryClient: + return MemoryClient() + + +def payload(value: bytes = b"hello") -> Payload: + return Payload( + metadata={"encoding": b"binary/plain", "custom": b"\x00\xff"}, data=value + ) + + +def test_configuration(client: MemoryClient) -> None: + driver = GCSStorageDriver(client, "bucket") + assert driver.name() == driver.type() == "gcp.gcsdriver" + assert GCSStorageDriver(client, "bucket", driver_name="archive").name() == "archive" + for limit in (0, -1): + with pytest.raises(ValueError, match="max_payload_size"): + GCSStorageDriver(client, "bucket", max_payload_size=limit) + + +@pytest.mark.parametrize( + "target,prefix", + [ + (None, "v0/ns/null"), + ( + StorageDriverWorkflowInfo(namespace=""), + "v0/ns/null/wt/null/wi/null/ri/null", + ), + ( + StorageDriverActivityInfo(namespace=""), + "v0/ns/null/at/null/ai/null/ri/null", + ), + ( + StorageDriverWorkflowInfo( + namespace="ns", type="Workflow", id="wf", run_id="run" + ), + "v0/ns/ns/wt/Workflow/wi/wf/ri/run", + ), + ( + StorageDriverActivityInfo(namespace="ns", type="Activity", id="act"), + "v0/ns/ns/at/Activity/ai/act/ri/null", + ), + ( + StorageDriverWorkflowInfo(namespace="ns"), + "v0/ns/ns/wt/null/wi/null/ri/null", + ), + ( + StorageDriverWorkflowInfo(namespace="ns /%", id="日本語 😀", type="A+B=C"), + "v0/ns/ns %2F%25/wt/A+B=C/wi/日本語 😀/ri/null", + ), + ], +) +async def test_object_names( + client: MemoryClient, + target: StorageDriverWorkflowInfo | StorageDriverActivityInfo | None, + prefix: str, +) -> None: + original = payload() + [claim] = await GCSStorageDriver(client, "bucket").store( + StorageDriverStoreContext(target=target), [original] + ) + digest = hashlib.sha256(original.SerializeToString()).hexdigest() + assert claim.claim_data == { + "bucket": "bucket", + "object_name": f"{prefix}/d/sha256/{digest}", + "hash_algorithm": "sha256", + "hash_value": digest, + } + + +@pytest.mark.parametrize( + "target,namespace,prefix", + [ + (None, "ambient /%", "v0/ns/ambient %2F%25"), + (None, None, "v0/ns/null"), + (None, "", "v0/ns/null"), + (StorageDriverWorkflowInfo(namespace="target"), "ambient", "v0/ns/target/wt"), + (StorageDriverActivityInfo(namespace="target"), "ambient", "v0/ns/target/at"), + (StorageDriverWorkflowInfo(namespace=""), "ambient", "v0/ns/null/wt"), + ], +) +async def test_object_names_ambient_namespace( + client: MemoryClient, + target: StorageDriverWorkflowInfo | StorageDriverActivityInfo | None, + namespace: str | None, + prefix: str, +) -> None: + original = payload() + [claim] = await GCSStorageDriver(client, "bucket").store( + StorageDriverStoreContext(target=target, namespace=namespace), [original] + ) + digest = hashlib.sha256(original.SerializeToString()).hexdigest() + object_name = claim.claim_data["object_name"] + assert object_name.startswith(f"{prefix}/") + assert object_name.endswith(f"/d/sha256/{digest}") + if target is None: + assert object_name == f"{prefix}/d/sha256/{digest}" + + +async def test_long_object_name_without_target_uses_ambient_namespace( + client: MemoryClient, +) -> None: + original = payload() + digest = hashlib.sha256(original.SerializeToString()).hexdigest() + namespace = "日" * 400 + [claim] = await GCSStorageDriver(client, "bucket").store( + StorageDriverStoreContext(namespace=namespace), [original] + ) + assert claim.claim_data["object_name"] == f"v0/ns/{namespace}/d/sha256/{digest}" + + +@pytest.mark.parametrize( + "value,encoded", + [ + ("hello-world_v2.0", "hello-world_v2.0"), + ("日本語 café 😀", "日本語 café 😀"), + ("a+b=c@d!$&'();,", "a+b=c@d!$&'();,"), + ('#[]*?:"<>|/%', "%23%5B%5D%2A%3F%3A%22%3C%3E%7C%2F%25"), + ("\x00\n\r\x1f\x7f\x80\x9f", "%00%0A%0D%1F%7F%C2%80%C2%9F"), + (".", "%2E"), + ("..", "%2E%2E"), + ("...", "..."), + ("a.b", "a.b"), + ("a/b", "a%2Fb"), + ("a%2Fb", "a%252Fb"), + ], +) +async def test_object_name_encoding( + client: MemoryClient, value: str, encoded: str +) -> None: + [claim] = await GCSStorageDriver(client, "bucket").store( + StorageDriverStoreContext( + target=StorageDriverWorkflowInfo( + namespace=value, type=value, id=value, run_id=value + ) + ), + [payload()], + ) + assert claim.claim_data["object_name"].startswith( + f"v0/ns/{encoded}/wt/{encoded}/wi/{encoded}/ri/{encoded}/d/sha256/" + ) + + +async def test_round_trip_and_deduplication(client: MemoryClient) -> None: + driver = GCSStorageDriver(client, "bucket") + originals = [payload(), payload(b"world")] + claims = await driver.store(StorageDriverStoreContext(), originals) + assert await driver.store(StorageDriverStoreContext(), originals) == claims + assert client.uploads == 2 + assert ( + await GCSStorageDriver(client, "new-bucket").retrieve( + StorageDriverRetrieveContext(), claims + ) + == originals + ) + assert await driver.store(StorageDriverStoreContext(), []) == [] + assert await driver.retrieve(StorageDriverRetrieveContext(), []) == [] + + +async def test_retrieve_canonical_claim(client: MemoryClient) -> None: + original = payload() + data = original.SerializeToString() + client.objects["source-bucket", "existing/object"] = data + claim = StorageDriverClaim( + { + "bucket": "source-bucket", + "object_name": "existing/object", + "hash_algorithm": "sha256", + "hash_value": hashlib.sha256(data).hexdigest(), + } + ) + assert await GCSStorageDriver(client, "destination-bucket").retrieve( + StorageDriverRetrieveContext(), [claim] + ) == [original] + + +async def test_callable_bucket(client: MemoryClient) -> None: + context = StorageDriverStoreContext( + target=StorageDriverWorkflowInfo(namespace="ns") + ) + + def choose_bucket(ctx: StorageDriverStoreContext, value: Payload) -> str: + assert ctx is context + return value.data.decode() + + claims = await GCSStorageDriver(client, choose_bucket).store( + context, [payload(b"first"), payload(b"second")] + ) + assert [c.claim_data["bucket"] for c in claims] == ["first", "second"] + + +async def test_size_includes_metadata(client: MemoryClient) -> None: + original = payload() + driver = GCSStorageDriver(client, "bucket", max_payload_size=original.ByteSize()) + await driver.store(StorageDriverStoreContext(), [original]) + original.metadata["extra"] = b"too large" + with pytest.raises(ValueError, match="max_payload_size"): + await driver.store(StorageDriverStoreContext(), [original]) + assert client.uploads == 1 + + +@pytest.mark.parametrize( + "target_type", [StorageDriverWorkflowInfo, StorageDriverActivityInfo] +) +@pytest.mark.parametrize("size", [1023, 1024, 1025]) +@pytest.mark.parametrize("char", ["x", "日"]) +async def test_object_name_limit( + client: MemoryClient, + target_type: type[StorageDriverWorkflowInfo] | type[StorageDriverActivityInfo], + size: int, + char: str, +) -> None: + original = payload() + digest = hashlib.sha256(original.SerializeToString()).hexdigest() + identity = ( + "wt/Type/wi" if target_type is StorageDriverWorkflowInfo else "at/Type/ai" + ) + prefix = f"v0/ns/ns/{identity}/" + suffix = f"/ri/run/d/sha256/{digest}" + remaining = size - len(prefix) - len(suffix) + count, padding = divmod(remaining, len(char.encode("utf-8"))) + target_id = char * count + "x" * padding + context = StorageDriverStoreContext( + target=target_type(namespace="ns", type="Type", id=target_id, run_id="run") + ) + driver = GCSStorageDriver(client, "bucket") + [claim] = await driver.store(context, [original]) + assert claim.claim_data["object_name"] == ( + f"v0/ns/ns/d/sha256/{digest}" if size > 1024 else f"{prefix}{target_id}{suffix}" + ) + assert await driver.retrieve(StorageDriverRetrieveContext(), [claim]) == [original] + + +async def test_long_object_names_preserve_namespace(client: MemoryClient) -> None: + driver = GCSStorageDriver(client, "bucket") + claims = [] + for namespace in ("first", "second", ""): + [claim] = await driver.store( + StorageDriverStoreContext( + target=StorageDriverWorkflowInfo(namespace=namespace, id="日" * 400) + ), + [payload()], + ) + assert claim.claim_data["object_name"].startswith( + f"v0/ns/{namespace or 'null'}/d/sha256/" + ) + claims.append(claim) + assert len(client.objects) == 3 + assert ( + await driver.retrieve(StorageDriverRetrieveContext(), claims) == [payload()] * 3 + ) + + +@pytest.mark.parametrize( + "field,value", + [("hash_algorithm", "md5"), ("hash_value", ""), ("hash_algorithm", "")], +) +async def test_invalid_hash_claim(client: MemoryClient, field: str, value: str) -> None: + driver = GCSStorageDriver(client, "bucket") + [claim] = await driver.store(StorageDriverStoreContext(), [payload()]) + data = dict(claim.claim_data) + data[field] = value + with pytest.raises(ValueError, match="hash"): + await driver.retrieve( + StorageDriverRetrieveContext(), [StorageDriverClaim(data)] + ) + + +async def test_corruption(client: MemoryClient) -> None: + driver = GCSStorageDriver(client, "bucket") + [claim] = await driver.store(StorageDriverStoreContext(), [payload()]) + client.objects["bucket", claim.claim_data["object_name"]] = b"corrupted" + with pytest.raises(ValueError, match="integrity check failed"): + await driver.retrieve(StorageDriverRetrieveContext(), [claim]) + + +async def test_external_storage_reference_and_threshold(client: MemoryClient) -> None: + driver = GCSStorageDriver(client, "bucket") + storage = ExternalStorage(drivers=[driver], payload_size_threshold=100) + original = payload(b"large" * 100) + assert await storage._store_payload(payload()) == payload() + reference = await storage._store_payload(original) + assert reference.metadata["encoding"] == b"json/protobuf" + assert ( + reference.metadata["messageType"] + == b"temporal.api.sdk.v1.ExternalStorageReference" + ) + assert reference.external_payloads[0].size_bytes == original.ByteSize() + assert await storage._retrieve_payload(reference) == original + + +@pytest.mark.parametrize("operation", ["object_exists", "put_object", "get_object"]) +async def test_provider_error_context(operation: str) -> None: + client = AsyncMock(spec=GCSStorageDriverClient) + client.object_exists.return_value = False + cause = ConnectionError("connection lost") + getattr(client, operation).side_effect = cause + driver = GCSStorageDriver(client, "bucket") + with pytest.raises(RuntimeError, match="bucket=bucket, object_name=") as error: + if operation == "get_object": + await driver.retrieve( + StorageDriverRetrieveContext(), + [ + StorageDriverClaim( + {"bucket": "bucket", "object_name": "object_name"} + ) + ], + ) + else: + await driver.store(StorageDriverStoreContext(), [payload()]) + assert error.value.__cause__ is cause + + +@pytest.mark.parametrize("retrieving", [False, True]) +@pytest.mark.parametrize("cancel_parent", [False, True]) +async def test_batch_cancellation(retrieving: bool, cancel_parent: bool) -> None: + client = AsyncMock(spec=GCSStorageDriverClient) + client.object_exists.return_value = False + both_started = asyncio.Event() + release = asyncio.Event() + started = 0 + cancelled = 0 + + async def transfer(**_kwargs: object) -> None: + nonlocal started, cancelled + started += 1 + index = started + if started == 2: + both_started.set() + try: + await release.wait() + if index == 1: + raise ConnectionError("failed") + await asyncio.Event().wait() + except asyncio.CancelledError: + cancelled += 1 + raise + + client.get_object.side_effect = transfer + client.put_object.side_effect = transfer + driver = GCSStorageDriver(client, "bucket") + task: asyncio.Task[list[Payload]] | asyncio.Task[list[StorageDriverClaim]] + if retrieving: + claim = StorageDriverClaim({"bucket": "bucket", "object_name": "object_name"}) + task = asyncio.create_task( + driver.retrieve(StorageDriverRetrieveContext(), [claim, claim]) + ) + else: + task = asyncio.create_task( + driver.store(StorageDriverStoreContext(), [payload(), payload(b"other")]) + ) + await both_started.wait() + if cancel_parent: + task.cancel() + with pytest.raises(asyncio.CancelledError): + await task + assert cancelled == 2 + else: + release.set() + with pytest.raises(RuntimeError): + await task + assert cancelled == 1 + + +@pytest.mark.parametrize("retrieving", [False, True]) +async def test_concurrent_transfers_preserve_order(retrieving: bool) -> None: + client = AsyncMock(spec=GCSStorageDriverClient) + client.object_exists.return_value = False + originals = [payload(str(i).encode()) for i in range(3)] + futures: list[asyncio.Future[bytes]] = [ + asyncio.get_running_loop().create_future() for _ in originals + ] + started = 0 + all_started = asyncio.Event() + + async def transfer(**_kwargs: object) -> bytes: + nonlocal started + future = futures[started] + started += 1 + if started == len(originals): + all_started.set() + return await future + + client.get_object.side_effect = transfer + client.put_object.side_effect = transfer + driver = GCSStorageDriver(client, "bucket") + claims = [ + StorageDriverClaim( + { + "bucket": "bucket", + "object_name": str(i), + "hash_algorithm": "sha256", + "hash_value": hashlib.sha256(p.SerializeToString()).hexdigest(), + } + ) + for i, p in enumerate(originals) + ] + task: asyncio.Task[list[Payload]] | asyncio.Task[list[StorageDriverClaim]] + if retrieving: + task = asyncio.create_task( + driver.retrieve(StorageDriverRetrieveContext(), claims) + ) + else: + task = asyncio.create_task(driver.store(StorageDriverStoreContext(), originals)) + await all_started.wait() + for i in reversed(range(len(originals))): + futures[i].set_result(originals[i].SerializeToString()) + await asyncio.sleep(0) + if retrieving: + assert await task == originals + else: + for actual, expected in zip(await task, claims, strict=True): + assert isinstance(actual, StorageDriverClaim) + assert actual.claim_data["hash_value"] == expected.claim_data["hash_value"] + + +def response_error(status: int) -> ClientResponseError: + return ClientResponseError(MagicMock(), (), status=status) + + +@pytest.mark.parametrize("status", [None, 404, 403, 500]) +async def test_adapter_object_exists(status: int | None) -> None: + storage = AsyncMock(spec=Storage) + if status: + storage.download_metadata.side_effect = response_error(status) + client = new_gcloud_aio_client(storage) + if status in (403, 500): + with pytest.raises(ClientResponseError): + await client.object_exists(bucket="bucket", object_name="object_name") + else: + assert await client.object_exists( + bucket="bucket", object_name="object_name" + ) is (status is None) + storage.download_metadata.assert_awaited_once_with("bucket", "object_name") + + +@pytest.mark.parametrize("status", [None, 412, 403, 404, 500]) +async def test_adapter_conditional_upload(status: int | None) -> None: + storage = AsyncMock(spec=Storage) + if status: + storage.upload.side_effect = response_error(status) + storage.download_metadata.return_value = {"name": "object_name"} + client = new_gcloud_aio_client(storage) + if status in (403, 404, 500): + with pytest.raises(ClientResponseError): + await client.put_object( + bucket="bucket", object_name="object_name", data=b"data" + ) + else: + await client.put_object( + bucket="bucket", object_name="object_name", data=b"data" + ) + storage.upload.assert_awaited_once_with( + "bucket", + "object_name", + b"data", + content_type="application/octet-stream", + parameters={"ifGenerationMatch": "0"}, + force_resumable_upload=False, + ) + storage.download_metadata.assert_not_awaited() + + +async def test_adapter_download() -> None: + storage = AsyncMock(spec=Storage) + storage.download.return_value = b"\x00\xff" + assert ( + await new_gcloud_aio_client(storage).get_object( + bucket="bucket", object_name="object_name" + ) + == b"\x00\xff" + ) + storage.download.assert_awaited_once_with("bucket", "object_name") diff --git a/tests/contrib/gcp/gcsdriver/test_gcsdriver_integration.py b/tests/contrib/gcp/gcsdriver/test_gcsdriver_integration.py new file mode 100644 index 000000000..30e01d472 --- /dev/null +++ b/tests/contrib/gcp/gcsdriver/test_gcsdriver_integration.py @@ -0,0 +1,179 @@ +"""Driver and worker integration tests using a local GCS emulator.""" + +import asyncio +import dataclasses +import hashlib +import uuid +from datetime import timedelta + +import pytest +from aiohttp import ClientResponseError +from gcloud.aio.storage import Storage + +from temporalio.api.common.v1 import Payload +from temporalio.contrib.gcp.gcsdriver import GCSStorageDriver +from temporalio.contrib.gcp.gcsdriver.gcloud_aio import new_gcloud_aio_client +from temporalio.converter import ( + DataConverter, + ExternalStorage, + StorageDriverClaim, + StorageDriverRetrieveContext, + StorageDriverStoreContext, + StorageDriverWorkflowInfo, +) +from temporalio.testing import WorkflowEnvironment +from tests.contrib.gcp.gcsdriver.workflows import EchoWorkflow, echo_activity +from tests.helpers import new_worker + + +async def test_gcs_adapter_object_operations( + gcs_storage: Storage, gcs_bucket: str +) -> None: + client = new_gcloud_aio_client(gcs_storage) + name = "日本語 café 😀 /%+=" + assert not await client.object_exists(bucket=gcs_bucket, object_name=name) + with pytest.raises(ClientResponseError) as error: + await client.get_object(bucket=gcs_bucket, object_name=name) + assert error.value.status == 404 + await client.put_object(bucket=gcs_bucket, object_name=name, data=b"\x00\xff") + assert await client.object_exists(bucket=gcs_bucket, object_name=name) + assert await client.get_object(bucket=gcs_bucket, object_name=name) == b"\x00\xff" + + +@pytest.mark.parametrize("operation", ["object_exists", "put_object", "get_object"]) +async def test_gcs_adapter_missing_bucket( + gcs_storage: Storage, gcs_bucket: str, operation: str +) -> None: + client = new_gcloud_aio_client(gcs_storage) + missing_bucket = f"{gcs_bucket}-missing" + if operation == "object_exists": + assert not await client.object_exists( + bucket=missing_bucket, object_name="object" + ) + else: + with pytest.raises(ClientResponseError) as error: + if operation == "put_object": + await client.put_object( + bucket=missing_bucket, object_name="object", data=b"data" + ) + else: + await client.get_object(bucket=missing_bucket, object_name="object") + assert error.value.status == 404 + + +async def test_gcs_adapter_concurrent_creation( + gcs_storage: Storage, gcs_bucket: str +) -> None: + client = new_gcloud_aio_client(gcs_storage) + name = "concurrent-object" + candidates = [f"writer-{i}".encode() for i in range(5)] + await asyncio.gather( + *( + client.put_object(bucket=gcs_bucket, object_name=name, data=data) + for data in candidates + ) + ) + stored = await client.get_object(bucket=gcs_bucket, object_name=name) + assert stored in candidates + before = await gcs_storage.download_metadata(gcs_bucket, name) + await client.put_object(bucket=gcs_bucket, object_name=name, data=b"replacement") + after = await gcs_storage.download_metadata(gcs_bucket, name) + assert after["generation"] == before["generation"] + assert await client.get_object(bucket=gcs_bucket, object_name=name) == stored + + +async def test_gcs_retrieve_canonical_claim( + gcs_storage: Storage, gcs_bucket: str +) -> None: + original = Payload(metadata={"encoding": b"binary/plain"}, data=b"external-writer") + data = original.SerializeToString() + name = "existing/日本語 object" + await gcs_storage.upload(gcs_bucket, name, data, force_resumable_upload=False) + claim = StorageDriverClaim( + { + "bucket": gcs_bucket, + "object_name": name, + "hash_algorithm": "sha256", + "hash_value": hashlib.sha256(data).hexdigest(), + } + ) + driver = GCSStorageDriver(new_gcloud_aio_client(gcs_storage), "unused-bucket") + assert await driver.retrieve(StorageDriverRetrieveContext(), [claim]) == [original] + + +async def test_gcs_long_object_name_round_trip( + gcs_storage: Storage, gcs_bucket: str +) -> None: + driver = GCSStorageDriver(new_gcloud_aio_client(gcs_storage), gcs_bucket) + original = Payload(data=b"long-identity") + [claim] = await driver.store( + StorageDriverStoreContext( + target=StorageDriverWorkflowInfo(namespace="ns /%", id="日" * 400) + ), + [original], + ) + assert claim.claim_data["object_name"].startswith("v0/ns/ns %2F%25/d/sha256/") + assert await driver.retrieve(StorageDriverRetrieveContext(), [claim]) == [original] + + +@pytest.mark.parametrize("size", [0, 6 * 1024 * 1024]) +async def test_gcs_emulator_round_trip( + gcs_storage: Storage, gcs_bucket: str, size: int +) -> None: + client = new_gcloud_aio_client(gcs_storage) + driver = GCSStorageDriver(client, gcs_bucket) + original = Payload( + metadata={"encoding": b"binary/plain", "custom": b"\x00\xff"}, data=b"x" * size + ) + context = StorageDriverStoreContext( + target=StorageDriverWorkflowInfo( + namespace="ns", id="日本語 /%+", type="Workflow" + ) + ) + claims = await driver.store(context, [original]) + assert await driver.store(context, [original]) == claims + assert await driver.retrieve(StorageDriverRetrieveContext(), claims) == [original] + object_name = claims[0].claim_data["object_name"] + replacement = b"must not overwrite" + original.data + await asyncio.gather( + client.put_object(bucket=gcs_bucket, object_name=object_name, data=replacement), + client.put_object(bucket=gcs_bucket, object_name=object_name, data=replacement), + ) + assert ( + await client.get_object(bucket=gcs_bucket, object_name=object_name) + == original.SerializeToString() + ) + + +async def test_gcs_workflow_round_trip( + gcs_storage: Storage, gcs_bucket: str, env: WorkflowEnvironment +) -> None: + driver = GCSStorageDriver(new_gcloud_aio_client(gcs_storage), gcs_bucket) + client = await env.connect_client( + data_converter=dataclasses.replace( + DataConverter.default, + external_storage=ExternalStorage( + drivers=[driver], payload_size_threshold=256 + ), + ) + ) + value = "large workflow input 日本語" * 100 + workflow_id = str(uuid.uuid4()) + async with new_worker(client, EchoWorkflow, activities=[echo_activity]) as worker: + assert ( + await client.execute_workflow( + EchoWorkflow.run, + value, + id=workflow_id, + task_queue=worker.task_queue, + execution_timeout=timedelta(seconds=30), + ) + == value + ) + objects = await gcs_storage.list_objects(gcs_bucket) + keys = [item["name"] for item in objects["items"]] + assert len(keys) == 2 + assert all( + f"/wt/EchoWorkflow/wi/{workflow_id}/ri/" in object_name for object_name in keys + ) + assert sum("/ri/null/" in object_name for object_name in keys) == 1 diff --git a/tests/contrib/gcp/gcsdriver/workflows.py b/tests/contrib/gcp/gcsdriver/workflows.py new file mode 100644 index 000000000..7db8ef2af --- /dev/null +++ b/tests/contrib/gcp/gcsdriver/workflows.py @@ -0,0 +1,20 @@ +"""Workflow definitions kept separate from optional GCS client imports.""" + +from datetime import timedelta + +import temporalio.activity +import temporalio.workflow + + +@temporalio.activity.defn +async def echo_activity(value: str) -> str: + return value + + +@temporalio.workflow.defn +class EchoWorkflow: + @temporalio.workflow.run + async def run(self, value: str) -> str: + return await temporalio.workflow.execute_activity( + echo_activity, value, start_to_close_timeout=timedelta(seconds=10) + ) diff --git a/tests/contrib/google_adk_agents/histories/multi_agent.json b/tests/contrib/google_adk_agents/histories/multi_agent.json deleted file mode 100644 index 7323575d9..000000000 --- a/tests/contrib/google_adk_agents/histories/multi_agent.json +++ /dev/null @@ -1,499 +0,0 @@ -{ - "events": [ - { - "eventId": "1", - "eventTime": "2026-01-26T21:08:54.450497Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", - "taskId": "1103693", - "workflowExecutionStartedEventAttributes": { - "workflowType": { - "name": "MultiAgentWorkflow" - }, - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlJ1biBtdWx0LWFnZW50IGZsb3ci" - }, - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "InJlc2VhcmNoX21vZGVsIg==" - } - ] - }, - "workflowTaskTimeout": "10s", - "originalExecutionRunId": "019bfc23-5c32-7791-ae30-aa4b590df541", - "identity": "69823@Tims-MacBook-Pro.local", - "firstExecutionRunId": "019bfc23-5c32-7791-ae30-aa4b590df541", - "attempt": 1, - "firstWorkflowTaskBackoff": "0s", - "workflowId": "multi-agent-workflow-a0d23123-4773-479e-849e-e66e529cd9aa", - "priority": {} - } - }, - { - "eventId": "2", - "eventTime": "2026-01-26T21:08:54.450553Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1103694", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "3", - "eventTime": "2026-01-26T21:08:54.451648Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1103699", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "2", - "identity": "69823@Tims-MacBook-Pro.local", - "requestId": "35fb116a-4647-4936-9f56-688f623a4a1f", - "historySizeBytes": "397", - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - } - } - }, - { - "eventId": "4", - "eventTime": "2026-01-26T21:08:54.511359Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1103703", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "2", - "startedEventId": "3", - "identity": "69823@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - }, - "sdkMetadata": { - "coreUsedFlags": [ - 2, - 3, - 1 - ], - "sdkName": "temporal-python", - "sdkVersion": "1.21.1" - }, - "meteringMetadata": {} - } - }, - { - "eventId": "5", - "eventTime": "2026-01-26T21:08:54.511391Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1103704", - "activityTaskScheduledEventAttributes": { - "activityId": "1", - "activityType": { - "name": "invoke_model" - }, - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": {}, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbCI6InJlc2VhcmNoX21vZGVsIiwiY29udGVudHMiOlt7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjpudWxsLCJmdW5jdGlvblJlc3BvbnNlIjpudWxsLCJpbmxpbmVEYXRhIjpudWxsLCJ0ZXh0IjoiV3JpdGUgYSBoYWlrdSBhYm91dCBSdW4gbXVsdC1hZ2VudCBmbG93LiBGaXJzdCByZXNlYXJjaCBpdCwgdGhlbiB3cml0ZSBpdC4iLCJ0aG91Z2h0IjpudWxsLCJ0aG91Z2h0U2lnbmF0dXJlIjpudWxsLCJ2aWRlb01ldGFkYXRhIjpudWxsfV0sInJvbGUiOiJ1c2VyIn1dLCJjb25maWciOnsiaHR0cE9wdGlvbnMiOm51bGwsInNob3VsZFJldHVybkh0dHBSZXNwb25zZSI6bnVsbCwic3lzdGVtSW5zdHJ1Y3Rpb24iOiJZb3UgYXJlIGEgY29vcmRpbmF0b3IuIERlbGVnYXRlIHRvIHJlc2VhcmNoZXIgdGhlbiB3cml0ZXIuXG5cbllvdSBhcmUgYW4gYWdlbnQuIFlvdXIgaW50ZXJuYWwgbmFtZSBpcyBcImNvb3JkaW5hdG9yXCIuXG5cblxuWW91IGhhdmUgYSBsaXN0IG9mIG90aGVyIGFnZW50cyB0byB0cmFuc2ZlciB0bzpcblxuXG5BZ2VudCBuYW1lOiByZXNlYXJjaGVyXG5BZ2VudCBkZXNjcmlwdGlvbjogXG5cblxuQWdlbnQgbmFtZTogd3JpdGVyXG5BZ2VudCBkZXNjcmlwdGlvbjogXG5cblxuSWYgeW91IGFyZSB0aGUgYmVzdCB0byBhbnN3ZXIgdGhlIHF1ZXN0aW9uIGFjY29yZGluZyB0byB5b3VyIGRlc2NyaXB0aW9uLFxueW91IGNhbiBhbnN3ZXIgaXQuXG5cbklmIGFub3RoZXIgYWdlbnQgaXMgYmV0dGVyIGZvciBhbnN3ZXJpbmcgdGhlIHF1ZXN0aW9uIGFjY29yZGluZyB0byBpdHNcbmRlc2NyaXB0aW9uLCBjYWxsIGB0cmFuc2Zlcl90b19hZ2VudGAgZnVuY3Rpb24gdG8gdHJhbnNmZXIgdGhlIHF1ZXN0aW9uIHRvIHRoYXRcbmFnZW50LiBXaGVuIHRyYW5zZmVycmluZywgZG8gbm90IGdlbmVyYXRlIGFueSB0ZXh0IG90aGVyIHRoYW4gdGhlIGZ1bmN0aW9uXG5jYWxsLlxuXG4qKk5PVEUqKjogdGhlIG9ubHkgYXZhaWxhYmxlIGFnZW50cyBmb3IgYHRyYW5zZmVyX3RvX2FnZW50YCBmdW5jdGlvbiBhcmVcbmByZXNlYXJjaGVyYCwgYHdyaXRlcmAuXG4iLCJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wUCI6bnVsbCwidG9wSyI6bnVsbCwiY2FuZGlkYXRlQ291bnQiOm51bGwsIm1heE91dHB1dFRva2VucyI6bnVsbCwic3RvcFNlcXVlbmNlcyI6bnVsbCwicmVzcG9uc2VMb2dwcm9icyI6bnVsbCwibG9ncHJvYnMiOm51bGwsInByZXNlbmNlUGVuYWx0eSI6bnVsbCwiZnJlcXVlbmN5UGVuYWx0eSI6bnVsbCwic2VlZCI6bnVsbCwicmVzcG9uc2VNaW1lVHlwZSI6bnVsbCwicmVzcG9uc2VTY2hlbWEiOm51bGwsInJlc3BvbnNlSnNvblNjaGVtYSI6bnVsbCwicm91dGluZ0NvbmZpZyI6bnVsbCwibW9kZWxTZWxlY3Rpb25Db25maWciOm51bGwsInNhZmV0eVNldHRpbmdzIjpudWxsLCJ0b29scyI6W3sicmV0cmlldmFsIjpudWxsLCJjb21wdXRlclVzZSI6bnVsbCwiZmlsZVNlYXJjaCI6bnVsbCwiY29kZUV4ZWN1dGlvbiI6bnVsbCwiZW50ZXJwcmlzZVdlYlNlYXJjaCI6bnVsbCwiZnVuY3Rpb25EZWNsYXJhdGlvbnMiOlt7ImRlc2NyaXB0aW9uIjoiVHJhbnNmZXIgdGhlIHF1ZXN0aW9uIHRvIGFub3RoZXIgYWdlbnQuXG5cblRoaXMgdG9vbCBoYW5kcyBvZmYgY29udHJvbCB0byBhbm90aGVyIGFnZW50IHdoZW4gaXQncyBtb3JlIHN1aXRhYmxlIHRvXG5hbnN3ZXIgdGhlIHVzZXIncyBxdWVzdGlvbiBhY2NvcmRpbmcgdG8gdGhlIGFnZW50J3MgZGVzY3JpcHRpb24uXG5cbk5vdGU6XG4gIEZvciBtb3N0IHVzZSBjYXNlcywgeW91IHNob3VsZCB1c2UgVHJhbnNmZXJUb0FnZW50VG9vbCBpbnN0ZWFkIG9mIHRoaXNcbiAgZnVuY3Rpb24gZGlyZWN0bHkuIFRyYW5zZmVyVG9BZ2VudFRvb2wgcHJvdmlkZXMgYWRkaXRpb25hbCBlbnVtIGNvbnN0cmFpbnRzXG4gIHRoYXQgcHJldmVudCBMTE1zIGZyb20gaGFsbHVjaW5hdGluZyBpbnZhbGlkIGFnZW50IG5hbWVzLlxuXG5BcmdzOlxuICBhZ2VudF9uYW1lOiB0aGUgYWdlbnQgbmFtZSB0byB0cmFuc2ZlciB0by5cbiIsIm5hbWUiOiJ0cmFuc2Zlcl90b19hZ2VudCIsInBhcmFtZXRlcnMiOnsiYWRkaXRpb25hbFByb3BlcnRpZXMiOm51bGwsImRlZnMiOm51bGwsInJlZiI6bnVsbCwiYW55T2YiOm51bGwsImRlZmF1bHQiOm51bGwsImRlc2NyaXB0aW9uIjpudWxsLCJlbnVtIjpudWxsLCJleGFtcGxlIjpudWxsLCJmb3JtYXQiOm51bGwsIml0ZW1zIjpudWxsLCJtYXhJdGVtcyI6bnVsbCwibWF4TGVuZ3RoIjpudWxsLCJtYXhQcm9wZXJ0aWVzIjpudWxsLCJtYXhpbXVtIjpudWxsLCJtaW5JdGVtcyI6bnVsbCwibWluTGVuZ3RoIjpudWxsLCJtaW5Qcm9wZXJ0aWVzIjpudWxsLCJtaW5pbXVtIjpudWxsLCJudWxsYWJsZSI6bnVsbCwicGF0dGVybiI6bnVsbCwicHJvcGVydGllcyI6eyJhZ2VudF9uYW1lIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpudWxsLCJkZWZzIjpudWxsLCJyZWYiOm51bGwsImFueU9mIjpudWxsLCJkZWZhdWx0IjpudWxsLCJkZXNjcmlwdGlvbiI6bnVsbCwiZW51bSI6WyJyZXNlYXJjaGVyIiwid3JpdGVyIl0sImV4YW1wbGUiOm51bGwsImZvcm1hdCI6bnVsbCwiaXRlbXMiOm51bGwsIm1heEl0ZW1zIjpudWxsLCJtYXhMZW5ndGgiOm51bGwsIm1heFByb3BlcnRpZXMiOm51bGwsIm1heGltdW0iOm51bGwsIm1pbkl0ZW1zIjpudWxsLCJtaW5MZW5ndGgiOm51bGwsIm1pblByb3BlcnRpZXMiOm51bGwsIm1pbmltdW0iOm51bGwsIm51bGxhYmxlIjpudWxsLCJwYXR0ZXJuIjpudWxsLCJwcm9wZXJ0aWVzIjpudWxsLCJwcm9wZXJ0eU9yZGVyaW5nIjpudWxsLCJyZXF1aXJlZCI6bnVsbCwidGl0bGUiOm51bGwsInR5cGUiOiJTVFJJTkcifX0sInByb3BlcnR5T3JkZXJpbmciOm51bGwsInJlcXVpcmVkIjpbImFnZW50X25hbWUiXSwidGl0bGUiOm51bGwsInR5cGUiOiJPQkpFQ1QifSwicGFyYW1ldGVyc0pzb25TY2hlbWEiOm51bGwsInJlc3BvbnNlIjpudWxsLCJyZXNwb25zZUpzb25TY2hlbWEiOm51bGwsImJlaGF2aW9yIjpudWxsfV0sImdvb2dsZU1hcHMiOm51bGwsImdvb2dsZVNlYXJjaCI6bnVsbCwiZ29vZ2xlU2VhcmNoUmV0cmlldmFsIjpudWxsLCJ1cmxDb250ZXh0IjpudWxsfV0sInRvb2xDb25maWciOm51bGwsImxhYmVscyI6bnVsbCwiY2FjaGVkQ29udGVudCI6bnVsbCwicmVzcG9uc2VNb2RhbGl0aWVzIjpudWxsLCJtZWRpYVJlc29sdXRpb24iOm51bGwsInNwZWVjaENvbmZpZyI6bnVsbCwiYXVkaW9UaW1lc3RhbXAiOm51bGwsImF1dG9tYXRpY0Z1bmN0aW9uQ2FsbGluZyI6bnVsbCwidGhpbmtpbmdDb25maWciOm51bGwsImltYWdlQ29uZmlnIjpudWxsLCJlbmFibGVFbmhhbmNlZENpdmljQW5zd2VycyI6bnVsbCwibW9kZWxBcm1vckNvbmZpZyI6bnVsbH0sImxpdmVfY29ubmVjdF9jb25maWciOnsiaHR0cE9wdGlvbnMiOm51bGwsImdlbmVyYXRpb25Db25maWciOm51bGwsInJlc3BvbnNlTW9kYWxpdGllcyI6bnVsbCwidGVtcGVyYXR1cmUiOm51bGwsInRvcFAiOm51bGwsInRvcEsiOm51bGwsIm1heE91dHB1dFRva2VucyI6bnVsbCwibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJzZWVkIjpudWxsLCJzcGVlY2hDb25maWciOm51bGwsInRoaW5raW5nQ29uZmlnIjpudWxsLCJlbmFibGVBZmZlY3RpdmVEaWFsb2ciOm51bGwsInN5c3RlbUluc3RydWN0aW9uIjpudWxsLCJ0b29scyI6bnVsbCwic2Vzc2lvblJlc3VtcHRpb24iOm51bGwsImlucHV0QXVkaW9UcmFuc2NyaXB0aW9uIjp7fSwib3V0cHV0QXVkaW9UcmFuc2NyaXB0aW9uIjp7fSwicmVhbHRpbWVJbnB1dENvbmZpZyI6bnVsbCwiY29udGV4dFdpbmRvd0NvbXByZXNzaW9uIjpudWxsLCJwcm9hY3Rpdml0eSI6bnVsbCwiZXhwbGljaXRWYWRTaWduYWwiOm51bGx9LCJjYWNoZV9jb25maWciOm51bGwsImNhY2hlX21ldGFkYXRhIjpudWxsLCJjYWNoZWFibGVfY29udGVudHNfdG9rZW5fY291bnQiOm51bGwsInByZXZpb3VzX2ludGVyYWN0aW9uX2lkIjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "0s", - "scheduleToStartTimeout": "0s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "4", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true, - "priority": {} - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "ImNvb3JkaW5hdG9yIg==" - } - } - }, - { - "eventId": "6", - "eventTime": "2026-01-26T21:08:54.512495Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1103710", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "5", - "identity": "69823@Tims-MacBook-Pro.local", - "requestId": "c9cbbe3d-3e1b-4631-b323-7e43ad2b3b11", - "attempt": 1, - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - } - } - }, - { - "eventId": "7", - "eventTime": "2026-01-26T21:08:54.514972Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1103711", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "W3sibW9kZWxWZXJzaW9uIjpudWxsLCJjb250ZW50Ijp7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjp7ImlkIjpudWxsLCJhcmdzIjp7ImFnZW50X25hbWUiOiJyZXNlYXJjaGVyIn0sIm5hbWUiOiJ0cmFuc2Zlcl90b19hZ2VudCIsInBhcnRpYWxBcmdzIjpudWxsLCJ3aWxsQ29udGludWUiOm51bGx9LCJmdW5jdGlvblJlc3BvbnNlIjpudWxsLCJpbmxpbmVEYXRhIjpudWxsLCJ0ZXh0IjpudWxsLCJ0aG91Z2h0IjpudWxsLCJ0aG91Z2h0U2lnbmF0dXJlIjpudWxsLCJ2aWRlb01ldGFkYXRhIjpudWxsfV0sInJvbGUiOiJtb2RlbCJ9LCJncm91bmRpbmdNZXRhZGF0YSI6bnVsbCwicGFydGlhbCI6bnVsbCwidHVybkNvbXBsZXRlIjpudWxsLCJmaW5pc2hSZWFzb24iOm51bGwsImVycm9yQ29kZSI6bnVsbCwiZXJyb3JNZXNzYWdlIjpudWxsLCJpbnRlcnJ1cHRlZCI6bnVsbCwiY3VzdG9tTWV0YWRhdGEiOm51bGwsInVzYWdlTWV0YWRhdGEiOm51bGwsImxpdmVTZXNzaW9uUmVzdW1wdGlvblVwZGF0ZSI6bnVsbCwiaW5wdXRUcmFuc2NyaXB0aW9uIjpudWxsLCJvdXRwdXRUcmFuc2NyaXB0aW9uIjpudWxsLCJhdmdMb2dwcm9icyI6bnVsbCwibG9ncHJvYnNSZXN1bHQiOm51bGwsImNhY2hlTWV0YWRhdGEiOm51bGwsImNpdGF0aW9uTWV0YWRhdGEiOm51bGwsImludGVyYWN0aW9uSWQiOm51bGx9XQ==" - } - ] - }, - "scheduledEventId": "5", - "startedEventId": "6", - "identity": "69823@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "8", - "eventTime": "2026-01-26T21:08:54.514974Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1103712", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "9", - "eventTime": "2026-01-26T21:08:54.515493Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1103715", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "8", - "identity": "69823@Tims-MacBook-Pro.local", - "requestId": "11d5c461-029c-4bd8-aae4-2646fb9c9f2c", - "historySizeBytes": "5961", - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - } - } - }, - { - "eventId": "10", - "eventTime": "2026-01-26T21:08:54.547494Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1103719", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "8", - "startedEventId": "9", - "identity": "69823@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "11", - "eventTime": "2026-01-26T21:08:54.547517Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1103720", - "activityTaskScheduledEventAttributes": { - "activityId": "2", - "activityType": { - "name": "invoke_model" - }, - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": {}, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbCI6InJlc2VhcmNoX21vZGVsIiwiY29udGVudHMiOlt7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjpudWxsLCJmdW5jdGlvblJlc3BvbnNlIjpudWxsLCJpbmxpbmVEYXRhIjpudWxsLCJ0ZXh0IjoiV3JpdGUgYSBoYWlrdSBhYm91dCBSdW4gbXVsdC1hZ2VudCBmbG93LiBGaXJzdCByZXNlYXJjaCBpdCwgdGhlbiB3cml0ZSBpdC4iLCJ0aG91Z2h0IjpudWxsLCJ0aG91Z2h0U2lnbmF0dXJlIjpudWxsLCJ2aWRlb01ldGFkYXRhIjpudWxsfV0sInJvbGUiOiJ1c2VyIn0seyJwYXJ0cyI6W3sibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6IkZvciBjb250ZXh0OiIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9LHsibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6Iltjb29yZGluYXRvcl0gY2FsbGVkIHRvb2wgYHRyYW5zZmVyX3RvX2FnZW50YCB3aXRoIHBhcmFtZXRlcnM6IHsnYWdlbnRfbmFtZSc6ICdyZXNlYXJjaGVyJ30iLCJ0aG91Z2h0IjpudWxsLCJ0aG91Z2h0U2lnbmF0dXJlIjpudWxsLCJ2aWRlb01ldGFkYXRhIjpudWxsfV0sInJvbGUiOiJ1c2VyIn0seyJwYXJ0cyI6W3sibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6IkZvciBjb250ZXh0OiIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9LHsibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6Iltjb29yZGluYXRvcl0gYHRyYW5zZmVyX3RvX2FnZW50YCB0b29sIHJldHVybmVkIHJlc3VsdDogeydyZXN1bHQnOiBOb25lfSIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9XSwicm9sZSI6InVzZXIifV0sImNvbmZpZyI6eyJodHRwT3B0aW9ucyI6bnVsbCwic2hvdWxkUmV0dXJuSHR0cFJlc3BvbnNlIjpudWxsLCJzeXN0ZW1JbnN0cnVjdGlvbiI6IllvdSBhcmUgYSByZXNlYXJjaGVyLiBGaW5kIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0b3BpYy5cblxuWW91IGFyZSBhbiBhZ2VudC4gWW91ciBpbnRlcm5hbCBuYW1lIGlzIFwicmVzZWFyY2hlclwiLlxuXG5cbllvdSBoYXZlIGEgbGlzdCBvZiBvdGhlciBhZ2VudHMgdG8gdHJhbnNmZXIgdG86XG5cblxuQWdlbnQgbmFtZTogY29vcmRpbmF0b3JcbkFnZW50IGRlc2NyaXB0aW9uOiBcblxuXG5BZ2VudCBuYW1lOiB3cml0ZXJcbkFnZW50IGRlc2NyaXB0aW9uOiBcblxuXG5JZiB5b3UgYXJlIHRoZSBiZXN0IHRvIGFuc3dlciB0aGUgcXVlc3Rpb24gYWNjb3JkaW5nIHRvIHlvdXIgZGVzY3JpcHRpb24sXG55b3UgY2FuIGFuc3dlciBpdC5cblxuSWYgYW5vdGhlciBhZ2VudCBpcyBiZXR0ZXIgZm9yIGFuc3dlcmluZyB0aGUgcXVlc3Rpb24gYWNjb3JkaW5nIHRvIGl0c1xuZGVzY3JpcHRpb24sIGNhbGwgYHRyYW5zZmVyX3RvX2FnZW50YCBmdW5jdGlvbiB0byB0cmFuc2ZlciB0aGUgcXVlc3Rpb24gdG8gdGhhdFxuYWdlbnQuIFdoZW4gdHJhbnNmZXJyaW5nLCBkbyBub3QgZ2VuZXJhdGUgYW55IHRleHQgb3RoZXIgdGhhbiB0aGUgZnVuY3Rpb25cbmNhbGwuXG5cbioqTk9URSoqOiB0aGUgb25seSBhdmFpbGFibGUgYWdlbnRzIGZvciBgdHJhbnNmZXJfdG9fYWdlbnRgIGZ1bmN0aW9uIGFyZVxuYGNvb3JkaW5hdG9yYCwgYHdyaXRlcmAuXG5cbklmIG5laXRoZXIgeW91IG5vciB0aGUgb3RoZXIgYWdlbnRzIGFyZSBiZXN0IGZvciB0aGUgcXVlc3Rpb24sIHRyYW5zZmVyIHRvIHlvdXIgcGFyZW50IGFnZW50IGNvb3JkaW5hdG9yLlxuIiwidGVtcGVyYXR1cmUiOm51bGwsInRvcFAiOm51bGwsInRvcEsiOm51bGwsImNhbmRpZGF0ZUNvdW50IjpudWxsLCJtYXhPdXRwdXRUb2tlbnMiOm51bGwsInN0b3BTZXF1ZW5jZXMiOm51bGwsInJlc3BvbnNlTG9ncHJvYnMiOm51bGwsImxvZ3Byb2JzIjpudWxsLCJwcmVzZW5jZVBlbmFsdHkiOm51bGwsImZyZXF1ZW5jeVBlbmFsdHkiOm51bGwsInNlZWQiOm51bGwsInJlc3BvbnNlTWltZVR5cGUiOm51bGwsInJlc3BvbnNlU2NoZW1hIjpudWxsLCJyZXNwb25zZUpzb25TY2hlbWEiOm51bGwsInJvdXRpbmdDb25maWciOm51bGwsIm1vZGVsU2VsZWN0aW9uQ29uZmlnIjpudWxsLCJzYWZldHlTZXR0aW5ncyI6bnVsbCwidG9vbHMiOlt7InJldHJpZXZhbCI6bnVsbCwiY29tcHV0ZXJVc2UiOm51bGwsImZpbGVTZWFyY2giOm51bGwsImNvZGVFeGVjdXRpb24iOm51bGwsImVudGVycHJpc2VXZWJTZWFyY2giOm51bGwsImZ1bmN0aW9uRGVjbGFyYXRpb25zIjpbeyJkZXNjcmlwdGlvbiI6IlRyYW5zZmVyIHRoZSBxdWVzdGlvbiB0byBhbm90aGVyIGFnZW50LlxuXG5UaGlzIHRvb2wgaGFuZHMgb2ZmIGNvbnRyb2wgdG8gYW5vdGhlciBhZ2VudCB3aGVuIGl0J3MgbW9yZSBzdWl0YWJsZSB0b1xuYW5zd2VyIHRoZSB1c2VyJ3MgcXVlc3Rpb24gYWNjb3JkaW5nIHRvIHRoZSBhZ2VudCdzIGRlc2NyaXB0aW9uLlxuXG5Ob3RlOlxuICBGb3IgbW9zdCB1c2UgY2FzZXMsIHlvdSBzaG91bGQgdXNlIFRyYW5zZmVyVG9BZ2VudFRvb2wgaW5zdGVhZCBvZiB0aGlzXG4gIGZ1bmN0aW9uIGRpcmVjdGx5LiBUcmFuc2ZlclRvQWdlbnRUb29sIHByb3ZpZGVzIGFkZGl0aW9uYWwgZW51bSBjb25zdHJhaW50c1xuICB0aGF0IHByZXZlbnQgTExNcyBmcm9tIGhhbGx1Y2luYXRpbmcgaW52YWxpZCBhZ2VudCBuYW1lcy5cblxuQXJnczpcbiAgYWdlbnRfbmFtZTogdGhlIGFnZW50IG5hbWUgdG8gdHJhbnNmZXIgdG8uXG4iLCJuYW1lIjoidHJhbnNmZXJfdG9fYWdlbnQiLCJwYXJhbWV0ZXJzIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpudWxsLCJkZWZzIjpudWxsLCJyZWYiOm51bGwsImFueU9mIjpudWxsLCJkZWZhdWx0IjpudWxsLCJkZXNjcmlwdGlvbiI6bnVsbCwiZW51bSI6bnVsbCwiZXhhbXBsZSI6bnVsbCwiZm9ybWF0IjpudWxsLCJpdGVtcyI6bnVsbCwibWF4SXRlbXMiOm51bGwsIm1heExlbmd0aCI6bnVsbCwibWF4UHJvcGVydGllcyI6bnVsbCwibWF4aW11bSI6bnVsbCwibWluSXRlbXMiOm51bGwsIm1pbkxlbmd0aCI6bnVsbCwibWluUHJvcGVydGllcyI6bnVsbCwibWluaW11bSI6bnVsbCwibnVsbGFibGUiOm51bGwsInBhdHRlcm4iOm51bGwsInByb3BlcnRpZXMiOnsiYWdlbnRfbmFtZSI6eyJhZGRpdGlvbmFsUHJvcGVydGllcyI6bnVsbCwiZGVmcyI6bnVsbCwicmVmIjpudWxsLCJhbnlPZiI6bnVsbCwiZGVmYXVsdCI6bnVsbCwiZGVzY3JpcHRpb24iOm51bGwsImVudW0iOlsiY29vcmRpbmF0b3IiLCJ3cml0ZXIiXSwiZXhhbXBsZSI6bnVsbCwiZm9ybWF0IjpudWxsLCJpdGVtcyI6bnVsbCwibWF4SXRlbXMiOm51bGwsIm1heExlbmd0aCI6bnVsbCwibWF4UHJvcGVydGllcyI6bnVsbCwibWF4aW11bSI6bnVsbCwibWluSXRlbXMiOm51bGwsIm1pbkxlbmd0aCI6bnVsbCwibWluUHJvcGVydGllcyI6bnVsbCwibWluaW11bSI6bnVsbCwibnVsbGFibGUiOm51bGwsInBhdHRlcm4iOm51bGwsInByb3BlcnRpZXMiOm51bGwsInByb3BlcnR5T3JkZXJpbmciOm51bGwsInJlcXVpcmVkIjpudWxsLCJ0aXRsZSI6bnVsbCwidHlwZSI6IlNUUklORyJ9fSwicHJvcGVydHlPcmRlcmluZyI6bnVsbCwicmVxdWlyZWQiOlsiYWdlbnRfbmFtZSJdLCJ0aXRsZSI6bnVsbCwidHlwZSI6Ik9CSkVDVCJ9LCJwYXJhbWV0ZXJzSnNvblNjaGVtYSI6bnVsbCwicmVzcG9uc2UiOm51bGwsInJlc3BvbnNlSnNvblNjaGVtYSI6bnVsbCwiYmVoYXZpb3IiOm51bGx9XSwiZ29vZ2xlTWFwcyI6bnVsbCwiZ29vZ2xlU2VhcmNoIjpudWxsLCJnb29nbGVTZWFyY2hSZXRyaWV2YWwiOm51bGwsInVybENvbnRleHQiOm51bGx9XSwidG9vbENvbmZpZyI6bnVsbCwibGFiZWxzIjpudWxsLCJjYWNoZWRDb250ZW50IjpudWxsLCJyZXNwb25zZU1vZGFsaXRpZXMiOm51bGwsIm1lZGlhUmVzb2x1dGlvbiI6bnVsbCwic3BlZWNoQ29uZmlnIjpudWxsLCJhdWRpb1RpbWVzdGFtcCI6bnVsbCwiYXV0b21hdGljRnVuY3Rpb25DYWxsaW5nIjpudWxsLCJ0aGlua2luZ0NvbmZpZyI6bnVsbCwiaW1hZ2VDb25maWciOm51bGwsImVuYWJsZUVuaGFuY2VkQ2l2aWNBbnN3ZXJzIjpudWxsLCJtb2RlbEFybW9yQ29uZmlnIjpudWxsfSwibGl2ZV9jb25uZWN0X2NvbmZpZyI6eyJodHRwT3B0aW9ucyI6bnVsbCwiZ2VuZXJhdGlvbkNvbmZpZyI6bnVsbCwicmVzcG9uc2VNb2RhbGl0aWVzIjpudWxsLCJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wUCI6bnVsbCwidG9wSyI6bnVsbCwibWF4T3V0cHV0VG9rZW5zIjpudWxsLCJtZWRpYVJlc29sdXRpb24iOm51bGwsInNlZWQiOm51bGwsInNwZWVjaENvbmZpZyI6bnVsbCwidGhpbmtpbmdDb25maWciOm51bGwsImVuYWJsZUFmZmVjdGl2ZURpYWxvZyI6bnVsbCwic3lzdGVtSW5zdHJ1Y3Rpb24iOm51bGwsInRvb2xzIjpudWxsLCJzZXNzaW9uUmVzdW1wdGlvbiI6bnVsbCwiaW5wdXRBdWRpb1RyYW5zY3JpcHRpb24iOnt9LCJvdXRwdXRBdWRpb1RyYW5zY3JpcHRpb24iOnt9LCJyZWFsdGltZUlucHV0Q29uZmlnIjpudWxsLCJjb250ZXh0V2luZG93Q29tcHJlc3Npb24iOm51bGwsInByb2FjdGl2aXR5IjpudWxsLCJleHBsaWNpdFZhZFNpZ25hbCI6bnVsbH0sImNhY2hlX2NvbmZpZyI6bnVsbCwiY2FjaGVfbWV0YWRhdGEiOm51bGwsImNhY2hlYWJsZV9jb250ZW50c190b2tlbl9jb3VudCI6bnVsbCwicHJldmlvdXNfaW50ZXJhY3Rpb25faWQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "0s", - "scheduleToStartTimeout": "0s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true, - "priority": {} - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "InJlc2VhcmNoZXIi" - } - } - }, - { - "eventId": "12", - "eventTime": "2026-01-26T21:08:54.548338Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1103725", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "11", - "identity": "69823@Tims-MacBook-Pro.local", - "requestId": "99a0aa4a-e3b2-4e6a-bd2a-85ab2814b094", - "attempt": 1, - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - } - } - }, - { - "eventId": "13", - "eventTime": "2026-01-26T21:08:54.550067Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1103726", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "W3sibW9kZWxWZXJzaW9uIjpudWxsLCJjb250ZW50Ijp7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjp7ImlkIjpudWxsLCJhcmdzIjp7ImFnZW50X25hbWUiOiJ3cml0ZXIifSwibmFtZSI6InRyYW5zZmVyX3RvX2FnZW50IiwicGFydGlhbEFyZ3MiOm51bGwsIndpbGxDb250aW51ZSI6bnVsbH0sImZ1bmN0aW9uUmVzcG9uc2UiOm51bGwsImlubGluZURhdGEiOm51bGwsInRleHQiOm51bGwsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9XSwicm9sZSI6Im1vZGVsIn0sImdyb3VuZGluZ01ldGFkYXRhIjpudWxsLCJwYXJ0aWFsIjpudWxsLCJ0dXJuQ29tcGxldGUiOm51bGwsImZpbmlzaFJlYXNvbiI6bnVsbCwiZXJyb3JDb2RlIjpudWxsLCJlcnJvck1lc3NhZ2UiOm51bGwsImludGVycnVwdGVkIjpudWxsLCJjdXN0b21NZXRhZGF0YSI6bnVsbCwidXNhZ2VNZXRhZGF0YSI6bnVsbCwibGl2ZVNlc3Npb25SZXN1bXB0aW9uVXBkYXRlIjpudWxsLCJpbnB1dFRyYW5zY3JpcHRpb24iOm51bGwsIm91dHB1dFRyYW5zY3JpcHRpb24iOm51bGwsImF2Z0xvZ3Byb2JzIjpudWxsLCJsb2dwcm9ic1Jlc3VsdCI6bnVsbCwiY2FjaGVNZXRhZGF0YSI6bnVsbCwiY2l0YXRpb25NZXRhZGF0YSI6bnVsbCwiaW50ZXJhY3Rpb25JZCI6bnVsbH1d" - } - ] - }, - "scheduledEventId": "11", - "startedEventId": "12", - "identity": "69823@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "14", - "eventTime": "2026-01-26T21:08:54.550070Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1103727", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "15", - "eventTime": "2026-01-26T21:08:54.550644Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1103730", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "14", - "identity": "69823@Tims-MacBook-Pro.local", - "requestId": "3bfc29c0-857f-460b-aafa-19e6e1667dad", - "historySizeBytes": "12724", - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - } - } - }, - { - "eventId": "16", - "eventTime": "2026-01-26T21:08:54.582213Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1103734", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "14", - "startedEventId": "15", - "identity": "69823@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "17", - "eventTime": "2026-01-26T21:08:54.582242Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1103735", - "activityTaskScheduledEventAttributes": { - "activityId": "3", - "activityType": { - "name": "invoke_model" - }, - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": {}, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbCI6InJlc2VhcmNoX21vZGVsIiwiY29udGVudHMiOlt7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjpudWxsLCJmdW5jdGlvblJlc3BvbnNlIjpudWxsLCJpbmxpbmVEYXRhIjpudWxsLCJ0ZXh0IjoiV3JpdGUgYSBoYWlrdSBhYm91dCBSdW4gbXVsdC1hZ2VudCBmbG93LiBGaXJzdCByZXNlYXJjaCBpdCwgdGhlbiB3cml0ZSBpdC4iLCJ0aG91Z2h0IjpudWxsLCJ0aG91Z2h0U2lnbmF0dXJlIjpudWxsLCJ2aWRlb01ldGFkYXRhIjpudWxsfV0sInJvbGUiOiJ1c2VyIn0seyJwYXJ0cyI6W3sibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6IkZvciBjb250ZXh0OiIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9LHsibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6Iltjb29yZGluYXRvcl0gY2FsbGVkIHRvb2wgYHRyYW5zZmVyX3RvX2FnZW50YCB3aXRoIHBhcmFtZXRlcnM6IHsnYWdlbnRfbmFtZSc6ICdyZXNlYXJjaGVyJ30iLCJ0aG91Z2h0IjpudWxsLCJ0aG91Z2h0U2lnbmF0dXJlIjpudWxsLCJ2aWRlb01ldGFkYXRhIjpudWxsfV0sInJvbGUiOiJ1c2VyIn0seyJwYXJ0cyI6W3sibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6IkZvciBjb250ZXh0OiIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9LHsibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6Iltjb29yZGluYXRvcl0gYHRyYW5zZmVyX3RvX2FnZW50YCB0b29sIHJldHVybmVkIHJlc3VsdDogeydyZXN1bHQnOiBOb25lfSIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9XSwicm9sZSI6InVzZXIifSx7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjpudWxsLCJmdW5jdGlvblJlc3BvbnNlIjpudWxsLCJpbmxpbmVEYXRhIjpudWxsLCJ0ZXh0IjoiRm9yIGNvbnRleHQ6IiwidGhvdWdodCI6bnVsbCwidGhvdWdodFNpZ25hdHVyZSI6bnVsbCwidmlkZW9NZXRhZGF0YSI6bnVsbH0seyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjpudWxsLCJmdW5jdGlvblJlc3BvbnNlIjpudWxsLCJpbmxpbmVEYXRhIjpudWxsLCJ0ZXh0IjoiW3Jlc2VhcmNoZXJdIGNhbGxlZCB0b29sIGB0cmFuc2Zlcl90b19hZ2VudGAgd2l0aCBwYXJhbWV0ZXJzOiB7J2FnZW50X25hbWUnOiAnd3JpdGVyJ30iLCJ0aG91Z2h0IjpudWxsLCJ0aG91Z2h0U2lnbmF0dXJlIjpudWxsLCJ2aWRlb01ldGFkYXRhIjpudWxsfV0sInJvbGUiOiJ1c2VyIn0seyJwYXJ0cyI6W3sibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6IkZvciBjb250ZXh0OiIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9LHsibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJjb2RlRXhlY3V0aW9uUmVzdWx0IjpudWxsLCJleGVjdXRhYmxlQ29kZSI6bnVsbCwiZmlsZURhdGEiOm51bGwsImZ1bmN0aW9uQ2FsbCI6bnVsbCwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6IltyZXNlYXJjaGVyXSBgdHJhbnNmZXJfdG9fYWdlbnRgIHRvb2wgcmV0dXJuZWQgcmVzdWx0OiB7J3Jlc3VsdCc6IE5vbmV9IiwidGhvdWdodCI6bnVsbCwidGhvdWdodFNpZ25hdHVyZSI6bnVsbCwidmlkZW9NZXRhZGF0YSI6bnVsbH1dLCJyb2xlIjoidXNlciJ9XSwiY29uZmlnIjp7Imh0dHBPcHRpb25zIjpudWxsLCJzaG91bGRSZXR1cm5IdHRwUmVzcG9uc2UiOm51bGwsInN5c3RlbUluc3RydWN0aW9uIjoiWW91IGFyZSBhIHBvZXQuIFdyaXRlIGEgaGFpa3UgYmFzZWQgb24gdGhlIHJlc2VhcmNoLlxuXG5Zb3UgYXJlIGFuIGFnZW50LiBZb3VyIGludGVybmFsIG5hbWUgaXMgXCJ3cml0ZXJcIi5cblxuXG5Zb3UgaGF2ZSBhIGxpc3Qgb2Ygb3RoZXIgYWdlbnRzIHRvIHRyYW5zZmVyIHRvOlxuXG5cbkFnZW50IG5hbWU6IGNvb3JkaW5hdG9yXG5BZ2VudCBkZXNjcmlwdGlvbjogXG5cblxuQWdlbnQgbmFtZTogcmVzZWFyY2hlclxuQWdlbnQgZGVzY3JpcHRpb246IFxuXG5cbklmIHlvdSBhcmUgdGhlIGJlc3QgdG8gYW5zd2VyIHRoZSBxdWVzdGlvbiBhY2NvcmRpbmcgdG8geW91ciBkZXNjcmlwdGlvbixcbnlvdSBjYW4gYW5zd2VyIGl0LlxuXG5JZiBhbm90aGVyIGFnZW50IGlzIGJldHRlciBmb3IgYW5zd2VyaW5nIHRoZSBxdWVzdGlvbiBhY2NvcmRpbmcgdG8gaXRzXG5kZXNjcmlwdGlvbiwgY2FsbCBgdHJhbnNmZXJfdG9fYWdlbnRgIGZ1bmN0aW9uIHRvIHRyYW5zZmVyIHRoZSBxdWVzdGlvbiB0byB0aGF0XG5hZ2VudC4gV2hlbiB0cmFuc2ZlcnJpbmcsIGRvIG5vdCBnZW5lcmF0ZSBhbnkgdGV4dCBvdGhlciB0aGFuIHRoZSBmdW5jdGlvblxuY2FsbC5cblxuKipOT1RFKio6IHRoZSBvbmx5IGF2YWlsYWJsZSBhZ2VudHMgZm9yIGB0cmFuc2Zlcl90b19hZ2VudGAgZnVuY3Rpb24gYXJlXG5gY29vcmRpbmF0b3JgLCBgcmVzZWFyY2hlcmAuXG5cbklmIG5laXRoZXIgeW91IG5vciB0aGUgb3RoZXIgYWdlbnRzIGFyZSBiZXN0IGZvciB0aGUgcXVlc3Rpb24sIHRyYW5zZmVyIHRvIHlvdXIgcGFyZW50IGFnZW50IGNvb3JkaW5hdG9yLlxuIiwidGVtcGVyYXR1cmUiOm51bGwsInRvcFAiOm51bGwsInRvcEsiOm51bGwsImNhbmRpZGF0ZUNvdW50IjpudWxsLCJtYXhPdXRwdXRUb2tlbnMiOm51bGwsInN0b3BTZXF1ZW5jZXMiOm51bGwsInJlc3BvbnNlTG9ncHJvYnMiOm51bGwsImxvZ3Byb2JzIjpudWxsLCJwcmVzZW5jZVBlbmFsdHkiOm51bGwsImZyZXF1ZW5jeVBlbmFsdHkiOm51bGwsInNlZWQiOm51bGwsInJlc3BvbnNlTWltZVR5cGUiOm51bGwsInJlc3BvbnNlU2NoZW1hIjpudWxsLCJyZXNwb25zZUpzb25TY2hlbWEiOm51bGwsInJvdXRpbmdDb25maWciOm51bGwsIm1vZGVsU2VsZWN0aW9uQ29uZmlnIjpudWxsLCJzYWZldHlTZXR0aW5ncyI6bnVsbCwidG9vbHMiOlt7InJldHJpZXZhbCI6bnVsbCwiY29tcHV0ZXJVc2UiOm51bGwsImZpbGVTZWFyY2giOm51bGwsImNvZGVFeGVjdXRpb24iOm51bGwsImVudGVycHJpc2VXZWJTZWFyY2giOm51bGwsImZ1bmN0aW9uRGVjbGFyYXRpb25zIjpbeyJkZXNjcmlwdGlvbiI6IlRyYW5zZmVyIHRoZSBxdWVzdGlvbiB0byBhbm90aGVyIGFnZW50LlxuXG5UaGlzIHRvb2wgaGFuZHMgb2ZmIGNvbnRyb2wgdG8gYW5vdGhlciBhZ2VudCB3aGVuIGl0J3MgbW9yZSBzdWl0YWJsZSB0b1xuYW5zd2VyIHRoZSB1c2VyJ3MgcXVlc3Rpb24gYWNjb3JkaW5nIHRvIHRoZSBhZ2VudCdzIGRlc2NyaXB0aW9uLlxuXG5Ob3RlOlxuICBGb3IgbW9zdCB1c2UgY2FzZXMsIHlvdSBzaG91bGQgdXNlIFRyYW5zZmVyVG9BZ2VudFRvb2wgaW5zdGVhZCBvZiB0aGlzXG4gIGZ1bmN0aW9uIGRpcmVjdGx5LiBUcmFuc2ZlclRvQWdlbnRUb29sIHByb3ZpZGVzIGFkZGl0aW9uYWwgZW51bSBjb25zdHJhaW50c1xuICB0aGF0IHByZXZlbnQgTExNcyBmcm9tIGhhbGx1Y2luYXRpbmcgaW52YWxpZCBhZ2VudCBuYW1lcy5cblxuQXJnczpcbiAgYWdlbnRfbmFtZTogdGhlIGFnZW50IG5hbWUgdG8gdHJhbnNmZXIgdG8uXG4iLCJuYW1lIjoidHJhbnNmZXJfdG9fYWdlbnQiLCJwYXJhbWV0ZXJzIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpudWxsLCJkZWZzIjpudWxsLCJyZWYiOm51bGwsImFueU9mIjpudWxsLCJkZWZhdWx0IjpudWxsLCJkZXNjcmlwdGlvbiI6bnVsbCwiZW51bSI6bnVsbCwiZXhhbXBsZSI6bnVsbCwiZm9ybWF0IjpudWxsLCJpdGVtcyI6bnVsbCwibWF4SXRlbXMiOm51bGwsIm1heExlbmd0aCI6bnVsbCwibWF4UHJvcGVydGllcyI6bnVsbCwibWF4aW11bSI6bnVsbCwibWluSXRlbXMiOm51bGwsIm1pbkxlbmd0aCI6bnVsbCwibWluUHJvcGVydGllcyI6bnVsbCwibWluaW11bSI6bnVsbCwibnVsbGFibGUiOm51bGwsInBhdHRlcm4iOm51bGwsInByb3BlcnRpZXMiOnsiYWdlbnRfbmFtZSI6eyJhZGRpdGlvbmFsUHJvcGVydGllcyI6bnVsbCwiZGVmcyI6bnVsbCwicmVmIjpudWxsLCJhbnlPZiI6bnVsbCwiZGVmYXVsdCI6bnVsbCwiZGVzY3JpcHRpb24iOm51bGwsImVudW0iOlsiY29vcmRpbmF0b3IiLCJyZXNlYXJjaGVyIl0sImV4YW1wbGUiOm51bGwsImZvcm1hdCI6bnVsbCwiaXRlbXMiOm51bGwsIm1heEl0ZW1zIjpudWxsLCJtYXhMZW5ndGgiOm51bGwsIm1heFByb3BlcnRpZXMiOm51bGwsIm1heGltdW0iOm51bGwsIm1pbkl0ZW1zIjpudWxsLCJtaW5MZW5ndGgiOm51bGwsIm1pblByb3BlcnRpZXMiOm51bGwsIm1pbmltdW0iOm51bGwsIm51bGxhYmxlIjpudWxsLCJwYXR0ZXJuIjpudWxsLCJwcm9wZXJ0aWVzIjpudWxsLCJwcm9wZXJ0eU9yZGVyaW5nIjpudWxsLCJyZXF1aXJlZCI6bnVsbCwidGl0bGUiOm51bGwsInR5cGUiOiJTVFJJTkcifX0sInByb3BlcnR5T3JkZXJpbmciOm51bGwsInJlcXVpcmVkIjpbImFnZW50X25hbWUiXSwidGl0bGUiOm51bGwsInR5cGUiOiJPQkpFQ1QifSwicGFyYW1ldGVyc0pzb25TY2hlbWEiOm51bGwsInJlc3BvbnNlIjpudWxsLCJyZXNwb25zZUpzb25TY2hlbWEiOm51bGwsImJlaGF2aW9yIjpudWxsfV0sImdvb2dsZU1hcHMiOm51bGwsImdvb2dsZVNlYXJjaCI6bnVsbCwiZ29vZ2xlU2VhcmNoUmV0cmlldmFsIjpudWxsLCJ1cmxDb250ZXh0IjpudWxsfV0sInRvb2xDb25maWciOm51bGwsImxhYmVscyI6bnVsbCwiY2FjaGVkQ29udGVudCI6bnVsbCwicmVzcG9uc2VNb2RhbGl0aWVzIjpudWxsLCJtZWRpYVJlc29sdXRpb24iOm51bGwsInNwZWVjaENvbmZpZyI6bnVsbCwiYXVkaW9UaW1lc3RhbXAiOm51bGwsImF1dG9tYXRpY0Z1bmN0aW9uQ2FsbGluZyI6bnVsbCwidGhpbmtpbmdDb25maWciOm51bGwsImltYWdlQ29uZmlnIjpudWxsLCJlbmFibGVFbmhhbmNlZENpdmljQW5zd2VycyI6bnVsbCwibW9kZWxBcm1vckNvbmZpZyI6bnVsbH0sImxpdmVfY29ubmVjdF9jb25maWciOnsiaHR0cE9wdGlvbnMiOm51bGwsImdlbmVyYXRpb25Db25maWciOm51bGwsInJlc3BvbnNlTW9kYWxpdGllcyI6bnVsbCwidGVtcGVyYXR1cmUiOm51bGwsInRvcFAiOm51bGwsInRvcEsiOm51bGwsIm1heE91dHB1dFRva2VucyI6bnVsbCwibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJzZWVkIjpudWxsLCJzcGVlY2hDb25maWciOm51bGwsInRoaW5raW5nQ29uZmlnIjpudWxsLCJlbmFibGVBZmZlY3RpdmVEaWFsb2ciOm51bGwsInN5c3RlbUluc3RydWN0aW9uIjpudWxsLCJ0b29scyI6bnVsbCwic2Vzc2lvblJlc3VtcHRpb24iOm51bGwsImlucHV0QXVkaW9UcmFuc2NyaXB0aW9uIjp7fSwib3V0cHV0QXVkaW9UcmFuc2NyaXB0aW9uIjp7fSwicmVhbHRpbWVJbnB1dENvbmZpZyI6bnVsbCwiY29udGV4dFdpbmRvd0NvbXByZXNzaW9uIjpudWxsLCJwcm9hY3Rpdml0eSI6bnVsbCwiZXhwbGljaXRWYWRTaWduYWwiOm51bGx9LCJjYWNoZV9jb25maWciOm51bGwsImNhY2hlX21ldGFkYXRhIjpudWxsLCJjYWNoZWFibGVfY29udGVudHNfdG9rZW5fY291bnQiOm51bGwsInByZXZpb3VzX2ludGVyYWN0aW9uX2lkIjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "0s", - "scheduleToStartTimeout": "0s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "16", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true, - "priority": {} - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IndyaXRlciI=" - } - } - }, - { - "eventId": "18", - "eventTime": "2026-01-26T21:08:54.583085Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1103740", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "17", - "identity": "69823@Tims-MacBook-Pro.local", - "requestId": "a880f966-0e32-4c24-a531-ae7a427847b5", - "attempt": 1, - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - } - } - }, - { - "eventId": "19", - "eventTime": "2026-01-26T21:08:54.584874Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1103741", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "W3sibW9kZWxWZXJzaW9uIjpudWxsLCJjb250ZW50Ijp7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjpudWxsLCJmdW5jdGlvblJlc3BvbnNlIjpudWxsLCJpbmxpbmVEYXRhIjpudWxsLCJ0ZXh0IjoiaGFpa3UiLCJ0aG91Z2h0IjpudWxsLCJ0aG91Z2h0U2lnbmF0dXJlIjpudWxsLCJ2aWRlb01ldGFkYXRhIjpudWxsfV0sInJvbGUiOiJtb2RlbCJ9LCJncm91bmRpbmdNZXRhZGF0YSI6bnVsbCwicGFydGlhbCI6bnVsbCwidHVybkNvbXBsZXRlIjpudWxsLCJmaW5pc2hSZWFzb24iOm51bGwsImVycm9yQ29kZSI6bnVsbCwiZXJyb3JNZXNzYWdlIjpudWxsLCJpbnRlcnJ1cHRlZCI6bnVsbCwiY3VzdG9tTWV0YWRhdGEiOm51bGwsInVzYWdlTWV0YWRhdGEiOm51bGwsImxpdmVTZXNzaW9uUmVzdW1wdGlvblVwZGF0ZSI6bnVsbCwiaW5wdXRUcmFuc2NyaXB0aW9uIjpudWxsLCJvdXRwdXRUcmFuc2NyaXB0aW9uIjpudWxsLCJhdmdMb2dwcm9icyI6bnVsbCwibG9ncHJvYnNSZXN1bHQiOm51bGwsImNhY2hlTWV0YWRhdGEiOm51bGwsImNpdGF0aW9uTWV0YWRhdGEiOm51bGwsImludGVyYWN0aW9uSWQiOm51bGx9XQ==" - } - ] - }, - "scheduledEventId": "17", - "startedEventId": "18", - "identity": "69823@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "20", - "eventTime": "2026-01-26T21:08:54.584876Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1103742", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "21", - "eventTime": "2026-01-26T21:08:54.585780Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1103745", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "20", - "identity": "69823@Tims-MacBook-Pro.local", - "requestId": "5a954014-8c9b-4759-a859-6785b3d33967", - "historySizeBytes": "20508", - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - } - } - }, - { - "eventId": "22", - "eventTime": "2026-01-26T21:08:54.617825Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1103749", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "20", - "startedEventId": "21", - "identity": "69823@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "2f45d1deb022376ac8b03fdcb17f8e5c" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "23", - "eventTime": "2026-01-26T21:08:54.617846Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", - "taskId": "1103750", - "workflowExecutionCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "ImhhaWt1Ig==" - } - ] - }, - "workflowTaskCompletedEventId": "22" - } - } - ] -} \ No newline at end of file diff --git a/tests/contrib/google_adk_agents/histories/single_agent.json b/tests/contrib/google_adk_agents/histories/single_agent.json deleted file mode 100644 index c6eb1f45a..000000000 --- a/tests/contrib/google_adk_agents/histories/single_agent.json +++ /dev/null @@ -1,491 +0,0 @@ -{ - "events": [ - { - "eventId": "1", - "eventTime": "2026-01-26T21:11:30.080188Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", - "taskId": "1104115", - "workflowExecutionStartedEventAttributes": { - "workflowType": { - "name": "WeatherAgent" - }, - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IldoYXQgaXMgdGhlIHdlYXRoZXIgaW4gTmV3IFlvcms/Ig==" - }, - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IndlYXRoZXJfbW9kZWwi" - } - ] - }, - "workflowTaskTimeout": "10s", - "originalExecutionRunId": "019bfc25-bc20-72da-8597-e94f48dc9057", - "identity": "70127@Tims-MacBook-Pro.local", - "firstExecutionRunId": "019bfc25-bc20-72da-8597-e94f48dc9057", - "attempt": 1, - "firstWorkflowTaskBackoff": "0s", - "workflowId": "weather-agent-workflow-b9d42dfd-2318-45d8-b952-650a79362a09", - "priority": {} - } - }, - { - "eventId": "2", - "eventTime": "2026-01-26T21:11:30.083361Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1104116", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "3", - "eventTime": "2026-01-26T21:11:30.094782Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1104121", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "2", - "identity": "70127@Tims-MacBook-Pro.local", - "requestId": "e605155e-5b3a-4a72-b539-e53710562fae", - "historySizeBytes": "403", - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - } - } - }, - { - "eventId": "4", - "eventTime": "2026-01-26T21:11:30.184056Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1104125", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "2", - "startedEventId": "3", - "identity": "70127@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - }, - "sdkMetadata": { - "coreUsedFlags": [ - 3, - 2, - 1 - ], - "sdkName": "temporal-python", - "sdkVersion": "1.21.1" - }, - "meteringMetadata": {} - } - }, - { - "eventId": "5", - "eventTime": "2026-01-26T21:11:30.184120Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1104126", - "activityTaskScheduledEventAttributes": { - "activityId": "1", - "activityType": { - "name": "invoke_model" - }, - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": {}, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbCI6IndlYXRoZXJfbW9kZWwiLCJjb250ZW50cyI6W3sicGFydHMiOlt7Im1lZGlhUmVzb2x1dGlvbiI6bnVsbCwiY29kZUV4ZWN1dGlvblJlc3VsdCI6bnVsbCwiZXhlY3V0YWJsZUNvZGUiOm51bGwsImZpbGVEYXRhIjpudWxsLCJmdW5jdGlvbkNhbGwiOm51bGwsImZ1bmN0aW9uUmVzcG9uc2UiOm51bGwsImlubGluZURhdGEiOm51bGwsInRleHQiOiJXaGF0IGlzIHRoZSB3ZWF0aGVyIGluIE5ldyBZb3JrPyIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9XSwicm9sZSI6InVzZXIifV0sImNvbmZpZyI6eyJodHRwT3B0aW9ucyI6bnVsbCwic2hvdWxkUmV0dXJuSHR0cFJlc3BvbnNlIjpudWxsLCJzeXN0ZW1JbnN0cnVjdGlvbiI6IllvdSBhcmUgYW4gYWdlbnQuIFlvdXIgaW50ZXJuYWwgbmFtZSBpcyBcInRlc3RfYWdlbnRcIi4iLCJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wUCI6bnVsbCwidG9wSyI6bnVsbCwiY2FuZGlkYXRlQ291bnQiOm51bGwsIm1heE91dHB1dFRva2VucyI6bnVsbCwic3RvcFNlcXVlbmNlcyI6bnVsbCwicmVzcG9uc2VMb2dwcm9icyI6bnVsbCwibG9ncHJvYnMiOm51bGwsInByZXNlbmNlUGVuYWx0eSI6bnVsbCwiZnJlcXVlbmN5UGVuYWx0eSI6bnVsbCwic2VlZCI6bnVsbCwicmVzcG9uc2VNaW1lVHlwZSI6bnVsbCwicmVzcG9uc2VTY2hlbWEiOm51bGwsInJlc3BvbnNlSnNvblNjaGVtYSI6bnVsbCwicm91dGluZ0NvbmZpZyI6bnVsbCwibW9kZWxTZWxlY3Rpb25Db25maWciOm51bGwsInNhZmV0eVNldHRpbmdzIjpudWxsLCJ0b29scyI6W3sicmV0cmlldmFsIjpudWxsLCJjb21wdXRlclVzZSI6bnVsbCwiZmlsZVNlYXJjaCI6bnVsbCwiY29kZUV4ZWN1dGlvbiI6bnVsbCwiZW50ZXJwcmlzZVdlYlNlYXJjaCI6bnVsbCwiZnVuY3Rpb25EZWNsYXJhdGlvbnMiOlt7ImRlc2NyaXB0aW9uIjoiQWN0aXZpdHkgdGhhdCBnZXRzIHdlYXRoZXIgZm9yIGEgZ2l2ZW4gY2l0eS4iLCJuYW1lIjoiZ2V0X3dlYXRoZXIiLCJwYXJhbWV0ZXJzIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpudWxsLCJkZWZzIjpudWxsLCJyZWYiOm51bGwsImFueU9mIjpudWxsLCJkZWZhdWx0IjpudWxsLCJkZXNjcmlwdGlvbiI6bnVsbCwiZW51bSI6bnVsbCwiZXhhbXBsZSI6bnVsbCwiZm9ybWF0IjpudWxsLCJpdGVtcyI6bnVsbCwibWF4SXRlbXMiOm51bGwsIm1heExlbmd0aCI6bnVsbCwibWF4UHJvcGVydGllcyI6bnVsbCwibWF4aW11bSI6bnVsbCwibWluSXRlbXMiOm51bGwsIm1pbkxlbmd0aCI6bnVsbCwibWluUHJvcGVydGllcyI6bnVsbCwibWluaW11bSI6bnVsbCwibnVsbGFibGUiOm51bGwsInBhdHRlcm4iOm51bGwsInByb3BlcnRpZXMiOnsiY2l0eSI6eyJhZGRpdGlvbmFsUHJvcGVydGllcyI6bnVsbCwiZGVmcyI6bnVsbCwicmVmIjpudWxsLCJhbnlPZiI6bnVsbCwiZGVmYXVsdCI6bnVsbCwiZGVzY3JpcHRpb24iOm51bGwsImVudW0iOm51bGwsImV4YW1wbGUiOm51bGwsImZvcm1hdCI6bnVsbCwiaXRlbXMiOm51bGwsIm1heEl0ZW1zIjpudWxsLCJtYXhMZW5ndGgiOm51bGwsIm1heFByb3BlcnRpZXMiOm51bGwsIm1heGltdW0iOm51bGwsIm1pbkl0ZW1zIjpudWxsLCJtaW5MZW5ndGgiOm51bGwsIm1pblByb3BlcnRpZXMiOm51bGwsIm1pbmltdW0iOm51bGwsIm51bGxhYmxlIjpudWxsLCJwYXR0ZXJuIjpudWxsLCJwcm9wZXJ0aWVzIjpudWxsLCJwcm9wZXJ0eU9yZGVyaW5nIjpudWxsLCJyZXF1aXJlZCI6bnVsbCwidGl0bGUiOm51bGwsInR5cGUiOiJTVFJJTkcifX0sInByb3BlcnR5T3JkZXJpbmciOm51bGwsInJlcXVpcmVkIjpbImNpdHkiXSwidGl0bGUiOm51bGwsInR5cGUiOiJPQkpFQ1QifSwicGFyYW1ldGVyc0pzb25TY2hlbWEiOm51bGwsInJlc3BvbnNlIjpudWxsLCJyZXNwb25zZUpzb25TY2hlbWEiOm51bGwsImJlaGF2aW9yIjpudWxsfV0sImdvb2dsZU1hcHMiOm51bGwsImdvb2dsZVNlYXJjaCI6bnVsbCwiZ29vZ2xlU2VhcmNoUmV0cmlldmFsIjpudWxsLCJ1cmxDb250ZXh0IjpudWxsfV0sInRvb2xDb25maWciOm51bGwsImxhYmVscyI6bnVsbCwiY2FjaGVkQ29udGVudCI6bnVsbCwicmVzcG9uc2VNb2RhbGl0aWVzIjpudWxsLCJtZWRpYVJlc29sdXRpb24iOm51bGwsInNwZWVjaENvbmZpZyI6bnVsbCwiYXVkaW9UaW1lc3RhbXAiOm51bGwsImF1dG9tYXRpY0Z1bmN0aW9uQ2FsbGluZyI6bnVsbCwidGhpbmtpbmdDb25maWciOm51bGwsImltYWdlQ29uZmlnIjpudWxsLCJlbmFibGVFbmhhbmNlZENpdmljQW5zd2VycyI6bnVsbCwibW9kZWxBcm1vckNvbmZpZyI6bnVsbH0sImxpdmVfY29ubmVjdF9jb25maWciOnsiaHR0cE9wdGlvbnMiOm51bGwsImdlbmVyYXRpb25Db25maWciOm51bGwsInJlc3BvbnNlTW9kYWxpdGllcyI6bnVsbCwidGVtcGVyYXR1cmUiOm51bGwsInRvcFAiOm51bGwsInRvcEsiOm51bGwsIm1heE91dHB1dFRva2VucyI6bnVsbCwibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJzZWVkIjpudWxsLCJzcGVlY2hDb25maWciOm51bGwsInRoaW5raW5nQ29uZmlnIjpudWxsLCJlbmFibGVBZmZlY3RpdmVEaWFsb2ciOm51bGwsInN5c3RlbUluc3RydWN0aW9uIjpudWxsLCJ0b29scyI6bnVsbCwic2Vzc2lvblJlc3VtcHRpb24iOm51bGwsImlucHV0QXVkaW9UcmFuc2NyaXB0aW9uIjp7fSwib3V0cHV0QXVkaW9UcmFuc2NyaXB0aW9uIjp7fSwicmVhbHRpbWVJbnB1dENvbmZpZyI6bnVsbCwiY29udGV4dFdpbmRvd0NvbXByZXNzaW9uIjpudWxsLCJwcm9hY3Rpdml0eSI6bnVsbCwiZXhwbGljaXRWYWRTaWduYWwiOm51bGx9LCJjYWNoZV9jb25maWciOm51bGwsImNhY2hlX21ldGFkYXRhIjpudWxsLCJjYWNoZWFibGVfY29udGVudHNfdG9rZW5fY291bnQiOm51bGwsInByZXZpb3VzX2ludGVyYWN0aW9uX2lkIjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "0s", - "scheduleToStartTimeout": "0s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "4", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true, - "priority": {} - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "InRlc3RfYWdlbnQi" - } - } - }, - { - "eventId": "6", - "eventTime": "2026-01-26T21:11:30.185095Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1104132", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "5", - "identity": "70127@Tims-MacBook-Pro.local", - "requestId": "affae0ec-873d-4c27-85c3-cbbd6cec61f6", - "attempt": 1, - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - } - } - }, - { - "eventId": "7", - "eventTime": "2026-01-26T21:11:30.188610Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1104133", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "W3sibW9kZWxWZXJzaW9uIjpudWxsLCJjb250ZW50Ijp7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjp7ImlkIjpudWxsLCJhcmdzIjp7ImNpdHkiOiJOZXcgWW9yayJ9LCJuYW1lIjoiZ2V0X3dlYXRoZXIiLCJwYXJ0aWFsQXJncyI6bnVsbCwid2lsbENvbnRpbnVlIjpudWxsfSwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6bnVsbCwidGhvdWdodCI6bnVsbCwidGhvdWdodFNpZ25hdHVyZSI6bnVsbCwidmlkZW9NZXRhZGF0YSI6bnVsbH1dLCJyb2xlIjoibW9kZWwifSwiZ3JvdW5kaW5nTWV0YWRhdGEiOm51bGwsInBhcnRpYWwiOm51bGwsInR1cm5Db21wbGV0ZSI6bnVsbCwiZmluaXNoUmVhc29uIjpudWxsLCJlcnJvckNvZGUiOm51bGwsImVycm9yTWVzc2FnZSI6bnVsbCwiaW50ZXJydXB0ZWQiOm51bGwsImN1c3RvbU1ldGFkYXRhIjpudWxsLCJ1c2FnZU1ldGFkYXRhIjpudWxsLCJsaXZlU2Vzc2lvblJlc3VtcHRpb25VcGRhdGUiOm51bGwsImlucHV0VHJhbnNjcmlwdGlvbiI6bnVsbCwib3V0cHV0VHJhbnNjcmlwdGlvbiI6bnVsbCwiYXZnTG9ncHJvYnMiOm51bGwsImxvZ3Byb2JzUmVzdWx0IjpudWxsLCJjYWNoZU1ldGFkYXRhIjpudWxsLCJjaXRhdGlvbk1ldGFkYXRhIjpudWxsLCJpbnRlcmFjdGlvbklkIjpudWxsfV0=" - } - ] - }, - "scheduledEventId": "5", - "startedEventId": "6", - "identity": "70127@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "8", - "eventTime": "2026-01-26T21:11:30.188613Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1104134", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "9", - "eventTime": "2026-01-26T21:11:30.189631Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1104137", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "8", - "identity": "70127@Tims-MacBook-Pro.local", - "requestId": "755e188a-9cdd-4818-b328-4d40f4627910", - "historySizeBytes": "4799", - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - } - } - }, - { - "eventId": "10", - "eventTime": "2026-01-26T21:11:30.221995Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1104141", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "8", - "startedEventId": "9", - "identity": "70127@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "11", - "eventTime": "2026-01-26T21:11:30.222027Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1104142", - "activityTaskScheduledEventAttributes": { - "activityId": "2", - "activityType": { - "name": "get_weather" - }, - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": {}, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "Ik5ldyBZb3JrIg==" - } - ] - }, - "scheduleToCloseTimeout": "0s", - "scheduleToStartTimeout": "0s", - "startToCloseTimeout": "60s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true, - "priority": {} - } - }, - { - "eventId": "12", - "eventTime": "2026-01-26T21:11:30.223081Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1104147", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "11", - "identity": "70127@Tims-MacBook-Pro.local", - "requestId": "be038a7a-79fc-4e78-bae2-798c1d77b9e4", - "attempt": 1, - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - } - } - }, - { - "eventId": "13", - "eventTime": "2026-01-26T21:11:30.225066Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1104148", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "Ildhcm0gYW5kIHN1bm55LiAxNyBkZWdyZWVzLiI=" - } - ] - }, - "scheduledEventId": "11", - "startedEventId": "12", - "identity": "70127@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "14", - "eventTime": "2026-01-26T21:11:30.225069Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1104149", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "15", - "eventTime": "2026-01-26T21:11:30.225814Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1104152", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "14", - "identity": "70127@Tims-MacBook-Pro.local", - "requestId": "ab62b9fc-373f-4157-a891-87c6ecc47405", - "historySizeBytes": "5479", - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - } - } - }, - { - "eventId": "16", - "eventTime": "2026-01-26T21:11:30.258759Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1104156", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "14", - "startedEventId": "15", - "identity": "70127@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "17", - "eventTime": "2026-01-26T21:11:30.258787Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1104157", - "activityTaskScheduledEventAttributes": { - "activityId": "3", - "activityType": { - "name": "invoke_model" - }, - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": {}, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbCI6IndlYXRoZXJfbW9kZWwiLCJjb250ZW50cyI6W3sicGFydHMiOlt7Im1lZGlhUmVzb2x1dGlvbiI6bnVsbCwiY29kZUV4ZWN1dGlvblJlc3VsdCI6bnVsbCwiZXhlY3V0YWJsZUNvZGUiOm51bGwsImZpbGVEYXRhIjpudWxsLCJmdW5jdGlvbkNhbGwiOm51bGwsImZ1bmN0aW9uUmVzcG9uc2UiOm51bGwsImlubGluZURhdGEiOm51bGwsInRleHQiOiJXaGF0IGlzIHRoZSB3ZWF0aGVyIGluIE5ldyBZb3JrPyIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9XSwicm9sZSI6InVzZXIifSx7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjp7ImlkIjpudWxsLCJhcmdzIjp7ImNpdHkiOiJOZXcgWW9yayJ9LCJuYW1lIjoiZ2V0X3dlYXRoZXIiLCJwYXJ0aWFsQXJncyI6bnVsbCwid2lsbENvbnRpbnVlIjpudWxsfSwiZnVuY3Rpb25SZXNwb25zZSI6bnVsbCwiaW5saW5lRGF0YSI6bnVsbCwidGV4dCI6bnVsbCwidGhvdWdodCI6bnVsbCwidGhvdWdodFNpZ25hdHVyZSI6bnVsbCwidmlkZW9NZXRhZGF0YSI6bnVsbH1dLCJyb2xlIjoibW9kZWwifSx7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjpudWxsLCJmdW5jdGlvblJlc3BvbnNlIjp7IndpbGxDb250aW51ZSI6bnVsbCwic2NoZWR1bGluZyI6bnVsbCwicGFydHMiOm51bGwsImlkIjpudWxsLCJuYW1lIjoiZ2V0X3dlYXRoZXIiLCJyZXNwb25zZSI6eyJyZXN1bHQiOiJXYXJtIGFuZCBzdW5ueS4gMTcgZGVncmVlcy4ifX0sImlubGluZURhdGEiOm51bGwsInRleHQiOm51bGwsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9XSwicm9sZSI6InVzZXIifV0sImNvbmZpZyI6eyJodHRwT3B0aW9ucyI6bnVsbCwic2hvdWxkUmV0dXJuSHR0cFJlc3BvbnNlIjpudWxsLCJzeXN0ZW1JbnN0cnVjdGlvbiI6IllvdSBhcmUgYW4gYWdlbnQuIFlvdXIgaW50ZXJuYWwgbmFtZSBpcyBcInRlc3RfYWdlbnRcIi4iLCJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wUCI6bnVsbCwidG9wSyI6bnVsbCwiY2FuZGlkYXRlQ291bnQiOm51bGwsIm1heE91dHB1dFRva2VucyI6bnVsbCwic3RvcFNlcXVlbmNlcyI6bnVsbCwicmVzcG9uc2VMb2dwcm9icyI6bnVsbCwibG9ncHJvYnMiOm51bGwsInByZXNlbmNlUGVuYWx0eSI6bnVsbCwiZnJlcXVlbmN5UGVuYWx0eSI6bnVsbCwic2VlZCI6bnVsbCwicmVzcG9uc2VNaW1lVHlwZSI6bnVsbCwicmVzcG9uc2VTY2hlbWEiOm51bGwsInJlc3BvbnNlSnNvblNjaGVtYSI6bnVsbCwicm91dGluZ0NvbmZpZyI6bnVsbCwibW9kZWxTZWxlY3Rpb25Db25maWciOm51bGwsInNhZmV0eVNldHRpbmdzIjpudWxsLCJ0b29scyI6W3sicmV0cmlldmFsIjpudWxsLCJjb21wdXRlclVzZSI6bnVsbCwiZmlsZVNlYXJjaCI6bnVsbCwiY29kZUV4ZWN1dGlvbiI6bnVsbCwiZW50ZXJwcmlzZVdlYlNlYXJjaCI6bnVsbCwiZnVuY3Rpb25EZWNsYXJhdGlvbnMiOlt7ImRlc2NyaXB0aW9uIjoiQWN0aXZpdHkgdGhhdCBnZXRzIHdlYXRoZXIgZm9yIGEgZ2l2ZW4gY2l0eS4iLCJuYW1lIjoiZ2V0X3dlYXRoZXIiLCJwYXJhbWV0ZXJzIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpudWxsLCJkZWZzIjpudWxsLCJyZWYiOm51bGwsImFueU9mIjpudWxsLCJkZWZhdWx0IjpudWxsLCJkZXNjcmlwdGlvbiI6bnVsbCwiZW51bSI6bnVsbCwiZXhhbXBsZSI6bnVsbCwiZm9ybWF0IjpudWxsLCJpdGVtcyI6bnVsbCwibWF4SXRlbXMiOm51bGwsIm1heExlbmd0aCI6bnVsbCwibWF4UHJvcGVydGllcyI6bnVsbCwibWF4aW11bSI6bnVsbCwibWluSXRlbXMiOm51bGwsIm1pbkxlbmd0aCI6bnVsbCwibWluUHJvcGVydGllcyI6bnVsbCwibWluaW11bSI6bnVsbCwibnVsbGFibGUiOm51bGwsInBhdHRlcm4iOm51bGwsInByb3BlcnRpZXMiOnsiY2l0eSI6eyJhZGRpdGlvbmFsUHJvcGVydGllcyI6bnVsbCwiZGVmcyI6bnVsbCwicmVmIjpudWxsLCJhbnlPZiI6bnVsbCwiZGVmYXVsdCI6bnVsbCwiZGVzY3JpcHRpb24iOm51bGwsImVudW0iOm51bGwsImV4YW1wbGUiOm51bGwsImZvcm1hdCI6bnVsbCwiaXRlbXMiOm51bGwsIm1heEl0ZW1zIjpudWxsLCJtYXhMZW5ndGgiOm51bGwsIm1heFByb3BlcnRpZXMiOm51bGwsIm1heGltdW0iOm51bGwsIm1pbkl0ZW1zIjpudWxsLCJtaW5MZW5ndGgiOm51bGwsIm1pblByb3BlcnRpZXMiOm51bGwsIm1pbmltdW0iOm51bGwsIm51bGxhYmxlIjpudWxsLCJwYXR0ZXJuIjpudWxsLCJwcm9wZXJ0aWVzIjpudWxsLCJwcm9wZXJ0eU9yZGVyaW5nIjpudWxsLCJyZXF1aXJlZCI6bnVsbCwidGl0bGUiOm51bGwsInR5cGUiOiJTVFJJTkcifX0sInByb3BlcnR5T3JkZXJpbmciOm51bGwsInJlcXVpcmVkIjpbImNpdHkiXSwidGl0bGUiOm51bGwsInR5cGUiOiJPQkpFQ1QifSwicGFyYW1ldGVyc0pzb25TY2hlbWEiOm51bGwsInJlc3BvbnNlIjpudWxsLCJyZXNwb25zZUpzb25TY2hlbWEiOm51bGwsImJlaGF2aW9yIjpudWxsfV0sImdvb2dsZU1hcHMiOm51bGwsImdvb2dsZVNlYXJjaCI6bnVsbCwiZ29vZ2xlU2VhcmNoUmV0cmlldmFsIjpudWxsLCJ1cmxDb250ZXh0IjpudWxsfV0sInRvb2xDb25maWciOm51bGwsImxhYmVscyI6bnVsbCwiY2FjaGVkQ29udGVudCI6bnVsbCwicmVzcG9uc2VNb2RhbGl0aWVzIjpudWxsLCJtZWRpYVJlc29sdXRpb24iOm51bGwsInNwZWVjaENvbmZpZyI6bnVsbCwiYXVkaW9UaW1lc3RhbXAiOm51bGwsImF1dG9tYXRpY0Z1bmN0aW9uQ2FsbGluZyI6bnVsbCwidGhpbmtpbmdDb25maWciOm51bGwsImltYWdlQ29uZmlnIjpudWxsLCJlbmFibGVFbmhhbmNlZENpdmljQW5zd2VycyI6bnVsbCwibW9kZWxBcm1vckNvbmZpZyI6bnVsbH0sImxpdmVfY29ubmVjdF9jb25maWciOnsiaHR0cE9wdGlvbnMiOm51bGwsImdlbmVyYXRpb25Db25maWciOm51bGwsInJlc3BvbnNlTW9kYWxpdGllcyI6bnVsbCwidGVtcGVyYXR1cmUiOm51bGwsInRvcFAiOm51bGwsInRvcEsiOm51bGwsIm1heE91dHB1dFRva2VucyI6bnVsbCwibWVkaWFSZXNvbHV0aW9uIjpudWxsLCJzZWVkIjpudWxsLCJzcGVlY2hDb25maWciOm51bGwsInRoaW5raW5nQ29uZmlnIjpudWxsLCJlbmFibGVBZmZlY3RpdmVEaWFsb2ciOm51bGwsInN5c3RlbUluc3RydWN0aW9uIjpudWxsLCJ0b29scyI6bnVsbCwic2Vzc2lvblJlc3VtcHRpb24iOm51bGwsImlucHV0QXVkaW9UcmFuc2NyaXB0aW9uIjp7fSwib3V0cHV0QXVkaW9UcmFuc2NyaXB0aW9uIjp7fSwicmVhbHRpbWVJbnB1dENvbmZpZyI6bnVsbCwiY29udGV4dFdpbmRvd0NvbXByZXNzaW9uIjpudWxsLCJwcm9hY3Rpdml0eSI6bnVsbCwiZXhwbGljaXRWYWRTaWduYWwiOm51bGx9LCJjYWNoZV9jb25maWciOm51bGwsImNhY2hlX21ldGFkYXRhIjpudWxsLCJjYWNoZWFibGVfY29udGVudHNfdG9rZW5fY291bnQiOm51bGwsInByZXZpb3VzX2ludGVyYWN0aW9uX2lkIjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "0s", - "scheduleToStartTimeout": "0s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "16", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true, - "priority": {} - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "InRlc3RfYWdlbnQi" - } - } - }, - { - "eventId": "18", - "eventTime": "2026-01-26T21:11:30.259830Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1104162", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "17", - "identity": "70127@Tims-MacBook-Pro.local", - "requestId": "0e5bef66-5e35-4c0c-86eb-f2110a843377", - "attempt": 1, - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - } - } - }, - { - "eventId": "19", - "eventTime": "2026-01-26T21:11:30.261889Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1104163", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "W3sibW9kZWxWZXJzaW9uIjpudWxsLCJjb250ZW50Ijp7InBhcnRzIjpbeyJtZWRpYVJlc29sdXRpb24iOm51bGwsImNvZGVFeGVjdXRpb25SZXN1bHQiOm51bGwsImV4ZWN1dGFibGVDb2RlIjpudWxsLCJmaWxlRGF0YSI6bnVsbCwiZnVuY3Rpb25DYWxsIjpudWxsLCJmdW5jdGlvblJlc3BvbnNlIjpudWxsLCJpbmxpbmVEYXRhIjpudWxsLCJ0ZXh0Ijoid2FybSBhbmQgc3VubnkiLCJ0aG91Z2h0IjpudWxsLCJ0aG91Z2h0U2lnbmF0dXJlIjpudWxsLCJ2aWRlb01ldGFkYXRhIjpudWxsfV0sInJvbGUiOiJtb2RlbCJ9LCJncm91bmRpbmdNZXRhZGF0YSI6bnVsbCwicGFydGlhbCI6bnVsbCwidHVybkNvbXBsZXRlIjpudWxsLCJmaW5pc2hSZWFzb24iOm51bGwsImVycm9yQ29kZSI6bnVsbCwiZXJyb3JNZXNzYWdlIjpudWxsLCJpbnRlcnJ1cHRlZCI6bnVsbCwiY3VzdG9tTWV0YWRhdGEiOm51bGwsInVzYWdlTWV0YWRhdGEiOm51bGwsImxpdmVTZXNzaW9uUmVzdW1wdGlvblVwZGF0ZSI6bnVsbCwiaW5wdXRUcmFuc2NyaXB0aW9uIjpudWxsLCJvdXRwdXRUcmFuc2NyaXB0aW9uIjpudWxsLCJhdmdMb2dwcm9icyI6bnVsbCwibG9ncHJvYnNSZXN1bHQiOm51bGwsImNhY2hlTWV0YWRhdGEiOm51bGwsImNpdGF0aW9uTWV0YWRhdGEiOm51bGwsImludGVyYWN0aW9uSWQiOm51bGx9XQ==" - } - ] - }, - "scheduledEventId": "17", - "startedEventId": "18", - "identity": "70127@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "20", - "eventTime": "2026-01-26T21:11:30.261891Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1104164", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "adk-task-queue", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "21", - "eventTime": "2026-01-26T21:11:30.262662Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1104167", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "20", - "identity": "70127@Tims-MacBook-Pro.local", - "requestId": "b23c5065-a19d-4fe0-b13b-37a67e21d355", - "historySizeBytes": "10489", - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - } - } - }, - { - "eventId": "22", - "eventTime": "2026-01-26T21:11:30.298088Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1104171", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "20", - "startedEventId": "21", - "identity": "70127@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "33d06b1c69b2db724aa60c7d3ac4fea9" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "23", - "eventTime": "2026-01-26T21:11:30.298110Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", - "taskId": "1104172", - "workflowExecutionCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbFZlcnNpb24iOm51bGwsImNvbnRlbnQiOnsicGFydHMiOlt7Im1lZGlhUmVzb2x1dGlvbiI6bnVsbCwiY29kZUV4ZWN1dGlvblJlc3VsdCI6bnVsbCwiZXhlY3V0YWJsZUNvZGUiOm51bGwsImZpbGVEYXRhIjpudWxsLCJmdW5jdGlvbkNhbGwiOm51bGwsImZ1bmN0aW9uUmVzcG9uc2UiOm51bGwsImlubGluZURhdGEiOm51bGwsInRleHQiOiJ3YXJtIGFuZCBzdW5ueSIsInRob3VnaHQiOm51bGwsInRob3VnaHRTaWduYXR1cmUiOm51bGwsInZpZGVvTWV0YWRhdGEiOm51bGx9XSwicm9sZSI6Im1vZGVsIn0sImdyb3VuZGluZ01ldGFkYXRhIjpudWxsLCJwYXJ0aWFsIjpudWxsLCJ0dXJuQ29tcGxldGUiOm51bGwsImZpbmlzaFJlYXNvbiI6bnVsbCwiZXJyb3JDb2RlIjpudWxsLCJlcnJvck1lc3NhZ2UiOm51bGwsImludGVycnVwdGVkIjpudWxsLCJjdXN0b21NZXRhZGF0YSI6bnVsbCwidXNhZ2VNZXRhZGF0YSI6bnVsbCwibGl2ZVNlc3Npb25SZXN1bXB0aW9uVXBkYXRlIjpudWxsLCJpbnB1dFRyYW5zY3JpcHRpb24iOm51bGwsIm91dHB1dFRyYW5zY3JpcHRpb24iOm51bGwsImF2Z0xvZ3Byb2JzIjpudWxsLCJsb2dwcm9ic1Jlc3VsdCI6bnVsbCwiY2FjaGVNZXRhZGF0YSI6bnVsbCwiY2l0YXRpb25NZXRhZGF0YSI6bnVsbCwiaW50ZXJhY3Rpb25JZCI6bnVsbCwiaW52b2NhdGlvbklkIjoiZS1mMDdiNjJmOS03NzUwLTQ5YjctYmYwYi1jZDkwM2M2YTM0MGYiLCJhdXRob3IiOiJ0ZXN0X2FnZW50IiwiYWN0aW9ucyI6eyJza2lwU3VtbWFyaXphdGlvbiI6bnVsbCwic3RhdGVEZWx0YSI6e30sImFydGlmYWN0RGVsdGEiOnt9LCJ0cmFuc2ZlclRvQWdlbnQiOm51bGwsImVzY2FsYXRlIjpudWxsLCJyZXF1ZXN0ZWRBdXRoQ29uZmlncyI6e30sInJlcXVlc3RlZFRvb2xDb25maXJtYXRpb25zIjp7fSwiY29tcGFjdGlvbiI6bnVsbCwiZW5kT2ZBZ2VudCI6bnVsbCwiYWdlbnRTdGF0ZSI6bnVsbCwicmV3aW5kQmVmb3JlSW52b2NhdGlvbklkIjpudWxsfSwibG9uZ1J1bm5pbmdUb29sSWRzIjpudWxsLCJicmFuY2giOm51bGwsImlkIjoiZmViZmMyMGEtOTM1OS00YWY1LTliMGEtNGI2ODAyNjAyZTdhIiwidGltZXN0YW1wIjoxNzY5NDYxODkwLjIyNTgxNH0=" - } - ] - }, - "workflowTaskCompletedEventId": "22" - } - } - ] -} \ No newline at end of file diff --git a/tests/contrib/google_adk_agents/test_adk_streaming.py b/tests/contrib/google_adk_agents/test_adk_streaming.py deleted file mode 100644 index 30aecd9f4..000000000 --- a/tests/contrib/google_adk_agents/test_adk_streaming.py +++ /dev/null @@ -1,195 +0,0 @@ -"""Integration tests for ADK streaming support. - -Verifies that the streaming model activity publishes raw ``LlmResponse`` -chunks via the WorkflowStream broker. Non-streaming behavior is covered -by ``test_google_adk_agents.py``. -""" - -import asyncio -import uuid -from collections.abc import AsyncGenerator -from datetime import timedelta - -import pytest -from google.adk import Agent -from google.adk.agents.run_config import RunConfig, StreamingMode -from google.adk.models import BaseLlm, LLMRegistry -from google.adk.models.llm_request import LlmRequest -from google.adk.models.llm_response import LlmResponse -from google.adk.runners import InMemoryRunner -from google.genai.types import Content, Part - -from temporalio import workflow -from temporalio.client import Client, WorkflowFailureError -from temporalio.contrib.google_adk_agents import GoogleAdkPlugin, TemporalModel -from temporalio.contrib.workflow_streams import WorkflowStream, WorkflowStreamClient -from temporalio.worker import Worker - - -class StreamingTestModel(BaseLlm): - """Test model that yields multiple partial responses to simulate streaming.""" - - @classmethod - def supported_models(cls) -> list[str]: - return ["streaming_test_model"] - - async def generate_content_async( - self, llm_request: LlmRequest, stream: bool = False - ) -> AsyncGenerator[LlmResponse, None]: - # The streaming activity must call us with stream=True; if a - # regression drops the flag this test should fail. - if not stream: - raise AssertionError( - "StreamingTestModel.generate_content_async requires stream=True" - ) - yield LlmResponse(content=Content(role="model", parts=[Part(text="Hello ")])) - yield LlmResponse(content=Content(role="model", parts=[Part(text="world!")])) - - -@workflow.defn -class StreamingAdkWorkflow: - """Test workflow that opts into streaming via RunConfig.streaming_mode.""" - - @workflow.init - def __init__(self, prompt: str) -> None: - self.stream = WorkflowStream() - - @workflow.run - async def run(self, prompt: str) -> str: - model = TemporalModel("streaming_test_model", streaming_topic="events") - agent = Agent( - name="test_agent", - model=model, - instruction="You are a test agent.", - ) - - runner = InMemoryRunner(agent=agent, app_name="test-app") - session = await runner.session_service.create_session( - app_name="test-app", user_id="test" - ) - - final_text = "" - async for event in runner.run_async( - user_id="test", - session_id=session.id, - new_message=Content(role="user", parts=[Part(text=prompt)]), - run_config=RunConfig(streaming_mode=StreamingMode.SSE), - ): - if event.content and event.content.parts: - for part in event.content.parts: - if part.text: - final_text = part.text - - return final_text - - -@pytest.mark.asyncio -async def test_streaming_publishes_events(client: Client): - """Streaming activity publishes raw LlmResponse chunks to the topic.""" - LLMRegistry.register(StreamingTestModel) - - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin()] - client = Client(**new_config) - - workflow_id = f"adk-streaming-test-{uuid.uuid4()}" - - async with Worker( - client, - task_queue="adk-streaming-test", - workflows=[StreamingAdkWorkflow], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - StreamingAdkWorkflow.run, - "Hello", - id=workflow_id, - task_queue="adk-streaming-test", - execution_timeout=timedelta(seconds=30), - ) - - stream = WorkflowStreamClient.create(client, workflow_id) - responses: list[LlmResponse] = [] - - async def collect_events() -> None: - async for item in stream.subscribe( - ["events"], - from_offset=0, - result_type=LlmResponse, - poll_cooldown=timedelta(milliseconds=50), - ): - responses.append(item.data) - if len(responses) >= 2: - break - - collect_task = asyncio.create_task(collect_events()) - result = await handle.result() - await asyncio.wait_for(collect_task, timeout=10.0) - - # Workflow assembles streamed parts; the last part it observes is "world!". - assert result == "world!" - - texts: list[str] = [] - for r in responses: - if r.content and r.content.parts: - for part in r.content.parts: - if part.text: - texts.append(part.text) - assert texts == ["Hello ", "world!"], f"Unexpected text deltas: {texts}" - - -@workflow.defn -class StreamingAdkRequiresTopicWorkflow: - """Calls ``generate_content_async(stream=True)`` without configuring - ``streaming_topic``; the call must raise before any activity - is scheduled.""" - - @workflow.run - async def run(self, prompt: str) -> str: - model = TemporalModel("streaming_test_model") - agent = Agent( - name="test_agent", - model=model, - instruction="You are a test agent.", - ) - runner = InMemoryRunner(agent=agent, app_name="test-app") - session = await runner.session_service.create_session( - app_name="test-app", user_id="test" - ) - async for _ in runner.run_async( - user_id="test", - session_id=session.id, - new_message=Content(role="user", parts=[Part(text=prompt)]), - run_config=RunConfig(streaming_mode=StreamingMode.SSE), - ): - pass - return "should not reach" - - -@pytest.mark.asyncio -async def test_streaming_requires_topic(client: Client): - """``stream=True`` fails fast when no streaming topic was configured - on ``TemporalModel``. The error is raised in the workflow before any - streaming activity is scheduled.""" - LLMRegistry.register(StreamingTestModel) - - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin()] - client = Client(**new_config) - - async with Worker( - client, - task_queue="adk-streaming-requires-topic", - workflows=[StreamingAdkRequiresTopicWorkflow], - max_cached_workflows=0, - ): - with pytest.raises(WorkflowFailureError) as exc_info: - await client.execute_workflow( - StreamingAdkRequiresTopicWorkflow.run, - "Hi", - id=f"adk-streaming-requires-topic-{uuid.uuid4()}", - task_queue="adk-streaming-requires-topic", - execution_timeout=timedelta(seconds=30), - ) - - assert "streaming_topic" in str(exc_info.value.cause) diff --git a/tests/contrib/google_adk_agents/test_adk_tool_context.py b/tests/contrib/google_adk_agents/test_adk_tool_context.py deleted file mode 100644 index 2f5d340d8..000000000 --- a/tests/contrib/google_adk_agents/test_adk_tool_context.py +++ /dev/null @@ -1,352 +0,0 @@ -"""Tests for ToolContextSnapshot injection into activity-backed tools. - -Covers https://github.com/temporalio/sdk-python/issues/1470: activities -wrapped with activity_as_tool can read the serializable subset of the ADK -ToolContext (session state and function-call id) without the live, -non-serializable ToolContext ever crossing the activity boundary, and -without the parameter leaking into the LLM-facing tool schema. -""" - -import uuid -from collections.abc import AsyncGenerator -from datetime import timedelta -from typing import Any, Optional # pyright: ignore[reportDeprecated] - -import pytest -from google.adk import Agent -from google.adk.features import FeatureName, override_feature_enabled -from google.adk.models import BaseLlm, LLMRegistry -from google.adk.models.llm_request import LlmRequest -from google.adk.models.llm_response import LlmResponse -from google.adk.runners import InMemoryRunner -from google.adk.tools.function_tool import FunctionTool -from google.adk.tools.tool_context import ToolContext -from google.adk.utils.context_utils import Aclosing -from google.genai import types -from google.genai.types import Content, FunctionCall, Part - -from temporalio import activity, workflow -from temporalio.client import Client -from temporalio.contrib.google_adk_agents import GoogleAdkPlugin, TemporalModel -from temporalio.contrib.google_adk_agents.workflow import ( - ToolContextSnapshot, - activity_as_tool, -) -from temporalio.worker import Worker - -TASK_QUEUE = "adk-tool-context-task-queue" - -SESSION_STATE: dict[str, Any] = { - "db_url": "postgres://config", - "retries": 3, - "regions": {"primary": "us-east1", "replicas": ["eu-west1"]}, -} - - -@activity.defn -async def lookup_weather( - city: str, tool_context: ToolContextSnapshot, units: str = "celsius" -) -> str: - """Activity that reads tool configuration from session state. - - Mirrors the shape reported in issue #1470, with tool_context deliberately - in the middle of the parameter list to prove positional slotting. The - returned string also records whether the code ran inside a real activity, - so tests can tell the activity boundary was actually crossed (or not). - """ - db_url = tool_context.state.get("db_url", "") - retries = tool_context.state.get("retries", -1) - region = tool_context.state.get("regions", {}).get("primary", "") - has_function_call_id = "yes" if tool_context.function_call_id else "no" - in_act = "yes" if activity.in_activity() else "no" - return f"{city}|{units}|{db_url}|{retries}|{region}|fc={has_function_call_id}|act={in_act}" - - -def weather_agent(model_name: str) -> Agent: - return Agent( - name="state_agent", - model=TemporalModel(model_name), - tools=[ - activity_as_tool( - lookup_weather, start_to_close_timeout=timedelta(seconds=30) - ) - ], - ) - - -class StateToolModel(BaseLlm): - """Scripted model: call lookup_weather once, then echo its response.""" - - async def generate_content_async( - self, llm_request: LlmRequest, stream: bool = False - ) -> AsyncGenerator[LlmResponse, None]: - tool_response = None - for content in llm_request.contents: - for part in content.parts or []: - if ( - part.function_response is not None - and part.function_response.name == "lookup_weather" - ): - tool_response = part.function_response - if tool_response is None: - yield LlmResponse( - content=Content( - role="model", - parts=[ - Part( - function_call=FunctionCall( - name="lookup_weather", args={"city": "NYC"} - ) - ) - ], - ) - ) - else: - yield LlmResponse( - content=Content( - role="model", - parts=[Part(text=f"done:{tool_response.response}")], - ) - ) - - @classmethod - def supported_models(cls) -> list[str]: - return ["state_tool_model"] - - -async def run_state_agent(model_name: str) -> str: - """Runs the agent against a session seeded with state; returns final text.""" - runner = InMemoryRunner(agent=weather_agent(model_name), app_name="test_app") - session = await runner.session_service.create_session( - app_name="test_app", - user_id="test", - state=SESSION_STATE, - ) - final_text = "" - async with Aclosing( - runner.run_async( - user_id="test", - session_id=session.id, - new_message=types.Content( - role="user", parts=[types.Part(text="weather in NYC?")] - ), - ) - ) as agen: - async for event in agen: - if event.content and event.content.parts and event.content.parts[0].text: - final_text = event.content.parts[0].text - return final_text - - -@workflow.defn -class StateToolWorkflow: - @workflow.run - async def run(self, model_name: str) -> str: - return await run_state_agent(model_name) - - -@pytest.mark.asyncio -async def test_activity_as_tool_receives_tool_context_snapshot(client: Client): - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin()] - client = Client(**new_config) - - async with Worker( - client, - task_queue=TASK_QUEUE, - activities=[lookup_weather], - workflows=[StateToolWorkflow], - max_cached_workflows=0, - ): - LLMRegistry.register(StateToolModel) - result = await client.execute_workflow( - StateToolWorkflow.run, - "state_tool_model", - id=f"tool-context-{uuid.uuid4()}", - task_queue=TASK_QUEUE, - execution_timeout=timedelta(seconds=30), - ) - # The activity saw mixed-type session state (string, int, nested dict), - # the default parameter value, and a populated function-call id — none of - # which came from the LLM — and act=yes proves the snapshot crossed a - # real activity boundary rather than running inline in the workflow. - assert "NYC|celsius|postgres://config|3|us-east1|fc=yes|act=yes" in result - - -@pytest.mark.asyncio -async def test_activity_as_tool_snapshot_outside_workflow(): - """Local ADK runs (no Temporal) receive the same snapshot.""" - LLMRegistry.register(StateToolModel) - result = await run_state_agent("state_tool_model") - assert "NYC|celsius|postgres://config|3|us-east1|fc=yes|act=no" in result - - -def _declared_properties(tool: FunctionTool) -> dict[str, Any]: - """Property names in the LLM-facing declaration, across schema styles.""" - declaration = tool._get_declaration() - assert declaration is not None - if declaration.parameters_json_schema is not None: - return declaration.parameters_json_schema.get("properties", {}) - assert declaration.parameters is not None - return declaration.parameters.properties or {} - - -def test_tool_schema_excludes_tool_context(): - """The tool_context parameter never appears in the LLM-facing schema.""" - tool = FunctionTool( - func=activity_as_tool( - lookup_weather, start_to_close_timeout=timedelta(seconds=30) - ) - ) - properties = _declared_properties(tool) - assert "city" in properties - assert "units" in properties - assert "tool_context" not in properties - - -def test_tool_schema_excludes_tool_context_legacy_declaration(): - """Exclusion also holds on the legacy (non-JSON-schema) declaration path.""" - override_feature_enabled(FeatureName.JSON_SCHEMA_FOR_FUNC_DECL, False) - try: - tool = FunctionTool( - func=activity_as_tool( - lookup_weather, start_to_close_timeout=timedelta(seconds=30) - ) - ) - declaration = tool._get_declaration() - assert declaration is not None - assert declaration.parameters is not None - properties = declaration.parameters.properties or {} - assert "city" in properties - assert "units" in properties - assert "tool_context" not in properties - finally: - # The flag is default-on across the supported google-adk range. - override_feature_enabled(FeatureName.JSON_SCHEMA_FOR_FUNC_DECL, True) - - -def test_tool_schema_context_only_parameter(): - """A tool whose only parameter is tool_context exposes no LLM arguments.""" - - @activity.defn - async def ctx_only_tool(tool_context: ToolContextSnapshot) -> str: - return str(tool_context.state) - - tool = FunctionTool( - func=activity_as_tool( - ctx_only_tool, start_to_close_timeout=timedelta(seconds=30) - ) - ) - declaration = tool._get_declaration() - if declaration is not None: - json_properties = (declaration.parameters_json_schema or {}).get( - "properties", {} - ) - legacy_properties = ( - (declaration.parameters.properties or {}) if declaration.parameters else {} - ) - assert not json_properties - assert not legacy_properties - - -def test_activity_as_tool_accepts_optional_snapshot_annotation(): - """ToolContextSnapshot | None is accepted and still excluded from the schema.""" - - @activity.defn - async def optional_tool( - query: str, - tool_context: ToolContextSnapshot | None = None, # pyright: ignore[reportUnusedParameter] - ) -> str: - return query - - tool = FunctionTool( - func=activity_as_tool( - optional_tool, start_to_close_timeout=timedelta(seconds=30) - ) - ) - properties = _declared_properties(tool) - assert set(properties) == {"query"} - - -def test_activity_as_tool_rejects_adk_tool_context_annotation(): - """Annotating with the live ADK ToolContext gives an actionable error.""" - - @activity.defn - async def bad_tool(query: str, tool_context: ToolContext) -> str: # pyright: ignore[reportUnusedParameter] - return query - - with pytest.raises(ValueError, match="ToolContextSnapshot"): - activity_as_tool(bad_tool, start_to_close_timeout=timedelta(seconds=30)) - - -def test_activity_as_tool_rejects_optional_adk_tool_context_annotation(): - """Optional[ToolContext] is rejected with the ADK-specific message.""" - - @activity.defn - async def optional_bad_tool( - query: str, - tool_context: Optional[ToolContext] = None, # pyright: ignore[reportUnusedParameter, reportDeprecated] - ) -> str: - return query - - with pytest.raises(ValueError, match="not serializable"): - activity_as_tool( - optional_bad_tool, start_to_close_timeout=timedelta(seconds=30) - ) - - -def test_activity_as_tool_rejects_adk_context_under_any_name(): - """ADK injects into any param annotated with a context type, so all are rejected.""" - - @activity.defn - async def sneaky_tool(query: str, ctx: ToolContext) -> str: # pyright: ignore[reportUnusedParameter] - return query - - with pytest.raises(ValueError, match="not serializable"): - activity_as_tool(sneaky_tool, start_to_close_timeout=timedelta(seconds=30)) - - -def test_activity_as_tool_rejects_snapshot_under_other_name(): - """ToolContextSnapshot on a differently-named param would leak into the schema.""" - - @activity.defn - async def misnamed_tool(query: str, snap: ToolContextSnapshot) -> str: # pyright: ignore[reportUnusedParameter] - return query - - with pytest.raises(ValueError, match="named 'tool_context'"): - activity_as_tool(misnamed_tool, start_to_close_timeout=timedelta(seconds=30)) - - -def test_activity_as_tool_rejects_unannotated_tool_context(): - """The reserved name without an annotation gives an actionable error.""" - - @activity.defn - async def untyped_tool(query: str, tool_context) -> str: # type: ignore[no-untyped-def] # pyright: ignore[reportUnusedParameter, reportMissingParameterType] - return query - - with pytest.raises(ValueError, match="unannotated 'tool_context'"): - activity_as_tool(untyped_tool, start_to_close_timeout=timedelta(seconds=30)) - - -def test_activity_as_tool_rejects_other_tool_context_annotation(): - """The reserved name with an unrelated annotation gives an actionable error.""" - - @activity.defn - async def confused_tool(query: str, tool_context: dict[str, Any]) -> str: # pyright: ignore[reportUnusedParameter] - return query - - with pytest.raises(ValueError, match="reserved by ADK"): - activity_as_tool(confused_tool, start_to_close_timeout=timedelta(seconds=30)) - - -def test_activity_as_tool_without_tool_context_unchanged(): - """Activities without a tool_context parameter keep their exact schema.""" - - @activity.defn - async def plain_tool(query: str) -> str: - return query - - tool = FunctionTool( - func=activity_as_tool(plain_tool, start_to_close_timeout=timedelta(seconds=30)) - ) - assert set(_declared_properties(tool)) == {"query"} diff --git a/tests/contrib/google_adk_agents/test_google_adk_agents.py b/tests/contrib/google_adk_agents/test_google_adk_agents.py deleted file mode 100644 index fac3138d2..000000000 --- a/tests/contrib/google_adk_agents/test_google_adk_agents.py +++ /dev/null @@ -1,1170 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Integration tests for ADK Temporal support.""" - -import inspect -import json -import logging -import os -import uuid -from abc import ABC, abstractmethod -from collections.abc import AsyncGenerator -from datetime import timedelta -from typing import Any - -import pytest -from google.adk import Agent, Runner -from google.adk.agents import LlmAgent -from google.adk.events import Event -from google.adk.models import BaseLlm, LLMRegistry -from google.adk.models.llm_request import LlmRequest -from google.adk.models.llm_response import LlmResponse -from google.adk.runners import InMemoryRunner -from google.adk.sessions import InMemorySessionService -from google.adk.tools.mcp_tool import McpToolset -from google.adk.tools.mcp_tool.mcp_session_manager import StdioConnectionParams -from google.adk.utils.context_utils import Aclosing -from google.genai import types -from google.genai.types import Content, FunctionCall, Part -from mcp import StdioServerParameters -from openinference.instrumentation.google_adk import GoogleADKInstrumentor -from opentelemetry.sdk.trace.export import SimpleSpanProcessor -from opentelemetry.sdk.trace.export.in_memory_span_exporter import InMemorySpanExporter -from opentelemetry.trace import get_tracer_provider, set_tracer_provider - -import temporalio.contrib.google_adk_agents.workflow -from temporalio import activity, workflow -from temporalio.client import Client -from temporalio.contrib.google_adk_agents import ( - GoogleAdkPlugin, - TemporalMcpToolSet, - TemporalMcpToolSetProvider, - TemporalModel, -) -from temporalio.contrib.opentelemetry import OpenTelemetryPlugin, create_tracer_provider -from temporalio.worker import Worker -from temporalio.workflow import ActivityConfig -from tests.contrib.opentelemetry.test_opentelemetry import dump_spans - -logger = logging.getLogger(__name__) - - -@activity.defn -async def get_weather(city: str) -> str: # type: ignore[reportUnusedParameter] - """Activity that gets weather for a given city.""" - return "Warm and sunny. 17 degrees." - - -def weather_agent(model_name: str) -> Agent: - # Wraps 'get_weather' activity as a Tool - weather_tool = temporalio.contrib.google_adk_agents.workflow.activity_as_tool( - get_weather, start_to_close_timeout=timedelta(seconds=60) - ) - - return Agent( - name="test_agent", - model=TemporalModel(model_name), - tools=[weather_tool], - ) - - -@workflow.defn -class WeatherAgent: - @workflow.run - async def run(self, prompt: str, model_name: str) -> Event | None: - logger.info("Workflow started.") - - # 1. Define Agent using Temporal Helpers - # Note: AgentPlugin in the Runner automatically handles Runtime setup - # and Model Activity interception. We use standard ADK models now. - agent = weather_agent(model_name) - - # 2. Create runner - runner = InMemoryRunner( - agent=agent, - app_name="test_app", - ) - - # 3. Create Session (uses runtime.new_uuid() -> workflow.uuid4()) - logger.info("Create session.") - session = await runner.session_service.create_session( - app_name="test_app", user_id="test" - ) - logger.info(f"Session created with ID: {session.id}") - - # 4. Run - logger.info("Starting runner.") - last_event = None - async with Aclosing( - runner.run_async( - user_id="test", - session_id=session.id, - new_message=types.Content(role="user", parts=[types.Part(text=prompt)]), - ) - ) as agen: - async for event in agen: - logger.info(f"Event: {event}") - last_event = event - - return last_event - - -@workflow.defn -class MultiAgentWorkflow: - @workflow.run - async def run(self, topic: str, model_name: str) -> str | None: - # 1. Setup Session Service - session_service = InMemorySessionService() - session = await session_service.create_session( - app_name="multi_agent_app", user_id="test_user" - ) - - # 2. Define Agents - # Sub-agent: Researcher - researcher = LlmAgent( - name="researcher", - model=TemporalModel( - model_name, activity_config=ActivityConfig(summary="Researcher Agent") - ), - instruction="You are a researcher. Find information about the topic.", - ) - - # Sub-agent: Writer - writer = LlmAgent( - name="writer", - model=TemporalModel( - model_name, activity_config=ActivityConfig(summary="Writer Agent") - ), - instruction="You are a poet. Write a haiku based on the research.", - ) - - # Root Agent: Coordinator - coordinator = LlmAgent( - name="coordinator", - model=TemporalModel( - model_name, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=30), - summary="Coordinator Agent", - ), - ), - instruction="You are a coordinator. Delegate to researcher then writer.", - sub_agents=[researcher, writer], - ) - - # 3. Initialize Runner with required args - runner = Runner( - agent=coordinator, - app_name="multi_agent_app", - session_service=session_service, - ) - - # 4. Run - final_content = "" - user_msg = types.Content( - role="user", - parts=[ - types.Part( - text=f"Write a haiku about {topic}. First research it, then write it." - ) - ], - ) - async for event in runner.run_async( - user_id="test_user", session_id=session.id, new_message=user_msg - ): - if ( - event.content - and event.content.parts - and event.content.parts[0].text is not None - ): - final_content = event.content.parts[0].text - - return final_content - - -class TestModel(BaseLlm, ABC): - @abstractmethod - def responses(self) -> list[LlmResponse]: - raise NotImplementedError - - @classmethod - @abstractmethod - def supported_models(cls) -> list[str]: - raise NotImplementedError - - async def generate_content_async( - self, llm_request: LlmRequest, stream: bool = False - ) -> AsyncGenerator[LlmResponse, None]: - for response in self.responses(): - if any(content == response.content for content in llm_request.contents): - continue - yield response - return - - -class WeatherModel(TestModel): - def responses(self) -> list[LlmResponse]: - return [ - LlmResponse( - content=Content( - role="model", - parts=[ - Part( - function_call=FunctionCall( - args={"city": "New York"}, name="get_weather" - ) - ) - ], - ) - ), - LlmResponse( - content=Content( - role="model", - parts=[Part(text="warm and sunny")], - ) - ), - ] - - @classmethod - def supported_models(cls) -> list[str]: - return ["weather_model"] - - -@pytest.mark.parametrize("use_local_model", [True, False]) -@pytest.mark.asyncio -async def test_single_agent(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("GOOGLE_API_KEY"): - pytest.skip("No google API key") - - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin()] - client = Client(**new_config) - - # Run Worker with the ADK plugin - async with Worker( - client, - task_queue="adk-task-queue", - activities=[ - get_weather, - ], - workflows=[WeatherAgent], - max_cached_workflows=0, - ): - if use_local_model: - LLMRegistry.register(WeatherModel) - - # Test Weather Agent - handle = await client.start_workflow( - WeatherAgent.run, - args=[ - "What is the weather in New York?", - "weather_model" if use_local_model else "gemini-2.5-pro", - ], - id=f"weather-agent-workflow-{uuid.uuid4()}", - task_queue="adk-task-queue", - execution_timeout=timedelta(seconds=60), - ) - result = await handle.result() - print(f"Workflow result: {result}") - if use_local_model: - assert result is not None - assert result.content is not None - assert result.content.parts is not None - assert result.content.parts[0].text == "warm and sunny" - - -class ResearchModel(TestModel): - """Scripted coordinator -> researcher -> writer flow. - - Responses are keyed off which agent is calling (via its instruction text in - the request's system instruction) rather than deduped against conversation - history, since the ADK rewrites cross-agent history between versions (e.g. - 2.4 converts prior transfer calls into "For context:" text parts). - """ - - _responses_by_instruction = { - "You are a coordinator": LlmResponse( - content=Content( - role="model", - parts=[ - Part( - function_call=FunctionCall( - args={"agent_name": "researcher"}, - name="transfer_to_agent", - ) - ) - ], - ) - ), - "You are a researcher": LlmResponse( - content=Content( - role="model", - parts=[ - Part( - function_call=FunctionCall( - args={"agent_name": "writer"}, name="transfer_to_agent" - ) - ) - ], - ) - ), - "You are a poet": LlmResponse( - content=Content( - role="model", - parts=[Part(text="haiku")], - ) - ), - } - - def responses(self) -> list[LlmResponse]: - return list(self._responses_by_instruction.values()) - - async def generate_content_async( - self, llm_request: LlmRequest, stream: bool = False - ) -> AsyncGenerator[LlmResponse, None]: - instruction = str(llm_request.config.system_instruction or "") - for phrase, response in self._responses_by_instruction.items(): - if phrase in instruction: - yield response - return - raise ValueError(f"No scripted response for instruction: {instruction!r}") - - @classmethod - def supported_models(cls) -> list[str]: - return ["research_model"] - - -@pytest.mark.parametrize("use_local_model", [True, False]) -@pytest.mark.asyncio -async def test_multi_agent(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("GOOGLE_API_KEY"): - pytest.skip("No google API key") - - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin()] - client = Client(**new_config) - - # Run Worker with the ADK plugin - async with Worker( - client, - task_queue="adk-task-queue-multi-agent", - workflows=[MultiAgentWorkflow], - max_cached_workflows=0, - ): - if use_local_model: - LLMRegistry.register(ResearchModel) - - # Test Multi Agent - handle = await client.start_workflow( - MultiAgentWorkflow.run, - args=[ - "Run mult-agent flow", - "research_model" if use_local_model else "gemini-2.5-pro", - ], - id=f"multi-agent-workflow-{uuid.uuid4()}", - task_queue="adk-task-queue-multi-agent", - execution_timeout=timedelta(seconds=60), - ) - result = await handle.result() - print(f"Multi-Agent Workflow result: {result}") - if use_local_model: - assert result == "haiku" - - -def example_toolset(_: Any | None) -> McpToolset: - return McpToolset( - connection_params=StdioConnectionParams( - server_params=StdioServerParameters( - command="npx", - args=[ - "-y", - "@modelcontextprotocol/server-filesystem", - os.path.dirname(os.path.abspath(__file__)), - ], - ), - ), - ) - - -def mcp_agent(model_name: str) -> Agent: - return Agent( - name="test_agent", - # instruction="Always use your tools to answer questions.", - model=TemporalModel(model_name), - tools=[TemporalMcpToolSet("test_set", not_in_workflow_toolset=example_toolset)], - ) - - -@workflow.defn -class McpAgent: - @workflow.run - async def run(self, prompt: str, model_name: str) -> str: - logger.info("Workflow started.") - - # 1. Define Agent using Temporal Helpers - agent = mcp_agent(model_name) - - # 2. Create Session (uses runtime.new_uuid() -> workflow.uuid4()) - session_service = InMemorySessionService() - logger.info("Create session.") - session = await session_service.create_session( - app_name="test_app", user_id="test" - ) - - logger.info(f"Session created with ID: {session.id}") - - # 3. Run Agent with AgentPlugin - runner = Runner( - agent=agent, - app_name="test_app", - session_service=session_service, - ) - - last_event = None - async with Aclosing( - runner.run_async( - user_id="test", - session_id=session.id, - new_message=types.Content(role="user", parts=[types.Part(text=prompt)]), - ) - ) as agen: - async for event in agen: - logger.info(f"Event: {event}") - last_event = event - - assert last_event - assert last_event.content - assert last_event.content.parts - assert last_event.content.parts[0].text - return last_event.content.parts[0].text - - -class McpModel(TestModel): - def responses(self) -> list[LlmResponse]: - return [ - LlmResponse( - content=Content( - role="model", - parts=[ - Part( - function_call=FunctionCall( - args={ - "path": os.path.dirname(os.path.abspath(__file__)) - }, - name="list_directory", - ) - ) - ], - ) - ), - LlmResponse( - content=Content( - role="model", - parts=[Part(text="Some files.")], - ) - ), - ] - - @classmethod - def supported_models(cls) -> list[str]: - return ["mcp_model"] - - -@pytest.mark.parametrize("use_local_model", [True, False]) -@pytest.mark.asyncio -@pytest.mark.skip # Doesn't work well in CI currently -async def test_mcp_agent(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("GOOGLE_API_KEY"): - pytest.skip("No google API key") - - new_config = client.config() - new_config["plugins"] = [ - GoogleAdkPlugin( - toolset_providers=[ - TemporalMcpToolSetProvider( - "test_set", - example_toolset, - ) - ], - ) - ] - client = Client(**new_config) - - # Run Worker with the ADK plugin - async with Worker( - client, - task_queue="adk-task-queue-mcp", - workflows=[McpAgent], - max_cached_workflows=0, - ): - if use_local_model: - LLMRegistry.register(McpModel) - - # Test Multi Agent - handle = await client.start_workflow( - McpAgent.run, - args=[ - "What files are in the current directory?", - "mcp_model" if use_local_model else "gemini-2.5-pro", - ], - id=f"mcp-agent-workflow-{uuid.uuid4()}", - task_queue="adk-task-queue-mcp", - execution_timeout=timedelta(seconds=60), - ) - result = await handle.result() - print(f"MCP-Agent Workflow result: {result}") - if use_local_model: - assert result == "Some files." - - -@pytest.mark.asyncio -async def test_single_agent_telemetry( - client: Client, - reset_otel_tracer_provider, # type: ignore[reportUnusedParameter] -): - exporter = InMemorySpanExporter() - provider = create_tracer_provider() - provider.add_span_processor(SimpleSpanProcessor(exporter)) - set_tracer_provider(provider) - assert get_tracer_provider() is provider, ( - "Global tracer provider install was a no-op; a previous test in this" - " process left a provider set without resetting it" - ) - # Instrumentors are process-global singletons bound to the provider seen - # at instrument() time; without uninstrument() ADK code in every later - # test in this process would keep emitting spans into this test's - # provider, and re-instrumentation attempts would silently no-op. - GoogleADKInstrumentor().instrument() - try: - new_config = client.config() - new_config["plugins"] = [ - GoogleAdkPlugin(), - OpenTelemetryPlugin(add_temporal_spans=True), - ] - client = Client(**new_config) - - # Run Worker with the ADK plugin - async with Worker( - client, - task_queue="adk-task-queue-telemetry", - activities=[ - get_weather, - ], - workflows=[WeatherAgent], - max_cached_workflows=0, - ): - LLMRegistry.register(WeatherModel) - - # Test Weather Agent - handle = await client.start_workflow( - WeatherAgent.run, - args=[ - "What is the weather in New York?", - "weather_model", - ], - id=f"weather-agent-telemetry-workflow-{uuid.uuid4()}", - task_queue="adk-task-queue-telemetry", - execution_timeout=timedelta(seconds=60), - ) - result = await handle.result() - print(f"Workflow result: {result}") - - assert result is not None - assert result.content is not None - assert result.content.parts is not None - assert result.content.parts[0].text == "warm and sunny" - finally: - GoogleADKInstrumentor().uninstrument() - - print("\n".join(dump_spans(exporter.get_finished_spans(), with_attributes=False))) - assert dump_spans(exporter.get_finished_spans(), with_attributes=False) == [ - "StartWorkflow:WeatherAgent", - " RunWorkflow:WeatherAgent", - " invocation [test_app]", - " agent_run [test_agent]", - " call_llm", - " StartActivity:invoke_model", - " RunActivity:invoke_model", - " execute_tool get_weather", - " StartActivity:get_weather", - " RunActivity:get_weather", - " call_llm", - " StartActivity:invoke_model", - " RunActivity:invoke_model", - ] - - -async def test_unsetting_timeout(): - model = TemporalModel("", ActivityConfig(start_to_close_timeout=None)) - assert model._activity_config.get("start_to_close_timeout", None) is None - - -class SummaryFnModel(TestModel): - """Returns a single text response for summary_fn testing.""" - - def responses(self) -> list[LlmResponse]: - return [ - LlmResponse(content=Content(role="model", parts=[Part(text="response")])), - ] - - @classmethod - def supported_models(cls) -> list[str]: - return ["summary_fn_model"] - - -@workflow.defn -class SummaryTestWorkflow: - @workflow.run - async def run(self, model_name: str) -> None: - modes = [ - ("dynamic", lambda req: f"Invoking {req.model}"), - ("none", lambda req: None), - ("empty", lambda req: ""), - ("label_fallback", None), - ] - for mode_name, summary_fn in modes: - agent = Agent( - name=f"summary_test_{mode_name}", - model=TemporalModel(model_name, summary_fn=summary_fn), - ) - runner = InMemoryRunner(agent=agent, app_name=f"summary_{mode_name}") - session = await runner.session_service.create_session( - app_name=f"summary_{mode_name}", user_id="test" - ) - async with Aclosing( - runner.run_async( - user_id="test", - session_id=session.id, - new_message=types.Content( - role="user", parts=[types.Part(text="hi")] - ), - ) - ) as agen: - async for _ in agen: - pass - - -@pytest.mark.asyncio -async def test_summary_fn_variants(client: Client): - """Test summary_fn with dynamic, None, empty string, and label fallback.""" - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin()] - client = Client(**new_config) - LLMRegistry.register(SummaryFnModel) - - async with Worker( - client, - task_queue="adk-summary-test", - workflows=[SummaryTestWorkflow], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - SummaryTestWorkflow.run, - "summary_fn_model", - id=f"summary-test-{uuid.uuid4()}", - task_queue="adk-summary-test", - execution_timeout=timedelta(seconds=60), - ) - await handle.result() - - summaries = [] - async for e in handle.fetch_history_events(): - if e.HasField("activity_task_scheduled_event_attributes"): - attrs = e.activity_task_scheduled_event_attributes - if attrs.activity_type.name == "invoke_model": - summaries.append(e.user_metadata.summary.data) - - assert len(summaries) == 4 - assert summaries[0] == b'"Invoking summary_fn_model"' # dynamic - assert summaries[1] == b"" # none - assert summaries[2] == b"" # empty - assert ( - summaries[3] == b'"summary_test_label_fallback"' - ) # label fallback agent name - - -def test_summary_and_summary_fn_raises(): - """Cannot specify both summary and summary_fn.""" - with pytest.raises( - ValueError, - match="Cannot specify both ActivityConfig 'summary' and 'summary_fn'", - ): - TemporalModel( - "m", - activity_config=ActivityConfig(summary="static"), - summary_fn=lambda req: "dynamic", - ) - - -@pytest.mark.asyncio -async def test_agent_outside_workflow(): - """Test that an agent using TemporalModel and activity_as_tool works outside a Temporal workflow.""" - LLMRegistry.register(WeatherModel) - - agent = weather_agent("weather_model") - - runner = InMemoryRunner( - agent=agent, - app_name="test_app_local", - ) - - session = await runner.session_service.create_session( - app_name="test_app_local", user_id="test" - ) - - last_event = None - async with Aclosing( - runner.run_async( - user_id="test", - session_id=session.id, - new_message=types.Content( - role="user", parts=[types.Part(text="What is the weather in New York?")] - ), - ) - ) as agen: - async for event in agen: - last_event = event - - assert last_event is not None - assert last_event.content is not None - assert last_event.content.parts is not None - assert last_event.content.parts[0].text == "warm and sunny" - - -@pytest.mark.asyncio -@pytest.mark.skip # Doesn't work well in CI currently -async def test_mcp_agent_outside_workflow(): - """Test that an agent using TemporalMcpToolSet works outside a Temporal workflow.""" - LLMRegistry.register(McpModel) - - agent = mcp_agent("mcp_model") - - session_service = InMemorySessionService() - session = await session_service.create_session( - app_name="test_app_local", user_id="test" - ) - - runner = Runner( - agent=agent, - app_name="test_app_local", - session_service=session_service, - ) - - last_event = None - async with Aclosing( - runner.run_async( - user_id="test", - session_id=session.id, - new_message=types.Content( - role="user", - parts=[types.Part(text="What files are in the current directory?")], - ), - ) - ) as agen: - async for event in agen: - last_event = event - - assert last_event is not None - assert last_event.content is not None - assert last_event.content.parts is not None - assert last_event.content.parts[0].text == "Some files." - - -@pytest.mark.asyncio -async def test_mcp_toolset_outside_workflow_no_not_in_workflow_toolset(): - """Test that TemporalMcpToolSet raises ValueError outside a workflow with no not_in_workflow_toolset.""" - toolset = TemporalMcpToolSet("test_set_no_local") - with pytest.raises( - ValueError, - match="not_in_workflow_toolset", - ): - await toolset.get_tools() - - -complex_activity_inputs_seen: dict[str, object] = {} - - -@activity.defn -async def book_trip(origin: str, destination: str, passengers: int) -> str: - """Activity that formats multiple discrete arguments.""" - complex_activity_inputs_seen["book_trip"] = (origin, destination, passengers) - return f"{origin}->{destination}:{passengers}" - - -@activity.defn -async def summarize_payload( - name: str, metadata: dict[str, str | int | list[str]] -) -> str: - """Activity that formats compound map input.""" - complex_activity_inputs_seen["summarize_payload"] = (name, metadata) - tags = metadata.get("tags", []) - assert isinstance(tags, list) - return f"{name}:{metadata['count']}:{metadata['owner']}:" + ",".join( - str(tag) for tag in tags - ) - - -class ComplexActivityMethodHolder: - def __init__(self, prefix: str) -> None: - self.prefix = prefix - - @activity.defn - async def annotate_trip(self, trip: str) -> str: - complex_activity_inputs_seen["annotate_trip"] = trip - return f"{self.prefix}:{trip}" - - -@workflow.defn -class ComplexActivityInputAgent: - @workflow.run - async def run(self, prompt: str, model_name: str) -> str: - logger.info("Workflow started.") - method_holder = ComplexActivityMethodHolder("method") - - agent = Agent( - name="complex_input_agent", - model=TemporalModel(model_name), - tools=[ - temporalio.contrib.google_adk_agents.workflow.activity_as_tool( - book_trip, start_to_close_timeout=timedelta(seconds=60) - ), - temporalio.contrib.google_adk_agents.workflow.activity_as_tool( - summarize_payload, start_to_close_timeout=timedelta(seconds=60) - ), - temporalio.contrib.google_adk_agents.workflow.activity_as_tool( - method_holder.annotate_trip, - start_to_close_timeout=timedelta(seconds=60), - ), - ], - ) - - runner = InMemoryRunner( - agent=agent, - app_name="complex_input_app", - ) - - session = await runner.session_service.create_session( - app_name="complex_input_app", user_id="test" - ) - - final_text = "" - async with Aclosing( - runner.run_async( - user_id="test", - session_id=session.id, - new_message=types.Content(role="user", parts=[types.Part(text=prompt)]), - ) - ) as agen: - async for event in agen: - logger.info(f"Event: {event}") - if event.content and event.content.parts: - for part in event.content.parts: - if part.text is not None: - final_text = part.text - - return final_text - - -class ComplexActivityInputModel(TestModel): - def responses(self) -> list[LlmResponse]: - return [ - LlmResponse( - content=Content( - role="model", - parts=[ - Part( - function_call=FunctionCall( - name="book_trip", - args={ - "origin": "SFO", - "destination": "LAX", - "passengers": 3, - }, - ) - ) - ], - ) - ), - LlmResponse( - content=Content( - role="model", - parts=[ - Part( - function_call=FunctionCall( - name="summarize_payload", - args={ - "name": "fixture", - "metadata": { - "count": 2, - "owner": "team-a", - "tags": ["alpha", "beta"], - }, - }, - ) - ) - ], - ) - ), - LlmResponse( - content=Content( - role="model", - parts=[ - Part( - function_call=FunctionCall( - name="annotate_trip", - args={"trip": "SFO->LAX:3"}, - ) - ) - ], - ) - ), - LlmResponse( - content=Content( - role="model", - parts=[Part(text="completed complex input tool calls")], - ) - ), - ] - - @classmethod - def supported_models(cls) -> list[str]: - return ["complex_activity_input_model"] - - -@pytest.mark.asyncio -async def test_activity_as_tool_supports_complex_inputs_via_adk(client: Client): - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin()] - client = Client(**new_config) - complex_activity_inputs_seen.clear() - method_holder = ComplexActivityMethodHolder("method") - - async with Worker( - client, - task_queue="adk-task-queue-complex-inputs", - activities=[ - book_trip, - summarize_payload, - method_holder.annotate_trip, - ], - workflows=[ComplexActivityInputAgent], - max_cached_workflows=0, - ): - LLMRegistry.register(ComplexActivityInputModel) - - handle = await client.start_workflow( - ComplexActivityInputAgent.run, - args=[ - "Run every registered tool using structured inputs.", - "complex_activity_input_model", - ], - id=f"complex-activity-input-workflow-{uuid.uuid4()}", - task_queue="adk-task-queue-complex-inputs", - execution_timeout=timedelta(seconds=60), - ) - result = await handle.result() - assert result == "completed complex input tool calls" - assert complex_activity_inputs_seen == { - "book_trip": ("SFO", "LAX", 3), - "summarize_payload": ( - "fixture", - {"count": 2, "owner": "team-a", "tags": ["alpha", "beta"]}, - ), - "annotate_trip": "SFO->LAX:3", - } - - -def litellm_agent(model_name: str) -> Agent: - return Agent( - name="litellm_test_agent", - model=TemporalModel(model_name), - ) - - -@workflow.defn -class LiteLlmWorkflow: - @workflow.run - async def run(self, prompt: str, model_name: str) -> Event | None: - agent = litellm_agent(model_name) - - runner = InMemoryRunner( - agent=agent, - app_name="litellm_test_app", - ) - - session = await runner.session_service.create_session( - app_name="litellm_test_app", user_id="test" - ) - - last_event = None - async with Aclosing( - runner.run_async( - user_id="test", - session_id=session.id, - new_message=types.Content(role="user", parts=[types.Part(text=prompt)]), - ) - ) as agen: - async for event in agen: - last_event = event - - return last_event - - -@pytest.mark.asyncio -async def test_litellm_model(client: Client): - """Test that a litellm-backed model works with TemporalModel through a full Temporal workflow.""" - import litellm as litellm_module - from google.adk.models.lite_llm import LiteLlm - from litellm import ModelResponse - from litellm.llms.custom_llm import CustomLLM - - class FakeLiteLlmProvider(CustomLLM): - """A fake litellm provider that returns canned responses locally.""" - - def _make_response(self, model: str) -> ModelResponse: - return ModelResponse( - choices=[ - { - "message": { - "content": "hello from litellm", - "role": "assistant", - }, - "index": 0, - "finish_reason": "stop", - } - ], - model=model, - ) - - def completion(self, *args: Any, **kwargs: Any) -> ModelResponse: - model = args[0] if args else kwargs.get("model", "unknown") - return self._make_response(model) - - async def acompletion(self, *args: Any, **kwargs: Any) -> ModelResponse: - return self.completion(*args, **kwargs) - - class FakeLiteLlm(LiteLlm): - """LiteLlm subclass that supports the fake/test-model name for testing.""" - - @classmethod - def supported_models(cls) -> list[str]: - return ["fake/test-model"] - - # Register our fake provider with litellm - litellm_module.custom_provider_map = [ - {"provider": "fake", "custom_handler": FakeLiteLlmProvider()} - ] - - LLMRegistry.register(FakeLiteLlm) - - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin()] - client = Client(**new_config) - - async with Worker( - client, - task_queue="adk-task-queue-litellm", - workflows=[LiteLlmWorkflow], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - LiteLlmWorkflow.run, - args=["Say hello", "fake/test-model"], - id=f"litellm-agent-workflow-{uuid.uuid4()}", - task_queue="adk-task-queue-litellm", - execution_timeout=timedelta(seconds=60), - ) - result = await handle.result() - - assert result is not None - assert result.content is not None - assert result.content.parts is not None - assert result.content.parts[0].text == "hello from litellm" - - -def test_unset_none_fields_stripped() -> None: - """ADK plugin converter strips unset None fields from Pydantic payloads.""" - plugin = GoogleAdkPlugin() - converter = plugin._configure_data_converter(None) - request = LlmRequest( - model="gemini-2.0-flash", - contents=[Content(parts=[Part(text="hello")])], - ) - payloads = converter.payload_converter.to_payloads([request]) - serialized = json.loads(payloads[0].data) - - assert serialized["model"] == "gemini-2.0-flash" - assert "contents" in serialized - for field in ( - "cache_config", - "cache_metadata", - "cacheable_contents_token_count", - "previous_interaction_id", - ): - assert field not in serialized, f"Unset field {field!r} should be stripped" - - -def test_explicitly_set_none_preserved() -> None: - """Explicitly-set None is preserved (exclude_unset, not exclude_none).""" - plugin = GoogleAdkPlugin() - converter = plugin._configure_data_converter(None) - request = LlmRequest( - model="gemini-2.0-flash", - contents=[Content(parts=[Part(text="hello")])], - cache_config=None, - ) - payloads = converter.payload_converter.to_payloads([request]) - serialized = json.loads(payloads[0].data) - - assert "cache_config" in serialized, "Explicitly-set None should be preserved" - assert serialized["cache_config"] is None - - -def test_activity_as_tool_preserves_metadata() -> None: - """activity_as_tool wrapper preserves the original function's metadata. - - This ensures ADK's tool schema generation can inspect __annotations__ - and __module__ on the wrapper, which are needed by - ``_handle_params_as_deferred_annotations`` to resolve type hints. - """ - - @activity.defn - async def my_activity(city: str, count: int = 1) -> str: - """Get info for a city.""" - return f"{city}: {count}" - - tool = temporalio.contrib.google_adk_agents.workflow.activity_as_tool( - my_activity, start_to_close_timeout=timedelta(seconds=30) - ) - - # __name__ and __doc__ - assert tool.__name__ == "my_activity" - assert tool.__doc__ == "Get info for a city." - - # __annotations__ — critical for ADK type introspection - assert "city" in tool.__annotations__ - assert tool.__annotations__["city"] is str - assert tool.__annotations__["count"] is int - assert tool.__annotations__["return"] is str - - # __module__ — needed by _handle_params_as_deferred_annotations - assert tool.__module__ == my_activity.__module__ - - # __signature__ — must match the original, not *args/**kw - sig = inspect.signature(tool) - params = list(sig.parameters.keys()) - assert params == ["city", "count"] - assert sig.parameters["city"].annotation is str - assert sig.parameters["count"].default == 1 diff --git a/tests/contrib/google_adk_agents/test_google_adk_agents_replay.py b/tests/contrib/google_adk_agents/test_google_adk_agents_replay.py deleted file mode 100644 index 810ca95f0..000000000 --- a/tests/contrib/google_adk_agents/test_google_adk_agents_replay.py +++ /dev/null @@ -1,33 +0,0 @@ -from pathlib import Path - -import pytest -from google.adk.models import LLMRegistry - -from temporalio.client import WorkflowHistory -from temporalio.contrib.google_adk_agents import GoogleAdkPlugin -from temporalio.worker import Replayer -from tests.contrib.google_adk_agents.test_google_adk_agents import ( - MultiAgentWorkflow, - ResearchModel, - WeatherAgent, - WeatherModel, -) - - -@pytest.mark.parametrize( - "file_name", - [ - "multi_agent.json", - "single_agent.json", - ], -) -async def test_replay(file_name: str) -> None: - with (Path(__file__).with_name("histories") / file_name).open("r") as f: - history_json = f.read() - - LLMRegistry.register(ResearchModel) - LLMRegistry.register(WeatherModel) - await Replayer( - workflows=[MultiAgentWorkflow, WeatherAgent], - plugins=[GoogleAdkPlugin()], - ).replay_workflow(WorkflowHistory.from_json("fake", history_json)) diff --git a/tests/contrib/google_adk_agents/test_mcp.py b/tests/contrib/google_adk_agents/test_mcp.py deleted file mode 100644 index 38303ffee..000000000 --- a/tests/contrib/google_adk_agents/test_mcp.py +++ /dev/null @@ -1,228 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Unit tests for the stateless MCP toolset support in -``temporalio.contrib.google_adk_agents._mcp``. - -These exercise ``TemporalMcpToolSetProvider``'s generated activities directly -against a fake ``McpToolset``, so they don't require a real MCP server, a -Temporal test server, or a full ``Worker``. They are targeted regression tests -for the connection-leak fix (issue #1663): every call builds its own toolset, -honors that call's ``factory_argument``, and always closes the toolset. -""" - -from typing import Any, cast - -import pytest -from google.adk.events import EventActions -from google.adk.tools.mcp_tool import McpToolset - -from temporalio.contrib.google_adk_agents._mcp import ( - TemporalMcpToolSetProvider, - TemporalToolContext, - _CallToolArguments, - _GetToolsArguments, -) - - -class _FakeTool: - def __init__(self, name: str, *, fail_run: bool = False) -> None: - self.name = name - self.description = "a fake tool" - self.is_long_running = False - self.custom_metadata: dict[str, Any] | None = None - self._fail_run = fail_run - - def _get_declaration(self) -> None: - return None - - async def run_async( - self, - *, - args: dict[str, Any], - tool_context: Any, # pyright: ignore[reportUnusedParameter] - ) -> Any: - if self._fail_run: - raise RuntimeError("tool call failed") - return {"echo": args} - - -class _FakeToolset: - """Stands in for ``google.adk.tools.mcp_tool.McpToolset``. - - Tracks whether ``close()`` was called so tests can assert the stateless - path always tears the toolset down, and records the ``factory_argument`` - it was created with so tests can prove each call routes with its own - argument. - """ - - def __init__( - self, - factory_argument: Any = None, - *, - fail_get_tools: bool = False, - fail_run: bool = False, - ) -> None: - self.factory_argument = factory_argument - self.closed = False - self._fail_get_tools = fail_get_tools - self._fail_run = fail_run - - async def get_tools(self) -> list[_FakeTool]: - if self._fail_get_tools: - raise RuntimeError("get_tools failed") - return [_FakeTool("echo", fail_run=self._fail_run)] - - async def close(self) -> None: - self.closed = True - - -def _tool_context() -> TemporalToolContext: - return TemporalToolContext( - tool_confirmation=None, - function_call_id=None, - event_actions=EventActions(), - ) - - -def _call_tool_args(factory_argument: Any = None) -> _CallToolArguments: - return _CallToolArguments( - factory_argument=factory_argument, - name="echo", - arguments={"x": 1}, - tool_context=_tool_context(), - ) - - -async def test_call_tool_creates_and_closes_fresh_toolset_each_call(): - """Each call_tool builds its own toolset and closes it, every time.""" - created: list[_FakeToolset] = [] - - def factory(arg: Any) -> McpToolset: - toolset = _FakeToolset(arg) - created.append(toolset) - return cast(McpToolset, cast(object, toolset)) - - provider = TemporalMcpToolSetProvider("stateless_reuse", factory) - _, call_tool = provider._get_activities() - - for _ in range(5): - result = await call_tool(_call_tool_args()) - assert result.result == {"echo": {"x": 1}} - - # One fresh toolset per call, and every one was closed. - assert len(created) == 5 - assert all(t.closed for t in created) - - -async def test_get_tools_creates_and_closes_fresh_toolset(): - created: list[_FakeToolset] = [] - - def factory(arg: Any) -> McpToolset: - toolset = _FakeToolset(arg) - created.append(toolset) - return cast(McpToolset, cast(object, toolset)) - - provider = TemporalMcpToolSetProvider("stateless_list", factory) - get_tools, _ = provider._get_activities() - - tools = await get_tools(_GetToolsArguments(factory_argument=None)) - assert [t.name for t in tools] == ["echo"] - - assert len(created) == 1 - assert created[0].closed - - -async def test_factory_argument_honored_on_every_call(): - """The bug the reviewer flagged: a later call with a different - ``factory_argument`` must route with *its own* argument, never silently - reuse a connection opened for an earlier argument. - """ - created: list[_FakeToolset] = [] - - def factory(arg: Any) -> McpToolset: - toolset = _FakeToolset(arg) - created.append(toolset) - return cast(McpToolset, cast(object, toolset)) - - provider = TemporalMcpToolSetProvider("stateless_routing", factory) - _, call_tool = provider._get_activities() - - await call_tool(_call_tool_args(factory_argument="tenant-a")) - await call_tool(_call_tool_args(factory_argument="tenant-b")) - - assert [t.factory_argument for t in created] == ["tenant-a", "tenant-b"] - assert all(t.closed for t in created) - - -async def test_call_tool_closes_toolset_on_error(): - """A failure mid-call still closes the toolset (no leak on the error path).""" - created: list[_FakeToolset] = [] - - def factory(arg: Any) -> McpToolset: - toolset = _FakeToolset(arg, fail_run=True) - created.append(toolset) - return cast(McpToolset, cast(object, toolset)) - - provider = TemporalMcpToolSetProvider("stateless_run_error", factory) - _, call_tool = provider._get_activities() - - with pytest.raises(RuntimeError, match="tool call failed"): - await call_tool(_call_tool_args()) - - assert len(created) == 1 - assert created[0].closed - - -async def test_get_tools_closes_toolset_on_error(): - created: list[_FakeToolset] = [] - - def factory(arg: Any) -> McpToolset: - toolset = _FakeToolset(arg, fail_get_tools=True) - created.append(toolset) - return cast(McpToolset, cast(object, toolset)) - - provider = TemporalMcpToolSetProvider("stateless_list_error", factory) - get_tools, _ = provider._get_activities() - - with pytest.raises(RuntimeError, match="get_tools failed"): - await get_tools(_GetToolsArguments(factory_argument=None)) - - assert len(created) == 1 - assert created[0].closed - - -async def test_call_tool_no_matching_tool_still_closes(): - """A business-logic ApplicationError still closes the fresh toolset.""" - created: list[_FakeToolset] = [] - - def factory(arg: Any) -> McpToolset: - toolset = _FakeToolset(arg) - created.append(toolset) - return cast(McpToolset, cast(object, toolset)) - - provider = TemporalMcpToolSetProvider("stateless_no_match", factory) - _, call_tool = provider._get_activities() - - args = _CallToolArguments( - factory_argument=None, - name="does_not_exist", - arguments={}, - tool_context=_tool_context(), - ) - with pytest.raises(Exception, match="Unable to find matching mcp tool"): - await call_tool(args) - - assert len(created) == 1 - assert created[0].closed diff --git a/tests/contrib/google_adk_agents/test_replay_metrics.py b/tests/contrib/google_adk_agents/test_replay_metrics.py deleted file mode 100644 index 689e58820..000000000 --- a/tests/contrib/google_adk_agents/test_replay_metrics.py +++ /dev/null @@ -1,537 +0,0 @@ -"""Tests for replay-safe handling of ADK's OpenTelemetry metrics and log events. - -Google ADK records token-usage/latency metrics and emits gen_ai.* log events -through the process-global OpenTelemetry providers (scope "gcp.vertex.agent") -from code that runs workflow-side under the Temporal adapter. Without gating, -1 real execution + N replays produces (1 + N) observations per instrument and -(1 + N) copies of every log event, while the activity (the model / tool call) -runs exactly once. Installing ReplaySafeMeterProvider / -ReplaySafeLoggerProvider as the global providers suppresses the replay -recordings while leaving first-execution recordings intact. -""" - -import inspect -import uuid -import warnings -from collections.abc import AsyncGenerator -from datetime import timedelta - -import google.adk.telemetry.tracing -import opentelemetry._logs -import opentelemetry.metrics -import pytest -from google.adk import Agent -from google.adk.models import BaseLlm, LLMRegistry -from google.adk.models.llm_request import LlmRequest -from google.adk.models.llm_response import LlmResponse -from google.adk.runners import InMemoryRunner -from google.adk.utils.context_utils import Aclosing -from google.genai import types -from opentelemetry._logs import LoggerProvider as ApiLoggerProvider -from opentelemetry.metrics import Meter -from opentelemetry.metrics import MeterProvider as ApiMeterProvider -from opentelemetry.sdk._logs import LoggerProvider -from opentelemetry.sdk._logs.export import ( - InMemoryLogRecordExporter, - SimpleLogRecordProcessor, -) -from opentelemetry.sdk.metrics import MeterProvider -from opentelemetry.sdk.metrics.export import InMemoryMetricReader -from opentelemetry.sdk.trace import TracerProvider -from opentelemetry.trace import TracerProvider as ApiTracerProvider -from opentelemetry.trace import get_tracer_provider, set_tracer_provider -from opentelemetry.util.types import Attributes - -import temporalio.contrib.google_adk_agents.workflow -from temporalio import activity, workflow -from temporalio.api.enums.v1 import EventType -from temporalio.client import Client -from temporalio.contrib.google_adk_agents import GoogleAdkPlugin, TemporalModel -from temporalio.contrib.opentelemetry import ( - ReplaySafeLoggerProvider, - ReplaySafeMeterProvider, - create_tracer_provider, -) -from temporalio.worker import Replayer, Worker, WorkerConfig -from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner - -MODEL_NAME = "replay-metrics-model" -ADK_METER_SCOPE = "gcp.vertex.agent" - -# One agent invocation, one tool call, two model calls (tool call + final -# answer), token usage recorded twice per model call (input + output). -EXPECTED_BASELINE = { - "gen_ai.invoke_agent.duration": 1, - "gen_ai.invoke_agent.inference_calls": 1, - "gen_ai.invoke_agent.tool_calls": 1, - "gen_ai.execute_tool.duration": 1, - "gen_ai.client.operation.duration": 2, - "gen_ai.client.token.usage": 4, -} - -# Log events per model call: one gen_ai.system.message, one -# gen_ai.user.message per request content (1 for the first call; 3 for the -# second: prompt + tool call + tool response), one gen_ai.choice per result. -EXPECTED_LOG_BASELINE = { - "gen_ai.system.message": 2, - "gen_ai.user.message": 4, - "gen_ai.choice": 2, -} - -# The OTel globals are set-once per process and these tests share xdist -# workers with arbitrary sibling tests, so every install asserts it took -# effect: a leaked global from a sibling would otherwise surface as -# mysteriously failing count assertions here (and vice versa). - - -def _install_global_meter_provider(provider: ApiMeterProvider) -> None: - opentelemetry.metrics.set_meter_provider(provider) - assert opentelemetry.metrics.get_meter_provider() is provider, ( - "Global meter provider install was a no-op; a previous test in this" - " process left a provider set without resetting it" - ) - - -def _install_global_tracer_provider(provider: ApiTracerProvider) -> None: - set_tracer_provider(provider) - assert get_tracer_provider() is provider, ( - "Global tracer provider install was a no-op; a previous test in this" - " process left a provider set without resetting it" - ) - - -def _install_global_logger_provider(provider: ApiLoggerProvider) -> None: - opentelemetry._logs.set_logger_provider(provider) - assert opentelemetry._logs.get_logger_provider() is provider, ( - "Global logger provider install was a no-op; a previous test in this" - " process left a provider set without resetting it" - ) - - -# Counts real (worker-side) activity executions; replays must not add to it. -activity_executions = 0 - - -@activity.defn -async def replay_metrics_get_weather(city: str) -> str: # type: ignore[reportUnusedParameter] - global activity_executions - activity_executions += 1 - return "Warm and sunny. 17 degrees." - - -class ReplayMetricsModel(BaseLlm): - """Scripted model: one tool call, then a final text answer. - - Both responses carry usage_metadata so gen_ai.client.token.usage records. - """ - - @classmethod - def supported_models(cls) -> list[str]: - return [MODEL_NAME] - - def _responses(self) -> list[LlmResponse]: - return [ - LlmResponse( - content=types.Content( - role="model", - parts=[ - types.Part( - function_call=types.FunctionCall( - args={"city": "New York"}, - name="replay_metrics_get_weather", - ) - ) - ], - ), - usage_metadata=types.GenerateContentResponseUsageMetadata( - prompt_token_count=100, - candidates_token_count=25, - total_token_count=125, - ), - ), - LlmResponse( - content=types.Content( - role="model", - parts=[types.Part(text="warm and sunny")], - ), - usage_metadata=types.GenerateContentResponseUsageMetadata( - prompt_token_count=200, - candidates_token_count=10, - total_token_count=210, - ), - ), - ] - - async def generate_content_async( - self, llm_request: LlmRequest, stream: bool = False - ) -> AsyncGenerator[LlmResponse, None]: - for response in self._responses(): - if any(content == response.content for content in llm_request.contents): - continue - yield response - return - - -@workflow.defn -class ReplayMetricsAgent: - @workflow.run - async def run(self, prompt: str, model_name: str) -> str | None: - weather_tool = temporalio.contrib.google_adk_agents.workflow.activity_as_tool( - replay_metrics_get_weather, - start_to_close_timeout=timedelta(seconds=60), - ) - agent = Agent( - name="replay_metrics_agent", - model=TemporalModel(model_name), - tools=[weather_tool], - ) - runner = InMemoryRunner(agent=agent, app_name="replay_metrics_app") - session = await runner.session_service.create_session( - app_name="replay_metrics_app", user_id="test" - ) - last_text = None - async with Aclosing( - runner.run_async( - user_id="test", - session_id=session.id, - new_message=types.Content(role="user", parts=[types.Part(text=prompt)]), - ) - ) as agen: - async for event in agen: - if ( - event.content - and event.content.parts - and event.content.parts[0].text - ): - last_text = event.content.parts[0].text - return last_text - - -def adk_metric_counts(reader: InMemoryMetricReader) -> dict[str, int]: - """Total observation count per ADK instrument (sum of data-point counts).""" - counts: dict[str, int] = {} - data = reader.get_metrics_data() - if data is None: - return counts - for rm in data.resource_metrics: - for sm in rm.scope_metrics: - if sm.scope.name != ADK_METER_SCOPE: - continue - for metric in sm.metrics: - for dp in getattr(metric.data, "data_points", []): - counts[metric.name] = counts.get(metric.name, 0) + getattr( - dp, "count", 1 - ) - return counts - - -def adk_log_event_counts(exporter: InMemoryLogRecordExporter) -> dict[str, int]: - """Emission count per ADK log event name.""" - counts: dict[str, int] = {} - for log in exporter.get_finished_logs(): - if log.instrumentation_scope is None or ( - log.instrumentation_scope.name != ADK_METER_SCOPE - ): - continue - event_name = log.log_record.event_name - if event_name: - counts[event_name] = counts.get(event_name, 0) + 1 - return counts - - -@pytest.fixture -def reset_adk_proxy_logger(): - """Clear ADK's cached proxy logger binding around tests. - - ADK's module-level otel_logger is a proxy that caches its real logger on - first emit and never rebinds, even across a later set_logger_provider - call, so each test must clear the cache for its own provider to receive - the events. - """ - - def clear() -> None: - proxy = google.adk.telemetry.tracing.otel_logger - if hasattr(proxy, "_real_logger"): - proxy._real_logger = None # type: ignore[attr-defined] - - clear() - yield - clear() - - -async def _run_once_and_replay(client: Client, num_replays: int) -> int: - """Run the agent workflow once for real, then replay it num_replays times. - - Returns the number of real activity executions observed for this run. - Skips the calling test if the live run's history shows a workflow task - retry: a retried task legitimately re-records live telemetry - (at-least-once semantics), which would break the exact-count assertions - the callers make. - """ - LLMRegistry.register(ReplayMetricsModel) - - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin()] - client = Client(**new_config) - - activity_executions_before = activity_executions - task_queue = f"replay-metrics-{uuid.uuid4()}" - # Deliberately not setting max_cached_workflows=0 so the live run is - # exactly one real execution with no forced replay per workflow task. - async with Worker( - client, - task_queue=task_queue, - activities=[replay_metrics_get_weather], - workflows=[ReplayMetricsAgent], - ): - handle = await client.start_workflow( - ReplayMetricsAgent.run, - args=["What is the weather in New York?", MODEL_NAME], - id=f"replay-metrics-{uuid.uuid4()}", - task_queue=task_queue, - execution_timeout=timedelta(seconds=60), - ) - result = await handle.result() - assert result == "warm and sunny" - history = await handle.fetch_history() - - if any( - event.event_type - in ( - EventType.EVENT_TYPE_WORKFLOW_TASK_FAILED, - EventType.EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT, - ) - for event in history.events - ): - pytest.skip( - "Workflow task retried during the live run; exact telemetry " - "counts require a retry-free history" - ) - - for _ in range(num_replays): - await Replayer( - workflows=[ReplayMetricsAgent], - plugins=[GoogleAdkPlugin()], - ).replay_workflow(history) - - return activity_executions - activity_executions_before - - -async def test_replay_safe_meter_provider_suppresses_replay_metrics( - client: Client, - reset_otel_meter_provider, # type: ignore[reportUnusedParameter] -): - reader = InMemoryMetricReader() - _install_global_meter_provider( - ReplaySafeMeterProvider(MeterProvider(metric_readers=[reader])) - ) - - real_executions = await _run_once_and_replay(client, num_replays=3) - - # First execution recorded exactly once (not suppressed), replays added - # zero observations, and the activity never re-executed. - assert real_executions == 1 - assert adk_metric_counts(reader) == EXPECTED_BASELINE - - -async def test_replay_metrics_duplicate_without_replay_safe_meter_provider( - client: Client, - reset_otel_meter_provider, # type: ignore[reportUnusedParameter] -): - # Control: without the wrapper, every replay re-records every - # workflow-side ADK metric even though nothing really re-executed. - reader = InMemoryMetricReader() - _install_global_meter_provider(MeterProvider(metric_readers=[reader])) - - real_executions = await _run_once_and_replay(client, num_replays=3) - - assert real_executions == 1 - assert adk_metric_counts(reader) == { - name: count * (1 + 3) for name, count in EXPECTED_BASELINE.items() - } - - -def _in_memory_logger_provider() -> tuple[LoggerProvider, InMemoryLogRecordExporter]: - exporter = InMemoryLogRecordExporter() - provider = LoggerProvider() - provider.add_log_record_processor(SimpleLogRecordProcessor(exporter)) - return provider, exporter - - -async def test_replay_safe_logger_provider_suppresses_replay_log_events( - client: Client, - reset_otel_logger_provider, # type: ignore[reportUnusedParameter] - reset_adk_proxy_logger, # type: ignore[reportUnusedParameter] -): - provider, exporter = _in_memory_logger_provider() - _install_global_logger_provider(ReplaySafeLoggerProvider(provider)) - - real_executions = await _run_once_and_replay(client, num_replays=3) - - # First execution emitted exactly once (not suppressed), replays added - # zero log events, and the activity never re-executed. - assert real_executions == 1 - assert adk_log_event_counts(exporter) == EXPECTED_LOG_BASELINE - - -async def test_replay_log_events_duplicate_without_replay_safe_logger_provider( - client: Client, - reset_otel_logger_provider, # type: ignore[reportUnusedParameter] - reset_adk_proxy_logger, # type: ignore[reportUnusedParameter] -): - # Control: without the wrapper, every replay re-emits every workflow-side - # ADK log event even though nothing really re-executed. - provider, exporter = _in_memory_logger_provider() - _install_global_logger_provider(provider) - - real_executions = await _run_once_and_replay(client, num_replays=3) - - assert real_executions == 1 - assert adk_log_event_counts(exporter) == { - name: count * (1 + 3) for name, count in EXPECTED_LOG_BASELINE.items() - } - - -def _worker_config() -> WorkerConfig: - return WorkerConfig(workflow_runner=SandboxedWorkflowRunner()) - - -def test_plugin_warns_on_non_replay_safe_meter_provider( - reset_otel_meter_provider, # type: ignore[reportUnusedParameter] -): - _install_global_meter_provider(MeterProvider()) - with pytest.warns(UserWarning, match="MeterProvider is not replay-safe"): - GoogleAdkPlugin().configure_worker(_worker_config()) - - -def test_plugin_warns_on_non_replay_safe_tracer_provider( - reset_otel_tracer_provider, # type: ignore[reportUnusedParameter] -): - _install_global_tracer_provider(TracerProvider()) - with pytest.warns(UserWarning, match="TracerProvider is not replay-safe"): - GoogleAdkPlugin().configure_worker(_worker_config()) - - -def test_plugin_warns_on_replayer_construction( - reset_otel_meter_provider, # type: ignore[reportUnusedParameter] -): - # Replayer replays are exactly where an unsafe global provider re-records - # telemetry, so the warning must fire there too. - _install_global_meter_provider(MeterProvider()) - with pytest.warns(UserWarning, match="MeterProvider is not replay-safe"): - Replayer(workflows=[ReplayMetricsAgent], plugins=[GoogleAdkPlugin()]) - - -def test_plugin_does_not_warn_with_replay_safe_providers( - reset_otel_meter_provider, # type: ignore[reportUnusedParameter] - reset_otel_tracer_provider, # type: ignore[reportUnusedParameter] - reset_otel_logger_provider, # type: ignore[reportUnusedParameter] -): - _install_global_meter_provider(ReplaySafeMeterProvider(MeterProvider())) - _install_global_tracer_provider(create_tracer_provider()) - _install_global_logger_provider(ReplaySafeLoggerProvider(LoggerProvider())) - with warnings.catch_warnings(record=True) as recorded: - warnings.simplefilter("always") - GoogleAdkPlugin().configure_worker(_worker_config()) - assert not [w for w in recorded if "replay-safe" in str(w.message)] - - -def test_plugin_does_not_warn_with_unset_providers( - reset_otel_meter_provider, # type: ignore[reportUnusedParameter] - reset_otel_tracer_provider, # type: ignore[reportUnusedParameter] - reset_otel_logger_provider, # type: ignore[reportUnusedParameter] -): - with warnings.catch_warnings(record=True) as recorded: - warnings.simplefilter("always") - GoogleAdkPlugin().configure_worker(_worker_config()) - assert not [w for w in recorded if "replay-safe" in str(w.message)] - - -class _DelegatingMeterProvider(ApiMeterProvider): - """Unknown custom provider delegating to a replay-safe one.""" - - def __init__(self) -> None: - self._inner = ReplaySafeMeterProvider(MeterProvider()) - - def get_meter( - self, - name: str, - version: str | None = None, - schema_url: str | None = None, - attributes: Attributes | None = None, - ) -> Meter: - return self._inner.get_meter(name, version, schema_url) - - -def test_plugin_does_not_warn_on_unknown_custom_provider( - reset_otel_meter_provider, # type: ignore[reportUnusedParameter] - reset_otel_tracer_provider, # type: ignore[reportUnusedParameter] -): - # A custom provider delegating to a replay-safe one is a fully replay-safe - # configuration; an unclassifiable provider must not trigger a false - # positive. - _install_global_meter_provider(_DelegatingMeterProvider()) - with warnings.catch_warnings(record=True) as recorded: - warnings.simplefilter("always") - GoogleAdkPlugin().configure_worker(_worker_config()) - assert not [w for w in recorded if "replay-safe" in str(w.message)] - - -async def test_plugin_warning_points_at_worker_construction( - client: Client, - reset_otel_meter_provider, # type: ignore[reportUnusedParameter] - reset_otel_tracer_provider, # type: ignore[reportUnusedParameter] -): - # stacklevel on the warning must attribute it to the user's Worker(...) - # call, i.e. this file, not SDK internals. - _install_global_meter_provider(MeterProvider()) - with warnings.catch_warnings(record=True) as recorded: - warnings.simplefilter("always") - Worker( - client, - task_queue=f"replay-metrics-{uuid.uuid4()}", - activities=[replay_metrics_get_weather], - workflows=[ReplayMetricsAgent], - plugins=[GoogleAdkPlugin()], - ) - warned = [ - w for w in recorded if "MeterProvider is not replay-safe" in str(w.message) - ] - assert len(warned) == 1 - assert warned[0].category is UserWarning - assert warned[0].filename == __file__ - - -class _WrappingPlugin: - """User plugin that delegates to GoogleAdkPlugin through an extra frame.""" - - def __init__(self) -> None: - self._inner = GoogleAdkPlugin() - - def configure_worker(self, config: WorkerConfig) -> WorkerConfig: - return self._inner.configure_worker(config) - - -def test_plugin_warning_points_at_wrapping_plugin_caller( - reset_otel_meter_provider, # type: ignore[reportUnusedParameter] - reset_otel_tracer_provider, # type: ignore[reportUnusedParameter] -): - # When another plugin wraps GoogleAdkPlugin, the warning must attribute - # to the nearest user frame (the wrapper's delegation line), not SDK - # internals or a fixed frame depth. - _install_global_meter_provider(MeterProvider()) - with warnings.catch_warnings(record=True) as recorded: - warnings.simplefilter("always") - _WrappingPlugin().configure_worker(_worker_config()) - warned = [ - w for w in recorded if "MeterProvider is not replay-safe" in str(w.message) - ] - assert len(warned) == 1 - assert warned[0].filename == __file__ - source_lines, start = inspect.getsourcelines(_WrappingPlugin.configure_worker) - delegation_line = start + next( - offset - for offset, line in enumerate(source_lines) - if "self._inner.configure_worker" in line - ) - assert warned[0].lineno == delegation_line diff --git a/tests/contrib/google_adk_agents/test_stateful_mcp.py b/tests/contrib/google_adk_agents/test_stateful_mcp.py deleted file mode 100644 index 994598df9..000000000 --- a/tests/contrib/google_adk_agents/test_stateful_mcp.py +++ /dev/null @@ -1,194 +0,0 @@ -# Copyright 2025 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Integration tests for the stateful (pooled) MCP toolset support in -``temporalio.contrib.google_adk_agents._mcp``. - -These drive the real ``connect`` -> dedicated-worker -> ``get_tools`` path -through a Temporal workflow, but against an in-memory fake ``McpToolset`` (no -subprocess, no real MCP server) so they run in CI. They prove the properties -the reviewer asked for: one toolset is built per workflow run, ``factory_argument`` -is consumed exactly once per run, distinct runs never share a toolset, and the -toolset is torn down when the workflow completes. -""" - -import uuid -from datetime import timedelta -from typing import Any, cast - -from google.adk.tools.mcp_tool import McpToolset - -from temporalio import workflow -from temporalio.client import Client -from temporalio.worker import Worker - -with workflow.unsafe.imports_passed_through(): - from temporalio.contrib.google_adk_agents import ( - GoogleAdkPlugin, - TemporalStatefulMcpToolSet, - TemporalStatefulMcpToolSetProvider, - ) - -# Populated inside the activity worker process (same process as the test) each -# time the toolset factory runs, so tests can inspect what was built. -CREATED: list["_FakeToolset"] = [] - - -class _FakeTool: - def __init__(self, name: str) -> None: - self.name = name - self.description = "a fake tool" - self.is_long_running = False - self.custom_metadata: dict[str, Any] | None = None - - def _get_declaration(self) -> None: - return None - - async def run_async( - self, - *, - args: dict[str, Any], - tool_context: Any, # pyright: ignore[reportUnusedParameter] - ) -> Any: - return {"echo": args} - - -class _FakeToolset: - """In-memory stand-in for ``google.adk.tools.mcp_tool.McpToolset``.""" - - def __init__(self, factory_argument: Any = None) -> None: - self.factory_argument = factory_argument - self.get_tools_calls = 0 - self.closed = False - - async def get_tools(self) -> list[_FakeTool]: - self.get_tools_calls += 1 - return [_FakeTool("echo")] - - async def close(self) -> None: - self.closed = True - - -def _factory(arg: Any) -> McpToolset: - toolset = _FakeToolset(arg) - CREATED.append(toolset) - return cast(McpToolset, cast(object, toolset)) - - -@workflow.defn -class StatefulMcpWorkflow: - @workflow.run - async def run(self, factory_argument: Any | None) -> list[str]: - async with TemporalStatefulMcpToolSet( - "stateful_set", - factory_argument=factory_argument, - ) as toolset: - # Two calls against the same persistent toolset -- exercises reuse. - tools_1 = await toolset.get_tools() - tools_2 = await toolset.get_tools() - return [t.name for t in tools_1] + [t.name for t in tools_2] - - -def _make_client( - client: Client, provider: TemporalStatefulMcpToolSetProvider -) -> Client: - new_config = client.config() - new_config["plugins"] = [GoogleAdkPlugin(toolset_providers=[provider])] - return Client(**new_config) - - -async def test_stateful_one_toolset_per_run_and_teardown(client: Client): - CREATED.clear() - provider = TemporalStatefulMcpToolSetProvider("stateful_set", _factory) - client = _make_client(client, provider) - - async with Worker( - client, - task_queue="adk-stateful-mcp", - workflows=[StatefulMcpWorkflow], - max_cached_workflows=0, - ): - result = await client.execute_workflow( - StatefulMcpWorkflow.run, - None, - id=f"stateful-mcp-{uuid.uuid4()}", - task_queue="adk-stateful-mcp", - execution_timeout=timedelta(seconds=60), - ) - - assert result == ["echo", "echo"] - # Exactly one toolset built for the whole run... - assert len(CREATED) == 1 - # ...reused across both get_tools calls (state maintained, not per-call)... - assert CREATED[0].get_tools_calls == 2 - # ...and closed when the workflow completed (no leak). - assert CREATED[0].closed - # The dedicated-worker toolset registry is empty after teardown. - assert provider._toolsets == {} - - -async def test_stateful_factory_argument_consumed_once(client: Client): - CREATED.clear() - provider = TemporalStatefulMcpToolSetProvider("stateful_set", _factory) - client = _make_client(client, provider) - - async with Worker( - client, - task_queue="adk-stateful-mcp-arg", - workflows=[StatefulMcpWorkflow], - max_cached_workflows=0, - ): - await client.execute_workflow( - StatefulMcpWorkflow.run, - {"tenant": "acme"}, - id=f"stateful-mcp-{uuid.uuid4()}", - task_queue="adk-stateful-mcp-arg", - execution_timeout=timedelta(seconds=60), - ) - - assert len(CREATED) == 1 - assert CREATED[0].factory_argument == {"tenant": "acme"} - - -async def test_stateful_no_cross_run_sharing(client: Client): - CREATED.clear() - provider = TemporalStatefulMcpToolSetProvider("stateful_set", _factory) - client = _make_client(client, provider) - - async with Worker( - client, - task_queue="adk-stateful-mcp-iso", - workflows=[StatefulMcpWorkflow], - max_cached_workflows=0, - ): - await client.execute_workflow( - StatefulMcpWorkflow.run, - "tenant-a", - id=f"stateful-mcp-a-{uuid.uuid4()}", - task_queue="adk-stateful-mcp-iso", - execution_timeout=timedelta(seconds=60), - ) - await client.execute_workflow( - StatefulMcpWorkflow.run, - "tenant-b", - id=f"stateful-mcp-b-{uuid.uuid4()}", - task_queue="adk-stateful-mcp-iso", - execution_timeout=timedelta(seconds=60), - ) - - # Two distinct runs -> two distinct toolsets, each with its own argument. - assert len(CREATED) == 2 - assert {t.factory_argument for t in CREATED} == {"tenant-a", "tenant-b"} - assert all(t.closed for t in CREATED) - assert provider._toolsets == {} diff --git a/tests/contrib/google_genai/__init__.py b/tests/contrib/google_genai/__init__.py deleted file mode 100644 index 26a790b56..000000000 --- a/tests/contrib/google_genai/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Tests for the `google-genai` SDK Temporal integration.""" diff --git a/tests/contrib/google_genai/echo_mcp_server.py b/tests/contrib/google_genai/echo_mcp_server.py deleted file mode 100644 index a69ac7b22..000000000 --- a/tests/contrib/google_genai/echo_mcp_server.py +++ /dev/null @@ -1,15 +0,0 @@ -"""A minimal stdio MCP server used by the google_genai MCP tests.""" - -from mcp.server.fastmcp import FastMCP - -mcp = FastMCP("echo-server") - - -@mcp.tool() -def echo(message: str) -> str: - """Return the input message unchanged.""" - return message - - -if __name__ == "__main__": - mcp.run() diff --git a/tests/contrib/google_genai/test_gemini.py b/tests/contrib/google_genai/test_gemini.py deleted file mode 100644 index 0881f63b3..000000000 --- a/tests/contrib/google_genai/test_gemini.py +++ /dev/null @@ -1,2052 +0,0 @@ -"""Integration tests for the Google Gemini SDK Temporal integration. - -Tests cover: -- Basic generate_content through workflow -- Tool calling via activity_as_tool (single arg, multi arg, class method) -- Workflow method as a plain tool (runs in-workflow, not as an activity) -- Tool failure propagation -- Multiple sequential tool calls with arg verification -- Batched streaming via generate_content_stream -- Per-request http_options propagation -- File upload (str path + io.BytesIO) and download via TemporalAsyncFiles -- File search store upload via TemporalAsyncFileSearchStores -- Multi-turn chat via client.chats -- TemporalAsyncClient wiring (files, file_search_stores) -- _TemporalApiClient edge cases (sync raises) -- activity_as_tool validation and metadata preservation -- TemporalAsyncClient configuration -- Interactions API (create, batched streaming, get, cancel, delete) -- Managed agents (create, get, list, delete); webhooks unsupported -""" - -import inspect -import io -import json -import uuid -from datetime import timedelta -from typing import Any, Callable, cast -from unittest.mock import AsyncMock, MagicMock - -import pytest -from google.genai import Client as GeminiClient -from google.genai import types -from google.genai.interactions import ( - Agent, # pyright: ignore[reportPrivateImportUsage] - InteractionSSEEvent, -) -from google.genai.types import HttpResponse as SdkHttpResponse - -from temporalio import activity, workflow -from temporalio.client import Client, WorkflowFailureError -from temporalio.common import RetryPolicy -from temporalio.contrib.google_genai import ( - GoogleGenAIError, - GoogleGenAIPlugin, - activity_as_tool, -) -from temporalio.contrib.google_genai._compat import Interaction -from temporalio.contrib.google_genai._models import ( - _GeminiApiRequest, - _GeminiApiResponse, - _GeminiApiStreamedResponse, - _GeminiDownloadFileRequest, - _GeminiInteractionIdRequest, - _GeminiInteractionRequest, - _GeminiInteractionStreamedResponse, - _GeminiUploadFileRequest, - _GeminiUploadToFileSearchStoreRequest, -) -from temporalio.contrib.google_genai._temporal_api_client import ( - _TemporalApiClient, -) -from temporalio.contrib.google_genai._temporal_async_client import ( - TemporalAsyncClient, - _closure_if_bound_method, - _wrap_bound_method_tools, -) -from temporalio.contrib.google_genai._temporal_file_search_stores import ( - TemporalAsyncFileSearchStores, -) -from temporalio.contrib.google_genai._temporal_files import ( - TemporalAsyncFiles, -) -from temporalio.contrib.google_genai._temporal_interactions import _deserialize -from temporalio.exceptions import ApplicationError -from temporalio.worker import Replayer -from temporalio.workflow import ActivityConfig -from tests.helpers import new_worker - -# --------------------------------------------------------------------------- -# Mock response helpers -# --------------------------------------------------------------------------- - - -def make_text_response(text: str) -> str: - """Build a JSON body string for a simple text response.""" - return json.dumps( - { - "candidates": [ - { - "content": { - "role": "model", - "parts": [{"text": text}], - }, - "finishReason": "STOP", - } - ], - "usageMetadata": { - "promptTokenCount": 5, - "candidatesTokenCount": 10, - }, - } - ) - - -def make_function_call_response(fn_name: str, args: dict) -> str: - """Build a JSON body string for a function-call response.""" - return json.dumps( - { - "candidates": [ - { - "content": { - "role": "model", - "parts": [{"functionCall": {"name": fn_name, "args": args}}], - }, - "finishReason": "STOP", - } - ], - "usageMetadata": { - "promptTokenCount": 10, - "candidatesTokenCount": 15, - }, - } - ) - - -INTERACTION_ID = "interactions/test-123" - - -def make_interaction_dict(status: str = "completed") -> dict[str, Any]: - """Build a minimal Interaction dict as the API would return it.""" - return {"id": INTERACTION_ID, "object": "interaction", "status": status} - - -def make_interaction_sse_events() -> list[dict[str, Any]]: - """Build a small SSE event sequence for a streamed interaction. - - Includes a sparse ``interaction.created`` payload (just ``id`` and - ``object``) to exercise the lenient ``_deserialize`` rehydration. - """ - return [ - { - "event_type": "interaction.created", - "interaction": {"id": INTERACTION_ID, "object": "interaction"}, - }, - { - "event_type": "step.delta", - "index": 0, - "delta": {"type": "text", "text": "Hello "}, - }, - { - "event_type": "step.delta", - "index": 0, - "delta": {"type": "text", "text": "world"}, - }, - {"event_type": "interaction.completed", "interaction": make_interaction_dict()}, - ] - - -def make_agent_dict(agent_id: str = "test-agent") -> dict[str, Any]: - """Build a minimal managed-agent dict as the API would return it.""" - return {"id": agent_id, "system_instruction": "Be helpful."} - - -# --------------------------------------------------------------------------- -# Tool call tracker — records every tool invocation for assertion -# --------------------------------------------------------------------------- - - -class ToolCallTracker: - """Tracks tool invocations across activities and workflow methods. - - Each tool appends (name, args_dict) to ``calls`` so tests can assert - exactly which tools were called, in what order, with what arguments. - """ - - def __init__(self) -> None: - self.calls: list[tuple[str, dict]] = [] - - @activity.defn - async def get_weather(self, city: str) -> str: - """Get the weather for a given city.""" - self.calls.append(("get_weather", {"city": city})) - return f"Weather in {city}: Sunny, 20C" - - @activity.defn - async def get_weather_country(self, city: str, country: str) -> str: - """Get the weather for a given city in a country.""" - self.calls.append(("get_weather_country", {"city": city, "country": country})) - return f"Weather in {city}, {country}: Rainy, 15C" - - @activity.defn - async def get_weather_failure(self, city: str) -> str: - """Activity that always fails.""" - self.calls.append(("get_weather_failure", {"city": city})) - raise ApplicationError("Weather service unavailable", non_retryable=True) - - -# --------------------------------------------------------------------------- -# Test helper: tracking gemini_api_client_async_request activity -# --------------------------------------------------------------------------- - - -class GeminiApiCallTracker: - """A test replacement for the gemini_api_client activities. - - Records every ``_GeminiApiRequest`` received and returns canned - ``_GeminiApiResponse`` bodies in order. After the workflow completes, - inspect ``requests`` to verify exactly what the integration sent. - - For streamed requests, the mock response is split into per-line chunks - to simulate multiple streamed chunks. - - The real ``GoogleGenAIPlugin`` is still used for its data converter, sandbox - passthrough, and workflow runner configuration — only its activity - registration is suppressed so this tracker can take its place. - """ - - def __init__(self, mock_responses: list[str]) -> None: - self._mock_responses = mock_responses - self.requests: list[_GeminiApiRequest] = [] - self.file_upload_requests: list[_GeminiUploadFileRequest] = [] - self.file_download_requests: list[_GeminiDownloadFileRequest] = [] - self.file_search_store_upload_requests: list[ - _GeminiUploadToFileSearchStoreRequest - ] = [] - self.interaction_requests: list[_GeminiInteractionRequest] = [] - self.interaction_id_requests: list[_GeminiInteractionIdRequest] = [] - self._call_index = 0 - - def _next_response(self, req: _GeminiApiRequest) -> str: - self.requests.append(req) - idx = self._call_index - self._call_index += 1 - if idx >= len(self._mock_responses): - raise ApplicationError( - f"No more mock responses (called {idx + 1} times, " - f"have {len(self._mock_responses)})", - non_retryable=True, - ) - return self._mock_responses[idx] - - @activity.defn - async def gemini_api_client_async_request( - self, req: _GeminiApiRequest - ) -> _GeminiApiResponse: - return _GeminiApiResponse( - headers={"content-type": "application/json"}, - body=self._next_response(req), - ) - - @activity.defn - async def gemini_api_client_async_request_streamed( - self, req: _GeminiApiRequest - ) -> _GeminiApiStreamedResponse: - body = self._next_response(req) - # Split the response text into word-level chunks so tests can - # verify that multiple chunks are yielded back to the workflow. - parsed = json.loads(body) - full_text = ( - parsed.get("candidates", [{}])[0] - .get("content", {}) - .get("parts", [{}])[0] - .get("text", "") - ) - words = full_text.split() - chunks = [] - for word in words: - chunks.append( - _GeminiApiResponse( - headers={"content-type": "application/json"}, - body=make_text_response(word), - ) - ) - return _GeminiApiStreamedResponse(chunks=chunks) - - @activity.defn - async def gemini_files_upload(self, req: _GeminiUploadFileRequest) -> types.File: - self.file_upload_requests.append(req) - return types.File( - name="files/test-uploaded-file", - uri="https://fake.uri/files/test-uploaded-file", - size_bytes=len(req.file_bytes) if req.file_bytes else 0, - ) - - @activity.defn - async def gemini_files_download(self, req: _GeminiDownloadFileRequest) -> bytes: - self.file_download_requests.append(req) - return b"fake file content" - - @activity.defn - async def gemini_file_search_stores_upload( - self, req: _GeminiUploadToFileSearchStoreRequest - ) -> types.UploadToFileSearchStoreOperation: - self.file_search_store_upload_requests.append(req) - return types.UploadToFileSearchStoreOperation.model_construct( - name="operations/test-op", - ) - - @activity.defn - async def gemini_interactions_create( - self, req: _GeminiInteractionRequest - ) -> dict[str, Any]: - self.interaction_requests.append(req) - return make_interaction_dict() - - @activity.defn - async def gemini_interactions_create_streamed( - self, req: _GeminiInteractionRequest - ) -> _GeminiInteractionStreamedResponse: - self.interaction_requests.append(req) - return _GeminiInteractionStreamedResponse(events=make_interaction_sse_events()) - - @activity.defn - async def gemini_interactions_get( - self, req: _GeminiInteractionIdRequest - ) -> dict[str, Any]: - self.interaction_id_requests.append(req) - return make_interaction_dict() - - @activity.defn - async def gemini_interactions_get_streamed( - self, req: _GeminiInteractionIdRequest - ) -> _GeminiInteractionStreamedResponse: - self.interaction_id_requests.append(req) - return _GeminiInteractionStreamedResponse(events=make_interaction_sse_events()) - - @activity.defn - async def gemini_interactions_delete(self, req: _GeminiInteractionIdRequest) -> Any: - self.interaction_id_requests.append(req) - return {"deleted": True} - - @activity.defn - async def gemini_interactions_cancel( - self, req: _GeminiInteractionIdRequest - ) -> dict[str, Any]: - self.interaction_id_requests.append(req) - return make_interaction_dict(status="cancelled") - - @activity.defn - async def gemini_agents_create( - self, req: _GeminiInteractionRequest - ) -> dict[str, Any]: - self.interaction_requests.append(req) - return make_agent_dict(req.params.get("id", "test-agent")) - - @activity.defn - async def gemini_agents_list( - self, req: _GeminiInteractionRequest - ) -> dict[str, Any]: - self.interaction_requests.append(req) - return {"agents": [make_agent_dict()], "next_page_token": "next-tok"} - - @activity.defn - async def gemini_agents_get( - self, req: _GeminiInteractionIdRequest - ) -> dict[str, Any]: - self.interaction_id_requests.append(req) - return make_agent_dict(req.id) - - @activity.defn - async def gemini_agents_delete( - self, req: _GeminiInteractionIdRequest - ) -> dict[str, Any]: - self.interaction_id_requests.append(req) - return {"id": req.id, "deleted": True} - - -def apply_plugin( - client: Client, mock_responses: list[str] -) -> tuple[Client, GeminiApiCallTracker]: - """Create a real GoogleGenAIPlugin whose activities include a tracking fake. - - Monkey-patches ``GeminiApiCaller.activities`` so that when the plugin - constructs itself, it registers our tracking activity instead of - the real ones. Everything else — data converter, sandbox passthrough, - workflow runner — is the real plugin code. - - Returns the configured Temporal client and the tracker. - """ - from temporalio.contrib.google_genai._gemini_activity import GeminiApiCaller - - tracker = GeminiApiCallTracker(mock_responses) - original_activities = GeminiApiCaller.activities - GeminiApiCaller.activities = lambda self: [ # type: ignore[method-assign] - tracker.gemini_api_client_async_request, - tracker.gemini_api_client_async_request_streamed, - tracker.gemini_files_upload, - tracker.gemini_files_download, - tracker.gemini_file_search_stores_upload, - tracker.gemini_interactions_create, - tracker.gemini_interactions_create_streamed, - tracker.gemini_interactions_get, - tracker.gemini_interactions_get_streamed, - tracker.gemini_interactions_delete, - tracker.gemini_interactions_cancel, - tracker.gemini_agents_create, - tracker.gemini_agents_list, - tracker.gemini_agents_get, - tracker.gemini_agents_delete, - ] - try: - gemini = GeminiClient(api_key="fake-test-key") - plugin = GoogleGenAIPlugin(gemini) - finally: - GeminiApiCaller.activities = original_activities # type: ignore[method-assign] - - config = client.config() - config["plugins"] = [plugin] - return Client(**config), tracker - - -# --------------------------------------------------------------------------- -# Workflows -# --------------------------------------------------------------------------- - - -@workflow.defn -class SimpleGenerateWorkflow: - """Workflow that does a simple generate_content call.""" - - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - ) - return response.text or "" - - -@workflow.defn -class SingleArgToolWorkflow: - """Workflow that uses activity_as_tool for a single-arg tool.""" - - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - config=types.GenerateContentConfig( - tools=[ - activity_as_tool( - ToolCallTracker.get_weather, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=10), - ), - ), - ], - ), - ) - return response.text or "" - - -@workflow.defn -class MultiArgToolWorkflow: - """Workflow with multi-arg tool.""" - - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - config=types.GenerateContentConfig( - tools=[ - activity_as_tool( - ToolCallTracker.get_weather_country, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=10), - ), - ), - ], - ), - ) - return response.text or "" - - -@workflow.defn -class ToolFailureWorkflow: - """Workflow with a tool that always fails.""" - - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - config=types.GenerateContentConfig( - tools=[ - activity_as_tool( - ToolCallTracker.get_weather_failure, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=10), - retry_policy=RetryPolicy(maximum_attempts=1), - ), - ), - ], - ), - ) - return response.text or "" - - -@workflow.defn -class MultipleToolsWorkflow: - """Workflow with multiple tools that are called in sequence.""" - - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - config=types.GenerateContentConfig( - tools=[ - activity_as_tool( - ToolCallTracker.get_weather, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=10), - ), - ), - activity_as_tool( - ToolCallTracker.get_weather_country, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=10), - ), - ), - ], - ), - ) - return response.text or "" - - -@workflow.defn -class WorkflowMethodToolWorkflow: - """Workflow that passes a plain method as a tool (runs in-workflow, not as an activity).""" - - def __init__(self) -> None: - self.tool_calls: list[tuple[str, dict]] = [] - - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - config=types.GenerateContentConfig( - tools=[self.lookup_city], - ), - ) - return response.text or "" - - async def lookup_city(self, city: str) -> str: - """Look up info about a city.""" - self.tool_calls.append(("lookup_city", {"city": city})) - return f"{city} is a great place to visit" - - @workflow.query - def get_tool_calls(self) -> list[tuple[str, dict]]: - return self.tool_calls - - -@workflow.defn -class StreamedGenerateWorkflow: - """Workflow that uses generate_content_stream.""" - - @workflow.run - async def run(self, prompt: str) -> list[str]: - client = TemporalAsyncClient() - chunks: list[str] = [] - async for chunk in await client.models.generate_content_stream( - model="gemini-2.5-flash", - contents=prompt, - ): - if chunk.text: - chunks.append(chunk.text) - return chunks - - -@workflow.defn -class HttpOptionsWorkflow: - """Workflow that passes per-request http_options through generate_content.""" - - @workflow.run - async def run(self, prompt: str, http_options: types.HttpOptionsDict) -> str: - client = TemporalAsyncClient() - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - config=types.GenerateContentConfig( - http_options=types.HttpOptions.model_validate(http_options), - ), - ) - return response.text or "" - - -@workflow.defn -class FullIntegrationWorkflow: - """Exercises every activity path in a single workflow run. - - Uses the real GoogleGenAIPlugin activities (not the tracker), so this - tests the actual activity implementations end-to-end with a mocked - genai.Client. - """ - - @workflow.run - async def run(self, prompt: str) -> dict[str, Any]: - client = TemporalAsyncClient() - results: dict[str, Any] = {} - - # 1. generate_content (async_request activity) - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - ) - results["generate"] = response.text or "" - - # 2. generate_content_stream (async_request_streamed activity) - chunks: list[str] = [] - async for chunk in await client.models.generate_content_stream( - model="gemini-2.5-flash", - contents=prompt, - ): - if chunk.text: - chunks.append(chunk.text) - results["stream_chunks"] = chunks - - # 3. files.upload (gemini_files_upload activity) - uploaded = await client.files.upload( - file="/tmp/fake.txt", - config=types.UploadFileConfig(display_name="Integration Test"), - ) - results["upload_name"] = uploaded.name or "" - - # 4. files.download (gemini_files_download activity) - data = await client.files.download(file="files/some-file") - results["download"] = data.decode() if isinstance(data, bytes) else str(data) - - # 5. file_search_stores.upload_to_file_search_store activity - store_name = "fileSearchStores/test" - op = await client.file_search_stores.upload_to_file_search_store( - file_search_store_name=store_name, - file="/tmp/doc.txt", - ) - results["fss_upload_op"] = op.name or "" - - # 6. generate_content grounded with file_search tool (RAG query) - rag_response = await client.models.generate_content( - model="gemini-2.5-flash", - contents="What does the document say?", - config=types.GenerateContentConfig( - tools=[ - types.Tool( - file_search=types.FileSearch( - file_search_store_names=[store_name], - ), - ), - ], - ), - ) - results["rag"] = rag_response.text or "" - - # 7. Clean up the file search store - await client.file_search_stores.delete( - name=store_name, - config=types.DeleteFileSearchStoreConfig(force=True), - ) - results["store_deleted"] = True - - # 8. interactions.create (gemini_interactions_create activity) - interaction = await client.interactions.create( - model="gemini-2.5-flash", - input=prompt, - ) - assert isinstance(interaction, Interaction) - results["interaction_id"] = interaction.id - - # 9. interactions.create streamed (gemini_interactions_create_streamed) - stream = await client.interactions.create( - model="gemini-2.5-flash", - input=prompt, - stream=True, - ) - assert not isinstance(stream, Interaction) - event_types: list[str] = [] - async with stream: - async for event in stream: - event_types.append(event.event_type) - results["interaction_events"] = event_types - - # 10. agents.create (gemini_agents_create activity) - agent = await client.agents.create( - id="test-agent", - system_instruction="Be helpful.", - ) - results["agent_id"] = agent.id - - return results - - -@workflow.defn -class FileUploadStrWorkflow: - """Workflow that uploads a file via str path.""" - - @workflow.run - async def run(self, file_path: str) -> str: - client = TemporalAsyncClient() - uploaded = await client.files.upload( - file=file_path, - config=types.UploadFileConfig( - display_name="Test File", - mime_type="text/plain", - ), - ) - return uploaded.name or "" - - -@workflow.defn -class FileUploadBytesWorkflow: - """Workflow that uploads a file via io.BytesIO.""" - - @workflow.run - async def run(self, data: bytes) -> str: - client = TemporalAsyncClient() - uploaded = await client.files.upload( - file=io.BytesIO(data), - config=types.UploadFileConfig( - display_name="Bytes File", - mime_type="text/plain", - ), - ) - return uploaded.name or "" - - -@workflow.defn -class FileDownloadWorkflow: - """Workflow that downloads a file by name.""" - - @workflow.run - async def run(self, file_name: str) -> bytes: - client = TemporalAsyncClient() - return await client.files.download(file=file_name) - - -@workflow.defn -class FileSearchStoreUploadWorkflow: - """Workflow that uploads to a file search store.""" - - @workflow.run - async def run(self, store_name: str, file_path: str) -> str: - client = TemporalAsyncClient() - op = await client.file_search_stores.upload_to_file_search_store( - file_search_store_name=store_name, - file=file_path, - config=types.UploadToFileSearchStoreConfig( - display_name="Test Doc", - mime_type="text/plain", - ), - ) - return op.name or "" - - -@workflow.defn -class RegisterFilesWorkflow: - """Workflow that calls files.register_files.""" - - @workflow.run - async def run(self, uris: list[str]) -> str: - client = TemporalAsyncClient() - # auth arg is ignored by TemporalAsyncFiles — the activity uses - # credentials from GoogleGenAIPlugin init. We pass a dummy here; - # can't import google.auth.credentials in the sandbox so we - # use a sentinel that satisfies the type at runtime. - resp = await client.files.register_files( - auth=None, # type: ignore[arg-type] - uris=uris, - ) - return str(len(resp.files or [])) - - -@workflow.defn -class ChatWorkflow: - """Workflow that uses client.chats for multi-turn conversation.""" - - @workflow.run - async def run(self, prompt: str) -> list[str]: - client = TemporalAsyncClient() - chat = client.chats.create( - model="gemini-2.5-flash", - ) - r1 = await chat.send_message(prompt) - r2 = await chat.send_message("Follow up question") - return [r1.text or "", r2.text or ""] - - -@workflow.defn -class InteractionCreateWorkflow: - """Workflow that creates an interaction (non-streaming).""" - - @workflow.run - async def run(self, prompt: str) -> dict[str, Any]: - client = TemporalAsyncClient() - interaction = await client.interactions.create( - model="gemini-2.5-flash", - input=prompt, - timeout=120, - ) - assert isinstance(interaction, Interaction) - return {"id": interaction.id, "status": str(interaction.status)} - - -@workflow.defn -class InteractionStreamWorkflow: - """Workflow that creates a streamed interaction and collects event types.""" - - @workflow.run - async def run(self, prompt: str) -> list[str]: - client = TemporalAsyncClient() - stream = await client.interactions.create( - model="gemini-2.5-flash", - input=prompt, - stream=True, - ) - assert not isinstance(stream, Interaction) - event_types: list[str] = [] - async with stream: - async for event in stream: - event_types.append(event.event_type) - return event_types - - -@workflow.defn -class InteractionLifecycleWorkflow: - """Workflow that gets, cancels, and deletes an interaction.""" - - @workflow.run - async def run(self, interaction_id: str) -> dict[str, Any]: - client = TemporalAsyncClient() - got = await client.interactions.get(interaction_id) - assert isinstance(got, Interaction) - cancelled = await client.interactions.cancel(interaction_id) - deleted = await client.interactions.delete(interaction_id) - return { - "got_id": got.id, - "cancel_status": str(cancelled.status), - "deleted": deleted, - } - - -@workflow.defn -class AgentsWorkflow: - """Workflow that exercises managed-agent CRUD.""" - - @workflow.run - async def run(self) -> dict[str, Any]: - client = TemporalAsyncClient() - agent = await client.agents.create( - id="test-agent", - system_instruction="Be helpful.", - ) - got = await client.agents.get("test-agent") - listing = await client.agents.list(page_size=10) - deleted = await client.agents.delete("test-agent") - return { - "created_id": agent.id, - "got_id": got.id, - "listed_ids": [a.id for a in (listing.agents or [])], - "next_page_token": listing.next_page_token, - # AgentDeleteResponse defines no fields; the API's JSON comes - # back as extras, so return the dict form. - "delete_response": deleted.model_dump(mode="json"), - } - - -@workflow.defn -class WebhooksUnsupportedWorkflow: - """Workflow that verifies client.webhooks raises a clear error.""" - - @workflow.run - async def run(self) -> str: - client = TemporalAsyncClient() - try: - _ = client.webhooks - except RuntimeError as e: - return str(e) - return "no error" - - -# =========================================================================== -# Integration tests — run workflows against a real Temporal test server -# =========================================================================== - - -async def test_simple_generate_content(client: Client): - """Basic generate_content returns text through a workflow.""" - new_client, _ = apply_plugin(client, [make_text_response("Hello from Gemini!")]) - - async with new_worker(new_client, SimpleGenerateWorkflow) as worker: - result = await new_client.execute_workflow( - SimpleGenerateWorkflow.run, - "Say hello", - id=f"gemini-simple-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert result == "Hello from Gemini!" - - -async def test_tool_call_single_arg(client: Client): - """Tool calling with a single-argument activity via AFC.""" - tool_tracker = ToolCallTracker() - new_client, _ = apply_plugin( - client, - [ - make_function_call_response("get_weather", {"city": "Tokyo"}), - make_text_response("The weather in Tokyo is sunny and 20C."), - ], - ) - - async with new_worker( - new_client, - SingleArgToolWorkflow, - activities=[tool_tracker.get_weather], - ) as worker: - result = await new_client.execute_workflow( - SingleArgToolWorkflow.run, - "What's the weather in Tokyo?", - id=f"gemini-tool-single-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert tool_tracker.calls == [("get_weather", {"city": "Tokyo"})] - assert result == "The weather in Tokyo is sunny and 20C." - - -async def test_tool_call_multi_arg(client: Client): - """Tool calling with a multi-argument activity.""" - tool_tracker = ToolCallTracker() - new_client, _ = apply_plugin( - client, - [ - make_function_call_response( - "get_weather_country", {"city": "Paris", "country": "France"} - ), - make_text_response("Paris, France: Rainy, 15C."), - ], - ) - - async with new_worker( - new_client, - MultiArgToolWorkflow, - activities=[tool_tracker.get_weather_country], - ) as worker: - result = await new_client.execute_workflow( - MultiArgToolWorkflow.run, - "What's the weather in Paris, France?", - id=f"gemini-tool-multi-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert tool_tracker.calls == [ - ("get_weather_country", {"city": "Paris", "country": "France"}) - ] - assert result == "Paris, France: Rainy, 15C." - - -async def test_tool_failure_propagation(client: Client): - """Tool activity failure causes the workflow to fail.""" - tool_tracker = ToolCallTracker() - new_client, _ = apply_plugin( - client, - [ - make_function_call_response("get_weather_failure", {"city": "Nowhere"}), - ], - ) - - async with new_worker( - new_client, - ToolFailureWorkflow, - activities=[tool_tracker.get_weather_failure], - ) as worker: - with pytest.raises(WorkflowFailureError): - await new_client.execute_workflow( - ToolFailureWorkflow.run, - "Weather in Nowhere?", - id=f"gemini-tool-fail-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert tool_tracker.calls == [("get_weather_failure", {"city": "Nowhere"})] - - -async def test_multiple_tools_sequential(client: Client): - """Multiple tools called in sequence within one generate_content call.""" - tool_tracker = ToolCallTracker() - new_client, _ = apply_plugin( - client, - [ - make_function_call_response("get_weather", {"city": "Tokyo"}), - make_function_call_response( - "get_weather_country", {"city": "Paris", "country": "France"} - ), - make_text_response("Tokyo is sunny; Paris is rainy."), - ], - ) - - async with new_worker( - new_client, - MultipleToolsWorkflow, - activities=[ - tool_tracker.get_weather, - tool_tracker.get_weather_country, - ], - ) as worker: - result = await new_client.execute_workflow( - MultipleToolsWorkflow.run, - "Compare Tokyo and Paris weather", - id=f"gemini-multi-tools-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - - assert tool_tracker.calls == [ - ("get_weather", {"city": "Tokyo"}), - ("get_weather_country", {"city": "Paris", "country": "France"}), - ] - assert result == "Tokyo is sunny; Paris is rainy." - - -async def test_workflow_method_as_tool(client: Client): - """A plain workflow method (not an activity) used as a tool runs in-workflow.""" - new_client, _ = apply_plugin( - client, - [ - make_function_call_response("lookup_city", {"city": "Berlin"}), - make_text_response("Berlin is wonderful."), - ], - ) - - async with new_worker(new_client, WorkflowMethodToolWorkflow) as worker: - handle = await new_client.start_workflow( - WorkflowMethodToolWorkflow.run, - "Tell me about Berlin", - id=f"gemini-wf-method-tool-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - result = await handle.result() - # Query must happen while worker is alive - tool_calls = await handle.query(WorkflowMethodToolWorkflow.get_tool_calls) - - assert tool_calls == [("lookup_city", {"city": "Berlin"})] - assert result == "Berlin is wonderful." - - -async def test_streamed_generate_content(client: Client): - """generate_content_stream collects batched chunks from the activity.""" - new_client, _ = apply_plugin( - client, [make_text_response("The quick brown fox jumps over the lazy dog")] - ) - - async with new_worker(new_client, StreamedGenerateWorkflow) as worker: - result = await new_client.execute_workflow( - StreamedGenerateWorkflow.run, - "Say something", - id=f"gemini-streamed-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - # The tracker splits the text into per-word chunks - assert len(result) == 9 - assert " ".join(result) == "The quick brown fox jumps over the lazy dog" - - -# =========================================================================== -# http_options propagation tests - per request overrides -# =========================================================================== - - -async def test_http_options_headers_propagate(client: Client): - """Custom headers passed via http_options arrive at the activity.""" - new_client, api_tracker = apply_plugin(client, [make_text_response("ok")]) - - async with new_worker(new_client, HttpOptionsWorkflow) as worker: - await new_client.execute_workflow( - HttpOptionsWorkflow.run, - args=["hi", {"headers": {"X-Custom": "test-value"}}], - id=f"gemini-http-headers-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.requests) == 1 - opts = api_tracker.requests[0].http_options_overrides - assert opts is not None - assert opts.headers == {"X-Custom": "test-value"} - - -async def test_http_options_api_version_propagates(client: Client): - """api_version passed via http_options arrives at the activity.""" - new_client, api_tracker = apply_plugin(client, [make_text_response("ok")]) - - async with new_worker(new_client, HttpOptionsWorkflow) as worker: - await new_client.execute_workflow( - HttpOptionsWorkflow.run, - args=["hi", {"api_version": "v1"}], - id=f"gemini-http-version-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.requests) == 1 - opts = api_tracker.requests[0].http_options_overrides - assert opts is not None - assert opts.api_version == "v1" - - -async def test_http_options_base_url_propagates(client: Client): - """base_url passed via http_options arrives at the activity.""" - new_client, api_tracker = apply_plugin(client, [make_text_response("ok")]) - - async with new_worker(new_client, HttpOptionsWorkflow) as worker: - await new_client.execute_workflow( - HttpOptionsWorkflow.run, - args=["hi", {"base_url": "https://custom.example.com"}], - id=f"gemini-http-base-url-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.requests) == 1 - opts = api_tracker.requests[0].http_options_overrides - assert opts is not None - assert opts.base_url == "https://custom.example.com" - - -async def test_http_options_multiple_fields_propagate(client: Client): - """Multiple http_options fields propagate together to the activity.""" - new_client, api_tracker = apply_plugin(client, [make_text_response("ok")]) - - async with new_worker(new_client, HttpOptionsWorkflow) as worker: - await new_client.execute_workflow( - HttpOptionsWorkflow.run, - args=[ - "hi", - { - "api_version": "v1beta", - "headers": {"X-Foo": "bar"}, - "base_url": "https://other.example.com", - }, - ], - id=f"gemini-http-multi-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.requests) == 1 - opts = api_tracker.requests[0].http_options_overrides - assert opts is not None - assert opts.api_version == "v1beta" - assert opts.headers == {"X-Foo": "bar"} - assert opts.base_url == "https://other.example.com" - - -async def test_no_http_options_passes_none(client: Client): - """When no per-request http_options are set, None reaches the activity.""" - new_client, api_tracker = apply_plugin(client, [make_text_response("ok")]) - - async with new_worker(new_client, SimpleGenerateWorkflow) as worker: - await new_client.execute_workflow( - SimpleGenerateWorkflow.run, - "hi", - id=f"gemini-http-none-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.requests) == 1 - assert api_tracker.requests[0].http_options_overrides is None - - -# =========================================================================== -# File upload/download tests -# =========================================================================== - - -async def test_file_upload_str_path(client: Client): - """Upload a file via str path dispatches through the activity.""" - new_client, api_tracker = apply_plugin(client, []) - - async with new_worker(new_client, FileUploadStrWorkflow) as worker: - result = await new_client.execute_workflow( - FileUploadStrWorkflow.run, - "/tmp/test.txt", - id=f"gemini-file-upload-str-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.file_upload_requests) == 1 - req = api_tracker.file_upload_requests[0] - assert req.file_path == "/tmp/test.txt" - assert req.file_bytes is None - assert req.config is not None - assert req.config.display_name == "Test File" - assert result == "files/test-uploaded-file" - - -async def test_file_upload_bytes(client: Client): - """Upload a file via io.BytesIO sends bytes through the activity.""" - new_client, api_tracker = apply_plugin(client, []) - - async with new_worker(new_client, FileUploadBytesWorkflow) as worker: - result = await new_client.execute_workflow( - FileUploadBytesWorkflow.run, - b"hello world", - id=f"gemini-file-upload-bytes-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.file_upload_requests) == 1 - req = api_tracker.file_upload_requests[0] - assert req.file_bytes == b"hello world" - assert req.file_path is None - assert req.config is not None - assert req.config.display_name == "Bytes File" - assert result == "files/test-uploaded-file" - - -async def test_file_download(client: Client): - """Download a file dispatches through the activity and returns bytes.""" - new_client, api_tracker = apply_plugin(client, []) - - async with new_worker(new_client, FileDownloadWorkflow) as worker: - result = await new_client.execute_workflow( - FileDownloadWorkflow.run, - "files/some-file", - id=f"gemini-file-download-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.file_download_requests) == 1 - assert api_tracker.file_download_requests[0].file == "files/some-file" - assert result == b"fake file content" - - -# =========================================================================== -# File search store upload tests -# =========================================================================== - - -async def test_file_search_store_upload(client: Client): - """Upload to file search store dispatches through the activity.""" - new_client, api_tracker = apply_plugin(client, []) - - async with new_worker(new_client, FileSearchStoreUploadWorkflow) as worker: - result = await new_client.execute_workflow( - FileSearchStoreUploadWorkflow.run, - args=["fileSearchStores/my-store", "/tmp/doc.txt"], - id=f"gemini-fss-upload-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.file_search_store_upload_requests) == 1 - req = api_tracker.file_search_store_upload_requests[0] - assert req.file_search_store_name == "fileSearchStores/my-store" - assert req.file_path == "/tmp/doc.txt" - assert req.config is not None - assert req.config.display_name == "Test Doc" - assert result == "operations/test-op" - - -# =========================================================================== -# Multi-turn chat tests -# =========================================================================== - - -async def test_chat_multi_turn(client: Client): - """Multi-turn chat sends multiple requests through the activity.""" - new_client, api_tracker = apply_plugin( - client, - [ - make_text_response("First answer"), - make_text_response("Second answer"), - ], - ) - - async with new_worker(new_client, ChatWorkflow) as worker: - result = await new_client.execute_workflow( - ChatWorkflow.run, - "Hello", - id=f"gemini-chat-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert len(api_tracker.requests) == 2 - assert result == ["First answer", "Second answer"] - - -class _FakeAsyncStream: - """Minimal stand-in for the SDK's AsyncStream in mocked-client tests.""" - - def __init__(self, events: list[Any]) -> None: - self._events = events - - def __aiter__(self) -> Any: - return self._gen() - - async def _gen(self) -> Any: - for event in self._events: - yield event - - async def __aenter__(self) -> "_FakeAsyncStream": - return self - - async def __aexit__(self, *_args: Any) -> None: - pass - - -# =========================================================================== -# Full integration test — real activities, mocked client -# =========================================================================== - - -def _apply_plugin_with_mock_client(client: Client, mock_responses: list[str]) -> Client: - """Create a real GoogleGenAIPlugin with real activities but a mocked client. - - Unlike ``apply_plugin``, this does NOT replace the activities. The - real ``GeminiApiCaller.activities()`` are registered, exercising the - full activity code path. The underlying ``genai.Client`` HTTP layer - and high-level file methods are mocked so no network calls are made. - """ - gemini = GeminiClient(api_key="fake-test-key") - - call_state = {"index": 0} - - async def fake_async_request(*_args: Any, **_kwargs: Any) -> SdkHttpResponse: - idx = call_state["index"] - call_state["index"] += 1 - if idx >= len(mock_responses): - raise RuntimeError( - f"No more mock responses (called {idx + 1} times, " - f"have {len(mock_responses)})" - ) - return SdkHttpResponse( - headers={"content-type": "application/json"}, - body=mock_responses[idx], - ) - - async def fake_async_request_streamed(*_args: Any, **_kwargs: Any) -> Any: - idx = call_state["index"] - call_state["index"] += 1 - if idx >= len(mock_responses): - raise RuntimeError( - f"No more mock responses (called {idx + 1} times, " - f"have {len(mock_responses)})" - ) - - async def _gen(): - yield SdkHttpResponse( - headers={"content-type": "application/json"}, - body=mock_responses[idx], - ) - - return _gen() - - gemini._api_client.async_request = fake_async_request # type: ignore[assignment] - gemini._api_client.async_request_streamed = fake_async_request_streamed # type: ignore[assignment] - - # Mock file operations at the high-level SDK interface (these are what - # the real activities call). - gemini.aio.files.upload = AsyncMock( # type: ignore[method-assign] - return_value=types.File( - name="files/mock-uploaded", - uri="https://fake.uri/files/mock-uploaded", - size_bytes=42, - ) - ) - gemini.aio.files.download = AsyncMock(return_value=b"mock download content") # type: ignore[method-assign] - gemini.aio.file_search_stores.upload_to_file_search_store = AsyncMock( # type: ignore[method-assign] - return_value=types.UploadToFileSearchStoreOperation.model_construct( - name="operations/mock-op" - ) - ) - - # Interactions and agents go through the vendored nextgen client (not - # BaseApiClient); inject a mock instance so the real activities exercise - # their code path without network access. - interaction = _deserialize(make_interaction_dict(), Interaction) - sse_events = [ - _deserialize(e, InteractionSSEEvent) for e in make_interaction_sse_events() - ] - - async def _interactions_create(*_args: Any, **kwargs: Any) -> Any: - if kwargs.get("stream"): - return _FakeAsyncStream(sse_events) - return interaction - - mock_interactions = MagicMock() - mock_interactions.create = _interactions_create - mock_agents = MagicMock() - mock_agents.create = AsyncMock(return_value=_deserialize(make_agent_dict(), Agent)) - # The interactions/agents resources are cached lazily on the async client; - # set them so the activities' client.aio.interactions/.agents calls hit the - # mocks instead of the network. - gemini.aio._interactions = mock_interactions # type: ignore[assignment] - gemini.aio._agents = mock_agents # type: ignore[assignment] - - plugin = GoogleGenAIPlugin(gemini) - config = client.config() - config["plugins"] = [plugin] - return Client(**config) - - -async def test_full_integration_with_mock_client(client: Client): - """Run a workflow through real activities with a mocked genai.Client. - - This is the only test that exercises the actual activity implementations - in _gemini_activity.py. Every other test uses the GeminiApiCallTracker - which replaces the activities entirely. - """ - # Mock responses are consumed in order by the async_request and - # async_request_streamed mocks. Steps 3-5 (file upload, download, - # store upload) are mocked separately at the SDK level and don't - # consume from this list. - new_client = _apply_plugin_with_mock_client( - client, - [ - make_text_response("Real activity response"), # generate_content - make_text_response("Streamed via real activity"), # generate_content_stream - make_text_response("Grounded RAG answer"), # RAG query with file_search - make_text_response(""), # file_search_stores.delete - ], - ) - - async with new_worker(new_client, FullIntegrationWorkflow) as worker: - result = await new_client.execute_workflow( - FullIntegrationWorkflow.run, - "test prompt", - id=f"gemini-full-integration-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - - assert result["generate"] == "Real activity response" - assert len(result["stream_chunks"]) > 0 - assert "Streamed" in " ".join(result["stream_chunks"]) - assert result["upload_name"] == "files/mock-uploaded" - assert result["download"] == "mock download content" - assert result["fss_upload_op"] == "operations/mock-op" - assert result["rag"] == "Grounded RAG answer" - assert result["store_deleted"] is True - assert result["interaction_id"] == INTERACTION_ID - assert result["interaction_events"] == [ - "interaction.created", - "step.delta", - "step.delta", - "interaction.completed", - ] - assert result["agent_id"] == "test-agent" - - -async def test_register_files_without_credentials_fails(client: Client): - """register_files raises when no credentials are available.""" - # _apply_plugin_with_mock_client uses api_key auth with no - # extra_credentials, so the activity should raise ValueError. - new_client = _apply_plugin_with_mock_client(client, []) - - async with new_worker(new_client, RegisterFilesWorkflow) as worker: - with pytest.raises(WorkflowFailureError) as exc_info: - await new_client.execute_workflow( - RegisterFilesWorkflow.run, - ["gs://bucket/file.txt"], - id=f"gemini-register-no-creds-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - # The error is nested: WorkflowFailureError → ActivityError → ApplicationError - cause = exc_info.value.cause - while cause.__cause__ is not None: - cause = cause.__cause__ - assert "No credentials available for register_files" in str(cause) - - -# =========================================================================== -# TemporalAsyncClient wiring tests -# =========================================================================== - - -def test_temporal_async_client_has_temporal_files(): - """TemporalAsyncClient() returns a client with TemporalAsyncFiles.""" - client = TemporalAsyncClient() - assert isinstance(client, TemporalAsyncClient) - assert isinstance(client.files, TemporalAsyncFiles) - - -def test_temporal_async_client_has_temporal_file_search_stores(): - """TemporalAsyncClient() returns a client with TemporalAsyncFileSearchStores.""" - client = TemporalAsyncClient() - assert isinstance(client.file_search_stores, TemporalAsyncFileSearchStores) - - -# =========================================================================== -# Unit tests for _TemporalApiClient -# =========================================================================== - - -def test_sync_request_raises(): - """Synchronous request() raises RuntimeError.""" - api_client = _TemporalApiClient() - with pytest.raises(RuntimeError, match="Synchronous requests are not supported"): - api_client.request("GET", "/test", {}) - - -def test_sync_request_streamed_raises(): - """Synchronous request_streamed() raises RuntimeError.""" - api_client = _TemporalApiClient() - with pytest.raises(RuntimeError, match="Synchronous streaming is not supported"): - api_client.request_streamed("GET", "/test", {}) - - -def test_upload_file_raises(): - """Low-level upload_file() raises NotImplementedError.""" - api_client = _TemporalApiClient() - with pytest.raises(NotImplementedError, match="client.files.upload"): - api_client.upload_file() - - -def test_download_file_raises(): - """Low-level download_file() raises NotImplementedError.""" - api_client = _TemporalApiClient() - with pytest.raises(NotImplementedError, match="client.files.download"): - api_client.download_file() - - -# =========================================================================== -# Unit tests for activity_as_tool -# =========================================================================== - - -def test_activity_as_tool_bare_function_raises(): - """activity_as_tool rejects a function without @activity.defn.""" - - async def not_an_activity(x: str) -> str: - return x - - with pytest.raises(GoogleGenAIError, match="@activity.defn"): - activity_as_tool(not_an_activity) - - -def test_activity_as_tool_preserves_name(): - """Returned wrapper keeps the original function name.""" - wrapper = activity_as_tool(ToolCallTracker.get_weather) - assert wrapper.__name__ == "get_weather" - - -def test_activity_as_tool_preserves_doc(): - """Returned wrapper keeps the original docstring.""" - wrapper = activity_as_tool(ToolCallTracker.get_weather) - assert wrapper.__doc__ == "Get the weather for a given city." - - -def test_activity_as_tool_preserves_signature(): - """Returned wrapper has the correct parameter signature (self hidden).""" - wrapper = activity_as_tool(ToolCallTracker.get_weather) - sig = inspect.signature(wrapper) - params = list(sig.parameters.keys()) - assert params == ["city"] - - -def test_activity_as_tool_multi_arg_signature(): - """Multi-arg activity preserves all parameter names (self hidden).""" - wrapper = activity_as_tool(ToolCallTracker.get_weather_country) - sig = inspect.signature(wrapper) - params = list(sig.parameters.keys()) - assert params == ["city", "country"] - - -def test_activity_as_tool_is_async_callable(): - """Returned wrapper is an async callable.""" - wrapper = activity_as_tool(ToolCallTracker.get_weather) - assert inspect.iscoroutinefunction(wrapper) - - -# =========================================================================== -# Bound-method tool wrapping - shields workflow-method tools from google-genai's -# internal config deep-copy (>= 2.8.0), which would otherwise clone the workflow -# instance and drop in-workflow state mutations. Version-independent unit tests. -# =========================================================================== - - -class _StatefulTool: - def __init__(self) -> None: - self.calls: list[str] = [] - - async def lookup_city(self, city: str) -> str: - """Look up info about a city.""" - self.calls.append(city) - return f"{city} is great" - - -async def test_closure_if_bound_method_unbinds_and_mutates_original(): - """A bound method becomes a plain function that still mutates the real instance.""" - obj = _StatefulTool() - wrapped = cast(Callable[..., Any], _closure_if_bound_method(obj.lookup_city)) - - # No longer a bound method (so deepcopy leaves it — and its captured self — - # intact), but name/doc/signature are preserved for AFC schema building. - assert not inspect.ismethod(wrapped) - assert wrapped.__name__ == "lookup_city" - assert wrapped.__doc__ == "Look up info about a city." - assert list(inspect.signature(wrapped).parameters) == ["city"] - - assert await wrapped("Berlin") == "Berlin is great" - assert obj.calls == ["Berlin"] - - -def test_closure_survives_deepcopy_bound_method_does_not(): - """The wrapper keeps its instance across a deep-copy; a raw bound method clones it.""" - import copy - - obj = _StatefulTool() - - # Raw bound method: deepcopy clones __self__ (the 2.8.0 failure mode). - copied_method = copy.deepcopy(obj.lookup_city) - assert inspect.ismethod(copied_method) - assert copied_method.__self__ is not obj - - # Closure: deepcopy is a no-op, so the captured instance is preserved. - wrapped = _closure_if_bound_method(obj.lookup_city) - assert copy.deepcopy(wrapped) is wrapped - - -def test_closure_if_bound_method_passes_through_non_methods(): - """Plain functions and activity_as_tool wrappers are left untouched.""" - - def plain(city: str) -> str: - return city - - assert _closure_if_bound_method(plain) is plain - activity_tool = activity_as_tool(ToolCallTracker.get_weather) - assert _closure_if_bound_method(activity_tool) is activity_tool - - -def test_wrap_bound_method_tools_config_forms(): - """Config tools are wrapped for both model and dict configs, without mutating the caller.""" - obj = _StatefulTool() - - # Model config: bound method wrapped, caller's config left as-is. - config = types.GenerateContentConfig(tools=[obj.lookup_city]) - wrapped = _wrap_bound_method_tools(config) - assert isinstance(wrapped, types.GenerateContentConfig) - assert wrapped is not config - assert config.tools == [obj.lookup_city] # original untouched - assert wrapped.tools is not None - assert not inspect.ismethod(wrapped.tools[0]) - - # Dict config: same, and the original dict/list are not mutated. - dict_config: types.GenerateContentConfigDict = {"tools": [obj.lookup_city]} - wrapped_dict = _wrap_bound_method_tools(dict_config) - assert isinstance(wrapped_dict, dict) - assert dict_config.get("tools") == [obj.lookup_city] - wrapped_tools = wrapped_dict.get("tools") - assert wrapped_tools is not None - assert not inspect.ismethod(wrapped_tools[0]) - - # No bound methods -> returned unchanged (no needless copy). - def plain(city: str) -> str: - return city - - plain_config = types.GenerateContentConfig(tools=[plain]) - assert _wrap_bound_method_tools(plain_config) is plain_config - assert _wrap_bound_method_tools(None) is None - - -# =========================================================================== -# Unit tests for TemporalAsyncClient -# =========================================================================== - - -def test_temporal_async_client_vertexai_config(): - """TemporalAsyncClient() forwards Vertex AI configuration to the _TemporalApiClient.""" - result = TemporalAsyncClient(vertexai=True, project="proj", location="us-central1") - assert result._api_client.vertexai is True - assert result._api_client.project == "proj" - assert result._api_client.location == "us-central1" - - -# =========================================================================== -# Unit tests for io.IOBase text-stream rejection -# =========================================================================== - - -async def test_file_upload_text_stream_raises(): - """TemporalAsyncFiles.upload rejects text streams with a clear TypeError.""" - files = TemporalAsyncFiles(_TemporalApiClient()) - with pytest.raises( - TypeError, match="file must be a binary stream when passing an io.IOBase" - ): - await files.upload(file=io.StringIO("text")) - - -async def test_file_search_store_upload_text_stream_raises(): - """TemporalAsyncFileSearchStores.upload_to_file_search_store rejects text streams.""" - stores = TemporalAsyncFileSearchStores(_TemporalApiClient()) - with pytest.raises( - TypeError, match="file must be a binary stream when passing an io.IOBase" - ): - await stores.upload_to_file_search_store( - file_search_store_name="fileSearchStores/x", - file=io.StringIO("text"), - ) - - -# =========================================================================== -# Interactions API tests -# =========================================================================== - - -async def test_interaction_create(client: Client): - """Non-streaming interactions.create returns a typed Interaction.""" - new_client, tracker = apply_plugin(client, []) - - async with new_worker(new_client, InteractionCreateWorkflow) as worker: - result = await new_client.execute_workflow( - InteractionCreateWorkflow.run, - "What's an interaction?", - id=f"gemini-interaction-create-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert result == {"id": INTERACTION_ID, "status": "completed"} - assert len(tracker.interaction_requests) == 1 - params = tracker.interaction_requests[0].params - assert params["model"] == "gemini-2.5-flash" - assert params["input"] == "What's an interaction?" - # stream selects the activity; timeout maps to start_to_close_timeout. - assert "stream" not in params - assert "timeout" not in params - - -async def test_interaction_create_stream(client: Client): - """Streamed interactions.create yields typed events in order.""" - new_client, tracker = apply_plugin(client, []) - - async with new_worker(new_client, InteractionStreamWorkflow) as worker: - result = await new_client.execute_workflow( - InteractionStreamWorkflow.run, - "Stream me", - id=f"gemini-interaction-stream-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert result == [ - "interaction.created", - "step.delta", - "step.delta", - "interaction.completed", - ] - assert len(tracker.interaction_requests) == 1 - assert "stream" not in tracker.interaction_requests[0].params - - -async def test_interaction_lifecycle(client: Client): - """interactions.get/cancel/delete forward the interaction id.""" - new_client, tracker = apply_plugin(client, []) - - async with new_worker(new_client, InteractionLifecycleWorkflow) as worker: - result = await new_client.execute_workflow( - InteractionLifecycleWorkflow.run, - "interactions/abc", - id=f"gemini-interaction-lifecycle-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert result["got_id"] == INTERACTION_ID - assert result["cancel_status"] == "cancelled" - assert result["deleted"] == {"deleted": True} - assert [r.id for r in tracker.interaction_id_requests] == ["interactions/abc"] * 3 - - -async def test_agents_crud(client: Client): - """agents.create/get/list/delete round-trip through activities.""" - new_client, tracker = apply_plugin(client, []) - - async with new_worker(new_client, AgentsWorkflow) as worker: - result = await new_client.execute_workflow( - AgentsWorkflow.run, - id=f"gemini-agents-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert result["created_id"] == "test-agent" - assert result["got_id"] == "test-agent" - assert result["listed_ids"] == ["test-agent"] - assert result["next_page_token"] == "next-tok" - assert result["delete_response"]["id"] == "test-agent" - # create + list went through the no-id request path - assert [r.params.get("page_size") for r in tracker.interaction_requests] == [ - None, - 10, - ] - - -async def test_webhooks_unsupported(client: Client): - """client.webhooks raises a clear error inside a workflow.""" - new_client, _ = apply_plugin(client, []) - - async with new_worker(new_client, WebhooksUnsupportedWorkflow) as worker: - result = await new_client.execute_workflow( - WebhooksUnsupportedWorkflow.run, - id=f"gemini-webhooks-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert "client.webhooks is not supported in Temporal workflows" in result - - -# =========================================================================== -# Unit tests for interactions helpers -# =========================================================================== - - -def test_pop_timeout_maps_to_activity_config(): - """A numeric timeout kwarg becomes the activity start_to_close_timeout.""" - from temporalio.contrib.google_genai._temporal_interactions import _pop_timeout - - config = ActivityConfig() - params: dict[str, Any] = {"model": "gemini-2.5-flash", "timeout": 120} - _pop_timeout(params, config) - assert "timeout" not in params - assert config.get("start_to_close_timeout") == timedelta(seconds=120) - - -def test_pop_timeout_rejects_non_numeric(): - """Non-numeric timeouts (e.g. httpx.Timeout) are rejected.""" - import httpx - - from temporalio.contrib.google_genai._temporal_interactions import _pop_timeout - - with pytest.raises(ValueError, match="timeout must be numeric seconds"): - _pop_timeout({"timeout": httpx.Timeout(5.0)}, ActivityConfig()) - - -# =========================================================================== -# Retry handling + error classification (Temporal owns retries) -# =========================================================================== - - -def test_plugin_rejects_client_retry_options(): - """A genai.Client with retry_options is rejected at plugin construction.""" - from google.genai.types import HttpOptions, HttpRetryOptions - - from temporalio.contrib.google_genai._google_genai_plugin import ( - _reject_sdk_retries, - ) - - client = GeminiClient( - api_key="fake-test-key", - http_options=HttpOptions(retry_options=HttpRetryOptions(attempts=3)), - ) - with pytest.raises(ValueError, match="retry_options"): - _reject_sdk_retries(client) - - -def test_plugin_allows_no_retry_options(): - """A default client (no retry_options) passes the retry check.""" - from temporalio.contrib.google_genai._google_genai_plugin import ( - _reject_sdk_retries, - ) - - _reject_sdk_retries(GeminiClient(api_key="fake-test-key")) - - -def test_process_http_options_rejects_retry_options(): - """Per-request http_options.retry_options raises in the workflow.""" - from google.genai.types import HttpOptions, HttpRetryOptions - - from temporalio.contrib.google_genai._temporal_api_client import _TemporalApiClient - - with pytest.raises(GoogleGenAIError, match="retry_options"): - _TemporalApiClient._process_http_options( - HttpOptions(retry_options=HttpRetryOptions(attempts=2)), - ActivityConfig(), - ) - - -def test_classify_api_error_retryable_vs_non_retryable(): - """Transient HTTP statuses stay retryable; client errors are non-retryable.""" - from google.genai import errors - - from temporalio.contrib.google_genai._gemini_activity import _classify_api_error - - client_err = errors.ClientError.__new__(errors.ClientError) - client_err.code = 400 - classified = _classify_api_error(client_err) - assert classified.non_retryable is True - assert classified.type == "ClientError" - - server_err = errors.ServerError.__new__(errors.ServerError) - server_err.code = 503 - assert _classify_api_error(server_err).non_retryable is False - - -def test_google_genai_error_is_application_error(): - """GoogleGenAIError is an ApplicationError so existing handling still works.""" - assert issubclass(GoogleGenAIError, ApplicationError) - - -# =========================================================================== -# Replay determinism + side-effect (activity scheduling) tests -# =========================================================================== - - -def _replay_plugin() -> GoogleGenAIPlugin: - """Build a real plugin instance for the Replayer. - - Replay never executes activities, so a fake-key client is sufficient. - What matters is that the Replayer uses the plugin's data converter, - sandbox passthrough, and workflow runner — the same configuration that - runs in production — so a history recorded by the plugin replays under - it without nondeterminism. - """ - return GoogleGenAIPlugin(GeminiClient(api_key="fake-test-key")) - - -async def test_replay_simple_generate(client: Client): - """A recorded simple generate_content history replays deterministically.""" - new_client, _ = apply_plugin(client, [make_text_response("Hello from Gemini!")]) - - async with new_worker(new_client, SimpleGenerateWorkflow) as worker: - handle = await new_client.start_workflow( - SimpleGenerateWorkflow.run, - "Say hello", - id=f"gemini-replay-simple-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - await handle.result() - history = await handle.fetch_history() - - await Replayer( - workflows=[SimpleGenerateWorkflow], - plugins=[_replay_plugin()], - ).replay_workflow(history) - - -async def test_replay_tool_loop(client: Client): - """The in-workflow AFC tool loop replays deterministically. - - The Gemini SDK's automatic-function-calling loop runs inside the - workflow, interleaving multiple activity calls with SDK-side request - formatting. That makes it the replay path most likely to surface - nondeterminism, so the recorded history is replayed under the real - plugin to prove the loop is replay-safe. - """ - tool_tracker = ToolCallTracker() - new_client, _ = apply_plugin( - client, - [ - make_function_call_response("get_weather", {"city": "Tokyo"}), - make_function_call_response( - "get_weather_country", {"city": "Paris", "country": "France"} - ), - make_text_response("Tokyo is sunny; Paris is rainy."), - ], - ) - - async with new_worker( - new_client, - MultipleToolsWorkflow, - activities=[tool_tracker.get_weather, tool_tracker.get_weather_country], - ) as worker: - handle = await new_client.start_workflow( - MultipleToolsWorkflow.run, - "Compare Tokyo and Paris weather", - id=f"gemini-replay-tools-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - await handle.result() - history = await handle.fetch_history() - - await Replayer( - workflows=[MultipleToolsWorkflow], - plugins=[_replay_plugin()], - ).replay_workflow(history) - - -async def test_side_effects_activity_scheduling(client: Client): - """Each Gemini API call and tool call schedules exactly one activity. - - Runs with ``max_cached_workflows=0`` so the workflow is evicted and - replayed from history between tasks — any nondeterminism in the - in-workflow AFC loop would fail the run — then asserts the exact number - of ``ActivityTaskScheduled`` events per activity type. The multi-tool - workflow issues three generate_content calls (initial + one per tool - result) and one activity per tool invocation. - """ - tool_tracker = ToolCallTracker() - new_client, _ = apply_plugin( - client, - [ - make_function_call_response("get_weather", {"city": "Tokyo"}), - make_function_call_response( - "get_weather_country", {"city": "Paris", "country": "France"} - ), - make_text_response("Tokyo is sunny; Paris is rainy."), - ], - ) - - async with new_worker( - new_client, - MultipleToolsWorkflow, - activities=[tool_tracker.get_weather, tool_tracker.get_weather_country], - max_cached_workflows=0, - ) as worker: - handle = await new_client.start_workflow( - MultipleToolsWorkflow.run, - "Compare Tokyo and Paris weather", - id=f"gemini-side-effects-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - await handle.result() - - scheduled: dict[str, int] = {} - async for e in handle.fetch_history_events(): - if e.HasField("activity_task_scheduled_event_attributes"): - name = e.activity_task_scheduled_event_attributes.activity_type.name - scheduled[name] = scheduled.get(name, 0) + 1 - - assert scheduled == { - "gemini_api_client_async_request": 3, - "get_weather": 1, - "get_weather_country": 1, - } diff --git a/tests/contrib/google_genai/test_gemini_mcp.py b/tests/contrib/google_genai/test_gemini_mcp.py deleted file mode 100644 index 04e36bb9d..000000000 --- a/tests/contrib/google_genai/test_gemini_mcp.py +++ /dev/null @@ -1,440 +0,0 @@ -"""MCP integration tests for the Google Gemini SDK Temporal integration. - -Covers the client-side ``McpClientSession`` path (Gemini Developer API) routed -through ``TemporalMcpClientSession``: -- tool discovery + call through a real stdio MCP server on the worker -- worker-side connection pooling and idle eviction -- ``cache_tools`` listing frequency -- full parameter-schema propagation to the model (the MCP wire-format check) -- replay determinism and exact activity-scheduling counts - -Plus the server-side pass-through paths that need no shim code: -- Vertex AI ``Tool(mcp_servers=[McpServer(...)])`` config serialization -- Interactions API ``MCPServerToolCallStep`` / ``MCPServerToolResultStep`` rehydration -""" - -from __future__ import annotations - -import json -import sys -from collections.abc import AsyncIterator -from contextlib import AbstractAsyncContextManager, asynccontextmanager -from datetime import timedelta -from pathlib import Path -from typing import Any -from uuid import uuid4 - -import pytest -from google.genai import types -from mcp import ClientSession, StdioServerParameters -from mcp.client.stdio import stdio_client - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.google_genai import ( - GoogleGenAIPlugin, - TemporalAsyncClient, - TemporalMcpClientSession, -) -from temporalio.contrib.google_genai._temporal_interactions import _deserialize -from temporalio.contrib.google_genai.testing import ( - GeminiTestServer, - function_call_response, - text_response, -) -from temporalio.worker import Replayer -from temporalio.workflow import ActivityConfig -from tests.contrib.google_genai.test_gemini import ( - GeminiApiCallTracker, - make_function_call_response, - make_text_response, -) -from tests.helpers import new_worker - -_ECHO_SERVER = str(Path(__file__).parent / "echo_mcp_server.py") - - -@asynccontextmanager -async def _echo_session() -> AsyncIterator[ClientSession]: - """Yield a connected, initialized session to the stdio echo MCP server.""" - params = StdioServerParameters(command=sys.executable, args=[_ECHO_SERVER]) - async with stdio_client(params) as (read, write): - async with ClientSession(read, write) as session: - await session.initialize() - yield session - - -class _CountingFactory: - """Wraps the echo factory to count how often a connection is opened.""" - - def __init__(self) -> None: - self.opens = 0 - - def __call__(self) -> AbstractAsyncContextManager[ClientSession]: - self.opens += 1 - return _echo_session() - - -def _apply_mcp_plugin( - client: Client, - mock_responses: list[str], - mcp_servers: dict, - mcp_connection_idle_timeout: timedelta | None = None, -) -> tuple[Client, GeminiApiCallTracker]: - """Build a plugin whose API activities are faked but MCP activities are real. - - Monkeypatches ``GeminiApiCaller.activities`` (so canned generate_content - responses drive the AFC loop) while leaving the plugin's MCP activities — - built from ``mcp_servers`` — to hit the real stdio echo server. - """ - from temporalio.contrib.google_genai._gemini_activity import GeminiApiCaller - - tracker = GeminiApiCallTracker(mock_responses) - original = GeminiApiCaller.activities - GeminiApiCaller.activities = lambda self: [ # type: ignore[method-assign] - tracker.gemini_api_client_async_request, - tracker.gemini_api_client_async_request_streamed, - ] - try: - from google.genai import Client as GeminiClient - - plugin = GoogleGenAIPlugin( - GeminiClient(api_key="fake-test-key"), - mcp_servers=mcp_servers, - mcp_connection_idle_timeout=mcp_connection_idle_timeout, - ) - finally: - GeminiApiCaller.activities = original # type: ignore[method-assign] - - config = client.config() - config["plugins"] = [plugin] - return Client(**config), tracker - - -def _replay_plugin(mcp_servers: dict) -> GoogleGenAIPlugin: - from google.genai import Client as GeminiClient - - return GoogleGenAIPlugin( - GeminiClient(api_key="fake-test-key"), mcp_servers=mcp_servers - ) - - -async def _activity_names(handle: Any) -> list[str]: - names: list[str] = [] - async for e in handle.fetch_history_events(): - if e.HasField("activity_task_scheduled_event_attributes"): - names.append(e.activity_task_scheduled_event_attributes.activity_type.name) - return names - - -@pytest.fixture(autouse=True) -def _clear_mcp_connections(): # pyright: ignore[reportUnusedFunction] - """Isolate the module-global MCP connection pool between tests.""" - from temporalio.contrib.google_genai import _mcp - - _mcp._CONNECTIONS.clear() - yield - _mcp._CONNECTIONS.clear() - - -# --------------------------------------------------------------------------- -# Workflow -# --------------------------------------------------------------------------- - - -@workflow.defn -class McpToolWorkflow: - """generate_content grounded by an MCP tool, via the AFC loop. - - Takes the MCP server name as an argument so each test can use a distinct - name (the worker-side connection pool is keyed by name and shared across - activity invocations in the worker process). The number of tool calls is - driven entirely by the mocked model responses, not the workflow. - """ - - @workflow.run - async def run(self, server_name: str, prompt: str) -> str: - client = TemporalAsyncClient() - session = TemporalMcpClientSession( - server_name, - cache_tools=True, - activity_config=ActivityConfig( - start_to_close_timeout=timedelta(seconds=30) - ), - ) - response = await client.models.generate_content( - model="gemini-2.5-flash", - contents=prompt, - config=types.GenerateContentConfig(tools=[session]), - ) - return response.text or "" - - -# --------------------------------------------------------------------------- -# Client-side MCP tests -# --------------------------------------------------------------------------- - - -async def test_mcp_tool_discovery_and_call(client: Client): - """The AFC loop discovers + calls an MCP tool through activities.""" - server = "echo_basic" - new_client, _ = _apply_mcp_plugin( - client, - [ - make_function_call_response("echo", {"message": "hello"}), - make_text_response("Done!"), - ], - mcp_servers={server: _echo_session}, - ) - - async with new_worker(new_client, McpToolWorkflow) as worker: - handle = await new_client.start_workflow( - McpToolWorkflow.run, - args=[server, "echo hello"], - id=f"gemini-mcp-{uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - result = await handle.result() - names = await _activity_names(handle) - - assert result == "Done!" - assert names == [ - f"{server}-list-tools", - "gemini_api_client_async_request", - f"{server}-call-tool", - "gemini_api_client_async_request", - ] - - -async def test_mcp_connection_pooling(client: Client): - """Two tool calls in one workflow reuse a single worker-side connection.""" - server = "echo_pool" - factory = _CountingFactory() - new_client, _ = _apply_mcp_plugin( - client, - [ - make_function_call_response("echo", {"message": "one"}), - make_function_call_response("echo", {"message": "two"}), - make_text_response("Done!"), - ], - mcp_servers={server: factory}, - ) - - async with new_worker(new_client, McpToolWorkflow) as worker: - handle = await new_client.start_workflow( - McpToolWorkflow.run, - args=[server, "echo twice"], - id=f"gemini-mcp-pool-{uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - assert await handle.result() == "Done!" - names = await _activity_names(handle) - - # list-tools + two call-tools all served by one lazily-opened connection. - assert names.count(f"{server}-call-tool") == 2 - assert factory.opens == 1 - - -async def test_mcp_full_schema_propagation(client: Client): - """The model receives the MCP tool's full parameter schema, not just name.""" - server = "echo_schema" - new_client, tracker = _apply_mcp_plugin( - client, - [ - make_function_call_response("echo", {"message": "hi"}), - make_text_response("Done!"), - ], - mcp_servers={server: _echo_session}, - ) - - async with new_worker(new_client, McpToolWorkflow) as worker: - await new_client.execute_workflow( - McpToolWorkflow.run, - args=[server, "echo hi"], - id=f"gemini-mcp-schema-{uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - - # The first generate request carries the tool declarations the SDK built - # from the MCP list_tools result. - first = tracker.requests[0].request_dict - decls = first["tools"][0]["functionDeclarations"] # type: ignore[index] - echo_decl = next(d for d in decls if d["name"] == "echo") - assert "parameters" in echo_decl - assert "message" in echo_decl["parameters"]["properties"] - - -async def test_mcp_replay(client: Client): - """A recorded MCP tool-loop history replays deterministically.""" - server = "echo_replay" - new_client, _ = _apply_mcp_plugin( - client, - [ - make_function_call_response("echo", {"message": "hello"}), - make_text_response("Done!"), - ], - mcp_servers={server: _echo_session}, - ) - - async with new_worker(new_client, McpToolWorkflow) as worker: - handle = await new_client.start_workflow( - McpToolWorkflow.run, - args=[server, "echo hello"], - id=f"gemini-mcp-replay-{uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - await handle.result() - history = await handle.fetch_history() - - await Replayer( - workflows=[McpToolWorkflow], - plugins=[_replay_plugin({server: _echo_session})], - ).replay_workflow(history) - - -async def test_mcp_side_effects(client: Client): - """max_cached_workflows=0: exact ActivityTaskScheduled counts per type.""" - server = "echo_side" - new_client, _ = _apply_mcp_plugin( - client, - [ - make_function_call_response("echo", {"message": "hello"}), - make_text_response("Done!"), - ], - mcp_servers={server: _echo_session}, - ) - - async with new_worker( - new_client, McpToolWorkflow, max_cached_workflows=0 - ) as worker: - handle = await new_client.start_workflow( - McpToolWorkflow.run, - args=[server, "echo hello"], - id=f"gemini-mcp-side-effects-{uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - await handle.result() - names = await _activity_names(handle) - - scheduled: dict[str, int] = {} - for n in names: - scheduled[n] = scheduled.get(n, 0) + 1 - assert scheduled == { - f"{server}-list-tools": 1, - "gemini_api_client_async_request": 2, - f"{server}-call-tool": 1, - } - - -async def test_mcp_via_gemini_test_server(client: Client): - """GeminiTestServer.plugin(mcp_servers=...) scripts the model, runs MCP for real. - - This is the public testing path — the tests above reach into - ``GeminiApiCaller`` to also count API calls, but a user testing an - MCP-grounded workflow should need nothing but ``GeminiTestServer``. - """ - server = "echo_public" - test_server = GeminiTestServer( - [ - function_call_response("echo", {"message": "durable execution"}), - text_response("The echo tool returned: durable execution"), - ] - ) - - config = client.config() - config["plugins"] = [test_server.plugin(mcp_servers={server: _echo_session})] - new_client = Client(**config) - - async with new_worker(new_client, McpToolWorkflow) as worker: - handle = await new_client.start_workflow( - McpToolWorkflow.run, - args=[server, "echo the phrase: durable execution"], - id=f"gemini-mcp-public-{uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - result = await handle.result() - names = await _activity_names(handle) - - assert result == "The echo tool returned: durable execution" - # The MCP activities really ran; only the model HTTP layer was scripted. - assert names == [ - f"{server}-list-tools", - "gemini_api_client_async_request", - f"{server}-call-tool", - "gemini_api_client_async_request", - ] - # The echoed message reached the model as a function response. - assert any( - "durable execution" in json.dumps(request) - for request in test_server.requests[1:] - ) - - -# --------------------------------------------------------------------------- -# Server-side pass-through tests (no shim code) -# --------------------------------------------------------------------------- - - -def test_vertex_mcp_server_config_serializes(): - """Vertex server-side MCP config round-trips as plain request data.""" - tool = types.Tool( - mcp_servers=[ - types.McpServer( - name="weather", - streamable_http_transport=types.StreamableHttpTransport( - url="https://example.com/mcp", - ), - ) - ] - ) - config = types.GenerateContentConfig(tools=[tool]) - dumped = config.model_dump(mode="json", exclude_none=True) - server = dumped["tools"][0]["mcp_servers"][0] - assert server["name"] == "weather" - assert server["streamable_http_transport"]["url"] == "https://example.com/mcp" - - -def test_interactions_mcp_steps_rehydrate(): - """Interactions API MCP step payloads rehydrate via _deserialize.""" - from google.genai.interactions import InteractionSSEEvent - - call_event: Any = _deserialize( - { - "event_type": "step.start", - "index": 0, - "step": { - "type": "mcp_server_tool_call", - "id": "call-1", - "name": "lookup", - "server_name": "weather", - "arguments": {"city": "Tokyo"}, - }, - }, - InteractionSSEEvent, - ) - assert call_event.step.type == "mcp_server_tool_call" - assert call_event.step.server_name == "weather" - assert call_event.step.arguments == {"city": "Tokyo"} - - result_event: Any = _deserialize( - { - "event_type": "step.start", - "index": 0, - "step": { - "type": "mcp_server_tool_result", - "call_id": "call-1", - "name": "lookup", - "server_name": "weather", - "result": "sunny", - }, - }, - InteractionSSEEvent, - ) - assert result_event.step.type == "mcp_server_tool_result" - assert result_event.step.call_id == "call-1" diff --git a/tests/contrib/google_genai/test_gemini_streaming.py b/tests/contrib/google_genai/test_gemini_streaming.py deleted file mode 100644 index e7bee8747..000000000 --- a/tests/contrib/google_genai/test_gemini_streaming.py +++ /dev/null @@ -1,122 +0,0 @@ -"""Streaming tests for the Google Gemini SDK Temporal integration. - -Covers ``generate_content_stream`` publishing each chunk to a -:class:`~temporalio.contrib.workflow_streams.WorkflowStream` topic for external -consumers, and the fail-fast when ``streaming_topic`` is set without a hosted -``WorkflowStream``. -""" - -from __future__ import annotations - -import uuid -from datetime import timedelta - -import pytest -from google.genai import types - -from temporalio import workflow -from temporalio.client import Client, WorkflowFailureError -from temporalio.contrib.google_genai import TemporalAsyncClient -from temporalio.contrib.google_genai.testing import GeminiTestServer, text_response -from temporalio.contrib.workflow_streams import WorkflowStream, WorkflowStreamClient -from tests.helpers import new_worker - - -@workflow.defn -class StreamingWorkflowStreamWorkflow: - """Streams generate_content_stream chunks to a WorkflowStream topic. - - Holds the run open on a ``finish`` signal so an external subscriber can - reliably consume the published chunk before the workflow completes. - """ - - @workflow.init - def __init__(self, prompt: str) -> None: - self.stream = WorkflowStream() - self._done = False - - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient(streaming_topic="gemini") - out: list[str] = [] - async for chunk in await client.models.generate_content_stream( - model="gemini-2.5-flash", - contents=prompt, - ): - out.append(chunk.text or "") - await workflow.wait_condition(lambda: self._done) - return "".join(out) - - @workflow.signal - def finish(self) -> None: - self._done = True - - -@workflow.defn -class StreamingNoStreamWorkflow: - """Sets streaming_topic but hosts no WorkflowStream — must fail fast.""" - - @workflow.run - async def run(self, prompt: str) -> str: - client = TemporalAsyncClient(streaming_topic="gemini") - async for _ in await client.models.generate_content_stream( - model="gemini-2.5-flash", - contents=prompt, - ): - pass - return "done" - - -async def test_streaming_publishes_to_workflow_stream(client: Client): - """Streamed chunks are published to the WorkflowStream for external consumers.""" - server = GeminiTestServer([text_response("Hello from Gemini stream")]) - config = client.config() - config["plugins"] = [server.plugin()] - new_client = Client(**config) - - async with new_worker(new_client, StreamingWorkflowStreamWorkflow) as worker: - wf_id = f"gemini-stream-{uuid.uuid4()}" - handle = await new_client.start_workflow( - StreamingWorkflowStreamWorkflow.run, - "say hi", - id=wf_id, - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - - stream = WorkflowStreamClient.create(new_client, wf_id) - received: list[types.GenerateContentResponse] = [] - async for item in stream.subscribe( - ["gemini"], - result_type=types.GenerateContentResponse, - poll_cooldown=timedelta(milliseconds=20), - ): - received.append(item.data) - break # one scripted chunk - - await handle.signal(StreamingWorkflowStreamWorkflow.finish) - result = await handle.result() - - assert result == "Hello from Gemini stream" - assert len(received) == 1 - assert received[0].text == "Hello from Gemini stream" - - -async def test_streaming_without_workflow_stream_raises(client: Client): - """streaming_topic set but no WorkflowStream hosted fails the workflow.""" - server = GeminiTestServer([text_response("unused")]) - config = client.config() - config["plugins"] = [server.plugin()] - new_client = Client(**config) - - async with new_worker(new_client, StreamingNoStreamWorkflow) as worker: - with pytest.raises(WorkflowFailureError) as exc_info: - await new_client.execute_workflow( - StreamingNoStreamWorkflow.run, - "hi", - id=f"gemini-stream-nostream-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert "WorkflowStream" in str(exc_info.value.cause) diff --git a/tests/contrib/langgraph/e2e_functional_entrypoints.py b/tests/contrib/langgraph/e2e_functional_entrypoints.py deleted file mode 100644 index 516fdeb52..000000000 --- a/tests/contrib/langgraph/e2e_functional_entrypoints.py +++ /dev/null @@ -1,145 +0,0 @@ -"""Functional API entrypoint definitions for E2E tests. - -These define @task and @entrypoint functions used in functional API E2E tests. -""" - -from __future__ import annotations - -import asyncio - -import langgraph.types -from langgraph.func import entrypoint, task # pyright: ignore[reportMissingTypeStubs] - - -@task -def double_value(x: int) -> int: - return x * 2 - - -@task -def add_ten(x: int) -> int: - return x + 10 - - -@entrypoint() -async def simple_functional_entrypoint(value: int) -> dict: - doubled = await double_value(value) - result = await add_ten(doubled) - return {"result": result} - - -# Track task execution count for continue-as-new testing -_task_execution_counts: dict[str, int] = {} - - -def get_task_execution_counts() -> dict[str, int]: - return _task_execution_counts.copy() - - -def reset_task_execution_counts() -> None: - _task_execution_counts.clear() - - -@task -def expensive_task_a(x: int) -> int: - _task_execution_counts["task_a"] = _task_execution_counts.get("task_a", 0) + 1 - return x * 3 - - -@task -def expensive_task_b(x: int) -> int: - _task_execution_counts["task_b"] = _task_execution_counts.get("task_b", 0) + 1 - return x + 100 - - -@task -def expensive_task_c(x: int) -> int: - _task_execution_counts["task_c"] = _task_execution_counts.get("task_c", 0) + 1 - return x * 2 - - -@entrypoint() -async def continue_as_new_entrypoint(value: int) -> dict: - """For input 10: 10 * 3 = 30 -> 30 + 100 = 130 -> 130 * 2 = 260""" - result_a = await expensive_task_a(value) - result_b = await expensive_task_b(result_a) - result_c = await expensive_task_c(result_b) - return {"result": result_c} - - -@task -def step_1(x: int) -> int: - _task_execution_counts["step_1"] = _task_execution_counts.get("step_1", 0) + 1 - return x * 2 - - -@task -def step_2(x: int) -> int: - _task_execution_counts["step_2"] = _task_execution_counts.get("step_2", 0) + 1 - return x + 5 - - -@task -def step_3(x: int) -> int: - _task_execution_counts["step_3"] = _task_execution_counts.get("step_3", 0) + 1 - return x * 3 - - -@task -def step_4(x: int) -> int: - _task_execution_counts["step_4"] = _task_execution_counts.get("step_4", 0) + 1 - return x - 10 - - -@task -def step_5(x: int) -> int: - _task_execution_counts["step_5"] = _task_execution_counts.get("step_5", 0) + 1 - return x + 100 - - -@entrypoint() -async def partial_execution_entrypoint(input_data: dict) -> dict: - """For value=10, all 5 tasks: 10*2=20 -> +5=25 -> *3=75 -> -10=65 -> +100=165""" - value = input_data["value"] - stop_after = input_data.get("stop_after", 5) - - result = value - result = await step_1(result) - if stop_after == 1: - return {"result": result, "completed_tasks": 1} - result = await step_2(result) - if stop_after == 2: - return {"result": result, "completed_tasks": 2} - result = await step_3(result) - if stop_after == 3: - return {"result": result, "completed_tasks": 3} - result = await step_4(result) - if stop_after == 4: - return {"result": result, "completed_tasks": 4} - result = await step_5(result) - return {"result": result, "completed_tasks": 5} - - -@task -def ask_human(question: str) -> str: - return langgraph.types.interrupt(question) - - -@entrypoint() -async def interrupt_entrypoint(value: str) -> dict: - """Entrypoint that interrupts for human input, then returns the answer.""" - answer = await ask_human("Do you approve?") - return {"input": value, "answer": answer} - - -@task -async def waiting_task(x: int) -> int: - # Wait (forever) until start_to_close_timeout or worker shutdown cancellation - await asyncio.Event().wait() - return x - - -@entrypoint() -async def slow_entrypoint(value: int) -> dict: - result = await waiting_task(value) - return {"result": result} diff --git a/tests/contrib/langgraph/e2e_functional_workflows.py b/tests/contrib/langgraph/e2e_functional_workflows.py deleted file mode 100644 index d355bdb28..000000000 --- a/tests/contrib/langgraph/e2e_functional_workflows.py +++ /dev/null @@ -1,97 +0,0 @@ -"""Workflow definitions for Functional API E2E tests.""" - -from __future__ import annotations - -from dataclasses import dataclass -from typing import Any - -from temporalio import workflow -from temporalio.contrib.langgraph import cache, entrypoint - - -@workflow.defn -class SimpleFunctionalE2EWorkflow: - def __init__(self) -> None: - self.app = entrypoint("e2e_simple_functional") - - @workflow.run - async def run(self, input_value: int) -> dict: - return await self.app.ainvoke(input_value) - - -@workflow.defn -class SlowFunctionalWorkflow: - def __init__(self) -> None: - self.app = entrypoint("e2e_slow_functional") - - @workflow.run - async def run(self, input_value: int) -> dict: - return await self.app.ainvoke(input_value) - - -@dataclass -class ContinueAsNewInput: - value: int - cache: dict[str, Any] | None = None - task_a_done: bool = False - task_b_done: bool = False - - -@workflow.defn -class ContinueAsNewFunctionalWorkflow: - """Continues-as-new after each phase, passing cache for task deduplication.""" - - @workflow.run - async def run(self, input_data: ContinueAsNewInput) -> dict[str, Any]: - app = entrypoint("e2e_continue_as_new_functional", cache=input_data.cache) - - result = await app.ainvoke(input_data.value) - - if not input_data.task_a_done: - workflow.continue_as_new( - ContinueAsNewInput( - value=input_data.value, - cache=cache(), - task_a_done=True, - ) - ) - - if not input_data.task_b_done: - workflow.continue_as_new( - ContinueAsNewInput( - value=input_data.value, - cache=cache(), - task_a_done=True, - task_b_done=True, - ) - ) - - return result - - -@dataclass -class PartialExecutionInput: - value: int - cache: dict[str, Any] | None = None - phase: int = 1 - - -@workflow.defn -class PartialExecutionWorkflow: - """Phase 1: 3 tasks + cache. Phase 2: all 5 (1-3 cached).""" - - @workflow.run - async def run(self, input_data: PartialExecutionInput) -> dict[str, Any]: - app = entrypoint("e2e_partial_execution", cache=input_data.cache) - - if input_data.phase == 1: - await app.ainvoke({"value": input_data.value, "stop_after": 3}) - workflow.continue_as_new( - PartialExecutionInput( - value=input_data.value, - cache=cache(), - phase=2, - ) - ) - - return await app.ainvoke({"value": input_data.value, "stop_after": 5}) diff --git a/tests/contrib/langgraph/test_command.py b/tests/contrib/langgraph/test_command.py deleted file mode 100644 index 59a2fd68b..000000000 --- a/tests/contrib/langgraph/test_command.py +++ /dev/null @@ -1,68 +0,0 @@ -from datetime import timedelta -from typing import Any, Literal -from uuid import uuid4 - -from langgraph.graph import ( # pyright: ignore[reportMissingTypeStubs] - START, - StateGraph, -) -from langgraph.types import Command -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -def node_a(state: State) -> Command[Literal["node_b"]]: - return Command(update={"value": state["value"] + "a"}, goto="node_b") - - -def node_b(state: State) -> Command[Literal["__end__"]]: - return Command(update={"value": state["value"] + "b"}, goto="__end__") - - -@workflow.defn -class CommandWorkflow: - def __init__(self) -> None: - self.app = graph("my-graph").compile() - - @workflow.run - async def run(self, input: str) -> Any: - return await self.app.ainvoke({"value": input}) - - -async def test_command_goto_and_update(client: Client): - g = StateGraph(State) - g.add_node("node_a", node_a, metadata={"execute_in": "activity"}) - g.add_node("node_b", node_b, metadata={"execute_in": "activity"}) - g.add_edge(START, "node_a") - - task_queue = f"command-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[CommandWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"my-graph": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - ) - ], - ): - result = await client.execute_workflow( - CommandWorkflow.run, - "", - id=f"test-command-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"value": "ab"} diff --git a/tests/contrib/langgraph/test_continue_as_new.py b/tests/contrib/langgraph/test_continue_as_new.py deleted file mode 100644 index 304862361..000000000 --- a/tests/contrib/langgraph/test_continue_as_new.py +++ /dev/null @@ -1,72 +0,0 @@ -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -from langgraph.checkpoint.memory import InMemorySaver -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from langgraph.graph.state import ( # pyright: ignore[reportMissingTypeStubs] - RunnableConfig, -) -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def node(state: State) -> dict[str, str]: - return {"value": state["value"] + "a"} - - -@workflow.defn -class ContinueAsNewWorkflow: - def __init__(self) -> None: - self.app = graph("my-graph").compile(checkpointer=InMemorySaver()) - - @workflow.run - async def run(self, values: State) -> Any: - config = RunnableConfig({"configurable": {"thread_id": "1"}}) - - await self.app.aupdate_state(config, values) - await self.app.ainvoke(values, config) - - if len(values["value"]) < 3: - state = await self.app.aget_state(config) - workflow.continue_as_new(state.values) - - return values - - -async def test_continue_as_new(client: Client): - g = StateGraph(State) - g.add_node("node", node, metadata={"execute_in": "activity"}) - g.add_edge(START, "node") - - task_queue = f"my-graph-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[ContinueAsNewWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"my-graph": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - ) - ], - ): - result = await client.execute_workflow( - ContinueAsNewWorkflow.run, - State(value=""), - id=f"test-workflow-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"value": "aaa"} diff --git a/tests/contrib/langgraph/test_continue_as_new_cached.py b/tests/contrib/langgraph/test_continue_as_new_cached.py deleted file mode 100644 index af41f384f..000000000 --- a/tests/contrib/langgraph/test_continue_as_new_cached.py +++ /dev/null @@ -1,131 +0,0 @@ -"""Test Graph API continue-as-new with task result caching. - -Verifies that node results are cached across continue-as-new boundaries, -so nodes don't re-execute when the graph is re-invoked with the same state. -""" - -from dataclasses import dataclass -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, cache, graph -from temporalio.worker import Worker - -# Track execution counts to verify caching -_execution_counts: dict[str, int] = {} - - -def _reset(): - _execution_counts.clear() - - -class State(TypedDict): - value: int - - -async def multiply_by_3(state: State) -> dict[str, int]: - _execution_counts["multiply"] = _execution_counts.get("multiply", 0) + 1 - return {"value": state["value"] * 3} - - -async def add_100(state: State) -> dict[str, int]: - _execution_counts["add"] = _execution_counts.get("add", 0) + 1 - return {"value": state["value"] + 100} - - -async def double(state: State) -> dict[str, int]: - _execution_counts["double"] = _execution_counts.get("double", 0) + 1 - return {"value": state["value"] * 2} - - -@dataclass -class GraphContinueAsNewInput: - value: int - cache: dict[str, Any] | None = None - phase: int = 1 # 1, 2, 3 — continues-as-new after phases 1 and 2 - - -@workflow.defn -class GraphContinueAsNewWorkflow: - """Runs a 3-node graph, continuing-as-new after each phase. - - Phase 1: runs graph (all 3 nodes execute), continues-as-new with cache. - Phase 2: runs graph again with same input (all 3 cached), continues-as-new. - Phase 3: runs graph again with same input (all 3 cached), returns result. - - Without caching: each node executes 3 times. - With caching: each node executes once (first run), cached for phases 2 & 3. - """ - - @workflow.run - async def run(self, input_data: GraphContinueAsNewInput) -> dict[str, int]: - app = graph("cached-graph", cache=input_data.cache).compile() - result = await app.ainvoke({"value": input_data.value}) - - if input_data.phase < 3: - workflow.continue_as_new( - GraphContinueAsNewInput( - value=input_data.value, - cache=cache(), - phase=input_data.phase + 1, - ) - ) - - return result - - -async def test_graph_continue_as_new_cached(client: Client): - """Each node executes once despite 3 continue-as-new cycles. - - Graph: multiply_by_3 -> add_100 -> double - Input 10: 10 * 3 = 30 -> 30 + 100 = 130 -> 130 * 2 = 260 - """ - _reset() - - metadata = { - "execute_in": "activity", - "start_to_close_timeout": timedelta(seconds=10), - } - g = StateGraph(State) - g.add_node("multiply_by_3", multiply_by_3, metadata=metadata) - g.add_node("add_100", add_100, metadata=metadata) - g.add_node("double", double, metadata=metadata) - g.add_edge(START, "multiply_by_3") - g.add_edge("multiply_by_3", "add_100") - g.add_edge("add_100", "double") - - task_queue = f"graph-cached-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[GraphContinueAsNewWorkflow], - plugins=[LangGraphPlugin(graphs={"cached-graph": g})], - ): - result = await client.execute_workflow( - GraphContinueAsNewWorkflow.run, - GraphContinueAsNewInput(value=10), - id=f"graph-cached-{uuid4()}", - task_queue=task_queue, - execution_timeout=timedelta(seconds=60), - ) - - # 10 * 3 = 30 -> + 100 = 130 -> * 2 = 260 - assert result == {"value": 260} - - # Each node should execute exactly once — phases 2 and 3 use cached results. - assert _execution_counts.get("multiply", 0) == 1, ( - f"multiply executed {_execution_counts.get('multiply', 0)} times, expected 1" - ) - assert _execution_counts.get("add", 0) == 1, ( - f"add executed {_execution_counts.get('add', 0)} times, expected 1" - ) - assert _execution_counts.get("double", 0) == 1, ( - f"double executed {_execution_counts.get('double', 0)} times, expected 1" - ) diff --git a/tests/contrib/langgraph/test_e2e_functional.py b/tests/contrib/langgraph/test_e2e_functional.py deleted file mode 100644 index d10efb483..000000000 --- a/tests/contrib/langgraph/test_e2e_functional.py +++ /dev/null @@ -1,338 +0,0 @@ -"""End-to-end tests for LangGraph Functional API integration (v1 and v2). - -Requires a running Temporal test server (started by conftest.py). -LangGraph's Functional API requires Python >= 3.11 for async context -variable propagation (see langgraph.config.get_config). -""" - -from __future__ import annotations - -import sys -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -import pytest - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), - reason="LangGraph Functional API requires Python >= 3.11 for async context propagation", -) -from langchain_core.runnables import RunnableConfig -from langgraph.checkpoint.memory import InMemorySaver -from langgraph.func import ( # pyright: ignore[reportMissingTypeStubs] - entrypoint as lg_entrypoint, -) -from langgraph.func import task # pyright: ignore[reportMissingTypeStubs] -from langgraph.types import Command -from pytest import raises - -from temporalio import workflow -from temporalio.client import Client, WorkflowFailureError -from temporalio.common import RetryPolicy -from temporalio.contrib.langgraph import LangGraphPlugin, entrypoint -from temporalio.worker import Worker -from tests.contrib.langgraph.e2e_functional_entrypoints import ( - add_ten, - ask_human, - continue_as_new_entrypoint, - double_value, - expensive_task_a, - expensive_task_b, - expensive_task_c, - get_task_execution_counts, - interrupt_entrypoint, - partial_execution_entrypoint, - reset_task_execution_counts, - simple_functional_entrypoint, - slow_entrypoint, - step_1, - step_2, - step_3, - step_4, - step_5, - waiting_task, -) -from tests.contrib.langgraph.e2e_functional_workflows import ( - ContinueAsNewFunctionalWorkflow, - ContinueAsNewInput, - PartialExecutionInput, - PartialExecutionWorkflow, - SimpleFunctionalE2EWorkflow, - SlowFunctionalWorkflow, -) - -_DEFAULT_ACTIVITY_OPTIONS = {"start_to_close_timeout": timedelta(seconds=30)} - - -def _execute_in_activity(*task_names: str) -> dict[str, dict[str, Any]]: - return {name: {"execute_in": "activity"} for name in task_names} - - -# V2-only tasks defined here to avoid sharing mutated _TaskFunction objects -# (Plugin wraps task.func in-place). - - -@task -def triple_value(x: int) -> int: - return x * 3 - - -@task -def add_five(x: int) -> int: - return x + 5 - - -@lg_entrypoint() -async def simple_v2_entrypoint(value: int) -> dict: - tripled = await triple_value(value) - result = await add_five(tripled) - return {"result": result} - - -@workflow.defn -class SimpleV2Workflow: - def __init__(self) -> None: - self.app = entrypoint("v2_simple") - - @workflow.run - async def run(self, input_value: int) -> dict[str, Any]: - result = await self.app.ainvoke(input_value, version="v2") - return result.value - - -@workflow.defn -class InterruptV2FunctionalWorkflow: - def __init__(self) -> None: - self.app = entrypoint("v2_interrupt") - self.app.checkpointer = InMemorySaver() - - @workflow.run - async def run(self, input_value: str) -> dict[str, Any]: - config = RunnableConfig( - {"configurable": {"thread_id": workflow.info().workflow_id}} - ) - - result = await self.app.ainvoke(input_value, config, version="v2") - - assert result.value == {} - assert len(result.interrupts) == 1 - assert result.interrupts[0].value == "Do you approve?" - - resumed = await self.app.ainvoke( - Command(resume="approved"), config, version="v2" - ) - return resumed.value - - -class TestFunctionalAPIBasicExecution: - @pytest.mark.parametrize( - "workflow_cls,entrypoint_func,entrypoint_name,tasks,expected_result", - [ - ( - SimpleFunctionalE2EWorkflow, - simple_functional_entrypoint, - "e2e_simple_functional", - [double_value, add_ten], - 30, - ), - ( - SimpleV2Workflow, - simple_v2_entrypoint, - "v2_simple", - [triple_value, add_five], - 35, - ), - ], - ids=["v1", "v2"], - ) - async def test_simple_entrypoint( - self, - client: Client, - workflow_cls: Any, - entrypoint_func: Any, - entrypoint_name: str, - tasks: list, - expected_result: int, - ) -> None: - task_queue = f"e2e-functional-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[workflow_cls], - plugins=[ - LangGraphPlugin( - entrypoints={entrypoint_name: entrypoint_func}, - tasks=tasks, - activity_options=_execute_in_activity( - *(t.func.__name__ for t in tasks) - ), - default_activity_options=_DEFAULT_ACTIVITY_OPTIONS, - ) - ], - ): - result = await client.execute_workflow( - workflow_cls.run, - 10, - id=f"e2e-functional-{uuid4()}", - task_queue=task_queue, - execution_timeout=timedelta(seconds=30), - ) - - assert result["result"] == expected_result - - -class TestFunctionalAPIContinueAsNew: - async def test_continue_as_new_with_checkpoint(self, client: Client) -> None: - """10 * 3 = 30 -> + 100 = 130 -> * 2 = 260. Each task executes once.""" - reset_task_execution_counts() - - tasks = [expensive_task_a, expensive_task_b, expensive_task_c] - task_queue = f"e2e-continue-as-new-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[ContinueAsNewFunctionalWorkflow], - plugins=[ - LangGraphPlugin( - entrypoints={ - "e2e_continue_as_new_functional": continue_as_new_entrypoint - }, - tasks=tasks, - activity_options=_execute_in_activity( - *(getattr(t.func, "__name__") for t in tasks) - ), - default_activity_options=_DEFAULT_ACTIVITY_OPTIONS, - ) - ], - ): - result = await client.execute_workflow( - ContinueAsNewFunctionalWorkflow.run, - ContinueAsNewInput(value=10), - id=f"e2e-continue-as-new-{uuid4()}", - task_queue=task_queue, - execution_timeout=timedelta(seconds=60), - ) - - assert result["result"] == 260 - - counts = get_task_execution_counts() - assert counts.get("task_a", 0) == 1, ( - f"task_a executed {counts.get('task_a', 0)} times, expected 1" - ) - assert counts.get("task_b", 0) == 1, ( - f"task_b executed {counts.get('task_b', 0)} times, expected 1" - ) - assert counts.get("task_c", 0) == 1, ( - f"task_c executed {counts.get('task_c', 0)} times, expected 1" - ) - - -class TestFunctionalAPIPartialExecution: - async def test_partial_execution_five_tasks(self, client: Client) -> None: - """10*2=20 -> +5=25 -> *3=75 -> -10=65 -> +100=165. Each task executes once.""" - reset_task_execution_counts() - - tasks = [step_1, step_2, step_3, step_4, step_5] - task_queue = f"e2e-partial-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[PartialExecutionWorkflow], - plugins=[ - LangGraphPlugin( - entrypoints={"e2e_partial_execution": partial_execution_entrypoint}, - tasks=tasks, - activity_options=_execute_in_activity( - *(getattr(t.func, "__name__") for t in tasks) - ), - default_activity_options=_DEFAULT_ACTIVITY_OPTIONS, - ) - ], - ): - result = await client.execute_workflow( - PartialExecutionWorkflow.run, - PartialExecutionInput(value=10), - id=f"e2e-partial-{uuid4()}", - task_queue=task_queue, - execution_timeout=timedelta(seconds=60), - ) - - assert result["result"] == 165 - assert result["completed_tasks"] == 5 - - counts = get_task_execution_counts() - for i in range(1, 6): - assert counts.get(f"step_{i}", 0) == 1, ( - f"step_{i} executed {counts.get(f'step_{i}', 0)} times, expected 1" - ) - - -class TestFunctionalAPIInterruptV2: - async def test_interrupt_v2_functional(self, client: Client) -> None: - """version='v2' separates interrupts from value in functional API.""" - tasks = [ask_human] - task_queue = f"v2-interrupt-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[InterruptV2FunctionalWorkflow], - plugins=[ - LangGraphPlugin( - entrypoints={"v2_interrupt": interrupt_entrypoint}, - tasks=tasks, - activity_options=_execute_in_activity( - *(getattr(t.func, "__name__") for t in tasks) - ), - default_activity_options=_DEFAULT_ACTIVITY_OPTIONS, - ) - ], - ): - result = await client.execute_workflow( - InterruptV2FunctionalWorkflow.run, - "hello", - id=f"v2-interrupt-{uuid4()}", - task_queue=task_queue, - execution_timeout=timedelta(seconds=30), - ) - - assert result["input"] == "hello" - assert result["answer"] == "approved" - - -class TestFunctionalAPIPerTaskOptions: - async def test_per_task_activity_options_override(self, client: Client) -> None: - """activity_options[task_name] overrides default_activity_options for that task.""" - task_queue = f"e2e-per-task-options-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[SlowFunctionalWorkflow], - plugins=[ - LangGraphPlugin( - entrypoints={"e2e_slow_functional": slow_entrypoint}, - tasks=[waiting_task], - default_activity_options=_DEFAULT_ACTIVITY_OPTIONS, - activity_options={ - "waiting_task": { - "execute_in": "activity", - "start_to_close_timeout": timedelta(milliseconds=100), - "retry_policy": RetryPolicy(maximum_attempts=1), - } - }, - ) - ], - ): - with raises(WorkflowFailureError): - await client.execute_workflow( - SlowFunctionalWorkflow.run, - 1, - id=f"e2e-per-task-options-{uuid4()}", - task_queue=task_queue, - execution_timeout=timedelta(seconds=30), - ) diff --git a/tests/contrib/langgraph/test_execute_in_workflow.py b/tests/contrib/langgraph/test_execute_in_workflow.py deleted file mode 100644 index 15b44f5a9..000000000 --- a/tests/contrib/langgraph/test_execute_in_workflow.py +++ /dev/null @@ -1,51 +0,0 @@ -from typing import Any -from uuid import uuid4 - -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def node(state: State) -> dict[str, str]: # pyright: ignore[reportUnusedParameter] - return {"value": "done"} - - -@workflow.defn -class ExecuteInWorkflowWorkflow: - def __init__(self) -> None: - self.app = graph("my-graph").compile() - - @workflow.run - async def run(self, input: str) -> Any: - return await self.app.ainvoke({"value": input}) - - -async def test_execute_in_workflow(client: Client): - g = StateGraph(State) - g.add_node("node", node, metadata={"execute_in": "workflow"}) - g.add_edge(START, "node") - - task_queue = f"my-graph-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[ExecuteInWorkflowWorkflow], - plugins=[LangGraphPlugin(graphs={"my-graph": g})], - ): - result = await client.execute_workflow( - ExecuteInWorkflowWorkflow.run, - "", - id=f"test-workflow-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"value": "done"} diff --git a/tests/contrib/langgraph/test_interrupt.py b/tests/contrib/langgraph/test_interrupt.py deleted file mode 100644 index 6d4547d76..000000000 --- a/tests/contrib/langgraph/test_interrupt.py +++ /dev/null @@ -1,97 +0,0 @@ -import sys -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -import langgraph.types -import pytest - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), - reason="langgraph.types.interrupt() requires Python >= 3.11 for async context propagation", -) -from langgraph.checkpoint.memory import InMemorySaver -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from langgraph.graph.state import ( # pyright: ignore[reportMissingTypeStubs] - RunnableConfig, -) -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def node(state: State) -> dict[str, str]: # pyright: ignore[reportUnusedParameter] - return {"value": langgraph.types.interrupt("Continue?")} - - -@workflow.defn -class InterruptWorkflow: - def __init__(self) -> None: - self.app = graph("my-graph").compile(checkpointer=InMemorySaver()) - - @workflow.run - async def run(self, input: str) -> Any: - config = RunnableConfig({"configurable": {"thread_id": "1"}}) - - result = await self.app.ainvoke({"value": input}, config) - assert result["__interrupt__"][0].value == "Continue?" - - return await self.app.ainvoke(langgraph.types.Command(resume="yes"), config) - - -@workflow.defn -class InterruptV2Workflow: - def __init__(self) -> None: - self.app = graph("my-graph").compile(checkpointer=InMemorySaver()) - - @workflow.run - async def run(self, input: str) -> Any: - config = RunnableConfig({"configurable": {"thread_id": "1"}}) - - result = await self.app.ainvoke({"value": input}, config, version="v2") - - assert result.value == {"value": ""} - assert len(result.interrupts) == 1 - assert result.interrupts[0].value == "Continue?" - - return await self.app.ainvoke(langgraph.types.Command(resume="yes"), config) - - -@pytest.mark.parametrize( - "workflow_cls", [InterruptWorkflow, InterruptV2Workflow], ids=["v1", "v2"] -) -async def test_interrupt(client: Client, workflow_cls: Any) -> None: - g = StateGraph(State) - g.add_node("node", node, metadata={"execute_in": "activity"}) - g.add_edge(START, "node") - - task_queue = f"interrupt-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[workflow_cls], - plugins=[ - LangGraphPlugin( - graphs={"my-graph": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - ) - ], - ): - result = await client.execute_workflow( - workflow_cls.run, - "", - id=f"test-workflow-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"value": "yes"} diff --git a/tests/contrib/langgraph/test_node_metadata.py b/tests/contrib/langgraph/test_node_metadata.py deleted file mode 100644 index ca022d3a1..000000000 --- a/tests/contrib/langgraph/test_node_metadata.py +++ /dev/null @@ -1,65 +0,0 @@ -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -from langchain_core.runnables import ( - RunnableConfig, # pyright: ignore[reportMissingTypeStubs] -) -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def node(state: State, config: RunnableConfig) -> dict[str, str]: - metadata = config.get("metadata") or {} - return {"value": state["value"] + str(metadata.get("my_key", "NOT_FOUND"))} - - -metadata_graph: StateGraph[State, None, State, State] = StateGraph(State) -metadata_graph.add_node( - "node", - node, - metadata={ - "execute_in": "activity", - "start_to_close_timeout": timedelta(seconds=10), - "my_key": "my_value", - }, -) -metadata_graph.add_edge(START, "node") - - -@workflow.defn -class NodeMetadataWorkflow: - def __init__(self) -> None: - self.app = metadata_graph.compile() - - @workflow.run - async def run(self, input: str) -> Any: - return await self.app.ainvoke({"value": input}) - - -async def test_node_metadata_readable_in_node(client: Client): - task_queue = f"my-graph-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[NodeMetadataWorkflow], - plugins=[LangGraphPlugin(graphs={"my-graph": metadata_graph})], - ): - result = await client.execute_workflow( - NodeMetadataWorkflow.run, - "prefix-", - id=f"test-workflow-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"value": "prefix-my_value"} diff --git a/tests/contrib/langgraph/test_plugin_validation.py b/tests/contrib/langgraph/test_plugin_validation.py deleted file mode 100644 index 5b66c2241..000000000 --- a/tests/contrib/langgraph/test_plugin_validation.py +++ /dev/null @@ -1,89 +0,0 @@ -"""Tests for LangGraphPlugin validation.""" - -from __future__ import annotations - -from typing import Any -from uuid import uuid4 - -from langchain_core.runnables import RunnableLambda -from langgraph.func import task # pyright: ignore[reportMissingTypeStubs] -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from langgraph.types import RetryPolicy # pyright: ignore[reportMissingTypeStubs] -from pytest import raises -from typing_extensions import TypedDict - -from temporalio.contrib.langgraph import LangGraphPlugin - - -class State(TypedDict): - value: str - - -async def async_node(state: State) -> dict[str, str]: # pyright: ignore[reportUnusedParameter] - return {"value": "done"} - - -def sync_node(state: State) -> dict[str, str]: # pyright: ignore[reportUnusedParameter] - return {"value": "done"} - - -def test_non_runnable_callable_node_raises() -> None: - """Nodes whose runnable isn't a RunnableCallable can't be wrapped as activities.""" - g = StateGraph(State) - g.add_node("node", RunnableLambda(sync_node)) - g.add_edge(START, "node") - - with raises(ValueError, match="must be a RunnableCallable"): - LangGraphPlugin(graphs={f"validation-{uuid4()}": g}) - - -def test_invalid_execute_in_raises() -> None: - g = StateGraph(State) - g.add_node("node", async_node, metadata={"execute_in": "bogus"}) - g.add_edge(START, "node") - - with raises(ValueError, match="Invalid execute_in value"): - LangGraphPlugin(graphs={f"validation-{uuid4()}": g}) - - -def test_graph_node_missing_execute_in_raises() -> None: - g = StateGraph(State) - g.add_node("node", async_node) - g.add_edge(START, "node") - - with raises(ValueError, match="missing required 'execute_in'"): - LangGraphPlugin(graphs={f"validation-{uuid4()}": g}) - - -def test_functional_task_missing_execute_in_raises() -> None: - @task - def my_task(x: int) -> int: - return x + 1 - - with raises(ValueError, match="missing required 'execute_in'"): - LangGraphPlugin(tasks=[my_task]) - - -def test_execute_in_in_default_activity_options_raises() -> None: - with raises(ValueError, match="cannot be set in default_activity_options"): - LangGraphPlugin(default_activity_options={"execute_in": "activity"}) - - -def test_node_retry_policy_raises() -> None: - g = StateGraph(State) - g.add_node("node", async_node, retry_policy=RetryPolicy(max_attempts=3)) - g.add_edge(START, "node") - - with raises(ValueError, match="retry_policy"): - LangGraphPlugin(graphs={f"validation-{uuid4()}": g}) - - -def test_task_retry_policy_raises() -> None: - decorator: Any = task(retry_policy=RetryPolicy(max_attempts=3)) - - @decorator - def my_task(x: int) -> int: - return x + 1 - - with raises(ValueError, match="retry_policy"): - LangGraphPlugin(tasks=[my_task]) diff --git a/tests/contrib/langgraph/test_replay.py b/tests/contrib/langgraph/test_replay.py deleted file mode 100644 index f5d1a8e92..000000000 --- a/tests/contrib/langgraph/test_replay.py +++ /dev/null @@ -1,93 +0,0 @@ -import sys -from datetime import timedelta -from uuid import uuid4 - -import pytest -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] - -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin -from temporalio.worker import Replayer, Worker -from tests.contrib.langgraph.test_interrupt import ( - InterruptWorkflow, -) -from tests.contrib.langgraph.test_interrupt import ( - State as InterruptState, -) -from tests.contrib.langgraph.test_interrupt import ( - node as interrupt_node, -) -from tests.contrib.langgraph.test_two_nodes import ( - State, - TwoNodesWorkflow, - node_a, - node_b, -) - - -async def test_replay(client: Client): - g = StateGraph(State) - g.add_node("node_a", node_a, metadata={"execute_in": "activity"}) - g.add_node("node_b", node_b, metadata={"execute_in": "activity"}) - g.add_edge(START, "node_a") - g.add_edge("node_a", "node_b") - - task_queue = f"my-graph-{uuid4()}" - plugin = LangGraphPlugin( - graphs={"my-graph": g}, - default_activity_options={"start_to_close_timeout": timedelta(seconds=10)}, - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[TwoNodesWorkflow], - plugins=[plugin], - ): - handle = await client.start_workflow( - TwoNodesWorkflow.run, - "", - id=f"test-workflow-{uuid4()}", - task_queue=task_queue, - ) - await handle.result() - - await Replayer( - workflows=[TwoNodesWorkflow], - plugins=[plugin], - ).replay_workflow(await handle.fetch_history()) - - -@pytest.mark.skipif( - sys.version_info < (3, 11), - reason="langgraph.types.interrupt() requires Python >= 3.11 for async context propagation", -) -async def test_replay_interrupt(client: Client): - g = StateGraph(InterruptState) - g.add_node("node", interrupt_node, metadata={"execute_in": "activity"}) - g.add_edge(START, "node") - - task_queue = f"interrupt-replay-{uuid4()}" - plugin = LangGraphPlugin( - graphs={"my-graph": g}, - default_activity_options={"start_to_close_timeout": timedelta(seconds=10)}, - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[InterruptWorkflow], - plugins=[plugin], - ): - handle = await client.start_workflow( - InterruptWorkflow.run, - "", - id=f"test-interrupt-replay-{uuid4()}", - task_queue=task_queue, - ) - await handle.result() - - await Replayer( - workflows=[InterruptWorkflow], - plugins=[plugin], - ).replay_workflow(await handle.fetch_history()) diff --git a/tests/contrib/langgraph/test_send.py b/tests/contrib/langgraph/test_send.py deleted file mode 100644 index 6576c65b3..000000000 --- a/tests/contrib/langgraph/test_send.py +++ /dev/null @@ -1,76 +0,0 @@ -import operator -from datetime import timedelta -from typing import Annotated, Any -from uuid import uuid4 - -from langgraph.graph import ( # pyright: ignore[reportMissingTypeStubs] - END, - START, - StateGraph, -) -from langgraph.types import Send -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - items: list[str] - results: Annotated[list[str], operator.add] - - -class WorkerState(TypedDict): - item: str - - -def worker(state: WorkerState) -> dict[str, list[str]]: - return {"results": [state["item"].upper()]} - - -async def fan_out(state: State) -> list[Send]: - return [Send("worker", {"item": item}) for item in state["items"]] - - -@workflow.defn -class SendWorkflow: - def __init__(self) -> None: - self.app = graph("my-graph").compile() - - @workflow.run - async def run(self, items: list[str]) -> Any: - return await self.app.ainvoke({"items": items, "results": []}) - - -async def test_send(client: Client): - g = StateGraph(State) - g.add_node("worker", worker, metadata={"execute_in": "activity"}) - g.add_conditional_edges(START, fan_out, ["worker"]) - g.add_edge("worker", END) - - task_queue = f"send-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[SendWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"my-graph": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - ) - ], - ): - result = await client.execute_workflow( - SendWorkflow.run, - ["a", "b", "c"], - id=f"test-send-{uuid4()}", - task_queue=task_queue, - ) - - assert result["items"] == ["a", "b", "c"] - assert sorted(result["results"]) == ["A", "B", "C"] diff --git a/tests/contrib/langgraph/test_streaming.py b/tests/contrib/langgraph/test_streaming.py deleted file mode 100644 index 5d1e1950a..000000000 --- a/tests/contrib/langgraph/test_streaming.py +++ /dev/null @@ -1,214 +0,0 @@ -import sys -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -import pytest -from langgraph.config import ( - get_stream_writer, # pyright: ignore[reportMissingTypeStubs] -) -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.contrib.workflow_streams import WorkflowStream, WorkflowStreamClient -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def async_token_node(state: State) -> dict[str, str]: - tokens = ["a", "b", "c"] - writer = get_stream_writer() - for token in tokens: - writer({"token": token}) - writer({"done": True}) - return {"value": state["value"] + "".join(tokens)} - - -def sync_token_node(state: State) -> dict[str, str]: - tokens = ["a", "b", "c"] - writer = get_stream_writer() - for token in tokens: - writer({"token": token}) - writer({"done": True}) - return {"value": state["value"] + "".join(tokens)} - - -@workflow.defn -class StreamingWorkflowStreamsWorkflow: - def __init__(self) -> None: - _ = WorkflowStream() - self.app = graph("streaming-ws").compile() - self._done_acked = False - - @workflow.signal - def ack_done(self) -> None: - self._done_acked = True - - @workflow.run - async def run(self, input: str) -> str: - result = await self.app.ainvoke({"value": input}) - await workflow.wait_condition(lambda: self._done_acked) - return result["value"] - - -@pytest.mark.parametrize( - "execute_in", - [ - "activity", - pytest.param( - "workflow", - marks=pytest.mark.skipif( - sys.version_info < (3, 11), - reason=( - "execute_in='workflow' streaming relies on contextvar " - "propagation through asyncio.create_task, which only " - "works on Python >= 3.11" - ), - ), - ), - ], -) -@pytest.mark.parametrize( - "node", [async_token_node, sync_token_node], ids=["async", "sync"] -) -async def test_streaming_via_workflow_streams( - client: Client, execute_in: str, node: Any -): - g = StateGraph(State) - g.add_node("token_node", node, metadata={"execute_in": execute_in}) - g.add_edge(START, "token_node") - - task_queue = f"streaming-ws-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[StreamingWorkflowStreamsWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"streaming-ws": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - streaming_topic="tokens", - ) - ], - ): - handle = await client.start_workflow( - StreamingWorkflowStreamsWorkflow.run, - "", - id=f"test-streaming-ws-{uuid4()}", - task_queue=task_queue, - ) - - ws_client = WorkflowStreamClient.create(client, handle.id) - chunks: list[dict[str, Any]] = [] - async for item in ws_client.topic("tokens", type=dict).subscribe( - from_offset=0, - poll_cooldown=timedelta(milliseconds=10), - ): - chunks.append(item.data) - if chunks[-1].get("done"): - await handle.signal(StreamingWorkflowStreamsWorkflow.ack_done) - break - - result = await handle.result() - - assert result == "abc" - assert chunks == [ - {"token": "a"}, - {"token": "b"}, - {"token": "c"}, - {"done": True}, - ] - - -# --------------------------------------------------------------------------- -# Workflow-side publish: iterate astream() in the workflow and forward each -# chunk via self.stream.topic("astream").publish(...) so external subscribers -# see node-level progress alongside any activity-emitted tokens. -# --------------------------------------------------------------------------- - - -@workflow.defn -class AstreamPublishWorkflow: - def __init__(self) -> None: - self.stream = WorkflowStream() - self.app = graph("astream-publish").compile() - self._done_acked = False - - @workflow.signal - def ack_done(self) -> None: - self._done_acked = True - - @workflow.run - async def run(self, input: str) -> str: - topic = self.stream.topic("astream") - async for chunk in self.app.astream({"value": input}): - topic.publish(chunk) - topic.publish({"done": True}) - await workflow.wait_condition(lambda: self._done_acked) - return "done" - - -async def node_a(state: State) -> dict[str, str]: - return {"value": state["value"] + "a"} - - -async def node_b(state: State) -> dict[str, str]: - return {"value": state["value"] + "b"} - - -async def test_workflow_publishes_astream_chunks(client: Client): - g = StateGraph(State) - g.add_node("node_a", node_a, metadata={"execute_in": "activity"}) - g.add_node("node_b", node_b, metadata={"execute_in": "activity"}) - g.add_edge(START, "node_a") - g.add_edge("node_a", "node_b") - - task_queue = f"astream-publish-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[AstreamPublishWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"astream-publish": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - ) - ], - ): - handle = await client.start_workflow( - AstreamPublishWorkflow.run, - "", - id=f"test-astream-publish-{uuid4()}", - task_queue=task_queue, - ) - - ws_client = WorkflowStreamClient.create(client, handle.id) - chunks: list[dict[str, Any]] = [] - async for item in ws_client.topic("astream", type=dict).subscribe( - from_offset=0, - poll_cooldown=timedelta(milliseconds=10), - ): - chunks.append(item.data) - if chunks[-1].get("done"): - await handle.signal(AstreamPublishWorkflow.ack_done) - break - - await handle.result() - - assert chunks == [ - {"node_a": {"value": "a"}}, - {"node_b": {"value": "ab"}}, - {"done": True}, - ] diff --git a/tests/contrib/langgraph/test_subgraph_activity.py b/tests/contrib/langgraph/test_subgraph_activity.py deleted file mode 100644 index 76600fa57..000000000 --- a/tests/contrib/langgraph/test_subgraph_activity.py +++ /dev/null @@ -1,67 +0,0 @@ -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def child_node(state: State) -> dict[str, str]: # pyright: ignore[reportUnusedParameter] - return {"value": "child"} - - -async def parent_node(state: State) -> dict[str, str]: - child: StateGraph[State, None, State, State] = StateGraph(State) - child.add_node("child_node", child_node) - child.add_edge(START, "child_node") - - return await child.compile().ainvoke(state) - - -@workflow.defn -class ActivitySubgraphWorkflow: - def __init__(self) -> None: - self.app = graph("parent").compile() - - @workflow.run - async def run(self, input: str) -> Any: - return await self.app.ainvoke({"value": input}) - - -async def test_activity_subgraph(client: Client): - parent = StateGraph(State) - parent.add_node("parent_node", parent_node, metadata={"execute_in": "activity"}) - parent.add_edge(START, "parent_node") - - task_queue = f"subgraph-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[ActivitySubgraphWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"parent": parent}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - ) - ], - ): - result = await client.execute_workflow( - ActivitySubgraphWorkflow.run, - "", - id=f"test-workflow-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"value": "child"} diff --git a/tests/contrib/langgraph/test_subgraph_workflow.py b/tests/contrib/langgraph/test_subgraph_workflow.py deleted file mode 100644 index a3b3741b5..000000000 --- a/tests/contrib/langgraph/test_subgraph_workflow.py +++ /dev/null @@ -1,67 +0,0 @@ -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def child_node(state: State) -> dict[str, str]: # pyright: ignore[reportUnusedParameter] - return {"value": "child"} - - -async def parent_node(state: State) -> dict[str, str]: - return await graph("child").compile().ainvoke(state) - - -@workflow.defn -class WorkflowSubgraphWorkflow: - def __init__(self) -> None: - self.app = graph("parent").compile() - - @workflow.run - async def run(self, input: str) -> Any: - return await self.app.ainvoke({"value": input}) - - -async def test_workflow_subgraph(client: Client): - child = StateGraph(State) - child.add_node( - "child_node", - child_node, - metadata={ - "execute_in": "activity", - "start_to_close_timeout": timedelta(seconds=10), - }, - ) - child.add_edge(START, "child_node") - - parent = StateGraph(State) - parent.add_node("parent_node", parent_node, metadata={"execute_in": "workflow"}) - parent.add_edge(START, "parent_node") - - task_queue = f"subgraph-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[WorkflowSubgraphWorkflow], - plugins=[LangGraphPlugin(graphs={"parent": parent, "child": child})], - ): - result = await client.execute_workflow( - WorkflowSubgraphWorkflow.run, - "", - id=f"test-workflow-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"value": "child"} diff --git a/tests/contrib/langgraph/test_summary_fn.py b/tests/contrib/langgraph/test_summary_fn.py deleted file mode 100644 index 687a68edb..000000000 --- a/tests/contrib/langgraph/test_summary_fn.py +++ /dev/null @@ -1,362 +0,0 @@ -"""Tests for node/task summaries (static summary and summary_fn).""" - -from __future__ import annotations - -import uuid -from datetime import timedelta -from typing import Any, Callable - -import pytest -from langchain_core.runnables import ( - RunnableConfig, # pyright: ignore[reportMissingTypeStubs] -) -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from typing_extensions import TypedDict - -import temporalio.api.sdk.v1 -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.testing import WorkflowEnvironment -from temporalio.worker import Replayer, Worker -from tests.helpers import assert_eq_eventually - -SummaryFn = Callable[[tuple[Any, ...], dict[str, Any]], "str | None"] - - -class State(TypedDict): - value: str - - -async def passthrough(state: State) -> dict[str, str]: - return {"value": state["value"]} - - -def summarize( - args: tuple[Any, ...], - kwargs: dict[str, Any], # pyright: ignore[reportUnusedParameter] -) -> str | None: - return f"value={args[0]['value']}" - - -@workflow.defn -class SummaryWorkflow: - def __init__(self) -> None: - self.app = graph("summary-graph").compile() - - @workflow.run - async def run(self, input: str) -> Any: - return await self.app.ainvoke({"value": input}) - - -def _activity_graph( - summary_fn: SummaryFn | None, -) -> StateGraph[State, None, State, State]: - metadata: dict[str, Any] = {"execute_in": "activity"} - if summary_fn is not None: - metadata["summary_fn"] = summary_fn - g: StateGraph[State, None, State, State] = StateGraph(State) - g.add_node("node", passthrough, metadata=metadata) - g.add_edge(START, "node") - return g - - -async def _run_and_collect_summaries( - client: Client, plugin: LangGraphPlugin, input: str -) -> list[bytes]: - task_queue = f"summary-{uuid.uuid4()}" - async with Worker( - client, - task_queue=task_queue, - workflows=[SummaryWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - SummaryWorkflow.run, - input, - id=f"summary-{uuid.uuid4()}", - task_queue=task_queue, - ) - await handle.result() - return [ - e.user_metadata.summary.data - async for e in handle.fetch_history_events() - if e.HasField("activity_task_scheduled_event_attributes") - ] - - -def _plugin(g: StateGraph[Any, Any, Any, Any], **kwargs: Any) -> LangGraphPlugin: - return LangGraphPlugin( - graphs={"summary-graph": g}, - default_activity_options={"start_to_close_timeout": timedelta(seconds=10)}, - **kwargs, - ) - - -async def test_activity_summary_fn_in_history(client: Client) -> None: - plugin = _plugin(_activity_graph(summarize)) - summaries = await _run_and_collect_summaries(client, plugin, "hello") - assert summaries == [b'"value=hello"'] - - -@pytest.mark.parametrize( - "summary_fn,expected", - [ - (lambda args, kwargs: f"value={args[0]['value']}", b'"value=x"'), - (lambda args, kwargs: None, b""), - (lambda args, kwargs: "", b""), - ], -) -async def test_summary_fn_variants( - client: Client, summary_fn: SummaryFn, expected: bytes -) -> None: - plugin = _plugin(_activity_graph(summary_fn)) - summaries = await _run_and_collect_summaries(client, plugin, "x") - assert summaries == [expected] - - -async def test_static_summary(client: Client) -> None: - g: StateGraph[State, None, State, State] = StateGraph(State) - g.add_node( - "node", passthrough, metadata={"execute_in": "activity", "summary": "static"} - ) - g.add_edge(START, "node") - summaries = await _run_and_collect_summaries(client, _plugin(g), "x") - assert summaries == [b'"static"'] - - -async def test_node_static_summary_overrides_default_summary_fn( - client: Client, -) -> None: - g: StateGraph[State, None, State, State] = StateGraph(State) - g.add_node( - "node", - passthrough, - metadata={"execute_in": "activity", "summary": "node-static"}, - ) - g.add_edge(START, "node") - plugin = LangGraphPlugin( - graphs={"summary-graph": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10), - "summary_fn": lambda args, kwargs: "global", - }, - ) - summaries = await _run_and_collect_summaries(client, plugin, "x") - assert summaries == [b'"node-static"'] - - -async def test_node_summary_fn_overrides_default_summary(client: Client) -> None: - plugin = LangGraphPlugin( - graphs={"summary-graph": _activity_graph(lambda args, kwargs: "node-fn")}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10), - "summary": "global-static", - }, - ) - summaries = await _run_and_collect_summaries(client, plugin, "x") - assert summaries == [b'"node-fn"'] - - -async def test_default_summary_fn_applies_without_override(client: Client) -> None: - plugin = LangGraphPlugin( - graphs={"summary-graph": _activity_graph(None)}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10), - "summary_fn": lambda args, kwargs: "global", - }, - ) - summaries = await _run_and_collect_summaries(client, plugin, "x") - assert summaries == [b'"global"'] - - -def test_both_in_default_activity_options_raises() -> None: - with pytest.raises(ValueError, match="default_activity_options"): - LangGraphPlugin( - default_activity_options={ - "summary": "s", - "summary_fn": lambda args, kwargs: "f", - } - ) - - -def test_summary_and_summary_fn_raises() -> None: - g: StateGraph[State, None, State, State] = StateGraph(State) - g.add_node( - "node", - passthrough, - metadata={ - "execute_in": "activity", - "summary": "static", - "summary_fn": lambda args, kwargs: "dynamic", - }, - ) - g.add_edge(START, "node") - with pytest.raises(ValueError, match="not both"): - LangGraphPlugin(graphs={f"summary-graph-{uuid.uuid4()}": g}) - - -async def node_reads_meta(state: State, config: RunnableConfig) -> dict[str, str]: - metadata = config.get("metadata") or {} - return {"value": f"{state['value']}-has_fn={'summary_fn' in metadata}"} - - -async def test_summary_fn_not_in_node_metadata(client: Client) -> None: - g: StateGraph[State, None, State, State] = StateGraph(State) - g.add_node( - "node", - node_reads_meta, - metadata={ - "execute_in": "activity", - "summary_fn": lambda args, kwargs: "dynamic", - "my_key": "my_value", - }, - ) - g.add_edge(START, "node") - task_queue = f"summary-{uuid.uuid4()}" - async with Worker( - client, - task_queue=task_queue, - workflows=[SummaryWorkflow], - plugins=[_plugin(g)], - ): - result = await client.execute_workflow( - SummaryWorkflow.run, - "in", - id=f"summary-{uuid.uuid4()}", - task_queue=task_queue, - ) - assert result == {"value": "in-has_fn=False"} - - -@workflow.defn -class WorkflowNodeSummaryWorkflow: - def __init__(self) -> None: - self.app = graph("wf-node-graph").compile() - self._done = False - self._invoked = False - - @workflow.run - async def run(self, input: str) -> Any: - result = await self.app.ainvoke({"value": input}) - self._invoked = True - await workflow.wait_condition(lambda: self._done) - return result - - @workflow.signal - def finish(self) -> None: - self._done = True - - @workflow.query - def ran(self) -> bool: - return workflow.get_current_details() != "" - - @workflow.query - def invoked(self) -> bool: - return self._invoked - - -async def test_workflow_node_sets_current_details( - client: Client, env: WorkflowEnvironment -) -> None: - if env.supports_time_skipping: - pytest.skip("metadata query unreliable on the time-skipping test server") - g: StateGraph[State, None, State, State] = StateGraph(State) - g.add_node( - "node", - passthrough, - metadata={ - "execute_in": "workflow", - "summary_fn": lambda args, kwargs: f"wf:{args[0]['value']}", - }, - ) - g.add_edge(START, "node") - task_queue = f"wf-node-{uuid.uuid4()}" - async with Worker( - client, - task_queue=task_queue, - workflows=[WorkflowNodeSummaryWorkflow], - plugins=[LangGraphPlugin(graphs={"wf-node-graph": g})], - ): - handle = await client.start_workflow( - WorkflowNodeSummaryWorkflow.run, - "ready", - id=f"wf-node-{uuid.uuid4()}", - task_queue=task_queue, - ) - await assert_eq_eventually( - True, lambda: handle.query(WorkflowNodeSummaryWorkflow.ran) - ) - md: temporalio.api.sdk.v1.WorkflowMetadata = await handle.query( - "__temporal_workflow_metadata", - result_type=temporalio.api.sdk.v1.WorkflowMetadata, - ) - assert md.current_details == "wf:ready" - await handle.signal(WorkflowNodeSummaryWorkflow.finish) - assert await handle.result() == {"value": "ready"} - - -async def test_workflow_node_clears_current_details_on_empty( - client: Client, env: WorkflowEnvironment -) -> None: - if env.supports_time_skipping: - pytest.skip("metadata query unreliable on the time-skipping test server") - g: StateGraph[State, None, State, State] = StateGraph(State) - g.add_node( - "a", - passthrough, - metadata={"execute_in": "workflow", "summary_fn": lambda args, kwargs: "first"}, - ) - g.add_node( - "b", - passthrough, - metadata={"execute_in": "workflow", "summary_fn": lambda args, kwargs: None}, - ) - g.add_edge(START, "a") - g.add_edge("a", "b") - task_queue = f"wf-node-clear-{uuid.uuid4()}" - async with Worker( - client, - task_queue=task_queue, - workflows=[WorkflowNodeSummaryWorkflow], - plugins=[LangGraphPlugin(graphs={"wf-node-graph": g})], - ): - handle = await client.start_workflow( - WorkflowNodeSummaryWorkflow.run, - "ready", - id=f"wf-node-clear-{uuid.uuid4()}", - task_queue=task_queue, - ) - await assert_eq_eventually( - True, lambda: handle.query(WorkflowNodeSummaryWorkflow.invoked) - ) - md: temporalio.api.sdk.v1.WorkflowMetadata = await handle.query( - "__temporal_workflow_metadata", - result_type=temporalio.api.sdk.v1.WorkflowMetadata, - ) - assert md.current_details == "" - await handle.signal(WorkflowNodeSummaryWorkflow.finish) - await handle.result() - - -async def test_replay_with_summary_fn(client: Client) -> None: - plugin = _plugin(_activity_graph(summarize)) - task_queue = f"summary-replay-{uuid.uuid4()}" - async with Worker( - client, - task_queue=task_queue, - workflows=[SummaryWorkflow], - plugins=[plugin], - ): - handle = await client.start_workflow( - SummaryWorkflow.run, - "hello", - id=f"summary-replay-{uuid.uuid4()}", - task_queue=task_queue, - ) - await handle.result() - - await Replayer(workflows=[SummaryWorkflow], plugins=[plugin]).replay_workflow( - await handle.fetch_history() - ) diff --git a/tests/contrib/langgraph/test_sync_node.py b/tests/contrib/langgraph/test_sync_node.py deleted file mode 100644 index 92ec1beed..000000000 --- a/tests/contrib/langgraph/test_sync_node.py +++ /dev/null @@ -1,59 +0,0 @@ -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -def sync_node(state: State) -> dict[str, str]: - return {"value": state["value"] + "!"} - - -@workflow.defn -class SyncNodeWorkflow: - def __init__(self) -> None: - self.app = graph("my-graph").compile() - - @workflow.run - async def run(self, input: str) -> Any: - return await self.app.ainvoke({"value": input}) - - -async def test_sync_node(client: Client): - g = StateGraph(State) - g.add_node("sync_node", sync_node, metadata={"execute_in": "activity"}) - g.add_edge(START, "sync_node") - - task_queue = f"sync-node-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[SyncNodeWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"my-graph": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - ) - ], - ): - result = await client.execute_workflow( - SyncNodeWorkflow.run, - "hello", - id=f"test-sync-node-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"value": "hello!"} diff --git a/tests/contrib/langgraph/test_sync_task.py b/tests/contrib/langgraph/test_sync_task.py deleted file mode 100644 index fa820e522..000000000 --- a/tests/contrib/langgraph/test_sync_task.py +++ /dev/null @@ -1,69 +0,0 @@ -import sys -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -import pytest - -pytestmark = pytest.mark.skipif( - sys.version_info < (3, 11), - reason="LangGraph Functional API requires Python >= 3.11 for async context propagation", -) -from langgraph.func import ( # pyright: ignore[reportMissingTypeStubs] - entrypoint as lg_entrypoint, -) -from langgraph.func import task # pyright: ignore[reportMissingTypeStubs] - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, entrypoint -from temporalio.worker import Worker - - -@task -def sync_task(x: int) -> int: - return x + 1 - - -@lg_entrypoint() -async def sync_task_entrypoint(value: int) -> dict[str, int]: - result = await sync_task(value) - return {"result": result} - - -@workflow.defn -class SyncTaskWorkflow: - def __init__(self) -> None: - self.app = entrypoint("sync-task") - - @workflow.run - async def run(self, input: int) -> Any: - return await self.app.ainvoke(input) - - -async def test_sync_task(client: Client): - task_queue = f"sync-task-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[SyncTaskWorkflow], - plugins=[ - LangGraphPlugin( - entrypoints={"sync-task": sync_task_entrypoint}, - tasks=[sync_task], - activity_options={"sync_task": {"execute_in": "activity"}}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - ) - ], - ): - result = await client.execute_workflow( - SyncTaskWorkflow.run, - 41, - id=f"test-sync-task-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"result": 42} diff --git a/tests/contrib/langgraph/test_timeout.py b/tests/contrib/langgraph/test_timeout.py deleted file mode 100644 index 7138e3a57..000000000 --- a/tests/contrib/langgraph/test_timeout.py +++ /dev/null @@ -1,64 +0,0 @@ -import asyncio -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from pytest import raises -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client, WorkflowFailureError -from temporalio.common import RetryPolicy -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def node(state: State) -> dict[str, str]: # pyright: ignore[reportUnusedParameter] - # Wait (forever) until start_to_close_timeout or worker shutdown cancellation - await asyncio.Event().wait() - return {"value": "done"} - - -@workflow.defn -class TimeoutWorkflow: - def __init__(self) -> None: - self.app = graph("my-graph").compile() - - @workflow.run - async def run(self, input: str) -> Any: - return await self.app.ainvoke({"value": input}) - - -async def test_timeout(client: Client): - g = StateGraph(State) - g.add_node("node", node, metadata={"execute_in": "activity"}) - g.add_edge(START, "node") - - task_queue = f"my-graph-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[TimeoutWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"my-graph": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(milliseconds=100), - "retry_policy": RetryPolicy(maximum_attempts=1), - }, - ) - ], - ): - with raises(WorkflowFailureError): - await client.execute_workflow( - TimeoutWorkflow.run, - "", - id=f"test-workflow-{uuid4()}", - task_queue=task_queue, - ) diff --git a/tests/contrib/langgraph/test_two_nodes.py b/tests/contrib/langgraph/test_two_nodes.py deleted file mode 100644 index 6b974d90f..000000000 --- a/tests/contrib/langgraph/test_two_nodes.py +++ /dev/null @@ -1,65 +0,0 @@ -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -from langgraph.graph import START, StateGraph # pyright: ignore[reportMissingTypeStubs] -from typing_extensions import TypedDict - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.langgraph import LangGraphPlugin, graph -from temporalio.worker import Worker - - -class State(TypedDict): - value: str - - -async def node_a(state: State) -> dict[str, str]: - return {"value": state["value"] + "a"} - - -async def node_b(state: State) -> dict[str, str]: - return {"value": state["value"] + "b"} - - -@workflow.defn -class TwoNodesWorkflow: - def __init__(self) -> None: - self.app = graph("my-graph").compile() - - @workflow.run - async def run(self, input: str) -> Any: - return await self.app.ainvoke({"value": input}) - - -async def test_two_nodes(client: Client): - g = StateGraph(State) - g.add_node("node_a", node_a, metadata={"execute_in": "activity"}) - g.add_node("node_b", node_b, metadata={"execute_in": "activity"}) - g.add_edge(START, "node_a") - g.add_edge("node_a", "node_b") - - task_queue = f"my-graph-{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[TwoNodesWorkflow], - plugins=[ - LangGraphPlugin( - graphs={"my-graph": g}, - default_activity_options={ - "start_to_close_timeout": timedelta(seconds=10) - }, - ) - ], - ): - result = await client.execute_workflow( - TwoNodesWorkflow.run, - "", - id=f"test-workflow-{uuid4()}", - task_queue=task_queue, - ) - - assert result == {"value": "ab"} diff --git a/tests/contrib/langsmith/conftest.py b/tests/contrib/langsmith/conftest.py deleted file mode 100644 index 1711c0446..000000000 --- a/tests/contrib/langsmith/conftest.py +++ /dev/null @@ -1,134 +0,0 @@ -"""Shared test helpers for LangSmith plugin tests.""" - -from __future__ import annotations - -from dataclasses import dataclass -from typing import Any -from unittest.mock import MagicMock - -import pytest - -from tests.helpers.trace import TraceNode - - -@pytest.fixture(autouse=True) -def _clear_langsmith_env_cache() -> Any: # pyright: ignore[reportUnusedFunction] - """Clear langsmith's lru_cache before and after each test. - - Tests manipulate LANGSMITH_TRACING / LANGCHAIN_TRACING_V2 env vars. - langsmith.utils.get_env_var caches results, so stale values would - leak across tests (or into other test modules in the same session). - """ - import langsmith.utils - - langsmith.utils.get_env_var.cache_clear() # type: ignore[attr-defined] - yield - langsmith.utils.get_env_var.cache_clear() # type: ignore[attr-defined] - - -@pytest.fixture(autouse=True) -def _enable_langsmith_tracing(monkeypatch: pytest.MonkeyPatch) -> None: # pyright: ignore[reportUnusedFunction] - """Enable LangSmith tracing by default for all tests in this directory. - - The plugin defers to ``langsmith.utils.tracing_is_enabled()``, which - requires ``LANGSMITH_TRACING=true`` (or equivalent). Without this - fixture, tests that expect runs would see zero. - - Individual tests can override with ``monkeypatch.setenv("LANGSMITH_TRACING", "false")`` - to verify disabled behavior. - """ - monkeypatch.setenv("LANGSMITH_TRACING", "true") - - -@dataclass -class _RunRecord: - """A single recorded run.""" - - id: str - parent_run_id: str | None - name: str - run_type: str - inputs: dict[str, Any] - outputs: dict[str, Any] | None = None - error: str | None = None - - -class InMemoryRunCollector: - """Collects runs from a mock LangSmith client. - - Each call to create_run / update_run appends or updates an entry. - """ - - def __init__(self) -> None: - self.runs: list[_RunRecord] = [] - self._by_id: dict[str, _RunRecord] = {} - - def record_create(self, **kwargs: Any) -> None: - run_id = str(kwargs.get("id", kwargs.get("run_id", ""))) - if run_id in self._by_id: - return - rec = _RunRecord( - id=run_id, - parent_run_id=( - str(kwargs["parent_run_id"]) if kwargs.get("parent_run_id") else None - ), - name=kwargs.get("name", ""), - run_type=kwargs.get("run_type", "chain"), - inputs=kwargs.get("inputs", {}), - ) - self.runs.append(rec) - self._by_id[rec.id] = rec - - def record_update(self, run_id: str, **kwargs: Any) -> None: - run_id_str = str(run_id) - rec = self._by_id.get(run_id_str) - if rec is None: - return - if "outputs" in kwargs: - rec.outputs = kwargs["outputs"] - if "error" in kwargs: - rec.error = kwargs["error"] - - def clear(self) -> None: - self.runs.clear() - self._by_id.clear() - - -def build_trace_trees(collector: InMemoryRunCollector) -> list[TraceNode]: - """Build trace trees from the collector's run parent relationships.""" - runs = collector.runs - children: dict[str | None, list[_RunRecord]] = {} - for r in runs: - children.setdefault(r.parent_run_id, []).append(r) - - # Strict: reject dangling parent references - known_ids = {r.id for r in runs} - for r in runs: - if r.parent_run_id is not None and r.parent_run_id not in known_ids: - raise AssertionError( - f"Run {r.name!r} (id={r.id}) has parent_run_id={r.parent_run_id} " - f"which is not in the collected runs — dangling parent reference" - ) - - def build_tree(run: _RunRecord) -> TraceNode: - return TraceNode( - run.name, - [build_tree(child) for child in children.get(run.id, [])], - ) - - return [build_tree(root) for root in children.get(None, [])] - - -def find_trace_trees(traces: list[TraceNode], root_name: str) -> list[TraceNode]: - """Filter trace trees by exact root run name.""" - return [trace for trace in traces if trace.name == root_name] - - -def make_mock_ls_client(collector: InMemoryRunCollector) -> MagicMock: - """Create a mock langsmith.Client wired to a collector.""" - client = MagicMock() - client.create_run.side_effect = collector.record_create - client.update_run.side_effect = collector.record_update - client.session = MagicMock() - client.tracing_queue = MagicMock() - return client diff --git a/tests/contrib/langsmith/test_background_io.py b/tests/contrib/langsmith/test_background_io.py deleted file mode 100644 index 79c48eeef..000000000 --- a/tests/contrib/langsmith/test_background_io.py +++ /dev/null @@ -1,651 +0,0 @@ -"""Unit tests for _ReplaySafeRunTree and _RootReplaySafeRunTreeFactory. - -Covers create_child propagation, executor-backed post/patch, -replay suppression, and post-shutdown fallback. -""" - -from __future__ import annotations - -import logging -import threading -import uuid -from concurrent.futures import ThreadPoolExecutor -from datetime import datetime, timezone -from typing import Any -from unittest.mock import MagicMock, patch - -import pytest -from langsmith.run_trees import RunTree - -from temporalio.contrib.langsmith._interceptor import ( - _ReplaySafeRunTree, - _RootReplaySafeRunTreeFactory, - _uuid_from_random, -) - -# Common patch targets -_MOD = "temporalio.contrib.langsmith._interceptor" -_PATCH_IN_WORKFLOW = f"{_MOD}.temporalio.workflow.in_workflow" -_PATCH_IS_REPLAYING = f"{_MOD}.temporalio.workflow.unsafe.is_replaying_history_events" -_PATCH_WF_NOW = f"{_MOD}.temporalio.workflow.now" -_PATCH_GET_WF_RANDOM = f"{_MOD}._get_workflow_random" - - -def _make_executor() -> ThreadPoolExecutor: - """Create a single-worker executor for tests.""" - return ThreadPoolExecutor(max_workers=1) - - -def _make_mock_run(**kwargs: Any) -> MagicMock: - """Create a mock RunTree.""" - mock = MagicMock(spec=RunTree) - mock.to_headers.return_value = {"langsmith-trace": "test"} - mock.ls_client = kwargs.get("ls_client", MagicMock()) - mock.session_name = kwargs.get("session_name", "test-session") - mock.replicas = kwargs.get("replicas", []) - mock.id = kwargs.get("id", uuid.uuid4()) - mock.name = kwargs.get("name", "test-run") - # create_child returns another mock RunTree by default - child_mock = MagicMock(spec=RunTree) - child_mock.id = uuid.uuid4() - child_mock.ls_client = mock.ls_client - child_mock.session_name = mock.session_name - child_mock.replicas = mock.replicas - mock.create_child.return_value = child_mock - return mock - - -# =================================================================== -# TestCreateChildPropagation -# =================================================================== - - -class TestCreateChildPropagation: - """Tests for _ReplaySafeRunTree.create_child() override.""" - - def test_create_child_returns_replay_safe_run_tree(self) -> None: - """create_child() must return a _ReplaySafeRunTree wrapping the child.""" - executor = _make_executor() - mock_run = _make_mock_run() - parent = _ReplaySafeRunTree(mock_run, executor=executor) - - child = parent.create_child(name="child-op", run_type="chain") - - assert isinstance(child, _ReplaySafeRunTree) - # The wrapped child should be the result of the inner run's create_child - mock_run.create_child.assert_called_once() - - @patch(_PATCH_GET_WF_RANDOM) - @patch(_PATCH_WF_NOW) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_create_child_injects_deterministic_ids_in_workflow( - self, - _mock_in_wf: Any, - mock_now: Any, - mock_get_random: Any, - ) -> None: - """In workflow context, create_child injects deterministic run_id and start_time.""" - import random as stdlib_random - - rng = stdlib_random.Random(42) - mock_get_random.return_value = rng - fake_now = datetime(2025, 1, 1, tzinfo=timezone.utc) - mock_now.return_value = fake_now - - expected_id = _uuid_from_random(stdlib_random.Random(42)) # same seed - - executor = _make_executor() - mock_run = _make_mock_run() - parent = _ReplaySafeRunTree(mock_run, executor=executor) - - # Simulate what _setup_run does: passes run_id=None explicitly - child = parent.create_child(name="child-op", run_type="chain", run_id=None) - - assert isinstance(child, _ReplaySafeRunTree) - # Verify the kwargs passed to inner create_child had deterministic values - call_kwargs = mock_run.create_child.call_args.kwargs - assert call_kwargs["run_id"] == expected_id - assert call_kwargs["start_time"] == fake_now - - def test_create_child_passes_through_kwargs(self) -> None: - """create_child passes through all kwargs to the inner run's create_child.""" - executor = _make_executor() - mock_run = _make_mock_run() - parent = _ReplaySafeRunTree(mock_run, executor=executor) - - child = parent.create_child( - name="child-op", - run_type="llm", - inputs={"prompt": "hello"}, - tags=["test"], - extra_kwarg="future-proof", - ) - - assert isinstance(child, _ReplaySafeRunTree) - call_kwargs = mock_run.create_child.call_args.kwargs - assert call_kwargs["name"] == "child-op" - assert call_kwargs["run_type"] == "llm" - assert call_kwargs["inputs"] == {"prompt": "hello"} - assert call_kwargs["tags"] == ["test"] - assert call_kwargs["extra_kwarg"] == "future-proof" - - def test_create_child_propagates_executor_to_child(self) -> None: - """The child _ReplaySafeRunTree must receive the same executor reference.""" - executor = _make_executor() - mock_run = _make_mock_run() - parent = _ReplaySafeRunTree(mock_run, executor=executor) - - child = parent.create_child(name="child-op", run_type="chain") - - assert isinstance(child, _ReplaySafeRunTree) - # Child should have the same executor - assert child._executor is executor - - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_create_child_no_deterministic_ids_outside_workflow( - self, _mock_in_wf: Any - ) -> None: - """Outside workflow context, create_child does NOT inject deterministic IDs.""" - executor = _make_executor() - mock_run = _make_mock_run() - parent = _ReplaySafeRunTree(mock_run, executor=executor) - - child = parent.create_child(name="child-op", run_type="chain", run_id=None) - - assert isinstance(child, _ReplaySafeRunTree) - # run_id should remain None (not overridden) - call_kwargs = mock_run.create_child.call_args.kwargs - assert call_kwargs.get("run_id") is None - - @patch(_PATCH_GET_WF_RANDOM) - @patch(_PATCH_WF_NOW) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_create_child_respects_explicit_run_id( - self, - _mock_in_wf: Any, - mock_now: Any, - mock_get_random: Any, - ) -> None: - """If run_id is explicitly provided (not None), create_child preserves it.""" - import random as stdlib_random - - mock_get_random.return_value = stdlib_random.Random(42) - mock_now.return_value = datetime(2025, 1, 1, tzinfo=timezone.utc) - - executor = _make_executor() - mock_run = _make_mock_run() - parent = _ReplaySafeRunTree(mock_run, executor=executor) - - explicit_id = uuid.uuid4() - child = parent.create_child( - name="child-op", run_type="chain", run_id=explicit_id - ) - - assert isinstance(child, _ReplaySafeRunTree) - call_kwargs = mock_run.create_child.call_args.kwargs - assert call_kwargs["run_id"] == explicit_id - - -# =================================================================== -# TestExecutorBackedPostPatch -# =================================================================== - - -class TestExecutorBackedPostPatch: - """Tests for executor-backed post()/patch() in _ReplaySafeRunTree.""" - - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_post_submits_to_executor_in_workflow( - self, _mock_in_wf: Any, _mock_replaying: Any - ) -> None: - """In workflow context, post() submits to executor, not inline.""" - executor = _make_executor() - mock_run = _make_mock_run() - calling_thread = threading.current_thread() - post_thread: list[threading.Thread] = [] - - def record_thread(*_args: Any, **_kwargs: Any) -> None: - post_thread.append(threading.current_thread()) - - mock_run.post.side_effect = record_thread - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - tree.post() - - # Wait for executor to finish - executor.shutdown(wait=True) - - # post should have been called on the inner run via executor - mock_run.post.assert_called_once() - # Verify it ran on the executor thread, not the calling thread - assert len(post_thread) == 1 - assert post_thread[0] is not calling_thread - - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_patch_submits_to_executor_in_workflow( - self, _mock_in_wf: Any, _mock_replaying: Any - ) -> None: - """In workflow context, patch() submits to executor, not inline.""" - executor = _make_executor() - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - tree.patch() - - executor.shutdown(wait=True) - mock_run.patch.assert_called_once() - - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_post_delegates_directly_outside_workflow(self, _mock_in_wf: Any) -> None: - """Outside workflow, post() delegates directly to the inner run.""" - executor = _make_executor() - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - tree.post() - - mock_run.post.assert_called_once() - - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_patch_delegates_directly_outside_workflow(self, _mock_in_wf: Any) -> None: - """Outside workflow, patch() delegates directly to the inner run.""" - executor = _make_executor() - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - tree.patch(exclude_inputs=True) - - mock_run.patch.assert_called_once_with(exclude_inputs=True) - - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_post_error_logged_via_done_callback( - self, - _mock_in_wf: Any, - _mock_replaying: Any, - caplog: pytest.LogCaptureFixture, - ) -> None: - """Errors from fire-and-forget post() are logged via Future.add_done_callback.""" - executor = _make_executor() - mock_run = _make_mock_run() - mock_run.post.side_effect = RuntimeError("LangSmith API error") - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - with caplog.at_level(logging.ERROR): - tree.post() - executor.shutdown(wait=True) - - # The error should have been logged - assert any("LangSmith API error" in record.message for record in caplog.records) - - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_patch_error_logged_via_done_callback( - self, - _mock_in_wf: Any, - _mock_replaying: Any, - caplog: pytest.LogCaptureFixture, - ) -> None: - """Errors from fire-and-forget patch() are logged via Future.add_done_callback.""" - executor = _make_executor() - mock_run = _make_mock_run() - mock_run.patch.side_effect = RuntimeError("LangSmith patch error") - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - with caplog.at_level(logging.ERROR): - tree.patch() - executor.shutdown(wait=True) - - # The error should have been logged - assert any( - "LangSmith patch error" in record.message for record in caplog.records - ) - - -# =================================================================== -# TestReplaySuppression -# =================================================================== - - -class TestReplaySuppression: - """Tests for _is_replaying() check before executor submission.""" - - @patch(_PATCH_IS_REPLAYING, return_value=True) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_post_noop_during_replay( - self, _mock_in_wf: Any, _mock_replaying: Any - ) -> None: - """post() is a no-op during replay — no executor submission.""" - executor = _make_executor() - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - tree.post() - - executor.shutdown(wait=True) - mock_run.post.assert_not_called() - - @patch(_PATCH_IS_REPLAYING, return_value=True) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_patch_noop_during_replay( - self, _mock_in_wf: Any, _mock_replaying: Any - ) -> None: - """patch() is a no-op during replay.""" - executor = _make_executor() - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - tree.patch() - - executor.shutdown(wait=True) - mock_run.patch.assert_not_called() - - @patch(_PATCH_IS_REPLAYING, return_value=True) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_end_noop_during_replay( - self, _mock_in_wf: Any, _mock_replaying: Any - ) -> None: - """end() is a no-op during replay.""" - executor = _make_executor() - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - tree.end(outputs={"result": "done"}) - - mock_run.end.assert_not_called() - - @patch(_PATCH_WF_NOW, return_value=datetime.now(timezone.utc)) - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_end_delegates_during_normal_execution( - self, _mock_in_wf: Any, _mock_replaying: Any, _mock_now: Any - ) -> None: - """end() delegates to self._run.end() during normal (non-replay) execution.""" - executor = _make_executor() - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - tree.end(outputs={"result": "done"}, error="some error") - - mock_run.end.assert_called_once() - call_kwargs = mock_run.end.call_args.kwargs - assert call_kwargs["outputs"] == {"result": "done"} - assert call_kwargs["error"] == "some error" - assert "end_time" in call_kwargs - - -# =================================================================== -# TestRootReplaySafeRunTreeFactory -# =================================================================== - - -class TestRootReplaySafeRunTreeFactory: - """Tests for _RootReplaySafeRunTreeFactory subclass.""" - - def _make_factory(self, **kwargs: Any) -> _RootReplaySafeRunTreeFactory: - """Create a _RootReplaySafeRunTreeFactory for testing.""" - from temporalio.contrib.langsmith._interceptor import ( - _RootReplaySafeRunTreeFactory, - ) - - executor = kwargs.pop("executor", _make_executor()) - mock_client = kwargs.pop("ls_client", MagicMock()) - return _RootReplaySafeRunTreeFactory( - ls_client=mock_client, executor=executor, **kwargs - ) - - def test_post_raises_runtime_error(self) -> None: - """Factory's post() raises RuntimeError — factory must never be posted.""" - factory = self._make_factory() - with pytest.raises(RuntimeError, match="must never be posted"): - factory.post() - - def test_patch_raises_runtime_error(self) -> None: - """Factory's patch() raises RuntimeError — factory must never be patched.""" - factory = self._make_factory() - with pytest.raises(RuntimeError, match="must never be patched"): - factory.patch() - - def test_end_raises_runtime_error(self) -> None: - """Factory's end() raises RuntimeError — factory must never be ended.""" - factory = self._make_factory() - with pytest.raises(RuntimeError, match="must never be ended"): - factory.end(outputs={"status": "ok"}) - - @patch(_PATCH_GET_WF_RANDOM) - @patch(_PATCH_WF_NOW) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_create_child_returns_root_replay_safe_run_tree( - self, - _mock_in_wf: Any, - mock_now: Any, - mock_get_random: Any, - ) -> None: - """Factory's create_child creates a root _ReplaySafeRunTree (no parent_run_id).""" - import random as stdlib_random - - mock_get_random.return_value = stdlib_random.Random(42) - mock_now.return_value = datetime(2025, 1, 1, tzinfo=timezone.utc) - - executor = _make_executor() - mock_client = MagicMock() - factory = self._make_factory(ls_client=mock_client, executor=executor) - - child = factory.create_child(name="traceable-fn", run_type="chain") - - assert isinstance(child, _ReplaySafeRunTree) - # Child should be a root run — no parent_run_id - assert child._run.parent_run_id is None - - def test_create_child_inherits_client_session_and_replicas(self) -> None: - """Factory's children inherit ls_client, session_name, replicas.""" - executor = _make_executor() - mock_client = MagicMock() - mock_replicas = [MagicMock(), MagicMock()] - factory = self._make_factory( - ls_client=mock_client, - executor=executor, - session_name="my-project", - replicas=mock_replicas, - ) - - with patch(_PATCH_IN_WORKFLOW, return_value=False): - child = factory.create_child(name="traceable-fn", run_type="chain") - - assert isinstance(child, _ReplaySafeRunTree) - # Child should have the factory's ls_client, session_name, and replicas - assert child.ls_client is mock_client - assert child.session_name == "my-project" - assert child.replicas is mock_replicas - - def test_create_child_propagates_executor(self) -> None: - """Factory propagates executor to children.""" - executor = _make_executor() - factory = self._make_factory(executor=executor) - - with patch(_PATCH_IN_WORKFLOW, return_value=False): - child = factory.create_child(name="traceable-fn", run_type="chain") - - assert isinstance(child, _ReplaySafeRunTree) - assert child._executor is executor - - def test_create_child_maps_run_id_to_id(self) -> None: - """Factory's create_child maps run_id kwarg to id on the resulting RunTree. - - The run_id kwarg is mapped to id, matching LangSmith's - RunTree.create_child convention (run_trees.py:545). - """ - executor = _make_executor() - factory = self._make_factory(executor=executor) - explicit_id = uuid.uuid4() - - with patch(_PATCH_IN_WORKFLOW, return_value=False): - child = factory.create_child( - name="traceable-fn", run_type="chain", run_id=explicit_id - ) - - assert isinstance(child, _ReplaySafeRunTree) - # The underlying RunTree should have id set to the passed run_id - assert child._run.id == explicit_id - - def test_factory_not_in_collected_runs(self) -> None: - """Factory's post/patch/end raise RuntimeError — factory is never traced.""" - factory = self._make_factory() - - with pytest.raises(RuntimeError): - factory.post() - with pytest.raises(RuntimeError): - factory.patch() - with pytest.raises(RuntimeError): - factory.end() - - -# =================================================================== -# TestPostTimingDelayedExecution -# =================================================================== - - -class TestPostTimingDelayedExecution: - """Tests for post() timing when executor is busy. - - When post() is delayed (executor busy), create_run includes finalized data - (outputs/end_time), and the subsequent update_run from patch() is idempotent. - """ - - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_post_patch_fifo_ordering( - self, _mock_in_wf: Any, _mock_replaying: Any - ) -> None: - """post() always completes before patch() starts (FIFO via single-worker executor).""" - executor = _make_executor() - mock_run = _make_mock_run() - call_order: list[str] = [] - - def record_post(*_args: Any, **_kwargs: Any) -> None: - call_order.append("post") - - def record_patch(*_args: Any, **_kwargs: Any) -> None: - call_order.append("patch") - - mock_run.post.side_effect = record_post - mock_run.patch.side_effect = record_patch - - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - tree.post() - tree.patch() - - executor.shutdown(wait=True) - - assert call_order == ["post", "patch"] - - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_delayed_post_reads_finalized_fields( - self, _mock_in_wf: Any, _mock_replaying: Any - ) -> None: - """When post() is delayed, create_run sees finalized outputs/end_time. - - Simulates: block executor → submit post() (queued) → call end() on - "workflow thread" to set outputs/end_time → release blocker → verify - post() saw the finalized fields via _get_dicts_safe(). - """ - executor = _make_executor() - mock_run = _make_mock_run() - - # Barrier to block executor so post() is delayed - blocker = threading.Event() - post_saw_outputs: list[Any] = [] - post_saw_end_time: list[Any] = [] - - # Block the executor with a dummy task - def blocking_task() -> None: - blocker.wait(timeout=5.0) - - executor.submit(blocking_task) - - # Record what fields post() sees when it finally runs - def capturing_post(*_args: Any, **_kwargs: Any) -> None: - post_saw_outputs.append(getattr(mock_run, "outputs", None)) - post_saw_end_time.append(getattr(mock_run, "end_time", None)) - - mock_run.post.side_effect = capturing_post - - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - # Submit post() — it's queued behind the blocker - tree.post() - - # Simulate end() on the "workflow thread" while post() is still queued - finalized_outputs = {"result": "done"} - finalized_end_time = datetime(2025, 6, 1, tzinfo=timezone.utc) - mock_run.outputs = finalized_outputs - mock_run.end_time = finalized_end_time - - # Release the blocker — post() now runs and reads finalized fields - blocker.set() - executor.shutdown(wait=True) - - # post() should have seen the finalized outputs and end_time - assert len(post_saw_outputs) == 1 - assert post_saw_outputs[0] == finalized_outputs - assert len(post_saw_end_time) == 1 - assert post_saw_end_time[0] == finalized_end_time - - -# =================================================================== -# TestPostShutdownRaises -# =================================================================== - - -class TestPostShutdownRaises: - """Tests that post/patch raise after executor shutdown.""" - - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_post_raises_after_shutdown( - self, _mock_in_wf: Any, _mock_replaying: Any - ) -> None: - """After executor.shutdown(), post() raises RuntimeError.""" - executor = _make_executor() - executor.shutdown(wait=True) - - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - with pytest.raises(RuntimeError): - tree.post() - - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_patch_raises_after_shutdown( - self, _mock_in_wf: Any, _mock_replaying: Any - ) -> None: - """After executor.shutdown(), patch() raises RuntimeError.""" - executor = _make_executor() - executor.shutdown(wait=True) - - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - - with pytest.raises(RuntimeError): - tree.patch() - - -# =================================================================== -# Test_ReplaySafeRunTreeConstructor -# =================================================================== - - -class Test_ReplaySafeRunTreeConstructor: - """Tests for _ReplaySafeRunTree accepting executor parameter.""" - - def test_constructor_stores_executor(self) -> None: - """The executor is stored and accessible.""" - executor = _make_executor() - mock_run = _make_mock_run() - tree = _ReplaySafeRunTree(mock_run, executor=executor) - assert tree._executor is executor diff --git a/tests/contrib/langsmith/test_integration.py b/tests/contrib/langsmith/test_integration.py deleted file mode 100644 index f48d9d6ac..000000000 --- a/tests/contrib/langsmith/test_integration.py +++ /dev/null @@ -1,1280 +0,0 @@ -"""Integration tests for LangSmith plugin with real Temporal worker.""" - -from __future__ import annotations - -import asyncio -import uuid -from collections.abc import Callable -from datetime import timedelta -from typing import Any -from unittest.mock import MagicMock - -import nexusrpc.handler -import pytest -from langsmith import traceable, tracing_context - -from temporalio import activity, common, nexus, workflow -from temporalio.client import ( - Client, - WorkflowFailureError, - WorkflowHandle, - WorkflowQueryFailedError, -) -from temporalio.contrib.langsmith import LangSmithPlugin -from temporalio.exceptions import ApplicationError -from temporalio.service import RPCError -from temporalio.testing import WorkflowEnvironment -from tests.contrib.langsmith.conftest import ( - InMemoryRunCollector, - build_trace_trees, - find_trace_trees, - make_mock_ls_client, -) -from tests.helpers import new_worker -from tests.helpers.nexus import make_nexus_endpoint_name -from tests.helpers.trace import assert_trace_hierarchy - -# --------------------------------------------------------------------------- -# Shared @traceable functions and activities -# --------------------------------------------------------------------------- - - -@traceable(name="inner_llm_call") -async def _inner_llm_call(prompt: str) -> str: - """Simulates an LLM call decorated with @traceable.""" - return f"response to: {prompt}" - - -@traceable(name="outer_chain") -async def _outer_chain(prompt: str) -> str: - """A @traceable that calls another @traceable.""" - return await _inner_llm_call(prompt) - - -@traceable -@activity.defn -async def traceable_activity() -> str: - """Activity that calls a @traceable function.""" - result = await _inner_llm_call("hello") - return result - - -@traceable -@activity.defn -async def nested_traceable_activity() -> str: - """Activity with two levels of @traceable nesting.""" - result = await _outer_chain("hello") - return result - - -# --------------------------------------------------------------------------- -# Shared workflows -# --------------------------------------------------------------------------- - - -@workflow.defn -class TraceableActivityWorkflow: - @workflow.run - async def run(self, _input: str = "") -> str: - return await workflow.execute_activity( - traceable_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - - -@nexusrpc.handler.service_handler -class NexusService: - @nexus.workflow_run_operation - async def run_operation( - self, ctx: nexus.WorkflowRunOperationContext, input: str - ) -> nexus.WorkflowHandle[str]: - return await ctx.start_workflow( - TraceableActivityWorkflow.run, - input, - id=f"nexus-wf-{ctx.request_id}", - ) - - -# --------------------------------------------------------------------------- -# Simple/basic workflows and activities -# --------------------------------------------------------------------------- - - -@traceable -@activity.defn -async def simple_activity() -> str: - return "activity-done" - - -@workflow.defn -class SimpleWorkflow: - @workflow.run - async def run(self) -> str: - result = await workflow.execute_activity( - simple_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - return result - - -# --------------------------------------------------------------------------- -# Signal/query/update workflows -# --------------------------------------------------------------------------- - - -@traceable(name="step_with_activity") -async def _step_with_activity() -> str: - """A @traceable step that wraps an activity call.""" - return await workflow.execute_activity( - nested_traceable_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - - -@traceable(name="step_with_child_workflow") -async def _step_with_child_workflow() -> str: - """A @traceable step that wraps a child workflow call.""" - return await workflow.execute_child_workflow( - TraceableActivityWorkflow.run, - id=f"step-child-{workflow.info().workflow_id}", - ) - - -@traceable(name="step_with_nexus") -async def _step_with_nexus() -> str: - """A @traceable step that wraps a nexus operation.""" - nexus_client = workflow.create_nexus_client( - endpoint=make_nexus_endpoint_name(workflow.info().task_queue), - service=NexusService, - ) - nexus_handle = await nexus_client.start_operation( - operation=NexusService.run_operation, - input="test-input", - ) - return await nexus_handle - - -@workflow.defn -class ComprehensiveWorkflow: - def __init__(self) -> None: - self._signal_received = False - self._waiting_for_signal = False - self._complete = False - - @workflow.run - async def run(self) -> str: - await workflow.execute_activity( - nested_traceable_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - await _step_with_activity() - await workflow.execute_local_activity( - nested_traceable_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - await _outer_chain("from-workflow") - await workflow.execute_child_workflow( - TraceableActivityWorkflow.run, - id=f"child-{workflow.info().workflow_id}", - ) - await _step_with_child_workflow() - nexus_client = workflow.create_nexus_client( - endpoint=make_nexus_endpoint_name(workflow.info().task_queue), - service=NexusService, - ) - nexus_handle = await nexus_client.start_operation( - operation=NexusService.run_operation, - input="test-input", - ) - await nexus_handle - await _step_with_nexus() - - self._waiting_for_signal = True - await workflow.wait_condition(lambda: self._signal_received) - await workflow.execute_activity( - nested_traceable_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - await workflow.wait_condition(lambda: self._complete) - return "comprehensive-done" - - @workflow.signal - def my_signal(self, _value: str) -> None: - self._signal_received = True - - @workflow.query - def my_query(self) -> bool: - return self._signal_received - - @workflow.query - def is_waiting_for_signal(self) -> bool: - return self._waiting_for_signal - - @workflow.update - def my_update(self, value: str) -> str: - self._complete = True - return f"updated-{value}" - - @my_update.validator - def validate_my_update(self, value: str) -> None: - if not value: - raise ValueError("empty") - - @workflow.update - def my_unvalidated_update(self, value: str) -> str: - return f"unvalidated-{value}" - - -# --------------------------------------------------------------------------- -# Error workflows and activities -# --------------------------------------------------------------------------- - - -@traceable -@activity.defn -async def failing_activity() -> str: - raise ApplicationError("activity-failed", non_retryable=True) - - -@traceable -@activity.defn -async def benign_failing_activity() -> str: - from temporalio.exceptions import ApplicationErrorCategory - - raise ApplicationError( - "benign-fail", - non_retryable=True, - category=ApplicationErrorCategory.BENIGN, - ) - - -@workflow.defn -class FailingWorkflow: - @workflow.run - async def run(self) -> str: - raise ApplicationError("workflow-failed", non_retryable=True) - - -@workflow.defn -class ActivityFailureWorkflow: - @workflow.run - async def run(self) -> str: - return await workflow.execute_activity( - failing_activity, - start_to_close_timeout=timedelta(seconds=10), - retry_policy=common.RetryPolicy(maximum_attempts=1), - ) - - -@workflow.defn -class BenignErrorWorkflow: - @workflow.run - async def run(self) -> str: - return await workflow.execute_activity( - benign_failing_activity, - start_to_close_timeout=timedelta(seconds=10), - retry_policy=common.RetryPolicy(maximum_attempts=1), - ) - - -# --------------------------------------------------------------------------- -# Helpers -# --------------------------------------------------------------------------- - - -def _make_plugin_and_collector( - **kwargs: Any, -) -> tuple[LangSmithPlugin, InMemoryRunCollector, MagicMock]: - """Create a LangSmithPlugin wired to an InMemoryRunCollector via mock client.""" - collector = InMemoryRunCollector() - mock_ls_client = make_mock_ls_client(collector) - plugin = LangSmithPlugin(client=mock_ls_client, **kwargs) - return plugin, collector, mock_ls_client - - -def _make_client_and_collector( - client: Client, **kwargs: Any -) -> tuple[Client, InMemoryRunCollector, MagicMock]: - """Create a Temporal Client with LangSmith plugin and an InMemoryRunCollector.""" - plugin, collector, mock_ls_client = _make_plugin_and_collector(**kwargs) - config = client.config() - config["plugins"] = [plugin] - return Client(**config), collector, mock_ls_client - - -def _make_temporal_client( - client: Client, mock_ls_client: MagicMock, **kwargs: Any -) -> Client: - """Create a Temporal Client with a fresh LangSmith plugin.""" - plugin = LangSmithPlugin(client=mock_ls_client, **kwargs) - config = client.config() - config["plugins"] = [plugin] - return Client(**config) - - -@traceable(name="poll_query") -async def _poll_query( - handle: WorkflowHandle[Any, Any], - query: Callable[..., Any], - *, - expected: Any = True, -) -> bool: - """Poll a workflow query until it returns the expected value.""" - while True: - try: - result = await handle.query(query) - if result == expected: - return True - except (WorkflowQueryFailedError, RPCError): - pass # Query not yet available (workflow hasn't started) - await asyncio.sleep(1) - - -# --------------------------------------------------------------------------- -# TestBasicTracing -# --------------------------------------------------------------------------- - - -class TestBasicTracing: - async def test_workflow_activity_trace_hierarchy( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - ) -> None: - """StartWorkflow → RunWorkflow → StartActivity → RunActivity hierarchy.""" - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - async with new_worker( - temporal_client, - SimpleWorkflow, - activities=[simple_activity], - max_cached_workflows=0, - ) as worker: - result = await temporal_client.start_workflow( - SimpleWorkflow.run, - id=f"basic-trace-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - assert await result.result() == "activity-done" - - expected = [ - "StartWorkflow:SimpleWorkflow", - "RunWorkflow:SimpleWorkflow", - " StartActivity:simple_activity", - " RunActivity:simple_activity", - " simple_activity", - ] - assert_trace_hierarchy(build_trace_trees(collector), expected) - - # Verify run_type: RunActivity is "tool", others are "chain" - for run in collector.runs: - if run.name == "RunActivity:simple_activity": - assert run.run_type == "tool", ( - f"Expected RunActivity run_type='tool', got '{run.run_type}'" - ) - else: - assert run.run_type == "chain", ( - f"Expected {run.name} run_type='chain', got '{run.run_type}'" - ) - - # Verify successful runs have outputs == {"status": "ok"} - for run in collector.runs: - if ":" in run.name: # Interceptor runs use "Type:Name" format - assert run.outputs == {"status": "ok"}, ( - f"Expected {run.name} outputs={{'status': 'ok'}}, got {run.outputs}" - ) - - -# --------------------------------------------------------------------------- -# TestReplay -# --------------------------------------------------------------------------- - - -class TestReplay: - async def test_no_duplicate_traces_on_replay( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - ) -> None: - """With max_cached_workflows=0 (forcing replay), no duplicate runs appear.""" - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - async with new_worker( - temporal_client, - TraceableActivityWorkflow, - activities=[traceable_activity], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - TraceableActivityWorkflow.run, - id=f"replay-test-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - await handle.result() - - # Workflow→activity→@traceable flow should produce exactly these runs - # with no duplicates from replay: - expected = [ - "StartWorkflow:TraceableActivityWorkflow", - "RunWorkflow:TraceableActivityWorkflow", - " StartActivity:traceable_activity", - " RunActivity:traceable_activity", - " traceable_activity", - " inner_llm_call", - ] - assert_trace_hierarchy(build_trace_trees(collector), expected) - - -# --------------------------------------------------------------------------- -# TestErrorTracing -# --------------------------------------------------------------------------- - - -class TestErrorTracing: - async def test_activity_failure_marked( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - ) -> None: - """A failing activity run is marked with an error.""" - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - async with new_worker( - temporal_client, - ActivityFailureWorkflow, - activities=[failing_activity], - workflow_failure_exception_types=[ApplicationError], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - ActivityFailureWorkflow.run, - id=f"act-fail-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - with pytest.raises(WorkflowFailureError): - await handle.result() - - expected = [ - "StartWorkflow:ActivityFailureWorkflow", - "RunWorkflow:ActivityFailureWorkflow", - " StartActivity:failing_activity", - " RunActivity:failing_activity", - " failing_activity", - ] - assert_trace_hierarchy(build_trace_trees(collector), expected) - # Verify the RunActivity run has an error - activity_runs = [ - r for r in collector.runs if r.name == "RunActivity:failing_activity" - ] - assert len(activity_runs) == 1 - assert activity_runs[0].error == "ApplicationError: activity-failed" - - async def test_workflow_failure_marked( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - ) -> None: - """A failing workflow run is marked with an error.""" - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - async with new_worker( - temporal_client, - FailingWorkflow, - workflow_failure_exception_types=[ApplicationError], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - FailingWorkflow.run, - id=f"wf-fail-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - with pytest.raises(WorkflowFailureError): - await handle.result() - - expected = [ - "StartWorkflow:FailingWorkflow", - "RunWorkflow:FailingWorkflow", - ] - assert_trace_hierarchy(build_trace_trees(collector), expected) - # Verify the RunWorkflow run has an error - wf_runs = [r for r in collector.runs if r.name == "RunWorkflow:FailingWorkflow"] - assert len(wf_runs) == 1 - assert wf_runs[0].error == "ApplicationError: workflow-failed" - - async def test_benign_error_not_marked( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - ) -> None: - """A benign ApplicationError does NOT mark the run as errored.""" - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - async with new_worker( - temporal_client, - BenignErrorWorkflow, - activities=[benign_failing_activity], - workflow_failure_exception_types=[ApplicationError], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - BenignErrorWorkflow.run, - id=f"benign-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - with pytest.raises(WorkflowFailureError): - await handle.result() - - expected = [ - "StartWorkflow:BenignErrorWorkflow", - "RunWorkflow:BenignErrorWorkflow", - " StartActivity:benign_failing_activity", - " RunActivity:benign_failing_activity", - " benign_failing_activity", - ] - assert_trace_hierarchy(build_trace_trees(collector), expected) - # The RunActivity run for benign error should NOT have error set - activity_runs = [ - r for r in collector.runs if r.name == "RunActivity:benign_failing_activity" - ] - assert len(activity_runs) == 1 - assert activity_runs[0].error is None - - -# --------------------------------------------------------------------------- -# TestComprehensiveTracing -# --------------------------------------------------------------------------- - - -class TestComprehensiveTracing: - @pytest.mark.requires_local_server - async def test_comprehensive_with_temporal_runs( - self, client: Client, env: WorkflowEnvironment - ) -> None: - """Full trace hierarchy with worker restart mid-workflow. - - user_pipeline only wraps start_workflow (completing before the worker - starts), so poll/signal/query traces are naturally separate root traces. - """ - if env.supports_time_skipping: - pytest.skip("Time-skipping server doesn't persist headers.") - - task_queue = f"comprehensive-{uuid.uuid4()}" - workflow_id = f"comprehensive-{uuid.uuid4()}" - collector = InMemoryRunCollector() - mock_ls = make_mock_ls_client(collector) - temporal_client_1 = _make_temporal_client( - client, mock_ls, add_temporal_runs=True - ) - - @traceable(name="user_pipeline") - async def user_pipeline() -> WorkflowHandle[Any, Any]: - return await temporal_client_1.start_workflow( - ComprehensiveWorkflow.run, - id=workflow_id, - task_queue=task_queue, - ) - - with tracing_context(client=mock_ls, enabled=True): - # Start workflow — no worker yet, just a server RPC - handle = await user_pipeline() - - # Phase 1: worker picks up workflow, poll until signal wait - async with new_worker( - temporal_client_1, - ComprehensiveWorkflow, - TraceableActivityWorkflow, - activities=[nested_traceable_activity, traceable_activity], - nexus_service_handlers=[NexusService()], - task_queue=task_queue, - max_cached_workflows=0, - ) as worker: - await env.create_nexus_endpoint( - make_nexus_endpoint_name(worker.task_queue), - worker.task_queue, - ) - assert await _poll_query( - handle, - ComprehensiveWorkflow.is_waiting_for_signal, - expected=True, - ), "Workflow never reached signal wait point" - # Raw-client query (no LangSmith interceptor) — root-level trace - raw_handle = client.get_workflow_handle(workflow_id) - await raw_handle.query(ComprehensiveWorkflow.is_waiting_for_signal) - - # Phase 2: fresh worker, signal to resume, complete - temporal_client_2 = _make_temporal_client( - client, mock_ls, add_temporal_runs=True - ) - async with new_worker( - temporal_client_2, - ComprehensiveWorkflow, - TraceableActivityWorkflow, - activities=[nested_traceable_activity, traceable_activity], - nexus_service_handlers=[NexusService()], - task_queue=task_queue, - max_cached_workflows=0, - ): - handle_2 = temporal_client_2.get_workflow_handle(workflow_id) - await handle_2.query(ComprehensiveWorkflow.my_query) - await handle_2.signal(ComprehensiveWorkflow.my_signal, "hello") - await handle_2.execute_update( - ComprehensiveWorkflow.my_unvalidated_update, "test" - ) - await handle_2.execute_update(ComprehensiveWorkflow.my_update, "finish") - result = await handle_2.result() - - assert result == "comprehensive-done" - - trace_trees = build_trace_trees(collector) - - # user_pipeline trace: StartWorkflow + full workflow execution tree - workflow_trace_trees = find_trace_trees(trace_trees, "user_pipeline") - assert len(workflow_trace_trees) == 1 - expected_workflow = [ - "user_pipeline", - " StartWorkflow:ComprehensiveWorkflow", - " RunWorkflow:ComprehensiveWorkflow", - " StartActivity:nested_traceable_activity", - " RunActivity:nested_traceable_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - # step-wrapped activity - " step_with_activity", - " StartActivity:nested_traceable_activity", - " RunActivity:nested_traceable_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - " StartActivity:nested_traceable_activity", - " RunActivity:nested_traceable_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - " outer_chain", - " inner_llm_call", - " StartChildWorkflow:TraceableActivityWorkflow", - " RunWorkflow:TraceableActivityWorkflow", - " StartActivity:traceable_activity", - " RunActivity:traceable_activity", - " traceable_activity", - " inner_llm_call", - # step-wrapped child workflow - " step_with_child_workflow", - " StartChildWorkflow:TraceableActivityWorkflow", - " RunWorkflow:TraceableActivityWorkflow", - " StartActivity:traceable_activity", - " RunActivity:traceable_activity", - " traceable_activity", - " inner_llm_call", - " StartNexusOperation:NexusService/run_operation", - " RunStartNexusOperationHandler:NexusService/run_operation", - " StartWorkflow:TraceableActivityWorkflow", - " RunWorkflow:TraceableActivityWorkflow", - " StartActivity:traceable_activity", - " RunActivity:traceable_activity", - " traceable_activity", - " inner_llm_call", - # step-wrapped nexus operation - " step_with_nexus", - " StartNexusOperation:NexusService/run_operation", - " RunStartNexusOperationHandler:NexusService/run_operation", - " StartWorkflow:TraceableActivityWorkflow", - " RunWorkflow:TraceableActivityWorkflow", - " StartActivity:traceable_activity", - " RunActivity:traceable_activity", - " traceable_activity", - " inner_llm_call", - # post-signal - " StartActivity:nested_traceable_activity", - " RunActivity:nested_traceable_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - ] - assert_trace_hierarchy(workflow_trace_trees, expected_workflow) - - # poll_query trace (separate root, variable number of iterations) - poll_trace_trees = find_trace_trees(trace_trees, "poll_query") - assert len(poll_trace_trees) == 1 - poll = poll_trace_trees[0] - assert poll.name == "poll_query" - poll_children = poll.children - for poll_child in poll_children: - assert poll_child.name == "QueryWorkflow:is_waiting_for_signal" - assert [child.name for child in poll_child.children] == [ - "HandleQuery:is_waiting_for_signal" - ] - assert not poll_child.children[0].children - - # Raw-client query — no parent context, appears as root - raw_query_trace_trees = [ - trace for trace in trace_trees if trace.name.startswith("HandleQuery:") - ] - assert len(raw_query_trace_trees) == 1 - - # Phase 2: each operation is its own root trace - query_trace_trees = find_trace_trees(trace_trees, "QueryWorkflow:my_query") - assert len(query_trace_trees) == 1 - assert_trace_hierarchy( - query_trace_trees, - [ - "QueryWorkflow:my_query", - " HandleQuery:my_query", - ], - ) - - signal_trace_trees = find_trace_trees(trace_trees, "SignalWorkflow:my_signal") - assert len(signal_trace_trees) == 1 - assert_trace_hierarchy( - signal_trace_trees, - [ - "SignalWorkflow:my_signal", - " HandleSignal:my_signal", - ], - ) - - update_trace_trees = find_trace_trees( - trace_trees, "StartWorkflowUpdate:my_update" - ) - assert len(update_trace_trees) == 1 - assert_trace_hierarchy( - update_trace_trees, - [ - "StartWorkflowUpdate:my_update", - " ValidateUpdate:my_update", - " HandleUpdate:my_update", - ], - ) - - # Update without a validator — no ValidateUpdate trace - unvalidated_trace_trees = find_trace_trees( - trace_trees, "StartWorkflowUpdate:my_unvalidated_update" - ) - assert len(unvalidated_trace_trees) == 1 - assert_trace_hierarchy( - unvalidated_trace_trees, - [ - "StartWorkflowUpdate:my_unvalidated_update", - " HandleUpdate:my_unvalidated_update", - ], - ) - - @pytest.mark.requires_local_server - async def test_comprehensive_without_temporal_runs( - self, client: Client, env: WorkflowEnvironment - ) -> None: - """Same workflow with add_temporal_runs=False and worker restart. - - Only @traceable runs appear. Context propagation via headers still works. - user_pipeline only wraps start_workflow, so poll traces are separate roots. - """ - if env.supports_time_skipping: - pytest.skip("Time-skipping server doesn't persist headers.") - - task_queue = f"comprehensive-no-runs-{uuid.uuid4()}" - workflow_id = f"comprehensive-no-runs-{uuid.uuid4()}" - collector = InMemoryRunCollector() - mock_ls = make_mock_ls_client(collector) - temporal_client_1 = _make_temporal_client( - client, mock_ls, add_temporal_runs=False - ) - - @traceable(name="user_pipeline") - async def user_pipeline() -> WorkflowHandle[Any, Any]: - return await temporal_client_1.start_workflow( - ComprehensiveWorkflow.run, - id=workflow_id, - task_queue=task_queue, - ) - - with tracing_context(client=mock_ls, enabled=True): - handle = await user_pipeline() - - # Phase 1: worker picks up workflow, poll until signal wait - async with new_worker( - temporal_client_1, - ComprehensiveWorkflow, - TraceableActivityWorkflow, - activities=[nested_traceable_activity, traceable_activity], - nexus_service_handlers=[NexusService()], - task_queue=task_queue, - max_cached_workflows=0, - ) as worker: - await env.create_nexus_endpoint( - make_nexus_endpoint_name(worker.task_queue), - worker.task_queue, - ) - # Raw-client query — no interceptor, produces nothing - raw_handle = client.get_workflow_handle(workflow_id) - await raw_handle.query(ComprehensiveWorkflow.is_waiting_for_signal) - assert await _poll_query( - handle, - ComprehensiveWorkflow.is_waiting_for_signal, - expected=True, - ), "Workflow never reached signal wait point" - - # Phase 2: fresh worker, signal to resume, complete - temporal_client_2 = _make_temporal_client( - client, mock_ls, add_temporal_runs=False - ) - async with new_worker( - temporal_client_2, - ComprehensiveWorkflow, - TraceableActivityWorkflow, - activities=[nested_traceable_activity, traceable_activity], - nexus_service_handlers=[NexusService()], - task_queue=task_queue, - max_cached_workflows=0, - ): - handle_2 = temporal_client_2.get_workflow_handle(workflow_id) - await handle_2.signal(ComprehensiveWorkflow.my_signal, "hello") - await handle_2.execute_update( - ComprehensiveWorkflow.my_unvalidated_update, "test" - ) - await handle_2.execute_update(ComprehensiveWorkflow.my_update, "finish") - result = await handle_2.result() - - assert result == "comprehensive-done" - - trace_trees = build_trace_trees(collector) - - # Main workflow trace (only @traceable runs, nested under user_pipeline) - workflow_trace_trees = find_trace_trees(trace_trees, "user_pipeline") - assert len(workflow_trace_trees) == 1 - expected_workflow = [ - "user_pipeline", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - " step_with_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - " outer_chain", - " inner_llm_call", - " traceable_activity", - " inner_llm_call", - " step_with_child_workflow", - " traceable_activity", - " inner_llm_call", - " traceable_activity", - " inner_llm_call", - " step_with_nexus", - " traceable_activity", - " inner_llm_call", - # post-signal - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - ] - assert_trace_hierarchy(workflow_trace_trees, expected_workflow) - - # Poll query — separate root, just the @traceable wrapper, no Temporal children - poll_trace_trees = find_trace_trees(trace_trees, "poll_query") - assert len(poll_trace_trees) == 1 - assert_trace_hierarchy(poll_trace_trees, ["poll_query"]) - - -# --------------------------------------------------------------------------- -# TestBackgroundIOIntegration — _RootReplaySafeRunTreeFactory + sync @traceable -# --------------------------------------------------------------------------- - - -@traceable(name="sync_inner_llm_call") -def _sync_inner_llm_call(prompt: str) -> str: - """Sync @traceable simulating an LLM call.""" - return f"sync-response to: {prompt}" - - -@traceable(name="sync_outer_chain") -def _sync_outer_chain(prompt: str) -> str: - """Sync @traceable that calls another sync @traceable.""" - return _sync_inner_llm_call(prompt) - - -@traceable(name="async_calls_sync") -async def _async_calls_sync(prompt: str) -> str: - """Async @traceable that calls a sync @traceable — the interesting mixed case.""" - return _sync_inner_llm_call(prompt) - - -@workflow.defn -class FactoryTraceableWorkflow: - """Workflow exercising _RootReplaySafeRunTreeFactory with async, sync, and mixed @traceable. - - Covers three code paths through create_child: - - async→async nesting - - sync→sync nesting (sync @traceable entry to factory) - - async→sync nesting (cross-boundary case) - """ - - @workflow.run - async def run(self) -> str: - r1 = await _outer_chain("async") - r2 = _sync_outer_chain("sync") - r3 = await _async_calls_sync("mixed") - # Activity with nested @traceable - await workflow.execute_activity( - nested_traceable_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - return f"{r1}|{r2}|{r3}" - - -class TestBackgroundIOIntegration: - """Integration tests for workflows using add_temporal_runs=False without external context. - - Exercises the _RootReplaySafeRunTreeFactory path with sync, async, and mixed @traceable - nesting. Verifies root-run creation, correct nesting hierarchy, and replay safety. - """ - - async def test_factory_traceable_no_external_context( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - ) -> None: - """Exercises _RootReplaySafeRunTreeFactory: add_temporal_runs=False, no external context. - - Uses a workflow with async→async, sync→sync, and async→sync @traceable - nesting, plus an activity with nested @traceable. Verifies: - - Each top-level @traceable becomes a root run (factory creates root children) - - Nested @traceable calls nest correctly under their parent - - Activity @traceable also produces correct hierarchy - - No phantom factory run appears in collected runs - - No duplicate run IDs after replay (max_cached_workflows=0) - """ - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=False - ) - - async with new_worker( - temporal_client, - FactoryTraceableWorkflow, - activities=[nested_traceable_activity], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - FactoryTraceableWorkflow.run, - id=f"factory-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - result = await handle.result() - - assert ( - result - == "response to: async|sync-response to: sync|sync-response to: mixed" - ) - - expected = [ - "outer_chain", - " inner_llm_call", - "sync_outer_chain", - " sync_inner_llm_call", - "async_calls_sync", - " sync_inner_llm_call", - "nested_traceable_activity", - " outer_chain", - " inner_llm_call", - ] - assert_trace_hierarchy(build_trace_trees(collector), expected) - - # Verify no duplicate run IDs (replay safety with max_cached_workflows=0) - run_ids = [r.id for r in collector.runs] - assert len(run_ids) == len(set(run_ids)), ( - f"Duplicate run IDs found (replay issue): {run_ids}" - ) - - async def test_factory_passes_project_name_to_children( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - ) -> None: - """Factory children inherit project_name (session_name) from plugin config.""" - temporal_client, _collector, mock_ls_client = _make_client_and_collector( - client, add_temporal_runs=False, project_name="my-ls-project" - ) - - async with new_worker( - temporal_client, - FactoryTraceableWorkflow, - activities=[nested_traceable_activity], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - FactoryTraceableWorkflow.run, - id=f"factory-proj-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - await handle.result() - - # Verify create_run calls include session_name from project_name - for call in mock_ls_client.create_run.call_args_list: - session = call.kwargs.get("session_name") - assert session == "my-ls-project", ( - f"Expected session_name='my-ls-project', got {session!r} " - f"in create_run call: {call.kwargs.get('name')}" - ) - - async def test_mixed_sync_async_traceable_with_temporal_runs( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - ) -> None: - """Exercises _ReplaySafeRunTree.create_child with mixed sync/async @traceable. - - With add_temporal_runs=True, the interceptor creates a real - _ReplaySafeRunTree as parent. This test verifies create_child - propagation works at every level regardless of sync/async, with - correct parent-child hierarchy and no duplicate run IDs after replay. - """ - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - async with new_worker( - temporal_client, - FactoryTraceableWorkflow, - activities=[nested_traceable_activity], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - FactoryTraceableWorkflow.run, - id=f"mixed-temporal-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - result = await handle.result() - - assert ( - result - == "response to: async|sync-response to: sync|sync-response to: mixed" - ) - - # With add_temporal_runs=True, Temporal operations get their own runs. - # @traceable calls nest under the RunWorkflow run. - expected = [ - "StartWorkflow:FactoryTraceableWorkflow", - "RunWorkflow:FactoryTraceableWorkflow", - " outer_chain", - " inner_llm_call", - " sync_outer_chain", - " sync_inner_llm_call", - " async_calls_sync", - " sync_inner_llm_call", - " StartActivity:nested_traceable_activity", - " RunActivity:nested_traceable_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - ] - assert_trace_hierarchy(build_trace_trees(collector), expected) - - # Verify no duplicate run IDs (replay safety with max_cached_workflows=0) - run_ids = [r.id for r in collector.runs] - assert len(run_ids) == len(set(run_ids)), ( - f"Duplicate run IDs found (replay issue): {run_ids}" - ) - - -# --- Nexus service with direct @traceable call in handler --- - - -@traceable(name="nexus_direct_traceable") -async def _nexus_direct_traceable(input: str) -> str: - """A @traceable function called directly from a nexus handler.""" - return await _inner_llm_call(input) - - -@nexusrpc.handler.service_handler -class DirectTraceableNexusService: - """Nexus service that calls @traceable directly (not via activity).""" - - @nexusrpc.handler.sync_operation - async def direct_traceable_op( - self, - ctx: nexusrpc.handler.StartOperationContext, # type:ignore[reportUnusedParameter] - input: str, - ) -> str: - return await _nexus_direct_traceable(input) - - -@workflow.defn -class NexusDirectTraceableWorkflow: - """Workflow that calls a nexus operation whose handler uses @traceable directly.""" - - @workflow.run - async def run(self) -> str: - nexus_client = workflow.create_nexus_client( - endpoint=make_nexus_endpoint_name(workflow.info().task_queue), - service=DirectTraceableNexusService, - ) - return await nexus_client.execute_operation( - operation=DirectTraceableNexusService.direct_traceable_op, - input="nexus-input", - ) - - -# --------------------------------------------------------------------------- -# TestNexusInboundTracing -# --------------------------------------------------------------------------- - - -class TestNexusInboundTracing: - """Verifies nexus handlers receive tracing_context for @traceable collection.""" - - @pytest.mark.requires_local_server - async def test_nexus_direct_traceable_without_temporal_runs( - self, - client: Client, - env: WorkflowEnvironment, - ) -> None: - """@traceable in nexus handler works with add_temporal_runs=False. - - The worker must be started OUTSIDE tracing_context so that nexus handler - tasks inherit a clean contextvars state. Only the client call gets - tracing_context — the interceptor's tracing_context setup (or lack - thereof) is the only thing that should provide context to the handler. - """ - if env.supports_time_skipping: - pytest.skip("Time-skipping server doesn't persist headers.") - - task_queue = f"nexus-direct-{uuid.uuid4()}" - collector = InMemoryRunCollector() - mock_ls = make_mock_ls_client(collector) - temporal_client = _make_temporal_client( - client, mock_ls, add_temporal_runs=False - ) - - # Worker starts OUTSIDE tracing_context — nexus handler tasks get clean context - async with new_worker( - temporal_client, - NexusDirectTraceableWorkflow, - nexus_service_handlers=[DirectTraceableNexusService()], - task_queue=task_queue, - max_cached_workflows=0, - ) as worker: - await env.create_nexus_endpoint( - make_nexus_endpoint_name(worker.task_queue), - worker.task_queue, - ) - # Only the client call gets tracing context, not the worker - with tracing_context(client=mock_ls, enabled=True): - handle = await temporal_client.start_workflow( - NexusDirectTraceableWorkflow.run, - id=f"nexus-direct-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - result = await handle.result() - - assert result == "response to: nexus-input" - - # @traceable runs from inside the nexus handler should be collected - # via the interceptor's tracing_context setup. - expected = [ - "nexus_direct_traceable", - " inner_llm_call", - ] - assert_trace_hierarchy(build_trace_trees(collector), expected) - - -# --------------------------------------------------------------------------- -# TestBuiltinQueryFiltering -# --------------------------------------------------------------------------- - - -@workflow.defn -class QueryFilteringWorkflow: - """Workflow with a user query and a signal to complete.""" - - def __init__(self) -> None: - self._complete = False - - @workflow.run - async def run(self) -> str: - await workflow.wait_condition(lambda: self._complete) - return "done" - - @workflow.signal - def complete(self) -> None: - self._complete = True - - @workflow.query - def my_query(self) -> str: - return "query-result" - - -class TestBuiltinQueryFiltering: - """Verifies __temporal_ prefixed queries are not traced.""" - - async def test_temporal_prefixed_query_not_traced( - self, - client: Client, - ) -> None: - """__temporal_workflow_metadata query should not produce a trace, - but user-defined queries should still be traced. - - Uses add_temporal_runs=False on the query client to suppress - client-side QueryWorkflow traces, isolating the test to - worker-side HandleQuery traces only. - """ - - task_queue = f"query-filter-{uuid.uuid4()}" - collector = InMemoryRunCollector() - mock_ls = make_mock_ls_client(collector) - - # Worker client: add_temporal_runs=True so HandleQuery traces are created - worker_client = _make_temporal_client(client, mock_ls, add_temporal_runs=True) - # Query client: add_temporal_runs=False to suppress client-side traces - query_client = _make_temporal_client(client, mock_ls, add_temporal_runs=False) - - async with new_worker( - worker_client, - QueryFilteringWorkflow, - task_queue=task_queue, - max_cached_workflows=0, - ) as worker: - handle = await query_client.start_workflow( - QueryFilteringWorkflow.run, - id=f"query-filter-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - - # Wait for workflow to start by polling the user query - assert await _poll_query( - handle, - QueryFilteringWorkflow.my_query, - expected="query-result", - ), "Workflow never started" - - collector.clear() - - # Built-in queries — should NOT be traced - await handle.query("__temporal_workflow_metadata") - - # User query — should be traced - await handle.query(QueryFilteringWorkflow.my_query) - - await handle.signal(QueryFilteringWorkflow.complete) - assert await handle.result() == "done" - - # Built-in queries should be absent; only user query and signal remain. - assert_trace_hierarchy( - build_trace_trees(collector), - [ - "HandleQuery:my_query", - "HandleSignal:complete", - ], - ) diff --git a/tests/contrib/langsmith/test_interceptor.py b/tests/contrib/langsmith/test_interceptor.py deleted file mode 100644 index 4c18c3f9f..000000000 --- a/tests/contrib/langsmith/test_interceptor.py +++ /dev/null @@ -1,1193 +0,0 @@ -"""Tests for LangSmith interceptor points and helper functions.""" - -from __future__ import annotations - -import asyncio -from concurrent.futures import ThreadPoolExecutor -from datetime import datetime, timezone -from typing import Any -from unittest.mock import AsyncMock, MagicMock, patch - -import pytest - -from temporalio.api.common.v1 import Payload -from temporalio.contrib.langsmith import LangSmithInterceptor -from temporalio.contrib.langsmith._interceptor import ( - HEADER_KEY, - _extract_context, - _inject_context, - _LangSmithWorkflowInboundInterceptor, - _maybe_run, - _ReplaySafeRunTree, -) -from temporalio.worker import HandleQueryInput - -# --------------------------------------------------------------------------- -# Helpers -# --------------------------------------------------------------------------- - -# Common patch targets (interceptor module) -_MOD = "temporalio.contrib.langsmith._interceptor" -_PATCH_RUNTREE = f"{_MOD}.RunTree" -_PATCH_IN_WORKFLOW = f"{_MOD}.temporalio.workflow.in_workflow" -_PATCH_IS_REPLAYING = f"{_MOD}.temporalio.workflow.unsafe.is_replaying_history_events" -_PATCH_WF_NOW = f"{_MOD}.temporalio.workflow.now" -_PATCH_WF_INFO = f"{_MOD}.temporalio.workflow.info" -_PATCH_TRACING_CTX = f"{_MOD}.tracing_context" -_PATCH_EXTRACT_NEXUS = f"{_MOD}._extract_nexus_context" -_PATCH_INJECT_NEXUS = f"{_MOD}._inject_nexus_context" -_PATCH_GET_CURRENT_RUN = f"{_MOD}.get_current_run_tree" - - -def _make_mock_run() -> MagicMock: - """Create a mock RunTree with working to_headers() for _inject_context.""" - mock_run = MagicMock() - mock_run.to_headers.return_value = {"langsmith-trace": "test-trace-id"} - return mock_run - - -def _mock_workflow_info(**overrides: Any) -> MagicMock: - """Create a mock workflow Info object.""" - info = MagicMock() - info.workflow_id = overrides.get("workflow_id", "test-wf-id") - info.run_id = overrides.get("run_id", "test-run-id") - info.workflow_type = overrides.get("workflow_type", "TestWorkflow") - return info - - -def _mock_activity_info(**overrides: Any) -> MagicMock: - """Create a mock activity Info object.""" - info = MagicMock() - info.workflow_id = overrides.get("workflow_id", "test-wf-id") - info.workflow_run_id = overrides.get("workflow_run_id", "test-run-id") - info.activity_id = overrides.get("activity_id", "test-activity-id") - info.activity_type = overrides.get("activity_type", "test_activity") - return info - - -def _make_executor() -> ThreadPoolExecutor: - """Create a single-worker executor for tests.""" - return ThreadPoolExecutor(max_workers=1) - - -def _get_runtree_name(MockRunTree: MagicMock) -> str: - """Extract the 'name' kwarg from RunTree constructor call.""" - MockRunTree.assert_called_once() - return MockRunTree.call_args.kwargs["name"] - - -def _get_runtree_metadata(MockRunTree: MagicMock) -> dict[str, Any]: - """Extract metadata from RunTree constructor kwargs. - - The design stores metadata in the 'extra' kwarg as {"metadata": {...}}. - """ - MockRunTree.assert_called_once() - kwargs = MockRunTree.call_args.kwargs - extra = kwargs.get("extra", {}) - if extra and "metadata" in extra: - return extra["metadata"] - # Alternatively, metadata might be passed directly - return kwargs.get("metadata", {}) - - -# =================================================================== -# TestBuiltinQueryFiltering -# =================================================================== - - -class _RecordingWorkflowInboundInterceptor: - def __init__(self) -> None: - self.queries: list[HandleQueryInput] = [] - - async def handle_query(self, input: HandleQueryInput) -> str: - self.queries.append(input) - return "forwarded" - - -class TestBuiltinQueryFiltering: - async def test_builtin_queries_bypass_tracing(self) -> None: - next_interceptor = _RecordingWorkflowInboundInterceptor() - interceptor = _LangSmithWorkflowInboundInterceptor( - next_interceptor # type: ignore[arg-type] - ) - - with patch.object(interceptor, "_workflow_maybe_run") as maybe_run: - for query in ( - "__temporal_workflow_metadata", - "__stack_trace", - "__enhanced_stack_trace", - ): - assert ( - await interceptor.handle_query( - HandleQueryInput(id="id", query=query, args=[], headers={}) - ) - == "forwarded" - ) - - assert [input.query for input in next_interceptor.queries] == [ - "__temporal_workflow_metadata", - "__stack_trace", - "__enhanced_stack_trace", - ] - maybe_run.assert_not_called() - - -# =================================================================== -# TestContextPropagation -# =================================================================== - - -class TestContextPropagation: - """Tests for _inject_context / _extract_context roundtrip.""" - - @patch(_PATCH_RUNTREE) - def test_inject_extract_roundtrip(self, MockRunTree: Any) -> None: - """Inject a mock run tree's headers, then extract. Verify roundtrip.""" - mock_run = MagicMock() - mock_run.to_headers.return_value = { - "langsmith-trace": "test-trace-id", - "parent": "abc-123", - } - - headers: dict[str, Payload] = {} - result = _inject_context(headers, mock_run) - - assert HEADER_KEY in result - - # Mock from_headers for extraction (real one needs valid LangSmith header format) - mock_extracted = MagicMock() - MockRunTree.from_headers.return_value = mock_extracted - - extracted = _extract_context(result, _make_executor(), MagicMock()) - # extracted should be a _ReplaySafeRunTree wrapping the reconstructed run - assert isinstance(extracted, _ReplaySafeRunTree) - assert extracted._run is mock_extracted - MockRunTree.from_headers.assert_called_once() - - def test_extract_missing_header(self) -> None: - """When the _temporal-langsmith-context header is absent, returns None.""" - headers: dict[str, Payload] = {} - result = _extract_context(headers, _make_executor(), MagicMock()) - assert result is None - - def test_inject_preserves_existing_headers(self) -> None: - """Injecting LangSmith context does not overwrite other existing headers.""" - mock_run = MagicMock() - mock_run.to_headers.return_value = {"langsmith-trace": "val"} - - existing_payload = Payload(data=b"existing") - headers: dict[str, Payload] = {"my-header": existing_payload} - result = _inject_context(headers, mock_run) - - assert "my-header" in result - assert result["my-header"] is existing_payload - assert HEADER_KEY in result - - -# =================================================================== -# TestReplaySafety -# =================================================================== - - -class TestReplaySafety: - """Tests for replay-safe tracing behavior.""" - - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IS_REPLAYING, return_value=True) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_replay_noop_post_end_patch( - self, _mock_in_wf: Any, _mock_replaying: Any, MockRunTree: Any - ) -> None: - """During replay, RunTree is created but post/end/patch are no-ops.""" - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - mock_client = MagicMock() - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=True, - executor=_make_executor(), - ): - pass - # RunTree IS created (wrapped in _ReplaySafeRunTree) - MockRunTree.assert_called_once() - # But post/end/patch are no-ops during replay - mock_run.post.assert_not_called() - mock_run.end.assert_not_called() - mock_run.patch.assert_not_called() - - @patch(_PATCH_WF_NOW, return_value=datetime.now(timezone.utc)) - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_create_trace_when_not_replaying( - self, _mock_in_wf: Any, _mock_replaying: Any, MockRunTree: Any, _mock_now: Any - ) -> None: - """When not replaying (but in workflow), _maybe_run creates a _ReplaySafeRunTree.""" - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - mock_client = MagicMock() - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=True, - executor=_make_executor(), - ): - pass - MockRunTree.assert_called_once() - assert MockRunTree.call_args.kwargs["name"] == "TestRun" - - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_create_trace_outside_workflow( - self, _mock_in_wf: Any, MockRunTree: Any - ) -> None: - """Outside workflow (client/activity), RunTree IS created.""" - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - mock_client = MagicMock() - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=True, - executor=_make_executor(), - ): - pass - MockRunTree.assert_called_once() - - -# =================================================================== -# TestErrorHandling -# =================================================================== - - -class TestErrorHandling: - """Tests for _maybe_run error handling.""" - - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_exception_marks_run_errored( - self, _mock_in_wf: Any, MockRunTree: Any - ) -> None: - """RuntimeError marks the run as errored and re-raises.""" - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - mock_client = MagicMock() - with pytest.raises(RuntimeError, match="boom"): - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=True, - executor=_make_executor(), - ): - raise RuntimeError("boom") - # run.end should have been called with error containing "boom" - mock_run.end.assert_called() - end_kwargs = mock_run.end.call_args.kwargs - assert end_kwargs["error"] == "RuntimeError: boom" - mock_run.patch.assert_called() - - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_benign_application_error_not_marked( - self, _mock_in_wf: Any, MockRunTree: Any - ) -> None: - """Benign ApplicationError does not mark the run as errored.""" - from temporalio.exceptions import ApplicationError, ApplicationErrorCategory - - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - mock_client = MagicMock() - with pytest.raises(ApplicationError): - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=True, - executor=_make_executor(), - ): - raise ApplicationError( - "benign", - category=ApplicationErrorCategory.BENIGN, - ) - # run.end should NOT have been called with error= - end_calls = mock_run.end.call_args_list - for c in end_calls: - assert "error" not in (c.kwargs or {}) - - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_non_benign_application_error_marked( - self, _mock_in_wf: Any, MockRunTree: Any - ) -> None: - """Non-benign ApplicationError marks the run as errored.""" - from temporalio.exceptions import ApplicationError - - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - mock_client = MagicMock() - with pytest.raises(ApplicationError): - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=True, - executor=_make_executor(), - ): - raise ApplicationError("bad", non_retryable=True) - mock_run.end.assert_called() - end_kwargs = mock_run.end.call_args.kwargs - assert end_kwargs["error"] == "ApplicationError: bad" - mock_run.patch.assert_called() - - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_success_completes_normally( - self, _mock_in_wf: Any, MockRunTree: Any - ) -> None: - """On success, run.end(outputs={"status": "ok"}) and run.patch() are called.""" - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - mock_client = MagicMock() - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=True, - executor=_make_executor(), - ): - pass - mock_run.end.assert_called_once() - end_kwargs = mock_run.end.call_args.kwargs - assert end_kwargs.get("outputs") == {"status": "ok"} - mock_run.patch.assert_called() - - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_cancelled_error_propagates_without_marking_run( - self, _mock_in_wf: Any, MockRunTree: Any - ) -> None: - """CancelledError (BaseException) propagates without marking run as errored. - - _maybe_run catches Exception only, so CancelledError bypasses error marking. - """ - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - mock_client = MagicMock() - with pytest.raises(asyncio.CancelledError): - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=True, - executor=_make_executor(), - ): - raise asyncio.CancelledError() - # run.end should NOT have been called with error= - end_calls = mock_run.end.call_args_list - for c in end_calls: - assert "error" not in (c.kwargs or {}) - - -# =================================================================== -# TestClientOutboundInterceptor -# =================================================================== - - -class TestClientOutboundInterceptor: - """Tests for _LangSmithClientOutboundInterceptor.""" - - def _make_client_interceptor( - self, *, add_temporal_runs: bool = True - ) -> tuple[Any, MagicMock]: - """Create a client outbound interceptor with a mock next.""" - config = LangSmithInterceptor( - client=MagicMock(), add_temporal_runs=add_temporal_runs - ) - mock_next = MagicMock() - mock_next.start_workflow = AsyncMock() - mock_next.query_workflow = AsyncMock() - mock_next.signal_workflow = AsyncMock() - mock_next.start_workflow_update = AsyncMock() - mock_next.start_update_with_start_workflow = AsyncMock() - interceptor = config.intercept_client(mock_next) - return interceptor, mock_next - - @pytest.mark.parametrize( - "method,input_attrs,expected_name", - [ - ( - "start_workflow", - {"workflow": "MyWorkflow", "start_signal": None}, - "StartWorkflow:MyWorkflow", - ), - ( - "start_workflow", - {"workflow": "MyWorkflow", "start_signal": "my_signal"}, - "SignalWithStartWorkflow:MyWorkflow", - ), - ("query_workflow", {"query": "get_status"}, "QueryWorkflow:get_status"), - ("signal_workflow", {"signal": "my_signal"}, "SignalWorkflow:my_signal"), - ( - "start_workflow_update", - {"update": "my_update"}, - "StartWorkflowUpdate:my_update", - ), - ], - ids=["start_workflow", "signal_with_start", "query", "signal", "update"], - ) - @pytest.mark.asyncio - @patch(_PATCH_RUNTREE) - async def test_creates_trace_and_injects_headers( - self, - MockRunTree: Any, - method: str, - input_attrs: dict[str, Any], - expected_name: str, - ) -> None: - """Each client method creates the correct trace and injects headers.""" - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - interceptor, mock_next = self._make_client_interceptor() - mock_input = MagicMock() - for k, v in input_attrs.items(): - setattr(mock_input, k, v) - mock_input.headers = {} - - with patch(_PATCH_GET_CURRENT_RUN, return_value=mock_run): - await getattr(interceptor, method)(mock_input) - - assert _get_runtree_name(MockRunTree) == expected_name - assert HEADER_KEY in mock_input.headers - getattr(mock_next, method).assert_called_once() - - @pytest.mark.asyncio - @patch(_PATCH_RUNTREE) - async def test_start_update_with_start_workflow(self, MockRunTree: Any) -> None: - """start_update_with_start_workflow injects headers into BOTH start and update inputs.""" - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - interceptor, mock_next = self._make_client_interceptor() - mock_input = MagicMock() - mock_input.start_workflow_input = MagicMock() - mock_input.start_workflow_input.workflow = "MyWorkflow" - mock_input.start_workflow_input.headers = {} - mock_input.update_workflow_input = MagicMock() - mock_input.update_workflow_input.headers = {} - - with patch(_PATCH_GET_CURRENT_RUN, return_value=mock_run): - await interceptor.start_update_with_start_workflow(mock_input) - - assert ( - _get_runtree_name(MockRunTree) == "StartUpdateWithStartWorkflow:MyWorkflow" - ) - assert HEADER_KEY in mock_input.start_workflow_input.headers - assert HEADER_KEY in mock_input.update_workflow_input.headers - mock_next.start_update_with_start_workflow.assert_called_once() - - @pytest.mark.asyncio - @patch(_PATCH_GET_CURRENT_RUN, return_value=None) - @patch(_PATCH_RUNTREE) - async def test_add_temporal_runs_false_skips_trace( - self, MockRunTree: Any, mock_get_current: Any - ) -> None: - """With add_temporal_runs=False and no ambient context, no run is created - and no headers are injected. - - _inject_current_context() is called unconditionally, but - _get_current_run_for_propagation() returns None so headers are unchanged. - """ - interceptor, mock_next = self._make_client_interceptor(add_temporal_runs=False) - mock_input = MagicMock() - mock_input.workflow = "MyWorkflow" - mock_input.start_signal = None - mock_input.headers = {} - - await interceptor.start_workflow(mock_input) - - # RunTree should NOT be created - MockRunTree.assert_not_called() - # _inject_current_context was called but found no ambient context - mock_get_current.assert_called_once() - # Headers should NOT have been modified (no ambient context) - assert HEADER_KEY not in mock_input.headers - # super() should still be called - mock_next.start_workflow.assert_called_once() - - @pytest.mark.asyncio - @patch(_PATCH_RUNTREE) - async def test_add_temporal_runs_false_with_ambient_context( - self, MockRunTree: Any - ) -> None: - """With add_temporal_runs=False but user-provided ambient context, - no run is created but the ambient context IS injected into headers. - - This verifies that context propagation works even without plugin-created - runs — if the user wraps the call in langsmith.trace(), that context - gets propagated through Temporal headers. - """ - mock_ambient_run = _make_mock_run() - interceptor, mock_next = self._make_client_interceptor(add_temporal_runs=False) - mock_input = MagicMock() - mock_input.workflow = "MyWorkflow" - mock_input.start_signal = None - mock_input.headers = {} - - with patch(_PATCH_GET_CURRENT_RUN, return_value=mock_ambient_run): - await interceptor.start_workflow(mock_input) - - # RunTree should NOT be created (no Temporal run) - MockRunTree.assert_not_called() - # But headers SHOULD be injected from the ambient context - assert HEADER_KEY in mock_input.headers - mock_next.start_workflow.assert_called_once() - - -# =================================================================== -# TestActivityInboundInterceptor -# =================================================================== - - -class TestActivityInboundInterceptor: - """Tests for _LangSmithActivityInboundInterceptor.""" - - def _make_activity_interceptor( - self, *, add_temporal_runs: bool = True - ) -> tuple[Any, MagicMock]: - config = LangSmithInterceptor( - client=MagicMock(), add_temporal_runs=add_temporal_runs - ) - mock_next = MagicMock() - mock_next.execute_activity = AsyncMock(return_value="activity_result") - interceptor = config.intercept_activity(mock_next) - return interceptor, mock_next - - @pytest.mark.asyncio - @patch(_PATCH_TRACING_CTX) - @patch(_PATCH_RUNTREE) - @patch("temporalio.activity.info") - async def test_execute_activity_creates_run_with_context_and_metadata( - self, mock_info_fn: Any, MockRunTree: Any, mock_tracing_ctx: Any - ) -> None: - """Activity execution creates a correctly named run with metadata and parent context.""" - mock_info_fn.return_value = _mock_activity_info( - activity_type="do_thing", - workflow_id="wf-123", - workflow_run_id="run-456", - activity_id="act-789", - ) - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - interceptor, mock_next = self._make_activity_interceptor() - - mock_input = MagicMock() - mock_input.headers = {} - - result = await interceptor.execute_activity(mock_input) - - # Verify trace name and run_type - assert _get_runtree_name(MockRunTree) == "RunActivity:do_thing" - assert MockRunTree.call_args.kwargs.get("run_type") == "tool" - # Verify metadata - metadata = _get_runtree_metadata(MockRunTree) - assert metadata["temporalWorkflowID"] == "wf-123" - assert metadata["temporalRunID"] == "run-456" - assert metadata["temporalActivityID"] == "act-789" - # Verify tracing_context sets parent (wrapped in _ReplaySafeRunTree) - mock_tracing_ctx.assert_called() - ctx_kwargs = mock_tracing_ctx.call_args.kwargs - parent = ctx_kwargs.get("parent") - assert isinstance(parent, _ReplaySafeRunTree) - assert parent._run is mock_run - # Verify super() called and result passed through - mock_next.execute_activity.assert_called_once() - assert result == "activity_result" - - @pytest.mark.asyncio - @patch(_PATCH_RUNTREE) - @patch("temporalio.activity.info") - async def test_execute_activity_no_header( - self, mock_info_fn: Any, MockRunTree: Any - ) -> None: - """When no LangSmith header is present, activity still executes (no parent, no crash).""" - mock_info_fn.return_value = _mock_activity_info() - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - interceptor, _mock_next = self._make_activity_interceptor() - - mock_input = MagicMock() - mock_input.headers = {} # No LangSmith header - - result = await interceptor.execute_activity(mock_input) - - # Should still create a run (just without a parent) - MockRunTree.assert_called_once() - assert MockRunTree.call_args.kwargs.get("parent_run") is None - assert result == "activity_result" - - -# =================================================================== -# TestWorkflowInboundInterceptor -# =================================================================== - - -class TestWorkflowInboundInterceptor: - """Tests for _LangSmithWorkflowInboundInterceptor.""" - - def _make_workflow_interceptors( - self, *, add_temporal_runs: bool = True - ) -> tuple[Any, MagicMock]: - """Create workflow inbound interceptor and a mock next.""" - config = LangSmithInterceptor( - client=MagicMock(), add_temporal_runs=add_temporal_runs - ) - mock_next = MagicMock() - mock_next.execute_workflow = AsyncMock(return_value="wf_result") - mock_next.handle_signal = AsyncMock() - mock_next.handle_query = AsyncMock(return_value="query_result") - mock_next.handle_update_validator = MagicMock() - mock_next.handle_update_handler = AsyncMock(return_value="update_result") - - # Get the workflow interceptor class - wf_class_input = MagicMock() - wf_interceptor_cls = config.workflow_interceptor_class(wf_class_input) - assert wf_interceptor_cls is not None - - # Instantiate with mock next - wf_interceptor = wf_interceptor_cls(mock_next) - - # Initialize with mock outbound - mock_outbound = MagicMock() - wf_interceptor.init(mock_outbound) - - return wf_interceptor, mock_next - - @pytest.mark.asyncio - @patch(_PATCH_WF_NOW, return_value=datetime.now(timezone.utc)) - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - @patch(_PATCH_WF_INFO) - async def test_execute_workflow( - self, - mock_wf_info: Any, - _mock_in_wf: Any, - _mock_replaying: Any, - MockRunTree: Any, - _mock_now: Any, - ) -> None: - """execute_workflow creates a run named RunWorkflow:{workflow_type}.""" - mock_wf_info.return_value = _mock_workflow_info(workflow_type="MyWorkflow") - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - interceptor, mock_next = self._make_workflow_interceptors() - - mock_input = MagicMock() - mock_input.headers = {} - - result = await interceptor.execute_workflow(mock_input) - - # Verify trace name - assert _get_runtree_name(MockRunTree) == "RunWorkflow:MyWorkflow" - # Verify metadata includes workflow ID and run ID - metadata = _get_runtree_metadata(MockRunTree) - assert metadata == { - "temporalWorkflowID": "test-wf-id", - "temporalRunID": "test-run-id", - } - # Verify super() called and result passed through - mock_next.execute_workflow.assert_called_once() - assert result == "wf_result" - - @pytest.mark.parametrize( - "method,input_attr,input_val,expected_name", - [ - ("handle_signal", "signal", "my_signal", "HandleSignal:my_signal"), - ("handle_query", "query", "get_status", "HandleQuery:get_status"), - ( - "handle_update_validator", - "update", - "my_update", - "ValidateUpdate:my_update", - ), - ("handle_update_handler", "update", "my_update", "HandleUpdate:my_update"), - ], - ids=["signal", "query", "validator", "update_handler"], - ) - @pytest.mark.asyncio - @patch(_PATCH_WF_NOW, return_value=datetime.now(timezone.utc)) - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - @patch(_PATCH_WF_INFO) - async def test_handler_creates_trace( - self, - mock_wf_info: Any, - _mock_in_wf: Any, - _mock_replaying: Any, - MockRunTree: Any, - _mock_now: Any, - method: str, - input_attr: str, - input_val: str, - expected_name: str, - ) -> None: - """Each workflow handler creates the correct trace name.""" - mock_wf_info.return_value = _mock_workflow_info() - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - interceptor, mock_next = self._make_workflow_interceptors() - - mock_input = MagicMock() - setattr(mock_input, input_attr, input_val) - mock_input.headers = {} - - result = getattr(interceptor, method)(mock_input) - if asyncio.iscoroutine(result): - await result - - assert _get_runtree_name(MockRunTree) == expected_name - getattr(mock_next, method).assert_called_once() - - -# =================================================================== -# TestWorkflowOutboundInterceptor -# =================================================================== - - -class TestWorkflowOutboundInterceptor: - """Tests for _LangSmithWorkflowOutboundInterceptor.""" - - def _make_outbound_interceptor( - self, *, add_temporal_runs: bool = True - ) -> tuple[Any, MagicMock, Any]: - """Create outbound interceptor with mock next and ambient run. - - Returns (outbound_interceptor, mock_next, mock_current_run). - """ - config = LangSmithInterceptor( - client=MagicMock(), add_temporal_runs=add_temporal_runs - ) - - # Create mock next for inbound - mock_inbound_next = MagicMock() - mock_inbound_next.execute_workflow = AsyncMock() - mock_inbound_next.handle_signal = AsyncMock() - mock_inbound_next.handle_query = AsyncMock() - mock_inbound_next.handle_update_validator = MagicMock() - mock_inbound_next.handle_update_handler = AsyncMock() - - # Create inbound interceptor - wf_class_input = MagicMock() - wf_interceptor_cls = config.workflow_interceptor_class(wf_class_input) - inbound = wf_interceptor_cls(mock_inbound_next) - - # Create mock outbound next - mock_outbound_next = MagicMock() - mock_outbound_next.start_activity = MagicMock() - mock_outbound_next.start_local_activity = MagicMock() - mock_outbound_next.start_child_workflow = AsyncMock() - mock_outbound_next.signal_child_workflow = AsyncMock() - mock_outbound_next.signal_external_workflow = AsyncMock() - mock_outbound_next.continue_as_new = MagicMock() - mock_outbound_next.start_nexus_operation = AsyncMock() - - # Initialize inbound (which should create the outbound) - inbound.init(mock_outbound_next) - - # Create the outbound directly for unit testing - from temporalio.contrib.langsmith._interceptor import ( - _LangSmithWorkflowOutboundInterceptor, - ) - - outbound = _LangSmithWorkflowOutboundInterceptor(mock_outbound_next, config) - - # Simulate active workflow execution via ambient context - mock_current_run = _make_mock_run() - - return outbound, mock_outbound_next, mock_current_run - - @pytest.mark.parametrize( - "method,input_attr,input_val,expected_name", - [ - ("start_activity", "activity", "do_thing", "StartActivity:do_thing"), - ( - "start_local_activity", - "activity", - "local_thing", - "StartActivity:local_thing", - ), - ( - "start_child_workflow", - "workflow", - "ChildWorkflow", - "StartChildWorkflow:ChildWorkflow", - ), - ( - "signal_child_workflow", - "signal", - "child_signal", - "SignalChildWorkflow:child_signal", - ), - ( - "signal_external_workflow", - "signal", - "ext_signal", - "SignalExternalWorkflow:ext_signal", - ), - ], - ids=[ - "activity", - "local_activity", - "child_workflow", - "signal_child", - "signal_external", - ], - ) - @pytest.mark.asyncio - @patch(_PATCH_WF_NOW, return_value=datetime.now(timezone.utc)) - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - async def test_creates_trace_and_injects_headers( - self, - _mock_in_wf: Any, - _mock_replaying: Any, - MockRunTree: Any, - _mock_now: Any, - method: str, - input_attr: str, - input_val: str, - expected_name: str, - ) -> None: - """Each outbound method creates the correct trace and injects headers.""" - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - outbound, mock_next, mock_current_run = self._make_outbound_interceptor() - - mock_input = MagicMock() - setattr(mock_input, input_attr, input_val) - mock_input.headers = {} - - with patch(_PATCH_GET_CURRENT_RUN, return_value=mock_current_run): - result = getattr(outbound, method)(mock_input) - if asyncio.iscoroutine(result): - await result - - assert _get_runtree_name(MockRunTree) == expected_name - assert HEADER_KEY in mock_input.headers - getattr(mock_next, method).assert_called_once() - - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - def test_continue_as_new( - self, _mock_in_wf: Any, _mock_replaying: Any, MockRunTree: Any - ) -> None: - """continue_as_new does NOT create a new trace, but injects context from ambient run.""" - outbound, mock_next, mock_current_run = self._make_outbound_interceptor() - - mock_input = MagicMock() - mock_input.headers = {} - - with patch(_PATCH_GET_CURRENT_RUN, return_value=mock_current_run): - outbound.continue_as_new(mock_input) - - # No new RunTree should be created for continue_as_new - MockRunTree.assert_not_called() - # But headers SHOULD be modified (context from ambient run) - assert HEADER_KEY in mock_input.headers - mock_next.continue_as_new.assert_called_once() - - @pytest.mark.asyncio - @patch(_PATCH_WF_NOW, return_value=datetime.now(timezone.utc)) - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - async def test_start_nexus_operation( - self, - _mock_in_wf: Any, - _mock_replaying: Any, - MockRunTree: Any, - _mock_now: Any, - ) -> None: - """start_nexus_operation creates a trace named StartNexusOperation:{service}/{operation}.""" - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - outbound, mock_next, mock_current_run = self._make_outbound_interceptor() - - mock_input = MagicMock() - mock_input.service = "MyService" - mock_input.operation_name = "do_op" - mock_input.headers = {} - - with patch(_PATCH_GET_CURRENT_RUN, return_value=mock_current_run): - await outbound.start_nexus_operation(mock_input) - - assert _get_runtree_name(MockRunTree) == "StartNexusOperation:MyService/do_op" - # Nexus uses string headers, so context injection uses _inject_nexus_context - # The headers dict should be modified - mock_next.start_nexus_operation.assert_called_once() - - -# =================================================================== -# TestNexusInboundInterceptor -# =================================================================== - - -class TestNexusInboundInterceptor: - """Tests for _LangSmithNexusOperationInboundInterceptor.""" - - def _make_nexus_interceptor( - self, *, add_temporal_runs: bool = True - ) -> tuple[Any, MagicMock]: - config = LangSmithInterceptor( - client=MagicMock(), add_temporal_runs=add_temporal_runs - ) - mock_next = MagicMock() - mock_next.execute_nexus_operation_start = AsyncMock() - mock_next.execute_nexus_operation_cancel = AsyncMock() - interceptor = config.intercept_nexus_operation(mock_next) - return interceptor, mock_next - - @pytest.mark.asyncio - @patch(_PATCH_RUNTREE) - @patch(_PATCH_EXTRACT_NEXUS) - async def test_execute_nexus_operation_start( - self, mock_extract_nexus: Any, MockRunTree: Any - ) -> None: - """Creates a run named RunStartNexusOperationHandler:{service}/{operation}. - - Uses _extract_nexus_context (not _extract_context) for Nexus string headers. - """ - mock_extract_nexus.return_value = None # no parent - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - interceptor, mock_next = self._make_nexus_interceptor() - - mock_input = MagicMock() - mock_input.ctx = MagicMock() - mock_input.ctx.service = "MyService" - mock_input.ctx.operation = "start_op" - mock_input.ctx.headers = {} - - await interceptor.execute_nexus_operation_start(mock_input) - - # Verify _extract_nexus_context was called (not _extract_context) - mock_extract_nexus.assert_called_once() - assert mock_extract_nexus.call_args[0][0] is mock_input.ctx.headers - # Verify trace name - assert ( - _get_runtree_name(MockRunTree) - == "RunStartNexusOperationHandler:MyService/start_op" - ) - # Verify run_type is "tool" for Nexus operations - assert MockRunTree.call_args.kwargs.get("run_type") == "tool" - mock_next.execute_nexus_operation_start.assert_called_once() - - @pytest.mark.asyncio - @patch(_PATCH_RUNTREE) - @patch(_PATCH_EXTRACT_NEXUS) - async def test_execute_nexus_operation_cancel( - self, mock_extract_nexus: Any, MockRunTree: Any - ) -> None: - """Creates a run named RunCancelNexusOperationHandler:{service}/{operation}. - - Uses _extract_nexus_context for context extraction. - """ - mock_extract_nexus.return_value = None - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - interceptor, mock_next = self._make_nexus_interceptor() - - mock_input = MagicMock() - mock_input.ctx = MagicMock() - mock_input.ctx.service = "MyService" - mock_input.ctx.operation = "cancel_op" - mock_input.ctx.headers = {} - - await interceptor.execute_nexus_operation_cancel(mock_input) - - mock_extract_nexus.assert_called_once() - assert mock_extract_nexus.call_args[0][0] is mock_input.ctx.headers - assert ( - _get_runtree_name(MockRunTree) - == "RunCancelNexusOperationHandler:MyService/cancel_op" - ) - assert MockRunTree.call_args.kwargs.get("run_type") == "tool" - mock_next.execute_nexus_operation_cancel.assert_called_once() - - -# =================================================================== -# TestLazyClientPrevention -# =================================================================== - - -class TestLazyClientPrevention: - """Tests that RunTree always receives ls_client= to prevent lazy Client creation.""" - - @patch(_PATCH_IN_WORKFLOW, return_value=False) - @patch(_PATCH_RUNTREE) - def test_runtree_always_receives_ls_client( - self, MockRunTree: Any, _mock_in_wf: Any - ) -> None: - """Every RunTree() created by _maybe_run receives ls_client= (pre-created client).""" - mock_client = MagicMock() - mock_run = _make_mock_run() - MockRunTree.return_value = mock_run - - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=True, - executor=_make_executor(), - ): - pass - - MockRunTree.assert_called_once() - call_kwargs = MockRunTree.call_args.kwargs - assert "ls_client" in call_kwargs - assert call_kwargs["ls_client"] is mock_client - - -# =================================================================== -# TestAddTemporalRunsToggle -# =================================================================== - - -class TestAddTemporalRunsToggle: - """Tests for the add_temporal_runs toggle.""" - - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IN_WORKFLOW, return_value=False) - def test_false_skips_traces(self, _mock_in_wf: Any, MockRunTree: Any) -> None: - """With add_temporal_runs=False, _maybe_run yields None (no run created). - - Callers are responsible for propagating context even when the run is None. - See test_false_still_propagates_context for the full behavior. - """ - mock_client = MagicMock() - with _maybe_run( - mock_client, - "TestRun", - add_temporal_runs=False, - executor=_make_executor(), - ) as run: - assert run is None - MockRunTree.assert_not_called() - - @pytest.mark.asyncio - @patch(_PATCH_TRACING_CTX) - @patch(_PATCH_RUNTREE) - @patch(_PATCH_IS_REPLAYING, return_value=False) - @patch(_PATCH_IN_WORKFLOW, return_value=True) - @patch(_PATCH_WF_INFO) - @patch(f"{_MOD}.temporalio.activity.info") - async def test_false_still_propagates_context( - self, - mock_act_info: Any, - mock_wf_info: Any, - _mock_in_wf: Any, - _mock_replaying: Any, - MockRunTree: Any, - mock_tracing_ctx: Any, - ) -> None: - """With add_temporal_runs=False, no runs are created but context still propagates. - - 1. Workflow outbound: injects the ambient run's context into headers even - though no StartActivity run is created. - 2. Activity inbound: sets tracing_context(parent=extracted_parent) - unconditionally (before _maybe_run), so @traceable code nests correctly - even without a RunActivity run. - """ - from temporalio.contrib.langsmith._interceptor import ( - _LangSmithWorkflowOutboundInterceptor, - ) - - mock_wf_info.return_value = _mock_workflow_info() - mock_act_info.return_value = _mock_activity_info() - - # --- Workflow outbound: context propagation without run creation --- - config = LangSmithInterceptor(client=MagicMock(), add_temporal_runs=False) - - # Create inbound interceptor - wf_class_input = MagicMock() - wf_interceptor_cls = config.workflow_interceptor_class(wf_class_input) - mock_inbound_next = MagicMock() - mock_inbound_next.execute_workflow = AsyncMock() - inbound = wf_interceptor_cls(mock_inbound_next) - - # Create outbound interceptor - mock_outbound_next = MagicMock() - mock_outbound_next.start_activity = MagicMock() - inbound.init(mock_outbound_next) - outbound = _LangSmithWorkflowOutboundInterceptor(mock_outbound_next, config) - - # Simulate an ambient parent context (as if from active workflow execution) - mock_parent = _make_mock_run() - - mock_input = MagicMock() - mock_input.activity = "do_thing" - mock_input.headers = {} - - with patch(_PATCH_GET_CURRENT_RUN, return_value=mock_parent): - outbound.start_activity(mock_input) - - # No RunTree should be created (add_temporal_runs=False) - MockRunTree.assert_not_called() - # But headers SHOULD be injected from the inbound's parent context - assert HEADER_KEY in mock_input.headers - mock_outbound_next.start_activity.assert_called_once() - - # --- Activity inbound: tracing_context with extracted parent --- - MockRunTree.reset_mock() - mock_tracing_ctx.reset_mock() - - mock_act_next = MagicMock() - mock_act_next.execute_activity = AsyncMock(return_value="result") - act_interceptor = config.intercept_activity(mock_act_next) - - mock_act_input = MagicMock() - mock_extracted_parent = _make_mock_run() - - with patch(f"{_MOD}._extract_context", return_value=mock_extracted_parent): - await act_interceptor.execute_activity(mock_act_input) - - # No RunTree should be created (add_temporal_runs=False) - MockRunTree.assert_not_called() - # tracing_context SHOULD be called with the client and extracted parent - # (unconditionally, before _maybe_run) - mock_tracing_ctx.assert_called_once_with( - client=config._client, - project_name=None, - parent=mock_extracted_parent, - ) - mock_act_next.execute_activity.assert_called_once() - - @pytest.mark.asyncio - @patch(_PATCH_TRACING_CTX) - @patch(_PATCH_RUNTREE) - @patch(f"{_MOD}.temporalio.activity.info") - async def test_false_activity_no_parent_no_context( - self, - mock_act_info: Any, - MockRunTree: Any, - mock_tracing_ctx: Any, - ) -> None: - """With add_temporal_runs=False and no parent in headers, tracing_context - is still called with the client (so @traceable can use it), but no parent. - """ - mock_act_info.return_value = _mock_activity_info() - config = LangSmithInterceptor(client=MagicMock(), add_temporal_runs=False) - - mock_act_next = MagicMock() - mock_act_next.execute_activity = AsyncMock(return_value="result") - act_interceptor = config.intercept_activity(mock_act_next) - - mock_act_input = MagicMock() - - with patch(f"{_MOD}._extract_context", return_value=None): - await act_interceptor.execute_activity(mock_act_input) - - MockRunTree.assert_not_called() - # tracing_context called with client (no parent) - mock_tracing_ctx.assert_called_once_with( - client=config._client, project_name=None, parent=None - ) - mock_act_next.execute_activity.assert_called_once() diff --git a/tests/contrib/langsmith/test_plugin.py b/tests/contrib/langsmith/test_plugin.py deleted file mode 100644 index 6e3cb2e86..000000000 --- a/tests/contrib/langsmith/test_plugin.py +++ /dev/null @@ -1,245 +0,0 @@ -"""Tests for LangSmithPlugin construction, configuration, and end-to-end usage.""" - -from __future__ import annotations - -import uuid -from typing import Any -from unittest.mock import MagicMock - -import pytest -from langsmith import traceable, tracing_context - -from temporalio.client import Client, WorkflowHandle -from temporalio.contrib.langsmith import LangSmithInterceptor, LangSmithPlugin -from temporalio.testing import WorkflowEnvironment -from tests.contrib.langsmith.conftest import ( - build_trace_trees, - find_trace_trees, -) -from tests.contrib.langsmith.test_integration import ( - ComprehensiveWorkflow, - NexusService, - TraceableActivityWorkflow, - _make_client_and_collector, - _poll_query, - nested_traceable_activity, - traceable_activity, -) -from tests.helpers import new_worker -from tests.helpers.nexus import make_nexus_endpoint_name -from tests.helpers.trace import assert_trace_hierarchy - - -class TestPluginConstruction: - """Tests for LangSmithPlugin construction.""" - - def test_construction_stores_all_config(self) -> None: - """All constructor kwargs are stored on the interceptor.""" - mock_client = MagicMock() - plugin = LangSmithPlugin( - client=mock_client, - project_name="my-project", - add_temporal_runs=False, - default_metadata={"env": "prod"}, - default_tags=["v1"], - ) - assert plugin.interceptors is not None - assert len(plugin.interceptors) > 0 - interceptor = plugin.interceptors[0] - assert isinstance(interceptor, LangSmithInterceptor) - assert interceptor._client is mock_client - assert interceptor._project_name == "my-project" - assert interceptor._add_temporal_runs is False - assert interceptor._default_metadata == {"env": "prod"} - assert interceptor._default_tags == ["v1"] - - -class TestPluginIntegration: - """End-to-end test using LangSmithPlugin as a Temporal client plugin.""" - - @pytest.mark.requires_local_server - async def test_comprehensive_plugin_trace_hierarchy( - self, client: Client, env: WorkflowEnvironment - ) -> None: - """Plugin wired to a real Temporal worker produces the full trace hierarchy. - - user_pipeline only wraps start_workflow, so poll/query/signal/update - traces are naturally separate root traces. - """ - if env.supports_time_skipping: - pytest.skip("Time-skipping server doesn't persist headers.") - - temporal_client, collector, mock_ls_client = _make_client_and_collector( - client, add_temporal_runs=True - ) - - task_queue = f"plugin-comprehensive-{uuid.uuid4()}" - workflow_id = f"plugin-comprehensive-{uuid.uuid4()}" - - @traceable(name="user_pipeline") - async def user_pipeline() -> WorkflowHandle[Any, Any]: - return await temporal_client.start_workflow( - ComprehensiveWorkflow.run, - id=workflow_id, - task_queue=task_queue, - ) - - with tracing_context(client=mock_ls_client, enabled=True): - handle = await user_pipeline() - - async with new_worker( - temporal_client, - ComprehensiveWorkflow, - TraceableActivityWorkflow, - activities=[nested_traceable_activity, traceable_activity], - nexus_service_handlers=[NexusService()], - task_queue=task_queue, - max_cached_workflows=0, - ) as worker: - await env.create_nexus_endpoint( - make_nexus_endpoint_name(worker.task_queue), - worker.task_queue, - ) - assert await _poll_query( - handle, - ComprehensiveWorkflow.is_waiting_for_signal, - expected=True, - ), "Workflow never reached signal wait point" - await handle.query(ComprehensiveWorkflow.my_query) - await handle.signal(ComprehensiveWorkflow.my_signal, "hello") - await handle.execute_update( - ComprehensiveWorkflow.my_unvalidated_update, "test" - ) - await handle.execute_update(ComprehensiveWorkflow.my_update, "finish") - result = await handle.result() - - assert result == "comprehensive-done" - - trace_trees = build_trace_trees(collector) - - # user_pipeline trace: StartWorkflow + full workflow execution tree - workflow_trace_trees = find_trace_trees(trace_trees, "user_pipeline") - assert len(workflow_trace_trees) == 1 - expected_workflow = [ - "user_pipeline", - " StartWorkflow:ComprehensiveWorkflow", - " RunWorkflow:ComprehensiveWorkflow", - " StartActivity:nested_traceable_activity", - " RunActivity:nested_traceable_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - # step-wrapped activity - " step_with_activity", - " StartActivity:nested_traceable_activity", - " RunActivity:nested_traceable_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - " StartActivity:nested_traceable_activity", - " RunActivity:nested_traceable_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - " outer_chain", - " inner_llm_call", - " StartChildWorkflow:TraceableActivityWorkflow", - " RunWorkflow:TraceableActivityWorkflow", - " StartActivity:traceable_activity", - " RunActivity:traceable_activity", - " traceable_activity", - " inner_llm_call", - # step-wrapped child workflow - " step_with_child_workflow", - " StartChildWorkflow:TraceableActivityWorkflow", - " RunWorkflow:TraceableActivityWorkflow", - " StartActivity:traceable_activity", - " RunActivity:traceable_activity", - " traceable_activity", - " inner_llm_call", - " StartNexusOperation:NexusService/run_operation", - " RunStartNexusOperationHandler:NexusService/run_operation", - " StartWorkflow:TraceableActivityWorkflow", - " RunWorkflow:TraceableActivityWorkflow", - " StartActivity:traceable_activity", - " RunActivity:traceable_activity", - " traceable_activity", - " inner_llm_call", - # step-wrapped nexus operation - " step_with_nexus", - " StartNexusOperation:NexusService/run_operation", - " RunStartNexusOperationHandler:NexusService/run_operation", - " StartWorkflow:TraceableActivityWorkflow", - " RunWorkflow:TraceableActivityWorkflow", - " StartActivity:traceable_activity", - " RunActivity:traceable_activity", - " traceable_activity", - " inner_llm_call", - # post-signal - " StartActivity:nested_traceable_activity", - " RunActivity:nested_traceable_activity", - " nested_traceable_activity", - " outer_chain", - " inner_llm_call", - ] - assert_trace_hierarchy(workflow_trace_trees, expected_workflow) - - # poll_query trace (separate root, variable number of iterations) - poll_trace_trees = find_trace_trees(trace_trees, "poll_query") - assert len(poll_trace_trees) == 1 - poll = poll_trace_trees[0] - assert poll.name == "poll_query" - poll_children = poll.children - for poll_child in poll_children: - assert poll_child.name == "QueryWorkflow:is_waiting_for_signal" - assert [child.name for child in poll_child.children] == [ - "HandleQuery:is_waiting_for_signal" - ] - assert not poll_child.children[0].children - - # Each remaining operation is its own root trace - query_trace_trees = find_trace_trees(trace_trees, "QueryWorkflow:my_query") - assert len(query_trace_trees) == 1 - assert_trace_hierarchy( - query_trace_trees, - [ - "QueryWorkflow:my_query", - " HandleQuery:my_query", - ], - ) - - signal_trace_trees = find_trace_trees(trace_trees, "SignalWorkflow:my_signal") - assert len(signal_trace_trees) == 1 - assert_trace_hierarchy( - signal_trace_trees, - [ - "SignalWorkflow:my_signal", - " HandleSignal:my_signal", - ], - ) - - update_trace_trees = find_trace_trees( - trace_trees, "StartWorkflowUpdate:my_update" - ) - assert len(update_trace_trees) == 1 - assert_trace_hierarchy( - update_trace_trees, - [ - "StartWorkflowUpdate:my_update", - " ValidateUpdate:my_update", - " HandleUpdate:my_update", - ], - ) - - # Update without a validator — no ValidateUpdate trace - unvalidated_trace_trees = find_trace_trees( - trace_trees, "StartWorkflowUpdate:my_unvalidated_update" - ) - assert len(unvalidated_trace_trees) == 1 - assert_trace_hierarchy( - unvalidated_trace_trees, - [ - "StartWorkflowUpdate:my_unvalidated_update", - " HandleUpdate:my_unvalidated_update", - ], - ) diff --git a/tests/contrib/langsmith/test_tracing_env_override.py b/tests/contrib/langsmith/test_tracing_env_override.py deleted file mode 100644 index c8aaa2fb0..000000000 --- a/tests/contrib/langsmith/test_tracing_env_override.py +++ /dev/null @@ -1,244 +0,0 @@ -"""Tests that LangSmithPlugin defers to ``langsmith.utils.tracing_is_enabled()``. - -Tracing requires the env to explicitly say so (``LANGSMITH_TRACING=true`` etc); -it is off when the env is unset or set to ``false``. Tests verify that -``LANGSMITH_TRACING=false`` produces zero runs and ``LANGSMITH_TRACING=true`` -produces runs. -""" - -from __future__ import annotations - -import uuid -from datetime import timedelta - -import pytest -from langsmith import traceable - -from temporalio import activity, workflow -from temporalio.client import Client -from temporalio.testing import WorkflowEnvironment -from tests.contrib.langsmith.test_integration import ( - DirectTraceableNexusService, - NexusDirectTraceableWorkflow, - _make_client_and_collector, -) -from tests.helpers import new_worker -from tests.helpers.nexus import make_nexus_endpoint_name - -# --------------------------------------------------------------------------- -# Sample workflow / activity -# --------------------------------------------------------------------------- - - -@traceable(name="inner_call") -async def _inner_call(prompt: str) -> str: - return f"response to: {prompt}" - - -@traceable -@activity.defn -async def env_override_activity() -> str: - result = await _inner_call("hello") - return result - - -@workflow.defn -class EnvOverrideWorkflow: - @workflow.run - async def run(self) -> str: - return await workflow.execute_activity( - env_override_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - - -# --------------------------------------------------------------------------- -# Tests -# --------------------------------------------------------------------------- - - -class TestTracingEnvOverride: - """LangSmithPlugin must respect LANGSMITH_TRACING=false.""" - - async def test_no_runs_when_tracing_disabled_with_temporal_runs( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - monkeypatch: pytest.MonkeyPatch, - ) -> None: - """With LANGSMITH_TRACING=false and add_temporal_runs=True, no runs.""" - monkeypatch.setenv("LANGSMITH_TRACING", "false") - monkeypatch.delenv("LANGCHAIN_TRACING_V2", raising=False) - - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - async with new_worker( - temporal_client, - EnvOverrideWorkflow, - activities=[env_override_activity], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - EnvOverrideWorkflow.run, - id=f"env-override-temporal-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - result = await handle.result() - - assert result == "response to: hello" - assert len(collector.runs) == 0, ( - f"Expected zero LangSmith runs when LANGSMITH_TRACING=false, " - f"but got {len(collector.runs)}: " - f"{[r.name for r in collector.runs]}" - ) - - async def test_no_runs_when_tracing_disabled_without_temporal_runs( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - monkeypatch: pytest.MonkeyPatch, - ) -> None: - """With LANGSMITH_TRACING=false and add_temporal_runs=False, no runs.""" - monkeypatch.setenv("LANGSMITH_TRACING", "false") - monkeypatch.delenv("LANGCHAIN_TRACING_V2", raising=False) - - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=False - ) - - async with new_worker( - temporal_client, - EnvOverrideWorkflow, - activities=[env_override_activity], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - EnvOverrideWorkflow.run, - id=f"env-override-no-temporal-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - result = await handle.result() - - assert result == "response to: hello" - assert len(collector.runs) == 0, ( - f"Expected zero LangSmith runs when LANGSMITH_TRACING=false, " - f"but got {len(collector.runs)}: " - f"{[r.name for r in collector.runs]}" - ) - - async def test_no_runs_when_langchain_tracing_v2_disabled( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - monkeypatch: pytest.MonkeyPatch, - ) -> None: - """LANGCHAIN_TRACING_V2=false also suppresses runs (legacy env var).""" - monkeypatch.setenv("LANGCHAIN_TRACING_V2", "false") - monkeypatch.delenv("LANGSMITH_TRACING", raising=False) - - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - async with new_worker( - temporal_client, - EnvOverrideWorkflow, - activities=[env_override_activity], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - EnvOverrideWorkflow.run, - id=f"env-override-v2-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - result = await handle.result() - - assert result == "response to: hello" - assert len(collector.runs) == 0, ( - f"Expected zero LangSmith runs when LANGCHAIN_TRACING_V2=false, " - f"but got {len(collector.runs)}: " - f"{[r.name for r in collector.runs]}" - ) - - @pytest.mark.requires_local_server - async def test_no_runs_when_tracing_disabled_for_nexus_start( - self, - client: Client, - env: WorkflowEnvironment, - monkeypatch: pytest.MonkeyPatch, - ) -> None: - """With LANGSMITH_TRACING=false, nexus start handler emits no runs.""" - if env.supports_time_skipping: - pytest.skip("Time-skipping server doesn't persist headers.") - - monkeypatch.setenv("LANGSMITH_TRACING", "false") - monkeypatch.delenv("LANGCHAIN_TRACING_V2", raising=False) - - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - task_queue = f"env-override-nexus-{uuid.uuid4()}" - async with new_worker( - temporal_client, - NexusDirectTraceableWorkflow, - nexus_service_handlers=[DirectTraceableNexusService()], - task_queue=task_queue, - max_cached_workflows=0, - ) as worker: - await env.create_nexus_endpoint( - make_nexus_endpoint_name(worker.task_queue), - worker.task_queue, - ) - handle = await temporal_client.start_workflow( - NexusDirectTraceableWorkflow.run, - id=f"env-override-nexus-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - result = await handle.result() - - assert result == "response to: nexus-input" - assert len(collector.runs) == 0, ( - f"Expected zero LangSmith runs when LANGSMITH_TRACING=false " - f"(nexus start path), but got {len(collector.runs)}: " - f"{[r.name for r in collector.runs]}" - ) - - # NOTE: test_no_runs_when_tracing_disabled_for_nexus_cancel is not - # included — cancelling an in-flight nexus operation requires non-trivial - # orchestration (long-running handler + external cancel signal). Flagged - # for a follow-up ticket. - - async def test_runs_emitted_when_tracing_enabled( - self, - client: Client, - env: WorkflowEnvironment, # type:ignore[reportUnusedParameter] - monkeypatch: pytest.MonkeyPatch, - ) -> None: - """Positive control: with LANGSMITH_TRACING=true, runs ARE emitted.""" - monkeypatch.setenv("LANGSMITH_TRACING", "true") - monkeypatch.delenv("LANGCHAIN_TRACING_V2", raising=False) - - temporal_client, collector, _ = _make_client_and_collector( - client, add_temporal_runs=True - ) - - async with new_worker( - temporal_client, - EnvOverrideWorkflow, - activities=[env_override_activity], - max_cached_workflows=0, - ) as worker: - handle = await temporal_client.start_workflow( - EnvOverrideWorkflow.run, - id=f"env-enabled-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - result = await handle.result() - - assert result == "response to: hello" - assert len(collector.runs) > 0, ( - "Expected LangSmith runs when LANGSMITH_TRACING=true, but got none" - ) diff --git a/tests/contrib/openai_agents/histories/agents-as-tools-workflow-history.json b/tests/contrib/openai_agents/histories/agents-as-tools-workflow-history.json deleted file mode 100644 index 21090cbdd..000000000 --- a/tests/contrib/openai_agents/histories/agents-as-tools-workflow-history.json +++ /dev/null @@ -1,651 +0,0 @@ -{ - "events": [ - { - "eventId": "1", - "eventTime": "2025-06-30T16:04:02.623610Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", - "taskId": "1056429", - "workflowExecutionStartedEventAttributes": { - "workflowType": { - "name": "AgentsAsToolsWorkflow" - }, - "taskQueue": { - "name": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlRyYW5zbGF0ZSB0byBTcGFuaXNoOiAnSSBhbSBmdWxsJyI=" - } - ] - }, - "workflowExecutionTimeout": "30s", - "workflowRunTimeout": "30s", - "workflowTaskTimeout": "10s", - "originalExecutionRunId": "0197c194-c7bf-794e-a2e3-1486d80ca4bb", - "identity": "16872@Tims-MacBook-Pro.local", - "firstExecutionRunId": "0197c194-c7bf-794e-a2e3-1486d80ca4bb", - "attempt": 1, - "workflowExecutionExpirationTime": "2025-06-30T16:04:32.623Z", - "firstWorkflowTaskBackoff": "0s", - "workflowId": "agents-as-tools-workflow-5595c716-c9ec-4aa9-8cec-c1b995bdca50" - } - }, - { - "eventId": "2", - "eventTime": "2025-06-30T16:04:02.623655Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056430", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "3", - "eventTime": "2025-06-30T16:04:02.625165Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056436", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "2", - "identity": "16872@Tims-MacBook-Pro.local", - "requestId": "57afdb83-3d04-4219-93d5-1390ccbc78e9", - "historySizeBytes": "438", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "4", - "eventTime": "2025-06-30T16:04:02.666927Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056440", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "2", - "startedEventId": "3", - "identity": "16872@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": { - "coreUsedFlags": [ - 3, - 2, - 1 - ], - "sdkName": "temporal-python", - "sdkVersion": "1.13.0" - }, - "meteringMetadata": {} - } - }, - { - "eventId": "5", - "eventTime": "2025-06-30T16:04:02.666956Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056441", - "activityTaskScheduledEventAttributes": { - "activityId": "1", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJPcmNoZXN0cmF0b3IgZXZhbHVhdG9yIiwic3BhbklkIjoic3Bhbl85N2RkOTkxZDczZDQ0MTY3ODliODMxODAiLCJ0cmFjZUlkIjoidHJhY2VfN2ZjMzk4YmZiZGYzNDhmMDg0YTYzZDRkNjI0OGUwNDUifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHRyYW5zbGF0aW9uIGFnZW50LiBZb3UgdXNlIHRoZSB0b29scyBnaXZlbiB0byB5b3UgdG8gdHJhbnNsYXRlLklmIGFza2VkIGZvciBtdWx0aXBsZSB0cmFuc2xhdGlvbnMsIHlvdSBjYWxsIHRoZSByZWxldmFudCB0b29scyBpbiBvcmRlci5Zb3UgbmV2ZXIgdHJhbnNsYXRlIG9uIHlvdXIgb3duLCB5b3UgYWx3YXlzIHVzZSB0aGUgcHJvdmlkZWQgdG9vbHMuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJUcmFuc2xhdGUgdG8gU3BhbmlzaDogJ0kgYW0gZnVsbCciLCJyb2xlIjoidXNlciJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOm51bGwsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbeyJuYW1lIjoidHJhbnNsYXRlX3RvX3NwYW5pc2giLCJkZXNjcmlwdGlvbiI6IlRyYW5zbGF0ZSB0aGUgdXNlcidzIG1lc3NhZ2UgdG8gU3BhbmlzaCIsInBhcmFtc19qc29uX3NjaGVtYSI6eyJwcm9wZXJ0aWVzIjp7ImlucHV0Ijp7InRpdGxlIjoiSW5wdXQiLCJ0eXBlIjoic3RyaW5nIn19LCJyZXF1aXJlZCI6WyJpbnB1dCJdLCJ0aXRsZSI6InRyYW5zbGF0ZV90b19zcGFuaXNoX2FyZ3MiLCJ0eXBlIjoib2JqZWN0IiwiYWRkaXRpb25hbFByb3BlcnRpZXMiOmZhbHNlfSwic3RyaWN0X2pzb25fc2NoZW1hIjp0cnVlfSx7Im5hbWUiOiJ0cmFuc2xhdGVfdG9fZnJlbmNoIiwiZGVzY3JpcHRpb24iOiJUcmFuc2xhdGUgdGhlIHVzZXIncyBtZXNzYWdlIHRvIEZyZW5jaCIsInBhcmFtc19qc29uX3NjaGVtYSI6eyJwcm9wZXJ0aWVzIjp7ImlucHV0Ijp7InRpdGxlIjoiSW5wdXQiLCJ0eXBlIjoic3RyaW5nIn19LCJyZXF1aXJlZCI6WyJpbnB1dCJdLCJ0aXRsZSI6InRyYW5zbGF0ZV90b19mcmVuY2hfYXJncyIsInR5cGUiOiJvYmplY3QiLCJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2V9LCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9LHsibmFtZSI6InRyYW5zbGF0ZV90b19pdGFsaWFuIiwiZGVzY3JpcHRpb24iOiJUcmFuc2xhdGUgdGhlIHVzZXIncyBtZXNzYWdlIHRvIEl0YWxpYW4iLCJwYXJhbXNfanNvbl9zY2hlbWEiOnsicHJvcGVydGllcyI6eyJpbnB1dCI6eyJ0aXRsZSI6IklucHV0IiwidHlwZSI6InN0cmluZyJ9fSwicmVxdWlyZWQiOlsiaW5wdXQiXSwidGl0bGUiOiJ0cmFuc2xhdGVfdG9faXRhbGlhbl9hcmdzIiwidHlwZSI6Im9iamVjdCIsImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpmYWxzZX0sInN0cmljdF9qc29uX3NjaGVtYSI6dHJ1ZX1dLCJvdXRwdXRfc2NoZW1hIjpudWxsLCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "4", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlRyYW5zbGF0ZSB0byBTcGFuaXNoOiAnSSBhbSBmdWxsJyI=" - } - } - }, - { - "eventId": "6", - "eventTime": "2025-06-30T16:04:02.667697Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056447", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "5", - "identity": "16872@Tims-MacBook-Pro.local", - "requestId": "a4e24baa-fc8b-4b3d-90bf-55a08e7d3680", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "7", - "eventTime": "2025-06-30T16:04:02.686423Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056448", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImFyZ3VtZW50cyI6IntcImlucHV0XCI6XCJJIGFtIGZ1bGxcIn0iLCJjYWxsX2lkIjoiY2FsbCIsIm5hbWUiOiJ0cmFuc2xhdGVfdG9fc3BhbmlzaCIsInR5cGUiOiJmdW5jdGlvbl9jYWxsIiwiaWQiOiJpZCIsInN0YXR1cyI6ImNvbXBsZXRlZCJ9XSwidXNhZ2UiOnsicmVxdWVzdHMiOjAsImlucHV0X3Rva2VucyI6MCwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjAsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjowfSwicmVzcG9uc2VfaWQiOm51bGx9" - } - ] - }, - "scheduledEventId": "5", - "startedEventId": "6", - "identity": "16872@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "8", - "eventTime": "2025-06-30T16:04:02.686427Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056449", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16872@Tims-MacBook-Pro.local-547b7584bee9475f87bc46161a6291a5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "9", - "eventTime": "2025-06-30T16:04:02.687098Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056453", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "8", - "identity": "16872@Tims-MacBook-Pro.local", - "requestId": "3709df1d-7d2a-4929-af1c-1ab8d2074b00", - "historySizeBytes": "3467", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "10", - "eventTime": "2025-06-30T16:04:02.718095Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056457", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "8", - "startedEventId": "9", - "identity": "16872@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "11", - "eventTime": "2025-06-30T16:04:02.718115Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056458", - "activityTaskScheduledEventAttributes": { - "activityId": "2", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJPcmNoZXN0cmF0b3IgZXZhbHVhdG9yIiwic3BhbklkIjoic3Bhbl81ZTUwYjU3ODU2ZWI0NWY4Yjk4MDI4N2QiLCJ0cmFjZUlkIjoidHJhY2VfN2ZjMzk4YmZiZGYzNDhmMDg0YTYzZDRkNjI0OGUwNDUifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IHRyYW5zbGF0ZSB0aGUgdXNlcidzIG1lc3NhZ2UgdG8gU3BhbmlzaCIsImlucHV0IjpbeyJjb250ZW50IjoiSSBhbSBmdWxsIiwicm9sZSI6InVzZXIifV0sIm1vZGVsX3NldHRpbmdzIjp7InRlbXBlcmF0dXJlIjpudWxsLCJ0b3BfcCI6bnVsbCwiZnJlcXVlbmN5X3BlbmFsdHkiOm51bGwsInByZXNlbmNlX3BlbmFsdHkiOm51bGwsInRvb2xfY2hvaWNlIjpudWxsLCJwYXJhbGxlbF90b29sX2NhbGxzIjpudWxsLCJ0cnVuY2F0aW9uIjpudWxsLCJtYXhfdG9rZW5zIjpudWxsLCJyZWFzb25pbmciOm51bGwsIm1ldGFkYXRhIjpudWxsLCJzdG9yZSI6bnVsbCwiaW5jbHVkZV91c2FnZSI6bnVsbCwiZXh0cmFfcXVlcnkiOm51bGwsImV4dHJhX2JvZHkiOm51bGwsImV4dHJhX2hlYWRlcnMiOm51bGwsImV4dHJhX2FyZ3MiOm51bGx9LCJ0b29scyI6W10sIm91dHB1dF9zY2hlbWEiOm51bGwsImhhbmRvZmZzIjpbXSwidHJhY2luZyI6MSwicHJldmlvdXNfcmVzcG9uc2VfaWQiOm51bGwsInByb21wdCI6bnVsbH0=" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IkkgYW0gZnVsbCI=" - } - } - }, - { - "eventId": "12", - "eventTime": "2025-06-30T16:04:02.718843Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056463", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "11", - "identity": "16872@Tims-MacBook-Pro.local", - "requestId": "988daf7d-b4fa-44cb-868f-e2f5e7663f37", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "13", - "eventTime": "2025-06-30T16:04:02.732675Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056464", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoiIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiRXN0b3kgbGxlbm8uIiwidHlwZSI6Im91dHB1dF90ZXh0In1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjowLCJpbnB1dF90b2tlbnMiOjAsImlucHV0X3Rva2Vuc19kZXRhaWxzIjp7ImNhY2hlZF90b2tlbnMiOjB9LCJvdXRwdXRfdG9rZW5zIjowLCJvdXRwdXRfdG9rZW5zX2RldGFpbHMiOnsicmVhc29uaW5nX3Rva2VucyI6MH0sInRvdGFsX3Rva2VucyI6MH0sInJlc3BvbnNlX2lkIjpudWxsfQ==" - } - ] - }, - "scheduledEventId": "11", - "startedEventId": "12", - "identity": "16872@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "14", - "eventTime": "2025-06-30T16:04:02.732678Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056465", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16872@Tims-MacBook-Pro.local-547b7584bee9475f87bc46161a6291a5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "15", - "eventTime": "2025-06-30T16:04:02.733464Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056469", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "14", - "identity": "16872@Tims-MacBook-Pro.local", - "requestId": "26e50494-c82f-4c88-a9a1-aa77bddcb994", - "historySizeBytes": "5361", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "16", - "eventTime": "2025-06-30T16:04:02.738255Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056473", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "14", - "startedEventId": "15", - "identity": "16872@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "17", - "eventTime": "2025-06-30T16:04:02.738276Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056474", - "activityTaskScheduledEventAttributes": { - "activityId": "3", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJPcmNoZXN0cmF0b3IgZXZhbHVhdG9yIiwic3BhbklkIjoic3Bhbl9mYWFjMGZkM2Y2ZTE0OTEwOWNkNTBiMjMiLCJ0cmFjZUlkIjoidHJhY2VfN2ZjMzk4YmZiZGYzNDhmMDg0YTYzZDRkNjI0OGUwNDUifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHRyYW5zbGF0aW9uIGFnZW50LiBZb3UgdXNlIHRoZSB0b29scyBnaXZlbiB0byB5b3UgdG8gdHJhbnNsYXRlLklmIGFza2VkIGZvciBtdWx0aXBsZSB0cmFuc2xhdGlvbnMsIHlvdSBjYWxsIHRoZSByZWxldmFudCB0b29scyBpbiBvcmRlci5Zb3UgbmV2ZXIgdHJhbnNsYXRlIG9uIHlvdXIgb3duLCB5b3UgYWx3YXlzIHVzZSB0aGUgcHJvdmlkZWQgdG9vbHMuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJUcmFuc2xhdGUgdG8gU3BhbmlzaDogJ0kgYW0gZnVsbCciLCJyb2xlIjoidXNlciJ9LHsiYXJndW1lbnRzIjoie1wiaW5wdXRcIjpcIkkgYW0gZnVsbFwifSIsImNhbGxfaWQiOiJjYWxsIiwibmFtZSI6InRyYW5zbGF0ZV90b19zcGFuaXNoIiwidHlwZSI6ImZ1bmN0aW9uX2NhbGwiLCJpZCI6ImlkIiwic3RhdHVzIjoiY29tcGxldGVkIn0seyJjYWxsX2lkIjoiY2FsbCIsIm91dHB1dCI6IkVzdG95IGxsZW5vLiIsInR5cGUiOiJmdW5jdGlvbl9jYWxsX291dHB1dCJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOm51bGwsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbeyJuYW1lIjoidHJhbnNsYXRlX3RvX3NwYW5pc2giLCJkZXNjcmlwdGlvbiI6IlRyYW5zbGF0ZSB0aGUgdXNlcidzIG1lc3NhZ2UgdG8gU3BhbmlzaCIsInBhcmFtc19qc29uX3NjaGVtYSI6eyJwcm9wZXJ0aWVzIjp7ImlucHV0Ijp7InRpdGxlIjoiSW5wdXQiLCJ0eXBlIjoic3RyaW5nIn19LCJyZXF1aXJlZCI6WyJpbnB1dCJdLCJ0aXRsZSI6InRyYW5zbGF0ZV90b19zcGFuaXNoX2FyZ3MiLCJ0eXBlIjoib2JqZWN0IiwiYWRkaXRpb25hbFByb3BlcnRpZXMiOmZhbHNlfSwic3RyaWN0X2pzb25fc2NoZW1hIjp0cnVlfSx7Im5hbWUiOiJ0cmFuc2xhdGVfdG9fZnJlbmNoIiwiZGVzY3JpcHRpb24iOiJUcmFuc2xhdGUgdGhlIHVzZXIncyBtZXNzYWdlIHRvIEZyZW5jaCIsInBhcmFtc19qc29uX3NjaGVtYSI6eyJwcm9wZXJ0aWVzIjp7ImlucHV0Ijp7InRpdGxlIjoiSW5wdXQiLCJ0eXBlIjoic3RyaW5nIn19LCJyZXF1aXJlZCI6WyJpbnB1dCJdLCJ0aXRsZSI6InRyYW5zbGF0ZV90b19mcmVuY2hfYXJncyIsInR5cGUiOiJvYmplY3QiLCJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2V9LCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9LHsibmFtZSI6InRyYW5zbGF0ZV90b19pdGFsaWFuIiwiZGVzY3JpcHRpb24iOiJUcmFuc2xhdGUgdGhlIHVzZXIncyBtZXNzYWdlIHRvIEl0YWxpYW4iLCJwYXJhbXNfanNvbl9zY2hlbWEiOnsicHJvcGVydGllcyI6eyJpbnB1dCI6eyJ0aXRsZSI6IklucHV0IiwidHlwZSI6InN0cmluZyJ9fSwicmVxdWlyZWQiOlsiaW5wdXQiXSwidGl0bGUiOiJ0cmFuc2xhdGVfdG9faXRhbGlhbl9hcmdzIiwidHlwZSI6Im9iamVjdCIsImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpmYWxzZX0sInN0cmljdF9qc29uX3NjaGVtYSI6dHJ1ZX1dLCJvdXRwdXRfc2NoZW1hIjpudWxsLCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "16", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - } - }, - { - "eventId": "18", - "eventTime": "2025-06-30T16:04:02.739011Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056479", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "17", - "identity": "16872@Tims-MacBook-Pro.local", - "requestId": "dd454850-7b41-4ea2-aa03-88eb1995aa5a", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "19", - "eventTime": "2025-06-30T16:04:02.743068Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056480", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoiIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiVGhlIHRyYW5zbGF0aW9uIHRvIFNwYW5pc2ggaXM6IFwiRXN0b3kgbGxlbm8uXCIiLCJ0eXBlIjoib3V0cHV0X3RleHQifV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9XSwidXNhZ2UiOnsicmVxdWVzdHMiOjAsImlucHV0X3Rva2VucyI6MCwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjAsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjowfSwicmVzcG9uc2VfaWQiOm51bGx9" - } - ] - }, - "scheduledEventId": "17", - "startedEventId": "18", - "identity": "16872@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "20", - "eventTime": "2025-06-30T16:04:02.743071Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056481", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16872@Tims-MacBook-Pro.local-547b7584bee9475f87bc46161a6291a5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "21", - "eventTime": "2025-06-30T16:04:02.743631Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056485", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "20", - "identity": "16872@Tims-MacBook-Pro.local", - "requestId": "3d42b98e-c61a-463b-ad9c-4ae65de03d86", - "historySizeBytes": "8542", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "22", - "eventTime": "2025-06-30T16:04:02.748200Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056489", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "20", - "startedEventId": "21", - "identity": "16872@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "23", - "eventTime": "2025-06-30T16:04:02.748225Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056490", - "activityTaskScheduledEventAttributes": { - "activityId": "4", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJPcmNoZXN0cmF0b3IgZXZhbHVhdG9yIiwic3BhbklkIjoic3Bhbl85MDVlNTdkZGNjYTU0NDhmYTFkYTE1NzkiLCJ0cmFjZUlkIjoidHJhY2VfN2ZjMzk4YmZiZGYzNDhmMDg0YTYzZDRkNjI0OGUwNDUifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGluc3BlY3QgdHJhbnNsYXRpb25zLCBjb3JyZWN0IHRoZW0gaWYgbmVlZGVkLCBhbmQgcHJvZHVjZSBhIGZpbmFsIGNvbmNhdGVuYXRlZCByZXNwb25zZS4iLCJpbnB1dCI6W3siY29udGVudCI6IlRyYW5zbGF0ZSB0byBTcGFuaXNoOiAnSSBhbSBmdWxsJyIsInJvbGUiOiJ1c2VyIn0seyJhcmd1bWVudHMiOiJ7XCJpbnB1dFwiOlwiSSBhbSBmdWxsXCJ9IiwiY2FsbF9pZCI6ImNhbGwiLCJuYW1lIjoidHJhbnNsYXRlX3RvX3NwYW5pc2giLCJ0eXBlIjoiZnVuY3Rpb25fY2FsbCIsImlkIjoiaWQiLCJzdGF0dXMiOiJjb21wbGV0ZWQifSx7ImNhbGxfaWQiOiJjYWxsIiwib3V0cHV0IjoiRXN0b3kgbGxlbm8uIiwidHlwZSI6ImZ1bmN0aW9uX2NhbGxfb3V0cHV0In0seyJpZCI6IiIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IlRoZSB0cmFuc2xhdGlvbiB0byBTcGFuaXNoIGlzOiBcIkVzdG95IGxsZW5vLlwiIiwidHlwZSI6Im91dHB1dF90ZXh0In1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sIm1vZGVsX3NldHRpbmdzIjp7InRlbXBlcmF0dXJlIjpudWxsLCJ0b3BfcCI6bnVsbCwiZnJlcXVlbmN5X3BlbmFsdHkiOm51bGwsInByZXNlbmNlX3BlbmFsdHkiOm51bGwsInRvb2xfY2hvaWNlIjpudWxsLCJwYXJhbGxlbF90b29sX2NhbGxzIjpudWxsLCJ0cnVuY2F0aW9uIjpudWxsLCJtYXhfdG9rZW5zIjpudWxsLCJyZWFzb25pbmciOm51bGwsIm1ldGFkYXRhIjpudWxsLCJzdG9yZSI6bnVsbCwiaW5jbHVkZV91c2FnZSI6bnVsbCwiZXh0cmFfcXVlcnkiOm51bGwsImV4dHJhX2JvZHkiOm51bGwsImV4dHJhX2hlYWRlcnMiOm51bGwsImV4dHJhX2FyZ3MiOm51bGx9LCJ0b29scyI6W10sIm91dHB1dF9zY2hlbWEiOm51bGwsImhhbmRvZmZzIjpbXSwidHJhY2luZyI6MSwicHJldmlvdXNfcmVzcG9uc2VfaWQiOm51bGwsInByb21wdCI6bnVsbH0=" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "22", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiVGhlIHRyYW5zbGF0aW9uIHRvIFNwYW5pc2ggaXM6IFwiRXN0b3kgbGxlbm8uXCIiLCJ0eXBlIjoib3V0cHV0X3RleHQifV0=" - } - } - }, - { - "eventId": "24", - "eventTime": "2025-06-30T16:04:02.748848Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056495", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "23", - "identity": "16872@Tims-MacBook-Pro.local", - "requestId": "6bc19064-47e9-404a-a461-180920e82f88", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "25", - "eventTime": "2025-06-30T16:04:02.753447Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056496", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoiIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiVGhlIHRyYW5zbGF0aW9uIHRvIFNwYW5pc2ggaXM6IFwiRXN0b3kgbGxlbm8uXCIiLCJ0eXBlIjoib3V0cHV0X3RleHQifV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9XSwidXNhZ2UiOnsicmVxdWVzdHMiOjAsImlucHV0X3Rva2VucyI6MCwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjAsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjowfSwicmVzcG9uc2VfaWQiOm51bGx9" - } - ] - }, - "scheduledEventId": "23", - "startedEventId": "24", - "identity": "16872@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "26", - "eventTime": "2025-06-30T16:04:02.753450Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056497", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16872@Tims-MacBook-Pro.local-547b7584bee9475f87bc46161a6291a5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "1e8fa3c8-41b4-4ea7-907b-63088b63e36f" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "27", - "eventTime": "2025-06-30T16:04:02.754059Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056501", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "26", - "identity": "16872@Tims-MacBook-Pro.local", - "requestId": "cbfd4087-6e86-498e-b451-5c26e2548334", - "historySizeBytes": "11023", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "28", - "eventTime": "2025-06-30T16:04:02.758051Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056505", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "26", - "startedEventId": "27", - "identity": "16872@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "29", - "eventTime": "2025-06-30T16:04:02.758068Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", - "taskId": "1056506", - "workflowExecutionCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlRoZSB0cmFuc2xhdGlvbiB0byBTcGFuaXNoIGlzOiBcIkVzdG95IGxsZW5vLlwiIg==" - } - ] - }, - "workflowTaskCompletedEventId": "28" - } - } - ] -} \ No newline at end of file diff --git a/tests/contrib/openai_agents/histories/customer-service-workflow-history.json b/tests/contrib/openai_agents/histories/customer-service-workflow-history.json deleted file mode 100644 index d5c878c4b..000000000 --- a/tests/contrib/openai_agents/histories/customer-service-workflow-history.json +++ /dev/null @@ -1,1356 +0,0 @@ -{ - "events": [ - { - "eventId": "1", - "eventTime": "2025-06-30T16:05:23.897631Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", - "taskId": "1056511", - "workflowExecutionStartedEventAttributes": { - "workflowType": { - "name": "CustomerServiceWorkflow" - }, - "taskQueue": { - "name": "be82986c-9ddc-441b-9833-c3fce7c79df1", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "workflowExecutionTimeout": "30s", - "workflowRunTimeout": "30s", - "workflowTaskTimeout": "10s", - "originalExecutionRunId": "0197c196-0539-799c-8a5d-af7f3d1b59e2", - "identity": "16915@Tims-MacBook-Pro.local", - "firstExecutionRunId": "0197c196-0539-799c-8a5d-af7f3d1b59e2", - "attempt": 1, - "workflowExecutionExpirationTime": "2025-06-30T16:05:53.897Z", - "firstWorkflowTaskBackoff": "0s", - "workflowId": "customer-service-d7028390-930d-4478-b69f-185af000bb17" - } - }, - { - "eventId": "2", - "eventTime": "2025-06-30T16:05:23.897679Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056512", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "be82986c-9ddc-441b-9833-c3fce7c79df1", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "3", - "eventTime": "2025-06-30T16:05:23.898564Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056518", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "2", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "d4bd65f3-93f8-46cb-bf44-e7f2a750e7e4", - "historySizeBytes": "367", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "4", - "eventTime": "2025-06-30T16:05:23.935560Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056522", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "2", - "startedEventId": "3", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": { - "coreUsedFlags": [ - 1, - 2, - 3 - ], - "sdkName": "temporal-python", - "sdkVersion": "1.13.0" - }, - "meteringMetadata": {} - } - }, - { - "eventId": "5", - "eventTime": "2025-06-30T16:05:23.935885Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056526", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "6", - "eventTime": "2025-06-30T16:05:23.935887Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056527", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "5", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "request-from-RespondWorkflowTaskCompleted", - "historySizeBytes": "634", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "7", - "eventTime": "2025-06-30T16:05:23.945868Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056528", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "5", - "startedEventId": "6", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "8", - "eventTime": "2025-06-30T16:05:23.945901Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED", - "taskId": "1056529", - "workflowExecutionUpdateAcceptedEventAttributes": { - "protocolInstanceId": "84ebe654-6558-4df3-a536-f391bd61ddef", - "acceptedRequestMessageId": "84ebe654-6558-4df3-a536-f391bd61ddef/request", - "acceptedRequestSequencingEventId": "5", - "acceptedRequest": { - "meta": { - "updateId": "84ebe654-6558-4df3-a536-f391bd61ddef", - "identity": "16915@Tims-MacBook-Pro.local" - }, - "input": { - "name": "process_user_message", - "args": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ1c2VyX2lucHV0IjoiSGVsbG8iLCJjaGF0X2xlbmd0aCI6MH0=" - } - ] - } - } - } - } - }, - { - "eventId": "9", - "eventTime": "2025-06-30T16:05:23.945923Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056530", - "activityTaskScheduledEventAttributes": { - "activityId": "1", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "be82986c-9ddc-441b-9833-c3fce7c79df1", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJDdXN0b21lciBzZXJ2aWNlIiwic3BhbklkIjoic3Bhbl9lZmRlY2VhZjBmMzI0MDgyOGQxNTM4OWMiLCJ0cmFjZUlkIjoidHJhY2VfNzgwYzg0NjY5OTgzNGQ1ODljMjZkNzYyZDliNzMwOWIifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiIyBTeXN0ZW0gY29udGV4dFxuWW91IGFyZSBwYXJ0IG9mIGEgbXVsdGktYWdlbnQgc3lzdGVtIGNhbGxlZCB0aGUgQWdlbnRzIFNESywgZGVzaWduZWQgdG8gbWFrZSBhZ2VudCBjb29yZGluYXRpb24gYW5kIGV4ZWN1dGlvbiBlYXN5LiBBZ2VudHMgdXNlcyB0d28gcHJpbWFyeSBhYnN0cmFjdGlvbjogKipBZ2VudHMqKiBhbmQgKipIYW5kb2ZmcyoqLiBBbiBhZ2VudCBlbmNvbXBhc3NlcyBpbnN0cnVjdGlvbnMgYW5kIHRvb2xzIGFuZCBjYW4gaGFuZCBvZmYgYSBjb252ZXJzYXRpb24gdG8gYW5vdGhlciBhZ2VudCB3aGVuIGFwcHJvcHJpYXRlLiBIYW5kb2ZmcyBhcmUgYWNoaWV2ZWQgYnkgY2FsbGluZyBhIGhhbmRvZmYgZnVuY3Rpb24sIGdlbmVyYWxseSBuYW1lZCBgdHJhbnNmZXJfdG9fPGFnZW50X25hbWU+YC4gVHJhbnNmZXJzIGJldHdlZW4gYWdlbnRzIGFyZSBoYW5kbGVkIHNlYW1sZXNzbHkgaW4gdGhlIGJhY2tncm91bmQ7IGRvIG5vdCBtZW50aW9uIG9yIGRyYXcgYXR0ZW50aW9uIHRvIHRoZXNlIHRyYW5zZmVycyBpbiB5b3VyIGNvbnZlcnNhdGlvbiB3aXRoIHRoZSB1c2VyLlxuIFlvdSBhcmUgYSBoZWxwZnVsIHRyaWFnaW5nIGFnZW50LiBZb3UgY2FuIHVzZSB5b3VyIHRvb2xzIHRvIGRlbGVnYXRlIHF1ZXN0aW9ucyB0byBvdGhlciBhcHByb3ByaWF0ZSBhZ2VudHMuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJIZWxsbyIsInJvbGUiOiJ1c2VyIn1dLCJtb2RlbF9zZXR0aW5ncyI6eyJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wX3AiOm51bGwsImZyZXF1ZW5jeV9wZW5hbHR5IjpudWxsLCJwcmVzZW5jZV9wZW5hbHR5IjpudWxsLCJ0b29sX2Nob2ljZSI6bnVsbCwicGFyYWxsZWxfdG9vbF9jYWxscyI6bnVsbCwidHJ1bmNhdGlvbiI6bnVsbCwibWF4X3Rva2VucyI6bnVsbCwicmVhc29uaW5nIjpudWxsLCJtZXRhZGF0YSI6bnVsbCwic3RvcmUiOm51bGwsImluY2x1ZGVfdXNhZ2UiOm51bGwsImV4dHJhX3F1ZXJ5IjpudWxsLCJleHRyYV9ib2R5IjpudWxsLCJleHRyYV9oZWFkZXJzIjpudWxsLCJleHRyYV9hcmdzIjpudWxsfSwidG9vbHMiOltdLCJvdXRwdXRfc2NoZW1hIjpudWxsLCJoYW5kb2ZmcyI6W3sidG9vbF9uYW1lIjoidHJhbnNmZXJfdG9fZmFxX2FnZW50IiwidG9vbF9kZXNjcmlwdGlvbiI6IkhhbmRvZmYgdG8gdGhlIEZBUSBBZ2VudCBhZ2VudCB0byBoYW5kbGUgdGhlIHJlcXVlc3QuIEEgaGVscGZ1bCBhZ2VudCB0aGF0IGNhbiBhbnN3ZXIgcXVlc3Rpb25zIGFib3V0IHRoZSBhaXJsaW5lLiIsImlucHV0X2pzb25fc2NoZW1hIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpmYWxzZSwidHlwZSI6Im9iamVjdCIsInByb3BlcnRpZXMiOnt9LCJyZXF1aXJlZCI6W119LCJhZ2VudF9uYW1lIjoiRkFRIEFnZW50Iiwic3RyaWN0X2pzb25fc2NoZW1hIjp0cnVlfSx7InRvb2xfbmFtZSI6InRyYW5zZmVyX3RvX3NlYXRfYm9va2luZ19hZ2VudCIsInRvb2xfZGVzY3JpcHRpb24iOiJIYW5kb2ZmIHRvIHRoZSBTZWF0IEJvb2tpbmcgQWdlbnQgYWdlbnQgdG8gaGFuZGxlIHRoZSByZXF1ZXN0LiBBIGhlbHBmdWwgYWdlbnQgdGhhdCBjYW4gdXBkYXRlIGEgc2VhdCBvbiBhIGZsaWdodC4iLCJpbnB1dF9qc29uX3NjaGVtYSI6eyJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2UsInR5cGUiOiJvYmplY3QiLCJwcm9wZXJ0aWVzIjp7fSwicmVxdWlyZWQiOltdfSwiYWdlbnRfbmFtZSI6IlNlYXQgQm9va2luZyBBZ2VudCIsInN0cmljdF9qc29uX3NjaGVtYSI6dHJ1ZX1dLCJ0cmFjaW5nIjoxLCJwcmV2aW91c19yZXNwb25zZV9pZCI6bnVsbCwicHJvbXB0IjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "7", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IkhlbGxvIg==" - } - } - }, - { - "eventId": "10", - "eventTime": "2025-06-30T16:05:23.946659Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056536", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "9", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "3a5187f5-d97d-4dc3-bad1-9fbcd45973c0", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "11", - "eventTime": "2025-06-30T16:05:23.966721Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056537", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoiIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiSGkgdGhlcmUhIEhvdyBjYW4gSSBhc3Npc3QgeW91IHRvZGF5PyIsInR5cGUiOiJvdXRwdXRfdGV4dCJ9XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn1dLCJ1c2FnZSI6eyJyZXF1ZXN0cyI6MCwiaW5wdXRfdG9rZW5zIjowLCJpbnB1dF90b2tlbnNfZGV0YWlscyI6eyJjYWNoZWRfdG9rZW5zIjowfSwib3V0cHV0X3Rva2VucyI6MCwib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjB9LCJyZXNwb25zZV9pZCI6bnVsbH0=" - } - ] - }, - "scheduledEventId": "9", - "startedEventId": "10", - "identity": "16915@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "12", - "eventTime": "2025-06-30T16:05:23.966725Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056538", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "13", - "eventTime": "2025-06-30T16:05:23.967600Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056542", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "12", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "b906d85d-cd71-4656-b6a7-082a1bc52243", - "historySizeBytes": "4251", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "14", - "eventTime": "2025-06-30T16:05:23.979403Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056546", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "12", - "startedEventId": "13", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "15", - "eventTime": "2025-06-30T16:05:23.979438Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED", - "taskId": "1056547", - "workflowExecutionUpdateCompletedEventAttributes": { - "meta": { - "updateId": "84ebe654-6558-4df3-a536-f391bd61ddef", - "identity": "16915@Tims-MacBook-Pro.local" - }, - "outcome": { - "success": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "WyJVc2VyOiBIZWxsbyIsIlRyaWFnZSBBZ2VudDogSGkgdGhlcmUhIEhvdyBjYW4gSSBhc3Npc3QgeW91IHRvZGF5PyJd" - } - ] - } - }, - "acceptedEventId": "8" - } - }, - { - "eventId": "16", - "eventTime": "2025-06-30T16:05:23.984766Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056553", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "17", - "eventTime": "2025-06-30T16:05:23.985105Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056554", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "16", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "209063cf-510e-46c2-9896-edc64b67472e", - "historySizeBytes": "4689", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "18", - "eventTime": "2025-06-30T16:05:23.994030Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056555", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "16", - "startedEventId": "17", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "19", - "eventTime": "2025-06-30T16:05:23.994061Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED", - "taskId": "1056556", - "workflowExecutionUpdateAcceptedEventAttributes": { - "protocolInstanceId": "582a5778-a28c-4a2d-bee1-9629da75c8a5", - "acceptedRequestMessageId": "582a5778-a28c-4a2d-bee1-9629da75c8a5/request", - "acceptedRequestSequencingEventId": "16", - "acceptedRequest": { - "meta": { - "updateId": "582a5778-a28c-4a2d-bee1-9629da75c8a5", - "identity": "16915@Tims-MacBook-Pro.local" - }, - "input": { - "name": "process_user_message", - "args": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ1c2VyX2lucHV0IjoiQm9vayBtZSBhIGZsaWdodCB0byBQRFgiLCJjaGF0X2xlbmd0aCI6Mn0=" - } - ] - } - } - } - } - }, - { - "eventId": "20", - "eventTime": "2025-06-30T16:05:23.994084Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056557", - "activityTaskScheduledEventAttributes": { - "activityId": "2", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "be82986c-9ddc-441b-9833-c3fce7c79df1", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJDdXN0b21lciBzZXJ2aWNlIiwic3BhbklkIjoic3Bhbl8wM2Y5YzFkYWQ4MmM0N2JmYTE4MWExMTAiLCJ0cmFjZUlkIjoidHJhY2VfZGQxMWQyNTYxOWQ1NDZmMGE4MDgxMzc3OTdiYzE2MjMifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiIyBTeXN0ZW0gY29udGV4dFxuWW91IGFyZSBwYXJ0IG9mIGEgbXVsdGktYWdlbnQgc3lzdGVtIGNhbGxlZCB0aGUgQWdlbnRzIFNESywgZGVzaWduZWQgdG8gbWFrZSBhZ2VudCBjb29yZGluYXRpb24gYW5kIGV4ZWN1dGlvbiBlYXN5LiBBZ2VudHMgdXNlcyB0d28gcHJpbWFyeSBhYnN0cmFjdGlvbjogKipBZ2VudHMqKiBhbmQgKipIYW5kb2ZmcyoqLiBBbiBhZ2VudCBlbmNvbXBhc3NlcyBpbnN0cnVjdGlvbnMgYW5kIHRvb2xzIGFuZCBjYW4gaGFuZCBvZmYgYSBjb252ZXJzYXRpb24gdG8gYW5vdGhlciBhZ2VudCB3aGVuIGFwcHJvcHJpYXRlLiBIYW5kb2ZmcyBhcmUgYWNoaWV2ZWQgYnkgY2FsbGluZyBhIGhhbmRvZmYgZnVuY3Rpb24sIGdlbmVyYWxseSBuYW1lZCBgdHJhbnNmZXJfdG9fPGFnZW50X25hbWU+YC4gVHJhbnNmZXJzIGJldHdlZW4gYWdlbnRzIGFyZSBoYW5kbGVkIHNlYW1sZXNzbHkgaW4gdGhlIGJhY2tncm91bmQ7IGRvIG5vdCBtZW50aW9uIG9yIGRyYXcgYXR0ZW50aW9uIHRvIHRoZXNlIHRyYW5zZmVycyBpbiB5b3VyIGNvbnZlcnNhdGlvbiB3aXRoIHRoZSB1c2VyLlxuIFlvdSBhcmUgYSBoZWxwZnVsIHRyaWFnaW5nIGFnZW50LiBZb3UgY2FuIHVzZSB5b3VyIHRvb2xzIHRvIGRlbGVnYXRlIHF1ZXN0aW9ucyB0byBvdGhlciBhcHByb3ByaWF0ZSBhZ2VudHMuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJIZWxsbyIsInJvbGUiOiJ1c2VyIn0seyJpZCI6IiIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IkhpIHRoZXJlISBIb3cgY2FuIEkgYXNzaXN0IHlvdSB0b2RheT8iLCJ0eXBlIjoib3V0cHV0X3RleHQifV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9LHsiY29udGVudCI6IkJvb2sgbWUgYSBmbGlnaHQgdG8gUERYIiwicm9sZSI6InVzZXIifV0sIm1vZGVsX3NldHRpbmdzIjp7InRlbXBlcmF0dXJlIjpudWxsLCJ0b3BfcCI6bnVsbCwiZnJlcXVlbmN5X3BlbmFsdHkiOm51bGwsInByZXNlbmNlX3BlbmFsdHkiOm51bGwsInRvb2xfY2hvaWNlIjpudWxsLCJwYXJhbGxlbF90b29sX2NhbGxzIjpudWxsLCJ0cnVuY2F0aW9uIjpudWxsLCJtYXhfdG9rZW5zIjpudWxsLCJyZWFzb25pbmciOm51bGwsIm1ldGFkYXRhIjpudWxsLCJzdG9yZSI6bnVsbCwiaW5jbHVkZV91c2FnZSI6bnVsbCwiZXh0cmFfcXVlcnkiOm51bGwsImV4dHJhX2JvZHkiOm51bGwsImV4dHJhX2hlYWRlcnMiOm51bGwsImV4dHJhX2FyZ3MiOm51bGx9LCJ0b29scyI6W10sIm91dHB1dF9zY2hlbWEiOm51bGwsImhhbmRvZmZzIjpbeyJ0b29sX25hbWUiOiJ0cmFuc2Zlcl90b19mYXFfYWdlbnQiLCJ0b29sX2Rlc2NyaXB0aW9uIjoiSGFuZG9mZiB0byB0aGUgRkFRIEFnZW50IGFnZW50IHRvIGhhbmRsZSB0aGUgcmVxdWVzdC4gQSBoZWxwZnVsIGFnZW50IHRoYXQgY2FuIGFuc3dlciBxdWVzdGlvbnMgYWJvdXQgdGhlIGFpcmxpbmUuIiwiaW5wdXRfanNvbl9zY2hlbWEiOnsiYWRkaXRpb25hbFByb3BlcnRpZXMiOmZhbHNlLCJ0eXBlIjoib2JqZWN0IiwicHJvcGVydGllcyI6e30sInJlcXVpcmVkIjpbXX0sImFnZW50X25hbWUiOiJGQVEgQWdlbnQiLCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9LHsidG9vbF9uYW1lIjoidHJhbnNmZXJfdG9fc2VhdF9ib29raW5nX2FnZW50IiwidG9vbF9kZXNjcmlwdGlvbiI6IkhhbmRvZmYgdG8gdGhlIFNlYXQgQm9va2luZyBBZ2VudCBhZ2VudCB0byBoYW5kbGUgdGhlIHJlcXVlc3QuIEEgaGVscGZ1bCBhZ2VudCB0aGF0IGNhbiB1cGRhdGUgYSBzZWF0IG9uIGEgZmxpZ2h0LiIsImlucHV0X2pzb25fc2NoZW1hIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpmYWxzZSwidHlwZSI6Im9iamVjdCIsInByb3BlcnRpZXMiOnt9LCJyZXF1aXJlZCI6W119LCJhZ2VudF9uYW1lIjoiU2VhdCBCb29raW5nIEFnZW50Iiwic3RyaWN0X2pzb25fc2NoZW1hIjp0cnVlfV0sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "18", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IkJvb2sgbWUgYSBmbGlnaHQgdG8gUERYIg==" - } - } - }, - { - "eventId": "21", - "eventTime": "2025-06-30T16:05:23.994909Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056563", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "20", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "10361ec0-e6e9-4d84-a302-41e06e1c96a4", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "22", - "eventTime": "2025-06-30T16:05:24.001754Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056564", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImFyZ3VtZW50cyI6Int9IiwiY2FsbF9pZCI6ImNhbGwiLCJuYW1lIjoidHJhbnNmZXJfdG9fc2VhdF9ib29raW5nX2FnZW50IiwidHlwZSI6ImZ1bmN0aW9uX2NhbGwiLCJpZCI6ImlkIiwic3RhdHVzIjoiY29tcGxldGVkIn1dLCJ1c2FnZSI6eyJyZXF1ZXN0cyI6MCwiaW5wdXRfdG9rZW5zIjowLCJpbnB1dF90b2tlbnNfZGV0YWlscyI6eyJjYWNoZWRfdG9rZW5zIjowfSwib3V0cHV0X3Rva2VucyI6MCwib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjB9LCJyZXNwb25zZV9pZCI6bnVsbH0=" - } - ] - }, - "scheduledEventId": "20", - "startedEventId": "21", - "identity": "16915@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "23", - "eventTime": "2025-06-30T16:05:24.001757Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056565", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "24", - "eventTime": "2025-06-30T16:05:24.002535Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056569", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "23", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "469bede9-5aa7-4e8b-bd27-cb987cc6808f", - "historySizeBytes": "8515", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "25", - "eventTime": "2025-06-30T16:05:24.007974Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056573", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "23", - "startedEventId": "24", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "26", - "eventTime": "2025-06-30T16:05:24.008Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056574", - "activityTaskScheduledEventAttributes": { - "activityId": "3", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "be82986c-9ddc-441b-9833-c3fce7c79df1", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJDdXN0b21lciBzZXJ2aWNlIiwic3BhbklkIjoic3Bhbl9iZDhiMDA3NzhmOWE0NjBkYTYxNjc2OTciLCJ0cmFjZUlkIjoidHJhY2VfZGQxMWQyNTYxOWQ1NDZmMGE4MDgxMzc3OTdiYzE2MjMifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiIyBTeXN0ZW0gY29udGV4dFxuWW91IGFyZSBwYXJ0IG9mIGEgbXVsdGktYWdlbnQgc3lzdGVtIGNhbGxlZCB0aGUgQWdlbnRzIFNESywgZGVzaWduZWQgdG8gbWFrZSBhZ2VudCBjb29yZGluYXRpb24gYW5kIGV4ZWN1dGlvbiBlYXN5LiBBZ2VudHMgdXNlcyB0d28gcHJpbWFyeSBhYnN0cmFjdGlvbjogKipBZ2VudHMqKiBhbmQgKipIYW5kb2ZmcyoqLiBBbiBhZ2VudCBlbmNvbXBhc3NlcyBpbnN0cnVjdGlvbnMgYW5kIHRvb2xzIGFuZCBjYW4gaGFuZCBvZmYgYSBjb252ZXJzYXRpb24gdG8gYW5vdGhlciBhZ2VudCB3aGVuIGFwcHJvcHJpYXRlLiBIYW5kb2ZmcyBhcmUgYWNoaWV2ZWQgYnkgY2FsbGluZyBhIGhhbmRvZmYgZnVuY3Rpb24sIGdlbmVyYWxseSBuYW1lZCBgdHJhbnNmZXJfdG9fPGFnZW50X25hbWU+YC4gVHJhbnNmZXJzIGJldHdlZW4gYWdlbnRzIGFyZSBoYW5kbGVkIHNlYW1sZXNzbHkgaW4gdGhlIGJhY2tncm91bmQ7IGRvIG5vdCBtZW50aW9uIG9yIGRyYXcgYXR0ZW50aW9uIHRvIHRoZXNlIHRyYW5zZmVycyBpbiB5b3VyIGNvbnZlcnNhdGlvbiB3aXRoIHRoZSB1c2VyLlxuXG4gICAgICAgIFlvdSBhcmUgYSBzZWF0IGJvb2tpbmcgYWdlbnQuIElmIHlvdSBhcmUgc3BlYWtpbmcgdG8gYSBjdXN0b21lciwgeW91IHByb2JhYmx5IHdlcmUgdHJhbnNmZXJyZWQgdG8gZnJvbSB0aGUgdHJpYWdlIGFnZW50LlxuICAgICAgICBVc2UgdGhlIGZvbGxvd2luZyByb3V0aW5lIHRvIHN1cHBvcnQgdGhlIGN1c3RvbWVyLlxuICAgICAgICAjIFJvdXRpbmVcbiAgICAgICAgMS4gQXNrIGZvciB0aGVpciBjb25maXJtYXRpb24gbnVtYmVyLlxuICAgICAgICAyLiBBc2sgdGhlIGN1c3RvbWVyIHdoYXQgdGhlaXIgZGVzaXJlZCBzZWF0IG51bWJlciBpcy5cbiAgICAgICAgMy4gVXNlIHRoZSB1cGRhdGUgc2VhdCB0b29sIHRvIHVwZGF0ZSB0aGUgc2VhdCBvbiB0aGUgZmxpZ2h0LlxuICAgICAgICBJZiB0aGUgY3VzdG9tZXIgYXNrcyBhIHF1ZXN0aW9uIHRoYXQgaXMgbm90IHJlbGF0ZWQgdG8gdGhlIHJvdXRpbmUsIHRyYW5zZmVyIGJhY2sgdG8gdGhlIHRyaWFnZSBhZ2VudC4gIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJIZWxsbyIsInJvbGUiOiJ1c2VyIn0seyJpZCI6IiIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IkhpIHRoZXJlISBIb3cgY2FuIEkgYXNzaXN0IHlvdSB0b2RheT8iLCJ0eXBlIjoib3V0cHV0X3RleHQifV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9LHsiY29udGVudCI6IkJvb2sgbWUgYSBmbGlnaHQgdG8gUERYIiwicm9sZSI6InVzZXIifSx7ImFyZ3VtZW50cyI6Int9IiwiY2FsbF9pZCI6ImNhbGwiLCJuYW1lIjoidHJhbnNmZXJfdG9fc2VhdF9ib29raW5nX2FnZW50IiwidHlwZSI6ImZ1bmN0aW9uX2NhbGwiLCJpZCI6ImlkIiwic3RhdHVzIjoiY29tcGxldGVkIn0seyJjYWxsX2lkIjoiY2FsbCIsIm91dHB1dCI6IntcImFzc2lzdGFudFwiOiBcIlNlYXQgQm9va2luZyBBZ2VudFwifSIsInR5cGUiOiJmdW5jdGlvbl9jYWxsX291dHB1dCJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOm51bGwsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbeyJuYW1lIjoidXBkYXRlX3NlYXQiLCJkZXNjcmlwdGlvbiI6IlVwZGF0ZSB0aGUgc2VhdCBmb3IgYSBnaXZlbiBjb25maXJtYXRpb24gbnVtYmVyLiIsInBhcmFtc19qc29uX3NjaGVtYSI6eyJwcm9wZXJ0aWVzIjp7ImNvbmZpcm1hdGlvbl9udW1iZXIiOnsiZGVzY3JpcHRpb24iOiJUaGUgY29uZmlybWF0aW9uIG51bWJlciBmb3IgdGhlIGZsaWdodC4iLCJ0aXRsZSI6IkNvbmZpcm1hdGlvbiBOdW1iZXIiLCJ0eXBlIjoic3RyaW5nIn0sIm5ld19zZWF0Ijp7ImRlc2NyaXB0aW9uIjoiVGhlIG5ldyBzZWF0IHRvIHVwZGF0ZSB0by4iLCJ0aXRsZSI6Ik5ldyBTZWF0IiwidHlwZSI6InN0cmluZyJ9fSwicmVxdWlyZWQiOlsiY29uZmlybWF0aW9uX251bWJlciIsIm5ld19zZWF0Il0sInRpdGxlIjoidXBkYXRlX3NlYXRfYXJncyIsInR5cGUiOiJvYmplY3QiLCJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2V9LCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9XSwib3V0cHV0X3NjaGVtYSI6bnVsbCwiaGFuZG9mZnMiOlt7InRvb2xfbmFtZSI6InRyYW5zZmVyX3RvX3RyaWFnZV9hZ2VudCIsInRvb2xfZGVzY3JpcHRpb24iOiJIYW5kb2ZmIHRvIHRoZSBUcmlhZ2UgQWdlbnQgYWdlbnQgdG8gaGFuZGxlIHRoZSByZXF1ZXN0LiBBIHRyaWFnZSBhZ2VudCB0aGF0IGNhbiBkZWxlZ2F0ZSBhIGN1c3RvbWVyJ3MgcmVxdWVzdCB0byB0aGUgYXBwcm9wcmlhdGUgYWdlbnQuIiwiaW5wdXRfanNvbl9zY2hlbWEiOnsiYWRkaXRpb25hbFByb3BlcnRpZXMiOmZhbHNlLCJ0eXBlIjoib2JqZWN0IiwicHJvcGVydGllcyI6e30sInJlcXVpcmVkIjpbXX0sImFnZW50X25hbWUiOiJUcmlhZ2UgQWdlbnQiLCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9XSwidHJhY2luZyI6MSwicHJldmlvdXNfcmVzcG9uc2VfaWQiOm51bGwsInByb21wdCI6bnVsbH0=" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "25", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - } - }, - { - "eventId": "27", - "eventTime": "2025-06-30T16:05:24.008726Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056579", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "26", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "b483ade7-523e-404a-8b26-34e3f751d9da", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "28", - "eventTime": "2025-06-30T16:05:24.013004Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056580", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoiIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiQ291bGQgeW91IHBsZWFzZSBwcm92aWRlIHlvdXIgY29uZmlybWF0aW9uIG51bWJlcj8iLCJ0eXBlIjoib3V0cHV0X3RleHQifV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9XSwidXNhZ2UiOnsicmVxdWVzdHMiOjAsImlucHV0X3Rva2VucyI6MCwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjAsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjowfSwicmVzcG9uc2VfaWQiOm51bGx9" - } - ] - }, - "scheduledEventId": "26", - "startedEventId": "27", - "identity": "16915@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "29", - "eventTime": "2025-06-30T16:05:24.013007Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056581", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "30", - "eventTime": "2025-06-30T16:05:24.013661Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056585", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "29", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "273fc019-be1e-4174-be04-ba910235a319", - "historySizeBytes": "12696", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "31", - "eventTime": "2025-06-30T16:05:24.018308Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056589", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "29", - "startedEventId": "30", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "32", - "eventTime": "2025-06-30T16:05:24.018335Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED", - "taskId": "1056590", - "workflowExecutionUpdateCompletedEventAttributes": { - "meta": { - "updateId": "582a5778-a28c-4a2d-bee1-9629da75c8a5", - "identity": "16915@Tims-MacBook-Pro.local" - }, - "outcome": { - "success": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "WyJVc2VyOiBCb29rIG1lIGEgZmxpZ2h0IHRvIFBEWCIsIlRyaWFnZSBBZ2VudDogU2tpcHBpbmcgaXRlbTogSGFuZG9mZkNhbGxJdGVtIiwiSGFuZGVkIG9mZiBmcm9tIFRyaWFnZSBBZ2VudCB0byBTZWF0IEJvb2tpbmcgQWdlbnQiLCJTZWF0IEJvb2tpbmcgQWdlbnQ6IENvdWxkIHlvdSBwbGVhc2UgcHJvdmlkZSB5b3VyIGNvbmZpcm1hdGlvbiBudW1iZXI/Il0=" - } - ] - } - }, - "acceptedEventId": "19" - } - }, - { - "eventId": "33", - "eventTime": "2025-06-30T16:05:24.020885Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056596", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "34", - "eventTime": "2025-06-30T16:05:24.021110Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056597", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "33", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "d7f1a655-e077-4c3c-8781-5b4a69d39782", - "historySizeBytes": "13272", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "35", - "eventTime": "2025-06-30T16:05:24.028049Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056598", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "33", - "startedEventId": "34", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "36", - "eventTime": "2025-06-30T16:05:24.028075Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED", - "taskId": "1056599", - "workflowExecutionUpdateAcceptedEventAttributes": { - "protocolInstanceId": "602020f4-2885-4f5b-9e72-e1dfcb2db850", - "acceptedRequestMessageId": "602020f4-2885-4f5b-9e72-e1dfcb2db850/request", - "acceptedRequestSequencingEventId": "33", - "acceptedRequest": { - "meta": { - "updateId": "602020f4-2885-4f5b-9e72-e1dfcb2db850", - "identity": "16915@Tims-MacBook-Pro.local" - }, - "input": { - "name": "process_user_message", - "args": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ1c2VyX2lucHV0IjoiMTExMTEiLCJjaGF0X2xlbmd0aCI6Nn0=" - } - ] - } - } - } - } - }, - { - "eventId": "37", - "eventTime": "2025-06-30T16:05:24.028089Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056600", - "activityTaskScheduledEventAttributes": { - "activityId": "4", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "be82986c-9ddc-441b-9833-c3fce7c79df1", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJDdXN0b21lciBzZXJ2aWNlIiwic3BhbklkIjoic3Bhbl84YTYzOGIwY2ZkYzE0MjA5YWMyNTUwNGEiLCJ0cmFjZUlkIjoidHJhY2VfNjg3MTkwZDNhMDM2NGNlYWExYTlhYzhhYzNmMDgwOTkifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiIyBTeXN0ZW0gY29udGV4dFxuWW91IGFyZSBwYXJ0IG9mIGEgbXVsdGktYWdlbnQgc3lzdGVtIGNhbGxlZCB0aGUgQWdlbnRzIFNESywgZGVzaWduZWQgdG8gbWFrZSBhZ2VudCBjb29yZGluYXRpb24gYW5kIGV4ZWN1dGlvbiBlYXN5LiBBZ2VudHMgdXNlcyB0d28gcHJpbWFyeSBhYnN0cmFjdGlvbjogKipBZ2VudHMqKiBhbmQgKipIYW5kb2ZmcyoqLiBBbiBhZ2VudCBlbmNvbXBhc3NlcyBpbnN0cnVjdGlvbnMgYW5kIHRvb2xzIGFuZCBjYW4gaGFuZCBvZmYgYSBjb252ZXJzYXRpb24gdG8gYW5vdGhlciBhZ2VudCB3aGVuIGFwcHJvcHJpYXRlLiBIYW5kb2ZmcyBhcmUgYWNoaWV2ZWQgYnkgY2FsbGluZyBhIGhhbmRvZmYgZnVuY3Rpb24sIGdlbmVyYWxseSBuYW1lZCBgdHJhbnNmZXJfdG9fPGFnZW50X25hbWU+YC4gVHJhbnNmZXJzIGJldHdlZW4gYWdlbnRzIGFyZSBoYW5kbGVkIHNlYW1sZXNzbHkgaW4gdGhlIGJhY2tncm91bmQ7IGRvIG5vdCBtZW50aW9uIG9yIGRyYXcgYXR0ZW50aW9uIHRvIHRoZXNlIHRyYW5zZmVycyBpbiB5b3VyIGNvbnZlcnNhdGlvbiB3aXRoIHRoZSB1c2VyLlxuXG4gICAgICAgIFlvdSBhcmUgYSBzZWF0IGJvb2tpbmcgYWdlbnQuIElmIHlvdSBhcmUgc3BlYWtpbmcgdG8gYSBjdXN0b21lciwgeW91IHByb2JhYmx5IHdlcmUgdHJhbnNmZXJyZWQgdG8gZnJvbSB0aGUgdHJpYWdlIGFnZW50LlxuICAgICAgICBVc2UgdGhlIGZvbGxvd2luZyByb3V0aW5lIHRvIHN1cHBvcnQgdGhlIGN1c3RvbWVyLlxuICAgICAgICAjIFJvdXRpbmVcbiAgICAgICAgMS4gQXNrIGZvciB0aGVpciBjb25maXJtYXRpb24gbnVtYmVyLlxuICAgICAgICAyLiBBc2sgdGhlIGN1c3RvbWVyIHdoYXQgdGhlaXIgZGVzaXJlZCBzZWF0IG51bWJlciBpcy5cbiAgICAgICAgMy4gVXNlIHRoZSB1cGRhdGUgc2VhdCB0b29sIHRvIHVwZGF0ZSB0aGUgc2VhdCBvbiB0aGUgZmxpZ2h0LlxuICAgICAgICBJZiB0aGUgY3VzdG9tZXIgYXNrcyBhIHF1ZXN0aW9uIHRoYXQgaXMgbm90IHJlbGF0ZWQgdG8gdGhlIHJvdXRpbmUsIHRyYW5zZmVyIGJhY2sgdG8gdGhlIHRyaWFnZSBhZ2VudC4gIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJIZWxsbyIsInJvbGUiOiJ1c2VyIn0seyJpZCI6IiIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IkhpIHRoZXJlISBIb3cgY2FuIEkgYXNzaXN0IHlvdSB0b2RheT8iLCJ0eXBlIjoib3V0cHV0X3RleHQifV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9LHsiY29udGVudCI6IkJvb2sgbWUgYSBmbGlnaHQgdG8gUERYIiwicm9sZSI6InVzZXIifSx7ImFyZ3VtZW50cyI6Int9IiwiY2FsbF9pZCI6ImNhbGwiLCJuYW1lIjoidHJhbnNmZXJfdG9fc2VhdF9ib29raW5nX2FnZW50IiwidHlwZSI6ImZ1bmN0aW9uX2NhbGwiLCJpZCI6ImlkIiwic3RhdHVzIjoiY29tcGxldGVkIn0seyJjYWxsX2lkIjoiY2FsbCIsIm91dHB1dCI6IntcImFzc2lzdGFudFwiOiBcIlNlYXQgQm9va2luZyBBZ2VudFwifSIsInR5cGUiOiJmdW5jdGlvbl9jYWxsX291dHB1dCJ9LHsiaWQiOiIiLCJjb250ZW50IjpbeyJhbm5vdGF0aW9ucyI6W10sInRleHQiOiJDb3VsZCB5b3UgcGxlYXNlIHByb3ZpZGUgeW91ciBjb25maXJtYXRpb24gbnVtYmVyPyIsInR5cGUiOiJvdXRwdXRfdGV4dCJ9XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn0seyJjb250ZW50IjoiMTExMTEiLCJyb2xlIjoidXNlciJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOm51bGwsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbeyJuYW1lIjoidXBkYXRlX3NlYXQiLCJkZXNjcmlwdGlvbiI6IlVwZGF0ZSB0aGUgc2VhdCBmb3IgYSBnaXZlbiBjb25maXJtYXRpb24gbnVtYmVyLiIsInBhcmFtc19qc29uX3NjaGVtYSI6eyJwcm9wZXJ0aWVzIjp7ImNvbmZpcm1hdGlvbl9udW1iZXIiOnsiZGVzY3JpcHRpb24iOiJUaGUgY29uZmlybWF0aW9uIG51bWJlciBmb3IgdGhlIGZsaWdodC4iLCJ0aXRsZSI6IkNvbmZpcm1hdGlvbiBOdW1iZXIiLCJ0eXBlIjoic3RyaW5nIn0sIm5ld19zZWF0Ijp7ImRlc2NyaXB0aW9uIjoiVGhlIG5ldyBzZWF0IHRvIHVwZGF0ZSB0by4iLCJ0aXRsZSI6Ik5ldyBTZWF0IiwidHlwZSI6InN0cmluZyJ9fSwicmVxdWlyZWQiOlsiY29uZmlybWF0aW9uX251bWJlciIsIm5ld19zZWF0Il0sInRpdGxlIjoidXBkYXRlX3NlYXRfYXJncyIsInR5cGUiOiJvYmplY3QiLCJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2V9LCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9XSwib3V0cHV0X3NjaGVtYSI6bnVsbCwiaGFuZG9mZnMiOlt7InRvb2xfbmFtZSI6InRyYW5zZmVyX3RvX3RyaWFnZV9hZ2VudCIsInRvb2xfZGVzY3JpcHRpb24iOiJIYW5kb2ZmIHRvIHRoZSBUcmlhZ2UgQWdlbnQgYWdlbnQgdG8gaGFuZGxlIHRoZSByZXF1ZXN0LiBBIHRyaWFnZSBhZ2VudCB0aGF0IGNhbiBkZWxlZ2F0ZSBhIGN1c3RvbWVyJ3MgcmVxdWVzdCB0byB0aGUgYXBwcm9wcmlhdGUgYWdlbnQuIiwiaW5wdXRfanNvbl9zY2hlbWEiOnsiYWRkaXRpb25hbFByb3BlcnRpZXMiOmZhbHNlLCJ0eXBlIjoib2JqZWN0IiwicHJvcGVydGllcyI6e30sInJlcXVpcmVkIjpbXX0sImFnZW50X25hbWUiOiJUcmlhZ2UgQWdlbnQiLCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9XSwidHJhY2luZyI6MSwicHJldmlvdXNfcmVzcG9uc2VfaWQiOm51bGwsInByb21wdCI6bnVsbH0=" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "35", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IjExMTExIg==" - } - } - }, - { - "eventId": "38", - "eventTime": "2025-06-30T16:05:24.028711Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056606", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "37", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "c867017e-9504-4840-b8cb-278f9e06c9f0", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "39", - "eventTime": "2025-06-30T16:05:24.032775Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056607", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoiIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiVGhhbmtzISBXaGF0IHNlYXQgbnVtYmVyIHdvdWxkIHlvdSBsaWtlIHRvIGNoYW5nZSB0bz8iLCJ0eXBlIjoib3V0cHV0X3RleHQifV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9XSwidXNhZ2UiOnsicmVxdWVzdHMiOjAsImlucHV0X3Rva2VucyI6MCwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjAsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjowfSwicmVzcG9uc2VfaWQiOm51bGx9" - } - ] - }, - "scheduledEventId": "37", - "startedEventId": "38", - "identity": "16915@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "40", - "eventTime": "2025-06-30T16:05:24.032778Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056608", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "41", - "eventTime": "2025-06-30T16:05:24.033341Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056612", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "40", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "cb909484-7de0-4129-9173-eb67c1e3bf01", - "historySizeBytes": "18123", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "42", - "eventTime": "2025-06-30T16:05:24.037741Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056616", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "40", - "startedEventId": "41", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "43", - "eventTime": "2025-06-30T16:05:24.037767Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED", - "taskId": "1056617", - "workflowExecutionUpdateCompletedEventAttributes": { - "meta": { - "updateId": "602020f4-2885-4f5b-9e72-e1dfcb2db850", - "identity": "16915@Tims-MacBook-Pro.local" - }, - "outcome": { - "success": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "WyJVc2VyOiAxMTExMSIsIlNlYXQgQm9va2luZyBBZ2VudDogVGhhbmtzISBXaGF0IHNlYXQgbnVtYmVyIHdvdWxkIHlvdSBsaWtlIHRvIGNoYW5nZSB0bz8iXQ==" - } - ] - } - }, - "acceptedEventId": "36" - } - }, - { - "eventId": "44", - "eventTime": "2025-06-30T16:05:24.040731Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056623", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "45", - "eventTime": "2025-06-30T16:05:24.040950Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056624", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "44", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "58b7c276-20e4-4db6-baab-12599793bd59", - "historySizeBytes": "18581", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "46", - "eventTime": "2025-06-30T16:05:24.048105Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056625", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "44", - "startedEventId": "45", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "47", - "eventTime": "2025-06-30T16:05:24.048131Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED", - "taskId": "1056626", - "workflowExecutionUpdateAcceptedEventAttributes": { - "protocolInstanceId": "221628d3-083b-4982-aa48-635abf7e8435", - "acceptedRequestMessageId": "221628d3-083b-4982-aa48-635abf7e8435/request", - "acceptedRequestSequencingEventId": "44", - "acceptedRequest": { - "meta": { - "updateId": "221628d3-083b-4982-aa48-635abf7e8435", - "identity": "16915@Tims-MacBook-Pro.local" - }, - "input": { - "name": "process_user_message", - "args": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ1c2VyX2lucHV0IjoiQW55IHdpbmRvdyBzZWF0IiwiY2hhdF9sZW5ndGgiOjh9" - } - ] - } - } - } - } - }, - { - "eventId": "48", - "eventTime": "2025-06-30T16:05:24.048150Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056627", - "activityTaskScheduledEventAttributes": { - "activityId": "5", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "be82986c-9ddc-441b-9833-c3fce7c79df1", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJDdXN0b21lciBzZXJ2aWNlIiwic3BhbklkIjoic3Bhbl9hNzQ4NTg4ZDQwNDQ0YjRkYTRhOTk4ZjYiLCJ0cmFjZUlkIjoidHJhY2VfMDhhZTY0ZGUyNzQ3NGVkY2IyMWZiYTk4ZjkyYjEyYTEifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiIyBTeXN0ZW0gY29udGV4dFxuWW91IGFyZSBwYXJ0IG9mIGEgbXVsdGktYWdlbnQgc3lzdGVtIGNhbGxlZCB0aGUgQWdlbnRzIFNESywgZGVzaWduZWQgdG8gbWFrZSBhZ2VudCBjb29yZGluYXRpb24gYW5kIGV4ZWN1dGlvbiBlYXN5LiBBZ2VudHMgdXNlcyB0d28gcHJpbWFyeSBhYnN0cmFjdGlvbjogKipBZ2VudHMqKiBhbmQgKipIYW5kb2ZmcyoqLiBBbiBhZ2VudCBlbmNvbXBhc3NlcyBpbnN0cnVjdGlvbnMgYW5kIHRvb2xzIGFuZCBjYW4gaGFuZCBvZmYgYSBjb252ZXJzYXRpb24gdG8gYW5vdGhlciBhZ2VudCB3aGVuIGFwcHJvcHJpYXRlLiBIYW5kb2ZmcyBhcmUgYWNoaWV2ZWQgYnkgY2FsbGluZyBhIGhhbmRvZmYgZnVuY3Rpb24sIGdlbmVyYWxseSBuYW1lZCBgdHJhbnNmZXJfdG9fPGFnZW50X25hbWU+YC4gVHJhbnNmZXJzIGJldHdlZW4gYWdlbnRzIGFyZSBoYW5kbGVkIHNlYW1sZXNzbHkgaW4gdGhlIGJhY2tncm91bmQ7IGRvIG5vdCBtZW50aW9uIG9yIGRyYXcgYXR0ZW50aW9uIHRvIHRoZXNlIHRyYW5zZmVycyBpbiB5b3VyIGNvbnZlcnNhdGlvbiB3aXRoIHRoZSB1c2VyLlxuXG4gICAgICAgIFlvdSBhcmUgYSBzZWF0IGJvb2tpbmcgYWdlbnQuIElmIHlvdSBhcmUgc3BlYWtpbmcgdG8gYSBjdXN0b21lciwgeW91IHByb2JhYmx5IHdlcmUgdHJhbnNmZXJyZWQgdG8gZnJvbSB0aGUgdHJpYWdlIGFnZW50LlxuICAgICAgICBVc2UgdGhlIGZvbGxvd2luZyByb3V0aW5lIHRvIHN1cHBvcnQgdGhlIGN1c3RvbWVyLlxuICAgICAgICAjIFJvdXRpbmVcbiAgICAgICAgMS4gQXNrIGZvciB0aGVpciBjb25maXJtYXRpb24gbnVtYmVyLlxuICAgICAgICAyLiBBc2sgdGhlIGN1c3RvbWVyIHdoYXQgdGhlaXIgZGVzaXJlZCBzZWF0IG51bWJlciBpcy5cbiAgICAgICAgMy4gVXNlIHRoZSB1cGRhdGUgc2VhdCB0b29sIHRvIHVwZGF0ZSB0aGUgc2VhdCBvbiB0aGUgZmxpZ2h0LlxuICAgICAgICBJZiB0aGUgY3VzdG9tZXIgYXNrcyBhIHF1ZXN0aW9uIHRoYXQgaXMgbm90IHJlbGF0ZWQgdG8gdGhlIHJvdXRpbmUsIHRyYW5zZmVyIGJhY2sgdG8gdGhlIHRyaWFnZSBhZ2VudC4gIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJIZWxsbyIsInJvbGUiOiJ1c2VyIn0seyJpZCI6IiIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IkhpIHRoZXJlISBIb3cgY2FuIEkgYXNzaXN0IHlvdSB0b2RheT8iLCJ0eXBlIjoib3V0cHV0X3RleHQifV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9LHsiY29udGVudCI6IkJvb2sgbWUgYSBmbGlnaHQgdG8gUERYIiwicm9sZSI6InVzZXIifSx7ImFyZ3VtZW50cyI6Int9IiwiY2FsbF9pZCI6ImNhbGwiLCJuYW1lIjoidHJhbnNmZXJfdG9fc2VhdF9ib29raW5nX2FnZW50IiwidHlwZSI6ImZ1bmN0aW9uX2NhbGwiLCJpZCI6ImlkIiwic3RhdHVzIjoiY29tcGxldGVkIn0seyJjYWxsX2lkIjoiY2FsbCIsIm91dHB1dCI6IntcImFzc2lzdGFudFwiOiBcIlNlYXQgQm9va2luZyBBZ2VudFwifSIsInR5cGUiOiJmdW5jdGlvbl9jYWxsX291dHB1dCJ9LHsiaWQiOiIiLCJjb250ZW50IjpbeyJhbm5vdGF0aW9ucyI6W10sInRleHQiOiJDb3VsZCB5b3UgcGxlYXNlIHByb3ZpZGUgeW91ciBjb25maXJtYXRpb24gbnVtYmVyPyIsInR5cGUiOiJvdXRwdXRfdGV4dCJ9XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn0seyJjb250ZW50IjoiMTExMTEiLCJyb2xlIjoidXNlciJ9LHsiaWQiOiIiLCJjb250ZW50IjpbeyJhbm5vdGF0aW9ucyI6W10sInRleHQiOiJUaGFua3MhIFdoYXQgc2VhdCBudW1iZXIgd291bGQgeW91IGxpa2UgdG8gY2hhbmdlIHRvPyIsInR5cGUiOiJvdXRwdXRfdGV4dCJ9XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn0seyJjb250ZW50IjoiQW55IHdpbmRvdyBzZWF0Iiwicm9sZSI6InVzZXIifV0sIm1vZGVsX3NldHRpbmdzIjp7InRlbXBlcmF0dXJlIjpudWxsLCJ0b3BfcCI6bnVsbCwiZnJlcXVlbmN5X3BlbmFsdHkiOm51bGwsInByZXNlbmNlX3BlbmFsdHkiOm51bGwsInRvb2xfY2hvaWNlIjpudWxsLCJwYXJhbGxlbF90b29sX2NhbGxzIjpudWxsLCJ0cnVuY2F0aW9uIjpudWxsLCJtYXhfdG9rZW5zIjpudWxsLCJyZWFzb25pbmciOm51bGwsIm1ldGFkYXRhIjpudWxsLCJzdG9yZSI6bnVsbCwiaW5jbHVkZV91c2FnZSI6bnVsbCwiZXh0cmFfcXVlcnkiOm51bGwsImV4dHJhX2JvZHkiOm51bGwsImV4dHJhX2hlYWRlcnMiOm51bGwsImV4dHJhX2FyZ3MiOm51bGx9LCJ0b29scyI6W3sibmFtZSI6InVwZGF0ZV9zZWF0IiwiZGVzY3JpcHRpb24iOiJVcGRhdGUgdGhlIHNlYXQgZm9yIGEgZ2l2ZW4gY29uZmlybWF0aW9uIG51bWJlci4iLCJwYXJhbXNfanNvbl9zY2hlbWEiOnsicHJvcGVydGllcyI6eyJjb25maXJtYXRpb25fbnVtYmVyIjp7ImRlc2NyaXB0aW9uIjoiVGhlIGNvbmZpcm1hdGlvbiBudW1iZXIgZm9yIHRoZSBmbGlnaHQuIiwidGl0bGUiOiJDb25maXJtYXRpb24gTnVtYmVyIiwidHlwZSI6InN0cmluZyJ9LCJuZXdfc2VhdCI6eyJkZXNjcmlwdGlvbiI6IlRoZSBuZXcgc2VhdCB0byB1cGRhdGUgdG8uIiwidGl0bGUiOiJOZXcgU2VhdCIsInR5cGUiOiJzdHJpbmcifX0sInJlcXVpcmVkIjpbImNvbmZpcm1hdGlvbl9udW1iZXIiLCJuZXdfc2VhdCJdLCJ0aXRsZSI6InVwZGF0ZV9zZWF0X2FyZ3MiLCJ0eXBlIjoib2JqZWN0IiwiYWRkaXRpb25hbFByb3BlcnRpZXMiOmZhbHNlfSwic3RyaWN0X2pzb25fc2NoZW1hIjp0cnVlfV0sIm91dHB1dF9zY2hlbWEiOm51bGwsImhhbmRvZmZzIjpbeyJ0b29sX25hbWUiOiJ0cmFuc2Zlcl90b190cmlhZ2VfYWdlbnQiLCJ0b29sX2Rlc2NyaXB0aW9uIjoiSGFuZG9mZiB0byB0aGUgVHJpYWdlIEFnZW50IGFnZW50IHRvIGhhbmRsZSB0aGUgcmVxdWVzdC4gQSB0cmlhZ2UgYWdlbnQgdGhhdCBjYW4gZGVsZWdhdGUgYSBjdXN0b21lcidzIHJlcXVlc3QgdG8gdGhlIGFwcHJvcHJpYXRlIGFnZW50LiIsImlucHV0X2pzb25fc2NoZW1hIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpmYWxzZSwidHlwZSI6Im9iamVjdCIsInByb3BlcnRpZXMiOnt9LCJyZXF1aXJlZCI6W119LCJhZ2VudF9uYW1lIjoiVHJpYWdlIEFnZW50Iiwic3RyaWN0X2pzb25fc2NoZW1hIjp0cnVlfV0sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "46", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IkFueSB3aW5kb3cgc2VhdCI=" - } - } - }, - { - "eventId": "49", - "eventTime": "2025-06-30T16:05:24.048892Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056633", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "48", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "75475818-bd91-4146-862d-a9cbcdc042af", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "50", - "eventTime": "2025-06-30T16:05:24.053217Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056634", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImFyZ3VtZW50cyI6IntcImNvbmZpcm1hdGlvbl9udW1iZXJcIjpcIjExMTExXCIsXCJuZXdfc2VhdFwiOlwid2luZG93IHNlYXRcIn0iLCJjYWxsX2lkIjoiY2FsbCIsIm5hbWUiOiJ1cGRhdGVfc2VhdCIsInR5cGUiOiJmdW5jdGlvbl9jYWxsIiwiaWQiOiJpZCIsInN0YXR1cyI6ImNvbXBsZXRlZCJ9XSwidXNhZ2UiOnsicmVxdWVzdHMiOjAsImlucHV0X3Rva2VucyI6MCwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjAsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjowfSwicmVzcG9uc2VfaWQiOm51bGx9" - } - ] - }, - "scheduledEventId": "48", - "startedEventId": "49", - "identity": "16915@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "51", - "eventTime": "2025-06-30T16:05:24.053220Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056635", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "52", - "eventTime": "2025-06-30T16:05:24.053885Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056639", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "51", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "993c75fa-56bf-49cc-bd1c-ed7b8998b6d0", - "historySizeBytes": "23670", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "53", - "eventTime": "2025-06-30T16:05:24.058743Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056643", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "51", - "startedEventId": "52", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "54", - "eventTime": "2025-06-30T16:05:24.058762Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056644", - "activityTaskScheduledEventAttributes": { - "activityId": "6", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "be82986c-9ddc-441b-9833-c3fce7c79df1", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJDdXN0b21lciBzZXJ2aWNlIiwic3BhbklkIjoic3Bhbl9hZjJkZWQwZDNkNTA0NWYzYWY0NmY1YzMiLCJ0cmFjZUlkIjoidHJhY2VfMDhhZTY0ZGUyNzQ3NGVkY2IyMWZiYTk4ZjkyYjEyYTEifQ==" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiIyBTeXN0ZW0gY29udGV4dFxuWW91IGFyZSBwYXJ0IG9mIGEgbXVsdGktYWdlbnQgc3lzdGVtIGNhbGxlZCB0aGUgQWdlbnRzIFNESywgZGVzaWduZWQgdG8gbWFrZSBhZ2VudCBjb29yZGluYXRpb24gYW5kIGV4ZWN1dGlvbiBlYXN5LiBBZ2VudHMgdXNlcyB0d28gcHJpbWFyeSBhYnN0cmFjdGlvbjogKipBZ2VudHMqKiBhbmQgKipIYW5kb2ZmcyoqLiBBbiBhZ2VudCBlbmNvbXBhc3NlcyBpbnN0cnVjdGlvbnMgYW5kIHRvb2xzIGFuZCBjYW4gaGFuZCBvZmYgYSBjb252ZXJzYXRpb24gdG8gYW5vdGhlciBhZ2VudCB3aGVuIGFwcHJvcHJpYXRlLiBIYW5kb2ZmcyBhcmUgYWNoaWV2ZWQgYnkgY2FsbGluZyBhIGhhbmRvZmYgZnVuY3Rpb24sIGdlbmVyYWxseSBuYW1lZCBgdHJhbnNmZXJfdG9fPGFnZW50X25hbWU+YC4gVHJhbnNmZXJzIGJldHdlZW4gYWdlbnRzIGFyZSBoYW5kbGVkIHNlYW1sZXNzbHkgaW4gdGhlIGJhY2tncm91bmQ7IGRvIG5vdCBtZW50aW9uIG9yIGRyYXcgYXR0ZW50aW9uIHRvIHRoZXNlIHRyYW5zZmVycyBpbiB5b3VyIGNvbnZlcnNhdGlvbiB3aXRoIHRoZSB1c2VyLlxuXG4gICAgICAgIFlvdSBhcmUgYSBzZWF0IGJvb2tpbmcgYWdlbnQuIElmIHlvdSBhcmUgc3BlYWtpbmcgdG8gYSBjdXN0b21lciwgeW91IHByb2JhYmx5IHdlcmUgdHJhbnNmZXJyZWQgdG8gZnJvbSB0aGUgdHJpYWdlIGFnZW50LlxuICAgICAgICBVc2UgdGhlIGZvbGxvd2luZyByb3V0aW5lIHRvIHN1cHBvcnQgdGhlIGN1c3RvbWVyLlxuICAgICAgICAjIFJvdXRpbmVcbiAgICAgICAgMS4gQXNrIGZvciB0aGVpciBjb25maXJtYXRpb24gbnVtYmVyLlxuICAgICAgICAyLiBBc2sgdGhlIGN1c3RvbWVyIHdoYXQgdGhlaXIgZGVzaXJlZCBzZWF0IG51bWJlciBpcy5cbiAgICAgICAgMy4gVXNlIHRoZSB1cGRhdGUgc2VhdCB0b29sIHRvIHVwZGF0ZSB0aGUgc2VhdCBvbiB0aGUgZmxpZ2h0LlxuICAgICAgICBJZiB0aGUgY3VzdG9tZXIgYXNrcyBhIHF1ZXN0aW9uIHRoYXQgaXMgbm90IHJlbGF0ZWQgdG8gdGhlIHJvdXRpbmUsIHRyYW5zZmVyIGJhY2sgdG8gdGhlIHRyaWFnZSBhZ2VudC4gIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJIZWxsbyIsInJvbGUiOiJ1c2VyIn0seyJpZCI6IiIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IkhpIHRoZXJlISBIb3cgY2FuIEkgYXNzaXN0IHlvdSB0b2RheT8iLCJ0eXBlIjoib3V0cHV0X3RleHQifV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9LHsiY29udGVudCI6IkJvb2sgbWUgYSBmbGlnaHQgdG8gUERYIiwicm9sZSI6InVzZXIifSx7ImFyZ3VtZW50cyI6Int9IiwiY2FsbF9pZCI6ImNhbGwiLCJuYW1lIjoidHJhbnNmZXJfdG9fc2VhdF9ib29raW5nX2FnZW50IiwidHlwZSI6ImZ1bmN0aW9uX2NhbGwiLCJpZCI6ImlkIiwic3RhdHVzIjoiY29tcGxldGVkIn0seyJjYWxsX2lkIjoiY2FsbCIsIm91dHB1dCI6IntcImFzc2lzdGFudFwiOiBcIlNlYXQgQm9va2luZyBBZ2VudFwifSIsInR5cGUiOiJmdW5jdGlvbl9jYWxsX291dHB1dCJ9LHsiaWQiOiIiLCJjb250ZW50IjpbeyJhbm5vdGF0aW9ucyI6W10sInRleHQiOiJDb3VsZCB5b3UgcGxlYXNlIHByb3ZpZGUgeW91ciBjb25maXJtYXRpb24gbnVtYmVyPyIsInR5cGUiOiJvdXRwdXRfdGV4dCJ9XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn0seyJjb250ZW50IjoiMTExMTEiLCJyb2xlIjoidXNlciJ9LHsiaWQiOiIiLCJjb250ZW50IjpbeyJhbm5vdGF0aW9ucyI6W10sInRleHQiOiJUaGFua3MhIFdoYXQgc2VhdCBudW1iZXIgd291bGQgeW91IGxpa2UgdG8gY2hhbmdlIHRvPyIsInR5cGUiOiJvdXRwdXRfdGV4dCJ9XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn0seyJjb250ZW50IjoiQW55IHdpbmRvdyBzZWF0Iiwicm9sZSI6InVzZXIifSx7ImFyZ3VtZW50cyI6IntcImNvbmZpcm1hdGlvbl9udW1iZXJcIjpcIjExMTExXCIsXCJuZXdfc2VhdFwiOlwid2luZG93IHNlYXRcIn0iLCJjYWxsX2lkIjoiY2FsbCIsIm5hbWUiOiJ1cGRhdGVfc2VhdCIsInR5cGUiOiJmdW5jdGlvbl9jYWxsIiwiaWQiOiJpZCIsInN0YXR1cyI6ImNvbXBsZXRlZCJ9LHsiY2FsbF9pZCI6ImNhbGwiLCJvdXRwdXQiOiJVcGRhdGVkIHNlYXQgdG8gd2luZG93IHNlYXQgZm9yIGNvbmZpcm1hdGlvbiBudW1iZXIgMTExMTEiLCJ0eXBlIjoiZnVuY3Rpb25fY2FsbF9vdXRwdXQifV0sIm1vZGVsX3NldHRpbmdzIjp7InRlbXBlcmF0dXJlIjpudWxsLCJ0b3BfcCI6bnVsbCwiZnJlcXVlbmN5X3BlbmFsdHkiOm51bGwsInByZXNlbmNlX3BlbmFsdHkiOm51bGwsInRvb2xfY2hvaWNlIjpudWxsLCJwYXJhbGxlbF90b29sX2NhbGxzIjpudWxsLCJ0cnVuY2F0aW9uIjpudWxsLCJtYXhfdG9rZW5zIjpudWxsLCJyZWFzb25pbmciOm51bGwsIm1ldGFkYXRhIjpudWxsLCJzdG9yZSI6bnVsbCwiaW5jbHVkZV91c2FnZSI6bnVsbCwiZXh0cmFfcXVlcnkiOm51bGwsImV4dHJhX2JvZHkiOm51bGwsImV4dHJhX2hlYWRlcnMiOm51bGwsImV4dHJhX2FyZ3MiOm51bGx9LCJ0b29scyI6W3sibmFtZSI6InVwZGF0ZV9zZWF0IiwiZGVzY3JpcHRpb24iOiJVcGRhdGUgdGhlIHNlYXQgZm9yIGEgZ2l2ZW4gY29uZmlybWF0aW9uIG51bWJlci4iLCJwYXJhbXNfanNvbl9zY2hlbWEiOnsicHJvcGVydGllcyI6eyJjb25maXJtYXRpb25fbnVtYmVyIjp7ImRlc2NyaXB0aW9uIjoiVGhlIGNvbmZpcm1hdGlvbiBudW1iZXIgZm9yIHRoZSBmbGlnaHQuIiwidGl0bGUiOiJDb25maXJtYXRpb24gTnVtYmVyIiwidHlwZSI6InN0cmluZyJ9LCJuZXdfc2VhdCI6eyJkZXNjcmlwdGlvbiI6IlRoZSBuZXcgc2VhdCB0byB1cGRhdGUgdG8uIiwidGl0bGUiOiJOZXcgU2VhdCIsInR5cGUiOiJzdHJpbmcifX0sInJlcXVpcmVkIjpbImNvbmZpcm1hdGlvbl9udW1iZXIiLCJuZXdfc2VhdCJdLCJ0aXRsZSI6InVwZGF0ZV9zZWF0X2FyZ3MiLCJ0eXBlIjoib2JqZWN0IiwiYWRkaXRpb25hbFByb3BlcnRpZXMiOmZhbHNlfSwic3RyaWN0X2pzb25fc2NoZW1hIjp0cnVlfV0sIm91dHB1dF9zY2hlbWEiOm51bGwsImhhbmRvZmZzIjpbeyJ0b29sX25hbWUiOiJ0cmFuc2Zlcl90b190cmlhZ2VfYWdlbnQiLCJ0b29sX2Rlc2NyaXB0aW9uIjoiSGFuZG9mZiB0byB0aGUgVHJpYWdlIEFnZW50IGFnZW50IHRvIGhhbmRsZSB0aGUgcmVxdWVzdC4gQSB0cmlhZ2UgYWdlbnQgdGhhdCBjYW4gZGVsZWdhdGUgYSBjdXN0b21lcidzIHJlcXVlc3QgdG8gdGhlIGFwcHJvcHJpYXRlIGFnZW50LiIsImlucHV0X2pzb25fc2NoZW1hIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpmYWxzZSwidHlwZSI6Im9iamVjdCIsInByb3BlcnRpZXMiOnt9LCJyZXF1aXJlZCI6W119LCJhZ2VudF9uYW1lIjoiVHJpYWdlIEFnZW50Iiwic3RyaWN0X2pzb25fc2NoZW1hIjp0cnVlfV0sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "30s", - "scheduleToStartTimeout": "30s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "53", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - } - }, - { - "eventId": "55", - "eventTime": "2025-06-30T16:05:24.059426Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056649", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "54", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "b69cc310-3113-4c70-9ca1-a68126ef053d", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "56", - "eventTime": "2025-06-30T16:05:24.063888Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056650", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoiIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiWW91ciBzZWF0IGhhcyBiZWVuIHVwZGF0ZWQgdG8gYSB3aW5kb3cgc2VhdC4gSWYgdGhlcmUncyBhbnl0aGluZyBlbHNlIHlvdSBuZWVkLCBmZWVsIGZyZWUgdG8gbGV0IG1lIGtub3chIiwidHlwZSI6Im91dHB1dF90ZXh0In1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjowLCJpbnB1dF90b2tlbnMiOjAsImlucHV0X3Rva2Vuc19kZXRhaWxzIjp7ImNhY2hlZF90b2tlbnMiOjB9LCJvdXRwdXRfdG9rZW5zIjowLCJvdXRwdXRfdG9rZW5zX2RldGFpbHMiOnsicmVhc29uaW5nX3Rva2VucyI6MH0sInRvdGFsX3Rva2VucyI6MH0sInJlc3BvbnNlX2lkIjpudWxsfQ==" - } - ] - }, - "scheduledEventId": "54", - "startedEventId": "55", - "identity": "16915@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "57", - "eventTime": "2025-06-30T16:05:24.063891Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056651", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "58", - "eventTime": "2025-06-30T16:05:24.064527Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056655", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "57", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "225bc0a5-9c60-4007-a024-b4949bdeb592", - "historySizeBytes": "28637", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "59", - "eventTime": "2025-06-30T16:05:24.068715Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056659", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "57", - "startedEventId": "58", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "60", - "eventTime": "2025-06-30T16:05:24.068738Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED", - "taskId": "1056660", - "workflowExecutionUpdateCompletedEventAttributes": { - "meta": { - "updateId": "221628d3-083b-4982-aa48-635abf7e8435", - "identity": "16915@Tims-MacBook-Pro.local" - }, - "outcome": { - "success": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "WyJVc2VyOiBBbnkgd2luZG93IHNlYXQiLCJTZWF0IEJvb2tpbmcgQWdlbnQ6IENhbGxpbmcgYSB0b29sIiwiU2VhdCBCb29raW5nIEFnZW50OiBUb29sIGNhbGwgb3V0cHV0OiBVcGRhdGVkIHNlYXQgdG8gd2luZG93IHNlYXQgZm9yIGNvbmZpcm1hdGlvbiBudW1iZXIgMTExMTEiLCJTZWF0IEJvb2tpbmcgQWdlbnQ6IFlvdXIgc2VhdCBoYXMgYmVlbiB1cGRhdGVkIHRvIGEgd2luZG93IHNlYXQuIElmIHRoZXJlJ3MgYW55dGhpbmcgZWxzZSB5b3UgbmVlZCwgZmVlbCBmcmVlIHRvIGxldCBtZSBrbm93ISJd" - } - ] - } - }, - "acceptedEventId": "47" - } - }, - { - "eventId": "61", - "eventTime": "2025-06-30T16:05:24.072283Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED", - "taskId": "1056662", - "workflowExecutionCancelRequestedEventAttributes": { - "identity": "16915@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "62", - "eventTime": "2025-06-30T16:05:24.072284Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056663", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16915@Tims-MacBook-Pro.local-b3f84e19537b4e0a99176a97b19a0c7d", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "be82986c-9ddc-441b-9833-c3fce7c79df1" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "63", - "eventTime": "2025-06-30T16:05:24.072701Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056667", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "62", - "identity": "16915@Tims-MacBook-Pro.local", - "requestId": "9ab4a693-ed84-4ba7-87cd-88e836962760", - "historySizeBytes": "29489", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "64", - "eventTime": "2025-06-30T16:05:24.078668Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056671", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "62", - "startedEventId": "63", - "identity": "16915@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "65", - "eventTime": "2025-06-30T16:05:24.078680Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED", - "taskId": "1056672", - "workflowExecutionCanceledEventAttributes": { - "workflowTaskCompletedEventId": "64" - } - } - ] -} \ No newline at end of file diff --git a/tests/contrib/openai_agents/histories/hello-workflow-history.json b/tests/contrib/openai_agents/histories/hello-workflow-history.json deleted file mode 100644 index 9532fc831..000000000 --- a/tests/contrib/openai_agents/histories/hello-workflow-history.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "events": [ - { - "eventId": "1", - "eventTime": "2025-06-30T16:01:07.681673Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", - "taskId": "1056333", - "workflowExecutionStartedEventAttributes": { - "workflowType": { - "name": "HelloWorldAgent" - }, - "taskQueue": { - "name": "5dd7a6ba-834c-4206-bcbc-a02599f1b54c", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlRlbGwgbWUgYWJvdXQgcmVjdXJzaW9uIGluIHByb2dyYW1taW5nLiI=" - } - ] - }, - "workflowExecutionTimeout": "5s", - "workflowRunTimeout": "5s", - "workflowTaskTimeout": "5s", - "originalExecutionRunId": "0197c192-1c61-7a41-8852-56960bd15070", - "identity": "16699@Tims-MacBook-Pro.local", - "firstExecutionRunId": "0197c192-1c61-7a41-8852-56960bd15070", - "attempt": 1, - "workflowExecutionExpirationTime": "2025-06-30T16:01:12.681Z", - "firstWorkflowTaskBackoff": "0s", - "workflowId": "hello-workflow-d6d3eaae-b159-424b-aa88-e643e42a35d8" - } - }, - { - "eventId": "2", - "eventTime": "2025-06-30T16:01:07.681730Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056334", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "5dd7a6ba-834c-4206-bcbc-a02599f1b54c", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "5s", - "attempt": 1 - } - }, - { - "eventId": "3", - "eventTime": "2025-06-30T16:01:07.683559Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056340", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "2", - "identity": "16699@Tims-MacBook-Pro.local", - "requestId": "6c233fea-425f-46e0-9ab9-0ffd22c957e7", - "historySizeBytes": "428", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "4", - "eventTime": "2025-06-30T16:01:07.726660Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056344", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "2", - "startedEventId": "3", - "identity": "16699@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": { - "coreUsedFlags": [ - 3, - 1, - 2 - ], - "sdkName": "temporal-python", - "sdkVersion": "1.13.0" - }, - "meteringMetadata": {} - } - }, - { - "eventId": "5", - "eventTime": "2025-06-30T16:01:07.726700Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056345", - "activityTaskScheduledEventAttributes": { - "activityId": "1", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "5dd7a6ba-834c-4206-bcbc-a02599f1b54c", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": {}, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IG9ubHkgcmVzcG9uZCBpbiBoYWlrdXMuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJUZWxsIG1lIGFib3V0IHJlY3Vyc2lvbiBpbiBwcm9ncmFtbWluZy4iLCJyb2xlIjoidXNlciJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOm51bGwsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbXSwib3V0cHV0X3NjaGVtYSI6bnVsbCwiaGFuZG9mZnMiOltdLCJ0cmFjaW5nIjoxLCJwcmV2aW91c19yZXNwb25zZV9pZCI6bnVsbCwicHJvbXB0IjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "5s", - "scheduleToStartTimeout": "5s", - "startToCloseTimeout": "5s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "4", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlRlbGwgbWUgYWJvdXQgcmVjdXJzaW9uIGluIHByb2dyYW1taW5nLiI=" - } - } - }, - { - "eventId": "6", - "eventTime": "2025-06-30T16:01:07.727544Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056350", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "5", - "identity": "16699@Tims-MacBook-Pro.local", - "requestId": "009b2a1e-ebe8-456a-8791-5d66a75d45cc", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "7", - "eventTime": "2025-06-30T16:01:07.744810Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056351", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoiIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoidGVzdCIsInR5cGUiOiJvdXRwdXRfdGV4dCJ9XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn1dLCJ1c2FnZSI6eyJyZXF1ZXN0cyI6MCwiaW5wdXRfdG9rZW5zIjowLCJpbnB1dF90b2tlbnNfZGV0YWlscyI6eyJjYWNoZWRfdG9rZW5zIjowfSwib3V0cHV0X3Rva2VucyI6MCwib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjB9LCJyZXNwb25zZV9pZCI6bnVsbH0=" - } - ] - }, - "scheduledEventId": "5", - "startedEventId": "6", - "identity": "16699@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "8", - "eventTime": "2025-06-30T16:01:07.744814Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056352", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16699@Tims-MacBook-Pro.local-a72d517b7a12431a9fd4070796dab626", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "5dd7a6ba-834c-4206-bcbc-a02599f1b54c" - }, - "startToCloseTimeout": "5s", - "attempt": 1 - } - }, - { - "eventId": "9", - "eventTime": "2025-06-30T16:01:07.745636Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056356", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "8", - "identity": "16699@Tims-MacBook-Pro.local", - "requestId": "d5cac3b9-b484-43e9-97ce-89dd5f587c07", - "historySizeBytes": "2210", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "10", - "eventTime": "2025-06-30T16:01:07.778965Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056360", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "8", - "startedEventId": "9", - "identity": "16699@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "11", - "eventTime": "2025-06-30T16:01:07.778982Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", - "taskId": "1056361", - "workflowExecutionCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "InRlc3Qi" - } - ] - }, - "workflowTaskCompletedEventId": "10" - } - } - ] -} \ No newline at end of file diff --git a/tests/contrib/openai_agents/histories/input-guardrail-workflow-history.json b/tests/contrib/openai_agents/histories/input-guardrail-workflow-history.json deleted file mode 100644 index 2054b1750..000000000 --- a/tests/contrib/openai_agents/histories/input-guardrail-workflow-history.json +++ /dev/null @@ -1,577 +0,0 @@ -{ - "events": [ - { - "eventId": "1", - "eventTime": "2025-06-30T16:59:17.497431Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", - "taskId": "1056913", - "workflowExecutionStartedEventAttributes": { - "workflowType": { - "name": "InputGuardrailWorkflow" - }, - "taskQueue": { - "name": "e488932b-c66d-48b6-97cb-7b8feaa1c41c", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "WyJXaGF0J3MgdGhlIGNhcGl0YWwgb2YgQ2FsaWZvcm5pYT8iLCJDYW4geW91IGhlbHAgbWUgc29sdmUgZm9yIHg6IDJ4ICsgNSA9IDExIl0=" - } - ] - }, - "workflowExecutionTimeout": "10s", - "workflowRunTimeout": "10s", - "workflowTaskTimeout": "10s", - "originalExecutionRunId": "0197c1c7-5c79-768f-914e-2e1b2dfe6e9b", - "identity": "19010@Tims-MacBook-Pro.local", - "firstExecutionRunId": "0197c1c7-5c79-768f-914e-2e1b2dfe6e9b", - "attempt": 1, - "workflowExecutionExpirationTime": "2025-06-30T16:59:27.497Z", - "firstWorkflowTaskBackoff": "0s", - "workflowId": "input-guardrail-4544d2e3-6e97-4fbe-9675-6a6e93d58a18" - } - }, - { - "eventId": "2", - "eventTime": "2025-06-30T16:59:17.497457Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056914", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "e488932b-c66d-48b6-97cb-7b8feaa1c41c", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "3", - "eventTime": "2025-06-30T16:59:17.499098Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056920", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "2", - "identity": "19010@Tims-MacBook-Pro.local", - "requestId": "7fdcced4-cbc0-4089-92e2-ae9e6a9467ed", - "historySizeBytes": "475", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "4", - "eventTime": "2025-06-30T16:59:17.539360Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056924", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "2", - "startedEventId": "3", - "identity": "19010@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": { - "coreUsedFlags": [ - 2, - 3, - 1 - ], - "sdkName": "temporal-python", - "sdkVersion": "1.13.0" - }, - "meteringMetadata": {} - } - }, - { - "eventId": "5", - "eventTime": "2025-06-30T16:59:17.539386Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056925", - "activityTaskScheduledEventAttributes": { - "activityId": "1", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "e488932b-c66d-48b6-97cb-7b8feaa1c41c", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJBZ2VudCB3b3JrZmxvdyIsInNwYW5JZCI6InNwYW5fMDdlMjAxZmNkNjIxNDBjNWE0NTZkMzA0IiwidHJhY2VJZCI6InRyYWNlXzY1MzMyOGZjZWQ4MTQ4NmM4MDkyYzIzMjNjYzk2NTE0In0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIGN1c3RvbWVyIHN1cHBvcnQgYWdlbnQuIFlvdSBoZWxwIGN1c3RvbWVycyB3aXRoIHRoZWlyIHF1ZXN0aW9ucy4iLCJpbnB1dCI6W3sicm9sZSI6InVzZXIiLCJjb250ZW50IjoiV2hhdCdzIHRoZSBjYXBpdGFsIG9mIENhbGlmb3JuaWE/In1dLCJtb2RlbF9zZXR0aW5ncyI6eyJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wX3AiOm51bGwsImZyZXF1ZW5jeV9wZW5hbHR5IjpudWxsLCJwcmVzZW5jZV9wZW5hbHR5IjpudWxsLCJ0b29sX2Nob2ljZSI6bnVsbCwicGFyYWxsZWxfdG9vbF9jYWxscyI6bnVsbCwidHJ1bmNhdGlvbiI6bnVsbCwibWF4X3Rva2VucyI6bnVsbCwicmVhc29uaW5nIjpudWxsLCJtZXRhZGF0YSI6bnVsbCwic3RvcmUiOm51bGwsImluY2x1ZGVfdXNhZ2UiOm51bGwsImV4dHJhX3F1ZXJ5IjpudWxsLCJleHRyYV9ib2R5IjpudWxsLCJleHRyYV9oZWFkZXJzIjpudWxsLCJleHRyYV9hcmdzIjpudWxsfSwidG9vbHMiOltdLCJvdXRwdXRfc2NoZW1hIjpudWxsLCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "10s", - "scheduleToStartTimeout": "10s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "4", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IldoYXQncyB0aGUgY2FwaXRhbCBvZiBDYWxpZm9ybmlhPyI=" - } - } - }, - { - "eventId": "6", - "eventTime": "2025-06-30T16:59:17.539400Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056926", - "activityTaskScheduledEventAttributes": { - "activityId": "2", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "e488932b-c66d-48b6-97cb-7b8feaa1c41c", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJBZ2VudCB3b3JrZmxvdyIsInNwYW5JZCI6InNwYW5fMTFkYjBhZWEyOTZjNGJkZGFjNWEzZjVkIiwidHJhY2VJZCI6InRyYWNlXzY1MzMyOGZjZWQ4MTQ4NmM4MDkyYzIzMjNjYzk2NTE0In0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiQ2hlY2sgaWYgdGhlIHVzZXIgaXMgYXNraW5nIHlvdSB0byBkbyB0aGVpciBtYXRoIGhvbWV3b3JrLiIsImlucHV0IjpbeyJyb2xlIjoidXNlciIsImNvbnRlbnQiOiJXaGF0J3MgdGhlIGNhcGl0YWwgb2YgQ2FsaWZvcm5pYT8ifV0sIm1vZGVsX3NldHRpbmdzIjp7InRlbXBlcmF0dXJlIjpudWxsLCJ0b3BfcCI6bnVsbCwiZnJlcXVlbmN5X3BlbmFsdHkiOm51bGwsInByZXNlbmNlX3BlbmFsdHkiOm51bGwsInRvb2xfY2hvaWNlIjpudWxsLCJwYXJhbGxlbF90b29sX2NhbGxzIjpudWxsLCJ0cnVuY2F0aW9uIjpudWxsLCJtYXhfdG9rZW5zIjpudWxsLCJyZWFzb25pbmciOm51bGwsIm1ldGFkYXRhIjpudWxsLCJzdG9yZSI6bnVsbCwiaW5jbHVkZV91c2FnZSI6bnVsbCwiZXh0cmFfcXVlcnkiOm51bGwsImV4dHJhX2JvZHkiOm51bGwsImV4dHJhX2hlYWRlcnMiOm51bGwsImV4dHJhX2FyZ3MiOm51bGx9LCJ0b29scyI6W10sIm91dHB1dF9zY2hlbWEiOnsib3V0cHV0X3R5cGVfbmFtZSI6Ik1hdGhIb21ld29ya091dHB1dCIsImlzX3dyYXBwZWQiOmZhbHNlLCJvdXRwdXRfc2NoZW1hIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpmYWxzZSwicHJvcGVydGllcyI6eyJyZWFzb25pbmciOnsidGl0bGUiOiJSZWFzb25pbmciLCJ0eXBlIjoic3RyaW5nIn0sImlzX21hdGhfaG9tZXdvcmsiOnsidGl0bGUiOiJJcyBNYXRoIEhvbWV3b3JrIiwidHlwZSI6ImJvb2xlYW4ifX0sInJlcXVpcmVkIjpbInJlYXNvbmluZyIsImlzX21hdGhfaG9tZXdvcmsiXSwidGl0bGUiOiJNYXRoSG9tZXdvcmtPdXRwdXQiLCJ0eXBlIjoib2JqZWN0In0sInN0cmljdF9qc29uX3NjaGVtYSI6dHJ1ZX0sImhhbmRvZmZzIjpbXSwidHJhY2luZyI6MSwicHJldmlvdXNfcmVzcG9uc2VfaWQiOm51bGwsInByb21wdCI6bnVsbH0=" - } - ] - }, - "scheduleToCloseTimeout": "10s", - "scheduleToStartTimeout": "10s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "4", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IldoYXQncyB0aGUgY2FwaXRhbCBvZiBDYWxpZm9ybmlhPyI=" - } - } - }, - { - "eventId": "7", - "eventTime": "2025-06-30T16:59:17.540172Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056933", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "5", - "identity": "19010@Tims-MacBook-Pro.local", - "requestId": "3c026c12-8c94-42c3-b2fa-1255191d6808", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "8", - "eventTime": "2025-06-30T16:59:18.732803Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056934", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoibXNnXzY4NjJjMjY2ODk4ODgxOTE5OWYwYjUzMTM3ODMwY2FkMGNmMzNkMmZlNjJmMDYxOCIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IlRoZSBjYXBpdGFsIG9mIENhbGlmb3JuaWEgaXMgU2FjcmFtZW50by4iLCJ0eXBlIjoib3V0cHV0X3RleHQiLCJsb2dwcm9icyI6W119XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn1dLCJ1c2FnZSI6eyJyZXF1ZXN0cyI6MSwiaW5wdXRfdG9rZW5zIjozMSwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjgsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjozOX0sInJlc3BvbnNlX2lkIjoicmVzcF82ODYyYzI2NjQxMjg4MTkxOWFlNmU1NDIyZTI5MWYyNDBjZjMzZDJmZTYyZjA2MTgifQ==" - } - ] - }, - "scheduledEventId": "5", - "startedEventId": "7", - "identity": "19010@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "9", - "eventTime": "2025-06-30T16:59:18.732810Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056935", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19010@Tims-MacBook-Pro.local-1859b9a9e19c44e0ab0c3e2fdc507859", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "e488932b-c66d-48b6-97cb-7b8feaa1c41c" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "10", - "eventTime": "2025-06-30T16:59:18.734336Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056939", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "9", - "identity": "19010@Tims-MacBook-Pro.local", - "requestId": "fb9bae7c-f784-49df-9f34-4d74b7ce1c02", - "historySizeBytes": "3970", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "11", - "eventTime": "2025-06-30T16:59:18.754123Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056943", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "9", - "startedEventId": "10", - "identity": "19010@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "12", - "eventTime": "2025-06-30T16:59:17.540616Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056945", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "6", - "identity": "19010@Tims-MacBook-Pro.local", - "requestId": "9c1f71c6-2535-44f8-92e6-0a22a88d3880", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "13", - "eventTime": "2025-06-30T16:59:19.301541Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056946", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoibXNnXzY4NjJjMjY2OWFkODgxOTJiNTgyYWEyNWVjNGU1NjEzMGE4YmM4Mzc4ZjRiMjEzMiIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IntcInJlYXNvbmluZ1wiOlwiVGhlIHVzZXIgaXMgYXNraW5nIGZvciB0aGUgY2FwaXRhbCBvZiBDYWxpZm9ybmlhLCB3aGljaCBpcyBTYWNyYW1lbnRvLiBUaGlzIGlzIGEgZ2VvZ3JhcGh5IHF1ZXN0aW9uLCBub3QgYSBtYXRoIGhvbWV3b3JrIHF1ZXN0aW9uLlwiLFwiaXNfbWF0aF9ob21ld29ya1wiOmZhbHNlfSIsInR5cGUiOiJvdXRwdXRfdGV4dCIsImxvZ3Byb2JzIjpbXX1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjoxLCJpbnB1dF90b2tlbnMiOjgxLCJpbnB1dF90b2tlbnNfZGV0YWlscyI6eyJjYWNoZWRfdG9rZW5zIjowfSwib3V0cHV0X3Rva2VucyI6MzgsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjoxMTl9LCJyZXNwb25zZV9pZCI6InJlc3BfNjg2MmMyNjYxZDIwODE5MmI0NWFiM2E1OTRmZWNhYWUwYThiYzgzNzhmNGIyMTMyIn0=" - } - ] - }, - "scheduledEventId": "6", - "startedEventId": "12", - "identity": "19010@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "14", - "eventTime": "2025-06-30T16:59:19.301556Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056947", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19010@Tims-MacBook-Pro.local-1859b9a9e19c44e0ab0c3e2fdc507859", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "e488932b-c66d-48b6-97cb-7b8feaa1c41c" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "15", - "eventTime": "2025-06-30T16:59:19.304340Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056951", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "14", - "identity": "19010@Tims-MacBook-Pro.local", - "requestId": "fe6e7eb1-63c7-41b7-bd00-adcbec4b5e86", - "historySizeBytes": "5199", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "16", - "eventTime": "2025-06-30T16:59:19.330544Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056955", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "14", - "startedEventId": "15", - "identity": "19010@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "17", - "eventTime": "2025-06-30T16:59:19.330594Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056956", - "activityTaskScheduledEventAttributes": { - "activityId": "3", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "e488932b-c66d-48b6-97cb-7b8feaa1c41c", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJBZ2VudCB3b3JrZmxvdyIsInNwYW5JZCI6InNwYW5fYzI5ZmFkZWZjYmY1NDMzYmEwZjVmMzcwIiwidHJhY2VJZCI6InRyYWNlXzBhMDM5MjNlMDQ5NjQ1MTQ5NmQ1NTg2YTEzYmVmNjRlIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIGN1c3RvbWVyIHN1cHBvcnQgYWdlbnQuIFlvdSBoZWxwIGN1c3RvbWVycyB3aXRoIHRoZWlyIHF1ZXN0aW9ucy4iLCJpbnB1dCI6W3sicm9sZSI6InVzZXIiLCJjb250ZW50IjoiV2hhdCdzIHRoZSBjYXBpdGFsIG9mIENhbGlmb3JuaWE/In0seyJpZCI6Im1zZ182ODYyYzI2Njg5ODg4MTkxOTlmMGI1MzEzNzgzMGNhZDBjZjMzZDJmZTYyZjA2MTgiLCJjb250ZW50IjpbeyJhbm5vdGF0aW9ucyI6W10sInRleHQiOiJUaGUgY2FwaXRhbCBvZiBDYWxpZm9ybmlhIGlzIFNhY3JhbWVudG8uIiwidHlwZSI6Im91dHB1dF90ZXh0IiwibG9ncHJvYnMiOltdfV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9LHsicm9sZSI6InVzZXIiLCJjb250ZW50IjoiQ2FuIHlvdSBoZWxwIG1lIHNvbHZlIGZvciB4OiAyeCArIDUgPSAxMSJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOm51bGwsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbXSwib3V0cHV0X3NjaGVtYSI6bnVsbCwiaGFuZG9mZnMiOltdLCJ0cmFjaW5nIjoxLCJwcmV2aW91c19yZXNwb25zZV9pZCI6bnVsbCwicHJvbXB0IjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "10s", - "scheduleToStartTimeout": "10s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "16", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IkNhbiB5b3UgaGVscCBtZSBzb2x2ZSBmb3IgeDogMnggKyA1ID0gMTEi" - } - } - }, - { - "eventId": "18", - "eventTime": "2025-06-30T16:59:19.330630Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056957", - "activityTaskScheduledEventAttributes": { - "activityId": "4", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "e488932b-c66d-48b6-97cb-7b8feaa1c41c", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJBZ2VudCB3b3JrZmxvdyIsInNwYW5JZCI6InNwYW5fMjVkZWI1NzZlNDZjNDcxNzgyNWFmMjNlIiwidHJhY2VJZCI6InRyYWNlXzBhMDM5MjNlMDQ5NjQ1MTQ5NmQ1NTg2YTEzYmVmNjRlIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiQ2hlY2sgaWYgdGhlIHVzZXIgaXMgYXNraW5nIHlvdSB0byBkbyB0aGVpciBtYXRoIGhvbWV3b3JrLiIsImlucHV0IjpbeyJyb2xlIjoidXNlciIsImNvbnRlbnQiOiJXaGF0J3MgdGhlIGNhcGl0YWwgb2YgQ2FsaWZvcm5pYT8ifSx7ImlkIjoibXNnXzY4NjJjMjY2ODk4ODgxOTE5OWYwYjUzMTM3ODMwY2FkMGNmMzNkMmZlNjJmMDYxOCIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IlRoZSBjYXBpdGFsIG9mIENhbGlmb3JuaWEgaXMgU2FjcmFtZW50by4iLCJ0eXBlIjoib3V0cHV0X3RleHQiLCJsb2dwcm9icyI6W119XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn0seyJyb2xlIjoidXNlciIsImNvbnRlbnQiOiJDYW4geW91IGhlbHAgbWUgc29sdmUgZm9yIHg6IDJ4ICsgNSA9IDExIn1dLCJtb2RlbF9zZXR0aW5ncyI6eyJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wX3AiOm51bGwsImZyZXF1ZW5jeV9wZW5hbHR5IjpudWxsLCJwcmVzZW5jZV9wZW5hbHR5IjpudWxsLCJ0b29sX2Nob2ljZSI6bnVsbCwicGFyYWxsZWxfdG9vbF9jYWxscyI6bnVsbCwidHJ1bmNhdGlvbiI6bnVsbCwibWF4X3Rva2VucyI6bnVsbCwicmVhc29uaW5nIjpudWxsLCJtZXRhZGF0YSI6bnVsbCwic3RvcmUiOm51bGwsImluY2x1ZGVfdXNhZ2UiOm51bGwsImV4dHJhX3F1ZXJ5IjpudWxsLCJleHRyYV9ib2R5IjpudWxsLCJleHRyYV9oZWFkZXJzIjpudWxsLCJleHRyYV9hcmdzIjpudWxsfSwidG9vbHMiOltdLCJvdXRwdXRfc2NoZW1hIjp7Im91dHB1dF90eXBlX25hbWUiOiJNYXRoSG9tZXdvcmtPdXRwdXQiLCJpc193cmFwcGVkIjpmYWxzZSwib3V0cHV0X3NjaGVtYSI6eyJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2UsInByb3BlcnRpZXMiOnsicmVhc29uaW5nIjp7InRpdGxlIjoiUmVhc29uaW5nIiwidHlwZSI6InN0cmluZyJ9LCJpc19tYXRoX2hvbWV3b3JrIjp7InRpdGxlIjoiSXMgTWF0aCBIb21ld29yayIsInR5cGUiOiJib29sZWFuIn19LCJyZXF1aXJlZCI6WyJyZWFzb25pbmciLCJpc19tYXRoX2hvbWV3b3JrIl0sInRpdGxlIjoiTWF0aEhvbWV3b3JrT3V0cHV0IiwidHlwZSI6Im9iamVjdCJ9LCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9LCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "10s", - "scheduleToStartTimeout": "10s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "16", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IkNhbiB5b3UgaGVscCBtZSBzb2x2ZSBmb3IgeDogMnggKyA1ID0gMTEi" - } - } - }, - { - "eventId": "19", - "eventTime": "2025-06-30T16:59:19.332558Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056963", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "18", - "identity": "19010@Tims-MacBook-Pro.local", - "requestId": "a94a749b-36e2-4e3e-b0ab-098681af2d43", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "20", - "eventTime": "2025-06-30T16:59:20.830431Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056964", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoibXNnXzY4NjJjMjY3ZGI0YzgxOTE5NzAwY2E0YzA3N2ExNjhjMGNmMzNkMmZlNjJmMDYxOCIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IntcInJlYXNvbmluZ1wiOlwiVGhlIHF1ZXN0aW9uIGludm9sdmVzIHNvbHZpbmcgYSBzaW1wbGUgYWxnZWJyYWljIGVxdWF0aW9uLCB3aGljaCBpcyB0eXBpY2FsbHkgbWF0aCBob21ld29yay5cIixcImlzX21hdGhfaG9tZXdvcmtcIjp0cnVlfSIsInR5cGUiOiJvdXRwdXRfdGV4dCIsImxvZ3Byb2JzIjpbXX1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjoxLCJpbnB1dF90b2tlbnMiOjExMywiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjI4LCJvdXRwdXRfdG9rZW5zX2RldGFpbHMiOnsicmVhc29uaW5nX3Rva2VucyI6MH0sInRvdGFsX3Rva2VucyI6MTQxfSwicmVzcG9uc2VfaWQiOiJyZXNwXzY4NjJjMjY3ODNjODgxOTFiOTUwZWZjZDkyMmVkZGViMGNmMzNkMmZlNjJmMDYxOCJ9" - } - ] - }, - "scheduledEventId": "18", - "startedEventId": "19", - "identity": "19010@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "21", - "eventTime": "2025-06-30T16:59:20.830437Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056965", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19010@Tims-MacBook-Pro.local-1859b9a9e19c44e0ab0c3e2fdc507859", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "e488932b-c66d-48b6-97cb-7b8feaa1c41c" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "22", - "eventTime": "2025-06-30T16:59:20.832113Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056969", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "21", - "identity": "19010@Tims-MacBook-Pro.local", - "requestId": "a1f78a09-290c-44cc-b1f3-69bc460a789f", - "historySizeBytes": "9386", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "23", - "eventTime": "2025-06-30T16:59:20.851289Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056973", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "21", - "startedEventId": "22", - "identity": "19010@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "24", - "eventTime": "2025-06-30T16:59:20.851318Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", - "taskId": "1056974", - "workflowExecutionCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "WyJUaGUgY2FwaXRhbCBvZiBDYWxpZm9ybmlhIGlzIFNhY3JhbWVudG8uIiwiU29ycnksIEkgY2FuJ3QgaGVscCB5b3Ugd2l0aCB5b3VyIG1hdGggaG9tZXdvcmsuIl0=" - } - ] - }, - "workflowTaskCompletedEventId": "23" - } - } - ] -} \ No newline at end of file diff --git a/tests/contrib/openai_agents/histories/output-guardrail-workflow-history.json b/tests/contrib/openai_agents/histories/output-guardrail-workflow-history.json deleted file mode 100644 index a7a62944c..000000000 --- a/tests/contrib/openai_agents/histories/output-guardrail-workflow-history.json +++ /dev/null @@ -1,238 +0,0 @@ -{ - "events": [ - { - "eventId": "1", - "eventTime": "2025-06-30T17:01:02.451819Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", - "taskId": "1057012", - "workflowExecutionStartedEventAttributes": { - "workflowType": { - "name": "OutputGuardrailWorkflow" - }, - "taskQueue": { - "name": "2227feb4-0f1d-4092-9653-308e9366edb0", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "workflowExecutionTimeout": "10s", - "workflowRunTimeout": "10s", - "workflowTaskTimeout": "10s", - "originalExecutionRunId": "0197c1c8-f673-7c7b-a3b7-5b55d2a76055", - "identity": "19075@Tims-MacBook-Pro.local", - "firstExecutionRunId": "0197c1c8-f673-7c7b-a3b7-5b55d2a76055", - "attempt": 1, - "workflowExecutionExpirationTime": "2025-06-30T17:01:12.452Z", - "firstWorkflowTaskBackoff": "0s", - "workflowId": "output-guardrail-7c013c8e-95a7-4b77-8652-2f13ef3f630a" - } - }, - { - "eventId": "2", - "eventTime": "2025-06-30T17:01:02.451853Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057013", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "2227feb4-0f1d-4092-9653-308e9366edb0", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "3", - "eventTime": "2025-06-30T17:01:02.453766Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057019", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "2", - "identity": "19075@Tims-MacBook-Pro.local", - "requestId": "1b34e4ee-2f73-41aa-b870-64018017afd6", - "historySizeBytes": "367", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "4", - "eventTime": "2025-06-30T17:01:02.489825Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057023", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "2", - "startedEventId": "3", - "identity": "19075@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": { - "coreUsedFlags": [ - 3, - 2, - 1 - ], - "sdkName": "temporal-python", - "sdkVersion": "1.13.0" - }, - "meteringMetadata": {} - } - }, - { - "eventId": "5", - "eventTime": "2025-06-30T17:01:02.489848Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057024", - "activityTaskScheduledEventAttributes": { - "activityId": "1", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "2227feb4-0f1d-4092-9653-308e9366edb0", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJBZ2VudCB3b3JrZmxvdyIsInNwYW5JZCI6InNwYW5fOTM4OGFhZjhjM2MzNDRkOThiNWYyODZjIiwidHJhY2VJZCI6InRyYWNlXzFlMTcxMjY1ZTg2NDRjNmViNTQ1MDI3ZDkyZTU3NTA0In0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIGhlbHBmdWwgYXNzaXN0YW50LiIsImlucHV0IjpbeyJjb250ZW50IjoiTXkgcGhvbmUgbnVtYmVyIGlzIDY1MC0xMjMtNDU2Ny4gV2hlcmUgZG8geW91IHRoaW5rIEkgbGl2ZT8iLCJyb2xlIjoidXNlciJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOm51bGwsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbXSwib3V0cHV0X3NjaGVtYSI6eyJvdXRwdXRfdHlwZV9uYW1lIjoiTWVzc2FnZU91dHB1dCIsImlzX3dyYXBwZWQiOmZhbHNlLCJvdXRwdXRfc2NoZW1hIjp7ImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpmYWxzZSwicHJvcGVydGllcyI6eyJyZWFzb25pbmciOnsiZGVzY3JpcHRpb24iOiJUaG91Z2h0cyBvbiBob3cgdG8gcmVzcG9uZCB0byB0aGUgdXNlcidzIG1lc3NhZ2UiLCJ0aXRsZSI6IlJlYXNvbmluZyIsInR5cGUiOiJzdHJpbmcifSwicmVzcG9uc2UiOnsiZGVzY3JpcHRpb24iOiJUaGUgcmVzcG9uc2UgdG8gdGhlIHVzZXIncyBtZXNzYWdlIiwidGl0bGUiOiJSZXNwb25zZSIsInR5cGUiOiJzdHJpbmcifSwidXNlcl9uYW1lIjp7ImFueU9mIjpbeyJ0eXBlIjoic3RyaW5nIn0seyJ0eXBlIjoibnVsbCJ9XSwiZGVzY3JpcHRpb24iOiJUaGUgbmFtZSBvZiB0aGUgdXNlciB3aG8gc2VudCB0aGUgbWVzc2FnZSwgaWYga25vd24iLCJ0aXRsZSI6IlVzZXIgTmFtZSJ9fSwicmVxdWlyZWQiOlsicmVhc29uaW5nIiwicmVzcG9uc2UiLCJ1c2VyX25hbWUiXSwidGl0bGUiOiJNZXNzYWdlT3V0cHV0IiwidHlwZSI6Im9iamVjdCJ9LCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9LCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "10s", - "scheduleToStartTimeout": "10s", - "startToCloseTimeout": "10s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "4", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "Ik15IHBob25lIG51bWJlciBpcyA2NTAtMTIzLTQ1NjcuIFdoZXJlIGRvIHlvdSB0aGluayBJIGxpdmU/Ig==" - } - } - }, - { - "eventId": "6", - "eventTime": "2025-06-30T17:01:02.490525Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057029", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "5", - "identity": "19075@Tims-MacBook-Pro.local", - "requestId": "c9f74d43-742f-4fa0-8f18-ce8272e945e5", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "7", - "eventTime": "2025-06-30T17:01:07.210264Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057030", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoibXNnXzY4NjJjMmQwNGYyODgxOTFhNWNjNGZlNTExZmFjNGQ2MDE5ZmJiMjcwODliMTk0NCIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IntcInJlYXNvbmluZ1wiOlwiVGhlIGFyZWEgY29kZSA2NTAgaXMgYXNzb2NpYXRlZCB3aXRoIHRoZSBTYW4gRnJhbmNpc2NvIEJheSBBcmVhLCBzcGVjaWZpY2FsbHkgdGhlIFNhbiBNYXRlbyBDb3VudHkgYW5kIHBhcnRzIG9mIFNhbnRhIENsYXJhIENvdW50eSBpbiBDYWxpZm9ybmlhLiBIb3dldmVyLCBqdXN0IGJlY2F1c2UgYSBwaG9uZSBudW1iZXIgaGFzIGEgY2VydGFpbiBhcmVhIGNvZGUgZG9lc24ndCBndWFyYW50ZWUgdGhlIHBlcnNvbiBjdXJyZW50bHkgcmVzaWRlcyB0aGVyZSwgYXMgcGVvcGxlIGNhbiBrZWVwIHRoZWlyIG51bWJlciB3aGVuIHRoZXkgbW92ZS5cIixcInJlc3BvbnNlXCI6XCJUaGUgNjUwIGFyZWEgY29kZSBpcyBhc3NvY2lhdGVkIHdpdGggdGhlIFNhbiBGcmFuY2lzY28gQmF5IEFyZWEsIHBhcnRpY3VsYXJseSBhcm91bmQgU2FuIE1hdGVvIGFuZCBwYXJ0cyBvZiBTYW50YSBDbGFyYSBDb3VudHkgaW4gQ2FsaWZvcm5pYS4gRG8geW91IGN1cnJlbnRseSBsaXZlIGluIHRoYXQgcmVnaW9uP1wiLFwidXNlcl9uYW1lXCI6bnVsbH0iLCJ0eXBlIjoib3V0cHV0X3RleHQiLCJsb2dwcm9icyI6W119XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn1dLCJ1c2FnZSI6eyJyZXF1ZXN0cyI6MSwiaW5wdXRfdG9rZW5zIjoxNDAsImlucHV0X3Rva2Vuc19kZXRhaWxzIjp7ImNhY2hlZF90b2tlbnMiOjB9LCJvdXRwdXRfdG9rZW5zIjoxMDYsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjoyNDZ9LCJyZXNwb25zZV9pZCI6InJlc3BfNjg2MmMyY2VkODI4ODE5MWFmYWMwNTc3YmYwNzcxY2QwMTlmYmIyNzA4OWIxOTQ0In0=" - } - ] - }, - "scheduledEventId": "5", - "startedEventId": "6", - "identity": "19075@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "8", - "eventTime": "2025-06-30T17:01:07.210272Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057031", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19075@Tims-MacBook-Pro.local-7257bf626c8f40a3ade67d81e59bc041", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "2227feb4-0f1d-4092-9653-308e9366edb0" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "9", - "eventTime": "2025-06-30T17:01:07.212046Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057035", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "8", - "identity": "19075@Tims-MacBook-Pro.local", - "requestId": "dac29894-c41b-46f8-8c24-5e9cf456b3cf", - "historySizeBytes": "3608", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "10", - "eventTime": "2025-06-30T17:01:07.236912Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057039", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "8", - "startedEventId": "9", - "identity": "19075@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "11", - "eventTime": "2025-06-30T17:01:07.236935Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", - "taskId": "1057040", - "workflowExecutionCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "ZmFsc2U=" - } - ] - }, - "workflowTaskCompletedEventId": "10" - } - } - ] -} \ No newline at end of file diff --git a/tests/contrib/openai_agents/histories/research-workflow-history.json b/tests/contrib/openai_agents/histories/research-workflow-history.json deleted file mode 100644 index be38a0be0..000000000 --- a/tests/contrib/openai_agents/histories/research-workflow-history.json +++ /dev/null @@ -1,1755 +0,0 @@ -{ - "events": [ - { - "eventId": "1", - "eventTime": "2025-06-30T17:04:02.147299Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", - "taskId": "1057045", - "workflowExecutionStartedEventAttributes": { - "workflowType": { - "name": "ResearchWorkflow" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IkNhcmliYmVhbiB2YWNhdGlvbiBzcG90cyBpbiBBcHJpbCwgb3B0aW1pemluZyBmb3Igc3VyZmluZywgaGlraW5nIGFuZCB3YXRlciBzcG9ydHMi" - } - ] - }, - "workflowExecutionTimeout": "120s", - "workflowRunTimeout": "120s", - "workflowTaskTimeout": "10s", - "originalExecutionRunId": "0197c1cb-b463-748c-b871-7ae94b2add9a", - "identity": "19167@Tims-MacBook-Pro.local", - "firstExecutionRunId": "0197c1cb-b463-748c-b871-7ae94b2add9a", - "attempt": 1, - "workflowExecutionExpirationTime": "2025-06-30T17:06:02.147Z", - "firstWorkflowTaskBackoff": "0s", - "workflowId": "research-workflow-73f9d702-cddc-4608-91d8-c9999dc21a77" - } - }, - { - "eventId": "2", - "eventTime": "2025-06-30T17:04:02.147325Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057046", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "3", - "eventTime": "2025-06-30T17:04:02.148179Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057052", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "2", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "3402fa90-f9c3-4948-9fe0-71f8e7410534", - "historySizeBytes": "472", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "4", - "eventTime": "2025-06-30T17:04:02.187114Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057056", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "2", - "startedEventId": "3", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": { - "coreUsedFlags": [ - 3, - 1, - 2 - ], - "sdkName": "temporal-python", - "sdkVersion": "1.13.0" - }, - "meteringMetadata": {} - } - }, - { - "eventId": "5", - "eventTime": "2025-06-30T17:04:02.187138Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057057", - "activityTaskScheduledEventAttributes": { - "activityId": "1", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fODk0ZTM0YTlkYTM1NDdjMjkxZDNmODQzIiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIGhlbHBmdWwgcmVzZWFyY2ggYXNzaXN0YW50LiBHaXZlbiBhIHF1ZXJ5LCBjb21lIHVwIHdpdGggYSBzZXQgb2Ygd2ViIHNlYXJjaGVzIHRvIHBlcmZvcm0gdG8gYmVzdCBhbnN3ZXIgdGhlIHF1ZXJ5LiBPdXRwdXQgYmV0d2VlbiA1IGFuZCAyMCB0ZXJtcyB0byBxdWVyeSBmb3IuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJRdWVyeTogQ2FyaWJiZWFuIHZhY2F0aW9uIHNwb3RzIGluIEFwcmlsLCBvcHRpbWl6aW5nIGZvciBzdXJmaW5nLCBoaWtpbmcgYW5kIHdhdGVyIHNwb3J0cyIsInJvbGUiOiJ1c2VyIn1dLCJtb2RlbF9zZXR0aW5ncyI6eyJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wX3AiOm51bGwsImZyZXF1ZW5jeV9wZW5hbHR5IjpudWxsLCJwcmVzZW5jZV9wZW5hbHR5IjpudWxsLCJ0b29sX2Nob2ljZSI6bnVsbCwicGFyYWxsZWxfdG9vbF9jYWxscyI6bnVsbCwidHJ1bmNhdGlvbiI6bnVsbCwibWF4X3Rva2VucyI6bnVsbCwicmVhc29uaW5nIjpudWxsLCJtZXRhZGF0YSI6bnVsbCwic3RvcmUiOm51bGwsImluY2x1ZGVfdXNhZ2UiOm51bGwsImV4dHJhX3F1ZXJ5IjpudWxsLCJleHRyYV9ib2R5IjpudWxsLCJleHRyYV9oZWFkZXJzIjpudWxsLCJleHRyYV9hcmdzIjpudWxsfSwidG9vbHMiOltdLCJvdXRwdXRfc2NoZW1hIjp7Im91dHB1dF90eXBlX25hbWUiOiJXZWJTZWFyY2hQbGFuIiwiaXNfd3JhcHBlZCI6ZmFsc2UsIm91dHB1dF9zY2hlbWEiOnsiJGRlZnMiOnsiV2ViU2VhcmNoSXRlbSI6eyJwcm9wZXJ0aWVzIjp7InJlYXNvbiI6eyJ0aXRsZSI6IlJlYXNvbiIsInR5cGUiOiJzdHJpbmcifSwicXVlcnkiOnsidGl0bGUiOiJRdWVyeSIsInR5cGUiOiJzdHJpbmcifX0sInJlcXVpcmVkIjpbInJlYXNvbiIsInF1ZXJ5Il0sInRpdGxlIjoiV2ViU2VhcmNoSXRlbSIsInR5cGUiOiJvYmplY3QiLCJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2V9fSwicHJvcGVydGllcyI6eyJzZWFyY2hlcyI6eyJpdGVtcyI6eyIkcmVmIjoiIy8kZGVmcy9XZWJTZWFyY2hJdGVtIn0sInRpdGxlIjoiU2VhcmNoZXMiLCJ0eXBlIjoiYXJyYXkifX0sInJlcXVpcmVkIjpbInNlYXJjaGVzIl0sInRpdGxlIjoiV2ViU2VhcmNoUGxhbiIsInR5cGUiOiJvYmplY3QiLCJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2V9LCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9LCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "4", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlF1ZXJ5OiBDYXJpYmJlYW4gdmFjYXRpb24gc3BvdHMgaW4gQXByaWwsIG9wdGltaXppbmcgZm9yIHN1cmZpbmcsIGhpa2luZyBhbmQgd2F0ZXIgc3BvcnRzIg==" - } - } - }, - { - "eventId": "6", - "eventTime": "2025-06-30T17:04:02.187940Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057062", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "5", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "f624e2d5-6ce2-4b33-aa8e-e60051a1e843", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "7", - "eventTime": "2025-06-30T17:04:08.022291Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057063", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoibXNnXzY4NjJjMzgzMTU2MDgxOTJiZjA5MDQ1Nzg1NmRhY2RhMDFlMzE0ODRkMWY3MjhmYSIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IntcInNlYXJjaGVzXCI6W3tcInJlYXNvblwiOlwiVG8gZmluZCBkZXN0aW5hdGlvbnMgaW4gdGhlIENhcmliYmVhbiB0aGF0IGFyZSBpZGVhbCBmb3Igc3VyZmluZyBpbiBBcHJpbC5cIixcInF1ZXJ5XCI6XCJiZXN0IENhcmliYmVhbiBzdXJmaW5nIHNwb3RzIGluIEFwcmlsXCJ9LHtcInJlYXNvblwiOlwiVG8gaWRlbnRpZnkgdG9wIGhpa2luZyBkZXN0aW5hdGlvbnMgaW4gdGhlIENhcmliYmVhbiBmb3IgQXByaWwgdmFjYXRpb25zLlwiLFwicXVlcnlcIjpcImJlc3QgQ2FyaWJiZWFuIGhpa2luZyBkZXN0aW5hdGlvbnMgQXByaWxcIn0se1wicmVhc29uXCI6XCJUbyBleHBsb3JlIGdlbmVyYWwgQ2FyaWJiZWFuIHdhdGVyIHNwb3J0cyBvcHBvcnR1bml0aWVzIGF2YWlsYWJsZSBpbiBBcHJpbC5cIixcInF1ZXJ5XCI6XCJ0b3AgQ2FyaWJiZWFuIHdhdGVyIHNwb3J0cyBpbiBBcHJpbFwifSx7XCJyZWFzb25cIjpcIlRvIGRldGVybWluZSBzcGVjaWZpYyBpc2xhbmRzIGluIHRoZSBDYXJpYmJlYW4ga25vd24gZm9yIG91dGRvb3IgYWN0aXZpdGllcyBsaWtlIHN1cmZpbmcgYW5kIGhpa2luZyBpbiBBcHJpbC5cIixcInF1ZXJ5XCI6XCJDYXJpYmJlYW4gaXNsYW5kcyBzdXJmaW5nIGhpa2luZyBBcHJpbFwifSx7XCJyZWFzb25cIjpcIlRvIGZpbmQgdHJhdmVsIGd1aWRlcyBmb2N1c2luZyBvbiBvdXRkb29yIGFkdmVudHVyZSBpbiB0aGUgQ2FyaWJiZWFuIGR1cmluZyBBcHJpbC5cIixcInF1ZXJ5XCI6XCJDYXJpYmJlYW4gYWR2ZW50dXJlIHRyYXZlbCBndWlkZXMgQXByaWxcIn0se1wicmVhc29uXCI6XCJUbyBsZWFybiBhYm91dCB3ZWF0aGVyIGNvbmRpdGlvbnMgaW4gdGhlIENhcmliYmVhbiBpbiBBcHJpbCwgZm9jdXNpbmcgb24gb3V0ZG9vciBhY3Rpdml0aWVzLlwiLFwicXVlcnlcIjpcIkNhcmliYmVhbiB3ZWF0aGVyIEFwcmlsIHN1cmZpbmcgaGlraW5nXCJ9LHtcInJlYXNvblwiOlwiVG8gZGlzY292ZXIgYWxsLWluY2x1c2l2ZSB2YWNhdGlvbiBwYWNrYWdlcyBmb3IgYW4gYWR2ZW50dXJlLWZvY3VzZWQgQXByaWwgdHJpcC5cIixcInF1ZXJ5XCI6XCJDYXJpYmJlYW4gdmFjYXRpb24gcGFja2FnZXMgc3VyZmluZyBoaWtpbmcgQXByaWxcIn0se1wicmVhc29uXCI6XCJUbyByZWFkIHJldmlld3MgZnJvbSB0cmF2ZWxlcnMgd2hvIHZpc2l0ZWQgdGhlIENhcmliYmVhbiBmb3IgYWN0aXZlIHZhY2F0aW9ucyBpbiBBcHJpbC5cIixcInF1ZXJ5XCI6XCJDYXJpYmJlYW4gYWR2ZW50dXJlIHZhY2F0aW9uIHJldmlld3MgQXByaWxcIn0se1wicmVhc29uXCI6XCJUbyBmaW5kIGluZm9ybWF0aW9uIG9uIHJlbnRhbCBlcXVpcG1lbnQgYXZhaWxhYmlsaXR5IGZvciB3YXRlciBzcG9ydHMgYW5kIGhpa2luZyBpbiB0aGUgQ2FyaWJiZWFuLlwiLFwicXVlcnlcIjpcIndhdGVyIHNwb3J0cyBnZWFyIHJlbnRhbHMgQ2FyaWJiZWFuIEFwcmlsXCJ9LHtcInJlYXNvblwiOlwiVG8gY2hlY2sgZm9yIGFueSBmZXN0aXZhbHMgb3IgZXZlbnRzIHJlbGF0ZWQgdG8gc3VyZmluZyBvciB3YXRlciBzcG9ydHMgaW4gdGhlIENhcmliYmVhbiBpbiBBcHJpbC5cIixcInF1ZXJ5XCI6XCJDYXJpYmJlYW4gc3VyZmluZyBmZXN0aXZhbHMgQXByaWxcIn1dfSIsInR5cGUiOiJvdXRwdXRfdGV4dCIsImxvZ3Byb2JzIjpbXX1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjoxLCJpbnB1dF90b2tlbnMiOjE1NiwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjI2NCwib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjQyMH0sInJlc3BvbnNlX2lkIjoicmVzcF82ODYyYzM4Mjg5MWM4MTkyYjllYmM1ZTczZTZjYjkyNzAxZTMxNDg0ZDFmNzI4ZmEifQ==" - } - ] - }, - "scheduledEventId": "5", - "startedEventId": "6", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "8", - "eventTime": "2025-06-30T17:04:08.022297Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057064", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "9", - "eventTime": "2025-06-30T17:04:08.023559Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057068", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "8", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "be4c32dd-d90a-466e-890e-acf232228fe2", - "historySizeBytes": "4901", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "10", - "eventTime": "2025-06-30T17:04:08.052244Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057072", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "8", - "startedEventId": "9", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "11", - "eventTime": "2025-06-30T17:04:08.052279Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057073", - "activityTaskScheduledEventAttributes": { - "activityId": "2", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fMGQ4ZjIzZmU3N2ZiNDUyMTgzMjg5NWE1IiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogYmVzdCBDYXJpYmJlYW4gc3VyZmluZyBzcG90cyBpbiBBcHJpbFxuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGZpbmQgZGVzdGluYXRpb25zIGluIHRoZSBDYXJpYmJlYW4gdGhhdCBhcmUgaWRlYWwgZm9yIHN1cmZpbmcgaW4gQXByaWwuIiwicm9sZSI6InVzZXIifV0sIm1vZGVsX3NldHRpbmdzIjp7InRlbXBlcmF0dXJlIjpudWxsLCJ0b3BfcCI6bnVsbCwiZnJlcXVlbmN5X3BlbmFsdHkiOm51bGwsInByZXNlbmNlX3BlbmFsdHkiOm51bGwsInRvb2xfY2hvaWNlIjoicmVxdWlyZWQiLCJwYXJhbGxlbF90b29sX2NhbGxzIjpudWxsLCJ0cnVuY2F0aW9uIjpudWxsLCJtYXhfdG9rZW5zIjpudWxsLCJyZWFzb25pbmciOm51bGwsIm1ldGFkYXRhIjpudWxsLCJzdG9yZSI6bnVsbCwiaW5jbHVkZV91c2FnZSI6bnVsbCwiZXh0cmFfcXVlcnkiOm51bGwsImV4dHJhX2JvZHkiOm51bGwsImV4dHJhX2hlYWRlcnMiOm51bGwsImV4dHJhX2FyZ3MiOm51bGx9LCJ0b29scyI6W3sidXNlcl9sb2NhdGlvbiI6bnVsbCwic2VhcmNoX2NvbnRleHRfc2l6ZSI6Im1lZGl1bSJ9XSwib3V0cHV0X3NjaGVtYSI6bnVsbCwiaGFuZG9mZnMiOltdLCJ0cmFjaW5nIjoxLCJwcmV2aW91c19yZXNwb25zZV9pZCI6bnVsbCwicHJvbXB0IjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiBiZXN0IENhcmliYmVhbiBzdXJmaW5nIHNwb3RzIGluIEFwcmlsXG5SZWFzb24gZm9yIHNlYXJjaGluZzogVG8gZmluZCBkZXN0aW5hdGlvbnMgaW4gdGhlIg==" - } - } - }, - { - "eventId": "12", - "eventTime": "2025-06-30T17:04:08.052305Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057074", - "activityTaskScheduledEventAttributes": { - "activityId": "3", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fNzVkZGQwY2I1MGRkNDlmZTk1OGUwNDM0IiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogYmVzdCBDYXJpYmJlYW4gaGlraW5nIGRlc3RpbmF0aW9ucyBBcHJpbFxuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGlkZW50aWZ5IHRvcCBoaWtpbmcgZGVzdGluYXRpb25zIGluIHRoZSBDYXJpYmJlYW4gZm9yIEFwcmlsIHZhY2F0aW9ucy4iLCJyb2xlIjoidXNlciJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOiJyZXF1aXJlZCIsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbeyJ1c2VyX2xvY2F0aW9uIjpudWxsLCJzZWFyY2hfY29udGV4dF9zaXplIjoibWVkaXVtIn1dLCJvdXRwdXRfc2NoZW1hIjpudWxsLCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiBiZXN0IENhcmliYmVhbiBoaWtpbmcgZGVzdGluYXRpb25zIEFwcmlsXG5SZWFzb24gZm9yIHNlYXJjaGluZzogVG8gaWRlbnRpZnkgdG9wIGhpa2luZyBkIg==" - } - } - }, - { - "eventId": "13", - "eventTime": "2025-06-30T17:04:08.052314Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057075", - "activityTaskScheduledEventAttributes": { - "activityId": "4", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fZjA1ZmY2MGFmMTgwNDIyZTk5NDNiZDQwIiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogdG9wIENhcmliYmVhbiB3YXRlciBzcG9ydHMgaW4gQXByaWxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBleHBsb3JlIGdlbmVyYWwgQ2FyaWJiZWFuIHdhdGVyIHNwb3J0cyBvcHBvcnR1bml0aWVzIGF2YWlsYWJsZSBpbiBBcHJpbC4iLCJyb2xlIjoidXNlciJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOiJyZXF1aXJlZCIsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbeyJ1c2VyX2xvY2F0aW9uIjpudWxsLCJzZWFyY2hfY29udGV4dF9zaXplIjoibWVkaXVtIn1dLCJvdXRwdXRfc2NoZW1hIjpudWxsLCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiB0b3AgQ2FyaWJiZWFuIHdhdGVyIHNwb3J0cyBpbiBBcHJpbFxuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGV4cGxvcmUgZ2VuZXJhbCBDYXJpYmJlYW4gIg==" - } - } - }, - { - "eventId": "14", - "eventTime": "2025-06-30T17:04:08.052320Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057076", - "activityTaskScheduledEventAttributes": { - "activityId": "5", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fNWNjYWE0NGVlNDUzNGM3NzljZTdjMWRmIiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogQ2FyaWJiZWFuIGlzbGFuZHMgc3VyZmluZyBoaWtpbmcgQXByaWxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBkZXRlcm1pbmUgc3BlY2lmaWMgaXNsYW5kcyBpbiB0aGUgQ2FyaWJiZWFuIGtub3duIGZvciBvdXRkb29yIGFjdGl2aXRpZXMgbGlrZSBzdXJmaW5nIGFuZCBoaWtpbmcgaW4gQXByaWwuIiwicm9sZSI6InVzZXIifV0sIm1vZGVsX3NldHRpbmdzIjp7InRlbXBlcmF0dXJlIjpudWxsLCJ0b3BfcCI6bnVsbCwiZnJlcXVlbmN5X3BlbmFsdHkiOm51bGwsInByZXNlbmNlX3BlbmFsdHkiOm51bGwsInRvb2xfY2hvaWNlIjoicmVxdWlyZWQiLCJwYXJhbGxlbF90b29sX2NhbGxzIjpudWxsLCJ0cnVuY2F0aW9uIjpudWxsLCJtYXhfdG9rZW5zIjpudWxsLCJyZWFzb25pbmciOm51bGwsIm1ldGFkYXRhIjpudWxsLCJzdG9yZSI6bnVsbCwiaW5jbHVkZV91c2FnZSI6bnVsbCwiZXh0cmFfcXVlcnkiOm51bGwsImV4dHJhX2JvZHkiOm51bGwsImV4dHJhX2hlYWRlcnMiOm51bGwsImV4dHJhX2FyZ3MiOm51bGx9LCJ0b29scyI6W3sidXNlcl9sb2NhdGlvbiI6bnVsbCwic2VhcmNoX2NvbnRleHRfc2l6ZSI6Im1lZGl1bSJ9XSwib3V0cHV0X3NjaGVtYSI6bnVsbCwiaGFuZG9mZnMiOltdLCJ0cmFjaW5nIjoxLCJwcmV2aW91c19yZXNwb25zZV9pZCI6bnVsbCwicHJvbXB0IjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiBDYXJpYmJlYW4gaXNsYW5kcyBzdXJmaW5nIGhpa2luZyBBcHJpbFxuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGRldGVybWluZSBzcGVjaWZpYyBpc2xhIg==" - } - } - }, - { - "eventId": "15", - "eventTime": "2025-06-30T17:04:08.052331Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057077", - "activityTaskScheduledEventAttributes": { - "activityId": "6", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fZGU2MjJhMmZlNGY0NDJmMmEwMGIxZTFiIiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogQ2FyaWJiZWFuIGFkdmVudHVyZSB0cmF2ZWwgZ3VpZGVzIEFwcmlsXG5SZWFzb24gZm9yIHNlYXJjaGluZzogVG8gZmluZCB0cmF2ZWwgZ3VpZGVzIGZvY3VzaW5nIG9uIG91dGRvb3IgYWR2ZW50dXJlIGluIHRoZSBDYXJpYmJlYW4gZHVyaW5nIEFwcmlsLiIsInJvbGUiOiJ1c2VyIn1dLCJtb2RlbF9zZXR0aW5ncyI6eyJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wX3AiOm51bGwsImZyZXF1ZW5jeV9wZW5hbHR5IjpudWxsLCJwcmVzZW5jZV9wZW5hbHR5IjpudWxsLCJ0b29sX2Nob2ljZSI6InJlcXVpcmVkIiwicGFyYWxsZWxfdG9vbF9jYWxscyI6bnVsbCwidHJ1bmNhdGlvbiI6bnVsbCwibWF4X3Rva2VucyI6bnVsbCwicmVhc29uaW5nIjpudWxsLCJtZXRhZGF0YSI6bnVsbCwic3RvcmUiOm51bGwsImluY2x1ZGVfdXNhZ2UiOm51bGwsImV4dHJhX3F1ZXJ5IjpudWxsLCJleHRyYV9ib2R5IjpudWxsLCJleHRyYV9oZWFkZXJzIjpudWxsLCJleHRyYV9hcmdzIjpudWxsfSwidG9vbHMiOlt7InVzZXJfbG9jYXRpb24iOm51bGwsInNlYXJjaF9jb250ZXh0X3NpemUiOiJtZWRpdW0ifV0sIm91dHB1dF9zY2hlbWEiOm51bGwsImhhbmRvZmZzIjpbXSwidHJhY2luZyI6MSwicHJldmlvdXNfcmVzcG9uc2VfaWQiOm51bGwsInByb21wdCI6bnVsbH0=" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiBDYXJpYmJlYW4gYWR2ZW50dXJlIHRyYXZlbCBndWlkZXMgQXByaWxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBmaW5kIHRyYXZlbCBndWlkZXMgZm9jIg==" - } - } - }, - { - "eventId": "16", - "eventTime": "2025-06-30T17:04:08.052336Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057078", - "activityTaskScheduledEventAttributes": { - "activityId": "7", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fMGI1ODRlYzQyOTE4NDA2NmE0OGQwMTM4IiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogQ2FyaWJiZWFuIHdlYXRoZXIgQXByaWwgc3VyZmluZyBoaWtpbmdcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBsZWFybiBhYm91dCB3ZWF0aGVyIGNvbmRpdGlvbnMgaW4gdGhlIENhcmliYmVhbiBpbiBBcHJpbCwgZm9jdXNpbmcgb24gb3V0ZG9vciBhY3Rpdml0aWVzLiIsInJvbGUiOiJ1c2VyIn1dLCJtb2RlbF9zZXR0aW5ncyI6eyJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wX3AiOm51bGwsImZyZXF1ZW5jeV9wZW5hbHR5IjpudWxsLCJwcmVzZW5jZV9wZW5hbHR5IjpudWxsLCJ0b29sX2Nob2ljZSI6InJlcXVpcmVkIiwicGFyYWxsZWxfdG9vbF9jYWxscyI6bnVsbCwidHJ1bmNhdGlvbiI6bnVsbCwibWF4X3Rva2VucyI6bnVsbCwicmVhc29uaW5nIjpudWxsLCJtZXRhZGF0YSI6bnVsbCwic3RvcmUiOm51bGwsImluY2x1ZGVfdXNhZ2UiOm51bGwsImV4dHJhX3F1ZXJ5IjpudWxsLCJleHRyYV9ib2R5IjpudWxsLCJleHRyYV9oZWFkZXJzIjpudWxsLCJleHRyYV9hcmdzIjpudWxsfSwidG9vbHMiOlt7InVzZXJfbG9jYXRpb24iOm51bGwsInNlYXJjaF9jb250ZXh0X3NpemUiOiJtZWRpdW0ifV0sIm91dHB1dF9zY2hlbWEiOm51bGwsImhhbmRvZmZzIjpbXSwidHJhY2luZyI6MSwicHJldmlvdXNfcmVzcG9uc2VfaWQiOm51bGwsInByb21wdCI6bnVsbH0=" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiBDYXJpYmJlYW4gd2VhdGhlciBBcHJpbCBzdXJmaW5nIGhpa2luZ1xuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGxlYXJuIGFib3V0IHdlYXRoZXIgY29uIg==" - } - } - }, - { - "eventId": "17", - "eventTime": "2025-06-30T17:04:08.052343Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057079", - "activityTaskScheduledEventAttributes": { - "activityId": "8", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fMTAxYTRmMjUzMzgyNDU1ZmE2NjczMDU4IiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogQ2FyaWJiZWFuIHZhY2F0aW9uIHBhY2thZ2VzIHN1cmZpbmcgaGlraW5nIEFwcmlsXG5SZWFzb24gZm9yIHNlYXJjaGluZzogVG8gZGlzY292ZXIgYWxsLWluY2x1c2l2ZSB2YWNhdGlvbiBwYWNrYWdlcyBmb3IgYW4gYWR2ZW50dXJlLWZvY3VzZWQgQXByaWwgdHJpcC4iLCJyb2xlIjoidXNlciJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOiJyZXF1aXJlZCIsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbeyJ1c2VyX2xvY2F0aW9uIjpudWxsLCJzZWFyY2hfY29udGV4dF9zaXplIjoibWVkaXVtIn1dLCJvdXRwdXRfc2NoZW1hIjpudWxsLCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiBDYXJpYmJlYW4gdmFjYXRpb24gcGFja2FnZXMgc3VyZmluZyBoaWtpbmcgQXByaWxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBkaXNjb3ZlciBhbGwtIg==" - } - } - }, - { - "eventId": "18", - "eventTime": "2025-06-30T17:04:08.052350Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057080", - "activityTaskScheduledEventAttributes": { - "activityId": "9", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fMThlZjMzYmI0ODFjNDM1M2I2NjA5YTU3IiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogQ2FyaWJiZWFuIGFkdmVudHVyZSB2YWNhdGlvbiByZXZpZXdzIEFwcmlsXG5SZWFzb24gZm9yIHNlYXJjaGluZzogVG8gcmVhZCByZXZpZXdzIGZyb20gdHJhdmVsZXJzIHdobyB2aXNpdGVkIHRoZSBDYXJpYmJlYW4gZm9yIGFjdGl2ZSB2YWNhdGlvbnMgaW4gQXByaWwuIiwicm9sZSI6InVzZXIifV0sIm1vZGVsX3NldHRpbmdzIjp7InRlbXBlcmF0dXJlIjpudWxsLCJ0b3BfcCI6bnVsbCwiZnJlcXVlbmN5X3BlbmFsdHkiOm51bGwsInByZXNlbmNlX3BlbmFsdHkiOm51bGwsInRvb2xfY2hvaWNlIjoicmVxdWlyZWQiLCJwYXJhbGxlbF90b29sX2NhbGxzIjpudWxsLCJ0cnVuY2F0aW9uIjpudWxsLCJtYXhfdG9rZW5zIjpudWxsLCJyZWFzb25pbmciOm51bGwsIm1ldGFkYXRhIjpudWxsLCJzdG9yZSI6bnVsbCwiaW5jbHVkZV91c2FnZSI6bnVsbCwiZXh0cmFfcXVlcnkiOm51bGwsImV4dHJhX2JvZHkiOm51bGwsImV4dHJhX2hlYWRlcnMiOm51bGwsImV4dHJhX2FyZ3MiOm51bGx9LCJ0b29scyI6W3sidXNlcl9sb2NhdGlvbiI6bnVsbCwic2VhcmNoX2NvbnRleHRfc2l6ZSI6Im1lZGl1bSJ9XSwib3V0cHV0X3NjaGVtYSI6bnVsbCwiaGFuZG9mZnMiOltdLCJ0cmFjaW5nIjoxLCJwcmV2aW91c19yZXNwb25zZV9pZCI6bnVsbCwicHJvbXB0IjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiBDYXJpYmJlYW4gYWR2ZW50dXJlIHZhY2F0aW9uIHJldmlld3MgQXByaWxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyByZWFkIHJldmlld3MgZnJvbSB0Ig==" - } - } - }, - { - "eventId": "19", - "eventTime": "2025-06-30T17:04:08.052356Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057081", - "activityTaskScheduledEventAttributes": { - "activityId": "10", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fZGY5YjBmMTc5ZDgwNDZhODk1NGE2MmI4IiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogd2F0ZXIgc3BvcnRzIGdlYXIgcmVudGFscyBDYXJpYmJlYW4gQXByaWxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBmaW5kIGluZm9ybWF0aW9uIG9uIHJlbnRhbCBlcXVpcG1lbnQgYXZhaWxhYmlsaXR5IGZvciB3YXRlciBzcG9ydHMgYW5kIGhpa2luZyBpbiB0aGUgQ2FyaWJiZWFuLiIsInJvbGUiOiJ1c2VyIn1dLCJtb2RlbF9zZXR0aW5ncyI6eyJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wX3AiOm51bGwsImZyZXF1ZW5jeV9wZW5hbHR5IjpudWxsLCJwcmVzZW5jZV9wZW5hbHR5IjpudWxsLCJ0b29sX2Nob2ljZSI6InJlcXVpcmVkIiwicGFyYWxsZWxfdG9vbF9jYWxscyI6bnVsbCwidHJ1bmNhdGlvbiI6bnVsbCwibWF4X3Rva2VucyI6bnVsbCwicmVhc29uaW5nIjpudWxsLCJtZXRhZGF0YSI6bnVsbCwic3RvcmUiOm51bGwsImluY2x1ZGVfdXNhZ2UiOm51bGwsImV4dHJhX3F1ZXJ5IjpudWxsLCJleHRyYV9ib2R5IjpudWxsLCJleHRyYV9oZWFkZXJzIjpudWxsLCJleHRyYV9hcmdzIjpudWxsfSwidG9vbHMiOlt7InVzZXJfbG9jYXRpb24iOm51bGwsInNlYXJjaF9jb250ZXh0X3NpemUiOiJtZWRpdW0ifV0sIm91dHB1dF9zY2hlbWEiOm51bGwsImhhbmRvZmZzIjpbXSwidHJhY2luZyI6MSwicHJldmlvdXNfcmVzcG9uc2VfaWQiOm51bGwsInByb21wdCI6bnVsbH0=" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiB3YXRlciBzcG9ydHMgZ2VhciByZW50YWxzIENhcmliYmVhbiBBcHJpbFxuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGZpbmQgaW5mb3JtYXRpb24gb24gIg==" - } - } - }, - { - "eventId": "20", - "eventTime": "2025-06-30T17:04:08.052364Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057082", - "activityTaskScheduledEventAttributes": { - "activityId": "11", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fZmQ5MDM0YzhmYjEzNDM3NmI5NTFiNTQxIiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHJlc2VhcmNoIGFzc2lzdGFudC4gR2l2ZW4gYSBzZWFyY2ggdGVybSwgeW91IHNlYXJjaCB0aGUgd2ViIGZvciB0aGF0IHRlcm0gYW5kIHByb2R1Y2UgYSBjb25jaXNlIHN1bW1hcnkgb2YgdGhlIHJlc3VsdHMuIFRoZSBzdW1tYXJ5IG11c3QgMi0zIHBhcmFncmFwaHMgYW5kIGxlc3MgdGhhbiAzMDAgd29yZHMuIENhcHR1cmUgdGhlIG1haW4gcG9pbnRzLiBXcml0ZSBzdWNjaW5jdGx5LCBubyBuZWVkIHRvIGhhdmUgY29tcGxldGUgc2VudGVuY2VzIG9yIGdvb2QgZ3JhbW1hci4gVGhpcyB3aWxsIGJlIGNvbnN1bWVkIGJ5IHNvbWVvbmUgc3ludGhlc2l6aW5nIGEgcmVwb3J0LCBzbyBpdHMgdml0YWwgeW91IGNhcHR1cmUgdGhlIGVzc2VuY2UgYW5kIGlnbm9yZSBhbnkgZmx1ZmYuIERvIG5vdCBpbmNsdWRlIGFueSBhZGRpdGlvbmFsIGNvbW1lbnRhcnkgb3RoZXIgdGhhbiB0aGUgc3VtbWFyeSBpdHNlbGYuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJTZWFyY2ggdGVybTogQ2FyaWJiZWFuIHN1cmZpbmcgZmVzdGl2YWxzIEFwcmlsXG5SZWFzb24gZm9yIHNlYXJjaGluZzogVG8gY2hlY2sgZm9yIGFueSBmZXN0aXZhbHMgb3IgZXZlbnRzIHJlbGF0ZWQgdG8gc3VyZmluZyBvciB3YXRlciBzcG9ydHMgaW4gdGhlIENhcmliYmVhbiBpbiBBcHJpbC4iLCJyb2xlIjoidXNlciJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOiJyZXF1aXJlZCIsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbeyJ1c2VyX2xvY2F0aW9uIjpudWxsLCJzZWFyY2hfY29udGV4dF9zaXplIjoibWVkaXVtIn1dLCJvdXRwdXRfc2NoZW1hIjpudWxsLCJoYW5kb2ZmcyI6W10sInRyYWNpbmciOjEsInByZXZpb3VzX3Jlc3BvbnNlX2lkIjpudWxsLCJwcm9tcHQiOm51bGx9" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlNlYXJjaCB0ZXJtOiBDYXJpYmJlYW4gc3VyZmluZyBmZXN0aXZhbHMgQXByaWxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBjaGVjayBmb3IgYW55IGZlc3RpdmFscyBvciBlIg==" - } - } - }, - { - "eventId": "21", - "eventTime": "2025-06-30T17:04:08.055354Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057104", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "13", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "d557b03c-0aa2-472d-81ae-a52c689c73ac", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "22", - "eventTime": "2025-06-30T17:04:13.729426Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057105", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODg1NzQwODE5ZGIxYzZiYmQ0ZTBhYjE3NzQwYmNhMmE4M2UyZjlmMjE0IiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IHRvcCBDYXJpYmJlYW4gd2F0ZXIgc3BvcnRzIGluIEFwcmlsXFxuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGV4cGxvcmUgZ2VuZXJhbCBDYXJpYmJlYW4gd2F0ZXIgc3BvcnRzIG9wcG9ydHVuaXRpZXMgYXZhaWxhYmxlIGluIEFwcmlsLiIsInR5cGUiOiJzZWFyY2gifSwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6IndlYl9zZWFyY2hfY2FsbCJ9LHsiaWQiOiJtc2dfNjg2MmMzOGI3OWUwODE5ZGFmMTEwNmNmZjQ0NTIzZDQwYmNhMmE4M2UyZjlmMjE0IiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOlt7ImVuZF9pbmRleCI6MzgyLCJzdGFydF9pbmRleCI6Mjc1LCJ0aXRsZSI6IkNhcmliYmVhbiBXYXRlcnNwb3J0cyBIb2xpZGF5cyBHdWlkZSAtIEVsaXRlIElzbGFuZCBSZXNvcnRzIiwidHlwZSI6InVybF9jaXRhdGlvbiIsInVybCI6Imh0dHBzOi8vZWxpdGVpc2xhbmRob2xpZGF5cy5jb20vY2FyaWJiZWFuLXdhdGVyc3BvcnRzLWd1aWRlLz91dG1fc291cmNlPW9wZW5haSJ9LHsiZW5kX2luZGV4Ijo3OTgsInN0YXJ0X2luZGV4Ijo2OTEsInRpdGxlIjoiQ2FyaWJiZWFuIFdhdGVyc3BvcnRzIEhvbGlkYXlzIEd1aWRlIC0gRWxpdGUgSXNsYW5kIFJlc29ydHMiLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly9lbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbS9jYXJpYmJlYW4td2F0ZXJzcG9ydHMtZ3VpZGUvP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjExNTEsInN0YXJ0X2luZGV4IjoxMDQ0LCJ0aXRsZSI6IkNhcmliYmVhbiBXYXRlcnNwb3J0cyBIb2xpZGF5cyBHdWlkZSAtIEVsaXRlIElzbGFuZCBSZXNvcnRzIiwidHlwZSI6InVybF9jaXRhdGlvbiIsInVybCI6Imh0dHBzOi8vZWxpdGVpc2xhbmRob2xpZGF5cy5jb20vY2FyaWJiZWFuLXdhdGVyc3BvcnRzLWd1aWRlLz91dG1fc291cmNlPW9wZW5haSJ9XSwidGV4dCI6IkluIEFwcmlsLCB0aGUgQ2FyaWJiZWFuIG9mZmVycyBhIHZhcmlldHkgb2Ygd2F0ZXIgc3BvcnRzIHN1aXRhYmxlIGZvciBlbnRodXNpYXN0cyBvZiBhbGwgbGV2ZWxzLiBTdXJmaW5nIGlzIHBhcnRpY3VsYXJseSBwb3B1bGFyIGR1cmluZyB0aGlzIG1vbnRoLCBhcyBpdCBmYWxscyB3aXRoaW4gdGhlIHBlYWsgc2Vhc29uIGZyb20gTm92ZW1iZXIgdG8gQXByaWwsIHByb3ZpZGluZyBjb25zaXN0ZW50IHdhdmVzIGZvciBib3RoIHNlYXNvbmVkIHN1cmZlcnMgYW5kIGJlZ2lubmVycy4gKFtlbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbV0oaHR0cHM6Ly9lbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbS9jYXJpYmJlYW4td2F0ZXJzcG9ydHMtZ3VpZGUvP3V0bV9zb3VyY2U9b3BlbmFpKSlcblxuS2l0ZXN1cmZpbmcgaXMgYW5vdGhlciBmYXZvcmVkIGFjdGl2aXR5IGFjcm9zcyB0aGUgQ2FyaWJiZWFuIGlzbGFuZHMgaW4gQXByaWwsIHRoYW5rcyB0byBzdGVhZHkgd2luZHMgYW5kIGlkZWFsIHdhdmUgY29uZGl0aW9ucywgbWFraW5nIGl0IGFjY2Vzc2libGUgZm9yIGJvdGggbm92aWNlcyBhbmQgZXhwZXJ0cy4gU25vcmtlbGluZyBhbHNvIHRocml2ZXMgZHVyaW5nIHRoaXMgcGVyaW9kLCB3aXRoIGNsZWFyIHdhdGVycyBhbmQgYWJ1bmRhbnQgbWFyaW5lIGxpZmUgb2ZmZXJpbmcgdW5pcXVlIHVuZGVyd2F0ZXIgZXhwZXJpZW5jZXMuIChbZWxpdGVpc2xhbmRob2xpZGF5cy5jb21dKGh0dHBzOi8vZWxpdGVpc2xhbmRob2xpZGF5cy5jb20vY2FyaWJiZWFuLXdhdGVyc3BvcnRzLWd1aWRlLz91dG1fc291cmNlPW9wZW5haSkpXG5cblNhaWxpbmcgcmVtYWlucyBhIHRpbWVsZXNzIHB1cnN1aXQgaW4gdGhlIENhcmliYmVhbiwgd2l0aCBBcHJpbCdzIGZhdm9yYWJsZSB3ZWF0aGVyIGNvbmRpdGlvbnMgZW5oYW5jaW5nIHRoZSBleHBlcmllbmNlLiBXaGV0aGVyIHlvdSdyZSBuYXZpZ2F0aW5nIHRoZSBzZWFzIHdpdGggZmFtaWx5IG9yIGZyaWVuZHMsIHRoZSBwb3NzaWJpbGl0eSBvZiBlbmNvdW50ZXJpbmcgZG9scGhpbnMgYWRkcyB0byB0aGUgYWR2ZW50dXJlLiAoW2VsaXRlaXNsYW5kaG9saWRheXMuY29tXShodHRwczovL2VsaXRlaXNsYW5kaG9saWRheXMuY29tL2NhcmliYmVhbi13YXRlcnNwb3J0cy1ndWlkZS8/dXRtX3NvdXJjZT1vcGVuYWkpKVxuXG5PdmVyYWxsLCBBcHJpbCdzIGNsaW1hdGUgaW4gdGhlIENhcmliYmVhbiBpcyBjb25kdWNpdmUgdG8gYSB3aWRlIHJhbmdlIG9mIHdhdGVyIHNwb3J0cywgZW5zdXJpbmcgbWVtb3JhYmxlIGV4cGVyaWVuY2VzIGZvciB2aXNpdG9ycy4gIiwidHlwZSI6Im91dHB1dF90ZXh0IiwibG9ncHJvYnMiOltdfV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9XSwidXNhZ2UiOnsicmVxdWVzdHMiOjEsImlucHV0X3Rva2VucyI6NDM5LCJpbnB1dF90b2tlbnNfZGV0YWlscyI6eyJjYWNoZWRfdG9rZW5zIjowfSwib3V0cHV0X3Rva2VucyI6MjUyLCJvdXRwdXRfdG9rZW5zX2RldGFpbHMiOnsicmVhc29uaW5nX3Rva2VucyI6MH0sInRvdGFsX3Rva2VucyI6NjkxfSwicmVzcG9uc2VfaWQiOiJyZXNwXzY4NjJjMzg4NDYzMDgxOWQ5NDFlZjU4YzhiNWVjN2ZiMGJjYTJhODNlMmY5ZjIxNCJ9" - } - ] - }, - "scheduledEventId": "13", - "startedEventId": "21", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "23", - "eventTime": "2025-06-30T17:04:13.729436Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057106", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "24", - "eventTime": "2025-06-30T17:04:13.732404Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057110", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "23", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "fd7235cd-3500-4ffa-8a6e-4296483f9fd7", - "historySizeBytes": "24914", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "25", - "eventTime": "2025-06-30T17:04:13.755190Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057114", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "23", - "startedEventId": "24", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "26", - "eventTime": "2025-06-30T17:04:08.053707Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057116", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "20", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "fd2ccba8-5cd9-481d-93c6-3494d352620e", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "27", - "eventTime": "2025-06-30T17:04:14.229949Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057117", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODgzZmMwODFhMGFmMDgxMDIyNmNlZjA4ODMwYmNhYzI3NGQwYWNmNDIxIiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IENhcmliYmVhbiBzdXJmaW5nIGZlc3RpdmFscyBBcHJpbFxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBjaGVjayBmb3IgYW55IGZlc3RpdmFscyBvciBldmVudHMgcmVsYXRlZCB0byBzdXJmaW5nIG9yIHdhdGVyIHNwb3J0cyBpbiB0aGUgQ2FyaWJiZWFuIGluIEFwcmlsLiIsInR5cGUiOiJzZWFyY2gifSwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6IndlYl9zZWFyY2hfY2FsbCJ9LHsiaWQiOiJtc2dfNjg2MmMzOGI4MDA0ODFhMDk2YjQ0MmNjYjNhMTcwODYwYmNhYzI3NGQwYWNmNDIxIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiSW4gQXByaWwsIHRoZSBDYXJpYmJlYW4gaG9zdHMgc2V2ZXJhbCBub3RhYmxlIHN1cmZpbmcgYW5kIHdhdGVyIHNwb3J0cyBldmVudHMuIFRoZSBCYXJiYWRvcyBTdXJmIFBybywgcGFydCBvZiB0aGUgV29ybGQgU3VyZiBMZWFndWUncyBRdWFsaWZ5aW5nIFNlcmllcywgdHlwaWNhbGx5IHRha2VzIHBsYWNlIGluIEFwcmlsIGF0IERyaWxsIEhhbGwgQmVhY2gsIGF0dHJhY3RpbmcgaW50ZXJuYXRpb25hbCBzdXJmZXJzLiBTaW1pbGFybHksIHRoZSBNYXJ0aW5pcXVlIFN1cmYgUHJvLCBhbm90aGVyIFdTTCBRdWFsaWZ5aW5nIFNlcmllcyBldmVudCwgaXMgdXN1YWxseSBoZWxkIGluIEFwcmlsIGF0IEJhc3NlLVBvaW50ZSwgZmVhdHVyaW5nIGJvdGggbWVuJ3MgYW5kIHdvbWVuJ3MgY29tcGV0aXRpb25zLiBBZGRpdGlvbmFsbHksIHRoZSBDYXJpYmJlYW4gU3VyZiBOZXR3b3JrIG9mdGVuIG9yZ2FuaXplcyByZWdpb25hbCBjb21wZXRpdGlvbnMgZHVyaW5nIHRoaXMgbW9udGgsIHRob3VnaCBzcGVjaWZpYyBkYXRlcyBhbmQgbG9jYXRpb25zIGNhbiB2YXJ5IGFubnVhbGx5LlxuXG5CZXlvbmQgc3VyZmluZywgdGhlIENhcmliYmVhbiBvZmZlcnMgdmFyaW91cyB3YXRlciBzcG9ydHMgZmVzdGl2YWxzIGluIEFwcmlsLiBUaGUgU3QuIFRob21hcyBJbnRlcm5hdGlvbmFsIFJlZ2F0dGEgaW4gdGhlIFUuUy4gVmlyZ2luIElzbGFuZHMgaXMgYSBwcm9taW5lbnQgc2FpbGluZyBldmVudCBkcmF3aW5nIHBhcnRpY2lwYW50cyB3b3JsZHdpZGUuIEluIHRoZSBCYWhhbWFzLCB0aGUgTmF0aW9uYWwgRmFtaWx5IElzbGFuZCBSZWdhdHRhIHNob3djYXNlcyB0cmFkaXRpb25hbCBCYWhhbWlhbiBzbG9vcCBzYWlsaW5nLiBUaGVzZSBldmVudHMgaGlnaGxpZ2h0IHRoZSByZWdpb24ncyByaWNoIG1hcml0aW1lIGN1bHR1cmUgYW5kIHByb3ZpZGUgb3Bwb3J0dW5pdGllcyBmb3IgYm90aCBjb21wZXRpdGlvbiBhbmQgY3VsdHVyYWwgZXhjaGFuZ2UuICIsInR5cGUiOiJvdXRwdXRfdGV4dCIsImxvZ3Byb2JzIjpbXX1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjoxLCJpbnB1dF90b2tlbnMiOjQ1MSwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjE3Niwib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjYyN30sInJlc3BvbnNlX2lkIjoicmVzcF82ODYyYzM4ODMzNjQ4MWEwYjJlMjgyZjk0Y2I3YWVmMTBiY2FjMjc0ZDBhY2Y0MjEifQ==" - } - ] - }, - "scheduledEventId": "20", - "startedEventId": "26", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "28", - "eventTime": "2025-06-30T17:04:14.229965Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057118", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "29", - "eventTime": "2025-06-30T17:04:14.232810Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057122", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "28", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "8d346ab1-ac2a-4ffd-8229-c1cd4d96c851", - "historySizeBytes": "27265", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "30", - "eventTime": "2025-06-30T17:04:14.253917Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057126", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "28", - "startedEventId": "29", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "31", - "eventTime": "2025-06-30T17:04:08.056512Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057128", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "18", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "a22ce3cb-4ed7-44b1-ab43-a0f0ffa81f7f", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "32", - "eventTime": "2025-06-30T17:04:14.465038Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057129", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODg1MWU0ODFhMjgxNWQ2ZGUwNWRkZjY3YzMwNGVmY2I0Y2FhMzc4OTIzIiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IENhcmliYmVhbiBhZHZlbnR1cmUgdmFjYXRpb24gcmV2aWV3cyBBcHJpbFxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyByZWFkIHJldmlld3MgZnJvbSB0cmF2ZWxlcnMgd2hvIHZpc2l0ZWQgdGhlIENhcmliYmVhbiBmb3IgYWN0aXZlIHZhY2F0aW9ucyBpbiBBcHJpbC4iLCJ0eXBlIjoic2VhcmNoIn0sInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJ3ZWJfc2VhcmNoX2NhbGwifSx7ImlkIjoibXNnXzY4NjJjMzhjNTQ2NDgxYTJhMjUxOWE4NTA3MGQyYzUxMDRlZmNiNGNhYTM3ODkyMyIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbeyJlbmRfaW5kZXgiOjY3NSwic3RhcnRfaW5kZXgiOjQ3OSwidGl0bGUiOiJIaWdobGlnaHQgb2Ygb3VyIHZhY2F0aW9uICEgLSBSZXZpZXcgb2YgT2NlYW4gQWR2ZW50dXJlcyAtIFNhaWxpbmcgQWR2ZW50dXJlLCBQdW50YSBDYW5hLCBEb21pbmljYW4gUmVwdWJsaWMgLSBUcmlwYWR2aXNvciIsInR5cGUiOiJ1cmxfY2l0YXRpb24iLCJ1cmwiOiJodHRwczovL3d3dy50cmlwYWR2aXNvci5jb20vU2hvd1VzZXJSZXZpZXdzLWcxNDcyOTMtZDI2MjQ3ODktcjIwNjExNDEwNS1PY2Vhbl9BZHZlbnR1cmVzX1NhaWxpbmdfQWR2ZW50dXJlLVB1bnRhX0NhbmFfTGFfQWx0YWdyYWNpYV9Qcm92aW5jZV9Eb21pbmljYW5fUi5odG1sP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjExNzcsInN0YXJ0X2luZGV4Ijo5ODEsInRpdGxlIjoiSGlnaGxpZ2h0IG9mIG91ciB2YWNhdGlvbiAhIC0gUmV2aWV3IG9mIE9jZWFuIEFkdmVudHVyZXMgLSBTYWlsaW5nIEFkdmVudHVyZSwgUHVudGEgQ2FuYSwgRG9taW5pY2FuIFJlcHVibGljIC0gVHJpcGFkdmlzb3IiLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly93d3cudHJpcGFkdmlzb3IuY29tL1Nob3dVc2VyUmV2aWV3cy1nMTQ3MjkzLWQyNjI0Nzg5LXIyMDYxMTQxMDUtT2NlYW5fQWR2ZW50dXJlc19TYWlsaW5nX0FkdmVudHVyZS1QdW50YV9DYW5hX0xhX0FsdGFncmFjaWFfUHJvdmluY2VfRG9taW5pY2FuX1IuaHRtbD91dG1fc291cmNlPW9wZW5haSJ9XSwidGV4dCI6IkluIEFwcmlsIDIwMTQsIHRyYXZlbGVycyBoaWdobGlnaHRlZCB0aGUgT2NlYW4gQWR2ZW50dXJlcyBTYWlsaW5nIEFkdmVudHVyZSBpbiBQdW50YSBDYW5hLCBEb21pbmljYW4gUmVwdWJsaWMsIGFzIGEgc3RhbmRvdXQgZXhwZXJpZW5jZS4gT25lIHJldmlld2VyIGRlc2NyaWJlZCBpdCBhcyB0aGUgXCJoaWdobGlnaHQgb2Ygb3VyIHRyaXAsXCIgcHJhaXNpbmcgdGhlIGNyZXcncyBob3NwaXRhbGl0eSBhbmQgdGhlIHZhcmlldHkgb2YgYWN0aXZpdGllcywgaW5jbHVkaW5nIHNub3JrZWxpbmcsIHdhdGVyIHZvbGxleWJhbGwgaW4gYSBuYXR1cmFsIHBvb2wsIGRhbmNpbmcgZW50ZXJ0YWlubWVudCwgYW5kIGEgdGFzdHkgbHVuY2guIFRoZXkgYXBwcmVjaWF0ZWQgdGhhdCB0aGUgZXhjdXJzaW9uIG9mZmVyZWQgbW9yZSB0aGFuIGp1c3QgZHJpbmtpbmcgYW5kIHNpZ2h0c2VlaW5nLCBwcm92aWRpbmcgYSB3ZWxsLXJvdW5kZWQgYWR2ZW50dXJlLiAoW3RyaXBhZHZpc29yLmNvbV0oaHR0cHM6Ly93d3cudHJpcGFkdmlzb3IuY29tL1Nob3dVc2VyUmV2aWV3cy1nMTQ3MjkzLWQyNjI0Nzg5LXIyMDYxMTQxMDUtT2NlYW5fQWR2ZW50dXJlc19TYWlsaW5nX0FkdmVudHVyZS1QdW50YV9DYW5hX0xhX0FsdGFncmFjaWFfUHJvdmluY2VfRG9taW5pY2FuX1IuaHRtbD91dG1fc291cmNlPW9wZW5haSkpXG5cbkFub3RoZXIgdHJhdmVsZXIsIHdobyBoYWQgcHJldmlvdXNseSBiZWVuIG9uIGEgc2ltaWxhciBjcnVpc2UgaW4gUHVudGEgQ2FuYSwgYWxzbyBoYWQgYSBncmVhdCB0aW1lIG9uIHRoaXMgc2FpbGluZyBhZHZlbnR1cmUuIFRoZXNlIHJldmlld3Mgc3VnZ2VzdCB0aGF0IHRoZSBPY2VhbiBBZHZlbnR1cmVzIFNhaWxpbmcgQWR2ZW50dXJlIG9mZmVycyBhIG1lbW9yYWJsZSBhbmQgZW5nYWdpbmcgZXhwZXJpZW5jZSBmb3IgdmlzaXRvcnMgc2Vla2luZyBhY3RpdmUgdmFjYXRpb25zIGluIHRoZSBDYXJpYmJlYW4gZHVyaW5nIEFwcmlsLiAoW3RyaXBhZHZpc29yLmNvbV0oaHR0cHM6Ly93d3cudHJpcGFkdmlzb3IuY29tL1Nob3dVc2VyUmV2aWV3cy1nMTQ3MjkzLWQyNjI0Nzg5LXIyMDYxMTQxMDUtT2NlYW5fQWR2ZW50dXJlc19TYWlsaW5nX0FkdmVudHVyZS1QdW50YV9DYW5hX0xhX0FsdGFncmFjaWFfUHJvdmluY2VfRG9taW5pY2FuX1IuaHRtbD91dG1fc291cmNlPW9wZW5haSkpICIsInR5cGUiOiJvdXRwdXRfdGV4dCIsImxvZ3Byb2JzIjpbXX1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjoxLCJpbnB1dF90b2tlbnMiOjQ0NSwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjI1NSwib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjcwMH0sInJlc3BvbnNlX2lkIjoicmVzcF82ODYyYzM4ODQyOTg4MWEyYTA1ZWRjY2E4ZWVlZGNlYjA0ZWZjYjRjYWEzNzg5MjMifQ==" - } - ] - }, - "scheduledEventId": "18", - "startedEventId": "31", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "33", - "eventTime": "2025-06-30T17:04:14.465051Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057130", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "34", - "eventTime": "2025-06-30T17:04:14.468099Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057134", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "33", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "4c859afe-32a8-43d9-a119-762c5395ed83", - "historySizeBytes": "30561", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "35", - "eventTime": "2025-06-30T17:04:14.491467Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057138", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "33", - "startedEventId": "34", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "36", - "eventTime": "2025-06-30T17:04:08.057968Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057140", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "11", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "47181d54-67b5-45e1-a8ab-1dc4ef8efe5f", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "37", - "eventTime": "2025-06-30T17:04:14.630040Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057141", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODg1YmFjODFhMThiMWFmNTg0MzFhZTdhNmQwMmJlNGVkODIyYmZlMTY2IiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IGJlc3QgQ2FyaWJiZWFuIHN1cmZpbmcgc3BvdHMgaW4gQXByaWxcXG5SZWFzb24gZm9yIHNlYXJjaGluZzogVG8gZmluZCBkZXN0aW5hdGlvbnMgaW4gdGhlIENhcmliYmVhbiB0aGF0IGFyZSBpZGVhbCBmb3Igc3VyZmluZyBpbiBBcHJpbC4iLCJ0eXBlIjoic2VhcmNoIn0sInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJ3ZWJfc2VhcmNoX2NhbGwifSx7ImlkIjoibXNnXzY4NjJjMzhjYWExODgxYTE5YWZmZmQ4Njc5MTI1Yzk4MDJiZTRlZDgyMmJmZTE2NiIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IkFwcmlsIGlzIGFuIGV4Y2VsbGVudCBtb250aCBmb3Igc3VyZmluZyBpbiB0aGUgQ2FyaWJiZWFuLCB3aXRoIGNvbnNpc3RlbnQgc3dlbGxzIGFuZCBmYXZvcmFibGUgd2VhdGhlciBjb25kaXRpb25zLiBUb3AgZGVzdGluYXRpb25zIGluY2x1ZGUgUmluY29uIGluIFB1ZXJ0byBSaWNvLCBrbm93biBmb3IgaXRzIHZhcmlldHkgb2YgYnJlYWtzIHN1aXRhYmxlIGZvciBhbGwgbGV2ZWxzOyBCYXRoc2hlYmEgaW4gQmFyYmFkb3MsIG9mZmVyaW5nIHBvd2VyZnVsIHdhdmVzIGF0IHRoZSBTb3VwIEJvd2w7IGFuZCBQbGF5YSBFbmN1ZW50cm8gaW4gdGhlIERvbWluaWNhbiBSZXB1YmxpYywgZmVhdHVyaW5nIGNvbnNpc3RlbnQgd2F2ZXMgYW5kIGEgdmlicmFudCBzdXJmIGNvbW11bml0eS4gT3RoZXIgbm90YWJsZSBzcG90cyBhcmUgQWd1YWRpbGxhIGluIFB1ZXJ0byBSaWNvLCB3aXRoIGl0cyBkaXZlcnNlIHN1cmYgYnJlYWtzOyBhbmQgTG9uZyBCYXkgaW4gSmFtYWljYSwgcHJvdmlkaW5nIG1lbGxvdyB3YXZlcyBpZGVhbCBmb3IgYmVnaW5uZXJzLlxuXG5UaGVzZSBsb2NhdGlvbnMgb2ZmZXIgYSBtaXggb2YgcmVlZiBhbmQgYmVhY2ggYnJlYWtzLCBjYXRlcmluZyB0byBzdXJmZXJzIG9mIHZhcnlpbmcgc2tpbGwgbGV2ZWxzLiBUaGUgd2FybSBDYXJpYmJlYW4gd2F0ZXJzIGFuZCBjb25zaXN0ZW50IHN3ZWxscyBkdXJpbmcgQXByaWwgbWFrZSB0aGVzZSBzcG90cyBwYXJ0aWN1bGFybHkgYXBwZWFsaW5nLiBBZGRpdGlvbmFsbHksIHRoZSBsb2NhbCBzdXJmIGN1bHR1cmVzIGFuZCBhbWVuaXRpZXMgZW5oYW5jZSB0aGUgb3ZlcmFsbCBleHBlcmllbmNlIGZvciB2aXNpdGluZyBzdXJmZXJzLiAiLCJ0eXBlIjoib3V0cHV0X3RleHQiLCJsb2dwcm9icyI6W119XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn1dLCJ1c2FnZSI6eyJyZXF1ZXN0cyI6MSwiaW5wdXRfdG9rZW5zIjo0NDUsImlucHV0X3Rva2Vuc19kZXRhaWxzIjp7ImNhY2hlZF90b2tlbnMiOjB9LCJvdXRwdXRfdG9rZW5zIjoxNTMsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjo1OTh9LCJyZXNwb25zZV9pZCI6InJlc3BfNjg2MmMzODg0YTU0ODFhMTk1MWYwZWJiY2Y0MTc3NTAwMmJlNGVkODIyYmZlMTY2In0=" - } - ] - }, - "scheduledEventId": "11", - "startedEventId": "36", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "38", - "eventTime": "2025-06-30T17:04:14.630050Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057142", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "39", - "eventTime": "2025-06-30T17:04:14.632394Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057146", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "38", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "f1cb6087-b8e6-4a50-9593-cd4756a36eb4", - "historySizeBytes": "32756", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "40", - "eventTime": "2025-06-30T17:04:14.654900Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057150", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "38", - "startedEventId": "39", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "41", - "eventTime": "2025-06-30T17:04:08.055162Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057152", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "15", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "71ba1129-bb64-45fd-9e6a-55250b147d40", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "42", - "eventTime": "2025-06-30T17:04:14.959509Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057153", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODg1MWRjODFhMmE0NzA4NGU3OGRhZWY4OWQwNjNlNzllZTBiN2I1ODY3IiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IENhcmliYmVhbiBhZHZlbnR1cmUgdHJhdmVsIGd1aWRlcyBBcHJpbFxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBmaW5kIHRyYXZlbCBndWlkZXMgZm9jdXNpbmcgb24gb3V0ZG9vciBhZHZlbnR1cmUgaW4gdGhlIENhcmliYmVhbiBkdXJpbmcgQXByaWwuIiwidHlwZSI6InNlYXJjaCJ9LCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoid2ViX3NlYXJjaF9jYWxsIn0seyJpZCI6Im1zZ182ODYyYzM4YmI3M2M4MWEyYWUyOWFmNTgzZDJkOGIyYzA2M2U3OWVlMGI3YjU4NjciLCJjb250ZW50IjpbeyJhbm5vdGF0aW9ucyI6W10sInRleHQiOiJJbiBBcHJpbCwgdGhlIENhcmliYmVhbiBvZmZlcnMgYSBwbGV0aG9yYSBvZiBhZHZlbnR1cmUgYWN0aXZpdGllcyBzdWl0YWJsZSBmb3Igb3V0ZG9vciBlbnRodXNpYXN0cy4gVGhlIHJlZ2lvbidzIHdhcm0gdGVtcGVyYXR1cmVzIGFuZCByZWxhdGl2ZWx5IGRyeSBjb25kaXRpb25zIG1ha2UgaXQgaWRlYWwgZm9yIHZhcmlvdXMgcHVyc3VpdHMuXG5cbioqSGlraW5nIGFuZCBUcmVra2luZyoqOiBEZXN0aW5hdGlvbnMgbGlrZSBEb21pbmljYSwga25vd24gYXMgdGhlIFwiTmF0dXJlIElzbGFuZCxcIiBwcm92aWRlIGV4dGVuc2l2ZSBoaWtpbmcgdHJhaWxzIHRocm91Z2ggcmFpbmZvcmVzdHMgYW5kIHRvIHZvbGNhbmljIHBlYWtzLiBKYW1haWNhJ3MgQmx1ZSBNb3VudGFpbnMgb2ZmZXIgY2hhbGxlbmdpbmcgdHJla3Mgd2l0aCByZXdhcmRpbmcgcGFub3JhbWljIHZpZXdzLlxuXG4qKldhdGVyIFNwb3J0cyoqOiBUaGUgQmFoYW1hcyBhbmQgdGhlIENheW1hbiBJc2xhbmRzIGFyZSByZW5vd25lZCBmb3Igc2N1YmEgZGl2aW5nIGFuZCBzbm9ya2VsaW5nLCBmZWF0dXJpbmcgdmlicmFudCBjb3JhbCByZWVmcyBhbmQgZGl2ZXJzZSBtYXJpbmUgbGlmZS4gUHVlcnRvIFJpY28ncyBSaW5jb24gaXMgYSBob3RzcG90IGZvciBzdXJmaW5nLCB3aXRoIGNvbnNpc3RlbnQgd2F2ZXMgZHVyaW5nIHRoaXMgcGVyaW9kLlxuXG4qKlNhaWxpbmcgYW5kIEtheWFraW5nKio6IFRoZSBCcml0aXNoIFZpcmdpbiBJc2xhbmRzIGFyZSBhIHNhaWxvcidzIHBhcmFkaXNlLCBvZmZlcmluZyBjYWxtIHdhdGVycyBhbmQgbnVtZXJvdXMgaXNsYW5kcyB0byBleHBsb3JlLiBJbiBCZWxpemUsIGtheWFraW5nIHRocm91Z2ggdGhlIEdyZWF0IEJsdWUgSG9sZSBwcm92aWRlcyBhIHVuaXF1ZSBhZHZlbnR1cmUgZXhwZXJpZW5jZS5cblxuKipXaWxkbGlmZSBFeHBsb3JhdGlvbioqOiBBcHJpbCBpcyBwcmltZSB0aW1lIGZvciBiaXJkd2F0Y2hpbmcgaW4gVHJpbmlkYWQgYW5kIFRvYmFnbywgaG9tZSB0byBzcGVjaWVzIGxpa2UgdGhlIFNjYXJsZXQgSWJpcy4gSW4gU3QuIEx1Y2lhLCB2aXNpdG9ycyBjYW4gZXhwZXJpZW5jZSB0dXJ0bGUgd2F0Y2hpbmcgYXMgbGVhdGhlcmJhY2sgdHVydGxlcyBjb21lIGFzaG9yZSB0byBuZXN0LlxuXG4qKkN1bHR1cmFsIEZlc3RpdmFscyoqOiBUaGUgU3QuIFRob21hcyBDYXJuaXZhbCBpbiB0aGUgVS5TLiBWaXJnaW4gSXNsYW5kcyBvY2N1cnMgaW4gQXByaWwsIGJsZW5kaW5nIGN1bHR1cmFsIGZlc3Rpdml0aWVzIHdpdGggYWR2ZW50dXJlIG9wcG9ydHVuaXRpZXMuXG5cblRyYXZlbGVycyBzaG91bGQgY29uc3VsdCBzcGVjaWZpYyB0cmF2ZWwgZ3VpZGVzIGZvciBkZXRhaWxlZCBpbmZvcm1hdGlvbiBvbiB0aGVzZSBhY3Rpdml0aWVzLCBpbmNsdWRpbmcgc2FmZXR5IHRpcHMsIGVxdWlwbWVudCByZW50YWxzLCBhbmQgbG9jYWwgcmVndWxhdGlvbnMuICIsInR5cGUiOiJvdXRwdXRfdGV4dCIsImxvZ3Byb2JzIjpbXX1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjoxLCJpbnB1dF90b2tlbnMiOjQ0MywiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjI3MCwib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjcxM30sInJlc3BvbnNlX2lkIjoicmVzcF82ODYyYzM4ODQ1ZWM4MWEyOWQ1MjYyYzRlNGIyODhlZTA2M2U3OWVlMGI3YjU4NjcifQ==" - } - ] - }, - "scheduledEventId": "15", - "startedEventId": "41", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "43", - "eventTime": "2025-06-30T17:04:14.959531Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057154", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "44", - "eventTime": "2025-06-30T17:04:14.962477Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057158", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "43", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "84049bbb-0a74-4768-98ad-ce9f20e10a63", - "historySizeBytes": "35568", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "45", - "eventTime": "2025-06-30T17:04:14.985519Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057162", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "43", - "startedEventId": "44", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "46", - "eventTime": "2025-06-30T17:04:08.054957Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057164", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "17", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "c516d2b5-8215-4d6a-8cb0-695831a80a31", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "47", - "eventTime": "2025-06-30T17:04:15.153730Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057165", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODg0YjkwODFhMmFlYTYyMjg0MzA5MTJmZjEwNjlkNjI5MmViMjJlZmUwIiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IENhcmliYmVhbiB2YWNhdGlvbiBwYWNrYWdlcyBzdXJmaW5nIGhpa2luZyBBcHJpbFxcblJlYXNvbiBmb3Igc2VhcmNoaW5nOiBUbyBkaXNjb3ZlciBhbGwtaW5jbHVzaXZlIHZhY2F0aW9uIHBhY2thZ2VzIGZvciBhbiBhZHZlbnR1cmUtZm9jdXNlZCBBcHJpbCB0cmlwLiIsInR5cGUiOiJzZWFyY2gifSwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6IndlYl9zZWFyY2hfY2FsbCJ9LHsiaWQiOiJtc2dfNjg2MmMzOGI2ODdjODFhMjhiY2I2ZmM1ZmVjOWNmMTMwNjlkNjI5MmViMjJlZmUwIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOlt7ImVuZF9pbmRleCI6NTcyLCJzdGFydF9pbmRleCI6NDcyLCJ0aXRsZSI6IkFkdmVudHVyZSBCZWdpbnMgYXQgQ29jb251dCBCYXkiLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly9jYmF5cmVzb3J0LmNvbS9hY3Rpdml0aWVzL2FkdmVudHVyZS1iZWdpbnMtY29jb251dC1iYXk/dXRtX3NvdXJjZT1vcGVuYWkifSx7ImVuZF9pbmRleCI6MTA4MSwic3RhcnRfaW5kZXgiOjk4MiwidGl0bGUiOiJXYW5kZXJsdXN0IENhcmliYmVhbiB8IERvbWluaWNhIEFkdmVudHVyZSAmIE5hdHVyZSBWYWNhdGlvbiBQYWNrYWdlcyB8IEZvciBOYXR1cmUgTG92ZXJzIGFuZCBBY3RpdmUgVHJhdmVsZXJzIiwidHlwZSI6InVybF9jaXRhdGlvbiIsInVybCI6Imh0dHBzOi8vd3d3LndhbmRlcmx1c3RjYXJpYmJlYW4uY29tL2NvcHktb2YtcGFja2FnZXM/dXRtX3NvdXJjZT1vcGVuYWkifSx7ImVuZF9pbmRleCI6MTU0NSwic3RhcnRfaW5kZXgiOjE0NzcsInRpdGxlIjoiQWxsLUluY2x1c2l2ZSBWYWNhdGlvbiBQYWNrYWdlcyB8IFNsaWNrcm9jayBCZWxpemUgQWR2ZW50dXJlcyIsInR5cGUiOiJ1cmxfY2l0YXRpb24iLCJ1cmwiOiJodHRwczovL3NsaWNrcm9jay5jb20vcGFja2FnZXMvP3V0bV9zb3VyY2U9b3BlbmFpIn1dLCJ0ZXh0IjoiRm9yIGFuIGFkdmVudHVyZS1mb2N1c2VkLCBhbGwtaW5jbHVzaXZlIENhcmliYmVhbiB2YWNhdGlvbiBpbiBBcHJpbCB0aGF0IGNvbWJpbmVzIHN1cmZpbmcgYW5kIGhpa2luZywgY29uc2lkZXIgdGhlIGZvbGxvd2luZyBvcHRpb25zOlxuXG4qKjEuIFN0LiBMdWNpYTogQ29jb251dCBCYXkgQmVhY2ggUmVzb3J0ICYgU3BhKipcblxuTG9jYXRlZCBvbiBTdC4gTHVjaWEncyBzb3V0aGVybiBjb2FzdCwgQ29jb251dCBCYXkgb2ZmZXJzIGEgcmFuZ2Ugb2YgYWR2ZW50dXJlIGFjdGl2aXRpZXMuIEd1ZXN0cyBjYW4gZW5nYWdlIGluIGtpdGUgc3VyZmluZywgaGlraW5nIHRocm91Z2ggcmFpbmZvcmVzdHMsIHNub3JrZWxpbmcsIHppcC1saW5pbmcsIGFuZCBvZmYtcm9hZGluZyBleGN1cnNpb25zLiBUaGUgcmVzb3J0IHByb3ZpZGVzIG5hdHVyZSBndWlkZXMgdG8gbGVhZCByYWluZm9yZXN0IGhpa2VzIGFuZCB3YXRlcmZhbGwgdmlzaXRzLiAoW2NiYXlyZXNvcnQuY29tXShodHRwczovL2NiYXlyZXNvcnQuY29tL2FjdGl2aXRpZXMvYWR2ZW50dXJlLWJlZ2lucy1jb2NvbnV0LWJheT91dG1fc291cmNlPW9wZW5haSkpXG5cbioqMi4gRG9taW5pY2E6IFdhbmRlcmx1c3QgQ2FyaWJiZWFuIEFkdmVudHVyZSBUcmF2ZWwgQm91dGlxdWUgSG90ZWwqKlxuXG5XYW5kZXJsdXN0IENhcmliYmVhbiBzcGVjaWFsaXplcyBpbiBhZHZlbnR1cmUgdHJhdmVsIHBhY2thZ2VzIG9uIHRoZSBpc2xhbmQgb2YgRG9taW5pY2EuIEFjdGl2aXRpZXMgaW5jbHVkZSBoaWtpbmcgdG8gd2F0ZXJmYWxscywgc25vcmtlbGluZyBpbiBwcmlzdGluZSByZWVmcywgc2N1YmEgZGl2aW5nLCBrYXlha2luZywgY2FueW9uaW5nLCB3aGFsZSB3YXRjaGluZywgYmlyZCB3YXRjaGluZywgYmlraW5nLCBhbmQgaG9yc2ViYWNrIHJpZGluZy4gVGhlIGhvdGVsIG9mZmVycyBwZXJzb25hbGl6ZWQgc21hbGwgZ3JvdXAgcGFja2FnZXMgdGFpbG9yZWQgdG8gYWN0aXZlIHRyYXZlbGVycy4gKFt3YW5kZXJsdXN0Y2FyaWJiZWFuLmNvbV0oaHR0cHM6Ly93d3cud2FuZGVybHVzdGNhcmliYmVhbi5jb20vY29weS1vZi1wYWNrYWdlcz91dG1fc291cmNlPW9wZW5haSkpXG5cbioqMy4gQmVsaXplOiBTbGlja3JvY2sgQmVsaXplIEFkdmVudHVyZXMqKlxuXG5TbGlja3JvY2sgb2ZmZXJzIGFsbC1pbmNsdXNpdmUgYWR2ZW50dXJlIHZhY2F0aW9uIHBhY2thZ2VzIG9uIExvbmcgQ2F5ZSwgcGFydCBvZiBHbG92ZXLigJlzIFJlZWYgQXRvbGwuIEd1ZXN0cyBzdGF5IGluIGJlYWNoZnJvbnQgY2FiYW5hcyBhbmQgcGFydGljaXBhdGUgaW4gYWN0aXZpdGllcyBzdWNoIGFzIHNlYSBrYXlha2luZywgc25vcmtlbGluZywgd2luZHN1cmZpbmcsIHN1cmYga2F5YWtpbmcsIGFuZCBzdGFuZC11cCBwYWRkbGVib2FyZGluZy4gVGhlIDgtbmlnaHQgcGFja2FnZSBpbmNsdWRlcyBhIG5pZ2h0IGF0IFBlbGljYW4gQmVhY2ggUmVzb3J0IGFuZCBzZXZlbiBuaWdodHMgb24gdGhlIGlzbGFuZC4gKFtzbGlja3JvY2suY29tXShodHRwczovL3NsaWNrcm9jay5jb20vcGFja2FnZXMvP3V0bV9zb3VyY2U9b3BlbmFpKSlcblxuKipXZWF0aGVyIENvbnNpZGVyYXRpb25zIGZvciBBcHJpbDoqKlxuXG4tICoqTW9udGVnbyBCYXksIEphbWFpY2E6KiogQXZlcmFnZSB0ZW1wZXJhdHVyZXMgcmFuZ2UgZnJvbSAyM8KwQyB0byAzM8KwQyAoNzPCsEYgdG8gOTHCsEYpLlxuXG4tICoqUHVlcnRvIFZpZWpvLCBDb3N0YSBSaWNhOioqIEF2ZXJhZ2UgdGVtcGVyYXR1cmVzIHJhbmdlIGZyb20gMjDCsEMgdG8gMzbCsEMgKDY4wrBGIHRvIDk3wrBGKS5cblxuLSAqKkNhYmFyZXRlLCBEb21pbmljYW4gUmVwdWJsaWM6KiogQXZlcmFnZSB0ZW1wZXJhdHVyZXMgcmFuZ2UgZnJvbSAxNcKwQyB0byAzM8KwQyAoNTnCsEYgdG8gOTHCsEYpLlxuXG5UaGVzZSBkZXN0aW5hdGlvbnMgb2ZmZXIgYSBibGVuZCBvZiBzdXJmaW5nIGFuZCBoaWtpbmcgYWN0aXZpdGllcyB3aXRoaW4gYWxsLWluY2x1c2l2ZSBwYWNrYWdlcywgY2F0ZXJpbmcgdG8gYWR2ZW50dXJlIGVudGh1c2lhc3RzIHNlZWtpbmcgYW4gYWN0aXZlIENhcmliYmVhbiB2YWNhdGlvbiBpbiBBcHJpbC4gIiwidHlwZSI6Im91dHB1dF90ZXh0IiwibG9ncHJvYnMiOltdfV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9XSwidXNhZ2UiOnsicmVxdWVzdHMiOjEsImlucHV0X3Rva2VucyI6NDQzLCJpbnB1dF90b2tlbnNfZGV0YWlscyI6eyJjYWNoZWRfdG9rZW5zIjowfSwib3V0cHV0X3Rva2VucyI6NDQyLCJvdXRwdXRfdG9rZW5zX2RldGFpbHMiOnsicmVhc29uaW5nX3Rva2VucyI6MH0sInRvdGFsX3Rva2VucyI6ODg1fSwicmVzcG9uc2VfaWQiOiJyZXNwXzY4NjJjMzg4NDNhODgxYTI4ZTAwOWE2NTExMWJhOGUxMDY5ZDYyOTJlYjIyZWZlMCJ9" - } - ] - }, - "scheduledEventId": "17", - "startedEventId": "46", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "48", - "eventTime": "2025-06-30T17:04:15.153740Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057166", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "49", - "eventTime": "2025-06-30T17:04:15.156252Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057170", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "48", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "af4a9e00-a4d9-4d01-be55-b439ee29e776", - "historySizeBytes": "39649", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "50", - "eventTime": "2025-06-30T17:04:15.178141Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057174", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "48", - "startedEventId": "49", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "51", - "eventTime": "2025-06-30T17:04:08.054151Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057176", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "14", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "02e6bade-6bcb-4ea0-a4dc-343eb2398951", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "52", - "eventTime": "2025-06-30T17:04:15.535164Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057177", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODg0Zjc0ODFhMGIzZTBhMzQ4NjE0MmQ1MGYwZGYwZmM2ZTgwMWIzYmJkIiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IENhcmliYmVhbiBpc2xhbmRzIHN1cmZpbmcgaGlraW5nIEFwcmlsXFxuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGRldGVybWluZSBzcGVjaWZpYyBpc2xhbmRzIGluIHRoZSBDYXJpYmJlYW4ga25vd24gZm9yIG91dGRvb3IgYWN0aXZpdGllcyBsaWtlIHN1cmZpbmcgYW5kIGhpa2luZyBpbiBBcHJpbC4iLCJ0eXBlIjoic2VhcmNoIn0sInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJ3ZWJfc2VhcmNoX2NhbGwifSx7ImlkIjoibXNnXzY4NjJjMzhjNTUyODgxYTBhMzM1OTllOGJmM2U1MDg0MGRmMGZjNmU4MDFiM2JiZCIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IlNldmVyYWwgQ2FyaWJiZWFuIGlzbGFuZHMgb2ZmZXIgZXhjZWxsZW50IG9wcG9ydHVuaXRpZXMgZm9yIGJvdGggc3VyZmluZyBhbmQgaGlraW5nIGluIEFwcmlsLiBKYW1haWNhLCBwYXJ0aWN1bGFybHkgdGhlIE1vbnRlZ28gQmF5IGFyZWEsIHByb3ZpZGVzIHdhcm0gdGVtcGVyYXR1cmVzIHJhbmdpbmcgZnJvbSAyMi45wrBDIHRvIDMzLjTCsEMsIGlkZWFsIGZvciBvdXRkb29yIGFjdGl2aXRpZXMuIFRoZSBpc2xhbmQgZmVhdHVyZXMgc3VyZiBzcG90cyBsaWtlIEJvc3RvbiBCYXkgYW5kIExvbmcgQmF5LCBhbmQgaGlraW5nIHRyYWlscyBpbiB0aGUgQmx1ZSBNb3VudGFpbnMuXG5cbkJhcmJhZG9zLCB3aXRoIHRlbXBlcmF0dXJlcyBiZXR3ZWVuIDIyLjjCsEMgYW5kIDMxLjHCsEMsIGlzIGtub3duIGZvciBjb25zaXN0ZW50IHN1cmYgYnJlYWtzIHN1Y2ggYXMgU291cCBCb3dsIGFuZCBGcmVpZ2h0cyBCYXkuIFRoZSBpc2xhbmQgYWxzbyBvZmZlcnMgaGlraW5nIG9wcG9ydHVuaXRpZXMgaW4gYXJlYXMgbGlrZSB0aGUgU2NvdGxhbmQgRGlzdHJpY3QuXG5cblRoZSBEb21pbmljYW4gUmVwdWJsaWMsIGVzcGVjaWFsbHkgYXJvdW5kIFB1bnRhIENhbmEsIGV4cGVyaWVuY2VzIHRlbXBlcmF0dXJlcyBmcm9tIDIwLjPCsEMgdG8gMzEuNcKwQy4gU3VyZmluZyBpcyBwb3B1bGFyIGluIENhYmFyZXRlLCB3aGlsZSB0aGUgQ29yZGlsbGVyYSBDZW50cmFsIG1vdW50YWlucyBwcm92aWRlIGV4dGVuc2l2ZSBoaWtpbmcgdHJhaWxzLlxuXG5Db3N0YSBSaWNhJ3MgUHVlcnRvIFZpZWpvIHJlZ2lvbiwgd2l0aCB0ZW1wZXJhdHVyZXMgYmV0d2VlbiAyMC4wwrBDIGFuZCAzNi4xwrBDLCBvZmZlcnMgc3VyZiBzcG90cyBsaWtlIFNhbHNhIEJyYXZhIGFuZCBQbGF5YSBDb2NsZXMsIGFsb25nc2lkZSBoaWtpbmcgaW4gdGhlIG5lYXJieSBHYW5kb2NhLU1hbnphbmlsbG8gV2lsZGxpZmUgUmVmdWdlLlxuXG5QdWVydG8gUmljbywgcGFydGljdWxhcmx5IFNhbiBKdWFuLCBoYXMgdGVtcGVyYXR1cmVzIHJhbmdpbmcgZnJvbSAyMi4wwrBDIHRvIDMxLjXCsEMuIFRoZSBpc2xhbmQgZmVhdHVyZXMgc3VyZiBzcG90cyBsaWtlIFJpbmNvbiBhbmQgSXNhYmVsYSwgYW5kIGhpa2luZyB0cmFpbHMgaW4gRWwgWXVucXVlIE5hdGlvbmFsIEZvcmVzdC5cblxuVGhlc2UgaXNsYW5kcyBwcm92aWRlIGEgY29tYmluYXRpb24gb2Ygc3VyZmluZyBhbmQgaGlraW5nIGV4cGVyaWVuY2VzIHN1aXRhYmxlIGZvciBBcHJpbCdzIGNsaW1hdGUuICIsInR5cGUiOiJvdXRwdXRfdGV4dCIsImxvZ3Byb2JzIjpbXX1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjoxLCJpbnB1dF90b2tlbnMiOjQ1MSwiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjI2Niwib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjcxN30sInJlc3BvbnNlX2lkIjoicmVzcF82ODYyYzM4ODNkZWM4MWEwYmQzM2RmMWE3MzY0MDczMzBkZjBmYzZlODAxYjNiYmQifQ==" - } - ] - }, - "scheduledEventId": "14", - "startedEventId": "51", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "53", - "eventTime": "2025-06-30T17:04:15.535176Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057178", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "54", - "eventTime": "2025-06-30T17:04:15.537839Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057182", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "53", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "769bd159-6aec-4a6c-aaf0-d40e77f3c033", - "historySizeBytes": "42285", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "55", - "eventTime": "2025-06-30T17:04:15.560851Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057186", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "53", - "startedEventId": "54", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "56", - "eventTime": "2025-06-30T17:04:08.057282Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057188", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "19", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "84749c23-921d-4b23-9571-e0c651d6d0ab", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "57", - "eventTime": "2025-06-30T17:04:16.071889Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057189", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODg3NmYwODE5ZGFiMTA3NzIyODIzNDFhZGIwNmNlY2JlYzBjMjgyZGI1IiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IHdhdGVyIHNwb3J0cyBnZWFyIHJlbnRhbHMgQ2FyaWJiZWFuIEFwcmlsXFxuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGZpbmQgaW5mb3JtYXRpb24gb24gcmVudGFsIGVxdWlwbWVudCBhdmFpbGFiaWxpdHkgZm9yIHdhdGVyIHNwb3J0cyBhbmQgaGlraW5nIGluIHRoZSBDYXJpYmJlYW4uIiwidHlwZSI6InNlYXJjaCJ9LCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoid2ViX3NlYXJjaF9jYWxsIn0seyJpZCI6Im1zZ182ODYyYzM4YWRjYzg4MTlkYTQ0MTNmYzYzMGE0NmYyODA2Y2VjYmVjMGMyODJkYjUiLCJjb250ZW50IjpbeyJhbm5vdGF0aW9ucyI6W3siZW5kX2luZGV4Ijo0NzksInN0YXJ0X2luZGV4IjozOTEsInRpdGxlIjoiUkVOVEFMUyB8IFJpbmNvbiBDYXBpdGFsIFdhdGVyIFNwb3J0cyIsInR5cGUiOiJ1cmxfY2l0YXRpb24iLCJ1cmwiOiJodHRwczovL3d3dy5jYXBpdGFsd2F0ZXJzcG9ydHMuY29tL3JlbnRhbHM/dXRtX3NvdXJjZT1vcGVuYWkifSx7ImVuZF9pbmRleCI6OTMxLCJzdGFydF9pbmRleCI6ODMyLCJ0aXRsZSI6IlBsYWNlbmNpYSBBd2Vzb21lIFdhdGVyIFNwb3J0cyIsInR5cGUiOiJ1cmxfY2l0YXRpb24iLCJ1cmwiOiJodHRwczovL3d3dy5wbGFjZW5jaWFhd2Vzb21ld2F0ZXJzcG9ydHMuY29tLz91dG1fc291cmNlPW9wZW5haSJ9LHsiZW5kX2luZGV4IjoxMzU0LCJzdGFydF9pbmRleCI6MTI3NSwidGl0bGUiOiJDYXJpYmJlYW4gUGFkZGxpbmcgfCBLYXlhayAmIFBhZGRsZWJvYXJkIFJlbnRhbHMgYXQgU3QuIE1hcnRpbiIsInR5cGUiOiJ1cmxfY2l0YXRpb24iLCJ1cmwiOiJodHRwczovL3d3dy5jYXJpYmJlYW5wYWRkbGluZy5jb20vP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjE2NDksInN0YXJ0X2luZGV4IjoxNTY4LCJ0aXRsZSI6IlN0LiBUaG9tYXMgV2F0ZXIgU3BvcnRzIFJlbnRhbHMgLSBJc2xhbmQgQWR2ZW50dXJlcyIsInR5cGUiOiJ1cmxfY2l0YXRpb24iLCJ1cmwiOiJodHRwczovL2Z1bmJvYXRkYXkuY29tL3dhdGVyLXNwb3J0LXJlbnRhbHMvP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjIwMDEsInN0YXJ0X2luZGV4IjoxOTIwLCJ0aXRsZSI6IlN0LiBLaXR0cyBXYXRlciBTcG9ydHMg4oCTIFRoZSAjMSBXYXRlciBTcG9ydHMgQ2VudGVyIGluIHRoZSBDYXJpYmJlYW4iLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly93d3cuc3RraXR0c3dhdGVyc3BvcnRzLmNvbS8/dXRtX3NvdXJjZT1vcGVuYWkifSx7ImVuZF9pbmRleCI6MjM4OSwic3RhcnRfaW5kZXgiOjIyOTEsInRpdGxlIjoiSXNsYW5kIFN1cmYgJiBTYWlsIC0gQlZJIFRyYXZlbGxlciIsInR5cGUiOiJ1cmxfY2l0YXRpb24iLCJ1cmwiOiJodHRwczovL3d3dy5idml0cmF2ZWxsZXIuY29tL3dhdGVyc3BvcnRzL2lzbGFuZC1zdXJmLXNhaWwvP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjI3MzYsInN0YXJ0X2luZGV4IjoyNjYzLCJ0aXRsZSI6IlJlbnRhbHMgaW4gUHVlcnRvIFJpY28gfCBBcXVhdGljYSBQdWVydG8gUmljbyIsInR5cGUiOiJ1cmxfY2l0YXRpb24iLCJ1cmwiOiJodHRwczovL3d3dy5hcXVhdGljYXByLmNvbS9yZW50YWxzLz91dG1fc291cmNlPW9wZW5haSJ9XSwidGV4dCI6IkluIHRoZSBDYXJpYmJlYW4sIG51bWVyb3VzIHdhdGVyIHNwb3J0cyBnZWFyIHJlbnRhbCBzZXJ2aWNlcyBhcmUgYXZhaWxhYmxlIHRvIGVuaGFuY2UgeW91ciBhcXVhdGljIGFkdmVudHVyZXMuIEZvciBpbnN0YW5jZSwgKipSaW5jb24gQ2FwaXRhbCBXYXRlciBTcG9ydHMqKiBvZmZlcnMgYSB2YXJpZXR5IG9mIGVxdWlwbWVudCwgaW5jbHVkaW5nIGpldCBza2lzLCBrYXlha3MsIHN1cmZib2FyZHMsIHBhZGRsZWJvYXJkcywgc25vcmtlbCBhbmQgc2N1YmEgZ2VhciwgZmlzaGluZyBlcXVpcG1lbnQsIGJlYWNoIGNoYWlycywgdW1icmVsbGFzLCBhbmQgYmFuYW5hIGJvYXRzLiBUaGV5IHJlY29tbWVuZCBjb250YWN0aW5nIHRoZW0gZGlyZWN0bHkgdG8gbWFrZSBhIHJlc2VydmF0aW9uLiAoW2NhcGl0YWx3YXRlcnNwb3J0cy5jb21dKGh0dHBzOi8vd3d3LmNhcGl0YWx3YXRlcnNwb3J0cy5jb20vcmVudGFscz91dG1fc291cmNlPW9wZW5haSkpXG5cblNpbWlsYXJseSwgKipQbGFjZW5jaWEgQXdlc29tZSBXYXRlciBTcG9ydHMqKiBpbiBCZWxpemUgcHJvdmlkZXMgcmVudGFscyBmb3IgamV0IHNraXMsIGtheWFrcywgcGFkZGxlYm9hcmRzLCBhbmQgc25vcmtlbCBnZWFyLiBUaGVpciBqZXQgc2tpcyBjYW4gYWNjb21tb2RhdGUgdHdvIGFkdWx0cyBhbmQgYXJlIGF2YWlsYWJsZSBmb3IgcmVudCB0aHJvdWdob3V0IHRoZSB5ZWFyLiBUaGV5IGFsc28gb2ZmZXIgaG91cmx5LCBoYWxmLWRheSwgZnVsbC1kYXksIGFuZCB3ZWVrbHkgcmVudGFscyBmb3IgcGFkZGxlYm9hcmRzIGFuZCBrYXlha3MsIHdpdGggZGVsaXZlcnkgb3B0aW9ucyBmb3Igd2Vla2x5IHJlbnRhbHMuIChbcGxhY2VuY2lhYXdlc29tZXdhdGVyc3BvcnRzLmNvbV0oaHR0cHM6Ly93d3cucGxhY2VuY2lhYXdlc29tZXdhdGVyc3BvcnRzLmNvbS8/dXRtX3NvdXJjZT1vcGVuYWkpKVxuXG5JbiBTYWludC1NYXJ0aW4sICoqQ2FyaWJiZWFuIFBhZGRsaW5nKiogc3BlY2lhbGl6ZXMgaW4gZWNvLWZyaWVuZGx5IGFkdmVudHVyZXMsIG9mZmVyaW5nIGtheWFrIGFuZCBwYWRkbGVib2FyZCByZW50YWxzLCBhcyB3ZWxsIGFzIHNub3JrZWxpbmcgZXhwZXJpZW5jZXMuIFRoZXkgcHJvdmlkZSB0b3AtcXVhbGl0eSBlcXVpcG1lbnQgYW5kIHBlcnNvbmFsaXplZCBhZHZlbnR1cmUgcGFja2FnZXMgdGFpbG9yZWQgdG8gdmFyaW91cyBza2lsbCBsZXZlbHMuIFRoZWlyIHByaW1lIGxvY2F0aW9uIG9mZmVycyBkaXJlY3QgYWNjZXNzIHRvIHBpY3R1cmVzcXVlIHNwb3RzIGxpa2UgUGluZWwgSXNsYW5kLiAoW2NhcmliYmVhbnBhZGRsaW5nLmNvbV0oaHR0cHM6Ly93d3cuY2FyaWJiZWFucGFkZGxpbmcuY29tLz91dG1fc291cmNlPW9wZW5haSkpXG5cbkZvciB0aG9zZSB2aXNpdGluZyBTdC4gVGhvbWFzLCAqKklzbGFuZCBBZHZlbnR1cmVzKiogb2ZmZXJzIHNub3JrZWwgZ2VhciwgY29vbGVycywgbm9vZGxlcywgZmxvYXQgbWF0cywgYW5kIGZvbGRpbmcgYmVhY2ggY2hhaXJzIGZvciByZW50LiBUaGV5IGhhdmUgcGljay11cCBsb2NhdGlvbnMgYXQgTWFyZ2FyaXRhdmlsbGUgUmVzb3J0IGFuZCBFbHlzaWFuIFJlc29ydC4gKFtmdW5ib2F0ZGF5LmNvbV0oaHR0cHM6Ly9mdW5ib2F0ZGF5LmNvbS93YXRlci1zcG9ydC1yZW50YWxzLz91dG1fc291cmNlPW9wZW5haSkpXG5cbkluIFN0LiBLaXR0cywgKipTdC4gS2l0dHMgV2F0ZXIgU3BvcnRzKiogcHJvdmlkZXMgYSB3aWRlIHJhbmdlIG9mIGFjdGl2aXRpZXMsIGluY2x1ZGluZyBqZXQgc2tpIHJlbnRhbHMsIGZseWJvYXJkaW5nLCBwYWRkbGVib2FyZGluZywga2F5YWtpbmcsIGFuZCBzbm9ya2VsaW5nLiBUaGV5IG9mZmVyIHZhcmlvdXMgcGFja2FnZXMsIHN1Y2ggYXMgdGhlIEFsbCBEYXkgQWN0aW9uIFBhc3MsIHdoaWNoIGluY2x1ZGVzIG11bHRpcGxlIGFjdGl2aXRpZXMgaW4gb25lIGRheS4gKFtzdGtpdHRzd2F0ZXJzcG9ydHMuY29tXShodHRwczovL3d3dy5zdGtpdHRzd2F0ZXJzcG9ydHMuY29tLz91dG1fc291cmNlPW9wZW5haSkpXG5cbkluIFRvcnRvbGEsICoqSXNsYW5kIFN1cmYgJiBTYWlsKiogb2ZmZXJzIGEgdmFyaWV0eSBvZiB3YXRlciB0b3lzIGFuZCBzcG9ydHMgZXF1aXBtZW50IGZvciByZW50LCBpbmNsdWRpbmcga2F5YWtzLCBzdGFuZC11cCBwYWRkbGVib2FyZHMsIHN1cmZib2FyZHMsIGZpc2hpbmcgZ2Vhciwgc25vcmtlbGluZyBlcXVpcG1lbnQsIGFuZCBmbG9hdHMuIFRoZXkgcHJvdmlkZSBmcmVlIGRlbGl2ZXJ5IHRvIGNoYXJ0ZXIgY29tcGFuaWVzLCBob3RlbHMsIHZpbGxhcywgYW5kIGJlYWNoZXMgaXNsYW5kLXdpZGUuIChbYnZpdHJhdmVsbGVyLmNvbV0oaHR0cHM6Ly93d3cuYnZpdHJhdmVsbGVyLmNvbS93YXRlcnNwb3J0cy9pc2xhbmQtc3VyZi1zYWlsLz91dG1fc291cmNlPW9wZW5haSkpXG5cbkluIFB1ZXJ0byBSaWNvLCAqKkFxdWF0aWNhIFVuZGVyd2F0ZXIgQWR2ZW50dXJlcyoqIG9mZmVycyBzY3ViYSBhbmQgc25vcmtlbCBnZWFyIHJlbnRhbHMgYW5kIHNhbGVzLCBpbmNsdWRpbmcgbWFza3MsIHNub3JrZWxzLCBmaW5zLCBCQ0RzLCByZWd1bGF0b3JzLCBhbmQgdGFua3MuIFRoZXkgYXJlIGNvbnZlbmllbnRseSBsb2NhdGVkIG5lYXIgc2V2ZXJhbCBwb3B1bGFyIGJlYWNoZXMgYW5kIHByb3ZpZGUgaGlnaC1xdWFsaXR5LCBzYWZldHktdGVzdGVkIGVxdWlwbWVudC4gKFthcXVhdGljYXByLmNvbV0oaHR0cHM6Ly93d3cuYXF1YXRpY2Fwci5jb20vcmVudGFscy8/dXRtX3NvdXJjZT1vcGVuYWkpKVxuXG5SZWdhcmRpbmcgaGlraW5nIGdlYXIgcmVudGFscywgc3BlY2lmaWMgaW5mb3JtYXRpb24gaXMgbGltaXRlZC4gSXQncyBhZHZpc2FibGUgdG8gY29udGFjdCBsb2NhbCB0b3VyIG9wZXJhdG9ycyBvciBvdXRkb29yIGFkdmVudHVyZSBjb21wYW5pZXMgaW4geW91ciBjaG9zZW4gZGVzdGluYXRpb24gdG8gaW5xdWlyZSBhYm91dCB0aGUgYXZhaWxhYmlsaXR5IG9mIGhpa2luZyBlcXVpcG1lbnQgcmVudGFscy4gIiwidHlwZSI6Im91dHB1dF90ZXh0IiwibG9ncHJvYnMiOltdfV0sInJvbGUiOiJhc3Npc3RhbnQiLCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoibWVzc2FnZSJ9XSwidXNhZ2UiOnsicmVxdWVzdHMiOjEsImlucHV0X3Rva2VucyI6NDQ5LCJpbnB1dF90b2tlbnNfZGV0YWlscyI6eyJjYWNoZWRfdG9rZW5zIjowfSwib3V0cHV0X3Rva2VucyI6NjM3LCJvdXRwdXRfdG9rZW5zX2RldGFpbHMiOnsicmVhc29uaW5nX3Rva2VucyI6MH0sInRvdGFsX3Rva2VucyI6MTA4Nn0sInJlc3BvbnNlX2lkIjoicmVzcF82ODYyYzM4ODZkZTg4MTlkOTNkNDBkYmMzYTcxMTIwODA2Y2VjYmVjMGMyODJkYjUifQ==" - } - ] - }, - "scheduledEventId": "19", - "startedEventId": "56", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "58", - "eventTime": "2025-06-30T17:04:16.071903Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057190", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "59", - "eventTime": "2025-06-30T17:04:16.074976Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057194", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "58", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "75ed8ca4-07ab-4876-895d-bceaecf1380b", - "historySizeBytes": "47945", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "60", - "eventTime": "2025-06-30T17:04:16.097762Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057198", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "58", - "startedEventId": "59", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "61", - "eventTime": "2025-06-30T17:04:08.058230Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057200", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "12", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "28fc40c3-6a61-47ea-8a8f-10f21da99d69", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "62", - "eventTime": "2025-06-30T17:04:16.487908Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057201", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODg1YWE4ODFhMWE2ODVjODNjMTA4NTRjNjEwOTkyNGRmNjIxYWNlOWUwIiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IGJlc3QgQ2FyaWJiZWFuIGhpa2luZyBkZXN0aW5hdGlvbnMgQXByaWxcXG5SZWFzb24gZm9yIHNlYXJjaGluZzogVG8gaWRlbnRpZnkgdG9wIGhpa2luZyBkZXN0aW5hdGlvbnMgaW4gdGhlIENhcmliYmVhbiBmb3IgQXByaWwgdmFjYXRpb25zLiIsInR5cGUiOiJzZWFyY2gifSwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6IndlYl9zZWFyY2hfY2FsbCJ9LHsiaWQiOiJtc2dfNjg2MmMzOGMwZjE4ODFhMWFhMmRjZTZiZjdjYmM3MDcwOTkyNGRmNjIxYWNlOWUwIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOlt7ImVuZF9pbmRleCI6NzQxLCJzdGFydF9pbmRleCI6NjQ1LCJ0aXRsZSI6Ikhpa2luZyBhbmQgTmF0dXJlIFRyYWlscyBpbiB0aGUgQ2FyaWJiZWFuIC0gQ2FyaWJ1bmUiLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly93d3cuY2FyaWJ1bmUuY29tL2NhcmliYmVhbi1oaWtpbmctYW5kLW5hdHVyZS10cmFpbHMvP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjEyNzMsInN0YXJ0X2luZGV4IjoxMTc3LCJ0aXRsZSI6Ikhpa2luZyBhbmQgTmF0dXJlIFRyYWlscyBpbiB0aGUgQ2FyaWJiZWFuIC0gQ2FyaWJ1bmUiLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly93d3cuY2FyaWJ1bmUuY29tL2NhcmliYmVhbi1oaWtpbmctYW5kLW5hdHVyZS10cmFpbHMvP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjE4MzMsInN0YXJ0X2luZGV4IjoxNzMyLCJ0aXRsZSI6IjUgYmVzdCBoaWtlcyBpbiB0aGUgQ2FyaWJiZWFuIC0gTG9uZWx5IFBsYW5ldCIsInR5cGUiOiJ1cmxfY2l0YXRpb24iLCJ1cmwiOiJodHRwczovL3d3dy5sb25lbHlwbGFuZXQuY29tL2FydGljbGVzL2Jlc3QtaGlrZXMtaW4tY2FyaWJiZWFuP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjIyNTEsInN0YXJ0X2luZGV4IjoyMTY4LCJ0aXRsZSI6Ik1vdW50IFNjZW5lcnkiLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvTW91bnRfU2NlbmVyeT91dG1fc291cmNlPW9wZW5haSJ9LHsiZW5kX2luZGV4IjoyNzQ5LCJzdGFydF9pbmRleCI6MjY1MywidGl0bGUiOiJIaWtpbmcgYW5kIE5hdHVyZSBUcmFpbHMgaW4gdGhlIENhcmliYmVhbiAtIENhcmlidW5lIiwidHlwZSI6InVybF9jaXRhdGlvbiIsInVybCI6Imh0dHBzOi8vd3d3LmNhcmlidW5lLmNvbS9jYXJpYmJlYW4taGlraW5nLWFuZC1uYXR1cmUtdHJhaWxzLz91dG1fc291cmNlPW9wZW5haSJ9XSwidGV4dCI6IkFwcmlsIGlzIGFuIGV4Y2VsbGVudCB0aW1lIHRvIGV4cGxvcmUgdGhlIENhcmliYmVhbidzIGRpdmVyc2UgaGlraW5nIGRlc3RpbmF0aW9ucywgb2ZmZXJpbmcgZmF2b3JhYmxlIHdlYXRoZXIgY29uZGl0aW9ucyBhbmQgdmlicmFudCBuYXR1cmFsIGxhbmRzY2FwZXMuIEhlcmUgYXJlIHNvbWUgdG9wIGhpa2luZyBzcG90cyB0byBjb25zaWRlcjpcblxuKioxLiBFbCBZdW5xdWUgTmF0aW9uYWwgRm9yZXN0LCBQdWVydG8gUmljbyoqXG5cbkFzIHRoZSBvbmx5IHRyb3BpY2FsIHJhaW5mb3Jlc3QgaW4gdGhlIFUuUy4gTmF0aW9uYWwgRm9yZXN0IFN5c3RlbSwgRWwgWXVucXVlIHNwYW5zIGFwcHJveGltYXRlbHkgMjgsMDAwIGFjcmVzIHdpdGggYSBuZXR3b3JrIG9mIHdlbGwtbWFpbnRhaW5lZCB0cmFpbHMuIEhpa2VycyBjYW4gZXhwZXJpZW5jZSBkaXZlcnNlIGZsb3JhIGFuZCBmYXVuYSwgaW5jbHVkaW5nIHRoZSBQdWVydG8gUmljYW4gcGFycm90IGFuZCBjb3F1w60gZnJvZywgYW5kIHZpc2l0IHN0dW5uaW5nIHdhdGVyZmFsbHMgbGlrZSBMYSBNaW5hIEZhbGxzLiBPYnNlcnZhdGlvbiB0b3dlcnMgc3VjaCBhcyBZb2thaHUgVG93ZXIgcHJvdmlkZSBwYW5vcmFtaWMgdmlld3Mgb2YgdGhlIGZvcmVzdCBjYW5vcHkgYW5kIGNvYXN0bGluZS4gKFtjYXJpYnVuZS5jb21dKGh0dHBzOi8vd3d3LmNhcmlidW5lLmNvbS9jYXJpYmJlYW4taGlraW5nLWFuZC1uYXR1cmUtdHJhaWxzLz91dG1fc291cmNlPW9wZW5haSkpXG5cbioqMi4gQmx1ZSBNb3VudGFpbiBQZWFrLCBKYW1haWNhKipcblxuU3RhbmRpbmcgYXQgNyw0MDIgZmVldCwgQmx1ZSBNb3VudGFpbiBQZWFrIGlzIEphbWFpY2EncyBoaWdoZXN0IHBvaW50LiBUaGUgaGlrZSB0byB0aGUgc3VtbWl0IGlzIHBvcHVsYXIgZm9yIGl0cyBicmVhdGh0YWtpbmcgc3VucmlzZSB2aWV3cywgd2hlcmUsIG9uIGNsZWFyIGRheXMsIHRoZSBkaXN0YW50IGNvYXN0bGluZSBvZiBDdWJhIGlzIHZpc2libGUuIFRoZSBhcmVhIGlzIGEgVU5FU0NPIFdvcmxkIEhlcml0YWdlIFNpdGUsIGhvbWUgdG8gZW5kZW1pYyBzcGVjaWVzIGxpa2UgdGhlIEphbWFpY2FuIHN3YWxsb3d0YWlsIGJ1dHRlcmZseSwgYW5kIGlzIHJlbm93bmVkIGZvciBpdHMgQmx1ZSBNb3VudGFpbiBDb2ZmZWUgcGxhbnRhdGlvbnMgb2ZmZXJpbmcgdG91cnMgYW5kIHRhc3RpbmdzLiAoW2NhcmlidW5lLmNvbV0oaHR0cHM6Ly93d3cuY2FyaWJ1bmUuY29tL2NhcmliYmVhbi1oaWtpbmctYW5kLW5hdHVyZS10cmFpbHMvP3V0bV9zb3VyY2U9b3BlbmFpKSlcblxuKiozLiBXYWl0dWt1YnVsaSBOYXRpb25hbCBUcmFpbCwgRG9taW5pY2EqKlxuXG5TdHJldGNoaW5nIDExNSBtaWxlcyBhY3Jvc3MgRG9taW5pY2EsIHRoZSBXYWl0dWt1YnVsaSBOYXRpb25hbCBUcmFpbCBpcyB0aGUgQ2FyaWJiZWFuJ3MgZmlyc3QgbG9uZy1kaXN0YW5jZSBoaWtpbmcgdHJhaWwuIERpdmlkZWQgaW50byAxNCBzZWdtZW50cywgaXQgdHJhdmVyc2VzIHZvbGNhbmljIGNyYXRlcnMsIGhvdCBzcHJpbmdzLCBhbmQgYm9pbGluZyBsYWtlcywgc2hvd2Nhc2luZyB0aGUgaXNsYW5kJ3MgZ2VvdGhlcm1hbCBhY3Rpdml0eS4gSGlrZXJzIGNhbiB2aXNpdCBpbmRpZ2Vub3VzIEthbGluYWdvIHZpbGxhZ2VzLCBoaXN0b3JpYyBmb3J0cywgYW5kIGNvbG9uaWFsIHBsYW50YXRpb25zLCBleHBlcmllbmNpbmcgZGl2ZXJzZSBlY29zeXN0ZW1zIGZyb20gcmFpbmZvcmVzdHMgdG8gY29hc3RhbCBhcmVhcy4gKFtsb25lbHlwbGFuZXQuY29tXShodHRwczovL3d3dy5sb25lbHlwbGFuZXQuY29tL2FydGljbGVzL2Jlc3QtaGlrZXMtaW4tY2FyaWJiZWFuP3V0bV9zb3VyY2U9b3BlbmFpKSlcblxuKio0LiBNb3VudCBTY2VuZXJ5LCBTYWJhKipcblxuTW91bnQgU2NlbmVyeSwgdGhlIGhpZ2hlc3QgcG9pbnQgaW4gdGhlIEtpbmdkb20gb2YgdGhlIE5ldGhlcmxhbmRzLCBvZmZlcnMgYSBzdHJlbnVvdXMgaGlrZSB1cCAxLDA2NCBzdGVwcyB0byBpdHMgc3VtbWl0LiBUaGUgdHJhaWwgcGFzc2VzIHRocm91Z2ggcmFpbmZvcmVzdCBhbmQgY2xvdWQgZm9yZXN0LCBmZWF0dXJpbmcgdHJlZSBmZXJucywgd2lsZCBwbGFudGFpbnMsIGFuZCBNb3VudGFpbiBQYWxtcy4gQXQgdGhlIHN1bW1pdCwgaGlrZXJzIGFyZSByZXdhcmRlZCB3aXRoIHBhbm9yYW1pYyB2aWV3cyBvZiB0aGUgaXNsYW5kLiAoW2VuLndpa2lwZWRpYS5vcmddKGh0dHBzOi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL01vdW50X1NjZW5lcnk/dXRtX3NvdXJjZT1vcGVuYWkpKVxuXG4qKjUuIFNvdWZyacOocmUgVm9sY2FubyBUcmFpbCwgU2FpbnQgVmluY2VudCoqXG5cblRoZSBTb3VmcmnDqHJlIFZvbGNhbm8gVHJhaWwgbGVhZHMgdG8gdGhlIHN1bW1pdCBvZiBMYSBTb3VmcmnDqHJlLCBhbiBhY3RpdmUgc3RyYXRvdm9sY2Fuby4gVGhlIGNoYWxsZW5naW5nIGhpa2Ugb2ZmZXJzIHN0dW5uaW5nIHZpZXdzIG9mIHRoZSBpc2xhbmQncyBsdXNoIGxhbmRzY2FwZSBhbmQgdGhlIENhcmliYmVhbiBTZWEuIFRoZSB0cmFpbCBwYXNzZXMgdGhyb3VnaCBkZW5zZSByYWluZm9yZXN0LCBhbHBpbmUgbWVhZG93cywgYW5kIHZvbGNhbmljIHJvY2sgZm9ybWF0aW9ucywgd2l0aCBndWlkZWQgdG91cnMgcHJvdmlkaW5nIGluc2lnaHRzIGludG8gdGhlIHZvbGNhbm8ncyBoaXN0b3J5IGFuZCBnZW9sb2d5LiAoW2NhcmlidW5lLmNvbV0oaHR0cHM6Ly93d3cuY2FyaWJ1bmUuY29tL2NhcmliYmVhbi1oaWtpbmctYW5kLW5hdHVyZS10cmFpbHMvP3V0bV9zb3VyY2U9b3BlbmFpKSlcblxuVGhlc2UgZGVzdGluYXRpb25zIG9mZmVyIGEgYmxlbmQgb2YgbmF0dXJhbCBiZWF1dHksIGN1bHR1cmFsIGV4cGVyaWVuY2VzLCBhbmQgdmFyeWluZyBsZXZlbHMgb2YgaGlraW5nIGNoYWxsZW5nZXMsIG1ha2luZyB0aGVtIGlkZWFsIGZvciBhbiBBcHJpbCBDYXJpYmJlYW4gYWR2ZW50dXJlLiAiLCJ0eXBlIjoib3V0cHV0X3RleHQiLCJsb2dwcm9icyI6W119XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn1dLCJ1c2FnZSI6eyJyZXF1ZXN0cyI6MSwiaW5wdXRfdG9rZW5zIjo0MzksImlucHV0X3Rva2Vuc19kZXRhaWxzIjp7ImNhY2hlZF90b2tlbnMiOjB9LCJvdXRwdXRfdG9rZW5zIjo2MjMsIm91dHB1dF90b2tlbnNfZGV0YWlscyI6eyJyZWFzb25pbmdfdG9rZW5zIjowfSwidG90YWxfdG9rZW5zIjoxMDYyfSwicmVzcG9uc2VfaWQiOiJyZXNwXzY4NjJjMzg4NDk5YzgxYTE5YmZkYzE2YTkwNTRlMTFhMDk5MjRkZjYyMWFjZTllMCJ9" - } - ] - }, - "scheduledEventId": "12", - "startedEventId": "61", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "63", - "eventTime": "2025-06-30T17:04:16.487920Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057202", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "64", - "eventTime": "2025-06-30T17:04:16.490618Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057206", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "63", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "8d7affff-d2aa-4ba2-b5f4-292116da9943", - "historySizeBytes": "53223", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "65", - "eventTime": "2025-06-30T17:04:16.512689Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057210", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "63", - "startedEventId": "64", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "66", - "eventTime": "2025-06-30T17:04:08.056909Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057212", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "16", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "908ff46c-062a-47dd-aaa4-758df766d4f4", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "67", - "eventTime": "2025-06-30T17:04:23.897293Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057213", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoid3NfNjg2MmMzODg0YTk4ODFhMGE1ZTE2NzhhMWE4MWVlZDEwNmY1MDA1M2RmMTljYTdiIiwiYWN0aW9uIjp7InF1ZXJ5IjoiU2VhcmNoIHRlcm06IENhcmliYmVhbiB3ZWF0aGVyIEFwcmlsIHN1cmZpbmcgaGlraW5nXFxuUmVhc29uIGZvciBzZWFyY2hpbmc6IFRvIGxlYXJuIGFib3V0IHdlYXRoZXIgY29uZGl0aW9ucyBpbiB0aGUgQ2FyaWJiZWFuIGluIEFwcmlsLCBmb2N1c2luZyBvbiBvdXRkb29yIGFjdGl2aXRpZXMuIiwidHlwZSI6InNlYXJjaCJ9LCJzdGF0dXMiOiJjb21wbGV0ZWQiLCJ0eXBlIjoid2ViX3NlYXJjaF9jYWxsIn0seyJpZCI6Im1zZ182ODYyYzM5NTAwMTg4MWEwODkzYTA0YWVhYjJhNDQzYjA2ZjUwMDUzZGYxOWNhN2IiLCJjb250ZW50IjpbeyJhbm5vdGF0aW9ucyI6W3siZW5kX2luZGV4Ijo1MDEsInN0YXJ0X2luZGV4Ijo0MDgsInRpdGxlIjoiQXByaWwgaW4gdGhlIENhcmliYmVhbjogV2VhdGhlciBhbmQgRXZlbnQgR3VpZGUiLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly93d3cudHJpcHNhdnZ5LmNvbS9hcHJpbC1pbi10aGUtY2FyaWJiZWFuLTE0ODc2NTk/dXRtX3NvdXJjZT1vcGVuYWkifSx7ImVuZF9pbmRleCI6OTQ0LCJzdGFydF9pbmRleCI6ODM1LCJ0aXRsZSI6IkJlc3QgVGltZSBUbyBWaXNpdCBDYXJpYmJlYW4gfCBCYWNrcm9hZHMiLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly93d3cuYmFja3JvYWRzLmNvbS9wcm8tdGlwcy90cmF2ZWwtZ3VpZGVzL3doZW4tdG8tdmlzaXQvY2FyaWJiZWFuP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjEzNzQsInN0YXJ0X2luZGV4IjoxMjY1LCJ0aXRsZSI6IkJlc3QgVGltZSBUbyBWaXNpdCBDYXJpYmJlYW4gfCBCYWNrcm9hZHMiLCJ0eXBlIjoidXJsX2NpdGF0aW9uIiwidXJsIjoiaHR0cHM6Ly93d3cuYmFja3JvYWRzLmNvbS9wcm8tdGlwcy90cmF2ZWwtZ3VpZGVzL3doZW4tdG8tdmlzaXQvY2FyaWJiZWFuP3V0bV9zb3VyY2U9b3BlbmFpIn0seyJlbmRfaW5kZXgiOjE2NDQsInN0YXJ0X2luZGV4IjoxNTUxLCJ0aXRsZSI6IkFwcmlsIGluIHRoZSBDYXJpYmJlYW46IFdlYXRoZXIgYW5kIEV2ZW50IEd1aWRlIiwidHlwZSI6InVybF9jaXRhdGlvbiIsInVybCI6Imh0dHBzOi8vd3d3LnRyaXBzYXZ2eS5jb20vYXByaWwtaW4tdGhlLWNhcmliYmVhbi0xNDg3NjU5P3V0bV9zb3VyY2U9b3BlbmFpIn1dLCJ0ZXh0IjoiQXByaWwgaW4gdGhlIENhcmliYmVhbiBvZmZlcnMgd2FybSB0ZW1wZXJhdHVyZXMsIHR5cGljYWxseSByYW5naW5nIGZyb20gZGF5dGltZSBoaWdocyBpbiB0aGUgbWlkLTgwc8KwRiAoMjgtMzDCsEMpIHRvIG5pZ2h0dGltZSBsb3dzIGluIHRoZSBtaWQtNzBzwrBGICgyMC0yNMKwQykuIFRoaXMgcGVyaW9kIG1hcmtzIHRoZSBlbmQgb2YgdGhlIGRyeSBzZWFzb24sIHJlc3VsdGluZyBpbiBwcmVkb21pbmFudGx5IHN1bm55IGRheXMgd2l0aCBtaW5pbWFsIHJhaW5mYWxsLCBtYWtpbmcgaXQgaWRlYWwgZm9yIG91dGRvb3IgYWN0aXZpdGllcy4gV2F0ZXIgdGVtcGVyYXR1cmVzIGFyZSBhbHNvIHdhcm0sIGF2ZXJhZ2luZyBhcm91bmQgODDCsEYgKDI3wrBDKSwgcGVyZmVjdCBmb3Igc3dpbW1pbmcgYW5kIHdhdGVyIHNwb3J0cy4gKFt0cmlwc2F2dnkuY29tXShodHRwczovL3d3dy50cmlwc2F2dnkuY29tL2FwcmlsLWluLXRoZS1jYXJpYmJlYW4tMTQ4NzY1OT91dG1fc291cmNlPW9wZW5haSkpXG5cbkZvciBzdXJmaW5nIGVudGh1c2lhc3RzLCB0aGUgQ2FyaWJiZWFuIHByb3ZpZGVzIGZhdm9yYWJsZSBjb25kaXRpb25zIGluIEFwcmlsLiBXaGlsZSB0aGUgbGFyZ2VzdCBzd2VsbHMgb2NjdXIgZHVyaW5nIHRoZSBsYXRlIHJhaW55IHNlYXNvbiwgdGhlIHBlcmlvZCBmcm9tIE5vdmVtYmVyIHRvIEFwcmlsIG9mZmVycyBjb25zaXN0ZW50IHdhdmVzIHN1aXRhYmxlIGZvciBzdXJmZXJzIG9mIHZhcmlvdXMgc2tpbGwgbGV2ZWxzLiBOb3RhYmxlIHN1cmZpbmcgZGVzdGluYXRpb25zIGluY2x1ZGUgUHVlcnRvIFJpY28sIHRoZSBEb21pbmljYW4gUmVwdWJsaWMsIGFuZCBCYXJiYWRvcy4gKFtiYWNrcm9hZHMuY29tXShodHRwczovL3d3dy5iYWNrcm9hZHMuY29tL3Byby10aXBzL3RyYXZlbC1ndWlkZXMvd2hlbi10by12aXNpdC9jYXJpYmJlYW4/dXRtX3NvdXJjZT1vcGVuYWkpKVxuXG5IaWtpbmcgb3Bwb3J0dW5pdGllcyBhYm91bmQgaW4gdGhlIENhcmliYmVhbidzIG1vdW50YWlub3VzIHJlZ2lvbnMuIERlc3RpbmF0aW9ucyBzdWNoIGFzIEVsIFl1bnF1ZSBpbiBQdWVydG8gUmljbywgdGhlIEJsdWUgTW91bnRhaW5zIGluIEphbWFpY2EsIGFuZCB0aGUgYXJlYSBhcm91bmQgSmFyYWJhY29hIGluIHRoZSBEb21pbmljYW4gUmVwdWJsaWMgb2ZmZXIgZXhjZWxsZW50IHRyYWlscy4gQXByaWwncyB3YXJtIGFuZCBkcnkgd2VhdGhlciBwcm92aWRlcyBjb21mb3J0YWJsZSBjb25kaXRpb25zIGZvciBleHBsb3JpbmcgdGhlc2UgbGFuZHNjYXBlcy4gKFtiYWNrcm9hZHMuY29tXShodHRwczovL3d3dy5iYWNrcm9hZHMuY29tL3Byby10aXBzL3RyYXZlbC1ndWlkZXMvd2hlbi10by12aXNpdC9jYXJpYmJlYW4/dXRtX3NvdXJjZT1vcGVuYWkpKVxuXG5BZGRpdGlvbmFsbHksIEFwcmlsIGhvc3RzIHZhcmlvdXMgY3VsdHVyYWwgZXZlbnRzIGFjcm9zcyB0aGUgQ2FyaWJiZWFuLCBpbmNsdWRpbmcgRWFzdGVyIGNlbGVicmF0aW9ucyBhbmQgcmVnYXR0YXMgbGlrZSBBbnRpZ3VhIFNhaWxpbmcgV2VlaywgZW5oYW5jaW5nIHRoZSB0cmF2ZWwgZXhwZXJpZW5jZS4gKFt0cmlwc2F2dnkuY29tXShodHRwczovL3d3dy50cmlwc2F2dnkuY29tL2FwcmlsLWluLXRoZS1jYXJpYmJlYW4tMTQ4NzY1OT91dG1fc291cmNlPW9wZW5haSkpICIsInR5cGUiOiJvdXRwdXRfdGV4dCIsImxvZ3Byb2JzIjpbXX1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjoxLCJpbnB1dF90b2tlbnMiOjQ0NywiaW5wdXRfdG9rZW5zX2RldGFpbHMiOnsiY2FjaGVkX3Rva2VucyI6MH0sIm91dHB1dF90b2tlbnMiOjM1Nywib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjgwNH0sInJlc3BvbnNlX2lkIjoicmVzcF82ODYyYzM4ODQ0Mzg4MWEwOWFhZDhjMDA5YTA4NTRlYjA2ZjUwMDUzZGYxOWNhN2IifQ==" - } - ] - }, - "scheduledEventId": "16", - "startedEventId": "66", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "68", - "eventTime": "2025-06-30T17:04:23.897299Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057214", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "69", - "eventTime": "2025-06-30T17:04:23.898956Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057218", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "68", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "18f86b97-7a89-42c6-b337-73336ac8bd84", - "historySizeBytes": "57064", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "70", - "eventTime": "2025-06-30T17:04:23.918626Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057222", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "68", - "startedEventId": "69", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "71", - "eventTime": "2025-06-30T17:04:23.918651Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1057223", - "activityTaskScheduledEventAttributes": { - "activityId": "12", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJSZXNlYXJjaCB0cmFjZSIsInNwYW5JZCI6InNwYW5fNjlmM2NiZTkyZDJlNGU3NGEyNDFjYmY1IiwidHJhY2VJZCI6InRyYWNlXzUyYjBiNjQ1MjNmMDQ3ZDc5MTI2YTc2OTY5ZGIzMTllIn0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIHNlbmlvciByZXNlYXJjaGVyIHRhc2tlZCB3aXRoIHdyaXRpbmcgYSBjb2hlc2l2ZSByZXBvcnQgZm9yIGEgcmVzZWFyY2ggcXVlcnkuIFlvdSB3aWxsIGJlIHByb3ZpZGVkIHdpdGggdGhlIG9yaWdpbmFsIHF1ZXJ5LCBhbmQgc29tZSBpbml0aWFsIHJlc2VhcmNoIGRvbmUgYnkgYSByZXNlYXJjaCBhc3Npc3RhbnQuXG5Zb3Ugc2hvdWxkIGZpcnN0IGNvbWUgdXAgd2l0aCBhbiBvdXRsaW5lIGZvciB0aGUgcmVwb3J0IHRoYXQgZGVzY3JpYmVzIHRoZSBzdHJ1Y3R1cmUgYW5kIGZsb3cgb2YgdGhlIHJlcG9ydC4gVGhlbiwgZ2VuZXJhdGUgdGhlIHJlcG9ydCBhbmQgcmV0dXJuIHRoYXQgYXMgeW91ciBmaW5hbCBvdXRwdXQuXG5UaGUgZmluYWwgb3V0cHV0IHNob3VsZCBiZSBpbiBtYXJrZG93biBmb3JtYXQsIGFuZCBpdCBzaG91bGQgYmUgbGVuZ3RoeSBhbmQgZGV0YWlsZWQuIEFpbSBmb3IgNS0xMCBwYWdlcyBvZiBjb250ZW50LCBhdCBsZWFzdCAxMDAwIHdvcmRzLiIsImlucHV0IjpbeyJjb250ZW50IjoiT3JpZ2luYWwgcXVlcnk6IENhcmliYmVhbiB2YWNhdGlvbiBzcG90cyBpbiBBcHJpbCwgb3B0aW1pemluZyBmb3Igc3VyZmluZywgaGlraW5nIGFuZCB3YXRlciBzcG9ydHNcblN1bW1hcml6ZWQgc2VhcmNoIHJlc3VsdHM6IFtcIkluIEFwcmlsLCB0aGUgQ2FyaWJiZWFuIG9mZmVycyBhIHZhcmlldHkgb2Ygd2F0ZXIgc3BvcnRzIHN1aXRhYmxlIGZvciBlbnRodXNpYXN0cyBvZiBhbGwgbGV2ZWxzLiBTdXJmaW5nIGlzIHBhcnRpY3VsYXJseSBwb3B1bGFyIGR1cmluZyB0aGlzIG1vbnRoLCBhcyBpdCBmYWxscyB3aXRoaW4gdGhlIHBlYWsgc2Vhc29uIGZyb20gTm92ZW1iZXIgdG8gQXByaWwsIHByb3ZpZGluZyBjb25zaXN0ZW50IHdhdmVzIGZvciBib3RoIHNlYXNvbmVkIHN1cmZlcnMgYW5kIGJlZ2lubmVycy4gKFtlbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbV0oaHR0cHM6Ly9lbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbS9jYXJpYmJlYW4td2F0ZXJzcG9ydHMtZ3VpZGUvP3V0bV9zb3VyY2U9b3BlbmFpKSlcXG5cXG5LaXRlc3VyZmluZyBpcyBhbm90aGVyIGZhdm9yZWQgYWN0aXZpdHkgYWNyb3NzIHRoZSBDYXJpYmJlYW4gaXNsYW5kcyBpbiBBcHJpbCwgdGhhbmtzIHRvIHN0ZWFkeSB3aW5kcyBhbmQgaWRlYWwgd2F2ZSBjb25kaXRpb25zLCBtYWtpbmcgaXQgYWNjZXNzaWJsZSBmb3IgYm90aCBub3ZpY2VzIGFuZCBleHBlcnRzLiBTbm9ya2VsaW5nIGFsc28gdGhyaXZlcyBkdXJpbmcgdGhpcyBwZXJpb2QsIHdpdGggY2xlYXIgd2F0ZXJzIGFuZCBhYnVuZGFudCBtYXJpbmUgbGlmZSBvZmZlcmluZyB1bmlxdWUgdW5kZXJ3YXRlciBleHBlcmllbmNlcy4gKFtlbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbV0oaHR0cHM6Ly9lbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbS9jYXJpYmJlYW4td2F0ZXJzcG9ydHMtZ3VpZGUvP3V0bV9zb3VyY2U9b3BlbmFpKSlcXG5cXG5TYWlsaW5nIHJlbWFpbnMgYSB0aW1lbGVzcyBwdXJzdWl0IGluIHRoZSBDYXJpYmJlYW4sIHdpdGggQXByaWwncyBmYXZvcmFibGUgd2VhdGhlciBjb25kaXRpb25zIGVuaGFuY2luZyB0aGUgZXhwZXJpZW5jZS4gV2hldGhlciB5b3UncmUgbmF2aWdhdGluZyB0aGUgc2VhcyB3aXRoIGZhbWlseSBvciBmcmllbmRzLCB0aGUgcG9zc2liaWxpdHkgb2YgZW5jb3VudGVyaW5nIGRvbHBoaW5zIGFkZHMgdG8gdGhlIGFkdmVudHVyZS4gKFtlbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbV0oaHR0cHM6Ly9lbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbS9jYXJpYmJlYW4td2F0ZXJzcG9ydHMtZ3VpZGUvP3V0bV9zb3VyY2U9b3BlbmFpKSlcXG5cXG5PdmVyYWxsLCBBcHJpbCdzIGNsaW1hdGUgaW4gdGhlIENhcmliYmVhbiBpcyBjb25kdWNpdmUgdG8gYSB3aWRlIHJhbmdlIG9mIHdhdGVyIHNwb3J0cywgZW5zdXJpbmcgbWVtb3JhYmxlIGV4cGVyaWVuY2VzIGZvciB2aXNpdG9ycy4gXCIsIFwiSW4gQXByaWwsIHRoZSBDYXJpYmJlYW4gaG9zdHMgc2V2ZXJhbCBub3RhYmxlIHN1cmZpbmcgYW5kIHdhdGVyIHNwb3J0cyBldmVudHMuIFRoZSBCYXJiYWRvcyBTdXJmIFBybywgcGFydCBvZiB0aGUgV29ybGQgU3VyZiBMZWFndWUncyBRdWFsaWZ5aW5nIFNlcmllcywgdHlwaWNhbGx5IHRha2VzIHBsYWNlIGluIEFwcmlsIGF0IERyaWxsIEhhbGwgQmVhY2gsIGF0dHJhY3RpbmcgaW50ZXJuYXRpb25hbCBzdXJmZXJzLiBTaW1pbGFybHksIHRoZSBNYXJ0aW5pcXVlIFN1cmYgUHJvLCBhbm90aGVyIFdTTCBRdWFsaWZ5aW5nIFNlcmllcyBldmVudCwgaXMgdXN1YWxseSBoZWxkIGluIEFwcmlsIGF0IEJhc3NlLVBvaW50ZSwgZmVhdHVyaW5nIGJvdGggbWVuJ3MgYW5kIHdvbWVuJ3MgY29tcGV0aXRpb25zLiBBZGRpdGlvbmFsbHksIHRoZSBDYXJpYmJlYW4gU3VyZiBOZXR3b3JrIG9mdGVuIG9yZ2FuaXplcyByZWdpb25hbCBjb21wZXRpdGlvbnMgZHVyaW5nIHRoaXMgbW9udGgsIHRob3VnaCBzcGVjaWZpYyBkYXRlcyBhbmQgbG9jYXRpb25zIGNhbiB2YXJ5IGFubnVhbGx5LlxcblxcbkJleW9uZCBzdXJmaW5nLCB0aGUgQ2FyaWJiZWFuIG9mZmVycyB2YXJpb3VzIHdhdGVyIHNwb3J0cyBmZXN0aXZhbHMgaW4gQXByaWwuIFRoZSBTdC4gVGhvbWFzIEludGVybmF0aW9uYWwgUmVnYXR0YSBpbiB0aGUgVS5TLiBWaXJnaW4gSXNsYW5kcyBpcyBhIHByb21pbmVudCBzYWlsaW5nIGV2ZW50IGRyYXdpbmcgcGFydGljaXBhbnRzIHdvcmxkd2lkZS4gSW4gdGhlIEJhaGFtYXMsIHRoZSBOYXRpb25hbCBGYW1pbHkgSXNsYW5kIFJlZ2F0dGEgc2hvd2Nhc2VzIHRyYWRpdGlvbmFsIEJhaGFtaWFuIHNsb29wIHNhaWxpbmcuIFRoZXNlIGV2ZW50cyBoaWdobGlnaHQgdGhlIHJlZ2lvbidzIHJpY2ggbWFyaXRpbWUgY3VsdHVyZSBhbmQgcHJvdmlkZSBvcHBvcnR1bml0aWVzIGZvciBib3RoIGNvbXBldGl0aW9uIGFuZCBjdWx0dXJhbCBleGNoYW5nZS4gXCIsICdJbiBBcHJpbCAyMDE0LCB0cmF2ZWxlcnMgaGlnaGxpZ2h0ZWQgdGhlIE9jZWFuIEFkdmVudHVyZXMgU2FpbGluZyBBZHZlbnR1cmUgaW4gUHVudGEgQ2FuYSwgRG9taW5pY2FuIFJlcHVibGljLCBhcyBhIHN0YW5kb3V0IGV4cGVyaWVuY2UuIE9uZSByZXZpZXdlciBkZXNjcmliZWQgaXQgYXMgdGhlIFwiaGlnaGxpZ2h0IG9mIG91ciB0cmlwLFwiIHByYWlzaW5nIHRoZSBjcmV3XFwncyBob3NwaXRhbGl0eSBhbmQgdGhlIHZhcmlldHkgb2YgYWN0aXZpdGllcywgaW5jbHVkaW5nIHNub3JrZWxpbmcsIHdhdGVyIHZvbGxleWJhbGwgaW4gYSBuYXR1cmFsIHBvb2wsIGRhbmNpbmcgZW50ZXJ0YWlubWVudCwgYW5kIGEgdGFzdHkgbHVuY2guIFRoZXkgYXBwcmVjaWF0ZWQgdGhhdCB0aGUgZXhjdXJzaW9uIG9mZmVyZWQgbW9yZSB0aGFuIGp1c3QgZHJpbmtpbmcgYW5kIHNpZ2h0c2VlaW5nLCBwcm92aWRpbmcgYSB3ZWxsLXJvdW5kZWQgYWR2ZW50dXJlLiAoW3RyaXBhZHZpc29yLmNvbV0oaHR0cHM6Ly93d3cudHJpcGFkdmlzb3IuY29tL1Nob3dVc2VyUmV2aWV3cy1nMTQ3MjkzLWQyNjI0Nzg5LXIyMDYxMTQxMDUtT2NlYW5fQWR2ZW50dXJlc19TYWlsaW5nX0FkdmVudHVyZS1QdW50YV9DYW5hX0xhX0FsdGFncmFjaWFfUHJvdmluY2VfRG9taW5pY2FuX1IuaHRtbD91dG1fc291cmNlPW9wZW5haSkpXFxuXFxuQW5vdGhlciB0cmF2ZWxlciwgd2hvIGhhZCBwcmV2aW91c2x5IGJlZW4gb24gYSBzaW1pbGFyIGNydWlzZSBpbiBQdW50YSBDYW5hLCBhbHNvIGhhZCBhIGdyZWF0IHRpbWUgb24gdGhpcyBzYWlsaW5nIGFkdmVudHVyZS4gVGhlc2UgcmV2aWV3cyBzdWdnZXN0IHRoYXQgdGhlIE9jZWFuIEFkdmVudHVyZXMgU2FpbGluZyBBZHZlbnR1cmUgb2ZmZXJzIGEgbWVtb3JhYmxlIGFuZCBlbmdhZ2luZyBleHBlcmllbmNlIGZvciB2aXNpdG9ycyBzZWVraW5nIGFjdGl2ZSB2YWNhdGlvbnMgaW4gdGhlIENhcmliYmVhbiBkdXJpbmcgQXByaWwuIChbdHJpcGFkdmlzb3IuY29tXShodHRwczovL3d3dy50cmlwYWR2aXNvci5jb20vU2hvd1VzZXJSZXZpZXdzLWcxNDcyOTMtZDI2MjQ3ODktcjIwNjExNDEwNS1PY2Vhbl9BZHZlbnR1cmVzX1NhaWxpbmdfQWR2ZW50dXJlLVB1bnRhX0NhbmFfTGFfQWx0YWdyYWNpYV9Qcm92aW5jZV9Eb21pbmljYW5fUi5odG1sP3V0bV9zb3VyY2U9b3BlbmFpKSkgJywgJ0FwcmlsIGlzIGFuIGV4Y2VsbGVudCBtb250aCBmb3Igc3VyZmluZyBpbiB0aGUgQ2FyaWJiZWFuLCB3aXRoIGNvbnNpc3RlbnQgc3dlbGxzIGFuZCBmYXZvcmFibGUgd2VhdGhlciBjb25kaXRpb25zLiBUb3AgZGVzdGluYXRpb25zIGluY2x1ZGUgUmluY29uIGluIFB1ZXJ0byBSaWNvLCBrbm93biBmb3IgaXRzIHZhcmlldHkgb2YgYnJlYWtzIHN1aXRhYmxlIGZvciBhbGwgbGV2ZWxzOyBCYXRoc2hlYmEgaW4gQmFyYmFkb3MsIG9mZmVyaW5nIHBvd2VyZnVsIHdhdmVzIGF0IHRoZSBTb3VwIEJvd2w7IGFuZCBQbGF5YSBFbmN1ZW50cm8gaW4gdGhlIERvbWluaWNhbiBSZXB1YmxpYywgZmVhdHVyaW5nIGNvbnNpc3RlbnQgd2F2ZXMgYW5kIGEgdmlicmFudCBzdXJmIGNvbW11bml0eS4gT3RoZXIgbm90YWJsZSBzcG90cyBhcmUgQWd1YWRpbGxhIGluIFB1ZXJ0byBSaWNvLCB3aXRoIGl0cyBkaXZlcnNlIHN1cmYgYnJlYWtzOyBhbmQgTG9uZyBCYXkgaW4gSmFtYWljYSwgcHJvdmlkaW5nIG1lbGxvdyB3YXZlcyBpZGVhbCBmb3IgYmVnaW5uZXJzLlxcblxcblRoZXNlIGxvY2F0aW9ucyBvZmZlciBhIG1peCBvZiByZWVmIGFuZCBiZWFjaCBicmVha3MsIGNhdGVyaW5nIHRvIHN1cmZlcnMgb2YgdmFyeWluZyBza2lsbCBsZXZlbHMuIFRoZSB3YXJtIENhcmliYmVhbiB3YXRlcnMgYW5kIGNvbnNpc3RlbnQgc3dlbGxzIGR1cmluZyBBcHJpbCBtYWtlIHRoZXNlIHNwb3RzIHBhcnRpY3VsYXJseSBhcHBlYWxpbmcuIEFkZGl0aW9uYWxseSwgdGhlIGxvY2FsIHN1cmYgY3VsdHVyZXMgYW5kIGFtZW5pdGllcyBlbmhhbmNlIHRoZSBvdmVyYWxsIGV4cGVyaWVuY2UgZm9yIHZpc2l0aW5nIHN1cmZlcnMuICcsICdJbiBBcHJpbCwgdGhlIENhcmliYmVhbiBvZmZlcnMgYSBwbGV0aG9yYSBvZiBhZHZlbnR1cmUgYWN0aXZpdGllcyBzdWl0YWJsZSBmb3Igb3V0ZG9vciBlbnRodXNpYXN0cy4gVGhlIHJlZ2lvblxcJ3Mgd2FybSB0ZW1wZXJhdHVyZXMgYW5kIHJlbGF0aXZlbHkgZHJ5IGNvbmRpdGlvbnMgbWFrZSBpdCBpZGVhbCBmb3IgdmFyaW91cyBwdXJzdWl0cy5cXG5cXG4qKkhpa2luZyBhbmQgVHJla2tpbmcqKjogRGVzdGluYXRpb25zIGxpa2UgRG9taW5pY2EsIGtub3duIGFzIHRoZSBcIk5hdHVyZSBJc2xhbmQsXCIgcHJvdmlkZSBleHRlbnNpdmUgaGlraW5nIHRyYWlscyB0aHJvdWdoIHJhaW5mb3Jlc3RzIGFuZCB0byB2b2xjYW5pYyBwZWFrcy4gSmFtYWljYVxcJ3MgQmx1ZSBNb3VudGFpbnMgb2ZmZXIgY2hhbGxlbmdpbmcgdHJla3Mgd2l0aCByZXdhcmRpbmcgcGFub3JhbWljIHZpZXdzLlxcblxcbioqV2F0ZXIgU3BvcnRzKio6IFRoZSBCYWhhbWFzIGFuZCB0aGUgQ2F5bWFuIElzbGFuZHMgYXJlIHJlbm93bmVkIGZvciBzY3ViYSBkaXZpbmcgYW5kIHNub3JrZWxpbmcsIGZlYXR1cmluZyB2aWJyYW50IGNvcmFsIHJlZWZzIGFuZCBkaXZlcnNlIG1hcmluZSBsaWZlLiBQdWVydG8gUmljb1xcJ3MgUmluY29uIGlzIGEgaG90c3BvdCBmb3Igc3VyZmluZywgd2l0aCBjb25zaXN0ZW50IHdhdmVzIGR1cmluZyB0aGlzIHBlcmlvZC5cXG5cXG4qKlNhaWxpbmcgYW5kIEtheWFraW5nKio6IFRoZSBCcml0aXNoIFZpcmdpbiBJc2xhbmRzIGFyZSBhIHNhaWxvclxcJ3MgcGFyYWRpc2UsIG9mZmVyaW5nIGNhbG0gd2F0ZXJzIGFuZCBudW1lcm91cyBpc2xhbmRzIHRvIGV4cGxvcmUuIEluIEJlbGl6ZSwga2F5YWtpbmcgdGhyb3VnaCB0aGUgR3JlYXQgQmx1ZSBIb2xlIHByb3ZpZGVzIGEgdW5pcXVlIGFkdmVudHVyZSBleHBlcmllbmNlLlxcblxcbioqV2lsZGxpZmUgRXhwbG9yYXRpb24qKjogQXByaWwgaXMgcHJpbWUgdGltZSBmb3IgYmlyZHdhdGNoaW5nIGluIFRyaW5pZGFkIGFuZCBUb2JhZ28sIGhvbWUgdG8gc3BlY2llcyBsaWtlIHRoZSBTY2FybGV0IEliaXMuIEluIFN0LiBMdWNpYSwgdmlzaXRvcnMgY2FuIGV4cGVyaWVuY2UgdHVydGxlIHdhdGNoaW5nIGFzIGxlYXRoZXJiYWNrIHR1cnRsZXMgY29tZSBhc2hvcmUgdG8gbmVzdC5cXG5cXG4qKkN1bHR1cmFsIEZlc3RpdmFscyoqOiBUaGUgU3QuIFRob21hcyBDYXJuaXZhbCBpbiB0aGUgVS5TLiBWaXJnaW4gSXNsYW5kcyBvY2N1cnMgaW4gQXByaWwsIGJsZW5kaW5nIGN1bHR1cmFsIGZlc3Rpdml0aWVzIHdpdGggYWR2ZW50dXJlIG9wcG9ydHVuaXRpZXMuXFxuXFxuVHJhdmVsZXJzIHNob3VsZCBjb25zdWx0IHNwZWNpZmljIHRyYXZlbCBndWlkZXMgZm9yIGRldGFpbGVkIGluZm9ybWF0aW9uIG9uIHRoZXNlIGFjdGl2aXRpZXMsIGluY2x1ZGluZyBzYWZldHkgdGlwcywgZXF1aXBtZW50IHJlbnRhbHMsIGFuZCBsb2NhbCByZWd1bGF0aW9ucy4gJywgXCJGb3IgYW4gYWR2ZW50dXJlLWZvY3VzZWQsIGFsbC1pbmNsdXNpdmUgQ2FyaWJiZWFuIHZhY2F0aW9uIGluIEFwcmlsIHRoYXQgY29tYmluZXMgc3VyZmluZyBhbmQgaGlraW5nLCBjb25zaWRlciB0aGUgZm9sbG93aW5nIG9wdGlvbnM6XFxuXFxuKioxLiBTdC4gTHVjaWE6IENvY29udXQgQmF5IEJlYWNoIFJlc29ydCAmIFNwYSoqXFxuXFxuTG9jYXRlZCBvbiBTdC4gTHVjaWEncyBzb3V0aGVybiBjb2FzdCwgQ29jb251dCBCYXkgb2ZmZXJzIGEgcmFuZ2Ugb2YgYWR2ZW50dXJlIGFjdGl2aXRpZXMuIEd1ZXN0cyBjYW4gZW5nYWdlIGluIGtpdGUgc3VyZmluZywgaGlraW5nIHRocm91Z2ggcmFpbmZvcmVzdHMsIHNub3JrZWxpbmcsIHppcC1saW5pbmcsIGFuZCBvZmYtcm9hZGluZyBleGN1cnNpb25zLiBUaGUgcmVzb3J0IHByb3ZpZGVzIG5hdHVyZSBndWlkZXMgdG8gbGVhZCByYWluZm9yZXN0IGhpa2VzIGFuZCB3YXRlcmZhbGwgdmlzaXRzLiAoW2NiYXlyZXNvcnQuY29tXShodHRwczovL2NiYXlyZXNvcnQuY29tL2FjdGl2aXRpZXMvYWR2ZW50dXJlLWJlZ2lucy1jb2NvbnV0LWJheT91dG1fc291cmNlPW9wZW5haSkpXFxuXFxuKioyLiBEb21pbmljYTogV2FuZGVybHVzdCBDYXJpYmJlYW4gQWR2ZW50dXJlIFRyYXZlbCBCb3V0aXF1ZSBIb3RlbCoqXFxuXFxuV2FuZGVybHVzdCBDYXJpYmJlYW4gc3BlY2lhbGl6ZXMgaW4gYWR2ZW50dXJlIHRyYXZlbCBwYWNrYWdlcyBvbiB0aGUgaXNsYW5kIG9mIERvbWluaWNhLiBBY3Rpdml0aWVzIGluY2x1ZGUgaGlraW5nIHRvIHdhdGVyZmFsbHMsIHNub3JrZWxpbmcgaW4gcHJpc3RpbmUgcmVlZnMsIHNjdWJhIGRpdmluZywga2F5YWtpbmcsIGNhbnlvbmluZywgd2hhbGUgd2F0Y2hpbmcsIGJpcmQgd2F0Y2hpbmcsIGJpa2luZywgYW5kIGhvcnNlYmFjayByaWRpbmcuIFRoZSBob3RlbCBvZmZlcnMgcGVyc29uYWxpemVkIHNtYWxsIGdyb3VwIHBhY2thZ2VzIHRhaWxvcmVkIHRvIGFjdGl2ZSB0cmF2ZWxlcnMuIChbd2FuZGVybHVzdGNhcmliYmVhbi5jb21dKGh0dHBzOi8vd3d3LndhbmRlcmx1c3RjYXJpYmJlYW4uY29tL2NvcHktb2YtcGFja2FnZXM/dXRtX3NvdXJjZT1vcGVuYWkpKVxcblxcbioqMy4gQmVsaXplOiBTbGlja3JvY2sgQmVsaXplIEFkdmVudHVyZXMqKlxcblxcblNsaWNrcm9jayBvZmZlcnMgYWxsLWluY2x1c2l2ZSBhZHZlbnR1cmUgdmFjYXRpb24gcGFja2FnZXMgb24gTG9uZyBDYXllLCBwYXJ0IG9mIEdsb3ZlcuKAmXMgUmVlZiBBdG9sbC4gR3Vlc3RzIHN0YXkgaW4gYmVhY2hmcm9udCBjYWJhbmFzIGFuZCBwYXJ0aWNpcGF0ZSBpbiBhY3Rpdml0aWVzIHN1Y2ggYXMgc2VhIGtheWFraW5nLCBzbm9ya2VsaW5nLCB3aW5kc3VyZmluZywgc3VyZiBrYXlha2luZywgYW5kIHN0YW5kLXVwIHBhZGRsZWJvYXJkaW5nLiBUaGUgOC1uaWdodCBwYWNrYWdlIGluY2x1ZGVzIGEgbmlnaHQgYXQgUGVsaWNhbiBCZWFjaCBSZXNvcnQgYW5kIHNldmVuIG5pZ2h0cyBvbiB0aGUgaXNsYW5kLiAoW3NsaWNrcm9jay5jb21dKGh0dHBzOi8vc2xpY2tyb2NrLmNvbS9wYWNrYWdlcy8/dXRtX3NvdXJjZT1vcGVuYWkpKVxcblxcbioqV2VhdGhlciBDb25zaWRlcmF0aW9ucyBmb3IgQXByaWw6KipcXG5cXG4tICoqTW9udGVnbyBCYXksIEphbWFpY2E6KiogQXZlcmFnZSB0ZW1wZXJhdHVyZXMgcmFuZ2UgZnJvbSAyM8KwQyB0byAzM8KwQyAoNzPCsEYgdG8gOTHCsEYpLlxcblxcbi0gKipQdWVydG8gVmllam8sIENvc3RhIFJpY2E6KiogQXZlcmFnZSB0ZW1wZXJhdHVyZXMgcmFuZ2UgZnJvbSAyMMKwQyB0byAzNsKwQyAoNjjCsEYgdG8gOTfCsEYpLlxcblxcbi0gKipDYWJhcmV0ZSwgRG9taW5pY2FuIFJlcHVibGljOioqIEF2ZXJhZ2UgdGVtcGVyYXR1cmVzIHJhbmdlIGZyb20gMTXCsEMgdG8gMzPCsEMgKDU5wrBGIHRvIDkxwrBGKS5cXG5cXG5UaGVzZSBkZXN0aW5hdGlvbnMgb2ZmZXIgYSBibGVuZCBvZiBzdXJmaW5nIGFuZCBoaWtpbmcgYWN0aXZpdGllcyB3aXRoaW4gYWxsLWluY2x1c2l2ZSBwYWNrYWdlcywgY2F0ZXJpbmcgdG8gYWR2ZW50dXJlIGVudGh1c2lhc3RzIHNlZWtpbmcgYW4gYWN0aXZlIENhcmliYmVhbiB2YWNhdGlvbiBpbiBBcHJpbC4gXCIsIFwiU2V2ZXJhbCBDYXJpYmJlYW4gaXNsYW5kcyBvZmZlciBleGNlbGxlbnQgb3Bwb3J0dW5pdGllcyBmb3IgYm90aCBzdXJmaW5nIGFuZCBoaWtpbmcgaW4gQXByaWwuIEphbWFpY2EsIHBhcnRpY3VsYXJseSB0aGUgTW9udGVnbyBCYXkgYXJlYSwgcHJvdmlkZXMgd2FybSB0ZW1wZXJhdHVyZXMgcmFuZ2luZyBmcm9tIDIyLjnCsEMgdG8gMzMuNMKwQywgaWRlYWwgZm9yIG91dGRvb3IgYWN0aXZpdGllcy4gVGhlIGlzbGFuZCBmZWF0dXJlcyBzdXJmIHNwb3RzIGxpa2UgQm9zdG9uIEJheSBhbmQgTG9uZyBCYXksIGFuZCBoaWtpbmcgdHJhaWxzIGluIHRoZSBCbHVlIE1vdW50YWlucy5cXG5cXG5CYXJiYWRvcywgd2l0aCB0ZW1wZXJhdHVyZXMgYmV0d2VlbiAyMi44wrBDIGFuZCAzMS4xwrBDLCBpcyBrbm93biBmb3IgY29uc2lzdGVudCBzdXJmIGJyZWFrcyBzdWNoIGFzIFNvdXAgQm93bCBhbmQgRnJlaWdodHMgQmF5LiBUaGUgaXNsYW5kIGFsc28gb2ZmZXJzIGhpa2luZyBvcHBvcnR1bml0aWVzIGluIGFyZWFzIGxpa2UgdGhlIFNjb3RsYW5kIERpc3RyaWN0LlxcblxcblRoZSBEb21pbmljYW4gUmVwdWJsaWMsIGVzcGVjaWFsbHkgYXJvdW5kIFB1bnRhIENhbmEsIGV4cGVyaWVuY2VzIHRlbXBlcmF0dXJlcyBmcm9tIDIwLjPCsEMgdG8gMzEuNcKwQy4gU3VyZmluZyBpcyBwb3B1bGFyIGluIENhYmFyZXRlLCB3aGlsZSB0aGUgQ29yZGlsbGVyYSBDZW50cmFsIG1vdW50YWlucyBwcm92aWRlIGV4dGVuc2l2ZSBoaWtpbmcgdHJhaWxzLlxcblxcbkNvc3RhIFJpY2EncyBQdWVydG8gVmllam8gcmVnaW9uLCB3aXRoIHRlbXBlcmF0dXJlcyBiZXR3ZWVuIDIwLjDCsEMgYW5kIDM2LjHCsEMsIG9mZmVycyBzdXJmIHNwb3RzIGxpa2UgU2Fsc2EgQnJhdmEgYW5kIFBsYXlhIENvY2xlcywgYWxvbmdzaWRlIGhpa2luZyBpbiB0aGUgbmVhcmJ5IEdhbmRvY2EtTWFuemFuaWxsbyBXaWxkbGlmZSBSZWZ1Z2UuXFxuXFxuUHVlcnRvIFJpY28sIHBhcnRpY3VsYXJseSBTYW4gSnVhbiwgaGFzIHRlbXBlcmF0dXJlcyByYW5naW5nIGZyb20gMjIuMMKwQyB0byAzMS41wrBDLiBUaGUgaXNsYW5kIGZlYXR1cmVzIHN1cmYgc3BvdHMgbGlrZSBSaW5jb24gYW5kIElzYWJlbGEsIGFuZCBoaWtpbmcgdHJhaWxzIGluIEVsIFl1bnF1ZSBOYXRpb25hbCBGb3Jlc3QuXFxuXFxuVGhlc2UgaXNsYW5kcyBwcm92aWRlIGEgY29tYmluYXRpb24gb2Ygc3VyZmluZyBhbmQgaGlraW5nIGV4cGVyaWVuY2VzIHN1aXRhYmxlIGZvciBBcHJpbCdzIGNsaW1hdGUuIFwiLCBcIkluIHRoZSBDYXJpYmJlYW4sIG51bWVyb3VzIHdhdGVyIHNwb3J0cyBnZWFyIHJlbnRhbCBzZXJ2aWNlcyBhcmUgYXZhaWxhYmxlIHRvIGVuaGFuY2UgeW91ciBhcXVhdGljIGFkdmVudHVyZXMuIEZvciBpbnN0YW5jZSwgKipSaW5jb24gQ2FwaXRhbCBXYXRlciBTcG9ydHMqKiBvZmZlcnMgYSB2YXJpZXR5IG9mIGVxdWlwbWVudCwgaW5jbHVkaW5nIGpldCBza2lzLCBrYXlha3MsIHN1cmZib2FyZHMsIHBhZGRsZWJvYXJkcywgc25vcmtlbCBhbmQgc2N1YmEgZ2VhciwgZmlzaGluZyBlcXVpcG1lbnQsIGJlYWNoIGNoYWlycywgdW1icmVsbGFzLCBhbmQgYmFuYW5hIGJvYXRzLiBUaGV5IHJlY29tbWVuZCBjb250YWN0aW5nIHRoZW0gZGlyZWN0bHkgdG8gbWFrZSBhIHJlc2VydmF0aW9uLiAoW2NhcGl0YWx3YXRlcnNwb3J0cy5jb21dKGh0dHBzOi8vd3d3LmNhcGl0YWx3YXRlcnNwb3J0cy5jb20vcmVudGFscz91dG1fc291cmNlPW9wZW5haSkpXFxuXFxuU2ltaWxhcmx5LCAqKlBsYWNlbmNpYSBBd2Vzb21lIFdhdGVyIFNwb3J0cyoqIGluIEJlbGl6ZSBwcm92aWRlcyByZW50YWxzIGZvciBqZXQgc2tpcywga2F5YWtzLCBwYWRkbGVib2FyZHMsIGFuZCBzbm9ya2VsIGdlYXIuIFRoZWlyIGpldCBza2lzIGNhbiBhY2NvbW1vZGF0ZSB0d28gYWR1bHRzIGFuZCBhcmUgYXZhaWxhYmxlIGZvciByZW50IHRocm91Z2hvdXQgdGhlIHllYXIuIFRoZXkgYWxzbyBvZmZlciBob3VybHksIGhhbGYtZGF5LCBmdWxsLWRheSwgYW5kIHdlZWtseSByZW50YWxzIGZvciBwYWRkbGVib2FyZHMgYW5kIGtheWFrcywgd2l0aCBkZWxpdmVyeSBvcHRpb25zIGZvciB3ZWVrbHkgcmVudGFscy4gKFtwbGFjZW5jaWFhd2Vzb21ld2F0ZXJzcG9ydHMuY29tXShodHRwczovL3d3dy5wbGFjZW5jaWFhd2Vzb21ld2F0ZXJzcG9ydHMuY29tLz91dG1fc291cmNlPW9wZW5haSkpXFxuXFxuSW4gU2FpbnQtTWFydGluLCAqKkNhcmliYmVhbiBQYWRkbGluZyoqIHNwZWNpYWxpemVzIGluIGVjby1mcmllbmRseSBhZHZlbnR1cmVzLCBvZmZlcmluZyBrYXlhayBhbmQgcGFkZGxlYm9hcmQgcmVudGFscywgYXMgd2VsbCBhcyBzbm9ya2VsaW5nIGV4cGVyaWVuY2VzLiBUaGV5IHByb3ZpZGUgdG9wLXF1YWxpdHkgZXF1aXBtZW50IGFuZCBwZXJzb25hbGl6ZWQgYWR2ZW50dXJlIHBhY2thZ2VzIHRhaWxvcmVkIHRvIHZhcmlvdXMgc2tpbGwgbGV2ZWxzLiBUaGVpciBwcmltZSBsb2NhdGlvbiBvZmZlcnMgZGlyZWN0IGFjY2VzcyB0byBwaWN0dXJlc3F1ZSBzcG90cyBsaWtlIFBpbmVsIElzbGFuZC4gKFtjYXJpYmJlYW5wYWRkbGluZy5jb21dKGh0dHBzOi8vd3d3LmNhcmliYmVhbnBhZGRsaW5nLmNvbS8/dXRtX3NvdXJjZT1vcGVuYWkpKVxcblxcbkZvciB0aG9zZSB2aXNpdGluZyBTdC4gVGhvbWFzLCAqKklzbGFuZCBBZHZlbnR1cmVzKiogb2ZmZXJzIHNub3JrZWwgZ2VhciwgY29vbGVycywgbm9vZGxlcywgZmxvYXQgbWF0cywgYW5kIGZvbGRpbmcgYmVhY2ggY2hhaXJzIGZvciByZW50LiBUaGV5IGhhdmUgcGljay11cCBsb2NhdGlvbnMgYXQgTWFyZ2FyaXRhdmlsbGUgUmVzb3J0IGFuZCBFbHlzaWFuIFJlc29ydC4gKFtmdW5ib2F0ZGF5LmNvbV0oaHR0cHM6Ly9mdW5ib2F0ZGF5LmNvbS93YXRlci1zcG9ydC1yZW50YWxzLz91dG1fc291cmNlPW9wZW5haSkpXFxuXFxuSW4gU3QuIEtpdHRzLCAqKlN0LiBLaXR0cyBXYXRlciBTcG9ydHMqKiBwcm92aWRlcyBhIHdpZGUgcmFuZ2Ugb2YgYWN0aXZpdGllcywgaW5jbHVkaW5nIGpldCBza2kgcmVudGFscywgZmx5Ym9hcmRpbmcsIHBhZGRsZWJvYXJkaW5nLCBrYXlha2luZywgYW5kIHNub3JrZWxpbmcuIFRoZXkgb2ZmZXIgdmFyaW91cyBwYWNrYWdlcywgc3VjaCBhcyB0aGUgQWxsIERheSBBY3Rpb24gUGFzcywgd2hpY2ggaW5jbHVkZXMgbXVsdGlwbGUgYWN0aXZpdGllcyBpbiBvbmUgZGF5LiAoW3N0a2l0dHN3YXRlcnNwb3J0cy5jb21dKGh0dHBzOi8vd3d3LnN0a2l0dHN3YXRlcnNwb3J0cy5jb20vP3V0bV9zb3VyY2U9b3BlbmFpKSlcXG5cXG5JbiBUb3J0b2xhLCAqKklzbGFuZCBTdXJmICYgU2FpbCoqIG9mZmVycyBhIHZhcmlldHkgb2Ygd2F0ZXIgdG95cyBhbmQgc3BvcnRzIGVxdWlwbWVudCBmb3IgcmVudCwgaW5jbHVkaW5nIGtheWFrcywgc3RhbmQtdXAgcGFkZGxlYm9hcmRzLCBzdXJmYm9hcmRzLCBmaXNoaW5nIGdlYXIsIHNub3JrZWxpbmcgZXF1aXBtZW50LCBhbmQgZmxvYXRzLiBUaGV5IHByb3ZpZGUgZnJlZSBkZWxpdmVyeSB0byBjaGFydGVyIGNvbXBhbmllcywgaG90ZWxzLCB2aWxsYXMsIGFuZCBiZWFjaGVzIGlzbGFuZC13aWRlLiAoW2J2aXRyYXZlbGxlci5jb21dKGh0dHBzOi8vd3d3LmJ2aXRyYXZlbGxlci5jb20vd2F0ZXJzcG9ydHMvaXNsYW5kLXN1cmYtc2FpbC8/dXRtX3NvdXJjZT1vcGVuYWkpKVxcblxcbkluIFB1ZXJ0byBSaWNvLCAqKkFxdWF0aWNhIFVuZGVyd2F0ZXIgQWR2ZW50dXJlcyoqIG9mZmVycyBzY3ViYSBhbmQgc25vcmtlbCBnZWFyIHJlbnRhbHMgYW5kIHNhbGVzLCBpbmNsdWRpbmcgbWFza3MsIHNub3JrZWxzLCBmaW5zLCBCQ0RzLCByZWd1bGF0b3JzLCBhbmQgdGFua3MuIFRoZXkgYXJlIGNvbnZlbmllbnRseSBsb2NhdGVkIG5lYXIgc2V2ZXJhbCBwb3B1bGFyIGJlYWNoZXMgYW5kIHByb3ZpZGUgaGlnaC1xdWFsaXR5LCBzYWZldHktdGVzdGVkIGVxdWlwbWVudC4gKFthcXVhdGljYXByLmNvbV0oaHR0cHM6Ly93d3cuYXF1YXRpY2Fwci5jb20vcmVudGFscy8/dXRtX3NvdXJjZT1vcGVuYWkpKVxcblxcblJlZ2FyZGluZyBoaWtpbmcgZ2VhciByZW50YWxzLCBzcGVjaWZpYyBpbmZvcm1hdGlvbiBpcyBsaW1pdGVkLiBJdCdzIGFkdmlzYWJsZSB0byBjb250YWN0IGxvY2FsIHRvdXIgb3BlcmF0b3JzIG9yIG91dGRvb3IgYWR2ZW50dXJlIGNvbXBhbmllcyBpbiB5b3VyIGNob3NlbiBkZXN0aW5hdGlvbiB0byBpbnF1aXJlIGFib3V0IHRoZSBhdmFpbGFiaWxpdHkgb2YgaGlraW5nIGVxdWlwbWVudCByZW50YWxzLiBcIiwgXCJBcHJpbCBpcyBhbiBleGNlbGxlbnQgdGltZSB0byBleHBsb3JlIHRoZSBDYXJpYmJlYW4ncyBkaXZlcnNlIGhpa2luZyBkZXN0aW5hdGlvbnMsIG9mZmVyaW5nIGZhdm9yYWJsZSB3ZWF0aGVyIGNvbmRpdGlvbnMgYW5kIHZpYnJhbnQgbmF0dXJhbCBsYW5kc2NhcGVzLiBIZXJlIGFyZSBzb21lIHRvcCBoaWtpbmcgc3BvdHMgdG8gY29uc2lkZXI6XFxuXFxuKioxLiBFbCBZdW5xdWUgTmF0aW9uYWwgRm9yZXN0LCBQdWVydG8gUmljbyoqXFxuXFxuQXMgdGhlIG9ubHkgdHJvcGljYWwgcmFpbmZvcmVzdCBpbiB0aGUgVS5TLiBOYXRpb25hbCBGb3Jlc3QgU3lzdGVtLCBFbCBZdW5xdWUgc3BhbnMgYXBwcm94aW1hdGVseSAyOCwwMDAgYWNyZXMgd2l0aCBhIG5ldHdvcmsgb2Ygd2VsbC1tYWludGFpbmVkIHRyYWlscy4gSGlrZXJzIGNhbiBleHBlcmllbmNlIGRpdmVyc2UgZmxvcmEgYW5kIGZhdW5hLCBpbmNsdWRpbmcgdGhlIFB1ZXJ0byBSaWNhbiBwYXJyb3QgYW5kIGNvcXXDrSBmcm9nLCBhbmQgdmlzaXQgc3R1bm5pbmcgd2F0ZXJmYWxscyBsaWtlIExhIE1pbmEgRmFsbHMuIE9ic2VydmF0aW9uIHRvd2VycyBzdWNoIGFzIFlva2FodSBUb3dlciBwcm92aWRlIHBhbm9yYW1pYyB2aWV3cyBvZiB0aGUgZm9yZXN0IGNhbm9weSBhbmQgY29hc3RsaW5lLiAoW2NhcmlidW5lLmNvbV0oaHR0cHM6Ly93d3cuY2FyaWJ1bmUuY29tL2NhcmliYmVhbi1oaWtpbmctYW5kLW5hdHVyZS10cmFpbHMvP3V0bV9zb3VyY2U9b3BlbmFpKSlcXG5cXG4qKjIuIEJsdWUgTW91bnRhaW4gUGVhaywgSmFtYWljYSoqXFxuXFxuU3RhbmRpbmcgYXQgNyw0MDIgZmVldCwgQmx1ZSBNb3VudGFpbiBQZWFrIGlzIEphbWFpY2EncyBoaWdoZXN0IHBvaW50LiBUaGUgaGlrZSB0byB0aGUgc3VtbWl0IGlzIHBvcHVsYXIgZm9yIGl0cyBicmVhdGh0YWtpbmcgc3VucmlzZSB2aWV3cywgd2hlcmUsIG9uIGNsZWFyIGRheXMsIHRoZSBkaXN0YW50IGNvYXN0bGluZSBvZiBDdWJhIGlzIHZpc2libGUuIFRoZSBhcmVhIGlzIGEgVU5FU0NPIFdvcmxkIEhlcml0YWdlIFNpdGUsIGhvbWUgdG8gZW5kZW1pYyBzcGVjaWVzIGxpa2UgdGhlIEphbWFpY2FuIHN3YWxsb3d0YWlsIGJ1dHRlcmZseSwgYW5kIGlzIHJlbm93bmVkIGZvciBpdHMgQmx1ZSBNb3VudGFpbiBDb2ZmZWUgcGxhbnRhdGlvbnMgb2ZmZXJpbmcgdG91cnMgYW5kIHRhc3RpbmdzLiAoW2NhcmlidW5lLmNvbV0oaHR0cHM6Ly93d3cuY2FyaWJ1bmUuY29tL2NhcmliYmVhbi1oaWtpbmctYW5kLW5hdHVyZS10cmFpbHMvP3V0bV9zb3VyY2U9b3BlbmFpKSlcXG5cXG4qKjMuIFdhaXR1a3VidWxpIE5hdGlvbmFsIFRyYWlsLCBEb21pbmljYSoqXFxuXFxuU3RyZXRjaGluZyAxMTUgbWlsZXMgYWNyb3NzIERvbWluaWNhLCB0aGUgV2FpdHVrdWJ1bGkgTmF0aW9uYWwgVHJhaWwgaXMgdGhlIENhcmliYmVhbidzIGZpcnN0IGxvbmctZGlzdGFuY2UgaGlraW5nIHRyYWlsLiBEaXZpZGVkIGludG8gMTQgc2VnbWVudHMsIGl0IHRyYXZlcnNlcyB2b2xjYW5pYyBjcmF0ZXJzLCBob3Qgc3ByaW5ncywgYW5kIGJvaWxpbmcgbGFrZXMsIHNob3djYXNpbmcgdGhlIGlzbGFuZCdzIGdlb3RoZXJtYWwgYWN0aXZpdHkuIEhpa2VycyBjYW4gdmlzaXQgaW5kaWdlbm91cyBLYWxpbmFnbyB2aWxsYWdlcywgaGlzdG9yaWMgZm9ydHMsIGFuZCBjb2xvbmlhbCBwbGFudGF0aW9ucywgZXhwZXJpZW5jaW5nIGRpdmVyc2UgZWNvc3lzdGVtcyBmcm9tIHJhaW5mb3Jlc3RzIHRvIGNvYXN0YWwgYXJlYXMuIChbbG9uZWx5cGxhbmV0LmNvbV0oaHR0cHM6Ly93d3cubG9uZWx5cGxhbmV0LmNvbS9hcnRpY2xlcy9iZXN0LWhpa2VzLWluLWNhcmliYmVhbj91dG1fc291cmNlPW9wZW5haSkpXFxuXFxuKio0LiBNb3VudCBTY2VuZXJ5LCBTYWJhKipcXG5cXG5Nb3VudCBTY2VuZXJ5LCB0aGUgaGlnaGVzdCBwb2ludCBpbiB0aGUgS2luZ2RvbSBvZiB0aGUgTmV0aGVybGFuZHMsIG9mZmVycyBhIHN0cmVudW91cyBoaWtlIHVwIDEsMDY0IHN0ZXBzIHRvIGl0cyBzdW1taXQuIFRoZSB0cmFpbCBwYXNzZXMgdGhyb3VnaCByYWluZm9yZXN0IGFuZCBjbG91ZCBmb3Jlc3QsIGZlYXR1cmluZyB0cmVlIGZlcm5zLCB3aWxkIHBsYW50YWlucywgYW5kIE1vdW50YWluIFBhbG1zLiBBdCB0aGUgc3VtbWl0LCBoaWtlcnMgYXJlIHJld2FyZGVkIHdpdGggcGFub3JhbWljIHZpZXdzIG9mIHRoZSBpc2xhbmQuIChbZW4ud2lraXBlZGlhLm9yZ10oaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvTW91bnRfU2NlbmVyeT91dG1fc291cmNlPW9wZW5haSkpXFxuXFxuKio1LiBTb3VmcmnDqHJlIFZvbGNhbm8gVHJhaWwsIFNhaW50IFZpbmNlbnQqKlxcblxcblRoZSBTb3VmcmnDqHJlIFZvbGNhbm8gVHJhaWwgbGVhZHMgdG8gdGhlIHN1bW1pdCBvZiBMYSBTb3VmcmnDqHJlLCBhbiBhY3RpdmUgc3RyYXRvdm9sY2Fuby4gVGhlIGNoYWxsZW5naW5nIGhpa2Ugb2ZmZXJzIHN0dW5uaW5nIHZpZXdzIG9mIHRoZSBpc2xhbmQncyBsdXNoIGxhbmRzY2FwZSBhbmQgdGhlIENhcmliYmVhbiBTZWEuIFRoZSB0cmFpbCBwYXNzZXMgdGhyb3VnaCBkZW5zZSByYWluZm9yZXN0LCBhbHBpbmUgbWVhZG93cywgYW5kIHZvbGNhbmljIHJvY2sgZm9ybWF0aW9ucywgd2l0aCBndWlkZWQgdG91cnMgcHJvdmlkaW5nIGluc2lnaHRzIGludG8gdGhlIHZvbGNhbm8ncyBoaXN0b3J5IGFuZCBnZW9sb2d5LiAoW2NhcmlidW5lLmNvbV0oaHR0cHM6Ly93d3cuY2FyaWJ1bmUuY29tL2NhcmliYmVhbi1oaWtpbmctYW5kLW5hdHVyZS10cmFpbHMvP3V0bV9zb3VyY2U9b3BlbmFpKSlcXG5cXG5UaGVzZSBkZXN0aW5hdGlvbnMgb2ZmZXIgYSBibGVuZCBvZiBuYXR1cmFsIGJlYXV0eSwgY3VsdHVyYWwgZXhwZXJpZW5jZXMsIGFuZCB2YXJ5aW5nIGxldmVscyBvZiBoaWtpbmcgY2hhbGxlbmdlcywgbWFraW5nIHRoZW0gaWRlYWwgZm9yIGFuIEFwcmlsIENhcmliYmVhbiBhZHZlbnR1cmUuIFwiLCBcIkFwcmlsIGluIHRoZSBDYXJpYmJlYW4gb2ZmZXJzIHdhcm0gdGVtcGVyYXR1cmVzLCB0eXBpY2FsbHkgcmFuZ2luZyBmcm9tIGRheXRpbWUgaGlnaHMgaW4gdGhlIG1pZC04MHPCsEYgKDI4LTMwwrBDKSB0byBuaWdodHRpbWUgbG93cyBpbiB0aGUgbWlkLTcwc8KwRiAoMjAtMjTCsEMpLiBUaGlzIHBlcmlvZCBtYXJrcyB0aGUgZW5kIG9mIHRoZSBkcnkgc2Vhc29uLCByZXN1bHRpbmcgaW4gcHJlZG9taW5hbnRseSBzdW5ueSBkYXlzIHdpdGggbWluaW1hbCByYWluZmFsbCwgbWFraW5nIGl0IGlkZWFsIGZvciBvdXRkb29yIGFjdGl2aXRpZXMuIFdhdGVyIHRlbXBlcmF0dXJlcyBhcmUgYWxzbyB3YXJtLCBhdmVyYWdpbmcgYXJvdW5kIDgwwrBGICgyN8KwQyksIHBlcmZlY3QgZm9yIHN3aW1taW5nIGFuZCB3YXRlciBzcG9ydHMuIChbdHJpcHNhdnZ5LmNvbV0oaHR0cHM6Ly93d3cudHJpcHNhdnZ5LmNvbS9hcHJpbC1pbi10aGUtY2FyaWJiZWFuLTE0ODc2NTk/dXRtX3NvdXJjZT1vcGVuYWkpKVxcblxcbkZvciBzdXJmaW5nIGVudGh1c2lhc3RzLCB0aGUgQ2FyaWJiZWFuIHByb3ZpZGVzIGZhdm9yYWJsZSBjb25kaXRpb25zIGluIEFwcmlsLiBXaGlsZSB0aGUgbGFyZ2VzdCBzd2VsbHMgb2NjdXIgZHVyaW5nIHRoZSBsYXRlIHJhaW55IHNlYXNvbiwgdGhlIHBlcmlvZCBmcm9tIE5vdmVtYmVyIHRvIEFwcmlsIG9mZmVycyBjb25zaXN0ZW50IHdhdmVzIHN1aXRhYmxlIGZvciBzdXJmZXJzIG9mIHZhcmlvdXMgc2tpbGwgbGV2ZWxzLiBOb3RhYmxlIHN1cmZpbmcgZGVzdGluYXRpb25zIGluY2x1ZGUgUHVlcnRvIFJpY28sIHRoZSBEb21pbmljYW4gUmVwdWJsaWMsIGFuZCBCYXJiYWRvcy4gKFtiYWNrcm9hZHMuY29tXShodHRwczovL3d3dy5iYWNrcm9hZHMuY29tL3Byby10aXBzL3RyYXZlbC1ndWlkZXMvd2hlbi10by12aXNpdC9jYXJpYmJlYW4/dXRtX3NvdXJjZT1vcGVuYWkpKVxcblxcbkhpa2luZyBvcHBvcnR1bml0aWVzIGFib3VuZCBpbiB0aGUgQ2FyaWJiZWFuJ3MgbW91bnRhaW5vdXMgcmVnaW9ucy4gRGVzdGluYXRpb25zIHN1Y2ggYXMgRWwgWXVucXVlIGluIFB1ZXJ0byBSaWNvLCB0aGUgQmx1ZSBNb3VudGFpbnMgaW4gSmFtYWljYSwgYW5kIHRoZSBhcmVhIGFyb3VuZCBKYXJhYmFjb2EgaW4gdGhlIERvbWluaWNhbiBSZXB1YmxpYyBvZmZlciBleGNlbGxlbnQgdHJhaWxzLiBBcHJpbCdzIHdhcm0gYW5kIGRyeSB3ZWF0aGVyIHByb3ZpZGVzIGNvbWZvcnRhYmxlIGNvbmRpdGlvbnMgZm9yIGV4cGxvcmluZyB0aGVzZSBsYW5kc2NhcGVzLiAoW2JhY2tyb2Fkcy5jb21dKGh0dHBzOi8vd3d3LmJhY2tyb2Fkcy5jb20vcHJvLXRpcHMvdHJhdmVsLWd1aWRlcy93aGVuLXRvLXZpc2l0L2NhcmliYmVhbj91dG1fc291cmNlPW9wZW5haSkpXFxuXFxuQWRkaXRpb25hbGx5LCBBcHJpbCBob3N0cyB2YXJpb3VzIGN1bHR1cmFsIGV2ZW50cyBhY3Jvc3MgdGhlIENhcmliYmVhbiwgaW5jbHVkaW5nIEVhc3RlciBjZWxlYnJhdGlvbnMgYW5kIHJlZ2F0dGFzIGxpa2UgQW50aWd1YSBTYWlsaW5nIFdlZWssIGVuaGFuY2luZyB0aGUgdHJhdmVsIGV4cGVyaWVuY2UuIChbdHJpcHNhdnZ5LmNvbV0oaHR0cHM6Ly93d3cudHJpcHNhdnZ5LmNvbS9hcHJpbC1pbi10aGUtY2FyaWJiZWFuLTE0ODc2NTk/dXRtX3NvdXJjZT1vcGVuYWkpKSBcIl0iLCJyb2xlIjoidXNlciJ9XSwibW9kZWxfc2V0dGluZ3MiOnsidGVtcGVyYXR1cmUiOm51bGwsInRvcF9wIjpudWxsLCJmcmVxdWVuY3lfcGVuYWx0eSI6bnVsbCwicHJlc2VuY2VfcGVuYWx0eSI6bnVsbCwidG9vbF9jaG9pY2UiOm51bGwsInBhcmFsbGVsX3Rvb2xfY2FsbHMiOm51bGwsInRydW5jYXRpb24iOm51bGwsIm1heF90b2tlbnMiOm51bGwsInJlYXNvbmluZyI6bnVsbCwibWV0YWRhdGEiOm51bGwsInN0b3JlIjpudWxsLCJpbmNsdWRlX3VzYWdlIjpudWxsLCJleHRyYV9xdWVyeSI6bnVsbCwiZXh0cmFfYm9keSI6bnVsbCwiZXh0cmFfaGVhZGVycyI6bnVsbCwiZXh0cmFfYXJncyI6bnVsbH0sInRvb2xzIjpbXSwib3V0cHV0X3NjaGVtYSI6eyJvdXRwdXRfdHlwZV9uYW1lIjoiUmVwb3J0RGF0YSIsImlzX3dyYXBwZWQiOmZhbHNlLCJvdXRwdXRfc2NoZW1hIjp7InByb3BlcnRpZXMiOnsic2hvcnRfc3VtbWFyeSI6eyJ0aXRsZSI6IlNob3J0IFN1bW1hcnkiLCJ0eXBlIjoic3RyaW5nIn0sIm1hcmtkb3duX3JlcG9ydCI6eyJ0aXRsZSI6Ik1hcmtkb3duIFJlcG9ydCIsInR5cGUiOiJzdHJpbmcifSwiZm9sbG93X3VwX3F1ZXN0aW9ucyI6eyJpdGVtcyI6eyJ0eXBlIjoic3RyaW5nIn0sInRpdGxlIjoiRm9sbG93IFVwIFF1ZXN0aW9ucyIsInR5cGUiOiJhcnJheSJ9fSwicmVxdWlyZWQiOlsic2hvcnRfc3VtbWFyeSIsIm1hcmtkb3duX3JlcG9ydCIsImZvbGxvd191cF9xdWVzdGlvbnMiXSwidGl0bGUiOiJSZXBvcnREYXRhIiwidHlwZSI6Im9iamVjdCIsImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjpmYWxzZX0sInN0cmljdF9qc29uX3NjaGVtYSI6dHJ1ZX0sImhhbmRvZmZzIjpbXSwidHJhY2luZyI6MSwicHJldmlvdXNfcmVzcG9uc2VfaWQiOm51bGwsInByb21wdCI6bnVsbH0=" - } - ] - }, - "scheduleToCloseTimeout": "120s", - "scheduleToStartTimeout": "120s", - "startToCloseTimeout": "120s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "70", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "Ik9yaWdpbmFsIHF1ZXJ5OiBDYXJpYmJlYW4gdmFjYXRpb24gc3BvdHMgaW4gQXByaWwsIG9wdGltaXppbmcgZm9yIHN1cmZpbmcsIGhpa2luZyBhbmQgd2F0ZXIgc3BvcnRzXG5TIg==" - } - } - }, - { - "eventId": "72", - "eventTime": "2025-06-30T17:04:23.919583Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1057227", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "71", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "eb8cb709-d324-46b5-a684-56f29f218ed6", - "attempt": 1, - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "73", - "eventTime": "2025-06-30T17:04:50.687490Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1057228", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoibXNnXzY4NjJjMzk4ZTcxODgxOWQ5Yzg1OTJjMWI3MGY2ZDM1MGRlNTlkZjk2NDhmZjBlMyIsImNvbnRlbnQiOlt7ImFubm90YXRpb25zIjpbXSwidGV4dCI6IntcInNob3J0X3N1bW1hcnlcIjpcIkFwcmlsIGlzIGFuIGV4Y2VsbGVudCB0aW1lIGZvciBhIENhcmliYmVhbiB2YWNhdGlvbiBmb2N1c2luZyBvbiBzdXJmaW5nLCBoaWtpbmcsIGFuZCB3YXRlciBzcG9ydHMuIFRvcCBzcG90cyBpbmNsdWRlIFJpbmNvbiBpbiBQdWVydG8gUmljbyBhbmQgQmF0aHNoZWJhIGluIEJhcmJhZG9zIGZvciBzdXJmaW5nLCB3aGlsZSBEb21pbmljYSdzIHRyYWlscyBhbmQgSmFtYWljYSdzIEJsdWUgTW91bnRhaW5zIG9mZmVyIHJlbWFya2FibGUgaGlraW5nLiBXYXRlciBhY3Rpdml0aWVzLCBzdWNoIGFzIGtpdGVzdXJmaW5nIGFuZCBzbm9ya2VsaW5nLCB0aHJpdmUgaW4gdGhpcyBtb250aCBkdWUgdG8gaWRlYWwgd2VhdGhlciBhbmQgbWFyaW5lIGNvbmRpdGlvbnMuIEN1bHR1cmFsIGZlc3RpdmFscyBhbmQgd2FybSB0ZW1wZXJhdHVyZXMgZnVydGhlciBlbnJpY2ggdGhlIGV4cGVyaWVuY2UuXCIsXCJtYXJrZG93bl9yZXBvcnRcIjpcIiMgQ2FyaWJiZWFuIFZhY2F0aW9uIFNwb3RzIGluIEFwcmlsOiBBIEd1aWRlIHRvIFN1cmZpbmcsIEhpa2luZywgYW5kIFdhdGVyIFNwb3J0cyBcXG5cXG4jIyBJbnRyb2R1Y3Rpb25cXG5cXG5BcHJpbCBpcyBhIHByaW1lIG1vbnRoIGZvciBhZHZlbnR1cmUgc2Vla2VycyBpbiB0aGUgQ2FyaWJiZWFuLCBwcm92aWRpbmcgYW4gb3B0aW1hbCBibGVuZCBvZiBjb25zaXN0ZW50IHN1cmZpbmcgd2F2ZXMsIHZpYnJhbnQgaGlraW5nIHRyYWlscywgYW5kIGRpdmVyc2Ugd2F0ZXIgc3BvcnRzLiBUaGUgcmVnaW9uJ3MgZmF2b3JhYmxlIGNsaW1hdGUsIGNoYXJhY3Rlcml6ZWQgYnkgd2FybSB0ZW1wZXJhdHVyZXMgYW5kIGRyeSBjb25kaXRpb25zLCBlbmhhbmNlcyB0aGVzZSBvdXRkb29yIGV4cGVyaWVuY2VzLiBUaGlzIHJlcG9ydCBleHBsb3JlcyB0aGUgdG9wIENhcmliYmVhbiBkZXN0aW5hdGlvbnMgaW4gQXByaWwgZm9yIHN1cmZpbmcsIGhpa2luZywgYW5kIGVuZ2FnaW5nIGluIHdhdGVyIHNwb3J0cywgZW5zdXJpbmcgdHJhdmVsZXJzIGNhbiBtYXhpbWl6ZSB0aGVpciB2YWNhdGlvbi5cXG5cXG4jIyBTdXJmaW5nIGluIHRoZSBDYXJpYmJlYW5cXG5cXG4jIyMgVG9wIFN1cmZpbmcgRGVzdGluYXRpb25zXFxuXFxuKioxLiBSaW5jb24sIFB1ZXJ0byBSaWNvKipcXG4gICAtIEtub3duIGZvciBhIHZhcmlldHkgb2YgYnJlYWtzIHN1aXRhYmxlIGZvciBhbGwgbGV2ZWxzLlxcbiAgIC0gT2ZmZXJzIGEgd2FybSBzdXJmIGNvbW11bml0eSBhbmQgY29uc2lzdGVudCBzd2VsbHMuXFxuXFxuKioyLiBCYXRoc2hlYmEsIEJhcmJhZG9zKipcXG4gICAtIEZhbW91cyBmb3IgdGhlIFNvdXAgQm93bCwgb2ZmZXJpbmcgcG93ZXJmdWwgd2F2ZXMuXFxuICAgLSBBdHRyYWN0cyBib3RoIGxvY2FsIGFuZCBpbnRlcm5hdGlvbmFsIHN1cmZlcnMuXFxuXFxuKiozLiBQbGF5YSBFbmN1ZW50cm8sIERvbWluaWNhbiBSZXB1YmxpYyoqXFxuICAgLSBGZWF0dXJlcyBjb25zaXN0ZW50IHdhdmVzIGFuZCBhIHZpYnJhbnQgc3VyZiBzY2VuZS5cXG5cXG4qKjQuIEFndWFkaWxsYSwgUHVlcnRvIFJpY28sIGFuZCBMb25nIEJheSwgSmFtYWljYSoqXFxuICAgLSBQcm92aWRlIGRpdmVyc2Ugc3VyZiBicmVha3MgYW5kIGJlZ2lubmVyLWZyaWVuZGx5IHdhdmVzLlxcblxcbiMjIyBTdXJmaW5nIEV2ZW50c1xcbiAgIC0gKipCYXJiYWRvcyBTdXJmIFBybyoqIGFuZCAqKk1hcnRpbmlxdWUgU3VyZiBQcm8qKiBhcmUgV1NMIGV2ZW50cyBvY2N1cnJpbmcgaW4gQXByaWwsIGRyYXdpbmcgaW50ZXJuYXRpb25hbCBjb21wZXRpdG9ycy5cXG5cXG4jIyBIaWtpbmcgQWR2ZW50dXJlc1xcblxcbiMjIyBOb3RhYmxlIEhpa2luZyBUcmFpbHNcXG5cXG4qKjEuIEVsIFl1bnF1ZSBOYXRpb25hbCBGb3Jlc3QsIFB1ZXJ0byBSaWNvKipcXG4gICAtIE9mZmVycyBhIG5ldHdvcmsgb2YgdHJhaWxzIHNob3djYXNpbmcgdW5pcXVlIGZsb3JhIGFuZCBmYXVuYS5cXG5cXG4qKjIuIEJsdWUgTW91bnRhaW4gUGVhaywgSmFtYWljYSoqXFxuICAgLSBQcm92aWRlcyBwYW5vcmFtaWMgc3VucmlzZSB2aWV3cyBhbmQgY3VsdHVyYWwgZW5jb3VudGVycy5cXG5cXG4qKjMuIFdhaXR1a3VidWxpIE5hdGlvbmFsIFRyYWlsLCBEb21pbmljYSoqXFxuICAgLSBTcGFucyAxMTUgbWlsZXMsIHRyYXZlcnNpbmcgdm9sY2FuaWMgYW5kIGN1bHR1cmFsIGxhbmRzY2FwZXMuXFxuXFxuIyMjIEhpa2luZyBUaXBzXFxuICAgLSBBcHJpbOKAmXMgd2VhdGhlciBwcm92aWRlcyBjb21mb3J0YWJsZSBjb25kaXRpb25zIGZvciBleHBsb3JpbmcgbW91bnRhaW5vdXMgYW5kIHJhaW5mb3Jlc3QgdHJhaWxzLiBcXG4gICAtIEVuZ2FnZSB3aXRoIGxvY2FsIGd1aWRlcyBmb3Igc2FmZSBhbmQgaW5mb3JtYXRpdmUgaGlrZXMuXFxuXFxuIyMgV2F0ZXIgU3BvcnRzIE9wcG9ydHVuaXRpZXNcXG5cXG4jIyMgUG9wdWxhciBBY3Rpdml0aWVzXFxuXFxuKioxLiBLaXRlc3VyZmluZyBhbmQgU25vcmtlbGluZyoqXFxuICAgLSBTdGVhZHkgd2luZHMgaW4gQXByaWwgcGVyZmVjdCBmb3Iga2l0ZXN1cmZpbmcsIGVzcGVjaWFsbHkgYXJvdW5kIENhYmFyZXRlIGluIHRoZSBEb21pbmljYW4gUmVwdWJsaWMuXFxuICAgLSBTbm9ya2VsaW5nIG9wcG9ydHVuaXRpZXMgYWJvdW5kLCB3aXRoIGNsZWFyIHdhdGVycyBob3N0aW5nIGRpdmVyc2UgbWFyaW5lIGxpZmUuXFxuXFxuKioyLiBTYWlsaW5nIGFuZCBLYXlha2luZyoqXFxuICAgLSBUaGUgQnJpdGlzaCBWaXJnaW4gSXNsYW5kcyBvZmZlciBleGNlcHRpb25hbCBzYWlsaW5nIGNvbmRpdGlvbnMuXFxuICAgLSBCZWxpemUncyBHcmVhdCBCbHVlIEhvbGUgaXMgYW4gaWNvbmljIGtheWFraW5nIGRlc3RpbmF0aW9uLlxcblxcbiMjIyBFcXVpcG1lbnQgUmVudGFsc1xcbiAgIC0gTnVtZXJvdXMgcmVudGFsIHNlcnZpY2VzLCBzdWNoIGFzIFJpbmNvbiBDYXBpdGFsIFdhdGVyIFNwb3J0cywgcHJvdmlkZSBhY2Nlc3MgdG8gamV0IHNraXMsIGtheWFrcywgYW5kIHNub3JrZWxpbmcgZ2Vhci5cXG5cXG4jIyBDdWx0dXJhbCBFdmVudHMgYW5kIExvY2FsIEluc2lnaHRzXFxuXFxuIyMjIEZlc3RpdmFscyBhbmQgQ2VsZWJyYXRpb25zXFxuXFxuKioxLiBTdC4gVGhvbWFzIEludGVybmF0aW9uYWwgUmVnYXR0YSwgVS5TLiBWaXJnaW4gSXNsYW5kcyoqXFxuICAgLSBBIGtleSBzYWlsaW5nIGV2ZW50IHByb21vdGluZyBjdWx0dXJhbCBleGNoYW5nZS5cXG5cXG4qKjIuIE5hdGlvbmFsIEZhbWlseSBJc2xhbmQgUmVnYXR0YSwgQmFoYW1hcyoqXFxuICAgLSBDZWxlYnJhdGVzIHRyYWRpdGlvbmFsIEJhaGFtaWFuIHNsb29wIHNhaWxpbmcuXFxuXFxuIyMjIExvY2FsIFJlY29tbWVuZGF0aW9uc1xcbiAgIC0gUGFydGljaXBhdGUgaW4gZ3VpZGVkIHRvdXJzIGFuZCBsb2NhbCBldmVudHMgdG8gZW5oYW5jZSBjdWx0dXJhbCB1bmRlcnN0YW5kaW5nIGFuZCBleHBlcmllbmNlLlxcblxcbiMjIFdlYXRoZXIgQ29uc2lkZXJhdGlvbnNcXG5cXG4tICoqVGVtcGVyYXR1cmUgT3ZlcnZpZXc6KipcXG4gIC0gQXZlcmFnZSBkYXkgdGVtcGVyYXR1cmVzIGluIHRoZSBtaWQtODBzwrBGICgyOC0zMMKwQykgYW5kIHdhcm0gd2F0ZXIgdGVtcGVyYXR1cmVzIGFyb3VuZCA4MMKwRiAoMjfCsEMpLlxcblxcbi0gKipSYWluZmFsbCBJbnNpZ2h0czoqKlxcbiAgLSBNaW5pbWFsIHJhaW5mYWxsIGFzIEFwcmlsIG1hcmtzIHRoZSBlbmQgb2YgdGhlIGRyeSBzZWFzb24sIHByb3ZpZGluZyBtb3N0bHkgc3VubnkgZGF5cy5cXG5cXG4jIyBDb25jbHVzaW9uXFxuXFxuQXByaWwgaXMgYW4gaWRlYWwgbW9udGggZm9yIGFkdmVudHVyZSB2YWNhdGlvbnMgaW4gdGhlIENhcmliYmVhbiwgb2ZmZXJpbmcgYSBzZWFtbGVzcyBjb21iaW5hdGlvbiBvZiBzdXJmaW5nLCBoaWtpbmcsIGFuZCB3YXRlciBzcG9ydHMgYWxvbmcgd2l0aCBlbnJpY2hpbmcgY3VsdHVyYWwgZXhwZXJpZW5jZXMuIFdpdGggZGl2ZXJzZSBkZXN0aW5hdGlvbnMgY2F0ZXJpbmcgdG8gYWxsIHNraWxsIGxldmVscyBhbmQgaW50ZXJlc3RzLCB0cmF2ZWxlcnMgYXJlIHN1cmUgdG8gZmluZCBhIGZ1bGZpbGxpbmcgYW5kIG1lbW9yYWJsZSB0cmF2ZWwgZXhwZXJpZW5jZS4gQXMgc3VjaCwgdGhpcyBtb250aCBpcyBwZXJmZWN0IGZvciB0aG9zZSBzZWVraW5nIGFuIGFjdGl2ZSBhbmQgdmlicmFudCBnZXRhd2F5LlxcblxcbiMjIFJlZmVyZW5jZXNcXG5cXG4tIEVsaXRlIElzbGFuZCBIb2xpZGF5cyBbQ2FyaWJiZWFuIFdhdGVyIFNwb3J0cyBHdWlkZV0oaHR0cHM6Ly9lbGl0ZWlzbGFuZGhvbGlkYXlzLmNvbS9jYXJpYmJlYW4td2F0ZXJzcG9ydHMtZ3VpZGUvP3V0bV9zb3VyY2U9b3BlbmFpKVxcbi0gVHJpcEFkdmlzb3IgW09jZWFuIEFkdmVudHVyZXMgU2FpbGluZyBBZHZlbnR1cmUgUmV2aWV3c10oaHR0cHM6Ly93d3cudHJpcGFkdmlzb3IuY29tL1Nob3dVc2VyUmV2aWV3cy1nMTQ3MjkzLWQyNjI0Nzg5LXIyMDYxMTQxMDUtT2NlYW5fQWR2ZW50dXJlc19TYWlsaW5nX0FkdmVudHVyZS1QdW50YV9DYW5hX0xhX0FsdGFncmFjaWFfUHJvdmluY2VfRG9taW5pY2FuX1IuaHRtbD91dG1fc291cmNlPW9wZW5haSlcXG4tIFNsaWNrcm9jayBCZWxpemUgQWR2ZW50dXJlcyBbUGFja2FnZXNdKGh0dHBzOi8vc2xpY2tyb2NrLmNvbS9wYWNrYWdlcy8/dXRtX3NvdXJjZT1vcGVuYWkpXFxuLSBPdGhlciByZWxldmFudCB0cmF2ZWwgYXJ0aWNsZXMgYW5kIGxvY2FsIGd1aWRlcy5cXG5cXG4tLS1cXG5cXG5Gb3IgbW9yZSBwZXJzb25hbGl6ZWQgdHJhdmVsIGd1aWRhbmNlLCBjb25zaWRlciByZWFjaGluZyBvdXQgdG8gbG9jYWwgdG91cmlzbSBib2FyZHMgb3IgdHJhdmVsIGFnZW5jaWVzIHNwZWNpYWxpemluZyBpbiBDYXJpYmJlYW4gYWR2ZW50dXJlcy5cIixcImZvbGxvd191cF9xdWVzdGlvbnNcIjpbXCJXaGF0IGFyZSB0aGUgc2FmZXR5IHRpcHMgZm9yIHN1cmZpbmcgaW4gdGhlIENhcmliYmVhbj9cIixcIkhvdyBjYW4gdHJhdmVsZXJzIGFycmFuZ2UgZXF1aXBtZW50IHJlbnRhbHMgaW4gYWR2YW5jZT9cIixcIldoYXQgYXJlIHRoZSBiZXN0IGN1bHR1cmFsIGV4cGVyaWVuY2VzIGluIHRoZSBDYXJpYmJlYW4gaW4gQXByaWw/XCIsXCJIb3cgZG8gd2VhdGhlciBjb25kaXRpb25zIHZhcnkgYW1vbmcgQ2FyaWJiZWFuIGlzbGFuZHMgaW4gQXByaWw/XCIsXCJXaGF0IGFyZSB0aGUgZmFtaWx5LWZyaWVuZGx5IGFkdmVudHVyZSBvcHRpb25zIGluIHRoZSBDYXJpYmJlYW4/XCJdfSIsInR5cGUiOiJvdXRwdXRfdGV4dCIsImxvZ3Byb2JzIjpbXX1dLCJyb2xlIjoiYXNzaXN0YW50Iiwic3RhdHVzIjoiY29tcGxldGVkIiwidHlwZSI6Im1lc3NhZ2UifV0sInVzYWdlIjp7InJlcXVlc3RzIjoxLCJpbnB1dF90b2tlbnMiOjM3ODEsImlucHV0X3Rva2Vuc19kZXRhaWxzIjp7ImNhY2hlZF90b2tlbnMiOjB9LCJvdXRwdXRfdG9rZW5zIjoxMTExLCJvdXRwdXRfdG9rZW5zX2RldGFpbHMiOnsicmVhc29uaW5nX3Rva2VucyI6MH0sInRvdGFsX3Rva2VucyI6NDg5Mn0sInJlc3BvbnNlX2lkIjoicmVzcF82ODYyYzM5ODE1NGM4MTlkYmVmOWU5ZjQ2NGE3YjcyNDBkZTU5ZGY5NjQ4ZmYwZTMifQ==" - } - ] - }, - "scheduledEventId": "71", - "startedEventId": "72", - "identity": "19167@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "74", - "eventTime": "2025-06-30T17:04:50.687501Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1057229", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "19167@Tims-MacBook-Pro.local-f783ce7516bc48e59108b7b5cd31d0e5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "fc97ba3c-6c32-4f4c-a986-8d7f4f5c7f80" - }, - "startToCloseTimeout": "10s", - "attempt": 1 - } - }, - { - "eventId": "75", - "eventTime": "2025-06-30T17:04:50.690917Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1057233", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "74", - "identity": "19167@Tims-MacBook-Pro.local", - "requestId": "88402abb-bcf0-4c2d-8fd3-823f221c29bd", - "historySizeBytes": "82270", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - } - } - }, - { - "eventId": "76", - "eventTime": "2025-06-30T17:04:50.710583Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1057237", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "74", - "startedEventId": "75", - "identity": "19167@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "9f32b5d9789ece25bfb8515a7023ec78" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "77", - "eventTime": "2025-06-30T17:04:50.710627Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", - "taskId": "1057238", - "workflowExecutionCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IiMgQ2FyaWJiZWFuIFZhY2F0aW9uIFNwb3RzIGluIEFwcmlsOiBBIEd1aWRlIHRvIFN1cmZpbmcsIEhpa2luZywgYW5kIFdhdGVyIFNwb3J0cyBcblxuIyMgSW50cm9kdWN0aW9uXG5cbkFwcmlsIGlzIGEgcHJpbWUgbW9udGggZm9yIGFkdmVudHVyZSBzZWVrZXJzIGluIHRoZSBDYXJpYmJlYW4sIHByb3ZpZGluZyBhbiBvcHRpbWFsIGJsZW5kIG9mIGNvbnNpc3RlbnQgc3VyZmluZyB3YXZlcywgdmlicmFudCBoaWtpbmcgdHJhaWxzLCBhbmQgZGl2ZXJzZSB3YXRlciBzcG9ydHMuIFRoZSByZWdpb24ncyBmYXZvcmFibGUgY2xpbWF0ZSwgY2hhcmFjdGVyaXplZCBieSB3YXJtIHRlbXBlcmF0dXJlcyBhbmQgZHJ5IGNvbmRpdGlvbnMsIGVuaGFuY2VzIHRoZXNlIG91dGRvb3IgZXhwZXJpZW5jZXMuIFRoaXMgcmVwb3J0IGV4cGxvcmVzIHRoZSB0b3AgQ2FyaWJiZWFuIGRlc3RpbmF0aW9ucyBpbiBBcHJpbCBmb3Igc3VyZmluZywgaGlraW5nLCBhbmQgZW5nYWdpbmcgaW4gd2F0ZXIgc3BvcnRzLCBlbnN1cmluZyB0cmF2ZWxlcnMgY2FuIG1heGltaXplIHRoZWlyIHZhY2F0aW9uLlxuXG4jIyBTdXJmaW5nIGluIHRoZSBDYXJpYmJlYW5cblxuIyMjIFRvcCBTdXJmaW5nIERlc3RpbmF0aW9uc1xuXG4qKjEuIFJpbmNvbiwgUHVlcnRvIFJpY28qKlxuICAgLSBLbm93biBmb3IgYSB2YXJpZXR5IG9mIGJyZWFrcyBzdWl0YWJsZSBmb3IgYWxsIGxldmVscy5cbiAgIC0gT2ZmZXJzIGEgd2FybSBzdXJmIGNvbW11bml0eSBhbmQgY29uc2lzdGVudCBzd2VsbHMuXG5cbioqMi4gQmF0aHNoZWJhLCBCYXJiYWRvcyoqXG4gICAtIEZhbW91cyBmb3IgdGhlIFNvdXAgQm93bCwgb2ZmZXJpbmcgcG93ZXJmdWwgd2F2ZXMuXG4gICAtIEF0dHJhY3RzIGJvdGggbG9jYWwgYW5kIGludGVybmF0aW9uYWwgc3VyZmVycy5cblxuKiozLiBQbGF5YSBFbmN1ZW50cm8sIERvbWluaWNhbiBSZXB1YmxpYyoqXG4gICAtIEZlYXR1cmVzIGNvbnNpc3RlbnQgd2F2ZXMgYW5kIGEgdmlicmFudCBzdXJmIHNjZW5lLlxuXG4qKjQuIEFndWFkaWxsYSwgUHVlcnRvIFJpY28sIGFuZCBMb25nIEJheSwgSmFtYWljYSoqXG4gICAtIFByb3ZpZGUgZGl2ZXJzZSBzdXJmIGJyZWFrcyBhbmQgYmVnaW5uZXItZnJpZW5kbHkgd2F2ZXMuXG5cbiMjIyBTdXJmaW5nIEV2ZW50c1xuICAgLSAqKkJhcmJhZG9zIFN1cmYgUHJvKiogYW5kICoqTWFydGluaXF1ZSBTdXJmIFBybyoqIGFyZSBXU0wgZXZlbnRzIG9jY3VycmluZyBpbiBBcHJpbCwgZHJhd2luZyBpbnRlcm5hdGlvbmFsIGNvbXBldGl0b3JzLlxuXG4jIyBIaWtpbmcgQWR2ZW50dXJlc1xuXG4jIyMgTm90YWJsZSBIaWtpbmcgVHJhaWxzXG5cbioqMS4gRWwgWXVucXVlIE5hdGlvbmFsIEZvcmVzdCwgUHVlcnRvIFJpY28qKlxuICAgLSBPZmZlcnMgYSBuZXR3b3JrIG9mIHRyYWlscyBzaG93Y2FzaW5nIHVuaXF1ZSBmbG9yYSBhbmQgZmF1bmEuXG5cbioqMi4gQmx1ZSBNb3VudGFpbiBQZWFrLCBKYW1haWNhKipcbiAgIC0gUHJvdmlkZXMgcGFub3JhbWljIHN1bnJpc2Ugdmlld3MgYW5kIGN1bHR1cmFsIGVuY291bnRlcnMuXG5cbioqMy4gV2FpdHVrdWJ1bGkgTmF0aW9uYWwgVHJhaWwsIERvbWluaWNhKipcbiAgIC0gU3BhbnMgMTE1IG1pbGVzLCB0cmF2ZXJzaW5nIHZvbGNhbmljIGFuZCBjdWx0dXJhbCBsYW5kc2NhcGVzLlxuXG4jIyMgSGlraW5nIFRpcHNcbiAgIC0gQXByaWzigJlzIHdlYXRoZXIgcHJvdmlkZXMgY29tZm9ydGFibGUgY29uZGl0aW9ucyBmb3IgZXhwbG9yaW5nIG1vdW50YWlub3VzIGFuZCByYWluZm9yZXN0IHRyYWlscy4gXG4gICAtIEVuZ2FnZSB3aXRoIGxvY2FsIGd1aWRlcyBmb3Igc2FmZSBhbmQgaW5mb3JtYXRpdmUgaGlrZXMuXG5cbiMjIFdhdGVyIFNwb3J0cyBPcHBvcnR1bml0aWVzXG5cbiMjIyBQb3B1bGFyIEFjdGl2aXRpZXNcblxuKioxLiBLaXRlc3VyZmluZyBhbmQgU25vcmtlbGluZyoqXG4gICAtIFN0ZWFkeSB3aW5kcyBpbiBBcHJpbCBwZXJmZWN0IGZvciBraXRlc3VyZmluZywgZXNwZWNpYWxseSBhcm91bmQgQ2FiYXJldGUgaW4gdGhlIERvbWluaWNhbiBSZXB1YmxpYy5cbiAgIC0gU25vcmtlbGluZyBvcHBvcnR1bml0aWVzIGFib3VuZCwgd2l0aCBjbGVhciB3YXRlcnMgaG9zdGluZyBkaXZlcnNlIG1hcmluZSBsaWZlLlxuXG4qKjIuIFNhaWxpbmcgYW5kIEtheWFraW5nKipcbiAgIC0gVGhlIEJyaXRpc2ggVmlyZ2luIElzbGFuZHMgb2ZmZXIgZXhjZXB0aW9uYWwgc2FpbGluZyBjb25kaXRpb25zLlxuICAgLSBCZWxpemUncyBHcmVhdCBCbHVlIEhvbGUgaXMgYW4gaWNvbmljIGtheWFraW5nIGRlc3RpbmF0aW9uLlxuXG4jIyMgRXF1aXBtZW50IFJlbnRhbHNcbiAgIC0gTnVtZXJvdXMgcmVudGFsIHNlcnZpY2VzLCBzdWNoIGFzIFJpbmNvbiBDYXBpdGFsIFdhdGVyIFNwb3J0cywgcHJvdmlkZSBhY2Nlc3MgdG8gamV0IHNraXMsIGtheWFrcywgYW5kIHNub3JrZWxpbmcgZ2Vhci5cblxuIyMgQ3VsdHVyYWwgRXZlbnRzIGFuZCBMb2NhbCBJbnNpZ2h0c1xuXG4jIyMgRmVzdGl2YWxzIGFuZCBDZWxlYnJhdGlvbnNcblxuKioxLiBTdC4gVGhvbWFzIEludGVybmF0aW9uYWwgUmVnYXR0YSwgVS5TLiBWaXJnaW4gSXNsYW5kcyoqXG4gICAtIEEga2V5IHNhaWxpbmcgZXZlbnQgcHJvbW90aW5nIGN1bHR1cmFsIGV4Y2hhbmdlLlxuXG4qKjIuIE5hdGlvbmFsIEZhbWlseSBJc2xhbmQgUmVnYXR0YSwgQmFoYW1hcyoqXG4gICAtIENlbGVicmF0ZXMgdHJhZGl0aW9uYWwgQmFoYW1pYW4gc2xvb3Agc2FpbGluZy5cblxuIyMjIExvY2FsIFJlY29tbWVuZGF0aW9uc1xuICAgLSBQYXJ0aWNpcGF0ZSBpbiBndWlkZWQgdG91cnMgYW5kIGxvY2FsIGV2ZW50cyB0byBlbmhhbmNlIGN1bHR1cmFsIHVuZGVyc3RhbmRpbmcgYW5kIGV4cGVyaWVuY2UuXG5cbiMjIFdlYXRoZXIgQ29uc2lkZXJhdGlvbnNcblxuLSAqKlRlbXBlcmF0dXJlIE92ZXJ2aWV3OioqXG4gIC0gQXZlcmFnZSBkYXkgdGVtcGVyYXR1cmVzIGluIHRoZSBtaWQtODBzwrBGICgyOC0zMMKwQykgYW5kIHdhcm0gd2F0ZXIgdGVtcGVyYXR1cmVzIGFyb3VuZCA4MMKwRiAoMjfCsEMpLlxuXG4tICoqUmFpbmZhbGwgSW5zaWdodHM6KipcbiAgLSBNaW5pbWFsIHJhaW5mYWxsIGFzIEFwcmlsIG1hcmtzIHRoZSBlbmQgb2YgdGhlIGRyeSBzZWFzb24sIHByb3ZpZGluZyBtb3N0bHkgc3VubnkgZGF5cy5cblxuIyMgQ29uY2x1c2lvblxuXG5BcHJpbCBpcyBhbiBpZGVhbCBtb250aCBmb3IgYWR2ZW50dXJlIHZhY2F0aW9ucyBpbiB0aGUgQ2FyaWJiZWFuLCBvZmZlcmluZyBhIHNlYW1sZXNzIGNvbWJpbmF0aW9uIG9mIHN1cmZpbmcsIGhpa2luZywgYW5kIHdhdGVyIHNwb3J0cyBhbG9uZyB3aXRoIGVucmljaGluZyBjdWx0dXJhbCBleHBlcmllbmNlcy4gV2l0aCBkaXZlcnNlIGRlc3RpbmF0aW9ucyBjYXRlcmluZyB0byBhbGwgc2tpbGwgbGV2ZWxzIGFuZCBpbnRlcmVzdHMsIHRyYXZlbGVycyBhcmUgc3VyZSB0byBmaW5kIGEgZnVsZmlsbGluZyBhbmQgbWVtb3JhYmxlIHRyYXZlbCBleHBlcmllbmNlLiBBcyBzdWNoLCB0aGlzIG1vbnRoIGlzIHBlcmZlY3QgZm9yIHRob3NlIHNlZWtpbmcgYW4gYWN0aXZlIGFuZCB2aWJyYW50IGdldGF3YXkuXG5cbiMjIFJlZmVyZW5jZXNcblxuLSBFbGl0ZSBJc2xhbmQgSG9saWRheXMgW0NhcmliYmVhbiBXYXRlciBTcG9ydHMgR3VpZGVdKGh0dHBzOi8vZWxpdGVpc2xhbmRob2xpZGF5cy5jb20vY2FyaWJiZWFuLXdhdGVyc3BvcnRzLWd1aWRlLz91dG1fc291cmNlPW9wZW5haSlcbi0gVHJpcEFkdmlzb3IgW09jZWFuIEFkdmVudHVyZXMgU2FpbGluZyBBZHZlbnR1cmUgUmV2aWV3c10oaHR0cHM6Ly93d3cudHJpcGFkdmlzb3IuY29tL1Nob3dVc2VyUmV2aWV3cy1nMTQ3MjkzLWQyNjI0Nzg5LXIyMDYxMTQxMDUtT2NlYW5fQWR2ZW50dXJlc19TYWlsaW5nX0FkdmVudHVyZS1QdW50YV9DYW5hX0xhX0FsdGFncmFjaWFfUHJvdmluY2VfRG9taW5pY2FuX1IuaHRtbD91dG1fc291cmNlPW9wZW5haSlcbi0gU2xpY2tyb2NrIEJlbGl6ZSBBZHZlbnR1cmVzIFtQYWNrYWdlc10oaHR0cHM6Ly9zbGlja3JvY2suY29tL3BhY2thZ2VzLz91dG1fc291cmNlPW9wZW5haSlcbi0gT3RoZXIgcmVsZXZhbnQgdHJhdmVsIGFydGljbGVzIGFuZCBsb2NhbCBndWlkZXMuXG5cbi0tLVxuXG5Gb3IgbW9yZSBwZXJzb25hbGl6ZWQgdHJhdmVsIGd1aWRhbmNlLCBjb25zaWRlciByZWFjaGluZyBvdXQgdG8gbG9jYWwgdG91cmlzbSBib2FyZHMgb3IgdHJhdmVsIGFnZW5jaWVzIHNwZWNpYWxpemluZyBpbiBDYXJpYmJlYW4gYWR2ZW50dXJlcy4i" - } - ] - }, - "workflowTaskCompletedEventId": "76" - } - } - ] -} \ No newline at end of file diff --git a/tests/contrib/openai_agents/histories/tools-workflow-history.json b/tests/contrib/openai_agents/histories/tools-workflow-history.json deleted file mode 100644 index 66304d61e..000000000 --- a/tests/contrib/openai_agents/histories/tools-workflow-history.json +++ /dev/null @@ -1,506 +0,0 @@ -{ - "events": [ - { - "eventId": "1", - "eventTime": "2025-06-30T16:01:58.250193Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", - "taskId": "1056366", - "workflowExecutionStartedEventAttributes": { - "workflowType": { - "name": "ToolsWorkflow" - }, - "taskQueue": { - "name": "98bba13c-e75a-446d-a2f8-077680fb23af", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IldoYXQgaXMgdGhlIHdlYXRoZXIgaW4gVG9raW8/Ig==" - } - ] - }, - "workflowExecutionTimeout": "5s", - "workflowRunTimeout": "5s", - "workflowTaskTimeout": "5s", - "originalExecutionRunId": "0197c192-e1ea-72ee-9435-c3625ba774b3", - "identity": "16733@Tims-MacBook-Pro.local", - "firstExecutionRunId": "0197c192-e1ea-72ee-9435-c3625ba774b3", - "attempt": 1, - "workflowExecutionExpirationTime": "2025-06-30T16:02:03.250Z", - "firstWorkflowTaskBackoff": "0s", - "workflowId": "tools-workflow-03ac713e-18d8-4075-be78-48ffaecbe8ee" - } - }, - { - "eventId": "2", - "eventTime": "2025-06-30T16:01:58.250225Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056367", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "98bba13c-e75a-446d-a2f8-077680fb23af", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "startToCloseTimeout": "5s", - "attempt": 1 - } - }, - { - "eventId": "3", - "eventTime": "2025-06-30T16:01:58.251382Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056373", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "2", - "identity": "16733@Tims-MacBook-Pro.local", - "requestId": "5ba49c87-5a13-4c88-978b-a7fe5d7e6aa2", - "historySizeBytes": "413", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "4", - "eventTime": "2025-06-30T16:01:58.297122Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056377", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "2", - "startedEventId": "3", - "identity": "16733@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": { - "coreUsedFlags": [ - 3, - 1, - 2 - ], - "sdkName": "temporal-python", - "sdkVersion": "1.13.0" - }, - "meteringMetadata": {} - } - }, - { - "eventId": "5", - "eventTime": "2025-06-30T16:01:58.297147Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056378", - "activityTaskScheduledEventAttributes": { - "activityId": "1", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "98bba13c-e75a-446d-a2f8-077680fb23af", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJBZ2VudCB3b3JrZmxvdyIsInNwYW5JZCI6InNwYW5fOWNmMTNjMDk5ZGQ0NGQ1N2JhOGYzMjg4IiwidHJhY2VJZCI6InRyYWNlXzM0ODdhZjk2ZGZmNzQ5MzJiNDNhNmRiMzkzMjMyYzc0In0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIGhlbHBmdWwgYWdlbnQuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJXaGF0IGlzIHRoZSB3ZWF0aGVyIGluIFRva2lvPyIsInJvbGUiOiJ1c2VyIn1dLCJtb2RlbF9zZXR0aW5ncyI6eyJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wX3AiOm51bGwsImZyZXF1ZW5jeV9wZW5hbHR5IjpudWxsLCJwcmVzZW5jZV9wZW5hbHR5IjpudWxsLCJ0b29sX2Nob2ljZSI6bnVsbCwicGFyYWxsZWxfdG9vbF9jYWxscyI6bnVsbCwidHJ1bmNhdGlvbiI6bnVsbCwibWF4X3Rva2VucyI6bnVsbCwicmVhc29uaW5nIjpudWxsLCJtZXRhZGF0YSI6bnVsbCwic3RvcmUiOm51bGwsImluY2x1ZGVfdXNhZ2UiOm51bGwsImV4dHJhX3F1ZXJ5IjpudWxsLCJleHRyYV9ib2R5IjpudWxsLCJleHRyYV9oZWFkZXJzIjpudWxsLCJleHRyYV9hcmdzIjpudWxsfSwidG9vbHMiOlt7Im5hbWUiOiJnZXRfd2VhdGhlciIsImRlc2NyaXB0aW9uIjoiR2V0IHRoZSB3ZWF0aGVyIGZvciBhIGdpdmVuIGNpdHkuIiwicGFyYW1zX2pzb25fc2NoZW1hIjp7InByb3BlcnRpZXMiOnsiY2l0eSI6eyJ0aXRsZSI6IkNpdHkiLCJ0eXBlIjoic3RyaW5nIn19LCJyZXF1aXJlZCI6WyJjaXR5Il0sInRpdGxlIjoiZ2V0X3dlYXRoZXJfYXJncyIsInR5cGUiOiJvYmplY3QiLCJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2V9LCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9XSwib3V0cHV0X3NjaGVtYSI6bnVsbCwiaGFuZG9mZnMiOltdLCJ0cmFjaW5nIjoxLCJwcmV2aW91c19yZXNwb25zZV9pZCI6bnVsbCwicHJvbXB0IjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "5s", - "scheduleToStartTimeout": "5s", - "startToCloseTimeout": "5s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "4", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - }, - "userMetadata": { - "summary": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IldoYXQgaXMgdGhlIHdlYXRoZXIgaW4gVG9raW8/Ig==" - } - } - }, - { - "eventId": "6", - "eventTime": "2025-06-30T16:01:58.298046Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056383", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "5", - "identity": "16733@Tims-MacBook-Pro.local", - "requestId": "ae5199c4-4759-4cf5-8a14-09bcf3232edb", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "7", - "eventTime": "2025-06-30T16:01:58.317880Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056384", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImFyZ3VtZW50cyI6IntcImNpdHlcIjpcIlRva3lvXCJ9IiwiY2FsbF9pZCI6ImNhbGwiLCJuYW1lIjoiZ2V0X3dlYXRoZXIiLCJ0eXBlIjoiZnVuY3Rpb25fY2FsbCIsImlkIjoiaWQiLCJzdGF0dXMiOiJjb21wbGV0ZWQifV0sInVzYWdlIjp7InJlcXVlc3RzIjowLCJpbnB1dF90b2tlbnMiOjAsImlucHV0X3Rva2Vuc19kZXRhaWxzIjp7ImNhY2hlZF90b2tlbnMiOjB9LCJvdXRwdXRfdG9rZW5zIjowLCJvdXRwdXRfdG9rZW5zX2RldGFpbHMiOnsicmVhc29uaW5nX3Rva2VucyI6MH0sInRvdGFsX3Rva2VucyI6MH0sInJlc3BvbnNlX2lkIjpudWxsfQ==" - } - ] - }, - "scheduledEventId": "5", - "startedEventId": "6", - "identity": "16733@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "8", - "eventTime": "2025-06-30T16:01:58.317883Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056385", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16733@Tims-MacBook-Pro.local-d864298eeab644f88e86e84252c851f5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "98bba13c-e75a-446d-a2f8-077680fb23af" - }, - "startToCloseTimeout": "5s", - "attempt": 1 - } - }, - { - "eventId": "9", - "eventTime": "2025-06-30T16:01:58.318575Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056389", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "8", - "identity": "16733@Tims-MacBook-Pro.local", - "requestId": "bec333bb-94d5-4daa-9156-fca8ef1fd141", - "historySizeBytes": "2605", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "10", - "eventTime": "2025-06-30T16:01:58.352463Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056393", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "8", - "startedEventId": "9", - "identity": "16733@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "11", - "eventTime": "2025-06-30T16:01:58.352485Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056394", - "activityTaskScheduledEventAttributes": { - "activityId": "2", - "activityType": { - "name": "get_weather" - }, - "taskQueue": { - "name": "98bba13c-e75a-446d-a2f8-077680fb23af", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJBZ2VudCB3b3JrZmxvdyIsInNwYW5JZCI6InNwYW5fZDhlMzdkYjVjNDZjNGZmZGEwOTk1MTg5IiwidHJhY2VJZCI6InRyYWNlXzM0ODdhZjk2ZGZmNzQ5MzJiNDNhNmRiMzkzMjMyYzc0In0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IntcImNpdHlcIjpcIlRva3lvXCJ9Ig==" - } - ] - }, - "scheduleToCloseTimeout": "5s", - "scheduleToStartTimeout": "5s", - "startToCloseTimeout": "5s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "10", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - } - }, - { - "eventId": "12", - "eventTime": "2025-06-30T16:01:58.353293Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056398", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "11", - "identity": "16733@Tims-MacBook-Pro.local", - "requestId": "612e8fe0-d67f-48fa-8b3b-692b86898abe", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "13", - "eventTime": "2025-06-30T16:01:58.357887Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056399", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJjaXR5Ijoie1wiY2l0eVwiOlwiVG9reW9cIn0iLCJ0ZW1wZXJhdHVyZV9yYW5nZSI6IjE0LTIwQyIsImNvbmRpdGlvbnMiOiJTdW5ueSB3aXRoIHdpbmQuIn0=" - } - ] - }, - "scheduledEventId": "11", - "startedEventId": "12", - "identity": "16733@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "14", - "eventTime": "2025-06-30T16:01:58.357890Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056400", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16733@Tims-MacBook-Pro.local-d864298eeab644f88e86e84252c851f5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "98bba13c-e75a-446d-a2f8-077680fb23af" - }, - "startToCloseTimeout": "5s", - "attempt": 1 - } - }, - { - "eventId": "15", - "eventTime": "2025-06-30T16:01:58.358535Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056404", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "14", - "identity": "16733@Tims-MacBook-Pro.local", - "requestId": "5860a55b-57b1-4439-88a1-fc6612cd0a1f", - "historySizeBytes": "3649", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "16", - "eventTime": "2025-06-30T16:01:58.363611Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056408", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "14", - "startedEventId": "15", - "identity": "16733@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "17", - "eventTime": "2025-06-30T16:01:58.363630Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", - "taskId": "1056409", - "activityTaskScheduledEventAttributes": { - "activityId": "3", - "activityType": { - "name": "invoke_model_activity" - }, - "taskQueue": { - "name": "98bba13c-e75a-446d-a2f8-077680fb23af", - "kind": "TASK_QUEUE_KIND_NORMAL" - }, - "header": { - "fields": { - "__openai_span": { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJ0cmFjZU5hbWUiOiJBZ2VudCB3b3JrZmxvdyIsInNwYW5JZCI6InNwYW5fNjNhN2VkYWE0MzU3NDU5OWIzOTFkNzAzIiwidHJhY2VJZCI6InRyYWNlXzM0ODdhZjk2ZGZmNzQ5MzJiNDNhNmRiMzkzMjMyYzc0In0=" - } - } - }, - "input": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJtb2RlbF9uYW1lIjpudWxsLCJzeXN0ZW1faW5zdHJ1Y3Rpb25zIjoiWW91IGFyZSBhIGhlbHBmdWwgYWdlbnQuIiwiaW5wdXQiOlt7ImNvbnRlbnQiOiJXaGF0IGlzIHRoZSB3ZWF0aGVyIGluIFRva2lvPyIsInJvbGUiOiJ1c2VyIn0seyJhcmd1bWVudHMiOiJ7XCJjaXR5XCI6XCJUb2t5b1wifSIsImNhbGxfaWQiOiJjYWxsIiwibmFtZSI6ImdldF93ZWF0aGVyIiwidHlwZSI6ImZ1bmN0aW9uX2NhbGwiLCJpZCI6ImlkIiwic3RhdHVzIjoiY29tcGxldGVkIn0seyJjYWxsX2lkIjoiY2FsbCIsIm91dHB1dCI6IldlYXRoZXIoY2l0eT0ne1wiY2l0eVwiOlwiVG9reW9cIn0nLCB0ZW1wZXJhdHVyZV9yYW5nZT0nMTQtMjBDJywgY29uZGl0aW9ucz0nU3Vubnkgd2l0aCB3aW5kLicpIiwidHlwZSI6ImZ1bmN0aW9uX2NhbGxfb3V0cHV0In1dLCJtb2RlbF9zZXR0aW5ncyI6eyJ0ZW1wZXJhdHVyZSI6bnVsbCwidG9wX3AiOm51bGwsImZyZXF1ZW5jeV9wZW5hbHR5IjpudWxsLCJwcmVzZW5jZV9wZW5hbHR5IjpudWxsLCJ0b29sX2Nob2ljZSI6bnVsbCwicGFyYWxsZWxfdG9vbF9jYWxscyI6bnVsbCwidHJ1bmNhdGlvbiI6bnVsbCwibWF4X3Rva2VucyI6bnVsbCwicmVhc29uaW5nIjpudWxsLCJtZXRhZGF0YSI6bnVsbCwic3RvcmUiOm51bGwsImluY2x1ZGVfdXNhZ2UiOm51bGwsImV4dHJhX3F1ZXJ5IjpudWxsLCJleHRyYV9ib2R5IjpudWxsLCJleHRyYV9oZWFkZXJzIjpudWxsLCJleHRyYV9hcmdzIjpudWxsfSwidG9vbHMiOlt7Im5hbWUiOiJnZXRfd2VhdGhlciIsImRlc2NyaXB0aW9uIjoiR2V0IHRoZSB3ZWF0aGVyIGZvciBhIGdpdmVuIGNpdHkuIiwicGFyYW1zX2pzb25fc2NoZW1hIjp7InByb3BlcnRpZXMiOnsiY2l0eSI6eyJ0aXRsZSI6IkNpdHkiLCJ0eXBlIjoic3RyaW5nIn19LCJyZXF1aXJlZCI6WyJjaXR5Il0sInRpdGxlIjoiZ2V0X3dlYXRoZXJfYXJncyIsInR5cGUiOiJvYmplY3QiLCJhZGRpdGlvbmFsUHJvcGVydGllcyI6ZmFsc2V9LCJzdHJpY3RfanNvbl9zY2hlbWEiOnRydWV9XSwib3V0cHV0X3NjaGVtYSI6bnVsbCwiaGFuZG9mZnMiOltdLCJ0cmFjaW5nIjoxLCJwcmV2aW91c19yZXNwb25zZV9pZCI6bnVsbCwicHJvbXB0IjpudWxsfQ==" - } - ] - }, - "scheduleToCloseTimeout": "5s", - "scheduleToStartTimeout": "5s", - "startToCloseTimeout": "5s", - "heartbeatTimeout": "0s", - "workflowTaskCompletedEventId": "16", - "retryPolicy": { - "initialInterval": "1s", - "backoffCoefficient": 2.0, - "maximumInterval": "100s" - }, - "useWorkflowBuildId": true - } - }, - { - "eventId": "18", - "eventTime": "2025-06-30T16:01:58.364372Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", - "taskId": "1056413", - "activityTaskStartedEventAttributes": { - "scheduledEventId": "17", - "identity": "16733@Tims-MacBook-Pro.local", - "requestId": "0b072618-f02f-483e-8a13-260fa095eb59", - "attempt": 1, - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "19", - "eventTime": "2025-06-30T16:01:58.378926Z", - "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", - "taskId": "1056414", - "activityTaskCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "eyJvdXRwdXQiOlt7ImlkIjoiIiwiY29udGVudCI6W3siYW5ub3RhdGlvbnMiOltdLCJ0ZXh0IjoiVGVzdCB3ZWF0aGVyIHJlc3VsdCIsInR5cGUiOiJvdXRwdXRfdGV4dCJ9XSwicm9sZSI6ImFzc2lzdGFudCIsInN0YXR1cyI6ImNvbXBsZXRlZCIsInR5cGUiOiJtZXNzYWdlIn1dLCJ1c2FnZSI6eyJyZXF1ZXN0cyI6MCwiaW5wdXRfdG9rZW5zIjowLCJpbnB1dF90b2tlbnNfZGV0YWlscyI6eyJjYWNoZWRfdG9rZW5zIjowfSwib3V0cHV0X3Rva2VucyI6MCwib3V0cHV0X3Rva2Vuc19kZXRhaWxzIjp7InJlYXNvbmluZ190b2tlbnMiOjB9LCJ0b3RhbF90b2tlbnMiOjB9LCJyZXNwb25zZV9pZCI6bnVsbH0=" - } - ] - }, - "scheduledEventId": "17", - "startedEventId": "18", - "identity": "16733@Tims-MacBook-Pro.local" - } - }, - { - "eventId": "20", - "eventTime": "2025-06-30T16:01:58.378930Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", - "taskId": "1056415", - "workflowTaskScheduledEventAttributes": { - "taskQueue": { - "name": "16733@Tims-MacBook-Pro.local-d864298eeab644f88e86e84252c851f5", - "kind": "TASK_QUEUE_KIND_STICKY", - "normalName": "98bba13c-e75a-446d-a2f8-077680fb23af" - }, - "startToCloseTimeout": "5s", - "attempt": 1 - } - }, - { - "eventId": "21", - "eventTime": "2025-06-30T16:01:58.379545Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", - "taskId": "1056419", - "workflowTaskStartedEventAttributes": { - "scheduledEventId": "20", - "identity": "16733@Tims-MacBook-Pro.local", - "requestId": "3180f9ec-370c-47f8-a020-653eaf69367a", - "historySizeBytes": "6053", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - } - } - }, - { - "eventId": "22", - "eventTime": "2025-06-30T16:01:58.385250Z", - "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", - "taskId": "1056423", - "workflowTaskCompletedEventAttributes": { - "scheduledEventId": "20", - "startedEventId": "21", - "identity": "16733@Tims-MacBook-Pro.local", - "workerVersion": { - "buildId": "01c9746b80ed5a14fc25fb053c5e410a" - }, - "sdkMetadata": {}, - "meteringMetadata": {} - } - }, - { - "eventId": "23", - "eventTime": "2025-06-30T16:01:58.385268Z", - "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", - "taskId": "1056424", - "workflowExecutionCompletedEventAttributes": { - "result": { - "payloads": [ - { - "metadata": { - "encoding": "anNvbi9wbGFpbg==" - }, - "data": "IlRlc3Qgd2VhdGhlciByZXN1bHQi" - } - ] - }, - "workflowTaskCompletedEventId": "22" - } - } - ] -} \ No newline at end of file diff --git a/tests/contrib/openai_agents/research_agents/planner_agent.py b/tests/contrib/openai_agents/research_agents/planner_agent.py deleted file mode 100644 index 8289d8636..000000000 --- a/tests/contrib/openai_agents/research_agents/planner_agent.py +++ /dev/null @@ -1,29 +0,0 @@ -from agents import Agent -from pydantic import BaseModel - -PROMPT = ( - "You are a helpful research assistant. Given a query, come up with a set of web searches " - "to perform to best answer the query. Output between 2 and 3 terms to query for." -) - - -class WebSearchItem(BaseModel): - reason: str - "Your reasoning for why this search is important to the query." - - query: str - "The search term to use for the web search." - - -class WebSearchPlan(BaseModel): - searches: list[WebSearchItem] - """A list of web searches to perform to best answer the query.""" - - -def new_planner_agent(): - return Agent( - name="PlannerAgent", - instructions=PROMPT, - model="gpt-4o", - output_type=WebSearchPlan, - ) diff --git a/tests/contrib/openai_agents/research_agents/printer.py b/tests/contrib/openai_agents/research_agents/printer.py deleted file mode 100644 index fa448e7bf..000000000 --- a/tests/contrib/openai_agents/research_agents/printer.py +++ /dev/null @@ -1,45 +0,0 @@ -from typing import Any - -from rich.console import Console, Group -from rich.live import Live -from rich.spinner import Spinner - - -class Printer: - def __init__(self, console: Console): - self.live = Live(console=console) - self.items: dict[str, tuple[str, bool]] = {} - self.hide_done_ids: set[str] = set() - self.live.start() - - def end(self) -> None: - self.live.stop() - - def hide_done_checkmark(self, item_id: str) -> None: - self.hide_done_ids.add(item_id) - - def update_item( - self, - item_id: str, - content: str, - is_done: bool = False, - hide_checkmark: bool = False, - ) -> None: - self.items[item_id] = (content, is_done) - if hide_checkmark: - self.hide_done_ids.add(item_id) - self.flush() - - def mark_item_done(self, item_id: str) -> None: - self.items[item_id] = (self.items[item_id][0], True) - self.flush() - - def flush(self) -> None: - renderables: list[Any] = [] - for item_id, (content, is_done) in self.items.items(): - if is_done: - prefix = "✅ " if item_id not in self.hide_done_ids else "" - renderables.append(prefix + content) - else: - renderables.append(Spinner("dots", text=content)) - self.live.update(Group(*renderables)) diff --git a/tests/contrib/openai_agents/research_agents/research_manager.py b/tests/contrib/openai_agents/research_agents/research_manager.py deleted file mode 100644 index 98ab550f5..000000000 --- a/tests/contrib/openai_agents/research_agents/research_manager.py +++ /dev/null @@ -1,73 +0,0 @@ -from __future__ import annotations - -import asyncio - -from agents import Runner, custom_span - -import temporalio.workflow -from tests.contrib.openai_agents.research_agents.planner_agent import ( - WebSearchItem, - WebSearchPlan, - new_planner_agent, -) -from tests.contrib.openai_agents.research_agents.search_agent import new_search_agent -from tests.contrib.openai_agents.research_agents.writer_agent import ( - ReportData, - new_writer_agent, -) - - -class ResearchManager: - def __init__(self): - self.search_agent = new_search_agent() - self.planner_agent = new_planner_agent() - self.writer_agent = new_writer_agent() - - async def run(self, query: str) -> str: - with custom_span("Research manager"): - search_plan = await self._plan_searches(query) - search_results = await self._perform_searches(search_plan) - report = await self._write_report(query, search_results) - - return report.markdown_report - - async def _plan_searches(self, query: str) -> WebSearchPlan: - result = await Runner.run( - self.planner_agent, - f"Query: {query}", - ) - return result.final_output_as(WebSearchPlan) - - async def _perform_searches(self, search_plan: WebSearchPlan) -> list[str]: - with custom_span("Search the web"): - num_completed = 0 - tasks = [ - asyncio.create_task(self._search(item)) for item in search_plan.searches - ] - results = [] - for task in temporalio.workflow.as_completed(tasks): - result = await task - if result is not None: - results.append(result) - num_completed += 1 - return results - - async def _search(self, item: WebSearchItem) -> str | None: - input = f"Search term: {item.query}\nReason for searching: {item.reason}" - try: - result = await Runner.run( - self.search_agent, - input, - ) - return str(result.final_output) - except Exception: - raise - - async def _write_report(self, query: str, search_results: list[str]) -> ReportData: - input = f"Original query: {query}\nSummarized search results: {search_results}" - result = await Runner.run( - self.writer_agent, - input, - ) - - return result.final_output_as(ReportData) diff --git a/tests/contrib/openai_agents/research_agents/search_agent.py b/tests/contrib/openai_agents/research_agents/search_agent.py deleted file mode 100644 index 43c30ed88..000000000 --- a/tests/contrib/openai_agents/research_agents/search_agent.py +++ /dev/null @@ -1,20 +0,0 @@ -from agents import Agent, WebSearchTool -from agents.model_settings import ModelSettings - -INSTRUCTIONS = ( - "You are a research assistant. Given a search term, you search the web for that term and " - "produce a concise summary of the results. The summary must 2-3 paragraphs and less than 300 " - "words. Capture the main points. Write succinctly, no need to have complete sentences or good " - "grammar. This will be consumed by someone synthesizing a report, so its vital you capture the " - "essence and ignore any fluff. Do not include any additional commentary other than the summary " - "itself." -) - - -def new_search_agent(): - return Agent( - name="Search agent", - instructions=INSTRUCTIONS, - tools=[WebSearchTool()], - model_settings=ModelSettings(tool_choice="required"), - ) diff --git a/tests/contrib/openai_agents/research_agents/writer_agent.py b/tests/contrib/openai_agents/research_agents/writer_agent.py deleted file mode 100644 index 9d8a34b0b..000000000 --- a/tests/contrib/openai_agents/research_agents/writer_agent.py +++ /dev/null @@ -1,33 +0,0 @@ -# Agent used to synthesize a final report from the individual summaries. -from agents import Agent -from pydantic import BaseModel - -PROMPT = ( - "You are a senior researcher tasked with writing a cohesive report for a research query. " - "You will be provided with the original query, and some initial research done by a research " - "assistant.\n" - "You should first come up with an outline for the report that describes the structure and " - "flow of the report. Then, generate the report and return that as your final output.\n" - "The final output should be in markdown format, and it should be lengthy and detailed. Aim " - "for 5-10 pages of content, at least 1000 words." -) - - -class ReportData(BaseModel): - short_summary: str - """A short 2-3 sentence summary of the findings.""" - - markdown_report: str - """The final report""" - - follow_up_questions: list[str] - """Suggested topics to research further""" - - -def new_writer_agent(): - return Agent( - name="WriterAgent", - instructions=PROMPT, - model="o3-mini", - output_type=ReportData, - ) diff --git a/tests/contrib/openai_agents/test_openai.py b/tests/contrib/openai_agents/test_openai.py deleted file mode 100644 index 79f7f9dcd..000000000 --- a/tests/contrib/openai_agents/test_openai.py +++ /dev/null @@ -1,2924 +0,0 @@ -import asyncio -import json -import os -import sys -import uuid -from collections.abc import AsyncIterator, Callable, Sequence -from dataclasses import dataclass -from datetime import timedelta -from typing import ( - Any, - cast, -) - -import nexusrpc -import pydantic -import pytest -from agents import ( - Agent, - AgentBase, - AgentOutputSchemaBase, - CodeInterpreterTool, - FileSearchTool, - GuardrailFunctionOutput, - Handoff, - HostedMCPTool, - ImageGenerationTool, - InputGuardrailTripwireTriggered, - ItemHelpers, - MCPToolApprovalFunctionResult, - MCPToolApprovalRequest, - MessageOutputItem, - Model, - ModelProvider, - ModelResponse, - ModelSettings, - ModelTracing, - OpenAIChatCompletionsModel, - OpenAIResponsesModel, - OutputGuardrailTripwireTriggered, - RunConfig, - RunContextWrapper, - Runner, - SQLiteSession, - Tool, - TResponseInputItem, - Usage, - function_tool, - handoff, - input_guardrail, - output_guardrail, - trace, -) -from agents.extensions.handoff_prompt import RECOMMENDED_PROMPT_PREFIX -from agents.items import ( - HandoffOutputItem, - ToolCallItem, - ToolCallOutputItem, - TResponseStreamEvent, -) -from agents.mcp import MCPServer, MCPServerStdio -from agents.sandbox.capabilities.tools import SandboxApplyPatchTool -from agents.tool import CustomTool -from agents.tool_context import ToolContext -from openai import APIStatusError, AsyncOpenAI, BaseModel -from openai.types.responses import ( - ResponseCodeInterpreterToolCall, - ResponseCustomToolCall, - ResponseFileSearchToolCall, - ResponseFunctionWebSearch, -) -from openai.types.responses.response_file_search_tool_call import Result -from openai.types.responses.response_function_web_search import ActionSearch -from openai.types.responses.response_output_item import ( - ImageGenerationCall, - McpApprovalRequest, - McpCall, -) -from openai.types.responses.response_prompt_param import ResponsePromptParam -from pydantic import ConfigDict, Field, TypeAdapter - -from temporalio import activity, workflow -from temporalio.client import Client, WorkflowFailureError, WorkflowHandle -from temporalio.common import RetryPolicy -from temporalio.contrib import openai_agents -from temporalio.contrib.openai_agents import ( - ModelActivityParameters, - StatefulMCPServerProvider, - StatelessMCPServerProvider, -) -from temporalio.contrib.openai_agents._invoke_model_activity import _build_tool -from temporalio.contrib.openai_agents._model_parameters import ModelSummaryProvider -from temporalio.contrib.openai_agents._openai_runner import ( - _coerce_run_config, - _convert_agent, -) -from temporalio.contrib.openai_agents._temporal_model_stub import ( - _TemporalModelStub, -) -from temporalio.contrib.openai_agents._temporal_worker_env_ref import ( - _WorkerEnvRefResolver, -) -from temporalio.contrib.openai_agents.testing import ( - AgentEnvironment, - ResponseBuilders, - TestModel, - TestModelProvider, -) -from temporalio.contrib.pydantic import pydantic_data_converter -from temporalio.exceptions import ApplicationError, CancelledError, TemporalError -from temporalio.testing import WorkflowEnvironment -from temporalio.workflow import ActivityConfig -from tests.contrib.openai_agents.research_agents.research_manager import ( - ResearchManager, -) -from tests.helpers import assert_eventually, new_worker -from tests.helpers.nexus import make_nexus_endpoint_name - - -def hello_mock_model(): - return TestModel.returning_responses([ResponseBuilders.output_message("test")]) - - -@workflow.defn -class HelloWorldAgent: - @workflow.run - async def run(self, prompt: str) -> str: - agent = Agent[None]( - name="Assistant", - instructions="You only respond in haikus.", - ) - result = await Runner.run(starting_agent=agent, input=prompt) - return result.final_output - - -@pytest.mark.parametrize("use_local_model", [True, False]) -async def test_hello_world_agent(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - model = hello_mock_model() if use_local_model else None - async with AgentEnvironment( - model=model, - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker(client, HelloWorldAgent) as worker: - result = await client.execute_workflow( - HelloWorldAgent.run, - "Tell me about recursion in programming.", - id=f"hello-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=60), - ) - if use_local_model: - assert result == "test" - - -@dataclass -class Weather: - city: str - temperature_range: str - conditions: str - - -@activity.defn -async def get_weather(city: str) -> Weather: - """ - Get the weather for a given city. - """ - return Weather(city=city, temperature_range="14-20C", conditions="Sunny with wind.") - - -@activity.defn -async def get_weather_country(city: str, country: str) -> Weather: # type: ignore[reportUnusedParameter] - """ - Get the weather for a given city in a country. - """ - return Weather(city=city, temperature_range="14-20C", conditions="Sunny with wind.") - - -@dataclass -class WeatherInput: - city: str - - -@activity.defn -async def get_weather_object(input: WeatherInput) -> Weather: - """ - Get the weather for a given city. - """ - return Weather( - city=input.city, temperature_range="14-20C", conditions="Sunny with wind." - ) - - -@activity.defn -async def get_weather_context(ctx: RunContextWrapper[str], city: str) -> Weather: - """ - Get the weather for a given city. - """ - return Weather(city=city, temperature_range="14-20C", conditions=ctx.context) - - -class ActivityWeatherService: - @activity.defn - async def get_weather_method(self, city: str) -> Weather: - """ - Get the weather for a given city. - """ - return Weather( - city=city, temperature_range="14-20C", conditions="Sunny with wind." - ) - - -@nexusrpc.service -class WeatherService: - get_weather_nexus_operation: nexusrpc.Operation[WeatherInput, Weather] - - -@nexusrpc.handler.service_handler(service=WeatherService) -class WeatherServiceHandler: - @nexusrpc.handler.sync_operation - async def get_weather_nexus_operation( - self, - ctx: nexusrpc.handler.StartOperationContext, # type: ignore[reportUnusedParameter] - input: WeatherInput, # type: ignore[reportUnusedParameter] - ) -> Weather: - return Weather( - city=input.city, temperature_range="14-20C", conditions="Sunny with wind." - ) - - -def weather_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.tool_call('{"city":"Tokyo"}', "get_weather"), - ResponseBuilders.tool_call( - '{"input":{"city":"Tokyo"}}', "get_weather_object" - ), - ResponseBuilders.tool_call( - '{"city":"Tokyo","country":"Japan"}', "get_weather_country" - ), - ResponseBuilders.tool_call('{"city":"Tokyo"}', "get_weather_context"), - ResponseBuilders.tool_call('{"city":"Tokyo"}', "get_weather_method"), - ResponseBuilders.output_message("Test weather result"), - ] - ) - - -def nexus_weather_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.tool_call( - '{"input":{"city":"Tokyo"}}', "get_weather_nexus_operation" - ), - ResponseBuilders.output_message("Test nexus weather result"), - ] - ) - - -@workflow.defn -class ToolsWorkflow: - @workflow.run - async def run(self, question: str) -> str: - agent = Agent[str]( - name="Tools Workflow", - instructions="You are a helpful agent.", - tools=[ - openai_agents.workflow.activity_as_tool( - get_weather, start_to_close_timeout=timedelta(seconds=10) - ), - openai_agents.workflow.activity_as_tool( - get_weather_object, start_to_close_timeout=timedelta(seconds=10) - ), - openai_agents.workflow.activity_as_tool( - get_weather_country, start_to_close_timeout=timedelta(seconds=10) - ), - openai_agents.workflow.activity_as_tool( - get_weather_context, start_to_close_timeout=timedelta(seconds=10) - ), - openai_agents.workflow.activity_as_tool( - ActivityWeatherService.get_weather_method, - start_to_close_timeout=timedelta(seconds=10), - ), - openai_agents.workflow.activity_as_tool( - get_weather_failure, - start_to_close_timeout=timedelta(seconds=10), - ), - ], - ) - result = await Runner.run( - starting_agent=agent, input=question, context="Stormy" - ) - return result.final_output - - -@workflow.defn -class NexusToolsWorkflow: - @workflow.run - async def run(self, question: str) -> str: - agent = Agent[str]( - name="Nexus Tools Workflow", - instructions="You are a helpful agent.", - tools=[ - openai_agents.workflow.nexus_operation_as_tool( - WeatherService.get_weather_nexus_operation, - service=WeatherService, - endpoint=make_nexus_endpoint_name(workflow.info().task_queue), - schedule_to_close_timeout=timedelta(seconds=10), - ), - ], - ) - result = await Runner.run( - starting_agent=agent, input=question, context="Stormy" - ) - return result.final_output - - -@pytest.mark.parametrize("use_local_model", [True, False]) -async def test_tool_workflow(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - model = weather_mock_model() if use_local_model else None - async with AgentEnvironment( - model=model, - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - ToolsWorkflow, - activities=[ - get_weather, - get_weather_object, - get_weather_country, - get_weather_context, - ActivityWeatherService().get_weather_method, - ], - ) as worker: - workflow_handle = await client.start_workflow( - ToolsWorkflow.run, - "What is the weather in Tokio?", - id=f"tools-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - result = await workflow_handle.result() - - if use_local_model: - assert result == "Test weather result" - - events = [] - async for e in workflow_handle.fetch_history_events(): - if e.HasField("activity_task_completed_event_attributes"): - events.append(e) - - assert len(events) == 11 - assert ( - "function_call" - in events[0] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Sunny with wind" - in events[1] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "function_call" - in events[2] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Sunny with wind" - in events[3] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "function_call" - in events[4] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Sunny with wind" - in events[5] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "function_call" - in events[6] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Stormy" - in events[7] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "function_call" - in events[8] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Sunny with wind" - in events[9] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Test weather result" - in events[10] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - - -@activity.defn -async def get_weather_failure(city: str) -> Weather: # type: ignore[reportUnusedParameter] - """ - Get the weather for a given city. - """ - raise ApplicationError("No weather", non_retryable=True) - - -def weather_failure_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.tool_call('{"city":"Tokyo"}', "get_weather_failure"), - ] - ) - - -async def test_tool_failure_workflow(client: Client): - async with AgentEnvironment( - model=weather_failure_mock_model(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - ToolsWorkflow, - activities=[ - get_weather_failure, - ], - ) as worker: - workflow_handle = await client.start_workflow( - ToolsWorkflow.run, - "What is the weather in Tokio?", - id=f"tools-failure-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - with pytest.raises(WorkflowFailureError) as e: - await workflow_handle.result() - cause = e.value.cause - assert isinstance(cause, ApplicationError) - assert "Workflow failure exception in Agents Framework" in cause.message - - -@pytest.mark.parametrize("use_local_model", [True, False]) -@pytest.mark.requires_local_server -async def test_nexus_tool_workflow( - client: Client, env: WorkflowEnvironment, use_local_model: bool -): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - if env.supports_time_skipping: - pytest.skip("Nexus tests don't work with time-skipping server") - - model = nexus_weather_mock_model() if use_local_model else None - async with AgentEnvironment( - model=model, - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as agent_env: - client = agent_env.applied_on_client(client) - - async with new_worker( - client, - NexusToolsWorkflow, - nexus_service_handlers=[WeatherServiceHandler()], - ) as worker: - await env.create_nexus_endpoint( - make_nexus_endpoint_name(worker.task_queue), worker.task_queue - ) - - workflow_handle = await client.start_workflow( - NexusToolsWorkflow.run, - "What is the weather in Tokio?", - id=f"nexus-tools-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - result = await workflow_handle.result() - - if use_local_model: - assert result == "Test nexus weather result" - - events = [] - async for e in workflow_handle.fetch_history_events(): - if e.HasField( - "activity_task_completed_event_attributes" - ) or e.HasField("nexus_operation_completed_event_attributes"): - events.append(e) - - assert len(events) == 3 - assert ( - "function_call" - in events[0] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Sunny with wind" - in events[ - 1 - ].nexus_operation_completed_event_attributes.result.data.decode() - ) - assert ( - "Test nexus weather result" - in events[2] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - - -def research_mock_model(): - responses = [ - ResponseBuilders.output_message( - '{"searches":[{"query":"best Caribbean surfing spots April","reason":"Identify locations with optimal surfing conditions in the Caribbean during April."},{"query":"top Caribbean islands for hiking April","reason":"Find Caribbean islands with excellent hiking opportunities that are ideal in April."},{"query":"Caribbean water sports destinations April","reason":"Locate Caribbean destinations offering a variety of water sports activities in April."},{"query":"surfing conditions Caribbean April","reason":"Understand the surfing conditions and which islands are suitable for surfing in April."},{"query":"Caribbean adventure travel hiking surfing","reason":"Explore adventure travel options that combine hiking and surfing in the Caribbean."},{"query":"best beaches for surfing Caribbean April","reason":"Identify which Caribbean beaches are renowned for surfing in April."},{"query":"Caribbean islands with national parks hiking","reason":"Find islands with national parks or reserves that offer hiking trails."},{"query":"Caribbean weather April surfing conditions","reason":"Research the weather conditions in April affecting surfing in the Caribbean."},{"query":"Caribbean water sports rentals April","reason":"Look for places where water sports equipment can be rented in the Caribbean during April."},{"query":"Caribbean multi-activity vacation packages","reason":"Look for vacation packages that offer a combination of surfing, hiking, and water sports."}]}' - ) - ] - for _ in range(10): - responses.append( - ModelResponse( - output=[ - ResponseFunctionWebSearch( - id="", - status="completed", - type="web_search_call", - action=ActionSearch.model_construct( - type="search", queries=[""] - ), - ), - ResponseBuilders.response_output_message("Granada"), - ], - usage=Usage(), - response_id=None, - ) - ) - responses.append( - ResponseBuilders.output_message( - '{"follow_up_questions":[], "markdown_report":"report", "short_summary":"rep"}' - ) - ) - return TestModel.returning_responses(responses) - - -@workflow.defn -class ResearchWorkflow: - @workflow.run - async def run(self, query: str): - return await ResearchManager().run(query) - - -@pytest.mark.parametrize("use_local_model", [True, False]) -@pytest.mark.timeout(120) -async def test_research_workflow(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - model = research_mock_model() if use_local_model else None - async with AgentEnvironment( - model=model, - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120), - schedule_to_close_timeout=timedelta(seconds=120), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - ResearchWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - ResearchWorkflow.run, - "Caribbean vacation spots in April, optimizing for surfing, hiking and water sports", - id=f"research-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=120), - ) - result = await workflow_handle.result() - - if use_local_model: - assert result == "report" - - events = [] - async for e in workflow_handle.fetch_history_events(): - if e.HasField("activity_task_completed_event_attributes"): - events.append(e) - - assert len(events) == 12 - assert ( - '"type":"output_text"' - in events[0] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - for i in range(1, 11): - assert ( - "web_search_call" - in events[i] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - - assert ( - '"type":"output_text"' - in events[11] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - - -def orchestrator_agent() -> Agent: - spanish_agent = Agent[None]( - name="spanish_agent", - instructions="You translate the user's message to Spanish", - handoff_description="An english to spanish translator", - ) - - french_agent = Agent[None]( - name="french_agent", - instructions="You translate the user's message to French", - handoff_description="An english to french translator", - ) - - italian_agent = Agent[None]( - name="italian_agent", - instructions="You translate the user's message to Italian", - handoff_description="An english to italian translator", - ) - - orchestrator_agent = Agent[None]( - name="orchestrator_agent", - instructions=( - "You are a translation agent. You use the tools given to you to translate." - "If asked for multiple translations, you call the relevant tools in order." - "You never translate on your own, you always use the provided tools." - ), - tools=[ - spanish_agent.as_tool( - tool_name="translate_to_spanish", - tool_description="Translate the user's message to Spanish", - ), - french_agent.as_tool( - tool_name="translate_to_french", - tool_description="Translate the user's message to French", - ), - italian_agent.as_tool( - tool_name="translate_to_italian", - tool_description="Translate the user's message to Italian", - ), - ], - ) - return orchestrator_agent - - -def synthesizer_agent() -> Agent: - return Agent( - name="synthesizer_agent", - instructions="You inspect translations, correct them if needed, and produce a final concatenated response.", - ) - - -@workflow.defn -class AgentsAsToolsWorkflow: - @workflow.run - async def run(self, msg: str) -> str: - # Run the entire orchestration in a single trace - with trace("Orchestrator evaluator"): - orchestrator = orchestrator_agent() - synthesizer = synthesizer_agent() - - orchestrator_result = await Runner.run( - starting_agent=orchestrator, input=msg - ) - - for item in orchestrator_result.new_items: - if isinstance(item, MessageOutputItem): - text = ItemHelpers.text_message_output(item) - if text: - print(f" - Translation step: {text}") - - synthesizer_result = await Runner.run( - starting_agent=synthesizer, input=orchestrator_result.to_input_list() - ) - - return synthesizer_result.final_output - - -def agent_as_tools_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.tool_call('{"input":"I am full"}', "translate_to_spanish"), - ResponseBuilders.output_message("Estoy lleno."), - ResponseBuilders.output_message( - 'The translation to Spanish is: "Estoy lleno."' - ), - ResponseBuilders.output_message( - 'The translation to Spanish is: "Estoy lleno."' - ), - ] - ) - - -@pytest.mark.parametrize("use_local_model", [True, False]) -async def test_agents_as_tools_workflow(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - model = agent_as_tools_mock_model() if use_local_model else None - async with AgentEnvironment( - model=model, - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - AgentsAsToolsWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - AgentsAsToolsWorkflow.run, - "Translate to Spanish: 'I am full'", - id=f"agents-as-tools-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - result = await workflow_handle.result() - - if use_local_model: - assert result == 'The translation to Spanish is: "Estoy lleno."' - - events = [] - async for e in workflow_handle.fetch_history_events(): - if e.HasField("activity_task_completed_event_attributes"): - events.append(e) - - assert len(events) == 4 - assert ( - "function_call" - in events[0] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Estoy lleno" - in events[1] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "The translation to Spanish is:" - in events[2] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "The translation to Spanish is:" - in events[3] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - - -class AirlineAgentContext(BaseModel): - passenger_name: str | None = None - confirmation_number: str | None = None - seat_number: str | None = None - flight_number: str | None = None - - -@function_tool( - name_override="faq_lookup_tool", - description_override="Lookup frequently asked questions.", -) -async def faq_lookup_tool(question: str) -> str: - if "bag" in question or "baggage" in question: - return ( - "You are allowed to bring one bag on the plane. " - "It must be under 50 pounds and 22 inches x 14 inches x 9 inches." - ) - elif "seats" in question or "plane" in question: - return ( - "There are 120 seats on the plane. " - "There are 22 business class seats and 98 economy seats. " - "Exit rows are rows 4 and 16. " - "Rows 5-8 are Economy Plus, with extra legroom. " - ) - elif "wifi" in question: - return "We have free wifi on the plane, join Airline-Wifi" - return "I'm sorry, I don't know the answer to that question." - - -@function_tool -async def update_seat( - context: RunContextWrapper[AirlineAgentContext], - confirmation_number: str, - new_seat: str, -) -> str: - # Update the context based on the customer's input - context.context.confirmation_number = confirmation_number - context.context.seat_number = new_seat - # Ensure that the flight number has been set by the incoming handoff - assert context.context.flight_number is not None, "Flight number is required" - return f"Updated seat to {new_seat} for confirmation number {confirmation_number}" - - -### HOOKS - - -async def on_seat_booking_handoff( - context: RunContextWrapper[AirlineAgentContext], -) -> None: - try: - flight_number = f"FLT-{workflow.random().randint(100, 999)}" - except TemporalError: - flight_number = "FLT-100" - context.context.flight_number = flight_number - - -### AGENTS - - -def init_agents() -> Agent[AirlineAgentContext]: - """ - Initialize the agents for the airline customer service workflow. - :return: triage agent - """ - faq_agent = Agent[AirlineAgentContext]( - name="FAQ Agent", - handoff_description="A helpful agent that can answer questions about the airline.", - instructions=f"""{RECOMMENDED_PROMPT_PREFIX} - You are an FAQ agent. If you are speaking to a customer, you probably were transferred to from the triage agent. - Use the following routine to support the customer. - # Routine - 1. Identify the last question asked by the customer. - 2. Use the faq lookup tool to answer the question. Do not rely on your own knowledge. - 3. If you cannot answer the question, transfer back to the triage agent.""", - tools=[faq_lookup_tool], - ) - - seat_booking_agent = Agent[AirlineAgentContext]( - name="Seat Booking Agent", - handoff_description="A helpful agent that can update a seat on a flight.", - instructions=f"""{RECOMMENDED_PROMPT_PREFIX} - You are a seat booking agent. If you are speaking to a customer, you probably were transferred to from the triage agent. - Use the following routine to support the customer. - # Routine - 1. Ask for their confirmation number. - 2. Ask the customer what their desired seat number is. - 3. Use the update seat tool to update the seat on the flight. - If the customer asks a question that is not related to the routine, transfer back to the triage agent. """, - tools=[update_seat], - ) - - triage_agent = Agent[AirlineAgentContext]( - name="Triage Agent", - handoff_description="A triage agent that can delegate a customer's request to the appropriate agent.", - instructions=( - f"{RECOMMENDED_PROMPT_PREFIX} " - "You are a helpful triaging agent. You can use your tools to delegate questions to other appropriate agents." - ), - handoffs=[ - faq_agent, - handoff(agent=seat_booking_agent, on_handoff=on_seat_booking_handoff), - ], - ) - - faq_agent.handoffs.append(triage_agent) - seat_booking_agent.handoffs.append(triage_agent) - return triage_agent - - -class ProcessUserMessageInput(BaseModel): - user_input: str - chat_length: int - - -def customer_service_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.output_message("Hi there! How can I assist you today?"), - ResponseBuilders.tool_call("{}", "transfer_to_seat_booking_agent"), - ResponseBuilders.output_message( - "Could you please provide your confirmation number?" - ), - ResponseBuilders.output_message( - "Thanks! What seat number would you like to change to?" - ), - ResponseBuilders.tool_call( - '{"confirmation_number":"11111","new_seat":"window seat"}', - "update_seat", - ), - ResponseBuilders.output_message( - "Your seat has been updated to a window seat. If there's anything else you need, feel free to let me know!" - ), - ResponseBuilders.tool_call("{}", "transfer_to_triage_agent"), - ResponseBuilders.output_message("You're welcome!"), - ] - ) - - -@workflow.defn -class CustomerServiceWorkflow: - def __init__(self, input_items: list[TResponseInputItem] = []): - self.chat_history: list[str] = [] - self.current_agent: Agent[AirlineAgentContext] = init_agents() - self.context = AirlineAgentContext() - self.input_items = input_items - - @workflow.run - async def run(self, _input_items: list[TResponseInputItem] = []): - await workflow.wait_condition(lambda: False) - workflow.continue_as_new(self.input_items) - - @workflow.query - def get_chat_history(self) -> list[str]: - return self.chat_history - - @workflow.update - async def process_user_message(self, input: ProcessUserMessageInput) -> list[str]: - length = len(self.chat_history) - self.chat_history.append(f"User: {input.user_input}") - with trace("Customer service", group_id=workflow.info().workflow_id): - self.input_items.append({"content": input.user_input, "role": "user"}) - result = await Runner.run( - starting_agent=self.current_agent, - input=self.input_items, - context=self.context, - ) - - for new_item in result.new_items: - agent_name = new_item.agent.name - if isinstance(new_item, MessageOutputItem): - self.chat_history.append( - f"{agent_name}: {ItemHelpers.text_message_output(new_item)}" - ) - elif isinstance(new_item, HandoffOutputItem): - self.chat_history.append( - f"Handed off from {new_item.source_agent.name} to {new_item.target_agent.name}" - ) - elif isinstance(new_item, ToolCallItem): - self.chat_history.append(f"{agent_name}: Calling a tool") - elif isinstance(new_item, ToolCallOutputItem): - self.chat_history.append( - f"{agent_name}: Tool call output: {new_item.output}" - ) - else: - self.chat_history.append( - f"{agent_name}: Skipping item: {new_item.__class__.__name__}" - ) - self.input_items = result.to_input_list() - self.current_agent = result.last_agent - workflow.set_current_details("\n\n".join(self.chat_history)) - return self.chat_history[length:] - - @process_user_message.validator - def validate_process_user_message(self, input: ProcessUserMessageInput) -> None: - if not input.user_input: - raise ValueError("User input cannot be empty.") - if len(input.user_input) > 1000: - raise ValueError("User input is too long. Please limit to 1000 characters.") - if input.chat_length != len(self.chat_history): - raise ValueError("Stale chat history. Please refresh the chat.") - - -@pytest.mark.parametrize("use_local_model", [True, False]) -async def test_customer_service_workflow(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - model = customer_service_mock_model() if use_local_model else None - async with AgentEnvironment( - model=model, - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - questions = [ - "Hello", - "Book me a flight to PDX", - "11111", - "Any window seat", - "Take me back to the triage agent to say goodbye", - ] - - async with new_worker( - client, - CustomerServiceWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - CustomerServiceWorkflow.run, - id=f"customer-service-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=60), - ) - history: list[Any] = [] - for q in questions: - message_input = ProcessUserMessageInput( - user_input=q, chat_length=len(history) - ) - new_history = await workflow_handle.execute_update( - CustomerServiceWorkflow.process_user_message, message_input - ) - history.extend(new_history) - print(*new_history, sep="\n") - - await workflow_handle.cancel() - - with pytest.raises(WorkflowFailureError) as err: - await workflow_handle.result() - assert isinstance(err.value.cause, CancelledError) - - if use_local_model: - events = [] - async for e in WorkflowHandle( - client, - workflow_handle.id, - run_id=workflow_handle._first_execution_run_id, - ).fetch_history_events(): - if e.HasField("activity_task_completed_event_attributes"): - events.append(e) - - assert len(events) == 8 - assert ( - "Hi there! How can I assist you today?" - in events[0] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "transfer_to_seat_booking_agent" - in events[1] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Could you please provide your confirmation number?" - in events[2] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Thanks! What seat number would you like to change to?" - in events[3] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "update_seat" - in events[4] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "Your seat has been updated to a window seat. If there's anything else you need, feel free to let me know!" - in events[5] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "transfer_to_triage_agent" - in events[6] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "You're welcome!" - in events[7] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - - -class InputGuardrailModel(OpenAIResponsesModel): - __test__ = False - responses: list[ModelResponse] = [ - ResponseBuilders.output_message("The capital of California is Sacramento."), - ResponseBuilders.output_message("x=3"), - ] - guardrail_responses = [ - ResponseBuilders.output_message( - '{"is_math_homework":false,"reasoning":"The question asked is about the capital of California, which is a geography-related query, not math."}' - ), - ResponseBuilders.output_message( - '{"is_math_homework":true,"reasoning":"The question involves solving an equation for a variable, which is a typical math homework problem."}' - ), - ] - - def __init__( - self, - model: str, - openai_client: AsyncOpenAI, - ) -> None: - super().__init__(model, openai_client) - self._responses = iter(self.responses) - self._guardrail_responses = iter(self.guardrail_responses) - - async def get_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - previous_response_id: str | None = None, - conversation_id: str | None = None, - prompt: ResponsePromptParam | None = None, - ) -> ModelResponse: - if ( - system_instructions - == "Check if the user is asking you to do their math homework." - ): - return next(self._guardrail_responses) - else: - return next(self._responses) - - -### 1. An agent-based guardrail that is triggered if the user is asking to do math homework -class MathHomeworkOutput(BaseModel): - reasoning: str - is_math_homework: bool - model_config = ConfigDict(extra="forbid") - - -guardrail_agent: Agent = Agent( - name="Guardrail check", - instructions="Check if the user is asking you to do their math homework.", - output_type=MathHomeworkOutput, -) - - -@input_guardrail -async def math_guardrail( - context: RunContextWrapper[None], - _agent: Agent, - input: str | list[TResponseInputItem], -) -> GuardrailFunctionOutput: - """This is an input guardrail function, which happens to call an agent to check if the input - is a math homework question. - """ - result = await Runner.run(guardrail_agent, input, context=context.context) - final_output = result.final_output_as(MathHomeworkOutput) - - return GuardrailFunctionOutput( - output_info=final_output, - tripwire_triggered=final_output.is_math_homework, - ) - - -@workflow.defn -class InputGuardrailWorkflow: - @workflow.run - async def run(self, messages: list[str]) -> list[str]: - agent = Agent( - name="Customer support agent", - instructions="You are a customer support agent. You help customers with their questions.", - input_guardrails=[math_guardrail], - ) - - input_data: list[TResponseInputItem] = [] - results: list[str] = [] - - for user_input in messages: - input_data.append( - { - "role": "user", - "content": user_input, - } - ) - - try: - result = await Runner.run(agent, input_data) - results.append(result.final_output) - # If the guardrail didn't trigger, we use the result as the input for the next run - input_data = result.to_input_list() - except InputGuardrailTripwireTriggered: - # If the guardrail triggered, we instead add a refusal message to the input - message = "Sorry, I can't help you with your math homework." - results.append(message) - input_data.append( - { - "role": "assistant", - "content": message, - } - ) - return results - - -@pytest.mark.parametrize("use_local_model", [True, False]) -async def test_input_guardrail(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - model = ( - InputGuardrailModel("", openai_client=AsyncOpenAI(api_key="Fake key")) - if use_local_model - else None - ) - async with AgentEnvironment( - model=model, - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - InputGuardrailWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - InputGuardrailWorkflow.run, - [ - "What's the capital of California?", - "Can you help me solve for x: 2x + 5 = 11", - ], - id=f"input-guardrail-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=60), - ) - result = await workflow_handle.result() - - if use_local_model: - assert len(result) == 2 - assert result[0] == "The capital of California is Sacramento." - assert result[1] == "Sorry, I can't help you with your math homework." - - -def output_guardrail_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.output_message( - '{"reasoning":"The phone number\'s area code (650) is associated with a region. However, the exact location is not definitive, but it\'s commonly linked to the San Francisco Peninsula in California, including cities like San Mateo, Palo Alto, and parts of Silicon Valley. It\'s important to note that area codes don\'t always guarantee a specific location due to mobile number portability.","response":"The area code 650 is typically associated with California, particularly the San Francisco Peninsula, including cities like Palo Alto and San Mateo.","user_name":null}' - ) - ] - ) - - -# The agent's output type -class MessageOutput(BaseModel): - reasoning: str = Field( - description="Thoughts on how to respond to the user's message" - ) - response: str = Field(description="The response to the user's message") - user_name: str | None = Field( - description="The name of the user who sent the message, if known" - ) - model_config = ConfigDict(extra="forbid") - - -@output_guardrail -async def sensitive_data_check( - _context: RunContextWrapper, _agent: Agent, output: MessageOutput -) -> GuardrailFunctionOutput: - phone_number_in_response = "650" in output.response - phone_number_in_reasoning = "650" in output.reasoning - - return GuardrailFunctionOutput( - output_info={ - "phone_number_in_response": phone_number_in_response, - "phone_number_in_reasoning": phone_number_in_reasoning, - }, - tripwire_triggered=phone_number_in_response or phone_number_in_reasoning, - ) - - -output_guardrail_agent = Agent( - name="Assistant", - instructions="You are a helpful assistant.", - output_type=MessageOutput, - output_guardrails=[sensitive_data_check], -) - - -@workflow.defn -class OutputGuardrailWorkflow: - @workflow.run - async def run(self) -> bool: - try: - await Runner.run( - output_guardrail_agent, - "My phone number is 650-123-4567. Where do you think I live?", - ) - return True - except OutputGuardrailTripwireTriggered: - return False - - -@pytest.mark.parametrize("use_local_model", [True, False]) -async def test_output_guardrail(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - model = output_guardrail_mock_model() if use_local_model else None - async with AgentEnvironment( - model=model, - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - OutputGuardrailWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - OutputGuardrailWorkflow.run, - id=f"output-guardrail-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - result = await workflow_handle.result() - - if use_local_model: - assert not result - - -def workflow_tool_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.tool_call("{}", "run_tool"), - ResponseBuilders.output_message("Workflow tool was used"), - ] - ) - - -@workflow.defn -class WorkflowToolWorkflow: - @workflow.run - async def run(self) -> None: - agent: Agent = Agent( - name="Assistant", - instructions="You are a helpful assistant.", - model="gpt-4o", - tools=[function_tool(self.run_tool)], - ) - await Runner.run( - agent, - "My phone number is 650-123-4567. Where do you think I live?", - ) - - async def run_tool(self): - print("Tool ran with self:", self) - workflow.logger.info("Tool ran with self: %s", self) - return None - - -async def test_workflow_method_tools(client: Client): - async with AgentEnvironment( - model=workflow_tool_mock_model(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - WorkflowToolWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - WorkflowToolWorkflow.run, - id=f"workflow-tool-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - await workflow_handle.result() - - -async def test_response_serialization(): - # This should not be used in another test, or this test needs to change to use another unloaded type - from openai.types.responses.response_output_item import LocalShellCall - - data = json.loads( - b'{"id":"", "action":{"command": [],"env": {},"type": "exec"},"call_id":"","status":"completed","type":"local_shell_call"}' - ) - call = TypeAdapter(LocalShellCall).validate_python(data) - model_response = ModelResponse( - output=[ - call, - ], - usage=Usage(), - response_id="", - ) - await pydantic_data_converter.encode([model_response]) - - -async def assert_status_retry_behavior(status: int, client: Client, should_retry: bool): - def status_error(status: int): - with workflow.unsafe.imports_passed_through(): - with workflow.unsafe.sandbox_unrestricted(): - import httpx - raise APIStatusError( - message="Something went wrong.", - response=httpx.Response( - status_code=status, request=httpx.Request("GET", url="") - ), - body=None, - ) - - async with AgentEnvironment( - model=TestModel(lambda: status_error(status)), - model_params=ModelActivityParameters( - retry_policy=RetryPolicy(maximum_attempts=2), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - HelloWorldAgent, - ) as worker: - workflow_handle = await client.start_workflow( - HelloWorldAgent.run, - "Input", - id=f"workflow-tool-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - with pytest.raises(WorkflowFailureError): - await workflow_handle.result() - - found = False - async for event in workflow_handle.fetch_history_events(): - if event.HasField("activity_task_started_event_attributes"): - found = True - if should_retry: - assert event.activity_task_started_event_attributes.attempt == 2 - else: - assert event.activity_task_started_event_attributes.attempt == 1 - assert found - - -async def test_exception_handling(client: Client): - await assert_status_retry_behavior(408, client, should_retry=True) - await assert_status_retry_behavior(409, client, should_retry=True) - await assert_status_retry_behavior(429, client, should_retry=True) - await assert_status_retry_behavior(500, client, should_retry=True) - - await assert_status_retry_behavior(400, client, should_retry=False) - await assert_status_retry_behavior(403, client, should_retry=False) - await assert_status_retry_behavior(404, client, should_retry=False) - - -class CustomModelProvider(ModelProvider): - def get_model(self, model_name: str | None) -> Model: - client = AsyncOpenAI(base_url="https://api.openai.com/v1") - return OpenAIChatCompletionsModel(model="gpt-4o", openai_client=client) - - -async def test_chat_completions_model(client: Client): - if not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - async with AgentEnvironment( - model_provider=CustomModelProvider(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - WorkflowToolWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - WorkflowToolWorkflow.run, - id=f"workflow-tool-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - await workflow_handle.result() - - -class WaitModel(Model): - async def get_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - **kwargs, # type:ignore[reportMissingParameterType] - ) -> ModelResponse: - activity.logger.info("Waiting") - await asyncio.sleep(1.0) - activity.logger.info("Returning") - return ResponseBuilders.output_message("test") - - def stream_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - **kwargs, # type:ignore[reportMissingParameterType] - ) -> AsyncIterator[TResponseStreamEvent]: - raise NotImplementedError() - - -@workflow.defn -class AlternateModelAgent: - @workflow.run - async def run(self, prompt: str) -> str: - agent = Agent[None]( - name="Assistant", - instructions="You only respond in haikus.", - model="test_model", - ) - result = await Runner.run(starting_agent=agent, input=prompt) - return result.final_output - - -class CheckModelNameProvider(ModelProvider): - def get_model(self, model_name: str | None) -> Model: - assert model_name == "test_model" - return hello_mock_model() - - -async def test_alternative_model(client: Client): - async with AgentEnvironment( - model_provider=CheckModelNameProvider(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - AlternateModelAgent, - ) as worker: - workflow_handle = await client.start_workflow( - AlternateModelAgent.run, - "Hello", - id=f"alternative-model-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - await workflow_handle.result() - - -async def test_heartbeat(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: - pytest.skip("Relies on real timing, skip.") - - async with AgentEnvironment( - model=WaitModel(), - model_params=ModelActivityParameters( - heartbeat_timeout=timedelta(seconds=0.5), - ), - ) as agent_env: - client = agent_env.applied_on_client(client) - - async with new_worker( - client, - HelloWorldAgent, - ) as worker: - workflow_handle = await client.start_workflow( - HelloWorldAgent.run, - "Tell me about recursion in programming.", - id=f"workflow-tool-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=5.0), - ) - await workflow_handle.result() - - -@workflow.defn -class SessionWorkflow: - @workflow.run - async def run(self) -> None: - agent: Agent = Agent( - name="Assistant", - instructions="You are a helpful assistant.", - ) - await Runner.run( - agent, - "My phone number is 650-123-4567. Where do you think I live?", - session=SQLiteSession(session_id="id"), - ) - - -async def test_session(client: Client): - async with AgentEnvironment(model=hello_mock_model()) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - SessionWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - SessionWorkflow.run, - id=f"session-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10.0), - retry_policy=RetryPolicy(maximum_attempts=1), - ) - - async def check(): - async for evt in workflow_handle.fetch_history_events(): - # Sometimes just creating the sqlite session takes too long for a workflow in CI, so check both - if evt.HasField("workflow_task_failed_event_attributes") and ( - "Temporal workflows don't support SQLite sessions" - in evt.workflow_task_failed_event_attributes.failure.message - or "Potential deadlock detected" - in evt.workflow_task_failed_event_attributes.failure.message - ): - return - - await assert_eventually(check) - - -async def test_lite_llm(client: Client): - if not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - if sys.version_info >= (3, 14): - pytest.skip("Lite LLM does not yet support Python 3.14") # type:ignore[reportUnreachable] - - from agents.extensions.models.litellm_provider import ( - LitellmProvider, # type:ignore[reportUnreachable] - ) - - async with AgentEnvironment( - model_provider=LitellmProvider(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as agent_env: - client = agent_env.applied_on_client(client) # type:ignore[reportUnreachable] - - async with new_worker( - client, - HelloWorldAgent, - ) as worker: - workflow_handle = await client.start_workflow( # type:ignore[reportUnreachable] - HelloWorldAgent.run, - "Tell me about recursion in programming", - id=f"lite-llm-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - await workflow_handle.result() - - -def file_search_tool_mock_model(): - return TestModel.returning_responses( - [ - ModelResponse( - output=[ - ResponseFileSearchToolCall( - queries=["side character in the Iliad"], - type="file_search_call", - id="id", - status="completed", - results=[ - Result(text="Some scene"), - Result(text="Other scene"), - ], - ), - ResponseBuilders.response_output_message("Patroclus"), - ], - usage=Usage(), - response_id=None, - ), - ] - ) - - -@workflow.defn -class FileSearchToolWorkflow: - @workflow.run - async def run(self, question: str) -> str: - agent = Agent[str]( - name="File Search Workflow", - instructions="You are a librarian. You should use your tools to source all your information.", - tools=[ - FileSearchTool( - max_num_results=3, - vector_store_ids=["vs_687fd7f5e69c8191a2740f06bc9a159d"], - include_search_results=True, - ) - ], - ) - result = await Runner.run(starting_agent=agent, input=question) - - # A file search was performed - assert any( - isinstance(item, ToolCallItem) - and isinstance(item.raw_item, ResponseFileSearchToolCall) - for item in result.new_items - ) - return result.final_output - - -@pytest.mark.parametrize("use_local_model", [True, False]) -async def test_file_search_tool(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - model = file_search_tool_mock_model() if use_local_model else None - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30) - ), - model=model, - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - FileSearchToolWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - FileSearchToolWorkflow.run, - "Tell me about a side character in the Iliad.", - id=f"file-search-tool-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - result = await workflow_handle.result() - if use_local_model: - assert result == "Patroclus" - - -def image_generation_mock_model(): - return TestModel.returning_responses( - [ - ModelResponse( - output=[ - ImageGenerationCall( - type="image_generation_call", - id="id", - status="completed", - ), - ResponseBuilders.response_output_message("Patroclus"), - ], - usage=Usage(), - response_id=None, - ), - ] - ) - - -@workflow.defn -class ImageGenerationWorkflow: - @workflow.run - async def run(self, question: str) -> str: - agent = Agent[str]( - name="Image Generation Workflow", - instructions="You are a helpful agent.", - tools=[ - ImageGenerationTool( - tool_config={"type": "image_generation", "quality": "low"}, - ) - ], - ) - result = await Runner.run(starting_agent=agent, input=question) - - # An image generation was performed - assert any( - isinstance(item, ToolCallItem) - and isinstance(item.raw_item, ImageGenerationCall) - for item in result.new_items - ) - return result.final_output - - -# Can't currently validate against real server, we aren't verified for image generation -@pytest.mark.parametrize("use_local_model", [True]) -async def test_image_generation_tool(client: Client, use_local_model: bool): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - model = image_generation_mock_model() if use_local_model else None - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30) - ), - model=model, - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - ImageGenerationWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - ImageGenerationWorkflow.run, - "Create an image of a frog eating a pizza, comic book style.", - id=f"image-generation-tool-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - await workflow_handle.result() - - -def code_interpreter_mock_model(): - return TestModel.returning_responses( - [ - ModelResponse( - output=[ - ResponseCodeInterpreterToolCall( - container_id="", - code="some code", - type="code_interpreter_call", - id="id", - status="completed", - ), - ResponseBuilders.response_output_message("Over 9000"), - ], - usage=Usage(), - response_id=None, - ), - ] - ) - - -@workflow.defn -class CodeInterpreterWorkflow: - @workflow.run - async def run(self, question: str) -> str: - agent = Agent[str]( - name="Code Interpreter Workflow", - instructions="You are a helpful agent.", - tools=[ - CodeInterpreterTool( - tool_config={ - "type": "code_interpreter", - "container": {"type": "auto"}, - }, - ) - ], - ) - result = await Runner.run(starting_agent=agent, input=question) - - assert any( - isinstance(item, ToolCallItem) - and isinstance(item.raw_item, ResponseCodeInterpreterToolCall) - for item in result.new_items - ) - return result.final_output - - -async def test_code_interpreter_tool(client: Client): - async with AgentEnvironment( - model=code_interpreter_mock_model(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=60), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - CodeInterpreterWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - CodeInterpreterWorkflow.run, - "What is the square root of273 * 312821 plus 1782?", - id=f"code-interpreter-tool-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=60), - ) - result = await workflow_handle.result() - assert result == "Over 9000" - - -def hosted_mcp_mock_model(): - return TestModel.returning_responses( - [ - ModelResponse( - output=[ - McpApprovalRequest( - arguments="", - name="", - server_label="gitmcp", - type="mcp_approval_request", - id="id", - ) - ], - usage=Usage(), - response_id=None, - ), - ModelResponse( - output=[ - McpCall( - arguments="", - name="", - server_label="", - type="mcp_call", - id="id", - output="Mcp output", - ), - ResponseBuilders.response_output_message("Some language"), - ], - usage=Usage(), - response_id=None, - ), - ] - ) - - -@workflow.defn -class HostedMCPWorkflow: - @workflow.run - async def run(self, question: str) -> str: - requested_approval = False - - def approve(_: MCPToolApprovalRequest) -> MCPToolApprovalFunctionResult: - nonlocal requested_approval - requested_approval = True - return MCPToolApprovalFunctionResult(approve=True) - - agent = Agent[str]( - name="Hosted MCP Workflow", - instructions="You are a helpful agent.", - tools=[ - HostedMCPTool( - tool_config={ - "type": "mcp", - "server_label": "gitmcp", - "server_url": "https://gitmcp.io/openai/codex", - "require_approval": "always", - }, - on_approval_request=approve, - ) - ], - ) - result = await Runner.run(starting_agent=agent, input=question) - assert requested_approval - assert any( - isinstance(item, ToolCallItem) and isinstance(item.raw_item, McpCall) - for item in result.new_items - ) - return result.final_output - - -async def test_hosted_mcp_tool(client: Client): - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120) - ), - model=hosted_mcp_mock_model(), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - HostedMCPWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - HostedMCPWorkflow.run, - "Which language is this repo written in?", - id=f"hosted-mcp-tool-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=120), - ) - result = await workflow_handle.result() - assert result == "Some language" - - -def custom_tool_mock_model(): - return TestModel.returning_responses( - [ - ModelResponse( - output=[ - ResponseCustomToolCall( - call_id="c1", - input="ping", - name="echo", - type="custom_tool_call", - ) - ], - usage=Usage(), - response_id=None, - ), - ResponseBuilders.output_message("done"), - ] - ) - - -@workflow.defn -class CustomToolWorkflow: - @workflow.run - async def run(self) -> str: - captured: list[str] = [] - - async def echo(ctx: ToolContext[Any], input: str) -> str: # type: ignore[reportUnusedParameter] - captured.append(input) - return input - - agent = Agent[str]( - name="custom-tool-agent", - instructions="Use the echo tool.", - tools=[ - CustomTool( - name="echo", - description="Echo the input string back.", - on_invoke_tool=echo, - ) - ], - ) - result = await Runner.run(starting_agent=agent, input="say something") - return f"{result.final_output}:{captured[0]}" - - -async def test_custom_tool_workflow(client: Client): - async with AgentEnvironment(model=custom_tool_mock_model()) as env: - client = env.applied_on_client(client) - - async with new_worker(client, CustomToolWorkflow) as worker: - workflow_handle = await client.start_workflow( - CustomToolWorkflow.run, - id=f"custom-tool-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - result = await workflow_handle.result() - assert result == "done:ping" - - -class AssertDifferentModelProvider(ModelProvider): - model_names: set[str | None] - - def __init__(self, model: Model): - self._model = model - self.model_names = set() - - def get_model(self, model_name: str | None) -> Model: - self.model_names.add(model_name) - return self._model - - -MULTIPLE_MODELS_FINAL_RESPONSE = "I'm here to help! Was there a specific task you needed assistance with regarding the storeroom?" - - -def multiple_models_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.tool_call("{}", "transfer_to_underling"), - ResponseBuilders.output_message(MULTIPLE_MODELS_FINAL_RESPONSE), - ] - ) - - -@workflow.defn -class MultipleModelWorkflow: - @workflow.run - async def run(self, use_run_config: bool): - underling = Agent[None]( - name="Underling", - instructions="You do all the work you are told.", - ) - - starting_agent = Agent[None]( - name="Lazy Assistant", - model="gpt-4o-mini", - instructions="You delegate all your work to another agent.", - handoffs=[underling], - ) - result = await Runner.run( - starting_agent=starting_agent, - input="Have you cleaned the store room yet?", - run_config=RunConfig(model="gpt-4o") if use_run_config else None, - ) - return result.final_output - - -async def test_multiple_models(client: Client): - provider = AssertDifferentModelProvider(multiple_models_mock_model()) - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120) - ), - model_provider=provider, - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - MultipleModelWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - MultipleModelWorkflow.run, - False, - id=f"multiple-model-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - await workflow_handle.result() - assert provider.model_names == {None, "gpt-4o-mini"} - - -async def test_run_config_models(client: Client): - provider = AssertDifferentModelProvider(multiple_models_mock_model()) - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120) - ), - model_provider=provider, - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - MultipleModelWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - MultipleModelWorkflow.run, - True, - id=f"run-config-model-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - await workflow_handle.result() - - # Only the model from the runconfig override is used - assert provider.model_names == {"gpt-4o"} - - -@workflow.defn -class DictRunConfigWorkflow: - """Same agents as MultipleModelWorkflow, but passes run_config as a plain - dict, which openai-agents >= 0.19 accepts at its public runner boundaries.""" - - @workflow.run - async def run(self) -> str: - underling = Agent[None]( - name="Underling", - instructions="You do all the work you are told.", - ) - - starting_agent = Agent[None]( - name="Lazy Assistant", - model="gpt-4o-mini", - instructions="You delegate all your work to another agent.", - handoffs=[underling], - ) - # Typed as Any so this also type-checks against openai-agents - # versions whose run_config annotation does not include dict. - dict_run_config: Any = {"model": "gpt-4o"} - result = await Runner.run( - starting_agent=starting_agent, - input="Have you cleaned the store room yet?", - run_config=dict_run_config, - ) - return result.final_output - - -async def test_dict_run_config_models(client: Client): - # A dict run_config must behave identically to the equivalent - # RunConfig(model="gpt-4o") in test_run_config_models above. - provider = AssertDifferentModelProvider(multiple_models_mock_model()) - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120) - ), - model_provider=provider, - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - DictRunConfigWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - DictRunConfigWorkflow.run, - id=f"dict-run-config-model-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - result = await workflow_handle.result() - - # Only the model from the runconfig override is used - assert provider.model_names == {"gpt-4o"} - assert result == MULTIPLE_MODELS_FINAL_RESPONSE - - -def test_coerce_run_config_validation(): - # Mirrors upstream agents' normalization: equivalent RunConfig out of a - # dict, and the same TypeErrors for invalid input. - coerced = _coerce_run_config({"model": "gpt-4o", "workflow_name": "wf"}) - assert isinstance(coerced, RunConfig) - assert coerced.model == "gpt-4o" - assert coerced.workflow_name == "wf" - - run_config = RunConfig(model="gpt-4o") - assert _coerce_run_config(run_config) is run_config - - with pytest.raises(TypeError, match="Unknown run_config settings: bogus_setting"): - _coerce_run_config({"model": "gpt-4o", "bogus_setting": True}) - - with pytest.raises( - TypeError, match="run_config must be a RunConfig instance or a dict, got int" - ): - _coerce_run_config(42) - - -async def test_summary_provider(client: Client): - class SummaryProvider(ModelSummaryProvider): - def provide( - self, - agent: Agent[Any] | None, - instructions: str | None, - input: str | list[TResponseInputItem], - ) -> str: - return "My summary" - - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120), - summary_override=SummaryProvider(), - ), - model=hello_mock_model(), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - HelloWorldAgent, - ) as worker: - workflow_handle = await client.start_workflow( - HelloWorldAgent.run, - "Prompt", - id=f"summary-provider-model-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - await workflow_handle.result() - async for e in workflow_handle.fetch_history_events(): - if e.HasField("activity_task_scheduled_event_attributes"): - assert e.user_metadata.summary.data == b'"My summary"' - - -class OutputType(pydantic.BaseModel): - answer: str - model_config = ConfigDict(extra="forbid") # Forbid additional properties - - -@workflow.defn -class OutputTypeWorkflow: - @workflow.run - async def run(self) -> OutputType: - agent: Agent = Agent( - name="Assistant", - instructions="You are a helpful assistant, adhere to the json schema output", - output_type=OutputType, - ) - result = await Runner.run( - starting_agent=agent, - input="Hello!", - ) - return result.final_output - - -def output_type_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.output_message( - '{"answer": "My answer"}', - ), - ] - ) - - -async def test_output_type(client: Client): - async with AgentEnvironment( - model=output_type_mock_model(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - OutputTypeWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - OutputTypeWorkflow.run, - id=f"output-type-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - result = await workflow_handle.result() - assert isinstance(result, OutputType) - assert result.answer == "My answer" - - -@workflow.defn -class McpServerWorkflow: - @workflow.run - async def run(self, caching: bool, factory_argument: Any | None) -> str: - from agents.mcp import MCPServer # type: ignore[reportUnusedImport] - - server: MCPServer = openai_agents.workflow.stateless_mcp_server( - "HelloServer", cache_tools_list=caching, factory_argument=factory_argument - ) - agent = Agent[str]( - name="MCP ServerWorkflow", - instructions="Use the tools to assist the customer.", - mcp_servers=[server], - ) - result = await Runner.run( - starting_agent=agent, input="Say hello to Tom and Tim." - ) - return result.final_output - - -@workflow.defn -class McpServerStatefulWorkflow: - @workflow.run - async def run(self, timeout: timedelta, factory_argument: Any | None) -> str: - async with openai_agents.workflow.stateful_mcp_server( - "HelloServer", - config=ActivityConfig( - schedule_to_start_timeout=timeout, - start_to_close_timeout=timedelta(seconds=30), - ), - factory_argument=factory_argument, - ) as server: - agent = Agent[str]( - name="MCP ServerWorkflow", - instructions="Use the tools to assist the customer.", - mcp_servers=[server], - ) - result = await Runner.run( - starting_agent=agent, input="Say hello to Tom and Tim." - ) - return result.final_output - - -def tracking_mcp_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.tool_call( - arguments='{"name":"Tom"}', - name="Say-Hello", - ), - ResponseBuilders.tool_call( - arguments='{"name":"Tim"}', - name="Say-Hello", - ), - ResponseBuilders.output_message("Hi Tom and Tim!"), - ] - ) - - -def get_tracking_server(name: str): - from agents.mcp import MCPServer # type: ignore - from mcp import GetPromptResult, ListPromptsResult # type: ignore - from mcp import Tool as MCPTool # type: ignore - from mcp.types import CallToolResult, TextContent # type: ignore - - class TrackingMCPServer(MCPServer): - calls: list[str] - - def __init__(self, name: str): - self._name = name - self.calls = [] - super().__init__() - - async def connect(self): - self.calls.append("connect") - - @property - def name(self) -> str: - return self._name - - async def cleanup(self): - self.calls.append("cleanup") - - async def list_tools( - self, - run_context: RunContextWrapper[Any] | None = None, - agent: AgentBase | None = None, - ) -> list[MCPTool]: - self.calls.append("list_tools") - return [ - MCPTool( - name="Say-Hello", - inputSchema={ - "type": "object", - "properties": { - "name": {"type": "string"}, - }, - "required": ["name"], - "$schema": "http://json-schema.org/draft-07/schema#", - }, - ) - ] - - async def call_tool( - self, - tool_name: str, - arguments: dict[str, Any] | None, - meta: dict[str, Any] | None = None, - ) -> CallToolResult: - self.calls.append("call_tool") - name = (arguments or {}).get("name") or "John Doe" - return CallToolResult( - content=[TextContent(type="text", text=f"Hello {name}")] - ) - - async def list_prompts(self) -> ListPromptsResult: - raise NotImplementedError() - - async def get_prompt( - self, name: str, arguments: dict[str, Any] | None = None - ) -> GetPromptResult: - raise NotImplementedError() - - return TrackingMCPServer(name) - - -@pytest.mark.parametrize("use_local_model", [True, False]) -@pytest.mark.parametrize("stateful", [True, False]) -@pytest.mark.parametrize("caching", [True, False]) -async def test_mcp_server( - client: Client, use_local_model: bool, stateful: bool, caching: bool -): - if not use_local_model and not os.environ.get("OPENAI_API_KEY"): - pytest.skip("No openai API key") - - if stateful and caching: - pytest.skip("Caching is only supported for stateless MCP servers") - - from agents.mcp import MCPServer # type: ignore - - from temporalio.contrib.openai_agents import ( - StatefulMCPServerProvider, - StatelessMCPServerProvider, - ) - - tracking_server = get_tracking_server(name="HelloServer") - server: StatefulMCPServerProvider | StatelessMCPServerProvider = ( - StatefulMCPServerProvider("HelloServer", lambda _: tracking_server) - if stateful - else StatelessMCPServerProvider("HelloServer", lambda _: tracking_server) - ) - - model = tracking_mcp_mock_model() if use_local_model else None - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120) - ), - model=model, - mcp_server_providers=[server], - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, McpServerStatefulWorkflow, McpServerWorkflow - ) as worker: - if stateful: - result = await client.execute_workflow( - McpServerStatefulWorkflow.run, - args=[timedelta(seconds=30), None], - id=f"mcp-server-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - else: - result = await client.execute_workflow( - McpServerWorkflow.run, - args=[caching, None], - id=f"mcp-server-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - if use_local_model: - assert result == "Hi Tom and Tim!" - if use_local_model: - print(tracking_server.calls) - if stateful: - assert tracking_server.calls == [ - "connect", - "list_tools", - "call_tool", - "list_tools", - "call_tool", - "list_tools", - "cleanup", - ] - assert len(cast(StatefulMCPServerProvider, server)._servers) == 0 - else: - if caching: - assert tracking_server.calls == [ - "connect", - "list_tools", - "cleanup", - "connect", - "call_tool", - "cleanup", - "connect", - "call_tool", - "cleanup", - ] - else: - assert tracking_server.calls == [ - "connect", - "list_tools", - "cleanup", - "connect", - "call_tool", - "cleanup", - "connect", - "list_tools", - "cleanup", - "connect", - "call_tool", - "cleanup", - "connect", - "list_tools", - "cleanup", - ] - - -@pytest.mark.parametrize("stateful", [True, False]) -async def test_mcp_server_factory_argument(client: Client, stateful: bool): - def factory(args: Any | None) -> MCPServer: - print("Invoking factory: ", args) - if args is not None: - assert args is not None - assert cast(dict[str, str], args).get("user") == "blah" - - return get_tracking_server("HelloServer") - - server: StatefulMCPServerProvider | StatelessMCPServerProvider = ( - StatefulMCPServerProvider("HelloServer", factory) - if stateful - else StatelessMCPServerProvider("HelloServer", factory) - ) - - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120) - ), - model=tracking_mcp_mock_model(), - mcp_server_providers=[server], - ) as env: - client = env.applied_on_client(client) - - headers = {"user": "blah"} - async with new_worker( - client, McpServerStatefulWorkflow, McpServerWorkflow - ) as worker: - if stateful: - await client.execute_workflow( - McpServerStatefulWorkflow.run, - args=[timedelta(seconds=30), headers], - id=f"mcp-server-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - else: - await client.execute_workflow( - McpServerWorkflow.run, - args=[False, headers], - id=f"mcp-server-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - - -async def test_stateful_mcp_server_no_worker(client: Client): - server = StatefulMCPServerProvider( - "Filesystem-Server", - lambda _: MCPServerStdio( - name="Filesystem-Server", - params={ - "command": "npx", - "args": [ - "-y", - "@modelcontextprotocol/server-filesystem", - os.path.dirname(os.path.abspath(__file__)), - ], - }, - ), - ) - - # Override the connect activity to not actually start a worker - @activity.defn(name="Filesystem-Server-stateful-connect") - async def connect() -> None: - await asyncio.sleep(30) - - def override_get_activities() -> Sequence[Callable]: - return (connect,) - - server.get_activities = override_get_activities # type:ignore - - async with AgentEnvironment( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=120) - ), - model=tracking_mcp_mock_model(), - mcp_server_providers=[server], - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - McpServerStatefulWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - McpServerStatefulWorkflow.run, - args=[timedelta(seconds=1), None], - id=f"mcp-server-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - with pytest.raises(WorkflowFailureError) as err: - await workflow_handle.result() - assert isinstance(err.value.cause, ApplicationError) - assert ( - err.value.cause.message - == "MCP Stateful Server Worker failed to schedule activity." - ) - - -async def test_model_conversion_loops(): - agent = init_agents() - converted = _convert_agent(ModelActivityParameters(), agent, None) - seat_booking_handoff = converted.handoffs[1] - assert isinstance(seat_booking_handoff, Handoff) - context: RunContextWrapper[AirlineAgentContext] = RunContextWrapper( - context=AirlineAgentContext() # type: ignore - ) - seat_booking_agent = await seat_booking_handoff.on_invoke_handoff(context, "") - triage_agent = seat_booking_agent.handoffs[0] - assert isinstance(triage_agent, Agent) - assert isinstance(triage_agent.model, _TemporalModelStub) - seat_booking_agent = await seat_booking_handoff.on_invoke_handoff(context, "") - triage_agent = seat_booking_agent.handoffs[0] - assert isinstance(triage_agent, Agent) - assert isinstance(triage_agent.model, _TemporalModelStub) - seat_booking_agent = await seat_booking_handoff.on_invoke_handoff(context, "") - triage_agent = seat_booking_agent.handoffs[0] - assert isinstance(triage_agent, Agent) - assert isinstance(triage_agent.model, _TemporalModelStub) - - -def test_sandbox_apply_patch_tool_round_trips_through_activity_input(): - class FakeSandboxSession: - pass - - tool = SandboxApplyPatchTool(session=FakeSandboxSession()) # type: ignore[arg-type] - - stub = _TemporalModelStub( - model_name="gpt-5", - model_params=ModelActivityParameters(), - agent=None, - ) - - activity_input, _summary = stub._build_activity_input( - system_instructions=None, - input="hi", - model_settings=ModelSettings(), - tools=[tool], - output_schema=None, - handoffs=[], - tracing=ModelTracing.DISABLED, - previous_response_id=None, - conversation_id=None, - prompt=None, - ) - - tool_inputs = activity_input.get("tools") or [] - assert len(tool_inputs) == 1 - rebuilt = _build_tool(tool_inputs[0], _WorkerEnvRefResolver(())) - assert isinstance(rebuilt, CustomTool) - assert rebuilt.name == tool.name - assert rebuilt.description == tool.description - assert rebuilt.format == tool.format - assert rebuilt.tool_config == tool.tool_config - - -def test_custom_tool_with_defer_loading_round_trips_through_activity_input(): - async def stub(_ctx: Any, _payload: str) -> str: - return "" - - tool = CustomTool( - name="deferred_tool", - description="A custom tool with defer_loading enabled", - on_invoke_tool=stub, - defer_loading=True, - ) - - stub_model = _TemporalModelStub( - model_name="gpt-5", - model_params=ModelActivityParameters(), - agent=None, - ) - - activity_input, _summary = stub_model._build_activity_input( - system_instructions=None, - input="hi", - model_settings=ModelSettings(), - tools=[tool], - output_schema=None, - handoffs=[], - tracing=ModelTracing.DISABLED, - previous_response_id=None, - conversation_id=None, - prompt=None, - ) - - tool_inputs = activity_input.get("tools") or [] - assert len(tool_inputs) == 1 - rebuilt = _build_tool(tool_inputs[0], _WorkerEnvRefResolver(())) - assert isinstance(rebuilt, CustomTool) - assert rebuilt.tool_config == tool.tool_config - assert rebuilt.defer_loading is True - - -async def test_local_hello_world_agent(client: Client): - async with AgentEnvironment( - model=hello_mock_model(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - use_local_activity=True, - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker(client, HelloWorldAgent) as worker: - handle = await client.start_workflow( - HelloWorldAgent.run, - "Tell me about recursion in programming.", - id=f"hello-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=5), - ) - result = await handle.result() - assert result == "test" - local_activity_found = False - async for e in handle.fetch_history_events(): - if e.HasField("marker_recorded_event_attributes"): - local_activity_found = True - assert local_activity_found - - -async def test_split_workers(client: Client): - new_config = client.config() - - workflow_plugin = openai_agents.OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30) - ), - model_provider=TestModelProvider(hello_mock_model()), - register_activities=False, - ) - new_config["plugins"] = [workflow_plugin] - workflow_client = Client(**new_config) - - # Workflow worker - async with new_worker( - workflow_client, HelloWorldAgent, no_remote_activities=True - ) as worker: - activity_plugin = openai_agents.OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30) - ), - model_provider=TestModelProvider(hello_mock_model()), - ) - new_config["plugins"] = [activity_plugin] - activity_client = Client(**new_config) - # Activity Worker - async with new_worker(activity_client, task_queue=worker.task_queue): - result = await activity_client.execute_workflow( - HelloWorldAgent.run, - "Tell me about recursion in programming.", - id=f"hello-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=120), - ) - assert result == "test" - - -def multiple_handoffs_mock_model(): - return TestModel.returning_responses( - [ - ResponseBuilders.tool_call("{}", "transfer_to_planner"), - ResponseBuilders.output_message( - "I'll analyze the requirements and create a plan." - ), - ] - ) - - -@workflow.defn -class MultipleHandoffsWorkflow: - @workflow.run - async def run(self, task: str) -> str: - planner = Agent[None]( - name="Planner", - instructions="You analyze requirements and create detailed plans.", - handoff_description="An agent that creates detailed plans and strategies", - ) - - writer = Agent[None]( - name="Writer", - instructions="You write documents and reports based on provided information.", - handoff_description="An agent that writes professional documents and reports", - ) - - specialists = [planner, writer] - handoffs_list: list[Agent[Any] | Handoff[None, Any]] = [ - handoff(agent=a) for a in specialists - ] - - triage = Agent[None]( - name="Triage", - instructions="Hand off to Planner when requested.", - handoffs=handoffs_list, - ) - - result = await Runner.run(starting_agent=triage, input=task) - return result.final_output - - -async def test_multiple_handoffs_workflow(client: Client): - model = multiple_handoffs_mock_model() - async with AgentEnvironment( - model=model, - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - MultipleHandoffsWorkflow, - ) as worker: - workflow_handle = await client.start_workflow( - MultipleHandoffsWorkflow.run, - "Create a project plan for building a web application", - id=f"multiple-handoffs-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - result = await workflow_handle.result() - - assert result == "I'll analyze the requirements and create a plan." - - # Verify the correct handoff occurred - events = [] - async for e in workflow_handle.fetch_history_events(): - if e.HasField("activity_task_completed_event_attributes"): - events.append(e) - - # Should have 2 activity completions: - # 1. Triage agent makes handoff call to planner - # 2. Planner agent responds - assert len(events) == 2 - - # Verify handoff to planner was requested - first_event_data = ( - events[0] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert "transfer_to_planner" in first_event_data - - # Verify that the planner agent was actually invoked (this would fail before the fix) - planner_response_data = ( - events[1] - .activity_task_completed_event_attributes.result.payloads[0] - .data.decode() - ) - assert ( - "I'll analyze the requirements and create a plan." - in planner_response_data - ) diff --git a/tests/contrib/openai_agents/test_openai_replay.py b/tests/contrib/openai_agents/test_openai_replay.py deleted file mode 100644 index 6db463392..000000000 --- a/tests/contrib/openai_agents/test_openai_replay.py +++ /dev/null @@ -1,46 +0,0 @@ -from pathlib import Path - -import pytest - -from temporalio.client import WorkflowHistory -from temporalio.contrib.openai_agents import OpenAIAgentsPlugin -from temporalio.worker import Replayer -from tests.contrib.openai_agents.test_openai import ( - AgentsAsToolsWorkflow, - CustomerServiceWorkflow, - HelloWorldAgent, - InputGuardrailWorkflow, - OutputGuardrailWorkflow, - ResearchWorkflow, - ToolsWorkflow, -) - - -@pytest.mark.parametrize( - "file_name", - [ - "agents-as-tools-workflow-history.json", - "customer-service-workflow-history.json", - "hello-workflow-history.json", - "input-guardrail-workflow-history.json", - "output-guardrail-workflow-history.json", - "research-workflow-history.json", - "tools-workflow-history.json", - ], -) -async def test_replay(file_name: str) -> None: - with (Path(__file__).with_name("histories") / file_name).open("r") as f: - history_json = f.read() - - await Replayer( - workflows=[ - ResearchWorkflow, - ToolsWorkflow, - CustomerServiceWorkflow, - AgentsAsToolsWorkflow, - HelloWorldAgent, - InputGuardrailWorkflow, - OutputGuardrailWorkflow, - ], - plugins=[OpenAIAgentsPlugin()], - ).replay_workflow(WorkflowHistory.from_json("fake", history_json)) diff --git a/tests/contrib/openai_agents/test_openai_sandbox.py b/tests/contrib/openai_agents/test_openai_sandbox.py deleted file mode 100644 index 4b9bf2f2b..000000000 --- a/tests/contrib/openai_agents/test_openai_sandbox.py +++ /dev/null @@ -1,1575 +0,0 @@ -"""Tests for sandbox validation in TemporalOpenAIRunner.""" - -import io -import uuid -from collections.abc import Collection -from datetime import timedelta -from pathlib import Path -from typing import Any, Literal - -import pytest -from agents import Agent, FunctionTool, RunConfig, Runner, Tool -from agents.sandbox import Capability, Manifest, SandboxAgent, SandboxRunConfig -from agents.sandbox.errors import ( - ExecTransportError, - SandboxError, - WorkspaceArchiveReadError, -) -from agents.sandbox.manifest import Environment -from agents.sandbox.session.base_sandbox_session import BaseSandboxSession -from agents.sandbox.session.pty_types import PtyExecUpdate -from agents.sandbox.session.sandbox_client import ( - BaseSandboxClient, - BaseSandboxClientOptions, -) -from agents.sandbox.session.sandbox_session import SandboxSession -from agents.sandbox.session.sandbox_session_state import SandboxSessionState -from agents.sandbox.snapshot import NoopSnapshot -from agents.sandbox.types import ExecResult -from agents.sandbox.workspace_paths import SandboxPathGrant -from pydantic import BaseModel, TypeAdapter -from pydantic_core import to_json - -from temporalio import workflow -from temporalio.client import Client, WorkflowFailureError -from temporalio.contrib.openai_agents import ( - AgentsWorkflowError, - ModelActivityParameters, - OpenAIAgentsPlugin, - OpenAIPayloadConverter, - SandboxClientProvider, - TemporalWorkerEnvValue, -) -from temporalio.contrib.openai_agents._openai_runner import _has_sandbox_agent -from temporalio.contrib.openai_agents._temporal_worker_env_ref import ( - AllowAllWorkerEnvVars, -) -from temporalio.contrib.openai_agents.sandbox._temporal_activity_models import ( - CreateSessionArgs, - ExecArgs, - HydrateWorkspaceArgs, - PersistWorkspaceArgs, - PersistWorkspaceResult, - PtyExecStartArgs, - PtyExecUpdateResult, - PtyWriteStdinArgs, - ReadArgs, - ReadResult, - ResumeSessionArgs, - RunningArgs, - StartArgs, - StopArgs, - WriteArgs, -) -from temporalio.contrib.openai_agents.sandbox._temporal_activity_models import ( - ExecResult as ExecResultModel, -) -from temporalio.contrib.openai_agents.sandbox._temporal_sandbox_client import ( - TemporalSandboxClient, -) -from temporalio.contrib.openai_agents.sandbox._temporal_worker_env_value import ( - _resolvable_worker_env_vars, -) -from temporalio.contrib.openai_agents.testing import ( - AgentEnvironment, - ResponseBuilders, - TestModel, - TestModelProvider, -) -from temporalio.contrib.openai_agents.workflow import temporal_sandbox_client -from temporalio.exceptions import ActivityError, ApplicationError -from temporalio.workflow import ActivityConfig -from tests.helpers import new_worker - -# ── _has_sandbox_agent unit tests ── - - -def test_has_sandbox_agent_regular_agent(): - assert _has_sandbox_agent(Agent[None](name="regular")) is False - - -def test_has_sandbox_agent_sandbox_starting(): - assert _has_sandbox_agent(SandboxAgent[None](name="sandbox")) is True - - -def test_has_sandbox_agent_sandbox_direct_handoff(): - sandbox = SandboxAgent[None](name="sandbox") - regular = Agent[None](name="regular", handoffs=[sandbox]) - assert _has_sandbox_agent(regular) is True - - -def test_has_sandbox_agent_sandbox_deep_handoff(): - sandbox = SandboxAgent[None](name="sandbox") - middle = Agent[None](name="middle", handoffs=[sandbox]) - top = Agent[None](name="top", handoffs=[middle]) - assert _has_sandbox_agent(top) is True - - -def test_has_sandbox_agent_no_sandbox_in_chain(): - c = Agent[None](name="c") - b = Agent[None](name="b", handoffs=[c]) - a = Agent[None](name="a", handoffs=[b]) - assert _has_sandbox_agent(a) is False - - -def test_has_sandbox_agent_circular_no_sandbox(): - a: Agent[Any] = Agent[None](name="a") - b: Agent[Any] = Agent[None](name="b", handoffs=[a]) - a.handoffs = [b] - assert _has_sandbox_agent(a) is False - - -def test_has_sandbox_agent_circular_with_sandbox(): - sandbox = SandboxAgent[None](name="sandbox") - a: Agent[Any] = Agent[None](name="a", handoffs=[sandbox]) - b: Agent[Any] = Agent[None](name="b", handoffs=[a]) - a.handoffs = [b, sandbox] - assert _has_sandbox_agent(b) is True - - -# ── temporal_sandbox_client helper tests ── - - -def test_temporal_sandbox_client_returns_temporal_client(): - client = temporal_sandbox_client("my-backend") - assert isinstance(client, TemporalSandboxClient) - assert client._name == "my-backend" - assert client.backend_id == "my-backend" - - -def test_temporal_sandbox_client_with_config(): - config = ActivityConfig(start_to_close_timeout=timedelta(minutes=10)) - client = temporal_sandbox_client("my-backend", config=config) - assert isinstance(client, TemporalSandboxClient) - assert client._config == config - - -# ── Workflow validation tests ── - - -def _mock_model(): - return TestModel.returning_responses([ResponseBuilders.output_message("test")]) - - -@workflow.defn -class SandboxValidationWorkflow: - """Single workflow that validates all sandbox configuration error cases.""" - - @workflow.run - async def run(self) -> str: - # Case 1: SandboxAgent without run_config.sandbox - try: - agent = SandboxAgent[None](name="sandbox") - await Runner.run(starting_agent=agent, input="hello") - return "FAIL: no-config should have raised" - except ValueError as e: - assert "run_config.sandbox is not configured" in str(e) - - # Case 2: SandboxAgent reachable via handoff without run_config.sandbox - try: - sandbox = SandboxAgent[None](name="sandbox_target") - router = Agent[None](name="router", handoffs=[sandbox]) - await Runner.run(starting_agent=router, input="hello") - return "FAIL: handoff-no-config should have raised" - except ValueError as e: - assert "run_config.sandbox is not configured" in str(e) - - # Case 3: SandboxRunConfig with client=None - try: - agent = SandboxAgent[None](name="sandbox") - await Runner.run( - starting_agent=agent, - input="hello", - run_config=RunConfig( - sandbox=SandboxRunConfig(client=None), # type: ignore[arg-type] - ), - ) - return "FAIL: null-client should have raised" - except ValueError as e: - assert "run_config.sandbox.client must be set" in str(e) - - # Case 4: Non-TemporalSandboxClient in run_config.sandbox.client - try: - agent = SandboxAgent[None](name="sandbox") - await Runner.run( - starting_agent=agent, - input="hello", - run_config=RunConfig( - sandbox=SandboxRunConfig(client=object()), # type: ignore[arg-type] - ), - ) - return "FAIL: wrong-client should have raised" - except ValueError as e: - assert "temporal_sandbox_client(name)" in str(e) - - return "OK" - - -async def test_sandbox_validation_errors(client: Client): - """All sandbox configuration errors should be caught immediately in the workflow.""" - async with AgentEnvironment(model=_mock_model()) as env: - client = env.applied_on_client(client) - async with new_worker( - client, - SandboxValidationWorkflow, - workflow_failure_exception_types=[ValueError, AssertionError], - ) as worker: - result = await client.execute_workflow( - SandboxValidationWorkflow.run, - id=f"sandbox-validation-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - assert result == "OK" - - -# ── Mock sandbox infrastructure for delegation tests ── - - -class TestSessionState(SandboxSessionState): - """Concrete ``SandboxSessionState`` subclass for tests that don't need a real backend.""" - - __test__ = False - type: Literal["test"] = "test" # type: ignore - - -class _MockSandboxSession(BaseSandboxSession): - """Minimal mock session that tracks calls and returns canned results.""" - - def __init__(self, manifest: Manifest | None = None) -> None: - self.state = TestSessionState( - manifest=manifest or Manifest(), - snapshot=NoopSnapshot(id=str(uuid.uuid4())), - ) - self.exec_calls: list[tuple] = [] - self.read_calls: list[Path] = [] - self.write_calls: list[tuple[Path, bytes]] = [] - self.running_calls: int = 0 - self.start_calls: int = 0 - self.stop_calls: int = 0 - self.shutdown_calls: int = 0 - self.persist_workspace_calls: int = 0 - self.hydrate_workspace_calls: int = 0 - - async def start(self) -> None: - self.start_calls += 1 - - async def stop(self) -> None: - self.stop_calls += 1 - - async def shutdown(self) -> None: - self.shutdown_calls += 1 - - async def running(self) -> bool: - self.running_calls += 1 - return True - - async def _exec_internal( - self, - *command: str | Path, - timeout: float | None = None, - ) -> ExecResult: - self.exec_calls.append((command, timeout)) - return ExecResult(stdout=b"ok\n", stderr=b"", exit_code=0) - - async def read(self, path: Path, *, user: Any = None) -> io.IOBase: # type: ignore[reportUnusedParameter] - self.read_calls.append(path) - return io.BytesIO(b"file-content") - - async def write(self, path: Path, data: io.IOBase, *, user: Any = None) -> None: # type: ignore[reportUnusedParameter] - self.write_calls.append((path, data.read())) - - async def persist_workspace(self) -> io.IOBase: - self.persist_workspace_calls += 1 - return io.BytesIO(b"workspace-archive") - - async def hydrate_workspace(self, data: io.IOBase) -> None: - self.hydrate_workspace_calls += 1 - - def supports_pty(self) -> bool: - return False - - -class _MockSandboxClient(BaseSandboxClient[BaseSandboxClientOptions | None]): - """Mock client that tracks create/resume/delete calls and delegates to a mock session.""" - - backend_id = "mock" - supports_default_options = True - - def __init__(self, session: _MockSandboxSession | None = None) -> None: - self.inner_session = session or _MockSandboxSession() - self.session = self._wrap_session(self.inner_session) - self.create_calls: int = 0 - self.resume_calls: int = 0 - self.delete_calls: int = 0 - self.resolved_envs: dict[str, str] | None = None - - async def create( - self, - *, - snapshot: Any = None, - manifest: Manifest | None = None, - options: BaseSandboxClientOptions | None = None, - ) -> SandboxSession: - self.create_calls += 1 - if manifest is not None: - self.inner_session.state.manifest = manifest - self.resolved_envs = await manifest.environment.resolve() - return self.session - - async def resume(self, state: SandboxSessionState) -> SandboxSession: - self.resume_calls += 1 - self.inner_session.state = state - return self.session - - async def delete(self, session: SandboxSession) -> SandboxSession: - self.delete_calls += 1 - return session - - def deserialize_session_state(self, payload: dict[str, Any]) -> SandboxSessionState: - return SandboxSessionState.model_validate(payload) - - -# ── SandboxClientProvider unit tests (delegation) ── - - -@pytest.fixture -def mock_client() -> _MockSandboxClient: - return _MockSandboxClient() - - -@pytest.fixture -def sandbox_activities(mock_client: _MockSandboxClient) -> SandboxClientProvider: - return SandboxClientProvider("mock", mock_client) - - -def _make_state(manifest: Manifest | None = None) -> TestSessionState: - return TestSessionState( - manifest=manifest or Manifest(), - snapshot=NoopSnapshot(id=str(uuid.uuid4())), - ) - - -def _activity_map( - sandbox_activities: SandboxClientProvider, - resolvable_worker_env_vars: Collection[str] = (), -) -> dict[str, Any]: - """Build a short-name → callable dict from all() for easy test dispatch.""" - return { - act.__temporal_activity_definition.name: act # type: ignore[attr-defined, union-attr] - for act in sandbox_activities._get_activities(resolvable_worker_env_vars) - } - - -async def test_activities_create_session_delegates( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, -): - """create_session activity should delegate to the real client's create().""" - acts = _activity_map(sandbox_activities) - args = CreateSessionArgs( - snapshot_spec=None, - manifest=Manifest(), - client_options=None, - ) - result = await acts["mock-sandbox_client_create"](args) - assert mock_client.create_calls == 1 - assert result.state is not None - assert isinstance(result.supports_pty, bool) - - -async def test_create_session_activity_resolves_worker_env_value_but_returns_it_unresolved( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, - monkeypatch: pytest.MonkeyPatch, -): - secret = "sk-activity-boundary-secret" - monkeypatch.setenv("WORKER_ACTIVITY_SECRET", secret) - - def payload_bytes(value: BaseModel) -> bytes: - payload = OpenAIPayloadConverter().to_payload(value) - assert payload is not None - return payload.data - - args = CreateSessionArgs( - snapshot_spec=None, - manifest=Manifest( - environment=Environment( - value={"API_KEY": TemporalWorkerEnvValue(name="WORKER_ACTIVITY_SECRET")} - ) - ), - client_options=None, - ) - assert secret.encode() not in payload_bytes(args) - - acts = _activity_map(sandbox_activities, ["WORKER_ACTIVITY_SECRET"]) - result = await acts["mock-sandbox_client_create"](args) - - assert mock_client.resolved_envs == {"API_KEY": secret} - returned = payload_bytes(result) - assert secret.encode() not in returned - assert b"temporal.worker_env_value" in returned - - -async def test_create_session_activity_refuses_an_unlisted_worker_env_value( - sandbox_activities: SandboxClientProvider, - monkeypatch: pytest.MonkeyPatch, -): - secret = "sk-unlisted-secret" - monkeypatch.setenv("WORKER_ACTIVITY_SECRET", secret) - - args = CreateSessionArgs( - snapshot_spec=None, - manifest=Manifest( - environment=Environment( - value={"API_KEY": TemporalWorkerEnvValue(name="WORKER_ACTIVITY_SECRET")} - ) - ), - client_options=None, - ) - - acts = _activity_map(sandbox_activities, ["SOMETHING_ELSE"]) - with pytest.raises(ApplicationError) as exc_info: - await acts["mock-sandbox_client_create"](args) - - assert exc_info.value.type == "TemporalWorkerEnvValueUnresolved" - assert exc_info.value.non_retryable - assert "WORKER_ACTIVITY_SECRET" in str(exc_info.value) - assert "resolvable_worker_env_vars" in str(exc_info.value) - assert secret not in str(exc_info.value) - - -async def test_the_resolvable_names_are_snapshotted_when_the_activities_are_built( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, - monkeypatch: pytest.MonkeyPatch, -): - secret = "sk-snapshot-secret" - monkeypatch.setenv("WORKER_ACTIVITY_SECRET", secret) - - args = CreateSessionArgs( - snapshot_spec=None, - manifest=Manifest( - environment=Environment( - value={"API_KEY": TemporalWorkerEnvValue(name="WORKER_ACTIVITY_SECRET")} - ) - ), - client_options=None, - ) - - resolvable = ["WORKER_ACTIVITY_SECRET"] - acts = _activity_map(sandbox_activities, resolvable) - resolvable.clear() - - await acts["mock-sandbox_client_create"](args) - assert mock_client.resolved_envs == {"API_KEY": secret} - - -class _ScopeRecordingSession(_MockSandboxSession): - def __init__(self, scopes: list[frozenset[str] | AllowAllWorkerEnvVars]) -> None: - super().__init__() - self._scopes = scopes - - def supports_pty(self) -> bool: - return True - - async def shutdown(self) -> None: - self._scopes.append(_resolvable_worker_env_vars.get(frozenset())) - await super().shutdown() - - async def pty_exec_start( - self, *command: str | Path, **kwargs: Any - ) -> PtyExecUpdate: - return PtyExecUpdate( - process_id=1, output=b"", exit_code=None, original_token_count=None - ) - - async def pty_write_stdin(self, **kwargs: Any) -> PtyExecUpdate: - return PtyExecUpdate( - process_id=1, output=b"", exit_code=None, original_token_count=None - ) - - -class _ScopeRecordingClient(_MockSandboxClient): - def __init__(self) -> None: - self.scopes: list[frozenset[str] | AllowAllWorkerEnvVars] = [] - super().__init__(_ScopeRecordingSession(self.scopes)) - - async def create(self, **kwargs: Any) -> SandboxSession: - self.scopes.append(_resolvable_worker_env_vars.get(frozenset())) - return await super().create(**kwargs) - - async def resume(self, state: SandboxSessionState) -> SandboxSession: - self.scopes.append(_resolvable_worker_env_vars.get(frozenset())) - return await super().resume(state) - - -async def test_every_activity_runs_its_body_inside_the_resolvable_names_scope(): - recording_client = _ScopeRecordingClient() - provider = SandboxClientProvider("mock", recording_client) - acts = _activity_map(provider, ["A_RESOLVABLE_NAME"]) - state = _make_state() - args_by_activity: dict[str, Any] = { - "mock-sandbox_client_create": CreateSessionArgs( - snapshot_spec=None, manifest=Manifest(), client_options=None - ), - "mock-sandbox_client_resume": ResumeSessionArgs(state=state), - "mock-sandbox_client_delete": StopArgs(state=state), - "mock-sandbox_session_exec": ExecArgs(state=state, command=["ls"], shell=True), - "mock-sandbox_session_read": ReadArgs(state=state, path="/tmp/f"), - "mock-sandbox_session_write": WriteArgs(state=state, path="/tmp/f", data=b"d"), - "mock-sandbox_session_running": RunningArgs(state=state), - "mock-sandbox_session_persist_workspace": PersistWorkspaceArgs(state=state), - "mock-sandbox_session_hydrate_workspace": HydrateWorkspaceArgs( - state=state, data=b"d" - ), - "mock-sandbox_session_pty_exec_start": PtyExecStartArgs( - state=state, command=["ls"] - ), - "mock-sandbox_session_pty_write_stdin": PtyWriteStdinArgs( - state=state, session_id=1, chars="x" - ), - "mock-sandbox_session_start": StartArgs(state=state), - "mock-sandbox_session_stop": StopArgs(state=state), - "mock-sandbox_session_shutdown": StopArgs(state=state), - } - assert set(args_by_activity) == set(acts) - - for name, args in args_by_activity.items(): - # Shutdown is the one activity that does not resume on a cache miss, so - # it alone needs a cached session to reach the client. - cached = name == "mock-sandbox_session_shutdown" - provider._sessions = ( - {str(state.session_id): recording_client.session} if cached else {} - ) - recording_client.scopes.clear() - await acts[name](args) - assert recording_client.scopes == [frozenset({"A_RESOLVABLE_NAME"})], name - - -def _plugin_with_one_shot_names( - *sandbox_clients: SandboxClientProvider, -) -> OpenAIAgentsPlugin: - return OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - model_provider=TestModelProvider( - TestModel.returning_responses([ResponseBuilders.output_message("done")]) - ), - sandbox_clients=list(sandbox_clients), - resolvable_worker_env_vars=(name for name in ["A_RESOLVABLE_NAME"]), # type: ignore[arg-type] - ) - - -def _plugin_activity_map(plugin: OpenAIAgentsPlugin) -> dict[str, Any]: - build_activities = plugin.activities - assert callable(build_activities) - return { - act.__temporal_activity_definition.name: act # type: ignore[attr-defined, union-attr] - for act in build_activities([]) - } - - -def _hosted_resolvable_names( - acts: dict[str, Any], -) -> frozenset[str] | AllowAllWorkerEnvVars: - return acts["invoke_model_activity"].__self__._env_refs._allowed - - -async def test_a_one_shot_names_iterable_reaches_the_hosted_and_the_sandbox_activities(): - recording_client = _ScopeRecordingClient() - acts = _plugin_activity_map( - _plugin_with_one_shot_names(SandboxClientProvider("mock", recording_client)) - ) - - assert _hosted_resolvable_names(acts) == frozenset({"A_RESOLVABLE_NAME"}) - await acts["mock-sandbox_client_create"]( - CreateSessionArgs(snapshot_spec=None, manifest=Manifest(), client_options=None) - ) - assert recording_client.scopes == [frozenset({"A_RESOLVABLE_NAME"})] - - -async def test_every_sandbox_provider_on_a_plugin_gets_the_names(): - first = _ScopeRecordingClient() - second = _ScopeRecordingClient() - acts = _plugin_activity_map( - _plugin_with_one_shot_names( - SandboxClientProvider("first", first), - SandboxClientProvider("second", second), - ) - ) - - args = CreateSessionArgs( - snapshot_spec=None, manifest=Manifest(), client_options=None - ) - await acts["first-sandbox_client_create"](args) - await acts["second-sandbox_client_create"](args) - assert first.scopes == [frozenset({"A_RESOLVABLE_NAME"})] - assert second.scopes == [frozenset({"A_RESOLVABLE_NAME"})] - - -async def test_a_second_worker_built_from_one_plugin_gets_the_names(): - recording_client = _ScopeRecordingClient() - plugin = _plugin_with_one_shot_names( - SandboxClientProvider("mock", recording_client) - ) - _plugin_activity_map(plugin) - acts = _plugin_activity_map(plugin) - - assert _hosted_resolvable_names(acts) == frozenset({"A_RESOLVABLE_NAME"}) - await acts["mock-sandbox_client_create"]( - CreateSessionArgs(snapshot_spec=None, manifest=Manifest(), client_options=None) - ) - assert recording_client.scopes == [frozenset({"A_RESOLVABLE_NAME"})] - - -async def test_activities_resume_session_delegates( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, -): - """resume_session activity should delegate to the real client's resume().""" - acts = _activity_map(sandbox_activities) - state = _make_state() - args = ResumeSessionArgs(state=state) - result = await acts["mock-sandbox_client_resume"](args) - assert mock_client.resume_calls == 1 - assert result.state is not None - - -async def test_activities_exec_delegates( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, -): - """exec activity should delegate to the real session's exec().""" - acts = _activity_map(sandbox_activities) - # First create a session so the activities cache is populated - await acts["mock-sandbox_client_create"]( - CreateSessionArgs(snapshot_spec=None, manifest=Manifest(), client_options=None) - ) - state = mock_client.inner_session.state - - args = ExecArgs(state=state, command=["echo", "hello"], timeout=10.0, shell=True) - result = await acts["mock-sandbox_session_exec"](args) - assert result.stdout == b"ok\n" - assert result.stderr == b"" - assert result.exit_code == 0 - assert len(mock_client.inner_session.exec_calls) == 1 - - -async def test_activities_read_delegates( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, -): - """read activity should delegate to the real session's read().""" - acts = _activity_map(sandbox_activities) - await acts["mock-sandbox_client_create"]( - CreateSessionArgs(snapshot_spec=None, manifest=Manifest(), client_options=None) - ) - state = mock_client.inner_session.state - - args = ReadArgs(state=state, path="/tmp/test.txt") - result = await acts["mock-sandbox_session_read"](args) - assert result.data == b"file-content" - assert len(mock_client.inner_session.read_calls) == 1 - - -async def test_activities_write_delegates( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, -): - """write activity should delegate to the real session's write().""" - acts = _activity_map(sandbox_activities) - await acts["mock-sandbox_client_create"]( - CreateSessionArgs(snapshot_spec=None, manifest=Manifest(), client_options=None) - ) - state = mock_client.inner_session.state - - args = WriteArgs(state=state, path="/tmp/out.txt", data=b"written-data") - await acts["mock-sandbox_session_write"](args) - assert len(mock_client.inner_session.write_calls) == 1 - assert mock_client.inner_session.write_calls[0][1] == b"written-data" - - -async def test_activities_running_delegates( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, -): - """running activity should delegate to the real session's running().""" - acts = _activity_map(sandbox_activities) - await acts["mock-sandbox_client_create"]( - CreateSessionArgs(snapshot_spec=None, manifest=Manifest(), client_options=None) - ) - state = mock_client.inner_session.state - - args = RunningArgs(state=state) - result = await acts["mock-sandbox_session_running"](args) - assert result.is_running is True - assert mock_client.inner_session.running_calls == 1 - - -async def test_activities_client_delete_delegates( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, -): - """client_delete activity should delegate to the real client's delete().""" - acts = _activity_map(sandbox_activities) - await acts["mock-sandbox_client_create"]( - CreateSessionArgs(snapshot_spec=None, manifest=Manifest(), client_options=None) - ) - state = mock_client.inner_session.state - - args = StopArgs(state=state) - await acts["mock-sandbox_client_delete"](args) - - assert mock_client.delete_calls == 1 - - -async def test_activities_session_shutdown_clears_cache( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, -): - """session_shutdown activity should call session.shutdown() and evict from cache.""" - acts = _activity_map(sandbox_activities) - await acts["mock-sandbox_client_create"]( - CreateSessionArgs(snapshot_spec=None, manifest=Manifest(), client_options=None) - ) - state = mock_client.inner_session.state - session_key = str(state.session_id) - - # Session should be cached - assert session_key in sandbox_activities._sessions - - args = StopArgs(state=state) - await acts["mock-sandbox_session_shutdown"](args) - - assert mock_client.inner_session.shutdown_calls == 1 - # Session should be evicted from cache - assert session_key not in sandbox_activities._sessions - - -async def test_activities_session_shutdown_noop_for_unknown_session( - sandbox_activities: SandboxClientProvider, -): - """session_shutdown should be a no-op if the session isn't in the cache.""" - acts = _activity_map(sandbox_activities) - state = _make_state() - args = StopArgs(state=state) - # Should not raise - await acts["mock-sandbox_session_shutdown"](args) - - -async def test_activities_session_caching( - sandbox_activities: SandboxClientProvider, - mock_client: _MockSandboxClient, -): - """Multiple operations on the same session should reuse the cached session.""" - acts = _activity_map(sandbox_activities) - await acts["mock-sandbox_client_create"]( - CreateSessionArgs(snapshot_spec=None, manifest=Manifest(), client_options=None) - ) - state = mock_client.inner_session.state - - # Multiple exec calls should not trigger additional resume calls - await acts["mock-sandbox_session_exec"]( - ExecArgs(state=state, command=["cmd1"], shell=True) - ) - await acts["mock-sandbox_session_exec"]( - ExecArgs(state=state, command=["cmd2"], shell=True) - ) - assert mock_client.resume_calls == 0 - assert len(mock_client.inner_session.exec_calls) == 2 - - -async def test_activities_all_returns_all_activity_methods( - sandbox_activities: SandboxClientProvider, -): - """all() should return all 14 activity callables with prefixed names.""" - activities = sandbox_activities._get_activities(()) - assert len(activities) == 14 - # Verify they are all activity-decorated callables with prefixed names - activity_names = set() - for act in activities: - assert hasattr(act, "__temporal_activity_definition") - activity_names.add(act.__temporal_activity_definition.name) # type: ignore[union-attr] - expected = { - "mock-sandbox_client_create", - "mock-sandbox_client_resume", - "mock-sandbox_client_delete", - "mock-sandbox_session_exec", - "mock-sandbox_session_read", - "mock-sandbox_session_write", - "mock-sandbox_session_running", - "mock-sandbox_session_persist_workspace", - "mock-sandbox_session_hydrate_workspace", - "mock-sandbox_session_pty_exec_start", - "mock-sandbox_session_pty_write_stdin", - "mock-sandbox_session_start", - "mock-sandbox_session_stop", - "mock-sandbox_session_shutdown", - } - assert activity_names == expected - - -async def test_multiple_providers_register_distinct_activities(): - """Multiple SandboxClientProviders should produce distinct prefixed activity sets.""" - client1 = _MockSandboxClient() - client2 = _MockSandboxClient() - provider1 = SandboxClientProvider("daytona", client1) - provider2 = SandboxClientProvider("local", client2) - - activities1 = provider1._get_activities(()) - activities2 = provider2._get_activities(()) - - names1 = {a.__temporal_activity_definition.name for a in activities1} # type: ignore - names2 = {a.__temporal_activity_definition.name for a in activities2} # type: ignore - - # No overlap - assert names1.isdisjoint(names2) - # Both have 14 activities - assert len(names1) == 14 - assert len(names2) == 14 - # Verify prefixes - assert all( - n.startswith("daytona-sandbox_client_") - or n.startswith("daytona-sandbox_session_") - for n in names1 - ) - assert all( - n.startswith("local-sandbox_client_") or n.startswith("local-sandbox_session_") - for n in names2 - ) - - -# ── SandboxError retryable mapping tests ── - - -class _ExecRaisingSession(_MockSandboxSession): - """Mock session whose exec() raises a chosen SandboxError.""" - - def __init__(self, error: SandboxError) -> None: - super().__init__() - self._error = error - - async def _exec_internal( - self, - *command: str | Path, # type: ignore[reportUnusedParameter] - timeout: float | None = None, # type: ignore[reportUnusedParameter] - ) -> ExecResult: - raise self._error - - -async def _exec_with_error(error: SandboxError) -> None: - provider = SandboxClientProvider( - "mock", _MockSandboxClient(_ExecRaisingSession(error)) - ) - acts = _activity_map(provider) - state = ( - await acts["mock-sandbox_client_create"]( - CreateSessionArgs( - snapshot_spec=None, manifest=Manifest(), client_options=None - ) - ) - ).state - await acts["mock-sandbox_session_exec"]( - ExecArgs(state=state, command=["boom"], shell=True) - ) - - -async def test_exec_terminal_error_becomes_non_retryable_application_error(): - """retryable is False should map to a non-retryable ApplicationError.""" - with pytest.raises(ApplicationError) as exc_info: - await _exec_with_error(ExecTransportError(command=["boom"], retryable=False)) - assert exc_info.value.non_retryable is True - assert exc_info.value.type == "exec_transport_error" - - -async def test_exec_transient_error_propagates_unchanged(): - """retryable is True should let the original SandboxError propagate.""" - with pytest.raises(ExecTransportError): - await _exec_with_error(ExecTransportError(command=["boom"], retryable=True)) - - -async def test_exec_unclassified_error_propagates_unchanged(): - """retryable is None should let the original SandboxError propagate (not converted).""" - with pytest.raises(ExecTransportError): - await _exec_with_error(ExecTransportError(command=["boom"], retryable=None)) - - -class _ShutdownRaisingSession(_MockSandboxSession): - """Mock session whose shutdown() raises a chosen SandboxError.""" - - def __init__(self, error: SandboxError) -> None: - super().__init__() - self._error = error - - async def shutdown(self) -> None: - raise self._error - - -async def _create_shutdown_raising( - error: SandboxError, -) -> tuple[dict[str, Any], SandboxClientProvider, StopArgs, str]: - provider = SandboxClientProvider( - "mock", _MockSandboxClient(_ShutdownRaisingSession(error)) - ) - acts = _activity_map(provider) - state = ( - await acts["mock-sandbox_client_create"]( - CreateSessionArgs( - snapshot_spec=None, manifest=Manifest(), client_options=None - ) - ) - ).state - key = str(state.session_id) - assert key in provider._sessions - return acts, provider, StopArgs(state=state), key - - -async def test_shutdown_terminal_error_evicts_session_and_raises(): - """A terminal shutdown error maps to a non-retryable ApplicationError and - evicts the dead session from the cache.""" - acts, provider, args, key = await _create_shutdown_raising( - ExecTransportError(command=["shutdown"], retryable=False) - ) - - with pytest.raises(ApplicationError) as exc_info: - await acts["mock-sandbox_session_shutdown"](args) - assert exc_info.value.non_retryable is True - assert key not in provider._sessions - - -async def test_shutdown_retryable_error_keeps_session_cached(): - """A retryable shutdown error propagates unchanged and leaves the session - cached so the activity's retry can still shut it down.""" - acts, provider, args, key = await _create_shutdown_raising( - ExecTransportError(command=["shutdown"], retryable=True) - ) - - with pytest.raises(ExecTransportError): - await acts["mock-sandbox_session_shutdown"](args) - assert key in provider._sessions - - -class _RunningRaisingSession(_MockSandboxSession): - """Mock session whose running() raises a chosen SandboxError.""" - - def __init__(self, error: SandboxError) -> None: - super().__init__() - self._error = error - - async def running(self) -> bool: - raise self._error - - -async def test_running_terminal_error_becomes_non_retryable_application_error(): - """A terminal SandboxError from a non-exec activity also maps to a - non-retryable ApplicationError, with type set to its error_code.""" - error = WorkspaceArchiveReadError(path=Path("/workspace"), retryable=False) - provider = SandboxClientProvider( - "mock", _MockSandboxClient(_RunningRaisingSession(error)) - ) - acts = _activity_map(provider) - state = ( - await acts["mock-sandbox_client_create"]( - CreateSessionArgs( - snapshot_spec=None, manifest=Manifest(), client_options=None - ) - ) - ).state - - with pytest.raises(ApplicationError) as exc_info: - await acts["mock-sandbox_session_running"](RunningArgs(state=state)) - assert exc_info.value.non_retryable is True - assert exc_info.value.type == "workspace_archive_read_error" - - -# ── End-to-end test: Runner + SandboxAgent through Temporal activities ── - - -class _TestSandboxCapability(Capability): - """Minimal capability exposing exec, read, and write via FunctionTools.""" - - def __init__(self) -> None: - super().__init__(type="test_sandbox") - self._session: BaseSandboxSession | None = None - - def bind(self, session: BaseSandboxSession) -> None: - self._session = session - - def tools(self) -> list[Tool]: - session = self._session - - async def _run_cmd(ctx: Any, args: str) -> str: # type: ignore[reportUnusedParameter] - import json - - cmd = json.loads(args)["cmd"] - result = await session.exec(cmd, shell=True) # type: ignore[union-attr] - return result.stdout.decode() - - async def _read_file(ctx: Any, args: str) -> str: # type: ignore[reportUnusedParameter] - import json - - path = json.loads(args)["path"] - handle = await session.read(Path(path)) # type: ignore[union-attr] - return handle.read().decode() - - async def _write_file(ctx: Any, args: str) -> str: # type: ignore[reportUnusedParameter] - import json - - parsed = json.loads(args) - await session.write( # type: ignore[union-attr] - Path(parsed["path"]), io.BytesIO(parsed["data"].encode()) - ) - return "ok" - - return [ - FunctionTool( - name="run_command", - description="Run a shell command", - params_json_schema={ - "type": "object", - "properties": {"cmd": {"type": "string"}}, - "required": ["cmd"], - }, - on_invoke_tool=_run_cmd, - ), - FunctionTool( - name="read_file", - description="Read a file", - params_json_schema={ - "type": "object", - "properties": {"path": {"type": "string"}}, - "required": ["path"], - }, - on_invoke_tool=_read_file, - ), - FunctionTool( - name="write_file", - description="Write a file", - params_json_schema={ - "type": "object", - "properties": { - "path": {"type": "string"}, - "data": {"type": "string"}, - }, - "required": ["path", "data"], - }, - on_invoke_tool=_write_file, - ), - ] - - -class _TestSandboxClientOptions(BaseSandboxClientOptions): - type: str = "test" # type: ignore[reportIncompatibleVariableOverride] - - -@workflow.defn -class SandboxE2EWorkflow: - @workflow.run - async def run(self) -> str: - agent = SandboxAgent[None]( - name="sandbox-e2e", capabilities=[_TestSandboxCapability()] - ) - result = await Runner.run( - starting_agent=agent, - input="run a command", - run_config=RunConfig( - sandbox=SandboxRunConfig( - client=temporal_sandbox_client("mock"), - options=_TestSandboxClientOptions(), - ), - ), - ) - return result.final_output - - -_HOST_PATH = "/host/private-dir" -_HOST_PATH_GRANT_MANIFEST = Manifest( - extra_path_grants=( - SandboxPathGrant(path="/workspace/shared", host_path=_HOST_PATH), - ) -) -# A clean grant first, so a check that only inspects index 0 fails this. -_TRAILING_GRANT_MANIFEST = Manifest( - extra_path_grants=( - SandboxPathGrant(path="/workspace/clean"), - SandboxPathGrant(path="/workspace/shared", host_path=_HOST_PATH), - ) -) -_TWO_BOUND_GRANTS_MANIFEST = Manifest( - extra_path_grants=( - SandboxPathGrant(path="/workspace/shared", host_path=_HOST_PATH), - SandboxPathGrant(path="/workspace/other", host_path="/host/second-dir"), - ) -) - - -class _GrantInjectingCapability(Capability): - def __init__(self) -> None: - super().__init__(type="grant_injecting") - - def process_manifest(self, manifest: Manifest) -> Manifest: - return manifest.model_copy( - update={ - "extra_path_grants": ( - *manifest.extra_path_grants, - SandboxPathGrant(path="/workspace/injected", host_path=_HOST_PATH), - ) - } - ) - - -@workflow.defn -class HostPathGrantWorkflow: - @workflow.run - async def run(self, route: str) -> str: - agent = SandboxAgent[None](name="sandbox-grant") - client = temporal_sandbox_client("mock") - options = _TestSandboxClientOptions() - expected = "/workspace/shared" - - if route == "run_config_manifest": - sandbox = SandboxRunConfig( - client=client, options=options, manifest=_HOST_PATH_GRANT_MANIFEST - ) - elif route == "default_manifest": - agent = SandboxAgent[None]( - name="sandbox-grant", default_manifest=_HOST_PATH_GRANT_MANIFEST - ) - sandbox = SandboxRunConfig(client=client, options=options) - elif route == "session_state": - sandbox = SandboxRunConfig( - client=client, - options=options, - session_state=TestSessionState( - manifest=_HOST_PATH_GRANT_MANIFEST, - snapshot=NoopSnapshot(id=str(workflow.uuid4())), - ), - ) - elif route == "capability": - # The manifest must be present but empty: upstream skips capabilities - # when there is no manifest at all. - agent = SandboxAgent[None]( - name="sandbox-grant", capabilities=[_GrantInjectingCapability()] - ) - sandbox = SandboxRunConfig( - client=client, options=options, manifest=Manifest() - ) - expected = "/workspace/injected" - elif route == "trailing_grant": - sandbox = SandboxRunConfig( - client=client, options=options, manifest=_TRAILING_GRANT_MANIFEST - ) - elif route == "two_bound_grants": - sandbox = SandboxRunConfig( - client=client, options=options, manifest=_TWO_BOUND_GRANTS_MANIFEST - ) - expected = "/workspace/shared, /workspace/other" - else: - raise AssertionError(f"unknown route {route}") - - try: - await Runner.run( - starting_agent=agent, - input="hello", - run_config=RunConfig(sandbox=sandbox), - ) - except AgentsWorkflowError as e: - assert expected in str(e), str(e) - # The guard must not name the host path: this text reaches history. - assert _HOST_PATH not in str(e), str(e) - return "REJECTED" - return "NOT REJECTED" - - -@pytest.mark.parametrize( - "route", - [ - "run_config_manifest", - "default_manifest", - "session_state", - "capability", - "trailing_grant", - "two_bound_grants", - ], -) -async def test_host_path_grants_are_rejected_per_manifest_source( - client: Client, route: str -): - mock_sandbox_client = _MockSandboxClient(_MockSandboxSession()) - plugin = OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - model_provider=TestModelProvider( - TestModel.returning_responses([ResponseBuilders.output_message("done")]) - ), - sandbox_clients=[SandboxClientProvider("mock", mock_sandbox_client)], - ) - new_config = client.config() - new_config["plugins"] = [plugin] - test_client = Client(**new_config) - - async with new_worker( - test_client, - HostPathGrantWorkflow, - workflow_failure_exception_types=[Exception], - ) as worker: - result = await test_client.execute_workflow( - HostPathGrantWorkflow.run, - route, - id=f"host-path-grant-{route}-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - - assert result == "REJECTED" - assert mock_sandbox_client.create_calls == 0 - assert mock_sandbox_client.resume_calls == 0 - - -@workflow.defn -class UncaughtHostPathGrantWorkflow: - @workflow.run - async def run(self) -> str: - await Runner.run( - starting_agent=SandboxAgent[None](name="sandbox-grant"), - input="hello", - run_config=RunConfig( - sandbox=SandboxRunConfig( - client=temporal_sandbox_client("mock"), - options=_TestSandboxClientOptions(), - manifest=_HOST_PATH_GRANT_MANIFEST, - ), - ), - ) - return "NOT REJECTED" - - -async def test_host_path_grant_fails_the_workflow_on_a_production_like_worker( - client: Client, -): - """Given no test-only ``workflow_failure_exception_types``, so only the plugin's own applies.""" - mock_sandbox_client = _MockSandboxClient(_MockSandboxSession()) - plugin = OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - model_provider=TestModelProvider( - TestModel.returning_responses([ResponseBuilders.output_message("done")]) - ), - sandbox_clients=[SandboxClientProvider("mock", mock_sandbox_client)], - ) - new_config = client.config() - new_config["plugins"] = [plugin] - test_client = Client(**new_config) - - async with new_worker(test_client, UncaughtHostPathGrantWorkflow) as worker: - with pytest.raises(WorkflowFailureError) as exc_info: - await test_client.execute_workflow( - UncaughtHostPathGrantWorkflow.run, - id=f"host-path-uncaught-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - - cause = exc_info.value.cause - assert isinstance(cause, ApplicationError), cause - assert cause.type == "AgentsWorkflowError", cause.type - assert "/workspace/shared" in str(cause) - assert _HOST_PATH not in str(cause) - assert mock_sandbox_client.create_calls == 0 - - -_PLUGIN_ENV_NAME = "WORKER_ENV_VALUE_THROUGH_THE_PLUGIN" - - -@workflow.defn -class SandboxWorkerEnvValueWorkflow: - @workflow.run - async def run(self) -> str: - await Runner.run( - starting_agent=SandboxAgent[None](name="sandbox-env"), - input="hello", - run_config=RunConfig( - sandbox=SandboxRunConfig( - client=temporal_sandbox_client("mock"), - options=_TestSandboxClientOptions(), - manifest=Manifest( - environment=Environment( - value={ - "API_KEY": TemporalWorkerEnvValue(name=_PLUGIN_ENV_NAME) - } - ) - ), - ), - ), - ) - return "RAN" - - -@pytest.mark.parametrize( - ("resolvable", "resolves"), - [([_PLUGIN_ENV_NAME], True), (["SOMETHING_ELSE"], False)], -) -async def test_a_sandbox_activity_resolves_only_the_variables_its_plugin_names( - client: Client, - monkeypatch: pytest.MonkeyPatch, - resolvable: list[str], - resolves: bool, -): - secret = "sk-through-the-plugin" - monkeypatch.setenv(_PLUGIN_ENV_NAME, secret) - mock_sandbox_client = _MockSandboxClient(_MockSandboxSession()) - plugin = OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - model_provider=TestModelProvider( - TestModel.returning_responses([ResponseBuilders.output_message("done")]) - ), - sandbox_clients=[SandboxClientProvider("mock", mock_sandbox_client)], - resolvable_worker_env_vars=resolvable, - ) - new_config = client.config() - new_config["plugins"] = [plugin] - test_client = Client(**new_config) - - async def execute(worker: Any) -> str: - return await test_client.execute_workflow( - SandboxWorkerEnvValueWorkflow.run, - id=f"sandbox-env-value-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - - async with new_worker(test_client, SandboxWorkerEnvValueWorkflow) as worker: - if resolves: - assert await execute(worker) == "RAN" - assert mock_sandbox_client.resolved_envs == {"API_KEY": secret} - else: - with pytest.raises(WorkflowFailureError) as exc_info: - await execute(worker) - activity_error = exc_info.value.cause - assert isinstance(activity_error, ActivityError), activity_error - cause = activity_error.cause - assert isinstance(cause, ApplicationError), cause - assert cause.type == "TemporalWorkerEnvValueUnresolved" - assert _PLUGIN_ENV_NAME in str(cause) - assert secret not in str(cause) - - -@workflow.defn -class ResolveOnWorkflowThreadWorkflow: - @workflow.run - async def run(self) -> str: - try: - await TemporalWorkerEnvValue(name="WORKER_THREAD_PROBE_NAME").resolve() - except ApplicationError as e: - return e.message - return "NO RAISE" - - -async def test_worker_env_value_resolve_raises_inside_a_real_workflow(client: Client): - """``in_workflow()`` is genuinely True here, unlike the monkeypatched unit test.""" - plugin = OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - model_provider=TestModelProvider( - TestModel.returning_responses([ResponseBuilders.output_message("done")]) - ), - ) - new_config = client.config() - new_config["plugins"] = [plugin] - test_client = Client(**new_config) - - async with new_worker( - test_client, - ResolveOnWorkflowThreadWorkflow, - workflow_failure_exception_types=[Exception], - ) as worker: - result = await test_client.execute_workflow( - ResolveOnWorkflowThreadWorkflow.run, - id=f"resolve-in-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - - assert "must run in an activity" in result - - -@workflow.defn -class LiveSandboxSessionWorkflow: - @workflow.run - async def run(self) -> str: - try: - await Runner.run( - starting_agent=SandboxAgent[None](name="sandbox-live"), - input="hello", - run_config=RunConfig( - sandbox=SandboxRunConfig( - # Rejected on presence, so the value is never used. - session=object(), # type: ignore[arg-type] - ), - ), - ) - except AgentsWorkflowError as e: - assert "run_config.sandbox.session" in str(e), str(e) - return "REJECTED" - return "NOT REJECTED" - - -async def test_live_sandbox_session_is_rejected(client: Client): - mock_sandbox_client = _MockSandboxClient(_MockSandboxSession()) - plugin = OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - model_provider=TestModelProvider( - TestModel.returning_responses([ResponseBuilders.output_message("done")]) - ), - sandbox_clients=[SandboxClientProvider("mock", mock_sandbox_client)], - ) - new_config = client.config() - new_config["plugins"] = [plugin] - test_client = Client(**new_config) - - async with new_worker( - test_client, - LiveSandboxSessionWorkflow, - workflow_failure_exception_types=[Exception], - ) as worker: - result = await test_client.execute_workflow( - LiveSandboxSessionWorkflow.run, - id=f"live-session-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=15), - ) - - assert result == "REJECTED" - assert mock_sandbox_client.create_calls == 0 - - -async def test_sandbox_e2e_runner(client: Client): - """End-to-end: Runner.run() with SandboxAgent exercises the full sandbox - lifecycle (create, start, stop, shutdown, delete) through Temporal activities.""" - mock_session = _MockSandboxSession() - mock_sandbox_client = _MockSandboxClient(mock_session) - - mock_model = TestModel.returning_responses( - [ - ResponseBuilders.tool_call('{"cmd": "echo hello"}', "run_command"), - ResponseBuilders.tool_call('{"path": "/tmp/test.txt"}', "read_file"), - ResponseBuilders.tool_call( - '{"path": "/tmp/out.txt", "data": "hello"}', "write_file" - ), - ResponseBuilders.output_message("Done."), - ] - ) - - plugin = OpenAIAgentsPlugin( - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - ), - model_provider=TestModelProvider(mock_model), - sandbox_clients=[SandboxClientProvider("mock", mock_sandbox_client)], - ) - - new_config = client.config() - new_config["plugins"] = [plugin] - test_client = Client(**new_config) - - async with new_worker( - test_client, - SandboxE2EWorkflow, - workflow_failure_exception_types=[Exception], - ) as worker: - result = await test_client.execute_workflow( - SandboxE2EWorkflow.run, - id=f"sandbox-e2e-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=10), - ) - - assert result == "Done." - # Full sandbox lifecycle exercised through Temporal activities - assert mock_sandbox_client.create_calls == 1, "client.create() not called" - assert mock_session.start_calls == 1, "session.start() not called" - assert len(mock_session.exec_calls) >= 1, "session.exec() not called" - assert len(mock_session.read_calls) >= 1, "session.read() not called" - assert len(mock_session.write_calls) >= 1, "session.write() not called" - assert mock_session.stop_calls >= 1, "session.stop() not called" - assert mock_session.shutdown_calls >= 1, "session.shutdown() not called" - assert mock_sandbox_client.delete_calls == 1, "client.delete() not called" - - -# ── JsonSafeBytes lossless serialization tests ── - -# Payloads that exercise edge cases for bytes → JSON → bytes roundtrip. -_BYTE_PAYLOADS = [ - pytest.param(b"", id="empty"), - pytest.param(b"hello world", id="ascii"), - pytest.param(b"\xc3\xa9\xc3\xa0", id="valid-utf8"), # éà - pytest.param(bytes(range(256)), id="all-byte-values"), - pytest.param(b"\xff\xfe\x80\x90\x00\x01", id="non-utf8-binary"), - pytest.param(b"ok\nWarning: \xff\xfe binary \x80\x90\x00\x01", id="mixed"), - pytest.param(b"\x00\x00\x00", id="null-bytes"), -] - - -def _roundtrip(model_cls: Any, **kwargs: Any) -> Any: - """Serialize a model to JSON via pydantic_core and deserialize back.""" - json_bytes = to_json(model_cls(**kwargs)) - return TypeAdapter(model_cls).validate_json(json_bytes) - - -@pytest.mark.parametrize("payload", _BYTE_PAYLOADS) -def test_exec_result_bytes_roundtrip(payload: bytes): - """ExecResult.stdout/stderr must survive a JSON roundtrip unchanged.""" - restored = _roundtrip(ExecResultModel, stdout=payload, stderr=payload, exit_code=1) - assert restored.stdout == payload - assert restored.stderr == payload - assert restored.exit_code == 1 - - -@pytest.mark.parametrize("payload", _BYTE_PAYLOADS) -def test_pty_exec_update_result_bytes_roundtrip(payload: bytes): - """PtyExecUpdateResult.output must survive a JSON roundtrip unchanged.""" - restored = _roundtrip( - PtyExecUpdateResult, - process_id=1, - output=payload, - exit_code=0, - original_token_count=None, - ) - assert restored.output == payload - - -@pytest.mark.parametrize("payload", _BYTE_PAYLOADS) -def test_read_result_bytes_roundtrip(payload: bytes): - """ReadResult.data must survive a JSON roundtrip unchanged.""" - restored = _roundtrip(ReadResult, data=payload) - assert restored.data == payload - - -@pytest.mark.parametrize("payload", _BYTE_PAYLOADS) -def test_persist_workspace_result_bytes_roundtrip(payload: bytes): - """PersistWorkspaceResult.data must survive a JSON roundtrip unchanged.""" - restored = _roundtrip(PersistWorkspaceResult, data=payload) - assert restored.data == payload - - -@pytest.mark.parametrize("payload", _BYTE_PAYLOADS) -def test_write_args_bytes_roundtrip(payload: bytes): - """WriteArgs.data must survive a JSON roundtrip unchanged (workflow → activity).""" - restored = _roundtrip(WriteArgs, state=_make_state(), path="/tmp/f", data=payload) - assert restored.data == payload - - -@pytest.mark.parametrize("payload", _BYTE_PAYLOADS) -def test_hydrate_workspace_args_bytes_roundtrip(payload: bytes): - """HydrateWorkspaceArgs.data must survive a JSON roundtrip unchanged.""" - restored = _roundtrip(HydrateWorkspaceArgs, state=_make_state(), data=payload) - assert restored.data == payload diff --git a/tests/contrib/openai_agents/test_openai_sandbox_worker_env_value.py b/tests/contrib/openai_agents/test_openai_sandbox_worker_env_value.py deleted file mode 100644 index bfeffef0e..000000000 --- a/tests/contrib/openai_agents/test_openai_sandbox_worker_env_value.py +++ /dev/null @@ -1,295 +0,0 @@ -from __future__ import annotations - -import uuid -from typing import Any, Literal - -import pytest -from agents.sandbox import Manifest -from agents.sandbox.manifest import EnvEntry, Environment, EnvValue, StrEnvValue -from agents.sandbox.session.sandbox_session_state import SandboxSessionState -from agents.sandbox.snapshot import NoopSnapshot -from agents.sandbox.workspace_paths import SandboxPathGrant -from pydantic import BaseModel, TypeAdapter -from pydantic_core import SchemaSerializer -from pydantic_core.core_schema import any_schema - -from temporalio.contrib.openai_agents import ( - AllowAllWorkerEnvVars, - OpenAIPayloadConverter, - TemporalWorkerEnvValue, -) -from temporalio.contrib.openai_agents.sandbox._temporal_activity_models import ExecArgs -from temporalio.contrib.openai_agents.sandbox._temporal_worker_env_value import ( - _resolvable_worker_env_vars_scope, -) -from temporalio.exceptions import ApplicationError - -SECRET = "sk-not-in-history-1234567890" -NAME = "TEST_WORKER_ENV_VALUE_NAME" - - -class _EnvValueSessionState(SandboxSessionState): - type: Literal["env_value_test"] = "env_value_test" # type: ignore[assignment] - - -def _payload_bytes(value: BaseModel) -> bytes: - payload = OpenAIPayloadConverter().to_payload(value) - assert payload is not None - return payload.data - - -def _round_trip(value: BaseModel, type_hint: type) -> Any: - converter = OpenAIPayloadConverter() - payload = converter.to_payload(value) - assert payload is not None - return converter.from_payload(payload, type_hint) - - -def _manifest(env: dict[str, Any]) -> Manifest: - return Manifest(environment=Environment(value=env)) - - -def _state(manifest: Manifest) -> _EnvValueSessionState: - return _EnvValueSessionState( - manifest=manifest, snapshot=NoopSnapshot(id=str(uuid.uuid4())) - ) - - -def test_literal_env_value_is_written_into_the_payload() -> None: - raw = _payload_bytes(_manifest({NAME: SECRET})) - assert SECRET.encode() in raw - - -def test_worker_env_value_round_trips_without_the_value() -> None: - raw = _payload_bytes(_manifest({NAME: TemporalWorkerEnvValue(name=NAME)})) - assert SECRET.encode() not in raw - assert b"temporal.worker_env_value" in raw - - back = _round_trip(_manifest({NAME: TemporalWorkerEnvValue(name=NAME)}), Manifest) - value = back.environment.value[NAME] - assert isinstance(value, TemporalWorkerEnvValue) - assert value.name == NAME - - -def test_worker_env_value_round_trips_inside_an_env_entry() -> None: - manifest = _manifest({NAME: EnvEntry(value=TemporalWorkerEnvValue(name=NAME))}) - raw = _payload_bytes(manifest) - assert SECRET.encode() not in raw - assert b"temporal.worker_env_value" in raw - - back = _round_trip(manifest, Manifest) - entry = back.environment.value[NAME] - assert isinstance(entry, EnvEntry) - assert isinstance(entry.value, TemporalWorkerEnvValue) - assert entry.value.name == NAME - - -def test_worker_env_value_survives_the_durable_activity_path() -> None: - args = ExecArgs( - state=_state(_manifest({NAME: TemporalWorkerEnvValue(name=NAME)})), - command=["ls"], - ) - raw = _payload_bytes(args) - assert SECRET.encode() not in raw - - back = _round_trip(args, ExecArgs) - value = back.state.manifest.environment.value[NAME] - assert isinstance(value, TemporalWorkerEnvValue) - assert value.name == NAME - - -def test_literal_env_values_are_untouched_alongside_a_worker_env_value() -> None: - manifest = _manifest( - {NAME: TemporalWorkerEnvValue(name=NAME), "REGION": "us-west-2"} - ) - back = _round_trip(manifest, Manifest) - - assert isinstance(back.environment.value[NAME], TemporalWorkerEnvValue) - assert back.environment.value["REGION"] == "us-west-2" - - normalized = back.environment.normalized() - assert isinstance(normalized["REGION"].value, StrEnvValue) - assert normalized["REGION"].value.value == "us-west-2" - - -def test_discriminator_survives_exclude_unset() -> None: - """``type`` is a class default, so ``exclude_unset=True`` must not drop it.""" - serializer = SchemaSerializer(any_schema()) - raw = serializer.to_json( - _manifest({NAME: TemporalWorkerEnvValue(name=NAME)}), exclude_unset=True - ) - assert b"temporal.worker_env_value" in raw - - back = TypeAdapter(Manifest).validate_json(raw) - assert isinstance(back.environment.value[NAME], TemporalWorkerEnvValue) - - -def test_a_host_path_grant_would_reach_the_payload_unprotected() -> None: - """Why host-path grants are refused: nothing keeps the host path out of history.""" - manifest = Manifest( - extra_path_grants=( - SandboxPathGrant(path="/workspace/shared", host_path="/host/private-dir"), - ) - ) - assert b"/host/private-dir" in _payload_bytes(manifest) - assert b"/host/private-dir" in _payload_bytes(_state(manifest)) - - -def test_worker_env_value_tag_is_namespaced() -> None: - """Upstream raises on a duplicate tag, so the namespace keeps it registrable.""" - tag = TemporalWorkerEnvValue(name=NAME).type - assert tag.startswith("temporal.") - assert EnvValue._subclass_registry[tag] is TemporalWorkerEnvValue - - -async def test_resolve_reads_the_worker_process_environment( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv(NAME, SECRET) - with _resolvable_worker_env_vars_scope([NAME]): - assert await TemporalWorkerEnvValue(name=NAME).resolve() == SECRET - - -async def test_resolve_raises_naming_the_variable_when_unset( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.delenv(NAME, raising=False) - with pytest.raises(ApplicationError) as exc_info: - with _resolvable_worker_env_vars_scope([NAME]): - await TemporalWorkerEnvValue(name=NAME).resolve() - - assert NAME in str(exc_info.value) - # An allowed-but-unset variable must not read as a denial. - assert "resolvable_worker_env_vars" not in str(exc_info.value) - assert exc_info.value.type == "TemporalWorkerEnvValueUnresolved" - assert exc_info.value.non_retryable - - -async def test_resolve_raises_when_the_variable_is_set_but_empty( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv(NAME, "") - with pytest.raises(ApplicationError) as exc_info: - with _resolvable_worker_env_vars_scope([NAME]): - await TemporalWorkerEnvValue(name=NAME).resolve() - - assert NAME in str(exc_info.value) - assert exc_info.value.type == "TemporalWorkerEnvValueUnresolved" - assert exc_info.value.non_retryable - - -async def test_resolve_refuses_to_run_on_the_workflow_thread( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv(NAME, SECRET) - monkeypatch.setattr("temporalio.workflow.in_workflow", lambda: True) - with pytest.raises(ApplicationError) as exc_info: - with _resolvable_worker_env_vars_scope([NAME]): - await TemporalWorkerEnvValue(name=NAME).resolve() - - assert exc_info.value.non_retryable - assert SECRET not in str(exc_info.value) - - -async def test_resolve_refuses_a_name_the_worker_does_not_list( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv(NAME, SECRET) - with pytest.raises(ApplicationError) as exc_info: - with _resolvable_worker_env_vars_scope(["SOMETHING_ELSE"]): - await TemporalWorkerEnvValue(name=NAME).resolve() - - assert NAME in str(exc_info.value) - assert "resolvable_worker_env_vars" in str(exc_info.value) - assert SECRET not in str(exc_info.value) - assert exc_info.value.type == "TemporalWorkerEnvValueUnresolved" - assert exc_info.value.non_retryable - - -async def test_resolve_refuses_outside_a_sandbox_activity( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv(NAME, SECRET) - with pytest.raises(ApplicationError) as exc_info: - await TemporalWorkerEnvValue(name=NAME).resolve() - - assert "resolvable_worker_env_vars" in str(exc_info.value) - - -async def test_allow_all_makes_an_unlisted_name_resolvable( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv("A_NAME_LISTED_NOWHERE", SECRET) - value = TemporalWorkerEnvValue(name="A_NAME_LISTED_NOWHERE") - - with _resolvable_worker_env_vars_scope(AllowAllWorkerEnvVars()): - assert await value.resolve() == SECRET - - -async def test_a_literal_star_in_the_resolvable_names_matches_no_name( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv("A_NAME_LISTED_NOWHERE", SECRET) - value = TemporalWorkerEnvValue(name="A_NAME_LISTED_NOWHERE") - - with pytest.raises(ApplicationError): - with _resolvable_worker_env_vars_scope(["*"]): - await value.resolve() - - -async def test_a_glob_in_the_resolvable_names_matches_no_name( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv(NAME, SECRET) - with pytest.raises(ApplicationError) as exc_info: - with _resolvable_worker_env_vars_scope(["TEST_WORKER_ENV_VALUE_*"]): - await TemporalWorkerEnvValue(name=NAME).resolve() - - assert "resolvable_worker_env_vars" in str(exc_info.value) - - -async def test_each_env_value_resolves_its_own_variable_under_its_own_name( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv("WORKER_PRIMARY", "primary-secret") - monkeypatch.setenv("WORKER_SECONDARY", "secondary-secret") - manifest = _manifest( - { - "REGION": "us-west-2", - "SANDBOX_PRIMARY": TemporalWorkerEnvValue(name="WORKER_PRIMARY"), - "LOG_LEVEL": "debug", - "SANDBOX_SECONDARY": TemporalWorkerEnvValue(name="WORKER_SECONDARY"), - } - ) - - with _resolvable_worker_env_vars_scope(["WORKER_PRIMARY", "WORKER_SECONDARY"]): - assert await manifest.environment.resolve() == { - "REGION": "us-west-2", - "SANDBOX_PRIMARY": "primary-secret", - "LOG_LEVEL": "debug", - "SANDBOX_SECONDARY": "secondary-secret", - } - - raw = _payload_bytes(manifest) - for secret in (b"primary-secret", b"secondary-secret"): - assert secret not in raw - for name in (b"WORKER_PRIMARY", b"WORKER_SECONDARY"): - assert name in raw - - -async def test_environment_resolve_leaves_the_manifest_unresolved( - monkeypatch: pytest.MonkeyPatch, -) -> None: - monkeypatch.setenv(NAME, SECRET) - manifest = _manifest( - {NAME: TemporalWorkerEnvValue(name=NAME), "REGION": "us-west-2"} - ) - - with _resolvable_worker_env_vars_scope([NAME]): - assert await manifest.environment.resolve() == { - NAME: SECRET, - "REGION": "us-west-2", - } - - assert isinstance(manifest.environment.value[NAME], TemporalWorkerEnvValue) - assert SECRET.encode() not in _payload_bytes(manifest) diff --git a/tests/contrib/openai_agents/test_openai_streaming.py b/tests/contrib/openai_agents/test_openai_streaming.py deleted file mode 100644 index ab711cd86..000000000 --- a/tests/contrib/openai_agents/test_openai_streaming.py +++ /dev/null @@ -1,350 +0,0 @@ -"""Integration tests for OpenAI Agents streaming support. - -Streaming is opt-in via ``Runner.run_streamed``. Events flow back to the -workflow through ``RunResultStreaming.stream_events()`` (in batch after -each model activity completes) and to external consumers in real time -via the configured stream topic. -""" - -import asyncio -import logging -import uuid -from collections.abc import AsyncIterator -from datetime import timedelta -from typing import Any - -import pytest -from agents import ( - Agent, - AgentOutputSchemaBase, - Handoff, - Model, - ModelResponse, - ModelSettings, - ModelTracing, - Runner, - Tool, - TResponseInputItem, - Usage, -) -from agents.items import TResponseStreamEvent -from openai.types.responses import ( - Response, - ResponseCompletedEvent, - ResponseOutputMessage, - ResponseOutputText, - ResponseTextConfig, - ResponseTextDeltaEvent, - ResponseUsage, -) -from openai.types.responses.response_usage import ( - InputTokensDetails, - OutputTokensDetails, -) -from openai.types.shared.response_format_text import ResponseFormatText - -from temporalio import workflow -from temporalio.client import Client, WorkflowFailureError -from temporalio.contrib.openai_agents import ModelActivityParameters -from temporalio.contrib.openai_agents.testing import AgentEnvironment -from temporalio.contrib.workflow_streams import WorkflowStream, WorkflowStreamClient -from tests.helpers import new_worker - -logger = logging.getLogger(__name__) - - -class StreamingTestModel(Model): - """Test model that yields text deltas followed by a ResponseCompletedEvent.""" - - __test__ = False - - async def get_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - **kwargs: Any, - ) -> ModelResponse: - return ModelResponse( - output=[ - ResponseOutputMessage( - id="msg_test", - content=[ - ResponseOutputText( - text="Hello world!", - annotations=[], - type="output_text", - logprobs=[], - ) - ], - role="assistant", - status="completed", - type="message", - ) - ], - usage=Usage(), - response_id=None, - ) - - async def stream_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - **kwargs: Any, - ) -> AsyncIterator[TResponseStreamEvent]: - # Yield text deltas - yield ResponseTextDeltaEvent( - content_index=0, - delta="Hello ", - item_id="item1", - output_index=0, - sequence_number=0, - type="response.output_text.delta", - logprobs=[], - ) - yield ResponseTextDeltaEvent( - content_index=0, - delta="world!", - item_id="item1", - output_index=0, - sequence_number=1, - type="response.output_text.delta", - logprobs=[], - ) - - # Yield the final completed event - response = Response( - id="resp_test", - created_at=0, - error=None, - incomplete_details=None, - instructions=None, - metadata={}, - model="test", - object="response", - output=[ - ResponseOutputMessage( - id="msg_test", - content=[ - ResponseOutputText( - text="Hello world!", - annotations=[], - type="output_text", - logprobs=[], - ) - ], - role="assistant", - status="completed", - type="message", - ) - ], - parallel_tool_calls=True, - temperature=1.0, - tool_choice="auto", - tools=[], - top_p=1.0, - status="completed", - text=ResponseTextConfig(format=ResponseFormatText(type="text")), - truncation="disabled", - usage=ResponseUsage( - input_tokens=10, - output_tokens=5, - total_tokens=15, - input_tokens_details=InputTokensDetails.model_validate( - {"cached_tokens": 0, "cache_write_tokens": 0} - ), - output_tokens_details=OutputTokensDetails(reasoning_tokens=0), - ), - ) - yield ResponseCompletedEvent( - response=response, sequence_number=2, type="response.completed" - ) - - -@workflow.defn -class StreamingOpenAIWorkflow: - """Test workflow that opts into streaming via ``Runner.run_streamed``. - - Workflow code consumes events from ``stream_events()`` and exposes - the seen event types via a query so the test can verify both the - in-workflow iteration and the external stream subscriber observe the - same events. - """ - - @workflow.init - def __init__(self, prompt: str) -> None: - self.stream = WorkflowStream() - self.workflow_event_types: list[str] = [] - - @workflow.run - async def run(self, prompt: str) -> str: - agent = Agent[None]( - name="Assistant", - instructions="You are a test agent.", - ) - result = Runner.run_streamed(starting_agent=agent, input=prompt) - async for event in result.stream_events(): - raw = getattr(event, "data", None) - event_type = getattr(raw, "type", None) - if event_type is not None: - self.workflow_event_types.append(event_type) - return result.final_output - - @workflow.query - def get_workflow_event_types(self) -> list[str]: - return self.workflow_event_types - - -@workflow.defn -class StreamingRequiresTopicWorkflow: - """Workflow that opts into ``Runner.run_streamed`` while the model - plugin was configured without a ``streaming_topic``. - - The stub raises before scheduling the streaming activity; this - propagates out of ``Runner.run_streamed`` and fails the workflow. - """ - - @workflow.run - async def run(self, prompt: str) -> str: - agent = Agent[None]( - name="Assistant", - instructions="You are a test agent.", - ) - result = Runner.run_streamed(starting_agent=agent, input=prompt) - async for _ in result.stream_events(): - pass - return result.final_output - - -@pytest.mark.asyncio -async def test_streaming_publishes_raw_events(client: Client): - """Both the workflow consumer (via stream_events) and the stream - topic see the same native OpenAI events, in order, with no - normalization.""" - async with AgentEnvironment( - model=StreamingTestModel(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - streaming_topic="events", - ), - ) as env: - client = env.applied_on_client(client) - workflow_id = f"openai-streaming-test-{uuid.uuid4()}" - - async with new_worker( - client, StreamingOpenAIWorkflow, max_cached_workflows=0 - ) as worker: - handle = await client.start_workflow( - StreamingOpenAIWorkflow.run, - "Hello", - id=workflow_id, - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - - stream = WorkflowStreamClient.create(client, workflow_id) - published: list[TResponseStreamEvent] = [] - - async def collect_events() -> None: - async for item in stream.subscribe( - ["events"], - from_offset=0, - # TResponseStreamEvent is a discriminated union - # (Annotated[..., Discriminator]); Pydantic decodes - # it via TypeAdapter at runtime, but the type - # checkers see ``Annotated`` rather than ``type``. - result_type=TResponseStreamEvent, # type: ignore[arg-type,call-overload] - poll_cooldown=timedelta(milliseconds=50), - ): - published.append(item.data) - if item.data.type == "response.completed": - break - - collect_task = asyncio.create_task(collect_events()) - result = await handle.result() - await asyncio.wait_for(collect_task, timeout=10.0) - - workflow_event_types = await handle.query( - StreamingOpenAIWorkflow.get_workflow_event_types - ) - - assert result == "Hello world!" - - published_types = [e.type for e in published] - assert published_types == [ - "response.output_text.delta", - "response.output_text.delta", - "response.completed", - ], f"Unexpected published event sequence: {published_types}" - - deltas = [e.delta for e in published if e.type == "response.output_text.delta"] - assert deltas == ["Hello ", "world!"] - - # Workflow-side iteration sees the same model events in the same order. - assert workflow_event_types == published_types - - -@pytest.mark.asyncio -async def test_streaming_requires_topic(client: Client): - """``Runner.run_streamed`` fails fast when the plugin has no topic - configured. The error is raised in ``stream_response`` before any - streaming activity is scheduled.""" - async with AgentEnvironment( - model=StreamingTestModel(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - streaming_topic=None, - ), - ) as env: - client = env.applied_on_client(client) - async with new_worker( - client, StreamingRequiresTopicWorkflow, max_cached_workflows=0 - ) as worker: - with pytest.raises(WorkflowFailureError) as exc_info: - await client.execute_workflow( - StreamingRequiresTopicWorkflow.run, - "Hi", - id=f"openai-streaming-requires-topic-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - - assert "streaming_topic" in str(exc_info.value.cause) - - -@pytest.mark.asyncio -async def test_streaming_rejects_local_activity(client: Client): - """``Runner.run_streamed`` fails fast when the plugin is configured - with ``use_local_activity=True``. Local activities support neither - heartbeats nor the workflow-stream signal channel.""" - async with AgentEnvironment( - model=StreamingTestModel(), - model_params=ModelActivityParameters( - start_to_close_timeout=timedelta(seconds=30), - streaming_topic="events", - use_local_activity=True, - ), - ) as env: - client = env.applied_on_client(client) - async with new_worker( - client, StreamingRequiresTopicWorkflow, max_cached_workflows=0 - ) as worker: - with pytest.raises(WorkflowFailureError) as exc_info: - await client.execute_workflow( - StreamingRequiresTopicWorkflow.run, - "Hi", - id=f"openai-streaming-rejects-local-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=30), - ) - - assert "use_local_activity" in str(exc_info.value.cause) diff --git a/tests/contrib/openai_agents/test_openai_tool_secrets.py b/tests/contrib/openai_agents/test_openai_tool_secrets.py deleted file mode 100644 index 949b232e4..000000000 --- a/tests/contrib/openai_agents/test_openai_tool_secrets.py +++ /dev/null @@ -1,908 +0,0 @@ -"""Tests for worker environment references in hosted tool secrets.""" - -import time -import uuid -from collections.abc import AsyncIterator, Collection -from typing import Any, cast - -import pytest -from agents import ( - Agent, - AgentOutputSchemaBase, - CodeInterpreterTool, - Handoff, - HostedMCPTool, - Model, - ModelResponse, - ModelSettings, - ModelTracing, - Runner, - Tool, - TResponseInputItem, - Usage, -) -from agents.items import TResponseStreamEvent -from agents.tool import ShellTool, ShellToolEnvironment - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.openai_agents import ( - ModelActivityParameters, - OpenAIAgentsPlugin, - OpenAIPayloadConverter, - temporal_worker_env_ref, -) -from temporalio.contrib.openai_agents._invoke_model_activity import ( - ActivityModelInput, - ModelActivity, - StreamingActivityModelInput, - _build_tool, -) -from temporalio.contrib.openai_agents._temporal_model_stub import _TemporalModelStub -from temporalio.contrib.openai_agents._temporal_worker_env_ref import ( - AllowAllWorkerEnvVars, - _WorkerEnvRefResolver, -) -from temporalio.contrib.openai_agents.testing import ( - AgentEnvironment, - TestModelProvider, -) -from temporalio.testing import ActivityEnvironment -from tests.helpers import new_worker - -SENTINEL = "sk-test-sentinel-4f1a9c7e2b" -ENV_NAME = "TEMPORAL_TEST_TOOL_SECRET" -OTHER_SENTINEL = "sk-test-other-8c3d5e0a1f" -OTHER_ENV_NAME = "TEMPORAL_TEST_OTHER_TOOL_SECRET" - -_RESOLVER_ALLOWING_TEST_NAMES = _WorkerEnvRefResolver([ENV_NAME, OTHER_ENV_NAME]) - - -def _round_trip_activity_input(tool: Tool) -> tuple[bytes, ActivityModelInput]: - stub = _TemporalModelStub( - model_name="gpt-5", - model_params=ModelActivityParameters(), - agent=None, - ) - activity_input, _summary = stub._build_activity_input( - system_instructions=None, - input="hi", - model_settings=ModelSettings(), - tools=[tool], - output_schema=None, - handoffs=[], - tracing=ModelTracing.DISABLED, - previous_response_id=None, - conversation_id=None, - prompt=None, - ) - converter = OpenAIPayloadConverter() - payload = converter.to_payload(activity_input) - return payload.data, converter.from_payload(payload, ActivityModelInput) - - -def _activity_input_payload_and_tool(tool: Tool) -> tuple[bytes, Any]: - payload, received = _round_trip_activity_input(tool) - tools = received.get("tools") or [] - assert len(tools) == 1 - return payload, tools[0] - - -def _hosted_mcp_tool(authorization: str, header_value: str) -> HostedMCPTool: - return HostedMCPTool( - tool_config={ - "type": "mcp", - "server_label": "test_server", - "server_url": "https://example.com/mcp", - "authorization": authorization, - "headers": {"X-Token": header_value, "X-Plain": "not-a-secret"}, - } - ) - - -def _domain_secret(name: str, value: str) -> dict[str, str]: - return {"domain": "example.com", "name": name, "value": value} - - -def _network_policy(domain_secrets: tuple[Any, ...]) -> Any: - return { - "type": "allowlist", - "allowed_domains": ["example.com"], - "domain_secrets": list(domain_secrets), - } - - -def _shell_tool(*domain_secrets: Any) -> ShellTool: - environment: Any = { - "type": "container_auto", - "network_policy": _network_policy(domain_secrets), - } - return ShellTool(environment=environment) - - -def _code_interpreter_tool(*domain_secrets: Any) -> CodeInterpreterTool: - tool_config: Any = { - "type": "code_interpreter", - "container": { - "type": "auto", - "network_policy": _network_policy(domain_secrets), - }, - } - return CodeInterpreterTool(tool_config=tool_config) - - -def _as_dict(value: Any) -> dict[str, Any]: - return cast(dict[str, Any], value) - - -def _secrets_in(network_policy: Any) -> list[Any]: - return list(_as_dict(network_policy)["domain_secrets"]) - - -def _shell_secrets(built: Tool) -> list[Any]: - assert isinstance(built, ShellTool) - assert built.environment is not None - return _secrets_in(_as_dict(built.environment)["network_policy"]) - - -def _code_interpreter_secrets(built: Tool) -> list[Any]: - assert isinstance(built, CodeInterpreterTool) - container = _as_dict(built.tool_config)["container"] - return _secrets_in(_as_dict(container)["network_policy"]) - - -def test_hosted_mcp_secrets_stay_out_of_activity_arguments( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - - payload, received = _activity_input_payload_and_tool(_hosted_mcp_tool(ref, ref)) - - assert SENTINEL.encode() not in payload - assert payload.count(ref.encode()) == 2 - assert received.tool_config["authorization"] == ref - assert received.tool_config["headers"]["X-Token"] == ref - - -def test_hosted_shell_domain_secret_stays_out_of_activity_arguments( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - - payload, received = _activity_input_payload_and_tool( - _shell_tool(_domain_secret("TOKEN", ref)) - ) - - assert SENTINEL.encode() not in payload - assert ref.encode() in payload - secrets = _secrets_in(received.environment["network_policy"]) - assert secrets[0]["value"] == ref - - -def test_code_interpreter_domain_secret_stays_out_of_activity_arguments( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - - payload, received = _activity_input_payload_and_tool( - _code_interpreter_tool(_domain_secret("TOKEN", ref)) - ) - - assert SENTINEL.encode() not in payload - assert ref.encode() in payload - secrets = _secrets_in(received.tool_config["container"]["network_policy"]) - assert secrets[0]["value"] == ref - - -def test_hosted_mcp_secrets_resolve_for_the_model_call( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - _payload, received = _activity_input_payload_and_tool(_hosted_mcp_tool(ref, ref)) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == SENTINEL - assert _as_dict(built.tool_config)["headers"] == { - "X-Token": SENTINEL, - "X-Plain": "not-a-secret", - } - assert received.tool_config["authorization"] == ref - assert received.tool_config["headers"]["X-Token"] == ref - - -@pytest.mark.parametrize( - ("resolvable", "resolves"), - [ - ([ENV_NAME], True), - (AllowAllWorkerEnvVars(), True), - ([OTHER_ENV_NAME], False), - ], - ids=["the_name", "allow_all", "another_name"], -) -def test_a_reference_resolves_only_from_a_variable_the_worker_allows( - monkeypatch: pytest.MonkeyPatch, - resolvable: Collection[str] | AllowAllWorkerEnvVars, - resolves: bool, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - _payload, received = _activity_input_payload_and_tool(_hosted_mcp_tool(ref, ref)) - - built = _build_tool(received, _WorkerEnvRefResolver(resolvable)) - - assert isinstance(built, HostedMCPTool) - expected = SENTINEL if resolves else ref - assert _as_dict(built.tool_config)["authorization"] == expected - assert _as_dict(built.tool_config)["headers"]["X-Token"] == expected - - -def test_a_star_in_the_resolvable_names_is_an_ordinary_name( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - _payload, received = _activity_input_payload_and_tool(_hosted_mcp_tool(ref, ref)) - - built = _build_tool(received, _WorkerEnvRefResolver([OTHER_ENV_NAME, "*"])) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == ref - assert _as_dict(built.tool_config)["headers"]["X-Token"] == ref - - -def test_a_glob_in_the_resolvable_names_matches_no_name( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - _payload, received = _activity_input_payload_and_tool(_hosted_mcp_tool(ref, ref)) - - built = _build_tool(received, _WorkerEnvRefResolver(["TEMPORAL_TEST_*"])) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == ref - assert _as_dict(built.tool_config)["headers"]["X-Token"] == ref - - -def test_hosted_shell_domain_secret_resolves_for_the_model_call( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - _payload, received = _activity_input_payload_and_tool( - _shell_tool(_domain_secret("TOKEN", ref)) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert _shell_secrets(built) == [_domain_secret("TOKEN", SENTINEL)] - - -def test_code_interpreter_domain_secret_resolves_for_the_model_call( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - _payload, received = _activity_input_payload_and_tool( - _code_interpreter_tool(_domain_secret("TOKEN", ref)) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert _code_interpreter_secrets(built) == [_domain_secret("TOKEN", SENTINEL)] - - -def test_code_interpreter_domain_secret_survives_a_second_build( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - _payload, received = _activity_input_payload_and_tool( - _code_interpreter_tool(_domain_secret("TOKEN", ref)) - ) - - first = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - second = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert _code_interpreter_secrets(first) == [_domain_secret("TOKEN", SENTINEL)] - assert _code_interpreter_secrets(second) == [_domain_secret("TOKEN", SENTINEL)] - assert _secrets_in(received.tool_config["container"]["network_policy"]) == [ - _domain_secret("TOKEN", ref) - ] - - -def test_only_domain_secrets_holding_a_worker_env_ref_are_resolved( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - literal = _domain_secret("PLAIN", "plain-token-value") - _payload, received = _activity_input_payload_and_tool( - _code_interpreter_tool(literal, _domain_secret("TOKEN", ref)) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert _code_interpreter_secrets(built) == [ - literal, - _domain_secret("TOKEN", SENTINEL), - ] - - -def test_two_domain_secrets_resolve_to_their_own_secrets( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - monkeypatch.setenv(OTHER_ENV_NAME, OTHER_SENTINEL) - _payload, received = _activity_input_payload_and_tool( - _code_interpreter_tool( - _domain_secret("TOKEN", temporal_worker_env_ref(ENV_NAME)), - _domain_secret("OTHER", temporal_worker_env_ref(OTHER_ENV_NAME)), - ) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert _code_interpreter_secrets(built) == [ - _domain_secret("TOKEN", SENTINEL), - _domain_secret("OTHER", OTHER_SENTINEL), - ] - - -def test_shell_domain_secrets_resolve_to_their_own_secrets_in_order( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - monkeypatch.setenv(OTHER_ENV_NAME, OTHER_SENTINEL) - literal = _domain_secret("PLAIN", "plain-token-value") - _payload, received = _activity_input_payload_and_tool( - _shell_tool( - literal, - _domain_secret("TOKEN", temporal_worker_env_ref(ENV_NAME)), - _domain_secret("OTHER", temporal_worker_env_ref(OTHER_ENV_NAME)), - ) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert _shell_secrets(built) == [ - literal, - _domain_secret("TOKEN", SENTINEL), - _domain_secret("OTHER", OTHER_SENTINEL), - ] - - -def test_a_shell_domain_secret_naming_a_denied_variable_is_passed_through( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(OTHER_ENV_NAME, OTHER_SENTINEL) - denied = temporal_worker_env_ref(OTHER_ENV_NAME) - _payload, received = _activity_input_payload_and_tool( - _shell_tool(_domain_secret("TOKEN", denied)) - ) - - built = _build_tool(received, _WorkerEnvRefResolver([ENV_NAME])) - - assert _shell_secrets(built) == [_domain_secret("TOKEN", denied)] - - -def test_a_code_interpreter_domain_secret_naming_a_denied_variable_is_passed_through( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(OTHER_ENV_NAME, OTHER_SENTINEL) - denied = temporal_worker_env_ref(OTHER_ENV_NAME) - _payload, received = _activity_input_payload_and_tool( - _code_interpreter_tool(_domain_secret("TOKEN", denied)) - ) - - built = _build_tool(received, _WorkerEnvRefResolver([ENV_NAME])) - - assert _code_interpreter_secrets(built) == [_domain_secret("TOKEN", denied)] - - -def test_two_worker_env_refs_in_one_mcp_config_resolve_to_their_own_secrets( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - monkeypatch.setenv(OTHER_ENV_NAME, OTHER_SENTINEL) - _payload, received = _activity_input_payload_and_tool( - _hosted_mcp_tool( - temporal_worker_env_ref(ENV_NAME), temporal_worker_env_ref(OTHER_ENV_NAME) - ) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == SENTINEL - assert _as_dict(built.tool_config)["headers"] == { - "X-Token": OTHER_SENTINEL, - "X-Plain": "not-a-secret", - } - - -def test_a_worker_env_ref_in_a_header_name_is_passed_through( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - ref = temporal_worker_env_ref(ENV_NAME) - tool_config: Any = { - "type": "mcp", - "server_label": "test_server", - "server_url": "https://example.com/mcp", - "headers": {ref: "not-a-secret"}, - } - - payload, received = _activity_input_payload_and_tool( - HostedMCPTool(tool_config=tool_config) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["headers"] == {ref: "not-a-secret"} - assert SENTINEL.encode() not in payload - - -def test_an_mcp_config_without_an_authorization_resolves_its_headers( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - tool_config: Any = { - "type": "mcp", - "server_label": "test_server", - "server_url": "https://example.com/mcp", - "headers": {"X-Token": temporal_worker_env_ref(ENV_NAME)}, - } - - _payload, received = _activity_input_payload_and_tool( - HostedMCPTool(tool_config=tool_config) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, HostedMCPTool) - assert "authorization" not in _as_dict(built.tool_config) - assert _as_dict(built.tool_config)["headers"] == {"X-Token": SENTINEL} - - -def test_an_mcp_config_without_headers_resolves_its_authorization( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - tool_config: Any = { - "type": "mcp", - "server_label": "test_server", - "server_url": "https://example.com/mcp", - "authorization": temporal_worker_env_ref(ENV_NAME), - } - - _payload, received = _activity_input_payload_and_tool( - HostedMCPTool(tool_config=tool_config) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == SENTINEL - assert "headers" not in _as_dict(built.tool_config) - - -def test_local_shell_environment_keeps_its_executor(): - _payload, received = _activity_input_payload_and_tool( - ShellTool(environment={"type": "local"}, executor=lambda _request: "") - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, ShellTool) - assert built.executor is not None - assert _as_dict(built.environment) == {"type": "local"} - - -@pytest.mark.parametrize( - "environment", - [ - {"type": "container_auto"}, - { - "type": "container_auto", - "network_policy": {"type": "disabled"}, - }, - {"type": "container_reference", "container_id": "cntr_abc"}, - ], - ids=["container_auto", "container_auto_disabled_policy", "container_reference"], -) -def test_hosted_shell_environment_gets_no_executor( - environment: ShellToolEnvironment, -): - _payload, received = _activity_input_payload_and_tool( - ShellTool(environment=environment) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, ShellTool) - assert built.executor is None - assert _as_dict(built.environment) == environment - - -def test_code_interpreter_container_id_is_passed_through(): - _payload, received = _activity_input_payload_and_tool( - CodeInterpreterTool( - tool_config={"type": "code_interpreter", "container": "cntr_abc"} - ) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, CodeInterpreterTool) - assert _as_dict(built.tool_config)["container"] == "cntr_abc" - - -@pytest.mark.parametrize( - "container", - [ - {"type": "auto"}, - {"type": "auto", "network_policy": {"type": "disabled"}}, - ], - ids=["no_policy", "disabled_policy"], -) -def test_code_interpreter_container_without_domain_secrets_is_passed_through( - container: Any, -): - _payload, received = _activity_input_payload_and_tool( - CodeInterpreterTool( - tool_config={"type": "code_interpreter", "container": container} - ) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, CodeInterpreterTool) - assert _as_dict(built.tool_config)["container"] == container - - -def test_an_unset_environment_variable_resolves_to_an_empty_value( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.delenv(ENV_NAME, raising=False) - ref = temporal_worker_env_ref(ENV_NAME) - _payload, received = _activity_input_payload_and_tool(_hosted_mcp_tool(ref, ref)) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == "" - assert _as_dict(built.tool_config)["headers"]["X-Token"] == "" - - -def test_a_policy_with_no_domain_secrets_is_passed_through(): - policy: Any = {"type": "allowlist", "allowed_domains": ["example.com"]} - _payload, received = _activity_input_payload_and_tool( - CodeInterpreterTool( - tool_config={ - "type": "code_interpreter", - "container": {"type": "auto", "network_policy": policy}, - } - ) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, CodeInterpreterTool) - assert _as_dict(built.tool_config)["container"] == { - "type": "auto", - "network_policy": policy, - } - - -def test_plain_values_are_passed_through_unchanged( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - plain = "temporal.worker_env_ref-but-not-quite" - _payload, received = _activity_input_payload_and_tool( - _hosted_mcp_tool(plain, plain) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == plain - assert _as_dict(built.tool_config)["headers"] == { - "X-Token": plain, - "X-Plain": "not-a-secret", - } - - -def test_a_worker_env_ref_inside_a_larger_value_is_substituted_in_place( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - composed = "Bearer " + temporal_worker_env_ref(ENV_NAME) - _payload, received = _activity_input_payload_and_tool( - _hosted_mcp_tool(composed, composed) - ) - - built = _build_tool(received, _RESOLVER_ALLOWING_TEST_NAMES) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == f"Bearer {SENTINEL}" - assert _as_dict(built.tool_config)["headers"]["X-Token"] == f"Bearer {SENTINEL}" - - -def test_one_value_holding_two_refs_resolves_only_the_allowed_name( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - monkeypatch.setenv(OTHER_ENV_NAME, OTHER_SENTINEL) - denied = temporal_worker_env_ref(OTHER_ENV_NAME) - composed = f"{temporal_worker_env_ref(ENV_NAME)} {denied}" - _payload, received = _activity_input_payload_and_tool( - _hosted_mcp_tool(composed, composed) - ) - - built = _build_tool(received, _WorkerEnvRefResolver([ENV_NAME])) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == f"{SENTINEL} {denied}" - assert _as_dict(built.tool_config)["headers"]["X-Token"] == f"{SENTINEL} {denied}" - - -def test_a_worker_env_ref_with_no_closing_brace_is_passed_through( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - truncated = "temporal.worker_env_ref:{" + ENV_NAME - _payload, received = _activity_input_payload_and_tool( - _hosted_mcp_tool(truncated, truncated) - ) - - built = _build_tool(received, _WorkerEnvRefResolver(AllowAllWorkerEnvVars())) - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == truncated - assert _as_dict(built.tool_config)["headers"]["X-Token"] == truncated - - -def test_a_value_packed_with_unclosed_references_does_not_stall_the_resolver(): - opener = "temporal.worker_env_ref:{" - packed = opener * (1024 * 1024 // len(opener)) - _payload, received = _activity_input_payload_and_tool( - _hosted_mcp_tool(packed, "not-a-secret") - ) - - start = time.monotonic() - built = _build_tool(received, _WorkerEnvRefResolver([])) - elapsed = time.monotonic() - start - - assert isinstance(built, HostedMCPTool) - assert _as_dict(built.tool_config)["authorization"] == packed - assert elapsed < 5.0 - - -def test_a_bare_string_is_rejected_as_the_resolvable_variable_names(): - with pytest.raises(TypeError, match="resolvable_worker_env_vars"): - _WorkerEnvRefResolver(ENV_NAME) - - -def test_the_allow_all_class_itself_is_rejected_as_the_resolvable_variable_names(): - with pytest.raises(TypeError, match=r"AllowAllWorkerEnvVars\(\)"): - _WorkerEnvRefResolver(AllowAllWorkerEnvVars) # type: ignore[arg-type] - - -def test_the_plugin_rejects_a_bare_string_as_the_resolvable_variable_names(): - with pytest.raises(TypeError, match="resolvable_worker_env_vars"): - OpenAIAgentsPlugin(resolvable_worker_env_vars=ENV_NAME) - - -async def _no_stream_events() -> AsyncIterator[TResponseStreamEvent]: - """Publishing an event here makes the flusher retry for ten minutes against a workflow that does not exist.""" - events: list[TResponseStreamEvent] = [] - for event in events: - yield event - - -class _ToolRecordingModel(Model): - def __init__(self) -> None: - self.tools: list[Tool] = [] - - async def get_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - **kwargs: Any, - ) -> ModelResponse: - self.tools = tools - return ModelResponse(output=[], usage=Usage(), response_id=None) - - def stream_response( - self, - system_instructions: str | None, - input: str | list[TResponseInputItem], - model_settings: ModelSettings, - tools: list[Tool], - output_schema: AgentOutputSchemaBase | None, - handoffs: list[Handoff], - tracing: ModelTracing, - **kwargs: Any, - ) -> AsyncIterator[TResponseStreamEvent]: - self.tools = tools - return _no_stream_events() - - -def _hosted_mcp_config_the_model_received(model: _ToolRecordingModel) -> dict[str, Any]: - assert len(model.tools) == 1 - tool = model.tools[0] - assert isinstance(tool, HostedMCPTool) - return _as_dict(tool.tool_config) - - -async def test_invoke_model_activity_resolves_tool_secrets( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - sent = _hosted_mcp_tool(temporal_worker_env_ref(ENV_NAME), "not-a-secret") - _payload, activity_input = _round_trip_activity_input(sent) - model = _ToolRecordingModel() - - await ActivityEnvironment().run( - ModelActivity( - TestModelProvider(model), resolvable_worker_env_vars=[ENV_NAME] - ).invoke_model_activity, - activity_input, - ) - - assert _hosted_mcp_config_the_model_received(model) == { - **_as_dict(sent.tool_config), - "authorization": SENTINEL, - } - - -async def test_invoke_model_activity_resolves_nothing_by_default( - monkeypatch: pytest.MonkeyPatch, -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - sent = _hosted_mcp_tool(temporal_worker_env_ref(ENV_NAME), "not-a-secret") - _payload, activity_input = _round_trip_activity_input(sent) - model = _ToolRecordingModel() - - await ActivityEnvironment().run( - ModelActivity(TestModelProvider(model)).invoke_model_activity, - activity_input, - ) - - assert _hosted_mcp_config_the_model_received(model) == _as_dict(sent.tool_config) - - -async def test_invoke_model_activity_streaming_resolves_tool_secrets( - monkeypatch: pytest.MonkeyPatch, client: Client -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - sent = _hosted_mcp_tool(temporal_worker_env_ref(ENV_NAME), "not-a-secret") - _payload, activity_input = _round_trip_activity_input(sent) - streaming_input: StreamingActivityModelInput = { - **activity_input, - "streaming_topic": "events", - } - model = _ToolRecordingModel() - - await ActivityEnvironment(client).run( - ModelActivity( - TestModelProvider(model), resolvable_worker_env_vars=[ENV_NAME] - ).invoke_model_activity_streaming, - streaming_input, - ) - - assert _hosted_mcp_config_the_model_received(model) == { - **_as_dict(sent.tool_config), - "authorization": SENTINEL, - } - - -@workflow.defn -class WorkerEnvRefAgentWorkflow: - @workflow.run - async def run(self) -> None: - tool_config: Any = { - "type": "mcp", - "server_label": "test_server", - "server_url": "https://example.com/mcp", - "authorization": temporal_worker_env_ref(ENV_NAME), - "headers": {"X-Token": temporal_worker_env_ref(OTHER_ENV_NAME)}, - } - agent = Agent[None]( - name="Worker env ref agent", - tools=[HostedMCPTool(tool_config=tool_config)], - ) - await Runner.run(starting_agent=agent, input="hi") - - -async def test_a_worker_resolves_only_the_variables_its_plugin_names( - monkeypatch: pytest.MonkeyPatch, client: Client -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - monkeypatch.setenv(OTHER_ENV_NAME, OTHER_SENTINEL) - model = _ToolRecordingModel() - config = client.config() - config["plugins"] = [ - *config.get("plugins", []), - OpenAIAgentsPlugin( - model_provider=TestModelProvider(model), - resolvable_worker_env_vars=[ENV_NAME], - ), - ] - client = Client(**config) - - async with new_worker(client, WorkerEnvRefAgentWorkflow) as worker: - await client.execute_workflow( - WorkerEnvRefAgentWorkflow.run, - id=f"worker-env-ref-allowlist-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - - tool_config = _hosted_mcp_config_the_model_received(model) - assert tool_config["authorization"] == SENTINEL - assert tool_config["headers"] == { - "X-Token": temporal_worker_env_ref(OTHER_ENV_NAME) - } - - -async def test_an_agent_environment_forwards_the_variables_it_names_to_the_worker( - monkeypatch: pytest.MonkeyPatch, client: Client -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - monkeypatch.setenv(OTHER_ENV_NAME, OTHER_SENTINEL) - model = _ToolRecordingModel() - - async with AgentEnvironment( - model=model, resolvable_worker_env_vars=[ENV_NAME] - ) as env: - client = env.applied_on_client(client) - async with new_worker(client, WorkerEnvRefAgentWorkflow) as worker: - await client.execute_workflow( - WorkerEnvRefAgentWorkflow.run, - id=f"agent-environment-env-ref-allowlist-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - - tool_config = _hosted_mcp_config_the_model_received(model) - assert tool_config["authorization"] == SENTINEL - assert tool_config["headers"] == { - "X-Token": temporal_worker_env_ref(OTHER_ENV_NAME) - } - - -async def test_re_entering_an_agent_environment_keeps_the_variables_it_names( - monkeypatch: pytest.MonkeyPatch, client: Client -): - monkeypatch.setenv(ENV_NAME, SENTINEL) - model = _ToolRecordingModel() - names = [ENV_NAME] - env = AgentEnvironment(model=model, resolvable_worker_env_vars=names) - - async with env: - pass - names.clear() - - async with env: - client = env.applied_on_client(client) - async with new_worker(client, WorkerEnvRefAgentWorkflow) as worker: - await client.execute_workflow( - WorkerEnvRefAgentWorkflow.run, - id=f"agent-environment-re-entry-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - - assert _hosted_mcp_config_the_model_received(model)["authorization"] == SENTINEL diff --git a/tests/contrib/openai_agents/test_openai_tracing.py b/tests/contrib/openai_agents/test_openai_tracing.py deleted file mode 100644 index 28b804cc1..000000000 --- a/tests/contrib/openai_agents/test_openai_tracing.py +++ /dev/null @@ -1,955 +0,0 @@ -import uuid -from datetime import timedelta -from typing import Any - -import opentelemetry.trace -from agents import Span, Trace, TracingProcessor, custom_span, trace -from agents.tracing import get_trace_provider -from opentelemetry.sdk.trace import ReadableSpan -from opentelemetry.sdk.trace.export import SimpleSpanProcessor -from opentelemetry.sdk.trace.export.in_memory_span_exporter import InMemorySpanExporter - -from temporalio import activity, workflow -from temporalio.client import Client -from temporalio.contrib.openai_agents import _temporal_openai_agents -from temporalio.contrib.openai_agents.testing import ( - AgentEnvironment, -) -from temporalio.contrib.opentelemetry import create_tracer_provider -from temporalio.worker.workflow_sandbox import ( - SandboxedWorkflowRunner, - SandboxRestrictions, -) -from tests.contrib.openai_agents.test_openai import ( - ResearchWorkflow, - research_mock_model, -) -from tests.helpers import assert_eq_eventually, new_worker - - -class MemoryTracingProcessor(TracingProcessor): - # True for start events, false for end - trace_events: list[tuple[Trace, bool]] = [] - span_events: list[tuple[Span, bool]] = [] - - def on_trace_start(self, trace: Trace) -> None: - self.trace_events.append((trace, True)) - - def on_trace_end(self, trace: Trace) -> None: - self.trace_events.append((trace, False)) - - def on_span_start(self, span: Span[Any]) -> None: - self.span_events.append((span, True)) - - def on_span_end(self, span: Span[Any]) -> None: - self.span_events.append((span, False)) - - def shutdown(self) -> None: - pass - - def force_flush(self) -> None: - pass - - -def test_otel_instrumentation_lifecycle_does_not_nest() -> None: - from openinference.instrumentation.openai_agents._processor import ( - OpenInferenceTracingProcessor, - ) - from opentelemetry import trace - - original = OpenInferenceTracingProcessor.on_trace_start - _temporal_openai_agents._install_otel_instrumentation(trace.get_tracer_provider()) - try: - installed_patch = OpenInferenceTracingProcessor.on_trace_start - assert installed_patch is not original - - _temporal_openai_agents._install_otel_instrumentation( - trace.get_tracer_provider() - ) - try: - assert OpenInferenceTracingProcessor.on_trace_start is installed_patch - finally: - _temporal_openai_agents._uninstall_otel_instrumentation() - - assert OpenInferenceTracingProcessor.on_trace_start is installed_patch - finally: - _temporal_openai_agents._uninstall_otel_instrumentation() - - assert OpenInferenceTracingProcessor.on_trace_start is original - - -async def test_tracing(client: Client): - async with AgentEnvironment(model=research_mock_model()) as env: - client = env.applied_on_client(client) - provider = get_trace_provider() - - processor = MemoryTracingProcessor() - provider.set_processors([processor]) - - async with new_worker( - client, - ResearchWorkflow, - ) as worker: - with trace("Research workflow"): - workflow_handle = await client.start_workflow( - ResearchWorkflow.run, - "Caribbean vacation spots in April, optimizing for surfing, hiking and water sports", - id=f"research-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=120), - ) - await workflow_handle.result() - print("\n".join([str({"name": t.name}) for t, _ in processor.trace_events])) - - # There are two traces, one is created in the client because it is needed to start the temporal spans - assert len(processor.trace_events) == 2 - assert ( - processor.trace_events[0][0].trace_id - == processor.trace_events[1][0].trace_id - ) - assert processor.trace_events[0][1] - assert not processor.trace_events[1][1] - - def paired_span(a: tuple[Span[Any], bool], b: tuple[Span[Any], bool]) -> None: - assert a[0].trace_id == b[0].trace_id - assert a[1] - assert not b[1] - - print( - "\n".join( - [ - str({"id": t.span_id, "data": t.span_data.export()}) - for t, _ in processor.span_events - ] - ) - ) - - # Start workflow traces - paired_span(processor.span_events[0], processor.span_events[1]) - assert ( - processor.span_events[0][0].span_data.export().get("name") - == "temporal:startWorkflow:ResearchWorkflow" - ) - - # Execute workflow - paired_span(processor.span_events[2], processor.span_events[-1]) - assert ( - processor.span_events[2][0].span_data.export().get("name") - == "temporal:executeWorkflow" - ) - - # Research manager span - paired_span(processor.span_events[3], processor.span_events[-2]) - assert ( - processor.span_events[3][0].span_data.export().get("name") - == "Research manager" - ) - - # Initial planner spans - task wraps agent, agent wraps turn, turn wraps activity - paired_span(processor.span_events[4], processor.span_events[13]) - assert processor.span_events[4][0].span_data.export().get("name") == "task" - - paired_span(processor.span_events[5], processor.span_events[12]) - assert ( - processor.span_events[5][0].span_data.export().get("name") == "PlannerAgent" - ) - - paired_span(processor.span_events[6], processor.span_events[11]) - assert processor.span_events[6][0].span_data.export().get("name") == "turn" - - paired_span(processor.span_events[7], processor.span_events[10]) - assert ( - processor.span_events[7][0].span_data.export().get("name") - == "temporal:startActivity" - ) - - paired_span(processor.span_events[8], processor.span_events[9]) - assert ( - processor.span_events[8][0].span_data.export().get("name") - == "temporal:executeActivity" - ) - - for span, start in processor.span_events[14:-12]: - span_data = span.span_data.export() - - # All spans should be closed - if start: - assert any( - span.span_id == s.span_id and not s_start - for (s, s_start) in processor.span_events - ) - - # Start activity is always parented to a turn span, which is parented to an agent - if span_data.get("name") == "temporal:startActivity": - turn_spans = [ - s for (s, _) in processor.span_events if s.span_id == span.parent_id - ] - assert len(turn_spans) == 2 - assert ( - turn_spans[0] - .span_data.export() - .get("data", {}) - .get("sdk_span_type") - == "turn" - ) - agent_spans = [ - s - for (s, _) in processor.span_events - if s.span_id == turn_spans[0].parent_id - ] - assert len(agent_spans) == 2 - assert agent_spans[0].span_data.export()["type"] == "agent" - - # Execute is parented to start - if span_data.get("name") == "temporal:executeActivity": - parents = [ - s for (s, _) in processor.span_events if s.span_id == span.parent_id - ] - assert ( - len(parents) == 2 - and parents[0].span_data.export()["name"] - == "temporal:startActivity" - ) - - # Final writer spans - task wraps agent, agent wraps turn, turn wraps activity - paired_span(processor.span_events[-12], processor.span_events[-3]) - assert processor.span_events[-12][0].span_data.export().get("name") == "task" - - paired_span(processor.span_events[-11], processor.span_events[-4]) - assert ( - processor.span_events[-11][0].span_data.export().get("name") - == "WriterAgent" - ) - - paired_span(processor.span_events[-10], processor.span_events[-5]) - assert processor.span_events[-10][0].span_data.export().get("name") == "turn" - - paired_span(processor.span_events[-9], processor.span_events[-6]) - assert ( - processor.span_events[-9][0].span_data.export().get("name") - == "temporal:startActivity" - ) - - paired_span(processor.span_events[-8], processor.span_events[-7]) - assert ( - processor.span_events[-8][0].span_data.export().get("name") - == "temporal:executeActivity" - ) - - -@activity.defn -async def simple_no_context_activity() -> str: - return "success" - - -@workflow.defn -class TraceWorkflow: - def __init__(self) -> None: - self._proceed = False - self._ready = False - - @workflow.run - async def run(self): - # Workflow creates spans within existing trace context - with custom_span("Workflow span"): - await workflow.execute_activity( - simple_no_context_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - self._ready = True - await workflow.wait_condition(lambda: self._proceed) - return "done" - - @workflow.query - def ready(self) -> bool: - return self._ready - - @workflow.signal - def proceed(self) -> None: - self._proceed = True - - -@workflow.defn -class SelfTracingWorkflow: - def __init__(self) -> None: - self._proceed = False - self._ready = False - - @workflow.run - async def run(self): - # Workflow starts its own trace - with trace("Workflow trace"): - with custom_span("Workflow span"): - await workflow.execute_activity( - simple_no_context_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - self._ready = True - await workflow.wait_condition(lambda: self._proceed) - return "done" - - @workflow.query - def ready(self) -> bool: - return self._ready - - @workflow.signal - def proceed(self) -> None: - self._proceed = True - - -def print_otel_spans(spans: tuple[ReadableSpan, ...]): - print( - "\n".join( - [ - str( - { - "Name": span.name, - "Id": span.context.span_id if span.context else None, - "Parent": span.parent.span_id if span.parent else None, - } - ) - for span in spans - ] - ) - ) - - -def set_test_tracer_provider() -> InMemorySpanExporter: - exporter = InMemorySpanExporter() - - provider = create_tracer_provider() - provider.add_span_processor(SimpleSpanProcessor(exporter)) - opentelemetry.trace.set_tracer_provider(provider) - # set_tracer_provider is set-once per process: if another test left a - # global provider installed (e.g. leaked from a sibling test in the same - # pytest-xdist worker), the call above silently no-ops and every span in - # this test bypasses the exporter. Fail at the cause instead. - assert opentelemetry.trace.get_tracer_provider() is provider, ( - "Global tracer provider install was a no-op; a previous test in this" - " process left a provider set without resetting it" - ) - return exporter - - -async def test_external_trace_to_workflow_spans( - client: Client, - reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] -): - """Test: External trace -> workflow spans (with worker restart).""" - exporter = set_test_tracer_provider() - workflow_id = None - task_queue = str(uuid.uuid4()) - - # First worker: Start workflow with external trace context - async with AgentEnvironment( - model=research_mock_model(), - add_temporal_spans=False, - use_otel_instrumentation=True, - ) as env: - new_client = env.applied_on_client(client) - # Start external trace, then start workflow within that trace - # Start it outside of the worker to validate provider usage without worker's runcontext - with env.openai_agents_plugin.tracing_context(): - with trace("External trace"): - workflow_handle = await new_client.start_workflow( - TraceWorkflow.run, - id=f"external-trace-workflow-{uuid.uuid4()}", - task_queue=task_queue, - execution_timeout=timedelta(seconds=120), - ) - workflow_id = workflow_handle.id - - async with new_worker( - new_client, - TraceWorkflow, - activities=[simple_no_context_activity], - max_cached_workflows=0, - task_queue=task_queue, - ): - # Wait for workflow to be ready - async def ready() -> bool: - return await workflow_handle.query(TraceWorkflow.ready) - - await assert_eq_eventually(True, ready) - - # Second worker: Complete the workflow with fresh objects (new instrumentation) - async with AgentEnvironment( - model=research_mock_model(), - add_temporal_spans=False, - use_otel_instrumentation=True, - ) as env: - new_client = env.applied_on_client(client) - - async with new_worker( - new_client, - TraceWorkflow, - activities=[simple_no_context_activity], - max_cached_workflows=0, - task_queue=task_queue, - ): - workflow_handle = new_client.get_workflow_handle(workflow_id) - await workflow_handle.signal(TraceWorkflow.proceed) - result = await workflow_handle.result() - assert result == "done" - - spans = exporter.get_finished_spans() - print_otel_spans(spans) - - assert len(spans) >= 2 # External trace + workflow span - - # Find the spans - external_span = next((s for s in spans if s.name == "External trace"), None) - workflow_span = next((s for s in spans if s.name == "Workflow span"), None) - - assert external_span is not None, "External trace span should exist" - assert workflow_span is not None, "Workflow span should exist" - - # Verify parenting: External trace should be root, workflow span should be child of external trace - assert external_span.parent is None, ( - "External trace should have no parent (be root)" - ) - assert workflow_span.parent is not None, "Workflow span should have a parent" - assert external_span.context is not None, "External span should have context" - assert workflow_span.parent.span_id == external_span.context.span_id, ( - "Workflow span should be child of external trace" - ) - - # Verify all spans have unique IDs - span_ids = [span.context.span_id for span in spans if span.context] - assert len(span_ids) == len(set(span_ids)), ( - f"All spans should have unique IDs, got: {span_ids}" - ) - - -async def test_external_trace_and_span_to_workflow_spans( - client: Client, - reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] -): - """Test: External trace + span -> workflow spans (with worker restart).""" - exporter = set_test_tracer_provider() - workflow_id = None - task_queue = str(uuid.uuid4()) - - # First worker: Start workflow with external trace + span context - async with AgentEnvironment( - model=research_mock_model(), - add_temporal_spans=False, - use_otel_instrumentation=True, - ) as env: - new_client = env.applied_on_client(client) - - # Start external trace + span, then start workflow within that context - # Start it outside of the worker to validate provider usage without worker's runcontext - with env.openai_agents_plugin.tracing_context(): - with trace("External trace"): - with custom_span("External span"): - workflow_handle = await new_client.start_workflow( - TraceWorkflow.run, - id=f"external-span-workflow-{uuid.uuid4()}", - task_queue=task_queue, - execution_timeout=timedelta(seconds=120), - ) - workflow_id = workflow_handle.id - - async with new_worker( - new_client, - TraceWorkflow, - activities=[simple_no_context_activity], - max_cached_workflows=0, - task_queue=task_queue, - ): - # Wait for workflow to be ready - async def ready() -> bool: - return await workflow_handle.query(TraceWorkflow.ready) - - await assert_eq_eventually(True, ready) - - # Second worker: Complete the workflow with fresh objects (new instrumentation) - async with AgentEnvironment( - model=research_mock_model(), - add_temporal_spans=False, - use_otel_instrumentation=True, - ) as env: - new_client = env.applied_on_client(client) - - async with new_worker( - new_client, - TraceWorkflow, - activities=[simple_no_context_activity], - max_cached_workflows=0, - task_queue=task_queue, - ): - workflow_handle = new_client.get_workflow_handle(workflow_id) - await workflow_handle.signal(TraceWorkflow.proceed) - result = await workflow_handle.result() - assert result == "done" - - spans = exporter.get_finished_spans() - - assert len(spans) >= 3 # External trace + external span + workflow span - - # Find the spans - external_trace_span = next((s for s in spans if s.name == "External trace"), None) - external_span = next((s for s in spans if s.name == "External span"), None) - workflow_span = next((s for s in spans if s.name == "Workflow span"), None) - - assert external_trace_span is not None, "External trace span should exist" - assert external_span is not None, "External span should exist" - assert workflow_span is not None, "Workflow span should exist" - - # Verify parenting: External span should be child of trace, workflow span should be child of external span - assert external_trace_span.parent is None, ( - "External trace should have no parent (be root)" - ) - assert external_span.parent is not None, "External span should have a parent" - assert external_trace_span.context is not None, ( - "External trace span should have context" - ) - assert external_span.parent.span_id == external_trace_span.context.span_id, ( - "External span should be child of external trace" - ) - assert workflow_span.parent is not None, "Workflow span should have a parent" - assert external_span.context is not None, "External span should have context" - assert workflow_span.parent.span_id == external_span.context.span_id, ( - "Workflow span should be child of external span" - ) - - # Verify all spans have unique IDs - span_ids = [span.context.span_id for span in spans if span.context] - assert len(span_ids) == len(set(span_ids)), ( - f"All spans should have unique IDs, got: {span_ids}" - ) - - -async def test_workflow_only_trace_to_spans( - client: Client, - reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] -): - """Test: Workflow-only trace -> spans (with worker restart).""" - exporter = set_test_tracer_provider() - workflow_id = None - task_queue = str(uuid.uuid4()) - - # First worker: Start workflow (no external trace context) - async with AgentEnvironment( - model=research_mock_model(), - add_temporal_spans=False, - use_otel_instrumentation=True, - ) as env: - new_client = env.applied_on_client(client) - - async with new_worker( - new_client, - SelfTracingWorkflow, - activities=[simple_no_context_activity], - max_cached_workflows=0, - task_queue=task_queue, - ) as worker: - # No external trace - workflow starts its own - workflow_handle = await new_client.start_workflow( - SelfTracingWorkflow.run, - id=f"self-tracing-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=120), - ) - workflow_id = workflow_handle.id - - # Wait for workflow to be ready - async def ready() -> bool: - return await workflow_handle.query(SelfTracingWorkflow.ready) - - await assert_eq_eventually(True, ready) - - # Second worker: Complete the workflow with fresh objects (new instrumentation) - async with AgentEnvironment( - model=research_mock_model(), - add_temporal_spans=False, - use_otel_instrumentation=True, - ) as env: - new_client = env.applied_on_client(client) - - async with new_worker( - new_client, - SelfTracingWorkflow, - activities=[simple_no_context_activity], - max_cached_workflows=0, - task_queue=task_queue, - ) as worker: - workflow_handle = new_client.get_workflow_handle(workflow_id) - await workflow_handle.signal(SelfTracingWorkflow.proceed) - result = await workflow_handle.result() - assert result == "done" - - spans = exporter.get_finished_spans() - - assert len(spans) >= 2 # Workflow trace + workflow span - - # Find the spans - workflow_trace_span = next((s for s in spans if s.name == "Workflow trace"), None) - workflow_span = next((s for s in spans if s.name == "Workflow span"), None) - - assert workflow_trace_span is not None, "Workflow trace span should exist" - assert workflow_span is not None, "Workflow span should exist" - - # Verify parenting: Workflow trace should be root, workflow span should be child of workflow trace - assert workflow_trace_span.parent is None, ( - "Workflow trace should have no parent (be root)" - ) - assert workflow_span.parent is not None, "Workflow span should have a parent" - assert workflow_trace_span.context is not None, ( - "Workflow trace span should have context" - ) - assert workflow_span.parent.span_id == workflow_trace_span.context.span_id, ( - "Workflow span should be child of workflow trace" - ) - - -@workflow.defn -class SimpleWorkflow: - @workflow.run - async def run(self) -> str: - # Use custom_span without starting a trace - should be a no-op - with custom_span("Should not appear"): - with custom_span("Neither should this"): - return "done" - - -async def test_custom_span_without_trace_context( - client: Client, - reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] -): - """Test that custom_span() without a trace context emits no spans. - - This validates our hypothesis about why the main test fails: - If no OpenAI trace is started, custom_span() calls should be no-ops. - """ - exporter = set_test_tracer_provider() - - async with AgentEnvironment( - model=research_mock_model(), use_otel_instrumentation=True - ) as env: - client = env.applied_on_client(client) - - async with new_worker(client, SimpleWorkflow) as worker: - result = await client.execute_workflow( - SimpleWorkflow.run, - id=f"simple-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - assert result == "done" - - spans = exporter.get_finished_spans() - - # Should have no custom spans since no trace was started - custom_spans = [ - span - for span in spans - if "Should not appear" in span.name or "Neither should this" in span.name - ] - - assert len(custom_spans) == 0, ( - f"Expected no custom spans without trace context, but found: {[s.name for s in custom_spans]}" - ) - - # Should have no spans at all since no trace was started and spans should be dropped - assert len(spans) == 0, ( - f"Expected no spans without trace context, but found: {[s.name for s in spans]}" - ) - - -async def test_otel_tracing_in_runner( - client: Client, - reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] -): - """Test the tracing when executing an actual OpenAI Runner.""" - exporter = set_test_tracer_provider() - - # Test the new ergonomic API - just pass exporters to AgentEnvironment - async with AgentEnvironment( - model=research_mock_model(), - add_temporal_spans=False, - use_otel_instrumentation=True, - ) as env: - client = env.applied_on_client(client) - - async with new_worker( - client, - ResearchWorkflow, - max_cached_workflows=0, - ) as worker: - with trace("Research workflow"): - workflow_handle = await client.start_workflow( - ResearchWorkflow.run, - "Caribbean vacation spots in April, optimizing for surfing, hiking and water sports", - id=f"research-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=120), - ) - await workflow_handle.result() - - spans = exporter.get_finished_spans() - print("OTEL tracing in runner spans:") - print_otel_spans(spans) - - # Verify basic span capture - assert len(spans) > 0, "Should have captured some spans from the research workflow" - - # Categorize spans that users expect to see in their agents workflow - research_manager_spans = [span for span in spans if "Research manager" in span.name] - search_web_spans = [span for span in spans if "Search the web" in span.name] - agent_execution_spans = [ - span - for span in spans - if any( - agent_name in span.name.lower() - for agent_name in ["planner", "search", "writer"] - ) - and "workflow" not in span.name.lower() - ] - - all_span_names = [span.name for span in spans] - unique_span_names = list(set(all_span_names)) - - # Assert users get visibility into their workflow coordination - assert len(research_manager_spans) > 0, ( - f"Expected 'Research manager' spans for workflow coordination visibility, " - f"but only found: {unique_span_names}" - ) - - # Assert users can see their search phases - assert len(search_web_spans) > 0, ( - f"Expected 'Search the web' spans for search phase visibility, " - f"but only found: {unique_span_names}" - ) - - # Assert users can see individual agent executions - assert len(agent_execution_spans) > 0, ( - f"Expected agent execution spans (planner, search, writer) for individual agent visibility, " - f"but only found: {unique_span_names}" - ) - - # Validate span hierarchy integrity - span_ids = {span.context.span_id for span in spans if span.context} - for span in spans: - if span.parent: - assert span.parent.span_id in span_ids, ( - f"Span '{span.name}' has invalid parent reference - parent span doesn't exist" - ) - - # Validate logical parent-child relationships match user code structure - workflow_trace_spans = [span for span in spans if "Research workflow" in span.name] - assert len(workflow_trace_spans) == 1, ( - f"Expected exactly one 'Research workflow' trace, got {len(workflow_trace_spans)}" - ) - workflow_span = workflow_trace_spans[0] - assert workflow_span.context is not None - - # Research manager should be child of workflow trace - research_span = research_manager_spans[0] - assert research_span.context is not None - assert research_span.parent is not None, ( - "Research manager span should have a parent" - ) - assert research_span.parent.span_id == workflow_span.context.span_id, ( - "Expected 'Research manager' to be child of 'Research workflow' trace" - ) - - # Search the web should be child of research manager - search_span = search_web_spans[0] - assert search_span.context is not None - assert search_span.parent is not None, "Search the web span should have a parent" - assert search_span.parent.span_id == research_span.context.span_id, ( - "Expected 'Search the web' to be child of 'Research manager' span" - ) - - # All search agent spans should be descendants of "Search the web" - # (the SDK now inserts a "task" span between "Search the web" and the agent) - span_by_id = {span.context.span_id: span for span in spans if span.context} - search_agent_spans = [span for span in spans if "Search agent" in span.name] - - def is_descendant_of(child: ReadableSpan, ancestor_span_id: int) -> bool: - """Check if child is a descendant of the span with ancestor_span_id.""" - current: ReadableSpan | None = child - while current and current.parent: - if current.parent.span_id == ancestor_span_id: - return True - current = span_by_id.get(current.parent.span_id) - return False - - for search_agent_span in search_agent_spans: - assert search_agent_span.parent is not None, ( - f"Search agent span '{search_agent_span.name}' should have a parent" - ) - assert is_descendant_of(search_agent_span, search_span.context.span_id), ( - f"Expected all 'Search agent' spans to be descendants of 'Search the web' span" - ) - - # PlannerAgent and WriterAgent should be descendants of research manager - planner_spans = [span for span in spans if "PlannerAgent" in span.name] - writer_spans = [span for span in spans if "WriterAgent" in span.name] - - for planner_span in planner_spans: - assert planner_span.parent is not None, "PlannerAgent span should have a parent" - assert is_descendant_of(planner_span, research_span.context.span_id), ( - "Expected 'PlannerAgent' to be descendant of 'Research manager' span" - ) - - for writer_span in writer_spans: - assert writer_span.parent is not None, "WriterAgent span should have a parent" - assert is_descendant_of(writer_span, research_span.context.span_id), ( - "Expected 'WriterAgent' to be descendant of 'Research manager' span" - ) - - -@workflow.defn -class OtelSpanWorkflow: - def __init__(self) -> None: - self._proceed = False - self._ready = False - - @workflow.run - async def run(self): - # Start an SDK custom_span first to establish OTEL context - with custom_span("Workflow SDK span"): - # Workflow starts OTEL span directly using opentelemetry.trace - tracer = opentelemetry.trace.get_tracer(__name__) - with tracer.start_as_current_span("Direct OTEL span"): - await workflow.execute_activity( - simple_no_context_activity, - start_to_close_timeout=timedelta(seconds=10), - ) - self._ready = True - await workflow.wait_condition(lambda: self._proceed) - return "done" - - @workflow.query - def ready(self) -> bool: - return self._ready - - @workflow.signal - def proceed(self) -> None: - self._proceed = True - - -async def test_sdk_trace_to_otel_span_parenting( - client: Client, - reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] -): - """Test that OTEL spans started in workflow are properly parented to client SDK trace.""" - exporter = set_test_tracer_provider() - workflow_id = None - task_queue = str(uuid.uuid4()) - - # First worker: Start workflow with client SDK trace context - async with AgentEnvironment( - model=research_mock_model(), - add_temporal_spans=False, - use_otel_instrumentation=True, - ) as env: - new_client = env.applied_on_client(client) - - async with new_worker( - new_client, - OtelSpanWorkflow, - activities=[simple_no_context_activity], - max_cached_workflows=0, - task_queue=task_queue, - workflow_runner=SandboxedWorkflowRunner( - SandboxRestrictions.default.with_passthrough_modules("opentelemetry") - ), - ) as worker: - # Start SDK trace in client, then start workflow within that trace - with trace("Client SDK trace"): - workflow_handle = await new_client.start_workflow( - OtelSpanWorkflow.run, - id=f"sdk-trace-otel-span-workflow-{uuid.uuid4()}", - task_queue=worker.task_queue, - execution_timeout=timedelta(seconds=120), - ) - workflow_id = workflow_handle.id - - # Wait for workflow to be ready - async def ready() -> bool: - return await workflow_handle.query(OtelSpanWorkflow.ready) - - await assert_eq_eventually(True, ready) - - # Second worker: Complete the workflow with fresh objects (new instrumentation) - async with AgentEnvironment( - model=research_mock_model(), - add_temporal_spans=False, - use_otel_instrumentation=True, - ) as env: - new_client = env.applied_on_client(client) - - async with new_worker( - new_client, - OtelSpanWorkflow, - activities=[simple_no_context_activity], - max_cached_workflows=0, - task_queue=task_queue, - workflow_runner=SandboxedWorkflowRunner( - SandboxRestrictions.default.with_passthrough_modules("opentelemetry") - ), - ) as worker: - workflow_handle = new_client.get_workflow_handle(workflow_id) - await workflow_handle.signal(OtelSpanWorkflow.proceed) - result = await workflow_handle.result() - assert result == "done" - - spans = exporter.get_finished_spans() - print("SDK trace to OTEL span parenting:") - print_otel_spans(spans) - - assert len(spans) >= 3 # Client SDK trace + Workflow SDK span + Direct OTEL span - - # Find the spans - client_sdk_trace_span = next( - (s for s in spans if s.name == "Client SDK trace"), None - ) - workflow_sdk_span = next((s for s in spans if s.name == "Workflow SDK span"), None) - direct_otel_span = next((s for s in spans if s.name == "Direct OTEL span"), None) - - assert client_sdk_trace_span is not None, "Client SDK trace span should exist" - assert workflow_sdk_span is not None, "Workflow SDK span should exist" - assert direct_otel_span is not None, "Direct OTEL span should exist" - - # Verify parenting chain: Client SDK trace -> Workflow SDK span -> Direct OTEL span - assert client_sdk_trace_span.parent is None, ( - "Client SDK trace should have no parent (be root)" - ) - - assert workflow_sdk_span.parent is not None, ( - "Workflow SDK span should have a parent" - ) - assert client_sdk_trace_span.context is not None, ( - "Client SDK trace span should have context" - ) - assert workflow_sdk_span.parent.span_id == client_sdk_trace_span.context.span_id, ( - "Workflow SDK span should be child of Client SDK trace" - ) - - assert direct_otel_span.parent is not None, "Direct OTEL span should have a parent" - assert workflow_sdk_span.context is not None, ( - "Workflow SDK span should have context" - ) - assert direct_otel_span.parent.span_id == workflow_sdk_span.context.span_id, ( - "Direct OTEL span should be child of Workflow SDK span" - ) - - # Verify all spans belong to the same trace - assert workflow_sdk_span.context is not None, ( - "Workflow SDK span should have context" - ) - assert direct_otel_span.context is not None, "Direct OTEL span should have context" - assert ( - client_sdk_trace_span.context.trace_id - == workflow_sdk_span.context.trace_id - == direct_otel_span.context.trace_id - ), "All spans should belong to the same trace" - - # Verify all spans have unique IDs - span_ids = [span.context.span_id for span in spans if span.context] - assert len(span_ids) == len(set(span_ids)), ( - f"All spans should have unique IDs, got: {span_ids}" - ) diff --git a/tests/contrib/opentelemetry/test_logger_provider.py b/tests/contrib/opentelemetry/test_logger_provider.py index f26f8b508..400802a17 100644 --- a/tests/contrib/opentelemetry/test_logger_provider.py +++ b/tests/contrib/opentelemetry/test_logger_provider.py @@ -1,10 +1,11 @@ """Unit tests for ReplaySafeLoggerProvider.""" -from collections.abc import Iterator +from collections.abc import Iterator, Mapping from contextlib import contextmanager from typing import Any from unittest.mock import patch +import pytest from opentelemetry._logs import ( Logger, LoggerProvider, @@ -17,7 +18,6 @@ InMemoryLogRecordExporter, SimpleLogRecordProcessor, ) -from opentelemetry.util.types import _ExtendedAttributes from temporalio import workflow from temporalio.contrib.opentelemetry import ReplaySafeLoggerProvider @@ -45,7 +45,13 @@ def test_replay_safe_logger_provider_emit_passes_through_outside_workflow(): assert records[1].attributes and dict(records[1].attributes) == {"attr": "val"} -def test_replay_safe_logger_provider_delegates_get_logger_arguments(): +@pytest.mark.parametrize( + "attributes", + [None, {"attr": "val"}, {"nested": {"values": [1, b"bytes", None]}}], +) +def test_replay_safe_logger_provider_delegates_get_logger_arguments( + attributes: Mapping[str, Any] | None, +): class RecordingLoggerProvider(LoggerProvider): def __init__(self) -> None: self.calls: list[tuple] = [] @@ -56,7 +62,7 @@ def get_logger( name: str, version: str | None = None, schema_url: str | None = None, - attributes: _ExtendedAttributes | None = None, + attributes: Mapping[str, Any] | None = None, ) -> Logger: self.calls.append((name, version, schema_url, attributes)) return self._inner.get_logger(name, version, schema_url, attributes) @@ -67,11 +73,11 @@ def get_logger( "test-logger", version="1.2.3", schema_url="https://example.com/schema", - attributes={"attr": "val"}, + attributes=attributes, ) assert inner_provider.calls == [ - ("test-logger", "1.2.3", "https://example.com/schema", {"attr": "val"}) + ("test-logger", "1.2.3", "https://example.com/schema", attributes) ] @@ -154,6 +160,73 @@ def test_replay_safe_logger_provider_emits_from_live_operations_during_replay(): assert [(r.event_name, r.body) for r in records] == [("live-query", "kept")] +class _EnabledLogger(NoOpLogger): + def __init__(self) -> None: + super().__init__("enabled-logger") + self.enabled_calls: list[dict[str, Any]] = [] + + def enabled(self, **kwargs: Any) -> bool: + self.enabled_calls.append(kwargs) + return True + + +class _EnabledLoggerProvider(NoOpLoggerProvider): + def __init__(self) -> None: + self.logger = _EnabledLogger() + + def get_logger(self, *args: Any, **kwargs: Any) -> Logger: # type: ignore[override] + return self.logger + + +def test_replay_safe_logger_provider_delegates_enabled_outside_workflow(): + inner_provider = _EnabledLoggerProvider() + logger: Any = ReplaySafeLoggerProvider(inner_provider).get_logger("test-logger") + + assert logger.enabled(event_name="event") + assert inner_provider.logger.enabled_calls == [{"event_name": "event"}] + + +def test_replay_safe_logger_provider_disabled_replaying_history_events(): + """Callers that check enabled() before building a record must skip it + during replay, since emit() would drop it.""" + inner_provider = _EnabledLoggerProvider() + logger: Any = ReplaySafeLoggerProvider(inner_provider).get_logger("test-logger") + + with _workflow_replay_state(replaying_history_events=True): + assert not logger.enabled(event_name="event") + assert not inner_provider.logger.enabled_calls + + +def test_replay_safe_logger_provider_enabled_for_live_operations_during_replay(): + inner_provider = _EnabledLoggerProvider() + logger: Any = ReplaySafeLoggerProvider(inner_provider).get_logger("test-logger") + + with _workflow_replay_state(replaying_history_events=False): + assert logger.enabled(event_name="live-query") + assert inner_provider.logger.enabled_calls == [{"event_name": "live-query"}] + + +def test_replay_safe_logger_provider_enabled_without_inner_enabled(): + """Loggers from opentelemetry-api before 1.45 have no enabled(), so + callers that probe for it must not get an AttributeError.""" + + class LoggerWithoutEnabled: + def emit(self, *_args: Any, **_kwargs: Any) -> None: + pass + + class LoggerWithoutEnabledProvider(NoOpLoggerProvider): + def get_logger(self, *args: Any, **kwargs: Any) -> Any: # type: ignore[override] + return LoggerWithoutEnabled() + + logger: Any = ReplaySafeLoggerProvider(LoggerWithoutEnabledProvider()).get_logger( + "test-logger" + ) + + assert logger.enabled() + with _workflow_replay_state(replaying_history_events=True): + assert not logger.enabled() + + def test_replay_safe_logger_provider_delegates_other_attributes(): provider, _ = _sdk_provider() assert provider.force_flush() diff --git a/tests/contrib/opentelemetry/test_metrics_exporter.py b/tests/contrib/opentelemetry/test_metrics_exporter.py new file mode 100644 index 000000000..0f228216a --- /dev/null +++ b/tests/contrib/opentelemetry/test_metrics_exporter.py @@ -0,0 +1,240 @@ +from __future__ import annotations + +import asyncio +from typing import Any + +import pytest +from opentelemetry.sdk.metrics import MeterProvider +from opentelemetry.sdk.metrics.export import InMemoryMetricReader + +from temporalio.contrib.opentelemetry import MetricsExporter +from temporalio.runtime import MetricBuffer, Runtime, TelemetryConfig + + +def _make_runtime_and_exporter( + **telemetry_kwargs: Any, +) -> tuple[Runtime, MetricBuffer, MeterProvider, InMemoryMetricReader, MetricsExporter]: + buffer = MetricBuffer(10_000) + runtime = Runtime( + telemetry=TelemetryConfig( + metrics=buffer, attach_service_name=False, **telemetry_kwargs + ) + ) + reader = InMemoryMetricReader() + meter_provider = MeterProvider(metric_readers=[reader]) + exporter = MetricsExporter(buffer, meter_provider) + return runtime, buffer, meter_provider, reader, exporter + + +def _collect_metrics_by_name(reader: InMemoryMetricReader) -> dict[str, Any]: + data = reader.get_metrics_data() + result: dict[str, Any] = {} + if not data: + return result + for resource_metrics in data.resource_metrics: + for scope_metrics in resource_metrics.scope_metrics: + for metric in scope_metrics.metrics: + result[metric.name] = metric + return result + + +async def test_metrics_exporter_counter(): + runtime, _, _, reader, exporter = _make_runtime_and_exporter() + + counter = runtime.metric_meter.create_counter( + "my-counter", "my-counter-desc", "my-counter-unit" + ) + counter.add(100) + counter.with_additional_attributes({"foo": "bar"}).add(200) + + exporter._drain_once() + + metrics = _collect_metrics_by_name(reader) + assert "my-counter" in metrics + metric = metrics["my-counter"] + assert metric.description == "my-counter-desc" + assert metric.unit == "my-counter-unit" + points = { + tuple(sorted(p.attributes.items())): p.value for p in metric.data.data_points + } + assert points[()] == 100 + assert points[(("foo", "bar"),)] == 200 + + # Draining again with no new adds should not change values (counters + # accumulate deltas across drains, not reset). + exporter._drain_once() + metrics = _collect_metrics_by_name(reader) + points = { + tuple(sorted(p.attributes.items())): p.value + for p in metrics["my-counter"].data.data_points + } + assert points[()] == 100 + assert points[(("foo", "bar"),)] == 200 + + # More adds accumulate on top. + counter.add(50) + exporter._drain_once() + metrics = _collect_metrics_by_name(reader) + points = { + tuple(sorted(p.attributes.items())): p.value + for p in metrics["my-counter"].data.data_points + } + assert points[()] == 150 + + +async def test_metrics_exporter_gauge_reflects_latest_value(): + runtime, _, _, reader, exporter = _make_runtime_and_exporter() + + gauge = runtime.metric_meter.create_gauge_float("my-gauge") + gauge.set(1.5) + exporter._drain_once() + + metrics = _collect_metrics_by_name(reader) + points = list(metrics["my-gauge"].data.data_points) + assert len(points) == 1 + assert points[0].value == 1.5 + + # Setting a new value should replace, not add to, the prior one. + gauge.set(9.5) + exporter._drain_once() + metrics = _collect_metrics_by_name(reader) + points = list(metrics["my-gauge"].data.data_points) + assert len(points) == 1 + assert points[0].value == 9.5 + + +async def test_metrics_exporter_histogram(): + runtime, _, _, reader, exporter = _make_runtime_and_exporter() + + histogram = runtime.metric_meter.create_histogram_float("my-histogram") + histogram.record(1.0) + histogram.record(2.0) + histogram.record(3.0) + exporter._drain_once() + + metrics = _collect_metrics_by_name(reader) + points = list(metrics["my-histogram"].data.data_points) + assert len(points) == 1 + assert points[0].count == 3 + assert points[0].sum == 6.0 + + +async def test_metrics_exporter_attributes_passthrough(): + runtime, _, _, reader, exporter = _make_runtime_and_exporter() + + counter = runtime.metric_meter.create_counter("attrs-counter") + counter.with_additional_attributes({"foo": "bar", "baz": 123}).add(1) + exporter._drain_once() + + metrics = _collect_metrics_by_name(reader) + points = list(metrics["attrs-counter"].data.data_points) + assert len(points) == 1 + assert dict(points[0].attributes) == {"foo": "bar", "baz": 123} + + +async def test_metrics_exporter_instruments_created_per_call(): + runtime, _, _, reader, exporter = _make_runtime_and_exporter() + + # Like an activity that creates its instruments on each call: each call + # brings new metric and attribute objects, and a cache keyed by id() that + # doesn't hold them would see their ids reused. + calls = [("model-a", 100, 900), ("model-b", 7, 40), ("model-c", 55, 300)] + for model, tokens, latency_ms in calls: + meter = runtime.metric_meter.with_additional_attributes({"model": model}) + meter.create_counter("tokens").add(tokens) + meter.create_histogram("latency").record(latency_ms) + meter.create_gauge("last-tokens").set(tokens) + exporter._drain_once() + + metrics = _collect_metrics_by_name(reader) + tokens_by_model = {model: tokens for model, tokens, _ in calls} + assert { + p.attributes["model"]: p.value for p in metrics["tokens"].data.data_points + } == tokens_by_model + assert { + p.attributes["model"]: p.value for p in metrics["last-tokens"].data.data_points + } == tokens_by_model + assert { + p.attributes["model"]: (p.count, p.sum) + for p in metrics["latency"].data.data_points + } == {model: (1, latency_ms) for model, _, latency_ms in calls} + + +async def test_metrics_exporter_buffer_not_attached_raises(): + unattached_buffer = MetricBuffer(10_000) + reader = InMemoryMetricReader() + meter_provider = MeterProvider(metric_readers=[reader]) + exporter = MetricsExporter(unattached_buffer, meter_provider) + + with pytest.raises(RuntimeError): + exporter._drain_once() + + with pytest.raises(RuntimeError): + await exporter.run() + + +async def test_metrics_exporter_run_shutdown_lifecycle(): + from datetime import timedelta + + runtime, _, _, reader, exporter = _make_runtime_and_exporter() + exporter._poll_interval = timedelta(milliseconds=10) + + counter = runtime.metric_meter.create_counter("lifecycle-counter") + + async with exporter: + counter.add(42) + # Give the background poller a couple of cycles to drain. + await asyncio.sleep(0.2) + + metrics = _collect_metrics_by_name(reader) + points = list(metrics["lifecycle-counter"].data.data_points) + assert points[0].value == 42 + + # After exit, the background task must actually be done (not leaked). + assert exporter._run_task is not None + assert exporter._run_task.done() + + +async def test_metrics_exporter_shutdown_before_run_starts_does_not_hang(): + # __aenter__ only schedules run() via ensure_future; it doesn't run it. + # If the `async with` body never suspends, __aexit__ can call shutdown() + # (setting the shutdown event) before the run() task has executed at + # all. run() must still notice that pending shutdown on its first loop + # check instead of clearing the event and polling forever. + _, _, _, _, exporter = _make_runtime_and_exporter() + + async def enter_and_exit_immediately() -> None: + async with exporter: + pass + + await asyncio.wait_for(enter_and_exit_immediately(), timeout=5) + + assert exporter._run_task is not None + assert exporter._run_task.done() + + +async def test_metrics_exporter_error_in_one_update_does_not_block_others(): + runtime, _, _, reader, exporter = _make_runtime_and_exporter() + + good_counter = runtime.metric_meter.create_counter("good-counter") + bad_counter = runtime.metric_meter.create_counter("bad-counter") + good_counter.add(1) + bad_counter.add(1) + + errors: list[Exception] = [] + exporter._on_error = errors.append + + original_apply_update = exporter._apply_update + + def flaky_apply_update(update: Any) -> None: + if update.metric.name == "bad-counter": + raise ValueError("simulated failure applying bad-counter") + original_apply_update(update) + + exporter._apply_update = flaky_apply_update # type: ignore[method-assign] + exporter._drain_once() + + assert len(errors) == 1 + metrics = _collect_metrics_by_name(reader) + assert "good-counter" in metrics + assert "bad-counter" not in metrics diff --git a/tests/contrib/opentelemetry/test_opentelemetry.py b/tests/contrib/opentelemetry/test_opentelemetry.py index 1bab931ac..88fd2b4a7 100644 --- a/tests/contrib/opentelemetry/test_opentelemetry.py +++ b/tests/contrib/opentelemetry/test_opentelemetry.py @@ -1,20 +1,22 @@ from __future__ import annotations import asyncio +import contextvars import gc import logging import queue import threading import uuid from collections.abc import Callable, Generator, Iterable -from concurrent.futures import ThreadPoolExecutor +from concurrent.futures import Future, ThreadPoolExecutor from contextlib import contextmanager from dataclasses import dataclass from datetime import timedelta -from typing import Any, cast +from typing import Any, ParamSpec, TypeVar, cast import nexusrpc import opentelemetry.context +import opentelemetry.trace import pytest from opentelemetry import baggage, context from opentelemetry.sdk.trace import ReadableSpan, TracerProvider @@ -26,17 +28,30 @@ from temporalio.client import Client, WithStartWorkflowOperation, WorkflowUpdateStage from temporalio.common import RetryPolicy, WorkflowIDConflictPolicy from temporalio.contrib.opentelemetry import ( + OpenTelemetryInterceptor, TracingInterceptor, TracingWorkflowInboundInterceptor, + create_tracer_provider, ) +from temporalio.contrib.opentelemetry import _context as otel_context from temporalio.contrib.opentelemetry import workflow as otel_workflow +from temporalio.contrib.opentelemetry._otel_interceptor import ( + _TracingWorkflowInboundInterceptor as _OtelTracingWorkflowInboundInterceptor, +) from temporalio.exceptions import ( ApplicationError, ApplicationErrorCategory, NexusOperationError, ) from temporalio.testing import WorkflowEnvironment -from temporalio.worker import UnsandboxedWorkflowRunner, Worker +from temporalio.worker import ( + ExecuteWorkflowInput, + Interceptor, + UnsandboxedWorkflowRunner, + Worker, + WorkflowInboundInterceptor, + WorkflowInterceptorClassInput, +) from tests.helpers import LogCapturer from tests.helpers.nexus import make_nexus_endpoint_name @@ -88,6 +103,34 @@ class TracingWorkflowActionActivity: fail_on_non_replay_before_complete: bool = False +@workflow.defn +class SignalWithStartHeaderWorkflow: + def __init__(self) -> None: + self._signaled = False + + @workflow.run + async def run(self) -> bool: + await workflow.wait_condition(lambda: self._signaled) + return "_tracer-data" in workflow.info().headers + + @workflow.signal + def notify(self) -> None: + self._signaled = True + + +@workflow.defn +class SignalWithStartCallerWorkflow: + @workflow.run + async def run(self, target_id: str, task_queue: str) -> str: + handle = await workflow.signal_with_start_workflow( + SignalWithStartHeaderWorkflow.run, + id=target_id, + task_queue=task_queue, + signal=SignalWithStartHeaderWorkflow.notify, + ) + return handle.id + + @dataclass class TracingWorkflowActionContinueAsNew: param: TracingWorkflowParam @@ -229,9 +272,44 @@ def update_validator(self) -> None: pass +@pytest.mark.requires_local_server +async def test_workflow_signal_with_start_propagates_trace_headers( + client: Client, env: WorkflowEnvironment +): + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + provider = TracerProvider() + exporter = InMemorySpanExporter() + provider.add_span_processor(SimpleSpanProcessor(exporter)) + tracer = get_tracer(__name__, tracer_provider=provider) + config = client.config() + config["interceptors"] = [TracingInterceptor(tracer)] + client = Client(**config) + + async with Worker( + client, + task_queue=f"signal-with-start-{uuid.uuid4()}", + workflows=[SignalWithStartCallerWorkflow, SignalWithStartHeaderWorkflow], + workflow_runner=UnsandboxedWorkflowRunner(), + ) as worker: + target_id = f"signal-with-start-target-{uuid.uuid4()}" + with tracer.start_as_current_span("signal-with-start"): + caller = await client.start_workflow( + SignalWithStartCallerWorkflow.run, + args=[target_id, worker.task_queue], + id=f"signal-with-start-caller-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + assert await caller.result() == target_id + assert await client.get_workflow_handle(target_id).result() is True + assert any( + span.name == "SignalWithStartWorkflow" for span in exporter.get_finished_spans() + ) + + async def test_opentelemetry_tracing(client: Client, env: WorkflowEnvironment): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1424" ) @@ -367,7 +445,7 @@ async def test_opentelemetry_tracing(client: Client, env: WorkflowEnvironment): async def test_opentelemetry_tracing_update_with_start( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1424" ) @@ -459,7 +537,7 @@ async def test_opentelemetry_tracing_update_with_start( @pytest.mark.requires_local_server async def test_opentelemetry_tracing_nexus(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1424" ) @@ -853,54 +931,45 @@ async def test_opentelemetry_context_restored_after_activity( client_with_tracing: Client, activity: Callable[[], None], expect_failure: bool, + monkeypatch: pytest.MonkeyPatch, ) -> None: - attach_count = 0 - detach_count = 0 - original_attach = context.attach - original_detach = context.detach - - def tracked_attach(ctx): # type:ignore[reportMissingParameterType] - nonlocal attach_count - attach_count += 1 - return original_attach(ctx) - - def tracked_detach(token): # type:ignore[reportMissingParameterType] - nonlocal detach_count - detach_count += 1 - return original_detach(token) + # Every context the interceptors attach must be detached again, also when + # the activity raises. Counting through the interceptors' own detach keeps + # this independent of other users of opentelemetry.context, such as the + # threading instrumentation's attach/detach around every thread's run(). + detached: list[bool] = [] + original_detach = otel_context._detach - context.attach = tracked_attach - context.detach = tracked_detach + def tracked_detach(ctx: Any, token: Any) -> bool: + result = original_detach(ctx, token) + detached.append(result) + return result - try: - task_queue = f"task_queue_{uuid.uuid4()}" - async with Worker( - client_with_tracing, - task_queue=task_queue, - workflows=[ContextClearWorkflow], - activities=[activity], - ): - with baggage_values({"user.id": "test-123"}): - try: - await client_with_tracing.execute_workflow( - ContextClearWorkflow.run, - id=f"workflow_{uuid.uuid4()}", - task_queue=task_queue, - ) - assert not expect_failure, ( - "This test should have raised an exception" - ) - except Exception: - assert expect_failure, "This test is not expeced to raise" + monkeypatch.setattr(otel_context, "_detach", tracked_detach) - assert attach_count == detach_count, ( - f"Context leak detected: {attach_count} attaches vs {detach_count} detaches. " - ) - assert attach_count > 0, "Expected at least one context attach/detach" - - finally: - context.attach = original_attach - context.detach = original_detach + task_queue = f"task_queue_{uuid.uuid4()}" + async with Worker( + client_with_tracing, + task_queue=task_queue, + workflows=[ContextClearWorkflow], + activities=[activity], + ): + with baggage_values({"user.id": "test-123"}): + try: + await client_with_tracing.execute_workflow( + ContextClearWorkflow.run, + id=f"workflow_{uuid.uuid4()}", + task_queue=task_queue, + ) + assert not expect_failure, "This test should have raised an exception" + except Exception: + assert expect_failure, "This test is not expeced to raise" + + assert detached, "Expected at least one context attach/detach" + assert all(detached), ( + f"Context leak detected: {detached.count(False)} of {len(detached)} " + "attached contexts were not detached" + ) @activity.defn @@ -948,7 +1017,7 @@ async def test_opentelemetry_interceptor_works_if_no_context( async def test_opentelemetry_standalone_activity_tracing( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -989,7 +1058,7 @@ async def test_opentelemetry_standalone_activity_tracing( assert start_activity_span.attributes["temporalActivityType"] == "tracing_activity" -def test_opentelemetry_safe_detach(): +def _v1_workflow_context(success_is_complete: bool = True) -> Any: class _fake_self: def _load_workflow_context_carrier(*_args): return None @@ -1000,11 +1069,25 @@ def _set_on_context(self, ctx: Any): def _completed_span(*args: Any, **_kwargs: Any): pass - # create a context manager and force enter to happen on this thread - context_manager = TracingWorkflowInboundInterceptor._top_level_workflow_context( + return TracingWorkflowInboundInterceptor._top_level_workflow_context( _fake_self(), # type: ignore - success_is_complete=True, + success_is_complete=success_is_complete, + ) + + +def _v2_workflow_context() -> Any: + class _fake_input: + headers: dict[str, Any] = {} + + return _OtelTracingWorkflowInboundInterceptor._top_level_workflow_context( + object(), # type: ignore + _fake_input(), # type: ignore ) + + +def _assert_context_detach_is_safe(make_context_manager: Callable[[], Any]) -> None: + # create a context manager and force enter to happen on this thread + context_manager = make_context_manager() context_manager.__enter__() # move reference to context manager into queue @@ -1034,3 +1117,167 @@ def otel_context_error(record: logging.LogRecord) -> bool: assert capturer.find(otel_context_error) is None, ( "Detach from context message should not be logged" ) + + +@pytest.mark.parametrize( + "make_context_manager", + [_v1_workflow_context, _v2_workflow_context], + ids=["TracingInterceptor", "OpenTelemetryInterceptor"], +) +@pytest.mark.parametrize( + "threading_instrumented", [False, True], ids=["plain", "threading-instrumented"] +) +def test_opentelemetry_safe_detach( + make_context_manager: Callable[[], Any], threading_instrumented: bool +): + if not threading_instrumented: + _assert_context_detach_is_safe(make_context_manager) + return + # OpenTelemetry's threading instrumentation (strands turns it on when an + # Agent is created) propagates the current Context object into new + # threads, so a context-identity check alone would detach a token minted + # on another thread. + threading_instrumentation = pytest.importorskip( + "opentelemetry.instrumentation.threading" + ) + instrumentor = threading_instrumentation.ThreadingInstrumentor() + already_instrumented = instrumentor.is_instrumented_by_opentelemetry + if not already_instrumented: + instrumentor.instrument() + try: + _assert_context_detach_is_safe(make_context_manager) + finally: + if not already_instrumented: + instrumentor.uninstrument() + + +def _run_in_context_on_new_thread( + ctx: contextvars.Context, fn: Callable[[], Any] +) -> Any: + with ThreadPoolExecutor(max_workers=1) as pool: + return pool.submit(ctx.run, fn).result(timeout=5) + + +@pytest.mark.parametrize( + "make_context_manager", + [lambda: _v1_workflow_context(success_is_complete=False), _v2_workflow_context], + ids=["TracingInterceptor", "OpenTelemetryInterceptor"], +) +def test_opentelemetry_detach_after_thread_change( + make_context_manager: Callable[[], Any], +): + # Workflow activations run on a thread pool, so the asyncio task that + # entered one of these context managers can leave it on another thread + # while keeping the same contextvars.Context. The token is valid there and + # the detach must restore the outer context. + task_context = contextvars.copy_context() + outer = opentelemetry.context.set_value("outer", True) + task_context.run(opentelemetry.context.attach, outer) + context_manager = make_context_manager() + + _run_in_context_on_new_thread(task_context, context_manager.__enter__) + assert task_context.run(opentelemetry.context.get_current) is not outer + _run_in_context_on_new_thread( + task_context, lambda: context_manager.__exit__(None, None, None) + ) + assert task_context.run(opentelemetry.context.get_current) is outer + + +_P = ParamSpec("_P") +_T = TypeVar("_T") + + +class _AlternatingThreadExecutor(ThreadPoolExecutor): + """Runs each submission on a different thread than the one before it, the + way successive activations of a workflow can land on different pool + threads under load.""" + + def __init__(self) -> None: + super().__init__(max_workers=1) + self._pools = [ThreadPoolExecutor(max_workers=1) for _ in range(2)] + self._submissions = 0 + + def submit( + self, fn: Callable[_P, _T], /, *args: _P.args, **kwargs: _P.kwargs + ) -> Future[_T]: + pool = self._pools[self._submissions % len(self._pools)] + self._submissions += 1 + return pool.submit(fn, *args, **kwargs) + + def shutdown(self, wait: bool = True, *, cancel_futures: bool = False) -> None: + for pool in self._pools: + pool.shutdown(wait, cancel_futures=cancel_futures) + super().shutdown(wait, cancel_futures=cancel_futures) + + +@workflow.defn +class TimerWorkflow: + @workflow.run + async def run(self) -> None: + # Two activations: the start, and the timer firing. + await asyncio.sleep(0.01) + + +@pytest.mark.parametrize( + "make_interceptor", + [lambda: TracingInterceptor(get_tracer(__name__)), OpenTelemetryInterceptor], + ids=["TracingInterceptor", "OpenTelemetryInterceptor"], +) +async def test_opentelemetry_context_restored_after_activation_thread_change( + client: Client, + make_interceptor: Callable[[], Interceptor], + reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] +): + # OpenTelemetryInterceptor insists on a replay-safe global provider. + opentelemetry.trace.set_tracer_provider(create_tracer_provider()) + records: list[tuple[threading.Thread, threading.Thread, bool]] = [] + + class ContextRestoredWorkflowInboundInterceptor(WorkflowInboundInterceptor): + async def execute_workflow(self, input: ExecuteWorkflowInput) -> Any: + entered_on = threading.current_thread() + before = opentelemetry.context.get_current() + result = await super().execute_workflow(input) + records.append( + ( + entered_on, + threading.current_thread(), + opentelemetry.context.get_current() is before, + ) + ) + return result + + class ContextRestoredInterceptor(Interceptor): + def workflow_interceptor_class( + self, input: WorkflowInterceptorClassInput + ) -> type[WorkflowInboundInterceptor] | None: + return ContextRestoredWorkflowInboundInterceptor + + executor = _AlternatingThreadExecutor() + try: + async with Worker( + client, + task_queue=f"task_queue_{uuid.uuid4()}", + workflows=[TimerWorkflow], + # The first interceptor is the outermost, so it sees whatever the + # tracing interceptor leaves attached. + interceptors=[ContextRestoredInterceptor(), make_interceptor()], + workflow_task_executor=executor, + workflow_runner=UnsandboxedWorkflowRunner(), + ) as worker: + await client.execute_workflow( + TimerWorkflow.run, + id=f"workflow_{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + finally: + executor.shutdown() + + assert len(records) == 1 + entered_on, left_on, context_restored = records[0] + assert entered_on is not left_on, ( + "The workflow was expected to change threads between its activations" + ) + assert context_restored, ( + "The tracing interceptor must detach its context even though the " + "workflow left it on a different thread than it entered on" + ) diff --git a/tests/contrib/opentelemetry/test_opentelemetry_plugin.py b/tests/contrib/opentelemetry/test_opentelemetry_plugin.py index 12d0c5972..74d461904 100644 --- a/tests/contrib/opentelemetry/test_opentelemetry_plugin.py +++ b/tests/contrib/opentelemetry/test_opentelemetry_plugin.py @@ -1,7 +1,5 @@ import logging -import threading import uuid -from concurrent.futures import ThreadPoolExecutor from datetime import timedelta from typing import Any @@ -12,64 +10,34 @@ from opentelemetry.sdk.trace.export.in_memory_span_exporter import ( InMemorySpanExporter, ) -from opentelemetry.sdk.trace.id_generator import RandomIdGenerator from opentelemetry.trace import ( get_tracer, ) import temporalio.contrib.opentelemetry.workflow +import temporalio.worker._workflow_instance from temporalio import activity, nexus, workflow -from temporalio.client import Client, WorkflowFailureError +from temporalio.api.common.v1 import WorkflowExecution +from temporalio.api.enums.v1 import EventType, ResetReapplyType +from temporalio.api.workflowservice.v1 import ResetWorkflowExecutionRequest +from temporalio.client import ( + Client, + WorkflowFailureError, + WorkflowQueryFailedError, + WorkflowUpdateFailedError, +) from temporalio.contrib.opentelemetry import OpenTelemetryPlugin, create_tracer_provider -from temporalio.contrib.opentelemetry._id_generator import TemporalIdGenerator from temporalio.exceptions import ApplicationError from temporalio.testing import WorkflowEnvironment # Import the dump_spans function from the original opentelemetry test from tests.contrib.opentelemetry.test_opentelemetry import dump_spans -from tests.helpers import new_worker +from tests.helpers import assert_eventually, new_worker from tests.helpers.nexus import make_nexus_endpoint_name logger = logging.getLogger(__name__) -@pytest.mark.parametrize( - ("seed_method", "generate_method"), - [ - ("seed_span_id", "generate_span_id"), - ("seed_trace_id", "generate_trace_id"), - ], -) -def test_temporal_id_generator_seeds_are_context_local( - seed_method: str, generate_method: str -) -> None: - generator = TemporalIdGenerator(RandomIdGenerator()) - first_seeded = threading.Event() - second_seeded = threading.Event() - first_generated = threading.Event() - seed_values = (123, 456) - - def generate_first() -> int: - getattr(generator, seed_method)(seed_values[0]) - first_seeded.set() - assert second_seeded.wait(timeout=5) - generated = getattr(generator, generate_method)() - first_generated.set() - return generated - - def generate_second() -> int: - assert first_seeded.wait(timeout=5) - getattr(generator, seed_method)(seed_values[1]) - second_seeded.set() - assert first_generated.wait(timeout=5) - return getattr(generator, generate_method)() - - with ThreadPoolExecutor(max_workers=2) as executor: - first = executor.submit(generate_first) - second = executor.submit(generate_second) - assert (first.result(), second.result()) == seed_values - - @activity.defn async def simple_no_context_activity() -> str: with get_tracer(__name__).start_as_current_span("Activity"): @@ -122,6 +90,34 @@ async def run(self): return +@workflow.defn +class SignalWithStartHeaderWorkflow: + def __init__(self) -> None: + self._signaled = False + + @workflow.run + async def run(self) -> bool: + await workflow.wait_condition(lambda: self._signaled) + return "_tracer-data" in workflow.info().headers + + @workflow.signal + def notify(self) -> None: + self._signaled = True + + +@workflow.defn +class SignalWithStartCallerWorkflow: + @workflow.run + async def run(self, target_id: str, task_queue: str) -> str: + handle = await workflow.signal_with_start_workflow( + SignalWithStartHeaderWorkflow.run, + id=target_id, + task_queue=task_queue, + signal=SignalWithStartHeaderWorkflow.notify, + ) + return handle.id + + async def test_otel_tracing_basic(client: Client, reset_otel_tracer_provider: Any): # type: ignore[reportUnusedParameter] exporter = InMemorySpanExporter() provider = create_tracer_provider() @@ -169,6 +165,41 @@ async def test_otel_tracing_basic(client: Client, reset_otel_tracer_provider: An ) +@pytest.mark.requires_local_server +async def test_workflow_signal_with_start_propagates_trace_headers( + client: Client, + env: WorkflowEnvironment, + reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] +): + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + exporter = InMemorySpanExporter() + provider = create_tracer_provider() + provider.add_span_processor(SimpleSpanProcessor(exporter)) + opentelemetry.trace.set_tracer_provider(provider) + config = client.config() + config["plugins"] = [OpenTelemetryPlugin(add_temporal_spans=True)] + client = Client(**config) + + async with new_worker( + client, SignalWithStartCallerWorkflow, SignalWithStartHeaderWorkflow + ) as worker: + target_id = f"signal-with-start-target-{uuid.uuid4()}" + with get_tracer(__name__).start_as_current_span("signal-with-start"): + caller = await client.start_workflow( + SignalWithStartCallerWorkflow.run, + args=[target_id, worker.task_queue], + id=f"signal-with-start-caller-{uuid.uuid4()}", + task_queue=worker.task_queue, + execution_timeout=timedelta(seconds=3), + ) + assert await caller.result() == target_id + assert await client.get_workflow_handle(target_id).result() is True + assert any( + span.name == "SignalWithStartWorkflow" for span in exporter.get_finished_spans() + ) + + @workflow.defn class ComprehensiveWorkflow: def __init__(self) -> None: @@ -281,7 +312,7 @@ async def test_opentelemetry_comprehensive_tracing( reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] ): """Test OpenTelemetry v2 integration across all workflow operations.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Fails on java test server.") exporter = InMemorySpanExporter() @@ -614,7 +645,7 @@ async def test_otel_standalone_activity_tracing( env: WorkflowEnvironment, reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -689,3 +720,172 @@ def test_replay_safe_span_delegates_extra_attributes(): _ = wrapper.nonexistent_attribute_xyz inner_span.end() + + +@workflow.defn +class RejectingHandlersWorkflow: + def __init__(self) -> None: + self._value: int | None = None + + @workflow.run + async def run(self) -> int | None: + await workflow.wait_condition(lambda: self._value is not None) + return self._value + + @workflow.update + def set_value(self, value: int) -> None: + self._value = value + + @set_value.validator + def validate_set_value(self, value: int) -> None: + if value < 0: + raise ValueError("value must not be negative") + + @workflow.query + def failing_query(self) -> str: + raise ValueError("query failed") + + +async def test_otel_tracing_rejected_update_and_failed_query( + client: Client, + reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] +): + exporter = InMemorySpanExporter() + provider = create_tracer_provider() + provider.add_span_processor(SimpleSpanProcessor(exporter)) + opentelemetry.trace.set_tracer_provider(provider) + + new_config = client.config() + new_config["plugins"] = [OpenTelemetryPlugin(add_temporal_spans=True)] + new_client = Client(**new_config) + + async with new_worker(new_client, RejectingHandlersWorkflow) as worker: + handle = await new_client.start_workflow( + RejectingHandlersWorkflow.run, + id=f"rejecting-handlers-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + with pytest.raises(WorkflowUpdateFailedError): + await handle.execute_update(RejectingHandlersWorkflow.set_value, -1) + with pytest.raises(WorkflowQueryFailedError): + await handle.query(RejectingHandlersWorkflow.failing_query) + await handle.execute_update(RejectingHandlersWorkflow.set_value, 1) + assert await handle.result() == 1 + + spans = exporter.get_finished_spans() + + # The rejected update and the failed query are still traced + expected_hierarchy = [ + "StartWorkflow:RejectingHandlersWorkflow", + " RunWorkflow:RejectingHandlersWorkflow", + "StartWorkflowUpdate:set_value", + " ValidateUpdate:set_value", + "QueryWorkflow:failing_query", + " HandleQuery:failing_query", + "StartWorkflowUpdate:set_value", + " ValidateUpdate:set_value", + " HandleUpdate:set_value", + ] + actual_hierarchy = dump_spans(spans, with_attributes=False) + assert actual_hierarchy == expected_hierarchy, ( + f"Span hierarchy mismatch.\nExpected:\n{expected_hierarchy}\nActual:\n{actual_hierarchy}" + ) + failed_spans = [ + span + for span in spans + if span.name in ("ValidateUpdate:set_value", "HandleQuery:failing_query") + and span.status.status_code == opentelemetry.trace.StatusCode.ERROR + ] + assert len(failed_spans) == 2 + + +@workflow.defn +class ResetReapplyUpdateWorkflow: + def __init__(self) -> None: + self._approved = False + + @workflow.run + async def run(self) -> str: + await workflow.execute_activity( + simple_no_context_activity, start_to_close_timeout=timedelta(seconds=10) + ) + await workflow.wait_condition(lambda: self._approved) + return "done" + + @workflow.update + async def approve(self) -> None: + self._approved = True + + +async def test_otel_tracing_reset_reapplied_update_span_id( + client: Client, + env: WorkflowEnvironment, + reset_otel_tracer_provider: Any, # type: ignore[reportUnusedParameter] +): + """A reapplied update after a reset must not reuse another span's ID. + + The random seed update arrives in the same activation as the reapplied + update, so the handler must only run once the new seed is applied. + """ + if env.supports_time_skipping_v1: + pytest.skip("Java test server doesn't support reset") + + exporter = InMemorySpanExporter() + provider = create_tracer_provider() + provider.add_span_processor(SimpleSpanProcessor(exporter)) + opentelemetry.trace.set_tracer_provider(provider) + + new_config = client.config() + new_config["plugins"] = [OpenTelemetryPlugin(add_temporal_spans=True)] + new_client = Client(**new_config) + + worker = new_worker( + new_client, + ResetReapplyUpdateWorkflow, + activities=[simple_no_context_activity], + max_cached_workflows=0, + ) + worker._set_default_workflow_logic_flag( + temporalio.worker._workflow_instance._WorkflowLogicFlag.PROCESS_WORKFLOW_ACTIVATION_JOBS_AS_SINGLE_BATCH, + enabled=True, + ) + async with worker: + handle = await new_client.start_workflow( + ResetReapplyUpdateWorkflow.run, + id=f"otel-reset-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + # Let the first workflow task complete before sending the update so the + # original run handles the update in a later task. + async def first_task_completed() -> int: + async for event in handle.fetch_history_events(): + if event.event_type is EventType.EVENT_TYPE_WORKFLOW_TASK_COMPLETED: + return event.event_id + raise AssertionError("First workflow task has not completed") + + reset_point = await assert_eventually(first_task_completed) + await handle.execute_update(ResetReapplyUpdateWorkflow.approve) + assert await handle.result() == "done" + + # Reset to the first workflow task, reapplying the update. + await new_client.workflow_service.reset_workflow_execution( + ResetWorkflowExecutionRequest( + namespace=new_client.namespace, + workflow_execution=WorkflowExecution(workflow_id=handle.id), + reason="test", + reset_reapply_type=ResetReapplyType.RESET_REAPPLY_TYPE_ALL_ELIGIBLE, + request_id=str(uuid.uuid4()), + workflow_task_finish_event_id=reset_point, + ) + ) + assert await new_client.get_workflow_handle(handle.id).result() == "done" + + spans = exporter.get_finished_spans() + assert [span.name for span in spans].count("HandleUpdate:approve") == 2 + names_by_span_id: dict[int, set[str]] = {} + for span in spans: + assert span.context is not None + names_by_span_id.setdefault(span.context.span_id, set()).add(span.name) + shared = {k: v for k, v in names_by_span_id.items() if len(v) > 1} + assert not shared, f"different spans share a span ID: {shared}" diff --git a/tests/contrib/opentelemetry/test_serverless.py b/tests/contrib/opentelemetry/test_serverless.py new file mode 100644 index 000000000..a80b53b09 --- /dev/null +++ b/tests/contrib/opentelemetry/test_serverless.py @@ -0,0 +1,179 @@ +"""Tests for temporalio.contrib.opentelemetry._serverless.""" + +from __future__ import annotations + +import sys +from datetime import timedelta + +import pytest +from opentelemetry.sdk.trace.export import BatchSpanProcessor + +from temporalio.contrib.opentelemetry import _serverless +from temporalio.runtime import OpenTelemetryConfig + + +class TestResolveEndpoint: + def test_explicit_wins(self) -> None: + assert ( + _serverless.resolve_endpoint( + "http://explicit:4317", + env={"OTEL_EXPORTER_OTLP_ENDPOINT": "http://env:4317"}, + ) + == "http://explicit:4317" + ) + + def test_env_fallback(self) -> None: + assert ( + _serverless.resolve_endpoint( + None, env={"OTEL_EXPORTER_OTLP_ENDPOINT": "http://env:4317"} + ) + == "http://env:4317" + ) + + def test_default_when_nothing_set(self) -> None: + assert _serverless.resolve_endpoint(None, env={}) == ( + _serverless.DEFAULT_OTLP_ENDPOINT + ) + + def test_empty_explicit_and_env_are_skipped(self) -> None: + assert ( + _serverless.resolve_endpoint("", env={"OTEL_EXPORTER_OTLP_ENDPOINT": ""}) + == _serverless.DEFAULT_OTLP_ENDPOINT + ) + + def test_custom_default(self) -> None: + assert ( + _serverless.resolve_endpoint(None, env={}, default="http://custom:4317") + == "http://custom:4317" + ) + + +class TestResolveServiceName: + def test_explicit_wins(self) -> None: + assert ( + _serverless.resolve_service_name( + "explicit", + ["FALLBACK"], + "default", + env={"OTEL_SERVICE_NAME": "otel", "FALLBACK": "fallback"}, + ) + == "explicit" + ) + + def test_otel_service_name_precedes_fallbacks(self) -> None: + assert ( + _serverless.resolve_service_name( + None, + ["FALLBACK"], + "default", + env={"OTEL_SERVICE_NAME": "otel", "FALLBACK": "fallback"}, + ) + == "otel" + ) + + def test_fallback_env_vars_checked_in_order(self) -> None: + assert ( + _serverless.resolve_service_name( + None, + ["FIRST", "SECOND"], + "default", + env={"SECOND": "second-value"}, + ) + == "second-value" + ) + assert ( + _serverless.resolve_service_name( + None, + ["FIRST", "SECOND"], + "default", + env={"FIRST": "first-value", "SECOND": "second-value"}, + ) + == "first-value" + ) + + def test_default_when_nothing_set(self) -> None: + assert ( + _serverless.resolve_service_name(None, ["FALLBACK"], "default", env={}) + == "default" + ) + + def test_empty_values_are_skipped(self) -> None: + # Empty strings are falsy and are skipped, falling through to the next + # source in the chain. + assert ( + _serverless.resolve_service_name( + "", + ["FIRST", "SECOND"], + "default", + env={"OTEL_SERVICE_NAME": "", "FIRST": "", "SECOND": "second-value"}, + ) + == "second-value" + ) + + def test_whitespace_is_not_stripped(self) -> None: + # No stripping: a whitespace-only value is truthy and is used as-is, + # matching the pre-existing AWS Lambda behavior. + assert ( + _serverless.resolve_service_name( + None, + ["FALLBACK"], + "default", + env={"OTEL_SERVICE_NAME": " ", "FALLBACK": "fallback"}, + ) + == " " + ) + + +class TestBuildMetricsTelemetryConfig: + def test_with_service_name(self) -> None: + config = _serverless.build_metrics_telemetry_config( + endpoint="http://collector:4317", + service_name="my-service", + metric_periodicity=timedelta(seconds=30), + ) + assert isinstance(config.metrics, OpenTelemetryConfig) + assert config.metrics.url == "http://collector:4317" + assert config.metrics.metric_periodicity == timedelta(seconds=30) + assert config.global_tags == {"service_name": "my-service"} + + def test_without_service_name(self) -> None: + config = _serverless.build_metrics_telemetry_config( + endpoint="http://collector:4317", + service_name="", + metric_periodicity=None, + ) + assert isinstance(config.metrics, OpenTelemetryConfig) + assert config.metrics.url == "http://collector:4317" + assert config.metrics.metric_periodicity is None + assert config.global_tags == {} + + def test_empty_endpoint_uses_default(self) -> None: + config = _serverless.build_metrics_telemetry_config( + endpoint="", + service_name="svc", + metric_periodicity=None, + ) + assert isinstance(config.metrics, OpenTelemetryConfig) + assert config.metrics.url == _serverless.DEFAULT_OTLP_ENDPOINT + + +class TestBuildOtlpSpanProcessor: + def test_returns_batch_span_processor(self) -> None: + processor = _serverless.build_otlp_span_processor("http://localhost:4317") + try: + assert isinstance(processor, BatchSpanProcessor) + finally: + processor.shutdown() + + def test_raises_import_error_when_exporter_absent( + self, monkeypatch: pytest.MonkeyPatch + ) -> None: + # Setting the module to None in sys.modules makes the lazy import raise + # ImportError, simulating the exporter not being installed. + monkeypatch.setitem( + sys.modules, + "opentelemetry.exporter.otlp.proto.grpc.trace_exporter", + None, + ) + with pytest.raises(ImportError): + _serverless.build_otlp_span_processor("http://localhost:4317") diff --git a/tests/contrib/pydantic/test_pydantic.py b/tests/contrib/pydantic/test_pydantic.py index 7d70dfd19..c3ab95f18 100644 --- a/tests/contrib/pydantic/test_pydantic.py +++ b/tests/contrib/pydantic/test_pydantic.py @@ -2,6 +2,7 @@ import datetime import os import pathlib +import pickle import typing import uuid @@ -9,6 +10,7 @@ import pytest from pydantic import BaseModel +import temporalio.contrib.pydantic from temporalio.client import Client from temporalio.contrib.pydantic import ( PydanticJSONPlainPayloadConverter, @@ -55,6 +57,83 @@ ) +@pytest.mark.parametrize("populate_cache", [False, True]) +def test_pydantic_json_converter_pickle(populate_cache: bool): + class Model(BaseModel): + value: int + default: int = 0 + + converter = PydanticJSONPlainPayloadConverter( + temporalio.contrib.pydantic.ToJsonOptions(exclude_unset=True), + max_cached_type_adapters=2, + ) + value = Model(value=1) + payload = converter.to_payload(value) + assert payload is not None + if populate_cache: + assert converter.from_payload(payload, Model) == value + cache_info = converter._type_adapter.cache_info() + + restored = pickle.loads(pickle.dumps(converter)) + + assert converter._type_adapter.cache_info() == cache_info + assert restored._type_adapter.cache_info().maxsize == 2 + assert restored._type_adapter.cache_info().currsize == 0 + assert restored.to_payload(value) == payload + assert payload.data == b'{"value":1}' + assert restored.from_payload(payload, Model) == value + assert restored.from_payload(payload, Model) == value + assert restored._type_adapter.cache_info().hits == 1 + + +class AliasModel(BaseModel): + order_id: int = pydantic.Field(default=-1, alias="orderId") + note: str = "" + ratio: float = 1.0 + wait: datetime.timedelta = datetime.timedelta(seconds=1) + data: bytes = b"data" + + +@pytest.mark.parametrize( + "value", + [ + AliasModel(orderId=7), + float("inf"), + float("-inf"), + float("nan"), + [float("inf"), 1.5, float("nan")], + {"ratio": float("inf")}, + {"wait": datetime.timedelta(minutes=1), "data": b"data"}, + ], +) +def test_to_json_options_wire_format_matches_default(value: object): + default_payload = PydanticJSONPlainPayloadConverter().to_payload(value) + for options in ( + temporalio.contrib.pydantic.ToJsonOptions(), + temporalio.contrib.pydantic.ToJsonOptions(exclude_unset=False), + ): + options_payload = PydanticJSONPlainPayloadConverter(options).to_payload(value) + assert default_payload is not None + assert options_payload is not None + assert options_payload.data == default_payload.data + + +def test_to_json_options_exclude_unset_keeps_aliases(): + converter = PydanticJSONPlainPayloadConverter( + temporalio.contrib.pydantic.ToJsonOptions(exclude_unset=True) + ) + payload = converter.to_payload(AliasModel(orderId=7)) + assert payload is not None + assert payload.data == b'{"orderId":7}' + assert converter.from_payload(payload, AliasModel) == AliasModel(orderId=7) + + +async def test_pydantic_data_converter_pickle(): + restored = pickle.loads(pickle.dumps(pydantic_data_converter)) + value = {"a": 1} + assert await restored.decode(await restored.encode([value]), [dict]) == [value] + + @pytest.mark.parametrize( ( "converter_kwargs", diff --git a/tests/contrib/strands/common.py b/tests/contrib/strands/common.py deleted file mode 100644 index 5ece12a1e..000000000 --- a/tests/contrib/strands/common.py +++ /dev/null @@ -1,10 +0,0 @@ -from temporalio.api.enums.v1 import EventType -from temporalio.client import WorkflowHistory - - -def get_activities(history: WorkflowHistory) -> list[str]: - return [ - event.activity_task_scheduled_event_attributes.activity_type.name - for event in history.events - if event.event_type == EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED - ] diff --git a/tests/contrib/strands/echo_mcp_server.py b/tests/contrib/strands/echo_mcp_server.py deleted file mode 100644 index 9f70075ac..000000000 --- a/tests/contrib/strands/echo_mcp_server.py +++ /dev/null @@ -1,13 +0,0 @@ -from mcp.server.fastmcp import FastMCP - -mcp = FastMCP("echo-server") - - -@mcp.tool() -def echo(message: str) -> str: - """Return the input message unchanged.""" - return message - - -if __name__ == "__main__": - mcp.run() diff --git a/tests/contrib/strands/mock_model.py b/tests/contrib/strands/mock_model.py deleted file mode 100644 index 5cbb0f89f..000000000 --- a/tests/contrib/strands/mock_model.py +++ /dev/null @@ -1,60 +0,0 @@ -from __future__ import annotations - -import json -from collections.abc import AsyncIterable -from typing import Any - -from strands.models import Model -from strands.types.streaming import StreamEvent - - -class MockModel(Model): - """Scripted Strands ``Model`` for tests. - - Each entry in ``responses`` is consumed by one ``stream()`` call. A ``str`` - yields a text turn; a ``dict`` of ``{name, input}`` yields a tool-use turn. - """ - - def __init__(self, responses: list[str | dict[str, Any]]) -> None: - self._responses = list(responses) - self._tool_call_index = 0 - - def update_config(self, **_model_config: Any) -> None: - return None - - def get_config(self) -> dict[str, Any]: - return {} - - def structured_output(self, *_args: Any, **_kwargs: Any): - raise NotImplementedError - - async def stream(self, *_args: Any, **_kwargs: Any) -> AsyncIterable[StreamEvent]: - if not self._responses: - raise AssertionError("MockModel script exhausted") - response = self._responses.pop(0) - - yield {"messageStart": {"role": "assistant"}} - - if isinstance(response, str): - yield {"contentBlockDelta": {"delta": {"text": response}}} - yield {"contentBlockStop": {}} - yield {"messageStop": {"stopReason": "end_turn"}} - else: - self._tool_call_index += 1 - yield { - "contentBlockStart": { - "start": { - "toolUse": { - "name": response["name"], - "toolUseId": f"mock-tool-{self._tool_call_index}", - }, - }, - }, - } - yield { - "contentBlockDelta": { - "delta": {"toolUse": {"input": json.dumps(response["input"])}}, - }, - } - yield {"contentBlockStop": {}} - yield {"messageStop": {"stopReason": "tool_use"}} diff --git a/tests/contrib/strands/test_hooks.py b/tests/contrib/strands/test_hooks.py deleted file mode 100644 index 7bcf0172f..000000000 --- a/tests/contrib/strands/test_hooks.py +++ /dev/null @@ -1,106 +0,0 @@ -from datetime import timedelta -from uuid import uuid4 - -from strands import tool -from strands.hooks import HookProvider, HookRegistry -from strands.hooks.events import AfterToolCallEvent - -from temporalio import activity, workflow -from temporalio.client import Client -from temporalio.contrib.strands import StrandsPlugin, TemporalAgent -from temporalio.contrib.strands.workflow import activity_as_hook -from temporalio.worker import Replayer, Worker -from tests.contrib.strands.common import get_activities -from tests.contrib.strands.mock_model import MockModel - -# Module-level sink: written by the audit activity, read in assertions. -# Activity bodies run in worker context, not the sandbox, so a plain list is fine. -_AUDIT_LOG: list[str] = [] - - -@activity.defn -async def audit_tool(tool_name: str) -> None: - _AUDIT_LOG.append(tool_name) - - -@tool -def echo(text: str) -> str: - return text - - -class AuditHook(HookProvider): - def __init__(self) -> None: - self.fired_events: list[str] = [] - - def register_hooks(self, registry: HookRegistry, **kwargs: object) -> None: - registry.add_callback(AfterToolCallEvent, self._sync_log) - registry.add_callback( - AfterToolCallEvent, - activity_as_hook( - audit_tool, - activity_input=lambda event: event.tool_use["name"], - start_to_close_timeout=timedelta(seconds=10), - ), - ) - - def _sync_log(self, event: AfterToolCallEvent) -> None: - # Deterministic in-workflow mutation: appends to per-workflow state. - self.fired_events.append(event.tool_use["name"]) - - -@workflow.defn -class HooksWorkflow: - def __init__(self) -> None: - self.hook = AuditHook() - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=15), - tools=[echo], - hooks=[self.hook], - ) - - @workflow.run - async def run(self, prompt: str) -> list[str]: - await self.agent.invoke_async(prompt) - return self.hook.fired_events - - -async def test_hooks(client: Client): - _AUDIT_LOG.clear() - task_queue = f"test_hooks-{uuid4()}" - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - {"name": "echo", "input": {"text": "hi"}}, - "Done!", - ] - ) - } - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[HooksWorkflow], - activities=[audit_tool], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - HooksWorkflow.run, - "Say hi", - id=f"test_hooks_{uuid4()}", - task_queue=task_queue, - ) - assert await handle.result() == ["echo"] - - assert _AUDIT_LOG == ["echo"] - - history = await handle.fetch_history() - assert "audit_tool" in get_activities(history) - - await Replayer( - workflows=[HooksWorkflow], - plugins=[plugin], - ).replay_workflow(history) diff --git a/tests/contrib/strands/test_interrupt.py b/tests/contrib/strands/test_interrupt.py deleted file mode 100644 index b5c76add0..000000000 --- a/tests/contrib/strands/test_interrupt.py +++ /dev/null @@ -1,105 +0,0 @@ -from datetime import timedelta -from uuid import uuid4 - -from strands import tool -from strands.hooks import HookProvider, HookRegistry -from strands.hooks.events import BeforeToolCallEvent -from strands.types.interrupt import InterruptResponseContent - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.strands import StrandsPlugin, TemporalAgent -from temporalio.worker import Replayer, Worker -from tests.contrib.strands.common import get_activities -from tests.contrib.strands.mock_model import MockModel - - -@tool -def delete_thing(name: str) -> str: - return f"deleted {name}" - - -class ApprovalHook(HookProvider): - def register_hooks(self, registry: HookRegistry, **kwargs: object) -> None: - registry.add_callback(BeforeToolCallEvent, self._gate) - - def _gate(self, event: BeforeToolCallEvent) -> None: - if event.tool_use["name"] != "delete_thing": - return - approval = event.interrupt( - "approval", - reason=f"approve delete of {event.tool_use['input']['name']}?", - ) - if approval != "approve": - event.cancel_tool = "denied" - - -@workflow.defn -class InterruptWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=15), - tools=[delete_thing], - hooks=[ApprovalHook()], - ) - self._approval: str | None = None - - @workflow.signal - def approve(self, response: str) -> None: - self._approval = response - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - while result.stop_reason == "interrupt": - await workflow.wait_condition(lambda: self._approval is not None) - response = self._approval - self._approval = None - responses: list[InterruptResponseContent] = [ - {"interruptResponse": {"interruptId": i.id, "response": response}} - for i in (result.interrupts or []) - ] - result = await self.agent.invoke_async(responses) - return str(result) - - -async def test_interrupt(client: Client): - task_queue = f"test_interrupt-{uuid4()}" - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - {"name": "delete_thing", "input": {"name": "foo"}}, - "Done!", - ] - ) - } - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[InterruptWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - InterruptWorkflow.run, - "delete foo", - id=f"test_interrupt_{uuid4()}", - task_queue=task_queue, - ) - await handle.signal(InterruptWorkflow.approve, "approve") - assert await handle.result() == "Done!\n" - - history = await handle.fetch_history() - assert get_activities(history) == [ - "invoke_model", - "invoke_model", - ] - - await Replayer( - workflows=[InterruptWorkflow], - plugins=[plugin], - ).replay_workflow(history) diff --git a/tests/contrib/strands/test_interrupt_exception.py b/tests/contrib/strands/test_interrupt_exception.py deleted file mode 100644 index e7492f286..000000000 --- a/tests/contrib/strands/test_interrupt_exception.py +++ /dev/null @@ -1,191 +0,0 @@ -from datetime import timedelta -from uuid import uuid4 - -from strands import tool -from strands.interrupt import Interrupt, InterruptException -from strands.types.interrupt import InterruptResponseContent - -from temporalio import activity, workflow -from temporalio.client import Client -from temporalio.contrib.strands import StrandsPlugin, TemporalAgent -from temporalio.contrib.strands.workflow import activity_as_tool -from temporalio.worker import Replayer, Worker -from tests.contrib.strands.common import get_activities -from tests.contrib.strands.mock_model import MockModel - - -@tool -def in_workflow_delete(name: str) -> str: - raise InterruptException( - Interrupt(id=f"delete:{name}", name="approval", reason=f"delete {name}?") - ) - - -# Counts attempts so the activity raises on the first invocation and succeeds on -# the second — modeling a real "approval flipped an external flag" check. -_activity_delete_calls = 0 - - -@activity.defn -async def activity_delete(name: str) -> str: - global _activity_delete_calls - _activity_delete_calls += 1 - if _activity_delete_calls == 1: - raise InterruptException( - Interrupt(id=f"delete:{name}", name="approval", reason=f"delete {name}?") - ) - return f"deleted {name}" - - -@workflow.defn -class InWorkflowToolInterruptWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=15), - tools=[in_workflow_delete], - ) - self._approval: str | None = None - - @workflow.signal - def approve(self, response: str) -> None: - self._approval = response - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - while result.stop_reason == "interrupt": - await workflow.wait_condition(lambda: self._approval is not None) - response, self._approval = self._approval, None - responses: list[InterruptResponseContent] = [ - {"interruptResponse": {"interruptId": i.id, "response": response}} - for i in (result.interrupts or []) - ] - result = await self.agent.invoke_async(responses) - return str(result) - - -@workflow.defn -class ActivityToolInterruptWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=15), - tools=[ - activity_as_tool( - activity_delete, - start_to_close_timeout=timedelta(seconds=15), - ) - ], - ) - self._approval: str | None = None - - @workflow.signal - def approve(self, response: str) -> None: - self._approval = response - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - while result.stop_reason == "interrupt": - await workflow.wait_condition(lambda: self._approval is not None) - response, self._approval = self._approval, None - responses: list[InterruptResponseContent] = [ - {"interruptResponse": {"interruptId": i.id, "response": response}} - for i in (result.interrupts or []) - ] - result = await self.agent.invoke_async(responses) - return str(result) - - -async def test_in_workflow_tool_interrupt(client: Client): - task_queue = f"test_in_workflow_tool_interrupt-{uuid4()}" - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - {"name": "in_workflow_delete", "input": {"name": "foo"}}, - "Done!", - ] - ) - } - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[InWorkflowToolInterruptWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - InWorkflowToolInterruptWorkflow.run, - "delete foo", - id=f"test_in_workflow_tool_interrupt_{uuid4()}", - task_queue=task_queue, - ) - await handle.signal(InWorkflowToolInterruptWorkflow.approve, "approve") - assert await handle.result() == "Done!\n" - - history = await handle.fetch_history() - # No activity call for the in-workflow @tool — only model calls. - assert get_activities(history) == ["invoke_model", "invoke_model"] - - await Replayer( - workflows=[InWorkflowToolInterruptWorkflow], - plugins=[plugin], - ).replay_workflow(history) - - -async def test_activity_tool_interrupt(client: Client): - global _activity_delete_calls - _activity_delete_calls = 0 - task_queue = f"test_activity_tool_interrupt-{uuid4()}" - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - {"name": "activity_delete", "input": {"name": "foo"}}, - "Done!", - ] - ) - } - ) - - # Activity-side InterruptException relies on the failure converter installed - # via the data converter, which _ActivityWorker reads from the client config. - # Re-create the client with the plugin attached so that converter takes effect. - config = client.config() - config["plugins"] = [*config["plugins"], plugin] - client = Client(**config) - - async with Worker( - client, - task_queue=task_queue, - workflows=[ActivityToolInterruptWorkflow], - activities=[activity_delete], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - ActivityToolInterruptWorkflow.run, - "delete foo", - id=f"test_activity_tool_interrupt_{uuid4()}", - task_queue=task_queue, - ) - await handle.signal(ActivityToolInterruptWorkflow.approve, "approve") - assert await handle.result() == "Done!\n" - - history = await handle.fetch_history() - # activity_delete appears twice: once for the call that raised - # InterruptException, once for the resume call that returned successfully. - assert get_activities(history) == [ - "invoke_model", - "activity_delete", - "activity_delete", - "invoke_model", - ] - - await Replayer( - workflows=[ActivityToolInterruptWorkflow], - plugins=[plugin], - ).replay_workflow(history) diff --git a/tests/contrib/strands/test_invocation_state.py b/tests/contrib/strands/test_invocation_state.py deleted file mode 100644 index 84b5531a4..000000000 --- a/tests/contrib/strands/test_invocation_state.py +++ /dev/null @@ -1,83 +0,0 @@ -from collections.abc import AsyncIterable -from datetime import timedelta -from typing import Any -from uuid import uuid4 - -from strands.models import Model -from strands.types.streaming import StreamEvent - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.strands import StrandsPlugin, TemporalAgent -from temporalio.worker import Worker - -# Worker-side sink: the recording model writes the invocation_state it -# received here so the test body can inspect it after the workflow completes. -_RECEIVED: list[dict[str, Any]] = [] - - -class _RecordingModel(Model): - def update_config(self, **_model_config: Any) -> None: - return None - - def get_config(self) -> dict[str, Any]: - return {} - - def structured_output(self, *_args: Any, **_kwargs: Any) -> Any: - raise NotImplementedError - - async def stream( - self, - *_args: Any, - invocation_state: dict[str, Any] | None = None, - **_kwargs: Any, - ) -> AsyncIterable[StreamEvent]: - _RECEIVED.append(invocation_state or {}) - yield {"messageStart": {"role": "assistant"}} - yield {"contentBlockDelta": {"delta": {"text": "ok"}}} - yield {"contentBlockStop": {}} - yield {"messageStop": {"stopReason": "end_turn"}} - - -@workflow.defn -class _InvocationStateWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - model="recording", - start_to_close_timeout=timedelta(seconds=15), - ) - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async( - prompt, - invocation_state={"user_key": "user_value", "non_json": object()}, - ) - return str(result) - - -async def test_invocation_state_round_trip(client: Client): - _RECEIVED.clear() - task_queue = f"test_invocation_state-{uuid4()}" - plugin = StrandsPlugin(models={"recording": lambda: _RecordingModel()}) - - async with Worker( - client, - task_queue=task_queue, - workflows=[_InvocationStateWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - await client.execute_workflow( - _InvocationStateWorkflow.run, - "hi", - id=f"test_invocation_state_{uuid4()}", - task_queue=task_queue, - ) - - # The serializable key crosses the activity boundary; the non-serializable - # one is dropped before dispatch (with a debug log). - assert _RECEIVED, "model.stream() was not called" - received = _RECEIVED[0] - assert received.get("user_key") == "user_value" - assert "non_json" not in received diff --git a/tests/contrib/strands/test_mcp.py b/tests/contrib/strands/test_mcp.py deleted file mode 100644 index 9849e6dda..000000000 --- a/tests/contrib/strands/test_mcp.py +++ /dev/null @@ -1,326 +0,0 @@ -import asyncio -import sys -from datetime import timedelta -from pathlib import Path -from uuid import uuid4 - -from mcp import StdioServerParameters, stdio_client -from strands.tools.mcp.mcp_client import MCPClient - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.strands import ( - StrandsPlugin, - TemporalAgent, - TemporalMCPClient, - _temporal_mcp_client, -) -from temporalio.worker import Replayer, Worker -from tests.contrib.strands.common import get_activities -from tests.contrib.strands.mock_model import MockModel - - -def _echo_client_factory() -> MCPClient: - return MCPClient( - lambda: stdio_client( - StdioServerParameters( - command=sys.executable, - args=[str(Path(__file__).parent / "echo_mcp_server.py")], - ) - ) - ) - - -@workflow.defn -class MCPWorkflow: - def __init__(self) -> None: - echo = TemporalMCPClient( - server="echo", - cache_tools=True, - start_to_close_timeout=timedelta(seconds=30), - ) - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=30), - tools=[echo], - ) - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - return str(result) - - -async def test_mcp(client: Client): - task_queue = f"test_mcp-{uuid4()}" - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - {"name": "echo", "input": {"message": "hello"}}, - "Done!", - ] - ) - }, - mcp_clients={ - "echo": lambda: MCPClient( - lambda: stdio_client( - StdioServerParameters( - command=sys.executable, - args=[str(Path(__file__).parent / "echo_mcp_server.py")], - ) - ) - ), - }, - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[MCPWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - MCPWorkflow.run, - "echo hello", - id=f"test_mcp_{uuid4()}", - task_queue=task_queue, - ) - assert await handle.result() == "Done!\n" - - history = await handle.fetch_history() - assert get_activities(history) == [ - "echo-list-tools", - "invoke_model", - "echo-call-tool", - "invoke_model", - ] - - await Replayer( - workflows=[MCPWorkflow], - plugins=[plugin], - ).replay_workflow(history) - - -@workflow.defn -class MCPReuseWorkflow: - def __init__(self) -> None: - echo = TemporalMCPClient( - server="echo_cached", - cache_tools=True, - start_to_close_timeout=timedelta(seconds=30), - ) - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=30), - tools=[echo], - ) - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - return str(result) - - -async def test_mcp_reuses_connection(client: Client): - """Successive MCP tool calls reuse one cached worker-side connection.""" - task_queue = f"test_mcp_reuses_connection-{uuid4()}" - # Count how often the worker opens a connection. One lazily-opened - # connection serves the list-tools discovery and both tool calls (1); - # reconnecting per call would make it more. - factory_calls = [0] - - def counting_factory() -> MCPClient: - factory_calls[0] += 1 - return _echo_client_factory() - - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - {"name": "echo", "input": {"message": "one"}}, - {"name": "echo", "input": {"message": "two"}}, - "Done!", - ] - ) - }, - mcp_clients={"echo_cached": counting_factory}, - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[MCPReuseWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - MCPReuseWorkflow.run, - "echo twice", - id=f"test_mcp_reuses_connection_{uuid4()}", - task_queue=task_queue, - ) - assert await handle.result() == "Done!\n" - - # The worker context has exited, so its run_context finally evicted the - # cached connection. - assert "echo_cached" not in _temporal_mcp_client._CONNECTIONS - assert factory_calls[0] == 1 - - history = await handle.fetch_history() - assert get_activities(history) == [ - "echo_cached-list-tools", - "invoke_model", - "echo_cached-call-tool", - "invoke_model", - "echo_cached-call-tool", - "invoke_model", - ] - - await Replayer( - workflows=[MCPReuseWorkflow], - plugins=[plugin], - ).replay_workflow(history) - - -@workflow.defn -class MCPIdleWorkflow: - def __init__(self) -> None: - echo = TemporalMCPClient( - server="echo_idle", - cache_tools=True, - start_to_close_timeout=timedelta(seconds=30), - ) - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=30), - tools=[echo], - ) - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - return str(result) - - -async def test_mcp_connection_idle_timeout(client: Client): - """A short idle timeout evicts the cached connection while the worker runs.""" - task_queue = f"test_mcp_connection_idle_timeout-{uuid4()}" - factory_calls = [0] - - def counting_factory() -> MCPClient: - factory_calls[0] += 1 - return _echo_client_factory() - - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - {"name": "echo", "input": {"message": "hello"}}, - "Done!", - ] - ) - }, - mcp_clients={"echo_idle": counting_factory}, - # Short window so the cached call connection is evicted mid-run rather - # than only at worker shutdown. The idle timer only arms once the call - # releases the connection, so this can't tear it down mid-call. - mcp_connection_idle_timeout=timedelta(milliseconds=100), - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[MCPIdleWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - MCPIdleWorkflow.run, - "echo hello", - id=f"test_mcp_connection_idle_timeout_{uuid4()}", - task_queue=task_queue, - ) - assert await handle.result() == "Done!\n" - - # A connection was opened lazily (on the first list-tools/call-tool). - # How many times depends on whether the short idle timer fires between - # activities, so this only asserts that at least one was opened; the - # eviction-while-alive behavior is what the polling loop below checks. - assert factory_calls[0] >= 1 - - # Still inside the worker context: the short idle timer evicts the - # cached call connection on its own. Asserting eviction here -- with the - # worker alive -- proves it came from the idle timer, not shutdown. - for _ in range(100): - if "echo_idle" not in _temporal_mcp_client._CONNECTIONS: - break - await asyncio.sleep(0.1) - assert "echo_idle" not in _temporal_mcp_client._CONNECTIONS - - -@workflow.defn -class MCPNoCacheWorkflow: - def __init__(self) -> None: - echo = TemporalMCPClient( - server="echo_nocache", - cache_tools=False, - start_to_close_timeout=timedelta(seconds=30), - ) - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=30), - tools=[echo], - ) - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - return str(result) - - -async def test_mcp_lists_tools_each_turn_when_uncached(client: Client): - """With cache_tools=False the tool list is re-fetched on every model call.""" - task_queue = f"test_mcp_lists_tools_each_turn_when_uncached-{uuid4()}" - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - {"name": "echo", "input": {"message": "one"}}, - {"name": "echo", "input": {"message": "two"}}, - "Done!", - ] - ) - }, - mcp_clients={"echo_nocache": _echo_client_factory}, - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[MCPNoCacheWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - MCPNoCacheWorkflow.run, - "echo twice", - id=f"test_mcp_lists_tools_each_turn_when_uncached_{uuid4()}", - task_queue=task_queue, - ) - assert await handle.result() == "Done!\n" - - history = await handle.fetch_history() - activities = get_activities(history) - # One list-tools per model call -- the tools are re-listed every turn rather - # than once for the workflow. - assert activities.count("echo_nocache-list-tools") == activities.count( - "invoke_model" - ) - assert activities.count("echo_nocache-list-tools") == 3 - - await Replayer( - workflows=[MCPNoCacheWorkflow], - plugins=[plugin], - ).replay_workflow(history) diff --git a/tests/contrib/strands/test_model.py b/tests/contrib/strands/test_model.py deleted file mode 100644 index c96d4c0d7..000000000 --- a/tests/contrib/strands/test_model.py +++ /dev/null @@ -1,51 +0,0 @@ -from datetime import timedelta -from uuid import uuid4 - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.strands import StrandsPlugin, TemporalAgent -from temporalio.worker import Replayer, Worker -from tests.contrib.strands.common import get_activities -from tests.contrib.strands.mock_model import MockModel - - -@workflow.defn -class ModelWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=15), - ) - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - return str(result) - - -async def test_model(client: Client): - task_queue = f"test_model-{uuid4()}" - plugin = StrandsPlugin(models={"mock": lambda: MockModel(["Done!"])}) - - async with Worker( - client, - task_queue=task_queue, - workflows=[ModelWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - ModelWorkflow.run, - "Hello", - id=f"test_model_{uuid4()}", - task_queue=task_queue, - ) - assert await handle.result() == "Done!\n" - - history = await handle.fetch_history() - assert get_activities(history) == ["invoke_model"] - - await Replayer( - workflows=[ModelWorkflow], - plugins=[plugin], - ).replay_workflow(history) diff --git a/tests/contrib/strands/test_model_streaming.py b/tests/contrib/strands/test_model_streaming.py deleted file mode 100644 index 1a0b84447..000000000 --- a/tests/contrib/strands/test_model_streaming.py +++ /dev/null @@ -1,78 +0,0 @@ -import asyncio -from datetime import timedelta -from uuid import uuid4 - -from strands.types.streaming import StreamEvent - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.strands import StrandsPlugin, TemporalAgent -from temporalio.contrib.workflow_streams import WorkflowStream, WorkflowStreamClient -from temporalio.worker import Replayer, Worker -from tests.contrib.strands.common import get_activities -from tests.contrib.strands.mock_model import MockModel - - -@workflow.defn -class StreamingModelWorkflow: - def __init__(self) -> None: - self.stream = WorkflowStream() - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=15), - streaming_topic="events", - ) - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - return str(result) - - -async def test_model_streaming(client: Client): - task_queue = f"test_model_streaming-{uuid4()}" - plugin = StrandsPlugin(models={"mock": lambda: MockModel(["Done!"])}) - workflow_id = f"test_model_streaming_{uuid4()}" - - async with Worker( - client, - task_queue=task_queue, - workflows=[StreamingModelWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - StreamingModelWorkflow.run, - "Hello", - id=workflow_id, - task_queue=task_queue, - ) - - stream = WorkflowStreamClient.create(client, workflow_id) - events: list[StreamEvent] = [] - - async def collect() -> None: - async for item in stream.subscribe( - ["events"], - from_offset=0, - result_type=StreamEvent, - poll_cooldown=timedelta(milliseconds=50), - ): - events.append(item.data) - if len(events) >= 4: - break - - collect_task = asyncio.create_task(collect()) - assert await handle.result() == "Done!\n" - await asyncio.wait_for(collect_task, timeout=10.0) - - history = await handle.fetch_history() - assert get_activities(history) == ["invoke_model_streaming"] - - assert any("messageStart" in e for e in events) - assert any("messageStop" in e for e in events) - - await Replayer( - workflows=[StreamingModelWorkflow], - plugins=[plugin], - ).replay_workflow(history) diff --git a/tests/contrib/strands/test_structured_output.py b/tests/contrib/strands/test_structured_output.py deleted file mode 100644 index eafe2b364..000000000 --- a/tests/contrib/strands/test_structured_output.py +++ /dev/null @@ -1,74 +0,0 @@ -from datetime import timedelta -from uuid import uuid4 - -from pydantic import BaseModel, Field - -from temporalio import workflow -from temporalio.client import Client -from temporalio.contrib.strands import StrandsPlugin, TemporalAgent -from temporalio.worker import Replayer, Worker -from tests.contrib.strands.mock_model import MockModel - - -class PersonInfo(BaseModel): - name: str = Field(description="Name of the person") - age: int = Field(description="Age of the person") - occupation: str = Field(description="Occupation of the person") - - -@workflow.defn -class StructuredOutputWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=15), - structured_output_model=PersonInfo, - ) - - @workflow.run - async def run(self, prompt: str) -> PersonInfo: - result = await self.agent.invoke_async(prompt) - assert isinstance(result.structured_output, PersonInfo) - return result.structured_output - - -async def test_structured_output(client: Client): - task_queue = f"test_structured_output-{uuid4()}" - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - { - "name": "PersonInfo", - "input": { - "name": "John Smith", - "age": 30, - "occupation": "software engineer", - }, - }, - ] - ) - } - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[StructuredOutputWorkflow], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - StructuredOutputWorkflow.run, - "John Smith is a 30 year-old software engineer", - id=f"test_structured_output_{uuid4()}", - task_queue=task_queue, - ) - assert await handle.result() == PersonInfo( - name="John Smith", age=30, occupation="software engineer" - ) - - await Replayer( - workflows=[StructuredOutputWorkflow], - plugins=[plugin], - ).replay_workflow(await handle.fetch_history()) diff --git a/tests/contrib/strands/test_tool.py b/tests/contrib/strands/test_tool.py deleted file mode 100644 index d13fcbec1..000000000 --- a/tests/contrib/strands/test_tool.py +++ /dev/null @@ -1,118 +0,0 @@ -from datetime import timedelta -from pathlib import Path -from uuid import uuid4 - -from strands import tool -from strands_tools import ( # pyright: ignore[reportMissingTypeStubs] - calculator, - file_read, -) - -from temporalio import activity, workflow -from temporalio.client import Client -from temporalio.contrib.strands import StrandsPlugin, TemporalAgent -from temporalio.contrib.strands.workflow import activity_as_tool -from temporalio.worker import Replayer, Worker -from tests.contrib.strands.common import get_activities -from tests.contrib.strands.mock_model import MockModel - - -@tool -def letter_counter(word: str, letter: str) -> int: - return word.lower().count(letter.lower()) - - -@activity.defn(name="read_file") -async def read_file_activity(path: str) -> str: - result = file_read.file_read( - { - "toolUseId": "read_file", - "name": "file_read", - "input": {"path": path, "mode": "view"}, - } - ) - text = result["content"][0].get("text") - assert text is not None - return text - - -@workflow.defn -class ToolWorkflow: - def __init__(self) -> None: - self.agent = TemporalAgent( - model="mock", - start_to_close_timeout=timedelta(seconds=15), - tools=[ - calculator, - activity_as_tool( - read_file_activity, - start_to_close_timeout=timedelta(seconds=15), - ), - letter_counter, - ], - ) - - @workflow.run - async def run(self, prompt: str) -> str: - result = await self.agent.invoke_async(prompt) - return str(result) - - -async def test_tool(client: Client, tmp_path: Path): - task_queue = f"test_tool-{uuid4()}" - fixture = tmp_path / "greeting.txt" - fixture.write_text("hello\n") - - plugin = StrandsPlugin( - models={ - "mock": lambda: MockModel( - [ - {"name": "read_file", "input": {"path": str(fixture)}}, - { - "name": "calculator", - "input": {"expression": "3111696 / 74088"}, - }, - { - "name": "letter_counter", - "input": {"word": "strawberry", "letter": "R"}, - }, - "Done!", - ] - ) - } - ) - - async with Worker( - client, - task_queue=task_queue, - workflows=[ToolWorkflow], - activities=[read_file_activity], - plugins=[plugin], - max_cached_workflows=0, - ): - handle = await client.start_workflow( - ToolWorkflow.run, - "I have 3 requests:\n" - f"1. Read the file at {fixture}\n" - "2. Calculate 3111696 / 74088\n" - '3. Tell me how many letter R\'s are in the word "strawberry"', - id=f"test_tool_{uuid4()}", - task_queue=task_queue, - ) - assert await handle.result() == "Done!\n" - - history = await handle.fetch_history() - assert get_activities(history) == [ - "invoke_model", - "read_file", - "invoke_model", - # calculator (in-workflow) - "invoke_model", - # letter_counter (in-workflow) - "invoke_model", - ] - - await Replayer( - workflows=[ToolWorkflow], - plugins=[plugin], - ).replay_workflow(history) diff --git a/tests/contrib/workflow_streams/test_closed_streams.py b/tests/contrib/workflow_streams/test_closed_streams.py new file mode 100644 index 000000000..d032bc2e1 --- /dev/null +++ b/tests/contrib/workflow_streams/test_closed_streams.py @@ -0,0 +1,620 @@ +"""Closed-run stream reads and subscription run isolation.""" + +from __future__ import annotations + +import asyncio +import json +import uuid +from dataclasses import dataclass +from datetime import timedelta +from types import SimpleNamespace +from typing import Any +from unittest.mock import AsyncMock, MagicMock, patch + +import pytest + +from temporalio import workflow +from temporalio.client import ( + Client, + WorkflowExecutionStatus, + WorkflowHandle, + WorkflowQueryFailedError, + WorkflowQueryRejectedError, + WorkflowUpdateFailedError, + WorkflowUpdateRPCTimeoutOrCancelledError, +) +from temporalio.common import QueryRejectCondition, RawValue +from temporalio.contrib.workflow_streams import ( + PollInput, + PollResult, + WorkflowStream, + WorkflowStreamClient, +) +from temporalio.contrib.workflow_streams._types import ( + _decode_payload, + _WorkflowStreamWireItem, +) +from temporalio.converter import DataConverter +from temporalio.exceptions import ApplicationError +from temporalio.service import RPCError, RPCStatusCode +from tests.helpers import assert_eq_eventually, new_worker + +POLL = "__temporal_workflow_stream_poll" +WIRE_ABC = "ChgKCGVuY29kaW5nEgxiaW5hcnkvcGxhaW4SA2FiYw==" +TERMINAL_STATUSES = [ + WorkflowExecutionStatus.COMPLETED, + WorkflowExecutionStatus.FAILED, + WorkflowExecutionStatus.CANCELED, + WorkflowExecutionStatus.TERMINATED, + WorkflowExecutionStatus.TIMED_OUT, +] + + +def mock_stream( + status: WorkflowExecutionStatus = WorkflowExecutionStatus.COMPLETED, +) -> tuple[WorkflowStreamClient, Any, Any, Any]: + client = MagicMock(spec=Client) + client.data_converter = DataConverter.default + poll = MagicMock(spec=WorkflowHandle) + poll.id = "workflow" + poll._client = client + poll.start_update = AsyncMock( + side_effect=RPCError("closed", RPCStatusCode.NOT_FOUND, b"") + ) + poll.describe = AsyncMock( + return_value=SimpleNamespace(status=status, run_id="closed-run") + ) + read = MagicMock(spec=WorkflowHandle) + read.describe = poll.describe + read.query = AsyncMock(return_value=PollResult()) + client.get_workflow_handle.return_value = read + return WorkflowStreamClient(poll, client=client), client, poll, read + + +@pytest.mark.parametrize("status", TERMINAL_STATUSES) +async def test_workflow_streams_terminal_pages(status: WorkflowExecutionStatus) -> None: + stream, client, poll, read = mock_stream(status) + read.query.side_effect = [ + PollResult([_WorkflowStreamWireItem("events", WIRE_ABC, 3)], 4, True), + PollResult([_WorkflowStreamWireItem("events", WIRE_ABC, 5)], 6, False), + ] + items = [item async for item in stream.subscribe("events", 3, result_type=bytes)] + assert [(item.offset, item.data) for item in items] == [(3, b"abc"), (5, b"abc")] + client.get_workflow_handle.assert_called_once_with("workflow", run_id="closed-run") + assert poll.start_update.await_count == 1 + assert [call.args for call in read.query.await_args_list] == [ + (POLL, PollInput(["events"], 3)), + (POLL, PollInput(["events"], 4)), + ] + + +async def test_workflow_streams_direct_handle_keeps_default_converter() -> None: + _, client, poll, read = mock_stream() + read.query.return_value = PollResult( + [_WorkflowStreamWireItem("events", WIRE_ABC, 0)], 1 + ) + stream = WorkflowStreamClient(poll) + items = [item async for item in stream.subscribe(result_type=RawValue)] + assert items[0].data.payload.data == b"abc" + client.get_workflow_handle.assert_called_once_with("workflow", run_id="closed-run") + + +async def test_workflow_streams_update_to_query_resumes_at_next_offset() -> None: + stream, client, poll, read = mock_stream() + poll.start_update.side_effect = [ + SimpleNamespace( + workflow_run_id="closed-run", + result=AsyncMock( + return_value=PollResult( + [_WorkflowStreamWireItem("events", WIRE_ABC, i) for i in (0, 1)], + 2, + True, + ) + ), + ), + SimpleNamespace( + workflow_run_id="closed-run", + result=AsyncMock( + return_value=PollResult( + [_WorkflowStreamWireItem("events", WIRE_ABC, 2)], 3 + ) + ), + ), + SimpleNamespace( + workflow_run_id="closed-run", + result=AsyncMock( + side_effect=WorkflowUpdateFailedError( + ApplicationError("closed", type="AcceptedUpdateCompletedWorkflow") + ) + ), + ), + ] + read.query.side_effect = [ + PollResult([_WorkflowStreamWireItem("events", WIRE_ABC, 3)], 4, True), + PollResult([_WorkflowStreamWireItem("events", WIRE_ABC, 4)], 5), + ] + items = [ + item + async for item in stream.subscribe( + "events", result_type=bytes, poll_cooldown=timedelta(0) + ) + ] + assert [(item.offset, item.data) for item in items] == [ + (i, b"abc") for i in range(5) + ] + assert [call.args for call in poll.start_update.await_args_list] == [ + (POLL, PollInput(["events"], offset)) for offset in (0, 2, 3) + ] + assert [call.args for call in read.query.await_args_list] == [ + (POLL, PollInput(["events"], offset)) for offset in (3, 4) + ] + read.describe.assert_awaited_once() + assert client.get_workflow_handle.call_count == 2 + for call in client.get_workflow_handle.call_args_list: + assert call.args == ("workflow",) + assert call.kwargs == {"run_id": "closed-run"} + + +@pytest.mark.parametrize( + "failure", ["running", "unknown", "missing_run", "describe", "query"] +) +async def test_workflow_streams_unconfirmed_closure_and_query_errors( + failure: str, +) -> None: + stream, _, poll, read = mock_stream() + expected: Exception + if failure in ("running", "unknown", "missing_run"): + if failure == "missing_run": + poll.describe.return_value.run_id = "" + else: + poll.describe.return_value.status = ( + WorkflowExecutionStatus.RUNNING if failure == "running" else None + ) + expected = poll.start_update.side_effect + elif failure == "describe": + poll.describe.side_effect = RPCError("missing", RPCStatusCode.NOT_FOUND, b"") + expected = poll.start_update.side_effect + else: + expected = WorkflowQueryFailedError("missing handler or query rejected") + read.query.side_effect = expected + with pytest.raises(type(expected)) as err: + _ = [item async for item in stream.subscribe()] + assert err.value is expected + + +@pytest.mark.parametrize("accepted", [False, True]) +@pytest.mark.parametrize("failure", ["rpc", "update", "timeout"]) +async def test_workflow_streams_describe_failure_preserves_poll_error( + accepted: bool, failure: str +) -> None: + stream, _, poll, read = mock_stream() + expected: Exception + if failure == "rpc": + expected = RPCError("poll failed", RPCStatusCode.UNAVAILABLE, b"") + elif failure == "update": + expected = WorkflowUpdateFailedError(ApplicationError("poll failed")) + else: + expected = WorkflowUpdateRPCTimeoutOrCancelledError() + cause = expected.__cause__ + poll.describe.side_effect = RPCError( + "describe failed", RPCStatusCode.NOT_FOUND, b"" + ) + if accepted: + poll.start_update.side_effect = None + poll.start_update.return_value = SimpleNamespace( + workflow_run_id="closed-run", result=AsyncMock(side_effect=expected) + ) + else: + poll.start_update.side_effect = expected + with pytest.raises(type(expected)) as err: + _ = [item async for item in stream.subscribe()] + assert err.value is expected + assert err.value.__cause__ is cause + read.query.assert_not_awaited() + + +async def test_workflow_streams_describe_cancellation_propagates() -> None: + stream, _, poll, read = mock_stream() + poll.describe.side_effect = asyncio.CancelledError + with pytest.raises(asyncio.CancelledError): + _ = [item async for item in stream.subscribe()] + read.query.assert_not_awaited() + + +async def test_workflow_streams_run_tracking_is_local_to_each_attempt() -> None: + stream, client, poll, _ = mock_stream() + admitted: asyncio.Queue[str] = asyncio.Queue() + outcomes: dict[str, asyncio.Future[PollResult]] = {} + reads: dict[str, Any] = {} + + async def start_update(*_args: Any, **_kwargs: Any) -> Any: + run_id = f"run-{len(outcomes)}" + future: asyncio.Future[PollResult] = asyncio.get_running_loop().create_future() + outcomes[run_id] = future + admitted.put_nowait(run_id) + return SimpleNamespace(workflow_run_id=run_id, result=lambda: future) + + def pinned_handle(workflow_id: str, *, run_id: str | None = None) -> Any: + assert workflow_id == "workflow" + assert run_id is not None + if run_id not in reads: + read = MagicMock(spec=WorkflowHandle) + read.describe = AsyncMock( + return_value=SimpleNamespace( + status=WorkflowExecutionStatus.COMPLETED, run_id=run_id + ) + ) + read.query = AsyncMock( + return_value=PollResult( + [_WorkflowStreamWireItem(run_id, WIRE_ABC, 0)], 1 + ) + ) + reads[run_id] = read + return reads[run_id] + + poll.start_update.side_effect = start_update + client.get_workflow_handle.side_effect = pinned_handle + + async def consume() -> list[str]: + return [item.topic async for item in stream.subscribe()] + + first = asyncio.create_task(consume()) + assert await admitted.get() == "run-0" + second = asyncio.create_task(consume()) + assert await admitted.get() == "run-1" + for run_id in ["run-1", "run-0"]: + outcomes[run_id].set_exception( + WorkflowUpdateFailedError( + ApplicationError("closed", type="AcceptedUpdateCompletedWorkflow") + ) + ) + assert await first == ["run-0"] + assert await second == ["run-1"] + + +async def test_workflow_streams_continue_as_new_resets_accepted_run() -> None: + stream, client, poll, read = mock_stream() + accepted = SimpleNamespace( + workflow_run_id="old-run", + result=AsyncMock( + side_effect=WorkflowUpdateFailedError( + ApplicationError("closed", type="AcceptedUpdateCompletedWorkflow") + ) + ), + ) + poll.start_update.side_effect = None + poll.start_update.return_value = accepted + old = MagicMock(spec=WorkflowHandle) + old.describe = AsyncMock( + return_value=SimpleNamespace( + status=WorkflowExecutionStatus.CONTINUED_AS_NEW, run_id="old-run" + ) + ) + successor = MagicMock(spec=WorkflowHandle) + successor._client = client + successor.start_update = AsyncMock( + side_effect=RPCError("closed", RPCStatusCode.NOT_FOUND, b"") + ) + successor.describe = AsyncMock( + return_value=SimpleNamespace( + status=WorkflowExecutionStatus.COMPLETED, run_id="successor-run" + ) + ) + read.query.return_value = PollResult( + [_WorkflowStreamWireItem("events", WIRE_ABC, 0)], 1 + ) + + def get_handle(workflow_id: str, *, run_id: str | None = None) -> Any: + assert workflow_id == "workflow" + return old if run_id == "old-run" else successor if run_id is None else read + + client.get_workflow_handle.side_effect = get_handle + assert [item.data async for item in stream.subscribe()] == [b"abc"] + old.describe.assert_awaited_once() + successor.describe.assert_awaited_once() + assert client.get_workflow_handle.call_args_list[-1].kwargs == { + "run_id": "successor-run" + } + + +async def test_workflow_streams_shared_wire_vector() -> None: + converter = DataConverter.default + request = '{"topics":["events"],"from_offset":3}' + response = ( + '{"items":[{"topic":"events","data":"' + + WIRE_ABC + + '","offset":3}],"next_offset":4,"more_ready":false}' + ) + for value, expected in [ + (PollInput(["events"], 3), request), + (PollResult([_WorkflowStreamWireItem("events", WIRE_ABC, 3)], 4), response), + ]: + payloads = await converter.encode([value]) + assert json.loads(payloads[0].data) == json.loads(expected) + decoded = (await converter.decode(payloads, [type(value)]))[0] + assert decoded == value + assert _decode_payload(WIRE_ABC).data == b"abc" + assert _decode_payload(WIRE_ABC).metadata == {"encoding": b"binary/plain"} + + +@dataclass +class ClosedStreamInput: + count: int = 3 + size: int = 1 + truncate: int = 0 + fail: bool = False + tail: bool = False + + +@workflow.defn +class ClosedStreamWorkflow: + @workflow.init + def __init__(self, arg: ClosedStreamInput) -> None: + self.stream = WorkflowStream() + self.closed = False + + @workflow.signal + def close(self) -> None: + self.closed = True + + @workflow.signal + def detach(self) -> None: + self.stream.detach_pollers() + + @workflow.run + async def run(self, arg: ClosedStreamInput) -> None: + for i in range(arg.count): + self.stream.topic("events" if i % 2 == 0 else "other").publish( + bytes([i]) * arg.size + ) + self.stream.truncate(arg.truncate) + await workflow.wait_condition(lambda: self.closed) + if arg.tail: + self.stream.topic("events").publish(b"tail") + if arg.fail: + raise ApplicationError("closed stream failure") + + +@pytest.mark.parametrize("status", TERMINAL_STATUSES) +async def test_workflow_streams_read_after_terminal_cold_replay( + client: Client, status: WorkflowExecutionStatus +) -> None: + async with new_worker( + client, ClosedStreamWorkflow, max_cached_workflows=0 + ) as worker: + handle = await client.start_workflow( + ClosedStreamWorkflow.run, + ClosedStreamInput(fail=status == WorkflowExecutionStatus.FAILED), + id=f"closed-stream-{uuid.uuid4()}", + task_queue=worker.task_queue, + run_timeout=timedelta(seconds=2) + if status == WorkflowExecutionStatus.TIMED_OUT + else None, + ) + stream = WorkflowStreamClient(handle) + await assert_eq_eventually(3, stream.get_offset) + if status == WorkflowExecutionStatus.CANCELED: + await handle.cancel() + elif status == WorkflowExecutionStatus.TERMINATED: + await handle.terminate() + elif status != WorkflowExecutionStatus.TIMED_OUT: + await handle.signal(ClosedStreamWorkflow.close) + + async def execution_status() -> WorkflowExecutionStatus: + status = (await handle.describe()).status + assert status is not None + return status + + await assert_eq_eventually(status, execution_status) + before = await handle.fetch_history() + items = [item async for item in stream.subscribe(result_type=bytes)] + assert [item.data for item in items] == [b"\x00", b"\x01", b"\x02"] + assert [item.offset for item in items] == [0, 1, 2] + assert (await handle.fetch_history()).events == before.events + + +@pytest.mark.parametrize( + "arg,topics,offset,expected", + [ + (ClosedStreamInput(count=0), None, 0, []), + (ClosedStreamInput(), ["missing"], 0, []), + (ClosedStreamInput(), None, 1, [1, 2]), + (ClosedStreamInput(), None, 3, []), + (ClosedStreamInput(), None, 10, []), + (ClosedStreamInput(count=6, truncate=3), None, 1, [3, 4, 5]), + (ClosedStreamInput(count=8, size=200_000), None, 0, list(range(8))), + (ClosedStreamInput(count=8, size=200_000), ["events"], 0, [0, 2, 4, 6]), + ], +) +async def test_workflow_streams_closed_retention_and_pagination( + client: Client, + arg: ClosedStreamInput, + topics: list[str] | None, + offset: int, + expected: list[int], +) -> None: + async with new_worker(client, ClosedStreamWorkflow) as worker: + handle = await client.start_workflow( + ClosedStreamWorkflow.run, + arg, + id=f"closed-stream-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal(ClosedStreamWorkflow.close) + await handle.result() + stream = WorkflowStreamClient.create(client, handle.id) + items = [ + item async for item in stream.subscribe(topics, offset, result_type=bytes) + ] + assert [item.offset for item in items] == expected + assert [item.data for item in items] == [ + bytes([i]) * arg.size for i in expected + ] + + +@pytest.mark.filterwarnings( + "ignore::temporalio.workflow.UnfinishedUpdateHandlersWarning" +) +async def test_workflow_streams_accepted_poll_drains_unread_tail( + client: Client, +) -> None: + async with new_worker(client, ClosedStreamWorkflow) as worker: + handle = await client.start_workflow( + ClosedStreamWorkflow.run, + ClosedStreamInput(tail=True), + id=f"closed-stream-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + stream = WorkflowStreamClient(handle) + await assert_eq_eventually(3, stream.get_offset) + accepted = asyncio.Event() + original_start = handle.start_update + + async def start(*args: Any, **kwargs: Any) -> Any: + update = await original_start(*args, **kwargs) + if args[1].from_offset == 3: + accepted.set() + return update + + async def consume() -> list[tuple[int, bytes]]: + return [ + (item.offset, item.data) + async for item in stream.subscribe( + result_type=bytes, poll_cooldown=timedelta(0) + ) + ] + + with patch.object(handle, "start_update", side_effect=start): + task = asyncio.create_task(consume()) + await accepted.wait() + await handle.signal(ClosedStreamWorkflow.close) + assert await task == [ + (0, b"\x00"), + (1, b"\x01"), + (2, b"\x02"), + (3, b"tail"), + ] + + +async def test_workflow_streams_query_is_immediate_while_draining( + client: Client, +) -> None: + async with new_worker(client, ClosedStreamWorkflow) as worker: + handle = await client.start_workflow( + ClosedStreamWorkflow.run, + ClosedStreamInput(count=6, truncate=3), + id=f"closed-stream-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal(ClosedStreamWorkflow.detach) + result = await handle.query(POLL, PollInput([], 1), result_type=PollResult) + assert [item.offset for item in result.items] == [3, 4, 5] + empty = await handle.query( + POLL, PollInput(["missing"], 6), result_type=PollResult + ) + assert empty == PollResult([], 6) + await handle.signal(ClosedStreamWorkflow.close) + await handle.result() + + +async def test_workflow_streams_closed_codec_and_raw_conversion(client: Client) -> None: + from tests.test_converter import SimpleCodec + + config = client.config() + config["data_converter"] = DataConverter(payload_codec=SimpleCodec()) + codec_client = Client(**config) + async with new_worker( + codec_client, ClosedStreamWorkflow, max_cached_workflows=0 + ) as worker: + handle = await codec_client.start_workflow( + ClosedStreamWorkflow.run, + ClosedStreamInput(), + id=f"closed-stream-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal(ClosedStreamWorkflow.close) + await handle.result() + stream = WorkflowStreamClient.create(codec_client, handle.id) + typed = [item.data async for item in stream.subscribe(result_type=bytes)] + raw = [ + item.data.payload.data + async for item in stream.subscribe(result_type=RawValue) + ] + assert typed == raw == [b"\x00", b"\x01", b"\x02"] + + +async def test_workflow_streams_closed_explicit_run_after_workflow_id_reuse( + client: Client, +) -> None: + async with new_worker(client, ClosedStreamWorkflow) as worker: + workflow_id = f"closed-stream-{uuid.uuid4()}" + old = await client.start_workflow( + ClosedStreamWorkflow.run, + ClosedStreamInput(), + id=workflow_id, + task_queue=worker.task_queue, + ) + await old.signal(ClosedStreamWorkflow.close) + await old.result() + new = await client.start_workflow( + ClosedStreamWorkflow.run, + ClosedStreamInput(count=1), + id=workflow_id, + task_queue=worker.task_queue, + ) + pinned = WorkflowStreamClient( + client.get_workflow_handle(workflow_id, run_id=old.result_run_id) + ) + + async def consume() -> list[int]: + return [item.offset async for item in pinned.subscribe()] + + assert await asyncio.gather(consume(), consume()) == [[0, 1, 2], [0, 1, 2]] + await new.signal(ClosedStreamWorkflow.close) + await new.result() + latest = WorkflowStreamClient.create(client, workflow_id) + assert [item.offset async for item in latest.subscribe()] == [0] + + +@workflow.defn +class LegacyClosedStreamWorkflow: + @workflow.run + async def run(self) -> None: + pass + + +async def test_workflow_streams_missing_query_and_configured_query_rejection( + client: Client, +) -> None: + async with new_worker( + client, ClosedStreamWorkflow, LegacyClosedStreamWorkflow + ) as worker: + legacy = await client.start_workflow( + LegacyClosedStreamWorkflow.run, + id=f"closed-stream-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await legacy.result() + with pytest.raises(WorkflowQueryFailedError): + _ = [item async for item in WorkflowStreamClient(legacy).subscribe()] + + handle = await client.start_workflow( + ClosedStreamWorkflow.run, + ClosedStreamInput(), + id=f"closed-stream-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal(ClosedStreamWorkflow.close) + await handle.result() + config = client.config() + config["default_workflow_query_reject_condition"] = ( + QueryRejectCondition.NOT_OPEN + ) + stream = WorkflowStreamClient.create(Client(**config), handle.id) + with pytest.raises(WorkflowQueryRejectedError): + _ = [item async for item in stream.subscribe()] + + missing = WorkflowStreamClient.create(client, f"missing-{uuid.uuid4()}") + with pytest.raises(RPCError) as err: + _ = [item async for item in missing.subscribe()] + assert err.value.status == RPCStatusCode.NOT_FOUND diff --git a/tests/contrib/workflow_streams/test_workflow_streams.py b/tests/contrib/workflow_streams/test_workflow_streams.py index e7cedd038..a61db95f9 100644 --- a/tests/contrib/workflow_streams/test_workflow_streams.py +++ b/tests/contrib/workflow_streams/test_workflow_streams.py @@ -3,32 +3,26 @@ from __future__ import annotations import asyncio -import sys import uuid +from asyncio import timeout as _async_timeout +from collections.abc import Sequence from dataclasses import dataclass from datetime import timedelta from typing import Any, cast from unittest.mock import patch -if sys.version_info >= (3, 11): - from asyncio import timeout as _async_timeout # pyright: ignore[reportUnreachable] -else: - from async_timeout import ( # pyright: ignore[reportUnreachable] - timeout as _async_timeout, - ) - import google.protobuf.duration_pb2 import nexusrpc import nexusrpc.handler import pytest +import temporalio.api.common.v1 import temporalio.api.nexus.v1 import temporalio.api.operatorservice.v1 import temporalio.api.workflowservice.v1 from temporalio import activity, nexus, workflow from temporalio.client import ( Client, - WorkflowExecutionStatus, WorkflowHandle, WorkflowUpdateFailedError, WorkflowUpdateStage, @@ -47,9 +41,10 @@ WorkflowTopicHandle, ) from temporalio.contrib.workflow_streams._types import _encode_payload -from temporalio.converter import DataConverter -from temporalio.exceptions import ApplicationError +from temporalio.converter import DataConverter, PayloadCodec +from temporalio.exceptions import ActivityError, ApplicationError from temporalio.nexus import WorkflowRunOperationContext, workflow_run_operation +from temporalio.service import RPCError, RPCStatusCode from temporalio.testing import WorkflowEnvironment from temporalio.worker import Worker from tests.helpers import assert_eq_eventually, new_worker @@ -67,6 +62,18 @@ def _wire_bytes(data: bytes) -> str: return _encode_payload(payload) +class FailingEncodePayloadCodec(PayloadCodec): + async def encode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + raise RuntimeError("payload codec encode failed") + + async def decode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + return list(payloads) + + # --------------------------------------------------------------------------- # Test workflows (must be module-level, not local classes) # --------------------------------------------------------------------------- @@ -88,6 +95,37 @@ async def run(self) -> None: await workflow.wait_condition(lambda: self._closed) +@workflow.defn +class CancelSubscriptionWorkflow: + @workflow.init + def __init__(self) -> None: + self.stream = WorkflowStream() + self._cancel_requested = False + + @workflow.signal + def cancel_subscription(self) -> None: + self._cancel_requested = True + + @workflow.run + async def run(self) -> str: + self.stream.topic("events", type=bytes).publish(b"seed") + handle = workflow.start_activity( + "subscribe_until_cancelled", + start_to_close_timeout=timedelta(seconds=30), + heartbeat_timeout=timedelta(seconds=1), + cancellation_type=workflow.ActivityCancellationType.WAIT_CANCELLATION_COMPLETED, + ) + await workflow.wait_condition(lambda: self._cancel_requested) + handle.cancel() + try: + result = await handle + except ActivityError as err: + result = type(err.cause).__name__ + self.stream.detach_pollers() + await workflow.wait_condition(workflow.all_handlers_finished) + return result + + @workflow.defn class ActivityPublishWorkflow: @workflow.init @@ -360,6 +398,31 @@ async def publish_items(count: int) -> None: client.topic("events", type=bytes).publish(f"item-{i}".encode()) +class CancellableSubscriber: + def __init__(self) -> None: + self.started = asyncio.Event() + + @activity.defn(name="subscribe_until_cancelled") + async def subscribe(self) -> str: + async def heartbeat() -> None: + while True: + activity.heartbeat() + await asyncio.sleep(0.1) + + heartbeat_task = asyncio.create_task(heartbeat()) + try: + stream = WorkflowStreamClient.from_within_activity() + try: + async for _ in stream.subscribe(result_type=bytes): + self.started.set() + except asyncio.CancelledError: + return "subscription-cancelled" + return "subscription-ended" + finally: + heartbeat_task.cancel() + await asyncio.gather(heartbeat_task, return_exceptions=True) + + @activity.defn(name="publish_multi_topic") async def publish_multi_topic(count: int) -> None: topics = ["a", "b", "c"] @@ -1076,7 +1139,7 @@ async def test_priority_flush(client: Client) -> None: @pytest.mark.asyncio async def test_iterator_cancellation(client: Client) -> None: """Cancelling a subscription iterator after it has yielded an item - completes cleanly.""" + propagates cancellation.""" async with new_worker( client, BasicWorkflowStreamWorkflow, @@ -1112,10 +1175,8 @@ async def subscribe_and_collect() -> None: async with _async_timeout(5): await first_item.wait() task.cancel() - try: + with pytest.raises(asyncio.CancelledError): await task - except asyncio.CancelledError: - pass assert len(items) == 1 assert items[0].data == b"seed" @@ -1123,6 +1184,25 @@ async def subscribe_and_collect() -> None: await handle.signal(BasicWorkflowStreamWorkflow.close) +@pytest.mark.asyncio +async def test_activity_subscription_propagates_cancellation(client: Client) -> None: + subscriber = CancellableSubscriber() + async with new_worker( + client, + CancelSubscriptionWorkflow, + activities=[subscriber.subscribe], + ) as worker: + handle = await client.start_workflow( + CancelSubscriptionWorkflow.run, + id=f"workflow-stream-activity-cancel-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + async with _async_timeout(5): + await subscriber.started.wait() + await handle.signal(CancelSubscriptionWorkflow.cancel_subscription) + assert await handle.result() == "subscription-cancelled" + + @pytest.mark.asyncio async def test_context_manager_flushes_on_exit(client: Client) -> None: """Context manager exit flushes all buffered items.""" @@ -1401,6 +1481,94 @@ async def maybe_failing_signal(*args: Any, **kwargs: Any) -> Any: await handle.signal(BasicWorkflowStreamWorkflow.close) +@pytest.mark.asyncio +@pytest.mark.parametrize("status", [RPCStatusCode.UNAVAILABLE, RPCStatusCode.CANCELLED]) +async def test_background_flusher_retries_failed_signal( + client: Client, status: RPCStatusCode +) -> None: + async with new_worker(client, BasicWorkflowStreamWorkflow) as worker: + handle = await client.start_workflow( + BasicWorkflowStreamWorkflow.run, + id=f"workflow-stream-background-flush-retry-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + stream = WorkflowStreamClient(handle, batch_interval=timedelta(milliseconds=10)) + real_signal = handle.signal + first_flush_failed = asyncio.Event() + retry_succeeded = asyncio.Event() + + async def fail_first_signal(*args: Any, **kwargs: Any) -> None: + if not first_flush_failed.is_set(): + first_flush_failed.set() + raise RPCError( + message="simulated delivery failure", + status=status, + raw_grpc_status=b"", + ) + await real_signal(*args, **kwargs) + retry_succeeded.set() + + with patch.object(handle, "signal", side_effect=fail_first_signal): + async with stream: + stream.topic("events", type=bytes).publish(b"item") + await asyncio.wait_for(first_flush_failed.wait(), timeout=5) + await asyncio.wait_for(retry_succeeded.wait(), timeout=5) + + items = await collect_items(client, handle, None, 0, 1) + assert [item.data for item in items] == [b"item"] + + await handle.signal(BasicWorkflowStreamWorkflow.close) + + +@pytest.mark.asyncio +async def test_background_flusher_propagates_payload_codec_error( + client: Client, +) -> None: + async with new_worker(client, BasicWorkflowStreamWorkflow) as worker: + handle = await client.start_workflow( + BasicWorkflowStreamWorkflow.run, + id=f"workflow-stream-background-flush-codec-error-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + config = client.config() + config["data_converter"] = DataConverter( + payload_codec=FailingEncodePayloadCodec() + ) + codec_client = Client(**config) + stream = WorkflowStreamClient.create( + codec_client, + handle.id, + batch_interval=timedelta(milliseconds=10), + ) + stream._flush_task = asyncio.create_task(stream._run_flusher()) + + stream.topic("events", type=bytes).publish(b"item", force_flush=True) + with pytest.raises(RuntimeError, match="payload codec encode failed"): + await asyncio.wait_for(stream._flush_task, timeout=1) + + await handle.signal(BasicWorkflowStreamWorkflow.close) + + +@pytest.mark.asyncio +async def test_background_flusher_propagates_message_too_large( + client: Client, +) -> None: + handle = client.get_workflow_handle("workflow-stream-message-too-large") + stream = WorkflowStreamClient(handle, batch_interval=timedelta(milliseconds=10)) + error = RPCError( + message="grpc: received message larger than max", + status=RPCStatusCode.RESOURCE_EXHAUSTED, + raw_grpc_status=b"", + ) + + with patch.object(handle, "signal", side_effect=error): + flusher = asyncio.create_task(stream._run_flusher()) + stream.topic("events", type=bytes).publish(b"item", force_flush=True) + with pytest.raises(RPCError, match="received message larger than max"): + await asyncio.wait_for(flusher, timeout=1) + + @pytest.mark.asyncio async def test_flush_raises_after_max_retry_duration(client: Client) -> None: """When max_retry_duration is exceeded, flush raises TimeoutError and the @@ -2009,114 +2177,6 @@ async def test_continue_as_new_helper(client: Client) -> None: await new_handle.signal(ContinueAsNewHelperWorkflow.close) -@pytest.mark.asyncio -async def test_follow_continue_as_new_describes_polled_run(client: Client) -> None: - """Regression test for continue-as-new detection. - - ``_follow_continue_as_new`` must describe the *specific run the poll was - admitted to* — a rolled-over run is closed with status CONTINUED_AS_NEW, - whereas the latest (successor) run reports RUNNING. The previous - implementation described the latest run, so the check never fired and a poll - failure during a rollover stopped the subscription instead of following it. - - Driving the exact poll-failure race deterministically is impractical (the - workflow drains in-flight polls before continuing-as-new), so this asserts - the helper's decision directly against a real post-rollover run. - """ - async with new_worker(client, ContinueAsNewHelperWorkflow) as worker: - handle = await client.start_workflow( - ContinueAsNewHelperWorkflow.run, - CANWorkflowInputTyped(), - id=f"workflow-stream-can-follow-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - await handle.signal( - "__temporal_workflow_stream_publish", - PublishInput( - items=[PublishEntry(topic="events", data=_wire_bytes(b"item-0"))], - publisher_id="pub", - sequence=1, - ), - ) - old_run_id = handle.result_run_id - - await handle.signal(ContinueAsNewHelperWorkflow.trigger_continue) - new_handle = client.get_workflow_handle(handle.id) - await assert_eq_eventually(True, lambda: _is_different_run(handle, new_handle)) - - # The fix's premise: the polled (old) run reports CONTINUED_AS_NEW; the - # latest run reports RUNNING. - old_desc = await client.get_workflow_handle( - handle.id, run_id=old_run_id - ).describe() - assert old_desc.status == WorkflowExecutionStatus.CONTINUED_AS_NEW - latest_desc = await client.get_workflow_handle(handle.id).describe() - assert latest_desc.status == WorkflowExecutionStatus.RUNNING - - # The client follows the rollover when it describes the polled run, but - # the previous latest-run behavior (polled_run_id unset) would not. - following = WorkflowStreamClient.create(client, handle.id) - following._polled_run_id = old_run_id - assert await following._follow_continue_as_new() is True - - latest_only = WorkflowStreamClient.create(client, handle.id) - latest_only._polled_run_id = None # describes the latest run, as the bug did - assert await latest_only._follow_continue_as_new() is False - - await new_handle.signal(ContinueAsNewHelperWorkflow.close) - - -@pytest.mark.asyncio -async def test_subscribe_captures_polled_run_id(client: Client) -> None: - """The ``subscribe`` loop must record the run each poll was admitted to. - - ``_follow_continue_as_new`` relies on ``_polled_run_id`` to describe the - *polled* run rather than the latest one (see - ``test_follow_continue_as_new_describes_polled_run``). This verifies the - real subscribe flow populates that field, rather than setting it by hand. - """ - async with new_worker(client, BasicWorkflowStreamWorkflow) as worker: - handle = await client.start_workflow( - BasicWorkflowStreamWorkflow.run, - id=f"workflow-stream-polled-run-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) - await handle.signal( - "__temporal_workflow_stream_publish", - PublishInput( - items=[PublishEntry(topic="events", data=_wire_bytes(b"item-0"))], - publisher_id="pub", - sequence=1, - ), - ) - - stream = WorkflowStreamClient.create(client, handle.id) - received: list[WorkflowStreamItem] = [] - - async def consume() -> None: - async for item in stream.subscribe( - from_offset=0, poll_cooldown=timedelta(0), result_type=bytes - ): - received.append(item) - - async def received_count() -> int: - return len(received) - - task = asyncio.create_task(consume()) - try: - await assert_eq_eventually(1, received_count) - # The poll was admitted to the run we started; subscribe must have - # captured exactly that run id, not left it unset. - assert stream._polled_run_id == handle.result_run_id - finally: - task.cancel() - try: - await task - except asyncio.CancelledError: - pass - await handle.signal(BasicWorkflowStreamWorkflow.close) - - @workflow.defn class DrainingGateWorkflow: """CAN workflow that detaches pollers and then *holds* in the draining state @@ -2407,7 +2467,7 @@ async def test_standalone_activity_publish( client: Client, env: WorkflowEnvironment ) -> None: """Activity started directly via Client.start_activity publishes via create().""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server does not support Client.start_activity: " "https://github.com/temporalio/sdk-java/issues/2741" @@ -2451,7 +2511,7 @@ async def test_standalone_activity_subscribe( client: Client, env: WorkflowEnvironment ) -> None: """Standalone activity subscribes to a broker workflow via create().""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server does not support Client.start_activity: " "https://github.com/temporalio/sdk-java/issues/2741" @@ -2496,7 +2556,7 @@ async def test_from_within_activity_in_standalone_activity_raises( ) -> None: """from_within_activity() raises a clear error pointing at create() when used in a standalone activity (one without a parent workflow).""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server does not support Client.start_activity: " "https://github.com/temporalio/sdk-java/issues/2741" @@ -2704,7 +2764,7 @@ async def test_cross_namespace_nexus_stream( client: Client, env: WorkflowEnvironment ) -> None: """Nexus operation starts a workflow stream broker in another namespace; test subscribes.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus not supported with time-skipping server") count = 5 diff --git a/tests/helpers/__init__.py b/tests/helpers/__init__.py index fe37296e9..4c0462bc0 100644 --- a/tests/helpers/__init__.py +++ b/tests/helpers/__init__.py @@ -31,7 +31,11 @@ PollWorkflowExecutionUpdateRequest, UnpauseActivityRequest, ) -from temporalio.client import BuildIdOpAddNewDefault, Client, WorkflowHandle +from temporalio.client import ( + BuildIdOpAddNewDefault, + Client, + WorkflowHandle, +) from temporalio.common import SearchAttributeKey from temporalio.converter import DataConverter from temporalio.service import RPCError, RPCStatusCode @@ -83,9 +87,9 @@ async def assert_eventually( if timedelta(seconds=time.monotonic() - start_sec) >= timeout: raise except RPCError as e: - if retry_on_rpc_cancelled and e.status == RPCStatusCode.CANCELLED: - continue - else: + if not (retry_on_rpc_cancelled and e.status == RPCStatusCode.CANCELLED): + raise + if timedelta(seconds=time.monotonic() - start_sec) >= timeout: raise await asyncio.sleep(interval.total_seconds()) @@ -157,6 +161,24 @@ async def ensure_search_attributes_present( assert {key.name for key in keys}.issubset(resp.custom_attributes.keys()) +def assert_duration_same(expected: float, actual: float, tolerance: float) -> None: + """Assert two durations (in seconds) are the same within ``tolerance``.""" + delta = abs(actual - expected) + assert delta <= tolerance, ( + f"expected {expected}s ± {tolerance}s, got {actual}s (delta {delta:.3f}s)" + ) + + +async def find_history_event( + handle: WorkflowHandle, predicate: Callable[[HistoryEvent], bool] +) -> HistoryEvent | None: + """Return the first history event matching ``predicate``, or ``None``.""" + async for event in handle.fetch_history_events(): + if predicate(event): + return event + return None + + def find_free_port() -> int: with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s: s.bind(("", 0)) diff --git a/tests/helpers/time_skipping.py b/tests/helpers/time_skipping.py new file mode 100644 index 000000000..49f238359 --- /dev/null +++ b/tests/helpers/time_skipping.py @@ -0,0 +1,44 @@ +"""Helpers for time-skipping tests.""" + +from __future__ import annotations + +import platform + +import pytest + +from temporalio.api.enums.v1 import event_type_pb2 as _event_type +from temporalio.client import WorkflowHandle + + +def skip_if_time_skipping_v1_unsupported() -> None: + """Skip when a V1 time-skipping environment cannot be started here.""" + if platform.machine() not in ("i386", "AMD64", "x86_64"): + pytest.skip("Time skipping server does not run outside x86") + + +async def _has_time_skipping_transitioned_event(handle: WorkflowHandle) -> bool: + """Return True iff the workflow history contains the time-skipping transition event + ``EVENT_TYPE_WORKFLOW_EXECUTION_TIME_SKIPPING_TRANSITIONED``.""" + async for e in handle.fetch_history_events(): + if ( + e.event_type + == _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_TIME_SKIPPING_TRANSITIONED + ): + return True + return False + + +async def assert_time_was_skipped(handle: WorkflowHandle) -> None: + """Fail if the workflow history has no time-skipping event.""" + assert await _has_time_skipping_transitioned_event(handle), ( + f"workflow {handle.id} has no TIME_SKIPPING_TRANSITIONED events — " + f"time skipping never engaged" + ) + + +async def assert_time_was_not_skipped(handle: WorkflowHandle) -> None: + """Fail if the workflow history has any time-skipping event.""" + assert not await _has_time_skipping_transitioned_event(handle), ( + f"workflow {handle.id} has at least one TIME_SKIPPING_TRANSITIONED " + f"event — time skipping engaged unexpectedly" + ) diff --git a/tests/nexus/test_dynamic_creation_of_user_handler_classes.py b/tests/nexus/test_dynamic_creation_of_user_handler_classes.py index 214e02ab9..1c1b1b350 100644 --- a/tests/nexus/test_dynamic_creation_of_user_handler_classes.py +++ b/tests/nexus/test_dynamic_creation_of_user_handler_classes.py @@ -57,7 +57,7 @@ async def test_run_nexus_service_from_programmatically_created_service_handler( client: Client, env: WorkflowEnvironment, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) diff --git a/tests/nexus/test_handler_interface_implementation.py b/tests/nexus/test_handler_interface_implementation.py index f20f25a04..127b50d01 100644 --- a/tests/nexus/test_handler_interface_implementation.py +++ b/tests/nexus/test_handler_interface_implementation.py @@ -1,5 +1,5 @@ from dataclasses import dataclass -from typing import Any +from typing import Any, ClassVar import nexusrpc import nexusrpc.handler @@ -12,9 +12,9 @@ @dataclass class _InterfaceImplementationTestCase: - Interface: type[Any] - Impl: type[Any] - error_message: str | None + Interface: ClassVar[type[Any]] + Impl: ClassVar[type[Any]] + error_message: ClassVar[str | None] class ValidImpl(_InterfaceImplementationTestCase): diff --git a/tests/nexus/test_handler_operation_definitions.py b/tests/nexus/test_handler_operation_definitions.py index f47e3f47f..ef1e51ff6 100644 --- a/tests/nexus/test_handler_operation_definitions.py +++ b/tests/nexus/test_handler_operation_definitions.py @@ -5,7 +5,7 @@ import warnings from dataclasses import dataclass -from typing import Any +from typing import Any, ClassVar import nexusrpc.handler import pytest @@ -27,8 +27,8 @@ class Output: @dataclass class _TestCase: - Service: type[Any] - expected_operations: dict[str, nexusrpc.Operation] + Service: ClassVar[type[Any]] + expected_operations: ClassVar[dict[str, nexusrpc.Operation]] class NotCalled(_TestCase): diff --git a/tests/nexus/test_link_conversion.py b/tests/nexus/test_link_conversion.py index 15fc8d77f..cf8e1a117 100644 --- a/tests/nexus/test_link_conversion.py +++ b/tests/nexus/test_link_conversion.py @@ -8,6 +8,28 @@ import temporalio.api.enums.v1 import temporalio.nexus._link_conversion +_CALLBACK_TYPE = temporalio.api.common.v1.Link.Callback.DESCRIPTOR.full_name +_WORKFLOW_EXECUTION = temporalio.api.enums.v1.ExecutionType.EXECUTION_TYPE_WORKFLOW + + +def _callback_link( + execution_type: temporalio.api.enums.v1.ExecutionType.ValueType, + business_id: str, + component_path: list[str] | None = None, +) -> temporalio.api.common.v1.Link: + return temporalio.api.common.v1.Link( + callback=temporalio.api.common.v1.Link.Callback( + namespace="ns", + execution=temporalio.api.common.v1.Execution( + type=execution_type, + business_id=business_id, + run_id="run-id", + ), + component_path=component_path, + request_id="request-id", + ) + ) + @pytest.mark.parametrize( ["query_param_str", "expected_event_ref"], @@ -429,3 +451,152 @@ def test_link_conversion_utilities(): assert p2c("a") == "A" assert c2p("A") == "A" + + +def test_event_reference_to_query_params_omits_unset_event_id(): + """An unset event ID is 0, which is not a valid event ID, so it is left out entirely. + + The event type alone identifies the event in that case; a WorkflowExecutionStarted link, for + example, always refers to the first event. + """ + query_params_str = temporalio.nexus._link_conversion._event_reference_to_query_params( + temporalio.api.common.v1.Link.WorkflowEvent.EventReference( + event_type=temporalio.api.enums.v1.EventType.EVENT_TYPE_WORKFLOW_EXECUTION_STARTED, + ) + ) + query_params = urllib.parse.parse_qs(query_params_str) + assert ( + temporalio.nexus._link_conversion.LINK_EVENT_ID_PARAM_NAME not in query_params + ) + assert query_params[ + temporalio.nexus._link_conversion.LINK_EVENT_TYPE_PARAM_NAME + ] == ["WorkflowExecutionStarted"] + + # A real event ID is still sent. + query_params_str = temporalio.nexus._link_conversion._event_reference_to_query_params( + temporalio.api.common.v1.Link.WorkflowEvent.EventReference( + event_id=1, + event_type=temporalio.api.enums.v1.EventType.EVENT_TYPE_WORKFLOW_EXECUTION_STARTED, + ) + ) + assert urllib.parse.parse_qs(query_params_str)[ + temporalio.nexus._link_conversion.LINK_EVENT_ID_PARAM_NAME + ] == ["1"] + + +@pytest.mark.parametrize( + ["converter", "url"], + [ + ( + "nexus_link_to_workflow_event_link", + "https:///namespaces/ns/workflows/wid/rid/history" + "?referenceType=EventReference&eventType=WorkflowExecutionStarted", + ), + ("nexus_link_to_workflow_link", "https:///namespaces/ns/workflows/wid/rid"), + ( + "nexus_link_to_nexus_operation_link", + "https:///namespaces/ns/nexus-operations/op-id/rid/details", + ), + ( + "nexus_link_to_activity_link", + "https:///namespaces/ns/activities/act-id/rid/details", + ), + ], +) +def test_link_with_non_temporal_scheme_is_ignored(converter: str, url: str): + """A link must carry the temporal scheme; the path alone does not make it one of ours.""" + link = nexusrpc.Link(url=url, type="ignored") + assert getattr(temporalio.nexus._link_conversion, converter)(link) is None + + +@pytest.mark.parametrize( + ["url", "expected_link"], + [ + ( + "temporal:///namespaces/ns/workflows/wf-id/run-id/callbacks/request-id", + _callback_link(_WORKFLOW_EXECUTION, "wf-id"), + ), + ( + "temporal:///namespaces/ns/activities/act-id/run-id/callbacks/request-id", + _callback_link( + temporalio.api.enums.v1.ExecutionType.EXECUTION_TYPE_ACTIVITY, "act-id" + ), + ), + ( + "temporal:///namespaces/ns/nexus-operations/op-id/run-id/callbacks/request-id", + _callback_link( + temporalio.api.enums.v1.ExecutionType.EXECUTION_TYPE_NEXUS_OPERATION, + "op-id", + ), + ), + ( + "temporal:///namespaces/ns/workflows/wf-id/run-id/callbacks/request-id" + "?componentPath=A%3AB&componentPath=C%2FD&componentPath=E_F", + _callback_link(_WORKFLOW_EXECUTION, "wf-id", ["A:B", "C/D", "E_F"]), + ), + # Segments end in a user-supplied ID, so a comma inside one is reachable. + ( + "temporal:///namespaces/ns/workflows/wf-id/run-id/callbacks/request-id" + "?componentPath=Updates&componentPath=id%2Cwith%2Ccommas", + _callback_link(_WORKFLOW_EXECUTION, "wf-id", ["Updates", "id,with,commas"]), + ), + # Only a path whose order differs from its sorted order proves order is preserved. + ( + "temporal:///namespaces/ns/workflows/wf-id/run-id/callbacks/request-id" + "?componentPath=zulu&componentPath=alpha&componentPath=", + _callback_link(_WORKFLOW_EXECUTION, "wf-id", ["zulu", "alpha", ""]), + ), + ( + "temporal:///namespaces/ns%2Fwith-slash/workflows/wf-id%2Fcallbacks%2Ffake" + "/run-id/callbacks/request%20id%3Fx%3D1", + temporalio.api.common.v1.Link( + callback=temporalio.api.common.v1.Link.Callback( + namespace="ns/with-slash", + execution=temporalio.api.common.v1.Execution( + type=_WORKFLOW_EXECUTION, + business_id="wf-id/callbacks/fake", + run_id="run-id", + ), + request_id="request id?x=1", + ) + ), + ), + ], +) +def test_link_conversion_callback_to_link_and_back( + url: str, expected_link: temporalio.api.common.v1.Link +): + link = nexusrpc.Link(url=url, type=_CALLBACK_TYPE) + assert ( + temporalio.nexus._link_conversion.temporal_link_to_nexus_link(expected_link) + == link + ) + assert ( + temporalio.nexus._link_conversion.nexus_link_to_temporal_link(link) + == expected_link + ) + + +def test_callback_link_with_unsupported_execution_type_is_ignored(): + assert ( + temporalio.nexus._link_conversion.temporal_link_to_nexus_link( + _callback_link( + temporalio.api.enums.v1.ExecutionType.EXECUTION_TYPE_UNSPECIFIED, + "wf-id", + ) + ) + is None + ) + + +@pytest.mark.parametrize( + "url", + [ + "https:///namespaces/ns/workflows/wf-id/run-id/callbacks/request-id", + "temporal:///namespaces/ns/workflows/wf-id/run-id/callbacks", + "temporal:///namespaces/ns/schedules/sched-id/run-id/callbacks/request-id", + ], +) +def test_invalid_callback_nexus_link_is_ignored(url: str): + link = nexusrpc.Link(url=url, type=_CALLBACK_TYPE) + assert temporalio.nexus._link_conversion.nexus_link_to_temporal_link(link) is None diff --git a/tests/nexus/test_link_propagation.py b/tests/nexus/test_link_propagation.py index eb9360c8c..f656f57c1 100644 --- a/tests/nexus/test_link_propagation.py +++ b/tests/nexus/test_link_propagation.py @@ -130,6 +130,39 @@ def nexus_ctx() -> Generator[_TemporalStartOperationContext]: ) +@pytest.fixture +def nexus_ctx_linkless() -> Generator[_TemporalStartOperationContext]: + """Like `nexus_ctx`, but with no inbound links and no callback URL.""" + nexus_context = nexusrpc.handler.StartOperationContext( + service="svc", + operation="op", + headers={}, + request_id="req-id", + callback_url=None, + inbound_links=[], + callback_headers={}, + task_cancellation=_NexusTaskCancellation(), + ) + ctx = temporalio.nexus._operation_context._TemporalStartOperationContext( + nexus_context=nexus_context, + client=mock.MagicMock(namespace=NAMESPACE), + info=lambda: temporalio.nexus.Info( + endpoint="endpoint", namespace=NAMESPACE, task_queue="tq" + ), + _runtime_metric_meter=mock.MagicMock(), + _worker_shutdown_event=mock.MagicMock(), + ) + token = temporalio.nexus._operation_context._temporal_start_operation_context.set( + ctx + ) + try: + yield ctx + finally: + temporalio.nexus._operation_context._temporal_start_operation_context.reset( + token + ) + + def _make_client_impl(workflow_service: Any) -> _ClientImpl: client = mock.MagicMock() client.namespace = NAMESPACE @@ -749,6 +782,30 @@ async def test_backing_activity_start_gets_nexus_request_fields() -> None: assert list(req.completion_callbacks[0].links) == [_inbound_nexus_link()] +@pytest.mark.usefixtures("nexus_ctx_linkless") +async def test_activity_start_omits_on_conflict_options_when_linkless() -> None: + impl = _make_client_impl(mock.MagicMock()) + + req = await impl._build_start_activity_execution_request(_start_activity_input()) + + assert req.request_id == "req-id" + assert not req.HasField("on_conflict_options") + + +@pytest.mark.usefixtures("nexus_ctx_linkless") +async def test_backing_activity_start_omits_on_conflict_options_when_linkless() -> None: + impl = _make_client_impl(mock.MagicMock()) + + with temporalio.nexus._operation_context._nexus_backing_start_context(): + req = await impl._build_start_activity_execution_request( + _start_activity_input() + ) + + assert req.request_id == "req-id" + assert len(req.completion_callbacks) == 0 + assert not req.HasField("on_conflict_options") + + # ── handler-level: backlinks land on the StartOperationResponse ────────────────────────────── # A response link that a handler stashes on ctx.outbound_links, mimicking what a signal RPC inside @@ -827,6 +884,9 @@ async def test_sync_response_includes_signal_backlinks() -> None: cancellation=_NexusTaskCancellation(), request_deadline=None, endpoint="endpoint", + data_converter=worker._data_converter_for_nexus_task( + "endpoint", "_BacklinkStashingService", "sync_op" + ), ) assert response.HasField("sync_success") assert len(response.sync_success.links) == 1 @@ -841,6 +901,9 @@ async def test_async_response_includes_signal_backlinks() -> None: cancellation=_NexusTaskCancellation(), request_deadline=None, endpoint="endpoint", + data_converter=worker._data_converter_for_nexus_task( + "endpoint", "_BacklinkStashingService", "async_op" + ), ) assert response.HasField("async_success") assert response.async_success.operation_token == "op-token" diff --git a/tests/nexus/test_nexus_handler_callbacks.py b/tests/nexus/test_nexus_handler_callbacks.py new file mode 100644 index 000000000..a021f65d7 --- /dev/null +++ b/tests/nexus/test_nexus_handler_callbacks.py @@ -0,0 +1,1131 @@ +"""Tests for Nexus handler completion callbacks.""" + +from __future__ import annotations + +import asyncio +import dataclasses +import uuid +from collections.abc import AsyncIterator, Callable, Sequence +from contextlib import asynccontextmanager +from dataclasses import dataclass +from datetime import timedelta +from typing import Any + +import nexusrpc +import nexusrpc.handler +import pytest +from nexusrpc.handler import service_handler + +import temporalio.api.common.v1 +import temporalio.converter +import temporalio.nexus.notifications as notifications +from temporalio import activity, nexus, workflow +from temporalio.client import ( + Client, + NexusOperationFailureError, + WorkflowUpdateStage, +) +from temporalio.common import RawValue +from temporalio.converter import PayloadCodec +from temporalio.exceptions import ApplicationError, CancelledError, TerminatedError +from temporalio.nexus import WorkflowRunOperationContext, workflow_run_operation +from temporalio.nexus._notification import _OnCompleteCallback +from temporalio.nexus.notifications.models import ( + OnCompleteRequestResultFailure, + OnCompleteRequestResultSuccess, +) +from temporalio.testing import WorkflowEnvironment +from temporalio.worker import Worker +from tests.helpers import assert_eventually +from tests.helpers.nexus import make_nexus_endpoint_name +from tests.nexus.test_standalone_operations import ( + BlockingHandlerWorkflow, + EchoHandlerWorkflow, + EchoInput, + EchoOutput, + StandaloneTestService, + StandaloneTestServiceHandler, + _RecordingInterceptor, +) + + +@dataclasses.dataclass +class NotificationValue: + message: str + + +class PrefixCodec(PayloadCodec): + """Reversible codec that rejects payloads it did not encode.""" + + async def encode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + return [ + temporalio.api.common.v1.Payload( + metadata={"encoding": b"test/prefix"}, + data=b"prefix:" + payload.SerializeToString(), + ) + for payload in payloads + ] + + async def decode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + decoded: list[temporalio.api.common.v1.Payload] = [] + for payload in payloads: + if payload.metadata.get("encoding") != b"test/prefix": + raise RuntimeError( + f"unexpected payload passed to codec: {dict(payload.metadata)}" + ) + decoded.append( + temporalio.api.common.v1.Payload.FromString( + payload.data.removeprefix(b"prefix:") + ) + ) + return decoded + + +# --------------------------------------------------------------------------- +# Creating completion callbacks +# --------------------------------------------------------------------------- + + +@nexusrpc.handler.service_handler(name="custom.notification.service") +class CustomNotificationHandler: + @nexusrpc.handler.sync_operation(name="CustomOnComplete") + async def on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: notifications.OnCompleteRequest[NotificationValue, NotificationValue], + ) -> notifications.OnCompleteResponse: + return notifications.OnCompleteResponse() + + +@nexusrpc.handler.service_handler(name="sub.notification.service") +class SubNotificationHandler(CustomNotificationHandler): + pass + + +@nexusrpc.service(name="renamed.notification.service") +class RenamedNotificationService: + on_complete: nexusrpc.Operation[ + notifications.OnCompleteRequest[NotificationValue, NotificationValue], + notifications.OnCompleteResponse, + ] = nexusrpc.Operation(name="RenamedOnComplete") + + +@nexusrpc.service(name="sub.renamed.notification.service") +class SubRenamedNotificationService(RenamedNotificationService): + pass + + +@nexusrpc.handler.service_handler(service=RenamedNotificationService) +class RenamedNotificationHandler: + @nexusrpc.handler.sync_operation + async def on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: notifications.OnCompleteRequest[NotificationValue, NotificationValue], + ) -> notifications.OnCompleteResponse: + return notifications.OnCompleteResponse() + + +@nexusrpc.handler.service_handler(name="shape.notification.service") +class NotificationShapeHandler: + @nexusrpc.handler.sync_operation(name="BareOnComplete") + async def bare_on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: notifications.OnCompleteRequest, + ) -> notifications.OnCompleteResponse: + return notifications.OnCompleteResponse() + + @nexusrpc.handler.sync_operation(name="WrongOutput") + async def wrong_output( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: notifications.OnCompleteRequest[NotificationValue, NotificationValue], + ) -> str: + return "" + + +@nexusrpc.handler.service_handler(name="kinds.notification.service") +class OperationKindsNotificationHandler: + @nexusrpc.handler.sync_operation(name="DefOnComplete") + def def_on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: notifications.OnCompleteRequest[NotificationValue, NotificationValue], + ) -> notifications.OnCompleteResponse: + return notifications.OnCompleteResponse() + + @workflow_run_operation(name="WorkflowRunOnComplete") + async def workflow_run_on_complete( + self, + _ctx: WorkflowRunOperationContext, + _input: notifications.OnCompleteRequest[NotificationValue, NotificationValue], + ) -> nexus.WorkflowHandle[notifications.OnCompleteResponse]: + raise NotImplementedError + + @nexus.temporal_operation(name="TemporalOnComplete") + async def temporal_on_complete( + self, + _ctx: nexus.TemporalStartOperationContext, + _client: nexus.TemporalNexusClient, + _input: notifications.OnCompleteRequest[NotificationValue, NotificationValue], + ) -> nexus.TemporalOperationResult[notifications.OnCompleteResponse]: + raise NotImplementedError + + +@nexusrpc.handler.service_handler(name="not-a-notification-service") +class OtherOperationHandler: + @nexusrpc.handler.sync_operation(name="OtherOperation") + async def other_operation( + self, + _ctx: nexusrpc.handler.StartOperationContext, + input: str, + ) -> str: + return input + + +def test_completion_callback_handler_method() -> None: + """A handler method resolves to its service and registered operation name.""" + callback = nexus.create_completion_callback( + operation=CustomNotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + assert callback == _OnCompleteCallback( + task_queue="notifications", + source_context=NotificationValue("context"), + service="custom.notification.service", + operation="CustomOnComplete", + ) + + +def test_completion_callback_operation_kinds() -> None: + """def sync_operation, workflow_run_operation, and temporal_operation methods are supported.""" + for operation, name in ( + (OperationKindsNotificationHandler.def_on_complete, "DefOnComplete"), + ( + OperationKindsNotificationHandler.workflow_run_on_complete, + "WorkflowRunOnComplete", + ), + (OperationKindsNotificationHandler.temporal_on_complete, "TemporalOnComplete"), + ): + callback = nexus.create_completion_callback( + operation=operation, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + assert callback == _OnCompleteCallback( + task_queue="notifications", + source_context=NotificationValue("context"), + service="kinds.notification.service", + operation=name, + ) + + +def test_completion_callback_renamed_by_service_definition() -> None: + """Definition operations and handler methods use the definition's operation name.""" + for operation in ( + RenamedNotificationService.on_complete, + RenamedNotificationHandler.on_complete, + ): + callback = nexus.create_completion_callback( + operation=operation, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + assert callback == _OnCompleteCallback( + task_queue="notifications", + source_context=NotificationValue("context"), + service="renamed.notification.service", + operation="RenamedOnComplete", + ) + + +def test_completion_callback_inherited_operations() -> None: + """Inherited operations resolve to the service they are accessed on.""" + handler_callback = nexus.create_completion_callback( + operation=SubNotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + assert handler_callback == _OnCompleteCallback( + task_queue="notifications", + source_context=NotificationValue("context"), + service="sub.notification.service", + operation="CustomOnComplete", + ) + definition_callback = nexus.create_completion_callback( + operation=SubRenamedNotificationService.on_complete, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + assert definition_callback == _OnCompleteCallback( + task_queue="notifications", + source_context=NotificationValue("context"), + service="sub.renamed.notification.service", + operation="RenamedOnComplete", + ) + + +def test_completion_callback_local_handler_class() -> None: + """Handler classes defined in a function are supported.""" + + @nexusrpc.handler.service_handler(name="local.notification.service") + class LocalNotificationHandler: + @nexusrpc.handler.sync_operation(name="OnComplete") + async def on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: notifications.OnCompleteRequest[ + NotificationValue, NotificationValue + ], + ) -> notifications.OnCompleteResponse: + return notifications.OnCompleteResponse() + + callback = nexus.create_completion_callback( + operation=LocalNotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + assert callback == _OnCompleteCallback( + task_queue="notifications", + source_context=NotificationValue("context"), + service="local.notification.service", + operation="OnComplete", + ) + + +def test_completion_callback_names() -> None: + """A service name is given with an operation name, and only with names.""" + assert nexus.create_completion_callback( + service="external.notification.service", + operation="ExternalOnComplete", + task_queue="notifications", + source_context=NotificationValue("context"), + ) == _OnCompleteCallback( + task_queue="notifications", + source_context=NotificationValue("context"), + service="external.notification.service", + operation="ExternalOnComplete", + ) + invalid_names = "^Give a service name with an operation name" + with pytest.raises(ValueError, match=invalid_names): + nexus.create_completion_callback( # type: ignore[call-overload] + operation="ExternalOnComplete", # pyright: ignore[reportArgumentType] + task_queue="notifications", + source_context=NotificationValue("context"), + ) + with pytest.raises(ValueError, match=invalid_names): + nexus.create_completion_callback( # type: ignore[call-overload] + service="custom.notification.service", + operation=CustomNotificationHandler.on_complete, # pyright: ignore[reportArgumentType] + task_queue="notifications", + source_context=NotificationValue("context"), + ) + for service, operation in (("", "ExternalOnComplete"), ("external", "")): + with pytest.raises( + ValueError, match="^Service and operation names must not be empty$" + ): + nexus.create_completion_callback( + service=service, + operation=operation, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + + +def test_completion_callback_rejects_invalid_operations() -> None: + """Operations that are not on-complete operations of a service are rejected.""" + + class UndecoratedHandler: + async def on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: notifications.OnCompleteRequest[ + NotificationValue, NotificationValue + ], + ) -> notifications.OnCompleteResponse: + return notifications.OnCompleteResponse() + + class UndecoratedOperationHandler: + @nexusrpc.handler.sync_operation(name="OnComplete") + async def on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: notifications.OnCompleteRequest[ + NotificationValue, NotificationValue + ], + ) -> notifications.OnCompleteResponse: + return notifications.OnCompleteResponse() + + with pytest.raises( + ValueError, match="^.*UndecoratedHandler.on_complete is not a Nexus operation$" + ): + nexus.create_completion_callback( + operation=UndecoratedHandler.on_complete, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + with pytest.raises( + ValueError, + match=( + "^.*UndecoratedOperationHandler.on_complete is not an operation of a " + "Nexus service" + ), + ): + nexus.create_completion_callback( + operation=UndecoratedOperationHandler.on_complete, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + with pytest.raises(ValueError, match="^operation 'Free' is not an operation"): + nexus.create_completion_callback( + operation=nexusrpc.Operation[ + notifications.OnCompleteRequest[NotificationValue, NotificationValue], + notifications.OnCompleteResponse, + ](name="Free"), + task_queue="notifications", + source_context=NotificationValue("context"), + ) + with pytest.raises( + ValueError, + match=( + "^Operation 'OtherOperation' of service 'not-a-notification-service' is " + "not an on-complete operation: expected input OnCompleteRequest and " + "output OnCompleteResponse, got input and output " + "$" + ), + ): + nexus.create_completion_callback( + operation=OtherOperationHandler.other_operation, # type: ignore[arg-type] + task_queue="notifications", + source_context=NotificationValue("context"), + ) + + +def test_completion_callback_checks_operation_shape() -> None: + """Operations need an OnCompleteRequest input and an OnCompleteResponse output.""" + assert nexus.create_completion_callback( + operation=NotificationShapeHandler.bare_on_complete, + task_queue="notifications", + source_context=NotificationValue("context"), + ) == _OnCompleteCallback( + task_queue="notifications", + source_context=NotificationValue("context"), + service="shape.notification.service", + operation="BareOnComplete", + ) + with pytest.raises( + ValueError, + match="'WrongOutput' .* is not an on-complete operation: .* output $", + ): + nexus.create_completion_callback( + operation=NotificationShapeHandler.wrong_output, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + + +async def test_on_complete_callback_to_proto() -> None: + """The callback proto targets the handler operation with an encoded context.""" + callback = nexus.create_completion_callback( + operation=CustomNotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + proto = await callback._to_proto(temporalio.converter.DataConverter.default) + + assert proto.nexus_handler.service == "custom.notification.service" + assert proto.nexus_handler.operation == "CustomOnComplete" + assert proto.nexus_handler.task_queue_name == "notifications" + assert await temporalio.converter.DataConverter.default.decode( + [proto.nexus_handler.source_context], [NotificationValue] + ) == [NotificationValue("context")] + + +async def test_on_complete_callback_to_proto_applies_codec() -> None: + """The source context is encoded with the full data converter, including codecs.""" + data_converter = dataclasses.replace( + temporalio.converter.default(), payload_codec=PrefixCodec() + ) + + callback = nexus.create_completion_callback( + operation=CustomNotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationValue("context"), + ) + proto = await callback._to_proto(data_converter) + + source_context = proto.nexus_handler.source_context + assert source_context.metadata["encoding"] == b"test/prefix" + assert await data_converter.decode([source_context], [NotificationValue]) == [ + NotificationValue("context") + ] + + +# --------------------------------------------------------------------------- +# Delivering completion callbacks +# --------------------------------------------------------------------------- + + +@dataclass(frozen=True) +class CallbackContext: + label: str + + +@workflow.defn +class FailingHandlerWorkflow: + @workflow.run + async def run(self, input: EchoInput) -> EchoOutput: + raise ApplicationError(input.value, "detail", non_retryable=True) + + +@nexusrpc.service +class CallbackTestService: + fail_async: nexusrpc.Operation[EchoInput, EchoOutput] + + +@service_handler(service=CallbackTestService) +class CallbackTestServiceHandler: + @workflow_run_operation + async def fail_async( + self, ctx: WorkflowRunOperationContext, input: EchoInput + ) -> nexus.WorkflowHandle[EchoOutput]: + return await ctx.start_workflow( + FailingHandlerWorkflow.run, + input, + id=str(uuid.uuid4()), + ) + + +@nexusrpc.handler.service_handler(name="callback.test.NotificationService") +class EchoOnCompleteHandler: + def __init__(self) -> None: + # Keyed by label so redelivered callbacks don't count twice + self.requests: dict[ + str, notifications.OnCompleteRequest[EchoOutput, CallbackContext] + ] = {} + + @nexusrpc.handler.sync_operation(name="OnComplete") + async def on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + input: notifications.OnCompleteRequest[EchoOutput, CallbackContext], + ) -> notifications.OnCompleteResponse: + self.requests[input.source_context.label] = input + return notifications.OnCompleteResponse() + + +@nexusrpc.handler.service_handler(name="callback.test.RawNotificationService") +class RawOnCompleteHandler: + def __init__(self) -> None: + self.requests: dict[ + str, notifications.OnCompleteRequest[RawValue, CallbackContext] + ] = {} + + @nexusrpc.handler.sync_operation(name="OnComplete") + async def on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + input: notifications.OnCompleteRequest[RawValue, CallbackContext], + ) -> notifications.OnCompleteResponse: + self.requests[input.source_context.label] = input + return notifications.OnCompleteResponse() + + +@dataclass(frozen=True) +class RecordCompletionInput: + label: str + output: EchoOutput + + +@nexusrpc.handler.service_handler(name="callback.test.ActivityNotificationService") +class ActivityOnCompleteHandler: + def __init__(self) -> None: + self.outputs: dict[str, EchoOutput] = {} + + @activity.defn + async def record_completion( + self, input: RecordCompletionInput + ) -> notifications.OnCompleteResponse: + self.outputs[input.label] = input.output + return notifications.OnCompleteResponse() + + @nexus.temporal_operation + async def on_complete( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: notifications.OnCompleteRequest[EchoOutput, CallbackContext], + ) -> nexus.TemporalOperationResult[notifications.OnCompleteResponse]: + assert isinstance(input.result, OnCompleteRequestResultSuccess) + return await client.start_activity( + self.record_completion, + RecordCompletionInput( + label=input.source_context.label, output=input.result.value + ), + id=f"on-complete-{input.source_context.label}", + start_to_close_timeout=timedelta(seconds=10), + ) + + +@workflow.defn +class RecordCompletionWorkflow: + @workflow.run + async def run( + self, input: RecordCompletionInput + ) -> notifications.OnCompleteResponse: + assert input.output == EchoOutput(value="hello") + return notifications.OnCompleteResponse() + + +@nexusrpc.handler.service_handler(name="callback.test.WorkflowNotificationService") +class WorkflowOnCompleteHandler: + def __init__(self) -> None: + self.outputs: dict[str, EchoOutput] = {} + + @nexus.temporal_operation + async def on_complete( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: notifications.OnCompleteRequest[EchoOutput, CallbackContext], + ) -> nexus.TemporalOperationResult[notifications.OnCompleteResponse]: + assert isinstance(input.result, OnCompleteRequestResultSuccess) + result = await client.start_workflow( + RecordCompletionWorkflow.run, + RecordCompletionInput( + label=input.source_context.label, output=input.result.value + ), + id=f"on-complete-{input.source_context.label}", + ) + self.outputs[input.source_context.label] = input.result.value + return result + + +@asynccontextmanager +async def _callback_workers( + client: Client, + env: WorkflowEnvironment, + completion_handler: object, + operation_handler: StandaloneTestServiceHandler | None = None, + completion_activities: Sequence[Callable[..., Any]] = (), + completion_workflows: Sequence[type] = (), +) -> AsyncIterator[tuple[str, str]]: + """Run operation and completion workers, yielding (endpoint, completion queue).""" + operation_task_queue = str(uuid.uuid4()) + completion_task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(operation_task_queue) + async with ( + Worker( + client, + task_queue=operation_task_queue, + nexus_service_handlers=[ + operation_handler or StandaloneTestServiceHandler(), + CallbackTestServiceHandler(), + ], + workflows=[ + EchoHandlerWorkflow, + BlockingHandlerWorkflow, + FailingHandlerWorkflow, + ], + ), + Worker( + client, + task_queue=completion_task_queue, + nexus_service_handlers=[completion_handler], + activities=completion_activities, + workflows=completion_workflows, + ), + ): + endpoint = await env.create_nexus_endpoint(endpoint_name, operation_task_queue) + try: + yield endpoint_name, completion_task_queue + finally: + await env.delete_nexus_endpoint(endpoint) + + +@pytest.mark.requires_local_server +async def test_completion_callback_delivers_success( + client: Client, env: WorkflowEnvironment +): + """A successful operation delivers its result and source context to the handler.""" + if env.supports_time_skipping: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + completion_handler = EchoOnCompleteHandler() + async with _callback_workers(client, env, completion_handler) as ( + endpoint_name, + completion_task_queue, + ): + handle = await client.create_nexus_client( + service=StandaloneTestService, endpoint=endpoint_name + ).start_operation( + StandaloneTestService.echo_async, + EchoInput(value="hello"), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=[ + nexus.create_completion_callback( + operation=EchoOnCompleteHandler.on_complete, + task_queue=completion_task_queue, + source_context=CallbackContext(label="success"), + ) + ], + ) + + assert await handle.result() == EchoOutput(value="hello") + + async def received_callbacks() -> None: + assert set(completion_handler.requests) == {"success"} + + await assert_eventually(received_callbacks) + request = completion_handler.requests["success"] + assert request.source_context == CallbackContext(label="success") + assert request.result == OnCompleteRequestResultSuccess(EchoOutput("hello")) + + +@pytest.mark.requires_local_server +async def test_completion_callback_delivers_failure( + client: Client, env: WorkflowEnvironment +): + """A failed operation delivers the handler workflow's failure to the handler.""" + if env.supports_time_skipping: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + completion_handler = EchoOnCompleteHandler() + async with _callback_workers(client, env, completion_handler) as ( + endpoint_name, + completion_task_queue, + ): + handle = await client.create_nexus_client( + service=CallbackTestService, endpoint=endpoint_name + ).start_operation( + CallbackTestService.fail_async, + EchoInput(value="callback test failure"), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=[ + nexus.create_completion_callback( + operation=EchoOnCompleteHandler.on_complete, + task_queue=completion_task_queue, + source_context=CallbackContext(label="failure"), + ) + ], + ) + + with pytest.raises(NexusOperationFailureError): + await handle.result() + + async def received_callbacks() -> None: + assert set(completion_handler.requests) == {"failure"} + + await assert_eventually(received_callbacks) + request = completion_handler.requests["failure"] + assert request.source_context == CallbackContext(label="failure") + assert isinstance(request.result, OnCompleteRequestResultFailure) + error = request.result.value + assert isinstance(error, ApplicationError) + assert error.message == "callback test failure" + assert error.non_retryable + + +@pytest.mark.requires_local_server +@pytest.mark.parametrize("outcome", ["cancel", "terminate"]) +async def test_completion_callback_delivers_cancellation_and_termination( + client: Client, env: WorkflowEnvironment, outcome: str +): + """Canceled and terminated operations deliver their failure to the handler.""" + if env.supports_time_skipping: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + operation_handler = StandaloneTestServiceHandler() + completion_handler = EchoOnCompleteHandler() + blocking_input = f"{outcome}-{uuid.uuid4()}" + async with _callback_workers( + client, env, completion_handler, operation_handler + ) as (endpoint_name, completion_task_queue): + handle = await client.create_nexus_client( + service=StandaloneTestService, endpoint=endpoint_name + ).start_operation( + StandaloneTestService.blocking_async, + EchoInput(value=blocking_input), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=[ + nexus.create_completion_callback( + operation=EchoOnCompleteHandler.on_complete, + task_queue=completion_task_queue, + source_context=CallbackContext(label=outcome), + ) + ], + ) + await asyncio.wait_for(operation_handler.started_blocking.wait(), timeout=10) + + if outcome == "cancel": + await handle.cancel(reason="callback test cancel") + else: + await handle.terminate(reason="callback test termination") + # Terminating the operation leaves its handler workflow running + await client.get_workflow_handle( + f"blocking_async-{blocking_input}" + ).terminate() + + with pytest.raises(NexusOperationFailureError): + await handle.result() + + async def received_callbacks() -> None: + assert set(completion_handler.requests) == {outcome} + + await assert_eventually(received_callbacks) + request = completion_handler.requests[outcome] + assert request.source_context == CallbackContext(label=outcome) + assert isinstance(request.result, OnCompleteRequestResultFailure) + if outcome == "cancel": + assert isinstance(request.result.value, CancelledError) + else: + assert isinstance(request.result.value, TerminatedError) + assert request.result.value.message == "callback test termination" + + +@pytest.mark.requires_local_server +async def test_multiple_completion_callbacks_on_operation( + client: Client, env: WorkflowEnvironment +): + """Every callback attached to an operation is passed to interceptors and delivered.""" + if env.supports_time_skipping: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + interceptor = _RecordingInterceptor() + config = client.config() + config["interceptors"] = [interceptor] + intercepted_client = Client(**config) + completion_handler = EchoOnCompleteHandler() + async with _callback_workers(client, env, completion_handler) as ( + endpoint_name, + completion_task_queue, + ): + completion_callbacks = [ + nexus.create_completion_callback( + operation=EchoOnCompleteHandler.on_complete, + task_queue=completion_task_queue, + source_context=CallbackContext(label=label), + ) + for label in ("first", "second") + ] + handle = await intercepted_client.create_nexus_client( + service=StandaloneTestService, endpoint=endpoint_name + ).start_operation( + StandaloneTestService.echo_async, + EchoInput(value="hello"), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=completion_callbacks, + ) + + [start_input] = interceptor.start_calls + assert list(start_input.completion_callbacks) == completion_callbacks + assert await handle.result() == EchoOutput(value="hello") + + async def received_callbacks() -> None: + assert set(completion_handler.requests) == {"first", "second"} + + await assert_eventually(received_callbacks) + for request in completion_handler.requests.values(): + assert request.result == OnCompleteRequestResultSuccess(EchoOutput("hello")) + + +@pytest.mark.requires_local_server +async def test_raw_value_completion_handler_for_multiple_operations( + client: Client, env: WorkflowEnvironment +): + """A RawValue handler receives completions from operations with different results.""" + if env.supports_time_skipping: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + operation_handler = StandaloneTestServiceHandler() + completion_handler = RawOnCompleteHandler() + blocking_input = f"multiple-operations-{uuid.uuid4()}" + async with _callback_workers( + client, env, completion_handler, operation_handler + ) as (endpoint_name, completion_task_queue): + nexus_client = client.create_nexus_client( + service=StandaloneTestService, endpoint=endpoint_name + ) + echo_handle = await nexus_client.start_operation( + StandaloneTestService.echo_async, + EchoInput(value="echo"), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=[ + nexus.create_completion_callback( + operation=RawOnCompleteHandler.on_complete, + task_queue=completion_task_queue, + source_context=CallbackContext(label="echo_async"), + ) + ], + ) + blocking_handle = await nexus_client.start_operation( + StandaloneTestService.blocking_async, + EchoInput(value=blocking_input), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=[ + nexus.create_completion_callback( + operation=RawOnCompleteHandler.on_complete, + task_queue=completion_task_queue, + source_context=CallbackContext(label="blocking_async"), + ) + ], + ) + + await asyncio.wait_for(operation_handler.started_blocking.wait(), timeout=10) + await client.get_workflow_handle( + f"blocking_async-{blocking_input}" + ).start_update( + BlockingHandlerWorkflow.unblock, + wait_for_stage=WorkflowUpdateStage.COMPLETED, + ) + + assert await echo_handle.result() == EchoOutput(value="echo") + assert await blocking_handle.result() == EchoOutput(value=blocking_input) + expected_results = { + "echo_async": EchoOutput(value="echo"), + "blocking_async": EchoOutput(value=blocking_input), + } + + async def received_callbacks() -> None: + assert set(completion_handler.requests) == set(expected_results) + + await assert_eventually(received_callbacks) + for label, request in completion_handler.requests.items(): + assert isinstance(request.result, OnCompleteRequestResultSuccess) + # A RawValue handler receives the payload, so convert it here + result = client.data_converter.payload_converter.from_payload( + request.result.value.payload, EchoOutput + ) + assert result == expected_results[label] + + +@pytest.mark.requires_local_server +async def test_temporal_operation_completion_handler_starts_activity( + client: Client, env: WorkflowEnvironment +): + """A temporal_operation completion handler can start a standalone activity.""" + if env.supports_time_skipping: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + completion_handler = ActivityOnCompleteHandler() + label = str(uuid.uuid4()) + async with _callback_workers( + client, + env, + completion_handler, + completion_activities=[completion_handler.record_completion], + ) as (endpoint_name, completion_task_queue): + result = await client.create_nexus_client( + service=StandaloneTestService, endpoint=endpoint_name + ).execute_operation( + StandaloneTestService.echo_async, + EchoInput(value="hello"), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=[ + nexus.create_completion_callback( + operation=ActivityOnCompleteHandler.on_complete, + task_queue=completion_task_queue, + source_context=CallbackContext(label=label), + ) + ], + ) + + assert result == EchoOutput(value="hello") + + async def activity_recorded_output() -> None: + assert completion_handler.outputs == {label: EchoOutput(value="hello")} + + await assert_eventually(activity_recorded_output) + activity_handle = client.get_activity_handle( + f"on-complete-{label}", result_type=notifications.OnCompleteResponse + ) + assert await activity_handle.result() == notifications.OnCompleteResponse() + + +@pytest.mark.requires_local_server +async def test_temporal_operation_completion_handler_starts_workflow( + client: Client, env: WorkflowEnvironment +): + """A completion handler can start a workflow with the inbound callback link.""" + if env.supports_time_skipping: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + completion_handler = WorkflowOnCompleteHandler() + label = str(uuid.uuid4()) + async with _callback_workers( + client, + env, + completion_handler, + completion_workflows=[RecordCompletionWorkflow], + ) as (endpoint_name, completion_task_queue): + result = await client.create_nexus_client( + service=StandaloneTestService, endpoint=endpoint_name + ).execute_operation( + StandaloneTestService.echo_async, + EchoInput(value="hello"), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=[ + nexus.create_completion_callback( + operation=WorkflowOnCompleteHandler.on_complete, + task_queue=completion_task_queue, + source_context=CallbackContext(label=label), + ) + ], + ) + assert result == EchoOutput(value="hello") + + async def workflow_started() -> None: + assert completion_handler.outputs == {label: EchoOutput(value="hello")} + + await assert_eventually(workflow_started) + handle = client.get_workflow_handle( + f"on-complete-{label}", result_type=notifications.OnCompleteResponse + ) + assert await handle.result() == notifications.OnCompleteResponse() + history = await handle.fetch_history() + assert any( + link.HasField("callback") + for event in history.events + for link in event.links + ) + + +@pytest.mark.requires_local_server +@pytest.mark.parametrize("success", [True, False]) +async def test_completion_callback_by_name_with_codec( + client: Client, env: WorkflowEnvironment, success: bool +): + """Name-based callbacks from execute_operation round-trip through a payload codec.""" + if env.supports_time_skipping: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + config = client.config() + config["data_converter"] = dataclasses.replace( + client.data_converter, payload_codec=PrefixCodec() + ) + codec_client = Client(**config) + completion_handler = RawOnCompleteHandler() + async with _callback_workers(codec_client, env, completion_handler) as ( + endpoint_name, + completion_task_queue, + ): + completion_callbacks = [ + nexus.create_completion_callback( + service="callback.test.RawNotificationService", + operation="OnComplete", + task_queue=completion_task_queue, + source_context=CallbackContext(label="codec"), + ) + ] + if success: + result = await codec_client.create_nexus_client( + service=StandaloneTestService, endpoint=endpoint_name + ).execute_operation( + StandaloneTestService.echo_async, + EchoInput(value="encoded"), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=completion_callbacks, + ) + assert result == EchoOutput(value="encoded") + else: + with pytest.raises(NexusOperationFailureError): + await codec_client.create_nexus_client( + service=CallbackTestService, endpoint=endpoint_name + ).execute_operation( + CallbackTestService.fail_async, + EchoInput(value="encoded failure"), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=completion_callbacks, + ) + + async def received_callbacks() -> None: + assert set(completion_handler.requests) == {"codec"} + + await assert_eventually(received_callbacks) + request = completion_handler.requests["codec"] + assert request.source_context == CallbackContext(label="codec") + if success: + assert isinstance(request.result, OnCompleteRequestResultSuccess) + # The worker decoded the codec before handing the handler the raw value + raw = request.result.value.payload + assert raw.metadata["encoding"] != b"test/prefix" + assert codec_client.data_converter.payload_converter.from_payload( + raw, EchoOutput + ) == EchoOutput(value="encoded") + else: + assert isinstance(request.result, OnCompleteRequestResultFailure) + error = request.result.value + assert isinstance(error, ApplicationError) + assert error.message == "encoded failure" + # Failure details can only be read if the worker decoded the codec + assert error.details == ("detail",) + + +@pytest.mark.requires_local_server +async def test_completion_callback_typed_handler_with_codec( + client: Client, env: WorkflowEnvironment +): + """A typed handler receives the result decoded through a payload codec.""" + if env.supports_time_skipping: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + config = client.config() + config["data_converter"] = dataclasses.replace( + client.data_converter, payload_codec=PrefixCodec() + ) + codec_client = Client(**config) + completion_handler = EchoOnCompleteHandler() + async with _callback_workers(codec_client, env, completion_handler) as ( + endpoint_name, + completion_task_queue, + ): + result = await codec_client.create_nexus_client( + service=StandaloneTestService, endpoint=endpoint_name + ).execute_operation( + StandaloneTestService.echo_async, + EchoInput(value="encoded"), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + completion_callbacks=[ + nexus.create_completion_callback( + operation=EchoOnCompleteHandler.on_complete, + task_queue=completion_task_queue, + source_context=CallbackContext(label="typed-codec"), + ) + ], + ) + + assert result == EchoOutput(value="encoded") + + async def received_callbacks() -> None: + assert set(completion_handler.requests) == {"typed-codec"} + + await assert_eventually(received_callbacks) + request = completion_handler.requests["typed-codec"] + assert request.source_context == CallbackContext(label="typed-codec") + assert request.result == OnCompleteRequestResultSuccess(EchoOutput("encoded")) diff --git a/tests/nexus/test_nexus_type_errors.py b/tests/nexus/test_nexus_type_errors.py index 946e34035..727299d1f 100644 --- a/tests/nexus/test_nexus_type_errors.py +++ b/tests/nexus/test_nexus_type_errors.py @@ -10,7 +10,9 @@ import nexusrpc +import temporalio.common import temporalio.nexus +import temporalio.nexus.notifications from temporalio import activity, workflow from temporalio.client import Client, NexusOperationHandle from temporalio.nexus import TemporalOperationStartHandlerFunc @@ -27,6 +29,297 @@ class MyOutput: pass +@dataclass +class NotificationSourceContext: + value: str + + +@nexusrpc.handler.service_handler( + name="temporal.notificationservice.v1.NotificationService" +) +class NotificationHandler: + @nexusrpc.handler.sync_operation(name="OnComplete") + async def on_complete( + self, + _context: nexusrpc.handler.StartOperationContext, + _input: temporalio.nexus.notifications.OnCompleteRequest[ + MyOutput, NotificationSourceContext + ], + ) -> temporalio.nexus.notifications.OnCompleteResponse: + return temporalio.nexus.notifications.OnCompleteResponse() + + +@nexusrpc.handler.service_handler(name="raw-value.notification.service") +class RawValueNotificationHandler: + @nexusrpc.handler.sync_operation(name="OnRawComplete") + async def on_raw_complete( + self, + _context: nexusrpc.handler.StartOperationContext, + _input: temporalio.nexus.notifications.OnCompleteRequest[ + temporalio.common.RawValue, NotificationSourceContext + ], + ) -> temporalio.nexus.notifications.OnCompleteResponse: + return temporalio.nexus.notifications.OnCompleteResponse() + + +@nexusrpc.handler.service_handler(name="kinds.notification.service") +class OperationKindsNotificationHandler: + @nexusrpc.handler.sync_operation + def def_on_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: temporalio.nexus.notifications.OnCompleteRequest[ + MyOutput, NotificationSourceContext + ], + ) -> temporalio.nexus.notifications.OnCompleteResponse: + return temporalio.nexus.notifications.OnCompleteResponse() + + @nexusrpc.handler.sync_operation + def def_on_raw_complete( + self, + _ctx: nexusrpc.handler.StartOperationContext, + _input: temporalio.nexus.notifications.OnCompleteRequest[ + temporalio.common.RawValue, NotificationSourceContext + ], + ) -> temporalio.nexus.notifications.OnCompleteResponse: + return temporalio.nexus.notifications.OnCompleteResponse() + + @temporalio.nexus.workflow_run_operation + async def workflow_run_on_complete( + self, + _ctx: temporalio.nexus.WorkflowRunOperationContext, + _input: temporalio.nexus.notifications.OnCompleteRequest[ + MyOutput, NotificationSourceContext + ], + ) -> temporalio.nexus.WorkflowHandle[ + temporalio.nexus.notifications.OnCompleteResponse + ]: + raise NotImplementedError + + @temporalio.nexus.workflow_run_operation + async def workflow_run_on_raw_complete( + self, + _ctx: temporalio.nexus.WorkflowRunOperationContext, + _input: temporalio.nexus.notifications.OnCompleteRequest[ + temporalio.common.RawValue, NotificationSourceContext + ], + ) -> temporalio.nexus.WorkflowHandle[ + temporalio.nexus.notifications.OnCompleteResponse + ]: + raise NotImplementedError + + @temporalio.nexus.temporal_operation + async def temporal_on_complete( + self, + _ctx: temporalio.nexus.TemporalStartOperationContext, + _client: temporalio.nexus.TemporalNexusClient, + _input: temporalio.nexus.notifications.OnCompleteRequest[ + MyOutput, NotificationSourceContext + ], + ) -> temporalio.nexus.TemporalOperationResult[ + temporalio.nexus.notifications.OnCompleteResponse + ]: + raise NotImplementedError + + @temporalio.nexus.temporal_operation + async def temporal_on_raw_complete( + self, + _ctx: temporalio.nexus.TemporalStartOperationContext, + _client: temporalio.nexus.TemporalNexusClient, + _input: temporalio.nexus.notifications.OnCompleteRequest[ + temporalio.common.RawValue, NotificationSourceContext + ], + ) -> temporalio.nexus.TemporalOperationResult[ + temporalio.nexus.notifications.OnCompleteResponse + ]: + raise NotImplementedError + + +@nexusrpc.service(name="definition.notification.service") +class NotificationDefinition: + on_complete: nexusrpc.Operation[ + temporalio.nexus.notifications.OnCompleteRequest[ + MyOutput, NotificationSourceContext + ], + temporalio.nexus.notifications.OnCompleteResponse, + ] + on_raw_complete: nexusrpc.Operation[ + temporalio.nexus.notifications.OnCompleteRequest[ + temporalio.common.RawValue, NotificationSourceContext + ], + temporalio.nexus.notifications.OnCompleteResponse, + ] + + +# The declared types are wrong, so each error message shows the inferred type. +def completion_callback_type_inference() -> None: + # overloads infer the handler's output type + # assert-type-error-pyright: 'Type "CompletionCallback\[MyOutput\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + # assert-type-error-pyright: 'Type "CompletionCallback\[MyOutput\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + operation=NotificationDefinition.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + # assert-type-error-pyright: 'Type "CompletionCallback\[Any\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + operation=RawValueNotificationHandler.on_raw_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + # assert-type-error-pyright: 'Type "CompletionCallback\[Any\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + service="named.notification.service", + operation="OnComplete", + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + # def sync_operation, workflow_run_operation, and temporal_operation handler + # methods are supported + # assert-type-error-pyright: 'Type "CompletionCallback\[MyOutput\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + operation=OperationKindsNotificationHandler.def_on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + # assert-type-error-pyright: 'Type "CompletionCallback\[Any\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + operation=OperationKindsNotificationHandler.def_on_raw_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + # assert-type-error-pyright: 'Type "CompletionCallback\[MyOutput\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + operation=OperationKindsNotificationHandler.workflow_run_on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + # assert-type-error-pyright: 'Type "CompletionCallback\[Any\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + operation=OperationKindsNotificationHandler.workflow_run_on_raw_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + # assert-type-error-pyright: 'Type "CompletionCallback\[MyOutput\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + operation=OperationKindsNotificationHandler.temporal_on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + # assert-type-error-pyright: 'Type "CompletionCallback\[Any\]" is not assignable to declared type "None"' + _: None = temporalio.nexus.create_completion_callback( # type: ignore + operation=OperationKindsNotificationHandler.temporal_on_raw_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + + +# These calls fail at runtime, so they are only type checked. +def invalid_completion_callbacks() -> None: + # source_context must match the handler's source context type + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=NotificationHandler.on_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=NotificationDefinition.on_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=NotificationDefinition.on_raw_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=RawValueNotificationHandler.on_raw_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=OperationKindsNotificationHandler.def_on_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=OperationKindsNotificationHandler.def_on_raw_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=OperationKindsNotificationHandler.workflow_run_on_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=OperationKindsNotificationHandler.workflow_run_on_raw_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=OperationKindsNotificationHandler.temporal_on_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( + operation=OperationKindsNotificationHandler.temporal_on_raw_complete, # type: ignore[arg-type] + task_queue="notifications", + # assert-type-error-pyright: 'Argument of type "MyInput" cannot be assigned to parameter "source_context"' + source_context=MyInput(), # type: ignore + ) + + # operation names require a service name + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( # type: ignore[call-overload] + # assert-type-error-pyright: 'Argument of type "Literal\['OnComplete'\]" cannot be assigned to parameter "operation"' + operation="OnComplete", # type: ignore + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + + # operations other than names already identify their service + temporalio.nexus.create_completion_callback( + service="named.notification.service", + # assert-type-error-pyright: 'cannot be assigned to parameter "operation" of type "str"' + operation=NotificationHandler.on_complete, # type: ignore + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + + # all arguments are keyword arguments + # assert-type-error-pyright: 'No overloads for "create_completion_callback" match' + temporalio.nexus.create_completion_callback( # type: ignore[call-overload] + NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ) + + @workflow.defn class MyNoArgProcWorkflow: @workflow.run @@ -788,6 +1081,190 @@ async def standalone_operation_type_tests(): ) _defn_handle_output: MyOutput = await _defn_handle.result() + # completion callback output types must match the started operation + _callback_handle: NexusOperationHandle[ + MyOutput + ] = await nexus_client.start_operation( + MyService.my_sync_operation, + MyInput(), + id="op-with-callback", + completion_callbacks=[ + temporalio.nexus.create_completion_callback( + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + _mixed_callback_handle: NexusOperationHandle[ + MyOutput + ] = await nexus_client.start_operation( + MyService.my_sync_operation, + MyInput(), + id="op-with-mixed-callbacks", + completion_callbacks=[ + temporalio.nexus.create_completion_callback( + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + # RawValue handlers accept the output of any operation + temporalio.nexus.create_completion_callback( + operation=RawValueNotificationHandler.on_raw_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + # RawValue and by-name callbacks are compatible with any output type + await nexus_client.start_operation( + MyService.my_temporal_operation, + 0, + id="op-with-any-output-callbacks", + completion_callbacks=[ + temporalio.nexus.create_completion_callback( + operation=RawValueNotificationHandler.on_raw_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + # operation names have no handler signature, so they accept any output type + temporalio.nexus.create_completion_callback( + service="named.notification.service", + operation="OnComplete", + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + # assert-type-error-pyright: 'No overloads for "start_operation" match' + await nexus_client.start_operation( # type: ignore + MyService.my_temporal_operation, + 0, + id="op-with-wrong-callback", + completion_callbacks=[ # type: ignore[arg-type] + # assert-type-error-pyright: '"list\[CompletionCallback\[MyOutput\]\]" cannot be assigned to parameter "completion_callbacks"' + temporalio.nexus.create_completion_callback( # type: ignore + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + _callback_output: MyOutput = await nexus_client.execute_operation( + MyService.my_sync_operation, + MyInput(), + id="execute-with-callback", + completion_callbacks=[ + temporalio.nexus.create_completion_callback( + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + temporalio.nexus.create_completion_callback( + operation=RawValueNotificationHandler.on_raw_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + # assert-type-error-pyright: 'No overloads for "execute_operation" match' + await nexus_client.execute_operation( # type: ignore + MyService.my_temporal_operation, + 0, + id="execute-with-wrong-callback", + completion_callbacks=[ # type: ignore[arg-type] + # assert-type-error-pyright: '"list\[CompletionCallback\[MyOutput\]\]" cannot be assigned to parameter "completion_callbacks"' + temporalio.nexus.create_completion_callback( # type: ignore + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + + # with a string operation name, callbacks must accept result_type + _str_callback_handle: NexusOperationHandle[ + MyOutput + ] = await nexus_client.start_operation( + "my_sync_operation", + MyInput(), + id="str-op-with-callbacks", + result_type=MyOutput, + completion_callbacks=[ + temporalio.nexus.create_completion_callback( + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + temporalio.nexus.create_completion_callback( + operation=RawValueNotificationHandler.on_raw_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + _str_callback_output: MyOutput = await nexus_client.execute_operation( + "my_sync_operation", + MyInput(), + id="str-execute-with-callbacks", + result_type=MyOutput, + completion_callbacks=[ + temporalio.nexus.create_completion_callback( + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + temporalio.nexus.create_completion_callback( + operation=RawValueNotificationHandler.on_raw_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + # without result_type, any callback is accepted + await nexus_client.start_operation( + "my_sync_operation", + MyInput(), + id="str-op-without-result-type", + completion_callbacks=[ + temporalio.nexus.create_completion_callback( + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + # assert-type-error-pyright: 'No overloads for "start_operation" match' + await nexus_client.start_operation( # type: ignore + "my_sync_operation", + MyInput(), + id="str-op-with-wrong-callback", + result_type=str, + completion_callbacks=[ # type: ignore[arg-type] + # assert-type-error-pyright: '"list\[CompletionCallback\[MyOutput\]\]" cannot be assigned to parameter "completion_callbacks"' + temporalio.nexus.create_completion_callback( # type: ignore + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + # assert-type-error-pyright: 'No overloads for "execute_operation" match' + await nexus_client.execute_operation( # type: ignore + "my_sync_operation", + MyInput(), + id="str-execute-with-wrong-callback", + result_type=str, + completion_callbacks=[ # type: ignore[arg-type] + # assert-type-error-pyright: '"list\[CompletionCallback\[MyOutput\]\]" cannot be assigned to parameter "completion_callbacks"' + temporalio.nexus.create_completion_callback( # type: ignore + operation=NotificationHandler.on_complete, + task_queue="notifications", + source_context=NotificationSourceContext(value="ok"), + ), + ], + ) + # result_type is not allowed when an operation is provided await nexus_client.start_operation( # assert-type-error-pyright: 'cannot be assigned to parameter "operation" of type "str"' diff --git a/tests/nexus/test_nexus_worker_shutdown.py b/tests/nexus/test_nexus_worker_shutdown.py index 2a94027d5..cabf4857a 100644 --- a/tests/nexus/test_nexus_worker_shutdown.py +++ b/tests/nexus/test_nexus_worker_shutdown.py @@ -4,6 +4,7 @@ import concurrent.futures import threading import uuid +from collections.abc import Sequence from dataclasses import dataclass from datetime import timedelta from typing import Literal @@ -11,12 +12,20 @@ import nexusrpc import pytest from nexusrpc.handler import ( + CancelOperationContext, + OperationHandler, StartOperationContext, + StartOperationResultAsync, + operation_handler, service_handler, sync_operation, ) from temporalio import nexus, workflow +from temporalio.api.common.v1 import Payload +from temporalio.client import Client +from temporalio.converter import DataConverter, PayloadCodec +from temporalio.exceptions import ApplicationError from temporalio.testing import WorkflowEnvironment from temporalio.worker import Worker from tests.helpers.nexus import ( @@ -34,6 +43,19 @@ class ShutdownTestService: hang_until_cancelled: nexusrpc.Operation[None, str] wait_for_shutdown_sync: nexusrpc.Operation[None, str] check_shutdown: nexusrpc.Operation[None, str] + fail_with_details: nexusrpc.Operation[None, str] + fail_cancel_with_details: nexusrpc.Operation[None, str] + fail_with_unserializable_details: nexusrpc.Operation[None, str] + + +class FailCancelWithDetailsHandler(OperationHandler[None, str]): + async def start( + self, ctx: StartOperationContext, input: None + ) -> StartOperationResultAsync: + return StartOperationResultAsync(token="token") + + async def cancel(self, ctx: CancelOperationContext, token: str) -> None: + raise ApplicationError("Cancel failed", "some details") @service_handler(service=ShutdownTestService) @@ -83,6 +105,24 @@ async def check_shutdown(self, _ctx: StartOperationContext, _input: None) -> str self.shutdown_check_after = nexus.is_worker_shutdown() return "done" + @sync_operation + async def fail_with_details(self, _ctx: StartOperationContext, _input: None) -> str: + # The details give the failure a payload for the codec to encode + raise ApplicationError("Operation failed", "some details") + + @operation_handler + def fail_cancel_with_details(self) -> OperationHandler[None, str]: + return FailCancelWithDetailsHandler() + + @sync_operation + async def fail_with_unserializable_details( + self, _ctx: StartOperationContext, _input: None + ) -> str: + assert self.operation_started + self.operation_started.set() + # The failure converter can't turn these details into a payload + raise ApplicationError("Operation failed", object()) + @dataclass class ShutdownTestCallerInput: @@ -91,6 +131,9 @@ class ShutdownTestCallerInput: "hang_until_cancelled", "wait_for_shutdown_sync", "check_shutdown", + "fail_with_details", + "fail_cancel_with_details", + "fail_with_unserializable_details", ] task_queue: str @@ -120,11 +163,25 @@ async def run(self, input: ShutdownTestCallerInput) -> str: return await nexus_client.execute_operation( ShutdownTestService.check_shutdown, None ) + case "fail_with_details": + return await nexus_client.execute_operation( + ShutdownTestService.fail_with_details, None + ) + case "fail_cancel_with_details": + handle = await nexus_client.start_operation( + ShutdownTestService.fail_cancel_with_details, None + ) + handle.cancel() + return await handle + case "fail_with_unserializable_details": + return await nexus_client.execute_operation( + ShutdownTestService.fail_with_unserializable_details, None + ) async def test_nexus_worker_shutdown(env: WorkflowEnvironment): """Test that Nexus operations are cancelled when worker shuts down without graceful timeout.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") # Use separate task queues for caller and handler workers @@ -179,7 +236,7 @@ async def test_nexus_worker_shutdown(env: WorkflowEnvironment): async def test_nexus_worker_shutdown_graceful(env: WorkflowEnvironment): """Test that async Nexus operations complete gracefully during shutdown.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") # Use separate task queues for caller and handler workers @@ -235,7 +292,7 @@ async def test_nexus_worker_shutdown_graceful(env: WorkflowEnvironment): async def test_sync_nexus_operation_worker_shutdown_graceful(env: WorkflowEnvironment): """Test that sync (ThreadPoolExecutor) Nexus operations complete gracefully during shutdown.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") # Use separate task queues for caller and handler workers @@ -295,7 +352,7 @@ async def test_sync_nexus_operation_worker_shutdown_graceful(env: WorkflowEnviro async def test_is_worker_shutdown(env: WorkflowEnvironment): """Test that is_worker_shutdown returns correct values.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") # Use separate task queues for caller and handler workers @@ -348,3 +405,147 @@ async def test_is_worker_shutdown(env: WorkflowEnvironment): assert handler.shutdown_check_before is False assert handler.shutdown_check_after is True assert result == "done" + + +class SlowEncodePayloadCodec(PayloadCodec): + def __init__(self) -> None: + self.encode_started = asyncio.Event() + + async def encode(self, payloads: Sequence[Payload]) -> list[Payload]: + self.encode_started.set() + # Block until the worker shutdown cancels the task mid-encode + await asyncio.Future() + return list(payloads) + + async def decode(self, payloads: Sequence[Payload]) -> list[Payload]: + return list(payloads) + + +@pytest.mark.parametrize("operation", ["fail_with_details", "fail_cancel_with_details"]) +async def test_nexus_worker_shutdown_while_encoding_failure( + env: WorkflowEnvironment, + operation: Literal["fail_with_details", "fail_cancel_with_details"], +): + """Test that shutdown doesn't hang when it cancels a task mid-encode.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with time-skipping server") + + handler_task_queue = str(uuid.uuid4()) + caller_task_queue = str(uuid.uuid4()) + await env.create_nexus_endpoint( + make_nexus_endpoint_name(handler_task_queue), handler_task_queue + ) + + codec = SlowEncodePayloadCodec() + handler_client_config = env.client.config() + handler_client_config["data_converter"] = DataConverter(payload_codec=codec) + + with concurrent.futures.ThreadPoolExecutor() as executor: + async with Worker( + env.client, + task_queue=caller_task_queue, + workflows=[ShutdownTestCallerWorkflow], + ): + handler_worker = Worker( + Client(**handler_client_config), + task_queue=handler_task_queue, + nexus_service_handlers=[ShutdownTestServiceHandler()], + nexus_task_executor=executor, + ) + + handler_worker_task = asyncio.create_task(handler_worker.run()) + + await env.client.start_workflow( + ShutdownTestCallerWorkflow.run, + ShutdownTestCallerInput( + operation=operation, + task_queue=handler_task_queue, + ), + id=str(uuid.uuid4()), + task_queue=caller_task_queue, + ) + + await codec.encode_started.wait() + + await asyncio.wait_for(handler_worker.shutdown(), 10) + await handler_worker_task + + +class FailingEncodePayloadCodec(PayloadCodec): + def __init__(self) -> None: + self.encode_called = asyncio.Event() + + async def encode(self, payloads: Sequence[Payload]) -> list[Payload]: + self.encode_called.set() + raise RuntimeError("Codec failed") + + async def decode(self, payloads: Sequence[Payload]) -> list[Payload]: + return list(payloads) + + +@pytest.mark.parametrize( + "operation", + [ + "fail_with_details", + "fail_cancel_with_details", + "fail_with_unserializable_details", + ], +) +async def test_nexus_worker_shutdown_after_failure_build_error( + env: WorkflowEnvironment, + operation: Literal[ + "fail_with_details", + "fail_cancel_with_details", + "fail_with_unserializable_details", + ], +): + """Test that shutdown doesn't hang when a handler failure can't be converted or encoded.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with time-skipping server") + + handler_task_queue = str(uuid.uuid4()) + caller_task_queue = str(uuid.uuid4()) + await env.create_nexus_endpoint( + make_nexus_endpoint_name(handler_task_queue), handler_task_queue + ) + + # The unserializable details fail in the failure converter, the others in + # the codec + codec = FailingEncodePayloadCodec() + handler_client_config = env.client.config() + if operation != "fail_with_unserializable_details": + handler_client_config["data_converter"] = DataConverter(payload_codec=codec) + operation_started = asyncio.Event() + + with concurrent.futures.ThreadPoolExecutor() as executor: + async with Worker( + env.client, + task_queue=caller_task_queue, + workflows=[ShutdownTestCallerWorkflow], + ): + handler_worker = Worker( + Client(**handler_client_config), + task_queue=handler_task_queue, + nexus_service_handlers=[ShutdownTestServiceHandler(operation_started)], + nexus_task_executor=executor, + ) + + handler_worker_task = asyncio.create_task(handler_worker.run()) + + await env.client.start_workflow( + ShutdownTestCallerWorkflow.run, + ShutdownTestCallerInput( + operation=operation, + task_queue=handler_task_queue, + ), + id=str(uuid.uuid4()), + task_queue=caller_task_queue, + ) + + if operation == "fail_with_unserializable_details": + await operation_started.wait() + else: + await codec.encode_called.wait() + + await asyncio.wait_for(handler_worker.shutdown(), 10) + await handler_worker_task diff --git a/tests/nexus/test_notifications.py b/tests/nexus/test_notifications.py new file mode 100644 index 000000000..6f1f5cea2 --- /dev/null +++ b/tests/nexus/test_notifications.py @@ -0,0 +1,64 @@ +from __future__ import annotations + +import dataclasses + +import pytest + +import temporalio.converter +import temporalio.exceptions +import temporalio.nexus.notifications as notifications +import temporalio.nexus.notifications.models as models +import temporalio.nexus.system as nexus_system + + +@dataclasses.dataclass +class NotificationValue: + message: str + + +@pytest.mark.parametrize("success", [True, False]) +def test_notification_request_roundtrip(success: bool) -> None: + data_converter = temporalio.converter.default() + converter = nexus_system._get_payload_converter( + data_converter.payload_converter, + data_converter.failure_converter, + ) + result: models.OnCompleteRequestResult[NotificationValue] = ( + models.OnCompleteRequestResultSuccess(NotificationValue("result")) + if success + else models.OnCompleteRequestResultFailure(ValueError("failure")) + ) + request = notifications.OnCompleteRequest( + result=result, source_context=NotificationValue("context") + ) + payload = converter.to_payload(request) + decoded = converter.from_payload( + payload, + notifications.OnCompleteRequest[NotificationValue, NotificationValue], + ) + assert decoded.source_context == request.source_context + assert isinstance(decoded.source_context, NotificationValue) + if success: + assert isinstance(decoded.result, models.OnCompleteRequestResultSuccess) + assert decoded.result.value == NotificationValue("result") + assert isinstance(decoded.result.value, NotificationValue) + else: + assert isinstance(decoded.result, models.OnCompleteRequestResultFailure) + assert isinstance(decoded.result.value, temporalio.exceptions.ApplicationError) + assert decoded.result.value.message == "failure" + assert decoded.result.value.type == "ValueError" + + +def test_notification_response_roundtrip() -> None: + data_converter = temporalio.converter.default() + converter = nexus_system._get_payload_converter( + data_converter.payload_converter, + data_converter.failure_converter, + ) + response = notifications.OnCompleteResponse() + assert ( + converter.from_payload( + converter.to_payload(response), notifications.OnCompleteResponse + ) + == response + ) diff --git a/tests/nexus/test_signal_link_propagation_e2e.py b/tests/nexus/test_signal_link_propagation_e2e.py index 9e51d4b93..9feb436e7 100644 --- a/tests/nexus/test_signal_link_propagation_e2e.py +++ b/tests/nexus/test_signal_link_propagation_e2e.py @@ -271,7 +271,7 @@ async def test_sync_signal_operation_links( client: Client, env: WorkflowEnvironment, ) -> None: - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -320,7 +320,7 @@ async def test_async_signal_operation_links( client: Client, env: WorkflowEnvironment, ) -> None: - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -405,7 +405,7 @@ async def test_standalone_sync_signal_operation_links( client: Client, env: WorkflowEnvironment, ) -> None: - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -444,7 +444,7 @@ async def test_standalone_async_signal_operation_links( client: Client, env: WorkflowEnvironment, ) -> None: - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -502,7 +502,7 @@ async def test_start_from_handler_attaches_on_conflict_options( client: Client, env: WorkflowEnvironment, ) -> None: - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) diff --git a/tests/nexus/test_standalone_operations.py b/tests/nexus/test_standalone_operations.py index 26a8316b4..50f54bb8c 100644 --- a/tests/nexus/test_standalone_operations.py +++ b/tests/nexus/test_standalone_operations.py @@ -202,7 +202,7 @@ async def test_start_sync_operation_and_get_result( client: Client, env: WorkflowEnvironment ): """Start a sync nexus operation, call handle.result(), verify return value.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -242,7 +242,7 @@ async def test_start_async_operation_and_poll_result( client: Client, env: WorkflowEnvironment ): """Start a workflow_run operation, poll result, verify.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -276,7 +276,7 @@ async def test_started_workflow_has_link_to_standalone_nexus_operation( client: Client, env: WorkflowEnvironment ): """Start a workflow_run operation and verify its workflow links back to the Nexus op.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -331,7 +331,7 @@ async def test_started_workflow_has_link_to_standalone_nexus_operation( async def test_execute_operation(client: Client, env: WorkflowEnvironment): """Use execute_operation convenience method, verify it returns result directly.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -366,7 +366,7 @@ async def test_execute_operation_named_service( client: Client, env: WorkflowEnvironment ): """Verify that the name on the service decorator is respected by the standalone nexus client""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -401,7 +401,7 @@ async def test_execute_operation_named_service( async def test_errors(client: Client, env: WorkflowEnvironment): """Execute operations that raise errors""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -461,7 +461,7 @@ async def test_errors(client: Client, env: WorkflowEnvironment): async def test_describe_operation(client: Client, env: WorkflowEnvironment): """Start op, get result first, then describe, verify fields populated.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -510,7 +510,7 @@ async def test_cancel_operation(client: Client, env: WorkflowEnvironment): """Start blocking async op, cancel it, verify awaiting result raises NexusOperationFailureError from a CancelledError. """ - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -552,7 +552,7 @@ async def test_terminate_operation(client: Client, env: WorkflowEnvironment): """Start blocking async op, terminate it, verify awaiting the result raises NexusOperationFailureError from a TerminatedError. """ - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -592,7 +592,7 @@ async def test_terminate_operation(client: Client, env: WorkflowEnvironment): async def test_list_operations(client: Client, env: WorkflowEnvironment): """Start multiple ops, list them, verify iteration yields correct results.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -640,7 +640,7 @@ async def check_ids() -> None: async def test_count_operations(client: Client, env: WorkflowEnvironment): """Start ops, count, verify count.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -683,7 +683,7 @@ async def check_count() -> None: async def test_get_nexus_operation_handle(client: Client, env: WorkflowEnvironment): """Start op, get result, then get handle by ID and get result again.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -730,7 +730,7 @@ async def test_id_conflict_policy_use_existing( client: Client, env: WorkflowEnvironment ): """Start op, re-start with USE_EXISTING, verify same op/run ID and expected result""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -795,7 +795,7 @@ async def test_id_conflict_policy_use_existing( async def test_id_conflict_policy_fail(client: Client, env: WorkflowEnvironment): """Start op, re-start with FAIL, verify raises NexusOperationAlreadyStartedError.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -869,7 +869,9 @@ async def get_nexus_operation_result( self, input: GetNexusOperationResultInput ) -> Any: self._parent.result_calls.append(input) - return await super().get_nexus_operation_result(input) + result = await super().get_nexus_operation_result(input) + self._parent.result_outputs.append(result) + return result async def cancel_nexus_operation(self, input: CancelNexusOperationInput) -> None: self._parent.cancel_calls.append(input) @@ -898,6 +900,7 @@ def __init__(self) -> None: self.start_calls: list[StartNexusOperationInput] = [] self.describe_calls: list[DescribeNexusOperationInput] = [] self.result_calls: list[GetNexusOperationResultInput] = [] + self.result_outputs: list[Any] = [] self.cancel_calls: list[CancelNexusOperationInput] = [] self.terminate_calls: list[TerminateNexusOperationInput] = [] self.list_calls: list[ListNexusOperationsInput] = [] @@ -909,7 +912,7 @@ def intercept_client(self, next: OutboundInterceptor) -> OutboundInterceptor: async def test_interceptor_receives_inputs(client: Client, env: WorkflowEnvironment): """Custom OutboundInterceptor records calls, verify correct input types.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -981,6 +984,21 @@ async def test_interceptor_receives_inputs(client: Client, env: WorkflowEnvironm assert isinstance(result_input, GetNexusOperationResultInput) assert result_input.operation_id == op_id assert result_input.result_type == EchoOutput + assert result_input.endpoint == endpoint_name + assert result_input.service == "StandaloneTestService" + assert result_input.operation == "blocking_async" + + # Interceptors receive successfully decoded results. + value = f"interceptor-success-{uuid.uuid4()}" + handle = await nexus_client.start_operation( + StandaloneTestService.echo_sync, + EchoInput(value=value), + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=30), + ) + result = await handle.result() + assert result == EchoOutput(value=value) + assert interceptor.result_outputs == [EchoOutput(value=value)] # Start another so we can terminate it previous_start_count = len(interceptor.start_calls) diff --git a/tests/nexus/test_temporal_extstore.py b/tests/nexus/test_temporal_extstore.py index f23a69259..9ec1ff9d1 100644 --- a/tests/nexus/test_temporal_extstore.py +++ b/tests/nexus/test_temporal_extstore.py @@ -30,6 +30,7 @@ from temporalio.client import Client, WorkflowFailureError from temporalio.converter import ( ExternalStorage, + PayloadCodec, StorageDriverClaim, StorageDriverRetrieveContext, StorageDriverStoreContext, @@ -39,7 +40,7 @@ from temporalio.types import MethodAsyncSingleParam from temporalio.worker import UnsandboxedWorkflowRunner, Worker from tests.helpers.nexus import make_nexus_endpoint_name -from tests.test_extstore import InMemoryTestDriver +from tests.test_extstore import InMemoryTestDriver, RecordingPayloadCodec # Cloud CI's namespace credentials cannot manage Nexus endpoints. # See https://github.com/temporalio/sdk-python/issues/1704. @@ -137,11 +138,14 @@ async def retrieve( def _client_with_extstore( - env: WorkflowEnvironment, driver: InMemoryTestDriver + env: WorkflowEnvironment, + driver: InMemoryTestDriver, + payload_codec: PayloadCodec | None = None, ) -> Client: config = env.client.config() config["data_converter"] = dataclasses.replace( temporalio.converter.default(), + payload_codec=payload_codec, external_storage=ExternalStorage( drivers=[driver], payload_size_threshold=PAYLOAD_SIZE_THRESHOLD, @@ -154,8 +158,11 @@ async def _run_caller( env: WorkflowEnvironment, driver: InMemoryTestDriver, workflow_run: MethodAsyncSingleParam[Any, str, int], + *, + payload_codec: PayloadCodec | None = None, + workflow_id: str | None = None, ) -> int: - client = _client_with_extstore(env, driver) + client = _client_with_extstore(env, driver, payload_codec) task_queue = str(uuid.uuid4()) async with Worker( client, @@ -170,7 +177,7 @@ async def _run_caller( return await client.execute_workflow( workflow_run, task_queue, - id=str(uuid.uuid4()), + id=workflow_id or str(uuid.uuid4()), task_queue=task_queue, execution_timeout=timedelta(seconds=30), ) @@ -187,7 +194,7 @@ def _cause_chain(err: BaseException) -> list[BaseException]: async def test_nexus_operation_input_offloaded_and_retrieved(env: WorkflowEnvironment): """The offloaded operation input is retrieved before the handler runs.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with the Java test server") driver = InMemoryTestDriver() @@ -202,7 +209,7 @@ async def test_nexus_operation_sync_result_offloaded_and_retrieved( env: WorkflowEnvironment, ): """A large synchronous result is offloaded and retrieved by the caller.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with the Java test server") driver = InMemoryTestDriver() @@ -213,11 +220,74 @@ async def test_nexus_operation_sync_result_offloaded_and_retrieved( assert driver._retrieve_calls >= 1 +def _assert_encoded_reference(payload: Payload) -> None: + assert payload.metadata["encoding"] == b"binary/test-encoded" + assert payload.metadata["__temporal_external_storage_reference"] == b"true" + + +@pytest.mark.usefixtures("encode_storage_references") +async def test_nexus_operation_input_reference_encoded_with_codec( + env: WorkflowEnvironment, +): + """With a codec, the operation input reference is encoded, and the Nexus + worker decodes it before retrieving the input.""" + if env.supports_time_skipping: + pytest.skip("Nexus tests don't work with the Java test server") + + driver = InMemoryTestDriver() + workflow_id = str(uuid.uuid4()) + result = await _run_caller( + env, + driver, + SizeOpCallerWorkflow.run, + payload_codec=RecordingPayloadCodec("binary/test-encoded"), + workflow_id=workflow_id, + ) + + assert result == PAYLOAD_SIZE + history = await env.client.get_workflow_handle(workflow_id).fetch_history() + [scheduled] = [ + e.nexus_operation_scheduled_event_attributes + for e in history.events + if e.HasField("nexus_operation_scheduled_event_attributes") + ] + _assert_encoded_reference(scheduled.input) + + +@pytest.mark.usefixtures("encode_storage_references") +async def test_nexus_operation_result_reference_encoded_with_codec( + env: WorkflowEnvironment, +): + """With a codec, the Nexus worker encodes the reference to an offloaded + operation result, and the caller decodes it.""" + if env.supports_time_skipping: + pytest.skip("Nexus tests don't work with the Java test server") + + driver = InMemoryTestDriver() + workflow_id = str(uuid.uuid4()) + result = await _run_caller( + env, + driver, + BigResultOpCallerWorkflow.run, + payload_codec=RecordingPayloadCodec("binary/test-encoded"), + workflow_id=workflow_id, + ) + + assert result == PAYLOAD_SIZE + history = await env.client.get_workflow_handle(workflow_id).fetch_history() + [completed] = [ + e.nexus_operation_completed_event_attributes + for e in history.events + if e.HasField("nexus_operation_completed_event_attributes") + ] + _assert_encoded_reference(completed.result) + + async def test_nexus_operation_transient_retrieve_failure_recovers( env: WorkflowEnvironment, ): """A transient retrieve failure fails the task retryably; it then recovers.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with the Java test server") driver = TransientFailureDriver(fail_first_retrieve=True) @@ -231,7 +301,7 @@ async def test_nexus_operation_transient_store_failure_recovers( env: WorkflowEnvironment, ): """A transient store failure fails the task retryably; it then recovers.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with the Java test server") driver = TransientFailureDriver(fail_first_store=True) @@ -257,7 +327,7 @@ async def test_nexus_operation_store_failure_fails_operation( ): """A non-retryable store failure fails the operation and surfaces the driver error to the caller (deterministically, with no retries).""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with the Java test server") driver = PermanentFailStoreDriver() diff --git a/tests/nexus/test_temporal_operation.py b/tests/nexus/test_temporal_operation.py index 66bc2290b..030db6f6c 100644 --- a/tests/nexus/test_temporal_operation.py +++ b/tests/nexus/test_temporal_operation.py @@ -2,6 +2,7 @@ import uuid from dataclasses import dataclass from datetime import timedelta +from typing import Any, cast import nexusrpc import pytest @@ -9,21 +10,29 @@ from nexusrpc.handler import ( CancelOperationContext, OperationTaskCancellation, + StartOperationContext, operation_handler, service_handler, + sync_operation, ) from typing_extensions import override import temporalio.exceptions +import temporalio.service from temporalio import activity, nexus, workflow from temporalio.api.activity.v1 import ActivityExecutionInfo from temporalio.api.common.v1 import Link +from temporalio.api.workflowservice.v1 import ( + SignalWorkflowExecutionRequest, + SignalWorkflowExecutionResponse, +) from temporalio.client import ( ActivityExecutionStatus, Client, NexusOperationFailureError, WorkflowExecutionStatus, WorkflowFailureError, + WorkflowUpdateStage, ) from temporalio.common import ( NexusOperationExecutionStatus, @@ -116,6 +125,7 @@ class TestService: sync_result: Operation[Input, str] custom_cancel: Operation[str, None] update_op: Operation[Input, str] + bad_update_stage_op: Operation[Input, str] query_op: Operation[str, bool] echo_activity: Operation[Input, str] error_activity: Operation[Input, None] @@ -123,6 +133,11 @@ class TestService: custom_cancel_activity: Operation[str, None] double_start_activity: Operation[Input, None] mixed_start: Operation[Input, None] + double_signal: Operation[str, None] + concurrent_signal: Operation[str, None] + unlimited_signals: Operation[str, None] + signal_after_failed_signal: Operation[str, None] + signal_handler_retry: Operation[str, None] @service_handler(service=TestService) @@ -134,6 +149,9 @@ def __init__(self) -> None: self.started_custom_cancel_workflow = asyncio.Event() self.started_custom_cancel_activity = asyncio.Event() self.custom_cancel_activity_called = asyncio.Event() + self.bad_update_stage_error: ValueError | None = None + self.signal_handler_retry_request_ids: list[str] = [] + self.concurrent_signal_results: list[BaseException | None] = [] @nexus.temporal_operation async def echo( @@ -290,9 +308,30 @@ async def update_op( input.value, UpdatableWorkflow.do_update, input.update_value, + wait_for_stage=WorkflowUpdateStage.ACCEPTED, update_id=input.update_id, ) + @nexus.temporal_operation + async def bad_update_stage_op( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: Input, + ) -> nexus.TemporalOperationResult[str]: + try: + return await client.start_workflow_update( + input.value, + UpdatableWorkflow.do_update, + input.update_value, + # cast to bypass type checker + wait_for_stage=cast(Any, WorkflowUpdateStage.COMPLETED), + update_id=input.update_id, + ) + except ValueError as err: + self.bad_update_stage_error = err + return nexus.TemporalOperationResult.sync(str(err)) + @nexus.temporal_operation async def query_op( self, @@ -391,6 +430,85 @@ async def mixed_start( ) return nexus.TemporalOperationResult.sync(None) + @nexus.temporal_operation + async def double_signal( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: str, + ) -> nexus.TemporalOperationResult[None]: + await client.client.start_workflow( + SignalCountWorkflow.run, + id=input, + task_queue=nexus.info().task_queue, + start_signal="my_signal", + ) + # Rejected even though it targets a different workflow. + await client.client.get_workflow_handle(f"{input}-other").signal( + SignalCountWorkflow.my_signal + ) + raise RuntimeError("Expected second signal to be rejected") + + @nexus.temporal_operation + async def concurrent_signal( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: str, + ) -> nexus.TemporalOperationResult[None]: + handle = client.client.get_workflow_handle(input) + self.concurrent_signal_results = list( + await asyncio.gather( + handle.signal(SignalCountWorkflow.my_signal), + handle.signal(SignalCountWorkflow.my_signal), + return_exceptions=True, + ) + ) + return nexus.TemporalOperationResult.sync(None) + + @sync_operation + async def unlimited_signals(self, _ctx: StartOperationContext, input: str) -> None: + handle = nexus.client().get_workflow_handle(input) + for _ in range(3): + await handle.signal(SignalCountWorkflow.my_signal) + + @nexus.temporal_operation + async def signal_after_failed_signal( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: str, + ) -> nexus.TemporalOperationResult[None]: + handle = client.client.get_workflow_handle(input) + try: + await handle.signal(SignalCountWorkflow.my_signal) + except temporalio.service.RPCError: + await handle.signal(SignalCountWorkflow.my_signal) + return nexus.TemporalOperationResult.sync(None) + raise RuntimeError("Expected first signal to fail") + + @nexus.temporal_operation + async def signal_handler_retry( + self, + ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: str, + ) -> nexus.TemporalOperationResult[None]: + await client.client.start_workflow( + SignalCountWorkflow.run, + id=input, + task_queue=nexus.info().task_queue, + start_signal="my_signal", + ) + self.signal_handler_retry_request_ids.append(ctx.request_id) + if len(self.signal_handler_retry_request_ids) == 1: + raise nexusrpc.HandlerError( + "force handler redelivery after signaling", + type=HandlerErrorType.INTERNAL, + retryable_override=True, + ) + return nexus.TemporalOperationResult.sync(None) + @operation_handler def custom_cancel_activity(self) -> nexus.TemporalOperationHandler[str, None]: started = self.started_custom_cancel_activity @@ -476,7 +594,7 @@ async def test_temporal_operation_update_workflow( client: Client, env: WorkflowEnvironment ) -> None: if ( - env.supports_time_skipping + env.supports_time_skipping_v1 ): # time skipping server uses different dynamic configs pytest.skip("Update workflow tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -605,7 +723,8 @@ async def check_sequential_updates_consistent(): async def check_parallel_updates_idempotent_and_finish(): """Run multiple updates in parallel, verify they are idempotent and finish with same result""" stable_id = "parallel-updates-id" - num_parallel = 3 + # TODO: Assert truly parallel updates after https://github.com/temporalio/temporal/pull/11254. + num_parallel = 1 gate = asyncio.Event() async def run_update(i: int) -> str: @@ -632,6 +751,10 @@ async def run_update(i: int) -> str: async def check_updates_on_completed_workflows_fail(): """The handler workflow already finished at this point, further updaes should just fail""" + # The last update's result does not mean the target has closed yet. + # An update that lands before the closure stays pending instead of + # failing. + await target_handle.result() wf_handle = await client.start_workflow( UpdateWorkflowCaller.run, Input( @@ -655,7 +778,7 @@ async def test_temporal_operation_update_workflow_delayed( client: Client, env: WorkflowEnvironment ) -> None: if ( - env.supports_time_skipping + env.supports_time_skipping_v1 ): # time skipping server uses different dynamic configs pytest.skip("Update workflow tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -749,6 +872,41 @@ async def test_temporal_operation_update_workflow_delayed( assert expected_backward_link in handler_links +async def test_start_workflow_update_rejects_non_accepted_wait_for_stage( + client: Client, env: WorkflowEnvironment +) -> None: + if env.supports_time_skipping_v1: + pytest.skip("Update workflow tests don't work with time-skipping server") + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + await env.create_nexus_endpoint(endpoint_name, task_queue) + service_handler = TestServiceHandler() + async with Worker( + env.client, + task_queue=task_queue, + nexus_service_handlers=[service_handler], + workflows=[UpdatableWorkflow, BadUpdateStageCaller], + ): + update_workflow_id = f"updatable-workflow-{uuid.uuid4()}" + await client.start_workflow( + UpdatableWorkflow.run, id=update_workflow_id, task_queue=task_queue + ) + result = await client.execute_workflow( + BadUpdateStageCaller.run, + Input( + value=update_workflow_id, + task_queue=task_queue, + update_value="Created", + ), + task_queue=task_queue, + id=f"bad-update-stage-caller-{uuid.uuid4()}", + ) + + assert isinstance(service_handler.bad_update_stage_error, ValueError) + assert result == str(service_handler.bad_update_stage_error) + assert result == "Only ACCEPTED wait stage is supported" + + async def test_temporal_operation_cancel_rejects_unknown_tokens(): class FakeNexusTaskCancellation(OperationTaskCancellation): def is_cancelled(self) -> bool: @@ -891,7 +1049,7 @@ async def test_temporal_operation_query_workflow( assert not any(event.links for event in target_history.events) # The Java time-skipping test server does not return Nexus operation links. - if not env.supports_time_skipping: + if not env.supports_time_skipping_v1: assert target_handle.result_run_id is not None assert Link( workflow=Link.Workflow( @@ -961,7 +1119,7 @@ async def test_temporal_operation_cancel_workflow( async def test_customized_temporal_operation_cancel_workflow( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -1121,7 +1279,7 @@ async def test_temporal_operation_failed_start_allows_retry( async def test_temporal_operation_mixed_start_raises_handler_err( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -1153,6 +1311,213 @@ async def test_temporal_operation_mixed_start_raises_handler_err( ) +@workflow.defn +class SignalCountWorkflow: + def __init__(self) -> None: + self.count = 0 + self.done = False + + @workflow.run + async def run(self) -> int: + await workflow.wait_condition(lambda: self.done) + return self.count + + @workflow.signal + def my_signal(self) -> None: + self.count += 1 + + @workflow.signal + def finish(self) -> None: + self.done = True + + +async def test_temporal_operation_double_signal_raises_handler_err( + client: Client, env: WorkflowEnvironment +): + if env.supports_time_skipping_v1: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + await env.create_nexus_endpoint(endpoint_name, task_queue) + target_id = f"double-signal-{uuid.uuid4()}" + async with Worker( + env.client, + task_queue=task_queue, + nexus_service_handlers=[TestServiceHandler()], + workflows=[SignalCountWorkflow], + ): + nexus_client = client.create_nexus_client(TestService, endpoint_name) + with pytest.raises(NexusOperationFailureError) as err: + await nexus_client.execute_operation( + TestService.double_signal, target_id, id=str(uuid.uuid4()) + ) + + assert isinstance(err.value.cause, nexusrpc.HandlerError) + assert err.value.cause.type == HandlerErrorType.BAD_REQUEST + assert ( + "Only one signal can be sent per Temporal operation handler invocation" + in err.value.cause.message + ) + + +async def test_temporal_operation_concurrent_signal_raises_handler_err( + client: Client, env: WorkflowEnvironment +): + if env.supports_time_skipping_v1: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + await env.create_nexus_endpoint(endpoint_name, task_queue) + handler = TestServiceHandler() + async with Worker( + env.client, + task_queue=task_queue, + nexus_service_handlers=[handler], + workflows=[SignalCountWorkflow], + ): + handle = await client.start_workflow( + SignalCountWorkflow.run, + id=f"concurrent-signal-{uuid.uuid4()}", + task_queue=task_queue, + ) + nexus_client = client.create_nexus_client(TestService, endpoint_name) + await nexus_client.execute_operation( + TestService.concurrent_signal, handle.id, id=str(uuid.uuid4()) + ) + + [err] = [r for r in handler.concurrent_signal_results if r is not None] + assert isinstance(err, nexusrpc.HandlerError) + assert err.type == HandlerErrorType.BAD_REQUEST + + await handle.signal(SignalCountWorkflow.finish) + assert await handle.result() == 1 + + +async def test_sync_operation_signals_not_limited( + client: Client, env: WorkflowEnvironment +): + if env.supports_time_skipping_v1: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + await env.create_nexus_endpoint(endpoint_name, task_queue) + async with Worker( + env.client, + task_queue=task_queue, + nexus_service_handlers=[TestServiceHandler()], + workflows=[SignalCountWorkflow], + ): + handle = await client.start_workflow( + SignalCountWorkflow.run, + id=f"unlimited-signals-{uuid.uuid4()}", + task_queue=task_queue, + ) + nexus_client = client.create_nexus_client(TestService, endpoint_name) + await nexus_client.execute_operation( + TestService.unlimited_signals, handle.id, id=str(uuid.uuid4()) + ) + + await handle.signal(SignalCountWorkflow.finish) + assert await handle.result() == 3 + + +async def test_temporal_operation_failed_signal_allows_retry( + client: Client, env: WorkflowEnvironment, monkeypatch: pytest.MonkeyPatch +): + if env.supports_time_skipping_v1: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + await env.create_nexus_endpoint(endpoint_name, task_queue) + + workflow_service = env.client.workflow_service + signal_workflow_execution = workflow_service.signal_workflow_execution + lost = False + + async def lose_first_signal_response( + req: SignalWorkflowExecutionRequest, *args: Any, **kwargs: Any + ) -> SignalWorkflowExecutionResponse: + nonlocal lost + resp = await signal_workflow_execution(req, *args, **kwargs) + if not lost: + lost = True + raise temporalio.service.RPCError( + "lost response", temporalio.service.RPCStatusCode.DEADLINE_EXCEEDED, b"" + ) + return resp + + monkeypatch.setattr( + workflow_service, "signal_workflow_execution", lose_first_signal_response + ) + async with Worker( + env.client, + task_queue=task_queue, + nexus_service_handlers=[TestServiceHandler()], + workflows=[SignalCountWorkflow], + ): + handle = await client.start_workflow( + SignalCountWorkflow.run, + id=f"failed-signal-{uuid.uuid4()}", + task_queue=task_queue, + ) + nexus_client = client.create_nexus_client(TestService, endpoint_name) + # The first signal was applied but reported as failed. The failure frees + # the limit, and the resend reuses the request ID so it is deduplicated. + await nexus_client.execute_operation( + TestService.signal_after_failed_signal, + handle.id, + id=str(uuid.uuid4()), + ) + + await handle.signal(SignalCountWorkflow.finish) + assert await handle.result() == 1 + + +async def test_temporal_operation_signal_deduped_across_handler_retry( + client: Client, env: WorkflowEnvironment +): + if env.supports_time_skipping_v1: + pytest.skip( + "Standalone Nexus Operation tests don't work with time-skipping server" + ) + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + await env.create_nexus_endpoint(endpoint_name, task_queue) + target_id = f"signal-retry-{uuid.uuid4()}" + handler = TestServiceHandler() + async with Worker( + env.client, + task_queue=task_queue, + nexus_service_handlers=[handler], + workflows=[SignalCountWorkflow], + ): + nexus_client = client.create_nexus_client(TestService, endpoint_name) + await nexus_client.execute_operation( + TestService.signal_handler_retry, target_id, id=str(uuid.uuid4()) + ) + + request_ids = handler.signal_handler_retry_request_ids + assert len(request_ids) == 2 + assert request_ids[0] and request_ids[0] == request_ids[1] + + handle = client.get_workflow_handle(target_id) + await handle.signal(SignalCountWorkflow.finish) + assert await handle.result() == 1 + + @workflow.defn class SyncResultCaller: @workflow.run @@ -1195,7 +1560,7 @@ async def test_temporal_operation_sync_result(client: Client, env: WorkflowEnvir async def test_temporal_operation_start_activity( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -1222,7 +1587,7 @@ async def test_temporal_operation_start_activity( async def test_temporal_operation_backing_activity_does_not_duplicate_links( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -1283,7 +1648,7 @@ async def echo_activity( async def test_temporal_operation_start_activity_raises_error( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -1316,7 +1681,7 @@ async def test_temporal_operation_start_activity_raises_error( async def test_temporal_operation_cancel_activity( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -1353,7 +1718,7 @@ async def check_cancelled(): async def test_customized_temporal_operation_cancel_activity( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -1394,7 +1759,7 @@ async def check_cancelled(): async def test_temporal_operation_double_start_activity_raises_handler_err( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) @@ -1649,6 +2014,19 @@ async def run(self, input: Input) -> str: return await op_handle +@workflow.defn +class BadUpdateStageCaller: + """Caller workflow for an update op that requests an unsupported update stage.""" + + @workflow.run + async def run(self, input: Input) -> str: + client = workflow.create_nexus_client( + service=TestService, + endpoint=make_nexus_endpoint_name(input.task_queue), + ) + return await client.execute_operation(TestService.bad_update_stage_op, input) + + @workflow.defn class UpdatableWorkflow: """Workflow that accepts updates and exits when it receives a specific status""" @@ -1675,7 +2053,7 @@ async def do_update(self, value: str) -> str: async def test_temporal_operation_includes_activity_token_in_callback( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Standalone Nexus Operation tests don't work with time-skipping server" ) diff --git a/tests/nexus/test_temporal_system_nexus.py b/tests/nexus/test_temporal_system_nexus.py index 6a9bc9959..b54e6a928 100644 --- a/tests/nexus/test_temporal_system_nexus.py +++ b/tests/nexus/test_temporal_system_nexus.py @@ -14,6 +14,7 @@ import temporalio.api.common.v1 import temporalio.api.failure.v1 import temporalio.api.workflowservice.v1.request_response_pb2 as workflowservice_pb2 +import temporalio.common import temporalio.converter import temporalio.exceptions import temporalio.nexus.system as nexus_system @@ -27,8 +28,14 @@ ) from temporalio.client import Client from temporalio.converter import ( + CompositePayloadConverter, + DefaultFailureConverter, + DefaultPayloadConverter, + EncodingPayloadConverter, ExternalStorage, + JSONPlainPayloadConverter, PayloadCodec, + PayloadConverter, SerializationContext, WithSerializationContext, WorkflowSerializationContext, @@ -238,6 +245,103 @@ async def decode( return list(payloads) +@dataclasses.dataclass +class ContextValue: + value: str + + +class ContextPayloadConverter(EncodingPayloadConverter, WithSerializationContext): + def __init__( + self, + contexts: list[SerializationContext | None], + context: SerializationContext | None = None, + ) -> None: + self.contexts = contexts + self.context = context + + @property + def encoding(self) -> str: + return "test-context" + + def with_context(self, context: SerializationContext) -> ContextPayloadConverter: + return ContextPayloadConverter(self.contexts, context) + + def to_payload(self, value: Any) -> temporalio.api.common.v1.Payload | None: + if not isinstance(value, ContextValue): + return None + self.contexts.append(self.context) + payload = JSONPlainPayloadConverter().to_payload(value) + assert payload is not None + payload.metadata["encoding"] = self.encoding.encode() + return payload + + def from_payload( + self, + payload: temporalio.api.common.v1.Payload, + type_hint: type | None = None, + ) -> Any: + return JSONPlainPayloadConverter().from_payload(payload, type_hint) + + +class ContextPayloadConverterSet(CompositePayloadConverter): + def __init__(self) -> None: + self.contexts: list[SerializationContext | None] = [] + super().__init__( + ContextPayloadConverter(self.contexts), + *DefaultPayloadConverter.default_encoding_payload_converters, + ) + + +class ContextFailureConverter(DefaultFailureConverter, WithSerializationContext): + def __init__(self, context: SerializationContext | None = None) -> None: + super().__init__() + self.context = context + + def with_context(self, context: SerializationContext) -> ContextFailureConverter: + return ContextFailureConverter(context) + + +class ContextPayloadCodec(PayloadCodec, WithSerializationContext): + def __init__( + self, + contexts: list[SerializationContext | None], + context: SerializationContext | None = None, + ) -> None: + self.contexts = contexts + self.context = context + + def with_context(self, context: SerializationContext) -> ContextPayloadCodec: + return ContextPayloadCodec(self.contexts, context) + + async def encode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + for payload in payloads: + if payload.metadata.get("encoding") == b"test-context": + self.contexts.append(self.context) + return list(payloads) + + async def decode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + return list(payloads) + + +@workflow.defn +class ContextSignalWithStartWorkflowCaller: + @workflow.run + async def run(self, task_queue: str) -> str: + handle = await workflow.signal_with_start_workflow( + "test-workflow", + ContextValue("workflow-input"), + id="system-nexus-workflow-id", + task_queue=task_queue, + signal="test-signal", + signal_args=[ContextValue("signal-input")], + ) + return handle.id + + class TracingWorkflowInterceptor(Interceptor): def workflow_interceptor_class( self, input: WorkflowInterceptorClassInput @@ -251,11 +355,23 @@ def init(self, outbound: WorkflowOutboundInterceptor) -> None: class _TracingWorkflowOutboundInterceptor(WorkflowOutboundInterceptor): - async def start_nexus_operation( - self, input: StartNexusOperationInput[Any, Any] + async def start_signal_with_start_workflow( + self, request: workflow_service_models.SignalWithStartWorkflowRequest + ) -> workflow.NexusOperationHandle[ + workflow_service_models.SignalWithStartWorkflowResponse + ]: + request.headers = {**(request.headers or {}), "interceptor-header": "value"} + interceptor_traces.append( + ("workflow.start_signal_with_start_workflow", request) + ) + return await super().start_signal_with_start_workflow(request) + + async def start_system_nexus_operation( + self, + input: StartNexusOperationInput[Any, Any], ) -> workflow.NexusOperationHandle[Any]: - interceptor_traces.append(("workflow.start_nexus_operation", input)) - return await super().start_nexus_operation(input) + interceptor_traces.append(("workflow.start_system_nexus_operation", input)) + return await super().start_system_nexus_operation(input) def _assert_stored_payloads_include( @@ -270,15 +386,20 @@ def _assert_stored_payloads_include( assert expected_payload_data.issubset(stored_payload_data) -def _assert_start_nexus_operation_interceptor_trace() -> None: - assert len(interceptor_traces) == 1 - trace_name, trace_value = interceptor_traces.pop() - assert trace_name == "workflow.start_nexus_operation" - trace_input = cast(StartNexusOperationInput[Any, Any], trace_value) - request = trace_input.input +def _assert_signal_with_start_workflow_interceptor_trace() -> None: + assert len(interceptor_traces) == 2 + trace_name, trace_value = interceptor_traces.pop(0) + assert trace_name == "workflow.start_signal_with_start_workflow" + request = cast(workflow_service_models.SignalWithStartWorkflowRequest, trace_value) assert request.id == "system-nexus-workflow-id" assert request.signal == "test-signal" assert request.workflow == "test-workflow" + assert request.headers == {"interceptor-header": "value"} + trace_name, trace_value = interceptor_traces.pop() + assert trace_name == "workflow.start_system_nexus_operation" + system_input = cast(StartNexusOperationInput[Any, Any], trace_value) + assert system_input.input is request + assert system_input.headers is None class _MarkingPayloadVisitor(VisitorFunctions): @@ -337,7 +458,23 @@ def _new_unmarked_system_nexus_request_payload() -> temporalio.api.common.v1.Pay return payload -async def test_nexus_payload_serializer_decodes_system_input() -> None: +@pytest.mark.parametrize( + "versioning_override", + [ + None, + temporalio.common.PinnedVersioningOverride( + temporalio.common.WorkerDeploymentVersion("deployment", "build") + ), + temporalio.common.AutoUpgradeVersioningOverride(), + temporalio.common.OneTimeVersioningOverride( + temporalio.common.WorkerDeploymentVersion("deployment", "build") + ), + ], + ids=["absent", "pinned", "auto-upgrade", "one-time"], +) +async def test_nexus_payload_serializer_decodes_system_input( + versioning_override: temporalio.common.VersioningOverride | None, +) -> None: """A marked system request is decoded into its generated Nexus model.""" data_converter = temporalio.converter.default() request = workflow_service_models.SignalWithStartWorkflowRequest( @@ -348,6 +485,7 @@ async def test_nexus_payload_serializer_decodes_system_input() -> None: signal="test-signal", namespace="target-namespace", headers={"test-header": "header-value"}, + versioning_override=versioning_override, ) payload = nexus_system._get_payload_converter( data_converter.payload_converter, @@ -566,13 +704,10 @@ def _proto_scalar_sample(field: FieldDescriptor, *, path: str) -> Any: def _field_is_repeated(field: FieldDescriptor) -> bool: - return bool( - getattr( - field, - "is_repeated", - getattr(field, "label") == FieldDescriptor.LABEL_REPEATED, - ) - ) + is_repeated = getattr(field, "is_repeated", None) + if is_repeated is not None: + return bool(is_repeated) + return getattr(field, "label") == FieldDescriptor.LABEL_REPEATED @pytest.mark.parametrize( @@ -663,7 +798,7 @@ def to_failure( async def test_external_workflow_handle_signal_with_start_workflow_uses_system_nexus( env: WorkflowEnvironment, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with the Java test server") codec = RejectOuterSystemNexusCodec() @@ -711,7 +846,7 @@ async def test_external_workflow_handle_signal_with_start_workflow_uses_system_n b'"details-value"', }, ) - _assert_start_nexus_operation_interceptor_trace() + _assert_signal_with_start_workflow_interceptor_trace() # Cloud namespaces created by CI do not have the System Nexus dynamic config. @@ -720,7 +855,7 @@ async def test_signal_with_start_uses_target_workflow_serialization_context( env: WorkflowEnvironment, monkeypatch: pytest.MonkeyPatch, ) -> None: - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with the Java test server") captured_contexts: list[SerializationContext | None] = [] @@ -771,3 +906,91 @@ def capture_get_payload_converter( and context.workflow_id == target_workflow_id for context in captured_contexts ) + + +@pytest.mark.requires_local_server +@pytest.mark.parametrize("use_operation_context", [True, False]) +async def test_signal_with_start_uses_operation_context_for_converter_and_codec( + env: WorkflowEnvironment, + monkeypatch: pytest.MonkeyPatch, + use_operation_context: bool, +) -> None: + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + failure_converter_contexts: list[SerializationContext | None] = [] + original_get_payload_converter = nexus_system._get_payload_converter + + def capture_failure_converter_context( + internal_payload_converter: temporalio.converter.PayloadConverter, + user_failure_converter: temporalio.converter.FailureConverter, + ) -> temporalio.converter.PayloadConverter: + assert isinstance(user_failure_converter, ContextFailureConverter) + failure_converter_contexts.append(user_failure_converter.context) + return original_get_payload_converter( + internal_payload_converter, user_failure_converter + ) + + monkeypatch.setattr( + nexus_system, + "_get_payload_converter", + capture_failure_converter_context, + ) + if not use_operation_context: + monkeypatch.setattr( + nexus_system, + "_get_serialization_context", + lambda _service, _operation, _request: None, + ) + + codec_contexts: list[SerializationContext | None] = [] + payload_converter = ContextPayloadConverterSet() + caller_config = env.client.config() + caller_config["data_converter"] = dataclasses.replace( + temporalio.converter.default(), + payload_converter_class=cast(type[PayloadConverter], lambda: payload_converter), + payload_codec=ContextPayloadCodec(codec_contexts), + failure_converter_class=ContextFailureConverter, + ) + caller_client = Client(**caller_config) + caller_task_queue = str(uuid.uuid4()) + target_workflow_id = "system-nexus-workflow-id" + + async with Worker( + caller_client, + task_queue=caller_task_queue, + workflows=[ContextSignalWithStartWorkflowCaller], + workflow_runner=UnsandboxedWorkflowRunner(), + ): + result = await caller_client.execute_workflow( + ContextSignalWithStartWorkflowCaller.run, + caller_task_queue, + id=str(uuid.uuid4()), + task_queue=caller_task_queue, + execution_timeout=timedelta(seconds=5), + ) + + assert result == target_workflow_id + assert len(payload_converter.contexts) >= 2 + assert len(codec_contexts) >= 2 + assert failure_converter_contexts + if use_operation_context: + assert all( + isinstance(context, WorkflowSerializationContext) + and context.workflow_id == target_workflow_id + for context in payload_converter.contexts + ), payload_converter.contexts + assert all( + isinstance(context, WorkflowSerializationContext) + and context.workflow_id == target_workflow_id + for context in codec_contexts + ), codec_contexts + assert all( + isinstance(context, WorkflowSerializationContext) + and context.workflow_id == target_workflow_id + for context in failure_converter_contexts + ), failure_converter_contexts + else: + assert all(context is None for context in payload_converter.contexts) + assert all(context is None for context in codec_contexts) + assert all(context is None for context in failure_converter_contexts) diff --git a/tests/nexus/test_workflow_caller.py b/tests/nexus/test_workflow_caller.py index 0c47f17c1..deb303ccc 100644 --- a/tests/nexus/test_workflow_caller.py +++ b/tests/nexus/test_workflow_caller.py @@ -743,7 +743,7 @@ async def test_nexus_info_includes_namespace(client: Client, env: WorkflowEnviro id=str(uuid.uuid4()), task_queue=task_queue, ) - if not env.supports_time_skipping: + if not env.supports_time_skipping_v1: # Time-skipping server doesn't send the endpoint yet. assert result["endpoint"] == endpoint_name assert result["namespace"] == client.namespace @@ -906,7 +906,7 @@ async def test_start_operation_headers( env: WorkflowEnvironment, ): """Test headers from workflow and interceptors are propagated to start operation handler.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -983,7 +983,7 @@ async def test_cancel_operation_headers( env: WorkflowEnvironment, ): """Test headers from workflow and interceptor are propagated to cancel operation handler.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -1042,7 +1042,7 @@ async def test_sync_response( op_definition_type: OpDefinitionType, caller_reference: CallerReference, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -1076,8 +1076,6 @@ async def test_sync_response( task_queue=task_queue, ) - # The operation result is returned even when request_cancel=True, because the - # response was synchronous and it could not be cancelled. See explanation below. if exception_in_operation_start: with pytest.raises(WorkflowFailureError) as ei: await caller_wf_handle.result() @@ -1095,6 +1093,8 @@ async def test_sync_response( else "sync_or_async_operation" ) else: + # Under the default legacy ordering, cancellation does not override + # an already-completed synchronous result. result = await caller_wf_handle.result() assert result.op_output.value == "sync response" @@ -1116,7 +1116,7 @@ async def test_async_response( op_definition_type: OpDefinitionType, caller_reference: CallerReference, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -1280,7 +1280,7 @@ async def test_untyped_caller( caller_reference: CallerReference, response_type: ResponseType, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -1565,7 +1565,7 @@ async def test_workflow_run_operation_can_execute_workflow_before_starting_backi client: Client, env: WorkflowEnvironment, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -1753,6 +1753,10 @@ async def assert_handler_workflow_has_link_to_caller_workflow( # awaited, because both resolve_nexus_operation_start and resolve_nexus_operation jobs # were sent in the same activation and hence the task's fut_waiter was already finished. # +# With single-batch activations (workflow logic flag 2) the SDK re-raises +# the task cancellation even though the result future is already done, so awaiting the +# handle raises CancelledError in the sync case as well. +# # But in the async case, at the time that we cancel the NexusOperationHandle, only the # resolve_nexus_operation_start job had been sent; the result_fut was unresolved. Thus # when the handle was awaited, CancelledError was raised. @@ -2222,7 +2226,7 @@ async def test_task_executor_operation_cancel_method( self, client: Client, env: WorkflowEnvironment, use_async_cancel: bool ): """Test that both async and non-async cancel methods work for TaskExecutor-based operations.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -2270,7 +2274,7 @@ async def test_request_deadline_is_accessible_in_operation( env: WorkflowEnvironment, ): """Test that request_deadline is accessible in StartOperationContext.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) diff --git a/tests/nexus/test_workflow_caller_cancellation_types_when_cancel_handler_fails.py b/tests/nexus/test_workflow_caller_cancellation_types_when_cancel_handler_fails.py index 2cdcb4f11..dbfef3738 100644 --- a/tests/nexus/test_workflow_caller_cancellation_types_when_cancel_handler_fails.py +++ b/tests/nexus/test_workflow_caller_cancellation_types_when_cancel_handler_fails.py @@ -229,7 +229,7 @@ async def test_cancellation_type( env: WorkflowEnvironment, cancellation_type_name: str, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") cancellation_type = workflow.NexusOperationCancellationType[cancellation_type_name] diff --git a/tests/nexus/test_workflow_caller_error_chains.py b/tests/nexus/test_workflow_caller_error_chains.py index 1012d8a94..5f8a92e32 100644 --- a/tests/nexus/test_workflow_caller_error_chains.py +++ b/tests/nexus/test_workflow_caller_error_chains.py @@ -629,7 +629,7 @@ async def run(self, input: ErrorTestInput) -> None: async def test_errors_raised_by_nexus_operation( client: Client, env: WorkflowEnvironment, test_case: ErrorTestCase ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) diff --git a/tests/nexus/test_workflow_caller_errors.py b/tests/nexus/test_workflow_caller_errors.py index 78d5f9e67..1f1129851 100644 --- a/tests/nexus/test_workflow_caller_errors.py +++ b/tests/nexus/test_workflow_caller_errors.py @@ -181,7 +181,7 @@ async def run(self, input: RPCErrorInput) -> None: async def test_nexus_operation_is_retried( client: Client, env: WorkflowEnvironment, operation_name: str ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") input = ErrorTestInput( @@ -242,7 +242,7 @@ async def test_nexus_operation_fails_without_retry_as_handler_error( handler_error_type: nexusrpc.HandlerErrorType, handler_error_message: str, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") input = ErrorTestInput( @@ -325,7 +325,7 @@ async def run(self, operation: str) -> None: async def test_error_raised_by_timeout_of_nexus_start_operation( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -407,7 +407,7 @@ async def run(self) -> None: async def test_error_raised_by_schedule_to_start_timeout_of_nexus_operation( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -483,7 +483,7 @@ async def run(self) -> None: async def test_error_raised_by_start_to_close_timeout_of_nexus_operation( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -564,7 +564,7 @@ async def run(self) -> None: async def test_error_raised_by_timeout_of_nexus_cancel_operation( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -616,7 +616,7 @@ async def test_rpc_error_fails_without_retry( status_code: RPCStatusCode, expected_handler_error_type: nexusrpc.HandlerErrorType, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") input = RPCErrorInput( @@ -675,7 +675,7 @@ async def test_rpc_error_is_retried( env: WorkflowEnvironment, status_code: RPCStatusCode, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") input = RPCErrorInput( @@ -751,7 +751,7 @@ def from_payloads( async def test_nexus_operation_retried_on_codec_decode_failure( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -795,7 +795,7 @@ async def test_nexus_operation_retried_on_codec_decode_failure( async def test_nexus_operation_fails_without_retry_on_converter_failure( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -1002,7 +1002,7 @@ async def test_retryable_converter_input_payload_validation_failure_keeps_generi async def test_nexus_operation_fails_without_retry_on_codec_input_validation_failure( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -1061,7 +1061,7 @@ async def test_nexus_operation_fails_without_retry_on_codec_input_validation_fai async def test_nexus_operation_fails_without_retry_on_converter_input_validation_failure( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) diff --git a/tests/nexus/test_workflow_caller_eviction.py b/tests/nexus/test_workflow_caller_eviction.py new file mode 100644 index 000000000..c3081306a --- /dev/null +++ b/tests/nexus/test_workflow_caller_eviction.py @@ -0,0 +1,162 @@ +import gc +import uuid +from contextlib import AsyncExitStack +from dataclasses import dataclass +from datetime import timedelta +from typing import Literal + +import nexusrpc +import nexusrpc.handler +import pytest + +import temporalio.api.enums.v1 +import temporalio.nexus as nexus +import temporalio.workflow as workflow +from temporalio.testing import WorkflowEnvironment +from temporalio.worker import Worker +from tests.helpers import assert_event_subsequence +from tests.helpers.nexus import make_nexus_endpoint_name + +pytestmark = pytest.mark.requires_local_server + + +@nexusrpc.service +class EvictionTestService: + wait: nexusrpc.Operation[str, str] + + +@workflow.defn +class EvictionTestOperationWorkflow: + def __init__(self) -> None: + self.released = False + + @workflow.run + async def run(self) -> str: + await workflow.wait_condition(lambda: self.released) + return "completed" + + @workflow.signal + def release(self) -> None: + self.released = True + + +@nexusrpc.handler.service_handler(service=EvictionTestService) +class EvictionTestServiceHandler: + @nexus.temporal_operation + async def wait( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + workflow_id: str, + ) -> nexus.TemporalOperationResult[str]: + return await client.start_workflow( + EvictionTestOperationWorkflow.run, id=workflow_id + ) + + +@dataclass +class EvictionTestCallerInput: + endpoint: str + operation_workflow_id: str + + +@workflow.defn +class EvictionTestCallerWorkflow: + @workflow.run + async def run(self, input: EvictionTestCallerInput) -> str: + client = workflow.create_nexus_client( + service=EvictionTestService, endpoint=input.endpoint + ) + return await client.execute_operation( + EvictionTestService.wait, + input.operation_workflow_id, + schedule_to_close_timeout=timedelta(minutes=5), + ) + + +@pytest.mark.parametrize("operation_state", ["starting", "started"]) +@pytest.mark.parametrize("eviction_reason", ["cache-eviction", "shutdown"]) +async def test_nexus_caller_eviction( + env: WorkflowEnvironment, + operation_state: Literal["starting", "started"], + eviction_reason: Literal["cache-eviction", "shutdown"], + caplog: pytest.LogCaptureFixture, +) -> None: + if env.supports_time_skipping: + pytest.skip("Nexus tests don't work with time-skipping server") + + caller_id = str(uuid.uuid4()) + caller_queue = str(uuid.uuid4()) + handler_queue = str(uuid.uuid4()) + operation_id = str(uuid.uuid4()) + endpoint = make_nexus_endpoint_name(handler_queue) + await env.create_nexus_endpoint(endpoint, handler_queue) + + async with AsyncExitStack() as stack: + handler_worker = Worker( + env.client, + task_queue=handler_queue, + workflows=[EvictionTestOperationWorkflow], + nexus_service_handlers=[EvictionTestServiceHandler()], + ) + if operation_state == "started": + await stack.enter_async_context(handler_worker) + + async with Worker( + env.client, + task_queue=caller_queue, + workflows=[EvictionTestCallerWorkflow], + max_cached_workflows=1000 if eviction_reason == "shutdown" else 0, + ): + handle = await env.client.start_workflow( + EvictionTestCallerWorkflow.run, + EvictionTestCallerInput(endpoint, operation_id), + id=caller_id, + task_queue=caller_queue, + ) + + expected_events = [ + temporalio.api.enums.v1.EventType.EVENT_TYPE_NEXUS_OPERATION_SCHEDULED + ] + if operation_state == "started": + # The following workflow task must complete so the caller is + # waiting for the operation's result, not its start response. + expected_events.extend( + [ + temporalio.api.enums.v1.EventType.EVENT_TYPE_NEXUS_OPERATION_STARTED, + temporalio.api.enums.v1.EventType.EVENT_TYPE_WORKFLOW_TASK_COMPLETED, + ] + ) + await assert_event_subsequence(handle, expected_events) + + gc.collect() + assert "Task was destroyed but it is pending!" not in caplog.text + + if operation_state == "starting": + # Keep start pending until the original caller worker stops. + await stack.enter_async_context(handler_worker) + + # A different worker must still receive the original operation's result. + async with Worker( + env.client, + task_queue=caller_queue, + workflows=[EvictionTestCallerWorkflow], + ): + await assert_event_subsequence( + handle, + [temporalio.api.enums.v1.EventType.EVENT_TYPE_NEXUS_OPERATION_STARTED], + ) + operation_handle = env.client.get_workflow_handle( + operation_id, result_type=str + ) + await operation_handle.signal(EvictionTestOperationWorkflow.release) + assert await handle.result() == "completed" + + history = await handle.fetch_history() + assert not any( + event.event_type + == temporalio.api.enums.v1.EventType.EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED + for event in history.events + ) + gc.collect() + assert "Task was destroyed but it is pending!" not in caplog.text diff --git a/tests/nexus/test_workflow_run_operation.py b/tests/nexus/test_workflow_run_operation.py index 7135fde71..69d4a6e0f 100644 --- a/tests/nexus/test_workflow_run_operation.py +++ b/tests/nexus/test_workflow_run_operation.py @@ -139,7 +139,7 @@ async def test_workflow_run_operation( env: WorkflowEnvironment, service_handler_cls: type[Any], ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -166,7 +166,7 @@ async def test_request_deadline_is_accessible_in_workflow_run_operation( env: WorkflowEnvironment, ): """Test that request_deadline is accessible in WorkflowRunOperationContext.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) @@ -199,7 +199,7 @@ async def test_workflow_run_operation_includes_token_in_callback( client: Client, env: WorkflowEnvironment, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with time-skipping server") task_queue = str(uuid.uuid4()) diff --git a/tests/test_activity.py b/tests/test_activity.py index 3a63f51ac..073c125f3 100644 --- a/tests/test_activity.py +++ b/tests/test_activity.py @@ -26,11 +26,16 @@ StartActivityInput, TerminateActivityInput, ) +from temporalio.common import RetryPolicy from temporalio.exceptions import ApplicationError, CancelledError from temporalio.service import RPCError, RPCStatusCode from temporalio.testing import WorkflowEnvironment from temporalio.worker import Worker -from tests.helpers import assert_eq_eventually, assert_eventually +from tests.helpers import ( + assert_eq_eventually, + assert_eventually, + ensure_search_attributes_present, +) @activity.defn @@ -38,6 +43,16 @@ async def increment(input: int) -> int: return input + 1 +# Activity for testing describe, stores last failure and heartbeat details +@activity.defn +async def heartbeat_fail_increment(x: int) -> int: + if activity.info().heartbeat_details: + return x + 1 + else: + activity.heartbeat("heartbeat details") + raise ApplicationError("first attempt failed") + + # Activity classes for testing start_activity_class / execute_activity_class @activity.defn class IncrementClass: @@ -75,10 +90,6 @@ async def async_increment(self, x: int) -> int: async def async_no_param(self) -> str: return "async-method-result" - @activity.defn - def sync_increment(self, x: int) -> int: - return x + 1 - async def test_start_activity_generates_request_id() -> None: start_activity_execution = mock.AsyncMock( @@ -105,72 +116,156 @@ async def test_start_activity_generates_request_id() -> None: assert requests[0].request_id != requests[1].request_id +async def test_terminate_activity_generates_request_id() -> None: + terminate_activity_execution = mock.AsyncMock( + return_value=temporalio.api.workflowservice.v1.TerminateActivityExecutionResponse() + ) + service_client = mock.MagicMock() + service_client.config.identity = "test-identity" + service_client.workflow_service.terminate_activity_execution = ( + terminate_activity_execution + ) + client = Client(service_client) + + for activity_id in ("activity-id-1", "activity-id-2"): + await client.get_activity_handle(activity_id).terminate(reason="done") + + requests = [call.args[0] for call in terminate_activity_execution.call_args_list] + assert all(uuid.UUID(request.request_id).version == 4 for request in requests) + assert requests[0].request_id != requests[1].request_id + + class TestDescribe: @pytest.fixture - async def activity_handle(self, client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: - pytest.skip( - "Java test server: https://github.com/temporalio/sdk-java/issues/2741" - ) + def task_queue(self): + return str(uuid.uuid4()) + async def make_activity_handle( + self, client: Client, task_queue: str, max_attempts: int = 2 + ): id = str(uuid.uuid4()) - task_queue = str(uuid.uuid4()) - yield await client.start_activity( - increment, - args=(42,), + return await client.start_activity( + heartbeat_fail_increment, + args=(1,), id=id, task_queue=task_queue, - schedule_to_close_timeout=timedelta(hours=1), + schedule_to_close_timeout=timedelta(minutes=1), + retry_policy=RetryPolicy(maximum_attempts=max_attempts), ) + @pytest.fixture + async def activity_handle( + self, client: Client, env: WorkflowEnvironment, task_queue: str + ): + if env.supports_time_skipping_v1: + pytest.skip( + "Java test server: https://github.com/temporalio/sdk-java/issues/2741" + ) + return await self.make_activity_handle(client, task_queue) + async def test_describe(self, client: Client, activity_handle: ActivityHandle): desc = await activity_handle.describe() # From ActivityExecution (base class) assert desc.activity_id == activity_handle.id assert desc.activity_run_id == activity_handle.run_id - assert desc.activity_type == "increment" + assert desc.activity_type == "heartbeat_fail_increment" assert desc.close_time is None # not closed yet assert desc.execution_duration is None # not closed yet assert desc.namespace == client.namespace assert desc.raw_info is not None - assert desc.scheduled_time is not None + assert desc.schedule_time is not None assert len(desc.typed_search_attributes) == 0 - assert desc.state_transition_count is not None assert desc.status == ActivityExecutionStatus.RUNNING assert desc.task_queue # From ActivityExecutionDescription assert desc.attempt == 1 assert desc.canceled_reason is None assert desc.current_retry_interval is None - assert desc.eager_execution_requested is False assert desc.expiration_time is not None - assert len(desc.raw_heartbeat_details) == 0 assert desc.run_state == PendingActivityState.SCHEDULED assert desc.last_attempt_complete_time is None - assert desc.last_failure is None assert desc.last_heartbeat_time is None assert desc.last_started_time is None - assert desc.last_worker_identity == "" - assert desc.long_poll_token is not None + assert desc.last_worker_identity is None assert desc.next_attempt_schedule_time is None - assert desc.paused is False assert desc.retry_policy is not None - async def test_describe_long_poll(self, activity_handle: ActivityHandle): - desc1 = await activity_handle.describe() - assert desc1.long_poll_token - desc2_task = asyncio.create_task( - activity_handle.describe(long_poll_token=desc1.long_poll_token) + async def test_describe_without_schedule_to_close_timeout( + self, client: Client, env: WorkflowEnvironment, task_queue: str + ): + if env.supports_time_skipping_v1: + pytest.skip( + "Java test server: https://github.com/temporalio/sdk-java/issues/2741" + ) + activity_handle = await client.start_activity( + heartbeat_fail_increment, + args=(1,), + id=str(uuid.uuid4()), + task_queue=task_queue, + start_to_close_timeout=timedelta(minutes=1), ) - # Worker poll causes a transition to Started which notifies the waiting long-poll. + desc = await activity_handle.describe() + assert desc.expiration_time is None # no schedule-to-close timeout + + async def test_describe_payloads( + self, client: Client, activity_handle: ActivityHandle, task_queue: str + ): async with Worker( - activity_handle._client, - task_queue=desc1.task_queue, - activities=[increment], + client, + task_queue=task_queue, + activities=[heartbeat_fail_increment], ): - desc2 = await desc2_task - assert desc2.state_transition_count and desc1.state_transition_count - assert desc2.state_transition_count > desc1.state_transition_count + assert await activity_handle.result() == 2 + + desc_default = await activity_handle.describe() + assert not desc_default.has_input() + assert not desc_default.has_result() + assert not desc_default.has_outcome_failure() + assert not desc_default.has_heartbeat_details() + assert not desc_default.has_last_failure() + assert await desc_default.input([int]) is None + assert await desc_default.result(int) is None + assert await desc_default.outcome_failure() is None + assert await desc_default.heartbeat_details([str]) is None + assert await desc_default.last_failure() is None + + desc_payloads = await activity_handle.describe( + include_input=True, + include_outcome=True, + include_heartbeat_details=True, + include_last_failure=True, + ) + assert desc_payloads.has_input() + assert desc_payloads.has_result() + assert not desc_payloads.has_outcome_failure() + assert desc_payloads.has_heartbeat_details() + assert desc_payloads.has_last_failure() + assert await desc_payloads.input([int]) == [1] + assert await desc_payloads.result(int) == 2 + assert await desc_payloads.outcome_failure() is None + assert await desc_payloads.heartbeat_details([str]) == ["heartbeat details"] + assert isinstance(await desc_payloads.last_failure(), ApplicationError) + + failed_activity_handle = await self.make_activity_handle( + client, task_queue, max_attempts=1 + ) + with pytest.raises(ActivityFailureError) as err: + await failed_activity_handle.result() + assert isinstance(err.value.cause, ApplicationError) + + desc_failure = await failed_activity_handle.describe( + include_outcome=True, include_last_failure=True + ) + assert not desc_failure.has_input() + assert not desc_failure.has_result() + assert desc_failure.has_outcome_failure() + assert not desc_failure.has_heartbeat_details() + assert desc_failure.has_last_failure() + assert await desc_failure.input([int]) is None + assert await desc_failure.result(int) is None + assert isinstance(await desc_failure.outcome_failure(), ApplicationError) + assert await desc_failure.heartbeat_details([str]) is None + assert isinstance(await desc_failure.last_failure(), ApplicationError) class ActivityTracingInterceptor(Interceptor): @@ -235,7 +330,7 @@ async def test_start_activity_calls_interceptor( client: Client, env: WorkflowEnvironment ): """Client.start_activity() should call the start_activity interceptor.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -272,7 +367,7 @@ async def test_describe_activity_calls_interceptor( client: Client, env: WorkflowEnvironment ): """ActivityHandle.describe() should call the describe_activity interceptor.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -307,7 +402,7 @@ async def test_cancel_activity_calls_interceptor( client: Client, env: WorkflowEnvironment ): """ActivityHandle.cancel() should call the cancel_activity interceptor.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -342,7 +437,7 @@ async def test_terminate_activity_calls_interceptor( client: Client, env: WorkflowEnvironment ): """ActivityHandle.terminate() should call the terminate_activity interceptor.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -377,7 +472,7 @@ async def test_list_activities_calls_interceptor( client: Client, env: WorkflowEnvironment ): """Client.list_activities() should call the list_activities interceptor.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -413,7 +508,7 @@ async def test_count_activities_calls_interceptor( client: Client, env: WorkflowEnvironment ): """Client.count_activities() should call the count_activities interceptor.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -458,7 +553,7 @@ async def test_start_activity_rejects_negative_start_delay(client: Client): async def test_get_result(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -493,7 +588,7 @@ async def test_get_result(client: Client, env: WorkflowEnvironment): # Cloud namespaces created by CI do not have the activity start-delay dynamic config. @pytest.mark.requires_local_server async def test_start_activity_start_delay(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -520,12 +615,12 @@ async def test_start_activity_start_delay(client: Client, env: WorkflowEnvironme desc = await activity_handle.describe() assert desc.last_started_time is not None assert ( - desc.last_started_time - desc.scheduled_time + desc.last_started_time - desc.schedule_time ).total_seconds() >= start_delay.total_seconds() - 0.5 async def test_get_activity_handle(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -569,7 +664,7 @@ async def test_get_activity_handle(client: Client, env: WorkflowEnvironment): async def test_list_activities(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -595,15 +690,12 @@ async def check_executions(): assert execution.activity_type == "increment" assert execution.task_queue == task_queue assert execution.status == ActivityExecutionStatus.RUNNING - assert ( - execution.state_transition_count is None - ) # Not set until activity completes await assert_eventually(check_executions) async def test_count_activities(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -629,7 +721,7 @@ async def fetch_count(): async def test_count_activities_group_by(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -686,7 +778,7 @@ async def async_activity(input: ActivityInput) -> int: async def test_manual_completion(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -700,7 +792,7 @@ async def test_manual_completion(client: Client, env: WorkflowEnvironment): ActivityInput(event_workflow_id=event_workflow_id), id=activity_id, task_queue=task_queue, - start_to_close_timeout=timedelta(seconds=5), + start_to_close_timeout=timedelta(minutes=1), ) async with Worker( @@ -728,7 +820,7 @@ async def test_manual_completion(client: Client, env: WorkflowEnvironment): async def test_manual_cancellation(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -742,7 +834,7 @@ async def test_manual_cancellation(client: Client, env: WorkflowEnvironment): ActivityInput(event_workflow_id=event_workflow_id), id=activity_id, task_queue=task_queue, - start_to_close_timeout=timedelta(seconds=5), + start_to_close_timeout=timedelta(minutes=1), ) async with Worker( @@ -789,7 +881,7 @@ async def test_manual_cancellation(client: Client, env: WorkflowEnvironment): async def test_manual_failure(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -803,7 +895,7 @@ async def test_manual_failure(client: Client, env: WorkflowEnvironment): ActivityInput(event_workflow_id=event_workflow_id), id=activity_id, task_queue=task_queue, - start_to_close_timeout=timedelta(seconds=5), + start_to_close_timeout=timedelta(minutes=1), ) async with Worker( client, @@ -862,7 +954,7 @@ async def activity_for_testing_heartbeat(input: ActivityInput) -> str: async def test_manual_heartbeat(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -880,7 +972,7 @@ async def test_manual_heartbeat(client: Client, env: WorkflowEnvironment): ), id=activity_id, task_queue=task_queue, - start_to_close_timeout=timedelta(seconds=5), + start_to_close_timeout=timedelta(minutes=1), ) wait_for_activity_start_wf_handle = await client.start_workflow( EventWorkflow.wait, @@ -906,7 +998,7 @@ async def test_manual_heartbeat(client: Client, env: WorkflowEnvironment): async def test_id_conflict_policy_fail(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -943,7 +1035,7 @@ async def test_id_conflict_policy_fail(client: Client, env: WorkflowEnvironment) async def test_id_conflict_policy_use_existing( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -977,7 +1069,7 @@ async def test_id_conflict_policy_use_existing( async def test_id_reuse_policy_reject_duplicate( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1018,7 +1110,7 @@ async def test_id_reuse_policy_reject_duplicate( async def test_id_reuse_policy_allow_duplicate( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1056,8 +1148,10 @@ async def test_id_reuse_policy_allow_duplicate( assert handle1.run_id != handle2.run_id -async def test_search_attributes(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: +async def test_search_attributes( + client: Client, env: WorkflowEnvironment, env_type: str +): + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1070,9 +1164,10 @@ async def test_search_attributes(client: Client, env: WorkflowEnvironment): activity_id = str(uuid.uuid4()) task_queue = str(uuid.uuid4()) - temporal_change_version_key = SearchAttributeKey.for_keyword_list( - "TemporalChangeVersion" - ) + keyword_list_key = SearchAttributeKey.for_keyword_list("python_test_keyword_list") + # Externally managed servers must provision this attribute before running tests. + if env_type in ("local", "time-skipping-v2"): + await ensure_search_attributes_present(client, keyword_list_key) handle = await client.start_activity( increment, @@ -1081,19 +1176,19 @@ async def test_search_attributes(client: Client, env: WorkflowEnvironment): task_queue=task_queue, schedule_to_close_timeout=timedelta(seconds=60), search_attributes=TypedSearchAttributes( - [SearchAttributePair(temporal_change_version_key, ["test-1", "test-2"])] + [SearchAttributePair(keyword_list_key, ["test-1", "test-2"])] ), ) desc = await handle.describe() - assert desc.typed_search_attributes[temporal_change_version_key] == [ + assert desc.typed_search_attributes[keyword_list_key] == [ "test-1", "test-2", ] async def test_retry_policy(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1126,7 +1221,7 @@ async def test_retry_policy(client: Client, env: WorkflowEnvironment): async def test_terminate(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1169,7 +1264,7 @@ async def test_terminate(client: Client, env: WorkflowEnvironment): async def test_start_activity_class_async(client: Client, env: WorkflowEnvironment): """Test start_activity_class with an async callable class.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1196,7 +1291,7 @@ async def test_start_activity_class_async(client: Client, env: WorkflowEnvironme async def test_execute_activity_class_async(client: Client, env: WorkflowEnvironment): """Test execute_activity_class with an async callable class.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1221,7 +1316,7 @@ async def test_execute_activity_class_async(client: Client, env: WorkflowEnviron async def test_start_activity_class_no_param(client: Client, env: WorkflowEnvironment): """Test start_activity_class with a no-param callable class.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1247,7 +1342,7 @@ async def test_start_activity_class_no_param(client: Client, env: WorkflowEnviro async def test_start_activity_class_sync(client: Client, env: WorkflowEnvironment): """Test start_activity_class with a sync callable class.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1281,7 +1376,7 @@ async def test_start_activity_class_sync(client: Client, env: WorkflowEnvironmen async def test_start_activity_method_async(client: Client, env: WorkflowEnvironment): """Test start_activity_method with an async method.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1309,7 +1404,7 @@ async def test_start_activity_method_async(client: Client, env: WorkflowEnvironm async def test_execute_activity_method_async(client: Client, env: WorkflowEnvironment): """Test execute_activity_method with an async method.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1335,7 +1430,7 @@ async def test_execute_activity_method_async(client: Client, env: WorkflowEnviro async def test_start_activity_method_no_param(client: Client, env: WorkflowEnvironment): """Test start_activity_method with a no-param method.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) diff --git a/tests/test_activity_operator_commands.py b/tests/test_activity_operator_commands.py new file mode 100644 index 000000000..ec53e20ce --- /dev/null +++ b/tests/test_activity_operator_commands.py @@ -0,0 +1,384 @@ +"""Tests for the standalone-activity operator commands: pause, unpause and +update_options. +""" + +from __future__ import annotations + +import asyncio +import uuid +from datetime import timedelta +from typing import Any + +import pytest + +import temporalio.api.workflowservice.v1 +from temporalio import activity +from temporalio.client import ( + ActivityExecutionStatus, + ActivityHandle, + ActivityOptionsKeys, + Client, + PendingActivityState, +) +from temporalio.common import Priority, RetryPolicy +from temporalio.exceptions import ApplicationError +from temporalio.testing import WorkflowEnvironment +from temporalio.worker import Worker +from tests.helpers import assert_eventually + +PAUSED_STATES = (PendingActivityState.PAUSED, PendingActivityState.PAUSE_REQUESTED) + + +@activity.defn +async def slow_activity() -> None: + """Long-running activity that heartbeats and runs until cancellation.""" + while True: + activity.heartbeat() + await asyncio.sleep(0.1) + + +@activity.defn +async def quick_activity() -> str: + """Returns immediately. Used with a start delay so it can be paused while scheduled.""" + return "resumed" + + +@activity.defn +async def echo_activity(word: str) -> str: + """Takes an argument and returns a value derived from it, so a completed execution + has both an input and a successful outcome to read back off describe.""" + return f"{word}-echoed" + + +@activity.defn +async def always_fail_activity() -> None: + """Always fails. Paired with a single-attempt retry policy so the activity reaches a + terminal failure outcome rather than retrying.""" + raise ApplicationError("deliberate failure") + + +@activity.defn +async def heartbeat_fail_increment(value: int) -> int: + """Heartbeats, fails the first attempt, then succeeds. + + The description will have input, a result, heartbeat details and a last failure. + """ + activity.heartbeat("heartbeat details") + if activity.info().attempt == 1: + raise ApplicationError("deliberate first-attempt failure") + return value + 1 + + +@activity.defn +async def heartbeat_once_activity() -> None: + """Records heartbeat details on attempt 1, then blocks waiting for cancellation.""" + if activity.info().attempt == 1: + activity.heartbeat("hb-details") + while True: + await asyncio.sleep(0.1) + + +def _skip_if_unsupported(env: WorkflowEnvironment) -> None: + if env.supports_time_skipping_v1: + pytest.skip("Java test server does not support standalone activities") + + +async def _assert_eventually_paused(handle: ActivityHandle) -> None: + async def check() -> None: + desc = await handle.describe() + assert desc.run_state in PAUSED_STATES + + await assert_eventually(check) + + +async def _start_running_slow_activity( + client: Client, task_queue: str, **kwargs: Any +) -> ActivityHandle: + """Start a slow activity and wait until it is actually running on the worker.""" + kwargs.setdefault("start_to_close_timeout", timedelta(seconds=60)) + kwargs.setdefault("heartbeat_timeout", timedelta(seconds=30)) + handle = await client.start_activity( + slow_activity, + id=f"act-{uuid.uuid4()}", + task_queue=task_queue, + **kwargs, + ) + + async def check() -> None: + desc = await handle.describe() + assert desc.run_state == PendingActivityState.STARTED + + await assert_eventually(check) + return handle + + +async def test_unpause_resumes(client: Client, env: WorkflowEnvironment): + _skip_if_unsupported(env) + task_queue = str(uuid.uuid4()) + async with Worker(client, task_queue=task_queue, activities=[quick_activity]): + # Start delayed so the activity sits scheduled and can be paused before it runs. + handle = await client.start_activity( + quick_activity, + id=f"act-{uuid.uuid4()}", + task_queue=task_queue, + start_to_close_timeout=timedelta(seconds=60), + start_delay=timedelta(seconds=30), + ) + await handle.pause(reason="pause-before-unpause") + + # A not-yet-started (scheduled) activity transitions fully to PAUSED. + async def check() -> None: + desc = await handle.describe() + assert desc.run_state == PendingActivityState.PAUSED + + await assert_eventually(check) + + await handle.unpause() + + async def resumed() -> None: + desc = await handle.describe() + assert desc.run_state not in PAUSED_STATES + + await assert_eventually(resumed) + await handle.terminate(reason="cleanup") + + +async def test_describe_paused_activity_reports_paused_status( + client: Client, env: WorkflowEnvironment +): + _skip_if_unsupported(env) + task_queue = str(uuid.uuid4()) + async with Worker(client, task_queue=task_queue, activities=[quick_activity]): + # Start delayed so the activity sits scheduled; pausing from there reaches a true + # PAUSED state rather than the PAUSE_REQUESTED of a running activity. + handle = await client.start_activity( + quick_activity, + id=f"act-{uuid.uuid4()}", + task_queue=task_queue, + start_to_close_timeout=timedelta(seconds=60), + start_delay=timedelta(seconds=30), + ) + assert (await handle.describe()).status == ActivityExecutionStatus.RUNNING + + await handle.pause(reason="hold") + + async def check() -> None: + desc = await handle.describe() + assert desc.status == ActivityExecutionStatus.PAUSED + assert desc.run_state == PendingActivityState.PAUSED + + await assert_eventually(check) + await handle.terminate(reason="cleanup") + + +async def test_update_options_respects_mask(client: Client, env: WorkflowEnvironment): + _skip_if_unsupported(env) + task_queue = str(uuid.uuid4()) + async with Worker(client, task_queue=task_queue, activities=[slow_activity]): + handle = await _start_running_slow_activity( + client, + task_queue, + schedule_to_close_timeout=timedelta(seconds=120), + ) + + updated = await handle.update_options( + [ + ActivityOptionsKeys.start_to_close_timeout.value_set( + timedelta(seconds=90) + ) + ] + ) + + # Only start_to_close changed; schedule_to_close kept its original value. + assert updated.start_to_close_timeout == timedelta(seconds=90) + assert updated.schedule_to_close_timeout == timedelta(seconds=120) + + await handle.terminate(reason="cleanup") + + +async def test_update_options_all_fields(client: Client, env: WorkflowEnvironment): + _skip_if_unsupported(env) + task_queue = str(uuid.uuid4()) + async with Worker(client, task_queue=task_queue, activities=[quick_activity]): + # Start delayed so the activity stays scheduled while every option is updated. + handle = await client.start_activity( + quick_activity, + id=f"act-{uuid.uuid4()}", + task_queue=task_queue, + schedule_to_close_timeout=timedelta(seconds=100), + start_to_close_timeout=timedelta(seconds=30), + start_delay=timedelta(seconds=300), + ) + + updated = await handle.update_options( + [ + ActivityOptionsKeys.task_queue.value_set("updated-tq"), + ActivityOptionsKeys.schedule_to_close_timeout.value_set( + timedelta(seconds=200) + ), + ActivityOptionsKeys.schedule_to_start_timeout.value_set( + timedelta(seconds=15) + ), + ActivityOptionsKeys.start_to_close_timeout.value_set( + timedelta(seconds=90) + ), + ActivityOptionsKeys.heartbeat_timeout.value_set(timedelta(seconds=25)), + ActivityOptionsKeys.retry_policy.value_set( + RetryPolicy( + initial_interval=timedelta(seconds=1), + backoff_coefficient=2.0, + maximum_attempts=7, + ) + ), + ActivityOptionsKeys.priority.value_set(Priority(priority_key=3)), + ActivityOptionsKeys.start_delay.value_set(timedelta(seconds=500)), + ] + ) + + assert updated.task_queue == "updated-tq" + assert updated.schedule_to_close_timeout == timedelta(seconds=200) + assert updated.schedule_to_start_timeout == timedelta(seconds=15) + assert updated.start_to_close_timeout == timedelta(seconds=90) + assert updated.heartbeat_timeout == timedelta(seconds=25) + assert updated.retry_policy is not None + assert updated.retry_policy.maximum_attempts == 7 + assert updated.priority is not None + assert updated.priority.priority_key == 3 + assert updated.start_delay == timedelta(seconds=500) + + desc = await handle.describe() + assert desc.task_queue == "updated-tq" + await handle.terminate(reason="cleanup") + + +async def test_update_options_restore_original( + client: Client, env: WorkflowEnvironment +): + _skip_if_unsupported(env) + task_queue = str(uuid.uuid4()) + async with Worker(client, task_queue=task_queue, activities=[slow_activity]): + handle = await _start_running_slow_activity( + client, task_queue, start_to_close_timeout=timedelta(seconds=45) + ) + + changed = await handle.update_options( + [ + ActivityOptionsKeys.start_to_close_timeout.value_set( + timedelta(seconds=90) + ) + ] + ) + assert changed.start_to_close_timeout == timedelta(seconds=90) + + # Restore alone reverts to the value the activity was created with. + restored = await handle.restore_original_options() + assert restored.start_to_close_timeout == timedelta(seconds=45) + await handle.terminate(reason="cleanup") + + +async def test_update_options_on_paused_activity( + client: Client, env: WorkflowEnvironment +): + _skip_if_unsupported(env) + task_queue = str(uuid.uuid4()) + async with Worker(client, task_queue=task_queue, activities=[slow_activity]): + handle = await _start_running_slow_activity(client, task_queue) + await handle.pause(reason="hold") + await _assert_eventually_paused(handle) + + # Updating options while paused applies, and leaves the activity paused. + updated = await handle.update_options( + [ + ActivityOptionsKeys.start_to_close_timeout.value_set( + timedelta(seconds=99) + ) + ] + ) + assert updated.start_to_close_timeout == timedelta(seconds=99) + + desc = await handle.describe() + assert desc.run_state in PAUSED_STATES + await handle.terminate(reason="cleanup") + + +async def _heartbeat_detail_count(client: Client, handle: ActivityHandle) -> int: + """Count heartbeat payloads the server holds for an activity.""" + resp = await client.workflow_service.describe_activity_execution( + temporalio.api.workflowservice.v1.DescribeActivityExecutionRequest( + namespace=client.namespace, + activity_id=handle.id, + run_id=handle.run_id or "", + include_heartbeat_details=True, + ) + ) + return len(resp.info.heartbeat_details.payloads) + + +async def _start_heartbeat_ready_activity( + client: Client, task_queue: str +) -> ActivityHandle: + """Start a heartbeat-once activity and wait until it has recorded heartbeat details.""" + handle = await client.start_activity( + heartbeat_once_activity, + id=f"act-{uuid.uuid4()}", + task_queue=task_queue, + start_to_close_timeout=timedelta(seconds=60), + heartbeat_timeout=timedelta(seconds=30), + ) + + async def check() -> None: + assert await _heartbeat_detail_count(client, handle) > 0 + + await assert_eventually(check) + return handle + + +async def test_pause_preserves_heartbeat(client: Client, env: WorkflowEnvironment): + _skip_if_unsupported(env) + task_queue = str(uuid.uuid4()) + async with Worker( + client, task_queue=task_queue, activities=[heartbeat_once_activity] + ): + handle = await _start_heartbeat_ready_activity(client, task_queue) + await handle.pause(reason="hold") + await _assert_eventually_paused(handle) + + # Pause never touches heartbeat details. + assert await _heartbeat_detail_count(client, handle) == 1 + await handle.terminate(reason="cleanup") + + +async def test_unpause_preserves_heartbeat(client: Client, env: WorkflowEnvironment): + _skip_if_unsupported(env) + task_queue = str(uuid.uuid4()) + async with Worker( + client, task_queue=task_queue, activities=[heartbeat_once_activity] + ): + handle = await _start_heartbeat_ready_activity(client, task_queue) + await handle.pause(reason="hold") + await _assert_eventually_paused(handle) + await handle.unpause() + + assert await _heartbeat_detail_count(client, handle) == 1 + await handle.terminate(reason="cleanup") + + +async def test_update_options_preserves_heartbeat( + client: Client, env: WorkflowEnvironment +): + _skip_if_unsupported(env) + task_queue = str(uuid.uuid4()) + async with Worker( + client, task_queue=task_queue, activities=[heartbeat_once_activity] + ): + handle = await _start_heartbeat_ready_activity(client, task_queue) + await handle.update_options( + [ + ActivityOptionsKeys.start_to_close_timeout.value_set( + timedelta(seconds=90) + ) + ] + ) + + assert await _heartbeat_detail_count(client, handle) == 1 + await handle.terminate(reason="cleanup") diff --git a/tests/test_activity_operator_commands_interceptor.py b/tests/test_activity_operator_commands_interceptor.py new file mode 100644 index 000000000..3f2cc48f0 --- /dev/null +++ b/tests/test_activity_operator_commands_interceptor.py @@ -0,0 +1,116 @@ +from __future__ import annotations + +from datetime import timedelta +from typing import Any +from unittest.mock import AsyncMock, Mock + +import pytest + +import temporalio.api.activity.v1 +import temporalio.api.workflowservice.v1 +from temporalio.client import ( + ActivityOptionsKeys, + Client, + Interceptor, + OutboundInterceptor, + PauseActivityInput, + UnpauseActivityInput, + UpdateActivityOptionsInput, +) +from temporalio.service import ServiceClient + + +class TracingClientInterceptor(Interceptor): + def __init__(self) -> None: + super().__init__() + self.traces: list[tuple[str, Any]] = [] + + def intercept_client(self, next: OutboundInterceptor) -> OutboundInterceptor: + return TracingClientOutboundInterceptor(self, next) + + +class TracingClientOutboundInterceptor(OutboundInterceptor): + def __init__(self, parent: TracingClientInterceptor, next: OutboundInterceptor): + super().__init__(next) + self._parent = parent + + async def pause_activity(self, input: PauseActivityInput) -> None: + self._parent.traces.append(("pause_activity", input)) + return await super().pause_activity(input) + + async def unpause_activity(self, input: UnpauseActivityInput) -> None: + self._parent.traces.append(("unpause_activity", input)) + return await super().unpause_activity(input) + + async def update_activity_options(self, input: UpdateActivityOptionsInput) -> Any: + self._parent.traces.append(("update_activity_options", input)) + return await super().update_activity_options(input) + + +def _stub_service() -> Any: + service = Mock() + service.pause_activity_execution = AsyncMock( + return_value=temporalio.api.workflowservice.v1.PauseActivityExecutionResponse() + ) + service.unpause_activity_execution = AsyncMock( + return_value=temporalio.api.workflowservice.v1.UnpauseActivityExecutionResponse() + ) + service.update_activity_execution_options = AsyncMock( + return_value=temporalio.api.workflowservice.v1.UpdateActivityExecutionOptionsResponse( + activity_options=temporalio.api.activity.v1.ActivityOptions() + ) + ) + return service + + +@pytest.fixture +def interceptor() -> TracingClientInterceptor: + return TracingClientInterceptor() + + +@pytest.fixture +def client(interceptor: TracingClientInterceptor) -> Client: + service_client = Mock(spec=ServiceClient) + service_client.workflow_service = _stub_service() + service_client.config = Mock(identity="test-identity") + return Client( + service_client=service_client, + namespace="test-namespace", + interceptors=[interceptor], + ) + + +async def test_interceptor_invokes_each_operator_command( + client: Client, interceptor: TracingClientInterceptor +): + handle = client.get_activity_handle("act-1", run_id="run-1") + await handle.pause(reason="pause-reason") + await handle.unpause(reason="unpause-reason", jitter=timedelta(seconds=5)) + await handle.update_options( + [ActivityOptionsKeys.start_to_close_timeout.value_set(timedelta(seconds=90))] + ) + await handle.restore_original_options() + + assert [name for name, _ in interceptor.traces] == [ + "pause_activity", + "unpause_activity", + "update_activity_options", + "update_activity_options", + ] + + for name, input in interceptor.traces: + assert input.activity_id == "act-1", name + assert input.activity_run_id == "run-1", name + + +async def test_interceptor_receives_command_arguments( + client: Client, interceptor: TracingClientInterceptor +): + handle = client.get_activity_handle("act-1") + await handle.pause(reason="pause-reason") + await handle.unpause(reason="unpause-reason", jitter=timedelta(seconds=5)) + + traces = dict(interceptor.traces) + assert traces["pause_activity"].reason == "pause-reason" + assert traces["unpause_activity"].reason == "unpause-reason" + assert traces["unpause_activity"].jitter == timedelta(seconds=5) diff --git a/tests/test_activity_operator_commands_requests.py b/tests/test_activity_operator_commands_requests.py new file mode 100644 index 000000000..f71f5566b --- /dev/null +++ b/tests/test_activity_operator_commands_requests.py @@ -0,0 +1,203 @@ +"""Unit tests for the operator-command request fields the server does not surface back.""" + +from __future__ import annotations + +from datetime import timedelta +from typing import Any +from unittest.mock import AsyncMock, Mock + +import pytest + +import temporalio.api.activity.v1 +import temporalio.api.workflowservice.v1 +from temporalio.client import ActivityOptionsKeys, Client +from temporalio.service import ServiceClient + + +class _CapturedService: + """Capture operator command requests.""" + + def __init__(self) -> None: + self.requests: dict[str, Any] = {} + self.pause_activity_execution = self._recorder( + "pause", + temporalio.api.workflowservice.v1.PauseActivityExecutionResponse(), + ) + self.unpause_activity_execution = self._recorder( + "unpause", + temporalio.api.workflowservice.v1.UnpauseActivityExecutionResponse(), + ) + self.update_activity_execution_options = self._recorder( + "update", + temporalio.api.workflowservice.v1.UpdateActivityExecutionOptionsResponse( + activity_options=temporalio.api.activity.v1.ActivityOptions() + ), + ) + + def _recorder(self, name: str, response: Any) -> AsyncMock: + async def record(req: Any, **_kwargs: Any) -> Any: + self.requests[name] = req + return response + + return AsyncMock(side_effect=record) + + +@pytest.fixture +def captured() -> _CapturedService: + return _CapturedService() + + +@pytest.fixture +def client(captured: _CapturedService) -> Client: + service_client = Mock(spec=ServiceClient) + service_client.workflow_service = captured + service_client.config = Mock(identity="test-identity") + return Client(service_client=service_client, namespace="test-namespace") + + +async def test_operator_commands_send_reason_and_jitter( + client: Client, captured: _CapturedService +): + handle = client.get_activity_handle("act-1") + await handle.pause(reason="pause-reason") + await handle.unpause(reason="unpause-reason", jitter=timedelta(seconds=5)) + + assert captured.requests["pause"].reason == "pause-reason" + assert captured.requests["unpause"].reason == "unpause-reason" + assert captured.requests["unpause"].jitter.ToTimedelta() == timedelta(seconds=5) + + +async def test_omitted_jitter_is_left_off_the_wire( + client: Client, captured: _CapturedService +): + # An unset jitter must not be sent as an explicit zero duration, or the server would + # apply "no jitter" instead of its own default. + handle = client.get_activity_handle("act-1") + await handle.unpause() + + assert not captured.requests["unpause"].HasField("jitter") + + +async def test_restore_original_options_is_exclusive( + client: Client, captured: _CapturedService +): + handle = client.get_activity_handle("act-1") + await handle.restore_original_options() + + update = captured.requests["update"] + assert update.restore_original + assert list(update.update_mask.paths) == [] + + +async def test_value_set_of_zero_sends_an_explicit_zero( + client: Client, captured: _CapturedService +): + handle = client.get_activity_handle("act-1") + await handle.update_options( + [ActivityOptionsKeys.heartbeat_timeout.value_set(timedelta(0))] + ) + + update = captured.requests["update"] + assert update.update_mask.paths == ["heartbeat_timeout"] + # Present and zero, which is distinct from absent: the caller asked for zero. + assert update.activity_options.HasField("heartbeat_timeout") + assert update.activity_options.heartbeat_timeout.ToTimedelta() == timedelta(0) + + +async def test_value_unset_names_the_path_but_leaves_the_field_absent( + client: Client, captured: _CapturedService +): + handle = client.get_activity_handle("act-1") + await handle.update_options([ActivityOptionsKeys.heartbeat_timeout.value_unset()]) + + update = captured.requests["update"] + assert update.update_mask.paths == ["heartbeat_timeout"] + assert not update.activity_options.HasField("heartbeat_timeout") + + +async def test_a_repeated_key_is_rejected(client: Client, captured: _CapturedService): + handle = client.get_activity_handle("act-1") + with pytest.raises(ValueError) as err: + await handle.update_options( + [ + ActivityOptionsKeys.heartbeat_timeout.value_set(timedelta(seconds=5)), + ActivityOptionsKeys.heartbeat_timeout.value_unset(), + ] + ) + assert "more than one update for heartbeat_timeout" in str(err.value) + # Rejected before any request is sent. + assert "update" not in captured.requests + + +async def test_update_options_requires_at_least_one_update(client: Client): + handle = client.get_activity_handle("act-1") + with pytest.raises(ValueError) as err: + await handle.update_options([]) + assert "at least one update" in str(err.value) + + +async def test_a_repeated_key_from_an_interceptor_is_rejected(client: Client): + """The handle rejects repeats, so only a hand-built input can carry one.""" + from temporalio.client import UpdateActivityOptionsInput + + with pytest.raises(ValueError) as err: + await client._impl.update_activity_options( + UpdateActivityOptionsInput( + activity_id="act-1", + activity_run_id=None, + updates=[ + ActivityOptionsKeys.heartbeat_timeout.value_set( + timedelta(seconds=5) + ), + ActivityOptionsKeys.heartbeat_timeout.value_unset(), + ], + restore_original=False, + rpc_metadata={}, + rpc_timeout=None, + ) + ) + assert "more than one update for heartbeat_timeout" in str(err.value) + + +async def test_restore_original_cannot_be_combined_with_updates(client: Client): + from temporalio.client import UpdateActivityOptionsInput + + with pytest.raises(ValueError) as err: + await client._impl.update_activity_options( + UpdateActivityOptionsInput( + activity_id="act-1", + activity_run_id=None, + updates=[ + ActivityOptionsKeys.heartbeat_timeout.value_set( + timedelta(seconds=25) + ) + ], + restore_original=True, + rpc_metadata={}, + rpc_timeout=None, + ) + ) + assert "cannot be combined" in str(err.value) + + +async def test_update_options_masks_only_changed_options( + client: Client, captured: _CapturedService +): + handle = client.get_activity_handle("act-1") + await handle.update_options( + [ + ActivityOptionsKeys.task_queue.value_set("tq"), + ActivityOptionsKeys.start_to_close_timeout.value_set(timedelta(seconds=90)), + ] + ) + + update = captured.requests["update"] + assert not update.restore_original + assert sorted(update.update_mask.paths) == [ + "start_to_close_timeout", + "task_queue.name", + ] + assert update.activity_options.task_queue.name == "tq" + assert update.activity_options.start_to_close_timeout.ToTimedelta() == timedelta( + seconds=90 + ) diff --git a/tests/test_client.py b/tests/test_client.py index 15324cf78..7cc537751 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -3,7 +3,6 @@ import json import multiprocessing import multiprocessing.context -import os import threading import uuid from collections.abc import Mapping @@ -113,7 +112,7 @@ async def test_start_id_reuse( client: Client, worker: ExternalWorker, env: WorkflowEnvironment ): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1220" ) @@ -141,6 +140,7 @@ async def test_start_id_reuse( ) await handle.result() assert err.value.run_id == handle.result_run_id + assert err.value.first_run_id == handle.first_execution_run_id # Run again allowing duplicate (the default) handle = await client.start_workflow( @@ -169,7 +169,7 @@ async def test_start_with_signal(client: Client, worker: ExternalWorker): async def test_start_delay( client: Client, worker: ExternalWorker, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server does not support start delay") start_delay = timedelta(hours=1, minutes=20, seconds=30) handle = await client.start_workflow( @@ -192,7 +192,7 @@ async def test_start_delay( async def test_signal_with_start_delay( client: Client, worker: ExternalWorker, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server does not support start delay") start_delay = timedelta(hours=1, minutes=20, seconds=30) handle = await client.start_workflow( @@ -217,7 +217,7 @@ async def test_result_follow_continue_as_new( client: Client, worker: ExternalWorker, env: WorkflowEnvironment ): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1424" ) @@ -336,7 +336,7 @@ async def test_describe( client: Client, worker: ExternalWorker, env: WorkflowEnvironment ): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1425" ) @@ -558,7 +558,7 @@ async def test_interceptor(client: Client, worker: ExternalWorker): async def test_lazy_client(env: WorkflowEnvironment): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1094" ) @@ -640,7 +640,7 @@ async def run(self, name: str) -> str: async def test_list_workflows_and_fetch_history( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support newer workflow listing") # Run 5 workflows. Use the same workflow ID over and over to make sure we @@ -699,7 +699,7 @@ async def run(self, wait_forever: bool) -> None: async def test_count_workflows(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support newer workflow listing") # 3 workflows that complete, 2 that don't @@ -829,14 +829,23 @@ def test_history_from_json(): ) +def test_schedule_policy_proto() -> None: + default_policy = SchedulePolicy() + assert default_policy.catchup_window is None + assert not default_policy._to_proto().HasField("catchup_window") + assert SchedulePolicy._from_proto(default_policy._to_proto()).catchup_window is None + + zero_policy = SchedulePolicy(catchup_window=timedelta()) + assert zero_policy._to_proto().HasField("catchup_window") + assert zero_policy._to_proto().catchup_window.ToTimedelta() == timedelta() + + @pytest.mark.requires_local_server async def test_schedule_basics( client: Client, worker: ExternalWorker, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support schedules") - elif os.getenv("TEMPORAL_TEST_PROTO3"): - pytest.skip("Older proto library cannot compare repeated fields") # Create a schedule with a lot of stuff schedule = Schedule( action=ScheduleActionStartWorkflow( @@ -987,6 +996,7 @@ async def update_schedule_basic(_input: ScheduleUpdateInput) -> ScheduleUpdate: new_schedule.action.args = await DataConverter.default.encode( new_schedule.action.args ) + new_schedule.policy.catchup_window = desc.schedule.policy.catchup_window assert desc.schedule == new_schedule # Attempt to create duplicate @@ -1082,7 +1092,7 @@ async def list_ids() -> list[str]: async def test_schedule_calendar_spec_defaults( client: Client, worker: ExternalWorker, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support schedules") handle = await client.create_schedule( f"schedule-{uuid.uuid4()}", @@ -1117,7 +1127,7 @@ async def test_schedule_calendar_spec_defaults( async def test_schedule_trigger_immediately( client: Client, worker: ExternalWorker, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support schedules") # Create paused schedule that triggers immediately handle = await client.create_schedule( @@ -1139,8 +1149,14 @@ async def test_schedule_trigger_immediately( # Confirm workflow result desc = await handle.describe() - assert desc.info.num_actions == 1 - action_exec = (await handle.describe()).info.recent_actions[0].action + + async def update_desc_get_action_count() -> int: + nonlocal desc + desc = await handle.describe() + return desc.info.num_actions + + await assert_eq_eventually(1, update_desc_get_action_count) + action_exec = desc.info.recent_actions[0].action assert isinstance(action_exec, ScheduleActionExecutionStartWorkflow) assert ( "some result" @@ -1155,7 +1171,7 @@ async def test_schedule_trigger_immediately( async def test_schedule_backfill( client: Client, worker: ExternalWorker, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support schedules") begin = datetime(year=2020, month=1, day=20, hour=5) @@ -1236,7 +1252,7 @@ async def test_schedule_create_limited_actions_validation( async def test_schedule_workflow_search_attribute_update( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support schedules") # Put search attribute on server text_attr_key = SearchAttributeKey.for_text("python-test-schedule-text") @@ -1345,7 +1361,7 @@ def update_schedule_typed_attrs( async def test_schedule_search_attribute_update( client: Client, env: WorkflowEnvironment, test_case: str ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support schedules") # Put search attributes on server key_1 = SearchAttributeKey.for_text("python-test-schedule-sa-update-key-1") @@ -1467,7 +1483,7 @@ async def expectation() -> bool: async def test_build_id_interactions(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server does not support worker versioning") if not await worker_versioning_enabled(client): pytest.skip("This server does not have worker versioning enabled") @@ -1531,7 +1547,7 @@ async def run(self) -> str: async def test_schedule_last_completion_result( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support schedules") async with new_worker(client, LastCompletionResultWorkflow) as worker: diff --git a/tests/test_client_exports.py b/tests/test_client_exports.py index 5317e53c4..08e0bd3da 100644 --- a/tests/test_client_exports.py +++ b/tests/test_client_exports.py @@ -114,6 +114,7 @@ "StartWorkflowUpdateInput", "StartWorkflowUpdateWithStartInput", "StorageDriverActivityInfo", + "StorageDriverSelectContext", "StorageDriverStoreContext", "StorageDriverWorkflowInfo", "TLSConfig", diff --git a/tests/test_common.py b/tests/test_common.py index 59a5ebbdf..d01578a7d 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -1,11 +1,14 @@ from __future__ import annotations import pickle +import typing from dataclasses import dataclass from datetime import timedelta from typing import Any import pytest +from typing_extensions import Self +from typing_extensions import Self as SelfAliasForTest from temporalio.api.common.v1 import Payload from temporalio.api.common.v1 import RetryPolicy as RetryPolicyProto @@ -54,6 +57,12 @@ def __call__(self, _foo: str) -> DefinedLater: def some_method(self, _foo: str) -> DefinedLater: raise NotImplementedError + def annotated_method(self: Self, _foo: str) -> DefinedLater: + raise NotImplementedError + + def aliased_self_method(self: SelfAliasForTest, _foo: str) -> DefinedLater: + raise NotImplementedError + @dataclass class DefinedLater: @@ -72,6 +81,28 @@ def assert_hints(func: Any): assert_hints(MyCallableClass) assert_hints(MyCallableClass.some_method) assert_hints(MyCallableClass().some_method) + assert_hints(MyCallableClass.annotated_method) + assert_hints(MyCallableClass().annotated_method) + assert_hints(MyCallableClass.aliased_self_method) + assert_hints(MyCallableClass().aliased_self_method) + + +def test_type_hints_from_func_typing_self(): + class Service: + def method(self: typing.Self, value: str) -> str: + return value + + assert _type_hints_from_func(Service.method) == ([str], str) + assert _type_hints_from_func(Service().method) == ([str], str) + + +def test_type_hints_from_func_preserves_annotated_self_argument(): + def func(self: int) -> int: # pyright: ignore[reportUnusedParameter] + raise NotImplementedError + + args, return_hint = _type_hints_from_func(func) + assert args == [int] + assert return_hint is int def test_raw_value_pickle(): diff --git a/tests/test_contrib.py b/tests/test_contrib.py new file mode 100644 index 000000000..a49542fcb --- /dev/null +++ b/tests/test_contrib.py @@ -0,0 +1,74 @@ +import importlib +import sys +import warnings +from types import ModuleType + +import pytest + + +@pytest.mark.parametrize( + "legacy,canonical,submodules", + [ + ("deepagents", "deepagents", ("testing", "workflow")), + ("google_adk_agents", "google_adk", ("workflow",)), + ("google_genai", "google_genai", ("testing", "workflow")), + ("langgraph", "langgraph", ()), + ("langsmith", "langsmith", ()), + ("openai_agents", "openai_agents", ("testing", "workflow")), + ("strands", "strands_agents", ("workflow",)), + ], +) +def test_ai_integration_compatibility_imports( + legacy: str, + canonical: str, + submodules: tuple[str, ...], + monkeypatch: pytest.MonkeyPatch, +) -> None: + for suffix in ("", *(f".{name}" for name in submodules)): + # Load lazy exports too so dependency warnings do not fail the shim check. + module = importlib.import_module(f"temporalio.{canonical}{suffix}") + exported = { + name: getattr(module, name) + for name in getattr( + module, + "__all__", + [name for name in vars(module) if not name.startswith("_")], + ) + } + name = f"temporalio.contrib.{legacy}{suffix}" + with warnings.catch_warnings(): + warnings.simplefilter("error", DeprecationWarning) + forwarded = importlib.import_module(name) + importlib.reload(forwarded) + assert importlib.import_module(name) is forwarded + assert forwarded.__name__ == name + assert set(exported) == { + name for name in vars(forwarded) if not name.startswith("_") + } + for exported_name, value in exported.items(): + assert getattr(forwarded, exported_name) is value + if hasattr(module, "__all__"): + assert getattr(forwarded, "__all__") is getattr(module, "__all__") + + standalone = importlib.import_module(f"temporalio.{canonical}") + compatibility = importlib.import_module(f"temporalio.contrib.{legacy}") + name = "future_helpers" + module = ModuleType(f"{standalone.__name__}.{name}") + exported_value = object() + alias = f"{compatibility.__name__}.{name}" + with monkeypatch.context() as patch: + patch.setattr( + standalone, "__all__", [*standalone.__all__, name, "future_value"] + ) + patch.setattr(standalone, name, module, raising=False) + patch.setattr(standalone, "future_value", exported_value, raising=False) + patch.delitem(sys.modules, alias, raising=False) + # Reload adds exports that must be removed when the patched API is restored. + patch.setattr(compatibility, name, None, raising=False) + patch.setattr(compatibility, "future_value", None, raising=False) + importlib.reload(compatibility) + assert compatibility.__all__ is standalone.__all__ + assert getattr(compatibility, name) is module + assert getattr(compatibility, "future_value") is exported_value + assert alias not in sys.modules + importlib.reload(compatibility) diff --git a/tests/test_converter.py b/tests/test_converter.py index 499152096..b47cadbdd 100644 --- a/tests/test_converter.py +++ b/tests/test_converter.py @@ -11,7 +11,7 @@ from collections.abc import Iterable, Mapping, MutableMapping, Sequence from dataclasses import dataclass from datetime import datetime, timedelta, timezone -from enum import Enum, IntEnum +from enum import Enum, IntEnum, StrEnum from typing import ( Any, Dict, # type:ignore[reportDeprecated] @@ -51,7 +51,9 @@ TransferTypeConverter, create_payload_validation_error, decode_search_attributes, + decode_typed_search_attributes, encode_search_attribute_values, + encode_typed_search_attribute_value, transfer_type_convertible, value_to_type, ) @@ -64,10 +66,6 @@ NexusOperationError, ) -# StrEnum is available in 3.11+ -if sys.version_info >= (3, 11): - from enum import StrEnum # type:ignore[reportUnreachable] - class NonSerializableClass: pass @@ -81,10 +79,16 @@ class SerializableEnum(IntEnum): FOO = 1 -if sys.version_info >= (3, 11): +class SerializableMixinStrEnum(str, Enum): + FOO = "foo" + - class SerializableStrEnum(StrEnum): # type:ignore[reportUnreachable] - FOO = "foo" +class SerializableMixinIntEnum(int, Enum): + FOO = 1 + + +class SerializableStrEnum(StrEnum): + FOO = "foo" @dataclass @@ -467,6 +471,34 @@ def test_encode_search_attribute_values(): encode_search_attribute_values(["foo", 123]) # type: ignore[arg-type] +def test_encode_typed_search_attribute_value_datetime_requires_timezone(): + key = temporalio.common.SearchAttributeKey.for_datetime("checkout_time") + with pytest.raises(ValueError, match="Timezone must be present"): + encode_typed_search_attribute_value( + key, datetime(2024, 7, 5, 15, 43, 7, 875302) + ) + payload = encode_typed_search_attribute_value( + key, datetime(2024, 7, 5, 15, 43, 7, 875302, tzinfo=timezone.utc) + ) + assert payload.metadata["type"] == b"Datetime" + + +def test_decode_typed_search_attributes_whole_number_double(): + # Visibility returns a whole-number Double as a JSON integer + key = temporalio.common.SearchAttributeKey.for_float("score") + api = temporalio.api.common.v1.SearchAttributes( + indexed_fields={ + "score": temporalio.api.common.v1.Payload( + data=b"5", + metadata={"type": b"Double", "encoding": b"json/plain"}, + ) + } + ) + val = decode_typed_search_attributes(api).get(key) + assert val == 5.0 + assert type(val) is float + + def test_decode_search_attributes(): """Tests decode from protobuf for python types""" @@ -514,6 +546,24 @@ class NestedDataClass: qux: UUID | None = None +@dataclass +class InitFalseDataClass: + foo: str + bar: str = dataclasses.field(default="default-bar", init=False) + + +@dataclass(frozen=True) +class FrozenInitFalseDataClass: + foo: str + bar: str = dataclasses.field(default="default-bar", init=False) + + +@dataclass +class InitFalseIntDataClass: + foo: str + bar: int = dataclasses.field(default=0, init=False) + + class MyTypedDict(TypedDict): foo: str bar: MyDataClass @@ -533,6 +583,28 @@ class MyPydanticClass(pydantic.BaseModel): # type: ignore[reportUnreachable] baz: UUID | None = None +@pytest.mark.parametrize( + "hint", + [frozenset, frozenset[int], typing_extensions.FrozenSet[int]], # type:ignore[reportDeprecated] +) +@pytest.mark.parametrize("value", [frozenset(), frozenset({1, 2})]) +def test_json_frozenset_round_trip(hint: Any, value: frozenset[int]): + converter = JSONPlainPayloadConverter() + payload = converter.to_payload(value) + assert payload is not None + converted = converter.from_payload(payload, hint) + assert isinstance(converted, frozenset) + assert converted == value + + +def test_json_nested_frozenset_round_trip(): + converter = JSONPlainPayloadConverter() + value = {frozenset({1, 2}), frozenset({3})} + payload = converter.to_payload(value) + assert payload is not None + assert converter.from_payload(payload, set[frozenset[int]]) == value + + def test_json_type_hints(): converter = JSONPlainPayloadConverter() @@ -590,6 +662,16 @@ def fail(hint: Any, value: Any) -> None: fail(NestedDataClass, {}) # Additional dataclass fields is ok ok(NestedDataClass, {"foo": "bar", "unknownfield": "baz"}, NestedDataClass("bar")) + # Dataclass with init=False fields restores their values + ok(InitFalseDataClass, InitFalseDataClass("hello")) + init_false = InitFalseDataClass("hello") + init_false.bar = "custom-bar" + ok(InitFalseDataClass, init_false) + frozen_init_false = FrozenInitFalseDataClass("hello") + object.__setattr__(frozen_init_false, "bar", "custom-bar") + ok(FrozenInitFalseDataClass, frozen_init_false) + # init=False field types still decide which union member matches + ok(InitFalseIntDataClass | InitFalseDataClass, init_false) # Optional/Union ok(int | None, 5) @@ -621,6 +703,7 @@ def fail(hint: Any, value: Any) -> None: ok(deque[int], deque([5, 6])) ok(Sequence[int], [5, 6]) fail(list[int], [1, 2, "3"]) + fail(frozenset[int], [1, 2, "3"]) # Dict-like ok(dict[str, MyDataClass], {"foo": MyDataClass("foo", 5, SerializableEnum.FOO)}) @@ -657,19 +740,29 @@ def fail(hint: Any, value: Any) -> None: # IntEnum ok(SerializableEnum, SerializableEnum.FOO) ok(list[SerializableEnum], [SerializableEnum.FOO, SerializableEnum.FOO]) + ok(dict[SerializableEnum, str], {SerializableEnum.FOO: "foo"}) + + # Enums that mix in int or str + ok(SerializableMixinIntEnum, SerializableMixinIntEnum.FOO) + ok(dict[SerializableMixinIntEnum, str], {SerializableMixinIntEnum.FOO: "foo"}) + ok(SerializableMixinStrEnum, SerializableMixinStrEnum.FOO) + ok( + list[SerializableMixinStrEnum], + [SerializableMixinStrEnum.FOO, SerializableMixinStrEnum.FOO], + ) + ok(dict[SerializableMixinStrEnum, int], {SerializableMixinStrEnum.FOO: 1}) + fail(SerializableMixinStrEnum, 5) # UUID ok(UUID, uuid4()) ok(list[UUID], [uuid4(), uuid4()]) - # StrEnum is available in 3.11+ - if sys.version_info >= (3, 11): - # StrEnum - ok(SerializableStrEnum, SerializableStrEnum.FOO) # type:ignore[reportUnreachable] - ok( - list[SerializableStrEnum], - [SerializableStrEnum.FOO, SerializableStrEnum.FOO], - ) + # StrEnum + ok(SerializableStrEnum, SerializableStrEnum.FOO) + ok( + list[SerializableStrEnum], + [SerializableStrEnum.FOO, SerializableStrEnum.FOO], + ) # Pydantic # TODO(cretz): Fix when https://github.com/pydantic/pydantic/pull/9612 tagged @@ -808,6 +901,22 @@ async def test_failure_encoded_attributes(): assert failure == orig_failure +def test_application_error_next_retry_delay_round_trip(): + converter = DataConverter.default + for next_retry_delay in [None, timedelta(seconds=3)]: + failure = Failure() + converter.failure_converter.to_failure( + ApplicationError("boom", next_retry_delay=next_retry_delay), + converter.payload_converter, + failure, + ) + err = converter.failure_converter.from_failure( + failure, converter.payload_converter + ) + assert isinstance(err, ApplicationError) + assert err.next_retry_delay == next_retry_delay + + @pytest.mark.parametrize( "handler_type,retryable_override,expected_retryable", [ diff --git a/tests/test_envconfig.py b/tests/test_envconfig.py index 0b44db731..ef225a571 100644 --- a/tests/test_envconfig.py +++ b/tests/test_envconfig.py @@ -2,6 +2,7 @@ import textwrap from pathlib import Path from types import SimpleNamespace +from typing import Any from unittest.mock import AsyncMock import pytest @@ -161,10 +162,11 @@ def test_load_profile_from_data_env_overrides(): ("envconfig", True), ("local", False), ("time-skipping", False), + (None, False), ], ) def test_envconfig_server_selection( - env_type: str, + env_type: str | None, expected: bool, ): assert conftest._uses_envconfig_server(env_type) is expected @@ -694,6 +696,60 @@ def test_client_config_to_from_dict(): assert empty_config == new_empty_config +def test_client_config_tls_empty_dict_is_not_missing(): + """Test that an empty TLS table is distinct from no TLS table in both directions.""" + empty_tls_profile = ClientConfigProfile(tls=ClientConfigTLS()) + assert empty_tls_profile.to_dict() == {"tls": {}} + assert ClientConfigProfile.from_dict({"tls": {}}) == empty_tls_profile + assert ClientConfigTLS.from_dict({}) == ClientConfigTLS() + assert ClientConfigTLS.from_dict(None) is None + + +@pytest.mark.parametrize( + ("toml_tls", "tls_dict", "connect_tls"), + [ + pytest.param("", None, None, id="no-tls-table"), + pytest.param("[profile.default.tls]", {}, TLSConfig(), id="empty-tls-table"), + pytest.param( + "[profile.default.tls]\ndisabled = false", + {"disabled": False}, + TLSConfig(), + id="disabled-false", + ), + pytest.param( + "[profile.default.tls]\ndisabled = true", + {"disabled": True}, + False, + id="disabled-true", + ), + ], +) +def test_client_config_dict_round_trip_keeps_tls( + toml_tls: str, + tls_dict: dict[str, bool] | None, + connect_tls: bool | TLSConfig | None, +): + """Test that dictionary round trips preserve TLS and the connect config.""" + config = ClientConfig.load( + config_source=f"[profile.default]\naddress = 'some-address'\n{toml_tls}" + ) + expected_profile: dict[str, Any] = {"address": "some-address"} + if tls_dict is not None: + expected_profile["tls"] = tls_dict + + config_dict = config.to_dict() + assert config_dict == {"default": expected_profile} + + new_config = ClientConfig.from_dict(config_dict) + assert new_config == config + connect_config = new_config.profiles["default"].to_client_connect_config() + assert connect_config == config.profiles["default"].to_client_connect_config() + if connect_tls is None: + assert "tls" not in connect_config + else: + assert connect_config.get("tls") == connect_tls + + def test_grpc_metadata_normalization_from_toml(): """Test that gRPC metadata keys get normalized from TOML.""" toml_config = textwrap.dedent( diff --git a/tests/test_envconfig_extensions.py b/tests/test_envconfig_extensions.py new file mode 100644 index 000000000..5d376433e --- /dev/null +++ b/tests/test_envconfig_extensions.py @@ -0,0 +1,417 @@ +import dataclasses +import math +import os +import textwrap +from collections.abc import Awaitable, Callable +from datetime import date, datetime, time, timedelta, timezone +from pathlib import Path +from unittest.mock import AsyncMock + +import pytest + +import temporalio.client +from temporalio.envconfig import ( + ClientConfig, + ClientConfigExtension, + ClientConfigExtensionRequest, + ClientConfigProfile, +) +from temporalio.service import ConnectConfig, ServiceClient + + +class _TestPlugin(temporalio.client.Plugin): + def __init__(self, name: str) -> None: + self._name = name + + def name(self) -> str: + return self._name + + def configure_client( + self, config: temporalio.client.ClientConfig + ) -> temporalio.client.ClientConfig: + return config + + async def connect_service_client( + self, + config: ConnectConfig, + next: Callable[[ConnectConfig], Awaitable[ServiceClient]], + ) -> ServiceClient: + return await next(config) + + +class _TestExtension(ClientConfigExtension): + def __init__( + self, + name: str, + client_plugin: Callable[ + [ClientConfigExtensionRequest], temporalio.client.Plugin | None + ], + ) -> None: + self._name = name + self._client_plugin = client_plugin + + def name(self) -> str: + return self._name + + def client_plugin( + self, req: ClientConfigExtensionRequest + ) -> temporalio.client.Plugin | None: + return self._client_plugin(req) + + +def _write_config(tmp_path: Path, content: str) -> str: + config_file = tmp_path / "config.toml" + config_file.write_text(textwrap.dedent(content)) + return str(config_file) + + +TOML_CONFIG_EXT = textwrap.dedent( + """ + [profile.default] + address = "default-address" + [profile.default.ext.first] + value = "first-value" + nested = { list = [1, 2], flag = true } + [profile.default.ext.second] + [profile.default.ext.second.deeper] + value = 5 + + [profile.other] + address = "other-address" + """ +) + + +@pytest.mark.parametrize("strict", [False, True]) +def test_load_profile_with_ext(strict: bool): + profile = ClientConfigProfile.load( + config_source=TOML_CONFIG_EXT, + config_file_strict=strict, + override_env_vars={}, + ) + assert profile.address == "default-address" + assert profile.ext == { + "first": {"value": "first-value", "nested": {"list": [1, 2], "flag": True}}, + "second": {"deeper": {"value": 5}}, + } + + config = ClientConfig.load(config_source=TOML_CONFIG_EXT, config_file_strict=strict) + assert config.profiles["default"].ext == profile.ext + assert config.profiles["other"].ext == {} + + +def test_load_profile_ext_value_conversion(): + profile = ClientConfigProfile.load( + config_source=textwrap.dedent( + """ + [profile.default.ext.my_ext] + str = "value" + int = 5 + float = 1.5 + nan = nan + inf = -inf + bool = true + datetime = 1979-05-27T07:32:00Z + offset_datetime = 1979-05-27T00:32:00.999999999-07:00 + local_datetime = 1979-05-27T07:32:00 + local_date = 1979-05-27 + local_time = 07:32:00.5 + array = [1, "two", 1979-05-27] + nested = { key = "nested_value" } + """ + ), + disable_env=True, + ) + ext = dict(profile.ext["my_ext"]) + assert math.isnan(ext.pop("nan")) + assert ext == { + "str": "value", + "int": 5, + "float": 1.5, + "inf": -math.inf, + "bool": True, + "datetime": datetime(1979, 5, 27, 7, 32, tzinfo=timezone.utc), + "offset_datetime": datetime( + 1979, 5, 27, 0, 32, 0, 999999, tzinfo=timezone(timedelta(hours=-7)) + ), + "local_datetime": datetime(1979, 5, 27, 7, 32), + "local_date": date(1979, 5, 27), + "local_time": time(7, 32, 0, 500000), + "array": [1, "two", date(1979, 5, 27)], + "nested": {"key": "nested_value"}, + } + + +def test_strict_mode_still_rejects_unknown_non_ext_keys(): + with pytest.raises(RuntimeError, match="unrecognized_field"): + ClientConfigProfile.load( + config_source=textwrap.dedent( + """ + [profile.default] + unrecognized_field = "should-fail" + [profile.default.ext.first] + value = "first-value" + """ + ), + config_file_strict=True, + ) + + +def test_ext_not_modified_by_env(): + profile = ClientConfigProfile.load( + config_source='[profile.default.ext.foo]\nsome_field = "value"', + override_env_vars={"TEMPORAL_EXT_FOO_SOME_FIELD": "env-value"}, + ) + assert profile.ext == {"foo": {"some_field": "value"}} + + +def test_profile_ext_to_from_dict(): + profile = ClientConfigProfile( + address="some-address", ext={"foo": {"some_field": "value"}} + ) + profile_dict = profile.to_dict() + assert profile_dict == { + "address": "some-address", + "ext": {"foo": {"some_field": "value"}}, + } + assert ClientConfigProfile.from_dict(profile_dict) == profile + + +def test_load_client_connect_config_calls_extensions_in_order(tmp_path: Path): + env = {"TEMPORAL_ADDRESS": "env-address", "TEMPORAL_EXT_FIRST_VALUE": "env-value"} + calls: list[str] = [] + + def first_plugin(req: ClientConfigExtensionRequest) -> temporalio.client.Plugin: + calls.append("first") + # Env vars have already been applied to the profile + assert req.profile.address == "env-address" + assert req.profile.ext.get("first") == {"value": "file-value"} + assert req.env is env + assert req.env is not None + return _TestPlugin(f"first-{req.env['TEMPORAL_EXT_FIRST_VALUE']}") + + def noop_plugin(req: ClientConfigExtensionRequest) -> None: + calls.append("noop") + assert "noop" not in req.profile.ext + return None + + def second_plugin(_: ClientConfigExtensionRequest) -> temporalio.client.Plugin: + calls.append("second") + return _TestPlugin("second") + + config = ClientConfig.load_client_connect_config( + config_file=_write_config( + tmp_path, + """ + [profile.default] + address = "file-address" + [profile.default.ext.first] + value = "file-value" + """, + ), + config_file_strict=True, + override_env_vars=env, + extensions=[ + _TestExtension("second", second_plugin), + _TestExtension("first", first_plugin), + _TestExtension("noop", noop_plugin), + ], + ) + # Extension order is respected + assert calls == ["second", "first", "noop"] + assert [p.name() for p in config.get("plugins", [])] == [ + "second", + "first-env-value", + ] + assert config.get("target_host") == "env-address" + + +def test_load_client_connect_config_no_plugins_without_extensions(tmp_path: Path): + config_file = _write_config(tmp_path, TOML_CONFIG_EXT) + config = ClientConfig.load_client_connect_config( + config_file=config_file, override_env_vars={} + ) + assert "plugins" not in config + config = ClientConfig.load_client_connect_config( + config_file=config_file, + override_env_vars={}, + extensions=[_TestExtension("first", lambda _: None)], + ) + assert "plugins" not in config + + +def test_load_client_connect_config_passes_env_to_extensions(tmp_path: Path): + config_file = _write_config(tmp_path, "[profile.default]") + got_envs: list[object] = [] + + def record_env(req: ClientConfigExtensionRequest) -> None: + got_envs.append(req.env) + return None + + extensions = [_TestExtension("ext", record_env)] + env = {"TEMPORAL_EXT_EXT_VALUE": "value"} + + # Defaults to process env + ClientConfig.load_client_connect_config( + config_file=config_file, extensions=extensions + ) + # Uses override env when given + ClientConfig.load_client_connect_config( + config_file=config_file, override_env_vars=env, extensions=extensions + ) + # None when env is disabled + ClientConfig.load_client_connect_config( + config_file=config_file, + disable_env=True, + override_env_vars=env, + extensions=extensions, + ) + + assert len(got_envs) == 3 + assert got_envs[0] is os.environ + assert got_envs[1] is env + assert got_envs[2] is None + + +@pytest.mark.parametrize( + "names,expected_message", + [ + (["a", "b", "a"], 'duplicate client config extension name "a"'), + (["a", ""], "client config extension at index 1 has empty name"), + ([None], "client config extension at index 0 is None"), + ], +) +def test_load_client_connect_config_rejects_invalid_extensions( + tmp_path: Path, names: list[str | None], expected_message: str +): + def fail(_: ClientConfigExtensionRequest) -> None: + pytest.fail("extension should not be called") + + extensions = [ + None if name is None else _TestExtension(name, fail) for name in names + ] + with pytest.raises(ValueError) as err: + ClientConfig.load_client_connect_config( + config_file=_write_config(tmp_path, "[profile.default]"), + override_env_vars={}, + extensions=extensions, # type: ignore[arg-type] + ) + assert str(err.value) == expected_message + + +def test_load_client_connect_config_wraps_extension_errors(tmp_path: Path): + ext_err = ValueError("bad config") + + def raise_err(_: ClientConfigExtensionRequest) -> None: + raise ext_err + + with pytest.raises(RuntimeError) as err: + ClientConfig.load_client_connect_config( + config_file=_write_config(tmp_path, "[profile.default]"), + override_env_vars={}, + extensions=[_TestExtension("bad", raise_err)], + ) + assert str(err.value) == 'client config extension "bad": bad config' + assert err.value.__cause__ is ext_err + + +class ApiKeyFileExtension(ClientConfigExtension): + """Example extension that reads an API key from a file, configured like: + + .. code-block:: toml + + [profile.default.ext.api_key_file] + path = "/path/to/api-key" + + or with the ``TEMPORAL_EXT_API_KEY_FILE_PATH`` env var, which takes + precedence. + """ + + def name(self) -> str: + return "api_key_file" + + def client_plugin( + self, req: ClientConfigExtensionRequest + ) -> temporalio.client.Plugin | None: + key_path = req.profile.ext.get(self.name(), {}).get("path") + if key_path is not None and not isinstance(key_path, str): + raise TypeError(f"path must be a string, got {type(key_path).__name__}") + if req.env is not None: + key_path = req.env.get("TEMPORAL_EXT_API_KEY_FILE_PATH", key_path) + if key_path is None: + return None + return _ApiKeyPlugin(Path(key_path).read_text().strip()) + + +class _ApiKeyPlugin(temporalio.client.Plugin): + def __init__(self, api_key: str) -> None: + self._api_key = api_key + + def configure_client( + self, config: temporalio.client.ClientConfig + ) -> temporalio.client.ClientConfig: + return config + + async def connect_service_client( + self, + config: ConnectConfig, + next: Callable[[ConnectConfig], Awaitable[ServiceClient]], + ) -> ServiceClient: + return await next( + dataclasses.replace( + config, + api_key=self._api_key, + tls=True if config.tls is None else config.tls, + ) + ) + + +async def test_example_extension(tmp_path: Path): + key_file = tmp_path / "api-key" + key_file.write_text("my-api-key\n") + config = ClientConfig.load_client_connect_config( + config_file=_write_config( + tmp_path, + f""" + [profile.default] + address = "my-address" + [profile.default.ext.api_key_file] + path = {str(key_file)!r} + """, + ), + config_file_strict=True, + override_env_vars={}, + extensions=[ApiKeyFileExtension()], + ) + plugins = config.get("plugins", []) + assert len(plugins) == 1 + next = AsyncMock() + await plugins[0].connect_service_client( + ConnectConfig(target_host="my-address"), next + ) + connect_config = next.call_args.args[0] + assert connect_config.target_host == "my-address" + assert connect_config.api_key == "my-api-key" + assert connect_config.tls is True + + # Nothing configured + unconfigured = ClientConfig.load_client_connect_config( + config_file=_write_config(tmp_path, "[profile.default]"), + override_env_vars={}, + extensions=[ApiKeyFileExtension()], + ) + assert "plugins" not in unconfigured + + # Invalid config + with pytest.raises(RuntimeError) as err: + ClientConfig.load_client_connect_config( + config_file=_write_config( + tmp_path, "[profile.default.ext.api_key_file]\npath = 5" + ), + override_env_vars={}, + extensions=[ApiKeyFileExtension()], + ) + assert ( + str(err.value) + == 'client config extension "api_key_file": path must be a string, got int' + ) diff --git a/tests/test_extstore.py b/tests/test_extstore.py index 9a058c582..0d763ef61 100644 --- a/tests/test_extstore.py +++ b/tests/test_extstore.py @@ -2,10 +2,13 @@ import asyncio from collections.abc import Sequence +from datetime import timedelta import pytest +import temporalio.converter._extstore from temporalio.api.common.v1 import Payload +from temporalio.api.failure.v1 import Failure from temporalio.api.sdk.v1.external_storage_pb2 import ExternalStorageReference from temporalio.converter import ( DataConverter, @@ -15,9 +18,15 @@ StorageDriver, StorageDriverClaim, StorageDriverRetrieveContext, + StorageDriverSelectContext, StorageDriverStoreContext, + StorageDriverWorkflowInfo, +) +from temporalio.converter._extstore import ( + _REFERENCE_ENCODING, + StorageOperationMetrics, + _StorageReference, ) -from temporalio.converter._extstore import _REFERENCE_ENCODING, _StorageReference from temporalio.converter._payload_converter import JSONProtoPayloadConverter from temporalio.exceptions import ApplicationError @@ -49,6 +58,7 @@ def __init__( self._storage: dict[str, bytes] = {} self._store_calls = 0 self._retrieve_calls = 0 + self._store_contexts: list[StorageDriverStoreContext] = [] def name(self) -> str: return self._driver_name @@ -59,6 +69,7 @@ async def store( payloads: Sequence[Payload], ) -> list[StorageDriverClaim]: self._store_calls += 1 + self._store_contexts.append(context) start_index = len(self._storage) entries = [ @@ -396,13 +407,13 @@ async def decode(self, payloads: Sequence[Payload]) -> list[Payload]: return results +@pytest.mark.usefixtures("encode_storage_references") class TestPayloadCodecWithExternalStorage: """Tests for interaction between DataConverter.payload_codec and external storage.""" async def test_dc_payload_codec_encodes_stored_bytes(self): """DataConverter.payload_codec encodes the bytes handed to the driver - for storage. The reference payload written to workflow history is NOT - encoded by the DataConverter codec.""" + for storage.""" driver = InMemoryTestDriver() dc_codec = RecordingPayloadCodec("binary/dc-encoded") @@ -419,10 +430,6 @@ async def test_dc_payload_codec_encodes_stored_bytes(self): assert len(encoded) == 1 assert driver._store_calls == 1 - # The reference payload written to history must NOT carry the dc_codec label. - assert dc_codec.encoded_count == 1 - assert encoded[0].metadata.get("encoding") != b"binary/dc-encoded" - # The bytes given to the driver must carry the dc_codec label. stored_payload = Payload() stored_payload.ParseFromString(next(iter(driver._storage.values()))) @@ -431,13 +438,11 @@ async def test_dc_payload_codec_encodes_stored_bytes(self): # Round-trip must recover the original value. decoded = await converter.decode(encoded, [str]) assert decoded[0] == large_value - assert dc_codec.decoded_count == 1 assert driver._retrieve_calls == 1 - async def test_dc_payload_codec_does_not_encode_reference_payload(self): - """The reference payload stored in workflow history is NOT encoded by - DataConverter.payload_codec – encoding is applied to the stored bytes - instead.""" + async def test_dc_payload_codec_encodes_reference_payload(self): + """The reference payload written to workflow history is encoded by + DataConverter.payload_codec and marked, keeping its size details.""" driver = InMemoryTestDriver() dc_codec = RecordingPayloadCodec("binary/dc-encoded") @@ -452,23 +457,217 @@ async def test_dc_payload_codec_does_not_encode_reference_payload(self): large_value = "x" * 200 encoded = await converter.encode([large_value]) assert len(encoded) == 1 - assert driver._store_calls == 1 - # Reference payload in history is NOT encoded by DataConverter.payload_codec. - assert dc_codec.encoded_count == 1 - assert encoded[0].metadata.get("encoding") != b"binary/dc-encoded" - - # Stored bytes ARE encoded by DataConverter.payload_codec. - stored_payload = Payload() - stored_payload.ParseFromString(next(iter(driver._storage.values()))) - assert stored_payload.metadata.get("encoding") == b"binary/dc-encoded" + # Once for the stored payload, once for the reference payload. + assert dc_codec.encoded_count == 2 + assert encoded[0].metadata.get("encoding") == b"binary/dc-encoded" + assert ( + encoded[0].metadata.get("__temporal_external_storage_reference") == b"true" + ) + stored_size = len(next(iter(driver._storage.values()))) + assert [d.size_bytes for d in encoded[0].external_payloads] == [stored_size] - # Round-trip. decoded = await converter.decode(encoded, [str]) assert decoded[0] == large_value - assert dc_codec.decoded_count == 1 + assert dc_codec.decoded_count == 2 assert driver._retrieve_calls == 1 + async def test_inline_payload_not_marked(self): + """Payloads that stay inline are encoded once and never marked.""" + dc_codec = RecordingPayloadCodec("binary/dc-encoded") + converter = DataConverter( + payload_codec=dc_codec, + external_storage=ExternalStorage( + drivers=[InMemoryTestDriver()], + payload_size_threshold=1000, + ), + ) + + encoded = await converter.encode(["small"]) + + assert dc_codec.encoded_count == 1 + assert "__temporal_external_storage_reference" not in encoded[0].metadata + assert await converter.decode(encoded, [str]) == ["small"] + + async def test_reference_payload_marked_without_codec(self): + """Without a codec, the reference payload is left unencoded but still + marked, and round-trips.""" + driver = InMemoryTestDriver() + converter = DataConverter( + external_storage=ExternalStorage( + drivers=[driver], payload_size_threshold=50 + ) + ) + + encoded = await converter.encode(["x" * 200]) + + assert encoded[0].metadata.get("encoding") == b"json/protobuf" + assert ( + encoded[0].metadata.get("__temporal_external_storage_reference") == b"true" + ) + assert await converter.decode(encoded, [str]) == ["x" * 200] + + async def test_unmarked_reference_payload_still_decodes(self): + """A reference payload written before references were marked and + encoded still decodes when a codec is configured.""" + driver = InMemoryTestDriver() + dc_codec = RecordingPayloadCodec("binary/dc-encoded") + external_storage = ExternalStorage(drivers=[driver], payload_size_threshold=50) + + # Produce an unencoded, unmarked reference that points at codec-encoded + # bytes, as older SDK versions did. + encoded_value = await DataConverter(payload_codec=dc_codec).encode(["x" * 200]) + old_reference = await external_storage._store_payload(encoded_value[0]) + del old_reference.metadata["__temporal_external_storage_reference"] + + converter = DataConverter( + payload_codec=dc_codec, external_storage=external_storage + ) + decoded = await converter.decode([old_reference], [str]) + assert decoded[0] == "x" * 200 + + async def test_encoded_reference_payload_without_codec_fails(self): + """An encoded reference payload cannot be read without a codec.""" + driver = InMemoryTestDriver() + external_storage = ExternalStorage(drivers=[driver], payload_size_threshold=50) + encoded = await DataConverter( + payload_codec=RecordingPayloadCodec("binary/dc-encoded"), + external_storage=external_storage, + ).encode(["x" * 200]) + + with pytest.raises( + RuntimeError, + match=r"\[TMPRL1106\] Encountered an encoded external storage reference that could not be decoded", + ): + await DataConverter(external_storage=external_storage).decode( + encoded, [str] + ) + + async def test_marked_payload_that_is_not_a_reference_fails(self): + """A marked payload that does not decode to a reference fails before + external storage retrieval.""" + driver = InMemoryTestDriver() + converter = DataConverter( + payload_codec=RecordingPayloadCodec("binary/dc-encoded"), + external_storage=ExternalStorage(drivers=[driver]), + ) + encoded = await converter.encode(["value"]) + encoded[0].metadata["__temporal_external_storage_reference"] = b"true" + + with pytest.raises( + RuntimeError, + match=r"\[TMPRL1106\] Encountered an encoded external storage reference that could not be decoded", + ): + await converter.decode(encoded, [str]) + assert driver._retrieve_calls == 0 + + async def test_failure_reference_payload_encoded(self): + """Reference payloads inside failures are encoded and marked too.""" + driver = InMemoryTestDriver() + converter = DataConverter( + payload_codec=RecordingPayloadCodec("binary/dc-encoded"), + external_storage=ExternalStorage( + drivers=[driver], + payload_size_threshold=50, + ), + ) + failure = Failure() + await converter.encode_failure(ApplicationError("boom", "x" * 200), failure) + + details = failure.application_failure_info.details.payloads + assert ( + details[0].metadata.get("__temporal_external_storage_reference") == b"true" + ) + + error = await converter.decode_failure(failure) + assert isinstance(error, ApplicationError) + assert error.details == ("x" * 200,) + + async def test_multiple_stored_payloads_encode_each_reference(self): + """When several payloads are stored together, every reference payload + is encoded and marked, an inline payload between them is not marked, + and all round-trip.""" + driver = InMemoryTestDriver() + converter = DataConverter( + payload_codec=RecordingPayloadCodec("binary/dc-encoded"), + external_storage=ExternalStorage( + drivers=[driver], + # The codec-encoded "inline" value is ~67 bytes, below this. + payload_size_threshold=100, + ), + ) + values = ["a" * 200, "inline", "c" * 200] + + encoded = await converter.encode(values) + + assert driver._store_calls == 1 + for payload in encoded: + assert payload.metadata.get("encoding") == b"binary/dc-encoded" + for reference in (encoded[0], encoded[2]): + assert ( + reference.metadata.get("__temporal_external_storage_reference") + == b"true" + ) + assert reference.external_payloads + inline = encoded[1] + assert "__temporal_external_storage_reference" not in inline.metadata + assert not inline.external_payloads + assert await converter.decode(encoded, [str, str, str]) == values + + async def test_marked_reference_without_external_storage_fails(self): + """A marked reference read by a converter without external storage + reports that external storage is not configured.""" + encoded = await DataConverter( + payload_codec=RecordingPayloadCodec("binary/dc-encoded"), + external_storage=ExternalStorage( + drivers=[InMemoryTestDriver()], payload_size_threshold=50 + ), + ).encode(["x" * 200]) + + with pytest.raises(RuntimeError, match=r"\[TMPRL1105\]"): + await DataConverter().decode(encoded, [str]) + + +async def test_references_written_unencoded_and_unmarked_by_default(): + """Until writing encoded references is turned on, references are written as + in earlier releases: unencoded and unmarked, even with a codec configured.""" + driver = InMemoryTestDriver() + converter = DataConverter( + payload_codec=RecordingPayloadCodec("binary/dc-encoded"), + external_storage=ExternalStorage(drivers=[driver], payload_size_threshold=50), + ) + + encoded = await converter.encode(["x" * 200]) + + assert encoded[0].metadata.get("encoding") == b"json/protobuf" + assert "__temporal_external_storage_reference" not in encoded[0].metadata + assert await converter.decode(encoded, [str]) == ["x" * 200] + + +async def test_encoded_references_read_while_writing_them_is_off( + monkeypatch: pytest.MonkeyPatch, +): + """Encoded references written by a later release can be read before writing + them is turned on.""" + converter = DataConverter( + payload_codec=RecordingPayloadCodec("binary/dc-encoded"), + external_storage=ExternalStorage( + drivers=[InMemoryTestDriver()], payload_size_threshold=50 + ), + ) + monkeypatch.setattr( + temporalio.converter._extstore, "_ENCODE_STORAGE_REFERENCES", True + ) + encoded = await converter.encode(["x" * 200]) + assert encoded[0].metadata.get("encoding") == b"binary/dc-encoded" + assert encoded[0].metadata["__temporal_external_storage_reference"] == b"true" + + monkeypatch.setattr( + temporalio.converter._extstore, "_ENCODE_STORAGE_REFERENCES", False + ) + + assert await converter.decode(encoded, [str]) == ["x" * 200] + class TestMultiDriver: """Tests for ExternalStorage with multiple drivers.""" @@ -537,6 +736,56 @@ async def test_no_selector_second_driver_is_retrieve_only(self): assert driver_a._retrieve_calls == 0 # never consulted assert driver_b._retrieve_calls == 1 + async def test_selector_receives_select_context_with_target(self): + """The selector is handed a StorageDriverSelectContext -- not the + StorageDriverStoreContext the driver receives -- carrying the same + target.""" + driver = InMemoryTestDriver("test-driver") + seen: list[object] = [] + + def selector(context: object, _payload: Payload) -> StorageDriver: + seen.append(context) + return driver + + target = StorageDriverWorkflowInfo( + namespace="ns", id="wf-id", type="MyWorkflow", run_id="run-id" + ) + storage = ExternalStorage( + drivers=[driver], + driver_selector=selector, + payload_size_threshold=50, + )._with_store_context(StorageDriverStoreContext(target=target)) + + converter = DataConverter(external_storage=storage) + await converter.encode(["x" * 200]) + + assert len(seen) == 1 + assert isinstance(seen[0], StorageDriverSelectContext) + assert seen[0].target == target + assert isinstance(driver._store_contexts[0], StorageDriverStoreContext) + assert driver._store_contexts[0].target == target + + async def test_contexts_carry_namespace_without_target(self): + driver = InMemoryTestDriver("test-driver") + seen: list[StorageDriverSelectContext] = [] + + def selector( + context: StorageDriverSelectContext, _payload: Payload + ) -> StorageDriver: + seen.append(context) + return driver + + storage = ExternalStorage( + drivers=[driver], + driver_selector=selector, + payload_size_threshold=50, + )._with_store_context(StorageDriverStoreContext(namespace="ns")) + + await DataConverter(external_storage=storage).encode(["x" * 200]) + + assert seen == [StorageDriverSelectContext(namespace="ns")] + assert driver._store_contexts == [StorageDriverStoreContext(namespace="ns")] + async def test_selector_routes_payloads_to_different_drivers_in_single_batch(self): """When a selector routes different payloads to different drivers, a single encode([v1, v2, ...]) call batches payloads per driver so each @@ -801,5 +1050,34 @@ async def test_new_format_encode_round_trips(self): assert decoded[0] == value +def test_storage_metrics_aggregates_batches() -> None: + metrics = StorageOperationMetrics() + assert metrics.total_duration == timedelta(0) + + metrics.record_batch(2, 1024, 0.0, 10.0, {"s3"}) + metrics.record_batch(3, 2048, 5.0, 15.0, {"gcs"}) + + assert metrics.payload_count == 5 + assert metrics.total_size == 3072 + assert metrics.driver_names == {"gcs", "s3"} + # Concurrent batches: summing their durations would report 20 seconds. + assert metrics.total_duration == timedelta(seconds=15) + + +def test_storage_metrics_duration_sums_disjoint_batches() -> None: + metrics = StorageOperationMetrics() + metrics.record_batch(1, 1, 0.0, 10.0, {"s3"}) + metrics.record_batch(1, 1, 20.0, 30.0, {"s3"}) + assert metrics.total_duration == timedelta(seconds=20) + + +def test_storage_metrics_duration_merges_adjacent_and_nested_batches() -> None: + metrics = StorageOperationMetrics() + metrics.record_batch(1, 1, 0.0, 10.0, {"s3"}) + metrics.record_batch(1, 1, 10.0, 20.0, {"s3"}) + metrics.record_batch(1, 1, 12.0, 18.0, {"s3"}) + assert metrics.total_duration == timedelta(seconds=20) + + if __name__ == "__main__": pytest.main([__file__, "-v"]) diff --git a/tests/test_extstore_client.py b/tests/test_extstore_client.py new file mode 100644 index 000000000..d17563e54 --- /dev/null +++ b/tests/test_extstore_client.py @@ -0,0 +1,393 @@ +"""Client paths encode and decode external storage reference payloads. + +These use a fake workflow service, so they check exactly what the client sends +and how it reads responses without depending on a server. +""" + +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any +from unittest.mock import AsyncMock, Mock + +import pytest + +import temporalio.api.common.v1 +import temporalio.api.enums.v1 +import temporalio.api.failure.v1 +import temporalio.api.history.v1 +import temporalio.api.update.v1 +import temporalio.api.workflowservice.v1 +import temporalio.client +import temporalio.converter +from temporalio.api.common.v1 import Payload +from temporalio.api.sdk.v1.external_storage_pb2 import ExternalStorageReference +from temporalio.client import ( + Client, + Schedule, + ScheduleActionStartWorkflow, + ScheduleSpec, + WorkflowFailureError, +) +from temporalio.common import HeaderCodecBehavior +from temporalio.converter import ( + DataConverter, + ExternalStorage, + JSONProtoPayloadConverter, + StorageDriverStoreContext, +) +from temporalio.exceptions import ApplicationError +from temporalio.service import ServiceClient +from tests.test_extstore import InMemoryTestDriver, RecordingPayloadCodec + +pytestmark = pytest.mark.usefixtures("encode_storage_references") + +# Larger than the storage threshold below, so it is always stored externally. +LARGE = "x" * 200 +CODEC_ENCODING = b"binary/test-encoded" + + +class _FakeWorkflowService: + """Records each request and returns the configured response.""" + + def __init__(self, responses: Mapping[str, Any]) -> None: + self.requests: dict[str, Any] = {} + for name, response in responses.items(): + setattr(self, name, self._recorder(name, response)) + + def _recorder(self, name: str, response: Any) -> AsyncMock: + async def record(req: Any, **_kwargs: Any) -> Any: + self.requests[name] = req + return response + + return AsyncMock(side_effect=record) + + +def _data_converter() -> DataConverter: + return DataConverter( + payload_codec=RecordingPayloadCodec(CODEC_ENCODING.decode()), + external_storage=ExternalStorage( + drivers=[InMemoryTestDriver()], payload_size_threshold=50 + ), + ) + + +def _client( + service: _FakeWorkflowService, + data_converter: DataConverter, + **kwargs: Any, +) -> Client: + service_client = Mock(spec=ServiceClient) + service_client.workflow_service = service + service_client.config = Mock(identity="test-identity") + return Client( + service_client=service_client, + namespace="test-namespace", + data_converter=data_converter, + **kwargs, + ) + + +async def _assert_encoded_reference( + data_converter: DataConverter, payload: Payload +) -> None: + assert payload.metadata["encoding"] == CODEC_ENCODING + assert payload.metadata["__temporal_external_storage_reference"] == b"true" + assert payload.external_payloads + [reference] = await data_converter._decode_reference_payload_sequence([payload]) + assert isinstance( + JSONProtoPayloadConverter().from_payload(reference, ExternalStorageReference), + ExternalStorageReference, + ) + + +async def _encoded_reference(data_converter: DataConverter, value: Any) -> Payload: + [payload] = await data_converter.encode([value]) + await _assert_encoded_reference(data_converter, payload) + return payload + + +def _history_response( + event: temporalio.api.history.v1.HistoryEvent, +) -> temporalio.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse: + return temporalio.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse( + history=temporalio.api.history.v1.History(events=[event]) + ) + + +async def test_start_workflow_encodes_input_and_memo_references() -> None: + service = _FakeWorkflowService( + { + "start_workflow_execution": temporalio.api.workflowservice.v1.StartWorkflowExecutionResponse( + run_id="run" + ) + } + ) + client = _client(service, _data_converter()) + + await client.start_workflow( + "Workflow", LARGE, id="wf", task_queue="tq", memo={"key": LARGE} + ) + + req = service.requests["start_workflow_execution"] + await _assert_encoded_reference(client.data_converter, req.input.payloads[0]) + await _assert_encoded_reference(client.data_converter, req.memo.fields["key"]) + + +async def test_signal_encodes_input_reference() -> None: + service = _FakeWorkflowService( + { + "signal_workflow_execution": temporalio.api.workflowservice.v1.SignalWorkflowExecutionResponse() + } + ) + client = _client(service, _data_converter()) + + await client.get_workflow_handle("wf").signal("signal", LARGE) + + await _assert_encoded_reference( + client.data_converter, + service.requests["signal_workflow_execution"].input.payloads[0], + ) + + +async def test_signal_with_start_encodes_input_references() -> None: + service = _FakeWorkflowService( + { + "signal_with_start_workflow_execution": temporalio.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse( + run_id="run" + ) + } + ) + client = _client(service, _data_converter()) + + await client.start_workflow( + "Workflow", + LARGE, + id="wf", + task_queue="tq", + start_signal="signal", + start_signal_args=[LARGE], + ) + + req = service.requests["signal_with_start_workflow_execution"] + await _assert_encoded_reference(client.data_converter, req.input.payloads[0]) + await _assert_encoded_reference(client.data_converter, req.signal_input.payloads[0]) + + +async def test_update_encodes_args_and_decodes_result_references() -> None: + data_converter = _data_converter() + result = await _encoded_reference(data_converter, "update-result" * 20) + service = _FakeWorkflowService( + { + "update_workflow_execution": temporalio.api.workflowservice.v1.UpdateWorkflowExecutionResponse( + stage=temporalio.api.enums.v1.UpdateWorkflowExecutionLifecycleStage.UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED, + outcome=temporalio.api.update.v1.Outcome( + success=temporalio.api.common.v1.Payloads(payloads=[result]) + ), + ) + } + ) + client = _client(service, data_converter) + + value = await client.get_workflow_handle("wf").execute_update( + "update", LARGE, result_type=str + ) + + assert value == "update-result" * 20 + req = service.requests["update_workflow_execution"] + await _assert_encoded_reference( + client.data_converter, req.request.input.args.payloads[0] + ) + + +async def test_query_encodes_args_and_decodes_result_references() -> None: + data_converter = _data_converter() + result = await _encoded_reference(data_converter, "query-result" * 20) + service = _FakeWorkflowService( + { + "query_workflow": temporalio.api.workflowservice.v1.QueryWorkflowResponse( + query_result=temporalio.api.common.v1.Payloads(payloads=[result]) + ) + } + ) + client = _client(service, data_converter) + + value = await client.get_workflow_handle("wf").query( + "query", LARGE, result_type=str + ) + + assert value == "query-result" * 20 + await _assert_encoded_reference( + client.data_converter, + service.requests["query_workflow"].query.query_args.payloads[0], + ) + + +async def test_create_schedule_encodes_action_input_reference() -> None: + service = _FakeWorkflowService( + {"create_schedule": temporalio.api.workflowservice.v1.CreateScheduleResponse()} + ) + client = _client(service, _data_converter()) + + await client.create_schedule( + "schedule", + Schedule( + action=ScheduleActionStartWorkflow( + "Workflow", LARGE, id="wf", task_queue="tq" + ), + spec=ScheduleSpec(), + ), + ) + + req = service.requests["create_schedule"] + await _assert_encoded_reference( + client.data_converter, req.schedule.action.start_workflow.input.payloads[0] + ) + + +async def test_create_schedule_stores_header_with_client_namespace() -> None: + service = _FakeWorkflowService( + {"create_schedule": temporalio.api.workflowservice.v1.CreateScheduleResponse()} + ) + driver = InMemoryTestDriver() + data_converter = DataConverter( + payload_codec=RecordingPayloadCodec(CODEC_ENCODING.decode()), + external_storage=ExternalStorage(drivers=[driver], payload_size_threshold=50), + ) + client = _client( + service, data_converter, header_codec_behavior=HeaderCodecBehavior.CODEC + ) + action = ScheduleActionStartWorkflow("Workflow", id="wf", task_queue="tq") + [header] = temporalio.converter.default().payload_converter.to_payloads([LARGE]) + action.headers = {"large": header} + + await client.create_schedule( + "schedule", Schedule(action=action, spec=ScheduleSpec()) + ) + + req = service.requests["create_schedule"] + await _assert_encoded_reference( + client.data_converter, + req.schedule.action.start_workflow.header.fields["large"], + ) + assert driver._store_contexts == [ + StorageDriverStoreContext(namespace="test-namespace") + ] + + +async def test_async_activity_completion_encodes_references() -> None: + service = _FakeWorkflowService( + { + "respond_activity_task_completed_by_id": temporalio.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse(), + "respond_activity_task_failed_by_id": temporalio.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse(), + "record_activity_task_heartbeat_by_id": temporalio.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse(), + } + ) + client = _client(service, _data_converter()) + handle = client.get_async_activity_handle( + workflow_id="wf", run_id=None, activity_id="activity" + ) + + await handle.heartbeat(LARGE) + await handle.complete(LARGE) + await handle.fail(ApplicationError("failed", LARGE)) + + await _assert_encoded_reference( + client.data_converter, + service.requests["record_activity_task_heartbeat_by_id"].details.payloads[0], + ) + await _assert_encoded_reference( + client.data_converter, + service.requests["respond_activity_task_completed_by_id"].result.payloads[0], + ) + failure = service.requests["respond_activity_task_failed_by_id"].failure + await _assert_encoded_reference( + client.data_converter, failure.application_failure_info.details.payloads[0] + ) + + +class _LargeHeaderInterceptor(temporalio.client.Interceptor): + def intercept_client( + self, next: temporalio.client.OutboundInterceptor + ) -> temporalio.client.OutboundInterceptor: + return _LargeHeaderOutbound(next) + + +class _LargeHeaderOutbound(temporalio.client.OutboundInterceptor): + async def start_workflow( + self, input: temporalio.client.StartWorkflowInput + ) -> temporalio.client.WorkflowHandle[Any, Any]: + [header] = temporalio.converter.default().payload_converter.to_payloads([LARGE]) + input.headers = {**input.headers, "large": header} + return await super().start_workflow(input) + + +async def test_start_workflow_encodes_header_reference_when_headers_use_codec() -> None: + service = _FakeWorkflowService( + { + "start_workflow_execution": temporalio.api.workflowservice.v1.StartWorkflowExecutionResponse( + run_id="run" + ) + } + ) + client = _client( + service, + _data_converter(), + interceptors=[_LargeHeaderInterceptor()], + header_codec_behavior=HeaderCodecBehavior.CODEC, + ) + + await client.start_workflow("Workflow", id="wf", task_queue="tq") + + req = service.requests["start_workflow_execution"] + await _assert_encoded_reference(client.data_converter, req.header.fields["large"]) + + +async def test_workflow_result_decodes_reference() -> None: + data_converter = _data_converter() + result = await _encoded_reference(data_converter, "workflow-result" * 20) + service = _FakeWorkflowService( + { + "get_workflow_execution_history": _history_response( + temporalio.api.history.v1.HistoryEvent( + event_type=temporalio.api.enums.v1.EventType.EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED, + workflow_execution_completed_event_attributes=temporalio.api.history.v1.WorkflowExecutionCompletedEventAttributes( + result=temporalio.api.common.v1.Payloads(payloads=[result]) + ), + ) + ) + } + ) + client = _client(service, data_converter) + + value = await client.get_workflow_handle("wf", result_type=str).result() + + assert value == "workflow-result" * 20 + + +async def test_workflow_failure_decodes_detail_reference() -> None: + data_converter = _data_converter() + failure = temporalio.api.failure.v1.Failure() + await data_converter.encode_failure(ApplicationError("failed", LARGE), failure) + await _assert_encoded_reference( + data_converter, failure.application_failure_info.details.payloads[0] + ) + service = _FakeWorkflowService( + { + "get_workflow_execution_history": _history_response( + temporalio.api.history.v1.HistoryEvent( + event_type=temporalio.api.enums.v1.EventType.EVENT_TYPE_WORKFLOW_EXECUTION_FAILED, + workflow_execution_failed_event_attributes=temporalio.api.history.v1.WorkflowExecutionFailedEventAttributes( + failure=failure + ), + ) + ) + } + ) + client = _client(service, data_converter) + + with pytest.raises(WorkflowFailureError) as err: + await client.get_workflow_handle("wf").result() + + assert isinstance(err.value.cause, ApplicationError) + assert err.value.cause.details == (LARGE,) diff --git a/tests/test_gen_docs.py b/tests/test_gen_docs.py new file mode 100644 index 000000000..b2b2c210b --- /dev/null +++ b/tests/test_gen_docs.py @@ -0,0 +1,71 @@ +from pathlib import Path + +from pydoctor import model # type: ignore[reportMissingTypeStubs] +from pydoctor.options import Options # type: ignore[reportMissingTypeStubs] + +from scripts.gen_docs import ProtobufSystem + + +def test_protobuf_docs_expose_names_without_class_details(tmp_path: Path) -> None: + package = tmp_path / "example" + package.mkdir() + (package / "__init__.py").write_text( + 'from .message_pb2 import Payload, Status\n__all__ = ["Payload", "Status"]\n' + ) + (package / "message_pb2.py").write_text( + 'raise RuntimeError("Documentation must not import generated modules")\n' + ) + stub = package / "message_pb2.pyi" + stub.write_text( + "class Payload:\n" + ' """An upstream proto comment with `non-Python link text`."""\n' + " data: bytes\n" + "class _Status:\n" + " ValueType = int\n" + "class Status(_Status):\n" + " ACTIVE: int\n" + ) + options = Options.from_args( + [ + "--docformat=google", + "--html-viewsource-base=https://example.com/source", + f"--project-base-dir={tmp_path}", + ] + ) + system = ProtobufSystem(options) + builder = system.systemBuilder(system) + builder.addModule(package) + builder.buildModules() + + for name, lineno in (("Payload", 1), ("Status", 6)): + attribute = system.find_object(f"example.{name}") + assert isinstance(attribute, model.Attribute) + assert attribute.kind == model.DocumentableKind.VARIABLE + assert attribute.source_path == stub + assert attribute.linenumber == lineno + assert attribute.source_href == ( + f"https://example.com/source/example/message_pb2.pyi#L{lineno}" + ) + assert attribute.docstring is None + assert not attribute.contents + assert attribute.isVisible + module = system.allobjects["example.message_pb2"] + assert isinstance(module, model.Module) + assert module.source_path == package / "message_pb2.py" + assert module.docformat is None + assert module.source_href == "https://example.com/source/example/message_pb2.py" + assert system.objForFullName("example.message_pb2._Status") is None + assert system.violations == 0 + + +def test_docs_keep_normal_python_sources(tmp_path: Path) -> None: + source = tmp_path / "module.py" + source.write_text("class Actual:\n pass\n") + source.with_suffix(".pyi").write_text("class StubOnly:\n pass\n") + system = ProtobufSystem() + builder = system.systemBuilder(system) + builder.addModule(source) + builder.buildModules() + + assert system.find_object("module.Actual") is not None + assert system.objForFullName("module.StubOnly") is None diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 9414e8df0..ceba14c3b 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -62,7 +62,7 @@ async def connect_service_client( @pytest.mark.requires_local_server async def test_client_plugin(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Client connect is only designed for local") plugin = MyClientPlugin() diff --git a/tests/test_prepare_release.py b/tests/test_prepare_release.py index b2f80be13..6d65c68c0 100644 --- a/tests/test_prepare_release.py +++ b/tests/test_prepare_release.py @@ -1,5 +1,6 @@ from __future__ import annotations +import argparse import datetime import importlib.util import pathlib @@ -9,12 +10,15 @@ import pytest +import scripts.changelog +import scripts.prepare_release from scripts.prepare_release import ( + commit_release_changes, create_release_branch, create_release_pr, ensure_clean_worktree, ensure_only_release_changes, - finalize_changelog_release, + prepare_release_files, push_release_branch, replace_project_version, replace_service_version, @@ -31,90 +35,223 @@ def _release_verify_module() -> ModuleType: return module -def test_sdk_core_changelog_entries_runs_core_script( - monkeypatch: pytest.MonkeyPatch, +def test_published_notes_use_shared_file_output( + monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path ) -> None: release_verify = _release_verify_module() - calls: list[tuple[list[str], pathlib.Path]] = [] - - def check_output(args: list[str], *, cwd: pathlib.Path, **_kwargs: object) -> str: - calls.append((args, cwd)) - return "#### Added\n\n* Core feature.\n" - - monkeypatch.setattr(subprocess, "check_output", check_output) - core_path = pathlib.Path("sdk-core") - assert release_verify._sdk_core_changelog_entries("old", "new", core_path) == [ - "#### Added", - "", - "* Core feature.", - ] - assert calls == [ - ( - [ - "cargo", - "run", - "--quiet", - "-p", - "temporalio-sdk-core", - "--bin", - "changelog-release-notes", - "--", - "--from", - "old", - "--to", - "new", - ], - core_path, + + def run_tool(_root: pathlib.Path, args: list[str]) -> str: + assert args == [ + "release-notes", + "--version", + "1.35.0", + "--changelog", + "CHANGELOG.md", + "--submodule", + "core", + "--output", + str(output), + ] + output.write_text("Shared release notes.\n") + return "" + + monkeypatch.setattr(release_verify, "run_tool", run_tool) + output = tmp_path / "notes.md" + release_verify.changelog_notes( + argparse.Namespace( + version="1.35.0", + changelog="CHANGELOG.md", + sdk_core_path="core", + output=str(output), ) - ] + ) + assert output.read_text() == "Shared release notes.\n" -def test_sdk_core_release_notes_embed_core_output( +def test_shared_notes_failure_preserves_existing_output( monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path ) -> None: release_verify = _release_verify_module() - (tmp_path / ".git").mkdir() - monkeypatch.setattr(release_verify, "_previous_release_tag", lambda _version: "old") - monkeypatch.setattr(release_verify, "_gitlink", lambda revision, _path: revision) - monkeypatch.setattr( - subprocess, - "check_output", - lambda *_args, **_kwargs: "#### Commits\n\n- Core commit\n", - ) - assert release_verify._sdk_core_release_notes("1.30.0", str(tmp_path)) == [ - "### SDK Core", - "", - "#### Commits", - "", - "- Core commit", - ] + def run_tool(_root: pathlib.Path, _args: list[str]) -> str: + raise RuntimeError("Missing release section") + + monkeypatch.setattr(release_verify, "run_tool", run_tool) + output = tmp_path / "notes.md" + output.write_text("Existing notes.\n") + with pytest.raises(RuntimeError, match="Missing release section"): + release_verify.changelog_notes( + argparse.Namespace( + version="1.35.0", + changelog="CHANGELOG.md", + sdk_core_path="core", + output=str(output), + ) + ) + assert output.read_text() == "Existing notes.\n" -def test_sdk_core_release_notes_preserves_generator_failure_output( +def test_shared_tool_preserves_failure_diagnostics( monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path ) -> None: - release_verify = _release_verify_module() - (tmp_path / ".git").mkdir() - monkeypatch.setattr(release_verify, "_previous_release_tag", lambda _version: "old") - monkeypatch.setattr(release_verify, "_gitlink", lambda revision, _path: revision) - monkeypatch.setattr(release_verify, "_git", lambda *_args, **_kwargs: "") - error = subprocess.CalledProcessError(101, ["cargo"], output="compiler output") - monkeypatch.setattr( - release_verify, - "_sdk_core_changelog_entries", - lambda *_args: (_ for _ in ()).throw(error), + (tmp_path / "temporalio/bridge/sdk-core/.git").mkdir(parents=True) + + def fail(*_args: object, **_kwargs: object) -> None: + raise subprocess.CalledProcessError(1, ["cargo"], stderr="invalid fragment") + + monkeypatch.setattr(subprocess, "run", fail) + with pytest.raises(RuntimeError, match="invalid fragment"): + scripts.changelog.run_tool(tmp_path, ["check"]) + + +@pytest.fixture +def release_repo(tmp_path: pathlib.Path) -> pathlib.Path: + for name, text in { + "CHANGELOG.md": "# Changelog\n\n## [1.34.0] - 2026-09-30\nOld notes.\n", + "pyproject.toml": 'version = "1.34.0"\n', + "temporalio/service.py": '__version__ = "1.34.0"\n', + "uv.lock": "lock\n", + "changelog/fixed/giggling-teapot.md": "A fix.\n", + }.items(): + path = tmp_path / name + path.parent.mkdir(parents=True, exist_ok=True) + path.write_text(text) + subprocess.run(["git", "init", "-q"], cwd=tmp_path, check=True) + subprocess.run(["git", "add", "."], cwd=tmp_path, check=True) + subprocess.run( + [ + "git", + "-c", + "user.name=Test", + "-c", + "user.email=test@example.com", + "commit", + "-qm", + "Initial", + ], + cwd=tmp_path, + check=True, ) + return tmp_path + + +def mock_preparation(monkeypatch: pytest.MonkeyPatch) -> str: + changelog = "# Changelog\n\n## [1.35.0] - 2026-10-02\n\n### Fixed\n\n- A fix.\n" - with pytest.raises(RuntimeError, match="compiler output"): - release_verify._sdk_core_release_notes("1.30.0", str(tmp_path)) + def prepare(repo: pathlib.Path, version: str, _date: datetime.date) -> None: + assert version in (repo / "pyproject.toml").read_text() + assert version in (repo / "temporalio/service.py").read_text() + (repo / "CHANGELOG.md").write_text(changelog) + (repo / "changelog/fixed/giggling-teapot.md").unlink() + monkeypatch.setattr(scripts.prepare_release, "prepare_changelog", prepare) + return changelog -def test_finalize_changelog_release() -> None: - text = "## [Unreleased]\n\n### Added\n\n- A thing.\n" - assert "## [1.30.0] - 2026-06-18" in finalize_changelog_release( - text, version="1.30.0", release_date=datetime.date(2026, 6, 18) + +def test_release_commits_consumed_fragments( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + changelog = mock_preparation(monkeypatch) + consumed = prepare_release_files( + release_repo, "1.35.0", datetime.date(2026, 10, 2), skip_lock=True + ) + assert consumed == ("changelog/fixed/giggling-teapot.md",) + assert not (release_repo / consumed[0]).exists() + ensure_only_release_changes(release_repo, consumed) + subprocess.run(["git", "config", "user.name", "Test"], cwd=release_repo, check=True) + subprocess.run( + ["git", "config", "user.email", "test@example.com"], + cwd=release_repo, + check=True, ) + commit_release_changes(release_repo, "1.35.0", consumed) + deleted = subprocess.check_output( + ["git", "diff", "--name-only", "--diff-filter=D", "HEAD~", "HEAD"], + cwd=release_repo, + text=True, + ).splitlines() + assert deleted == list(consumed) + assert (release_repo / "CHANGELOG.md").read_text() == changelog + assert "1.35.0" in (release_repo / "temporalio/service.py").read_text() + + +def test_lock_failure_retains_fragments( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + mock_preparation(monkeypatch) + + def fail(*_args: object, **_kwargs: object) -> None: + raise subprocess.CalledProcessError(1, ["uv", "lock"]) + + monkeypatch.setattr(subprocess, "run", fail) + with pytest.raises(subprocess.CalledProcessError): + prepare_release_files(release_repo, "1.35.0", datetime.date(2026, 10, 2)) + assert (release_repo / "changelog/fixed/giggling-teapot.md").exists() + + +def test_invalid_version_files_do_not_write_notes_or_consume_fragments( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + mock_preparation(monkeypatch) + original = (release_repo / "CHANGELOG.md").read_text() + (release_repo / "temporalio/service.py").write_text("missing version\n") + with pytest.raises(RuntimeError, match="service version"): + prepare_release_files( + release_repo, "1.35.0", datetime.date(2026, 10, 2), skip_lock=True + ) + assert (release_repo / "CHANGELOG.md").read_text() == original + assert (release_repo / "changelog/fixed/giggling-teapot.md").exists() + + +def test_unexpected_changes_rejected_before_consuming( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + mock_preparation(monkeypatch) + (release_repo / "changelog/fixed/late-llama.md").write_text("Late change.\n") + with pytest.raises(RuntimeError, match="unexpected files"): + prepare_release_files( + release_repo, "1.35.0", datetime.date(2026, 10, 2), skip_lock=True + ) + assert (release_repo / "changelog/fixed/giggling-teapot.md").exists() + assert (release_repo / "changelog/fixed/late-llama.md").exists() + + +def test_lock_update_precedes_changelog_preparation( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + calls: list[str] = [] + + def run(command: list[str], **_kwargs: object) -> subprocess.CompletedProcess[str]: + if command == ["uv", "lock"]: + calls.append("lock") + return subprocess.CompletedProcess(command, 0, "") + + def prepare(*_args: object) -> None: + assert calls == ["lock"] + calls.append("changelog") + + monkeypatch.setattr(subprocess, "run", run) + monkeypatch.setattr(scripts.prepare_release, "prepare_changelog", prepare) + prepare_release_files(release_repo, "1.35.0", datetime.date(2026, 10, 2)) + assert calls == ["lock", "changelog"] + + +def test_changelog_rejection_retains_notes_and_version_updates( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + original = (release_repo / "CHANGELOG.md").read_text() + + def reject(*_args: object) -> None: + raise RuntimeError("invalid fragment") + + monkeypatch.setattr(scripts.prepare_release, "prepare_changelog", reject) + with pytest.raises(RuntimeError, match="invalid fragment"): + prepare_release_files( + release_repo, "1.35.0", datetime.date(2026, 10, 2), skip_lock=True + ) + assert (release_repo / "CHANGELOG.md").read_text() == original + assert (release_repo / "changelog/fixed/giggling-teapot.md").exists() + assert "1.35.0" in (release_repo / "pyproject.toml").read_text() def test_replace_versions() -> None: @@ -126,26 +263,192 @@ def test_replace_versions() -> None: ) -def test_create_release_branch(monkeypatch: pytest.MonkeyPatch) -> None: - calls: list[list[str]] = [] +def test_release_with_core_update_commits_generated_files( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + mock_preparation(monkeypatch) + calls: list[str] = [] + core_fragment = release_repo / "changelog/fixed/core-llama.md" + generated = release_repo / "temporalio/api/generated.py" + manifest = release_repo / "temporalio/bridge/Cargo.toml" + + def branch(_root: pathlib.Path, _version: str) -> str: + calls.append("branch") + return "" + + def update(root: pathlib.Path, args: list[str]) -> None: + assert root == release_repo + assert args == ["--latest-tag"] + assert calls == ["branch"] + calls.append("core") + generated.parent.mkdir(parents=True) + generated.write_text("# Generated\n") + manifest.parent.mkdir(parents=True) + manifest.write_text("# Updated manifest\n") + core_fragment.write_text("Core: A fix.\n") + + def prepare(root: pathlib.Path, _version: str, _date: datetime.date) -> None: + assert calls == ["branch", "core"] + calls.append("release") + (root / "CHANGELOG.md").write_text("Release notes including Core.\n") + (root / "changelog/fixed/giggling-teapot.md").unlink() + core_fragment.unlink() + monkeypatch.setattr( - subprocess, "run", lambda command, **_kwargs: calls.append(command) + scripts.prepare_release, + "__file__", + str(release_repo / "scripts/prepare_release.py"), + ) + monkeypatch.setattr(scripts.prepare_release, "create_release_branch", branch) + monkeypatch.setattr(scripts.prepare_release, "update_core", update) + monkeypatch.setattr(scripts.prepare_release, "prepare_changelog", prepare) + monkeypatch.setattr( + scripts.prepare_release, + "push_release_branch", + lambda *_args: calls.append("push"), + ) + monkeypatch.setattr( + scripts.prepare_release, "create_release_pr", lambda *_args: calls.append("pr") + ) + subprocess.run(["git", "config", "user.name", "Test"], cwd=release_repo, check=True) + subprocess.run( + ["git", "config", "user.email", "test@example.com"], + cwd=release_repo, + check=True, + ) + scripts.prepare_release.main(["1.35.0", "--update-core", "--skip-lock"]) + assert calls == ["branch", "core", "release", "push", "pr"] + ensure_clean_worktree(release_repo) + assert generated.exists() + assert manifest.exists() + assert not core_fragment.exists() + assert ( + subprocess.check_output( + ["git", "show", "HEAD:temporalio/api/generated.py"], + cwd=release_repo, + text=True, + ) + == "# Generated\n" + ) + + +def test_core_update_failure_stops_release( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + monkeypatch.setattr( + scripts.prepare_release, + "__file__", + str(release_repo / "scripts/prepare_release.py"), + ) + monkeypatch.setattr( + scripts.prepare_release, "create_release_branch", lambda *_args: None + ) + + def fail(*_args: object) -> None: + raise RuntimeError("proto generation failed") + + monkeypatch.setattr(scripts.prepare_release, "update_core", fail) + with pytest.raises(RuntimeError, match="proto generation failed"): + scripts.prepare_release.main(["1.35.0", "--update-core", "--skip-lock"]) + ensure_clean_worktree(release_repo) + assert "1.34.0" in (release_repo / "pyproject.toml").read_text() + assert (release_repo / "changelog/fixed/giggling-teapot.md").exists() + + +@pytest.fixture +def release_remote( + release_repo: pathlib.Path, tmp_path_factory: pytest.TempPathFactory +) -> pathlib.Path: + remote = tmp_path_factory.mktemp("release-remote") / "remote.git" + subprocess.run(["git", "init", "--bare", "-q", str(remote)], check=True) + for command in [ + ["git", "config", "user.name", "Test"], + ["git", "config", "user.email", "test@example.com"], + ["git", "branch", "-M", "main"], + ["git", "remote", "add", "origin", str(remote)], + ["git", "push", "-u", "origin", "main"], + ]: + subprocess.run(command, cwd=release_repo, check=True) + return remote + + +@pytest.mark.parametrize("local_exists", [False, True]) +@pytest.mark.parametrize("remote_exists", [False, True]) +def test_upsert_release_branch( + release_repo: pathlib.Path, + release_remote: pathlib.Path, + local_exists: bool, + remote_exists: bool, +) -> None: + branch = "chore/release-1.35.0" + subprocess.run(["git", "switch", "-c", branch], cwd=release_repo, check=True) + subprocess.run( + ["git", "commit", "--allow-empty", "-m", "Previous release"], + cwd=release_repo, + check=True, + ) + previous = subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=release_repo, text=True + ).strip() + if remote_exists: + subprocess.run(["git", "push", "origin", branch], cwd=release_repo, check=True) + subprocess.run(["git", "switch", "main"], cwd=release_repo, check=True) + if not local_exists: + subprocess.run(["git", "branch", "-D", branch], cwd=release_repo, check=True) + + expected = create_release_branch(release_repo, "1.35.0") + assert expected == (previous if remote_exists else "") + assert subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=release_repo + ) == subprocess.check_output(["git", "rev-parse", "main"], cwd=release_repo) + subprocess.run( + ["git", "commit", "--allow-empty", "-m", "Regenerated release"], + cwd=release_repo, + check=True, + ) + push_release_branch(release_repo, "1.35.0", expected) + assert subprocess.check_output( + ["git", "rev-parse", f"refs/heads/{branch}"], cwd=release_remote + ) == subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=release_repo) + + +@pytest.mark.parametrize("remote_exists", [False, True]) +def test_release_push_rejects_concurrent_remote_change( + release_repo: pathlib.Path, release_remote: pathlib.Path, remote_exists: bool +) -> None: + branch = "chore/release-1.35.0" + if remote_exists: + subprocess.run( + ["git", "push", "origin", f"main:refs/heads/{branch}"], + cwd=release_repo, + check=True, + ) + expected = create_release_branch(release_repo, "1.35.0") + subprocess.run( + ["git", "commit", "--allow-empty", "-m", "Concurrent update"], + cwd=release_repo, + check=True, + ) + subprocess.run(["git", "push", "origin", branch], cwd=release_repo, check=True) + concurrent_commit = subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=release_repo + ) + create_release_branch(release_repo, "1.35.0") + with pytest.raises(subprocess.CalledProcessError): + push_release_branch(release_repo, "1.35.0", expected) + assert ( + subprocess.check_output( + ["git", "rev-parse", f"refs/heads/{branch}"], cwd=release_remote + ) + == concurrent_commit ) - create_release_branch(pathlib.Path("/repo"), "1.30.0") - assert calls[1] == [ - "git", - "switch", - "--create", - "chore/release-1.30.0", - "origin/main", - ] def test_clean_worktree_rejected(monkeypatch: pytest.MonkeyPatch) -> None: monkeypatch.setattr( subprocess, "run", - lambda *_args, **_kwargs: subprocess.CompletedProcess([], 0, " M file\n"), + lambda *_args, **_kwargs: subprocess.CompletedProcess([], 0, " M file\0"), ) with pytest.raises(RuntimeError, match="clean worktree"): ensure_clean_worktree(pathlib.Path("/repo")) @@ -153,13 +456,25 @@ def test_clean_worktree_rejected(monkeypatch: pytest.MonkeyPatch) -> None: ensure_only_release_changes(pathlib.Path("/repo")) -def test_create_release_pr(monkeypatch: pytest.MonkeyPatch) -> None: +@pytest.mark.parametrize( + "existing_url", ["", "https://github.com/example/repo/pull/123\n"] +) +def test_create_release_pr(monkeypatch: pytest.MonkeyPatch, existing_url: str) -> None: calls: list[list[str]] = [] - monkeypatch.setattr( - subprocess, "run", lambda command, **_kwargs: calls.append(command) - ) + + def run(command: list[str], **_kwargs: object) -> subprocess.CompletedProcess[str]: + calls.append(command) + return subprocess.CompletedProcess(command, 0, existing_url) + + monkeypatch.setattr(subprocess, "run", run) create_release_pr(pathlib.Path("/repo"), "1.30.0") + assert calls[0][:3] == ["gh", "pr", "list"] assert "chore/release-1.30.0" in calls[0] + if existing_url: + assert len(calls) == 1 + else: + assert calls[1][:3] == ["gh", "pr", "create"] + assert calls[1][-2:] == ["--label", "skip-changelog"] def test_push_release_branch(monkeypatch: pytest.MonkeyPatch) -> None: @@ -169,5 +484,12 @@ def test_push_release_branch(monkeypatch: pytest.MonkeyPatch) -> None: ) push_release_branch(pathlib.Path("/repo"), "1.30.0") assert calls == [ - ["git", "push", "--set-upstream", "origin", "chore/release-1.30.0"] + [ + "git", + "push", + "--force-with-lease=refs/heads/chore/release-1.30.0:", + "--set-upstream", + "origin", + "chore/release-1.30.0", + ] ] diff --git a/tests/test_runtime.py b/tests/test_runtime.py index 0eca3edb3..30579121c 100644 --- a/tests/test_runtime.py +++ b/tests/test_runtime.py @@ -1,3 +1,4 @@ +import gc import logging import logging.handlers import queue @@ -144,6 +145,39 @@ async def log_queue_len() -> int: ) +async def test_runtime_log_forwarding_after_client_dropped(env: WorkflowEnvironment): + log_queue: queue.Queue[logging.LogRecord] = queue.Queue() + log_queue_list = cast(list[logging.LogRecord], log_queue.queue) + handler = logging.handlers.QueueHandler(log_queue) + logger = logging.getLogger(f"log-{uuid.uuid4()}") + logger.setLevel(logging.INFO) + + async def log_queue_len() -> int: + return len(log_queue_list) + + runtime = Runtime( + telemetry=TelemetryConfig( + logging=LoggingConfig( + filter=TelemetryFilter(core_level="INFO", other_level="ERROR"), + forwarding=LogForwardingConfig(logger=logger), + ) + ) + ) + + # Every client holds its own handle to the runtime, so dropping one client + # must not stop log forwarding for everything else on the runtime + client = await env.connect_client(runtime=runtime) + del client + gc.collect() + + with LogHandler.apply(logger, handler): + runtime._core_runtime.write_test_info_log("info1", "extra1") + await assert_eq_eventually(1, log_queue_len) + assert log_queue_list[0].message.startswith( + "[sdk_core::temporal_sdk_bridge::runtime] info1" + ) + + def test_runtime_console_logging_format(): config = LoggingConfig(filter="INFO", format=LoggingFormat.JSON)._to_bridge_config() assert config.format == "json" diff --git a/tests/test_serialization_context.py b/tests/test_serialization_context.py index 8d65d5f1f..fb7db6e6e 100644 --- a/tests/test_serialization_context.py +++ b/tests/test_serialization_context.py @@ -23,13 +23,28 @@ from typing_extensions import Never import temporalio.api.common.v1 +import temporalio.api.enums.v1 import temporalio.api.failure.v1 -from temporalio import activity, workflow +import temporalio.api.history.v1 +import temporalio.api.nexus.v1 +import temporalio.api.taskqueue.v1 +import temporalio.api.update.v1 +import temporalio.api.workflowservice.v1 +from temporalio import activity, nexus, workflow from temporalio.client import ( + ActivityFailureError, AsyncActivityHandle, Client, + GetNexusOperationResultInput, + Interceptor, + NexusOperationFailureError, + OutboundInterceptor, + StartWorkflowUpdateInput, WorkflowFailureError, + WorkflowHistory, WorkflowUpdateFailedError, + WorkflowUpdateHandle, + WorkflowUpdateStage, ) from temporalio.common import RetryPolicy from temporalio.contrib.pydantic import PydanticJSONPlainPayloadConverter @@ -40,18 +55,25 @@ DefaultFailureConverter, DefaultPayloadConverter, EncodingPayloadConverter, + ExternalStorage, JSONPlainPayloadConverter, + NexusSerializationContext, PayloadCodec, PayloadConverter, SerializationContext, WithSerializationContext, WorkflowSerializationContext, ) -from temporalio.exceptions import ApplicationError +from temporalio.exceptions import ApplicationError, NexusOperationError from temporalio.testing import WorkflowEnvironment -from temporalio.worker import Worker -from temporalio.worker._workflow_instance import UnsandboxedWorkflowRunner +from temporalio.worker import Replayer, Worker +from temporalio.worker._workflow_instance import ( + UnsandboxedWorkflowRunner, + _WorkflowInstanceImpl, +) +from tests.helpers import assert_eq_eventually from tests.helpers.nexus import make_nexus_endpoint_name +from tests.test_extstore import InMemoryTestDriver @dataclass @@ -188,8 +210,10 @@ async def run(self, data: TraceData) -> TraceData: return data +@pytest.mark.parametrize("use_external_storage", [False, True]) async def test_payload_conversion_calls_follow_expected_sequence_and_contexts( client: Client, + use_external_storage: bool, ): workflow_id = str(uuid.uuid4()) task_queue = str(uuid.uuid4()) @@ -198,6 +222,12 @@ async def test_payload_conversion_calls_follow_expected_sequence_and_contexts( config["data_converter"] = dataclasses.replace( DataConverter.default, payload_converter_class=SerializationContextCompositePayloadConverter, + # External storage must not drop the context + external_storage=( + ExternalStorage(drivers=[InMemoryTestDriver()]) + if use_external_storage + else None + ), ) client = Client(**config) @@ -1320,6 +1350,71 @@ async def test_codec_with_context(client: Client): del test_traces[workflow_id] +async def test_command_context_resolved_only_with_codec_or_external_storage( + client: Client, monkeypatch: pytest.MonkeyPatch +): + """Context resolution calls into the workflow instance, which is costly in the + sandbox, so workers skip it when no codec or external storage can use it.""" + lookups: defaultdict[str, int] = defaultdict(int) + + def count_lookups(name: str) -> None: + lookup = getattr(_WorkflowInstanceImpl, name) + + def counting_lookup(self, command_info): # type: ignore[reportMissingParameterType] + lookups[name] += 1 + return lookup(self, command_info) + + monkeypatch.setattr(_WorkflowInstanceImpl, name, counting_lookup) + + count_lookups("get_serialization_context") + count_lookups("get_external_store_context") + + async def run_workflow(data_converter: DataConverter) -> tuple[int, int]: + """Returns the serialization and external store context lookup counts.""" + lookups.clear() + workflow_id = str(uuid.uuid4()) + task_queue = str(uuid.uuid4()) + client_config = client.config() + client_config["data_converter"] = data_converter + converter_client = Client(**client_config) + async with Worker( + converter_client, + task_queue=task_queue, + workflows=[CodecTestWorkflow], + workflow_runner=UnsandboxedWorkflowRunner(), + ): + await converter_client.execute_workflow( + CodecTestWorkflow.run, + "data", + id=workflow_id, + task_queue=task_queue, + ) + test_traces.pop(workflow_id, None) + return ( + lookups["get_serialization_context"], + lookups["get_external_store_context"], + ) + + assert await run_workflow(DataConverter.default) == (0, 0) + + serialization_lookups, store_lookups = await run_workflow( + dataclasses.replace( + DataConverter.default, payload_codec=PayloadCodecWithContext() + ) + ) + assert serialization_lookups > 0 + assert store_lookups == 0 + + serialization_lookups, store_lookups = await run_workflow( + dataclasses.replace( + DataConverter.default, + external_storage=ExternalStorage(drivers=[InMemoryTestDriver()]), + ) + ) + assert serialization_lookups > 0 + assert store_lookups > 0 + + # Local activity codec test @@ -1688,25 +1783,94 @@ async def test_decode_context_matches_encode_context( # Test nexus payload codec -class AssertNexusLacksContextPayloadCodec(PayloadCodec, WithSerializationContext): - def __init__(self): - self.context = None +class _NexusResultDecodingInterceptor(Interceptor): + def __init__(self) -> None: + super().__init__() + self.decoded_results: list[Any] = [] + + def intercept_client(self, next: OutboundInterceptor) -> OutboundInterceptor: + return _NexusResultDecodingOutboundInterceptor(next, self) + + +class _NexusResultDecodingOutboundInterceptor(OutboundInterceptor): + def __init__( + self, next: OutboundInterceptor, parent: _NexusResultDecodingInterceptor + ) -> None: + super().__init__(next) + self._parent = parent + + async def get_nexus_operation_result( + self, input: GetNexusOperationResultInput + ) -> Any: + result = await super().get_nexus_operation_result(input) + self._parent.decoded_results.append(result) + return result + + +class NexusContextMarkerPayloadCodec(PayloadCodec, WithSerializationContext): + MARKER_KEY = "nexus-context-marker" + + def __init__( + self, + markers: dict[NexusSerializationContext, bytes], + context: SerializationContext | None = None, + ): + self.markers = markers + self.context = context def with_context( self, context: SerializationContext - ) -> AssertNexusLacksContextPayloadCodec: - codec = AssertNexusLacksContextPayloadCodec() - codec.context = context - return codec + ) -> NexusContextMarkerPayloadCodec: + return NexusContextMarkerPayloadCodec(self.markers, context) + + def _marker(self) -> bytes | None: + if not isinstance(self.context, NexusSerializationContext): + return None + try: + return self.markers[self.context] + except KeyError: + raise AssertionError( + f"No Nexus payload codec configured for {self.context!r}" + ) from None - async def _assert_context_iff_not_nexus( + async def encode( self, payloads: Sequence[temporalio.api.common.v1.Payload] ) -> list[temporalio.api.common.v1.Payload]: - [payload] = payloads - assert bool(self.context) == (payload.data.decode() != '"nexus-data"') - return list(payloads) + marker = self._marker() + if marker is None: + return list(payloads) + encoded = [] + for payload in payloads: + marked_payload = temporalio.api.common.v1.Payload() + marked_payload.CopyFrom(payload) + marked_payload.metadata[self.MARKER_KEY] = marker + encoded.append(marked_payload) + return encoded - encode = decode = _assert_context_iff_not_nexus + async def decode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + marker = self._marker() + if marker is None: + # Every reader must decode under the same Nexus context the payload was encoded with + for payload in payloads: + assert self.MARKER_KEY not in payload.metadata, ( + f"payload encoded under a Nexus context was decoded under " + f"{self.context!r}" + ) + return list(payloads) + decoded = [] + for payload in payloads: + actual_marker = payload.metadata.get(self.MARKER_KEY) + if actual_marker is None: + decoded.append(payload) + continue + assert actual_marker == marker + decoded_payload = temporalio.api.common.v1.Payload() + decoded_payload.CopyFrom(payload) + del decoded_payload.metadata[self.MARKER_KEY] + decoded.append(decoded_payload) + return decoded @nexusrpc.handler.service_handler @@ -1717,52 +1881,523 @@ async def operation( ) -> str: return data + @nexusrpc.handler.sync_operation + async def fail(self, _: nexusrpc.handler.StartOperationContext, data: str) -> str: + raise ApplicationError(data, non_retryable=True) + @workflow.defn class NexusOperationTestWorkflow: @workflow.run - async def run(self, _data: str) -> None: + async def run(self, red_endpoint_name: str, blue_endpoint_name: str) -> list[str]: + red_handle, blue_handle = await asyncio.gather( + workflow.create_nexus_client( + service=NexusOperationTestServiceHandler, + endpoint=red_endpoint_name, + ).start_operation( + NexusOperationTestServiceHandler.operation, + input="nexus-data", + summary="nexus-summary", + ), + workflow.create_nexus_client( + service=NexusOperationTestServiceHandler, + endpoint=blue_endpoint_name, + ).start_operation( + NexusOperationTestServiceHandler.operation, + input="nexus-data", + summary="nexus-summary", + ), + ) + return list(await asyncio.gather(red_handle, blue_handle)) + + +@workflow.defn +class NexusOperationFailureTestWorkflow: + @workflow.run + async def run(self, endpoint_name: str) -> None: nexus_client = workflow.create_nexus_client( service=NexusOperationTestServiceHandler, - endpoint=make_nexus_endpoint_name(workflow.info().task_queue), + endpoint=endpoint_name, ) - await nexus_client.start_operation( - NexusOperationTestServiceHandler.operation, input="nexus-data" + try: + await nexus_client.start_operation( + NexusOperationTestServiceHandler.fail, input="nexus-failure" + ) + except NexusOperationError: + return + raise AssertionError("Nexus operation should have failed") + + +nexus_failure_context_traces: list[tuple[str, NexusSerializationContext]] = [] + + +class NexusFailureConverterWithContext( + DefaultFailureConverter, WithSerializationContext +): + def __init__(self, context: SerializationContext | None = None): + super().__init__() + self.context = context + + def with_context( + self, context: SerializationContext + ) -> NexusFailureConverterWithContext: + return NexusFailureConverterWithContext(context) + + def to_failure( + self, + exception: BaseException, + payload_converter: PayloadConverter, + failure: temporalio.api.failure.v1.Failure, + ) -> None: + if isinstance(self.context, NexusSerializationContext): + nexus_failure_context_traces.append(("to_failure", self.context)) + super().to_failure(exception, payload_converter, failure) + + def from_failure( + self, + failure: temporalio.api.failure.v1.Failure, + payload_converter: PayloadConverter, + ) -> BaseException: + if isinstance(self.context, NexusSerializationContext): + nexus_failure_context_traces.append(("from_failure", self.context)) + return super().from_failure(failure, payload_converter) + + +@pytest.mark.requires_local_server +async def test_workflow_nexus_payload_codec_receives_context( + env: WorkflowEnvironment, +): + """Nexus payload codecs get context for workflow inputs, summaries, and results.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + task_queue = "workflow-nexus-context-codec-task-queue" + red_endpoint_name = "workflow-red-nexus-endpoint" + blue_endpoint_name = "workflow-blue-nexus-endpoint" + red_context = NexusSerializationContext( + endpoint=red_endpoint_name, + service="NexusOperationTestServiceHandler", + operation="operation", + ) + blue_context = NexusSerializationContext( + endpoint=blue_endpoint_name, + service="NexusOperationTestServiceHandler", + operation="operation", + ) + payload_codec = NexusContextMarkerPayloadCodec( + {red_context: b"red", blue_context: b"blue"} + ) + config = env.client.config() + config["data_converter"] = dataclasses.replace( + DataConverter.default, + payload_codec=payload_codec, + ) + client = Client(**config) + + async with Worker( + client, + task_queue=task_queue, + workflows=[NexusOperationTestWorkflow], + nexus_service_handlers=[NexusOperationTestServiceHandler()], + ) as worker: + await env.create_nexus_endpoint(red_endpoint_name, worker.task_queue) + await env.create_nexus_endpoint(blue_endpoint_name, worker.task_queue) + handle = await client.start_workflow( + NexusOperationTestWorkflow.run, + args=[red_endpoint_name, blue_endpoint_name], + id=str(uuid.uuid4()), + task_queue=worker.task_queue, ) + assert await handle.result() == ["nexus-data", "nexus-data"] + + history = await handle.fetch_history() + scheduled_endpoints: dict[int, str] = {} + encoded_summaries: dict[str, temporalio.api.common.v1.Payload] = {} + encoded_results: dict[str, temporalio.api.common.v1.Payload] = {} + for event in history.events: + if event.HasField("nexus_operation_scheduled_event_attributes"): + scheduled_attrs = event.nexus_operation_scheduled_event_attributes + assert scheduled_attrs.service == "NexusOperationTestServiceHandler" + assert scheduled_attrs.operation == "operation" + scheduled_endpoints[event.event_id] = scheduled_attrs.endpoint + assert event.HasField("user_metadata") + assert event.user_metadata.HasField("summary") + encoded_summaries[scheduled_attrs.endpoint] = ( + event.user_metadata.summary + ) + elif event.HasField("nexus_operation_completed_event_attributes"): + completed_attrs = event.nexus_operation_completed_event_attributes + endpoint = scheduled_endpoints[completed_attrs.scheduled_event_id] + encoded_results[endpoint] = completed_attrs.result + assert set(scheduled_endpoints.values()) == { + red_endpoint_name, + blue_endpoint_name, + } + assert { + endpoint: payload.metadata[NexusContextMarkerPayloadCodec.MARKER_KEY] + for endpoint, payload in encoded_summaries.items() + } == { + red_endpoint_name: b"red", + blue_endpoint_name: b"blue", + } + assert { + endpoint: payload.metadata[NexusContextMarkerPayloadCodec.MARKER_KEY] + for endpoint, payload in encoded_results.items() + } == { + red_endpoint_name: b"red", + blue_endpoint_name: b"blue", + } + + scheduled_contexts: dict[int, NexusSerializationContext] = {} + for event in history.events: + if event.HasField("nexus_operation_scheduled_event_attributes"): + scheduled_attrs = event.nexus_operation_scheduled_event_attributes + context = NexusSerializationContext( + endpoint=scheduled_attrs.endpoint, + service=scheduled_attrs.service, + operation=scheduled_attrs.operation, + ) + scheduled_contexts[event.event_id] = context + [decoded] = await payload_codec.with_context(context).decode( + [scheduled_attrs.input] + ) + scheduled_attrs.input.CopyFrom(decoded) + [decoded] = await payload_codec.with_context(context).decode( + [event.user_metadata.summary] + ) + event.user_metadata.summary.CopyFrom(decoded) + elif event.HasField("nexus_operation_completed_event_attributes"): + completed_attrs = event.nexus_operation_completed_event_attributes + context = scheduled_contexts[completed_attrs.scheduled_event_id] + [decoded] = await payload_codec.with_context(context).decode( + [completed_attrs.result] + ) + completed_attrs.result.CopyFrom(decoded) + await Replayer( + workflows=[NexusOperationTestWorkflow], + data_converter=config["data_converter"], + ).replay_workflow(history) @pytest.mark.requires_local_server -async def test_nexus_payload_codec_operations_lack_context( +async def test_standalone_nexus_handle_obtained_by_id_uses_server_context( env: WorkflowEnvironment, ): + """A handle obtained by operation ID alone decodes its result with the context the server + returns, since it never issued a start request to build a context from. """ - encode() and decode() on nexus payloads should not have any context set. - """ - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work with the Java test server") + task_queue = "standalone-nexus-detached-handle-task-queue" + endpoint_name = f"standalone-detached-nexus-endpoint-{uuid.uuid4()}" + context = NexusSerializationContext( + endpoint=endpoint_name, + service="NexusOperationTestServiceHandler", + operation="operation", + ) config = env.client.config() config["data_converter"] = dataclasses.replace( DataConverter.default, - payload_codec=AssertNexusLacksContextPayloadCodec(), + payload_codec=NexusContextMarkerPayloadCodec({context: b"detached"}), ) client = Client(**config) async with Worker( client, - task_queue=str(uuid.uuid4()), - workflows=[NexusOperationTestWorkflow], + task_queue=task_queue, + nexus_service_handlers=[NexusOperationTestServiceHandler()], + ) as worker: + await env.create_nexus_endpoint(endpoint_name, worker.task_queue) + operation_id = str(uuid.uuid4()) + started = await client.create_nexus_client( + service=NexusOperationTestServiceHandler, + endpoint=endpoint_name, + ).start_operation( + NexusOperationTestServiceHandler.operation, + "detached", + id=operation_id, + schedule_to_close_timeout=timedelta(seconds=10), + ) + assert await started.result() == "detached" + + # The strict codec rejects a marked result decoded without the operation's context + detached = client.get_nexus_operation_handle(operation_id, result_type=str) + assert await detached.result() == "detached" + + +@pytest.mark.requires_local_server +async def test_standalone_nexus_payload_codec_receives_context( + env: WorkflowEnvironment, +): + """Nexus payload codecs get context for standalone inputs and results.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + task_queue = "standalone-nexus-context-codec-task-queue" + red_endpoint_name = "standalone-red-nexus-endpoint" + blue_endpoint_name = "standalone-blue-nexus-endpoint" + red_context = NexusSerializationContext( + endpoint=red_endpoint_name, + service="NexusOperationTestServiceHandler", + operation="operation", + ) + blue_context = NexusSerializationContext( + endpoint=blue_endpoint_name, + service="NexusOperationTestServiceHandler", + operation="operation", + ) + config = env.client.config() + config["data_converter"] = dataclasses.replace( + DataConverter.default, + payload_codec=NexusContextMarkerPayloadCodec( + {red_context: b"red", blue_context: b"blue"} + ), + ) + result_interceptor = _NexusResultDecodingInterceptor() + config["interceptors"] = list(config.get("interceptors") or []) + [ + result_interceptor + ] + client = Client(**config) + + async with Worker( + client, + task_queue=task_queue, + nexus_service_handlers=[NexusOperationTestServiceHandler()], + ) as worker: + await env.create_nexus_endpoint(red_endpoint_name, worker.task_queue) + await env.create_nexus_endpoint(blue_endpoint_name, worker.task_queue) + red_standalone_result, blue_standalone_result = await asyncio.gather( + client.create_nexus_client( + service=NexusOperationTestServiceHandler, + endpoint=red_endpoint_name, + ).execute_operation( + NexusOperationTestServiceHandler.operation, + "standalone-red", + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=10), + ), + client.create_nexus_client( + service=NexusOperationTestServiceHandler, + endpoint=blue_endpoint_name, + ).execute_operation( + NexusOperationTestServiceHandler.operation, + "standalone-blue", + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=10), + ), + ) + assert red_standalone_result == "standalone-red" + assert blue_standalone_result == "standalone-blue" + assert set(result_interceptor.decoded_results) == { + "standalone-red", + "standalone-blue", + } + + +@pytest.mark.requires_local_server +async def test_workflow_nexus_failure_converter_has_context( + env: WorkflowEnvironment, +): + """Workflow Nexus callers and handlers use context for failures.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + nexus_failure_context_traces.clear() + task_queue = "workflow-nexus-failure-context-task-queue" + endpoint_name = "workflow-failure-nexus-endpoint" + expected_context = NexusSerializationContext( + endpoint=endpoint_name, + service="NexusOperationTestServiceHandler", + operation="fail", + ) + config = env.client.config() + config["data_converter"] = dataclasses.replace( + DataConverter.default, + failure_converter_class=NexusFailureConverterWithContext, + ) + client = Client(**config) + + async with Worker( + client, + task_queue=task_queue, + workflows=[NexusOperationFailureTestWorkflow], nexus_service_handlers=[NexusOperationTestServiceHandler()], + workflow_runner=UnsandboxedWorkflowRunner(), ) as worker: - endpoint_name = make_nexus_endpoint_name(worker.task_queue) await env.create_nexus_endpoint(endpoint_name, worker.task_queue) await client.execute_workflow( - NexusOperationTestWorkflow.run, - "workflow-data", + NexusOperationFailureTestWorkflow.run, + endpoint_name, id=str(uuid.uuid4()), task_queue=worker.task_queue, ) + assert ("to_failure", expected_context) in nexus_failure_context_traces + assert ("from_failure", expected_context) in nexus_failure_context_traces + + +class NexusContextRequiringPayloadCodec(PayloadCodec, WithSerializationContext): + """Marks payloads it encodes under a Nexus context and requires that mark back on decode. + + Stands in for a codec keyed on the context, such as one deriving an encryption key from it: + such a codec cannot recover a payload whose two halves were converted under different + contexts. Raising in both directions catches a mismatch either way round. The leniency in + :py:class:`NexusContextMarkerPayloadCodec` deliberately tolerates such a mismatch, so it + cannot detect this. + """ + + MARKER_KEY = "nexus-context-required-marker" + + def __init__(self, context: SerializationContext | None = None): + self.context = context + + def with_context( + self, context: SerializationContext + ) -> NexusContextRequiringPayloadCodec: + return NexusContextRequiringPayloadCodec(context) + + def _nexus_context(self) -> NexusSerializationContext | None: + return ( + self.context + if isinstance(self.context, NexusSerializationContext) + else None + ) + + async def encode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + context = self._nexus_context() + if context is None: + return list(payloads) + encoded = [] + for payload in payloads: + marked = temporalio.api.common.v1.Payload() + marked.CopyFrom(payload) + marked.metadata[self.MARKER_KEY] = b"1" + encoded.append(marked) + return encoded + + async def decode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + context = self._nexus_context() + decoded = [] + for payload in payloads: + marked = self.MARKER_KEY in payload.metadata + if context is None: + if marked: + raise RuntimeError( + "payload encoded under a Nexus context was decoded without one" + ) + decoded.append(payload) + continue + if not marked: + raise RuntimeError( + f"payload encoded without a Nexus context was decoded under {context!r}" + ) + stripped = temporalio.api.common.v1.Payload() + stripped.CopyFrom(payload) + del stripped.metadata[self.MARKER_KEY] + decoded.append(stripped) + return decoded + + +@pytest.mark.requires_local_server +async def test_standalone_nexus_describe_reads_metadata_with_context( + env: WorkflowEnvironment, +): + """A description reads back the summary the start request attached. + + A Nexus operation's user metadata is serialized with the operation's context, the same way + workflow and activity user metadata is serialized with theirs. Encoding and decoding it under + different contexts does not round-trip for a converter that varies by context. + """ + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + task_queue = "standalone-nexus-describe-metadata-task-queue" + endpoint_name = "standalone-describe-metadata-nexus-endpoint" + config = env.client.config() + config["data_converter"] = dataclasses.replace( + DataConverter.default, + payload_codec=NexusContextRequiringPayloadCodec(), + ) + client = Client(**config) + + async with Worker( + client, + task_queue=task_queue, + nexus_service_handlers=[NexusOperationTestServiceHandler()], + ) as worker: + await env.create_nexus_endpoint(endpoint_name, worker.task_queue) + nexus_client = client.create_nexus_client( + service=NexusOperationTestServiceHandler, + endpoint=endpoint_name, + ) + operation_handle = await nexus_client.start_operation( + NexusOperationTestServiceHandler.operation, + "describe-metadata", + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=10), + summary="the-summary", + ) + assert await operation_handle.result() == "describe-metadata" + + description = await operation_handle.describe() + assert await description.static_summary() == "the-summary" + + +@pytest.mark.requires_local_server +async def test_standalone_nexus_failure_converter_has_context( + env: WorkflowEnvironment, +): + """Standalone Nexus callers and handlers use context for failures.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + nexus_failure_context_traces.clear() + task_queue = "standalone-nexus-failure-context-task-queue" + endpoint_name = "standalone-failure-nexus-endpoint" + expected_context = NexusSerializationContext( + endpoint=endpoint_name, + service="NexusOperationTestServiceHandler", + operation="fail", + ) + config = env.client.config() + config["data_converter"] = dataclasses.replace( + DataConverter.default, + failure_converter_class=NexusFailureConverterWithContext, + ) + client = Client(**config) + + async with Worker( + client, + task_queue=task_queue, + nexus_service_handlers=[NexusOperationTestServiceHandler()], + ) as worker: + await env.create_nexus_endpoint(endpoint_name, worker.task_queue) + nexus_client = client.create_nexus_client( + service=NexusOperationTestServiceHandler, + endpoint=endpoint_name, + ) + operation_handle = await nexus_client.start_operation( + NexusOperationTestServiceHandler.fail, + "nexus-failure", + id=str(uuid.uuid4()), + schedule_to_close_timeout=timedelta(seconds=10), + ) + with pytest.raises(NexusOperationFailureError): + await operation_handle.result() + + assert ("to_failure", expected_context) in nexus_failure_context_traces + assert ("from_failure", expected_context) in nexus_failure_context_traces + + nexus_failure_context_traces.clear() + description = await operation_handle.describe() + assert description.last_attempt_failure is not None + assert ("from_failure", expected_context) in nexus_failure_context_traces + # Test pydantic converter with context @@ -1917,3 +2552,884 @@ async def test_user_customization_of_default_payload_converter( id=wf_id, task_queue=task_queue, ) + + +class _ContextRecordingCodec(PayloadCodec, WithSerializationContext): + """Records the serialization context it is handed, so a test can assert which one was used.""" + + def __init__( + self, + seen: list[SerializationContext | None], + context: SerializationContext | None = None, + ): + self.seen = seen + self.context = context + + def with_context(self, context: SerializationContext) -> _ContextRecordingCodec: + return _ContextRecordingCodec(self.seen, context) + + async def encode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + self.seen.append(self.context) + return list(payloads) + + async def decode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + self.seen.append(self.context) + return list(payloads) + + +def _nexus_worker_with_recording_codec(seen: list[SerializationContext | None]): + """A _NexusWorker with just enough wired up to call _data_converter_for_nexus_task.""" + from unittest import mock + + from temporalio.worker._nexus import _NexusWorker + + return _NexusWorker( + bridge_worker=lambda: mock.MagicMock(), + client=mock.MagicMock(namespace="ns"), + namespace="ns", + task_queue="tq", + service_handlers=[NexusOperationTestServiceHandler()], + data_converter=dataclasses.replace( + DataConverter.default, payload_codec=_ContextRecordingCodec(seen) + ), + interceptors=[], + metric_meter=mock.MagicMock(), + executor=None, + ) + + +async def _encode_through_codec(data_converter: DataConverter) -> None: + """Drive the converter's codec so it records the context it was scoped to.""" + assert data_converter.payload_codec is not None + await data_converter.payload_codec.encode([]) + + +async def test_nexus_worker_task_without_endpoint_is_scoped_by_an_empty_endpoint(): + """Servers before 1.30.0 do not report the endpoint a task was addressed to. + + The task is still scoped by service and operation, with an empty endpoint. It will not agree + with the caller, which scoped by the real endpoint, but it is a Nexus context rather than an + absent one. + """ + seen: list[SerializationContext | None] = [] + worker = _nexus_worker_with_recording_codec(seen) + + await _encode_through_codec( + worker._data_converter_for_nexus_task("", "Service", "operation") + ) + assert seen == [ + NexusSerializationContext(endpoint="", service="Service", operation="operation") + ] + + other_seen: list[SerializationContext | None] = [] + other = _nexus_worker_with_recording_codec(other_seen) + await _encode_through_codec( + other._data_converter_for_nexus_task("endpoint", "Service", "operation") + ) + assert other_seen == [ + NexusSerializationContext( + endpoint="endpoint", service="Service", operation="operation" + ) + ] + + +@dataclass +class NexusStartedInput: + id: str + value: str + outcome: Literal["result", "failure", "continue_as_new", "async"] = "result" + + +@workflow.defn +class NexusStartedWorkflow: + @workflow.run + async def run(self, input: NexusStartedInput) -> str: + if input.outcome == "continue_as_new": + workflow.continue_as_new(dataclasses.replace(input, outcome="result")) + if input.outcome == "failure": + raise ApplicationError( + "nexus-started-failure", "failure-detail", non_retryable=True + ) + return input.value + + +@workflow.defn +class NexusRetriedWorkflow: + @workflow.run + async def run(self, input: NexusStartedInput) -> str: + if workflow.info().attempt == 1: + raise ApplicationError("retry", "retry-detail") + last_failure = workflow.get_last_failure() + assert isinstance(last_failure, ApplicationError) + return f"{input.value}:{last_failure.details[0]}" + + +nexus_started_activity_contexts: list[NexusSerializationContext | None] = [] +nexus_started_async_completions: list[ + tuple[bytes, NexusSerializationContext | None] +] = [] + + +@activity.defn +async def nexus_started_activity(input: NexusStartedInput) -> str: + info = activity.info() + nexus_started_activity_contexts.append(info.nexus_serialization_context) + if input.outcome == "failure": + raise ApplicationError( + "nexus-started-failure", "failure-detail", non_retryable=True + ) + if input.outcome == "async": + nexus_started_async_completions.append( + (info.task_token, info.nexus_serialization_context) + ) + activity.raise_complete_async() + if info.attempt == 1: + # The next attempt decodes these details with the same context + activity.heartbeat("heartbeat-detail") + raise ApplicationError("retry") + assert list(info.heartbeat_details) == ["heartbeat-detail"] + return input.value + + +@dataclass +class NexusUpdateInput: + workflow_id: str + update_id: str + value: Literal["result", "failure", "rejection"] + + +@workflow.defn +class NexusUpdatedWorkflow: + def __init__(self) -> None: + self.finished = False + + @workflow.run + async def run(self) -> None: + await workflow.wait_condition(lambda: self.finished) + + @workflow.update + async def update(self, value: str) -> str: + if value == "failure": + raise ApplicationError( + "nexus-update-failure", "failure-detail", non_retryable=True + ) + return value + + @update.validator + def validate_update(self, value: str) -> None: + if value == "rejection": + raise ApplicationError("nexus-update-rejection", "rejection-detail") + + @workflow.signal + def finish(self) -> None: + self.finished = True + + +@nexusrpc.handler.service_handler +class NexusStartedExecutionHandler: + @nexus.temporal_operation + async def update_workflow( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: NexusUpdateInput, + ) -> nexus.TemporalOperationResult[str]: + return await client.start_workflow_update( + input.workflow_id, + NexusUpdatedWorkflow.update, + input.value, + wait_for_stage=WorkflowUpdateStage.ACCEPTED, + update_id=input.update_id, + ) + + @nexus.temporal_operation + async def start_workflow( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: NexusStartedInput, + ) -> nexus.TemporalOperationResult[str]: + return await client.start_workflow(NexusStartedWorkflow.run, input, id=input.id) + + @nexus.temporal_operation + async def start_retried_workflow( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: NexusStartedInput, + ) -> nexus.TemporalOperationResult[str]: + return await client.start_workflow( + NexusRetriedWorkflow.run, + input, + id=input.id, + retry_policy=RetryPolicy( + initial_interval=timedelta(milliseconds=100), maximum_attempts=2 + ), + ) + + @nexus.temporal_operation + async def start_activity( + self, + _ctx: nexus.TemporalStartOperationContext, + client: nexus.TemporalNexusClient, + input: NexusStartedInput, + ) -> nexus.TemporalOperationResult[str]: + return await client.start_activity( + nexus_started_activity, + input, + id=input.id, + start_to_close_timeout=timedelta(seconds=10), + retry_policy=RetryPolicy( + initial_interval=timedelta(milliseconds=100), maximum_attempts=2 + ), + ) + + +def _nexus_started_context( + endpoint_name: str, operation: str +) -> NexusSerializationContext: + return NexusSerializationContext( + endpoint=endpoint_name, + service="NexusStartedExecutionHandler", + operation=operation, + ) + + +def _nexus_started_client( + env: WorkflowEnvironment, context: NexusSerializationContext +) -> Client: + config = env.client.config() + config["data_converter"] = dataclasses.replace( + DataConverter.default, + payload_codec=NexusContextMarkerPayloadCodec({context: b"nexus"}), + ) + return Client(**config) + + +def _marker(payload: temporalio.api.common.v1.Payload) -> bytes | None: + return payload.metadata.get(NexusContextMarkerPayloadCodec.MARKER_KEY) + + +async def test_workflow_result_keeps_nexus_context_across_history_pages(): + """The server may omit the context on later history pages, such as the page holding the + close event after a long poll times out with no events.""" + from unittest import mock + + context = NexusSerializationContext( + endpoint="endpoint", service="service", operation="operation" + ) + result = temporalio.api.common.v1.Payload( + metadata={ + "encoding": b"json/plain", + NexusContextMarkerPayloadCodec.MARKER_KEY: b"nexus", + }, + data=b'"nexus-value"', + ) + first_page = temporalio.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse( + next_page_token=b"next-page", + propagated_nexus_serialization_context=temporalio.api.nexus.v1.PropagatedSerializationContext( + endpoint=context.endpoint, + service=context.service, + operation=context.operation, + ), + ) + close_page = temporalio.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse( + history=temporalio.api.history.v1.History( + events=[ + temporalio.api.history.v1.HistoryEvent( + workflow_execution_completed_event_attributes=temporalio.api.history.v1.WorkflowExecutionCompletedEventAttributes( + result=temporalio.api.common.v1.Payloads(payloads=[result]) + ) + ) + ] + ) + ) + service_client = mock.MagicMock() + service_client.workflow_service.get_workflow_execution_history = mock.AsyncMock( + side_effect=[first_page, close_page] + ) + client = Client( + service_client, + data_converter=dataclasses.replace( + DataConverter.default, + payload_codec=NexusContextMarkerPayloadCodec({context: b"nexus"}), + ), + ) + + assert ( + await client.get_workflow_handle("workflow-id", result_type=str).result() + == "nexus-value" + ) + + +@pytest.mark.requires_local_server +@pytest.mark.parametrize("outcome", ["result", "failure", "continue_as_new"]) +async def test_nexus_started_workflow_uses_nexus_context( + env: WorkflowEnvironment, + outcome: Literal["result", "failure", "continue_as_new"], +): + """A workflow started by a Nexus handler encodes its result and closing failure with the + handler's context, and clients decode them with the context the server returns.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + context = _nexus_started_context(endpoint_name, "start_workflow") + client = _nexus_started_client(env, context) + workflow_id = f"nexus-started-workflow-{uuid.uuid4()}" + + async with Worker( + client, + task_queue=task_queue, + workflows=[NexusStartedWorkflow], + nexus_service_handlers=[NexusStartedExecutionHandler()], + ): + await env.create_nexus_endpoint(endpoint_name, task_queue) + nexus_client = client.create_nexus_client( + NexusStartedExecutionHandler, endpoint_name + ) + input = NexusStartedInput(id=workflow_id, value="nexus-value", outcome=outcome) + # This handle never started the workflow, so it relies on the context the server + # returns, including for the run after continue-as-new + handle = client.get_workflow_handle(workflow_id, result_type=str) + if outcome == "failure": + with pytest.raises(NexusOperationFailureError): + await nexus_client.execute_operation( + NexusStartedExecutionHandler.start_workflow, + input, + id=str(uuid.uuid4()), + ) + with pytest.raises(WorkflowFailureError) as err: + await handle.result() + assert isinstance(err.value.cause, ApplicationError) + assert err.value.cause.details == ("failure-detail",) + else: + assert ( + await nexus_client.execute_operation( + NexusStartedExecutionHandler.start_workflow, + input, + id=str(uuid.uuid4()), + ) + == "nexus-value" + ) + assert await handle.result() == "nexus-value" + + history = await handle.fetch_history() + started = history.events[0].workflow_execution_started_event_attributes + assert ( + started.propagated_nexus_serialization_context + == temporalio.api.nexus.v1.PropagatedSerializationContext( + endpoint=context.endpoint, + service=context.service, + operation=context.operation, + ) + ) + # The input keeps the workflow context + assert all(_marker(p) is None for p in started.input.payloads) + close_event = history.events[-1] + if outcome == "failure": + failure = close_event.workflow_execution_failed_event_attributes.failure + [detail] = failure.application_failure_info.details.payloads + assert _marker(detail) == b"nexus" + else: + [result] = ( + close_event.workflow_execution_completed_event_attributes.result.payloads + ) + assert _marker(result) == b"nexus" + + +@pytest.mark.requires_local_server +async def test_nexus_started_workflow_retry_reads_last_failure_with_nexus_context( + env: WorkflowEnvironment, +): + """The retried run decodes the failure the previous run encoded with the Nexus context.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + client = _nexus_started_client( + env, _nexus_started_context(endpoint_name, "start_retried_workflow") + ) + + async with Worker( + client, + task_queue=task_queue, + workflows=[NexusRetriedWorkflow], + nexus_service_handlers=[NexusStartedExecutionHandler()], + ): + await env.create_nexus_endpoint(endpoint_name, task_queue) + nexus_client = client.create_nexus_client( + NexusStartedExecutionHandler, endpoint_name + ) + # Decoding with the wrong context fails every workflow task of the retried run, which + # never completes + result = await asyncio.wait_for( + nexus_client.execute_operation( + NexusStartedExecutionHandler.start_retried_workflow, + NexusStartedInput( + id=f"nexus-retried-workflow-{uuid.uuid4()}", value="nexus-value" + ), + id=str(uuid.uuid4()), + ), + timeout=30, + ) + assert result == "nexus-value:retry-detail" + + +class _DecodeRecordingPayloadCodec(PayloadCodec, WithSerializationContext): + """Records the context each payload's data is decoded with.""" + + def __init__( + self, + seen: dict[bytes, SerializationContext | None], + context: SerializationContext | None = None, + ): + self.seen = seen + self.context = context + + def with_context( + self, context: SerializationContext + ) -> _DecodeRecordingPayloadCodec: + return _DecodeRecordingPayloadCodec(self.seen, context) + + async def encode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + return list(payloads) + + async def decode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + for payload in payloads: + self.seen[payload.data] = self.context + return list(payloads) + + +previous_run_converter_contexts: dict[Any, SerializationContext | None] = {} + + +class _FromPayloadRecordingJSONConverter( + JSONPlainPayloadConverter, WithSerializationContext +): + """Records the context each JSON value is converted with.""" + + def __init__(self, context: SerializationContext | None = None): + super().__init__() + self.context = context + + def with_context( + self, context: SerializationContext + ) -> _FromPayloadRecordingJSONConverter: + return _FromPayloadRecordingJSONConverter(context) + + def from_payload( + self, + payload: temporalio.api.common.v1.Payload, + type_hint: type | None = None, + ) -> Any: + value = super().from_payload(payload, type_hint) + previous_run_converter_contexts[value] = self.context + return value + + +class _FromPayloadRecordingPayloadConverter( + CompositePayloadConverter, WithSerializationContext +): + def __init__(self): + super().__init__(_FromPayloadRecordingJSONConverter()) + + +@workflow.defn +class PreviousRunOutcomeWorkflow: + @workflow.run + async def run(self, _input: str) -> None: + workflow.get_last_completion_result() + workflow.get_last_failure() + + +def _json_payload(value: str) -> temporalio.api.common.v1.Payload: + return temporalio.api.common.v1.Payload( + metadata={"encoding": b"json/plain"}, data=json.dumps(value).encode() + ) + + +@pytest.mark.parametrize("with_nexus_context", [True, False]) +async def test_previous_run_outcome_decodes_with_nexus_context( + with_nexus_context: bool, +): + """A retried or cron run decodes the previous run's failure and result with the Nexus context + when the workflow was started by a Nexus handler, and its input and memo with the workflow + context.""" + nexus_context = NexusSerializationContext( + endpoint="endpoint", service="service", operation="operation" + ) + started = temporalio.api.history.v1.WorkflowExecutionStartedEventAttributes( + workflow_type=temporalio.api.common.v1.WorkflowType( + name="PreviousRunOutcomeWorkflow" + ), + task_queue=temporalio.api.taskqueue.v1.TaskQueue(name="task-queue"), + input=temporalio.api.common.v1.Payloads(payloads=[_json_payload("input")]), + memo=temporalio.api.common.v1.Memo( + fields={"memo-key": _json_payload("memo-value")} + ), + continued_failure=temporalio.api.failure.v1.Failure( + message="previous-failure", + application_failure_info=temporalio.api.failure.v1.ApplicationFailureInfo( + details=temporalio.api.common.v1.Payloads( + payloads=[_json_payload("previous-failure-detail")] + ) + ), + ), + last_completion_result=temporalio.api.common.v1.Payloads( + payloads=[_json_payload("previous-result")] + ), + attempt=2, + ) + if with_nexus_context: + started.propagated_nexus_serialization_context.CopyFrom( + temporalio.api.nexus.v1.PropagatedSerializationContext( + endpoint=nexus_context.endpoint, + service=nexus_context.service, + operation=nexus_context.operation, + ) + ) + history = WorkflowHistory( + workflow_id="workflow-id", + events=[ + temporalio.api.history.v1.HistoryEvent( + event_id=1, + event_type=temporalio.api.enums.v1.EventType.EVENT_TYPE_WORKFLOW_EXECUTION_STARTED, + workflow_execution_started_event_attributes=started, + ), + temporalio.api.history.v1.HistoryEvent( + event_id=2, + event_type=temporalio.api.enums.v1.EventType.EVENT_TYPE_WORKFLOW_TASK_SCHEDULED, + workflow_task_scheduled_event_attributes=temporalio.api.history.v1.WorkflowTaskScheduledEventAttributes(), + ), + temporalio.api.history.v1.HistoryEvent( + event_id=3, + event_type=temporalio.api.enums.v1.EventType.EVENT_TYPE_WORKFLOW_TASK_STARTED, + workflow_task_started_event_attributes=temporalio.api.history.v1.WorkflowTaskStartedEventAttributes( + scheduled_event_id=2 + ), + ), + ], + ) + for event in history.events: + event.event_time.FromSeconds(1_700_000_000) + codec_contexts: dict[bytes, SerializationContext | None] = {} + previous_run_converter_contexts.clear() + + await Replayer( + workflows=[PreviousRunOutcomeWorkflow], + data_converter=DataConverter( + payload_converter_class=_FromPayloadRecordingPayloadConverter, + payload_codec=_DecodeRecordingPayloadCodec(codec_contexts), + ), + workflow_runner=UnsandboxedWorkflowRunner(), + ).replay_workflow(history) + + previous_run_context_type = ( + NexusSerializationContext + if with_nexus_context + else WorkflowSerializationContext + ) + for value in ["previous-failure-detail", "previous-result"]: + assert isinstance( + codec_contexts[json.dumps(value).encode()], previous_run_context_type + ) + assert isinstance( + previous_run_converter_contexts[value], previous_run_context_type + ) + if with_nexus_context: + assert codec_contexts[b'"previous-result"'] == nexus_context + assert previous_run_converter_contexts["previous-result"] == nexus_context + for value in ["input", "memo-value"]: + assert isinstance( + codec_contexts[json.dumps(value).encode()], WorkflowSerializationContext + ) + assert isinstance( + previous_run_converter_contexts["input"], WorkflowSerializationContext + ) + + +@pytest.mark.requires_local_server +async def test_nexus_started_activity_uses_nexus_context(env: WorkflowEnvironment): + """A standalone activity started by a Nexus handler encodes its result, failures and + heartbeat details with the handler's context, and clients decode them with the context the + server returns.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + context = _nexus_started_context(endpoint_name, "start_activity") + client = _nexus_started_client(env, context) + activity_id = f"nexus-started-activity-{uuid.uuid4()}" + nexus_started_activity_contexts.clear() + + async with Worker( + client, + task_queue=task_queue, + activities=[nexus_started_activity], + nexus_service_handlers=[NexusStartedExecutionHandler()], + ): + await env.create_nexus_endpoint(endpoint_name, task_queue) + result = await client.create_nexus_client( + NexusStartedExecutionHandler, endpoint_name + ).execute_operation( + NexusStartedExecutionHandler.start_activity, + NexusStartedInput(id=activity_id, value="nexus-value"), + id=str(uuid.uuid4()), + ) + assert result == "nexus-value" + # Both attempts saw the context, and the second decoded the first's heartbeat details + assert nexus_started_activity_contexts == [context, context] + + handle = client.get_activity_handle(activity_id, result_type=str) + assert await handle.result() == "nexus-value" + desc = await handle.describe( + include_outcome=True, + include_heartbeat_details=True, + include_last_failure=True, + ) + assert await desc.result(str) == "nexus-value" + assert await desc.heartbeat_details() == ["heartbeat-detail"] + assert isinstance(await desc.last_failure(), ApplicationError) + assert desc.raw_outcome is not None + assert _marker(desc.raw_outcome.result.payloads[0]) == b"nexus" + assert _marker(desc.raw_info.heartbeat_details.payloads[0]) == b"nexus" + + +@pytest.mark.requires_local_server +async def test_nexus_started_activity_failure_uses_nexus_context( + env: WorkflowEnvironment, +): + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + client = _nexus_started_client( + env, _nexus_started_context(endpoint_name, "start_activity") + ) + activity_id = f"nexus-started-activity-{uuid.uuid4()}" + + async with Worker( + client, + task_queue=task_queue, + activities=[nexus_started_activity], + nexus_service_handlers=[NexusStartedExecutionHandler()], + ): + await env.create_nexus_endpoint(endpoint_name, task_queue) + with pytest.raises(NexusOperationFailureError): + await client.create_nexus_client( + NexusStartedExecutionHandler, endpoint_name + ).execute_operation( + NexusStartedExecutionHandler.start_activity, + NexusStartedInput(id=activity_id, value="", outcome="failure"), + id=str(uuid.uuid4()), + ) + + handle = client.get_activity_handle(activity_id, result_type=str) + with pytest.raises(ActivityFailureError) as err: + await handle.result() + assert isinstance(err.value.cause, ApplicationError) + assert err.value.cause.details == ("failure-detail",) + desc = await handle.describe(include_outcome=True) + outcome_failure = await desc.outcome_failure() + assert isinstance(outcome_failure, ApplicationError) + assert outcome_failure.details == ("failure-detail",) + + +@pytest.mark.requires_local_server +async def test_nexus_started_activity_async_completion_with_context( + env: WorkflowEnvironment, +): + """An activity started by a Nexus handler and completed asynchronously uses the context the + completing client passes in from the activity info.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + context = _nexus_started_context(endpoint_name, "start_activity") + client = _nexus_started_client(env, context) + activity_id = f"nexus-started-activity-{uuid.uuid4()}" + nexus_started_async_completions.clear() + + async with Worker( + client, + task_queue=task_queue, + activities=[nexus_started_activity], + nexus_service_handlers=[NexusStartedExecutionHandler()], + ): + await env.create_nexus_endpoint(endpoint_name, task_queue) + operation = await client.create_nexus_client( + NexusStartedExecutionHandler, endpoint_name + ).start_operation( + NexusStartedExecutionHandler.start_activity, + NexusStartedInput(id=activity_id, value="", outcome="async"), + id=str(uuid.uuid4()), + ) + + async def activity_started() -> bool: + return bool(nexus_started_async_completions) + + await assert_eq_eventually(True, activity_started) + [(task_token, info_context)] = nexus_started_async_completions + assert info_context is not None + assert info_context == context + async_handle = client.get_async_activity_handle( + task_token=task_token + ).with_context(info_context) + await async_handle.heartbeat("client-heartbeat") + desc = await client.get_activity_handle(activity_id).describe( + include_heartbeat_details=True + ) + assert await desc.heartbeat_details() == ["client-heartbeat"] + assert _marker(desc.raw_info.heartbeat_details.payloads[0]) == b"nexus" + await async_handle.complete("async-value") + assert await operation.result() == "async-value" + assert ( + await client.get_activity_handle(activity_id, result_type=str).result() + == "async-value" + ) + + +class _UpdateOutcomeCapturingInterceptor(Interceptor): + def __init__(self) -> None: + super().__init__() + self.outcomes: list[temporalio.api.update.v1.Outcome] = [] + + def intercept_client(self, next: OutboundInterceptor) -> OutboundInterceptor: + return _UpdateOutcomeCapturingOutboundInterceptor(next, self) + + +class _UpdateOutcomeCapturingOutboundInterceptor(OutboundInterceptor): + def __init__( + self, next: OutboundInterceptor, parent: _UpdateOutcomeCapturingInterceptor + ) -> None: + super().__init__(next) + self._parent = parent + + async def start_workflow_update( + self, input: StartWorkflowUpdateInput + ) -> WorkflowUpdateHandle[Any]: + handle = await super().start_workflow_update(input) + if handle._known_outcome: + # Copy, since decoding the outcome's failure later modifies it in place + outcome = temporalio.api.update.v1.Outcome() + outcome.CopyFrom(handle._known_outcome) + self._parent.outcomes.append(outcome) + return handle + + +@pytest.mark.requires_local_server +@pytest.mark.parametrize("value", ["result", "failure", "rejection"]) +async def test_nexus_sent_update_uses_nexus_context( + env: WorkflowEnvironment, + value: Literal["result", "failure", "rejection"], +): + """An update sent by a Nexus handler encodes its result, failure and rejection with the + handler's context, and clients decode them with the context the server returns.""" + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the Java test server") + + task_queue = str(uuid.uuid4()) + endpoint_name = make_nexus_endpoint_name(task_queue) + context = _nexus_started_context(endpoint_name, "update_workflow") + # Rejected updates aren't stored in history, so the test reads the rejection from the + # update response the handler receives + outcome_capture = _UpdateOutcomeCapturingInterceptor() + config = _nexus_started_client(env, context).config() + config["interceptors"] = [outcome_capture] + client = Client(**config) + update_id = str(uuid.uuid4()) + + async with Worker( + client, + task_queue=task_queue, + workflows=[NexusUpdatedWorkflow], + nexus_service_handlers=[NexusStartedExecutionHandler()], + ): + await env.create_nexus_endpoint(endpoint_name, task_queue) + handle = await client.start_workflow( + NexusUpdatedWorkflow.run, + id=f"nexus-updated-workflow-{uuid.uuid4()}", + task_queue=task_queue, + ) + operation = client.create_nexus_client( + NexusStartedExecutionHandler, endpoint_name + ).execute_operation( + NexusStartedExecutionHandler.update_workflow, + NexusUpdateInput(workflow_id=handle.id, update_id=update_id, value=value), + id=str(uuid.uuid4()), + ) + if value == "result": + assert await operation == "result" + else: + with pytest.raises(NexusOperationFailureError): + await operation + + if value == "rejection": + [outcome] = outcome_capture.outcomes + [detail] = outcome.failure.application_failure_info.details.payloads + assert _marker(detail) == b"nexus" + else: + # This handle never sent the update, so it relies on the context the server returns + update_handle = handle.get_update_handle(update_id, result_type=str) + if value == "result": + assert await update_handle.result() == "result" + else: + with pytest.raises(WorkflowUpdateFailedError) as err: + await update_handle.result() + assert isinstance(err.value.cause, ApplicationError) + assert err.value.cause.details == ("failure-detail",) + + await handle.signal(NexusUpdatedWorkflow.finish) + await handle.result() + + history = await handle.fetch_history() + if value != "rejection": + [accepted] = [ + e.workflow_execution_update_accepted_event_attributes + for e in history.events + if e.HasField("workflow_execution_update_accepted_event_attributes") + ] + assert ( + accepted.accepted_request.propagated_nexus_serialization_context + == temporalio.api.nexus.v1.PropagatedSerializationContext( + endpoint=context.endpoint, + service=context.service, + operation=context.operation, + ) + ) + # The input keeps the workflow context + assert all( + _marker(p) is None + for p in accepted.accepted_request.input.args.payloads + ) + [completed] = [ + e.workflow_execution_update_completed_event_attributes + for e in history.events + if e.HasField("workflow_execution_update_completed_event_attributes") + ] + if value == "result": + [result] = completed.outcome.success.payloads + assert _marker(result) == b"nexus" + else: + failure = completed.outcome.failure + [detail] = failure.application_failure_info.details.payloads + assert _marker(detail) == b"nexus" + + # Replaying re-runs the update handler with the context from history + await Replayer( + workflows=[NexusUpdatedWorkflow], data_converter=client.data_converter + ).replay_workflow(history) diff --git a/tests/test_service.py b/tests/test_service.py index 954c87092..1fa5ff8a7 100644 --- a/tests/test_service.py +++ b/tests/test_service.py @@ -1,10 +1,13 @@ +import asyncio import inspect import os import re +import socket from collections.abc import Callable, Mapping from datetime import timedelta from typing import Any +import google.protobuf.descriptor_pb2 import google.protobuf.empty_pb2 import google.protobuf.message import google.protobuf.symbol_database @@ -151,7 +154,7 @@ async def test_check_health(client: Client): @pytest.mark.requires_local_server async def test_grpc_status(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1557" ) @@ -271,7 +274,9 @@ async def test_rpc_execution_not_unknown(client: Client): async def test_method( target_service_name: str, method_descriptor: MethodDescriptor ): - if method_descriptor.client_streaming or method_descriptor.server_streaming: + method_proto = google.protobuf.descriptor_pb2.MethodDescriptorProto() + method_descriptor.CopyToProto(method_proto) + if method_proto.client_streaming or method_proto.server_streaming: # skip streaming calls return @@ -331,3 +336,58 @@ async def test_service( proto_service="Health", target_service_name="health_service", ) + + +@pytest.mark.parametrize("timeout", [None, timedelta(0), timedelta(milliseconds=1250)]) +def test_connect_config_connect_timeout(timeout: timedelta | None): + config = temporalio.service.ConnectConfig( + target_host="localhost:7233", connect_timeout=timeout + ) + assert config._to_bridge_config().connect_timeout_millis == ( + None if timeout is None else int(timeout.total_seconds() * 1000) + ) + + +async def test_connect_timeout_bounds_tcp_connection(): + listener = socket.socket() + connections: list[socket.socket] = [] + try: + listener.bind(("127.0.0.1", 0)) + listener.listen(1) + address = listener.getsockname() + loop = asyncio.get_running_loop() + # Fill the accept queue without accepting connections, so subsequent TCP + # attempts stall locally instead of depending on an unreachable remote IP. + for _ in range(128): + connection = socket.socket() + connections.append(connection) + connection.setblocking(False) + try: + await asyncio.wait_for(loop.sock_connect(connection, address), 0.1) + except asyncio.TimeoutError: + break + else: + pytest.fail("Could not fill the listener's accept queue") + + with pytest.raises(RuntimeError, match="tcp connect error.*TimedOut"): + await asyncio.wait_for( + Client.connect( + f"127.0.0.1:{address[1]}", + connect_timeout=timedelta(milliseconds=100), + ), + timeout=5, + ) + finally: + for connection in connections: + connection.close() + listener.close() + + +async def test_connect_timeout_allows_healthy_connection(client: Client): + connect_args = vars(client.service_client.config).copy() + connect_args["connect_timeout"] = timedelta(seconds=5) + connect_args["lazy"] = False + connected = await Client.connect(**connect_args) + await connected.workflow_service.get_system_info( + temporalio.api.workflowservice.v1.GetSystemInfoRequest() + ) diff --git a/tests/test_update_core.py b/tests/test_update_core.py new file mode 100644 index 000000000..6d1edd44a --- /dev/null +++ b/tests/test_update_core.py @@ -0,0 +1,207 @@ +from __future__ import annotations + +import pathlib +import subprocess + +import pytest +import tomlkit + +import scripts.update_core + + +@pytest.mark.parametrize( + "tags, expected", + [ + ( + "core-v0.9.0\ncore-v0.11.0\ncore-v0.10.2\ncore-v0.12.0-rc.1\n" + "sdk-v99.0.0\ncore-v0.11.1\n", + "core-v0.11.1", + ), + ("core-v1.0.0\ncore-v0.99.0\n", "core-v1.0.0"), + ], +) +def test_latest_core_tag( + tmp_path: pathlib.Path, + monkeypatch: pytest.MonkeyPatch, + tags: str, + expected: str, +) -> None: + (tmp_path / "temporalio/bridge/sdk-core/.git").mkdir(parents=True) + calls: list[list[str]] = [] + + def run(command: list[str], **kwargs: object) -> subprocess.CompletedProcess[str]: + assert kwargs["cwd"] == tmp_path / "temporalio/bridge/sdk-core" + assert kwargs["check"] is True + calls.append(command) + return subprocess.CompletedProcess(command, 0, tags) + + monkeypatch.setattr(subprocess, "run", run) + assert scripts.update_core.latest_core_tag(tmp_path) == expected + assert calls == [ + ["git", "fetch", "origin", "--tags"], + ["git", "tag", "--list", "core-v*"], + ] + + +def test_latest_core_tag_requires_stable_release( + tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch +) -> None: + (tmp_path / "temporalio/bridge/sdk-core/.git").mkdir(parents=True) + monkeypatch.setattr( + subprocess, + "run", + lambda *args, **kwargs: subprocess.CompletedProcess( + [], 0, "core-v1.0.0-rc.1\n" + ), + ) + with pytest.raises(RuntimeError, match="No stable"): + scripts.update_core.latest_core_tag(tmp_path) + + +def test_latest_core_tag_requires_initialized_submodule(tmp_path: pathlib.Path) -> None: + with pytest.raises(RuntimeError, match="git submodule update --init"): + scripts.update_core.latest_core_tag(tmp_path) + + +@pytest.mark.parametrize( + "args, expected", + [ + ([], []), + (["--latest-tag"], ["--revision", "core-v0.11.0"]), + (["--revision", "main"], ["--revision", "main"]), + (["--revision=main"], ["--revision", "main"]), + ], +) +def test_update_core_orders_import_lock_and_protos( + tmp_path: pathlib.Path, + monkeypatch: pytest.MonkeyPatch, + args: list[str], + expected: list[str], +) -> None: + calls: list[str] = [] + + def latest(_root: pathlib.Path) -> str: + calls.append("tag") + return "core-v0.11.0" + + def import_core(_root: pathlib.Path, tool_args: list[str]) -> str: + assert tool_args == [ + "update-core", + "--submodule", + "temporalio/bridge/sdk-core", + *expected, + ] + calls.append("import") + return "" + + def generate(command: list[str], **kwargs: object) -> None: + assert command == ["poe", "gen-protos"] + assert kwargs == {"cwd": tmp_path, "check": True} + calls.append("protos") + + monkeypatch.setattr(scripts.update_core, "latest_core_tag", latest) + monkeypatch.setattr(scripts.update_core, "run_tool", import_core) + monkeypatch.setattr( + scripts.update_core, + "update_bridge_dependencies", + lambda _root: calls.append("lock"), + ) + monkeypatch.setattr(subprocess, "run", generate) + scripts.update_core.update_core(tmp_path, args) + assert calls == (["tag"] if args == ["--latest-tag"] else []) + [ + "import", + "lock", + "protos", + ] + + +@pytest.mark.parametrize("revision", [["--revision", "main"], ["--revision=main"]]) +def test_latest_tag_and_revision_are_mutually_exclusive( + tmp_path: pathlib.Path, revision: list[str] +) -> None: + with pytest.raises(SystemExit) as err: + scripts.update_core.update_core(tmp_path, ["--latest-tag", *revision]) + assert err.value.code == 2 + + +def write_crate(path: pathlib.Path, name: str, version: str) -> None: + path.mkdir(parents=True, exist_ok=True) + (path / "Cargo.toml").write_text( + f'[package]\nname = "{name}"\nversion = "{version}"\nedition = "2021"\n' + ) + (path / "src").mkdir(exist_ok=True) + (path / "src/lib.rs").write_text("") + + +def bridge_fixture(tmp_path: pathlib.Path) -> pathlib.Path: + bridge = tmp_path / "temporalio/bridge" + write_crate(bridge, "bridge-fixture", "0.1.0") + write_crate(bridge / "sdk-core/core", "core-fixture", "0.10.0") + write_crate(bridge / "sdk-core/client", "client-fixture", "1.1.0") + write_crate(bridge / "other", "other-fixture", "1.2.0") + (bridge / "Cargo.toml").write_text( + (bridge / "Cargo.toml").read_text() + + "\n[dependencies]\n" + + "# Keep this comment and formatting.\n" + + 'core = { package = "core-fixture", version = "0.9", path = "sdk-core/core" }\n' + + 'client = { package = "client-fixture", version = "1.0", path = "sdk-core/client" }\n' + + 'other = { package = "other-fixture", version = "1.0", path = "other" }\n' + ) + return bridge + + +def test_update_repairs_manifest_preserves_format_and_refreshes_real_lockfile( + tmp_path: pathlib.Path, +) -> None: + bridge = bridge_fixture(tmp_path) + manifest = bridge / "Cargo.toml" + original = manifest.read_text() + scripts.update_core.update_bridge_dependencies(tmp_path) + assert manifest.read_text() == original.replace( + 'version = "0.9"', 'version = "0.10.0"' + ).replace( + 'package = "client-fixture", version = "1.0"', + 'package = "client-fixture", version = "1.1.0"', + ) + lock_path = bridge / "Cargo.lock" + lock = tomlkit.parse(lock_path.read_text()).unwrap() + assert any( + package["name"] == "core-fixture" and package["version"] == "0.10.0" + for package in lock["package"] + ) + before = manifest.read_bytes(), lock_path.read_bytes() + scripts.update_core.update_bridge_dependencies(tmp_path) + assert before == (manifest.read_bytes(), lock_path.read_bytes()) + + +def test_failed_core_update_does_not_change_bridge_files( + tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch +) -> None: + bridge = bridge_fixture(tmp_path) + manifest = bridge / "Cargo.toml" + original = manifest.read_bytes() + + def fail(_root: pathlib.Path, _args: list[str]) -> str: + raise RuntimeError("Core import failed") + + monkeypatch.setattr(scripts.update_core, "run_tool", fail) + with pytest.raises(RuntimeError, match="Core import failed"): + scripts.update_core.update_core(tmp_path, ["--revision", "main"]) + assert manifest.read_bytes() == original + assert not (bridge / "Cargo.lock").exists() + + +def test_refresh_failure_leaves_manifest_for_review( + tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch +) -> None: + bridge = bridge_fixture(tmp_path) + + def fail(command: list[str], **kwargs: object) -> None: + assert command == ["cargo", "update"] + assert kwargs == {"cwd": bridge, "check": True} + raise subprocess.CalledProcessError(1, command) + + monkeypatch.setattr(subprocess, "run", fail) + with pytest.raises(subprocess.CalledProcessError): + scripts.update_core.update_bridge_dependencies(tmp_path) + assert 'version = "0.10.0"' in (bridge / "Cargo.toml").read_text() diff --git a/tests/test_workflow.py b/tests/test_workflow.py index 5618c34f5..522139571 100644 --- a/tests/test_workflow.py +++ b/tests/test_workflow.py @@ -491,6 +491,42 @@ def test_workflow_update_validator_not_update(): ) +def test_workflow_update_validator_async(): + # The validator decorator itself raises, so the class body fails to execute + with pytest.raises(ValueError) as err: + + class AsyncUpdateValidator: # type:ignore[reportUnusedClass] + @workflow.update + async def my_update(self, _a: str): + pass + + # assert-type-error-pyright: "Argument of type .+ cannot be assigned to parameter" + @my_update.validator # type: ignore + async def my_validator(self, _a: str): + pass + + assert "Update validator must not be an async function" in str(err.value) + + +class SyncUpdateValidator: + @workflow.update + async def my_update(self, _a: str): + pass + + @my_update.validator + def my_validator(self, _a: str) -> None: + pass + + @workflow.run + async def run(self): + pass + + +def test_workflow_update_validator_sync(): + defn = workflow._Definition.must_from_class(workflow.defn(SyncUpdateValidator)) + assert defn.updates["my_update"].validator is SyncUpdateValidator.my_validator + + def _assert_config_function_parity( function_obj: Callable[..., Any], config_class: type[Any], diff --git a/tests/test_workflow_exports.py b/tests/test_workflow_exports.py index 8788addc5..1b40149fc 100644 --- a/tests/test_workflow_exports.py +++ b/tests/test_workflow_exports.py @@ -21,6 +21,7 @@ "ContinueAsNewError", "ContinueAsNewVersioningBehavior", "DynamicWorkflowConfig", + "EventGroup", "ExternalWorkflowHandle", "HandlerUnfinishedPolicy", "Info", @@ -78,6 +79,7 @@ "annotations", "as_completed", "continue_as_new", + "create_event_group", "create_nexus_client", "current_update_info", "defn", diff --git a/tests/testing/conftest.py b/tests/testing/conftest.py new file mode 100644 index 000000000..8d8253c1b --- /dev/null +++ b/tests/testing/conftest.py @@ -0,0 +1,21 @@ +"""Fixtures for ``tests/testing/`` test files.""" + +from collections.abc import AsyncGenerator + +import pytest_asyncio + +from temporalio.testing import WorkflowEnvironment +from tests import DEV_SERVER_DOWNLOAD_VERSION + + +@pytest_asyncio.fixture(scope="module") # type: ignore[reportUntypedFunctionDecorator] +async def ts_env() -> AsyncGenerator[WorkflowEnvironment, None]: + """Module-scoped time-skipping V2 dev server, shared across tests in a file.""" + async with await WorkflowEnvironment.start_time_skipping_v2( + dev_server_download_version=DEV_SERVER_DOWNLOAD_VERSION, + dev_server_extra_args=[ + "--dynamic-config-value", + "frontend.WorkflowTimeSkippingEnabled=true", + ], + ) as workflow_env: + yield workflow_env diff --git a/tests/testing/test_timeskipping_v2.py b/tests/testing/test_timeskipping_v2.py new file mode 100644 index 000000000..047a50147 --- /dev/null +++ b/tests/testing/test_timeskipping_v2.py @@ -0,0 +1,801 @@ +"""Tests for per-workflow time skipping via the V2 test env.""" + +import asyncio +import uuid +from datetime import datetime, timedelta, timezone +from time import monotonic +from typing import Any + +import pytest + +from temporalio import workflow +from temporalio.api.enums.v1 import event_type_pb2 as _event_type +from temporalio.client import WithStartWorkflowOperation +from temporalio.common import RetryPolicy, WorkflowIDConflictPolicy +from temporalio.exceptions import ApplicationError +from temporalio.testing import TimeSkipper, TimeSkippingConfig, WorkflowEnvironment +from tests import DEV_SERVER_DOWNLOAD_VERSION +from tests.helpers import ( + assert_duration_same, + assert_eventually, + find_history_event, + new_worker, +) +from tests.helpers.time_skipping import ( + assert_time_was_not_skipped, + assert_time_was_skipped, +) +from tests.testing.test_workflow import SleepWorkflow + + +@workflow.defn +class InteractionWorkflow: + """Completes after receiving ``required_signals`` ``proceed`` signals; otherwise waits up to 10h.""" + + def __init__(self) -> None: + self.signals_received = 0 + + @workflow.run + async def run(self, required_signals: int) -> str: + await workflow.wait_condition( + lambda: self.signals_received >= required_signals, + timeout=timedelta(hours=10), + ) + return "done" + + @workflow.signal + def proceed(self) -> None: + self.signals_received += 1 + + @workflow.query + def get_signal_count(self) -> int: + return self.signals_received + + +async def test_skip_full_run(ts_env: WorkflowEnvironment) -> None: + """Enable time skipping, let workflow run to completion.""" + async with new_worker(ts_env.client, SleepWorkflow) as worker: + wall_start = monotonic() + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 3600.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + result = await handle.result() + wall_elapsed = monotonic() - wall_start + + assert result["message"] == "all done" + virtual_elapsed = result["end"] - result["start"] + assert virtual_elapsed >= 3600, ( + f"virtual elapsed was {virtual_elapsed}s; expected >= 3600s (timer did not fire fully)" + ) + assert wall_elapsed < 3, ( + f"workflow took {wall_elapsed:.3f}s wall time; time skipping did not engage" + ) + await assert_time_was_skipped(handle) + + +async def test_with_time_skipping_disabled( + ts_env: WorkflowEnvironment, +) -> None: + """Without time skipping, the 1h timer does not complete in 3s.""" + async with new_worker(ts_env.client, SleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 3600.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + with pytest.raises(asyncio.TimeoutError): + await asyncio.wait_for(handle.result(), timeout=3) + + +async def test_fast_forward_with_resume(ts_env: WorkflowEnvironment) -> None: + """Fast-forward 1h, signal, resume +1h, signal, workflow completes.""" + async with new_worker(ts_env.client, InteractionWorkflow) as worker: + wall_start = monotonic() + # Start the workflow with time-skipping stamping suspended, then issue an + # explicit fast-forward. Uses signals to move the workflow along. + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + InteractionWorkflow.run, + 2, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + t0 = await ts_env.get_current_time(handle) + + assert await ts_env.fast_forward(handle, timedelta(hours=1)), ( + "expected first fast-forward to complete at 1h" + ) + await handle.signal(InteractionWorkflow.proceed) + assert await handle.query(InteractionWorkflow.get_signal_count) == 1 + t1 = await ts_env.get_current_time(handle) + assert_duration_same(3600, (t1 - t0).total_seconds(), tolerance=10) + + assert await ts_env.fast_forward(handle, timedelta(hours=1)), ( + "expected second fast-forward to complete at 2h total" + ) + await handle.signal(InteractionWorkflow.proceed) + t2 = await ts_env.get_current_time(handle) + assert_duration_same(7200, (t2 - t0).total_seconds(), tolerance=10) + + result = await handle.result() + wall_elapsed = monotonic() - wall_start + + assert result == "done" + assert wall_elapsed < 60, ( + f"workflow took {wall_elapsed:.1f}s wall time; expected fast finish" + ) + await assert_time_was_skipped(handle) + + +async def test_partial_fast_forward_then_unbounded( + ts_env: WorkflowEnvironment, +) -> None: + """30m fast-forward, verify +30m, then unbounded resume to completion at +1h.""" + async with new_worker(ts_env.client, SleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 3600.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + t0 = await ts_env.get_current_time(handle) + + assert await ts_env.fast_forward(handle, timedelta(minutes=30)) + t1 = await ts_env.get_current_time(handle) + assert_duration_same(30 * 60, (t1 - t0).total_seconds(), tolerance=10) + + assert not await ts_env.fast_forward(handle, None) + result = await handle.result() + assert result["message"] == "all done" + + t_end = await ts_env.get_current_time(handle) + assert_duration_same(3600, (t_end - t0).total_seconds(), tolerance=10) + + await assert_time_was_skipped(handle) + + +@workflow.defn +class ParentTimeSkippingWorkflow: + """Parent 1h + child 1h + parent 1h all auto-skip; child inherits time skipping from parent.""" + + @workflow.run + async def run( + self, child_id: str, task_queue: str, child_sleep_seconds: float + ) -> dict[str, Any]: + parent_start = workflow.now().timestamp() + await workflow.sleep(timedelta(hours=1)) + parent_after_wait_1 = workflow.now().timestamp() + + child_result = await workflow.execute_child_workflow( + SleepWorkflow.run, + child_sleep_seconds, + id=child_id, + task_queue=task_queue, + ) + parent_after_child_start = workflow.now().timestamp() + + await workflow.sleep(timedelta(hours=1)) + parent_end = workflow.now().timestamp() + + return { + "parent_start": parent_start, + "parent_after_wait_1": parent_after_wait_1, + "parent_after_child_start": parent_after_child_start, + "parent_end": parent_end, + "child_start": child_result["start"], + "child_end": child_result["end"], + "child_message": child_result["message"], + "message": "all done", + } + + +async def test_child_workflow_propagates_time_skipping( + ts_env: WorkflowEnvironment, +) -> None: + """Parent 1h + child 1h + parent 1h all auto-skip; child inherits time skipping from parent.""" + async with new_worker( + ts_env.client, ParentTimeSkippingWorkflow, SleepWorkflow + ) as worker: + child_id = f"child-{uuid.uuid4()}" + parent_id = f"parent-{uuid.uuid4()}" + + wall_start = monotonic() + parent_handle = await ts_env.client.start_workflow( + ParentTimeSkippingWorkflow.run, + args=[child_id, worker.task_queue, 3600.0], + id=parent_id, + task_queue=worker.task_queue, + ) + result = await parent_handle.result() + wall_elapsed = monotonic() - wall_start + + assert result["message"] == "all done" + assert result["child_message"] == "all done" + + assert wall_elapsed < 10, ( + f"parent+child took {wall_elapsed:.1f}s wall time; expected < 10s" + ) + assert_duration_same( + 3600, result["parent_after_wait_1"] - result["parent_start"], tolerance=10 + ) + assert_duration_same( + 3600, result["child_end"] - result["child_start"], tolerance=10 + ) + assert_duration_same( + 3600, result["parent_end"] - result["parent_after_child_start"], tolerance=10 + ) + assert_duration_same( + 0, result["child_start"] - result["parent_after_wait_1"], tolerance=10 + ) + assert_duration_same( + 0, + result["parent_after_child_start"] - result["parent_after_wait_1"], + tolerance=5, + ) + + # Time skipping engaged on both workflows. + await assert_time_was_skipped(parent_handle) + child_handle = ts_env.client.get_workflow_handle(child_id) + await assert_time_was_skipped(child_handle) + + +async def test_child_workflow_with_propagation_disabled() -> None: + """With ``disable_propagation=True`` on the env, child does NOT inherit time skipping + and runs in real time.""" + + async with await WorkflowEnvironment.start_time_skipping_v2( + dev_server_download_version=DEV_SERVER_DOWNLOAD_VERSION, + dev_server_extra_args=[ + "--dynamic-config-value", + "frontend.WorkflowTimeSkippingEnabled=true", + ], + ts_config=TimeSkippingConfig(disable_propagation=True), + ) as env: + async with new_worker( + env.client, ParentTimeSkippingWorkflow, SleepWorkflow + ) as worker: + child_id = f"child-{uuid.uuid4()}" + parent_id = f"parent-{uuid.uuid4()}" + + wall_start = monotonic() + parent_handle = await env.client.start_workflow( + ParentTimeSkippingWorkflow.run, + args=[child_id, worker.task_queue, 5.0], + id=parent_id, + task_queue=worker.task_queue, + ) + result = await parent_handle.result() + wall_elapsed = monotonic() - wall_start + + assert result["message"] == "all done" + assert result["child_message"] == "all done" + # Child runs in real time; parent's two 1h waits are skipped. + assert 4 < wall_elapsed < 15, ( + f"expected ~5s wall time (child didn't skip), got {wall_elapsed:.1f}s" + ) + + await assert_time_was_skipped(parent_handle) + child_handle = env.client.get_workflow_handle(child_id) + await assert_time_was_not_skipped(child_handle) + + +async def test_timeskipper_wrapping_local_env_client() -> None: + """Test timeskipping through direct use of a TimeSkipper, instead of + indirectly through the time skipping V2 test env. + """ + + async with await WorkflowEnvironment.start_local( + dev_server_download_version=DEV_SERVER_DOWNLOAD_VERSION, + dev_server_extra_args=[ + "--dynamic-config-value", + "frontend.WorkflowTimeSkippingEnabled=true", + ], + ) as env: + assert not env.supports_time_skipping_v1 + + skipper = TimeSkipper(env.client) + async with new_worker(skipper.client, SleepWorkflow) as worker: + wall_start = monotonic() + handle = await skipper.client.start_workflow( + SleepWorkflow.run, + 3600.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + result = await handle.result() + wall_elapsed = monotonic() - wall_start + + assert result["message"] == "all done" + assert_duration_same(3600, result["end"] - result["start"], tolerance=10) + assert wall_elapsed < 10, ( + f"expected fast wall finish under time skipping, got {wall_elapsed:.1f}s" + ) + await assert_time_was_skipped(handle) + + +async def test_fast_forward_returns_false_when_workflow_terminates_first( + ts_env: WorkflowEnvironment, +) -> None: + """Workflow's own 1h timer fires before FF's 2h target → FF returns False.""" + + async with new_worker(ts_env.client, SleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 3600.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + assert (await ts_env.fast_forward(handle, timedelta(hours=2))) is False + + +async def test_fast_forward_accepts_float_duration( + ts_env: WorkflowEnvironment, +) -> None: + async with new_worker(ts_env.client, SleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 3600.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + t0 = await ts_env.get_current_time(handle) + assert await ts_env.fast_forward(handle, 1800.0) + t1 = await ts_env.get_current_time(handle) + assert_duration_same(1800, (t1 - t0).total_seconds(), tolerance=10) + await handle.cancel() + await assert_time_was_skipped(handle) + + +@workflow.defn +class FailOnceThenSleepWorkflow: + """Sleeps ``sleep_seconds``; fails on the first attempt, succeeds on later ones.""" + + @workflow.run + async def run(self, sleep_seconds: float) -> str: + await workflow.sleep(timedelta(seconds=sleep_seconds)) + if workflow.info().attempt < 2: + raise ApplicationError("first attempt fails on purpose") + return "done" + + @workflow.query + def attempt(self) -> int: + return workflow.info().attempt + + +async def test_fast_forward_spans_retries(ts_env: WorkflowEnvironment) -> None: + """FF spans across retry: attempt 1 fails, backoff elapses, attempt 2 runs.""" + async with new_worker(ts_env.client, FailOnceThenSleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + FailOnceThenSleepWorkflow.run, + 3600.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + retry_policy=RetryPolicy( + initial_interval=timedelta(hours=1), + backoff_coefficient=1.0, + maximum_attempts=2, + ), + ) + + # Fast forward into the second sleep. + assert await ts_env.fast_forward(handle, timedelta(hours=2, minutes=30)) + + async def _in_attempt_2() -> None: + assert (await handle.query(FailOnceThenSleepWorkflow.attempt)) == 2 + + await assert_eventually(_in_attempt_2) + + await ts_env.fast_forward(handle) + assert (await handle.result()) == "done" + assert (await handle.query(FailOnceThenSleepWorkflow.attempt)) == 2 + await assert_time_was_skipped(handle) + + +@workflow.defn +class ContinueAsNewSleepWorkflow: + """Sleep and CAN until ``runs_remaining`` is 1.""" + + def __init__(self) -> None: + self._current_run = 1 + + @workflow.run + async def run( + self, sleep_seconds: float, runs_remaining: int, current_run: int = 1 + ) -> str: + self._current_run = current_run + await workflow.sleep(timedelta(seconds=sleep_seconds)) + if runs_remaining > 1: + workflow.continue_as_new( + args=[sleep_seconds, runs_remaining - 1, current_run + 1] + ) + return "done" + + @workflow.query + def current_run(self) -> int: + return self._current_run + + +async def test_fast_forward_spans_continue_as_new(ts_env: WorkflowEnvironment) -> None: + """Fast forward spans multiple continue-as-new runs.""" + async with new_worker(ts_env.client, ContinueAsNewSleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + ContinueAsNewSleepWorkflow.run, + args=[3600.0, 3, 1], + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + assert await ts_env.fast_forward(handle, timedelta(hours=2)) + + async def _in_run_3() -> None: + assert (await handle.query(ContinueAsNewSleepWorkflow.current_run)) == 3 + + await assert_eventually(_in_run_3) + + await ts_env.fast_forward(handle) + assert (await handle.result()) == "done" + assert (await handle.query(ContinueAsNewSleepWorkflow.current_run)) == 3 + await assert_time_was_skipped(handle) + + +async def test_fast_forward_spans_cron_restarts( + ts_env: WorkflowEnvironment, +) -> None: + """Fast forward over multiple cron firings.""" + workflow_id = f"wf-{uuid.uuid4()}" + async with new_worker(ts_env.client, SleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 60.0, + id=workflow_id, + task_queue=worker.task_queue, + cron_schedule="@every 1h", + ) + try: + assert await ts_env.fast_forward(handle, timedelta(hours=3)) + + async def _at_least_three_cron_runs() -> None: + run_count = 0 + async for _ in ts_env.client.list_workflows( + query=f"WorkflowId = '{workflow_id}'" + ): + run_count += 1 + assert run_count >= 3, ( + f"expected >= 3 cron runs after 3h FF, got {run_count}" + ) + + await assert_eventually(_at_least_three_cron_runs) + finally: + await handle.cancel() + + +@workflow.defn +class SignalWithStartTargetWorkflow: + """Waits for at least one ``go`` signal, then does a long sleep.""" + + def __init__(self) -> None: + self._got_signal = False + + @workflow.run + async def run(self, sleep_seconds: float) -> dict[str, float]: + await workflow.wait_condition(lambda: self._got_signal) + t_after_signal = workflow.now().timestamp() + await workflow.sleep(timedelta(seconds=sleep_seconds)) + t_end = workflow.now().timestamp() + return {"after_signal": t_after_signal, "end": t_end} + + @workflow.signal + def go(self) -> None: + self._got_signal = True + + +async def test_signal_with_start_stamps_time_skipping_config( + ts_env: WorkflowEnvironment, +) -> None: + """Timeskip a signal-with-start workflow.""" + async with new_worker(ts_env.client, SignalWithStartTargetWorkflow) as worker: + wall_start = monotonic() + handle = await ts_env.client.start_workflow( + SignalWithStartTargetWorkflow.run, + 3600.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + start_signal="go", + ) + result = await handle.result() + wall_elapsed = monotonic() - wall_start + + assert wall_elapsed < 10 + virtual_elapsed = result["end"] - result["after_signal"] + assert_duration_same(3600, virtual_elapsed, tolerance=50) + await assert_time_was_skipped(handle) + + +@workflow.defn +class UpdateWithStartTargetWorkflow: + """Accepts a ``ping`` update, then does a long sleep.""" + + @workflow.run + async def run(self, sleep_seconds: float) -> dict[str, float]: + t_start = workflow.now().timestamp() + await workflow.sleep(timedelta(seconds=sleep_seconds)) + t_end = workflow.now().timestamp() + return {"start": t_start, "end": t_end} + + @workflow.update + def ping(self) -> str: + return "pong" + + +async def test_update_with_start_stamps_time_skipping_config( + ts_env: WorkflowEnvironment, +) -> None: + """Timeskip an update-with-start workflow.""" + async with new_worker(ts_env.client, UpdateWithStartTargetWorkflow) as worker: + wall_start = monotonic() + start_op = WithStartWorkflowOperation( + UpdateWithStartTargetWorkflow.run, + 3600.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + id_conflict_policy=WorkflowIDConflictPolicy.FAIL, + ) + update_result = await ts_env.client.execute_update_with_start_workflow( + UpdateWithStartTargetWorkflow.ping, start_workflow_operation=start_op + ) + assert update_result == "pong" + handle = await start_op.workflow_handle() + # Fail here rather than wait for the timer in real time + tsi = await ts_env.get_time_skipping_info(handle) + assert tsi is not None + assert tsi.effective_config.enabled, ( + "expected time skipping to be enabled (env-stamped)" + ) + result = await handle.result() + wall_elapsed = monotonic() - wall_start + + assert wall_elapsed < 10 + virtual_elapsed = result["end"] - result["start"] + assert_duration_same(3600, virtual_elapsed, tolerance=50) + await assert_time_was_skipped(handle) + + +async def test_get_time_skipping_info_during_workflow( + ts_env: WorkflowEnvironment, +) -> None: + async with new_worker(ts_env.client, InteractionWorkflow) as worker: + handle = await ts_env.client.start_workflow( + InteractionWorkflow.run, + 1, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + try: + tsi = await ts_env.get_time_skipping_info(handle) + assert tsi is not None + assert tsi.effective_config.enabled, ( + "expected time skipping to be enabled (env-stamped)" + ) + assert tsi.HasField("current_time"), ( + "TimeSkippingInfo.current_time is not populated" + ) + assert not tsi.HasField("fast_forward_info"), ( + "no fast-forward was issued; expected fast_forward_info unset" + ) + finally: + await handle.signal(InteractionWorkflow.proceed) + await handle.result() + + +async def test_get_time_skipping_info_returns_none_when_ts_never_enabled( + ts_env: WorkflowEnvironment, +) -> None: + async with new_worker(ts_env.client, InteractionWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + InteractionWorkflow.run, + 1, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + try: + assert await ts_env.get_time_skipping_info(handle) is None + finally: + await handle.signal(InteractionWorkflow.proceed) + await handle.result() + + +async def test_max_session_skip_count_stamped_by_env() -> None: + """Set ``max_session_skip_count`` and confirm it in the + WorkflowExecutionStarted event.""" + async with await WorkflowEnvironment.start_time_skipping_v2( + dev_server_download_version=DEV_SERVER_DOWNLOAD_VERSION, + dev_server_extra_args=[ + "--dynamic-config-value", + "frontend.WorkflowTimeSkippingEnabled=true", + ], + ts_config=TimeSkippingConfig(enabled=True, max_session_skip_count=5), + ) as env: + async with new_worker(env.client, InteractionWorkflow) as worker: + handle = await env.client.start_workflow( + InteractionWorkflow.run, + 1, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + try: + started = await find_history_event( + handle, + lambda e: ( + e.event_type + == _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_STARTED + ), + ) + assert started is not None + started_tsc = started.workflow_execution_started_event_attributes.time_skipping_config + assert started_tsc.max_session_skip_count == 5, ( + f"expected max_session_skip_count=5, got {started_tsc.max_session_skip_count}" + ) + finally: + await handle.signal(InteractionWorkflow.proceed) + await handle.result() + + +async def test_transition_event_payload(ts_env: WorkflowEnvironment) -> None: + """The disabled-after-fast-forward transition event's payload is populated, + specifically ``target_time`` and ``wall_clock_time``.""" + async with new_worker(ts_env.client, SleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 100000.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + wall_before_ff = datetime.now(tz=timezone.utc) + assert await ts_env.fast_forward(handle, timedelta(minutes=30)) + wall_after_ff = datetime.now(tz=timezone.utc) + + event = await find_history_event( + handle, + lambda e: ( + e.event_type + == _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_TIME_SKIPPING_TRANSITIONED + and e.workflow_execution_time_skipping_transitioned_event_attributes.disabled_after_fast_forward + ), + ) + assert event is not None, "no disabled_after_fast_forward transition found" + transition = ( + event.workflow_execution_time_skipping_transitioned_event_attributes + ) + + target = transition.target_time.ToDatetime().replace(tzinfo=timezone.utc) + target_offset = (target - wall_before_ff).total_seconds() + assert_duration_same(1800, target_offset, tolerance=20) + + # wall_clock_time should be around wall clock time when fast forward started. + wct = transition.wall_clock_time.ToDatetime().replace(tzinfo=timezone.utc) + assert wall_before_ff <= wct <= wall_after_ff + timedelta(seconds=5), ( + f"wall_clock_time {wct} not in expected wall-time window " + f"[{wall_before_ff}, {wall_after_ff}]" + ) + + await handle.cancel() + + +async def test_child_workflow_started_event_has_state_propagation( + ts_env: WorkflowEnvironment, +) -> None: + """A child workflow spawned under time skipping carries TimeSkippingStatePropagation.""" + async with new_worker( + ts_env.client, ParentTimeSkippingWorkflow, SleepWorkflow + ) as worker: + child_id = f"child-{uuid.uuid4()}" + parent_id = f"parent-{uuid.uuid4()}" + parent_handle = await ts_env.client.start_workflow( + ParentTimeSkippingWorkflow.run, + args=[child_id, worker.task_queue, 60.0], + id=parent_id, + task_queue=worker.task_queue, + ) + await parent_handle.result() + + child_handle = ts_env.client.get_workflow_handle(child_id) + event = await find_history_event( + child_handle, + lambda e: e.event_type == _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_STARTED, + ) + assert event is not None + started = event.workflow_execution_started_event_attributes + assert started.HasField("time_skipping_state_propagation"), ( + "child's WorkflowExecutionStarted event has no time_skipping_state_propagation" + ) + + +async def test_fast_forward_exceeds_execution_timeout( + ts_env: WorkflowEnvironment, +) -> None: + async with new_worker(ts_env.client, SleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 100000.0, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + execution_timeout=timedelta(minutes=30), + ) + assert (await ts_env.fast_forward(handle, timedelta(hours=1))) is False + + timed_out = await find_history_event( + handle, + lambda e: ( + e.event_type == _event_type.EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT + ), + ) + assert timed_out is not None, "expected WORKFLOW_EXECUTION_TIMED_OUT in history" + + +async def test_overriding_fast_forward_raises_on_original( + ts_env: WorkflowEnvironment, +) -> None: + task_queue = f"tq-{uuid.uuid4()}" + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 100000.0, + id=f"wf-{uuid.uuid4()}", + task_queue=task_queue, + ) + # No worker yet, to keep fast forwards from finishing. + + original = asyncio.create_task(ts_env.fast_forward(handle, timedelta(hours=2))) + + async def _wait_for_ff_id( + expect_change_from: str | None, + ) -> str: + """Poll the workflow's TimeSkippingInfo until fast_forward_info. + fast_forward_id is set and, if given, differs from the previous id.""" + deadline = monotonic() + 10 + while monotonic() < deadline: + if original.done() and expect_change_from is None: + val = original.result() # re-raise if it already errored + raise AssertionError( + f"first completed before second ran (returned {val!r})" + ) + tsi = await ts_env.get_time_skipping_info(handle) + ffi = tsi.fast_forward_info if tsi is not None else None + if ( + ffi + and ffi.fast_forward_id + and ffi.fast_forward_id != expect_change_from + ): + return ffi.fast_forward_id + await asyncio.sleep(0.05) + raise AssertionError("timed out waiting for expected fast_forward_id") + + first_ff = await _wait_for_ff_id(expect_change_from=None) + + second_ff = asyncio.create_task(ts_env.fast_forward(handle, timedelta(minutes=30))) + await _wait_for_ff_id(expect_change_from=first_ff) + + with pytest.raises(RuntimeError, match=r"does not match"): + await original + + # Attach a worker so the workflow can complete and the second fast-forward can happen. + async with new_worker(ts_env.client, SleepWorkflow, task_queue=task_queue): + assert await second_ff + await ts_env.fast_forward(handle) + await handle.result() + await assert_time_was_skipped(handle) diff --git a/tests/testing/test_workflow.py b/tests/testing/test_workflow.py index b47d0ac05..d21bffea8 100644 --- a/tests/testing/test_workflow.py +++ b/tests/testing/test_workflow.py @@ -1,5 +1,4 @@ import asyncio -import platform import uuid from datetime import datetime, timedelta, timezone from time import monotonic @@ -32,52 +31,59 @@ from temporalio.testing import WorkflowEnvironment from tests import DEV_SERVER_DOWNLOAD_VERSION from tests.helpers import new_worker +from tests.helpers.time_skipping import skip_if_time_skipping_v1_unsupported @workflow.defn -class ReallySlowWorkflow: - @workflow.run - async def run(self) -> str: - await asyncio.sleep(100000) - return "all done" +class SleepWorkflow: + """Sleeps a parameterized duration. Returns the virtual clock at start and end. - @workflow.query - def current_time(self) -> float: - return workflow.now().timestamp() + The ``tick`` signal is a non-query WFT that is causes ``workflow.now`` to have the + correct value. + """ + + @workflow.run + async def run(self, sleep_seconds: float) -> dict[str, Any]: + t_start = workflow.now().timestamp() + await workflow.sleep(timedelta(seconds=sleep_seconds)) + t_end = workflow.now().timestamp() + return {"start": t_start, "end": t_end, "message": "all done"} @workflow.signal - async def some_signal(self) -> None: + def tick(self) -> None: pass - -def skip_if_not_x86() -> None: - if platform.machine() not in ("i386", "AMD64", "x86_64"): - pytest.skip("Time skipping server does not run outside x86") + @workflow.query + def now(self) -> float: + return workflow.now().timestamp() async def test_workflow_env_time_skipping_basic(): - skip_if_not_x86() + skip_if_time_skipping_v1_unsupported() async with await WorkflowEnvironment.start_time_skipping() as env: - async with new_worker(env.client, ReallySlowWorkflow) as worker: + async with new_worker(env.client, SleepWorkflow) as worker: # Check that time is around now assert_timestamp_from_now(await env.get_current_time(), 0) # Run workflow - assert "all done" == await env.client.execute_workflow( - ReallySlowWorkflow.run, + result = await env.client.execute_workflow( + SleepWorkflow.run, + 100000.0, id=f"workflow-{uuid.uuid4()}", task_queue=worker.task_queue, ) + assert result["message"] == "all done" # Check that the time is around 100000 seconds after now assert_timestamp_from_now(await env.get_current_time(), 100000) async def test_workflow_env_time_skipping_manual(): - skip_if_not_x86() + skip_if_time_skipping_v1_unsupported() async with await WorkflowEnvironment.start_time_skipping() as env: - async with new_worker(env.client, ReallySlowWorkflow) as worker: + async with new_worker(env.client, SleepWorkflow) as worker: # Start workflow handle = await env.client.start_workflow( - ReallySlowWorkflow.run, + SleepWorkflow.run, + 100000.0, id=f"workflow-{uuid.uuid4()}", task_queue=worker.task_queue, ) @@ -85,8 +91,8 @@ async def test_workflow_env_time_skipping_manual(): async def workflow_current_time() -> float: # We send signal first since query timestamp is based on last # non-query-only workflow task - await handle.signal(ReallySlowWorkflow.some_signal) - return await handle.query(ReallySlowWorkflow.current_time) + await handle.signal(SleepWorkflow.tick) + return await handle.query(SleepWorkflow.now) # Confirm query will say we're near current time assert_timestamp_from_now(await workflow_current_time(), 0) @@ -123,7 +129,7 @@ async def run(self) -> str: async def test_workflow_env_time_skipping_heartbeat_timeout(): - skip_if_not_x86() + skip_if_time_skipping_v1_unsupported() async with await WorkflowEnvironment.start_time_skipping() as env: async with new_worker( env.client, @@ -142,35 +148,31 @@ async def test_workflow_env_time_skipping_heartbeat_timeout(): assert err.value.cause.cause.type == TimeoutType.HEARTBEAT -@workflow.defn -class ShortSleepWorkflow: - @workflow.run - async def run(self) -> str: - await asyncio.sleep(3) - return "all done" - - async def test_workflow_env_time_skipping_disabled(): - skip_if_not_x86() + skip_if_time_skipping_v1_unsupported() async with await WorkflowEnvironment.start_time_skipping() as env: - async with new_worker(env.client, ShortSleepWorkflow) as worker: + async with new_worker(env.client, SleepWorkflow) as worker: # Confirm when executing normally it does not sleep for a full 3s start = monotonic() - assert "all done" == await env.client.execute_workflow( - ShortSleepWorkflow.run, + result = await env.client.execute_workflow( + SleepWorkflow.run, + 3.0, id=f"workflow-{uuid.uuid4()}", task_queue=worker.task_queue, ) + assert result["message"] == "all done" assert monotonic() - start < 2.5 # Confirm when skipping is disabled, it does sleep for a full 3s with env.auto_time_skipping_disabled(): start = monotonic() - assert "all done" == await env.client.execute_workflow( - ShortSleepWorkflow.run, + result = await env.client.execute_workflow( + SleepWorkflow.run, + 3.0, id=f"workflow-{uuid.uuid4()}", task_queue=worker.task_queue, ) + assert result["message"] == "all done" assert monotonic() - start > 2.5 @@ -256,7 +258,7 @@ def assert_proper_error(err: BaseException | None) -> None: async def test_search_attributes_on_dev_server( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Only testing for local dev server") # Search attributes @@ -323,11 +325,19 @@ async def test_ui_port(): async with await WorkflowEnvironment.start_local( ui=True, ui_port=18080, + dev_server_download_version=DEV_SERVER_DOWNLOAD_VERSION, ) as env: # Just verify it starts without error assert env.client is not None +async def test_get_time_skipping_info_raises_on_non_ts_v2_env(client: Client): + async with WorkflowEnvironment.from_client(client) as env: + handle = client.get_workflow_handle(f"wf-{uuid.uuid4()}") + with pytest.raises(RuntimeError, match=r"V2 time-skipping"): + await env.get_time_skipping_info(handle) + + def assert_timestamp_from_now( ts: datetime | float, expected_from_now: float, max_delta: float = 30 ) -> None: diff --git a/tests/testing/test_workflow_ts_v2.py b/tests/testing/test_workflow_ts_v2.py new file mode 100644 index 000000000..7491ee7f5 --- /dev/null +++ b/tests/testing/test_workflow_ts_v2.py @@ -0,0 +1,103 @@ +"""V2 equivalents of testing/test_workflow.py""" + +import uuid +from datetime import timedelta +from time import monotonic + +from temporalio.testing import WorkflowEnvironment +from tests.helpers import new_worker +from tests.helpers.time_skipping import ( + assert_time_was_not_skipped, + assert_time_was_skipped, +) +from tests.testing.test_workflow import ( + SleepWorkflow, + assert_timestamp_from_now, +) + + +async def test_workflow_env_time_skipping_basic_v2(ts_env: WorkflowEnvironment): + """Time-skip a very long sleep.""" + async with new_worker(ts_env.client, SleepWorkflow) as worker: + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 100000.0, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + result = await handle.result() + assert result["message"] == "all done" + assert_timestamp_from_now(await ts_env.get_current_time(handle), 100000) + await assert_time_was_skipped(handle) + + +async def test_workflow_env_time_skipping_manual_v2(ts_env: WorkflowEnvironment): + """Start a very long sleep, then fast forward the first 1000s.""" + async with new_worker(ts_env.client, SleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 100000.0, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + assert_timestamp_from_now(await ts_env.get_current_time(handle), 0, max_delta=1) + + assert await ts_env.fast_forward(handle, timedelta(seconds=1000)) + assert_timestamp_from_now(await ts_env.get_current_time(handle), 1000) + await assert_time_was_skipped(handle) + + await handle.cancel() + + +async def test_workflow_env_time_skipping_disabled_v2(ts_env: WorkflowEnvironment): + """With and without per-workflow auto-skip.""" + async with new_worker(ts_env.client, SleepWorkflow) as worker: + # With time-skipping. + start = monotonic() + ts_on_handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 3.0, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + ts_on_result = await ts_on_handle.result() + assert ts_on_result["message"] == "all done" + assert monotonic() - start < 2.5 + await assert_time_was_skipped(ts_on_handle) + + # Without time-skipping. + start = monotonic() + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 3.0, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + ts_off_result = await handle.result() + assert ts_off_result["message"] == "all done" + assert monotonic() - start > 2.5 + await assert_time_was_not_skipped(handle) + + +async def test_workflow_env_time_skipping_basic_via_update_v2( + ts_env: WorkflowEnvironment, +): + """Start a very long sleep with time skipping off, then enable it + and run to completion.""" + async with new_worker(ts_env.client, SleepWorkflow) as worker: + with ts_env.with_time_skipping_disabled(): + handle = await ts_env.client.start_workflow( + SleepWorkflow.run, + 100000.0, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + assert not await ts_env.fast_forward(handle, None) + result = await handle.result() + assert result["message"] == "all done" + assert_timestamp_from_now(await ts_env.get_current_time(handle), 100000) + await assert_time_was_skipped(handle) diff --git a/tests/worker/test_activity.py b/tests/worker/test_activity.py index 64691a93f..5b21c3d0a 100644 --- a/tests/worker/test_activity.py +++ b/tests/worker/test_activity.py @@ -1,5 +1,6 @@ import asyncio import concurrent.futures +import dataclasses import logging import logging.handlers import os @@ -24,12 +25,14 @@ import temporalio.exceptions from temporalio import activity, workflow from temporalio.client import ( + AsyncActivityCancelledError, AsyncActivityHandle, Client, WorkflowFailureError, WorkflowHandle, ) from temporalio.common import RawValue, RetryPolicy +from temporalio.converter import DataConverter, PayloadCodec from temporalio.exceptions import ( ActivityError, ApplicationError, @@ -176,7 +179,7 @@ async def test_activity_info( shared_state_manager: SharedStateManager, ): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1426" ) @@ -788,7 +791,7 @@ async def test_activity_heartbeat_details( env: WorkflowEnvironment, shared_state_manager: SharedStateManager, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("https://github.com/temporalio/sdk-java/issues/2459") @activity.defn @@ -849,7 +852,7 @@ async def test_activity_heartbeat_details_timeout( shared_state_manager: SharedStateManager, ): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1427" ) @@ -877,6 +880,67 @@ async def some_activity() -> str: assert list(timeout.last_heartbeat_details) == ["some details!"] +class _GatedFirstHeartbeatCodec(PayloadCodec): + """Holds the first heartbeat in encode until released, like a codec waiting on a remote KMS.""" + + def __init__(self) -> None: + self.first_started = asyncio.Event() + self.release_first = asyncio.Event() + self.first_done = asyncio.Event() + + async def encode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + if any(p.data == b'"first"' for p in payloads): + self.first_started.set() + await self.release_first.wait() + self.first_done.set() + return list(payloads) + + async def decode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + return list(payloads) + + +async def test_activity_heartbeat_details_keep_order_with_slow_codec( + client: Client, + worker: ExternalWorker, + env: WorkflowEnvironment, + shared_state_manager: SharedStateManager, +): + if env.supports_time_skipping: + pytest.skip("https://github.com/temporalio/sdk-java/issues/2459") + + codec = _GatedFirstHeartbeatCodec() + + @activity.defn + async def some_activity() -> str: + info = activity.info() + if info.heartbeat_details: + return f"resumed from: {next(iter(info.heartbeat_details))}" + activity.heartbeat("first") + # Send the second heartbeat while the first one is still encoding + await codec.first_started.wait() + activity.heartbeat("second") + codec.release_first.set() + await codec.first_done.wait() + raise RuntimeError("Try again!") + + config = client.config() + config["data_converter"] = dataclasses.replace( + client.data_converter, payload_codec=codec + ) + result = await _execute_workflow_with_activity( + Client(**config), + worker, + some_activity, + retry_max_attempts=2, + shared_state_manager=shared_state_manager, + ) + assert result.result == "resumed from: second" + + @activity.defn def picklable_heartbeat_details_activity() -> str: info = activity.info() @@ -897,7 +961,7 @@ async def test_sync_activity_thread_heartbeat_details( env: WorkflowEnvironment, shared_state_manager: SharedStateManager, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("https://github.com/temporalio/sdk-java/issues/2459") with concurrent.futures.ThreadPoolExecutor( @@ -920,7 +984,7 @@ async def test_sync_activity_process_heartbeat_details( env: WorkflowEnvironment, shared_state_manager: SharedStateManager, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("https://github.com/temporalio/sdk-java/issues/2459") with concurrent.futures.ProcessPoolExecutor() as executor: @@ -1130,6 +1194,87 @@ async def wait_on_event() -> str: assert "Worker graceful shutdown" == await handle.result() +class _BlockingEncodeCodec(PayloadCodec): + """Blocks in encode until released, like a codec waiting on a remote KMS.""" + + def __init__(self) -> None: + self.encoding_started = asyncio.Event() + self.release = asyncio.Event() + + async def encode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + self.encoding_started.set() + await self.release.wait() + return list(payloads) + + async def decode( + self, payloads: Sequence[temporalio.api.common.v1.Payload] + ) -> list[temporalio.api.common.v1.Payload]: + return list(payloads) + + +async def test_activity_cancel_during_result_encode_still_completes( + client: Client, worker: ExternalWorker, caplog: pytest.LogCaptureFixture +): + @activity.defn + async def fail_with_details() -> NoReturn: + # Details send the failure through the codec + raise ApplicationError("boom", {"detail": "x"}) + + codec = _BlockingEncodeCodec() + config = client.config() + config["data_converter"] = dataclasses.replace( + DataConverter.default, payload_codec=codec + ) + act_task_queue = str(uuid.uuid4()) + act_worker = Worker( + Client(**config), task_queue=act_task_queue, activities=[fail_with_details] + ) + run_task = asyncio.create_task(act_worker.run()) + handle = await client.start_workflow( + "kitchen_sink", + KSWorkflowParams( + actions=[ + KSAction( + execute_activity=KSExecuteActivityAction( + name="fail_with_details", + task_queue=act_task_queue, + retry_max_attempts=1, + ) + ) + ] + ), + id=str(uuid.uuid4()), + task_queue=worker.task_queue, + ) + # Shut down while the failure is still being encoded. With no grace period + # the worker cancels the activity at once, which must not keep its outcome + # from being reported, or shutdown would wait on it forever. + await codec.encoding_started.wait() + with caplog.at_level(logging.DEBUG, logger="temporalio.worker._activity"): + shutdown_task = asyncio.create_task(act_worker.shutdown()) + + # Only let encoding finish once the cancel has reached the activity, + # so it cannot complete first and let an unfixed worker pass + async def cancel_logged() -> None: + while not any( + rec.getMessage().startswith("Cancelling activity") + for rec in caplog.records + ): + await asyncio.sleep(0.01) + + await asyncio.wait_for(cancel_logged(), 20) + codec.release.set() + await asyncio.wait_for(shutdown_task, 20) + await run_task + with pytest.raises(WorkflowFailureError) as err: + await handle.result() + assert isinstance(err.value.cause, ActivityError) + assert isinstance(err.value.cause.cause, ApplicationError) + assert err.value.cause.cause.message == "boom" + + @activity.defn def picklable_wait_on_event() -> str: activity.wait_for_worker_shutdown_sync(20) @@ -1317,7 +1462,7 @@ async def test_activity_async_heartbeat_and_fail( use_task_token: bool, shared_state_manager: SharedStateManager, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("https://github.com/temporalio/sdk-java/issues/2459") wrapper = AsyncActivityWrapper() @@ -1354,6 +1499,47 @@ async def test_activity_async_heartbeat_and_fail( assert list(err.value.cause.cause.details) == ["err details 2"] +@pytest.mark.parametrize("use_task_token", [True, False]) +async def test_activity_async_heartbeat_reset( + client: Client, + worker: ExternalWorker, + env: WorkflowEnvironment, + use_task_token: bool, + shared_state_manager: SharedStateManager, +): + if env.supports_time_skipping_v1: + pytest.skip("Time skipping server doesn't support activity reset") + + wrapper = AsyncActivityWrapper() + task = asyncio.create_task( + _execute_workflow_with_activity( + client, + worker, + wrapper.run, + shared_state_manager=shared_state_manager, + ) + ) + info = await wrapper.wait_info() + await client.workflow_service.reset_activity( + temporalio.api.workflowservice.v1.ResetActivityRequest( + namespace=client.namespace, + execution=temporalio.api.common.v1.WorkflowExecution( + workflow_id=info.workflow_id or "", + run_id=info.workflow_run_id or "", + ), + id=info.activity_id, + ) + ) + with pytest.raises(AsyncActivityCancelledError) as err: + await wrapper.async_handle(client, use_task_token).heartbeat() + assert err.value.details == activity.ActivityCancellationDetails(reset=True) + + assert info.workflow_id + await client.get_workflow_handle(info.workflow_id).terminate() + with pytest.raises(WorkflowFailureError): + await task + + @pytest.mark.parametrize("use_task_token", [True, False]) async def test_activity_async_cancel( client: Client, @@ -1478,7 +1664,7 @@ async def test_sync_activity_cancel_after_return_does_not_kill_thread_pool_worke env: WorkflowEnvironment, shared_state_manager: SharedStateManager, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Test requires real worker-side timeout cancellation delivery") def alive_thread_count(executor: ThreadPoolExecutor) -> int: @@ -1882,7 +2068,7 @@ async def test_activity_reset_catch( env: WorkflowEnvironment, shared_state_manager: SharedStateManager, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Time skipping server doesn't support activity reset") @activity.defn @@ -1954,7 +2140,7 @@ async def test_activity_reset_history( env: WorkflowEnvironment, shared_state_manager: SharedStateManager, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Time skipping server doesn't support activity reset") @activity.defn diff --git a/tests/worker/test_activity_method_annotations.py b/tests/worker/test_activity_method_annotations.py new file mode 100644 index 000000000..8b79c6b44 --- /dev/null +++ b/tests/worker/test_activity_method_annotations.py @@ -0,0 +1,63 @@ +from __future__ import annotations + +import uuid +from dataclasses import dataclass +from datetime import timedelta + +from typing_extensions import Self + +from temporalio import activity, workflow +from temporalio.client import Client +from temporalio.worker import Worker + + +@dataclass +class Location: + city: str + + +class LocationActivities: + @activity.defn + async def plain(self, loc: Location) -> str: + return type(loc).__name__ + + @activity.defn + async def annotated(self: Self, loc: Location) -> str: + return type(loc).__name__ + + +@workflow.defn +class ActivityMethodAnnotationsWorkflow: + @workflow.run + async def run(self) -> list[str]: + return [ + await workflow.execute_activity_method( + LocationActivities.plain, + Location("Rome"), + start_to_close_timeout=timedelta(seconds=10), + ), + await workflow.execute_activity_method( + LocationActivities.annotated, + Location("Rome"), + start_to_close_timeout=timedelta(seconds=10), + ), + ] + + +async def test_activity_method_with_annotated_self(client: Client): + activities = LocationActivities() + task_queue = str(uuid.uuid4()) + async with Worker( + client, + task_queue=task_queue, + workflows=[ActivityMethodAnnotationsWorkflow], + activities=[activities.plain, activities.annotated], + ): + plain, annotated = await client.execute_workflow( + ActivityMethodAnnotationsWorkflow.run, + id=str(uuid.uuid4()), + task_queue=task_queue, + ) + + assert plain == "Location" + assert annotated == "Location" diff --git a/tests/worker/test_child_workflow_versioning.py b/tests/worker/test_child_workflow_versioning.py new file mode 100644 index 000000000..3225d6d25 --- /dev/null +++ b/tests/worker/test_child_workflow_versioning.py @@ -0,0 +1,240 @@ +"""Serverless tests of child workflow versioning commands and start failures.""" + +import asyncio +from datetime import datetime, timedelta, timezone + +import pytest + +import temporalio.api.common.v1 +import temporalio.api.deployment.v1 +import temporalio.api.enums.v1 +import temporalio.api.workflow.v1 +import temporalio.bridge.proto.child_workflow as child_workflow +import temporalio.bridge.proto.workflow_activation as workflow_activation +import temporalio.common as common +import temporalio.converter as converter +import temporalio.exceptions as exceptions +import temporalio.worker +import temporalio.workflow as workflow + + +@workflow.defn +class ParentWorkflow: + @workflow.run + async def run(self, execute: bool, override_kind: str, error_name: str) -> str: + version = common.WorkerDeploymentVersion("deployment", "build") + override = { + "absent": None, + "PinnedVersioningOverride": common.PinnedVersioningOverride(version), + "AutoUpgradeVersioningOverride": common.AutoUpgradeVersioningOverride(), + "OneTimeVersioningOverride": common.OneTimeVersioningOverride(version), + }[override_kind] + try: + if execute: + await workflow.execute_child_workflow( + "ChildWorkflow", id="child-id", versioning_override=override + ) + else: + await workflow.start_child_workflow( + "ChildWorkflow", id="child-id", versioning_override=override + ) + except ( + exceptions.InvalidVersioningOverrideError, + exceptions.WorkflowAlreadyStartedError, + ) as err: + assert type(err).__name__ == error_name + assert isinstance(err, exceptions.FailureError) + if isinstance(err, exceptions.WorkflowAlreadyStartedError): + assert err.workflow_id == "child-id" + assert err.workflow_type == "ChildWorkflow" + return type(err).__name__ + raise AssertionError("Child start should have failed") + + +def _create_instance(workflow_class: type) -> temporalio.worker.WorkflowInstance: + defn = workflow._Definition.must_from_class(workflow_class) + start_time = datetime(2026, 1, 1, tzinfo=timezone.utc) + return temporalio.worker.UnsandboxedWorkflowRunner().create_instance( + temporalio.worker.WorkflowInstanceDetails( + payload_converter_factory=converter.DefaultPayloadConverter, + failure_converter_class=converter.DefaultFailureConverter, + interceptor_classes=[], + defn=defn, + info=workflow.Info( + attempt=1, + continued_run_id=None, + cron_schedule=None, + execution_timeout=None, + first_execution_run_id="parent-run", + headers={}, + namespace="test-namespace", + original_execution_run_id="parent-run", + parent=None, + root=None, + priority=common.Priority(), + raw_memo={}, + retry_policy=None, + run_id="parent-run", + run_timeout=None, + search_attributes={}, + start_time=start_time, + task_queue="test-task-queue", + task_timeout=timedelta(seconds=10), + typed_search_attributes=common.TypedSearchAttributes.empty, + workflow_id="parent-id", + workflow_start_time=start_time, + workflow_type=defn.name or "", + ), + randomness_seed=1, + extern_functions={}, + disable_eager_activity_execution=False, + worker_level_failure_exception_types=[], + patch_activation_callback=None, + last_completion_result=temporalio.api.common.v1.Payloads(), + last_failure=None, + ) + ) + + +@pytest.mark.parametrize("execute", [False, True], ids=["start", "execute"]) +@pytest.mark.parametrize( + "override,expected_override", + [ + pytest.param(None, None, id="absent"), + pytest.param( + common.PinnedVersioningOverride( + common.WorkerDeploymentVersion("deployment", "build") + ), + temporalio.api.workflow.v1.VersioningOverride( + behavior=temporalio.api.enums.v1.VersioningBehavior.VERSIONING_BEHAVIOR_PINNED, + pinned_version="deployment.build", + pinned=temporalio.api.workflow.v1.VersioningOverride.PinnedOverride( + version=temporalio.api.deployment.v1.WorkerDeploymentVersion( + deployment_name="deployment", build_id="build" + ), + behavior=temporalio.api.workflow.v1.VersioningOverride.PinnedOverrideBehavior.PINNED_OVERRIDE_BEHAVIOR_PINNED, + ), + ), + id="pinned", + ), + pytest.param( + common.AutoUpgradeVersioningOverride(), + temporalio.api.workflow.v1.VersioningOverride( + behavior=temporalio.api.enums.v1.VersioningBehavior.VERSIONING_BEHAVIOR_AUTO_UPGRADE, + auto_upgrade=True, + ), + id="auto-upgrade", + ), + pytest.param( + common.OneTimeVersioningOverride( + common.WorkerDeploymentVersion("deployment", "build") + ), + temporalio.api.workflow.v1.VersioningOverride( + one_time=temporalio.api.workflow.v1.VersioningOverride.OneTimeOverride( + target_deployment_version=temporalio.api.deployment.v1.WorkerDeploymentVersion( + deployment_name="deployment", build_id="build" + ) + ) + ), + id="one-time", + ), + ], +) +@pytest.mark.parametrize( + "cause,error_type", + [ + pytest.param( + child_workflow.StartChildWorkflowExecutionFailedCause.START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_INVALID_VERSIONING_OVERRIDE, + exceptions.InvalidVersioningOverrideError, + id="invalid-versioning-override", + ), + pytest.param( + child_workflow.StartChildWorkflowExecutionFailedCause.START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS, + exceptions.WorkflowAlreadyStartedError, + id="already-started", + ), + ], +) +async def test_child_workflow_versioning( + execute: bool, + override: common.VersioningOverride | None, + expected_override: temporalio.api.workflow.v1.VersioningOverride | None, + cause: child_workflow.StartChildWorkflowExecutionFailedCause.ValueType, + error_type: type[exceptions.FailureError], +) -> None: + instance = _create_instance(ParentWorkflow) + try: + # Workers run activations off-loop so workflow tasks do not nest inside + # the caller's asyncio task. + completion = await asyncio.to_thread( + instance.activate, + workflow_activation.WorkflowActivation( + run_id="parent-run", + jobs=[ + workflow_activation.WorkflowActivationJob( + initialize_workflow=workflow_activation.InitializeWorkflow( + workflow_type="ParentWorkflow", + workflow_id="parent-id", + randomness_seed=1, + arguments=converter.DefaultPayloadConverter().to_payloads( + [ + execute, + type(override).__name__ if override else "absent", + error_type.__name__, + ] + ), + ) + ) + ], + ), + ) + assert completion.HasField("successful") + assert len(completion.successful.commands) == 1 + command = completion.successful.commands[0] + assert command.HasField("start_child_workflow_execution") + start = command.start_child_workflow_execution + assert start.workflow_id == "child-id" + assert start.workflow_type == "ChildWorkflow" + if expected_override is None: + assert not start.HasField("versioning_override") + else: + assert start.HasField("versioning_override") + assert start.versioning_override == expected_override + + completion = await asyncio.to_thread( + instance.activate, + workflow_activation.WorkflowActivation( + run_id="parent-run", + jobs=[ + workflow_activation.WorkflowActivationJob( + resolve_child_workflow_execution_start=workflow_activation.ResolveChildWorkflowExecutionStart( + seq=start.seq, + failed=workflow_activation.ResolveChildWorkflowExecutionStartFailure( + workflow_id=start.workflow_id, + workflow_type=start.workflow_type, + cause=cause, + ), + ) + ) + ], + ), + ) + assert completion.HasField("successful") + assert len(completion.successful.commands) == 1 + command = completion.successful.commands[0] + assert command.HasField("complete_workflow_execution") + assert converter.DefaultPayloadConverter().from_payloads( + [command.complete_workflow_execution.result] + ) == [error_type.__name__] + finally: + await asyncio.to_thread( + instance.activate, + workflow_activation.WorkflowActivation( + run_id="parent-run", + jobs=[ + workflow_activation.WorkflowActivationJob( + remove_from_cache=workflow_activation.RemoveFromCache() + ) + ], + ), + ) diff --git a/tests/worker/test_event_groups.py b/tests/worker/test_event_groups.py new file mode 100644 index 000000000..a71de6543 --- /dev/null +++ b/tests/worker/test_event_groups.py @@ -0,0 +1,1973 @@ +from __future__ import annotations + +import asyncio +import uuid +from collections.abc import Sequence +from datetime import timedelta + +import nexusrpc +import pytest + +from temporalio import activity, workflow +from temporalio.api.common.v1 import Payload +from temporalio.api.enums.v1 import EventType +from temporalio.api.history.v1 import HistoryEvent +from temporalio.api.sdk.v1 import EventGroupMarker +from temporalio.client import Client, WorkflowHandle +from temporalio.common import RawValue, RetryPolicy, SearchAttributeKey +from temporalio.converter import ( + CompositePayloadConverter, + DataConverter, + DefaultPayloadConverter, + EncodingPayloadConverter, + PayloadCodec, + PayloadConverter, +) +from temporalio.exceptions import ( + ActivityError, + ApplicationError, + ChildWorkflowError, + NexusOperationError, + TemporalError, +) +from temporalio.testing import WorkflowEnvironment +from temporalio.worker import Worker +from temporalio.workflow._event_groups import ( + _active_event_groups, + _ActiveEventGroups, + _capture_event_group_markers, + _inbound_event_group, + _LabelEventGroup, + _StubImplicitEventGroup, +) +from tests.helpers import ( + assert_eventually, + ensure_search_attributes_present, + new_worker, +) +from tests.helpers.nexus import make_nexus_endpoint_name + +_ACT_TIMEOUT = timedelta(seconds=10) + + +# These tests need a server that transcribes Event Group markers onto history. +# Time-skipping (the Java test server) does not. +def _require_event_groups_server(env: WorkflowEnvironment) -> None: + if env.supports_time_skipping_v1: + pytest.skip("Event Groups require a server that transcribes markers") + + +#################################################################################################### +# 1. Explicit Event Groups Marker Label IDs (`EG-LABEL-ID`) +# +# EG-LABEL-ID-00..04 (derived IDs) are retracted: IDs are always caller-provided. +#################################################################################################### + + +@workflow.defn +class UserProvidedIdsWorkflow: + @workflow.run + async def run(self) -> None: + c = workflow.create_event_group("c-id", label="ccc") + d1 = workflow.create_event_group("d-id", label="ddd1") + d2 = workflow.create_event_group("d-id", label="ddd2") + not_c = workflow.create_event_group("not-c-id", label="ccc") + await _activity("activity-c", [c]) + await _activity("activity-d1", [d1]) + await _activity("activity-d2", [d2]) + await _activity("activity-not-c", [not_c]) + + +async def test_user_provided_label_ids(client: Client, env: WorkflowEnvironment): + _require_event_groups_server(env) + + async with new_worker( + client, UserProvidedIdsWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + UserProvidedIdsWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + assert ( + len(_events_of_type(events, EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED)) + == 4 + ) + + # EG-LABEL-ID-20: IDs are used verbatim + _assert_marker_ids( + _activity_event(events, "activity-c"), _label_marker_id("c-id") + ) + + # EG-LABEL-ID-21: different labels + same ID => same group + assert _marker_ids(_activity_event(events, "activity-d1")) == _marker_ids( + _activity_event(events, "activity-d2") + ) + + # EG-LABEL-ID-22: same label + different IDs => distinct groups + assert _marker_ids(_activity_event(events, "activity-c")) != _marker_ids( + _activity_event(events, "activity-not-c") + ) + + +#################################################################################################### +# 2. Explicit Event Groups Marker Label Payload (`EG-LABEL-PAYLOAD`) +#################################################################################################### + + +@workflow.defn +class LabelPayloadWorkflow: + @workflow.run + async def run(self) -> None: + a = workflow.create_event_group("aaa") + b = workflow.create_event_group("bbb", label="Label B") + # Control: activity arguments go through the worker's payload converter, so this is how the + # custom-converter test proves that converter is actually installed. + await workflow.execute_activity( + control_activity, + "control", + start_to_close_timeout=_ACT_TIMEOUT, + activity_id="control", + ) + await _activity("activity-a", [a]) + await _activity("activity-b", [b]) + + +class _CustomStringConverter(EncodingPayloadConverter): + @property + def encoding(self) -> str: + return "custom" + + def to_payload(self, value: object) -> Payload | None: + if isinstance(value, str): + return Payload( + metadata={"encoding": b"custom"}, + data=f"custom-converter-{value}".encode(), + ) + return None + + def from_payload(self, payload: Payload, type_hint: type | None = None) -> str: + text = payload.data.decode() + prefix = "custom-converter-" + return text[len(prefix) :] if text.startswith(prefix) else text + + +class _CustomPayloadConverter(CompositePayloadConverter): + def __init__(self) -> None: + super().__init__( + _CustomStringConverter(), + *DefaultPayloadConverter.default_encoding_payload_converters, + ) + + +class _WrappingPayloadCodec(PayloadCodec): + async def encode(self, payloads: Sequence[Payload]) -> list[Payload]: + return [ + Payload( + metadata={"encoding": b"binary/wrapped"}, data=p.SerializeToString() + ) + for p in payloads + ] + + async def decode(self, payloads: Sequence[Payload]) -> list[Payload]: + decoded: list[Payload] = [] + for payload in payloads: + inner = Payload() + inner.ParseFromString(payload.data) + decoded.append(inner) + return decoded + + +async def test_label_payload_is_json_plain(client: Client, env: WorkflowEnvironment): + _require_event_groups_server(env) + + async with new_worker( + client, + LabelPayloadWorkflow, + activities=[noop_activity, control_activity], + ) as worker: + handle = await client.start_workflow( + LabelPayloadWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + + activity_a = _activity_event(events, "activity-a") + activity_b = _activity_event(events, "activity-b") + _assert_markers(activity_a, _label_marker_id("aaa")) + _assert_markers(activity_b, _label_marker("bbb", "Label B")) + + # EG-LABEL-PAYLOAD-00: label payload is a json/plain JSON string + assert _label_payload_of(activity_b, "bbb") == ("json/plain", '"Label B"') + + # EG-LABEL-PAYLOAD-02: an omitted label produces no payload + assert not _label_payload_set(activity_a, "aaa") + + +async def test_label_payload_uses_default_converter_not_worker_converter( + env: WorkflowEnvironment, +): + _require_event_groups_server(env) + + custom_client = await env.connect_client( + data_converter=DataConverter(payload_converter_class=_CustomPayloadConverter) + ) + async with new_worker( + custom_client, + LabelPayloadWorkflow, + activities=[noop_activity, control_activity], + ) as worker: + handle = await custom_client.start_workflow( + LabelPayloadWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + + control = _activity_event(events, "control") + control_payload = ( + control.activity_task_scheduled_event_attributes.input.payloads[0] + ) + assert control_payload.metadata["encoding"] == b"custom" + assert control_payload.data == b"custom-converter-control" + + activity_a = _activity_event(events, "activity-a") + activity_b = _activity_event(events, "activity-b") + + # EG-LABEL-PAYLOAD-01: labels still go through the SDK default converter + assert _label_payload_of(activity_b, "bbb") == ("json/plain", '"Label B"') + assert not _label_payload_set(activity_a, "aaa") + + +async def test_label_payload_is_codec_encoded_but_ids_are_not( + env: WorkflowEnvironment, +): + _require_event_groups_server(env) + + codec = _WrappingPayloadCodec() + codec_client = await env.connect_client( + data_converter=DataConverter(payload_codec=codec) + ) + async with new_worker( + codec_client, + LabelPayloadWorkflow, + activities=[noop_activity, control_activity], + ) as worker: + handle = await codec_client.start_workflow( + LabelPayloadWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + + activity_a = _activity_event(events, "activity-a") + activity_b = _activity_event(events, "activity-b") + + # EG-LABEL-PAYLOAD-21: IDs are not codec-encoded + _assert_marker_ids(activity_a, _label_marker_id("aaa")) + _assert_marker_ids(activity_b, _label_marker_id("bbb")) + + # EG-LABEL-PAYLOAD-20: label payloads are processed by payload codecs + assert _label_payload_of(activity_b, "bbb")[0] == "binary/wrapped" + decoded_b = (await codec.decode([_raw_label_payload(activity_b, "bbb")]))[0] + assert PayloadConverter.default.from_payload(decoded_b) == "Label B" + assert not _label_payload_set(activity_a, "aaa") + + +#################################################################################################### +# 3. Explicit Event Group Scopes (`EG-SCOPE`) +#################################################################################################### + + +@workflow.defn +class ScopeBaselineWorkflow: + @workflow.run + async def run(self) -> None: + a = workflow.create_event_group("aaa") + with a.scope(): + await _activity("activity") + await workflow.sleep(0.001) + await workflow.start_child_workflow( + NoopChildWorkflow.run, + id=f"{workflow.info().workflow_id}_child", + ) + + +async def test_commands_in_a_scope_carry_its_marker( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, + ScopeBaselineWorkflow, + NoopChildWorkflow, + activities=[noop_activity], + ) as worker: + handle = await client.start_workflow( + ScopeBaselineWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + a = _label_marker_id("aaa") + + # EG-SCOPE-00: baseline only; per-command coverage lives in EG-COMMANDS + _assert_markers(_activity_event(events, "activity"), a) + _assert_markers(_single_event(events, EventType.EVENT_TYPE_TIMER_STARTED), a) + _assert_markers( + _single_event( + events, EventType.EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED + ), + a, + ) + + +@workflow.defn +class NestedScopesWorkflow: + @workflow.run + async def run(self) -> None: + a = workflow.create_event_group("aaa") + b = workflow.create_event_group("bbb") + with a.scope(): + await _activity("a-before") + with b.scope(): + await _activity("a-b") + await _activity("a-after") + await _activity("outside") + + +async def test_nesting_scopes_composes(client: Client, env: WorkflowEnvironment): + _require_event_groups_server(env) + + async with new_worker( + client, NestedScopesWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + NestedScopesWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + a = _label_marker_id("aaa") + b = _label_marker_id("bbb") + + assert ( + len(_events_of_type(events, EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED)) + == 4 + ) + + # EG-SCOPE-01 + _assert_markers(_activity_event(events, "a-before"), a) + _assert_markers(_activity_event(events, "a-b"), a, b) + _assert_markers(_activity_event(events, "a-after"), a) + _assert_markers(_activity_event(events, "outside")) + + +@workflow.defn +class ReenteredScopeWorkflow: + @workflow.run + async def run(self) -> None: + a = workflow.create_event_group("aaa") + with a.scope(): + await _activity("a-before") + with a.scope(): + await _activity("a-inner") + await _activity("a-after") + await _activity("outside") + + +async def test_reentering_a_group_nests_correctly( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, ReenteredScopeWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + ReenteredScopeWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + a = _label_marker_id("aaa") + + assert ( + len(_events_of_type(events, EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED)) + == 4 + ) + + # EG-SCOPE-02: inner re-entry still serializes the marker once + _assert_markers(_activity_event(events, "a-before"), a) + _assert_markers(_activity_event(events, "a-inner"), a) + _assert_markers(_activity_event(events, "a-after"), a) + _assert_markers(_activity_event(events, "outside")) + + +@workflow.defn +class ConcurrentScopesWorkflow: + @workflow.run + async def run(self) -> None: + a = workflow.create_event_group("aaa") + b = workflow.create_event_group("bbb") + c = workflow.create_event_group("ccc") + d = workflow.create_event_group("ddd") + e = workflow.create_event_group("eee") + + async def left() -> None: + with b.scope(): + with a.scope(): + with c.scope(): + await _activity("b-a-c") + await _activity("b-a") + await _activity("b-after-a") + + async def right() -> None: + with d.scope(): + with a.scope(): + with e.scope(): + await _activity("d-a-e") + await _activity("d-a") + await _activity("d-after-a") + + await asyncio.gather(left(), right()) + await _activity("outside") + + +async def test_a_group_can_be_scoped_from_two_concurrent_branches( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, ConcurrentScopesWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + ConcurrentScopesWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + a = _label_marker_id("aaa") + b = _label_marker_id("bbb") + c = _label_marker_id("ccc") + d = _label_marker_id("ddd") + e = _label_marker_id("eee") + + assert ( + len(_events_of_type(events, EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED)) + == 7 + ) + + # EG-SCOPE-03: a mutable "currently active groups" stack would cross-contaminate here + _assert_markers(_activity_event(events, "b-a-c"), b, a, c) + _assert_markers(_activity_event(events, "b-a"), b, a) + _assert_markers(_activity_event(events, "b-after-a"), b) + _assert_markers(_activity_event(events, "d-a-e"), d, a, e) + _assert_markers(_activity_event(events, "d-a"), d, a) + _assert_markers(_activity_event(events, "d-after-a"), d) + _assert_markers(_activity_event(events, "outside")) + + +@workflow.defn +class DetachedTaskScopeWorkflow: + @workflow.run + async def run(self) -> None: + a = workflow.create_event_group("aaa") + released = False + started = False + + async def task() -> None: + nonlocal started + await _activity("inside-before") + started = True + await workflow.wait_condition(lambda: released) + await _activity("inside-after") + + with a.scope(): + running = asyncio.create_task(task()) + await workflow.wait_condition(lambda: started) + released = True + await running + await _activity("outside") + + +async def test_a_task_started_inside_a_scope_keeps_it_after_exit( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, DetachedTaskScopeWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + DetachedTaskScopeWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + a = _label_marker_id("aaa") + + assert ( + len(_events_of_type(events, EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED)) + == 3 + ) + + # EG-SCOPE-04: membership is captured when the task is started + _assert_markers(_activity_event(events, "inside-before"), a) + _assert_markers(_activity_event(events, "inside-after"), a) + _assert_markers(_activity_event(events, "outside")) + + +@workflow.defn +class OutsiderTaskScopeWorkflow: + @workflow.run + async def run(self) -> None: + a = workflow.create_event_group("aaa") + release = False + + async def outsider() -> None: + await workflow.wait_condition(lambda: release) + await _activity("outside-task") + + running = asyncio.create_task(outsider()) + with a.scope(): + await _activity("in-a") + release = True + await running + + +async def test_a_task_created_outside_a_scope_does_not_inherit_it( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, OutsiderTaskScopeWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + OutsiderTaskScopeWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + a = _label_marker_id("aaa") + + assert ( + len(_events_of_type(events, EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED)) + == 2 + ) + + # EG-SCOPE-05: membership follows the context the code was started in + _assert_markers(_activity_event(events, "in-a"), a) + _assert_markers(_activity_event(events, "outside-task")) + + +@workflow.defn +class ThrowingScopeWorkflow: + @workflow.run + async def run(self) -> None: + a = workflow.create_event_group("aaa") + b = workflow.create_event_group("bbb") + with a.scope(): + try: + with b.scope(): + await _activity("a-b") + raise RuntimeError("boom") + except RuntimeError: + pass + await _activity("a-after") + + +async def test_a_scope_unwinds_cleanly_when_its_body_throws( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, ThrowingScopeWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + ThrowingScopeWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + a = _label_marker_id("aaa") + b = _label_marker_id("bbb") + + assert ( + len(_events_of_type(events, EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED)) + == 2 + ) + + # EG-SCOPE-06 + _assert_markers(_activity_event(events, "a-b"), a, b) + _assert_markers(_activity_event(events, "a-after"), a) + + +#################################################################################################### +# 4. Implicit Event Groups (`EG-IMPLICIT`) +#################################################################################################### + + +def test_invalid_inbound_event_id_is_noop_stub( + monkeypatch: pytest.MonkeyPatch, +) -> None: + monkeypatch.setattr(workflow.logger, "warning", lambda *args, **kwargs: None) + + stub = _inbound_event_group(0) + assert isinstance(stub, _StubImplicitEventGroup) + assert isinstance(_inbound_event_group(-1), _StubImplicitEventGroup) + + enclosing = _ActiveEventGroups(explicit={"id": _LabelEventGroup("id", "label")}) + applied = stub._applied_over(enclosing) + assert applied.implicit is None + assert applied.explicit == {} + + token = _active_event_groups.set(applied) + try: + assert _capture_event_group_markers(None) == [] + finally: + _active_event_groups.reset(token) + + +@workflow.defn +class StaticSignalHandlerWorkflow: + def __init__(self) -> None: + self._done = False + + @workflow.run + async def run(self) -> None: + await _activity("from-main-before-signal") + await workflow.wait_condition(lambda: self._done) + await _activity("from-main-after-signal") + + @workflow.signal + async def my_signal(self) -> None: + await _activity("from-static-signal") + a = workflow.create_event_group("aaa") + with a.scope(): + await _activity("from-static-signal-scoped") + self._done = True + + +async def test_static_signal_handler_implicit_group( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, StaticSignalHandlerWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + StaticSignalHandlerWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal(StaticSignalHandlerWorkflow.my_signal) + await handle.result() + events = await _fetch_events(handle) + signal = _event_marker(_signaled_event_ids(events)[0]) + a = _label_marker_id("aaa") + + # EG-IMPLICIT-00 + _assert_markers(_activity_event(events, "from-static-signal"), signal) + # EG-IMPLICIT-01 + _assert_markers(_activity_event(events, "from-static-signal-scoped"), signal, a) + # EG-IMPLICIT-30 + _assert_markers(_activity_event(events, "from-main-before-signal")) + _assert_markers(_activity_event(events, "from-main-after-signal")) + + +@workflow.defn +class RuntimeSignalHandlerWorkflow: + def __init__(self) -> None: + self._done = False + + @workflow.run + async def run(self) -> None: + outside = workflow.create_event_group("outside") + inside = workflow.create_event_group("inside") + + async def on_signal() -> None: + await _activity("from-runtime-signal") + with inside.scope(): + await _activity("from-runtime-signal-scoped") + self._done = True + + with outside.scope(): + workflow.set_signal_handler("mySignal", on_signal) + await _activity("in-outside") + + await _activity("from-main-before-signal") + await workflow.wait_condition(lambda: self._done) + await _activity("from-main-after-signal") + + +async def test_runtime_signal_handler_implicit_group( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, RuntimeSignalHandlerWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + RuntimeSignalHandlerWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal("mySignal") + await handle.result() + events = await _fetch_events(handle) + signal_ids = _signaled_event_ids(events) + assert len(signal_ids) == 1 + signal = _event_marker(signal_ids[0]) + outside = _label_marker_id("outside") + inside = _label_marker_id("inside") + + # EG-IMPLICIT-10: handler carries the signaled event, not the registration scope + _assert_markers(_activity_event(events, "from-runtime-signal"), signal) + _assert_markers(_activity_event(events, "in-outside"), outside) + # EG-IMPLICIT-11 + _assert_markers( + _activity_event(events, "from-runtime-signal-scoped"), signal, inside + ) + # EG-IMPLICIT-30 + _assert_markers(_activity_event(events, "from-main-before-signal")) + _assert_markers(_activity_event(events, "from-main-after-signal")) + + +@workflow.defn +class BufferedSignalWorkflow: + def __init__(self) -> None: + self._unblocked = False + self._handled = False + + @workflow.run + async def run(self) -> None: + workflow.set_signal_handler("unblock", self._unblock) + await workflow.wait_condition(lambda: self._unblocked) + + async def on_signal() -> None: + await _activity("from-runtime-signal") + self._handled = True + + workflow.set_signal_handler("mySignal", on_signal) + await workflow.wait_condition(lambda: self._handled) + + def _unblock(self) -> None: + self._unblocked = True + + +async def test_buffered_signal_keeps_its_original_implicit_marker( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, BufferedSignalWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + BufferedSignalWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal("mySignal") + await handle.signal("unblock") + await handle.result() + events = await _fetch_events(handle) + signal_ids = _signaled_event_ids(events) + assert len(signal_ids) == 2 + # mySignal is sent first, so it is the first signaled event + signal = _event_marker(signal_ids[0]) + + # EG-IMPLICIT-12 + _assert_markers(_activity_event(events, "from-runtime-signal"), signal) + + +@workflow.defn +class CatchAllSignalWorkflow: + def __init__(self) -> None: + self._done = False + + @workflow.run + async def run(self) -> None: + await workflow.wait_condition(lambda: self._done) + + @workflow.signal(dynamic=True) + async def on_any_signal(self, _name: str, _args: Sequence[RawValue]) -> None: + await _activity("from-catch-all-signal") + self._done = True + + +async def test_catch_all_signal_handler_implicit_group( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, CatchAllSignalWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + CatchAllSignalWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal("non-existent-signal") + await handle.result() + events = await _fetch_events(handle) + signal = _event_marker(_signaled_event_ids(events)[0]) + + # EG-IMPLICIT-20 + _assert_markers(_activity_event(events, "from-catch-all-signal"), signal) + + +@workflow.defn +class StaticUpdateHandlerWorkflow: + def __init__(self) -> None: + self._done = False + + @workflow.run + async def run(self) -> None: + await _activity("from-main-before-update") + await workflow.wait_condition(lambda: self._done) + await _activity("from-main-after-update") + + @workflow.update + async def my_update(self) -> None: + await _activity("from-static-update") + inside = workflow.create_event_group("inside") + with inside.scope(): + await _activity("from-static-update-scoped") + self._done = True + + +async def test_static_update_handler_implicit_group( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + update_id = "static-update-1" + async with new_worker( + client, StaticUpdateHandlerWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + StaticUpdateHandlerWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.execute_update(StaticUpdateHandlerWorkflow.my_update, id=update_id) + await handle.result() + events = await _fetch_events(handle) + update = _update_marker(update_id) + inside = _label_marker_id("inside") + + # EG-IMPLICIT-50 + _assert_markers(_activity_event(events, "from-static-update"), update) + # EG-IMPLICIT-51 + _assert_markers( + _activity_event(events, "from-static-update-scoped"), update, inside + ) + # EG-IMPLICIT-80 + _assert_markers(_activity_event(events, "from-main-before-update")) + _assert_markers(_activity_event(events, "from-main-after-update")) + + +@workflow.defn +class RuntimeUpdateHandlerWorkflow: + def __init__(self) -> None: + self._done = False + + @workflow.run + async def run(self) -> None: + outside = workflow.create_event_group("outside") + inside = workflow.create_event_group("inside") + + async def on_update() -> None: + await _activity("from-runtime-update") + with inside.scope(): + await _activity("from-runtime-update-scoped") + self._done = True + + with outside.scope(): + workflow.set_update_handler("myUpdate", on_update) + await _activity("in-outside") + + await _activity("from-main-before-update") + await workflow.wait_condition(lambda: self._done) + await _activity("from-main-after-update") + + +async def test_runtime_update_handler_implicit_group( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + update_id = "runtime-update-1" + async with new_worker( + client, RuntimeUpdateHandlerWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + RuntimeUpdateHandlerWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + # Updates that arrive before registration are rejected, not buffered. + async def handler_registered() -> None: + events = await _fetch_events(handle) + assert any( + e.event_type == EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED + and e.activity_task_scheduled_event_attributes.activity_id + == "in-outside" + for e in events + ) + + await assert_eventually(handler_registered) + await handle.execute_update("myUpdate", id=update_id) + await handle.result() + events = await _fetch_events(handle) + update = _update_marker(update_id) + outside = _label_marker_id("outside") + inside = _label_marker_id("inside") + + # EG-IMPLICIT-60 + _assert_markers(_activity_event(events, "from-runtime-update"), update) + _assert_markers(_activity_event(events, "in-outside"), outside) + # EG-IMPLICIT-61 + _assert_markers( + _activity_event(events, "from-runtime-update-scoped"), update, inside + ) + # EG-IMPLICIT-80 + _assert_markers(_activity_event(events, "from-main-before-update")) + _assert_markers(_activity_event(events, "from-main-after-update")) + + +@workflow.defn +class CatchAllUpdateWorkflow: + def __init__(self) -> None: + self._done = False + + @workflow.run + async def run(self) -> None: + await workflow.wait_condition(lambda: self._done) + + @workflow.update(dynamic=True) + async def on_any_update(self, _name: str, _args: Sequence[RawValue]) -> None: + await _activity("from-catch-all-update") + self._done = True + + +async def test_catch_all_update_handler_implicit_group( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + update_id = "catch-all-update-1" + async with new_worker( + client, CatchAllUpdateWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + CatchAllUpdateWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.execute_update("non-existent-update", id=update_id) + await handle.result() + events = await _fetch_events(handle) + + # EG-IMPLICIT-70 + _assert_markers( + _activity_event(events, "from-catch-all-update"), _update_marker(update_id) + ) + + +#################################################################################################### +# 5. Event Group Marker Aggregation (`EG-AGGREGATION`) +#################################################################################################### + + +@workflow.defn +class AggregationWorkflow: + @workflow.run + async def run(self) -> None: + a1 = workflow.create_event_group("aaa") + a2 = workflow.create_event_group("aaa") + b1 = workflow.create_event_group("b-id", label="bbb1") + b2 = workflow.create_event_group("b-id", label="bbb2") + + await _activity("direct-duplicates", [a2, b1, a1, b1, a2, a1]) + + with a1.scope(): + with a2.scope(): + with b1.scope(): + await _activity("nested-scopes") + + with a1.scope(): + with b1.scope(): + await _activity("scope-and-direct-b", [b1]) + await _activity("scope-and-direct-a-b", [b1, a1]) + + await _activity("same-instance-twice", [a1, a1]) + await _activity("same-id-direct", [b1, b2]) + with b1.scope(): + await _activity("same-id-scope-and-direct", [b2]) + + +async def test_markers_dedupe_by_id(client: Client, env: WorkflowEnvironment): + _require_event_groups_server(env) + + async with new_worker( + client, AggregationWorkflow, activities=[noop_activity] + ) as worker: + handle = await client.start_workflow( + AggregationWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + a = _label_marker_id("aaa") + b = _label_marker("b-id", "bbb1") + both = (a, b) + + # EG-AGGREGATION-00 + _assert_markers(_activity_event(events, "direct-duplicates"), *both) + # EG-AGGREGATION-01 + _assert_markers(_activity_event(events, "nested-scopes"), *both) + # EG-AGGREGATION-02 + _assert_markers(_activity_event(events, "scope-and-direct-b"), *both) + _assert_markers(_activity_event(events, "scope-and-direct-a-b"), *both) + # EG-AGGREGATION-03 + _assert_markers(_activity_event(events, "same-instance-twice"), a) + # EG-AGGREGATION-04: compare IDs only; which label is emitted is unspecified + _assert_marker_ids( + _activity_event(events, "same-id-direct"), _label_marker_id("b-id") + ) + _assert_marker_ids( + _activity_event(events, "same-id-scope-and-direct"), + _label_marker_id("b-id"), + ) + + +#################################################################################################### +# 6. Command Type Coverage (`EG-COMMANDS`) +# +# EG-COMMANDS-07-CHILD does not apply: the child handle is an asyncio.Task, so Task.cancel() +# is the inherited-from-start path already covered by EG-COMMANDS-04-CANCEL. +# EG-COMMANDS-23 and EG-COMMANDS-24 do not apply: Core-based SDKs have no version/sideEffect API. +# Python continue_as_new always takes options, so there is no short-form counterpart of EG-COMMANDS-40. +#################################################################################################### + + +@workflow.defn +class TimerCommandsWorkflow: + @workflow.run + async def run(self) -> None: + direct = workflow.create_event_group("direct") + scope = workflow.create_event_group("scope") + with scope.scope(): + await workflow.sleep(0.001, event_groups=[direct]) + try: + await workflow.wait_condition( + lambda: False, timeout=0.001, event_groups=[direct] + ) + except asyncio.TimeoutError: + pass + # A 1ms sleep is the timeout; cancelling the 60s task is the cancel + # command. Avoid asyncio.wait_for so the timeout timer is a normal + # sleep and only carries the ambient scope. + long = asyncio.create_task(workflow.sleep(60, event_groups=[direct])) + await workflow.sleep(0.001) + long.cancel() + await _swallow(long) + + +async def test_timer_commands_carry_markers(client: Client, env: WorkflowEnvironment): + _require_event_groups_server(env) + + async with new_worker(client, TimerCommandsWorkflow) as worker: + handle = await client.start_workflow( + TimerCommandsWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + both = ( + _label_marker_id("direct"), + _label_marker_id("scope"), + ) + ambient = (_label_marker_id("scope"),) + + timers = _events_of_type(events, EventType.EVENT_TYPE_TIMER_STARTED) + # sleep, wait_condition timeout, wait_for's 1ms timeout, the cancelled 60s sleep + assert len(timers) == 4 + cancels = _events_of_type(events, EventType.EVENT_TYPE_TIMER_CANCELED) + assert len(cancels) == 1 + + # EG-COMMANDS-00 and EG-COMMANDS-01 run sequentially, so they are the first two timers + _assert_markers(timers[0], *both) + _assert_markers(timers[1], *both) + # EG-COMMANDS-00-CANCEL: wait_for starts both remaining timers in one task, so select by set + rest = timers[2:] + ambient_timers = [t for t in rest if _markers(t) == sorted(ambient)] + both_timers = [t for t in rest if _markers(t) == sorted(both)] + assert len(ambient_timers) == 1 + assert len(both_timers) == 1 + _assert_markers(cancels[0], *both) + + +@workflow.defn +class AsyncioTimerCommandsWorkflow: + @workflow.run + async def run(self) -> None: + scope = workflow.create_event_group("scope") + sleep_task: asyncio.Task[None] | None = None + later: asyncio.TimerHandle | None = None + with scope.scope(): + # asyncio.sleep / call_later expose no event_groups argument, so the + # ambient scope is all they can carry. + sleep_task = asyncio.create_task(asyncio.sleep(60)) + later = asyncio.get_running_loop().call_later(60, lambda: None) + # Force a Workflow Task boundary so the timer commands reach the server + # before they are cancelled. + await workflow.sleep(0.001) + assert sleep_task is not None and later is not None + sleep_task.cancel() + later.cancel() + await _swallow(sleep_task) + + +async def test_asyncio_sleep_and_call_later_carry_ambient_markers( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker(client, AsyncioTimerCommandsWorkflow) as worker: + handle = await client.start_workflow( + AsyncioTimerCommandsWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + ambient = (_label_marker_id("scope"),) + + timers = _events_of_type(events, EventType.EVENT_TYPE_TIMER_STARTED) + assert len(timers) == 3 + cancels = _events_of_type(events, EventType.EVENT_TYPE_TIMER_CANCELED) + assert len(cancels) == 2 + + ambient_timers = [t for t in timers if _markers(t) == sorted(ambient)] + unscoped_timers = [t for t in timers if _markers(t) == []] + assert len(ambient_timers) == 2 + assert len(unscoped_timers) == 1 + for cancel in cancels: + _assert_markers(cancel, *ambient) + + +@workflow.defn +class ActivityCommandsWorkflow: + @workflow.run + async def run(self) -> None: + direct = workflow.create_event_group("direct") + scope = workflow.create_event_group("scope") + with scope.scope(): + await workflow.execute_activity( + noop_activity, + start_to_close_timeout=_ACT_TIMEOUT, + schedule_to_start_timeout=timedelta(seconds=10), + event_groups=[direct], + activity_id="activity", + ) + await _swallow( + asyncio.wait_for( + workflow.execute_activity( + sleep_activity, + start_to_close_timeout=_ACT_TIMEOUT, + schedule_to_start_timeout=timedelta(seconds=10), + cancellation_type=workflow.ActivityCancellationType.TRY_CANCEL, + event_groups=[direct], + activity_id="activity-cancelled-sleep-5s", + ), + timeout=0.001, + ) + ) + + +async def test_activity_commands_carry_markers( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, + ActivityCommandsWorkflow, + activities=[noop_activity, sleep_activity], + ) as worker: + handle = await client.start_workflow( + ActivityCommandsWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + both = ( + _label_marker_id("direct"), + _label_marker_id("scope"), + ) + + # EG-COMMANDS-02 + _assert_markers(_activity_event(events, "activity"), *both) + # EG-COMMANDS-02-CANCEL + _assert_markers(_activity_event(events, "activity-cancelled-sleep-5s"), *both) + _assert_markers( + _single_event(events, EventType.EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED), + *both, + ) + + +@workflow.defn +class LocalActivityCommandsWorkflow: + @workflow.run + async def run(self) -> None: + direct = workflow.create_event_group("direct") + scope = workflow.create_event_group("scope") + with scope.scope(): + await workflow.execute_local_activity( + noop_activity, + start_to_close_timeout=_ACT_TIMEOUT, + event_groups=[direct], + activity_id="local-activity", + ) + + cancel_trigger = workflow.create_event_group("cancel-trigger") + cancelled_la = workflow.create_event_group("cancelled-la") + sleeping = asyncio.create_task( + workflow.execute_local_activity( + sleep_activity, + start_to_close_timeout=_ACT_TIMEOUT, + cancellation_type=workflow.ActivityCancellationType.TRY_CANCEL, + event_groups=[direct, cancelled_la], + activity_id="cancelled-local-activity-sleep-5s", + ) + ) + + async def trigger() -> None: + await workflow.execute_local_activity( + noop_activity, + start_to_close_timeout=_ACT_TIMEOUT, + event_groups=[direct, cancel_trigger], + activity_id="cancel-trigger", + ) + sleeping.cancel() + + await asyncio.gather(trigger(), _swallow(sleeping)) + + await workflow.execute_local_activity( + fail_first_activity, + start_to_close_timeout=_ACT_TIMEOUT, + local_retry_threshold=timedelta(milliseconds=1), + retry_policy=RetryPolicy( + initial_interval=timedelta(seconds=1), + backoff_coefficient=1, + maximum_attempts=2, + ), + event_groups=[direct], + activity_id="backoff-local-activity-fail-first-attempt", + ) + + +async def test_local_activity_commands_carry_markers( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, + LocalActivityCommandsWorkflow, + activities=[noop_activity, sleep_activity, fail_first_activity], + ) as worker: + handle = await client.start_workflow( + LocalActivityCommandsWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + task_timeout=timedelta(seconds=5), + ) + await handle.result() + events = await _fetch_events(handle) + both = ( + _label_marker_id("direct"), + _label_marker_id("scope"), + ) + cancel_trigger = ( + *both, + _label_marker_id("cancel-trigger"), + ) + cancelled_la = ( + *both, + _label_marker_id("cancelled-la"), + ) + + local_acts = _markers_named(events, "core_local_activity") + # plain complete, cancel-trigger complete, cancelled LA, backoff fail, backoff success + assert len(local_acts) == 5 + + # EG-COMMANDS-03 + _assert_markers(local_acts[0], *both) + # EG-COMMANDS-03-CANCEL + _assert_markers(local_acts[1], *cancel_trigger) + _assert_markers(local_acts[2], *cancelled_la) + # EG-COMMANDS-03-BACKOFF: plan's 10s interval vs 5s WFT timeout is the same Core branch; + # local_retry_threshold of 1ms reaches it without waiting 10s. + backoff_timer = _events_of_type(events, EventType.EVENT_TYPE_TIMER_STARTED) + assert len(backoff_timer) == 1 + _assert_markers(backoff_timer[0], *both) + _assert_markers(local_acts[3], *both) + _assert_markers(local_acts[4], *both) + + +@workflow.defn +class ChildWorkflowCommandsWorkflow: + @workflow.run + async def run(self) -> None: + direct = workflow.create_event_group("direct") + scope = workflow.create_event_group("scope") + with scope.scope(): + await workflow.start_child_workflow( + NoopChildWorkflow.run, + id=f"{workflow.info().workflow_id}_child", + event_groups=[direct], + ) + await _swallow( + asyncio.wait_for( + workflow.execute_child_workflow( + SleepChildWorkflow.run, + id=f"{workflow.info().workflow_id}_child_cancel", + cancellation_type=workflow.ChildWorkflowCancellationType.WAIT_CANCELLATION_REQUESTED, + event_groups=[direct], + ), + timeout=0.001, + ) + ) + + +async def test_child_workflow_commands_carry_markers( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, + ChildWorkflowCommandsWorkflow, + NoopChildWorkflow, + SleepChildWorkflow, + ) as worker: + handle = await client.start_workflow( + ChildWorkflowCommandsWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + both = ( + _label_marker_id("direct"), + _label_marker_id("scope"), + ) + + initiated = _events_of_type( + events, EventType.EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED + ) + assert len(initiated) == 2 + # EG-COMMANDS-04 + _assert_markers(initiated[0], *both) + # EG-COMMANDS-04-CANCEL + _assert_markers(initiated[1], *both) + _assert_markers( + _single_event( + events, + EventType.EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED, + ), + *both, + ) + + +@nexusrpc.handler.service_handler +class EventGroupsNexusService: + @nexusrpc.handler.sync_operation + async def nexus_operation( + self, _ctx: nexusrpc.handler.StartOperationContext, _input: None + ) -> None: + return None + + @nexusrpc.handler.sync_operation + async def nexus_operation_sleep_5s( + self, _ctx: nexusrpc.handler.StartOperationContext, _input: None + ) -> None: + await asyncio.sleep(5) + + +@workflow.defn +class NexusCommandsWorkflow: + @workflow.run + async def run(self, endpoint: str) -> None: + direct = workflow.create_event_group("direct") + scope = workflow.create_event_group("scope") + nexus_client = workflow.create_nexus_client( + service=EventGroupsNexusService, endpoint=endpoint + ) + with scope.scope(): + await nexus_client.execute_operation( + EventGroupsNexusService.nexus_operation, + None, + event_groups=[direct], + ) + # Don't await start/execute to completion: a sync sleeper would finish + # before cancel, and Core drops a cancel issued in the same WFT as + # schedule. The 1ms sleep forces a WFT boundary after schedule. + running = asyncio.create_task( + nexus_client.execute_operation( + EventGroupsNexusService.nexus_operation_sleep_5s, + None, + cancellation_type=workflow.NexusOperationCancellationType.TRY_CANCEL, + event_groups=[direct], + ) + ) + await workflow.sleep(0.001) + running.cancel() + await _swallow(running) + + +@pytest.mark.requires_local_server +async def test_nexus_operation_commands_carry_markers( + client: Client, env: WorkflowEnvironment +): + if env.supports_time_skipping_v1: + pytest.skip("Nexus tests don't work with the time-skipping server") + + task_queue = str(uuid.uuid4()) + endpoint = make_nexus_endpoint_name(task_queue) + await env.create_nexus_endpoint(endpoint, task_queue) + async with Worker( + client, + task_queue=task_queue, + workflows=[NexusCommandsWorkflow], + nexus_service_handlers=[EventGroupsNexusService()], + ): + handle = await client.start_workflow( + NexusCommandsWorkflow.run, + endpoint, + id=f"workflow-{uuid.uuid4()}", + task_queue=task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + both = ( + _label_marker_id("direct"), + _label_marker_id("scope"), + ) + + scheduled = _events_of_type( + events, EventType.EVENT_TYPE_NEXUS_OPERATION_SCHEDULED + ) + assert len(scheduled) == 2 + # EG-COMMANDS-05 + _assert_markers(scheduled[0], *both) + # EG-COMMANDS-05-CANCEL + _assert_markers(scheduled[1], *both) + _assert_markers( + _single_event( + events, EventType.EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUESTED + ), + *both, + ) + + +@workflow.defn +class ExternalWorkflowCommandsWorkflow: + @workflow.run + async def run(self) -> None: + direct = workflow.create_event_group("direct") + scope = workflow.create_event_group("scope") + missing = workflow.get_external_workflow_handle("event-groups-no-such-workflow") + with scope.scope(): + try: + await missing.signal("signal", event_groups=[direct]) + except ApplicationError: + pass + try: + await missing.cancel(event_groups=[direct]) + except ApplicationError: + pass + + +async def test_external_workflow_commands_carry_markers( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker(client, ExternalWorkflowCommandsWorkflow) as worker: + handle = await client.start_workflow( + ExternalWorkflowCommandsWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + both = ( + _label_marker_id("direct"), + _label_marker_id("scope"), + ) + # EG-COMMANDS-06 + _assert_markers( + _single_event( + events, + EventType.EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED, + ), + *both, + ) + # EG-COMMANDS-07 + _assert_markers( + _single_event( + events, + EventType.EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED, + ), + *both, + ) + + +@workflow.defn +class ChildWorkflowSignalCommandsWorkflow: + @workflow.run + async def run(self) -> None: + direct = workflow.create_event_group("direct") + scope = workflow.create_event_group("scope") + child = await workflow.start_child_workflow( + WaitForSignalChildWorkflow.run, + id=f"{workflow.info().workflow_id}_child", + ) + with scope.scope(): + await child.signal("noop", event_groups=[direct]) + await child + + +async def test_child_workflow_signal_commands_carry_markers( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker( + client, + ChildWorkflowSignalCommandsWorkflow, + WaitForSignalChildWorkflow, + ) as worker: + handle = await client.start_workflow( + ChildWorkflowSignalCommandsWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + both = ( + _label_marker_id("direct"), + _label_marker_id("scope"), + ) + + # Start is outside the ambient scope so 06-CHILD is not inheriting start-child markers. + _assert_markers( + _single_event( + events, EventType.EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED + ) + ) + # EG-COMMANDS-06-CHILD + _assert_markers( + _single_event( + events, + EventType.EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED, + ), + *both, + ) + + +@workflow.defn +class MetadataCommandsWorkflow: + @workflow.run + async def run(self) -> None: + direct = workflow.create_event_group("direct") + scope = workflow.create_event_group("scope") + with scope.scope(): + workflow.upsert_memo({"some-key": "some-value"}, event_groups=[direct]) + workflow.upsert_search_attributes( + [SearchAttributeKey.for_bool("CustomBoolField").value_set(False)], + event_groups=[direct], + ) + workflow.patched("my-patch-1", event_groups=[direct]) + workflow.deprecate_patch("my-patch-2", event_groups=[direct]) + + +@pytest.mark.requires_local_server +async def test_metadata_commands_carry_markers( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + await ensure_search_attributes_present( + client, SearchAttributeKey.for_bool("CustomBoolField") + ) + + async with new_worker(client, MetadataCommandsWorkflow) as worker: + handle = await client.start_workflow( + MetadataCommandsWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + events = await _fetch_events(handle) + both = ( + _label_marker_id("direct"), + _label_marker_id("scope"), + ) + + # EG-COMMANDS-20 + _assert_markers( + _single_event(events, EventType.EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED), + *both, + ) + # EG-COMMANDS-22 + patches = _markers_named(events, "core_patch") + assert len(patches) == 2 + for patch in patches: + _assert_markers(patch, *both) + # EG-COMMANDS-21 plus the two TemporalChangeVersion upserts beside the patches + upserts = _events_of_type( + events, EventType.EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES + ) + assert len(upserts) == 3 + for upsert in upserts: + _assert_markers(upsert, *both) + + +@workflow.defn +class ContinueAsNewCommandsWorkflow: + @workflow.run + async def run(self, second_run: bool = False) -> None: + if second_run: + return + direct = workflow.create_event_group("direct") + scope = workflow.create_event_group("scope") + with scope.scope(): + workflow.continue_as_new(True, event_groups=[direct]) + + +async def test_continue_as_new_carries_markers( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker(client, ContinueAsNewCommandsWorkflow) as worker: + handle = await client.start_workflow( + ContinueAsNewCommandsWorkflow.run, + False, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + # ContinuedAsNew lives on the first run + first_run = client.get_workflow_handle(handle.id, run_id=_run_id(handle)) + events = await _fetch_events(first_run) + both = ( + _label_marker_id("direct"), + _label_marker_id("scope"), + ) + + # EG-COMMANDS-40 + _assert_markers( + _single_event( + events, EventType.EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW + ), + *both, + ) + + +#################################################################################################### +# Language-specific +#################################################################################################### + + +@workflow.defn +class EmptyIdAndLabelWorkflow: + @workflow.run + async def run(self) -> list[str]: + errors: list[str] = [] + try: + workflow.create_event_group("") + except ValueError as err: + errors.append(str(err)) + try: + workflow.create_event_group("id", label="") + except ValueError as err: + errors.append(str(err)) + return errors + + +async def test_event_group_rejects_empty_id_and_label( + client: Client, env: WorkflowEnvironment +): + _require_event_groups_server(env) + + async with new_worker(client, EmptyIdAndLabelWorkflow) as worker: + assert [ + "Event group id cannot be empty", + "Event group label cannot be empty", + ] == await client.execute_workflow( + EmptyIdAndLabelWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + +def test_create_event_group_requires_workflow_context(): + with pytest.raises(TemporalError): + workflow.create_event_group("outside-workflow") + + +#################################################################################################### +# History helpers +# +# Markers are rendered as strings so failures print readably and collections can be compared as +# unordered sets (by sorting). ``_render_marker`` includes the label; ``_render_marker_id`` does +# not, for the cases where two groups share an id but not a label and the emitted label is +# unspecified. +#################################################################################################### + + +def _run_id(handle: WorkflowHandle) -> str: + assert handle.first_execution_run_id is not None + return handle.first_execution_run_id + + +def _events_of_type( + events: Sequence[HistoryEvent], event_type: EventType.ValueType +) -> list[HistoryEvent]: + return [e for e in events if e.event_type == event_type] + + +def _single_event( + events: Sequence[HistoryEvent], event_type: EventType.ValueType +) -> HistoryEvent: + matches = _events_of_type(events, event_type) + assert len(matches) == 1, ( + f"expected 1 {EventType.Name(event_type)}, got {len(matches)}" + ) + return matches[0] + + +def _activity_event(events: Sequence[HistoryEvent], activity_id: str) -> HistoryEvent: + matches = [ + e + for e in events + if e.event_type == EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED + and e.activity_task_scheduled_event_attributes.activity_id == activity_id + ] + assert len(matches) == 1, f"expected 1 activity {activity_id!r}, got {len(matches)}" + return matches[0] + + +def _markers_named( + events: Sequence[HistoryEvent], marker_name: str +) -> list[HistoryEvent]: + return [ + e + for e in events + if e.event_type == EventType.EVENT_TYPE_MARKER_RECORDED + and e.marker_recorded_event_attributes.marker_name == marker_name + ] + + +def _signaled_event_ids(events: Sequence[HistoryEvent]) -> list[int]: + return [ + e.event_id + for e in events + if e.event_type == EventType.EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED + ] + + +def _render_marker(marker: EventGroupMarker) -> str: + if marker.HasField("inbound_event"): + return f"event:{marker.inbound_event.inbound_event_id}" + if marker.HasField("inbound_update"): + return f"update:{marker.inbound_update.inbound_update_id}" + if marker.label.HasField("label"): + try: + label = PayloadConverter.default.from_payload(marker.label.label) + return f"label:{marker.label.id}:{label}" + except Exception: + return f"label:{marker.label.id}" + return f"label:{marker.label.id}" + + +def _render_marker_id(marker: EventGroupMarker) -> str: + if marker.HasField("inbound_event"): + return f"event:{marker.inbound_event.inbound_event_id}" + if marker.HasField("inbound_update"): + return f"update:{marker.inbound_update.inbound_update_id}" + return f"label:{marker.label.id}" + + +def _markers(event: HistoryEvent) -> list[str]: + return sorted(_render_marker(m) for m in event.event_group_markers) + + +def _marker_ids(event: HistoryEvent) -> list[str]: + return sorted(_render_marker_id(m) for m in event.event_group_markers) + + +def _assert_markers(event: HistoryEvent, *expected: str) -> None: + actual = [_render_marker(m) for m in event.event_group_markers] + assert len(actual) == len(expected), ( + f"marker count {len(actual)} != {len(expected)}: {actual}" + ) + assert sorted(actual) == sorted(expected) + + +def _assert_marker_ids(event: HistoryEvent, *expected: str) -> None: + actual = [_render_marker_id(m) for m in event.event_group_markers] + assert len(actual) == len(expected), ( + f"marker count {len(actual)} != {len(expected)}: {actual}" + ) + assert sorted(actual) == sorted(expected) + + +def _label_marker(group_id: str, label: str) -> str: + return f"label:{group_id}:{label}" + + +def _label_marker_id(group_id: str) -> str: + return f"label:{group_id}" + + +def _event_marker(event_id: int) -> str: + return f"event:{event_id}" + + +def _update_marker(update_id: str) -> str: + return f"update:{update_id}" + + +def _label_payload_of(event: HistoryEvent, marker_id: str) -> tuple[str, str]: + for marker in event.event_group_markers: + if marker.HasField("label") and marker.label.id == marker_id: + if not marker.label.HasField("label"): + raise AssertionError(f"label marker {marker_id!r} has no payload") + encoding = marker.label.label.metadata["encoding"].decode() + return encoding, marker.label.label.data.decode() + raise AssertionError(f"no label marker {marker_id!r} on event") + + +def _label_payload_set(event: HistoryEvent, marker_id: str) -> bool: + for marker in event.event_group_markers: + if marker.HasField("label") and marker.label.id == marker_id: + return marker.label.HasField("label") + raise AssertionError(f"no label marker {marker_id!r} on event") + + +def _raw_label_payload(event: HistoryEvent, marker_id: str) -> Payload: + for marker in event.event_group_markers: + if marker.HasField("label") and marker.label.id == marker_id: + return marker.label.label + raise AssertionError(f"no label marker {marker_id!r} on event") + + +async def _fetch_events(handle: WorkflowHandle) -> list[HistoryEvent]: + return list((await handle.fetch_history()).events) + + +# Module-level so every workflow can issue a uniquely keyed activity without repeating options. +async def _activity( + activity_id: str, + event_groups: Sequence[workflow.EventGroup] | None = None, +) -> None: + await workflow.execute_activity( + noop_activity, + start_to_close_timeout=_ACT_TIMEOUT, + activity_id=activity_id, + event_groups=event_groups, + ) + + +async def _swallow(aw: object) -> None: + try: + await aw # type: ignore[misc] + except ( + asyncio.CancelledError, + asyncio.TimeoutError, + ActivityError, + ChildWorkflowError, + NexusOperationError, + ): + pass + + +@activity.defn +async def noop_activity() -> None: + return None + + +@activity.defn +async def control_activity(value: str) -> str: + return value + + +@activity.defn +async def sleep_activity() -> None: + await asyncio.sleep(5) + + +@activity.defn +async def fail_first_activity() -> None: + if activity.info().attempt == 1: + raise ApplicationError("retry me") + + +@workflow.defn +class WaitForSignalChildWorkflow: + def __init__(self) -> None: + self._done = False + + @workflow.run + async def run(self) -> None: + await workflow.wait_condition(lambda: self._done) + + @workflow.signal + def noop(self) -> None: + self._done = True + + +@workflow.defn +class NoopChildWorkflow: + @workflow.run + async def run(self) -> None: + return None + + +@workflow.defn +class SleepChildWorkflow: + @workflow.run + async def run(self) -> None: + await workflow.sleep(5) diff --git a/tests/worker/test_extstore.py b/tests/worker/test_extstore.py index e8ef8edb2..dd4b8b0a8 100644 --- a/tests/worker/test_extstore.py +++ b/tests/worker/test_extstore.py @@ -1,12 +1,16 @@ +import asyncio import contextlib import dataclasses +import json import uuid from collections.abc import Iterator, Sequence from dataclasses import dataclass from datetime import timedelta +from pathlib import Path from unittest import mock import pytest +from google.protobuf import json_format import temporalio import temporalio.bridge.client @@ -16,22 +20,33 @@ import temporalio.converter from temporalio import activity, workflow from temporalio.api.common.v1 import Payload -from temporalio.client import Client, WorkflowFailureError, WorkflowHandle +from temporalio.client import ( + Client, + WorkflowFailureError, + WorkflowHandle, + WorkflowHistory, +) from temporalio.common import RetryPolicy from temporalio.converter import ( + ActivitySerializationContext, ExternalStorage, + PayloadCodec, + SerializationContext, StorageDriver, StorageDriverActivityInfo, StorageDriverClaim, StorageDriverRetrieveContext, + StorageDriverSelectContext, StorageDriverStoreContext, StorageDriverWorkflowInfo, + WithSerializationContext, + WorkflowSerializationContext, ) from temporalio.exceptions import ActivityError, ApplicationError from temporalio.testing._workflow import WorkflowEnvironment from temporalio.worker import Replayer from tests.helpers import assert_task_fail_eventually, new_worker -from tests.test_extstore import InMemoryTestDriver +from tests.test_extstore import InMemoryTestDriver, RecordingPayloadCodec @dataclass(frozen=True) @@ -429,6 +444,244 @@ async def test_replay_extstore_history_succeeds_with_correct_extstore( ).replay_workflow(history) +@pytest.mark.usefixtures("encode_storage_references") +async def test_extstore_reference_payloads_codec_encoded_in_history( + env: WorkflowEnvironment, +) -> None: + """Every reference payload written to history by the client, workflow + worker, and activity worker is codec-encoded and marked, and the history + replays.""" + data_converter = dataclasses.replace( + temporalio.converter.default(), + payload_codec=RecordingPayloadCodec("binary/test-encoded"), + external_storage=ExternalStorage( + drivers=[InMemoryTestDriver()], + payload_size_threshold=512, + ), + ) + client = await env.connect_client(data_converter=data_converter) + async with new_worker( + client, ExtStoreWorkflow, activities=[ext_store_activity] + ) as worker: + handle = await client.start_workflow( + ExtStoreWorkflow.run, + ExtStoreWorkflowInput( + input_data="wi" * 512, + activity_input_size=1024, + activity_output_size=1024, + output_size=1024, + ), + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + assert await handle.result() == "wo" * 512 + + history = await handle.fetch_history() + reference_payloads = [] + for event in history.events: + if event.HasField("workflow_execution_started_event_attributes"): + reference_payloads.append( + event.workflow_execution_started_event_attributes.input.payloads[0] + ) + elif event.HasField("activity_task_scheduled_event_attributes"): + reference_payloads.append( + event.activity_task_scheduled_event_attributes.input.payloads[0] + ) + elif event.HasField("activity_task_completed_event_attributes"): + reference_payloads.append( + event.activity_task_completed_event_attributes.result.payloads[0] + ) + elif event.HasField("workflow_execution_completed_event_attributes"): + reference_payloads.append( + event.workflow_execution_completed_event_attributes.result.payloads[0] + ) + assert len(reference_payloads) == 4 + for payload in reference_payloads: + assert payload.metadata["encoding"] == b"binary/test-encoded" + assert payload.metadata["__temporal_external_storage_reference"] == b"true" + assert payload.external_payloads[0].size_bytes > 0 + + await Replayer( + workflows=[ExtStoreWorkflow], data_converter=data_converter + ).replay_workflow(history) + + +class ReferenceContextRecordingCodec(PayloadCodec, WithSerializationContext): + """Encodes like RecordingPayloadCodec and records the serialization context + each storage reference payload is encoded with.""" + + def __init__( + self, + reference_contexts: list[SerializationContext | None], + context: SerializationContext | None = None, + ) -> None: + self._reference_contexts = reference_contexts + self._context = context + self._codec = RecordingPayloadCodec("binary/test-encoded") + + def with_context( + self, context: SerializationContext + ) -> "ReferenceContextRecordingCodec": + return ReferenceContextRecordingCodec(self._reference_contexts, context) + + async def encode(self, payloads: Sequence[Payload]) -> list[Payload]: + for p in payloads: + if ( + p.metadata.get("messageType") + == b"temporal.api.sdk.v1.ExternalStorageReference" + ): + self._reference_contexts.append(self._context) + return await self._codec.encode(payloads) + + async def decode(self, payloads: Sequence[Payload]) -> list[Payload]: + return await self._codec.decode(payloads) + + +@pytest.mark.usefixtures("encode_storage_references") +async def test_extstore_reference_payloads_use_payload_serialization_context( + env: WorkflowEnvironment, +) -> None: + """Each reference payload is encoded with the serialization context of the + value it replaces: workflow context for workflow input and result, activity + context for activity input and result.""" + reference_contexts: list[SerializationContext | None] = [] + data_converter = dataclasses.replace( + temporalio.converter.default(), + payload_codec=ReferenceContextRecordingCodec(reference_contexts), + external_storage=ExternalStorage( + drivers=[InMemoryTestDriver()], + payload_size_threshold=512, + ), + ) + client = await env.connect_client(data_converter=data_converter) + workflow_id = f"workflow-{uuid.uuid4()}" + async with new_worker( + client, ExtStoreWorkflow, activities=[ext_store_activity] + ) as worker: + await client.execute_workflow( + ExtStoreWorkflow.run, + ExtStoreWorkflowInput( + input_data="wi" * 512, + activity_input_size=1024, + activity_output_size=1024, + output_size=1024, + ), + id=workflow_id, + task_queue=worker.task_queue, + ) + + workflow_contexts = [ + c for c in reference_contexts if isinstance(c, WorkflowSerializationContext) + ] + activity_contexts = [ + c for c in reference_contexts if isinstance(c, ActivitySerializationContext) + ] + # Workflow input (client) and workflow result (workflow worker). + assert len(workflow_contexts) == 2 + assert all(c.workflow_id == workflow_id for c in workflow_contexts) + # Activity input (workflow worker) and activity result (activity worker). + assert len(activity_contexts) == 2 + assert all( + c.workflow_id == workflow_id and not c.is_local for c in activity_contexts + ) + assert len(reference_contexts) == 4 + + +# The committed histories record these workflow and activity names, so they +# must not change. +@workflow.defn(name="ReferencesBeforeEncodingWorkflow") +class ExtstoreReplayWorkflow: + """Replays the committed histories loaded by _load_recorded_history.""" + + @workflow.run + async def run(self, _input: str) -> str: + await workflow.execute_activity( + "references_before_encoding_activity", + "ai" * 512, + start_to_close_timeout=timedelta(seconds=30), + ) + return "wo" * 512 + + +def _load_recorded_history( + name: str, +) -> tuple[WorkflowHistory, InMemoryTestDriver, list[Payload]]: + """Load a committed history, a driver holding the payloads its references + point to, and its four reference payloads. + + Each history was recorded with ExtstoreReplayWorkflow, a payload codec + matching RecordingPayloadCodec("binary/test-encoded"), and a driver storing + claims the same way as InMemoryTestDriver, with a 512-byte storage threshold. + The codec always encoded the stored payloads. Whether it also encoded the + references depends on the recording. + """ + fixtures = Path(__file__).parent + history = WorkflowHistory.from_json( + name, (fixtures / f"test_extstore_{name}_history.json").read_text() + ) + stored_payloads = json.loads( + (fixtures / f"test_extstore_{name}_stored_payloads.json").read_text() + ) + driver = InMemoryTestDriver() + for key, payload_json in stored_payloads.items(): + driver._storage[key] = json_format.ParseDict( + payload_json, Payload() + ).SerializeToString() + + references = [ + payload + for event in history.events + for payload in ( + *event.workflow_execution_started_event_attributes.input.payloads, + *event.activity_task_scheduled_event_attributes.input.payloads, + *event.activity_task_completed_event_attributes.result.payloads, + *event.workflow_execution_completed_event_attributes.result.payloads, + ) + ] + assert len(references) == 4 + return history, driver, references + + +async def _replay_recorded_history( + history: WorkflowHistory, driver: InMemoryTestDriver +) -> None: + await Replayer( + workflows=[ExtstoreReplayWorkflow], + data_converter=dataclasses.replace( + temporalio.converter.default(), + payload_codec=RecordingPayloadCodec("binary/test-encoded"), + external_storage=ExternalStorage( + drivers=[driver], + payload_size_threshold=512, + ), + ), + ).replay_workflow(history) + assert driver._retrieve_calls > 0 + + +async def test_replay_decodes_unencoded_references() -> None: + """A history recorded with temporalio 1.34.0 replays. That release wrote + references unencoded and unmarked, even with a codec configured.""" + history, driver, references = _load_recorded_history("unencoded_references") + for reference in references: + assert reference.metadata["encoding"] == b"json/protobuf" + assert "__temporal_external_storage_reference" not in reference.metadata + + await _replay_recorded_history(history, driver) + + +async def test_replay_decodes_encoded_references_while_writing_them_is_off() -> None: + """A history whose references were codec-encoded and marked replays while + writing encoded references is off. It was recorded from this branch with + writing turned on, as a later release will write them.""" + history, driver, references = _load_recorded_history("encoded_references") + for reference in references: + assert reference.metadata["encoding"] == b"binary/test-encoded" + assert reference.metadata["__temporal_external_storage_reference"] == b"true" + + await _replay_recorded_history(history, driver) + + async def test_replay_extstore_history_fails_with_empty_driver( env: WorkflowEnvironment, ) -> None: @@ -1003,7 +1256,7 @@ async def test_store_metadata_signal_workflow(env: WorkflowEnvironment) -> None: async def test_store_metadata_schedule_action(env: WorkflowEnvironment) -> None: """Schedule action _to_proto should set workflow metadata.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support schedules") client, driver = await _make_tracking_client(env) task_queue = str(uuid.uuid4()) @@ -1250,7 +1503,7 @@ async def test_store_metadata_signal_external_workflow( async def test_store_metadata_standalone_activity(env: WorkflowEnvironment) -> None: """Standalone activity worker should use StorageDriverActivityInfo as target.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2741" ) @@ -1285,6 +1538,78 @@ async def test_store_metadata_standalone_activity(env: WorkflowEnvironment) -> N assert execute_ctx.target.run_id is not None +class AsyncCompletedActivity: + def __init__(self) -> None: + self.task_token: asyncio.Future[bytes] = asyncio.Future() + + @activity.defn + async def run(self, _arg: str) -> str: + self.task_token.set_result(activity.info().task_token) + activity.raise_complete_async() + + +@workflow.defn +class AsyncCompletedActivityWorkflow: + @workflow.run + async def run(self, arg: str) -> str: + return await workflow.execute_activity( + "run", arg, start_to_close_timeout=timedelta(seconds=30) + ) + + +async def test_store_and_select_contexts_carry_ambient_namespace( + env: WorkflowEnvironment, +) -> None: + driver = ContextTrackingStorageDriver() + select_contexts: list[StorageDriverSelectContext] = [] + + def selector(context: StorageDriverSelectContext, _: Payload) -> StorageDriver: + select_contexts.append(context) + return driver + + client = await env.connect_client( + data_converter=dataclasses.replace( + temporalio.converter.default(), + external_storage=ExternalStorage( + drivers=[driver], + driver_selector=selector, + payload_size_threshold=0, + ), + ), + ) + async_activity = AsyncCompletedActivity() + + async with new_worker( + client, AsyncCompletedActivityWorkflow, activities=[async_activity.run] + ) as worker: + handle = await client.start_workflow( + AsyncCompletedActivityWorkflow.run, + "input", + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + task_token = await asyncio.wait_for(async_activity.task_token, timeout=10) + await client.get_async_activity_handle(task_token=task_token).complete( + "async result" + ) + assert await handle.result() == "async result" + + assert len(driver.store_contexts) == 4 + assert len(select_contexts) == len(driver.store_contexts) + for store_ctx, select_ctx in zip(driver.store_contexts, select_contexts): + assert store_ctx.namespace == client.namespace + assert select_ctx.namespace == client.namespace + assert select_ctx.target == store_ctx.target + + client_start, worker_schedule, token_completion, worker_complete = ( + driver.store_contexts + ) + assert isinstance(client_start.target, StorageDriverWorkflowInfo) + assert isinstance(worker_schedule.target, StorageDriverWorkflowInfo) + assert token_completion.target is None + assert isinstance(worker_complete.target, StorageDriverWorkflowInfo) + + @workflow.defn class ContinueAsNewExtStoreWorkflow: """Workflow that continues-as-new once with a large payload. diff --git a/tests/worker/test_extstore_encoded_references_history.json b/tests/worker/test_extstore_encoded_references_history.json new file mode 100644 index 000000000..1d566e54d --- /dev/null +++ b/tests/worker/test_extstore_encoded_references_history.json @@ -0,0 +1,254 @@ +{ + "events": [ + { + "eventId": "1", + "eventTime": "2026-10-16T22:21:24.234668Z", + "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", + "taskId": "1048587", + "workflowExecutionStartedEventAttributes": { + "workflowType": { + "name": "ReferencesBeforeEncodingWorkflow" + }, + "taskQueue": { + "name": "references-before-encoding", + "kind": "TASK_QUEUE_KIND_NORMAL" + }, + "input": { + "payloads": [ + { + "metadata": { + "__temporal_external_storage_reference": "dHJ1ZQ==", + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChkKCGVuY29kaW5nEg1qc29uL3Byb3RvYnVmCi0KJV9fdGVtcG9yYWxfZXh0ZXJuYWxfc3RvcmFnZV9yZWZlcmVuY2USBHRydWUKOwoLbWVzc2FnZVR5cGUSLHRlbXBvcmFsLmFwaS5zZGsudjEuRXh0ZXJuYWxTdG9yYWdlUmVmZXJlbmNlEjx7ImNsYWltRGF0YSI6eyJrZXkiOiJwYXlsb2FkLTAifSwiZHJpdmVyTmFtZSI6InRlc3QtZHJpdmVyIn0aAwjBCA==", + "externalPayloads": [ + { + "sizeBytes": "1089" + } + ] + } + ] + }, + "workflowTaskTimeout": "10s", + "originalExecutionRunId": "01a146ce-3f8a-7a31-9ace-21c7f1037392", + "identity": "test-identity", + "firstExecutionRunId": "01a146ce-3f8a-7a31-9ace-21c7f1037392", + "attempt": 1, + "firstWorkflowTaskBackoff": "0s", + "workflowId": "encoded-references", + "priority": {} + } + }, + { + "eventId": "2", + "eventTime": "2026-10-16T22:21:24.234703Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", + "taskId": "1048588", + "workflowTaskScheduledEventAttributes": { + "taskQueue": { + "name": "references-before-encoding", + "kind": "TASK_QUEUE_KIND_NORMAL" + }, + "startToCloseTimeout": "10s", + "attempt": 1 + } + }, + { + "eventId": "3", + "eventTime": "2026-10-16T22:21:24.239003Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", + "taskId": "1048593", + "workflowTaskStartedEventAttributes": { + "scheduledEventId": "2", + "identity": "test-identity", + "requestId": "cd517ff8-a3e7-42d4-99b3-28ee8f1851bd", + "historySizeBytes": "598", + "workerVersion": { + "buildId": "8c2a779eb0ea4f39243fe56c372758b2" + } + } + }, + { + "eventId": "4", + "eventTime": "2026-10-16T22:21:24.249060Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", + "taskId": "1048598", + "workflowTaskCompletedEventAttributes": { + "scheduledEventId": "2", + "startedEventId": "3", + "identity": "test-identity", + "workerVersion": { + "buildId": "8c2a779eb0ea4f39243fe56c372758b2" + }, + "sdkMetadata": { + "coreUsedFlags": [ + 3, + 2, + 1 + ], + "sdkName": "temporal-python", + "sdkVersion": "1.34.0" + }, + "meteringMetadata": {} + } + }, + { + "eventId": "5", + "eventTime": "2026-10-16T22:21:24.249226Z", + "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", + "taskId": "1048599", + "activityTaskScheduledEventAttributes": { + "activityId": "1", + "activityType": { + "name": "references_before_encoding_activity" + }, + "taskQueue": { + "name": "references-before-encoding", + "kind": "TASK_QUEUE_KIND_NORMAL" + }, + "header": {}, + "input": { + "payloads": [ + { + "metadata": { + "__temporal_external_storage_reference": "dHJ1ZQ==", + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChkKCGVuY29kaW5nEg1qc29uL3Byb3RvYnVmCi0KJV9fdGVtcG9yYWxfZXh0ZXJuYWxfc3RvcmFnZV9yZWZlcmVuY2USBHRydWUKOwoLbWVzc2FnZVR5cGUSLHRlbXBvcmFsLmFwaS5zZGsudjEuRXh0ZXJuYWxTdG9yYWdlUmVmZXJlbmNlEjx7ImNsYWltRGF0YSI6eyJrZXkiOiJwYXlsb2FkLTEifSwiZHJpdmVyTmFtZSI6InRlc3QtZHJpdmVyIn0aAwjBCA==", + "externalPayloads": [ + { + "sizeBytes": "1089" + } + ] + } + ] + }, + "scheduleToCloseTimeout": "0s", + "scheduleToStartTimeout": "0s", + "startToCloseTimeout": "30s", + "heartbeatTimeout": "0s", + "workflowTaskCompletedEventId": "4", + "retryPolicy": { + "initialInterval": "1s", + "backoffCoefficient": 2.0, + "maximumInterval": "100s" + }, + "useWorkflowBuildId": true, + "priority": {} + } + }, + { + "eventId": "6", + "eventTime": "2026-10-16T22:21:24.249342Z", + "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", + "taskId": "1048603", + "activityTaskStartedEventAttributes": { + "scheduledEventId": "5", + "identity": "test-identity", + "requestId": "52ee8ebc-8674-4a3c-b948-485c0b4728ac", + "attempt": 1, + "workerVersion": { + "buildId": "8c2a779eb0ea4f39243fe56c372758b2" + } + } + }, + { + "eventId": "7", + "eventTime": "2026-10-16T22:21:24.252491Z", + "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", + "taskId": "1048604", + "activityTaskCompletedEventAttributes": { + "result": { + "payloads": [ + { + "metadata": { + "__temporal_external_storage_reference": "dHJ1ZQ==", + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChkKCGVuY29kaW5nEg1qc29uL3Byb3RvYnVmCi0KJV9fdGVtcG9yYWxfZXh0ZXJuYWxfc3RvcmFnZV9yZWZlcmVuY2USBHRydWUKOwoLbWVzc2FnZVR5cGUSLHRlbXBvcmFsLmFwaS5zZGsudjEuRXh0ZXJuYWxTdG9yYWdlUmVmZXJlbmNlEjx7ImNsYWltRGF0YSI6eyJrZXkiOiJwYXlsb2FkLTIifSwiZHJpdmVyTmFtZSI6InRlc3QtZHJpdmVyIn0aAwjBCA==", + "externalPayloads": [ + { + "sizeBytes": "1089" + } + ] + } + ] + }, + "scheduledEventId": "5", + "startedEventId": "6", + "identity": "test-identity" + } + }, + { + "eventId": "8", + "eventTime": "2026-10-16T22:21:24.252513Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", + "taskId": "1048605", + "workflowTaskScheduledEventAttributes": { + "taskQueue": { + "name": "test-identity-sticky", + "kind": "TASK_QUEUE_KIND_STICKY", + "normalName": "references-before-encoding" + }, + "startToCloseTimeout": "10s", + "attempt": 1 + } + }, + { + "eventId": "9", + "eventTime": "2026-10-16T22:21:24.253136Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", + "taskId": "1048609", + "workflowTaskStartedEventAttributes": { + "scheduledEventId": "8", + "identity": "test-identity", + "requestId": "78b8b8e0-2f33-432c-a7d9-c2db06878105", + "historySizeBytes": "1931", + "workerVersion": { + "buildId": "8c2a779eb0ea4f39243fe56c372758b2" + } + } + }, + { + "eventId": "10", + "eventTime": "2026-10-16T22:21:24.255732Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", + "taskId": "1048613", + "workflowTaskCompletedEventAttributes": { + "scheduledEventId": "8", + "startedEventId": "9", + "identity": "test-identity", + "workerVersion": { + "buildId": "8c2a779eb0ea4f39243fe56c372758b2" + }, + "sdkMetadata": {}, + "meteringMetadata": {} + } + }, + { + "eventId": "11", + "eventTime": "2026-10-16T22:21:24.255773Z", + "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", + "taskId": "1048614", + "workflowExecutionCompletedEventAttributes": { + "result": { + "payloads": [ + { + "metadata": { + "__temporal_external_storage_reference": "dHJ1ZQ==", + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "CjsKC21lc3NhZ2VUeXBlEix0ZW1wb3JhbC5hcGkuc2RrLnYxLkV4dGVybmFsU3RvcmFnZVJlZmVyZW5jZQotCiVfX3RlbXBvcmFsX2V4dGVybmFsX3N0b3JhZ2VfcmVmZXJlbmNlEgR0cnVlChkKCGVuY29kaW5nEg1qc29uL3Byb3RvYnVmEjx7ImNsYWltRGF0YSI6eyJrZXkiOiJwYXlsb2FkLTMifSwiZHJpdmVyTmFtZSI6InRlc3QtZHJpdmVyIn0aAwjBCA==", + "externalPayloads": [ + { + "sizeBytes": "1089" + } + ] + } + ] + }, + "workflowTaskCompletedEventId": "10" + } + } + ] +} \ No newline at end of file diff --git a/tests/worker/test_extstore_encoded_references_stored_payloads.json b/tests/worker/test_extstore_encoded_references_stored_payloads.json new file mode 100644 index 000000000..03768b539 --- /dev/null +++ b/tests/worker/test_extstore_encoded_references_stored_payloads.json @@ -0,0 +1,26 @@ +{ + "payload-0": { + "metadata": { + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChYKCGVuY29kaW5nEgpqc29uL3BsYWluEoIIIndpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2ki" + }, + "payload-1": { + "metadata": { + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChYKCGVuY29kaW5nEgpqc29uL3BsYWluEoIIImFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWki" + }, + "payload-2": { + "metadata": { + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChYKCGVuY29kaW5nEgpqc29uL3BsYWluEoIIImFvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW8i" + }, + "payload-3": { + "metadata": { + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChYKCGVuY29kaW5nEgpqc29uL3BsYWluEoIIIndvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd28i" + } +} diff --git a/tests/worker/test_extstore_unencoded_references_history.json b/tests/worker/test_extstore_unencoded_references_history.json new file mode 100644 index 000000000..4b46f8d0e --- /dev/null +++ b/tests/worker/test_extstore_unencoded_references_history.json @@ -0,0 +1,254 @@ +{ + "events": [ + { + "eventId": "1", + "eventTime": "2026-10-15T18:04:15.639732Z", + "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_STARTED", + "taskId": "1048587", + "workflowExecutionStartedEventAttributes": { + "workflowType": { + "name": "ReferencesBeforeEncodingWorkflow" + }, + "taskQueue": { + "name": "references-before-encoding", + "kind": "TASK_QUEUE_KIND_NORMAL" + }, + "input": { + "payloads": [ + { + "metadata": { + "messageType": "dGVtcG9yYWwuYXBpLnNkay52MS5FeHRlcm5hbFN0b3JhZ2VSZWZlcmVuY2U=", + "encoding": "anNvbi9wcm90b2J1Zg==" + }, + "data": "eyJjbGFpbURhdGEiOnsia2V5IjoicGF5bG9hZC0wIn0sImRyaXZlck5hbWUiOiJ0ZXN0LWRyaXZlciJ9", + "externalPayloads": [ + { + "sizeBytes": "1089" + } + ] + } + ] + }, + "workflowTaskTimeout": "10s", + "originalExecutionRunId": "01a140bc-7797-7b27-9a71-bfe54f3a1f6a", + "identity": "test-identity", + "firstExecutionRunId": "01a140bc-7797-7b27-9a71-bfe54f3a1f6a", + "attempt": 1, + "firstWorkflowTaskBackoff": "0s", + "workflowId": "references-before-encoding", + "priority": {} + } + }, + { + "eventId": "2", + "eventTime": "2026-10-15T18:04:15.639789Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", + "taskId": "1048588", + "workflowTaskScheduledEventAttributes": { + "taskQueue": { + "name": "references-before-encoding", + "kind": "TASK_QUEUE_KIND_NORMAL" + }, + "startToCloseTimeout": "10s", + "attempt": 1 + } + }, + { + "eventId": "3", + "eventTime": "2026-10-15T18:04:15.642928Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", + "taskId": "1048593", + "workflowTaskStartedEventAttributes": { + "scheduledEventId": "2", + "identity": "test-identity", + "requestId": "7af88403-fe6d-4f34-9219-d84cd0e8c922", + "historySizeBytes": "474", + "workerVersion": { + "buildId": "719681aca6c15dba2948274d63ba289f" + } + } + }, + { + "eventId": "4", + "eventTime": "2026-10-15T18:04:15.648786Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", + "taskId": "1048598", + "workflowTaskCompletedEventAttributes": { + "scheduledEventId": "2", + "startedEventId": "3", + "identity": "test-identity", + "workerVersion": { + "buildId": "719681aca6c15dba2948274d63ba289f" + }, + "sdkMetadata": { + "coreUsedFlags": [ + 1, + 3, + 2 + ], + "sdkName": "temporal-python", + "sdkVersion": "1.34.0" + }, + "meteringMetadata": {} + } + }, + { + "eventId": "5", + "eventTime": "2026-10-15T18:04:15.648861Z", + "eventType": "EVENT_TYPE_ACTIVITY_TASK_SCHEDULED", + "taskId": "1048599", + "activityTaskScheduledEventAttributes": { + "activityId": "1", + "activityType": { + "name": "references_before_encoding_activity" + }, + "taskQueue": { + "name": "references-before-encoding", + "kind": "TASK_QUEUE_KIND_NORMAL" + }, + "header": {}, + "input": { + "payloads": [ + { + "metadata": { + "messageType": "dGVtcG9yYWwuYXBpLnNkay52MS5FeHRlcm5hbFN0b3JhZ2VSZWZlcmVuY2U=", + "encoding": "anNvbi9wcm90b2J1Zg==" + }, + "data": "eyJjbGFpbURhdGEiOnsia2V5IjoicGF5bG9hZC0xIn0sImRyaXZlck5hbWUiOiJ0ZXN0LWRyaXZlciJ9", + "externalPayloads": [ + { + "sizeBytes": "1089" + } + ] + } + ] + }, + "scheduleToCloseTimeout": "0s", + "scheduleToStartTimeout": "0s", + "startToCloseTimeout": "30s", + "heartbeatTimeout": "0s", + "workflowTaskCompletedEventId": "4", + "retryPolicy": { + "initialInterval": "1s", + "backoffCoefficient": 2.0, + "maximumInterval": "100s" + }, + "useWorkflowBuildId": true, + "priority": {} + } + }, + { + "eventId": "6", + "eventTime": "2026-10-15T18:04:15.649402Z", + "eventType": "EVENT_TYPE_ACTIVITY_TASK_STARTED", + "taskId": "1048603", + "activityTaskStartedEventAttributes": { + "scheduledEventId": "5", + "identity": "test-identity", + "requestId": "1deae0f7-9ca9-47c1-b260-d5dccb9e24ee", + "attempt": 1, + "workerVersion": { + "buildId": "719681aca6c15dba2948274d63ba289f" + } + } + }, + { + "eventId": "7", + "eventTime": "2026-10-15T18:04:15.650894Z", + "eventType": "EVENT_TYPE_ACTIVITY_TASK_COMPLETED", + "taskId": "1048604", + "activityTaskCompletedEventAttributes": { + "result": { + "payloads": [ + { + "metadata": { + "messageType": "dGVtcG9yYWwuYXBpLnNkay52MS5FeHRlcm5hbFN0b3JhZ2VSZWZlcmVuY2U=", + "encoding": "anNvbi9wcm90b2J1Zg==" + }, + "data": "eyJjbGFpbURhdGEiOnsia2V5IjoicGF5bG9hZC0yIn0sImRyaXZlck5hbWUiOiJ0ZXN0LWRyaXZlciJ9", + "externalPayloads": [ + { + "sizeBytes": "1089" + } + ] + } + ] + }, + "scheduledEventId": "5", + "startedEventId": "6", + "identity": "test-identity" + } + }, + { + "eventId": "8", + "eventTime": "2026-10-15T18:04:15.650917Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_SCHEDULED", + "taskId": "1048605", + "workflowTaskScheduledEventAttributes": { + "taskQueue": { + "name": "test-identity-sticky", + "kind": "TASK_QUEUE_KIND_STICKY", + "normalName": "references-before-encoding" + }, + "startToCloseTimeout": "10s", + "attempt": 1 + } + }, + { + "eventId": "9", + "eventTime": "2026-10-15T18:04:15.651608Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_STARTED", + "taskId": "1048609", + "workflowTaskStartedEventAttributes": { + "scheduledEventId": "8", + "identity": "test-identity", + "requestId": "b4cf3329-413e-4a7c-b07a-8c7f54660de2", + "historySizeBytes": "1549", + "workerVersion": { + "buildId": "719681aca6c15dba2948274d63ba289f" + } + } + }, + { + "eventId": "10", + "eventTime": "2026-10-15T18:04:15.654284Z", + "eventType": "EVENT_TYPE_WORKFLOW_TASK_COMPLETED", + "taskId": "1048613", + "workflowTaskCompletedEventAttributes": { + "scheduledEventId": "8", + "startedEventId": "9", + "identity": "test-identity", + "workerVersion": { + "buildId": "719681aca6c15dba2948274d63ba289f" + }, + "sdkMetadata": {}, + "meteringMetadata": {} + } + }, + { + "eventId": "11", + "eventTime": "2026-10-15T18:04:15.654332Z", + "eventType": "EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED", + "taskId": "1048614", + "workflowExecutionCompletedEventAttributes": { + "result": { + "payloads": [ + { + "metadata": { + "messageType": "dGVtcG9yYWwuYXBpLnNkay52MS5FeHRlcm5hbFN0b3JhZ2VSZWZlcmVuY2U=", + "encoding": "anNvbi9wcm90b2J1Zg==" + }, + "data": "eyJjbGFpbURhdGEiOnsia2V5IjoicGF5bG9hZC0zIn0sImRyaXZlck5hbWUiOiJ0ZXN0LWRyaXZlciJ9", + "externalPayloads": [ + { + "sizeBytes": "1089" + } + ] + } + ] + }, + "workflowTaskCompletedEventId": "10" + } + } + ] +} diff --git a/tests/worker/test_extstore_unencoded_references_stored_payloads.json b/tests/worker/test_extstore_unencoded_references_stored_payloads.json new file mode 100644 index 000000000..03768b539 --- /dev/null +++ b/tests/worker/test_extstore_unencoded_references_stored_payloads.json @@ -0,0 +1,26 @@ +{ + "payload-0": { + "metadata": { + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChYKCGVuY29kaW5nEgpqc29uL3BsYWluEoIIIndpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2l3aXdpd2ki" + }, + "payload-1": { + "metadata": { + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChYKCGVuY29kaW5nEgpqc29uL3BsYWluEoIIImFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWlhaWFpYWki" + }, + "payload-2": { + "metadata": { + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChYKCGVuY29kaW5nEgpqc29uL3BsYWluEoIIImFvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW9hb2FvYW8i" + }, + "payload-3": { + "metadata": { + "encoding": "YmluYXJ5L3Rlc3QtZW5jb2RlZA==" + }, + "data": "ChYKCGVuY29kaW5nEgpqc29uL3BsYWluEoIIIndvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd293b3dvd28i" + } +} diff --git a/tests/worker/test_interceptor.py b/tests/worker/test_interceptor.py index 4a1da399d..cfbe6a5fb 100644 --- a/tests/worker/test_interceptor.py +++ b/tests/worker/test_interceptor.py @@ -272,7 +272,7 @@ def update_validated_validator(self, param: str) -> None: @pytest.mark.requires_local_server async def test_worker_interceptor(client: Client, env: WorkflowEnvironment): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1424" ) diff --git a/tests/worker/test_payload_size_limits.py b/tests/worker/test_payload_size_limits.py index 18cc7e75a..8a0d4e712 100644 --- a/tests/worker/test_payload_size_limits.py +++ b/tests/worker/test_payload_size_limits.py @@ -83,7 +83,7 @@ def _forwarding_runtime(logger: logging.Logger) -> Runtime: async def test_oversized_payload_fails_task_with_error_log(env: WorkflowEnvironment): """An oversized workflow completion is proactively failed by worker, which logs [TMPRL1103].""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Time-skipping server does not report payload limits.") async with await WorkflowEnvironment.start_local( @@ -142,7 +142,7 @@ async def error_forwarded() -> None: async def test_disable_payload_error_limit_sends_to_server(env: WorkflowEnvironment): """With the opt-out, worker does not pre-fail; the oversized payload reaches (and is rejected by) the server.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Time-skipping server does not report payload limits.") async with await WorkflowEnvironment.start_local( diff --git a/tests/worker/test_poller_auto_enroll.py b/tests/worker/test_poller_auto_enroll.py new file mode 100644 index 000000000..61120d2d5 --- /dev/null +++ b/tests/worker/test_poller_auto_enroll.py @@ -0,0 +1,116 @@ +import uuid +from datetime import timedelta + +import pytest + +from temporalio import activity, workflow +from temporalio.api.worker.v1 import WorkerHeartbeat +from temporalio.api.workflowservice.v1 import ( + DescribeNamespaceRequest, + ListWorkersRequest, +) +from temporalio.client import Client +from temporalio.runtime import Runtime, TelemetryConfig +from temporalio.testing import WorkflowEnvironment +from temporalio.worker import PollerBehaviorSimpleMaximum +from tests import DEV_SERVER_DOWNLOAD_VERSION +from tests.helpers import assert_eventually, new_worker + +AUTO_ENROLL_EXTRA_ARGS = [ + "--dynamic-config-value", + "frontend.pollerAutoscalingAutoEnroll=true", + "--dynamic-config-value", + "frontend.WorkerHeartbeatsEnabled=true", + "--dynamic-config-value", + "frontend.ListWorkersEnabled=true", +] + + +@activity.defn +async def noop_activity() -> None: + pass + + +@workflow.defn +class NoopWorkflow: + @workflow.run + async def run(self) -> None: + await workflow.execute_activity( + noop_activity, start_to_close_timeout=timedelta(seconds=10) + ) + + +async def _heartbeat(client: Client, task_queue: str) -> WorkerHeartbeat: + resp = await client.workflow_service.list_workers( + ListWorkersRequest( + namespace=client.namespace, + query=f'TaskQueue = "{task_queue}"', + page_size=100, + ) + ) + heartbeats = [ + info.worker_heartbeat + for info in resp.workers_info + if info.worker_heartbeat.task_queue == task_queue + ] + assert heartbeats, "no worker heartbeat yet" + return heartbeats[0] + + +async def test_poller_autoscaling_auto_enroll(env: WorkflowEnvironment): + if env.supports_time_skipping: + pytest.skip("Time-skipping server does not implement ListWorkers") + + async with await WorkflowEnvironment.start_local( + dev_server_extra_args=AUTO_ENROLL_EXTRA_ARGS, + dev_server_download_version=DEV_SERVER_DOWNLOAD_VERSION, + ) as local_env: + ns = await local_env.client.workflow_service.describe_namespace( + DescribeNamespaceRequest(namespace=local_env.client.namespace) + ) + if not ns.namespace_info.capabilities.poller_autoscaling_auto_enroll: + pytest.skip("Dev server does not support poller autoscaling auto-enroll") + + client = await local_env.connect_client( + runtime=Runtime( + telemetry=TelemetryConfig(), + worker_heartbeat_interval=timedelta(seconds=1), + ) + ) + + async with new_worker( + client, NoopWorkflow, activities=[noop_activity] + ) as worker: + await client.execute_workflow( + NoopWorkflow.run, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + async def assert_autoscaling() -> None: + hb = await _heartbeat(client, worker.task_queue) + assert hb.workflow_poller_info.is_autoscaling + assert hb.activity_poller_info.is_autoscaling + + await assert_eventually(assert_autoscaling) + + async with new_worker( + client, + NoopWorkflow, + activities=[noop_activity], + workflow_task_poller_behavior=PollerBehaviorSimpleMaximum(maximum=5), + max_concurrent_activity_task_polls=5, + ) as worker: + await client.execute_workflow( + NoopWorkflow.run, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + async def assert_fixed() -> None: + hb = await _heartbeat(client, worker.task_queue) + assert hb.workflow_poller_info.current_pollers > 0 + assert not hb.workflow_poller_info.is_autoscaling + assert not hb.activity_poller_info.is_autoscaling + + await assert_eventually(assert_fixed) diff --git a/tests/worker/test_replayer.py b/tests/worker/test_replayer.py index 52fed7416..b0274ca46 100644 --- a/tests/worker/test_replayer.py +++ b/tests/worker/test_replayer.py @@ -306,7 +306,7 @@ async def test_replayer_workflow_not_registered(client: Client) -> None: async def test_replayer_multiple_from_client( client: Client, env: WorkflowEnvironment ) -> None: - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support newer workflow listing") # Run 5 say-hello's, with 2nd and 4th having non-det errors. Reuse the same @@ -584,9 +584,6 @@ async def test_replayer_unflagged_history_uses_legacy_async_ordering() -> None: workflows=[ActivityAndSignalsWhileWorkflowDown], interceptors=[WorkerWorkflowResultInterceptor()], ) - replayer._set_default_workflow_logic_flag( - _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True - ) await replayer.replay_workflow(history) assert test_replayer_workflow_res == [ "act-start", diff --git a/tests/worker/test_update_with_start.py b/tests/worker/test_update_with_start.py index af2dbf593..b8d236a10 100644 --- a/tests/worker/test_update_with_start.py +++ b/tests/worker/test_update_with_start.py @@ -127,7 +127,7 @@ async def test_non_blocking_update_with_must_create_workflow_semantics( env: WorkflowEnvironment, wait_for_stage: WorkflowUpdateStage, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "TODO: make update_with_start_tests pass under Java test server" ) @@ -150,7 +150,7 @@ async def test_non_blocking_update_with_get_or_create_workflow_semantics( env: WorkflowEnvironment, wait_for_stage: WorkflowUpdateStage, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "TODO: make update_with_start_tests pass under Java test server" ) @@ -173,7 +173,7 @@ async def test_blocking_update_with_get_or_create_workflow_semantics( env: WorkflowEnvironment, wait_for_stage: WorkflowUpdateStage, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "TODO: make update_with_start_tests pass under Java test server" ) @@ -333,7 +333,7 @@ async def _do_start_update_test( async def test_update_with_start_sets_first_execution_run_id( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("TODO: make update_with_start_tests pass under Java test server") async with new_worker( client, @@ -417,7 +417,7 @@ async def test_update_with_start_workflow_already_started_error( gRPC error, and the start_workflow_operation promise should be rejected with the same error. """ - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("TODO: make update_with_start_tests pass under Java test server") async with new_worker( client, @@ -558,7 +558,7 @@ async def my_update(self, arg: str) -> str: async def test_update_with_start_client_outbound_interceptor( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("TODO: make update_with_start_tests pass under Java test server") interceptor = SimpleClientInterceptor() client = Client(**{**client.config(), "interceptors": [interceptor]}) # type: ignore @@ -590,7 +590,7 @@ async def test_update_with_start_does_not_encode_shared_interceptor_header_twice client: Client, env: WorkflowEnvironment, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("TODO: make update_with_start_tests pass under Java test server") codec = HeaderSharingCodec() intercepted_client = Client( @@ -1012,7 +1012,7 @@ async def test_update_with_start_always_attaches_to_completed_update( the update is completed. The behavior is unaffected by the conflict policy or id reuse policy (so, for example, we attach to an update in an existing workflow even if the conflict policy is FAIL). """ - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("TODO: make update_with_start tests pass under Java test server") client = env.client id_conflict_policy = WorkflowIDConflictPolicy[id_conflict_policy_name] @@ -1086,7 +1086,7 @@ async def test_update_with_start_attaches_to_non_completed_update_in_running_wor or id reuse policy (so, for example, we attach to the update in an existing workflow even if the conflict policy is FAIL). """ - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("TODO: make update_with_start tests pass under Java test server") client = env.client id_conflict_policy = WorkflowIDConflictPolicy[id_conflict_policy_name] @@ -1157,7 +1157,7 @@ async def test_update_with_start_does_not_attach_to_non_completed_update_in_clos ID and that update ID does not attach to the update. If the id reuse policy is ALLOW_DUPLICATE then a new workflow is started and the update is issued. """ - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("TODO: make update_with_start tests pass under Java test server") client = env.client id_conflict_policy = WorkflowIDConflictPolicy[id_conflict_policy_name] diff --git a/tests/worker/test_worker.py b/tests/worker/test_worker.py index 57614c21e..51b9b6633 100644 --- a/tests/worker/test_worker.py +++ b/tests/worker/test_worker.py @@ -5,18 +5,22 @@ import multiprocessing import multiprocessing.context import os +import sys import uuid from collections.abc import Awaitable, Callable, Sequence from contextlib import contextmanager from datetime import timedelta from typing import Any +from unittest.mock import Mock from urllib.request import urlopen import nexusrpc import pytest import temporalio.api.enums.v1 +import temporalio.common import temporalio.nexus +import temporalio.service import temporalio.worker._worker from temporalio import activity, workflow from temporalio.api.workflowservice.v1 import ( @@ -40,10 +44,8 @@ from temporalio.service import RPCError from temporalio.testing import WorkflowEnvironment from temporalio.worker import ( - ActivitySlotInfo, CustomSlotSupplier, FixedSizeSlotSupplier, - LocalActivitySlotInfo, NexusSlotInfo, PollerBehaviorAutoscaling, ResourceBasedSlotConfig, @@ -77,6 +79,36 @@ def test_load_default_worker_binary_id(): assert val1 == val2 +@pytest.mark.skipif( + sys.version_info < (3, 14), + reason="InterpreterPoolExecutor requires Python 3.14 or newer", +) +@pytest.mark.parametrize("subclass", [False, True]) +def test_activity_executor_rejects_interpreter_pool(subclass: bool): + if sys.version_info >= (3, 14): + + class CustomInterpreterPoolExecutor(concurrent.futures.InterpreterPoolExecutor): # pyright: ignore[reportUnreachable] + pass + + executor_class = concurrent.futures.InterpreterPoolExecutor + if subclass: + executor_class = CustomInterpreterPoolExecutor + + client = Mock(spec=Client) + client.config.return_value = {"plugins": []} + with executor_class(max_workers=1) as executor: + with pytest.raises( + ValueError, + match="InterpreterPoolExecutor is not supported as an activity_executor", + ): + Worker( + client, + task_queue="test-interpreter-pool", + activities=[never_run_activity], + activity_executor=executor, + ) + + @activity.defn async def never_run_activity() -> None: raise NotImplementedError @@ -235,8 +267,88 @@ def my_signal(self, value: str) -> None: workflow.logger.info(f"Signal: {value}") +async def test_worker_run_while_running_raises_already_started(client: Client): + async with new_worker( + client, WaitOnSignalWorkflow, activities=[say_hello] + ) as worker: + + async def complete_workflow() -> None: + handle = await client.start_workflow( + WaitOnSignalWorkflow.run, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal(WaitOnSignalWorkflow.my_signal, "finish") + await handle.result() + + # is_running includes validation, so complete work before testing this state. + await complete_workflow() + with pytest.raises(RuntimeError, match="^Already started$"): + await worker.run() + await complete_workflow() + assert worker.is_running + + +async def test_worker_run_after_shutdown_raises_already_started(client: Client): + worker = create_worker(client) + async with worker: + + async def is_running() -> None: + assert worker.is_running + + await assert_eventually(is_running) + assert worker.is_shutdown + with pytest.raises(RuntimeError, match="^Already started$"): + await worker.run() + + +async def test_worker_run_before_validation_finishes_raises_already_started( + client: Client, monkeypatch: pytest.MonkeyPatch +): + worker = new_worker(client, WaitOnSignalWorkflow, activities=[say_hello]) + original_validate = worker._bridge_worker.validate + validated = asyncio.Event() + continue_run = asyncio.Event() + + async def validate() -> Any: + result = await original_validate() + validated.set() + await continue_run.wait() + return result + + # Hold validation's return so the calls overlap even with a fast server. + monkeypatch.setattr(worker._bridge_worker, "validate", validate) + first_run = asyncio.create_task(worker.run()) + try: + await asyncio.wait_for(validated.wait(), 10) + with pytest.raises(RuntimeError, match="^Already started$"): + await worker.run() + assert worker.is_running and not worker.is_shutdown + continue_run.set() + + # The first run is unaffected and still completes a workflow + handle = await client.start_workflow( + WaitOnSignalWorkflow.run, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.signal(WaitOnSignalWorkflow.my_signal, "finish") + await handle.result() + finally: + continue_run.set() + await worker.shutdown() + await first_run + + +async def test_worker_run_inside_async_with_raises_already_started(client: Client): + # `async with` already runs the worker in the background + with pytest.raises(RuntimeError, match="^Already started$"): + async with create_worker(client) as worker: + await worker.run() + + async def test_worker_validate_fail(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server does not appear to fail on invalid namespace") # Try to run a worker on an invalid namespace config = client.config() @@ -249,6 +361,38 @@ async def test_worker_validate_fail(client: Client, env: WorkflowEnvironment): assert str(err.value).startswith("Worker validation failed") +async def test_worker_validate_fail_does_not_hang_shutdown( + client: Client, env: WorkflowEnvironment +): + if env.supports_time_skipping_v1: + pytest.skip("Java test server does not appear to fail on invalid namespace") + config = client.config() + config["namespace"] = "does-not-exist" + client = Client(**config) + + # Calling shutdown() after run() raised should return right away + worker = Worker( + client, task_queue=f"tq-{uuid.uuid4()}", workflows=[NeverRunWorkflow] + ) + with pytest.raises(RuntimeError, match="^Worker validation failed"): + await worker.run() + await asyncio.wait_for(worker.shutdown(), 10) + assert worker.is_shutdown and not worker.is_running + with pytest.raises(RuntimeError, match="^Already started$"): + await worker.run() + + # async with should raise the validation error instead of hanging + async def run_in_context() -> None: + async with Worker( + client, task_queue=f"tq-{uuid.uuid4()}", workflows=[NeverRunWorkflow] + ): + # The worker cancels this when it fails + await asyncio.Future() + + with pytest.raises(RuntimeError, match="^Worker validation failed"): + await asyncio.wait_for(run_in_context(), 10) + + async def test_can_run_resource_based_worker(client: Client): tuner = WorkerTuner.create_resource_based( target_memory_usage=0.5, @@ -384,6 +528,11 @@ async def run(self) -> None: versioning_intent=VersioningIntent.DEFAULT, start_to_close_timeout=timedelta(seconds=5), ) + await workflow.execute_local_activity( + say_hello, + "hi", + start_to_close_timeout=timedelta(seconds=5), + ) nexus_client = workflow.create_nexus_client( endpoint=make_nexus_endpoint_name(workflow.info().task_queue), service=SayHelloService, @@ -401,13 +550,23 @@ def my_signal(self, value: str) -> None: @pytest.mark.requires_local_server async def test_custom_slot_supplier(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Nexus tests don't work under Java test server") class MyPermit(SlotPermit): - def __init__(self, pnum: int): + def __init__(self, pnum: int, slot_type: str): super().__init__() self.pnum = pnum + self.slot_type = slot_type + + # Activity and local activity slot infos have the same shape, so the slot + # type recorded on the permit at reservation is used to tell them apart. + def slot_info_fields(permit: MyPermit, info: Any) -> tuple[Any, ...]: + if isinstance(info, WorkflowSlotInfo): + return (permit.slot_type, info.workflow_type, info.is_sticky) + if isinstance(info, NexusSlotInfo): + return (permit.slot_type, info.service, info.operation) + return (permit.slot_type, info.activity_type) class MySlotSupplier(CustomSlotSupplier): reserves = 0 @@ -416,7 +575,8 @@ class MySlotSupplier(CustomSlotSupplier): used = 0 seen_sticky_kinds = set() seen_slot_kinds = set() - seen_used_slot_kinds = set() + used_slot_infos = set() + released_slot_infos = set() seen_release_info_empty = False seen_release_info_nonempty = False @@ -425,7 +585,7 @@ async def reserve_slot(self, ctx: SlotReserveContext) -> SlotPermit: # Verify an async call doesn't bungle things await asyncio.sleep(0.01) self.reserves += 1 - return MyPermit(self.reserves) + return MyPermit(self.reserves, ctx.slot_type) def try_reserve_slot(self, ctx: SlotReserveContext) -> SlotPermit | None: self.reserve_asserts(ctx) @@ -436,14 +596,7 @@ def mark_slot_used(self, ctx: SlotMarkUsedContext) -> None: assert isinstance(ctx.permit, MyPermit) assert ctx.permit.pnum is not None assert ctx.slot_info is not None - if isinstance(ctx.slot_info, WorkflowSlotInfo): - self.seen_used_slot_kinds.add("wf") - elif isinstance(ctx.slot_info, ActivitySlotInfo): - self.seen_used_slot_kinds.add("a") - elif isinstance(ctx.slot_info, LocalActivitySlotInfo): - self.seen_used_slot_kinds.add("la") - elif isinstance(ctx.slot_info, NexusSlotInfo): - self.seen_used_slot_kinds.add("nx") + self.used_slot_infos.add(slot_info_fields(ctx.permit, ctx.slot_info)) self.used += 1 def release_slot(self, ctx: SlotReleaseContext) -> None: @@ -458,6 +611,9 @@ def release_slot(self, ctx: SlotReleaseContext) -> None: self.seen_release_info_empty = True else: self.seen_release_info_nonempty = True + self.released_slot_infos.add( + slot_info_fields(ctx.permit, ctx.slot_info) + ) self.releases += 1 def reserve_asserts(self, ctx: SlotReserveContext) -> None: @@ -498,10 +654,19 @@ def reserve_asserts(self, ctx: SlotReserveContext) -> None: # This isn't solvable without redoing a chunk of pyo3-asyncio. So we only check # that the permits passed to release line up. assert ss.highest_seen_reserve_on_release >= ss.releases - assert ss.used == 5 + assert ss.used == 6 assert ss.seen_sticky_kinds == {True, False} assert ss.seen_slot_kinds == {"workflow", "activity", "local-activity", "nexus"} - assert ss.seen_used_slot_kinds == {"wf", "a", "nx"} + # Callback exceptions are logged and swallowed by the worker, so the slot + # info fields are checked here rather than inside the supplier. + assert ss.used_slot_infos == { + ("workflow", "CustomSlotSupplierWorkflow", False), + ("workflow", "CustomSlotSupplierWorkflow", True), + ("activity", "say_hello"), + ("local-activity", "say_hello"), + ("nexus", "SayHelloService", "say_hello"), + } + assert ss.released_slot_infos == ss.used_slot_infos assert ss.seen_release_info_empty assert ss.seen_release_info_nonempty @@ -752,7 +917,7 @@ def state(self): async def test_worker_with_worker_deployment_config( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Test Server doesn't support worker deployments") deployment_name = f"deployment-{uuid.uuid4()}" @@ -843,7 +1008,7 @@ async def test_worker_with_worker_deployment_config( async def test_worker_deployment_ramp(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Test Server doesn't support worker deployments") deployment_name = f"deployment-ramping-{uuid.uuid4()}" @@ -963,7 +1128,7 @@ async def _test_worker_deployment_dynamic_workflow( workflow_class: type[Any], expected_versioning_behavior: temporalio.api.enums.v1.VersioningBehavior.ValueType, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Test Server doesn't support worker deployments") deployment_name = f"deployment-dynamic-{uuid.uuid4()}" @@ -1075,7 +1240,7 @@ async def test_workflows_must_have_versioning_behavior_when_feature_turned_on( async def test_workflows_can_use_default_versioning_behavior( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Test Server doesn't support worker versioning") deployment_name = f"deployment-default-versioning-{uuid.uuid4()}" @@ -1117,7 +1282,7 @@ async def test_workflows_can_use_default_versioning_behavior( async def test_worker_deployment_config_without_versioning( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Test Server doesn't support worker deployments") build_id = "my-custom-build-id-1.0" @@ -1174,7 +1339,7 @@ async def test_deployment_config_rejects_versioning_behavior_without_versioning( async def test_workflows_can_use_versioning_override( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Test Server doesn't support worker versioning") deployment_name = f"deployment-versioning-override-{uuid.uuid4()}" @@ -1220,6 +1385,155 @@ async def test_workflows_can_use_versioning_override( ) +@workflow.defn(versioning_behavior=VersioningBehavior.PINNED) +class ChildVersioningOverrideParent: + def __init__(self) -> None: + self.start_child = False + + @workflow.run + async def run( + self, + child_id: str, + override_kind: str, + target_version: WorkerDeploymentVersion, + use_execute: bool, + ) -> tuple[str, str]: + await workflow.wait_condition(lambda: self.start_child) + override: temporalio.common.VersioningOverride + if override_kind == "pinned": + override = PinnedVersioningOverride(target_version) + elif override_kind == "auto_upgrade": + override = temporalio.common.AutoUpgradeVersioningOverride() + else: + override = temporalio.common.OneTimeVersioningOverride(target_version) + if use_execute: + result = await workflow.execute_child_workflow( + ChildVersioningOverrideWorkflow.run, + id=child_id, + versioning_override=override, + ) + else: + child = await workflow.start_child_workflow( + ChildVersioningOverrideWorkflow.run, + id=child_id, + versioning_override=override, + ) + result = await child + version = workflow.info().get_current_deployment_version() + assert version + return version.build_id, result + + @workflow.signal + def launch_child(self) -> None: + self.start_child = True + + +@workflow.defn +class ChildVersioningOverrideWorkflow: + def __init__(self) -> None: + self.finish = False + + @workflow.run + async def run(self) -> str: + version = workflow.info().get_current_deployment_version() + assert version + # Memo records the first task without issuing a query that could trigger routing. + workflow.upsert_memo({"initial_build_id": version.build_id}) + await workflow.wait_condition(lambda: self.finish) + version = workflow.info().get_current_deployment_version() + assert version + return version.build_id + + @workflow.signal + def do_finish(self) -> None: + self.finish = True + + +@pytest.mark.parametrize("use_execute", [False, True], ids=["start", "execute"]) +@pytest.mark.parametrize( + "override_kind, child_behavior, expected_final_build_id", + [ + ("pinned", VersioningBehavior.AUTO_UPGRADE, "2.0"), + ("auto_upgrade", VersioningBehavior.PINNED, "2.0"), + ("one_time", VersioningBehavior.AUTO_UPGRADE, "1.0"), + ("one_time", VersioningBehavior.PINNED, "2.0"), + ], + ids=["pinned", "auto-upgrade", "one-time-auto-upgrade", "one-time-pinned"], +) +async def test_child_workflows_can_use_versioning_override( + client: Client, + env: WorkflowEnvironment, + use_execute: bool, + override_kind: str, + child_behavior: VersioningBehavior, + expected_final_build_id: str, +): + if env.supports_time_skipping: + pytest.skip("Test Server doesn't support worker deployments") + + deployment_name = f"child-versioning-override-{uuid.uuid4()}" + v1 = WorkerDeploymentVersion(deployment_name=deployment_name, build_id="1.0") + v2 = WorkerDeploymentVersion(deployment_name=deployment_name, build_id="2.0") + async with ( + new_worker( + client, + ChildVersioningOverrideParent, + ChildVersioningOverrideWorkflow, + deployment_config=WorkerDeploymentConfig( + version=v1, + use_worker_versioning=True, + default_versioning_behavior=child_behavior, + ), + ) as w1, + new_worker( + client, + ChildVersioningOverrideParent, + ChildVersioningOverrideWorkflow, + task_queue=w1.task_queue, + deployment_config=WorkerDeploymentConfig( + version=v2, + use_worker_versioning=True, + default_versioning_behavior=child_behavior, + ), + ), + ): + await wait_until_worker_deployment_visible(client, v1) + describe_resp = await wait_until_worker_deployment_visible(client, v2) + current_version = v2 if override_kind == "auto_upgrade" else v1 + await set_current_deployment_version( + client, describe_resp.conflict_token, current_version + ) + await wait_for_worker_deployment_routing_config_propagation( + client, deployment_name, current_version.build_id + ) + + child_id = f"child-versioning-override-{uuid.uuid4()}" + parent = await client.start_workflow( + ChildVersioningOverrideParent.run, + args=[child_id, override_kind, v2, use_execute], + id=f"parent-{child_id}", + task_queue=w1.task_queue, + versioning_override=PinnedVersioningOverride(v1), + ) + await wait_for_workflow_running_on_version(parent, v1.build_id) + await parent.signal(ChildVersioningOverrideParent.launch_child) + child = client.get_workflow_handle(child_id) + + async def check_initial_version() -> None: + try: + desc = await child.describe() + except RPCError as err: + if err.status != temporalio.service.RPCStatusCode.NOT_FOUND: + raise + assert False, "Child has not started yet" + assert await desc.memo_value("initial_build_id", None) == v2.build_id + + await assert_eventually(check_initial_version) + await child.signal(ChildVersioningOverrideWorkflow.do_finish) + assert await parent.result() == (v1.build_id, expected_final_build_id) + assert await child.result() == expected_final_build_id + + async def test_can_run_autoscaling_polling_worker( client: Client, env: WorkflowEnvironment ): @@ -1281,7 +1595,8 @@ async def mk_call() -> DescribeWorkerDeploymentResponse: DescribeWorkerDeploymentRequest( namespace=client.namespace, deployment_name=version.deployment_name, - ) + ), + retry=True, ) except RPCError: # Expected @@ -1304,7 +1619,8 @@ async def set_current_deployment_version( deployment_name=version.deployment_name, version=version.to_canonical_string(), conflict_token=conflict_token, - ) + ), + retry=True, ) @@ -1321,7 +1637,8 @@ async def set_ramping_version( version=version.to_canonical_string(), conflict_token=conflict_token, percentage=percentage, - ) + ), + retry=True, ) return response @@ -1341,7 +1658,8 @@ async def check() -> bool: DescribeWorkerDeploymentRequest( namespace=client.namespace, deployment_name=deployment_name, - ) + ), + retry=True, ) routing_config = resp.worker_deployment_info.routing_config if ( @@ -1624,7 +1942,7 @@ async def check() -> bool: async def test_continue_as_new_with_version_upgrade( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Test Server doesn't support worker deployments") deployment_name = f"deployment-can-upgrade-{uuid.uuid4()}" @@ -1693,7 +2011,7 @@ async def test_continue_as_new_with_version_upgrade( async def test_continue_as_new_with_ramping_version( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Test Server doesn't support worker deployments") deployment_name = f"deployment-can-ramping-{uuid.uuid4()}" diff --git a/tests/worker/test_worker_exit.py b/tests/worker/test_worker_exit.py new file mode 100644 index 000000000..49b89ba29 --- /dev/null +++ b/tests/worker/test_worker_exit.py @@ -0,0 +1,80 @@ +import asyncio +import uuid +from collections.abc import Awaitable, Callable +from datetime import timedelta + +from temporalio import workflow +from temporalio.client import Client +from temporalio.plugin import SimplePlugin +from temporalio.worker import Worker + + +@workflow.defn +class NothingWorkflow: + @workflow.run + async def run(self) -> None: + pass + + +class CleanupPlugin(SimplePlugin): + def __init__(self, client: Client) -> None: + super().__init__("test-cleanup") + self.client = client + self.cleanup_result: int | None = None + + async def run_worker( + self, worker: Worker, next: Callable[[Worker], Awaitable[None]] + ) -> None: + try: + await super().run_worker(worker, next) + finally: + # Plugin cleanup code calls the server after the Worker stops. + self.cleanup_result = (await self.client.count_workflows()).count + + +async def test_plugin_cleanup_awaits_after_worker_exit(client: Client): + plugin = CleanupPlugin(client) + async with Worker( + client, + task_queue=f"tq-{uuid.uuid4()}", + workflows=[NothingWorkflow], + plugins=[plugin], + ): + pass + assert plugin.cleanup_result is not None + # The caller can still await after the block. + await client.count_workflows() + + +class StuckCleanupPlugin(SimplePlugin): + def __init__(self) -> None: + super().__init__("test-stuck-cleanup") + self.cancelled = asyncio.Event() + + async def run_worker( + self, worker: Worker, next: Callable[[Worker], Awaitable[None]] + ) -> None: + try: + await super().run_worker(worker, next) + finally: + try: + await asyncio.Event().wait() + except asyncio.CancelledError: + self.cancelled.set() + raise + + +async def test_plugin_cleanup_is_cancelled_after_plugin_shutdown_timeout( + client: Client, +): + plugin = StuckCleanupPlugin() + async with Worker( + client, + task_queue=f"tq-{uuid.uuid4()}", + workflows=[NothingWorkflow], + plugins=[plugin], + plugin_shutdown_timeout=timedelta(milliseconds=100), + ): + pass + # The cancel reaches the cleanup code on a later loop iteration, so wait for it. + await asyncio.wait_for(plugin.cancelled.wait(), timeout=10) diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index 14394dd98..da5688215 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -36,6 +36,7 @@ import temporalio.activity import temporalio.api.sdk.v1 +import temporalio.api.workflowservice.v1 import temporalio.client import temporalio.converter import temporalio.converter._extstore @@ -101,6 +102,7 @@ TimeoutError, WorkflowAlreadyStartedError, ) +from temporalio.plugin import SimplePlugin from temporalio.runtime import ( BUFFERED_METRIC_KIND_COUNTER, BUFFERED_METRIC_KIND_HISTOGRAM, @@ -152,6 +154,7 @@ external_wait_cancel, ) from tests.helpers.metrics import PromMetricMatcher +from tests.helpers.time_skipping import skip_if_time_skipping_v1_unsupported @workflow.defn @@ -229,7 +232,7 @@ async def run(self) -> dict: async def test_workflow_info(client: Client, env: WorkflowEnvironment): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1426" ) @@ -256,6 +259,7 @@ async def test_workflow_info(client: Client, env: WorkflowEnvironment): json.dumps(dataclasses.asdict(retry_policy), default=str) ) assert uuid.UUID(info["run_id"]).version == 7 + assert info["original_execution_run_id"] == info["run_id"] assert info["run_timeout"] is None assert info["task_queue"] == worker.task_queue assert info["task_timeout"] == "0:00:10" @@ -312,7 +316,7 @@ def get_history_info(self) -> HistoryInfo: async def test_workflow_history_info( client: Client, env: WorkflowEnvironment, continue_as_new_suggest_history_count: int ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server does not support should continue as new") async with new_worker(client, HistoryInfoWorkflow) as worker: handle = await client.start_workflow( @@ -739,6 +743,46 @@ async def test_workflow_bad_signal_param(client: Client): ) +@workflow.defn +class TaskSchedulingWorkflow: + @workflow.run + async def run(self) -> None: + loop = cast( + temporalio.worker._workflow_instance._WorkflowInstanceImpl, + asyncio.get_running_loop(), + ) + completed = [] + + async def child() -> None: + completed.append(True) + + for eager_start in (None, False): + completed.clear() + task = loop.create_task(child(), eager_start=eager_start) + assert not completed + await task + assert completed == [True] + + coro = child() + try: + loop.create_task(coro, eager_start=True) + except NotImplementedError: + pass + else: + raise AssertionError("Eager task execution should be rejected") + finally: + coro.close() + + +async def test_workflow_task_scheduling(client: Client): + async with new_worker(client, TaskSchedulingWorkflow) as worker: + await client.execute_workflow( + TaskSchedulingWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + @workflow.defn class AsyncUtilWorkflow: def __init__(self) -> None: @@ -946,7 +990,7 @@ async def run(self, params: CancelActivityWorkflowParams) -> None: if params.local: handle = workflow.start_local_activity_method( ActivityWaitCancelNotify.wait_cancel, - schedule_to_close_timeout=timedelta(seconds=5), + schedule_to_close_timeout=timedelta(minutes=1), cancellation_type=workflow.ActivityCancellationType[ params.cancellation_type ], @@ -955,7 +999,7 @@ async def run(self, params: CancelActivityWorkflowParams) -> None: handle = workflow.start_activity_method( ActivityWaitCancelNotify.wait_cancel, schedule_to_close_timeout=timedelta(seconds=5), - heartbeat_timeout=timedelta(seconds=1), + heartbeat_timeout=timedelta(seconds=5), cancellation_type=workflow.ActivityCancellationType[ params.cancellation_type ], @@ -976,14 +1020,24 @@ def activity_result(self) -> str: @pytest.mark.parametrize("local", [True, False]) async def test_workflow_cancel_activity(client: Client, local: bool): - # Need short task timeout to timeout LA task and longer assert timeout - # so the task can timeout - task_timeout = timedelta(seconds=1) - assert_timeout = timedelta(seconds=10) + # Core completes the task holding a local activity at 80% of this timeout, and + # the cancel reaches the activity on the second such cycle (~8s), so the assert + # budget needs headroom beyond that on loaded runners + task_timeout = timedelta(seconds=5) + assert_timeout = timedelta(seconds=30) activity_inst = ActivityWaitCancelNotify() + async def wait_cancel_complete() -> None: + await asyncio.wait_for( + activity_inst.wait_cancel_complete.wait(), assert_timeout.total_seconds() + ) + activity_inst.wait_cancel_complete.clear() + async with new_worker( - client, CancelActivityWorkflow, activities=[activity_inst.wait_cancel] + client, + CancelActivityWorkflow, + activities=[activity_inst.wait_cancel], + max_heartbeat_throttle_interval=timedelta(milliseconds=300), ) as worker: # Try cancel - confirm error and activity was sent the cancel handle = await client.start_workflow( @@ -1003,7 +1057,7 @@ async def activity_result() -> str: await assert_eq_eventually( "Error: CancelledError", activity_result, timeout=assert_timeout ) - await activity_inst.wait_cancel_complete.wait() + await wait_cancel_complete() await handle.cancel() # Wait cancel - confirm no error due to graceful cancel handling @@ -1022,7 +1076,7 @@ async def activity_result() -> str: activity_result, timeout=assert_timeout, ) - await activity_inst.wait_cancel_complete.wait() + await wait_cancel_complete() await handle.cancel() # Abandon - confirm error and that activity stays running @@ -1042,7 +1096,218 @@ async def activity_result() -> str: await asyncio.sleep(0.5) assert not activity_inst.wait_cancel_complete.is_set() await handle.cancel() - await activity_inst.wait_cancel_complete.wait() + await wait_cancel_complete() + + +@workflow.defn +class CancelActivityDuringWorkflowCancellationWorkflow: + def __init__(self) -> None: + self._activity_started = False + self._cancel_activity = False + + @workflow.run + async def run(self) -> str: + handle = workflow.start_activity( + wait_cancel, + start_to_close_timeout=timedelta(minutes=1), + heartbeat_timeout=timedelta(seconds=1), + ) + self._activity_started = True + + async def cancel_activity() -> None: + await workflow.wait_condition(lambda: self._cancel_activity) + handle.cancel() + + cancel_task = asyncio.create_task(cancel_activity()) + try: + await handle + except ActivityError: + pass + finally: + cancel_task.cancel() + return "activity cancelled" + + @workflow.signal + def cancel_activity(self) -> None: + self._cancel_activity = True + + @workflow.query + def activity_started(self) -> bool: + return self._activity_started + + +async def test_workflow_cancel_activity_while_workflow_cancelled(client: Client): + task_queue = str(uuid.uuid4()) + runner = CustomWorkflowRunner() + handle = await client.start_workflow( + CancelActivityDuringWorkflowCancellationWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=task_queue, + ) + + async with new_worker(client, activities=[wait_cancel], task_queue=task_queue): + async with new_worker( + client, + CancelActivityDuringWorkflowCancellationWorkflow, + task_queue=task_queue, + workflow_runner=runner, + max_cached_workflows=0, + ): + + async def activity_started() -> bool: + return await handle.query( + CancelActivityDuringWorkflowCancellationWorkflow.activity_started + ) + + await assert_eq_eventually(True, activity_started) + + # Keep the workflow worker offline so the signal and cancellation are + # delivered in the same activation when it resumes. + await handle.signal( + CancelActivityDuringWorkflowCancellationWorkflow.cancel_activity + ) + await handle.cancel() + + async with new_worker( + client, + CancelActivityDuringWorkflowCancellationWorkflow, + task_queue=task_queue, + workflow_runner=runner, + ): + assert await handle.result() == "activity cancelled" + + assert not [ + event + async for event in handle.fetch_history_events() + if event.HasField("workflow_task_failed_event_attributes") + ] + assert any( + {"signal_workflow", "cancel_workflow"}.issubset( + {job.WhichOneof("variant") for job in activation.jobs} + ) + for activation, _ in runner._pairs + ) + + +@dataclass +class CancelActivityThenEvictWorkflowParams: + local: bool + cancellation_type: str + fail_task_after_cancel: bool + + +cancel_activity_then_evict_failed_runs: set[str] = set() + + +class ActivityStartedWaitCancel: + def __init__(self) -> None: + self.started = asyncio.Event() + + @activity.defn + async def wait_cancel(self) -> str: + self.started.set() + return await wait_cancel() + + +# Not sandboxed so the set of failed runs survives eviction +@workflow.defn(sandboxed=False) +class CancelActivityThenEvictWorkflow: + def __init__(self) -> None: + self._cancel_activity = False + + @workflow.run + async def run(self, params: CancelActivityThenEvictWorkflowParams) -> str: + cancellation_type = workflow.ActivityCancellationType[params.cancellation_type] + if params.local: + handle = workflow.start_local_activity_method( + ActivityStartedWaitCancel.wait_cancel, + schedule_to_close_timeout=timedelta(minutes=1), + cancellation_type=cancellation_type, + ) + else: + handle = workflow.start_activity_method( + ActivityStartedWaitCancel.wait_cancel, + schedule_to_close_timeout=timedelta(minutes=1), + heartbeat_timeout=timedelta(seconds=5), + cancellation_type=cancellation_type, + ) + # Cancel only once the activity is running, otherwise the cancel can + # resolve before the activity ever sees it + await workflow.wait_condition(lambda: self._cancel_activity) + handle.cancel() + # Let the handle task send its cancel command before the task can fail + await asyncio.sleep(0) + if ( + params.fail_task_after_cancel + and workflow.info().run_id not in cancel_activity_then_evict_failed_runs + ): + cancel_activity_then_evict_failed_runs.add(workflow.info().run_id) + raise RuntimeError("Intentional task failure") + try: + return await handle + except ActivityError as err: + return f"Error: {err.cause.__class__.__name__}" + + @workflow.signal + def cancel_activity(self) -> None: + self._cancel_activity = True + + +@pytest.mark.parametrize( + "params,expected", + [ + # A task failure evicts the workflow while the cancel is unresolved + ( + CancelActivityThenEvictWorkflowParams( + local=False, + cancellation_type=workflow.ActivityCancellationType.TRY_CANCEL.name, + fail_task_after_cancel=True, + ), + "Error: CancelledError", + ), + ( + CancelActivityThenEvictWorkflowParams( + local=True, + cancellation_type=workflow.ActivityCancellationType.TRY_CANCEL.name, + fail_task_after_cancel=True, + ), + "Error: CancelledError", + ), + # Without a cache, every activation evicts before the activity + # acknowledges the cancel + ( + CancelActivityThenEvictWorkflowParams( + local=False, + cancellation_type=workflow.ActivityCancellationType.WAIT_CANCELLATION_COMPLETED.name, + fail_task_after_cancel=False, + ), + "Got cancelled error, cancelled? True", + ), + ], + ids=["try-cancel-task-failure", "local-try-cancel-task-failure", "wait-no-cache"], +) +async def test_workflow_cancel_activity_then_evict( + client: Client, params: CancelActivityThenEvictWorkflowParams, expected: str +): + activity_inst = ActivityStartedWaitCancel() + async with new_worker( + client, + CancelActivityThenEvictWorkflow, + activities=[activity_inst.wait_cancel], + max_cached_workflows=1000 if params.fail_task_after_cancel else 0, + max_heartbeat_throttle_interval=timedelta(milliseconds=300), + ) as worker: + handle = await client.start_workflow( + CancelActivityThenEvictWorkflow.run, + params, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await activity_inst.started.wait() + await handle.signal(CancelActivityThenEvictWorkflow.cancel_activity) + assert expected == await handle.result() + assert worker._workflow_worker + assert worker._workflow_worker._could_not_evict_count == 0 @workflow.defn @@ -1117,7 +1382,7 @@ async def run(self) -> NoReturn: except asyncio.CancelledError: self._reason_inner = workflow.cancellation_reason() try: - await asyncio.sleep(1000) + await workflow.wait_condition(lambda: False) except asyncio.CancelledError: self._reason_outer = workflow.cancellation_reason() raise @@ -1291,7 +1556,7 @@ async def test_workflow_logic_flag_enabled_after_replay(client: Client) -> None: task_queue=task_queue, ) - async with new_worker( + worker = new_worker( client, EnableWorkflowLogicFlagAfterReplayWorkflow, task_queue=task_queue, @@ -1299,7 +1564,12 @@ async def test_workflow_logic_flag_enabled_after_replay(client: Client) -> None: # task after its timeout, so keep events sent after this worker stops on # the normal queue. max_cached_workflows=0, - ): + ) + # Start under the legacy ordering so the first task does not record the flag + worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=False + ) + async with worker: async def ready() -> bool: return await handle.query(EnableWorkflowLogicFlagAfterReplayWorkflow.ready) @@ -1356,10 +1626,9 @@ async def test_workflow_cancel_before_run(client: Client, single_batch: bool): await handle.cancel() # Start worker and wait for result worker = new_worker(client, TrapCancelWorkflow, task_queue=task_queue) - if single_batch: - worker._set_default_workflow_logic_flag( - _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True - ) + worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=single_batch + ) async with worker: assert "cancelled" == await handle.result() @@ -1805,24 +2074,161 @@ async def run(self, external_workflow_id: str) -> None: async def test_workflow_cancel_external(client: Client): - async with new_worker(client, CancelExternalWorkflow, LongSleepWorkflow) as worker: - # Start long sleep, then cancel and check that it got cancelled - long_sleep_handle = await client.start_workflow( - LongSleepWorkflow.run, + async with new_worker( + client, CancelExternalWorkflow, WaitForeverWorkflow + ) as worker: + # A timer can finish under time skipping before the external cancel is sent. + target_handle = await client.start_workflow( + WaitForeverWorkflow.run, id=f"workflow-{uuid.uuid4()}", task_queue=worker.task_queue, ) await client.execute_workflow( CancelExternalWorkflow.run, - long_sleep_handle.id, + target_handle.id, id=f"workflow-{uuid.uuid4()}", task_queue=worker.task_queue, ) with pytest.raises(WorkflowFailureError) as err: - await long_sleep_handle.result() + await target_handle.result() assert isinstance(err.value.cause, CancelledError) +@workflow.defn +class CancelExternalStopWaitingWorkflow: + def __init__(self) -> None: + self._finish = False + + @workflow.run + async def run(self, external_workflow_id: str) -> None: + cancel_task = asyncio.create_task( + workflow.get_external_workflow_handle(external_workflow_id).cancel() + ) + # Let the task send the request, then stop waiting on it the way + # asyncio.timeout or a failing TaskGroup sibling would + await asyncio.sleep(0) + cancel_task.cancel() + try: + await cancel_task + except asyncio.CancelledError: + pass + await workflow.wait_condition(lambda: self._finish) + + @workflow.signal + def finish(self) -> None: + self._finish = True + + +@workflow.defn +class CancelExternalThenCleanUpWorkflow: + def __init__(self) -> None: + self._finish = False + + @workflow.run + async def run(self, external_workflow_id: str) -> None: + try: + await workflow.get_external_workflow_handle(external_workflow_id).cancel() + except asyncio.CancelledError: + await workflow.wait_condition(lambda: self._finish) + raise + + @workflow.signal + def finish(self) -> None: + self._finish = True + + +async def wait_for_external_cancel_resolution(handle: WorkflowHandle) -> None: + async def resolved() -> None: + async for e in handle.fetch_history_events(): + if e.event_type in ( + EventType.EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED, + EventType.EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED, + ): + return + assert False, "External cancel request not resolved" + + # Letting the workflow finish any earlier could complete it before Core + # delivers the resolution + await assert_eventually(resolved) + + +async def test_workflow_cancel_external_stop_waiting(client: Client): + async with new_worker( + client, CancelExternalStopWaitingWorkflow, TrapCancelWorkflow + ) as worker: + # No timer, so time-skipping V2 cannot finish it before the cancel + target = await client.start_workflow( + TrapCancelWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + handle = await client.start_workflow( + CancelExternalStopWaitingWorkflow.run, + target.id, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await wait_for_external_cancel_resolution(handle) + await handle.signal(CancelExternalStopWaitingWorkflow.finish) + await handle.result() + event_types = [e.event_type async for e in handle.fetch_history_events()] + assert EventType.EVENT_TYPE_WORKFLOW_TASK_FAILED not in event_types + assert "cancelled" == await target.result() + + +async def test_workflow_cancel_external_stop_waiting_target_missing( + client: Client, env: WorkflowEnvironment +): + if env.supports_time_skipping_v1: + pytest.skip( + "Java test server does not resolve a cancel request for a missing workflow" + ) + async with new_worker(client, CancelExternalStopWaitingWorkflow) as worker: + handle = await client.start_workflow( + CancelExternalStopWaitingWorkflow.run, + f"workflow-{uuid.uuid4()}", + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await wait_for_external_cancel_resolution(handle) + await handle.signal(CancelExternalStopWaitingWorkflow.finish) + await handle.result() + event_types = [e.event_type async for e in handle.fetch_history_events()] + assert EventType.EVENT_TYPE_WORKFLOW_TASK_FAILED not in event_types + + +async def test_workflow_cancel_external_workflow_cancelled(client: Client): + task_queue = str(uuid.uuid4()) + target = await client.start_workflow( + TrapCancelWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=task_queue, + ) + handle = await client.start_workflow( + CancelExternalThenCleanUpWorkflow.run, + target.id, + id=f"workflow-{uuid.uuid4()}", + task_queue=task_queue, + ) + # Cancelling before the first workflow task means the cancellation arrives + # in the same activation that sends the external cancel + await handle.cancel() + async with new_worker( + client, + CancelExternalThenCleanUpWorkflow, + TrapCancelWorkflow, + task_queue=task_queue, + ): + await wait_for_external_cancel_resolution(handle) + await handle.signal(CancelExternalThenCleanUpWorkflow.finish) + with pytest.raises(WorkflowFailureError) as err: + await handle.result() + assert isinstance(err.value.cause, CancelledError) + event_types = [e.event_type async for e in handle.fetch_history_events()] + assert EventType.EVENT_TYPE_WORKFLOW_TASK_FAILED not in event_types + assert "cancelled" == await target.result() + + @dataclass class SignalExternalWorkflowArgs: external_workflow_id: str @@ -2236,7 +2642,7 @@ async def run(self, past_run_ids: list[str]) -> list[str]: async def test_workflow_continue_as_new(client: Client, env: WorkflowEnvironment): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1424" ) @@ -3020,7 +3426,7 @@ def complete(self) -> None: async def test_workflow_dataclass_typed(client: Client, env: WorkflowEnvironment): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-rust/issues/390" ) @@ -3092,7 +3498,7 @@ async def test_workflow_separate_abstract(client: Client): async def test_workflow_already_started(client: Client, env: WorkflowEnvironment): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1220" ) @@ -3127,7 +3533,7 @@ async def run(self) -> None: async def test_workflow_child_already_started(client: Client, env: WorkflowEnvironment): # TODO(cretz): Fix - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1220" ) @@ -3264,6 +3670,72 @@ async def test_workflow_local_activity_backoff(client: Client): ) +@activity.defn +async def retry_later_activity() -> None: + # A delay above the default 60s local_retry_threshold makes Core back off + # with a workflow timer instead of retrying in memory + raise ApplicationError("Retry later", next_retry_delay=timedelta(seconds=90)) + + +@workflow.defn +class LocalActivityBackoffCancelWorkflow: + def __init__(self) -> None: + self._cancel_activity = False + + @workflow.run + async def run(self, cancel_from_workflow: bool) -> str: + handle = workflow.start_local_activity( + retry_later_activity, start_to_close_timeout=timedelta(seconds=10) + ) + if cancel_from_workflow: + await workflow.wait_condition(lambda: self._cancel_activity) + handle.cancel() + try: + await handle + except asyncio.CancelledError: + return "activity cancelled" + await handle + return "activity completed" + + @workflow.signal + def cancel_activity(self) -> None: + self._cancel_activity = True + + +@pytest.mark.parametrize("cancel_from_workflow", [False, True]) +async def test_workflow_local_activity_cancel_during_backoff( + client: Client, cancel_from_workflow: bool +): + async with new_worker( + client, LocalActivityBackoffCancelWorkflow, activities=[retry_later_activity] + ) as worker: + handle = await client.start_workflow( + LocalActivityBackoffCancelWorkflow.run, + cancel_from_workflow, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + async def backoff_timer_started() -> None: + async for e in handle.fetch_history_events(): + if e.event_type == EventType.EVENT_TYPE_TIMER_STARTED: + return + assert False, "Backoff timer not started" + + await assert_eventually(backoff_timer_started) + if cancel_from_workflow: + await handle.signal(LocalActivityBackoffCancelWorkflow.cancel_activity) + assert "activity cancelled" == await handle.result() + else: + await handle.cancel() + with pytest.raises(WorkflowFailureError) as err: + await handle.result() + assert isinstance(err.value.cause, CancelledError) + event_types = [e.event_type async for e in handle.fetch_history_events()] + assert EventType.EVENT_TYPE_TIMER_CANCELED in event_types + assert EventType.EVENT_TYPE_WORKFLOW_TASK_FAILED not in event_types + + deadlock_thread_event = threading.Event() @@ -3364,7 +3836,7 @@ async def last_history_task_failure() -> str: await assert_eq_eventually( "[TMPRL1101] Potential deadlock detected: workflow didn't yield within 1 second(s).", last_history_task_failure, - timeout=timedelta(seconds=5), + timeout=timedelta(seconds=10), interval=timedelta(seconds=1), ) @@ -4087,6 +4559,12 @@ async def test_workflow_activity_method(client: Client): assert result == MyDataClass(field1="in worker, workflow param, in workflow") +async def test_workflow_activity_method_unbound_register(client: Client): + # Registering the method from the class instead of from an instance + with pytest.warns(UserWarning, match="is not bound to an instance"): + new_worker(client, ActivityMethodWorkflow, activities=[MethodActivity.add]) + + @workflow.defn class WaitConditionTimeoutWorkflow: def __init__(self) -> None: @@ -4356,10 +4834,9 @@ async def test_workflow_query_does_not_run_condition( client: Client, single_batch: bool ): worker = new_worker(client, QueryAffectConditionWorkflow) - if single_batch: - worker._set_default_workflow_logic_flag( - _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True - ) + worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=single_batch + ) async with worker: handle = await client.start_workflow( QueryAffectConditionWorkflow.run, @@ -4389,12 +4866,8 @@ def cancel_timer(self) -> None: self.timer_task.cancel() -async def test_workflow_cancel_signal_and_timer_fired_in_same_task( - env: WorkflowEnvironment, -): - # This test only works when we support time skipping - if not env.supports_time_skipping: - pytest.skip("Need to skip time to validate this test") +async def test_workflow_cancel_signal_and_timer_fired_in_same_task_ts_v1(): + skip_if_time_skipping_v1_unsupported() # TODO(cretz): There is a bug in the Java test server, probably # https://github.com/temporalio/sdk-java/issues/1138 where the first @@ -4437,6 +4910,45 @@ async def test_workflow_cancel_signal_and_timer_fired_in_same_task( await result_task +async def test_workflow_cancel_signal_and_timer_fired_in_same_task_ts_v2( + env: WorkflowEnvironment, +): + # V2 port of the test above. Uses the fixture env's V2 TS instead of + # spawning its own V1 TS server. Instead of worker-off buffering (not + # possible with V2 FF, which needs a worker to make progress), buffers + # the cancel signal server-side first, then fast-forwards past the timer + # deadline. The resulting workflow task contains both the signal-received + # event and the timer-fired event, delivered in the same task. + if not env.supports_time_skipping_v2: + pytest.skip("Requires V2 time skipping") + + async with new_worker( + env.client, + CancelSignalAndTimerFiredInSameTaskWorkflow, + max_cached_workflows=0, + ) as worker: + handle = await env.client.start_workflow( + CancelSignalAndTimerFiredInSameTaskWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + # Give the workflow a moment to process its initial task and start + # awaiting the timer. + await asyncio.sleep(0.5) + # Buffer the cancel signal server-side. It will be delivered on the + # next workflow task, which the fast-forward below triggers. + await handle.signal(CancelSignalAndTimerFiredInSameTaskWorkflow.cancel_timer) + # Fast-forward past the timer deadline. The timer-fired event lands + # in the same workflow task as the pre-buffered signal; the signal + # handler cancels the timer_task first, so the timer-fired event is + # a no-op and the workflow exits via `except asyncio.CancelledError`. + # If the ordering had been reversed (timer-fire delivered in its own + # task before the signal), the workflow would reach `assert False` + # and `handle.result()` would raise. + await env.fast_forward(handle, timedelta(hours=2)) + await handle.result() + + @workflow.defn class CancelWorkflowSleepTaskWorkflow: """Like CancelSignalAndTimerFiredInSameTaskWorkflow but uses workflow.sleep.""" @@ -4977,28 +5489,27 @@ async def assert_bad_query(bad_thing: str) -> None: await assert_bad_query("signal_external_handle") -# typing.Self only in 3.11+ -if sys.version_info >= (3, 11): +@dataclass +class AnnotatedWithSelfParam: + some_str: str - @dataclass - class AnnotatedWithSelfParam: - some_str: str - @workflow.defn - class WorkflowAnnotatedWithSelf: - @workflow.run - async def run(self: typing.Self, some_arg: AnnotatedWithSelfParam) -> str: - assert isinstance(some_arg, AnnotatedWithSelfParam) - return some_arg.some_str +@workflow.defn +class WorkflowAnnotatedWithSelf: + @workflow.run + async def run(self: typing.Self, some_arg: AnnotatedWithSelfParam) -> str: + assert isinstance(some_arg, AnnotatedWithSelfParam) + return some_arg.some_str - async def test_workflow_annotated_with_self(client: Client): - async with new_worker(client, WorkflowAnnotatedWithSelf) as worker: - assert "foo" == await client.execute_workflow( - WorkflowAnnotatedWithSelf.run, - AnnotatedWithSelfParam(some_str="foo"), - id=f"wf-{uuid.uuid4()}", - task_queue=worker.task_queue, - ) + +async def test_workflow_annotated_with_self(client: Client): + async with new_worker(client, WorkflowAnnotatedWithSelf) as worker: + assert "foo" == await client.execute_workflow( + WorkflowAnnotatedWithSelf.run, + AnnotatedWithSelfParam(some_str="foo"), + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) @activity.defn @@ -5124,10 +5635,19 @@ async def test_workflow_custom_metrics(client: Client, env: WorkflowEnvironment) }, 34, ) - # Also check Temporal metric got its prefix - prom_matcher.assert_metric_exists( - "foo_workflow_completed", {"workflow_type": "CustomMetricsWorkflow"}, 1 - ) + + # The Core completion metric can be recorded just after the workflow result + # reaches the client, so allow the Prometheus endpoint to catch up. + async def assert_workflow_completed_metric() -> None: + with urlopen(url=f"http://{prom_addr}/metrics") as f: + prom_lines = f.read().decode("utf-8").splitlines() + PromMetricMatcher(prom_lines).assert_metric_exists( + "foo_workflow_completed", + {"workflow_type": "CustomMetricsWorkflow"}, + 1, + ) + + await assert_eventually(assert_workflow_completed_metric) async def test_workflow_buffered_metrics(client: Client, env: WorkflowEnvironment): @@ -5252,12 +5772,67 @@ async def test_workflow_buffered_metrics(client: Client, env: WorkflowEnvironmen ) +@pytest.mark.requires_local_server +async def test_workflow_buffered_metrics_worker_heartbeat(env: WorkflowEnvironment): + if env.supports_time_skipping: + pytest.skip("Time-skipping server does not implement ListWorkers") + + runtime = Runtime( + telemetry=TelemetryConfig(metrics=MetricBuffer(10000)), + worker_heartbeat_interval=timedelta(seconds=1), + ) + client = await env.connect_client(runtime=runtime) + async with new_worker( + client, + CustomMetricsWorkflow, + activities=[custom_metrics_activity], + plugins=[SimplePlugin("heartbeat-plugin", version="1.2.3")], + ) as worker: + await client.execute_workflow( + CustomMetricsWorkflow.run, + id=f"wf-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + + async def assert_worker_heartbeat() -> None: + response = await client.workflow_service.list_workers( + temporalio.api.workflowservice.v1.ListWorkersRequest( + namespace=client.namespace, + query=f'TaskQueue = "{worker.task_queue}"', + page_size=100, + ) + ) + heartbeat = next( + ( + info.worker_heartbeat + for info in response.workers_info + if info.worker_heartbeat.task_queue == worker.task_queue + ), + None, + ) + assert heartbeat is not None + assert heartbeat.workflow_task_slots_info.total_processed_tasks > 0 + assert heartbeat.activity_task_slots_info.total_processed_tasks > 0 + assert heartbeat.workflow_task_slots_info.current_available_slots > 0 + assert heartbeat.activity_task_slots_info.current_available_slots > 0 + assert heartbeat.local_activity_slots_info.current_available_slots > 0 + assert heartbeat.workflow_poller_info.current_pollers > 0 + assert heartbeat.activity_poller_info.current_pollers > 0 + assert [(p.name, p.version) for p in heartbeat.plugins] == [ + ("heartbeat-plugin", "1.2.3") + ] + + # Do not drain the buffer: heartbeats must not depend on initializing Python attributes. + await assert_eventually(assert_worker_heartbeat) + + async def test_workflow_metrics_other_types(env: WorkflowEnvironment): - async def do_stuff(buffer: MetricBuffer) -> None: + async def do_stuff(buffer: MetricBuffer) -> float: runtime = Runtime(telemetry=TelemetryConfig(metrics=buffer)) new_client = await env.connect_client( runtime=runtime, ) + start = time.monotonic() async with new_worker(new_client, HelloWorkflow) as worker: await new_client.execute_workflow( HelloWorkflow.run, @@ -5265,21 +5840,23 @@ async def do_stuff(buffer: MetricBuffer) -> None: id=f"wf-{uuid.uuid4()}", task_queue=worker.task_queue, ) + worker_seconds = time.monotonic() - start # Also, add some manual types beyond the defaults tested in other tests runtime.metric_meter.create_histogram_float("my-histogram-float").record(1.23) runtime.metric_meter.create_histogram_timedelta( "my-histogram-timedelta" ).record(timedelta(days=2, seconds=3, milliseconds=4)) runtime.metric_meter.create_gauge_float("my-gauge-float").set(4.56) + return worker_seconds # Create a buffer, do stuff, check the metrics buffer = MetricBuffer(10000) - await do_stuff(buffer) + worker_seconds = await do_stuff(buffer) updates = buffer.retrieve_updates() assert any( u.metric.name == "temporal_workflow_task_execution_latency" - # Took more than 3ms - and u.value > 3 + # Milliseconds, bounded by how long the worker ran + and 0 < u.value <= worker_seconds * 1000 and isinstance(u.value, int) and u.metric.unit == "ms" for u in updates @@ -5306,12 +5883,12 @@ async def do_stuff(buffer: MetricBuffer) -> None: # Do it again with seconds buffer = MetricBuffer(10000, duration_format=MetricBufferDurationFormat.SECONDS) - await do_stuff(buffer) + worker_seconds = await do_stuff(buffer) updates = buffer.retrieve_updates() assert any( u.metric.name == "temporal_workflow_task_execution_latency" - # Took less than 3s - and u.value < 3 + # Seconds, bounded by how long the worker ran + and 0 < u.value <= worker_seconds and isinstance(u.value, float) and u.metric.unit == "s" for u in updates @@ -5534,6 +6111,57 @@ async def test_workflow_update_handlers_unhappy(client: Client): assert "Rejected" == err.value.cause.message +@workflow.defn +class ConditionEvaluationWorkflow: + def __init__(self) -> None: + self._condition_evaluations = 0 + self._done = False + + @workflow.run + async def run(self) -> None: + def condition() -> bool: + self._condition_evaluations += 1 + return self._done + + await workflow.wait_condition(condition) + + @workflow.query + def condition_evaluations(self) -> int: + return self._condition_evaluations + + @workflow.update + def finish(self, accept: bool) -> None: + self._done = accept + + @finish.validator + def finish_validator(self, accept: bool) -> None: + if not accept: + raise ApplicationError("Rejected") + + +async def test_workflow_update_rejected_does_not_evaluate_conditions(client: Client): + async with new_worker(client, ConditionEvaluationWorkflow) as worker: + handle = await client.start_workflow( + ConditionEvaluationWorkflow.run, + id=f"update-rejected-conditions-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + evaluations = await handle.query( + ConditionEvaluationWorkflow.condition_evaluations + ) + + # Neither the rejected update nor the queries can change state, so none of + # their activations may evaluate the condition + with pytest.raises(WorkflowUpdateFailedError): + await handle.execute_update(ConditionEvaluationWorkflow.finish, False) + assert evaluations == await handle.query( + ConditionEvaluationWorkflow.condition_evaluations + ) + + await handle.execute_update(ConditionEvaluationWorkflow.finish, True) + await handle.result() + + async def test_workflow_update_task_fails(client: Client): # Need to not sandbox so behavior can change based on globals async with new_worker( @@ -5560,6 +6188,57 @@ async def test_workflow_update_task_fails(client: Client): assert bad_validator_fail_ct == 2 +@workflow.defn +class AsyncUpdateValidatorDynamicWorkflow: + @workflow.run + async def run(self) -> list[str]: + def handler(_arg: int) -> int: + return 1 + + async def async_validator(_arg: int) -> None: + pass + + def sync_validator(_arg: int) -> None: + pass + + def dynamic_handler(_name: str, _args: Sequence[RawValue]) -> int: + return 3 + + # A rejected registration must not replace the existing handler + workflow.set_update_handler("named", handler, validator=sync_validator) + results = [] + for set_handler in ( + lambda: workflow.set_update_handler( + "named", lambda _arg: 2, validator=async_validator + ), + lambda: workflow.set_dynamic_update_handler( + dynamic_handler, validator=async_validator + ), + ): + try: + set_handler() + except ValueError as err: + results.append(str(err)) + results.append(str(workflow.get_update_handler("named") is handler)) + results.append(str(workflow.get_dynamic_update_handler() is None)) + return results + + +async def test_workflow_update_async_validator_dynamic_rejected(client: Client): + async with new_worker(client, AsyncUpdateValidatorDynamicWorkflow) as worker: + result = await client.execute_workflow( + AsyncUpdateValidatorDynamicWorkflow.run, + id=f"async-update-validator-dynamic-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + assert result == [ + "Update validator must not be an async function", + "Update validator must not be an async function", + "True", + "True", + ] + + async def test_workflow_update_continue_as_new_fails_task(client: Client): # Continue-as-new is a control-flow BaseException. From an update handler # it must fail the workflow task, then retry the update rather than letting @@ -5602,7 +6281,7 @@ async def update(self) -> None: async def test_workflow_update_respects_first_execution_run_id( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1903" ) @@ -5855,8 +6534,6 @@ async def patched_call( class TimeoutSupportWorkflow: @workflow.run async def run(self, approach: str) -> None: - if sys.version_info < (3, 11): - raise RuntimeError("Timeout only in >= 3.11") if approach == "timeout": async with asyncio.timeout(0.2): await workflow.execute_activity( @@ -5900,8 +6577,6 @@ async def run(self, approach: str) -> None: "approach", ["timeout", "timeout_at", "wait_for", "call_later", "call_at"] ) async def test_workflow_timeout_support(client: Client, approach: str): - if sys.version_info < (3, 11): - pytest.skip("Timeout only in >= 3.11") async with new_worker( client, TimeoutSupportWorkflow, activities=[wait_cancel] ) as worker: @@ -5959,7 +6634,7 @@ async def finish(self): async def test_workflow_current_build_id_appropriately_set( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server does not support worker versioning") task_queue = str(uuid.uuid4()) @@ -6311,7 +6986,7 @@ async def run(self) -> None: @pytest.mark.requires_local_server async def test_workflow_replace_worker_client(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Only testing against two real servers") # We are going to start a second ephemeral server and then replace the # client. So we will start a no-cache ticking workflow with the current @@ -6380,6 +7055,33 @@ async def test_workflow_replace_worker_client_diff_runtimes_fail( worker.client = other_client +async def test_workflow_replace_worker_client_implicit_default_runtime( + env: WorkflowEnvironment, +): + # Neither client sets a runtime, so both are on the default one + worker_client = await env.connect_client(runtime=None) + new_client = await env.connect_client(runtime=None) + async with new_worker(worker_client, HelloWorkflow) as worker: + worker.client = new_client + assert worker.client is new_client + + +async def test_workflow_replace_worker_client_implicit_default_runtime_mismatch_fail( + env: WorkflowEnvironment, +): + # No runtime means the default one, which isn't the worker's + worker_client = await env.connect_client( + runtime=Runtime(telemetry=TelemetryConfig()) + ) + default_runtime_client = await env.connect_client(runtime=None) + async with new_worker(worker_client, HelloWorkflow) as worker: + with pytest.raises( + ValueError, + match="New client is not on the same runtime as the existing client", + ): + worker.client = default_runtime_client + + @activity.defn(dynamic=True) async def return_name_activity(_args: Sequence[RawValue]) -> str: return activity.info().activity_type @@ -6863,7 +7565,7 @@ async def test_warning_is_issued_on_exit_with_unfinished_handler( async def _run_workflow_and_get_warning(self) -> bool: workflow_id = f"wf-{uuid.uuid4()}" update_id = "update-id" - task_queue = "tq" + task_queue = str(uuid.uuid4()) # We require a startWorkflow, an update, and maybe a cancellation request, to be delivered # in the same WFT. To do this we start the worker after they've all been accepted by the @@ -6879,9 +7581,6 @@ async def _run_workflow_and_get_warning(self) -> bool: id=workflow_id, task_queue=task_queue, ) - if self.workflow_termination_type == "-cancellation-": - await handle.cancel() - if self.handler_type == "-update-": update_method = ( "__does_not_exist__" @@ -6910,6 +7609,9 @@ async def _run_workflow_and_get_warning(self) -> bool: ) await handle.signal(signal_method) # type: ignore + if self.workflow_termination_type == "-cancellation-": + await handle.cancel() + async with new_worker( self.client, UnfinishedHandlersOnWorkflowTerminationWorkflow, @@ -6935,9 +7637,9 @@ async def _run_workflow_and_get_warning(self) -> bool: else: assert isinstance(update_err, RPCError) assert update_err.status == RPCStatusCode.NOT_FOUND - assert ( - str(update_err) - == "workflow execution already completed" + assert str(update_err) in ( + "workflow execution already completed", + f"update {update_id} not found", ) with pytest.raises(WorkflowFailureError) as err: @@ -6978,6 +7680,19 @@ async def run(self) -> None: await workflow.wait_condition(lambda: False) +@workflow.defn +class IDConflictContinueAsNewWorkflow: + @workflow.run + async def run(self, continue_as_new: bool) -> None: + if continue_as_new: + workflow.continue_as_new(False) + await workflow.wait_condition(lambda: False) + + @workflow.signal + def attach(self) -> None: + pass + + async def test_workflow_id_conflict(client: Client): async with new_worker(client, IDConflictWorkflow) as worker: # Start a workflow @@ -7036,6 +7751,50 @@ async def test_workflow_id_conflict(client: Client): assert (await new_handle.describe()).status == WorkflowExecutionStatus.RUNNING +@pytest.mark.parametrize("signal_with_start", [False, True]) +async def test_workflow_id_conflict_use_existing_first_execution_run_id( + client: Client, env: WorkflowEnvironment, signal_with_start: bool +): + if env.supports_time_skipping_v1: + pytest.skip( + "Java test server does not return first execution run ID from start" + ) + async with new_worker(client, IDConflictContinueAsNewWorkflow) as worker: + workflow_id = f"wf-{uuid.uuid4()}" + original_handle = await client.start_workflow( + IDConflictContinueAsNewWorkflow.run, + True, + id=workflow_id, + task_queue=worker.task_queue, + ) + first_execution_run_id = original_handle.first_execution_run_id + assert first_execution_run_id is not None + + async def current_run_id() -> str: + return (await client.get_workflow_handle(workflow_id).describe()).run_id + + async def assert_continued_as_new() -> None: + assert await current_run_id() != first_execution_run_id + + await assert_eventually(assert_continued_as_new) + current_execution_run_id = await current_run_id() + + attached_handle = await client.start_workflow( + IDConflictContinueAsNewWorkflow.run, + False, + id=workflow_id, + task_queue=worker.task_queue, + id_conflict_policy=WorkflowIDConflictPolicy.USE_EXISTING, + start_signal="attach" if signal_with_start else None, + ) + assert attached_handle.result_run_id == current_execution_run_id + assert attached_handle.first_execution_run_id == first_execution_run_id + + await attached_handle.cancel() + with pytest.raises(WorkflowFailureError): + await original_handle.result() + + @workflow.defn class UpdateCompletionIsHonoredWhenAfterWorkflowReturn1Workflow: def __init__(self) -> None: @@ -7458,7 +8217,7 @@ def some_update(self): async def test_user_metadata_is_set(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2219" ) @@ -7555,7 +8314,7 @@ async def test_workflow_sleep(client: Client, env: WorkflowEnvironment): task_queue=worker.task_queue, ) assert workflow_elapsed >= 1 - if not env.supports_time_skipping: + if not env.supports_time_skipping_v1: assert (datetime.now() - start_time) >= timedelta(seconds=1) @@ -7599,7 +8358,7 @@ async def make_timers(self, start: int, end: int): async def test_concurrent_sleeps_use_proper_options( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/2219" ) @@ -7636,6 +8395,54 @@ async def test_concurrent_sleeps_use_proper_options( await handle.query("__temporal_workflow_metadata") +@workflow.defn +class WaitConditionThenSleepWorkflow: + @workflow.run + async def run(self) -> None: + with workflow.create_event_group("wait").scope(): + try: + await workflow.wait_condition( + lambda: False, timeout=0.01, timeout_summary="wait_condition" + ) + except asyncio.TimeoutError: + pass + await asyncio.sleep(0.01) + with workflow.create_event_group("later").scope(): + await asyncio.sleep(0.01) + + +async def test_wait_condition_timer_options_not_used_by_later_timers( + client: Client, env: WorkflowEnvironment +): + if env.supports_time_skipping_v1: + pytest.skip( + "Java test server: https://github.com/temporalio/sdk-java/issues/2219" + ) + async with new_worker(client, WaitConditionThenSleepWorkflow) as worker: + handle = await client.start_workflow( + WaitConditionThenSleepWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() + timers = [ + e + async for e in handle.fetch_history_events() + if e.event_type == EventType.EVENT_TYPE_TIMER_STARTED + ] + assert [ + PayloadConverter.default.from_payload(t.user_metadata.summary) + if t.user_metadata.HasField("summary") + else "" + for t in timers + ] == ["wait_condition", "", ""] + assert [[m.label.id for m in t.event_group_markers] for t in timers] == [ + ["wait"], + [], + ["later"], + ] + + class BadFailureConverterError(Exception): pass @@ -7781,7 +8588,7 @@ async def test_async_loop_ordering(client: Client, env: WorkflowEnvironment): """This test mostly exists to generate PROCESS_WORKFLOW_ACTIVATION_JOBS_AS_SINGLE_BATCH histories for test_replayer_async_ordering. See that test for more.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("This test doesn't work right with time skipping for some reason") task_queue = f"tq-{uuid.uuid4()}" handle = await client.start_workflow( @@ -7844,7 +8651,7 @@ async def test_alternate_async_loop_ordering(client: Client, env: WorkflowEnviro """This test mostly exists to generate histories for test_replayer_alternate_async_ordering. See that test for more.""" - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("This test doesn't work right with time skipping for some reason") task_queue = f"tq-{uuid.uuid4()}" activity_tq = f"tq-{uuid.uuid4()}" @@ -7855,22 +8662,25 @@ async def test_alternate_async_loop_ordering(client: Client, env: WorkflowEnviro task_queue=task_queue, ) + async def wait_for_history_event(event_type: EventType.ValueType) -> None: + async for event in handle.fetch_history_events(wait_new_event=True): + if event.event_type is event_type: + return + async with new_worker( client, ActivityAndSignalsWhileWorkflowDown, activities=[say_hello], task_queue=task_queue, ): - # This sleep exists to make sure the first WFT is processed - await asyncio.sleep(0.2) + await wait_for_history_event(EventType.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED) async with new_worker( client, activities=[say_hello], task_queue=activity_tq, ): - # Make sure the activity starts being processed before sending signals - await asyncio.sleep(1) + await wait_for_history_event(EventType.EVENT_TYPE_ACTIVITY_TASK_COMPLETED) await handle.signal(ActivityAndSignalsWhileWorkflowDown.dosig, "1") await handle.signal(ActivityAndSignalsWhileWorkflowDown.dosig, "2") @@ -8033,7 +8843,7 @@ async def _do_update_handler_lock_or_semaphore_test( n_updates: int, expectation: LockOrSemaphoreWorkflowConcurrencySummary, ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server: https://github.com/temporalio/sdk-java/issues/1903" ) @@ -8191,18 +9001,15 @@ async def run(self, scenario: str) -> None: elif scenario == "asyncio.wait_for": await asyncio.wait_for(asyncio.sleep(1000), timeout=0.01) elif scenario == "asyncio.timeout": - if sys.version_info >= (3, 11): - async with asyncio.timeout(0.1): - await asyncio.sleep(1000) + async with asyncio.timeout(0.1): + await asyncio.sleep(1000) else: raise RuntimeError("Unrecognized scenario") async def test_workflow_timeout_error(client: Client): async with new_worker(client, TimeoutErrorWorkflow) as worker: - scenarios = ["workflow.wait_condition", "asyncio.wait_for"] - if sys.version_info >= (3, 11): - scenarios.append("asyncio.timeout") + scenarios = ["workflow.wait_condition", "asyncio.wait_for", "asyncio.timeout"] for scenario in scenarios: with pytest.raises(WorkflowFailureError) as err: @@ -8532,7 +9339,7 @@ async def run(self, expected_priority: int | None, stop_after_check: bool) -> st async def test_workflow_priorities(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server needs release with: https://github.com/temporalio/sdk-java/pull/2453" ) @@ -8614,7 +9421,7 @@ async def run(self, child_wf_id: str) -> temporalio.workflow.RootInfo | None: async def test_expose_root_execution(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip( "Java test server needs release with: https://github.com/temporalio/sdk-java/pull/2441" ) @@ -8868,7 +9675,7 @@ async def run( async def test_activity_pause_cancellation_details( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Time-skipping server does not support pause API yet") with concurrent.futures.ThreadPoolExecutor() as executor: async with Worker( @@ -8947,7 +9754,7 @@ async def run( async def test_activity_pause_unpause(client: Client, env: WorkflowEnvironment): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Time-skipping server does not support pause API yet") async def check_heartbeat_details_exist( @@ -8983,7 +9790,7 @@ async def check_heartbeat_details_exist( # Wait for sync activity activity_info_1 = await assert_pending_activity_exists_eventually( - handle, test_activity_id + handle, test_activity_id, timeout=timedelta(seconds=10) ) # Assert not paused assert not activity_info_1.paused @@ -9045,7 +9852,7 @@ async def run(self, activity_id: str) -> None: async def test_external_activity_cancellation_details( client: Client, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Time-skipping server does not support pause API yet") async with Worker( client, @@ -9325,7 +10132,7 @@ async def create_schedule(self, input: CreateScheduleInput) -> ScheduleHandle: async def test_workflow_headers_with_codec( client: Client, env: WorkflowEnvironment, header_codec_behavior: HeaderCodecBehavior ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Time skipping server doesn't persist headers.") header_payload = Payload(data=b"bar") @@ -9589,7 +10396,6 @@ async def test_activity_failure_with_encoded_payload_is_decoded_in_workflow( WorkflowWithFailingActivityAndCodec.run, id=f"workflow-{uuid.uuid4()}", task_queue=worker.task_queue, - run_timeout=timedelta(seconds=5), ) assert result == "Handled encrypted failure successfully" @@ -9639,7 +10445,6 @@ class RandomSeedTestWorkflow: def __init__(self) -> None: self.seed_changes: list[int] = [] self.continue_signal_received = False - self._ready = False @workflow.run async def run(self) -> dict[str, Any]: @@ -9662,8 +10467,6 @@ async def run(self) -> dict[str, Any]: schedule_to_close_timeout=timedelta(seconds=5), ) - self._ready = True - # Wait for signal to continue - this allows for workflow reset await workflow.wait_condition(lambda: self.continue_signal_received) @@ -9687,15 +10490,11 @@ def _on_seed_change(self, new_seed: int) -> None: def continue_workflow(self) -> None: self.continue_signal_received = True - @workflow.query - def ready(self) -> bool: - return self._ready - async def test_random_seed_functionality( client: Client, worker: Worker, env: WorkflowEnvironment ): - if env.supports_time_skipping: + if env.supports_time_skipping_v1: pytest.skip("Java test server doesn't support reset") async with new_worker( client, RandomSeedTestWorkflow, activities=[say_hello], max_cached_workflows=0 @@ -9707,12 +10506,23 @@ async def test_random_seed_functionality( task_queue=worker.task_queue, ) - # Let workflow generate some random values - # Wait for workflow to be ready - async def ready() -> bool: - return await handle.query(RandomSeedTestWorkflow.ready) - - await assert_eq_eventually(True, ready) + # Reset point: the workflow task started after the activity completed + activity_completed = False + reset_event_id = 0 + async for event in handle.fetch_history_events(wait_new_event=True): + if event.event_type is EventType.EVENT_TYPE_ACTIVITY_TASK_COMPLETED: + activity_completed = True + elif ( + activity_completed + and event.event_type is EventType.EVENT_TYPE_WORKFLOW_TASK_STARTED + ): + reset_event_id = event.event_id + elif ( + reset_event_id + and event.event_type is EventType.EVENT_TYPE_WORKFLOW_TASK_COMPLETED + ): + break + assert reset_event_id # Reset workflow using raw gRPC call to trigger seed change from temporalio.api.common.v1.message_pb2 import WorkflowExecution @@ -9729,7 +10539,7 @@ async def ready() -> bool: reason="Test seed change", reset_reapply_type=ResetReapplyType.RESET_REAPPLY_TYPE_UNSPECIFIED, request_id=str(uuid.uuid4()), - workflow_task_finish_event_id=9, # Reset to after activity completion + workflow_task_finish_event_id=reset_event_id, ) ) diff --git a/tests/worker/workflow_sandbox/test_importer.py b/tests/worker/workflow_sandbox/test_importer.py index 0ed478c03..272fd97a4 100644 --- a/tests/worker/workflow_sandbox/test_importer.py +++ b/tests/worker/workflow_sandbox/test_importer.py @@ -1,22 +1,169 @@ import dataclasses +import importlib +import importlib.machinery +import select +import subprocess import sys +import textwrap +import time +import types +from typing import Any import pytest from temporalio import workflow from temporalio.worker.workflow_sandbox._importer import ( Importer, + _loaded_module_for_import, _thread_local_sys_modules, _ThreadLocalSysModules, ) from temporalio.worker.workflow_sandbox._restrictions import ( RestrictedWorkflowAccessError, RestrictionContext, + SandboxRestrictions, ) from .testmodules import restrictions +@pytest.mark.parametrize("fromlist", [None, (), ("urlparse",)]) +def test_workflow_sandbox_importer_optional_fromlist(fromlist: tuple[str, ...] | None): + importer = Importer(SandboxRestrictions.default, RestrictionContext()) + with importer.applied(): + module = importer.import_func("urllib.parse", fromlist=fromlist) + + assert module.__name__ == ("urllib.parse" if fromlist else "urllib") + + +def test_workflow_sandbox_importer_path_in_place_division(): + context = RestrictionContext() + context.is_runtime = True + with Importer(SandboxRestrictions.default, context).applied(): + from pathlib import Path + + path = original = Path("root") + path /= "child" + + assert str(path) == str(Path("root") / "child") + assert str(original) == "root" + with pytest.raises(RestrictedWorkflowAccessError): + path.exists() + + +@pytest.mark.skipif(not hasattr(select, "kevent"), reason="Requires kqueue support") +def test_workflow_sandbox_importer_subprocess_kqueue_probe(): + context = RestrictionContext() + restrictions = dataclasses.replace( + SandboxRestrictions.default, + passthrough_modules=SandboxRestrictions.passthrough_modules_with_temporal, + ) + with Importer(restrictions, context).applied(): + import select as sandboxed_select + import subprocess as sandboxed_subprocess + + kevent = getattr(sandboxed_select, "kevent") + assert type(kevent(1)) is kevent + context.is_runtime = True + with pytest.raises(RestrictedWorkflowAccessError): + getattr(sandboxed_select, "kqueue")() + with pytest.raises(RestrictedWorkflowAccessError): + sandboxed_subprocess.run(["unused"]) + + +@pytest.mark.parametrize( + ("function", "args"), + [ + ("time", ""), + ("monotonic", ""), + ("clock_gettime", "time.CLOCK_REALTIME"), + ("clock_gettime_ns", "time.CLOCK_REALTIME"), + ], + ids=["time", "monotonic", "clock_gettime", "clock_gettime_ns"], +) +def test_workflow_sandbox_importer_clock_restricted_at_runtime_only( + function: str, args: str +): + if not hasattr(time, function): + pytest.skip(f"time.{function} is not available on this platform") + call = f"time.{function}({args})" + context = RestrictionContext() + with Importer(SandboxRestrictions.default, context).applied(): + import time as sandboxed_time + + # Allowed while the workflow module is being imported + eval(call, {"time": sandboxed_time}) + context.is_runtime = True + with pytest.raises(RestrictedWorkflowAccessError) as err: + eval(call, {"time": sandboxed_time}) + assert err.value.qualified_name == f"time.{function}.__call__" + + +@pytest.mark.parametrize("first", ["host", "sandbox"]) +def test_workflow_sandbox_importer_pydantic_constraints(first: str): + pytest.importorskip("pydantic", minversion="2") + # Pydantic caches constraint classes process-wide, so each creation order + # needs a fresh process to catch constraints being ignored on either side. + result = subprocess.run( + [ + sys.executable, + "-c", + textwrap.dedent( + """ + import sys + from pydantic import BaseModel, Field, ValidationError, conint + from temporalio.worker.workflow_sandbox._importer import Importer + from temporalio.worker.workflow_sandbox._restrictions import ( + RestrictionContext, SandboxRestrictions, + ) + + def on_host(): + class Host(BaseModel): + field: int = Field(ge=0) + constrained: conint(ge=0) + return Host + + def in_sandbox(): + with Importer( + SandboxRestrictions.default, RestrictionContext() + ).applied(): + from typing import Annotated + import annotated_types + + class Sandboxed(BaseModel): + value: Annotated[int, annotated_types.Ge(1)] + return Sandboxed + + if sys.argv[1] == "host": + host, sandboxed = on_host(), in_sandbox() + else: + sandboxed, host = in_sandbox(), on_host() + + assert sandboxed(value=1).value == 1 + assert host(field=0, constrained=0).field == 0 + for model, values, field in ( + (sandboxed, {"value": 0}, "value"), + (host, {"field": -1, "constrained": 0}, "field"), + (host, {"field": 0, "constrained": -1}, "constrained"), + ): + try: + model(**values) + except ValidationError as err: + assert err.errors()[0]["loc"] == (field,) + assert err.errors()[0]["type"] == "greater_than_equal" + else: + raise AssertionError(f"Constraint ignored for {field}") + """ + ), + first, + ], + capture_output=True, + text=True, + timeout=30, + ) + assert result.returncode == 0, result.stdout + result.stderr + + def test_workflow_sandbox_importer_invalid_module(): with pytest.raises(RestrictedWorkflowAccessError) as err: with Importer(restrictions, RestrictionContext()).applied(): @@ -27,6 +174,75 @@ def test_workflow_sandbox_importer_invalid_module(): ) +def test_workflow_sandbox_importer_repeat_import_skips_import_machinery( + monkeypatch: pytest.MonkeyPatch, +): + imported: list[str] = [] + orig_import = importlib.__import__ + + def recording_import( + name: str, + globals: Any = None, + locals: Any = None, + fromlist: Any = (), + level: int = 0, + ) -> Any: + imported.append(name) + return orig_import(name, globals, locals, fromlist, level) + + monkeypatch.setattr(importlib, "__import__", recording_import) + with Importer(restrictions, RestrictionContext()).applied(): + import tests.worker.workflow_sandbox.testmodules.passthrough_module as passthrough + import tests.worker.workflow_sandbox.testmodules.stateful_module as stateful + + assert imported + imported.clear() + + # Loaded modules are served from sys.modules without re-entering importlib + import typing + + import tests.worker.workflow_sandbox.testmodules as testmodules + import tests.worker.workflow_sandbox.testmodules.passthrough_module as passthrough_again + import tests.worker.workflow_sandbox.testmodules.stateful_module as stateful_again + + assert passthrough_again is passthrough + assert stateful_again is stateful + assert getattr(testmodules, "stateful_module") is stateful + assert typing is sys.modules["typing"] + assert imported == [] + + # Imports with a fromlist keep using importlib's full semantics. + from tests.worker.workflow_sandbox.testmodules import stateful_module + + assert stateful_module is stateful + assert imported == ["tests.worker.workflow_sandbox.testmodules"] + + +def test_loaded_module_fast_path_requires_completed_modules( + monkeypatch: pytest.MonkeyPatch, +): + top_name = "test_loaded_module_fast_path" + child_name = f"{top_name}.child" + top = types.ModuleType(top_name) + child = types.ModuleType(child_name) + top_spec = importlib.machinery.ModuleSpec(top_name, loader=None) + child_spec = importlib.machinery.ModuleSpec(child_name, loader=None) + top.__spec__ = top_spec + child.__spec__ = child_spec + monkeypatch.setitem(sys.modules, top_name, top) + monkeypatch.setitem(sys.modules, child_name, child) + + assert _loaded_module_for_import(child_name, ("child",), 0) is None + assert _loaded_module_for_import(child_name, (), 1) is None + setattr(child_spec, "_initializing", True) + assert _loaded_module_for_import(child_name, (), 0) is None + setattr(child_spec, "_initializing", False) + setattr(top_spec, "_initializing", True) + assert _loaded_module_for_import(child_name, (), 0) is None + setattr(top_spec, "_initializing", False) + assert _loaded_module_for_import(child_name, (), 0) is top + + def test_workflow_sandbox_importer_passthrough_module(): # Import outside of importer import tests.worker.workflow_sandbox.testmodules.passthrough_module as outside1 @@ -65,6 +281,48 @@ def test_workflow_sandbox_importer_passthough_context_manager(): assert id(outside) == id(inside) +def test_workflow_sandbox_importer_passthrough_from_import(): + import tests.worker.workflow_sandbox.testmodules.stateful_module as outside + + # The package is already loaded in the sandbox, like the package of a + # workflow module, so it has no attribute for the submodule yet + with Importer(restrictions, RestrictionContext()).applied(): + import tests.worker.workflow_sandbox.testmodules as package + + assert not hasattr(package, "stateful_module") + with workflow.unsafe.imports_passed_through(): + from tests.worker.workflow_sandbox.testmodules import ( + stateful_module as inside, + ) + assert id(inside) == id(outside) + + +def test_workflow_sandbox_importer_passthrough_relative_from_import(): + import tests.worker.workflow_sandbox.test_restrictions as outside + + with Importer(restrictions, RestrictionContext()).applied(): + import tests.worker.workflow_sandbox as package + + assert not hasattr(package, "test_restrictions") + with workflow.unsafe.imports_passed_through(): + from . import test_restrictions as inside + assert id(inside) == id(outside) + + +def test_workflow_sandbox_importer_passthrough_star_import(): + import tests.worker.workflow_sandbox.testmodules.stateful_module as outside + + importer = Importer(restrictions, RestrictionContext()) + package_name = "tests.worker.workflow_sandbox.testmodules" + with importer.applied(): + importer.import_func(package_name) + setattr(sys.modules[package_name], "__all__", ["stateful_module"]) + with workflow.unsafe.imports_passed_through(): + importer.import_func(package_name, fromlist=("*",)) + inside = sys.modules[f"{package_name}.stateful_module"] + assert id(inside) == id(outside) + + def test_workflow_sandbox_importer_passthrough_all_modules(): import tests.worker.workflow_sandbox.testmodules.stateful_module as outside @@ -156,3 +414,69 @@ def test_thread_local_sys_module_attrs(): norm |= {"baz": 789} thread_local |= {"baz": 789} # type: ignore assert norm.copy() == thread_local.copy() + + +@pytest.mark.skipif( + sys.version_info >= (3, 12), + reason="importlib's module lock is re-entrant from 3.12 (python/cpython#91351)", +) +def test_workflow_sandbox_importer_loaded_module_import_inside_module_lock( + monkeypatch: pytest.MonkeyPatch, tmp_path: Any +): + # Regression for the 3.10/3.11 failure behind "Failed validating workflow": + # while the sandbox loads a workflow module, importlib._bootstrap._ModuleLock + # .acquire holds _blocking_on[tid] until its finally. A GC finalizer inside + # that window imports `warnings` through builtins.__import__ (the sandbox's); + # routing that already-loaded module through importlib re-enters the lock and + # the outer acquire fails with KeyError(). Reproduced here + # deterministically by rebuilding acquire from the interpreter's own + # _bootstrap.py with the nested import placed inside the window. + import ast + import builtins + import importlib + import importlib._bootstrap as bootstrap + import pathlib + import textwrap + + text = pathlib.Path(importlib.__file__).with_name("_bootstrap.py").read_text() + acquire_src = next( + ast.get_source_segment(text, item) + for node in ast.walk(ast.parse(text)) + if isinstance(node, ast.ClassDef) and node.name == "_ModuleLock" + for item in node.body + if isinstance(item, ast.FunctionDef) and item.name == "acquire" + ) + assert acquire_src is not None + marker = "_blocking_on[tid] = self\n" + assert marker in acquire_src + + nested_done = False + + def nested_import() -> None: + nonlocal nested_done + if not nested_done: + nested_done = True + builtins.__import__("warnings", {"__builtins__": builtins}, {}, [], 0) + + namespace = dict(vars(bootstrap)) + namespace["_test_nested_import"] = nested_import + exec( + textwrap.dedent(acquire_src).replace( + marker, marker + " _test_nested_import()\n", 1 + ), + namespace, + ) + # Not in typeshed, so reach it dynamically. + module_lock = getattr(bootstrap, "_ModuleLock") + monkeypatch.setattr(module_lock, "acquire", namespace["acquire"]) + + # A module the sandbox has to load itself (not passthrough), so the outer + # import really holds importlib's lock with the sandbox importer applied. + (tmp_path / "sandbox_lock_reentry_module.py").write_text("VALUE = 1\n") + monkeypatch.syspath_prepend(str(tmp_path)) + # Production restrictions: stdlib (including warnings) is passthrough. + with Importer(SandboxRestrictions.default, RestrictionContext()).applied(): + import sandbox_lock_reentry_module # type: ignore[import-not-found] + + assert sandbox_lock_reentry_module.VALUE == 1 + assert nested_done diff --git a/tests/worker/workflow_sandbox/test_restrictions.py b/tests/worker/workflow_sandbox/test_restrictions.py index ec001ba19..784e7e39f 100644 --- a/tests/worker/workflow_sandbox/test_restrictions.py +++ b/tests/worker/workflow_sandbox/test_restrictions.py @@ -1,8 +1,12 @@ from __future__ import annotations +import operator import pathlib +import sys +from collections.abc import Callable from dataclasses import dataclass -from typing import ClassVar +from datetime import timedelta +from typing import Any, ClassVar import pytest @@ -82,14 +86,47 @@ def test_restricted_proxy_in_place_operations_preserve_proxy(): RestrictionContext(), SandboxMatcher(), ) - values = restricted_list([1]) + values = original = restricted_list([1]) values += [2] assert type(values) is _RestrictedProxy + assert values is original assert RestrictionContext.unwrap_if_proxied(values) == [1, 2] +@pytest.mark.parametrize( + "value, other, operation", + [ + ((1,), (2,), operator.iadd), + ((1,), 2, operator.imul), + (frozenset({1}), {2}, operator.ior), + ], +) +def test_restricted_proxy_in_place_operations_replace_value( + value: Any, other: Any, operation: Callable[[Any, Any], Any] +): + proxy = _RestrictedProxy("value", value, RestrictionContext(), SandboxMatcher()) + + result = operation(proxy, other) + + assert RestrictionContext.unwrap_if_proxied(result) == operation(value, other) + assert type(result) is _RestrictedProxy + assert result is not proxy + assert RestrictionContext.unwrap_if_proxied(proxy) is value + + +def test_restricted_proxy_in_place_operation_returns_primitive(): + value = _RestrictedProxy( + "timedelta", timedelta(seconds=4), RestrictionContext(), SandboxMatcher() + ) + + value /= timedelta(seconds=2) + + assert value == 2.0 + assert type(value) is float + + def test_workflow_sandbox_restricted_proxy(): obj_class = _RestrictedProxy( "RestrictableObject", @@ -141,3 +178,15 @@ def test_workflow_sandbox_restricted_proxy(): # Unfortunately, we can't intercept the type() call assert type(obj.foo) is _RestrictedProxy + + +def test_os_path_is_allowed_where_traceback_formatting_needs_it(): + # Formatting a traceback calls os.path (via linecache) from inside the + # sandbox on Python 3.14+ and on 3.13.12+, where the linecache rewrite + # (https://github.com/python/cpython/issues/133253) was backported. See + # https://github.com/python/cpython/issues/140228. + context = RestrictionContext() + context.is_runtime = True + matcher = SandboxRestrictions.invalid_module_members_default + restricted = matcher.match_access(context, "os", "path", "isabs", include_use=True) + assert restricted == (sys.version_info < (3, 13, 12)) diff --git a/tests/worker/workflow_sandbox/test_runner.py b/tests/worker/workflow_sandbox/test_runner.py index 024ab7273..73fcf27a6 100644 --- a/tests/worker/workflow_sandbox/test_runner.py +++ b/tests/worker/workflow_sandbox/test_runner.py @@ -36,6 +36,9 @@ from temporalio.workflow import SandboxImportNotificationPolicy from tests.helpers import assert_eq_eventually from tests.worker.workflow_sandbox.testmodules import stateful_module +from tests.worker.workflow_sandbox.testmodules.from_import_workflow import ( + FromImportPassthroughWorkflow, +) from tests.worker.workflow_sandbox.testmodules.proto import SomeMessage global_state = ["global orig"] @@ -192,15 +195,22 @@ async def test_workflow_sandbox_restrictions(client: Client): "import uuid\nuuid.uuid4()", ] - # We can only validate this restriction prior to 3.14 because we had to exempt it due to + # We can only validate this restriction prior to 3.13.12 because we had to exempt it due to # https://github.com/python/cpython/issues/140228 - if sys.version_info < (3, 14): + if sys.version_info < (3, 13, 12): invalid_code_to_check.append("import os.path\nos.path.abspath('foo')") # type: ignore[reportUnreachable] # uuid7 was only added to the stdlib in 3.14 if sys.version_info >= (3, 14): invalid_code_to_check.append("import uuid\nuuid.uuid7()") # type: ignore[reportUnreachable] + # clock_gettime is not available on every platform (e.g. Windows) + if hasattr(time, "clock_gettime"): + invalid_code_to_check += [ + "import time\ntime.clock_gettime(time.CLOCK_REALTIME)", + "import time\ntime.clock_gettime_ns(time.CLOCK_REALTIME)", + ] + for code in invalid_code_to_check: with pytest.raises(WorkflowFailureError) as err: await client.execute_workflow( @@ -232,6 +242,11 @@ async def test_workflow_sandbox_restrictions(client: Client): # General library allowed calls "import datetime\ndatetime.date(2001, 1, 1)", "import uuid\nuuid.uuid5(uuid.NAMESPACE_DNS, 'example.com')", + "from pathlib import Path\n" + "path = original = Path('root')\n" + "path /= 'child'\n" + "assert str(path) == str(Path('root') / 'child')\n" + "assert str(original) == 'root'", # Other imports we want to allow "from concurrent.futures import ThreadPoolExecutor", ] @@ -472,6 +487,30 @@ async def test_workflow_sandbox_bad_asyncio(client: Client): assert "asyncio.wait()" in str(warnings[1].message) +@workflow.defn +class UnsupportedTaskGroupWorkflow: + @workflow.run + async def run(self) -> str: + async with asyncio.TaskGroup() as group: + task = group.create_task(asyncio.sleep(0, result="done")) + return task.result() + + +async def test_workflow_sandbox_task_group_warning(client: Client): + async with new_worker(client, UnsupportedTaskGroupWorkflow) as worker: + with pytest.warns( + UserWarning, + match=r"asyncio\.TaskGroup\(\) has non-deterministic task cancellation order", + ) as warnings: + result = await client.execute_workflow( + UnsupportedTaskGroupWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + assert result == "done" + assert len(warnings) == 1 + + def new_worker( client: Client, *workflows: type, @@ -558,6 +597,27 @@ async def test_workflow_sandbox_import_default_warnings(client: Client): ) +async def test_workflow_sandbox_import_workflow_without_warning(): + restrictions = SandboxRestrictions.default.with_import_notification_policy( + SandboxImportNotificationPolicy.WARN_ON_UNINTENTIONAL_PASSTHROUGH + ) + with warnings.catch_warnings(record=True) as recorder: + warnings.simplefilter("always") + SandboxedWorkflowRunner(restrictions).prepare_workflow( + workflow._Definition.must_from_class(GlobalStateWorkflow) + ) + + actual_warnings = {str(w.message) for w in recorder} + assert ( + f"Module {GlobalStateWorkflow.__module__} was not intentionally passed through to the sandbox." + not in actual_warnings + ) + assert ( + f"Module {stateful_module.__package__} was not intentionally passed through to the sandbox." + in actual_warnings + ) + + async def test_workflow_sandbox_import_all_warnings(client: Client): restrictions = dataclasses.replace( SandboxRestrictions.default, @@ -660,6 +720,18 @@ async def test_workflow_sandbox_import_suppress_warnings(client: Client): assert len(recorder) == 0, "Expected no warnings to be issued" +async def test_workflow_sandbox_passthrough_from_import_of_sibling_module( + client: Client, +): + async with new_worker(client, FromImportPassthroughWorkflow) as worker: + module_id = await client.execute_workflow( + FromImportPassthroughWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + assert module_id == id(stateful_module) + + def _assert_expected_warnings( recorder: pytest.WarningsRecorder, expected_warnings: set[str] ): diff --git a/tests/worker/workflow_sandbox/testmodules/from_import_workflow.py b/tests/worker/workflow_sandbox/testmodules/from_import_workflow.py new file mode 100644 index 000000000..a314c8794 --- /dev/null +++ b/tests/worker/workflow_sandbox/testmodules/from_import_workflow.py @@ -0,0 +1,11 @@ +from temporalio import workflow + +with workflow.unsafe.imports_passed_through(): + from tests.worker.workflow_sandbox.testmodules import stateful_module + + +@workflow.defn +class FromImportPassthroughWorkflow: + @workflow.run + async def run(self) -> int: + return id(stateful_module) diff --git a/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.py b/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.py index 19a1c69b2..9533d4654 100644 --- a/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.py +++ b/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.py @@ -5,9 +5,8 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) @@ -20,19 +19,8 @@ b'\n=worker/workflow_sandbox/testmodules/proto/proto_message.proto\x12)worker.workflow_sandbox.testmodules.proto\x1a\x1egoogle/protobuf/duration.proto"?\n\x0bSomeMessage\x12\x30\n\rsome_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Durationb\x06proto3' ) - -_SOMEMESSAGE = DESCRIPTOR.message_types_by_name["SomeMessage"] -SomeMessage = _reflection.GeneratedProtocolMessageType( - "SomeMessage", - (_message.Message,), - { - "DESCRIPTOR": _SOMEMESSAGE, - "__module__": "worker.workflow_sandbox.testmodules.proto.proto_message_pb2", - # @@protoc_insertion_point(class_scope:worker.workflow_sandbox.testmodules.proto.SomeMessage) - }, -) -_sym_db.RegisterMessage(SomeMessage) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, __name__, globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _SOMEMESSAGE._serialized_start = 140 diff --git a/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.pyi b/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.pyi index db5f796b3..3e0967e4a 100644 --- a/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.pyi +++ b/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.pyi @@ -4,19 +4,15 @@ isort:skip_file """ import builtins -import sys +import typing import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.message -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class SomeMessage(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -29,10 +25,10 @@ class SomeMessage(google.protobuf.message.Message): some_duration: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["some_duration", b"some_duration"] + self, field_name: typing.Literal["some_duration", b"some_duration"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["some_duration", b"some_duration"] + self, field_name: typing.Literal["some_duration", b"some_duration"] ) -> None: ... global___SomeMessage = SomeMessage diff --git a/uv.lock b/uv.lock index 6e6ccc4f4..a59811210 100644 --- a/uv.lock +++ b/uv.lock @@ -1,17 +1,28 @@ version = 1 revision = 3 -requires-python = ">=3.10" +requires-python = ">=3.11" resolution-markers = [ - "python_full_version >= '3.14'", + "python_full_version >= '3.15'", + "python_full_version == '3.14.*'", "python_full_version == '3.13.*'", - "python_full_version >= '3.11' and python_full_version < '3.13'", - "python_full_version < '3.11'", + "python_full_version == '3.12.*' and sys_platform == 'emscripten'", + "python_full_version == '3.12.*' and sys_platform != 'emscripten'", + "python_full_version < '3.12'", ] [options] -exclude-newer = "2026-08-10T18:40:15.391197Z" +exclude-newer = "2026-10-30T23:59:12.555513Z" exclude-newer-span = "P2W" +[options.exclude-newer-package] +nexus-rpc = false +temporalio-google-genai = false +temporalio-deepagents = false +temporalio-langgraph = false +temporalio-strands-agents = false +temporalio-langsmith = false +temporalio-google-adk = false + [[package]] name = "aioboto3" version = "15.5.0" @@ -68,12 +79,11 @@ wheels = [ [[package]] name = "aiohttp" -version = "3.14.1" +version = "3.14.5" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiohappyeyeballs" }, { name = "aiosignal" }, - { name = "async-timeout", marker = "python_full_version < '3.11'" }, { name = "attrs" }, { name = "frozenlist" }, { name = "multidict" }, @@ -81,126 +91,150 @@ dependencies = [ { name = "typing-extensions", marker = "python_full_version < '3.13'" }, { name = "yarl" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/82/78/8ea7308cac6934de8c74a14f3d5f65d1c89287426688be79538d0e5c013d/aiohttp-3.14.1.tar.gz", hash = "sha256:307f2cff90a764d329e77040603fa032db89c5c24fdad50c4c15334cba744035", size = 7955794, upload-time = "2026-06-07T21:09:35.529Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/6d/67/58ded4b3f2e10f94972d8928050c85330e249a31dd45a0e5f3c0e9c3fa05/aiohttp-3.14.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8f6bb621e5863cfe8fe5ff5468002d200ec31f30f1280b259dc505b02595099e", size = 766140, upload-time = "2026-06-07T21:05:37.471Z" }, - { url = "https://files.pythonhosted.org/packages/18/68/4ae5b4e08943f316594bb68da89957d3baf5760588fa09509594bd777e4b/aiohttp-3.14.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:4f7215cb3933784f79ed20e5f050e15984f390424339b22375d5a53c933a0491", size = 519430, upload-time = "2026-06-07T21:05:40.751Z" }, - { url = "https://files.pythonhosted.org/packages/cb/c1/316c8f3549dbe5245f92bfd523ec6f32dd4d98cafe21df3f6a19b1184c75/aiohttp-3.14.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d9d4e294455b23a68c9b8f042d0e8e377a265bcb15332753695f6e5b6819e0ce", size = 514406, upload-time = "2026-06-07T21:05:42.111Z" }, - { url = "https://files.pythonhosted.org/packages/5a/ee/fb0ac28684e8d753b83c8a4eebc19a5846912aa0a4daaabb6a9936363840/aiohttp-3.14.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b238af795833d5731d049d82bc84b768ae6f8f97f0495963b3ed9935c5901cc3", size = 1703649, upload-time = "2026-06-07T21:05:43.427Z" }, - { url = "https://files.pythonhosted.org/packages/3b/57/aa2beab673331f111885db8a7b69dfe3ab0e53e446a0ace18ca694b4dc58/aiohttp-3.14.1-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e4e5e0ae56914ecdbf446493addefc0159053dd53962cef37d7839f37f73d505", size = 1675126, upload-time = "2026-06-07T21:05:44.897Z" }, - { url = "https://files.pythonhosted.org/packages/47/ea/dad128abe365e79be03b16ed464198ac73e0d257e8260c6f7d6f31cbef26/aiohttp-3.14.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:092e4ce3619a7c6dee52a6bdabda973d9b34b66781f840ce93c7e0cec30cf521", size = 1771558, upload-time = "2026-06-07T21:05:46.405Z" }, - { url = "https://files.pythonhosted.org/packages/63/f3/b5b4e10327cb85d34d24232c6b71b64602f190b3ccb238a043ac6b187dac/aiohttp-3.14.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bb33777ea21e8b7ecde0e6fc84f598be0a1192eab1a63bc746d75aa75d38e7bd", size = 1856631, upload-time = "2026-06-07T21:05:47.844Z" }, - { url = "https://files.pythonhosted.org/packages/2b/9d/93294c3045775c708ac8310eb3d3622a11d2951345ad590d532d62a1faa4/aiohttp-3.14.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23119f8fd4f5d16902ed459b63b100bcd269628075162bddac56cc7b5273b3fb", size = 1714139, upload-time = "2026-06-07T21:05:49.982Z" }, - { url = "https://files.pythonhosted.org/packages/29/c4/93067c85a0373492ce8e577435203c5947c454af074ac48ed4f3a1b9dd4a/aiohttp-3.14.1-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:57fc6745a4b7d0f5a9eb4f40a69718be6c0bc1b8368cc9fe89e90118719f4f42", size = 1588321, upload-time = "2026-06-07T21:05:51.431Z" }, - { url = "https://files.pythonhosted.org/packages/c4/39/9ff91aaf02af8b7b8222a987466da539f154c3e01732c22b5f5a20a8ee66/aiohttp-3.14.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:6fd35beba67c4183b09375c5fff9accb47524191a244a99f95fd4472f5402c2b", size = 1670375, upload-time = "2026-06-07T21:05:53.109Z" }, - { url = "https://files.pythonhosted.org/packages/aa/e4/77452a3676b8d99ac1375f77691d6bf65ea6e9f4b201b82ef77c916dc767/aiohttp-3.14.1-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:672b9d65f42eb877f5c3f234a4547e4e1a226ca8c2eed879bb34670a0ce51192", size = 1690933, upload-time = "2026-06-07T21:05:54.902Z" }, - { url = "https://files.pythonhosted.org/packages/7d/84/b0059a7c7fc05ea23f3bc1596ba91c12f79588b9450564a24cac37536d0a/aiohttp-3.14.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:24ba13339fed9251d9b1a1bec8c7ab84c0d1675d79d33501e11f94f8b9a84e05", size = 1740798, upload-time = "2026-06-07T21:05:56.458Z" }, - { url = "https://files.pythonhosted.org/packages/8f/3a/e2a513ecbfc362591caa51a7f7e011b3bfc8938b388ae44cd95560d36999/aiohttp-3.14.1-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:94da27378da0610e341c4d30de29a191672683cc82b8f9556e8f7c7212a020fe", size = 1576412, upload-time = "2026-06-07T21:05:57.953Z" }, - { url = "https://files.pythonhosted.org/packages/a1/10/08f1654f538f93d36dcac66310a06eefce4641cdafca83f9f0a5317be254/aiohttp-3.14.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:52cdac9432d8b4a719f35094a818d95adcae0f0b4fe9b9b921909e0c87de9e7d", size = 1750199, upload-time = "2026-06-07T21:05:59.488Z" }, - { url = "https://files.pythonhosted.org/packages/99/e4/d91b70c57d8b8e9611e4a2e52238ca3698d3dc1c2efe25b7a9bf594ac584/aiohttp-3.14.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:672ac254412a24d0d0cf00a9e6c238877e4be5e5fa2d188832c1244f45f31966", size = 1699356, upload-time = "2026-06-07T21:06:01.131Z" }, - { url = "https://files.pythonhosted.org/packages/3d/f1/15340176f35ff61b95dbe34020bcf43f9e624a2d7bbac934715ff97d2033/aiohttp-3.14.1-cp310-cp310-win32.whl", hash = "sha256:2fe3607e71acc6ebb0ec8e492a247bf7a291226192dc0084236dfc12478916f6", size = 458939, upload-time = "2026-06-07T21:06:02.86Z" }, - { url = "https://files.pythonhosted.org/packages/c3/c2/a2f1ec5b37f903109e43ae2862268cfe4a67a60c1b2cf43169fcdff5995f/aiohttp-3.14.1-cp310-cp310-win_amd64.whl", hash = "sha256:30099eda75a53c32efb0920e9c33c195314d2cc1c680fbfd30894932ac5f27df", size = 482583, upload-time = "2026-06-07T21:06:04.666Z" }, - { url = "https://files.pythonhosted.org/packages/d0/7a/7b56f6732ef79530afaa72aa335d41b67c8d79b946995f0b11ad72985435/aiohttp-3.14.1-cp310-cp310-win_arm64.whl", hash = "sha256:5a837f49d901f9e368651b676912bff1104ed8c1a83b280bcd7b29adccef5c9c", size = 453470, upload-time = "2026-06-07T21:06:06.322Z" }, - { url = "https://files.pythonhosted.org/packages/26/dd/bf526e6f0a1120dd6f2df2e97bacfe4d358f13d17a0ff5847301a1375a51/aiohttp-3.14.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:aa00140699487bd435fde4342d85c94cb256b7cd3a5b9c3396c67f19922afda2", size = 765225, upload-time = "2026-06-07T21:06:07.957Z" }, - { url = "https://files.pythonhosted.org/packages/8f/e1/a2872aa55495a70f61310d411541c6ee23812d9a884e000c716e1bc3edbf/aiohttp-3.14.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1c1af67559445498b502030c35c59db59966f47041ca9de5b4e707f86bd10b5f", size = 518743, upload-time = "2026-06-07T21:06:09.749Z" }, - { url = "https://files.pythonhosted.org/packages/5b/e7/c60c7b209e509cc787de3cea0550a518538cfc08003e1c1e14c1c63fff71/aiohttp-3.14.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d44ec478e713ee7f29b439f7eb8dc2b9d4079e11ae114d2c2ac3d5daf30516c8", size = 514139, upload-time = "2026-06-07T21:06:11.26Z" }, - { url = "https://files.pythonhosted.org/packages/5b/8d/614ace2f579702c9840ab1e1447fd8509e35b0b904f7196418fa2f57b25d/aiohttp-3.14.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d3b1a184a9a8f548a6b73f1e26b96b052193e4b3175ed7342aaf1151a1f00a04", size = 1784088, upload-time = "2026-06-07T21:06:12.887Z" }, - { url = "https://files.pythonhosted.org/packages/49/e0/726e90f99542bf292f81a96a12cc4847deb86f3ccf62c6f4014a201f4d33/aiohttp-3.14.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5f2504bc0322437c9a1ff6d3333ca56c7477b727c995f036b976ae17b98372c8", size = 1737835, upload-time = "2026-06-07T21:06:14.564Z" }, - { url = "https://files.pythonhosted.org/packages/0b/4b/d176d5c4db9d33dacf0543102ea59503bc1d528af4cfd0b719949ca49389/aiohttp-3.14.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:73f05ea02013e02512c3bf42714f1208c57168c779cc6fe23516e4543089d0a6", size = 1842801, upload-time = "2026-06-07T21:06:16.228Z" }, - { url = "https://files.pythonhosted.org/packages/dc/d6/5a99b563690ea0cbed912ae94a2ce33993a5709a651a3a4fe761e7dd973a/aiohttp-3.14.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:797457503c2d426bee06eef808d07b31ede30b65e054444e7de64cad0061b7af", size = 1929992, upload-time = "2026-06-07T21:06:17.947Z" }, - { url = "https://files.pythonhosted.org/packages/76/7f/a987b14a3859094b3cea3f4825219c3e5536242564af6e3f9c2f6c994eb2/aiohttp-3.14.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b821a1f7dedf7e37450654e620038ac3b2e81e8fa6ea269337e97101978ec730", size = 1786989, upload-time = "2026-06-07T21:06:19.677Z" }, - { url = "https://files.pythonhosted.org/packages/f1/1a/420e5c85a3e73349372ed22ce0b6af86bfa6ce16a4b20a64a2e94608c781/aiohttp-3.14.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4cd96b5ba05d67ed0cf00b5b405c8cd99586d8e3481e8ee0a831057591af7621", size = 1640129, upload-time = "2026-06-07T21:06:22.558Z" }, - { url = "https://files.pythonhosted.org/packages/a7/80/18a592ed3be0a402cc03670bd72ee1f8563ddbe1d8d5542dbf868f274136/aiohttp-3.14.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d459b98a932296c6f0e94f87511a0b1b90a8a02c30a50e60a297619cd5a58ee", size = 1756576, upload-time = "2026-06-07T21:06:24.8Z" }, - { url = "https://files.pythonhosted.org/packages/ec/0b/8b3d5713373858ff71a617daf6e3b0e81ad63e79d09a3cf2f6b6b983939c/aiohttp-3.14.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:764457a7be60825fb770a644852ff717bcbb5042f189f2bd16df61a81b3f6573", size = 1754668, upload-time = "2026-06-07T21:06:26.528Z" }, - { url = "https://files.pythonhosted.org/packages/9f/49/fd564575cf225821d7ba5a117cb8bc27213d8a7e1811162afb43ae077039/aiohttp-3.14.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:f7a16ef45b081454ef844502d87a848876c490c4cb5c650c230f6ec79ed2c1e7", size = 1817019, upload-time = "2026-06-07T21:06:28.297Z" }, - { url = "https://files.pythonhosted.org/packages/ed/1b/e850c9ae6fc91356552ae668bb6c51e93fa29c8aef13398a10b56678557f/aiohttp-3.14.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:2fbc3ed048b3475b9f0cbcb9978e9d2d3511acd91ead203af26ed9f0056004cf", size = 1631638, upload-time = "2026-06-07T21:06:30.242Z" }, - { url = "https://files.pythonhosted.org/packages/eb/94/3c337ba72451a89806ace6f75bddc92bafc5b8d53d90115a512858024b63/aiohttp-3.14.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:bedb0cd073cc2dc035e30aeb99444389d3cd2113afe4ef9fcd23d439f5bade85", size = 1835660, upload-time = "2026-06-07T21:06:31.943Z" }, - { url = "https://files.pythonhosted.org/packages/2b/9c/9c18cf367a0498212d9ba7daf990b504a5e8ae064cda4b504e2647c89c03/aiohttp-3.14.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b6feea921016eb3d4e04d65fc4e9ca402d1a3801f562aef94989f54694917af3", size = 1775698, upload-time = "2026-06-07T21:06:33.72Z" }, - { url = "https://files.pythonhosted.org/packages/b5/63/a251a9d2a6cb45065b2ddc0bde2b3dd10108740a9a42f632c66405a761a2/aiohttp-3.14.1-cp311-cp311-win32.whl", hash = "sha256:313701e488100074ce99850404ee36e741abf6330179fec908a1944ecf570126", size = 458386, upload-time = "2026-06-07T21:06:35.279Z" }, - { url = "https://files.pythonhosted.org/packages/17/ca/69274c51dcd6e8947d77b2806cf47a4a15f2c846e2cbeb1882547d3da283/aiohttp-3.14.1-cp311-cp311-win_amd64.whl", hash = "sha256:03ab4530fdcb3a543a122ba4b65ac9919da9fe9f78a03d328a6e38ff962f7aa5", size = 483406, upload-time = "2026-06-07T21:06:36.824Z" }, - { url = "https://files.pythonhosted.org/packages/2c/8a/c25904f77690c3688ec140f87591ef11a0cfe36bf3d5c0f1f38056fb62b3/aiohttp-3.14.1-cp311-cp311-win_arm64.whl", hash = "sha256:486f7d16ed54c39c2cbd7ca71fd8ba2b8bb7860df65bd7b6ed640bab96a38a8b", size = 452987, upload-time = "2026-06-07T21:06:38.371Z" }, - { url = "https://files.pythonhosted.org/packages/1d/21/151624b51cd92553d95424daf4bf19f19ce9be9002d19253e7e7ce67197b/aiohttp-3.14.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:d35143e27778b4bb0fb189562d7f275bff79c62ab8e98459717c0ea617ff2480", size = 757402, upload-time = "2026-06-07T21:06:40.311Z" }, - { url = "https://files.pythonhosted.org/packages/c2/82/280619e0bd7bf2454987e19282616e84762255dd9c8468f62382e8c191f1/aiohttp-3.14.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:bcfb80a2cc36fba2534e5e5b5264dc7ae6fcd9bf15256da3e53d2f499e6fa29d", size = 512310, upload-time = "2026-06-07T21:06:42.207Z" }, - { url = "https://files.pythonhosted.org/packages/55/b2/2aac325583aaa1353045f96dffa586d8a34e8322e14a7ba49cffeb103ab4/aiohttp-3.14.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:27fd7c91e51729b4f7e1577865fa6d34c9adccbc39aabe9000285b48af9f0ec2", size = 512448, upload-time = "2026-06-07T21:06:43.813Z" }, - { url = "https://files.pythonhosted.org/packages/8a/72/a60607cb849faa8af8a356c9329ea2eb6f395d49e82cc82ccba1fd8deb8f/aiohttp-3.14.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:64c567bf9eaf664280116a8688f63016e6b32db2505908e2bdaca1b6438142f2", size = 1766854, upload-time = "2026-06-07T21:06:45.391Z" }, - { url = "https://files.pythonhosted.org/packages/b5/d3/d9fe1c9ec7557ab4d0d82bebaa728c6418f0b93295ec2f4ab015f7710cc7/aiohttp-3.14.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:f5e6ff2bdbb8f4cd3fbe41f99e25bbcd58e3bf9f13d3dd31a11e7917251cc77a", size = 1740884, upload-time = "2026-06-07T21:06:47.413Z" }, - { url = "https://files.pythonhosted.org/packages/c1/dc/f2cecfaf9337ba3e63f181500814ff502aa3d00d9c7ec93a9d23d10a27b2/aiohttp-3.14.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2f73e01dc37122325caf079982621262f96d74823c179038a82fddfc50359264", size = 1810034, upload-time = "2026-06-07T21:06:50.165Z" }, - { url = "https://files.pythonhosted.org/packages/66/d7/2ff65c5e65c0d7476daf7e15c032e0805e36811185b9623e3238ad6c763e/aiohttp-3.14.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bb2c0c80d431c0d03f2c7dbf125150fedd4f0de17366a7ca33f7ccb822391842", size = 1904054, upload-time = "2026-06-07T21:06:52.035Z" }, - { url = "https://files.pythonhosted.org/packages/20/9c/d445818389df371f56d141d881153ba23183c4735a03f7356ffb43f7757d/aiohttp-3.14.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3e6fc1a85fa7194a1a7d19f44e8609180f4a8eb5fa4c7ed8b4355f080fad235c", size = 1790278, upload-time = "2026-06-07T21:06:54.049Z" }, - { url = "https://files.pythonhosted.org/packages/4d/aa/bf04cb4d865fc6101c2229a294ad744973b72e513fdc5a6b791e6983d72a/aiohttp-3.14.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:686b6c0d3911ec387b444ddf5dc62fb7f7c0a7d5186a7861626496a5ab4aff95", size = 1591795, upload-time = "2026-06-07T21:06:55.911Z" }, - { url = "https://files.pythonhosted.org/packages/dc/b4/4dac0038960427ba832f6609dfb4ea5437d7fd80c72001b9e48f834f428b/aiohttp-3.14.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:c6fa4dc7ad6f8109c70bb1499e589f76b0b792baf39f9b017eb92c8a81d0a199", size = 1728397, upload-time = "2026-06-07T21:06:57.777Z" }, - { url = "https://files.pythonhosted.org/packages/2b/f9/7cd4e8ad7aa3b75f17d56bb5498dd604a93d4e6eece822ba0568c413fff0/aiohttp-3.14.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:87a5eea1b2a5e21e1ebdbb33ad4165359189327e63fc4e4894693e7f821ac817", size = 1766504, upload-time = "2026-06-07T21:07:00.009Z" }, - { url = "https://files.pythonhosted.org/packages/f9/df/fc01d9fcad0f73fed3f3d361f1f94f975947b50dff82919f6dc2bf4316cc/aiohttp-3.14.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:1c1421eb01d4fd608d88cc8290211d177a58532b55ad94076fb349c5bf467f0a", size = 1777806, upload-time = "2026-06-07T21:07:02.064Z" }, - { url = "https://files.pythonhosted.org/packages/41/09/47e2d090bddcc8fb4ccb4c314aadc32d7c5d9bb55f50f6ad1c92fc15d501/aiohttp-3.14.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:34b257ec41345c1e8f2df68fa908a7952f5de932723871eb633ecbbff396c9a4", size = 1580707, upload-time = "2026-06-07T21:07:03.942Z" }, - { url = "https://files.pythonhosted.org/packages/3d/36/f1a4ce904ae0b6930cfe9afc96d0896f7ec1a620c400405d63783bb95a9c/aiohttp-3.14.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:de538791a80e5d862addbc183f70f0158ac9b9bb872bb147f1fd2a683691e087", size = 1798121, upload-time = "2026-06-07T21:07:05.987Z" }, - { url = "https://files.pythonhosted.org/packages/70/0a/e0075ce9ca0279ee1d4f0c0b85f54fea02ebc83c3007651a72bece658fec/aiohttp-3.14.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:6f71173be42d3241d428f760122febb748de0623f44308a6f120d0dd9ec572e3", size = 1767580, upload-time = "2026-06-07T21:07:07.873Z" }, - { url = "https://files.pythonhosted.org/packages/3e/61/a0c0a8f327a9c52095cdd8e312391b00d3ed64ab6c72bb5c33d8ec251cf7/aiohttp-3.14.1-cp312-cp312-win32.whl", hash = "sha256:ec8dc383ee57ea3e883477dcca3f11b65d58199f1080acaf4cd6ad9a99698be4", size = 452771, upload-time = "2026-06-07T21:07:09.669Z" }, - { url = "https://files.pythonhosted.org/packages/df/d9/ea367c75f16ac9c6cdc8febb25e8318fa21a2b1bc8d6514d4b2d890bface/aiohttp-3.14.1-cp312-cp312-win_amd64.whl", hash = "sha256:2aa92c87868cd13674989f9ee83e5f9f7ea4237589b728048e1f0c8f6caa3271", size = 479873, upload-time = "2026-06-07T21:07:11.538Z" }, - { url = "https://files.pythonhosted.org/packages/03/64/8d96784a7851156db8a4c6c3f6f91042fdf39fb15a4cc38c8b3c14833c45/aiohttp-3.14.1-cp312-cp312-win_arm64.whl", hash = "sha256:2c840c90759922cb5e6dda94596e079a30fb5a5ba548e7e0dc00574703940847", size = 448073, upload-time = "2026-06-07T21:07:13.637Z" }, - { url = "https://files.pythonhosted.org/packages/bc/97/bd137012dd97e1649162b099135a80e1fd59aaa807b2430fc448d1029aff/aiohttp-3.14.1-cp313-cp313-android_21_arm64_v8a.whl", hash = "sha256:b3a03285a7f9c7b016324574a6d92a1c895da6b978cb8f1deee3ac72bc6da178", size = 506882, upload-time = "2026-06-07T21:07:15.501Z" }, - { url = "https://files.pythonhosted.org/packages/ef/79/e5cc690e9d922a66887ceeaca53a8ffd5a7b0be3816142b7abc433742d89/aiohttp-3.14.1-cp313-cp313-android_21_x86_64.whl", hash = "sha256:2a73f487ab8ef5abbb24b7aa9b73e98eaba9e9e031804ff2416f02eca315ccaf", size = 515270, upload-time = "2026-06-07T21:07:17.53Z" }, - { url = "https://files.pythonhosted.org/packages/fe/22/a73ccbf9dbd6e26dda0b24d5fd5db7da92ee3383a79f47677ffb834c5c5b/aiohttp-3.14.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:915fbb7b41b115192259f8c9ae58f3ddc444d2b5579917270211858e606a4afd", size = 485841, upload-time = "2026-06-07T21:07:19.555Z" }, - { url = "https://files.pythonhosted.org/packages/3b/b9/57ed8eaf596321c2ad747bd480fb1700dbd7177c60dfc9e4c187f629662e/aiohttp-3.14.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:7fb4bdf95b0561a79f259f9d28fbc109728c5ee7f27aff6391f0ca703a329abe", size = 492088, upload-time = "2026-06-07T21:07:21.581Z" }, - { url = "https://files.pythonhosted.org/packages/78/c0/5ebe5270a7c140d7c6f79dcb018640225f14d406c149e4eec04a7d82fe71/aiohttp-3.14.1-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:1b9748363260121d2927704f5d4fc498150669ca3ae93625986ee89c8f80dcd4", size = 501564, upload-time = "2026-06-07T21:07:23.388Z" }, - { url = "https://files.pythonhosted.org/packages/75/7f/8cdaa24fc7983865e0915153b96a9ac5bcdd3548d64c5a27d17cecccad2d/aiohttp-3.14.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:86a6dab78b0e43e2897a3bbe15745aa60dc5423ca437b7b0b164c069bf91b876", size = 751998, upload-time = "2026-06-07T21:07:25.046Z" }, - { url = "https://files.pythonhosted.org/packages/b2/f4/c4227aacfacc5cb0cc2d119b65301d177912a6842cd64e120c47af76064f/aiohttp-3.14.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:4dfd6e47d3c44c2279907607f73a4240b88c69eb8b90da7e2441a8045dfd21da", size = 510918, upload-time = "2026-06-07T21:07:27.28Z" }, - { url = "https://files.pythonhosted.org/packages/ab/01/a2d5f96cd4e74424864d30bc0a7e44d0a12dacdcfa91b5b2d1bd3dca6bf3/aiohttp-3.14.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:317acd9f8602858dc7d59679812c376c7f0b97bcbbf16e0d6237f54141d8a8a6", size = 508657, upload-time = "2026-06-07T21:07:29.252Z" }, - { url = "https://files.pythonhosted.org/packages/e8/ed/3c0fb5c500fdd8e7ebc10d1889c04384fffa1a9163eac1356088ca9da1b1/aiohttp-3.14.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bd869c427324e5cb15195793de951295710db28be7d818247f3097b4ab5d4b96", size = 1757907, upload-time = "2026-06-07T21:07:31.03Z" }, - { url = "https://files.pythonhosted.org/packages/0b/ab/d4c924d9bd5be3050c226612413ce68cb54c70d2c31b661bfc8d9a5b6a70/aiohttp-3.14.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:93b032b5ec3255473c143627d21a69ac74ae12f7f33974cb587c564d11b1066f", size = 1737565, upload-time = "2026-06-07T21:07:33.031Z" }, - { url = "https://files.pythonhosted.org/packages/19/2a/37326821ff779084020cdc33224d20b19f42f4183a500ff92022a739eda7/aiohttp-3.14.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f234b4deb12f3ad59127e037bc57c40c21e45b45282df7d3a55a0f409f595296", size = 1799018, upload-time = "2026-06-07T21:07:35.003Z" }, - { url = "https://files.pythonhosted.org/packages/b3/4f/6e947ba73e4ce09070761c05ed3a8ceb7c21f5e46798671d8b2aac0e4626/aiohttp-3.14.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9af6779bfb46abf124068327abcdf9ce95c9ef8287a3e8da76ccf2d0f16c28fa", size = 1894416, upload-time = "2026-06-07T21:07:36.956Z" }, - { url = "https://files.pythonhosted.org/packages/9d/6e/dbf1d0625dc711fb2851f4f3c3055c39ed58bae92082d8c627dbe6013736/aiohttp-3.14.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:faccab372e66bc76d5731525e7f1143c922271725b9d38c9f97edcc66266b451", size = 1783881, upload-time = "2026-06-07T21:07:39.063Z" }, - { url = "https://files.pythonhosted.org/packages/44/c2/5e25098a67268ed369483ae7d1a58bd0a13d03aab860d2a0e4a6eb25b046/aiohttp-3.14.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f380468b09d2a81633ee863b0ec5648d364bd17bb8ecfb8c2f387f7ac1faf42c", size = 1587572, upload-time = "2026-06-07T21:07:41.058Z" }, - { url = "https://files.pythonhosted.org/packages/2a/bd/cf9cee17e140f942a3de73e658a543aa8fbf35a5fc67a9d2538d52d77f0b/aiohttp-3.14.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:97e704dcd26271f5bda3fa07c3ce0fb76d6d3f8659f4baa1a24442cc9ba177ca", size = 1722137, upload-time = "2026-06-07T21:07:43.014Z" }, - { url = "https://files.pythonhosted.org/packages/89/6d/5684f8c59045c96f81a18cefbc1fbbd79d25b88f1c622f2a5c5c08fcb632/aiohttp-3.14.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:269b76ac5394092b95bc4a098f4fc6c191c083c3bd12775d1e30e663132f6a09", size = 1755953, upload-time = "2026-06-07T21:07:45.933Z" }, - { url = "https://files.pythonhosted.org/packages/a8/40/35caf3170f8359760740a7d9aa0fff2e344bef98e1d1186f5a0f6dec17e6/aiohttp-3.14.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:5c0b3e614340c889d575451696374c9d17affd54cd607ca0babed8f8c37b9397", size = 1766479, upload-time = "2026-06-07T21:07:48.047Z" }, - { url = "https://files.pythonhosted.org/packages/6d/a1/b0c61e7a137f0d81de49a82023a6df73c3c16d6fefb0f8e4a93d21639002/aiohttp-3.14.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:5663ee9257cfa1add7253a7da3035a02f31b6600ec48261585e1800a81533080", size = 1580077, upload-time = "2026-06-07T21:07:50.069Z" }, - { url = "https://files.pythonhosted.org/packages/0b/41/194ea4623693009fcefebef7aef63c141754f153e9cd0d39d3b9e36c175c/aiohttp-3.14.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:603a2c834142172ffddc054067f5ec0ca65d57a0aa98a71bc81952573208e345", size = 1791688, upload-time = "2026-06-07T21:07:52.106Z" }, - { url = "https://files.pythonhosted.org/packages/ba/45/4de841f005cfe1fd63e2a2fe011262c515e2a62aa6994b15947e7d717ac9/aiohttp-3.14.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:cb21957bb8aca671c1765e32f58164cf0c50e6bf41c0bbbd16da20732ecaf588", size = 1761094, upload-time = "2026-06-07T21:07:54.113Z" }, - { url = "https://files.pythonhosted.org/packages/e4/ae/dbce10533d3896d544d5053939ed75b7dc31a1b0973d959b1b5ae21028d6/aiohttp-3.14.1-cp313-cp313-win32.whl", hash = "sha256:e509a55f681e6158c20f70f102f9cf61fb20fbc382272bc6d94b7343f2582780", size = 452662, upload-time = "2026-06-07T21:07:56.06Z" }, - { url = "https://files.pythonhosted.org/packages/7b/d9/0bf1a19362c32f06229da5e7ddfcec91f93474d6307f7a2d3135e9c674dc/aiohttp-3.14.1-cp313-cp313-win_amd64.whl", hash = "sha256:1ac8531b638959718e18c2207fbfe297819875da46a740b29dfa29beba64355a", size = 479748, upload-time = "2026-06-07T21:07:58.319Z" }, - { url = "https://files.pythonhosted.org/packages/22/0a/62e7232dc9484fbec112ceb32efb6a624cc7994ec6e2b019286f17c4e8f2/aiohttp-3.14.1-cp313-cp313-win_arm64.whl", hash = "sha256:250d14af67f6b6a1a4a811049b1afa69d61d617fca6bf33149b3ab1a6dbcf7b8", size = 447723, upload-time = "2026-06-07T21:08:00.154Z" }, - { url = "https://files.pythonhosted.org/packages/c4/a1/5fafa04e1ca91ddb47608699d60649c1c6db3cf41c99e78fc4056f9513db/aiohttp-3.14.1-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:7c106c26852ca1c2047c6b80384f17100b4e439af276f21ef3d4e2f450ae7e15", size = 508531, upload-time = "2026-06-07T21:08:02.093Z" }, - { url = "https://files.pythonhosted.org/packages/fa/2e/bfa02f699d87ffc86d5959270b28f1cb410add3ccaced8ed2e0b8a5238fc/aiohttp-3.14.1-cp314-cp314-android_24_x86_64.whl", hash = "sha256:20205f7f5ade7aaec9f4b500549bbc071b046453aed72f9c06dcab87896a83e8", size = 514718, upload-time = "2026-06-07T21:08:04.476Z" }, - { url = "https://files.pythonhosted.org/packages/85/a5/9594ad6289eebbc97d167c44213d557807f90e59115caad24de21ad2c3b1/aiohttp-3.14.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:62a759436b29e677181a9e76bab8b8f689a29cb9c535f45f7c48c9c830d3f8c3", size = 487918, upload-time = "2026-06-07T21:08:06.377Z" }, - { url = "https://files.pythonhosted.org/packages/b4/61/16a32c36c3c49edec122a3dc811f2057df2f94d3b14aa107c8017d981618/aiohttp-3.14.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:2964cbf553df4d7a57348da44d961d871895fc1ee4e8c322b2a95612c7b17fba", size = 494014, upload-time = "2026-06-07T21:08:08.263Z" }, - { url = "https://files.pythonhosted.org/packages/9b/89/3ebcf96ed99c05bec9c434aaac6963fd3cbab4a786ae739908a144d9ce44/aiohttp-3.14.1-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:237651caadc3a59badd39319c54642b5299e9cc98a3a194310e55d5bb9f5e397", size = 502398, upload-time = "2026-06-07T21:08:10.244Z" }, - { url = "https://files.pythonhosted.org/packages/fd/3d/b74870a0c2d40c355928cd5b96c7a11fa821b8a40fc41365e64479b151fb/aiohttp-3.14.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:896e12dfdbbab9d8f7e16d2b28c6769a60126fa92095d1ebf9473d02593a2448", size = 758018, upload-time = "2026-06-07T21:08:12.447Z" }, - { url = "https://files.pythonhosted.org/packages/d3/66/f42f5c984d99e49c6cff5f26f590750f2e2f7ef1fcfb99966ab5be1b632e/aiohttp-3.14.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d03f281ed22579314ba00821ce20115a7c0ac430660b4cc05704a3f818b3e004", size = 512462, upload-time = "2026-06-07T21:08:14.624Z" }, - { url = "https://files.pythonhosted.org/packages/e9/a7/248e1aebe0c7810b0271e021a0f2a5eb6e78a051885b3c9df49f42a5802d/aiohttp-3.14.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:07eabb979d236335fed927e137a928c9adfb7df3b9ec7aa31726f133a62be983", size = 512824, upload-time = "2026-06-07T21:08:16.572Z" }, - { url = "https://files.pythonhosted.org/packages/26/97/2aa0e5ba0727dc3bd5aaebb7ccbc510f7dfb7fb961ec87497cd496635ab1/aiohttp-3.14.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4fe1f1087cbadb280b5e1bb054a4f00d1423c74d6626c5e48400d871d34ecefe", size = 1749898, upload-time = "2026-06-07T21:08:18.635Z" }, - { url = "https://files.pythonhosted.org/packages/00/8d/e97f6c96c891d457c8479d92a514ba194d0412f981d72c70341ee18488ed/aiohttp-3.14.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:367a9314fdc79dab0fac96e216cb41dd73c85bdca85306ce8999118ba7e0f333", size = 1710114, upload-time = "2026-06-07T21:08:20.892Z" }, - { url = "https://files.pythonhosted.org/packages/6f/e6/aa8d7e863048c8fceb5cd6ce74017311cec3ead07847387e12265fb4444e/aiohttp-3.14.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a24f677ebe83749039e7bdf862ff0bbb16818ae4193d4ef96505e269375bcce0", size = 1802541, upload-time = "2026-06-07T21:08:23.044Z" }, - { url = "https://files.pythonhosted.org/packages/83/a8/72193137de57fda4ebfae4563182d082c8856e3b6e9871d0b46f028fb369/aiohttp-3.14.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c83afe0ba876be7e943d2e0ba645809ad441575d2840c895c21ee5de93b9377a", size = 1875776, upload-time = "2026-06-07T21:08:25.288Z" }, - { url = "https://files.pythonhosted.org/packages/a0/18/938441025db6769a3464596b2410af3afde0b21eb2f204c6f766f68af4bd/aiohttp-3.14.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:634e385930fb6d2d479cf3aa66515955863b77a5e3c2b5894ca259a25b308602", size = 1760329, upload-time = "2026-06-07T21:08:27.363Z" }, - { url = "https://files.pythonhosted.org/packages/60/29/bf2496b4065e76e09fe48015aaffe5ce161d8f089b06ac6982070f653076/aiohttp-3.14.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:eeea07c4397bbc57719c4eed8f9c284874d4f175f9b6d57f7a1546b976d455ca", size = 1587293, upload-time = "2026-06-07T21:08:29.805Z" }, - { url = "https://files.pythonhosted.org/packages/49/a2/2136674d52123b1354bd05dd5753c318db47dc0c927cc70b27bab3755456/aiohttp-3.14.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:335c0cc3e3545ce98dcb9cfcb836f40c3411f43fa03dab757597d80c89af8a35", size = 1714756, upload-time = "2026-06-07T21:08:32.094Z" }, - { url = "https://files.pythonhosted.org/packages/a7/b9/e5fd2e6f915503081c0f9b1e8540947037929c70c191da2e4d54b31a21a1/aiohttp-3.14.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:ae6be797afdef264e8a84864a85b196ca06045586481b3df8a967322fd2fa844", size = 1721052, upload-time = "2026-06-07T21:08:34.167Z" }, - { url = "https://files.pythonhosted.org/packages/63/5a/2833e324a2263e104e31e2e91bc5bbee81bc499afd32203faee048a883f0/aiohttp-3.14.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:8560b4d712474335d08907db7973f71912d3a9a8f1dee992ec06b5d2fe359496", size = 1766888, upload-time = "2026-06-07T21:08:36.95Z" }, - { url = "https://files.pythonhosted.org/packages/57/fa/dea6511870913162f3b2e8c42a7614eb203a4540b8c2da43e0bfb0548f3c/aiohttp-3.14.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b7edd08e0a5deb1e8564a2fcd8f4561014a3f05252334671bbf55ddd47db0e5", size = 1581679, upload-time = "2026-06-07T21:08:39.292Z" }, - { url = "https://files.pythonhosted.org/packages/14/bd/3cf0d55e71784b33534e9710a67d382d900598b4787fbce6cc7317f8c42a/aiohttp-3.14.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:b6ff7fcee63287ae57b5df3e4f5957ce032122802509246dec1a5bcc55904c95", size = 1782021, upload-time = "2026-06-07T21:08:41.407Z" }, - { url = "https://files.pythonhosted.org/packages/c1/af/14bb5843eccbe234f4dfb78ab73e549d99727247e62ae5d62cbd22eaf5b0/aiohttp-3.14.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6ffbb2f4ec1ceaff7e07d43922954da26b223d188bf30658e561b98e23089444", size = 1742574, upload-time = "2026-06-07T21:08:43.795Z" }, - { url = "https://files.pythonhosted.org/packages/f2/1e/fbeb7af9210a67ac0f9c9bec0f8f4568497924e33137a3d5b48e1cf85f3f/aiohttp-3.14.1-cp314-cp314-win32.whl", hash = "sha256:a9875b46d910cff3ea2f5962f9d266b465459fe634e22556ab9bd6fc1192eea0", size = 457773, upload-time = "2026-06-07T21:08:46.168Z" }, - { url = "https://files.pythonhosted.org/packages/f0/2b/13e8d741a9ec5db7d900c060554cf8352ab85e44e2a4469ebb9d377bda17/aiohttp-3.14.1-cp314-cp314-win_amd64.whl", hash = "sha256:af8b4b81a960eeaf1234971ac3cd0ba5901f3cd42eae42a46b4d089a8b492719", size = 485001, upload-time = "2026-06-07T21:08:48.401Z" }, - { url = "https://files.pythonhosted.org/packages/df/30/491acfa2c4d6c3ff59c49a14fc1b50be3241e25bbb0c84c09e2da4d11395/aiohttp-3.14.1-cp314-cp314-win_arm64.whl", hash = "sha256:cf4491381b1b57425c315a56a439251b1bdac07b2275f19a8c44bc57744532ec", size = 453809, upload-time = "2026-06-07T21:08:50.7Z" }, - { url = "https://files.pythonhosted.org/packages/34/e3/19dbe1a1f4cc6230eb9e314de7fe68053b0992f9302b27d12141a0b5db53/aiohttp-3.14.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:819c054312f1af92947e6a55883d1b66feefab11531a7fc45e0fb9b63880b5c2", size = 793320, upload-time = "2026-06-07T21:08:52.775Z" }, - { url = "https://files.pythonhosted.org/packages/7f/20/1b7182219ba1b108430d6e4dc53d25ae02dcfcf5a045b33af4e8c5167527/aiohttp-3.14.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:10ee9c1753a8f706345b22496c79fbddb5be0599e0823f3738b1534058e25340", size = 529077, upload-time = "2026-06-07T21:08:55Z" }, - { url = "https://files.pythonhosted.org/packages/b9/c8/14ce60ec31a2e5f5274bb17d383a6f7a3aabca31ac04eee05585bbadab16/aiohttp-3.14.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1601cc37baf5750ccacae618ec2daf020769581695550e3b654a911f859c563d", size = 532476, upload-time = "2026-06-07T21:08:57.176Z" }, - { url = "https://files.pythonhosted.org/packages/7e/02/9ac85e081e53da2e061b02fa7758fe0a12d17b8ce2d1f5e6c7cb76730328/aiohttp-3.14.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4d6e0ac9da31c9c04c84e1c0182ad8d6df35965a85cae29cd71d089621b3ae94", size = 1922347, upload-time = "2026-06-07T21:08:59.563Z" }, - { url = "https://files.pythonhosted.org/packages/c0/3e/d3ba07a0ab38b5389e10bec4362d21e10a4f667cba2d79ba30837b3a5059/aiohttp-3.14.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9e8f2d660c350b3d0e259c7a7e3d9b7fc8b41210cbcc3d4a7076ff0a5e5c2fdc", size = 1786465, upload-time = "2026-06-07T21:09:01.909Z" }, - { url = "https://files.pythonhosted.org/packages/0b/cb/e2ee978a00cfb2df829704a69528b18154eba5939f45bc1efa8f33aee4c5/aiohttp-3.14.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4691802dda97be727f79d86818acaad7eb8e9252626a1d6b519fedbb92d5e251", size = 1909423, upload-time = "2026-06-07T21:09:04.357Z" }, - { url = "https://files.pythonhosted.org/packages/73/5d/1430334858b1022b58ae50399a918f0bd6fe8fa7fa183598d657ff61e040/aiohttp-3.14.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c389c482a7e9b9dc3ee2701ac46c4125297a3818875b9c305ddb603c04828fd1", size = 2001906, upload-time = "2026-06-07T21:09:06.722Z" }, - { url = "https://files.pythonhosted.org/packages/66/4e/560c7472d3d198a23aa5c8b19a5115bf6a9b77b7d3e4bb363da320430ad2/aiohttp-3.14.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fc0cacab7ba4e56f0f81c82a98c09bed2f39c940107b03a34b168bdf7597edd3", size = 1877095, upload-time = "2026-06-07T21:09:09.011Z" }, - { url = "https://files.pythonhosted.org/packages/0d/f1/4745806578d447db4a784a8591e2dae3afdfc2bcb96f8f81271b13df6543/aiohttp-3.14.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:979ed4717f59b8bb12e3963378fa285d93d367e15bcd66c721311826d3c44a6c", size = 1676222, upload-time = "2026-06-07T21:09:11.461Z" }, - { url = "https://files.pythonhosted.org/packages/6a/c9/48255813cca749a229ef0ab476004ec623728ad79a9c0840616f6c076325/aiohttp-3.14.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:38e1e7daaea81df51c952e18483f323d878499a1e2bfe564790e0f9701d6f203", size = 1842922, upload-time = "2026-06-07T21:09:14.118Z" }, - { url = "https://files.pythonhosted.org/packages/3d/c0/bbd054e2bee909f529523a5af3891052606af5143c09f5f183ec3b234676/aiohttp-3.14.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:4132e72c608fe9fecb8f409113567605915b83e9bdd3ea56538d2f9cd35002f1", size = 1825035, upload-time = "2026-06-07T21:09:16.447Z" }, - { url = "https://files.pythonhosted.org/packages/a8/ae/90395d4376deceb74e09ec26b6adf7d2015a6f8802d6d84446af860fef04/aiohttp-3.14.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:eefd9cc9b6d4a2db5f00a26bc3e4f9acf71926a6ec557cd56c9c6f27c290b665", size = 1849512, upload-time = "2026-06-07T21:09:18.742Z" }, - { url = "https://files.pythonhosted.org/packages/93/bd/fb25f3049957553d4ce0ba6ae480aa2f592a6985497fca590837d16c1be0/aiohttp-3.14.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:b165790117eea512d7f3fb22f1f6dad3d55a7189571993eb015591c1401276d1", size = 1668571, upload-time = "2026-06-07T21:09:21.458Z" }, - { url = "https://files.pythonhosted.org/packages/3f/22/7f73303d64dd567ff3addca90b556690ed1233a47b8f55d242fb90af3681/aiohttp-3.14.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:ed09c7eb1c391271c2ed0314a51903e72a3acb653d5ccfc264cdf3ef11f8269d", size = 1881159, upload-time = "2026-06-07T21:09:23.813Z" }, - { url = "https://files.pythonhosted.org/packages/44/be/0474c5a8b5640e1e4aa1923430a91f4151be82e511373fe764189b89aef5/aiohttp-3.14.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:99abd37084b82f5830c635fddd0b4993b9742a66eb746dacf433c8590e8f9e3c", size = 1841409, upload-time = "2026-06-07T21:09:26.207Z" }, - { url = "https://files.pythonhosted.org/packages/7b/3c/bb4a7cba26956cb3da4553cc2056cf67be5b5ff6e6d8fa4fbdff73bfb7ae/aiohttp-3.14.1-cp314-cp314t-win32.whl", hash = "sha256:47ddf841cdecc810749921d25606dee45857d12d2ad5ddb7b5bd7eab12e4b365", size = 494166, upload-time = "2026-06-07T21:09:28.505Z" }, - { url = "https://files.pythonhosted.org/packages/8a/84/ec80c2c1f66a952555a9f86df6b33af65108a6febfa0471b69013a12f807/aiohttp-3.14.1-cp314-cp314t-win_amd64.whl", hash = "sha256:5e78b522b7a6e27e0b25d19b247b75039ac4c94f99823e3c9e53ae1603a9f7e9", size = 530255, upload-time = "2026-06-07T21:09:30.843Z" }, - { url = "https://files.pythonhosted.org/packages/2a/71/6e22be134a4061ada85a92951b842f2657f17d926b727f3f94c56ae963d6/aiohttp-3.14.1-cp314-cp314t-win_arm64.whl", hash = "sha256:90d53f1609c29ccc2193945ef732428382a28f78d0456ae4d3daf0d48b74f0f6", size = 469640, upload-time = "2026-06-07T21:09:33.028Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/6c/4c/bdccd81e9ee225b69c60e7766c9a5b05364f118f4d383713b89a682d772d/aiohttp-3.14.5.tar.gz", hash = "sha256:5558a7f5a05af9ecf744af91e5baefc436f93c9333e656c27ec253f9a6bbe178", size = 8078052, upload-time = "2026-10-11T01:05:12.408Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d8/f3/8997f18890a92c79f77fcfbb4f78ca17c2d4ab109e9eb6d31b4e9de194a0/aiohttp-3.14.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:d51db97c96384fbfcaf8f4c65922183a68b94f891c3c10c862ef5f6df2adbb1f", size = 832358, upload-time = "2026-10-11T00:59:42.195Z" }, + { url = "https://files.pythonhosted.org/packages/8e/42/084651e9efb5cadb99265f786df60f2a7b353cead7bfd2c87003cb4867ad/aiohttp-3.14.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ae53924aa853a7a2ca20ed4142c7c6b56338e4d4cd999e2980075b9efc2e257a", size = 559636, upload-time = "2026-10-11T00:59:43.677Z" }, + { url = "https://files.pythonhosted.org/packages/3d/fe/92838944e601f0fe195fd3f3ada37e29fbee3d19bfd323fe15937ec79d36/aiohttp-3.14.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2c473a355f9239efcb72c92d5abfd8fcdb0cc78c8e9af607e72ca12dbb36593", size = 552588, upload-time = "2026-10-11T00:59:45.592Z" }, + { url = "https://files.pythonhosted.org/packages/8f/b8/dd9b95c5c20ceae1b47738e656bd79e9883e3117a9cc8b143901eb604e9a/aiohttp-3.14.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:32e8fa6644e541fcd7e02430588c7fc93b602c1778ea0bc345505db76b61cfb4", size = 1928224, upload-time = "2026-10-11T00:59:47.294Z" }, + { url = "https://files.pythonhosted.org/packages/c6/47/70010cd2ba8746968d53d433ff328c33f06a66c99da5f3de759c64a6b2eb/aiohttp-3.14.5-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:579f97d5120f2971876d2ddca2968135f6944d00c44c3a6590ad7d86ca9b403f", size = 1877674, upload-time = "2026-10-11T00:59:49.472Z" }, + { url = "https://files.pythonhosted.org/packages/c5/a1/b026f071dbd87f0bdba86b92d47e46f3899e3ad7143b6e0fe7e7887090b4/aiohttp-3.14.5-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:24409db442e2fb6e766bc7f3943851a8381dec3098140e43bb2e843b79e31b12", size = 1985850, upload-time = "2026-10-11T00:59:51.296Z" }, + { url = "https://files.pythonhosted.org/packages/36/d1/f7b6f6f8c3cb5a71b53baeddc2e70c224c28b12a23a55c42994c504019b7/aiohttp-3.14.5-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5e8f97c0488ffda3082766ac0f2c8150a9a58c4d05788330e479cfd449b37939", size = 2105471, upload-time = "2026-10-11T00:59:53.191Z" }, + { url = "https://files.pythonhosted.org/packages/42/74/2a2b22953de15c6c8a80debf26db3047e4e8a5a5db6dd7c2c6c01eec0605/aiohttp-3.14.5-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50a195903119008fe9cc68710535eb37f556ffffd6a7759afe70a2c145587045", size = 1929915, upload-time = "2026-10-11T00:59:55.609Z" }, + { url = "https://files.pythonhosted.org/packages/33/ad/f80e8d33933d0eacd0217efa3b7fb32c9f48ed480ed0db53cf9948bf474f/aiohttp-3.14.5-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0133c3c3b54a0bf1e71fa5c1ad95c93f07fd54e24ef1fe182f5122e1573d2bf1", size = 1773832, upload-time = "2026-10-11T00:59:57.611Z" }, + { url = "https://files.pythonhosted.org/packages/04/a4/0273d239f3e3bb69438f209c64c82e1f98dc60d5db264795e41f7dd05dcb/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c172db893e516e1358e65a95ee20b7ce7173963eefe318b6ab2a2220688b999e", size = 1901001, upload-time = "2026-10-11T01:00:00.605Z" }, + { url = "https://files.pythonhosted.org/packages/16/ed/7dd439d26c654645bc34ca3c9a822fc11c1c51801fed1cefdfe1cc41c1f6/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:f2a7966bda23dd85051f1661ce0ace38d6890e05ec6c357ecae9d2479cba377e", size = 1907218, upload-time = "2026-10-11T01:00:02.699Z" }, + { url = "https://files.pythonhosted.org/packages/32/dd/86249c3b8248562a17fd3e22ee0c164378d65766f01aceef62cf52783710/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:4887d130a7bbfed3a85493bb5a25e5b5b558d40c1d986dd16970d2bb26d63793", size = 1958650, upload-time = "2026-10-11T01:00:04.851Z" }, + { url = "https://files.pythonhosted.org/packages/bc/0b/ca4d53d68f683ce195807fd0aeb063bf6d1c6b39343fff234c9524e8d5a9/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:225c579c23b68b343cccea27a7e06e3bd8ec23a09c30b427eb3f1e4ca6239b20", size = 1760057, upload-time = "2026-10-11T01:00:06.978Z" }, + { url = "https://files.pythonhosted.org/packages/6b/42/005437ffd7fa56c2ce3347add40404b654a32754ce91f2e2a14b9e5ab2bc/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:ab52d8f1fc1b64821c1fbad64a647ed6203627004059a6d1ed4f0858a1499703", size = 1978081, upload-time = "2026-10-11T01:00:08.868Z" }, + { url = "https://files.pythonhosted.org/packages/03/71/3a5b66fe1b7b23d3c6524350817ed55de5feb7fbb4cccba7cbe044d118dd/aiohttp-3.14.5-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:cb131d775a1573c1aee66656bd78b023577bbdb6cb8349a07773bd4f73e68a6e", size = 1922954, upload-time = "2026-10-11T01:00:11.035Z" }, + { url = "https://files.pythonhosted.org/packages/69/84/d08a554f281d42fd7c6b2b6dd7738f3e3a7a9f657ddd87e11ca2091cdfe3/aiohttp-3.14.5-cp311-cp311-win32.whl", hash = "sha256:e87046c8ff77a8decdb6a41d8ab25824b47531b2da933aeab0c1e21c7acff329", size = 488101, upload-time = "2026-10-11T01:00:12.933Z" }, + { url = "https://files.pythonhosted.org/packages/0f/15/52b5e65f02b33686ae49f1518548ae4f5a7adaf31d9d3c54fa12a143137b/aiohttp-3.14.5-cp311-cp311-win_amd64.whl", hash = "sha256:6f275c11d1aa6d4c458e05a68be084efe3c55a113d99e3f46a318098e52948fc", size = 512575, upload-time = "2026-10-11T01:00:14.743Z" }, + { url = "https://files.pythonhosted.org/packages/b0/b9/bb75012635f3defb0f7cbb7c4ae391e36bb9cb3fbdca3b9944e2ebebf743/aiohttp-3.14.5-cp311-cp311-win_arm64.whl", hash = "sha256:b032a0023eb41d768ce77d83210ab2a3c389bc0b09313273c7e1eca48c10a755", size = 493179, upload-time = "2026-10-11T01:00:16.961Z" }, + { url = "https://files.pythonhosted.org/packages/d5/94/6ba86efddcb616c811b40e6a0dfdd862738f647e4e3860a961075d5e9ed8/aiohttp-3.14.5-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:df37b620684e19b5e25724412518ccafc3b1a49cdac706fdbd2f983fad943450", size = 817499, upload-time = "2026-10-11T01:00:18.901Z" }, + { url = "https://files.pythonhosted.org/packages/5e/e1/7bca6d84dabd228aa8eb4b7f9feac2586aaa9be5505d7d65bf287a615c43/aiohttp-3.14.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ef60869969180ec2464f1349aff07138ae35ca2200f0946cb3552e49e8f301a8", size = 549467, upload-time = "2026-10-11T01:00:20.854Z" }, + { url = "https://files.pythonhosted.org/packages/64/91/11b89f45ca486252dd67dd5f3231fec04bf5518da39a95cb3997619f17fb/aiohttp-3.14.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d079c0a0135c36e7beb6f1c88087c8f108dc5891cdd0b5eafa778421bda70ed2", size = 548067, upload-time = "2026-10-11T01:00:22.659Z" }, + { url = "https://files.pythonhosted.org/packages/22/ff/c6615806c14aab34f82b9424ccde8ce6e417315fd57ce1c5b4d4747888e1/aiohttp-3.14.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:abfda5cb094a829f7bc25216a32f7db2e85cc65bd59910f8e7b40b3d9b224764", size = 1896245, upload-time = "2026-10-11T01:00:24.638Z" }, + { url = "https://files.pythonhosted.org/packages/39/b2/25a8c971ae6a92c8394d77e42422d7f38989e05cf41a5ceb92d73d67ab7e/aiohttp-3.14.5-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9cc882cf8619109583c906b4d4a85d6a111a98afa34b7a450d1e08118d016820", size = 1872180, upload-time = "2026-10-11T01:00:26.838Z" }, + { url = "https://files.pythonhosted.org/packages/2f/d5/99f93ea36cc5205e47c1e5a803e087f2ad21b5430b5db2e942cb6e988a37/aiohttp-3.14.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7457580535e019e1247ea35d6a02bf081ad30c26d0cbc210c93f6c3ab67a0835", size = 1937261, upload-time = "2026-10-11T01:00:28.74Z" }, + { url = "https://files.pythonhosted.org/packages/40/a6/9ac9c9e6695040bd73d2584a1b59a9388f6433c76d5294a7bf591e21ffe5/aiohttp-3.14.5-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c5ed596aedb9c42afd3fe0aae3117725378ac73d2cc5ddc735056fbdb96c5d02", size = 2064994, upload-time = "2026-10-11T01:00:30.623Z" }, + { url = "https://files.pythonhosted.org/packages/da/e4/aa172eb534b7f02f1f8ff1c3213347eaf3cf218db91a727c6863c22f1035/aiohttp-3.14.5-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:20f085697d7e911f1f73c43ed03fafbed1e7121797e2eb5428efa80398060584", size = 1919630, upload-time = "2026-10-11T01:00:32.548Z" }, + { url = "https://files.pythonhosted.org/packages/06/7d/4eedafc5bababa8932636c141e346806966eade12c0b7e5946d43bf8218b/aiohttp-3.14.5-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:74b0a9c8270f9b0a11410e124ff8d4f18bfc1f1837440ec84da5ae7b50927b5d", size = 1710016, upload-time = "2026-10-11T01:00:34.471Z" }, + { url = "https://files.pythonhosted.org/packages/b2/94/eee018537ba19da0ceb2ac79cab83faed4ac49568e08376e2799043f2538/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:19e2ba471507c34f8252402ab50f5ab512398b9ea8c8f1cb26beb3f75793ba30", size = 1858112, upload-time = "2026-10-11T01:00:36.581Z" }, + { url = "https://files.pythonhosted.org/packages/68/76/354653a306547238f3427283905972d796ba7c292ba9977abec9f2b6f260/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:d418ce2af40c6bb685b3f663e9e8de27cb0a22431d8e88a167348d7f01878073", size = 1896371, upload-time = "2026-10-11T01:00:38.478Z" }, + { url = "https://files.pythonhosted.org/packages/f2/ec/63e8c7136b570e356345ad3174e3820fdc973ea10712cb6c649bf875755a/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:70cb4008ac2ed1e0ca9e824deb4b53d3aa0d939109698ebf1e723a84337bd794", size = 1905836, upload-time = "2026-10-11T01:00:40.527Z" }, + { url = "https://files.pythonhosted.org/packages/57/d8/11365bda144b127928cd42533d0eff78a55613c9e28f81941bd6630ea887/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:a23fe35d776bc03cb495938b9594450d047e3bc08c5255315a82323e9cb7d2dd", size = 1696534, upload-time = "2026-10-11T01:00:42.686Z" }, + { url = "https://files.pythonhosted.org/packages/2f/3d/82df0461b18e00b2998f205c03e0d3010222478c43640aceb8e03dcd7e8f/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3e0eb43bed3c6801a6cee315195377789e90b2a72c2277a475b578535312488d", size = 1933970, upload-time = "2026-10-11T01:00:44.71Z" }, + { url = "https://files.pythonhosted.org/packages/03/ad/6ddfe0aacd931c17b53533336d97e9d11a98b96d6ae815a9da0b19f82ccf/aiohttp-3.14.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3be7dd397d64ca3e1869626fa9318aaebb54b7bf93bc72d7a205448d83e4f748", size = 1899501, upload-time = "2026-10-11T01:00:46.629Z" }, + { url = "https://files.pythonhosted.org/packages/9e/8e/189bdd9ae4793059bb09f6dc880f211a6c6c7859cebcbf33912dbfab7dd7/aiohttp-3.14.5-cp312-cp312-win32.whl", hash = "sha256:eb324e2009fb54db30a071dad7caf6998ee2879c4704007efb244514dad1fec1", size = 480370, upload-time = "2026-10-11T01:00:48.468Z" }, + { url = "https://files.pythonhosted.org/packages/ae/ce/1f08114679d49655b30a6e0a29858375c94b82c1de1a0bd0a20c2fee8b02/aiohttp-3.14.5-cp312-cp312-win_amd64.whl", hash = "sha256:2cc38a4f2b516bef1714e690df87a0e043faf1a7693c82d860091684453d5111", size = 506141, upload-time = "2026-10-11T01:00:50.272Z" }, + { url = "https://files.pythonhosted.org/packages/79/d4/c7b4f60b16a1b7e43249fa9031ae05e7e8c341ba4b7d1866f914dafeaa0e/aiohttp-3.14.5-cp312-cp312-win_arm64.whl", hash = "sha256:a63afd1f757de949028387e65a7127b61ad0f775432dbb0e62816ae619fe69ac", size = 488108, upload-time = "2026-10-11T01:00:52.321Z" }, + { url = "https://files.pythonhosted.org/packages/d3/e1/2841e020ebb7aefae5513586193e011e06313d9a6bdbd296622afbbce204/aiohttp-3.14.5-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:9ad7e6aa38c20da1be697874349c4c273c8a03b7887169665081706398d0439a", size = 538932, upload-time = "2026-10-11T01:00:54.3Z" }, + { url = "https://files.pythonhosted.org/packages/f7/a6/7fb8ea8fe96bcc7b7c7a36d10f021d99d01a8dc8a4b3f0ddacecfad9a80e/aiohttp-3.14.5-cp313-cp313-android_24_x86_64.whl", hash = "sha256:f59c7673465908cbe506117176156c127f29f917677afceada34957179221d91", size = 553329, upload-time = "2026-10-11T01:00:56.442Z" }, + { url = "https://files.pythonhosted.org/packages/de/64/d056e3c27647dc25af1a592cf356245382ea7c808171b9dac7677afedfc8/aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b5416552740edf07234cc9437d0706f2acb67b93c198670b1a68e1b2b587dec", size = 521367, upload-time = "2026-10-11T01:00:58.345Z" }, + { url = "https://files.pythonhosted.org/packages/3e/e4/95226147e11d4db916fd1d495dcf85af8e3816e38333e42718241196e848/aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:43351bdb5e4c3cb7d1772368e988534e869a74db7778079a83782c11c69535c7", size = 528322, upload-time = "2026-10-11T01:01:00.211Z" }, + { url = "https://files.pythonhosted.org/packages/17/cd/1d3c9192cafdb51cad62b2d3ded96cff9cc8af51893210aadd448a325389/aiohttp-3.14.5-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:c8c4478bef6d57fcfda15dae461ea3c9f06aa7b257c58df3f2300174ccbb185a", size = 539874, upload-time = "2026-10-11T01:01:02.06Z" }, + { url = "https://files.pythonhosted.org/packages/f6/0c/dfa33aecc7d4d1dc75e05248f5eac5a0edf4d09e7b44d93ab62529b0c1db/aiohttp-3.14.5-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c2c30484dd1417ef98b51021ffa2cc0d7f3c78918adaaaab7e70817335ab3e02", size = 813836, upload-time = "2026-10-11T01:01:04.01Z" }, + { url = "https://files.pythonhosted.org/packages/33/17/4a63738052d20567d55529d6daa1b9480d906fd52930fbcf6d3fbed618f0/aiohttp-3.14.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dab9ac5a67c8d1f070c00fa8fccb7cbd1b8dcc1a8d6b42f37540df9b3d4cc603", size = 548070, upload-time = "2026-10-11T01:01:06.035Z" }, + { url = "https://files.pythonhosted.org/packages/15/e5/b57e58695a757fd4c02497c033fced96a69c631b13866c43d336530c9670/aiohttp-3.14.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e1cc2bfaee8c214f06080a7c7d5772419b8a1108e8e5349236189811823fb02a", size = 545786, upload-time = "2026-10-11T01:01:07.817Z" }, + { url = "https://files.pythonhosted.org/packages/9a/68/8c2c67a3aedf46e00f3c42f04fbc6983de80d4ed5786151e33681ba45883/aiohttp-3.14.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:74efb69332b85675b1eabd760a8cfc2e2cf42c60607c66f88014c1bdfb40942d", size = 1886492, upload-time = "2026-10-11T01:01:09.834Z" }, + { url = "https://files.pythonhosted.org/packages/ab/4b/74aab5e8d28c62e8f795b4fe8f38cf5586fd264a9a27bd2141ef6490333d/aiohttp-3.14.5-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:42b5e616946dbaf505e2bff18c9af2cd4ef9e7ef300ee58a6e951a5b7cf147ae", size = 1870057, upload-time = "2026-10-11T01:01:12.045Z" }, + { url = "https://files.pythonhosted.org/packages/a8/f7/eafc3b1988302b1815d9fd4a21071be5c360d616c0a430d02fd92dc97688/aiohttp-3.14.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f9033b43f511f27547c557dcaba0177649e10a3725336ccd2cce0fdc1dc4850d", size = 1925119, upload-time = "2026-10-11T01:01:14.09Z" }, + { url = "https://files.pythonhosted.org/packages/a1/04/78d8f294f74dd570f3898ff20402349fce524176045df98ba727d6846a68/aiohttp-3.14.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:15a310d3c71398e3d7bfc93a1a73fbe664315cd9e9016b8efc1cff85eeab7155", size = 2053137, upload-time = "2026-10-11T01:01:16.344Z" }, + { url = "https://files.pythonhosted.org/packages/32/51/395d225ef36f5a50d8e548dcd3141bfdbcd31fb6eed859022c573d2c4d66/aiohttp-3.14.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1ffa3a523a36d8628f98c06492ae16a31a23d14c0b4ec721757b477319f656d6", size = 1911038, upload-time = "2026-10-11T01:01:18.653Z" }, + { url = "https://files.pythonhosted.org/packages/ff/a4/2aec1aa06d82e8a244843b5dae31d78061e5e76744270a86dd0ee051c889/aiohttp-3.14.5-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5fb6a6e919bfb703227bc1ce6579281b84b1a2ba57deb9794dfdbec7dcd1e40c", size = 1702205, upload-time = "2026-10-11T01:01:20.904Z" }, + { url = "https://files.pythonhosted.org/packages/16/27/6051bfde7b6f418f70edd60d655fa426abb3355fa0981764739d87ecf160/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:43e1b7994a8b038125f722bff07492ef501110722c2727c408995d9fb864c421", size = 1848588, upload-time = "2026-10-11T01:01:22.918Z" }, + { url = "https://files.pythonhosted.org/packages/9e/44/55efc06fc26c4e6e1c095f231b4c222bf2d86d64a8eebbc24b2bb5958ea8/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:5f3e96071686755d9cd3600c3880183eb94b012178e92746d68101800f0ed8a3", size = 1887540, upload-time = "2026-10-11T01:01:25.278Z" }, + { url = "https://files.pythonhosted.org/packages/48/dc/1502bfdc2a65760d386ac6a00090b0addaa8a3c9c60b3f8127fad3a9afb2/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:cd88b01f3d37b7a2a34f91d98f14720206f1ea3d540843fab2d649dd5fb91fec", size = 1895030, upload-time = "2026-10-11T01:01:27.316Z" }, + { url = "https://files.pythonhosted.org/packages/93/7e/44174bb6288264418c9eec07a5e35180969c0d5a796c7af544db3cb8a33a/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:f2ed8b64dc0c651c0f5a9c926777719770021251b8f336d97c4b80b660836ce1", size = 1693244, upload-time = "2026-10-11T01:01:29.39Z" }, + { url = "https://files.pythonhosted.org/packages/47/dd/b507d64e50db23888582fff08eda13998b12f9dea70c072edaac19218380/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:a9918e58faf62ba2c7147927d06057aec78f42475aff5048047ec47e7265a600", size = 1926308, upload-time = "2026-10-11T01:01:31.634Z" }, + { url = "https://files.pythonhosted.org/packages/98/4b/5b51b4f63e3f2793151f4aea49c48fe1e00baeb7cec9c7a206de499f8de0/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:42f320d4a5b00b9af0bddcfec5407dc6f2d9816f006b2f79ebbaa31f16895df3", size = 1888406, upload-time = "2026-10-11T01:01:33.715Z" }, + { url = "https://files.pythonhosted.org/packages/ff/13/d5e818a5eaba9f822016727299f41c0e1075799f82a6433ec508a93ab867/aiohttp-3.14.5-cp313-cp313-win32.whl", hash = "sha256:3ae800a20947e2c2e53088047d021e6bf7d51560cc49f6a0737a1f79d2e3a13c", size = 479970, upload-time = "2026-10-11T01:01:35.677Z" }, + { url = "https://files.pythonhosted.org/packages/8d/d0/8eca2c65aa467320990d78fb2005f38ed3588944280c39ff9deb6423fef1/aiohttp-3.14.5-cp313-cp313-win_amd64.whl", hash = "sha256:d05e94cdfe0d15d0206f970722d2554780ce562787b21b218b275447f8751319", size = 505985, upload-time = "2026-10-11T01:01:37.574Z" }, + { url = "https://files.pythonhosted.org/packages/7a/f8/4cdd65305d2fca14b886bea9ed2abb1fe726287872524e56e3d26692b47d/aiohttp-3.14.5-cp313-cp313-win_arm64.whl", hash = "sha256:f001b571ead90ca1770f1e616db255351a1703317f20374c361ef22f12c06d09", size = 487629, upload-time = "2026-10-11T01:01:39.477Z" }, + { url = "https://files.pythonhosted.org/packages/43/be/3184a1d34a8be665569eadb7e9e764b4629e4f3413e241cb2e4d6fecf3b3/aiohttp-3.14.5-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:939042d5cda21d41a6f512e7cc8b8e33a2aebff863352251da495fbd91b673b5", size = 540673, upload-time = "2026-10-11T01:01:41.354Z" }, + { url = "https://files.pythonhosted.org/packages/60/2a/d35f3ba4cf157b072e3b674bf9983047ca5ea5173c995d32d877e1191d36/aiohttp-3.14.5-cp314-cp314-android_24_x86_64.whl", hash = "sha256:6da32b5ff3fd78d244e37300463434c7145162bfd2b6e9e915ab164da37f7343", size = 554087, upload-time = "2026-10-11T01:01:43.719Z" }, + { url = "https://files.pythonhosted.org/packages/fc/d2/61a33880ca4eaca95a9c60ca3f6beed15555af1028652dfaac601627787b/aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b438b73c38111818d0c9d6a5c2bfed8584c8e503a49ef085d70e874ec846738", size = 522613, upload-time = "2026-10-11T01:01:46.154Z" }, + { url = "https://files.pythonhosted.org/packages/31/1d/de579b299d2225dc2c6fd99d579d91f16c02a913fb5af9a3cf2fe9bd88ba/aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:755933b107ea7a6a9ac916f635a70595a5b1a32fac10a8ff0b9f2ab88555550c", size = 529682, upload-time = "2026-10-11T01:01:48.477Z" }, + { url = "https://files.pythonhosted.org/packages/f4/4a/ddb923564e15e053b6e060b0036e1694dcadcb13aa476c5a87dcad20e336/aiohttp-3.14.5-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:b3cc509327c7b27f6f4727a8830f4004f6df7766e179f2f4b8e54e65c0bec5d3", size = 540120, upload-time = "2026-10-11T01:01:50.474Z" }, + { url = "https://files.pythonhosted.org/packages/3d/36/a640fbecaa53727a5900b892bdbe17b5f3e8cc88903e22864fe41b654def/aiohttp-3.14.5-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:7bd8ac754ebd6733a3e2a0dd1674c4d8ab086196803fd8dcd776f07b4e2607d9", size = 818795, upload-time = "2026-10-11T01:01:52.665Z" }, + { url = "https://files.pythonhosted.org/packages/ef/b6/d52ca608859e271b5fa7944074802dc45f60e52c318a4ddc34edbf73586e/aiohttp-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e724a7b6091f0b1ac064f9d1b15ff9ec52e6033a86cdae649e5f086e32a3c0db", size = 549667, upload-time = "2026-10-11T01:01:54.65Z" }, + { url = "https://files.pythonhosted.org/packages/ce/b5/05b8ac39a76ff4bca89f42a4c2471560c71f894ff6e4bc16158c951874e3/aiohttp-3.14.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c32e26310cc10e547f53cd13d39a369034f69dcb7d749d5cb0e5f67bc196b6ba", size = 548922, upload-time = "2026-10-11T01:01:56.547Z" }, + { url = "https://files.pythonhosted.org/packages/19/b0/5aa186d56ce2334dabe29b70bd99dc8ae926ee44184c0de64a53d415a4f3/aiohttp-3.14.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1eb8167961ec4dfcc8cb9dd50bd0ee72519f7ef496be95203e49e27b01618382", size = 1882422, upload-time = "2026-10-11T01:01:59.258Z" }, + { url = "https://files.pythonhosted.org/packages/db/f7/7d5c91bb9620db300c8ddb05337a9014301acb626223faff3abcb8ea47d7/aiohttp-3.14.5-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c1d60eafd9c7e8e74abd03a5b00df44e7febfe6d9b89b559c0a6551eef0699d4", size = 1843621, upload-time = "2026-10-11T01:02:01.417Z" }, + { url = "https://files.pythonhosted.org/packages/30/0a/b208953b96d8f24b75f6da704f508e6c5cf3022f52b60c61933df082e89c/aiohttp-3.14.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:137351bf20bbed9a65e839f4a4452ac377389bdb2f2857d2acffef38f5e9f2d1", size = 1927915, upload-time = "2026-10-11T01:02:03.697Z" }, + { url = "https://files.pythonhosted.org/packages/f6/79/90ebcccb55e2d1e11a1fed581d83bb966e38fb35fb4b2577fdc980f8707a/aiohttp-3.14.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fba47bc2c3d7303c3d027c6cf4d07626c37b1314ac81f5820c31032e0ca1f677", size = 2036339, upload-time = "2026-10-11T01:02:06.046Z" }, + { url = "https://files.pythonhosted.org/packages/a6/66/55a8904b3a129fafdf94f9cc0a2e4ca09a3c914650be52355db7ad0bbdb6/aiohttp-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:94684b879ac1d71e4238850c99b62dc1b28d9086b156a2555f082010b85a865c", size = 1888041, upload-time = "2026-10-11T01:02:08.384Z" }, + { url = "https://files.pythonhosted.org/packages/0b/b8/96b25da7329a52e42c812b1e8b076386039ec4fc312afa043d173d8147fc/aiohttp-3.14.5-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:56572c42e3ecd636de8d2c3dd54cf5fc939cb5c32eb56297f176a0d366fac622", size = 1703849, upload-time = "2026-10-11T01:02:10.903Z" }, + { url = "https://files.pythonhosted.org/packages/1b/43/fbf976e3ae4c038d6f5c84945ab2150298c2d71201674d4e53d158063e75/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a95529a92a446db351675f4aab518feaf5e99842f63f5dd17160c2b74f382db3", size = 1849703, upload-time = "2026-10-11T01:02:13.15Z" }, + { url = "https://files.pythonhosted.org/packages/8b/7d/218e912f4c1d89bde7ac551409be57ad2f6121638e56942d395a7cb1fa58/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:3edbece0379b8b4aaa67619b8aa2399bb66fce372cd5911098a434ea77220aa0", size = 1852695, upload-time = "2026-10-11T01:02:15.295Z" }, + { url = "https://files.pythonhosted.org/packages/5a/42/252a1b9287e3b6e393a1c3bd1776f36af30f5f25f071bbf2b0cb7eba9116/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:56d9828f204331a5ca8850fcfe2bcce95a149f1f223f60cc7216e5524978e480", size = 1893493, upload-time = "2026-10-11T01:02:17.93Z" }, + { url = "https://files.pythonhosted.org/packages/78/97/71cae83d5100556fad1521684f7cd1e3e578432644f850245ed3bd969310/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:20064a177a070d789ee64a50b01a9161d3468e989baacfc6c714aa685c4b332f", size = 1693468, upload-time = "2026-10-11T01:02:20.666Z" }, + { url = "https://files.pythonhosted.org/packages/1f/69/73d88e97a8b5f0ca7a946d0011c0de99fb188b1687c7948ecd0553dc5bf0/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:81c2b3dfd56c62bee6108e4852d5970b4cf9086390b6983f52b666e878c1f115", size = 1915398, upload-time = "2026-10-11T01:02:23.011Z" }, + { url = "https://files.pythonhosted.org/packages/05/f0/881644bcb15d4b258daea9b720a0af9dc4330496cc8d6ade9090cdd0cffc/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:09ec102b4b8c9a920275733bbc11fdbb615efe6f9231a06007c0218d336fb77a", size = 1871470, upload-time = "2026-10-11T01:02:25.278Z" }, + { url = "https://files.pythonhosted.org/packages/7f/de/19d9ebbcce5aedaa3242d8a99ff8816a60bdb7629fb0084bf4a45bfd1f62/aiohttp-3.14.5-cp314-cp314-win32.whl", hash = "sha256:9c428eb2bd8817588d16a0ab898aa4eb5d141f896aa2b394cc79a4cf61d9a8e2", size = 485517, upload-time = "2026-10-11T01:02:27.579Z" }, + { url = "https://files.pythonhosted.org/packages/a9/74/8cdaf0e58c2588371670d5a9a8215bbb971d36940b6e5d051967dd05c07d/aiohttp-3.14.5-cp314-cp314-win_amd64.whl", hash = "sha256:6f967dde489ca6a8c02d093ab245d2cbf50ccb5c36adf0188b17b0ca39d24b67", size = 511755, upload-time = "2026-10-11T01:02:29.685Z" }, + { url = "https://files.pythonhosted.org/packages/1a/6b/e0100e25502430a531c7cf1482a378d0b65bf728ab60c01ee270e56bc469/aiohttp-3.14.5-cp314-cp314-win_arm64.whl", hash = "sha256:1d2d981b53dd09a319e3570ef8cc3bbc3ef86f5a7abef0f6b2bff3867db3a9e7", size = 495151, upload-time = "2026-10-11T01:02:32.163Z" }, + { url = "https://files.pythonhosted.org/packages/9d/c2/ca2ead7b655688c53c03aeeb6e96e6851c9ff08d6be7b13802f53a6ae8fd/aiohttp-3.14.5-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:9ce66feae6ac65327379460380549bf1b8df8e17c4e25df2a2bcf168272e3bed", size = 855396, upload-time = "2026-10-11T01:02:34.443Z" }, + { url = "https://files.pythonhosted.org/packages/a7/70/22206fea409255a240c926ce11de48de354ae2bb90ca44f709c05497585d/aiohttp-3.14.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:27c2322e03f66101acb09869ce1cf1efc04994ee95e1735b69827bf8c8b9d781", size = 567734, upload-time = "2026-10-11T01:02:36.644Z" }, + { url = "https://files.pythonhosted.org/packages/ce/e5/79a36c118308b56f8667d67e05d2fb6dc638ab45985704cdb199631bedaa/aiohttp-3.14.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ff75a7537413a86e7cafe98e0e1d6e3dc4b15c6349896e7d5c6b881bfdb6d550", size = 567379, upload-time = "2026-10-11T01:02:38.757Z" }, + { url = "https://files.pythonhosted.org/packages/63/a3/2ebec7dece3b1f02c30d2e484647f6f7b13952b1bb40a4cb285b849e8432/aiohttp-3.14.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c061aa954daaf57d2a4b8374f9fca621ef0e1b603584431c220c22458c59b6d", size = 2050686, upload-time = "2026-10-11T01:02:41.169Z" }, + { url = "https://files.pythonhosted.org/packages/3a/d2/7e4d093db2f4450482652e7ef19a9e19919028f5135aa52bc4078c3beb80/aiohttp-3.14.5-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1612fa5857b37bf32e5c1eaeefb96e3b01e9c70679eec81f0934e8a600080863", size = 1915077, upload-time = "2026-10-11T01:02:43.563Z" }, + { url = "https://files.pythonhosted.org/packages/a6/88/bd40d09958442a0a1df67da81de496361d6e2afc04f9db2950d835da750b/aiohttp-3.14.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:adbeee7d6fd4cf5fe0aece2fb3edc4243615d3180430ba8149d01a90670cac99", size = 2027204, upload-time = "2026-10-11T01:02:46.185Z" }, + { url = "https://files.pythonhosted.org/packages/63/eb/3a601c1f8d3103c1a60ea981f20924855da9f575d2007fc38f8898b792fb/aiohttp-3.14.5-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b2966998927d7bed9db12c0a4647b0c7b179755878fc9c357fe1ffd3e3b0c1a5", size = 2149520, upload-time = "2026-10-11T01:02:48.812Z" }, + { url = "https://files.pythonhosted.org/packages/22/d0/4e41bfe1b1ce1cb6f6d2e59fa7a88ef5cf92c402b2d07e9018778ba9edbc/aiohttp-3.14.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e317e0fb6b16212c881d2205a7d87414c29acd69320b3aa6dce9d9c7b86fe4f", size = 2002039, upload-time = "2026-10-11T01:02:51.293Z" }, + { url = "https://files.pythonhosted.org/packages/6f/5e/72067019545c502b881b031153c437752ecef48d7d213bc0218ccebb4bfb/aiohttp-3.14.5-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50343c1757b4b6f6708eeaf24534b32f19dfb99fb1b762c00420867a62fc81e0", size = 1786164, upload-time = "2026-10-11T01:02:53.533Z" }, + { url = "https://files.pythonhosted.org/packages/d9/fe/7741efd6119bfb7a00827fe6f7b84b4409de58d888ae21adc5a9a6824992/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:083673c7a94c3ea035caaa5ca04288bdb44887abfe1f5ba23294e6a4b03efd2d", size = 1970689, upload-time = "2026-10-11T01:02:55.888Z" }, + { url = "https://files.pythonhosted.org/packages/43/e7/342a13bf67f34d269bf2f7e870ecd72b99c832cc6f0a271a9210c0ebfb84/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:2528cb4c6b92008c76ac9ac6298624069bb2db91ff4929905512d1d84485f658", size = 1951967, upload-time = "2026-10-11T01:02:58.467Z" }, + { url = "https://files.pythonhosted.org/packages/e7/d4/fdb3b27340617e5e64df18a70fa89097778652ea5c7c7e2f79def76999c3/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b1b8ece1e71132d2afba4dbc0c3d62c766e25165990b25db1196c04969eb3d84", size = 1968511, upload-time = "2026-10-11T01:03:00.883Z" }, + { url = "https://files.pythonhosted.org/packages/83/b2/e8f88298de78d1a951f36f9f966d38ec6ed1d4721303ba02064a545e8aa6/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:fce9523df31cea6284f3e2c479876750d7687cf671d7b25d32b19effc0e86441", size = 1778497, upload-time = "2026-10-11T01:03:03.206Z" }, + { url = "https://files.pythonhosted.org/packages/22/68/9ccdb93d664345c546be7f34480b921774d8c0d98f47e70d7e03b115d475/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:09e0eb18c7e0c8777e2f9149de63799195b9b3ca1b5c81ba6f32f2c6b8628210", size = 1999676, upload-time = "2026-10-11T01:03:05.829Z" }, + { url = "https://files.pythonhosted.org/packages/57/4a/a33cfa6dcb00e94194ae4fe710432ca4ed111e016356b4ba4d2f4c3a124c/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6774814fd5c338e72ee0da5cbb9432816df450e69c019f72b5d29bdec2a1792d", size = 1963437, upload-time = "2026-10-11T01:03:08.196Z" }, + { url = "https://files.pythonhosted.org/packages/f4/20/eacbecfea3b5c3dcbfc9b023e3a5460f43e5dda16d06a2877ebe7184c3f3/aiohttp-3.14.5-cp314-cp314t-win32.whl", hash = "sha256:33f706574e32c6e694f352a856e05caf18f7f2c871b3e87b41c55ea452b409ab", size = 503973, upload-time = "2026-10-11T01:03:10.481Z" }, + { url = "https://files.pythonhosted.org/packages/ff/78/18eec294f6c8c5dc845dcf6d730a0147d8d0f17e86138a7bdb85e43a30fa/aiohttp-3.14.5-cp314-cp314t-win_amd64.whl", hash = "sha256:5ba14a839fbe87cf7c12a6b5661c05f324a296eb8363141edb3944ba63d4c9d3", size = 531190, upload-time = "2026-10-11T01:03:12.716Z" }, + { url = "https://files.pythonhosted.org/packages/9d/39/e53f8169acc85271ebd12b5b32ad7f1541b35639ccbe0f49034c64785d10/aiohttp-3.14.5-cp314-cp314t-win_arm64.whl", hash = "sha256:1061b364556e8172e8d46b0b183adeeb73e8c42d30ebc745591e1bd89acad52e", size = 510360, upload-time = "2026-10-11T01:03:15.08Z" }, + { url = "https://files.pythonhosted.org/packages/f3/1c/06d89f58b2db3ee92dd377217659d587e06f973e57bf0a97a0d8a4586c0c/aiohttp-3.14.5-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:788ecaa9c10533b786ce5ba70c4f2df78ad41819fd00a6c99d92b66f9a32e1da", size = 540674, upload-time = "2026-10-11T01:03:17.483Z" }, + { url = "https://files.pythonhosted.org/packages/18/39/5e822e038f496f0540ada91e27099d48f9e7f919b6c6deb4cf6db36cc706/aiohttp-3.14.5-cp315-cp315-android_24_x86_64.whl", hash = "sha256:5c76f1802bab718a68ac3cce447160605c734551f95c67ae90fa1132b215cb29", size = 554183, upload-time = "2026-10-11T01:03:19.71Z" }, + { url = "https://files.pythonhosted.org/packages/9b/ff/0cf2619d902b5b160762422a7e5e02091295766a7fe4fcf5b9a655e386c1/aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a6d02b4c38de03d9c7617813433e6a0fb6b522797974177d69d9dad431900833", size = 523160, upload-time = "2026-10-11T01:03:22.193Z" }, + { url = "https://files.pythonhosted.org/packages/86/99/3553abfc53a40849dbaacc3f54c730ec58410809ffa2d05885ae56108f2d/aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:20726f9782d5c2744c1c66255842d1d163bb3edcf768b8de25216bf47f7b6ccf", size = 530311, upload-time = "2026-10-11T01:03:24.435Z" }, + { url = "https://files.pythonhosted.org/packages/fe/a4/5d25f73754bc1e8f983ba704e86d641aea290c967f195f2aeebdaed2bd84/aiohttp-3.14.5-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:248d779ad720b49d4fb355720e60c9e5f444f95887bc16974fea48fc56c41789", size = 540274, upload-time = "2026-10-11T01:03:26.698Z" }, + { url = "https://files.pythonhosted.org/packages/29/a4/07eda5db2e3ee017d9590f36c12a94ec6f1f50516e8df78672373dfc7185/aiohttp-3.14.5-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:0a8ea271867e360ac985ae607f4a23ad9a38414b9aca1d49ec98839ae660e49f", size = 819239, upload-time = "2026-10-11T01:03:29.481Z" }, + { url = "https://files.pythonhosted.org/packages/cb/aa/a8723dd987a696dd48d4cf2f0088e589ce77caebff0b96f2a78c20424380/aiohttp-3.14.5-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:823c910f046f23f4c713b8d99a2242dc65f591cb45ee86418fa11762a3c2963c", size = 549832, upload-time = "2026-10-11T01:03:32.02Z" }, + { url = "https://files.pythonhosted.org/packages/29/5c/969a1b72692055fd2a419590c41847ec9144fefb97b75ff1cde5b6372891/aiohttp-3.14.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9b42db919715e91eb76acf3bc492a9a7ccd8bd9adc6745c1412b689735269f14", size = 549234, upload-time = "2026-10-11T01:03:34.469Z" }, + { url = "https://files.pythonhosted.org/packages/38/05/8e3e07fd8a0d33d06955ff4e54a1cb92f4bce347ff55e441dc3e25a7b5e5/aiohttp-3.14.5-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d3112585250b199296c26ca6e0131640b6a8d01bab8b232d2eb3763ed469de11", size = 1891314, upload-time = "2026-10-11T01:03:36.899Z" }, + { url = "https://files.pythonhosted.org/packages/b6/b3/05a79ce2e25f024e93de30c94f39dc6aa6e2bc1e9c531a5c4b18dc61b7a4/aiohttp-3.14.5-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c147451b4a58e7050f7f7394e6c467867c84161560001f9ad4fb2d1446743946", size = 1884372, upload-time = "2026-10-11T01:03:39.334Z" }, + { url = "https://files.pythonhosted.org/packages/94/52/0fd8af0717db109eea258191b326b5cb5847fb88928bfa6c862fd78b9ad3/aiohttp-3.14.5-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bf163cc701f3d4ac43ba7d97771bf5fd955220ef5500ef3ee847bc0ecfbf4ec1", size = 1930957, upload-time = "2026-10-11T01:03:42.172Z" }, + { url = "https://files.pythonhosted.org/packages/4e/b3/fa78733da88812bf9fb193913fb0ce1548f8b6912047633fdf88a758ff8c/aiohttp-3.14.5-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f8d40ce41991e9d56fab4f5dc4a51fe59bc3b5c77c27f4b148963064d00232e8", size = 2038886, upload-time = "2026-10-11T01:03:44.646Z" }, + { url = "https://files.pythonhosted.org/packages/cf/f5/2fcc5e30053a938286f17d0edf3f0850b8061b984256fa7c26850b9c8809/aiohttp-3.14.5-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:276a4fc00b1d9ae492b802763a789c5b86328b989c5ea169f2faa447d6a11c7c", size = 1894470, upload-time = "2026-10-11T01:03:47.304Z" }, + { url = "https://files.pythonhosted.org/packages/62/2a/f87feb42abe8e6a7c03814dbcb711540849a1e90aa392055f3183c643610/aiohttp-3.14.5-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50983e3be33d8c0942ab88cec3905b10602f64c469b20153c48c5d4e558dd016", size = 1716273, upload-time = "2026-10-11T01:03:50.121Z" }, + { url = "https://files.pythonhosted.org/packages/81/b2/adf1f960dd977722ed1347d33da512a1624807114f57a3b91f5cc828e081/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:16c8abd5bca220a47efe667d26f8460124c81810787e79ee87b242677563d9dd", size = 1857513, upload-time = "2026-10-11T01:03:52.959Z" }, + { url = "https://files.pythonhosted.org/packages/d7/fd/ef8d910e641de4160026a513ace5888b7f92826bbc3fd90ced05d55a828e/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:0790ec66fa4013e83c53b9025a45d454723da1a2fce28b3208c9b32d08af162f", size = 1887704, upload-time = "2026-10-11T01:03:55.641Z" }, + { url = "https://files.pythonhosted.org/packages/7e/db/6c9142f941cba8d35be8e1fae6ea2bd390e754fc14076b8147aee1a4592f/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:cb11a971a3aea10f9b8373be628f1df932964fc6c6b174516d318a48c3ac4412", size = 1895684, upload-time = "2026-10-11T01:03:58.18Z" }, + { url = "https://files.pythonhosted.org/packages/e6/7c/6a6bd9a72e576d376c668333b00c51c6147aba4fb863ed6c94996d497eca/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:932ce7e694bbc29b2bf6f64f2343c27d148d4997c771d01bdade4639b6749ff4", size = 1706299, upload-time = "2026-10-11T01:04:00.8Z" }, + { url = "https://files.pythonhosted.org/packages/69/ec/d2cc494242f8c4d3d1cd70baf591742818a74386dc3b84af3195c5c4fced/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:a7d470cf7b206e6359fc77b1b860632fde400d5a2ed59cd0181b93a686bc81ee", size = 1916645, upload-time = "2026-10-11T01:04:03.892Z" }, + { url = "https://files.pythonhosted.org/packages/a3/6e/e852c53647e815db09a1b6b5ab634f54bd736412397e11940feef4d2c89a/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6e1d8637cf73eebc92eba2e11d4cfff98a3b562f2505bd75bba766d908926e8d", size = 1875408, upload-time = "2026-10-11T01:04:06.922Z" }, + { url = "https://files.pythonhosted.org/packages/fe/f6/72ab6ef20c332399be593bac543d2c24a6d241e39d3540ce9f95a63e4bd2/aiohttp-3.14.5-cp315-cp315-win32.whl", hash = "sha256:fbdc5ec49f9ca3cd24955cf3520b10a4d4c901ba2572094c84274e9e7eb30534", size = 485590, upload-time = "2026-10-11T01:04:09.626Z" }, + { url = "https://files.pythonhosted.org/packages/06/eb/e9de75b8c6d2170c42c08ff303abf857ea8a6d9d9b6e99b5aba40f15e962/aiohttp-3.14.5-cp315-cp315-win_amd64.whl", hash = "sha256:a9d3983bd6ab7aa1cfd573544ae98df9b6cb6912a5185a198263e024a636861d", size = 511740, upload-time = "2026-10-11T01:04:12.277Z" }, + { url = "https://files.pythonhosted.org/packages/fc/25/455f3c2785eb0d50748cffd0abd07500815f419a9495b14610b7622d8d2d/aiohttp-3.14.5-cp315-cp315-win_arm64.whl", hash = "sha256:e29347c142cf6e99e0dff5e2995ead1d50fa3b51bf37a7c726a7ccfe5419745a", size = 495171, upload-time = "2026-10-11T01:04:14.667Z" }, + { url = "https://files.pythonhosted.org/packages/e7/6c/497f0a98782eebfcf0f02a7fbdef5428148bd426027140cbad494cf842b5/aiohttp-3.14.5-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:9bf1d5dcc15204d9ec8b8ea4c18fd66e6b80e5de1f4ecbafb3a2f2740f8039d4", size = 855638, upload-time = "2026-10-11T01:04:17.154Z" }, + { url = "https://files.pythonhosted.org/packages/9a/c5/55c0cef2572af9b1ee81608f7c0a1bf74e6c9151a73b04915d933f192335/aiohttp-3.14.5-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:14f04769cfefe4734016a856a83af36133cd17779cef9ae817f812b8ba9d6d51", size = 567455, upload-time = "2026-10-11T01:04:19.702Z" }, + { url = "https://files.pythonhosted.org/packages/4d/47/e1a0e39f4a2b881f6071225afaf94a6547001b5aefc1566734d73c685934/aiohttp-3.14.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:6e4251c0ba4624a68a2c11471a1ac54c3306876c21f0ae86de085cc9241c8905", size = 567836, upload-time = "2026-10-11T01:04:22.235Z" }, + { url = "https://files.pythonhosted.org/packages/c3/1d/817d85836f52b687160064a326e62e037dc42f1ad5b6b5188a70e5c134b5/aiohttp-3.14.5-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e4f5cf4dc72a71c4cfa9751b4950be22f733626670230d46e7d606592aa22d59", size = 2051409, upload-time = "2026-10-11T01:04:24.821Z" }, + { url = "https://files.pythonhosted.org/packages/f7/25/e8ea6fc212a9aabce982917346ce8ecab0929c74b60232a056dd11c99da0/aiohttp-3.14.5-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:dbf53ae2601b7fd5a93c3944deea3a78d40f495226d582c35ef7a433425ce2b2", size = 1936493, upload-time = "2026-10-11T01:04:27.456Z" }, + { url = "https://files.pythonhosted.org/packages/24/33/de0517f71f1a19feea4aff78a2ec4ec2d98634129ec30ead78fce2f8f81b/aiohttp-3.14.5-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:657291433bf4dd3142f3abac495764cd47d0c7c92087751e6666c6447e65fcef", size = 2021405, upload-time = "2026-10-11T01:04:30.276Z" }, + { url = "https://files.pythonhosted.org/packages/c4/11/ddaf2e7930543e9f0cad3a1c54e1af0c1bd2fae3973d568c4263d3b010e9/aiohttp-3.14.5-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3e51a27980c3788e6e6b3325d694fdd4898087fa8a86b2763af77b39353da41e", size = 2142017, upload-time = "2026-10-11T01:04:33.022Z" }, + { url = "https://files.pythonhosted.org/packages/1d/7b/58784353c06de8adc20f426daad3d85dd86fd55331c713a3f4b638c94573/aiohttp-3.14.5-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:82c7583cd3dfdc7dcc927835b4f6c7faae7ecc1ba3ca5879321621ae2e6f8e84", size = 2002482, upload-time = "2026-10-11T01:04:35.94Z" }, + { url = "https://files.pythonhosted.org/packages/b9/f0/417d9535caa9e165ffe6a53e2347a78107e7c87dcb0e10aca315c3af0344/aiohttp-3.14.5-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6fdcd6af7e2e51d1ba1b4bea16e97b074bcb7b5dd0246a9d8201341bb28085a0", size = 1791774, upload-time = "2026-10-11T01:04:38.733Z" }, + { url = "https://files.pythonhosted.org/packages/98/01/25e49c2e8a01b9f0e19ca0a8448ad50aa2bdf96c8cd41e92bd45af044784/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:c8859a013ae0de1074660992139a1a440df3e6b219b86cf0d3f11c2692bb4fe3", size = 1970358, upload-time = "2026-10-11T01:04:41.66Z" }, + { url = "https://files.pythonhosted.org/packages/2d/fc/c132fd3465b6c7e4ce0193154f602c3e6c46b680e4da7eb3bd0d8a40d1c7/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:8966ecac808dd5f473c9c4cefd10cd3ffda71c18a4d3493b7c7d2ae1803bf2cc", size = 1969192, upload-time = "2026-10-11T01:04:44.66Z" }, + { url = "https://files.pythonhosted.org/packages/95/4e/d58b45e7dba4eb607eca11fc0a4aa77ae0f39c11afa804635a61ce18cff4/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3093b72c215bda16ce961a6d073f6e71d46e022962a9d5d457c5d4d421c78b57", size = 1963618, upload-time = "2026-10-11T01:04:47.505Z" }, + { url = "https://files.pythonhosted.org/packages/a2/d9/f6ac50946efb3490428ef52b56e62c1c6b7f9c6ff3ec6083535526c83e60/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:149fb56caf7acb67073126f675d0958d9c4b3125fcd3f6d4877df98aa8a97ce9", size = 1784817, upload-time = "2026-10-11T01:04:50.287Z" }, + { url = "https://files.pythonhosted.org/packages/d0/2f/f255eb63da788cd8a452fe350869c03266ccad7d884925f6963c87808f24/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:293d3ae7c6a0ed176a42e59a1b5fde825ead65c835360f734148e96729f928d2", size = 1995956, upload-time = "2026-10-11T01:04:53.213Z" }, + { url = "https://files.pythonhosted.org/packages/d9/9b/241aa3393eaafda0034470add1625f82a4c252901108723b283a9b0b32ca/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:3f2dcc00191fd563e9075181a14ec31d7dd63223ced7582cc70a15a499de0c79", size = 1967794, upload-time = "2026-10-11T01:04:55.958Z" }, + { url = "https://files.pythonhosted.org/packages/5f/7f/a68e689288c9e4bfcf8d0979f2b12b774bf01861985420df6150eba5448e/aiohttp-3.14.5-cp315-cp315t-win32.whl", hash = "sha256:7779cd97e61ebe583ec2f1c5616cdd038aa08a4453b1848c67842176d054948e", size = 503876, upload-time = "2026-10-11T01:04:58.978Z" }, + { url = "https://files.pythonhosted.org/packages/a4/78/49b0299da6d54de19fc6fdc6889d50233ac47d192a461624f4fc010fde83/aiohttp-3.14.5-cp315-cp315t-win_amd64.whl", hash = "sha256:0e6f16f5e49c4b8267988c05ab07760d7064cea57d077c3d068d04b0fbb992cb", size = 530957, upload-time = "2026-10-11T01:05:02.23Z" }, + { url = "https://files.pythonhosted.org/packages/21/d4/b0afc936aeb6d2f93157e3408b069ec5d7934429ae7d023de5e0953b1887/aiohttp-3.14.5-cp315-cp315t-win_arm64.whl", hash = "sha256:1aead151c3abbac6b32942e452020cb66d7efc099d253cc6c20f748e926c858b", size = 510408, upload-time = "2026-10-11T01:05:05.362Z" }, + { url = "https://files.pythonhosted.org/packages/68/30/173960c42b05a6c59f7558e4b12a4b0d9ba376cf6aa9bde7f9e08a30ca8d/aiohttp-3.14.5-py3-none-any.whl", hash = "sha256:efc21a454892828368b11c2c780de0ff8bc991f73f6b99c6b66e56205470929b", size = 279517, upload-time = "2026-10-11T01:05:08.523Z" }, ] [[package]] @@ -236,39 +270,38 @@ wheels = [ [[package]] name = "annotated-doc" -version = "0.0.4" +version = "0.0.5" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/57/ba/046ceea27344560984e26a590f90bc7f4a75b06701f653222458922b558c/annotated_doc-0.0.4.tar.gz", hash = "sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4", size = 7288, upload-time = "2025-11-10T22:07:42.062Z" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/8e/38aa427ed5402449e226975b649c5dc73ccadfefeb95e6aecb8f8ea4b6b6/annotated_doc-0.0.5.tar.gz", hash = "sha256:c7e58ce09192557605d8bbd92836d7e1d520ac9580096042c0bfd197efacf1bb", size = 10758, upload-time = "2026-07-28T13:50:58.129Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/d3/26bf1008eb3d2daa8ef4cacc7f3bfdc11818d111f7e2d0201bc6e3b49d45/annotated_doc-0.0.4-py3-none-any.whl", hash = "sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320", size = 5303, upload-time = "2025-11-10T22:07:40.673Z" }, + { url = "https://files.pythonhosted.org/packages/3e/30/e900b21425a860e195f32e37657aa1f7c7f2b1bfb26f03ca209b90933c06/annotated_doc-0.0.5-py3-none-any.whl", hash = "sha256:117bac03a25ede5df5440e855b32d556049ca169ead221505badf432fed4b101", size = 5302, upload-time = "2026-07-28T13:50:57.239Z" }, ] [[package]] name = "annotated-types" -version = "0.7.0" +version = "0.8.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" } +sdist = { url = "https://files.pythonhosted.org/packages/5f/56/a8120250d128bed162cd73c76d45f6ef9991f3e068f62a8ee060afa3104a/annotated_types-0.8.0.tar.gz", hash = "sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7", size = 15893, upload-time = "2026-07-23T20:16:13.995Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" }, + { url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" }, ] [[package]] name = "anthropic" -version = "0.117.0" +version = "1.13.0" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "anyio", marker = "python_full_version >= '3.11'" }, - { name = "distro", marker = "python_full_version >= '3.11'" }, - { name = "docstring-parser", marker = "python_full_version >= '3.11'" }, - { name = "httpx", marker = "python_full_version >= '3.11'" }, - { name = "jiter", marker = "python_full_version >= '3.11'" }, - { name = "pydantic", marker = "python_full_version >= '3.11'" }, - { name = "sniffio", marker = "python_full_version >= '3.11'" }, - { name = "typing-extensions", marker = "python_full_version >= '3.11'" }, + { name = "anyio" }, + { name = "docstring-parser" }, + { name = "httpx2" }, + { name = "jiter" }, + { name = "pydantic" }, + { name = "sniffio" }, + { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/41/0d/8f71d535edb0d438f023bd825fb65f67c14fa88a2bd6b75f292a58a63de4/anthropic-0.117.0.tar.gz", hash = "sha256:98107f2b76439641e0ae2a1754087534b8f178dbab99d6eb1bc4b7bc8c744496", size = 989933, upload-time = "2026-07-16T19:36:13.07Z" } +sdist = { url = "https://files.pythonhosted.org/packages/0b/ed/e76e50601b7c476bcb9a2a7a4c4dab6f1a9b2c03e3922de8b3ec599ccbc5/anthropic-1.13.0.tar.gz", hash = "sha256:ad11d9bb9adafdfea26113943bcde9973e2a439ebeeda6c89ff3e3d85bb2f5c1", size = 1567362, upload-time = "2026-10-09T15:29:08.803Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b7/4c/917d21d6619a4475cdafc6d13a69fdb3b901ddac57e76caca5a25c117b6d/anthropic-0.117.0-py3-none-any.whl", hash = "sha256:451a0a6905f11dff7663d13e4ee5dbf909eb8942b1d049803c7b937a13ac47ec", size = 998327, upload-time = "2026-07-16T19:36:11.225Z" }, + { url = "https://files.pythonhosted.org/packages/ad/9a/a835340c91bc9a233bd54c05fc438fe07cbef71ca667f24f3892a268ae20/anthropic-1.13.0-py3-none-any.whl", hash = "sha256:157bd74dbf6a595cf9e5fcac557c791fd297924dc48261f57470c2ed6f4e6671", size = 1958595, upload-time = "2026-10-09T15:29:10.689Z" }, ] [[package]] @@ -282,25 +315,79 @@ wheels = [ [[package]] name = "anyio" -version = "4.14.2" +version = "4.15.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, { name = "idna" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/61/cc/a381afa6efea9f496eff839d4a6a1aed3bfafc7b3ab4b0d1b243a12573dd/anyio-4.14.2.tar.gz", hash = "sha256:cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f", size = 260176, upload-time = "2026-07-12T20:29:07.082Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/da/35/f2287558c17e29fafc8ef3daf819bb9834061cfa43bff8014f7df7f63bdc/anyio-4.14.2-py3-none-any.whl", hash = "sha256:9f505dda5ac9f0c8309b5e8bd445a8c2bf7246f3ce950121e45ea15bc41d1494", size = 125813, upload-time = "2026-07-12T20:29:05.763Z" }, -] - -[[package]] -name = "async-timeout" -version = "5.0.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/a5/ae/136395dfbfe00dfc94da3f3e136d0b13f394cba8f4841120e34226265780/async_timeout-5.0.1.tar.gz", hash = "sha256:d9321a7a3d5a6a5e187e824d2fa0793ce379a202935782d555d6e9d2735677d3", size = 9274, upload-time = "2024-11-06T16:41:39.6Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/fe/ba/e2081de779ca30d473f21f5b30e0e737c438205440784c7dfc81efc2b029/async_timeout-5.0.1-py3-none-any.whl", hash = "sha256:39e3809566ff85354557ec2398b55e096c8364bacac9405a7a1fa429e77fe76c", size = 6233, upload-time = "2024-11-06T16:41:37.9Z" }, + { name = "typing-extensions", marker = "python_full_version < '3.15'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a9/d2/f4d173e22df740bc37b1db102b386ba719b66e95b0f0d751f556b387e6d2/anyio-4.15.1.tar.gz", hash = "sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94", size = 276966, upload-time = "2026-09-05T10:42:39.44Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/12/b8/4bd346e22b28902df4d651910f5242c28d84e4a5c2435ca5c3f797ed7e2e/anyio-4.15.1-py3-none-any.whl", hash = "sha256:6152fdbbf9a77fdec97731721bebf7c4c44f7c29b424b0065826173efc7ed101", size = 132079, upload-time = "2026-09-05T10:42:37.923Z" }, +] + +[[package]] +name = "ast-serialize" +version = "0.13.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/21/d5/5dc1ee8a80c3b20a0b63c61b43ba6bc53517faecd1def47bcd752d22268e/ast_serialize-0.13.1.tar.gz", hash = "sha256:401cc84e8888d4d76f2c8d296fa006ed1a5ff993b6aff90dd777c03973efd025", size = 955137, upload-time = "2026-10-17T00:04:17.183Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f3/a8/fbd136b9f70c59e75f59a8e974c84102976f1201828b4f886480ba956936/ast_serialize-0.13.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:3e129d44b0cffbea24a7f40117ce49e30993c3d119e584d4817ebd6f87246456", size = 897306, upload-time = "2026-10-17T00:02:52.479Z" }, + { url = "https://files.pythonhosted.org/packages/50/3f/2ad51e9823a790e7a70fd781e9595ab3abeace27f3aefcaa1939457efd72/ast_serialize-0.13.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:523d45bab16ddaf1399c04c4fe81bbf180f81e33c2f7bcbe76be56b0f7311ab4", size = 1236082, upload-time = "2026-10-17T00:02:54.82Z" }, + { url = "https://files.pythonhosted.org/packages/c0/5c/8e959db5cc2237f9d4c560a8e2253c98f9746883fb4774651e4cda458901/ast_serialize-0.13.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:638333fb8ae72c62753f9e794fda20290883ddc65b0d85e26e08f8bb227567ad", size = 1221242, upload-time = "2026-10-17T00:02:56.395Z" }, + { url = "https://files.pythonhosted.org/packages/d6/05/ab1c56c3b7adcac88764bba609502d6b4989e449b2dd60eb478e1d20e369/ast_serialize-0.13.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc34c670747d85d4232834665e247009413eaebe47c69eaf60a5c439aaecaed9", size = 1282105, upload-time = "2026-10-17T00:02:58.275Z" }, + { url = "https://files.pythonhosted.org/packages/0d/f4/41981fcd2ddffe0760e5326be9dcbd2eda9478a8430a637e5123bd8fcb26/ast_serialize-0.13.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8c8ebd419811c435812d242fb2a173e57dfede198c9ac9a0a584666ebc9b9331", size = 1287905, upload-time = "2026-10-17T00:03:00.068Z" }, + { url = "https://files.pythonhosted.org/packages/6a/43/b783addc5681153707121991b7b47892f7e9c8ba58a0d03b71a3b023ba47/ast_serialize-0.13.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8899c038b1c15ae8b98e379057fb3ef398ceb0b21d1737a8156dd5a0923b7e51", size = 1541806, upload-time = "2026-10-17T00:03:01.503Z" }, + { url = "https://files.pythonhosted.org/packages/47/10/969db095038ee15270f65ad20d1129c5e4da605bf7e93b70ae640f1c8a9f/ast_serialize-0.13.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e14c4de98f965647a74e6eaf37e20207124e45451ccd36e84a6f6ebab45e0372", size = 1309946, upload-time = "2026-10-17T00:03:02.971Z" }, + { url = "https://files.pythonhosted.org/packages/06/dd/7c623d2fb0b868948952d1787e629a43b866f7d4caefd5445e20aefacec4/ast_serialize-0.13.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7f3e8a3eff69af640db985360fef35073fb46956dfc3e5c614cf00920d2746dd", size = 1302773, upload-time = "2026-10-17T00:03:04.378Z" }, + { url = "https://files.pythonhosted.org/packages/d4/c2/4d49469110a19a44fc6269f4fd59679bcf84df068f185f89b73bee4da19b/ast_serialize-0.13.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:75d7750fe98f6f35a96c43aba8d98a2e623e22c778a0c17ab9ede92eb10f5d82", size = 1299579, upload-time = "2026-10-17T00:03:05.88Z" }, + { url = "https://files.pythonhosted.org/packages/9d/9a/2d381f1f262dda15affc8ad643fba1619eb07e7d9f8bd904deffef183006/ast_serialize-0.13.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:43e8ddd63e80fc280c2f790157386f27f9b9f6ccb9c4f8e803b863cbfb085769", size = 1355969, upload-time = "2026-10-17T00:03:07.321Z" }, + { url = "https://files.pythonhosted.org/packages/9d/9c/2266794e6c25fa9ce51ce04a9bf4b7e330e3ac9351ba3fa14e487678acdb/ast_serialize-0.13.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:9221e09496fb942901993c1812ee87950cc0ecbb514c7c0f1f5fa6d78f701ed8", size = 1460227, upload-time = "2026-10-17T00:03:08.733Z" }, + { url = "https://files.pythonhosted.org/packages/2b/d6/14deb28e5d8f328f626a0778ea2cf98fe908f2bbcccd804cb6f449ee1782/ast_serialize-0.13.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:7a5c38bdb93669c596f94fb7204dd6ebe4fadb19058ac9a2faf2948c2a175f96", size = 1562691, upload-time = "2026-10-17T00:03:10.25Z" }, + { url = "https://files.pythonhosted.org/packages/f5/19/7a28c0e5ba54f0d3e054f847a2a549b748cb179ab433321a8dc1b39e398d/ast_serialize-0.13.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:acf4e9f055d75058ab01536da330648746f2f82b7697a85230547f2d5ebe895c", size = 1558669, upload-time = "2026-10-17T00:03:11.799Z" }, + { url = "https://files.pythonhosted.org/packages/18/9a/f9e2690eab58217f1d395a964a78efa7eaf813a1e38be8dfd9a8d45d0840/ast_serialize-0.13.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:87427913c325adc811e81e7c9a757b061f47ef1e29114ac479aa0953a2687a98", size = 1665071, upload-time = "2026-10-17T00:03:13.284Z" }, + { url = "https://files.pythonhosted.org/packages/8e/f3/ef5b159a0d7161b404f05e7ec21cf7735ee7edc10c000cd2cbbc7bb6b69a/ast_serialize-0.13.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:ad88921f95b92bc144d9ad059a0e16f8c1ae69f5239f2d3c6536fd2774f73dfe", size = 1473364, upload-time = "2026-10-17T00:03:14.563Z" }, + { url = "https://files.pythonhosted.org/packages/1d/87/6e8ac4a865124a12cc4f915bf1bcfac3bba426cd5f58d3712a873ee61012/ast_serialize-0.13.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f8b17e2921e56621bcb46792bd3e0b82ca3b85de78d5936e7b8174ba1758b0aa", size = 1500566, upload-time = "2026-10-17T00:03:15.917Z" }, + { url = "https://files.pythonhosted.org/packages/f5/1e/29155f1621433008013ad5c940a03d41a676be0680c41527040472d37583/ast_serialize-0.13.1-cp314-cp314t-win32.whl", hash = "sha256:2f9a9ce8b0994f757b941f7f7fe384a6666b4162b941ebc5c248081baea18e47", size = 1128674, upload-time = "2026-10-17T00:03:17.481Z" }, + { url = "https://files.pythonhosted.org/packages/bb/64/2506da65143ea138de5822e9173e0b72320a2f70e23bd723f044033175f1/ast_serialize-0.13.1-cp314-cp314t-win_amd64.whl", hash = "sha256:5d99910e6b9a9b9360bcca2ae99aee36cc912ce058df2a57d1c33099b6cb2593", size = 1163306, upload-time = "2026-10-17T00:03:19.046Z" }, + { url = "https://files.pythonhosted.org/packages/6d/8f/c7cb22638899b0cf15908809c270560e46395e65604bc59e4b623ab9f405/ast_serialize-0.13.1-cp314-cp314t-win_arm64.whl", hash = "sha256:a789cbe14d0a0e9ec9b32a456e5abc81ad8799479c3cfd88a29e3442262aebe6", size = 1133775, upload-time = "2026-10-17T00:03:20.377Z" }, + { url = "https://files.pythonhosted.org/packages/2b/e2/b0c140fe50fa39dd249e382f7733af6f816c90021fe7959a0b026f86237f/ast_serialize-0.13.1-cp315-abi3.abi3t-macosx_10_12_x86_64.whl", hash = "sha256:23d768369b89d551077dc173da6892fad00443338417523b6732f4e8ba4a7ed5", size = 1236160, upload-time = "2026-10-17T00:03:21.945Z" }, + { url = "https://files.pythonhosted.org/packages/23/c4/a8a2ca21e3943555b48221f8fba546877a7ad39efaf6505506524967d7c4/ast_serialize-0.13.1-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:68f8829d114dab6c9db4a8bbb8d0e342958faee1b5e15a29022678df639960f8", size = 1222214, upload-time = "2026-10-17T00:03:23.462Z" }, + { url = "https://files.pythonhosted.org/packages/15/19/2f58f2ba64e4799b39de85c140aef09a03aa6ea53be75dd292a9d9b9d8ae/ast_serialize-0.13.1-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e385b17d5bde892a6184003a9aff3518387908b73f8f5ea539313c07c8c0ede", size = 1282979, upload-time = "2026-10-17T00:03:24.695Z" }, + { url = "https://files.pythonhosted.org/packages/b1/af/ca6087fe84210c1ccd43e3182917bb70649fa1e69745a90c1d59ba08fea8/ast_serialize-0.13.1-cp315-abi3.abi3t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:02686b281ec9b8e9614f6f0db27e12e4cac515f336c5d05b678bc9eb73ff2af5", size = 1288596, upload-time = "2026-10-17T00:03:26.04Z" }, + { url = "https://files.pythonhosted.org/packages/b0/2c/4ef964c763329a0347125e745ec0451ba4fbaceec9efe2ac729b7cd55f17/ast_serialize-0.13.1-cp315-abi3.abi3t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a8ab2c2585b2e22e48cd4aff2136fce4eab4ced569b85f150ef9a5a5d6f34d49", size = 1545540, upload-time = "2026-10-17T00:03:27.52Z" }, + { url = "https://files.pythonhosted.org/packages/bb/85/aa961dbb75813cfa94de0ce9a16a9510c226b95f604c405421e727f44bb0/ast_serialize-0.13.1-cp315-abi3.abi3t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c652d9f5d52d8b81eff3ff2c95c9dd0f281de45f6ad5d3fa95527550c396454a", size = 1309374, upload-time = "2026-10-17T00:03:29.091Z" }, + { url = "https://files.pythonhosted.org/packages/b4/e6/f2b67c327d9f9533e41791804403ccc2dc457821195a2e51f0b587a90b90/ast_serialize-0.13.1-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:121e1d08d58b75c15491cc3003609cbad71ac2b0016043c36d30a6b2032b6605", size = 1303466, upload-time = "2026-10-17T00:03:30.451Z" }, + { url = "https://files.pythonhosted.org/packages/73/1d/33f18b81d1bb1f5d682943ea92fda8130a6593627f12f6201668d40824fd/ast_serialize-0.13.1-cp315-abi3.abi3t-manylinux_2_31_riscv64.whl", hash = "sha256:30cf89b6a6844542d116c758725d13de5b97b9410a51ee577715f761270d0c1c", size = 1300576, upload-time = "2026-10-17T00:03:32.102Z" }, + { url = "https://files.pythonhosted.org/packages/25/cb/64914144925f1a4abdd9217e717b122255c38fc5ebe4342f92052f3bacbc/ast_serialize-0.13.1-cp315-abi3.abi3t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:732aaae9e498c973fc63fd7f308009b57c4afa6ff59d0b674d894e57d0bca01a", size = 1355960, upload-time = "2026-10-17T00:03:33.676Z" }, + { url = "https://files.pythonhosted.org/packages/ee/80/bd29379fab2bce19adc0bf9177002b11b23dfe8d8fecf409998b458b4624/ast_serialize-0.13.1-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:d9c1a920b2aa0c1e016bed7721689717034ca0dba64ac3a3ff243b003d4e8dd8", size = 1459779, upload-time = "2026-10-17T00:03:35.09Z" }, + { url = "https://files.pythonhosted.org/packages/83/89/012dbe733de05ffdf8e40ca0f9fa5d417cb16ec93a74463c57c001914198/ast_serialize-0.13.1-cp315-abi3.abi3t-musllinux_1_2_armv7l.whl", hash = "sha256:847cad4c22953823f5e76d0b126c6f9da670cfa45b1df41b9324e22189d77611", size = 1563399, upload-time = "2026-10-17T00:03:37.285Z" }, + { url = "https://files.pythonhosted.org/packages/69/37/ee4bcb0358bee38744eb0f18560446572d095fe3bf6b63d6f739d08a839c/ast_serialize-0.13.1-cp315-abi3.abi3t-musllinux_1_2_i686.whl", hash = "sha256:aca07de3ca8e3d9f2b716c3c31f4f384fe4bd2d03e09912417cff7a3e08036f7", size = 1558808, upload-time = "2026-10-17T00:03:38.711Z" }, + { url = "https://files.pythonhosted.org/packages/54/1c/ff44c5355251d61ef22934c4430bb31a61de4781d25a992154aac9b8c82a/ast_serialize-0.13.1-cp315-abi3.abi3t-musllinux_1_2_ppc64le.whl", hash = "sha256:5db12d843d931b9d1f1519ce66b9cbfe72d8563b75c1204d255322254d1964dd", size = 1666324, upload-time = "2026-10-17T00:03:40.376Z" }, + { url = "https://files.pythonhosted.org/packages/c8/bb/6da4bfc8aa3403e6447607131bf3463acaf954d990c6c8b6787c1902ddfe/ast_serialize-0.13.1-cp315-abi3.abi3t-musllinux_1_2_riscv64.whl", hash = "sha256:fb8021f4dc3296de18737e3b8b34994411da725374d74a0b9eb32a738f2a23d0", size = 1474089, upload-time = "2026-10-17T00:03:41.715Z" }, + { url = "https://files.pythonhosted.org/packages/21/97/897e33bef2eefd880e6350e375cc66bc5bcd00a139be480fd655f5b3f095/ast_serialize-0.13.1-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:0d764913374ba21df8cd618045b371ed104ce55c6276de7c59e554a4f5ba26fd", size = 1501542, upload-time = "2026-10-17T00:03:43.08Z" }, + { url = "https://files.pythonhosted.org/packages/8d/4c/821211ac83870c27e4412381b7c7838336456b40575bf840e4680b2018d9/ast_serialize-0.13.1-cp315-abi3.abi3t-win32.whl", hash = "sha256:2bad302ae2427454ef9dab71bd5c3ad67188860c39d36daee38f72031edb39c4", size = 1126118, upload-time = "2026-10-17T00:03:44.616Z" }, + { url = "https://files.pythonhosted.org/packages/1f/86/2b2d5e6c4fa352874a80618e742ffd32d249dee6c119f4233b51afc6b8f4/ast_serialize-0.13.1-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:032b09d86c785c3984e975378b7861f2a68ac44e22ba7b07b93a536b2524eeb8", size = 1163766, upload-time = "2026-10-17T00:03:45.986Z" }, + { url = "https://files.pythonhosted.org/packages/77/a3/d610cfcdabaa44fd62a54ca1fc57a7dba120643798b089a14914973562de/ast_serialize-0.13.1-cp315-abi3.abi3t-win_arm64.whl", hash = "sha256:929eda0c419e622ab49df3a4c45f81c57dcc10874bbad55d0470a4a03324dac3", size = 1134043, upload-time = "2026-10-17T00:03:48.453Z" }, + { url = "https://files.pythonhosted.org/packages/f0/89/0e30f9eddf7d44ccf9d25979030754fd0457af61fa4279acb8c293a04f97/ast_serialize-0.13.1-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:bf53a3ba1cbe45399fc1e4ccd684b8f2a11cca450f89706b79122f478534c6f5", size = 897546, upload-time = "2026-10-17T00:03:50.093Z" }, + { url = "https://files.pythonhosted.org/packages/81/92/d705be88ff452b9ba0088b554a0cbd308fd01879da092b33fd2ad7d1aa60/ast_serialize-0.13.1-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:4bcf1d5f4eefecaa325a34ecf079b2741189e7d0821523f92cb343a389a67489", size = 1242416, upload-time = "2026-10-17T00:03:51.521Z" }, + { url = "https://files.pythonhosted.org/packages/60/c2/98370845a7f35cb8a25782e78284b48e01bf3128339881d48d613f304f8f/ast_serialize-0.13.1-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:1b158f1c9e3a0d386913924c57995d6df78224868a4d0f215bdd41587c97b34a", size = 1229729, upload-time = "2026-10-17T00:03:52.825Z" }, + { url = "https://files.pythonhosted.org/packages/d8/8b/2d7ffed76addd9d3fcf37fb171400942735c8912264c763561a85407f6a8/ast_serialize-0.13.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77a6201b69ce42e919f2fd9a559138d5410b5d8afff7c3a6b1f500b0481ff7d8", size = 1292255, upload-time = "2026-10-17T00:03:54.148Z" }, + { url = "https://files.pythonhosted.org/packages/6b/2a/bb9e0e719d89cc950fadfcfcc9cb4bc7640419c4228c852f031ab8abf440/ast_serialize-0.13.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6eb0be64c9b8f1ed26637eef345abe75ea90351c92c85a8aec7838b3af971011", size = 1298501, upload-time = "2026-10-17T00:03:55.559Z" }, + { url = "https://files.pythonhosted.org/packages/7a/32/13ce07dce48226f5bd9cfd8f708ec101a8be05aa430cda4918ce31ce8c82/ast_serialize-0.13.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7f2427bddfca208e84de700044fadf9aef2769a70bae740a1bdabb89ee9e1117", size = 1553758, upload-time = "2026-10-17T00:03:56.952Z" }, + { url = "https://files.pythonhosted.org/packages/e2/fb/9b51d186db0c20ca28cbaaefd50f03b573c89327b9a2627820cbce22196b/ast_serialize-0.13.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:88df960e67184a71874e5b2ee014f87d1254a0dbc1f903c7bd7b1ab7733ecaef", size = 1318258, upload-time = "2026-10-17T00:03:58.418Z" }, + { url = "https://files.pythonhosted.org/packages/c5/fa/da311559dd3dae9af5825cf21660775a929b970f72e3786af3f2cd667944/ast_serialize-0.13.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9f99786e0d62082a5b121b3437f3167562133711df22128de1e9886f57f0b226", size = 1313260, upload-time = "2026-10-17T00:04:00.194Z" }, + { url = "https://files.pythonhosted.org/packages/2b/11/97a4b9e5b4776d72f47fcd9a09a497bbf68ec8c1ae074307a2c51e410d85/ast_serialize-0.13.1-cp39-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:a01b515b25a03184eff4acef25b981ae007916379682e908fc8785b342a0bf3e", size = 1309992, upload-time = "2026-10-17T00:04:01.575Z" }, + { url = "https://files.pythonhosted.org/packages/2e/c4/62f85121a80cd451ef04f550cf0f7ea0ad9ff46cc4e9a5b9ae439b6527b1/ast_serialize-0.13.1-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:29422d7bcd9e7f39411571c36cec45ce8a7a9b3ad4b2e7aa64497c15a9e397f6", size = 1362715, upload-time = "2026-10-17T00:04:02.881Z" }, + { url = "https://files.pythonhosted.org/packages/c1/fa/c5f4a545f72a7681e3295bab6e3600ee0862ec4391bed961fe9f735b67e0/ast_serialize-0.13.1-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:6ffb0f548a7dc126067fdfb7b2325ab5dfcdeecc29faf5e0f0461c96d6ebfa3d", size = 1469931, upload-time = "2026-10-17T00:04:04.181Z" }, + { url = "https://files.pythonhosted.org/packages/38/a9/65aed4f8fa7a001a7cfdc03e68e844517ab041ba6fb614b7d78a1d6ac056/ast_serialize-0.13.1-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:2876444a5f87a7c76f371af3c07c2fda563a08bc8af52568df812e8aba4bf568", size = 1570945, upload-time = "2026-10-17T00:04:05.778Z" }, + { url = "https://files.pythonhosted.org/packages/fb/8c/44b2da991cede79bfbf52089f33a5f0168945466b3d9cd38b5dcf08e7130/ast_serialize-0.13.1-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:885a62ec6481ce58ab24c6357360d7a82023b62dd7e5e7ceccf59e9662a3272b", size = 1569978, upload-time = "2026-10-17T00:04:07.347Z" }, + { url = "https://files.pythonhosted.org/packages/46/e4/109b2a5beca700237767d5add920c2f8e1ba9bd5799b0faf143d0e9cf4ef/ast_serialize-0.13.1-cp39-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:2015fd0165e463aac3b1aadc6a1fa1e5820c14ca950821f4fe02f8a3f6a388d6", size = 1676082, upload-time = "2026-10-17T00:04:08.7Z" }, + { url = "https://files.pythonhosted.org/packages/73/e0/7df70f6dbb11b5762da5416318f08316a1c51348e0d69ec79ca5f98f836a/ast_serialize-0.13.1-cp39-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:eb41e1906502ac80d24ff343f45008552a3f5b5158607959fe6a07dbfc6eb037", size = 1483207, upload-time = "2026-10-17T00:04:10.162Z" }, + { url = "https://files.pythonhosted.org/packages/1f/bc/523aa1c08bd69b5654621beb3dc1a9035715a4a63762fb8d219d6fb3eb81/ast_serialize-0.13.1-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ca9acc67f796aa2554fa3037dccc022a4b08b38b2ad153edfac9c9bb7cb1f3c6", size = 1512140, upload-time = "2026-10-17T00:04:11.589Z" }, + { url = "https://files.pythonhosted.org/packages/66/83/6607060659998f00afdea0d8375c1e6e2b7d515ab905090d9a5a02f48851/ast_serialize-0.13.1-cp39-abi3-win32.whl", hash = "sha256:4f98da562e5901d69c7dd30885594c5438f859edf354e9ac7517d188fb026c3a", size = 1131889, upload-time = "2026-10-17T00:04:12.953Z" }, + { url = "https://files.pythonhosted.org/packages/9f/6f/bafd6490fe7b355627fabe95f4417e3d02da93102c8552550eb9a0774e1e/ast_serialize-0.13.1-cp39-abi3-win_amd64.whl", hash = "sha256:ddf7cbc9c8abf70102c4a088efe154bb86bfb825b0a10e556d2b15972cf99bd7", size = 1171153, upload-time = "2026-10-17T00:04:14.362Z" }, + { url = "https://files.pythonhosted.org/packages/11/25/4235f4b375a67a37ac595bf478a5407a744eaf7b64113c1c3a5432b8d954/ast_serialize-0.13.1-cp39-abi3-win_arm64.whl", hash = "sha256:48f11d96c9ec71119612f8e79a8c55c12f2b136716d68347433c561d27a25f43", size = 1139035, upload-time = "2026-10-17T00:04:15.767Z" }, ] [[package]] @@ -314,15 +401,15 @@ wheels = [ [[package]] name = "authlib" -version = "1.7.2" +version = "1.9.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cryptography" }, { name = "joserfc" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/36/98/7d93f30d029643c0275dbc0bd6d5a6f670661ee6c9a94d93af7ab4887600/authlib-1.7.2.tar.gz", hash = "sha256:2cea25fefcd4e7173bdf1372c0afc265c8034b23a8cd5dcb6a9164b826c64231", size = 176511, upload-time = "2026-05-06T08:10:23.116Z" } +sdist = { url = "https://files.pythonhosted.org/packages/c9/dc/087c08741a98d234c9b98beef8a28d3c309f814d14b6156422c5815bf6d6/authlib-1.9.1.tar.gz", hash = "sha256:5c7d9848f47cac340f060f76ae0bc09b59f5c8e89cc1bb032d4370a0c55b5974", size = 182700, upload-time = "2026-10-14T14:17:52.307Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/fb/95/adcb68e20c34162e9135f370d6e31737719c2b6f94bc953fe7ed1f10fe21/authlib-1.7.2-py2.py3-none-any.whl", hash = "sha256:3e1faedc9d87e7d56a164eca3ccb6ace0d61b94abe83e92242f8dc8bba9b4a9f", size = 259548, upload-time = "2026-05-06T08:10:21.436Z" }, + { url = "https://files.pythonhosted.org/packages/39/44/a46089266de32a0d809023b6bf31b80a1f26a46954446a7ce695a565cbea/authlib-1.9.1-py2.py3-none-any.whl", hash = "sha256:8b9be8b1e5174dcbf5520e984f1a22dc2edae5b6e40a61d4cedbf86b97e9e69b", size = 266042, upload-time = "2026-10-14T14:17:50.695Z" }, ] [[package]] @@ -334,33 +421,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/02/ff/1175b0b7371e46244032d43a56862d0af455823b5280a50c63d99cc50f18/automat-25.4.16-py3-none-any.whl", hash = "sha256:04e9bce696a8d5671ee698005af6e5a9fa15354140a87f4870744604dcdd3ba1", size = 42842, upload-time = "2025-04-16T20:12:14.447Z" }, ] -[[package]] -name = "aws-requests-auth" -version = "0.4.3" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "requests" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/54/b2/455c0bfcbd772dafd4c9e93c4b713e36790abf9ccbca9b8e661968b29798/aws-requests-auth-0.4.3.tar.gz", hash = "sha256:33593372018b960a31dbbe236f89421678b885c35f0b6a7abfae35bb77e069b2", size = 10096, upload-time = "2020-05-27T23:10:34.742Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/af/11/5dc8be418e1d54bed15eaf3a7461797e5ebb9e6a34869ad750561f35fa5b/aws_requests_auth-0.4.3-py2.py3-none-any.whl", hash = "sha256:646bc37d62140ea1c709d20148f5d43197e6bd2d63909eb36fa4bb2345759977", size = 6838, upload-time = "2020-05-27T23:10:33.658Z" }, -] - -[[package]] -name = "aws-sam-translator" -version = "1.111.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "boto3" }, - { name = "jsonschema" }, - { name = "pydantic" }, - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/8e/31/4e6d6f0b9d4ead8eaa1c13a14d86834e7691acf5726fb49de98f8e195028/aws_sam_translator-1.111.0.tar.gz", hash = "sha256:6884d94e28dc20384e5e0396e9386a456fe59303d706924deb2646329b4d97d3", size = 374368, upload-time = "2026-07-02T00:31:39.601Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/c1/e3/505c9db9c4a4270ad12bac621f370cb02eabb224886c1b81960c658d9baa/aws_sam_translator-1.111.0-py3-none-any.whl", hash = "sha256:510d0ad8cd40b245a62004f2dc974ddbb6ff0d496bdec0bc7d9cd209b46d5fad", size = 440579, upload-time = "2026-07-02T00:31:38.077Z" }, -] - [[package]] name = "aws-xray-sdk" version = "2.15.0" @@ -404,19 +464,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/f4/be/6985abb1011fda8a523cfe21ed9629e397d6e06fb5bae99750402b25c95b/bashlex-0.18-py2.py3-none-any.whl", hash = "sha256:91d73a23a3e51711919c1c899083890cdecffc91d8c088942725ac13e9dcfffa", size = 69539, upload-time = "2023-01-18T15:21:24.167Z" }, ] -[[package]] -name = "beautifulsoup4" -version = "4.15.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "soupsieve" }, - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/43/65/318323f98dbee45d42dff61d8f047181bc6f2268a9068cfad035a46be5af/beautifulsoup4-4.15.0.tar.gz", hash = "sha256:288e3ca7d54b06f2ac191970bc275c1939cb46d450b255bf6718b04aa37ab4f7", size = 632571, upload-time = "2026-06-07T16:44:20.453Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/88/c6/92fcd42f1ba33e1184263f25bfabf3d27c383410470f169e4b8163bf9c17/beautifulsoup4-4.15.0-py3-none-any.whl", hash = "sha256:d6f88de62e1d4e38ecb1077eb9724cd0eff29d2a08ca16a401e9b9e93f117cf9", size = 109924, upload-time = "2026-06-07T16:44:21.566Z" }, -] - [[package]] name = "blinker" version = "1.9.0" @@ -456,23 +503,20 @@ wheels = [ [[package]] name = "botocore-stubs" -version = "1.43.14" +version = "1.43.112" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "types-awscrt" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/7f/81/79693e833291c00dc89ee610e5e915381b6f08233912e28df50106840780/botocore_stubs-1.43.14.tar.gz", hash = "sha256:9e3bc1fdd51da7473f0df726c82747a1b0ae913449d629659765c247fecc2039", size = 42738, upload-time = "2026-05-25T06:06:37.484Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f7/b4/11461e9eefc1a58acd87788f57fef2703fdadee4abdf39bdf890af029b99/botocore_stubs-1.43.112.tar.gz", hash = "sha256:eda6315f1976939aff1b9bb8bedd88ecc8bae9a1551a62b23050e876a4237dd1", size = 42914, upload-time = "2026-10-13T01:58:00.541Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/89/ca/f017727b11895908c5dedc829cf2ec35e0c4b2a26ba875db325fef2cefdf/botocore_stubs-1.43.14-py3-none-any.whl", hash = "sha256:fb98f1475c92fd718644e786b5c543a20f1b1f610e89e0a7191c3f1f429c75aa", size = 67093, upload-time = "2026-05-25T06:06:34.532Z" }, + { url = "https://files.pythonhosted.org/packages/9c/20/35b81efaa2a4818f67c585201bc912436d9cecb8a23385b66a2044aac188/botocore_stubs-1.43.112-py3-none-any.whl", hash = "sha256:a86d150dc924e072ede90d42415a6da81edc232330ea7ac4972e53fb3174f762", size = 67249, upload-time = "2026-10-13T01:57:57.419Z" }, ] [[package]] name = "bracex" -version = "3.0" +version = "3.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d0/f5/4473ad9b48cd0420a2d762a3750fa0e078e23e060b1af72662e5987e5530/bracex-3.0.tar.gz", hash = "sha256:b73f718d6bd98d8419e45df02426c86e9967c179949f779340d6c3a8c83b9111", size = 43162, upload-time = "2026-06-30T00:43:35.279Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e1/60/e2a6409041cb3f8ce7ac3d6917b5b30c39f81a0a5b2d414ec30f36fd96bf/bracex-3.1.tar.gz", hash = "sha256:35c69fc105f08d77c02722e8ae707c656ff298dd4d26c89bcb3c98fca8bc3614", size = 29040, upload-time = "2026-10-11T15:26:07.143Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f5/2e/68781b78e764e5ccc4af1e3d27e060069c73af90234853fa80000e7ee79d/bracex-3.0-py3-none-any.whl", hash = "sha256:3833e61c2f092d5aa0468fa2e6c6e990a306185abf763b6d122f0158e59c58a5", size = 11738, upload-time = "2026-06-30T00:43:34.196Z" }, + { url = "https://files.pythonhosted.org/packages/05/79/c1ba46e1acd235affd36ce1d3346320ddcda663c9482a9e5f34727db1d11/bracex-3.1-py3-none-any.whl", hash = "sha256:52002b8455658c21f3b6e5eb0f662b57ec9085f42709e58bc86eeab5bc4c37d7", size = 11925, upload-time = "2026-10-11T15:26:05.683Z" }, ] [[package]] @@ -495,227 +539,321 @@ filecache = [ [[package]] name = "certifi" -version = "2026.6.17" +version = "2026.7.22" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c9/c7/424b75da314c1045981bd9777432fad05a9e0c69daa4ed7e308bbaffe405/certifi-2026.6.17.tar.gz", hash = "sha256:024c88eeec92ca068db80f02b8b07c9cef7b9fe261d1d535abfd5abd6f6af432", size = 134594, upload-time = "2026-06-17T10:31:07.894Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a3/c2/24167ea9858356b47a87a50d39908bfdb72ceeefe0041586e704e5376b3a/certifi-2026.7.22.tar.gz", hash = "sha256:741e2c3b351ddf169a738da9f2c048608ff7f2c5cc02f1ebc6b118bb090d5d55", size = 138112, upload-time = "2026-07-22T03:35:12.644Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ef/2f/c5464532e965badff2f4c4c1a3a83f5697f0d7c407ed0cda44aaa99bb451/certifi-2026.6.17-py3-none-any.whl", hash = "sha256:2227dcbaafe0d2f59279d1762ddddc37783ed4354594f194ffc31d20f41fc3db", size = 133289, upload-time = "2026-06-17T10:31:06.348Z" }, + { url = "https://files.pythonhosted.org/packages/0b/a7/71ac2cff56fec219ed242bb11b8efb69fcc4bec75db06fb7bfe35de520e6/certifi-2026.7.22-py3-none-any.whl", hash = "sha256:62f22742b58a1a33014a2b6b706588a8d7e2a88ae7bd1a6ebe8c992928483775", size = 136983, upload-time = "2026-07-22T03:35:11.276Z" }, ] [[package]] name = "cffi" -version = "2.1.0" +version = "2.1.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pycparser", marker = "implementation_name != 'PyPy'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/57/5f/ff100cae70ebe9d8df1c01a00e510e45d9adb5c1fdda84791b199141de97/cffi-2.1.0.tar.gz", hash = "sha256:efc1cdd798b1aaf39b4610bba7aad28c9bea9b910f25c784ccf9ec1fa719d1f9", size = 531036, upload-time = "2026-07-06T21:34:30.382Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/c0/e9/6d7724983b3d5a0908dbf74f64038ade77c18646ff6636ec7894fd392ce1/cffi-2.1.0-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:b65f590ef2a44640f9a05dbb548a429b4ade77913ce683ac8b1480777658a6c0", size = 183837, upload-time = "2026-07-06T21:32:09.655Z" }, - { url = "https://files.pythonhosted.org/packages/69/aa/24580a278de21fd7322635556334d9b535f1cbc00b0a3919447cdf464c65/cffi-2.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:164bff1657b2a74f0b6d54e11c9b375bc97b931f2ca9c43fcf875838da1570dd", size = 184226, upload-time = "2026-07-06T21:32:11.196Z" }, - { url = "https://files.pythonhosted.org/packages/88/a9/02cae418ec4beb282ace11958d9d4737793439d561fadc7e6d56f2e2b354/cffi-2.1.0-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:c941bb58d5a6e1c3892d86e42927ed6c180302f07e6d395d08c416e594b98b46", size = 211107, upload-time = "2026-07-06T21:32:12.328Z" }, - { url = "https://files.pythonhosted.org/packages/3b/30/c806937ed5e4c2c7ac30d9d6b76b5dc57ff8b75d83800d9bb11a8253cf2a/cffi-2.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a016194dbe13d14ee9556e734b772d8d67b947092b268d757fd4290e3ba2dfc2", size = 218733, upload-time = "2026-07-06T21:32:13.67Z" }, - { url = "https://files.pythonhosted.org/packages/f9/cf/398272b8bbfd58aa314fda5a7f1cdbb26d1d78ae324a11211521315dd1f0/cffi-2.1.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:03e9810d18c646077e501f661b682fbf5dee4676048527ca3cffe66faa9960dd", size = 205543, upload-time = "2026-07-06T21:32:15.148Z" }, - { url = "https://files.pythonhosted.org/packages/45/ca/f91641185cdd90c36d317a9dc7f85e88ef8682d8b300977baff5e23c35d8/cffi-2.1.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:19c54ac121cad98450b4896fa9a43ee0180d57bc4bc911a33db6cab1efab6cd3", size = 205460, upload-time = "2026-07-06T21:32:16.479Z" }, - { url = "https://files.pythonhosted.org/packages/38/66/04781a77b411f0bb5b234d62c1814754ab75ebe455ccff1b08e8d7aae98f/cffi-2.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4d433a51f1870e43a13b6732f92aaf540ff77c2015097c78556f75a2d6c030e0", size = 218760, upload-time = "2026-07-06T21:32:17.98Z" }, - { url = "https://files.pythonhosted.org/packages/d0/9a/bb1d5ed9c3fcae158e9f6391bf309c95d98c2ac37ed56573228471d0af5e/cffi-2.1.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3d7f118b5adbfdfead90c25822690b02bc8074fba949bb7858bec4ebd55adb43", size = 221230, upload-time = "2026-07-06T21:32:19.407Z" }, - { url = "https://files.pythonhosted.org/packages/41/aa/3c1409cdd26094efacd1c36c66e0a6eb9d4296e4fd4f9901b8b2042f4323/cffi-2.1.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:c5f5df567f6eb216de69be06ce55c8b714090fae02b18a3b40da8163b8c5fa9c", size = 213524, upload-time = "2026-07-06T21:32:20.828Z" }, - { url = "https://files.pythonhosted.org/packages/fa/75/74dfb7c3fc6ebbd408038476bd4c1d7e925c62614e7b9c534ecc34218288/cffi-2.1.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:11b3fb55f4f8ad92274ed26705f65d8f91457de71f5380061eb6d125a768fecd", size = 220341, upload-time = "2026-07-06T21:32:21.9Z" }, - { url = "https://files.pythonhosted.org/packages/70/b6/9003c33a3e7d2c1306f5962e646457dcfe5a8cd8fce6bbe02d7af25db783/cffi-2.1.0-cp310-cp310-win32.whl", hash = "sha256:9d72af0cf10a76a600a9690078fe31c63b9588c8e86bf9fd353f713c84b5db0f", size = 174578, upload-time = "2026-07-06T21:32:23.073Z" }, - { url = "https://files.pythonhosted.org/packages/8a/26/710688310447531c7a22f857c7f79d9855ec18b03e04494ced723fb37e2f/cffi-2.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:fb62edb5bb52cca65fab91a63afa7561607120d26090a7e8fda6fb9f064726da", size = 185071, upload-time = "2026-07-06T21:32:24.671Z" }, - { url = "https://files.pythonhosted.org/packages/d3/67/85c89a59ba36a671e79638f44d466749f08179266a57e4f2ffdf92174072/cffi-2.1.0-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:02cb7ff33ded4f1532476731f89ede53e2e488a8e6205515a82144246ffa7dcc", size = 183845, upload-time = "2026-07-06T21:32:26.32Z" }, - { url = "https://files.pythonhosted.org/packages/ea/dd/e3b0baa2d3d6a857ac72b7efbf18e32e487c9cdafcc13049ad765495b15e/cffi-2.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f5bce581e6b8c235e566a14768a943b172ada3ed73537bb0c0be1edee312d4e7", size = 184186, upload-time = "2026-07-06T21:32:28.025Z" }, - { url = "https://files.pythonhosted.org/packages/65/68/9f3ef890cf3c6ab97bd531c5677f67613d302165d16f8142b2811782a614/cffi-2.1.0-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:30b65779d598c370374fefabf138d456fd6f3216bfa7bedfab1ba82025b0cd93", size = 211892, upload-time = "2026-07-06T21:32:29.565Z" }, - { url = "https://files.pythonhosted.org/packages/22/d7/1a74539db16d8bfd839ff1515948948efbb162e574650fd3d846896eea95/cffi-2.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:88023dfe18799507b73f1dbb0d14326a17465de1bc9c9c7655c22845e9ddc3a2", size = 218793, upload-time = "2026-07-06T21:32:30.951Z" }, - { url = "https://files.pythonhosted.org/packages/ec/d1/9a5b7169499e8e8d8e636de70b97ac7c9447104d2ff1a2cd94790cea5162/cffi-2.1.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:0a96b74cda968eebbad56d973efe5098974f0a9fb323865bf99ea1fd24e3e64c", size = 205737, upload-time = "2026-07-06T21:32:32.216Z" }, - { url = "https://files.pythonhosted.org/packages/ba/b0/e131a9c41f10607926278453d9596163594fe1c4ebc46efe3b5e5b34eb84/cffi-2.1.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a5781494d4d400a3f47f8f1da94b324f6e6b440a53387774002890a2a2f4b50f", size = 204909, upload-time = "2026-07-06T21:32:33.655Z" }, - { url = "https://files.pythonhosted.org/packages/fb/d2/4398416cd699b35167947c6e22aca52c47e69ad5695073c9f1f2c52e04aa/cffi-2.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:aa7a1b53a2a4452ada2d1b5dade9960b2522f1e61293a811a077439e39029565", size = 217883, upload-time = "2026-07-06T21:32:35.173Z" }, - { url = "https://files.pythonhosted.org/packages/a2/a5/d4fe77b589e5e82d43ebc809bf2e6474afe8e48e32ea050b9357645b6471/cffi-2.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:9d8272c0e483b024e1b9ad029821470ed8ec65631dbd90217469da0e7cd89f1c", size = 221251, upload-time = "2026-07-06T21:32:36.527Z" }, - { url = "https://files.pythonhosted.org/packages/22/f0/a2fc43084c0433caf7f461bccc013e28f848d04ee1c5ed7fce71423cf4d9/cffi-2.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:7762faa47e8ff7eb80bd261d9a7d8eea2d8baa69de5e95b70c1f338bbe712f02", size = 214250, upload-time = "2026-07-06T21:32:37.852Z" }, - { url = "https://files.pythonhosted.org/packages/04/8c/b925975448cf20634a9fbd5efceb807219db452653648d2897c0989cab2d/cffi-2.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:89095c1968b4ba8285840e131bf2891b09ae137fe2146905acae0354fbce1b5e", size = 219441, upload-time = "2026-07-06T21:32:39.146Z" }, - { url = "https://files.pythonhosted.org/packages/eb/da/5c4918a2d61d86fa927d716cb3d8e4626ef8dc8f605a599d32f33897f59a/cffi-2.1.0-cp311-cp311-win32.whl", hash = "sha256:64c753a0f87a256020004f37a1c8c02c480e725f910f0b2a0f3f07debd1b2479", size = 174496, upload-time = "2026-07-06T21:32:40.467Z" }, - { url = "https://files.pythonhosted.org/packages/f9/c8/6c2de1d55cf35ef8b92885d5ef280790f0fb9634d87ea1cc315176aecd61/cffi-2.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:4f26194e3d95e06501b942642855aed4f953d55e95d7d01b7c4483db3ecff458", size = 185113, upload-time = "2026-07-06T21:32:41.761Z" }, - { url = "https://files.pythonhosted.org/packages/9e/4e/e8d7cb5783f1841a3c8fb3a7735838d7484d08ec08c9f984b14cac1ac0e9/cffi-2.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:35aaea0c7ee0e58a5cd8c2fd1a48fdf7ece0d2699b7ecdda08194e9ce5dd9b3d", size = 179927, upload-time = "2026-07-06T21:32:42.961Z" }, - { url = "https://files.pythonhosted.org/packages/1e/85/990925db5df586ec90beb97529c853497e7f85ba0234830447faf41c3057/cffi-2.1.0-cp312-cp312-macosx_10_15_x86_64.whl", hash = "sha256:df2b82571a1b30f58a87bf4e5a9e78d2b1eff6c6ce8fd3aa3757221f93f0863f", size = 184829, upload-time = "2026-07-06T21:32:44.324Z" }, - { url = "https://files.pythonhosted.org/packages/4b/92/e7bb136ad6b5352603732cf907ef862ca103f20f2031c1735a46300c20c9/cffi-2.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:78474632761faa0fb96f30b1c928c84ebcf68713cbb80d15bab09dfe61640fde", size = 184728, upload-time = "2026-07-06T21:32:45.683Z" }, - { url = "https://files.pythonhosted.org/packages/c3/c0/d1ec30ffb370f748f2fb54425972bfef9871e0132e82fb589c46b6676049/cffi-2.1.0-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:5972433ad71a9e46516584ef60a0fda12d9dc459938d1539c3ddecf9bdc1368d", size = 214815, upload-time = "2026-07-06T21:32:48.557Z" }, - { url = "https://files.pythonhosted.org/packages/1b/dc/5620cf930688be01f2d673804291de757a934c90b946dbdc3d84130c2ea4/cffi-2.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b6422532152adf4e59b110cb2808cee7a033800952f5c036b4af047ee43199e7", size = 222429, upload-time = "2026-07-06T21:32:49.848Z" }, - { url = "https://files.pythonhosted.org/packages/4b/a4/77b53abbf7a1e0beb9637edbef2a94d15f9c822f591e85d439ffd91519a6/cffi-2.1.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:46b1c8db8f6122420f32d02fffb924c2fe9bc772d228c7c711748fff56aabb2b", size = 210315, upload-time = "2026-07-06T21:32:51.221Z" }, - { url = "https://files.pythonhosted.org/packages/58/0c/f528df19cc94b675087324d4760d9e6d5bfae97d6217aa4fac43de4f5fcc/cffi-2.1.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:d9fafc5aa2e2a39aaf7f8cc0c1f044a9b07fca12e558dca53a3cc5c654ad67a7", size = 208859, upload-time = "2026-07-06T21:32:52.512Z" }, - { url = "https://files.pythonhosted.org/packages/62/f2/c9522a81c32132799a1972c39f5c5f8b4c8b9f00488a23feaa6c06f07741/cffi-2.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1e9f50d192a3e525b15a75ab5114e442d83d657b7ec29182a991bc9a88fd3a66", size = 221844, upload-time = "2026-07-06T21:32:53.704Z" }, - { url = "https://files.pythonhosted.org/packages/6e/28/bd53988b9833e8f8ad539d26f4c07a6b3f6bcb1e9e02e7ca038250b3428d/cffi-2.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:98fff996e983a36d3aa2eca83af40c5821202e7e6f32d13ae94e3d2286f10cfe", size = 225287, upload-time = "2026-07-06T21:32:54.907Z" }, - { url = "https://files.pythonhosted.org/packages/79/99/0d0fd37f055224085f42bbb2c022d002e17dde4a97972822327b07d84101/cffi-2.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:379de10ce1ba048b1448599d1b37b24caee16309d1ac98d3982fc997f768700b", size = 223681, upload-time = "2026-07-06T21:32:56.329Z" }, - { url = "https://files.pythonhosted.org/packages/b0/80/c138990aa2a70b1a269f6e06348729836d733d6f970867943f61d367f8cc/cffi-2.1.0-cp312-cp312-win32.whl", hash = "sha256:9b8f0f26ca4e7513c534d351eca551947d053fac438f2a04ac96d882909b0d3a", size = 175269, upload-time = "2026-07-06T21:32:57.777Z" }, - { url = "https://files.pythonhosted.org/packages/a8/eb/f636456ff21a83fc13c032b58cc5dde061691546ac79efa284b2989b7982/cffi-2.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:c97f080ea627e2863524c5af3836e2270b5f5dfff1f104392b959f8df0c5d384", size = 185881, upload-time = "2026-07-06T21:32:59.253Z" }, - { url = "https://files.pythonhosted.org/packages/dd/2c/400ea43e721727dca8a65c4521390e9196757caba4a45643acb2b63271b8/cffi-2.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:6d194185eabd279f1c05ebe3504265ddfc5ad2b58d0714f7db9f01da592e9eb6", size = 180088, upload-time = "2026-07-06T21:33:02.278Z" }, - { url = "https://files.pythonhosted.org/packages/96/88/a996879e2eeccb815f6e3a5967b12a308257412acec882039d386bd2aa7b/cffi-2.1.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:10537b1df4967ca26d21e5072d7d54188354483b91dc75058968d3f0cf13fbda", size = 194331, upload-time = "2026-07-06T21:33:03.697Z" }, - { url = "https://files.pythonhosted.org/packages/58/85/7ae00d5c8dd6266f4e944c3db630f3c5c9a98b61d469c714d848b1d8138a/cffi-2.1.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a95b05f9baf29b91171b3a8bd2020b028835243e7b0ff6bb23e2a3c228518b1b", size = 196966, upload-time = "2026-07-06T21:33:05.353Z" }, - { url = "https://files.pythonhosted.org/packages/8c/e9/45c3a76ad8d43ad9261f4c95436da61128d3ca545d72b9612c0ab5be0b1c/cffi-2.1.0-cp313-cp313-macosx_10_15_x86_64.whl", hash = "sha256:15faec4adfff450819f3aee0e2e02c812de6edb88203aa58807955db2003472a", size = 184795, upload-time = "2026-07-06T21:33:06.699Z" }, - { url = "https://files.pythonhosted.org/packages/84/4c/82f132cb4418ee6d953d982b19191e87e2a6372c8a4ce36e50b69d6ade4a/cffi-2.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:716ff8ec22f20b4d988b12884086bcef0fc99737043e503f7a3935a6be99b1ea", size = 184746, upload-time = "2026-07-06T21:33:08.071Z" }, - { url = "https://files.pythonhosted.org/packages/a0/1c/4ed5a0e5bdca6cbc275556de3328dd1b76fd0c11cc13c88fe66d1d8715f2/cffi-2.1.0-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:63960549e4f8dc41e31accb97b975abaecfc44c03e396c093a6436763c2ea7db", size = 214747, upload-time = "2026-07-06T21:33:09.671Z" }, - { url = "https://files.pythonhosted.org/packages/3a/a6/e879bb68cc23a2bc9ba8f4b7d8019f0c2694bad2ab6c4a3701d429439f58/cffi-2.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ff067a8d8d880e7809e4ac88eb009bb848870115317b306666502ccad30b147f", size = 222392, upload-time = "2026-07-06T21:33:10.896Z" }, - { url = "https://files.pythonhosted.org/packages/88/f6/01890cfd63c08f8eb96a8319b0443690197d240a8bd6346048cf7bde9190/cffi-2.1.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:3b926723c13eba9f81d2ef3820d63aeceec3b2d4639906047bf675cb8a7a500d", size = 210285, upload-time = "2026-07-06T21:33:12.251Z" }, - { url = "https://files.pythonhosted.org/packages/a6/cf/2b684132056f438567b61e19d690dd31cd0921ace051e0a458be6074369e/cffi-2.1.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:47ff3a8bfd8cb9da1af7524b965127095055654c177fcfc7578debcb015eecd0", size = 208801, upload-time = "2026-07-06T21:33:13.617Z" }, - { url = "https://files.pythonhosted.org/packages/6f/08/f2e7d62c460faae0926f2d6e423694aa409ced3bc1fe2927a0a6e5f05416/cffi-2.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:799416bae98336e400981ff6e532d67d5c709cfb30afb79865a1315f94b0e224", size = 221808, upload-time = "2026-07-06T21:33:15.466Z" }, - { url = "https://files.pythonhosted.org/packages/38/37/04f54b8e63a02f3d908332c9effbf8c366167c6f733ed8a3d4f79b7e2a1e/cffi-2.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:961be50688f7fba2fa65f63712d3b9b341a22311f5253460ce933f52f0de1c8c", size = 225241, upload-time = "2026-07-06T21:33:16.869Z" }, - { url = "https://files.pythonhosted.org/packages/a9/d6/c72eecca433cd3e681c65ed313ab4835d9d4a379704d0f628a6a05f51c2e/cffi-2.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bf5c6cf48238b0eb4c086978c492ad1cbc22373fc5b2d7353b3a598ce6db887a", size = 223588, upload-time = "2026-07-06T21:33:18.239Z" }, - { url = "https://files.pythonhosted.org/packages/c6/4b/e706f67279140f92939da3475ad610df18bfd52d50f14953a8e5fede71d5/cffi-2.1.0-cp313-cp313-win32.whl", hash = "sha256:db3eb7d46527159a878ec3460e9d40615bc25ba337d477db681aea6e4f05c5d2", size = 175248, upload-time = "2026-07-06T21:33:19.799Z" }, - { url = "https://files.pythonhosted.org/packages/5a/47/59eb7975cb0e4ef0afa764ea945b29a5bb4537a9f771cb7d6c8a5dd74c95/cffi-2.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:8e74a6135550c4748af665b1b1118b6aab33b1fc6a16f9aff630af107c3b4512", size = 185717, upload-time = "2026-07-06T21:33:21.47Z" }, - { url = "https://files.pythonhosted.org/packages/5a/af/34fee85c48f8d94efc8597bc09470c9dd274c145f1c12e0fbc6ab6d38d74/cffi-2.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:2282cd5e38aa8accd03e99d1256af8411c84cdbee6a89d841b563fdbd1f3e50f", size = 180114, upload-time = "2026-07-06T21:33:22.515Z" }, - { url = "https://files.pythonhosted.org/packages/d8/f0/81478e482afa03f6d18dc8f2afb5edc45b3080853b634b5ed91961be0998/cffi-2.1.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d2117334c3af3bdcb9a88522b844a2bdb5efdc4f71c6c822df55486ae1c3347a", size = 194142, upload-time = "2026-07-06T21:33:23.657Z" }, - { url = "https://files.pythonhosted.org/packages/7d/95/8de304305cd9204974b0ca051b86d307cafca13aa575a0ef1b44d92c0d8c/cffi-2.1.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:702c436735fbe99d59ada02a1f65cfc0d31c0ee8b7290912f8fbc5cd1e4b16c3", size = 196819, upload-time = "2026-07-06T21:33:25.007Z" }, - { url = "https://files.pythonhosted.org/packages/20/71/7c8372d30e42415602ed9f268f7cfd66f1b855fed881ecd168bcb45dbc0b/cffi-2.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:1ff3456eab0d889592d1936d6125bbfbc7ae4d3354a700f8bd80450a66445d4d", size = 184965, upload-time = "2026-07-06T21:33:26.605Z" }, - { url = "https://files.pythonhosted.org/packages/d6/5c/584e626835f0375c928176c04137c96927165cb8733cdb3150ec04e5ee5e/cffi-2.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c4165821e131d6d4ca444347c2b694e2311bcfa3fe5a861cc72968f28867beac", size = 184952, upload-time = "2026-07-06T21:33:27.823Z" }, - { url = "https://files.pythonhosted.org/packages/2e/d2/065fcae1c73979fac8e054462478d0ff8a29c40cdc2ed7ea5676a061df53/cffi-2.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:276f20fffd7b396e12516ba8edf9509210ac248cbbc5acbc39cd512f9f59ebe6", size = 222353, upload-time = "2026-07-06T21:33:29.178Z" }, - { url = "https://files.pythonhosted.org/packages/ed/a5/e8bbb1ce5b3ac2f53ad6a10bde44318a5a8d99d4f4a000d44a6e39aeb3e4/cffi-2.1.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:7d5980a3433d4b71a5e120f9dd551403d7824e31e2e67124fe2769c404c06913", size = 210051, upload-time = "2026-07-06T21:33:30.534Z" }, - { url = "https://files.pythonhosted.org/packages/28/ed/c127d3ac36e899c965e3361357c3befacd6578c03f40125183e41c3b219e/cffi-2.1.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:6ca4919c6e4f89aa99c42510b42cf54596892c00b3f9077f6bdd1505e24b9c8d", size = 208630, upload-time = "2026-07-06T21:33:31.753Z" }, - { url = "https://files.pythonhosted.org/packages/cc/d7/97d3136f81db489ec8d1d67748c110d6c994268fd7528014aa9f2b085e4e/cffi-2.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d53d10f7da99ae46f7373b9150393e9c5eab9b224909982b43832668de4779f5", size = 221593, upload-time = "2026-07-06T21:33:33.044Z" }, - { url = "https://files.pythonhosted.org/packages/d3/27/93195977168ee63aed233a1a0993a2178798654d1f4bddcdd321d6fd3b21/cffi-2.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c351efb95e832a853a29361675f33a7ce53de1a109cd73fd47af0712213aa4ce", size = 225146, upload-time = "2026-07-06T21:33:34.224Z" }, - { url = "https://files.pythonhosted.org/packages/b3/c1/6dbd291ee2ae5a50a034aa057207081f545923bbf15dad4511e985aafff5/cffi-2.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:dbf7c7a88e2bac086f06d14577332760bdeecc42bdec8ac4077f6260557d9326", size = 223240, upload-time = "2026-07-06T21:33:35.57Z" }, - { url = "https://files.pythonhosted.org/packages/0f/6f/ade5ce9863a57992a6ea3d0d10d7e29b8749fc127204b3d493d667b2815f/cffi-2.1.0-cp314-cp314-win32.whl", hash = "sha256:1854b724d00f6654c742097d5387569021be12d3a0f770eae1df8f8acfcc6acd", size = 177723, upload-time = "2026-07-06T21:33:51.626Z" }, - { url = "https://files.pythonhosted.org/packages/41/de/92b9eeed4ae4a21d6fd9b2a2c8505cbed573299902ea73981cc13f7ff62c/cffi-2.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:1b96bfe2c4bd825681b7d311ad6d9b7280a091f43e8f63da5729638083cd3bfb", size = 187937, upload-time = "2026-07-06T21:33:53.403Z" }, - { url = "https://files.pythonhosted.org/packages/2e/1a/cc6ae6c2913a03aab8898eee57963cf1035b8df5872ed8b9115fcc7e2be8/cffi-2.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:7d28dff1db6764108bc30788d85d61c876beff416d9a49cb9dd7c5a9f34f5804", size = 183001, upload-time = "2026-07-06T21:33:54.74Z" }, - { url = "https://files.pythonhosted.org/packages/14/f0/134c00ce0779ec86dea2aa1aac69339c2741a8045072676763512363a2ea/cffi-2.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7ea6b3e2c4250ff1de21c630fe72d0f63eb95c2c32ffbf64a358cf4a8836d714", size = 188538, upload-time = "2026-07-06T21:33:36.792Z" }, - { url = "https://files.pythonhosted.org/packages/50/d8/3b86aba791cb610d24e8a3e1b2cd529e71fa15096b04e4d4e360049d4a4c/cffi-2.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6af371f3767faeffc6ac1ef57cdfd25844403e9d3f476c5537caee499de96376", size = 188230, upload-time = "2026-07-06T21:33:38.011Z" }, - { url = "https://files.pythonhosted.org/packages/14/d0/117dcd9209255ad8571fbc8c92ef32593a1d294dcec91ddc4e4db50606f2/cffi-2.1.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:eb4e8997a49aa2c08a3e43c9045d224448b8941d88e7ac163c7d383e560cbf98", size = 223899, upload-time = "2026-07-06T21:33:39.514Z" }, - { url = "https://files.pythonhosted.org/packages/b6/3d/f20f8b886b254e3ad10e15cd4186d3aed49f3e6a35ab37aab9f8f25f7c03/cffi-2.1.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:bf01d8c84cbea96b944c73b22182e6c7c432b3475632b8111dbfdc95ddad6e13", size = 211652, upload-time = "2026-07-06T21:33:40.851Z" }, - { url = "https://files.pythonhosted.org/packages/28/3b/fad54de07260b93ddeef4b96d0131d57ea900675df1d410ae1deee52d7a6/cffi-2.1.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:33eb1ad83ebe8f313e0df035c406227d55a79456704a863fad9842136af5ad7d", size = 210755, upload-time = "2026-07-06T21:33:42.183Z" }, - { url = "https://files.pythonhosted.org/packages/cc/82/3d5c705acb7abbba9bbd7d79b8e62e0f25b6120eb7ae6ac49f1b721722fe/cffi-2.1.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ac0f1a2d0cfa7eea3f2aaf006ab6e70e8feeb16b75d65b7e5939982ca2f11056", size = 223933, upload-time = "2026-07-06T21:33:43.603Z" }, - { url = "https://files.pythonhosted.org/packages/6c/d0/47e338384ab6b1004241002fa616301020cea4fc95f283506565d252f276/cffi-2.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c16914df9fb7f500e440e6875fa23ff5e0b31db01fa9c06af98d59a91f0dc2e4", size = 226749, upload-time = "2026-07-06T21:33:45.046Z" }, - { url = "https://files.pythonhosted.org/packages/70/25/65bd5b58ea4bfdfc15cde02cb5365f89ef8ab8b2adfb8fe5c4bd4233382f/cffi-2.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5ecbd0499275d57506d397eebe1981cee87b47fcd9ef5c22cab7ed7644a39a94", size = 225703, upload-time = "2026-07-06T21:33:46.374Z" }, - { url = "https://files.pythonhosted.org/packages/dc/78/aa01ac599a8a4322533d45a1f9bc93b338276d2d59dabbe7c6d92a775c81/cffi-2.1.0-cp314-cp314t-win32.whl", hash = "sha256:7d034dcffa09e9a46c93fa3a3be402096cb5354ac6e41ab8e5cc9cd8b642ad76", size = 182857, upload-time = "2026-07-06T21:33:47.696Z" }, - { url = "https://files.pythonhosted.org/packages/b9/26/d00496b22de4d4228f32dde94ad996f350c8aad676d63bcca0743c8dea4d/cffi-2.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:0582a58f3051372229ca8e7f5f589f9e5632678208d8636fea3676711fdf7fe5", size = 194065, upload-time = "2026-07-06T21:33:48.953Z" }, - { url = "https://files.pythonhosted.org/packages/d5/dd/0c7dbf815a579ff005008a2d815a55d6bb047c349eef536d9dc53d3f0a8d/cffi-2.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:510aeeeac94811b138077451da1fb18b308a5feab47dd2b603af55804155e1c8", size = 186404, upload-time = "2026-07-06T21:33:50.309Z" }, - { url = "https://files.pythonhosted.org/packages/55/c7/8c8c50cb11c6750051daf12164098a9a6f027ac4356967fd4d800a07f242/cffi-2.1.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:2e9dabb9abcb7ad15938c7196ad5c1718a4e6d33cc79b4c0209bdb64c4a54a5c", size = 194121, upload-time = "2026-07-06T21:33:56.109Z" }, - { url = "https://files.pythonhosted.org/packages/99/e2/67680bf19a6b60d2bb7ff83baefa2a4c3d2d7dc0f3277034b802e1fc504c/cffi-2.1.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:37f525a7e7e50c017fdebe58b787be310ad59357ae43a053943a6e1a6c526001", size = 196820, upload-time = "2026-07-06T21:33:57.288Z" }, - { url = "https://files.pythonhosted.org/packages/ed/da/4bbe583a3b3a5c8c60892124fe17f3fa3656523faf0d3484eae90f091853/cffi-2.1.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:95f2954c2c9473d892eca6e0409f3568b37ab62a8eedb122461f73cc273476e3", size = 184936, upload-time = "2026-07-06T21:33:58.765Z" }, - { url = "https://files.pythonhosted.org/packages/e5/4b/1f4c36ab273980d7aa75bb126ea4f8971f24a96108acad3a0a084028c57b/cffi-2.1.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:cdf2448aab5f661c9315308ec8b93f4e8a1a67a3c733f8631067a2b67d5913dc", size = 185045, upload-time = "2026-07-06T21:34:00.085Z" }, - { url = "https://files.pythonhosted.org/packages/ef/c3/ad299dc38f3583f8d916b299f028af418a9ec98bc695fcbebeae7420691c/cffi-2.1.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:90bec57cf82089383bd06a605b3eb8daebf7e5a668520beaf6e327a83a947699", size = 222342, upload-time = "2026-07-06T21:34:01.814Z" }, - { url = "https://files.pythonhosted.org/packages/eb/d8/df4543cc087245044ed02ef3ad8e0a26619d0075ac7a77a12dc81177851b/cffi-2.1.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6274dcb2d15cef48daa73ed1be5a40d501d74dccd0cd6db364776d12cb6ba022", size = 210073, upload-time = "2026-07-06T21:34:03.255Z" }, - { url = "https://files.pythonhosted.org/packages/2c/0e/fac738d73728c6cea2a88a2883dca54892496cbba88a1dc1f2909cb8a6f5/cffi-2.1.0-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:2b71d409cccee78310ab5dec549aed052aaea483346e282c7b02362596e01bb0", size = 208551, upload-time = "2026-07-06T21:34:04.433Z" }, - { url = "https://files.pythonhosted.org/packages/e6/3f/0b04a700dd64f465c93020253a793a82c9b4dff9961f48facd0df945d9b8/cffi-2.1.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7d3538f9c0e50670f4deb93dbb696576e60590369cae2faf7de681e597a8a1f1", size = 221649, upload-time = "2026-07-06T21:34:06.157Z" }, - { url = "https://files.pythonhosted.org/packages/5d/7c/b7379a5704c79eda57ce075869ba70a0368d1c850f803b3c0d078d39dcaf/cffi-2.1.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:8f9ec95b8a043d3dfbc74d9abc6f7baf524dd27a8dc160b0a32ff9cdab650c28", size = 225203, upload-time = "2026-07-06T21:34:07.489Z" }, - { url = "https://files.pythonhosted.org/packages/5a/02/d5e6c43ea85c41bda2a184a3418f195fe7cf602967a8d2b94e085b83deef/cffi-2.1.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:af5e2915d41fe6c961694d7bfdc8562942638200f3ce2765dfb8b745cf997629", size = 223263, upload-time = "2026-07-06T21:34:08.712Z" }, - { url = "https://files.pythonhosted.org/packages/2c/d8/772b8259bf75749adffb1c546828978381fb516f60cf701f6c83daf60c85/cffi-2.1.0-cp315-cp315-win32.whl", hash = "sha256:0a42c688d19fca6e095a53c6a6e2295a5b050a8b289f109adab02a9e61a25de6", size = 177696, upload-time = "2026-07-06T21:34:26.355Z" }, - { url = "https://files.pythonhosted.org/packages/2f/dd/afa2191fc6d57fedd26e5844a2fe2fcc0bbfa00961bbaa5a41e4921e7cca/cffi-2.1.0-cp315-cp315-win_amd64.whl", hash = "sha256:bccbbb5ee76a61f9d99b5bf3846a51d7fca4b6a732fe46f89295610edaf41853", size = 187914, upload-time = "2026-07-06T21:34:27.58Z" }, - { url = "https://files.pythonhosted.org/packages/05/ef/6cd4f8c671517162379dc79cfae5aea9106bc38abb89628d5c16adf6a838/cffi-2.1.0-cp315-cp315-win_arm64.whl", hash = "sha256:8d35c139744adb3e727cd51b1a18324bbe44b8bd41bf8322bca4d41289f48eda", size = 183004, upload-time = "2026-07-06T21:34:28.905Z" }, - { url = "https://files.pythonhosted.org/packages/11/b6/12fc55092817a5faa26fb8c40c7f9d662e11a46ee248c137aafc42517d92/cffi-2.1.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:f9912624a0c0b834b7520d7769b3644453aabc0a7e1c839da7359f050750e9bc", size = 188378, upload-time = "2026-07-06T21:34:09.926Z" }, - { url = "https://files.pythonhosted.org/packages/8d/2e/cdac88979f295fde5daa69622c7d2111e56e7ceb94f211357fbe452339e4/cffi-2.1.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:df92f2aba50eb4d96718b68ef76f2e57a57b54f2fa62333496d16c6d585a85ca", size = 188319, upload-time = "2026-07-06T21:34:11.101Z" }, - { url = "https://files.pythonhosted.org/packages/e0/27/1d0b408497e41a74795af122d7b603c418c5fed0171450f899afd04e594f/cffi-2.1.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0520e1f4c35f44e209cbbb421b67eec42e6a157f59444dfb6058874ff3610e5d", size = 223904, upload-time = "2026-07-06T21:34:12.606Z" }, - { url = "https://files.pythonhosted.org/packages/8b/31/e115c985105dd7ffb32444505f18ceb874bb42d992af05d5dced7ecf1980/cffi-2.1.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:3681e031db29958a7502f5c0c9d6bbc4c36cb20f7b104086fa642d1799631ff8", size = 211554, upload-time = "2026-07-06T21:34:13.987Z" }, - { url = "https://files.pythonhosted.org/packages/5a/67/9e6e09409336d9e515c58367e7cfcf4f89df06ad25252675595a58eb59d5/cffi-2.1.0-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:762f99479dcb369f60ab9017ad4ab97a36a1dd7c1ee5a3b15db0f4b8659120cd", size = 210795, upload-time = "2026-07-06T21:34:15.972Z" }, - { url = "https://files.pythonhosted.org/packages/19/e5/d3cc82a4a0be7902af279c04181ad038449c096734464a5ae1de3e1401bd/cffi-2.1.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0611e7ebf90573a535ebdc33ae9da222d037853983e13359f580fab781ca017f", size = 223843, upload-time = "2026-07-06T21:34:17.509Z" }, - { url = "https://files.pythonhosted.org/packages/b9/65/b434abc97ce7cecc2c640fde160507c0ecc7e21544b483ba3325d2e2ea17/cffi-2.1.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:86cf8755a791f72c85dc287128cc62d4f24d392e3f1e15837245623f4a33cccc", size = 226773, upload-time = "2026-07-06T21:34:19.05Z" }, - { url = "https://files.pythonhosted.org/packages/b5/9f/d4dc66ca651eb1145a133314cda721abf13cfac3d28c4a0402263ae6ad75/cffi-2.1.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:ba00f661f8ba35d075c937174e27c2c421cec3942fd2e0ea3e66996757c0fdd9", size = 225719, upload-time = "2026-07-06T21:34:20.576Z" }, - { url = "https://files.pythonhosted.org/packages/68/5a/e536c528bc8057496c360c0978559a2dc45653f89dd6151078aa7d8fca1a/cffi-2.1.0-cp315-cp315t-win32.whl", hash = "sha256:cb96698e3c7413d906ce83f8ffd245ec1bd94707541f299d0ce4d6b0193e982b", size = 182760, upload-time = "2026-07-06T21:34:22.059Z" }, - { url = "https://files.pythonhosted.org/packages/d3/0b/0ffe8b82d3875bced5fa1e7986a7a46b748262a40ab7f60b475eb9fb1bb3/cffi-2.1.0-cp315-cp315t-win_amd64.whl", hash = "sha256:f146d154428a2523f9cc7936c02353c2459b8f6cf07d3cd1ee1c0a611109c5d5", size = 193769, upload-time = "2026-07-06T21:34:23.589Z" }, - { url = "https://files.pythonhosted.org/packages/a0/17/1073b53b68c9b5ca6914adf5f8bf55aacc2d3be102418c90700160ea8605/cffi-2.1.0-cp315-cp315t-win_arm64.whl", hash = "sha256:cbb7640ce37159548d2147b5b8c241f962143d4c71231431820783f4dc78f210", size = 186405, upload-time = "2026-07-06T21:34:24.857Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/70/d2/16d99a0c4948febc0ebd133a13b2f688ff7f8cb04da971e1128872ce0c03/cffi-2.1.1-cp311-cp311-macosx_10_15_x86_64.whl", hash = "sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12", size = 183838, upload-time = "2026-08-03T21:19:29.637Z" }, + { url = "https://files.pythonhosted.org/packages/cd/95/31b535a9f0220ae9f357de4a08d57ce89cb417653c2fd9f075f50822a388/cffi-2.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1", size = 184168, upload-time = "2026-08-03T21:19:30.764Z" }, + { url = "https://files.pythonhosted.org/packages/ad/5a/4707a0dc1f203f5dde5a907b0d4e3c25d71120241048bd5bc6f1bb9d4e71/cffi-2.1.1-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0", size = 211805, upload-time = "2026-08-03T21:19:31.867Z" }, + { url = "https://files.pythonhosted.org/packages/ad/66/c19feabb28485b6e0bbaaafa90837a1ef5d302e90f2178bd33f17a49879b/cffi-2.1.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813", size = 218716, upload-time = "2026-08-03T21:19:32.896Z" }, + { url = "https://files.pythonhosted.org/packages/a7/92/500760486c8baab49a7a8a58ba7fc3355ec3974b454b8a09e528efde9e1d/cffi-2.1.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990", size = 205569, upload-time = "2026-08-03T21:19:34.142Z" }, + { url = "https://files.pythonhosted.org/packages/a5/a7/a67c733254d6e7373f7822f8082d8d6beade791e0cf12a7611f376fa61c7/cffi-2.1.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af", size = 204907, upload-time = "2026-08-03T21:19:35.174Z" }, + { url = "https://files.pythonhosted.org/packages/f7/a4/4399daaf8f7dfee9d7c3327fdb0426ee041cc63edc358b93911ceb2bfc7a/cffi-2.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632", size = 217807, upload-time = "2026-08-03T21:19:36.286Z" }, + { url = "https://files.pythonhosted.org/packages/28/f7/dabe6da2466ecbd82dc62e7342dc6b1065dad990c06f00f0ede9ebf2a0ed/cffi-2.1.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd", size = 221252, upload-time = "2026-08-03T21:19:37.416Z" }, + { url = "https://files.pythonhosted.org/packages/ce/87/616202d8e51342c07d2534c510111c4cc37201775ce8f60802c9335d1edd/cffi-2.1.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a", size = 214214, upload-time = "2026-08-03T21:19:38.507Z" }, + { url = "https://files.pythonhosted.org/packages/b4/c6/ab025d75d2c26c19b087c0124e75ee31cb65032f4fe345d356d8c507ab97/cffi-2.1.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa", size = 219408, upload-time = "2026-08-03T21:19:39.809Z" }, + { url = "https://files.pythonhosted.org/packages/db/e2/7e8109f65445bdc673a7b54f02c677de462db75674220fd1335efc8eb598/cffi-2.1.1-cp311-cp311-win32.whl", hash = "sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3", size = 174470, upload-time = "2026-08-03T21:19:41.246Z" }, + { url = "https://files.pythonhosted.org/packages/73/c0/77ba02423c2f7d7091143c45cd49e0e6575c4c1967394bb542bd923a9b74/cffi-2.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0", size = 185096, upload-time = "2026-08-03T21:19:42.615Z" }, + { url = "https://files.pythonhosted.org/packages/7c/47/9f1f85f9672ceda4984dc6c4f8824e8558992a2972c3d3c81fb8eb28d4ba/cffi-2.1.1-cp311-cp311-win_arm64.whl", hash = "sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455", size = 179941, upload-time = "2026-08-03T21:19:43.747Z" }, + { url = "https://files.pythonhosted.org/packages/10/69/43965eccfdead3b9220015fd1320e117be8c6ed01a62ffab76eeb752f5d5/cffi-2.1.1-cp312-cp312-macosx_10_15_x86_64.whl", hash = "sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0", size = 184821, upload-time = "2026-08-03T21:19:44.887Z" }, + { url = "https://files.pythonhosted.org/packages/54/7d/16e5a096677b5e313ca80cd5e5170efa3ea44624a82bb111925522da64b1/cffi-2.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf", size = 184719, upload-time = "2026-08-03T21:19:46.129Z" }, + { url = "https://files.pythonhosted.org/packages/56/e6/8941622732edec876dd17d0453dce07317ae96db34f2ec1436c9d3785986/cffi-2.1.1-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a", size = 214799, upload-time = "2026-08-03T21:19:47.218Z" }, + { url = "https://files.pythonhosted.org/packages/44/de/f98430906df1545ffde0d543dd124a7a439bc2cd32b36b9c53f805df7333/cffi-2.1.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890", size = 222389, upload-time = "2026-08-03T21:19:48.331Z" }, + { url = "https://files.pythonhosted.org/packages/6a/5b/717f1526b9957b34456313c31645c5b82b8fb5c3fe9e4752999be7128bfc/cffi-2.1.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50", size = 210249, upload-time = "2026-08-03T21:19:49.543Z" }, + { url = "https://files.pythonhosted.org/packages/64/b3/f8aa4f3e34986c7e4ec45072d1b1b9dd295b6b18007b45518d79726dd725/cffi-2.1.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e", size = 208775, upload-time = "2026-08-03T21:19:50.918Z" }, + { url = "https://files.pythonhosted.org/packages/b1/db/dceb9dd5b231e1da801793f8acc9f3c52a7e1afe40bb1aae37e02b0faad5/cffi-2.1.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf", size = 221822, upload-time = "2026-08-03T21:19:52.054Z" }, + { url = "https://files.pythonhosted.org/packages/a0/d2/6cd24ae3be000a634109c247d1475d62e5616d0dc78c82770942ec384248/cffi-2.1.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517", size = 225232, upload-time = "2026-08-03T21:19:53.109Z" }, + { url = "https://files.pythonhosted.org/packages/cb/52/3fa190537004dd7f0ab860a6dc7c0175b8667f68d1e618a46f5498d30250/cffi-2.1.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735", size = 223597, upload-time = "2026-08-03T21:19:54.515Z" }, + { url = "https://files.pythonhosted.org/packages/80/fb/0bb75b7039588c074b37ae99f40d9bfddf990ecb2fbc346ebccd2e56b9be/cffi-2.1.1-cp312-cp312-win32.whl", hash = "sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e", size = 175292, upload-time = "2026-08-03T21:19:55.566Z" }, + { url = "https://files.pythonhosted.org/packages/d9/79/615cc094e2fb508cade7de88d3b4f6c4ec2bab695c97bce9153dc65aadf5/cffi-2.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a", size = 185919, upload-time = "2026-08-03T21:19:56.89Z" }, + { url = "https://files.pythonhosted.org/packages/70/c6/d0ea84713fe46b243a436a18fcd47d639732747e21635c8a27191b06dc30/cffi-2.1.1-cp312-cp312-win_arm64.whl", hash = "sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80", size = 180093, upload-time = "2026-08-03T21:19:58.155Z" }, + { url = "https://files.pythonhosted.org/packages/9d/f4/035513d4117049066b4779dc3b7c0c0fdad175fa13731c9f4003f1cd1478/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e", size = 194248, upload-time = "2026-08-03T21:19:59.399Z" }, + { url = "https://files.pythonhosted.org/packages/76/af/2aeb4dbb5fc41a04161ae9ff1518de7cec08e164f44a8ce6a4cf7fd2cd1d/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c", size = 196908, upload-time = "2026-08-03T21:20:00.746Z" }, + { url = "https://files.pythonhosted.org/packages/a7/46/2e5fdde8555706dd98139a910ca11be02809f3f605ce956f655d0214e100/cffi-2.1.1-cp313-cp313-macosx_10_15_x86_64.whl", hash = "sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6", size = 184805, upload-time = "2026-08-03T21:20:02.02Z" }, + { url = "https://files.pythonhosted.org/packages/55/41/4c7042f317b9217502988f0873af87e16ad606dc20f84e546e3e6ce9764c/cffi-2.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971", size = 184764, upload-time = "2026-08-03T21:20:03.141Z" }, + { url = "https://files.pythonhosted.org/packages/43/1f/1c3d90d91811c8f86ced9ed637956c54bfe5b79ca98fe976d7f8c8979f6b/cffi-2.1.1-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c", size = 214722, upload-time = "2026-08-03T21:20:04.377Z" }, + { url = "https://files.pythonhosted.org/packages/37/6f/3b5ce4c3b2192d250f04908f2bfd91ef34552ec8f7716a5d4abdb8d67bb2/cffi-2.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125", size = 222369, upload-time = "2026-08-03T21:20:05.544Z" }, + { url = "https://files.pythonhosted.org/packages/02/10/4b3c75dde3d9663c9e02ba05c2668b954f671d4bbe346413ca8c696b295a/cffi-2.1.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264", size = 210175, upload-time = "2026-08-03T21:20:06.75Z" }, + { url = "https://files.pythonhosted.org/packages/df/62/14f74b9543e605d17701dc797b815958b8bb70b7624ce1b832ddad48ed6c/cffi-2.1.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3", size = 208670, upload-time = "2026-08-03T21:20:08.04Z" }, + { url = "https://files.pythonhosted.org/packages/95/95/86342356ff5953b3fb06f7ef7c5bee212d45e770abc7218d451b9148313c/cffi-2.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2", size = 221824, upload-time = "2026-08-03T21:20:09.274Z" }, + { url = "https://files.pythonhosted.org/packages/eb/ff/7b3429ff53aafe931ed8a5fc69f481bbef7ba6de87ddcbb63d08f483f613/cffi-2.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b", size = 225148, upload-time = "2026-08-03T21:20:10.7Z" }, + { url = "https://files.pythonhosted.org/packages/34/34/a95870b9221e09cf4f2ce3178b1a210abdfe63a1bd357da940418d7b8d15/cffi-2.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7", size = 223564, upload-time = "2026-08-03T21:20:12.165Z" }, + { url = "https://files.pythonhosted.org/packages/70/ea/839b50531021a647fb5e929f72cf97bc1ff702b5472166164b5b6e76b851/cffi-2.1.1-cp313-cp313-win32.whl", hash = "sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac", size = 175263, upload-time = "2026-08-03T21:20:13.559Z" }, + { url = "https://files.pythonhosted.org/packages/60/a6/8b149b2c3f2e11aaa1618ef64500b45f50f22c57a977a4dff1aff1f91042/cffi-2.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d", size = 185688, upload-time = "2026-08-03T21:20:14.69Z" }, + { url = "https://files.pythonhosted.org/packages/01/9a/11f687cb39d6a3504060d5242f04f48c735afb4d3d533958a20594890cb2/cffi-2.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973", size = 180078, upload-time = "2026-08-03T21:20:15.917Z" }, + { url = "https://files.pythonhosted.org/packages/d3/7b/d6bbf82b8b96e7391438898c42f5bd96dd02030fd5b64937d248220003e2/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c", size = 194064, upload-time = "2026-08-03T21:20:17.148Z" }, + { url = "https://files.pythonhosted.org/packages/94/e6/bcc91b283be94735e268487a054004f0aa19947b6348fa367db53230abc8/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb", size = 196720, upload-time = "2026-08-03T21:20:18.268Z" }, + { url = "https://files.pythonhosted.org/packages/d9/99/c4b0c17cacdc9c3b8f280026286a9826d6a208c0f047591a3c3ce99b91fd/cffi-2.1.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54", size = 184964, upload-time = "2026-08-03T21:20:19.708Z" }, + { url = "https://files.pythonhosted.org/packages/b3/a9/9db617d05d7367c1ad0ab00b3aa6e6f9281edd689b4ee9ea0e5a84e89c97/cffi-2.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72", size = 184962, upload-time = "2026-08-03T21:20:20.833Z" }, + { url = "https://files.pythonhosted.org/packages/67/b8/b42132ca113dc567d37684437b46ca1dafc885902b02a110a02d5b511857/cffi-2.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1", size = 222328, upload-time = "2026-08-03T21:20:22.118Z" }, + { url = "https://files.pythonhosted.org/packages/80/10/c5c0cbf0a657aecf59ef511409734230bf556f05a0d6c9eed7aa5c0a0166/cffi-2.1.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062", size = 209985, upload-time = "2026-08-03T21:20:23.401Z" }, + { url = "https://files.pythonhosted.org/packages/d5/6c/bfa0b87b03b9238148beca990292843c9396ba069b54496596594173de7b/cffi-2.1.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03", size = 208530, upload-time = "2026-08-03T21:20:24.628Z" }, + { url = "https://files.pythonhosted.org/packages/e9/02/4e7d553a7ac4b4238b38b3c1b80d486e9d4436f8d2acbf87a0997fe3f402/cffi-2.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96", size = 221525, upload-time = "2026-08-03T21:20:25.758Z" }, + { url = "https://files.pythonhosted.org/packages/82/1d/a4aaf9babd75acb4d5f223bff71533bee748dd770a382619a798960ee9ba/cffi-2.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527", size = 225053, upload-time = "2026-08-03T21:20:26.985Z" }, + { url = "https://files.pythonhosted.org/packages/81/10/5dc0e7bdd18e22107054288283380fc97a06ae3f1656a106908d666a3c88/cffi-2.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13", size = 223213, upload-time = "2026-08-03T21:20:28.277Z" }, + { url = "https://files.pythonhosted.org/packages/0b/e9/d0061c364cde06ee43168a0d076ac1da512cbc380d44767b844ba34fe2b6/cffi-2.1.1-cp314-cp314-win32.whl", hash = "sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c", size = 177682, upload-time = "2026-08-03T21:20:44.288Z" }, + { url = "https://files.pythonhosted.org/packages/a7/06/1c3e01e3ba14c39f6d10bfbac52753b7e22259e38088e5cfe1d704918690/cffi-2.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48", size = 187949, upload-time = "2026-08-03T21:20:45.623Z" }, + { url = "https://files.pythonhosted.org/packages/87/5b/da4e39efe18eeb89cf580ea9cfc66b6a7c3eadb808fc0cc1d3a295cb5a5d/cffi-2.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836", size = 182947, upload-time = "2026-08-03T21:20:46.955Z" }, + { url = "https://files.pythonhosted.org/packages/23/59/40338bf421c5accea1d45158170c87006ef1cd371b05c077e76476949728/cffi-2.1.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3", size = 188504, upload-time = "2026-08-03T21:20:29.495Z" }, + { url = "https://files.pythonhosted.org/packages/7d/47/5ecf1023850036e674c77ec4de86182d309ae344e39e7cba984b7df5d647/cffi-2.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2", size = 188259, upload-time = "2026-08-03T21:20:31.291Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9c/92934c3bea9f785b23eba304538c0b4d37a2a96d2431eb3a1bc87a11aa19/cffi-2.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94", size = 223864, upload-time = "2026-08-03T21:20:32.571Z" }, + { url = "https://files.pythonhosted.org/packages/4d/45/ba4c93527bc38616a8bd36488acb69a2212d60486794f0c1f318949bbb76/cffi-2.1.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc", size = 211538, upload-time = "2026-08-03T21:20:33.808Z" }, + { url = "https://files.pythonhosted.org/packages/80/e9/b6ef565e452acb932fb0cb5443f44a78efbd1233e566f02b5a83855e9115/cffi-2.1.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29", size = 210688, upload-time = "2026-08-03T21:20:34.974Z" }, + { url = "https://files.pythonhosted.org/packages/9a/95/eff5f0cee78d2eabc7eebffec40d3fc1876b5f3c95582e018bb4b99601f2/cffi-2.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676", size = 223803, upload-time = "2026-08-03T21:20:36.564Z" }, + { url = "https://files.pythonhosted.org/packages/fa/01/579d39fb8bef00a335a23d83757b44feb24cd6345a2c451b64cb67b9c362/cffi-2.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e", size = 226763, upload-time = "2026-08-03T21:20:37.816Z" }, + { url = "https://files.pythonhosted.org/packages/8d/b0/0b44f47c60b01b57b6e2bbd92343f13a85a1d93bc46ccf6e47e244acd99c/cffi-2.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f", size = 225688, upload-time = "2026-08-03T21:20:38.959Z" }, + { url = "https://files.pythonhosted.org/packages/eb/d2/3b7176cb570a1d3e27faf67b72f591af508036e0d8b2be2ef9af9e8c84bb/cffi-2.1.1-cp314-cp314t-win32.whl", hash = "sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4", size = 182868, upload-time = "2026-08-03T21:20:40.388Z" }, + { url = "https://files.pythonhosted.org/packages/56/78/31f00c1bcd97c9bbf55f1bfdf5bc809a5de8887473e90bb9960dca825e80/cffi-2.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e", size = 194104, upload-time = "2026-08-03T21:20:41.725Z" }, + { url = "https://files.pythonhosted.org/packages/7b/1b/58496f2ed0a35de575250c02a43ab3cc2c04d494a88fed31c1cabc0fd176/cffi-2.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5", size = 186402, upload-time = "2026-08-03T21:20:43.042Z" }, + { url = "https://files.pythonhosted.org/packages/c1/8f/9ebe220eab48a093d1a5a5e339ab0dc7316eef3bb04d63c42f0251b61f50/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d", size = 194043, upload-time = "2026-08-03T21:20:48.179Z" }, + { url = "https://files.pythonhosted.org/packages/ff/69/844bad3ece306c4782c2ecb93597035b6690d48704b803914c199da1e8b3/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b", size = 196737, upload-time = "2026-08-03T21:20:49.457Z" }, + { url = "https://files.pythonhosted.org/packages/1b/8a/af668013284634733f02d683458a0728739c7d6ddb5e14cb0c20832266fe/cffi-2.1.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4", size = 184933, upload-time = "2026-08-03T21:20:50.639Z" }, + { url = "https://files.pythonhosted.org/packages/0c/75/2f5207ff6d1a613133b23a5203cc0c2a628313b5eb3974d7956ae3c57950/cffi-2.1.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8", size = 185002, upload-time = "2026-08-03T21:20:52.173Z" }, + { url = "https://files.pythonhosted.org/packages/e2/31/9e1313b0a6e30e91b3b3d3fff51ae99c857c07738e3afcce1f7334e1b7ab/cffi-2.1.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6", size = 222271, upload-time = "2026-08-03T21:20:53.462Z" }, + { url = "https://files.pythonhosted.org/packages/50/e3/f6234a833e6e08c7007003074723c406559eecf9b48dfc97471e5a8eb7a0/cffi-2.1.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80", size = 209919, upload-time = "2026-08-03T21:20:54.783Z" }, + { url = "https://files.pythonhosted.org/packages/0d/fc/5f74e293fced6edb51af3a46c4ccf6c23c9943774ecb375ddbd522c76add/cffi-2.1.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779", size = 208529, upload-time = "2026-08-03T21:20:56.066Z" }, + { url = "https://files.pythonhosted.org/packages/44/16/29e6d01b388bef055ecd6ca8244b3f4d336bd09e92d5d892187b9601084e/cffi-2.1.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399", size = 221630, upload-time = "2026-08-03T21:20:57.336Z" }, + { url = "https://files.pythonhosted.org/packages/a4/18/fa7f1f6857d5eb88a4ca99ffcbfb7c387a287ccc154c64a73e86314745d7/cffi-2.1.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688", size = 225134, upload-time = "2026-08-03T21:20:58.675Z" }, + { url = "https://files.pythonhosted.org/packages/e0/9f/e8e3dfa04a1b4c241f8c91faacad872b4d4efd051d49764ad4e2fd4b9fea/cffi-2.1.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7", size = 223197, upload-time = "2026-08-03T21:20:59.968Z" }, + { url = "https://files.pythonhosted.org/packages/f8/7e/8debeb04f1ab9fe2a6963964cd6f1aaf7192627b83926586a6a4e089c9fa/cffi-2.1.1-cp315-cp315-win32.whl", hash = "sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac", size = 177683, upload-time = "2026-08-03T21:21:14.901Z" }, + { url = "https://files.pythonhosted.org/packages/e0/31/5158704cc474ab65c1647932e88be78dc0873f47130e253be38bcaf13d01/cffi-2.1.1-cp315-cp315-win_amd64.whl", hash = "sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960", size = 187897, upload-time = "2026-08-03T21:21:16.108Z" }, + { url = "https://files.pythonhosted.org/packages/cc/4b/b3a2da8570c704ffc0f9762cdc3ec0f02c8573798e0b5cf7f11c82bbb70f/cffi-2.1.1-cp315-cp315-win_arm64.whl", hash = "sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1", size = 182935, upload-time = "2026-08-03T21:21:17.271Z" }, + { url = "https://files.pythonhosted.org/packages/d0/ef/5443574510a1207e6f6bc38ba6e1f1de36cb48fef07b2728bb896a21f430/cffi-2.1.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc", size = 188464, upload-time = "2026-08-03T21:21:01.163Z" }, + { url = "https://files.pythonhosted.org/packages/7e/ae/a56fa8c4686ad50e148fcbc8d3ae0d03915ff5c30d795058988c24118cef/cffi-2.1.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab", size = 188262, upload-time = "2026-08-03T21:21:02.382Z" }, + { url = "https://files.pythonhosted.org/packages/53/b2/6187f46f2912276a3ae284076109cc5c8680482f11f766ccf26db4a86427/cffi-2.1.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e", size = 223779, upload-time = "2026-08-03T21:21:03.553Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f6/c3ad28bd19f77047a03084424fbd4cbe997303267c14423737324be0385d/cffi-2.1.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358", size = 211520, upload-time = "2026-08-03T21:21:04.863Z" }, + { url = "https://files.pythonhosted.org/packages/a0/cd/ccac9013a5bd9fd764de118674ab9c805b5ca10c19270d90ee273f8b2240/cffi-2.1.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231", size = 210673, upload-time = "2026-08-03T21:21:06.223Z" }, + { url = "https://files.pythonhosted.org/packages/52/86/2976131c639aead931c5bee5aba67e4b09fbeb8018b6f282f70803f923a7/cffi-2.1.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6", size = 223835, upload-time = "2026-08-03T21:21:07.539Z" }, + { url = "https://files.pythonhosted.org/packages/ac/0c/33a7aeab2f9c76918c52e084beb39c570db3588133412929e8ec06fab90b/cffi-2.1.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94", size = 226705, upload-time = "2026-08-03T21:21:08.774Z" }, + { url = "https://files.pythonhosted.org/packages/e3/26/2cde30fdde421130bfc18f70395731a6e6b2053c6a1978a5258ff04e72fa/cffi-2.1.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5", size = 225539, upload-time = "2026-08-03T21:21:09.911Z" }, + { url = "https://files.pythonhosted.org/packages/6d/cd/a361394c94b2129d604bb846f624a8e88255a3ee33129c434a00d715e64f/cffi-2.1.1-cp315-cp315t-win32.whl", hash = "sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66", size = 182707, upload-time = "2026-08-03T21:21:11.226Z" }, + { url = "https://files.pythonhosted.org/packages/9b/b5/ba2b299993c26577d529b6ae29841f9e15b9fcf004d65f423f4fcf94ade9/cffi-2.1.1-cp315-cp315t-win_amd64.whl", hash = "sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3", size = 193772, upload-time = "2026-08-03T21:21:12.39Z" }, + { url = "https://files.pythonhosted.org/packages/aa/29/35e016098c814cd93de9cd320c66b5bfba14dc6ecedd3cb518fa7c408c69/cffi-2.1.1-cp315-cp315t-win_arm64.whl", hash = "sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692", size = 186360, upload-time = "2026-08-03T21:21:13.636Z" }, ] [[package]] name = "cfn-lint" -version = "1.53.0" +version = "1.57.2" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "aws-sam-translator" }, { name = "jsonpatch" }, - { name = "networkx", version = "3.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, - { name = "networkx", version = "3.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, + { name = "networkx", version = "3.6.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, + { name = "networkx", version = "3.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" }, { name = "pyyaml" }, { name = "regex" }, { name = "sympy" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/d1/93/36cea246a0ec155eaa16444386675260bbfd38d259cfa26deffc8f417628/cfn_lint-1.53.0.tar.gz", hash = "sha256:dcf285939dea3c15e06bcb23a817bbdecb6c3e0ab19d98147877f04e02b5b07c", size = 4517403, upload-time = "2026-07-09T18:09:16.298Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/86/eb/f9e2ce6888b5e77072169d884afcd957e69d3f293b03b4eb4dfad48fe358/cfn_lint-1.53.0-py3-none-any.whl", hash = "sha256:8a91d1f0d8d18614410a0c1676213df8cd0ac55fa462f3f6369fb9fdaa7ae28d", size = 5049598, upload-time = "2026-07-09T18:09:14.108Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/41/93/996a8c4a8916ed10b71207de4276c7dbec4d13ad0f9a21830f9eed04f771/cfn_lint-1.57.2.tar.gz", hash = "sha256:7e859164badf01d2bd62c6d362284ab6e814d036f0a64249ba6a05287d787d68", size = 5000546, upload-time = "2026-10-06T19:29:15.939Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2e/02/523307f365b693ee8e55564a13bef7767f5b6650fd22958dcd3d0390136e/cfn_lint-1.57.2-py3-none-any.whl", hash = "sha256:7007b30215ffb204bf1c669aeb68689253d23cddd21ef1a904fd424df13851cc", size = 5611048, upload-time = "2026-10-06T19:29:13.348Z" }, +] + +[[package]] +name = "chardet" +version = "7.6.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b1/51/cd61c567092a6cec796144510a68aff158ebfc1df82950a45bae65f28413/chardet-7.6.0.tar.gz", hash = "sha256:93d9df6089ded42ed1fe9f57e272c0b74bd0464d45c0c7d50f09f26f31105c3c", size = 914462, upload-time = "2026-08-14T20:36:59.305Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/11/2e/d8634bee23a07bf512512ddf6218a68e47f045ae061c0cc80657ed79dcc0/chardet-7.6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6424512f576fa7e88b7431d38a42d57552c8f717465a975fc42e497cd280d833", size = 1088243, upload-time = "2026-08-14T20:36:17.135Z" }, + { url = "https://files.pythonhosted.org/packages/55/95/bd6d59026638cec47dace85858171fbecadd2f9e58cb2b973dc515aa790c/chardet-7.6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:284136186ff90735f901ed0a1c6d41e7af67c666841cc0eceb58482a21b7056c", size = 1068688, upload-time = "2026-08-14T20:36:19.183Z" }, + { url = "https://files.pythonhosted.org/packages/7f/4a/60ed03656b28c1f4d378bc3cfe8a6cdda62c7c289398f925610fbbabfd00/chardet-7.6.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5e9b31b9ae93872d66439b046a1e08c2ea99791f3c254dce1e2633e395c5587c", size = 1487945, upload-time = "2026-08-14T20:36:20.64Z" }, + { url = "https://files.pythonhosted.org/packages/03/25/9c8db4f951e974a4db5558d9eea62e1fd5b5889c9d0ad0315eed67c5cdb3/chardet-7.6.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:aa03322e07ac08d520ec50bb50c73143d0892d1adc067d4c5e58f4ef4b2363a8", size = 1510112, upload-time = "2026-08-14T20:36:22.248Z" }, + { url = "https://files.pythonhosted.org/packages/76/1b/59eb88a78d8f5855c27c25788088df82834ad067f3dddaf4d86ef03cf2d3/chardet-7.6.0-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0ad9bc6dab4f338673353fa3f0dc96122f559aaf746087408106e2fcbf132fe8", size = 1462470, upload-time = "2026-08-14T20:36:23.557Z" }, + { url = "https://files.pythonhosted.org/packages/02/af/46c80c317f9b4dd61f15c33b1e073fbdd64d13c70fe19e34943071dc9e50/chardet-7.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:360260d074d8712ac1e9048fcafb0fdde246f9d0b12555748ad0017c5ecee43d", size = 1157092, upload-time = "2026-08-14T20:36:25.082Z" }, + { url = "https://files.pythonhosted.org/packages/6f/62/64da80dad0c804e743b4156f379183578f1e33918856ae928dc9248a6002/chardet-7.6.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:19fea52164e6e00f2a21ed418f42e4b0162a09199274c86d07ad3efd661317c4", size = 1094073, upload-time = "2026-08-14T20:36:26.53Z" }, + { url = "https://files.pythonhosted.org/packages/44/99/934fb862d102c8756008597f4398323f32cef329f16e87fbb3bf76d4f4be/chardet-7.6.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a12023d48d0e207791c01161d03cb3c0d85c6a15f345eb9d3d56063a63d1e40f", size = 1071612, upload-time = "2026-08-14T20:36:28.067Z" }, + { url = "https://files.pythonhosted.org/packages/71/e9/b04e0ec576a77e79fe37279a9a5d5b1ae752d365e43df2eca0d0eee4cea5/chardet-7.6.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:249993b88ac7a58cad2781acea8f379152a28a719c9b401d614898c63a8c83da", size = 1489219, upload-time = "2026-08-14T20:36:29.357Z" }, + { url = "https://files.pythonhosted.org/packages/7d/a2/c4d99299e9ce7fad561f8bb56babbbbdd3bb6b4fbd7c0ec674c1dbdd2cc5/chardet-7.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2cf0adaca8b1c4bacfade9d0a1e4f8f70b1bb122833d6f07ab90e3adc84eb13a", size = 1518293, upload-time = "2026-08-14T20:36:30.879Z" }, + { url = "https://files.pythonhosted.org/packages/56/1d/49f13052b74303bab2789d098063cbd19758217949ea54ffa216b6098cb3/chardet-7.6.0-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cf6d08c2373b7772a558d141f9e8cee53fe1d222341bac612e4d558b04995f73", size = 1459077, upload-time = "2026-08-14T20:36:32.149Z" }, + { url = "https://files.pythonhosted.org/packages/0d/53/8da1f4758286efd8faf71356facddb382788ecf1bbd7c70d63e2e18a4898/chardet-7.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:406936df1328a3284fef366eaa2bfd1cccd0ef1b10cb99781dd5b022ea644b84", size = 1160778, upload-time = "2026-08-14T20:36:33.436Z" }, + { url = "https://files.pythonhosted.org/packages/a3/29/16a7419edfbd60e901e6a797cbc3e038cb2a81903bc16c029db755f0156f/chardet-7.6.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:57e6846cc13ce1ff59979f4ec9da770c57e12aa99046073f632de5a51d9a6f20", size = 1088449, upload-time = "2026-08-14T20:36:34.723Z" }, + { url = "https://files.pythonhosted.org/packages/1d/36/3a14b0f8ddeb302f157281ca656a3ce6874b78e2d6af03682f520b487245/chardet-7.6.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:089e3bb81a0a07e94f15461ded9f9ee66d349615b1a9fd557d4de1003e2fc12e", size = 1065126, upload-time = "2026-08-14T20:36:36.21Z" }, + { url = "https://files.pythonhosted.org/packages/d2/4c/f59a39c2bfe4ac99baba8da842e8d2ea0b84dff7ba53a96e7ad8c71602d7/chardet-7.6.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:43ea433e43a23c55e8e17f3fad1e07f5cfe5450c73124b95b0d849c21ad379ee", size = 1482492, upload-time = "2026-08-14T20:36:37.649Z" }, + { url = "https://files.pythonhosted.org/packages/bd/eb/93e8036681157f2217a18769927a035984526e6dbd5e91f28a375ca41c14/chardet-7.6.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2b5d31f9b7f793e15e81cca877e7ccd72bffffa2a3443a9d47be9dfee84fad69", size = 1514185, upload-time = "2026-08-14T20:36:39.119Z" }, + { url = "https://files.pythonhosted.org/packages/10/04/0066d7ab2c135e404a6fa166bb7fa49d1c7bf7af07b86ed95b1c48a348c7/chardet-7.6.0-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c54b6a8d3b219560fa5cf4c28df932c37471afe047afdc152067104e741f38c1", size = 1454420, upload-time = "2026-08-14T20:36:40.549Z" }, + { url = "https://files.pythonhosted.org/packages/6c/9f/e965f1d9eddfb86cf118f980d329cbee43c4ac4b562448b369a6b6ef36af/chardet-7.6.0-cp313-cp313-win_amd64.whl", hash = "sha256:b3b4c96c4df93899b3c8b9e8159e06b1f55c66d7ca384d91481108e251a06eb0", size = 1159067, upload-time = "2026-08-14T20:36:41.816Z" }, + { url = "https://files.pythonhosted.org/packages/cf/78/e14991c9487277ed7d006fff58f3084ac792ed94cced081788abb95df70c/chardet-7.6.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c6061adf247ab5dda173b67010e13904c6071717660c7c8077fb50aca362b264", size = 1087678, upload-time = "2026-08-14T20:36:43.2Z" }, + { url = "https://files.pythonhosted.org/packages/7a/40/0f95e04cb1820e0a582cd6d86bbf26be8302a94ccf330f8ba5f69735389d/chardet-7.6.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:fc1e1571321baf8927582fe34363ad7f02279f11c8c2839c14b4c76894148db6", size = 1065310, upload-time = "2026-08-14T20:36:44.489Z" }, + { url = "https://files.pythonhosted.org/packages/3b/a1/04404dcc9d6e1253b02583e562d2c7ddca50a7e91f460d62eff7e1d07c92/chardet-7.6.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8900f6c7cf6b015b17a51767cc6144689059ba1cdceaa383d29eb037ac28579e", size = 1485028, upload-time = "2026-08-14T20:36:45.797Z" }, + { url = "https://files.pythonhosted.org/packages/f4/88/360064c4c7d9d0664561dae03b74c871d2f5332b329f5c99f1c997fb869a/chardet-7.6.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cedbc584789eb2edfde20fd03669972a833ce6019e60014ae613f9bfc440e8e3", size = 1510242, upload-time = "2026-08-14T20:36:47.206Z" }, + { url = "https://files.pythonhosted.org/packages/43/4c/302869fa1c69a5a41e4e78782680b12552ffd4286c3ae3c839b7b8df53d4/chardet-7.6.0-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d5dc835e40e0e09c2c3eab43731a8b5127834f42786dda09ba2f4b699ccd527a", size = 1456456, upload-time = "2026-08-14T20:36:48.668Z" }, + { url = "https://files.pythonhosted.org/packages/7c/a9/ff4fef15ed25fc3f945a3b981ae0f43c8559b3fbedb40267e59e583d105b/chardet-7.6.0-cp314-cp314-win_amd64.whl", hash = "sha256:0f304de7041afaec0195ad6464937cd112392002e9d72ed15d55f20a9abd3a13", size = 1159103, upload-time = "2026-08-14T20:36:50.107Z" }, + { url = "https://files.pythonhosted.org/packages/31/44/94e6f89485ce6c630e8fec6d388e3fa747e58b7246b0cc8c5c532ba98650/chardet-7.6.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:a4f0a368ad04d5def08bdfaa17c7e15e71552f93923dc2aa9b2f7d9dee02fbb6", size = 1120302, upload-time = "2026-08-14T20:36:51.484Z" }, + { url = "https://files.pythonhosted.org/packages/e0/cd/8e68ba12f13aaf4ee82d54ef8a1f83d62942e7a6bc1e579dd2d530a3e26e/chardet-7.6.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:75d6c3a4d2046d49e83d2d2206eb073a1f390743e856d90c1bbc19949b26acf4", size = 1093157, upload-time = "2026-08-14T20:36:52.987Z" }, + { url = "https://files.pythonhosted.org/packages/f3/f6/6a35342b9efa69dcceab0ea8966571c6442a59c336bf460f0a2af95ed234/chardet-7.6.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:459e2b1c98f9a86a4698112aa42dffa802bbbff883c1ff144071f87224125862", size = 1521213, upload-time = "2026-08-14T20:36:54.812Z" }, + { url = "https://files.pythonhosted.org/packages/df/8c/8f09bfabbaedae45caa72b996e96d5e3f6436dfddc55c1311ffa2f6bd7d2/chardet-7.6.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0bdb6f03107b7ace3f44e0edd91aa24456ee558787df265cc19daf45785b31c7", size = 1528427, upload-time = "2026-08-14T20:36:56.224Z" }, + { url = "https://files.pythonhosted.org/packages/0c/3d/2540627b193112e08b8045f3cad9295570866208555aa6625b63cc69c6cd/chardet-7.6.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:0c44a32da32cc8b23d6b20d98ace15ec7600950e4955d1bf5ab1f849b0187fdb", size = 1087374, upload-time = "2026-08-14T21:04:14.994Z" }, + { url = "https://files.pythonhosted.org/packages/fe/de/dac4f550cde73c4732b4916e72ec489ae36933fbbd1697e4122d3ae2e9dd/chardet-7.6.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:7bbc8a9652c7f859c593847f220c1d264f25749369abb1a267b404ee8cceb209", size = 1064688, upload-time = "2026-08-14T21:04:16.806Z" }, + { url = "https://files.pythonhosted.org/packages/06/45/f4f3f288496797d2cf1d1e9036f920ed2b4c79787b21c42a3314f4a6d532/chardet-7.6.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:83512a475a2f3886166aa0bca1bbb39343a4eb3186dd5532127d6f2591d09118", size = 1486320, upload-time = "2026-08-14T21:04:18.535Z" }, + { url = "https://files.pythonhosted.org/packages/c0/81/3ca30c16e6c6015b737fca22d9342957cc617d8a65329d3e963ad754a31b/chardet-7.6.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:271ab71ec1be61dbbce0436de0848895c03eae051c379e937a39573d9ce403d9", size = 1515374, upload-time = "2026-08-14T21:04:20.724Z" }, + { url = "https://files.pythonhosted.org/packages/6e/98/163a75b8b3372a6b6503f5f5a4154a222ac135c7a706b5d176f8e4b237a2/chardet-7.6.0-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:da86fc1b40ff5996fbb5e4c2d2dca770eac2c893cef157dacc050b8b4d929846", size = 1469504, upload-time = "2026-08-14T21:04:22.352Z" }, + { url = "https://files.pythonhosted.org/packages/d7/4f/3ad1b1bd27ae7f0d3d13cf711366525cd781a9e067950d8a09aa280916cb/chardet-7.6.0-cp315-cp315-win_amd64.whl", hash = "sha256:b73f277c1ac09c4f8076c4214b816c7aa78a0a2f0cb7156742f4303f856bedc3", size = 1158551, upload-time = "2026-08-14T21:04:24.259Z" }, + { url = "https://files.pythonhosted.org/packages/8d/92/22a609c68c5123ebdccd8fe1a80e423609012ce20166de19a2ed3955b2f7/chardet-7.6.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:61238d5945b36af9a2ad13494f8969b7deb3c3b4abe223e54670c064e73f5328", size = 1119186, upload-time = "2026-08-14T21:04:25.761Z" }, + { url = "https://files.pythonhosted.org/packages/29/35/75a90143e4200e197f4f6cf5895d379e22bc785d0c7711120df18fa5347c/chardet-7.6.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:f2ec3c78cc6b54bf8e091ec4ee885473078b5d7ef18ab1b01c86ae1e98bf88f7", size = 1092596, upload-time = "2026-08-14T21:04:27.884Z" }, + { url = "https://files.pythonhosted.org/packages/d1/2c/b6d5f47d878c46e04ae6fcb58e0969467925bc0819b333c682e0c41bbc5c/chardet-7.6.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:167d7ba3ee08b654e36d7b43ebd9a36606c9a12e2fabdb361757a095ca3b7e3d", size = 1516644, upload-time = "2026-08-14T21:04:29.624Z" }, + { url = "https://files.pythonhosted.org/packages/25/d2/2bc3f1066c6f27bc3fa3a98dfd8a2a9c1e969a9d6bdc1edcd35278791fc4/chardet-7.6.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f14f46ef1977e41ce1f4814ca6984cea7f8b6baf8cbc6626ef7bf3d13cf7ea13", size = 1533221, upload-time = "2026-08-14T21:04:31.39Z" }, + { url = "https://files.pythonhosted.org/packages/cf/6e/5a0b348fa4cd7847567a28c6e697ccf58391960bfd13a6e7473ee23ca2f2/chardet-7.6.0-py3-none-any.whl", hash = "sha256:4076d795897ce45239825956a1334e134322ecc4bfe84dbb12acd5390de0fbc1", size = 680279, upload-time = "2026-08-14T20:36:57.763Z" }, ] [[package]] name = "charset-normalizer" -version = "3.4.9" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/bd/2a/23f34ec9d04624958e137efdc394888716353190e75f25dd22c7a2c7a8aa/charset_normalizer-3.4.9.tar.gz", hash = "sha256:673611bbd43f0810bec0b0f028ddeaaa501190339cac411f347ac76917c3ae7b", size = 152439, upload-time = "2026-07-07T14:34:58.454Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ad/81/8e983840c6e5b93b33c2ba81aa3d52c2e42f0e9a690ce7607a2e61da4a5c/charset_normalizer-3.4.9-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:cd6280cf040f233bd7d3407b743b4b4c74f70e8e1c4199cb112a62c941c0772a", size = 322240, upload-time = "2026-07-07T14:32:36.236Z" }, - { url = "https://files.pythonhosted.org/packages/de/d1/b4319dc3229d8272fba305e206fc0a148e2de8d4087917ce62ae6382f359/charset_normalizer-3.4.9-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:aa99adc8f081b475a12843953db36831eaf83ec33eb46a90629ca6a5de45a616", size = 216475, upload-time = "2026-07-07T14:32:38.142Z" }, - { url = "https://files.pythonhosted.org/packages/80/33/6c99c1b3e6b8bf730e1bc809b9a2608f224145069114c479a2e9e1494346/charset_normalizer-3.4.9-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c1225416b463483160e4af85d5fc3a9690ccb53fd4b1865a6437825f5ede3209", size = 238670, upload-time = "2026-07-07T14:32:39.658Z" }, - { url = "https://files.pythonhosted.org/packages/7f/f4/ffbb83546e1f198ecc70ecd372b65cf2b50f9068b380abd67640f17a8e18/charset_normalizer-3.4.9-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:16d10d789dd9bcca1173c95af82c58433122564b7bc39385124be735a35cbe99", size = 233476, upload-time = "2026-07-07T14:32:41.155Z" }, - { url = "https://files.pythonhosted.org/packages/e8/5f/b98b8da398637b551e427e7be922bdec19177dc54d6811dcdaa503f23aac/charset_normalizer-3.4.9-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9bb41182d93ea91f60b4bc8fbf4c820c69ef8a12ab2d917f3f1834f1acad07e8", size = 223817, upload-time = "2026-07-07T14:32:42.592Z" }, - { url = "https://files.pythonhosted.org/packages/36/31/a276bb2e66243072a3fd06fdcab9cbb61a305b02143d70d2bda21d888fa8/charset_normalizer-3.4.9-cp310-cp310-manylinux_2_31_armv7l.whl", hash = "sha256:bcf74c1df76758a395bf0af608c04c82257523f55c9868b334f06270d0f2112b", size = 207974, upload-time = "2026-07-07T14:32:44.258Z" }, - { url = "https://files.pythonhosted.org/packages/5e/be/7ee4453d7e88dfbc4104ccd34900b9f2c7c17dac22881865fe0e82424a25/charset_normalizer-3.4.9-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b5314963fce9b0b12743891de876e724997864ee22aa496f903f426c7e2fa5b2", size = 221655, upload-time = "2026-07-07T14:32:45.64Z" }, - { url = "https://files.pythonhosted.org/packages/1d/85/181c652953eb5276d198f375b1dd641047392050098100a3a02d6534f657/charset_normalizer-3.4.9-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e9701d0049d92c16703a42771b98d560b95248949f23f8cf7b4eddd201814fb9", size = 219229, upload-time = "2026-07-07T14:32:47.376Z" }, - { url = "https://files.pythonhosted.org/packages/0c/e7/aaf6da33fc9f4691cda8f7efbc9f69179d3d39ec8a4799baf273ee1d8db0/charset_normalizer-3.4.9-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:65a7ff3f705e57d392f7261b6d0550fe137c3019477431f1c355e0db0a7d3e15", size = 209704, upload-time = "2026-07-07T14:32:48.855Z" }, - { url = "https://files.pythonhosted.org/packages/63/01/f2fb3bd3a73be48b173ee0c6aa8d2497af97d5663a8c4c4b491de4c62f7a/charset_normalizer-3.4.9-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:79580094b00d1789d1f93ea55bc43cb2f611910c72235b7657f3482ddcc1b22d", size = 226243, upload-time = "2026-07-07T14:32:50.239Z" }, - { url = "https://files.pythonhosted.org/packages/c4/02/c57a22739fe05246b0b5783b3bfb6afaac4eebb46f3ececdfb2f048f780e/charset_normalizer-3.4.9-cp310-cp310-win32.whl", hash = "sha256:432786d3561e69aeeae6c7e8648964ce0ad05736120135601f87ac26b9c83381", size = 150935, upload-time = "2026-07-07T14:32:51.676Z" }, - { url = "https://files.pythonhosted.org/packages/37/8d/ca39a7559a4797505530d084fd3a49a2c959efbbbff146302fb7be4e3b35/charset_normalizer-3.4.9-cp310-cp310-win_amd64.whl", hash = "sha256:8c041122946b7ba21bb32c45b1aa57b1be35527690aeb3c5c234521085632eee", size = 162314, upload-time = "2026-07-07T14:32:53.193Z" }, - { url = "https://files.pythonhosted.org/packages/01/da/a44bd7a13d426e69e4894557106cd58669097bfad4a8681123b618fbfc5d/charset_normalizer-3.4.9-cp310-cp310-win_arm64.whl", hash = "sha256:375b83ed0aecfce76c16d198fbc21f3b11b337d68662bea0a995046682a11419", size = 153075, upload-time = "2026-07-07T14:32:54.554Z" }, - { url = "https://files.pythonhosted.org/packages/0b/e3/85ec501f206fb049259288c1f3506e53876937fb00edb47009348e66756b/charset_normalizer-3.4.9-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:0e94703ec9684807f20cfb5eed95c70f67f2a8f21ad620146d7b5a13677b93e5", size = 317075, upload-time = "2026-07-07T14:32:56.021Z" }, - { url = "https://files.pythonhosted.org/packages/c3/69/2a5385192e67175f7d8bd5ce4f57c24bc956439adeae5c13a99aa28a53d1/charset_normalizer-3.4.9-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2a441ea71902098ffe78c5abe6c494f44160b4af614ed16c3d9a3b1d17fd8ee2", size = 213837, upload-time = "2026-07-07T14:32:57.78Z" }, - { url = "https://files.pythonhosted.org/packages/b3/46/03ddc7da576d814fe0a36dd1f0fd3258e95404b4b2e3c026b7923d7e133f/charset_normalizer-3.4.9-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:304b13570067b2547562e308af560b3963857b1fa90bd6afd978130130fe2d6a", size = 235503, upload-time = "2026-07-07T14:32:59.205Z" }, - { url = "https://files.pythonhosted.org/packages/4e/6e/de0229a7ef40f6f9d28a837eebf4ec47bdca5dab4e900c84f22919af636a/charset_normalizer-3.4.9-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4773092f8019072343a7447203308b176e10199920eb02d6195e81bbb3274c29", size = 229944, upload-time = "2026-07-07T14:33:00.803Z" }, - { url = "https://files.pythonhosted.org/packages/a5/34/49b9060e8418b14fb5cba9cf6bfb383111e2538a03a1fb18e66a95aeb3d5/charset_normalizer-3.4.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:04ce310cb89c15df659582aee80a0603788732a5e017d5bd5c81158106ce249c", size = 221276, upload-time = "2026-07-07T14:33:02.199Z" }, - { url = "https://files.pythonhosted.org/packages/44/95/80282cce0fae9c3061203d723ee87da996aed79679e65d8935050ee7ca1f/charset_normalizer-3.4.9-cp311-cp311-manylinux_2_31_armv7l.whl", hash = "sha256:c0323c9daef75ef2e5083624b4585018a0c9d5e3b40f607eed81a311270b934b", size = 205260, upload-time = "2026-07-07T14:33:03.698Z" }, - { url = "https://files.pythonhosted.org/packages/0c/74/2f62c8821b969ea3bd67cc2e6976834f48ca5d12664d2559ebcd9bcfbed7/charset_normalizer-3.4.9-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:871ff67ea1aad4dfd91736464934d56b32dac49f9fbe16cddba36198a7b3a0db", size = 217786, upload-time = "2026-07-07T14:33:05.12Z" }, - { url = "https://files.pythonhosted.org/packages/d9/8d/feabb82cb49fcad14515b1d7d1ca4787b0da7fc723a212bf89bc9e0fac52/charset_normalizer-3.4.9-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:67830fc78e67501f47bb950471b2dcb9b35b140084429318e862895a8e89c993", size = 216798, upload-time = "2026-07-07T14:33:06.629Z" }, - { url = "https://files.pythonhosted.org/packages/a5/ff/c946d63bc3786d5b84d960b0f7ab7e25b828486a946b5aa997625bcaf6a6/charset_normalizer-3.4.9-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:3d92613ec25e43b05f042302531ec0f00b8445190e43325880cbd6ab7c2581da", size = 206429, upload-time = "2026-07-07T14:33:08.006Z" }, - { url = "https://files.pythonhosted.org/packages/af/ba/5e5007c370702f85d2ef75791fac7943ed41e080364a673b20142e430e3e/charset_normalizer-3.4.9-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:280081916dc341820640489a66e4696049401ef1cf6dd672f672e70ad915aca3", size = 223066, upload-time = "2026-07-07T14:33:09.783Z" }, - { url = "https://files.pythonhosted.org/packages/83/d5/9096aa3cf532dfad237861544eb47a0f20d5adbf1039760fed8eaae935d9/charset_normalizer-3.4.9-cp311-cp311-win32.whl", hash = "sha256:ac351b3b8014eead140e77e9717e2992c6bbe30b63bc3422422eb84865412e3d", size = 150456, upload-time = "2026-07-07T14:33:11.217Z" }, - { url = "https://files.pythonhosted.org/packages/ed/a1/e29995109e455dc8eff8d0fac6ae509be39561318a7cfeac5d33ad029213/charset_normalizer-3.4.9-cp311-cp311-win_amd64.whl", hash = "sha256:6366a16e1a25018694d6a5d784d09b046edc9eac40ea2b54065c3052672516a1", size = 161410, upload-time = "2026-07-07T14:33:12.743Z" }, - { url = "https://files.pythonhosted.org/packages/4f/8d/1569f4d0032d6ba2a4fe4591c35bf87868c600c41a71eb5c2e1ffa8464c2/charset_normalizer-3.4.9-cp311-cp311-win_arm64.whl", hash = "sha256:1d22856ffbe153a602df38e4a5464f0b748a54002e0d69ac6d2ad0a197cc99ec", size = 152649, upload-time = "2026-07-07T14:33:14.173Z" }, - { url = "https://files.pythonhosted.org/packages/70/4a/ecbd131485c07fcdfad54e28946d513e3da22ef3b4bd854dcafae54ec739/charset_normalizer-3.4.9-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:45b0cc4e3556cd875e09102988d1ab8356c998b596c9fced84547c8138b487a0", size = 319300, upload-time = "2026-07-07T14:33:15.666Z" }, - { url = "https://files.pythonhosted.org/packages/ec/96/5d9364e3342d69f3a045e1777bc47c85c383e6e9466d561b33fdb419d1f9/charset_normalizer-3.4.9-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9b2aff1c7b3884512b9512c3eaadd9bab39fb45042ffaaa1dd08ff2b9f8109d9", size = 215802, upload-time = "2026-07-07T14:33:17.031Z" }, - { url = "https://files.pythonhosted.org/packages/4b/4c/5361f9aa7f2cb58d94f2ab831b3d493f69efb1d239654b4744e3c09527cb/charset_normalizer-3.4.9-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9104ed0bd76a429d46f9ec0dbc9b08ad1d2dcdf2b00a5a0daa1c145329b35b44", size = 237171, upload-time = "2026-07-07T14:33:18.576Z" }, - { url = "https://files.pythonhosted.org/packages/50/78/ce342ca4ff30b2eb49fe6d9578df85974f90c67d294113e94efdd9664cbd/charset_normalizer-3.4.9-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7b86a2b16095d250c6f58b3d9b2eee6f4147754344f3dab0922f7c9bf7d226c9", size = 233075, upload-time = "2026-07-07T14:33:20.084Z" }, - { url = "https://files.pythonhosted.org/packages/01/c4/4fa4c8b3097a11f3c5f09a35b72ed6855fb1d332469504962ab7bafcc702/charset_normalizer-3.4.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5e226f6218febc71f6c1fc2fafb91c226f75bdc1d8fb12d66823716e891608fd", size = 224256, upload-time = "2026-07-07T14:33:21.747Z" }, - { url = "https://files.pythonhosted.org/packages/87/3a/ad914516df7e358a81aae018caa5e0470ba827fa6d763b1d2e87d920a5f6/charset_normalizer-3.4.9-cp312-cp312-manylinux_2_31_armv7l.whl", hash = "sha256:90c44bc373b7687f6948b693cceaea1348ae0975d7474746559494468e3c1d84", size = 208784, upload-time = "2026-07-07T14:33:23.313Z" }, - { url = "https://files.pythonhosted.org/packages/d7/74/3c12f9755717dfe5c5c87da63f35d765fa0c00382ec26bf23f7fae34f2ba/charset_normalizer-3.4.9-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9cdef90ae47919cae358d8ab15797a800ed41da7aba5d72419fb510729e2ed4b", size = 219928, upload-time = "2026-07-07T14:33:24.814Z" }, - { url = "https://files.pythonhosted.org/packages/33/9a/895095b83e7907abd6d3d99aad3a38ad0d9686cc186cb0c94c24320fe63e/charset_normalizer-3.4.9-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:60f44ade2cf573dad7a277e6f8ca9a51a21dda572b13bd7d8539bb3cd5dbedde", size = 218489, upload-time = "2026-07-07T14:33:26.42Z" }, - { url = "https://files.pythonhosted.org/packages/a1/34/ef5c05f412f42520d7709b7d3784d19640839eb7366ded1755511585429f/charset_normalizer-3.4.9-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:a1786910334ed46ab1dd73222f2cd1e05c2c3bb39f6dddb4f8b36fc382058a39", size = 210267, upload-time = "2026-07-07T14:33:27.952Z" }, - { url = "https://files.pythonhosted.org/packages/83/dc/9b29fa4412b318bf3bfea985c35d67eb55e04b59a7c3f2237168b0e0be6f/charset_normalizer-3.4.9-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:03d07803992c6c7bbc976327f34b18b6160327fc81cb82c9d504720ac0be3b62", size = 226030, upload-time = "2026-07-07T14:33:29.397Z" }, - { url = "https://files.pythonhosted.org/packages/0e/42/6dbc00b8cd16011691203e33570fa42ed5746599a2e878112d16eab403a3/charset_normalizer-3.4.9-cp312-cp312-win32.whl", hash = "sha256:78841cccf1af7b40f6f716338d50c0902dbe88d9f800b3c973b7a9a0a693a642", size = 151185, upload-time = "2026-07-07T14:33:30.781Z" }, - { url = "https://files.pythonhosted.org/packages/80/cc/f920afd1a23c58ccd53c1d36085a71893a4737ff5e66e0371efab6809850/charset_normalizer-3.4.9-cp312-cp312-win_amd64.whl", hash = "sha256:4b3dac63058cc36820b0dd072f89898604e2d39686fe05321729d00d8ac185a0", size = 162557, upload-time = "2026-07-07T14:33:32.176Z" }, - { url = "https://files.pythonhosted.org/packages/f0/e6/0386d43a261ff4e4b30c5857af7df877254b46bec7b9d1b74b6bf969a90b/charset_normalizer-3.4.9-cp312-cp312-win_arm64.whl", hash = "sha256:78fa18e436a1a0e58dbd7e02fc4473f3f32cceb12df9dfca542d075961c307d2", size = 152665, upload-time = "2026-07-07T14:33:33.711Z" }, - { url = "https://files.pythonhosted.org/packages/b2/06/97ec2aeae780b31d742b6352218b43841a6871e2564578ca522dce4a45c3/charset_normalizer-3.4.9-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:440eede837960000d74978f0eba527be106b5b9aee0daf779d395276ed0b0614", size = 317688, upload-time = "2026-07-07T14:33:35.408Z" }, - { url = "https://files.pythonhosted.org/packages/d0/39/8ff066c672434225f8d25f8b739f992af250944392173dcc88362681c9bf/charset_normalizer-3.4.9-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:21e764fd1e70b6a3e205a0e46f3051701f98a8cb3fad66eeb80e48bb502f8698", size = 214982, upload-time = "2026-07-07T14:33:36.996Z" }, - { url = "https://files.pythonhosted.org/packages/92/8f/3a47a3667c83c2df9483d91644c6c107de3bf8874aa1793da9d3012eb986/charset_normalizer-3.4.9-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e4fd89cc178bced6ad29cb3e6dd4aa63fa5017c3524dbd0b25998fb64a87cc8b", size = 236460, upload-time = "2026-07-07T14:33:38.536Z" }, - { url = "https://files.pythonhosted.org/packages/f1/60/b22cdbee7e4013dab8b0d7647fc6181120fbbbc8f7025c226d15bd5a47fc/charset_normalizer-3.4.9-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bd47ba7fc3ca94896759ea0109775132d3e7ab921fbf54038e1bab2e46c313c9", size = 232003, upload-time = "2026-07-07T14:33:40.059Z" }, - { url = "https://files.pythonhosted.org/packages/ea/f8/72eb13dcabe7257035cea8aefd922caad2f110d252bf9f67c4c2ca763aee/charset_normalizer-3.4.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:84fd18bcc17526fc2b3c1af7d2b9217d32c9c04448c16ec693b9b4f1985c3d33", size = 223149, upload-time = "2026-07-07T14:33:41.631Z" }, - { url = "https://files.pythonhosted.org/packages/b0/3e/faee8f9de92b14ee1198e9163252bb15efee7301b31256a3b6d9ebfdd0dd/charset_normalizer-3.4.9-cp313-cp313-manylinux_2_31_armv7l.whl", hash = "sha256:5b10cd92fc5c498b35a8635df6d5a100207f88b63a4dc1de7ef9a548e1e2cd63", size = 207901, upload-time = "2026-07-07T14:33:43.209Z" }, - { url = "https://files.pythonhosted.org/packages/3a/25/45f30093ae27dd7b92a793b61882a38685f993700113ca36e0c9c14965e1/charset_normalizer-3.4.9-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a4fbdde9dd4a9ce5fd52c2b3a347bb50cc89483ef783f1cb00d408c13f7a96c0", size = 219176, upload-time = "2026-07-07T14:33:44.725Z" }, - { url = "https://files.pythonhosted.org/packages/48/18/c8f397329c35e32f6a837e488986f4ae03bd2abebc453b48714991630c2f/charset_normalizer-3.4.9-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:416c229f77e5ea25b3dfd4b582f8d73d7e43c22320302b9ab128a2d3a0b38efe", size = 217356, upload-time = "2026-07-07T14:33:46.192Z" }, - { url = "https://files.pythonhosted.org/packages/86/7e/5ce0bba863470fd1902d5e5843968951bddf38abe4742fc97116ef4598b3/charset_normalizer-3.4.9-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:75286256590a6320cf106a0d28970d3560aad9ee09aa7b34fb40524792436d35", size = 209614, upload-time = "2026-07-07T14:33:47.705Z" }, - { url = "https://files.pythonhosted.org/packages/6c/ef/2473d3c4d869155be4af1191111d59c4d5c4e0173026f7e85b176e23bf65/charset_normalizer-3.4.9-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:69b157c5d3292bcd443faca052f3096f637f1e074b98212a933c074ae23dc3b8", size = 224991, upload-time = "2026-07-07T14:33:49.238Z" }, - { url = "https://files.pythonhosted.org/packages/d0/a3/53ddae3db108a088156aa8ddfafd411ebbc1340f48c5573f697b27f69a39/charset_normalizer-3.4.9-cp313-cp313-win32.whl", hash = "sha256:51307f5c71007673a2bf8232ad973483d281e74cb99c8c5a990af1eefa6277d9", size = 150622, upload-time = "2026-07-07T14:33:50.711Z" }, - { url = "https://files.pythonhosted.org/packages/e8/ef/6953a77c7cf2c2ff9998e6f575ab3e380119f100223381565a4f94c1f836/charset_normalizer-3.4.9-cp313-cp313-win_amd64.whl", hash = "sha256:fe2c7201c642b7c308f1675355ad7ff7b66acfe3541625efe5a3ad38f29d6115", size = 161947, upload-time = "2026-07-07T14:33:52.197Z" }, - { url = "https://files.pythonhosted.org/packages/6e/fb/d560d1d1555debbfe7849d9cac6145c1b537709d79576bf22557ed803b82/charset_normalizer-3.4.9-cp313-cp313-win_arm64.whl", hash = "sha256:611057cc5d5c0afc743ba8be6bd828c17e0aaa8643f9d0a9b9bb7dea80eb8012", size = 152594, upload-time = "2026-07-07T14:33:53.486Z" }, - { url = "https://files.pythonhosted.org/packages/7e/8d/496817fa0944239ecae662dd57ea765cfeaec6a735f9f025d4b7b72e7143/charset_normalizer-3.4.9-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:0327fcd59a935777d83410750c50600ee9571af2846f71ce40f25b13da1ef380", size = 317253, upload-time = "2026-07-07T14:33:54.994Z" }, - { url = "https://files.pythonhosted.org/packages/2b/f9/ef4a69ea338ad3c0deceea0f5f7d2380ae8b52132b06d652cb0d2cd86706/charset_normalizer-3.4.9-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8a79d9f4d8001473a30c163556b3c3bfebec837495a412dde78b51672f6134f9", size = 215898, upload-time = "2026-07-07T14:33:56.334Z" }, - { url = "https://files.pythonhosted.org/packages/8c/e7/5ddfd76fc061eb52de219658a4aa431cbacadf0a0219c8854f00da50d289/charset_normalizer-3.4.9-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:33bdcc2a32c0a0e861f60841a512c8acc658c87c2ac59d89e3a46dacf7d866e4", size = 236718, upload-time = "2026-07-07T14:33:57.9Z" }, - { url = "https://files.pythonhosted.org/packages/49/ba/768fa3f36048d81c477a0ce61f813bc1454d80917ccfe550abd9f44f5e24/charset_normalizer-3.4.9-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f840ed6d8ecba8255df8c42b87fadeda98ddfc6eeec05e2dc66e26d46dd6f58a", size = 232519, upload-time = "2026-07-07T14:33:59.811Z" }, - { url = "https://files.pythonhosted.org/packages/f4/c4/b3e049d2aa3766180c78507110543d9d50894cc97f57de543f1be521dcdc/charset_normalizer-3.4.9-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c25fe15c70c59eb7c5ce8c06a1f3fa1da0ecc5ea1e7a5922c40fd2fa9b0d5046", size = 223143, upload-time = "2026-07-07T14:34:01.517Z" }, - { url = "https://files.pythonhosted.org/packages/19/79/55c32d06d76ae4feafe053f061f3e3ab70bcf19f4007797ce8c3efda7830/charset_normalizer-3.4.9-cp314-cp314-manylinux_2_31_armv7l.whl", hash = "sha256:f7fb7d750cfa0a070d2c24e831fd3481019a60dd317ea2b39acbcebc08b6ed81", size = 206742, upload-time = "2026-07-07T14:34:03.04Z" }, - { url = "https://files.pythonhosted.org/packages/10/e0/47c079dd82d217c807479cd59ffd30af56307ea31c108b75758970459ad3/charset_normalizer-3.4.9-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4d1c96a7a18b9690a4d46df09e3e3382406ae3213727cd1019ebade1c4a81917", size = 219191, upload-time = "2026-07-07T14:34:04.657Z" }, - { url = "https://files.pythonhosted.org/packages/42/ab/b9bc2e77d6b44a7e46ef62ec5cac1c9a6ba7b9135a5d560f002696ec9995/charset_normalizer-3.4.9-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a4cfde78a9f2880208d16a93b795726a3017d5977e08d1e162a7a31322479c41", size = 218328, upload-time = "2026-07-07T14:34:06.115Z" }, - { url = "https://files.pythonhosted.org/packages/f1/78/c9c71d599f5aa2d42bcdd35cbbd46d7f535351a57e40ff7d8e5a7e219401/charset_normalizer-3.4.9-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:d4d6fcde76f94f5cb9e43e9e9a61f16dacefd228cbbf6f1a09bd9b219a92f1a1", size = 207406, upload-time = "2026-07-07T14:34:07.554Z" }, - { url = "https://files.pythonhosted.org/packages/f6/39/c914445c321a845097ce4f6ac7de9a18228a77b766272125a1ce00d851eb/charset_normalizer-3.4.9-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:898f0e9068ca27d37f8e83a5b962821df851532e6c4a7d615c1c033f9da6eedf", size = 225157, upload-time = "2026-07-07T14:34:09.061Z" }, - { url = "https://files.pythonhosted.org/packages/9b/f2/c0d4b8508565a36bc5c624e88ed297f5b0b1095011034d7f5b83a69908b5/charset_normalizer-3.4.9-cp314-cp314-win32.whl", hash = "sha256:c1c948747b03be832dceed96ca815cef7360de9aa19d37c730f8e3f6101aca48", size = 151095, upload-time = "2026-07-07T14:34:10.901Z" }, - { url = "https://files.pythonhosted.org/packages/49/fd/a1d26144398c67486422a72bf5812cda22cb4ccfcd95a290fb41ceb4b8e2/charset_normalizer-3.4.9-cp314-cp314-win_amd64.whl", hash = "sha256:16b65ea0f2465b6fb52aa22de5eca612aa964ddfec00a912e26f4656cbef890b", size = 162796, upload-time = "2026-07-07T14:34:12.47Z" }, - { url = "https://files.pythonhosted.org/packages/20/95/d75e82f8ce9fd323ebf059c16c9aadefb22a1ecde13b7840b35835e4886c/charset_normalizer-3.4.9-cp314-cp314-win_arm64.whl", hash = "sha256:40a126142a56b2dfc0aacbad1de8310cbf60da7656db0e6b16eebd48e3e93519", size = 153334, upload-time = "2026-07-07T14:34:14.044Z" }, - { url = "https://files.pythonhosted.org/packages/00/5e/17398df3a139985ba9d11ed072531986f408c8fca952835ef1ab1820c02b/charset_normalizer-3.4.9-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:609b3ba8fcc0fb5ab7af00719d0fb6ad0cb518e48e7712d12fd68f1327951198", size = 338848, upload-time = "2026-07-07T14:34:15.688Z" }, - { url = "https://files.pythonhosted.org/packages/cd/91/7253a32e86b7e1d1239b1b36ba6dd0f021a21107ab33054b53119cc083b9/charset_normalizer-3.4.9-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:51447e9aa2684679af07ca5021c3db526e0284347ebf4ffcec1154c3350cfe32", size = 223022, upload-time = "2026-07-07T14:34:17.248Z" }, - { url = "https://files.pythonhosted.org/packages/cb/32/2e64bd2be10e89c61e57ebe6a93fd98ae88eb7ebe414b5121f22c96c69eb/charset_normalizer-3.4.9-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:cc1b0fff8ead343dae06305f954eb8468ba0ec1a97881f42489d198e4ce3c632", size = 241590, upload-time = "2026-07-07T14:34:18.813Z" }, - { url = "https://files.pythonhosted.org/packages/3d/ef/d96ec496cfea0c21db43b0ad03891308b02388d054cc902cf0e5a1ad6a88/charset_normalizer-3.4.9-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fa36ec09ef71d158186bc79e359ff5fdd6e7996fe8ab638f00d6b93139ba4fcf", size = 239584, upload-time = "2026-07-07T14:34:20.52Z" }, - { url = "https://files.pythonhosted.org/packages/d4/ce/9af95f7876194bd7a14e3dfe4a4de2e0bff02666a3910d72beafd06cc297/charset_normalizer-3.4.9-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:df115d4d83168fdf2cae48ef1ff6d1cb4c466364e30861b37121de0f3bf1b990", size = 230224, upload-time = "2026-07-07T14:34:22.189Z" }, - { url = "https://files.pythonhosted.org/packages/52/94/af74dde74a3996bd959c350709bfe50e297823d70a8c1cbd54b838880863/charset_normalizer-3.4.9-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:f86c6358749bd4fda175388691e3ba8c46e24c5347d0afd20f9b7edfc9faf07d", size = 212667, upload-time = "2026-07-07T14:34:23.857Z" }, - { url = "https://files.pythonhosted.org/packages/ee/f0/f1c4fe746c395922961b5916ed1d7d6e7d4c84851d19ed43cc89980ec953/charset_normalizer-3.4.9-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:32286a2c8d167e897177b673176c1e3e00d4057caf5d2b64eef9a3666b03018e", size = 227179, upload-time = "2026-07-07T14:34:25.586Z" }, - { url = "https://files.pythonhosted.org/packages/e4/56/6c745619ac397e8871e2bcd3cea1eec86b877488f33888b3aef5c3ed506e/charset_normalizer-3.4.9-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:83aed2c10721ddd90f68140685391b50811a880af20654c59af6b6c66c40513c", size = 225372, upload-time = "2026-07-07T14:34:27.212Z" }, - { url = "https://files.pythonhosted.org/packages/78/ad/98aae8630ac71f16711968e38a5acfecce41b778bf2f0312851020f565a8/charset_normalizer-3.4.9-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:cd6c3d4b783c556fa00bf540854e42f135e2f256abd29669fcd0da0f2dec79c2", size = 215222, upload-time = "2026-07-07T14:34:28.774Z" }, - { url = "https://files.pythonhosted.org/packages/f7/40/9593d54209765207a7f11073c06494c1721e4ca4a0a426c597679bf7f91e/charset_normalizer-3.4.9-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ee2f2a527e3c1a6e6411eb4209642e138b544a2d72fe5d0d76daf77b24063534", size = 231958, upload-time = "2026-07-07T14:34:30.345Z" }, - { url = "https://files.pythonhosted.org/packages/b1/27/693ee5e8a18191eb38647360c51cd505013e2bd3b366aa43fd5344c21e3c/charset_normalizer-3.4.9-cp314-cp314t-win32.whl", hash = "sha256:0d861473f743244d349b50f850d10eb87aeb22bbdcc8e64f79273c94af5a8226", size = 155580, upload-time = "2026-07-07T14:34:31.884Z" }, - { url = "https://files.pythonhosted.org/packages/80/3f/bd97d3d9c613013d07cb7733d299385b41df37f0471310f5a73dc359f0b8/charset_normalizer-3.4.9-cp314-cp314t-win_amd64.whl", hash = "sha256:9b8e0f3107e2200b76f6054de99016eac3ee6762713587b36baaa7e4bd2ae177", size = 167620, upload-time = "2026-07-07T14:34:33.438Z" }, - { url = "https://files.pythonhosted.org/packages/3d/c6/eee9dca4439b1061f76373f06ea855678cc4a64c1c3c90b50e479edbb8eb/charset_normalizer-3.4.9-cp314-cp314t-win_arm64.whl", hash = "sha256:19ac87f93086ce37b86e098888555c4b4bc48102279bae3350098c0ed664b501", size = 158037, upload-time = "2026-07-07T14:34:35.018Z" }, - { url = "https://files.pythonhosted.org/packages/98/2b/f97f1c193fb855c345d678f5077d6926034db0722df74c8f057020e05a25/charset_normalizer-3.4.9-py3-none-any.whl", hash = "sha256:68e5f26a1ad57ded6d1cfb85331d1c1a195314756471d97758c48498bb4dcdf5", size = 64538, upload-time = "2026-07-07T14:34:56.993Z" }, +version = "3.5.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/33/1c/f41d4e74c28ab327ff3acd36053f7ea506c55872d7a90b0fa71aa3ab0c89/charset_normalizer-3.5.2.tar.gz", hash = "sha256:39de2a259fc954455c57274dc94c79d5842774e1247a016aff30bc0efed0f4ef", size = 172659, upload-time = "2026-09-30T04:39:23.398Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/22/67/6a0b94a7960d5e1b5eacd2fb529f3fccc47db4644f7f0a7cfdcfc3be578a/charset_normalizer-3.5.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:3d21b8b13c7592db2ac5e544a6d83187b995257472b0c9e8351b6d507ae37ed6", size = 370642, upload-time = "2026-09-30T04:35:06.91Z" }, + { url = "https://files.pythonhosted.org/packages/fb/94/01009e13b94041599004edf32e56e382c24e570f60f79bab8efe45cfe1eb/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d760fe2a4d7c3b226cb9026d6a842868d52a7901bd98420e1baf14e80da85cf5", size = 259280, upload-time = "2026-09-30T04:35:08.448Z" }, + { url = "https://files.pythonhosted.org/packages/66/85/3b5358f60a13210f0b67d3755c168ef758701b021e655d88d4da28554467/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c9790464842f85f437dbbb54417eda1e0e6bfc52dd8d22d6fd1c994b73b2dc74", size = 245335, upload-time = "2026-09-30T04:35:10.104Z" }, + { url = "https://files.pythonhosted.org/packages/74/75/77c1c479b09ecd751d1e767b251ea5c14d4d50ff757bf404afab2692f600/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4685902cf26edf013ed7a3da0f426ebba7a00ebb9541386d835afbf002c11cab", size = 291707, upload-time = "2026-09-30T04:35:11.575Z" }, + { url = "https://files.pythonhosted.org/packages/0b/0d/363f78cacb70f58f15f4b083961bbd9d292f335d3f5c66fc4f1cfe69cb90/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4495c5002a7b28557e7e222e77e0b661183e432b7d6d2e788101e3f240e05b8c", size = 286747, upload-time = "2026-09-30T04:35:13.022Z" }, + { url = "https://files.pythonhosted.org/packages/e4/ed/cf505d3011ffceb12c2067a7a5d3cfe92b875d4d44bb0ff0d69375e2c184/charset_normalizer-3.5.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:211d5a3eb6af8f513b8d4ca19a8c1b7accab1b5f0d3175f9826b03c1a920dc1f", size = 269972, upload-time = "2026-09-30T04:35:14.606Z" }, + { url = "https://files.pythonhosted.org/packages/15/d8/f0a93a431d170e7ca681d4f6650fee3de934d18560e474e7267eb4b0f987/charset_normalizer-3.5.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ef4fcbf3327382cd4c9f540babd61248208af7b93eec4de397b4d5f58a09e288", size = 269339, upload-time = "2026-09-30T04:35:16.087Z" }, + { url = "https://files.pythonhosted.org/packages/86/bd/9b2bd1c5b7af02462c9752d33994834ff972a96b4c483eefde9e594488e2/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:bd16aabe4a02a297c23417aa17ac6299dbd8c49f673bcd645b4929b11f5a4400", size = 261683, upload-time = "2026-09-30T04:35:17.488Z" }, + { url = "https://files.pythonhosted.org/packages/76/a5/cac540ab0fd61f3fec88ad3dbb64509e71424593d73cfdfff5ab3e4db279/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:fb9e68df06293761f9fe66ade60a9bc6d0f5e42b8acf2939a9158af86ab0e5bd", size = 248143, upload-time = "2026-09-30T04:35:18.849Z" }, + { url = "https://files.pythonhosted.org/packages/71/7a/ff467301deef2089fad87f72df9e000a26a78fec7acbb18e1999371b8369/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:59f63901b0031c3136cf64704dcb21de0bbae62ce2c9529bc39d27665463de37", size = 292358, upload-time = "2026-09-30T04:35:20.326Z" }, + { url = "https://files.pythonhosted.org/packages/ad/77/22d7e785d1e210afc2e2f58600dd1799d17a35665faf84383f002826c5f8/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:304d5463e65a35d7bb0850550e0780395395f6fcf452f04db7d5ca7cecc425ac", size = 268766, upload-time = "2026-09-30T04:35:21.72Z" }, + { url = "https://files.pythonhosted.org/packages/ae/91/e8e946267f1c2d9e2bd651726e2fbd2addf02c4d36cea5069e32ca9d7bb5/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:9cf9b1a857e25c4baceeb3624e92a56df3668f398c4acba74e174d81fb4d1d3a", size = 287432, upload-time = "2026-09-30T04:35:23.273Z" }, + { url = "https://files.pythonhosted.org/packages/4e/88/7561d8a88d555e7df6623abe7c0070b4baf47549b9408783a2ae0a1a6cf7/charset_normalizer-3.5.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:114e4d0c92d618409ed82a99e22b5c5e768fe995f2973f78265f4524f49d4640", size = 272470, upload-time = "2026-09-30T04:35:24.655Z" }, + { url = "https://files.pythonhosted.org/packages/35/7e/578c702301ec036f01455f30744a08d2b42f6ab35b9b2d4bf8cae0ef2a80/charset_normalizer-3.5.2-cp311-cp311-win32.whl", hash = "sha256:2625388c6c754520c37abaf3b41eb34d1cc4a373f457898f08606c8e362b891d", size = 186688, upload-time = "2026-09-30T04:35:26.225Z" }, + { url = "https://files.pythonhosted.org/packages/e8/fc/fdf8cf52ff21cd5bf158f20978991cf985325842f74283eb6df26c8a39d8/charset_normalizer-3.5.2-cp311-cp311-win_amd64.whl", hash = "sha256:87e50a3e7cb90af586b6c5faf23e302a970415ac73bd7bd90a515a04b427ef96", size = 214932, upload-time = "2026-09-30T04:35:27.796Z" }, + { url = "https://files.pythonhosted.org/packages/97/66/3e45a506d8110b632541faf9a9470185aa9878f1ed44020f31346c1c5e5b/charset_normalizer-3.5.2-cp311-cp311-win_arm64.whl", hash = "sha256:254eb48b9fa5ee9898a3c445825a1f340fe53712a098904b39b0bddba8ea3cb1", size = 202828, upload-time = "2026-09-30T04:35:29.259Z" }, + { url = "https://files.pythonhosted.org/packages/e7/c8/693809898870237d82785a03f3b2b58fe4c9f14669f84a7d4e623c92a59e/charset_normalizer-3.5.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ed2a239c0ea213acc1908150a3037257083c7c083128f1a4cec2ec4b97dca491", size = 367780, upload-time = "2026-09-30T04:35:30.888Z" }, + { url = "https://files.pythonhosted.org/packages/c9/87/2fea8c13dc24b3ca9c6f803a5b2dfdeae73eb4f9e12c7885ed908ff0433c/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b91363207bd9dc966a691e959bb47f64b30f7ac4b072be9968b366982f7db77c", size = 246730, upload-time = "2026-09-30T04:35:32.286Z" }, + { url = "https://files.pythonhosted.org/packages/a8/9e/09efac30b937722f46d3110ba30b875b24b2e3a266ed746cc4e376a94d80/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:38a873987f3be698494da8b2e3085e29da02da7b633dce73e79c699a113d7bf0", size = 237707, upload-time = "2026-09-30T04:35:33.709Z" }, + { url = "https://files.pythonhosted.org/packages/9e/18/70d76670b13686237863a379928d60bd10e021f17d243ab3d7014c4a5f4e/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:355ad8011081dec5412240c087a9a0c9d4d5039f3ed11a3f13e18c2b29b56c51", size = 273050, upload-time = "2026-09-30T04:35:35.138Z" }, + { url = "https://files.pythonhosted.org/packages/54/e2/77a8b09d5adc013ed07b95b01b8b8fa5441c4e810e83ee7e4aae2fa4d91a/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ee21e28f0430bd6dc9086c6e525d5e818a44a5ad19720c8a0ef766792f3eb5e5", size = 270345, upload-time = "2026-09-30T04:35:36.502Z" }, + { url = "https://files.pythonhosted.org/packages/7f/c5/38806a25ab5e65fc178f39affeda20858efafede2fce1ffc2556cfc9fe73/charset_normalizer-3.5.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3d31298449090ab8d47b7b1b2a555ff73cac7ed438a08b7ac160980c7ebed649", size = 257601, upload-time = "2026-09-30T04:35:37.919Z" }, + { url = "https://files.pythonhosted.org/packages/ae/8d/213565184708fdb263ae55e2c04ee1ff748129dd65d48ed0e3502da9c85a/charset_normalizer-3.5.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5cde776b7cc66e4f6c99612cea4aa7269aa65863f7a15841b2c264f103822f4e", size = 252222, upload-time = "2026-09-30T04:35:39.544Z" }, + { url = "https://files.pythonhosted.org/packages/7e/24/76d2cefc25472531e4c5c7dfff68865eb1c39b78482f0fdc15b46f047830/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ae4f5fea5b8b8ccff88238cc8569303e5ee95efae67fa62922a311397a71f346", size = 248482, upload-time = "2026-09-30T04:35:41.088Z" }, + { url = "https://files.pythonhosted.org/packages/7d/dc/65a801b66ab4c197e22c433ab25e7ac24324ac6f45a2269aca42cce309bf/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:f7d486c83842422badd511868fd8a9a20e9407ace71564b6af47ce7e60a336c1", size = 241206, upload-time = "2026-09-30T04:35:42.59Z" }, + { url = "https://files.pythonhosted.org/packages/a7/95/ca9b5eabde673002c6f1e7ada1b223916fe18f6d661da7aabd4d643718f1/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:11a4d68a6ecda3292cb1e50239e111543ba5d709bb62a6b4ea1afcfa729d8875", size = 273190, upload-time = "2026-09-30T04:35:44.347Z" }, + { url = "https://files.pythonhosted.org/packages/2d/8b/803b4d2a3f6e1740f63f1e87b04d14b42f3d4fdfe6ed7d4db2d34102b14f/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:d6734d2ef8a50fbf8445c139477da401f50d62a0606bf00e20ec6d87773fefb1", size = 253527, upload-time = "2026-09-30T04:35:45.915Z" }, + { url = "https://files.pythonhosted.org/packages/a9/55/93c0e5dbd085ae0471346026abbe7e0db9ea2d6fea74e51f0b5a46f233a7/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:a815775b6c38d4e0ff7bcffbeba67feded90202bb6a226b8dd35f1c855217413", size = 271285, upload-time = "2026-09-30T04:35:47.49Z" }, + { url = "https://files.pythonhosted.org/packages/95/69/0dbd0e0b9b16cfa816cdfcb3e2e3854a1f680dc07fb1245ea125e7448060/charset_normalizer-3.5.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:23851fb4e1b85ed3f6c2a27b777cdfe2e19fb5b38429a8faf38c7542b7665869", size = 260010, upload-time = "2026-09-30T04:35:48.996Z" }, + { url = "https://files.pythonhosted.org/packages/58/9d/e7b88e7b1bf403590c3b573277b5e1e488c68c7a6fbacca310a2c324e90c/charset_normalizer-3.5.2-cp312-cp312-win32.whl", hash = "sha256:db19d07e2e0129e974a0e65d0064fc222a446cd5122c2fd4184d2af9fc734a9e", size = 184125, upload-time = "2026-09-30T04:35:50.777Z" }, + { url = "https://files.pythonhosted.org/packages/eb/e6/e6e083884cbcfd49c64865af05027fe7011be7b2d9179524f099a1b611f3/charset_normalizer-3.5.2-cp312-cp312-win_amd64.whl", hash = "sha256:780fbe7cab297b81dad9fb8dc5eb003c0468ffb0d9e5f65068c53a34661a96bc", size = 207486, upload-time = "2026-09-30T04:35:52.194Z" }, + { url = "https://files.pythonhosted.org/packages/c4/e3/017aea0911ada7405a825c7d937eb3a13009664e2f5b38e8c4bbf2abf894/charset_normalizer-3.5.2-cp312-cp312-win_arm64.whl", hash = "sha256:e2af3aad578aa6bd1384bcf4750fc285e5a9de53f40b7d41e5a0bf748edeb2b3", size = 196734, upload-time = "2026-09-30T04:35:53.636Z" }, + { url = "https://files.pythonhosted.org/packages/c5/34/68292d68512768591aaff07c59bb53ee31341c87759433a859c4641a50c2/charset_normalizer-3.5.2-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:ed905975ab14056a2e5eb1c376cb2e1ebc5396baf84163939c518556fccde9f5", size = 225946, upload-time = "2026-09-30T04:35:55.313Z" }, + { url = "https://files.pythonhosted.org/packages/e3/80/bee0b01b90ccd5322ae1d0abb33fab1bd95b7c2eadaf02aeccf22e04ee83/charset_normalizer-3.5.2-cp313-cp313-android_24_x86_64.whl", hash = "sha256:a66c3bc5ab1f0ff2164fc9965ddd611ff0802173f4b9d24554c563f6ab7e1d6e", size = 238619, upload-time = "2026-09-30T04:35:56.863Z" }, + { url = "https://files.pythonhosted.org/packages/78/6e/60ce52a85a7fd631ae8482ae6d74521014ca2f255892679484dc04d7ef56/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d2374b62878abb00cd8309b32af6c0b715cd02dec0ca74ef12e5069bdc64144a", size = 206701, upload-time = "2026-09-30T04:35:58.639Z" }, + { url = "https://files.pythonhosted.org/packages/36/8c/71aafad23f971afc84c2b295bc0c560739ce1dac558aad9fec22e39f3639/charset_normalizer-3.5.2-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d376bbd28b3a8999db1a103b3b388aee6f1ddeb3e51bc2172993efdcd86e064d", size = 210506, upload-time = "2026-09-30T04:36:00.147Z" }, + { url = "https://files.pythonhosted.org/packages/91/da/3c5a7798c046df7d2d68ad653cf5b6c5a8bfee225055a843c6f2f42aac1a/charset_normalizer-3.5.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6045373d5a89a5ec71afde535db987ca28e76dfa276c2d4c818265b375d4b055", size = 366626, upload-time = "2026-09-30T04:36:01.77Z" }, + { url = "https://files.pythonhosted.org/packages/e1/16/710ac3de2ee354e2bd1a9c94efe45a2d27b5c6ad39b2d6a905be2c094b6c/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:849df64e889b2e17230d58410a03dba311a65b163508fd33679b2b737d4b7858", size = 244624, upload-time = "2026-09-30T04:36:03.389Z" }, + { url = "https://files.pythonhosted.org/packages/d6/39/45c7439f5b63d24f7d5b2a1d760f34af7628782d7144b4cc8ded45c2d4bc/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:15c44f7edfd477b06f517a5cc317fc1707edb9de2c865f43d4b6513907473234", size = 235731, upload-time = "2026-09-30T04:36:04.987Z" }, + { url = "https://files.pythonhosted.org/packages/4d/34/38f3154785ce92e9f56eb226f4d35bdfae6b008480dd055f58837a89c810/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a89012d6d5476ee112d20d998570ed58df2260a852afb1758809cd6900411d21", size = 270352, upload-time = "2026-09-30T04:36:06.412Z" }, + { url = "https://files.pythonhosted.org/packages/04/f3/859f74e7babc977705026b30593b3be04049632a522fb7000f83c033d747/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0c951d5e6dd9c2ff60609476752bee49da4206adde960ebc247766937f72e718", size = 267393, upload-time = "2026-09-30T04:36:07.865Z" }, + { url = "https://files.pythonhosted.org/packages/4b/85/41d27f234b82e47c167a5f6c0f62501dc0c640585ff4aba79e08a390336a/charset_normalizer-3.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7218e8f32b0956cfcd048fd42d9d5779809745ca1d86113ca56f66e7ae1549c4", size = 254660, upload-time = "2026-09-30T04:36:09.248Z" }, + { url = "https://files.pythonhosted.org/packages/58/ca/5d1a997587febe5b26d8daffe363b5c1a091cece19828eec6502fd09c5ef/charset_normalizer-3.5.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a19a731138fc27d5682277d3b9df22855cea1239bce7fcec5f78f42ef2d1f3c3", size = 249996, upload-time = "2026-09-30T04:36:10.73Z" }, + { url = "https://files.pythonhosted.org/packages/b3/1f/d1e78246f7ed60c8c8d606b4ac27f66ce49cc3e95f24893ccbeba9f77302/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:62603db9a7caa0802eaa28c1c46fecd7b3a263a774069c24c3c28c302448721c", size = 247028, upload-time = "2026-09-30T04:36:12.294Z" }, + { url = "https://files.pythonhosted.org/packages/8e/37/eba316edd4f0c4d3a5d945924c4eeeae59abac4056aa815d8a4268f863a2/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:b6856554c4f44d79fc2307d5768854310a8f0096e501c75637542c82292b0429", size = 240562, upload-time = "2026-09-30T04:36:13.887Z" }, + { url = "https://files.pythonhosted.org/packages/c8/8e/aaa037d40ca9ef045977f1a661048b1aa33f223adfce3452fe9be9f79d14/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1bc0baf5ef96b6ede57d47f4b8fe4d9d84019c3bfcbeb20a41edc6a6ee341f1f", size = 271699, upload-time = "2026-09-30T04:36:15.41Z" }, + { url = "https://files.pythonhosted.org/packages/26/19/1c1c9f75974adf523b87f34b8a2adc5a435cd65916812bcbd0dfa45f9a29/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:56bc200a365efb37383b7852e4cc5898d3b2da5987289b543956cf8cad71018a", size = 252030, upload-time = "2026-09-30T04:36:16.839Z" }, + { url = "https://files.pythonhosted.org/packages/bc/90/0660ef18e18df0a4d2a1a0edff7dfbba42d4e50ef2425557a5bb7051f77b/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:2c9ad19a6cfcd5ea5c0d41161d22f9df1dcc277e9bef2751391334546a314c00", size = 268565, upload-time = "2026-09-30T04:36:18.468Z" }, + { url = "https://files.pythonhosted.org/packages/79/ba/57adc269824e8658f1a0f97a9e514c247445a9632b3419b97e0ba37f16dc/charset_normalizer-3.5.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e243bd13217235fc7290c621941c3f5cc8b66e4872495be821d7436ba2fb838d", size = 257627, upload-time = "2026-09-30T04:36:19.938Z" }, + { url = "https://files.pythonhosted.org/packages/9a/85/33abd4315c052d3d4f54c92b1ee49bfbc0dc7115a981e462a793b6d2ab87/charset_normalizer-3.5.2-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:a090bb2c68df85450502e3e20d665e3a5af9c65a84d6508ed477badd49166fd3", size = 143407, upload-time = "2026-09-30T04:36:21.376Z" }, + { url = "https://files.pythonhosted.org/packages/4f/de/6435e18d1aaa5d910b896d551411c96af1f42a0c56c29afc2016c61ccc2e/charset_normalizer-3.5.2-cp313-cp313-win32.whl", hash = "sha256:2b7b3bbfb4fe8ef40600792d762fbaa9057559f9d3fad209525b7a22b99e91fd", size = 183207, upload-time = "2026-09-30T04:36:22.776Z" }, + { url = "https://files.pythonhosted.org/packages/9c/76/b8ec57f4e9ee3253541abf95e4a462c0175fe8032dcd070f1f2421240942/charset_normalizer-3.5.2-cp313-cp313-win_amd64.whl", hash = "sha256:78456a747de8dc58360ffa581f30a002baf5aa28cb262536545e91f113ed7639", size = 206489, upload-time = "2026-09-30T04:36:24.306Z" }, + { url = "https://files.pythonhosted.org/packages/3e/60/c647c6ae47480221e875ea5d743ff94946f7416e3c69415ab772928e8d32/charset_normalizer-3.5.2-cp313-cp313-win_arm64.whl", hash = "sha256:11912e4bb14baae7c5d8791aa55ba0a3a03ec6729073307b0f57270abaa713d3", size = 195501, upload-time = "2026-09-30T04:36:25.846Z" }, + { url = "https://files.pythonhosted.org/packages/58/ca/7aa91362a2f77ac8e9e28a9b902a74f7d0e11a851ef0d27a74308da8cd90/charset_normalizer-3.5.2-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:1afb975bd5d68d5ce9f6b6d44fdf2f7e34b895a35e95708a7a91b20a3b51d187", size = 226010, upload-time = "2026-09-30T04:36:27.669Z" }, + { url = "https://files.pythonhosted.org/packages/a8/cf/ac8878d0322cf88a1aad4c7b147db32ca0bd806eb0060957b2e31486dbe6/charset_normalizer-3.5.2-cp314-cp314-android_24_x86_64.whl", hash = "sha256:bbbfc8e28816f19d7c0f1816664980c0a9875d01b27cdf8eedddb639d9e108ad", size = 239266, upload-time = "2026-09-30T04:36:29.434Z" }, + { url = "https://files.pythonhosted.org/packages/c9/6d/9a08d7e0b29b7208e2c6c01dc56c8e0520e7c7beadbbfb024b58fd69c8a5/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7967d08cf06dee78443b874f98c98036f624f3a4e73e11f9f64f5be4d25393cf", size = 206783, upload-time = "2026-09-30T04:36:30.872Z" }, + { url = "https://files.pythonhosted.org/packages/82/44/b0aa350280e6ff5a5492d17cf10460dd39d5ee848f872f7ba2df10607f60/charset_normalizer-3.5.2-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:4c2b5031f63e331e3839b40aed2dd6f191e9c07edbde303e7876846ea1946995", size = 210449, upload-time = "2026-09-30T04:36:32.625Z" }, + { url = "https://files.pythonhosted.org/packages/7c/8a/40db9aa9f5907bb0e6f8b6d64064bf8852fb33d4b813ff9414911df7647c/charset_normalizer-3.5.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fcff63213e8e6e47770541a4607175404f47cbb3ebea7b6058cc82d524a0e424", size = 367815, upload-time = "2026-09-30T04:36:34.197Z" }, + { url = "https://files.pythonhosted.org/packages/7f/72/9c5e7707b57c8ddfa9ddf7b0b1d009d7fbab9e9e887d5b721060f37e307d/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8d86d6fc60743dc916eb79e2eb1ec4818e21e427731543af40a3021851174a13", size = 247095, upload-time = "2026-09-30T04:36:35.803Z" }, + { url = "https://files.pythonhosted.org/packages/83/09/71e453691e927de4ddf792770cfaab3f49d494e222f66ea5e404bbd5e39c/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a881931aa470808df94a8c380eed2bbbc76cd9dc622310f99665658c821eb6d", size = 233942, upload-time = "2026-09-30T04:36:37.407Z" }, + { url = "https://files.pythonhosted.org/packages/9f/86/85c84e4da8b27dd409577d9437926ff581c5f9d3c66038dc68c1a526de51/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8024d00c3faf3fc0c16e07a69f4405e8eac7cc0ab15f65fe6cf43827c4cf72b4", size = 273762, upload-time = "2026-09-30T04:36:38.904Z" }, + { url = "https://files.pythonhosted.org/packages/92/08/564955a4b5f2ccb410ab480bbe8c6a18063ff27f2d35458731c4a5335df9/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4d48f2d08b9de5864e2c8744d4461b862fb149a18274abc8b698c45975573438", size = 269514, upload-time = "2026-09-30T04:36:40.469Z" }, + { url = "https://files.pythonhosted.org/packages/18/24/bad3ac4271589df29cf5ce2f5ae490518a5739358052bd0d61209e6fea54/charset_normalizer-3.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34276fd796040bf0993ab33a369aa572e6979c7aab225a88893667ad8eac8f7a", size = 255056, upload-time = "2026-09-30T04:36:42.02Z" }, + { url = "https://files.pythonhosted.org/packages/d6/3e/350d89ad49916b86554d6f5f2d03ec1152148f87e5ff735106c6a03b1a36/charset_normalizer-3.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0521c5665880b33d603717defa76c094048900010897909952397feb3039da56", size = 251311, upload-time = "2026-09-30T04:36:43.577Z" }, + { url = "https://files.pythonhosted.org/packages/56/5b/4970a2d154df502e133402906dd04e3ae7cada7b3011283c88d0479a2585/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:eff0ac9dbe711a4aee69bf04a83896aa9b85f19641264053a9f6d48573abb7dd", size = 250190, upload-time = "2026-09-30T04:36:45.185Z" }, + { url = "https://files.pythonhosted.org/packages/88/8c/f1a91bddc8fb47c2889e29ea7ea49a194eb0d9868675d786806519c00d76/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:1503bccbeb36d5527790c3930327704c39af22de3112f1b1666a9f3ce15ee204", size = 237098, upload-time = "2026-09-30T04:36:46.689Z" }, + { url = "https://files.pythonhosted.org/packages/24/0e/bb5dace3cc7e79068425386a6589c19b5a2ab5fefc2a46abea6919683332/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:52aa6992700996af31f375de0c6bacd402b0097fe40b53c426b9f51a90ebabc7", size = 274228, upload-time = "2026-09-30T04:36:48.31Z" }, + { url = "https://files.pythonhosted.org/packages/9d/79/b849ad523017ea9f5a45581bbebed91439e0cf42fd2860a6f64e358eb5a6/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:e09a3942ecbdee5cce73ea9d42da82b81b72ac1bf031ce069b93b5adf4eac8cd", size = 252401, upload-time = "2026-09-30T04:36:50.091Z" }, + { url = "https://files.pythonhosted.org/packages/89/8c/75469d690cf47200bce8f6cad7655724fc23148e147abfc5ce78b5f65863/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:c7c9ab723cde841fefb34efbad91e87f00a674b1fe1cd0784fde742bf2c154dc", size = 271846, upload-time = "2026-09-30T04:36:51.719Z" }, + { url = "https://files.pythonhosted.org/packages/26/cd/6d52d3c7437cdcf2e310ce9f28f282e733d4ef60ed19105d1819c356255f/charset_normalizer-3.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ddc7dacc8ece3a182e7f15cb862d1fd616b46d076cb1ae9dd232b2c38b655874", size = 258151, upload-time = "2026-09-30T04:36:53.234Z" }, + { url = "https://files.pythonhosted.org/packages/f7/4c/070b38bdb5f49a70199fce923ec0726a49536a63ab262abbfcaaf351110b/charset_normalizer-3.5.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:ee43c17b173d46a3212baa6ead3ae258eeabdae48c263a01ccf0218c366dd655", size = 143570, upload-time = "2026-09-30T04:36:54.816Z" }, + { url = "https://files.pythonhosted.org/packages/81/84/9ebfc8ed6c8c4fcd8e726ff6bf220cc8deb3966e31dce9be8dd8aa017e64/charset_normalizer-3.5.2-cp314-cp314-win32.whl", hash = "sha256:4f87960d57feabfb618e4e0af6e7371645fa26a277860739d6e5d6e0012c92f0", size = 186412, upload-time = "2026-09-30T04:36:56.643Z" }, + { url = "https://files.pythonhosted.org/packages/d1/78/5ed86f743d4bc350db307e7636419a0a5ee1d91806d30c7f667bd5c80dae/charset_normalizer-3.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:e4e81e09c1578b8df602e3db08b0b3ea0a6947ad612f52bf8dc5ea8d47691f0c", size = 210965, upload-time = "2026-09-30T04:36:58.205Z" }, + { url = "https://files.pythonhosted.org/packages/53/94/a3a7698e9b1a395e1eb99ccd9a324be9347973bff4e72db2a06496d7cd27/charset_normalizer-3.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:80d02b6f04e92601a081dd97b23d3128033098bff5d35d392ddcc0476ea11253", size = 200406, upload-time = "2026-09-30T04:36:59.764Z" }, + { url = "https://files.pythonhosted.org/packages/c1/48/c5dd00d5ef7791f02666de250a5bb6071e29b7e133cf4b835800b6d3bc27/charset_normalizer-3.5.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:dca9ab98072a5a54ebacebdc45f53e645336b320c667410b061be1ca588ae709", size = 396871, upload-time = "2026-09-30T04:37:01.543Z" }, + { url = "https://files.pythonhosted.org/packages/12/c8/8379554b42e8368161d898476686947a0fdbd3e8865170d7909dcabfdee8/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f0aa869112ef88429ae17820d99c3dd9504c9e9c671d3c246f3d7442cb051084", size = 249711, upload-time = "2026-09-30T04:37:03.111Z" }, + { url = "https://files.pythonhosted.org/packages/4a/eb/2ddb1035d17320caa9f41682935123a9a250277b261c3efc86b2d2a21343/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c0afc6800ba57ccc350374c5bd6150419915d95ce93cdbab2d783d75eaf30ecb", size = 231146, upload-time = "2026-09-30T04:37:04.721Z" }, + { url = "https://files.pythonhosted.org/packages/4a/24/2ecb4bde104322cd7859d6594fcfa74649f8d90b3221c9feecbef149875b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7dcd882da75ef9adf94903b1e3b9419e8aa8fb4c7396822b834b9ef7fb96954f", size = 271552, upload-time = "2026-09-30T04:37:06.295Z" }, + { url = "https://files.pythonhosted.org/packages/3f/98/9d5f6ebc3aee9fef5d30b4aff11fb2ab7a1222b4064f8ef2c7c87cde217a/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e06a3a98f916dd41d27f3105e02e7a40181c98c94b9158733d03a6f80506c09", size = 269810, upload-time = "2026-09-30T04:37:07.905Z" }, + { url = "https://files.pythonhosted.org/packages/09/e1/a3b06a10461b1b7628853c934c644e03bc28e42767116afb52f19a56519b/charset_normalizer-3.5.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6bd128f206a7752ae1f2ab6c61bf8a24ba28913a10df8b14c2637b973ff97a80", size = 259845, upload-time = "2026-09-30T04:37:09.554Z" }, + { url = "https://files.pythonhosted.org/packages/fd/d3/6f561f74a296cf27d61775a1dc665ad13f3bff6a798810ca05907f37a7c4/charset_normalizer-3.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c8f3d67aeaf55f017982b73683f0e7342ba2f6635a78f69ce89ebb26aa411e5c", size = 252825, upload-time = "2026-09-30T04:37:11.274Z" }, + { url = "https://files.pythonhosted.org/packages/26/9f/69e13ca3b18f43e0eafcd34c04a45b732ae22a43b54a5fc9e119103356eb/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:fe9753dfee015c570d73df76f899f18444d41388bffcde097deba51c4fadbb9f", size = 252659, upload-time = "2026-09-30T04:37:12.941Z" }, + { url = "https://files.pythonhosted.org/packages/73/a9/ace29806a0dae18939919c76ba526472d83214afa101105fabff2cf30625/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:92888bb3187c5ba50500b00b3b310c9f2c651709d28036077680cb5255450a03", size = 238819, upload-time = "2026-09-30T04:37:14.659Z" }, + { url = "https://files.pythonhosted.org/packages/f8/c1/6116d52a2e3311ec80f21f5fb5e17b27405f10b9608af8f6e69516841a1b/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:d008d90a7f2471519aef0c90dfbe73b3e6e4d5e66ac48e19154c17e89e98b604", size = 272973, upload-time = "2026-09-30T04:37:16.346Z" }, + { url = "https://files.pythonhosted.org/packages/19/aa/9955c7e93bba10a9c7e8f7a5031b7ced66f3a1883a55c00712b8d5850ff3/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:31f3930700408d211f13378ccbe1c40845d8da54bd0681fac3a9b5aae81c7aa8", size = 253692, upload-time = "2026-09-30T04:37:18.212Z" }, + { url = "https://files.pythonhosted.org/packages/bb/33/2a6ae7fdc1b10cb581cef91addd8cdfc5f40d50abb5702309369d5834579/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2a925889534b3748302dae5dead07cc13480de1dac3aea80a941b729b471ef93", size = 268757, upload-time = "2026-09-30T04:37:19.877Z" }, + { url = "https://files.pythonhosted.org/packages/a2/22/80992720a0282cd39bba1db35868e6b9c22f41281160143a836544bc1d8a/charset_normalizer-3.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f5ec61164adcec446f8969a3358ec3f9b26bbda3b9213e5586d219afa8df2915", size = 262220, upload-time = "2026-09-30T04:37:21.583Z" }, + { url = "https://files.pythonhosted.org/packages/92/9f/181fd07e1bffea1d95cd80c84ac537354f50699c22cfc4d3c02b6fc16208/charset_normalizer-3.5.2-cp314-cp314t-win32.whl", hash = "sha256:598a11a2c7ebaa5334bf698bf29568c9c390abac6a154d8170fedecd1cea38c5", size = 197797, upload-time = "2026-09-30T04:37:23.235Z" }, + { url = "https://files.pythonhosted.org/packages/49/1c/25d8415ec1c4f2f41f1680435e4c87cfb378ff2f677d950946f2a45d0632/charset_normalizer-3.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:7fdde2c9fd9e3eca40631e024664cf2584272cc8f96308cbe5fdfc930f51d8bc", size = 222765, upload-time = "2026-09-30T04:37:24.891Z" }, + { url = "https://files.pythonhosted.org/packages/3e/b4/46b48f013dadfc0d0d33b375438e31bdf5a989dc68389c6bf627054d4df9/charset_normalizer-3.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:d1befeed746d247c81127bb14de9dc3d30edb6e5976d34f83f86ed262b1d9105", size = 210985, upload-time = "2026-09-30T04:37:26.634Z" }, + { url = "https://files.pythonhosted.org/packages/ca/e9/34e597dee616d0b8ee4b34d29399e85c2204ade174157a48505d42baa4ff/charset_normalizer-3.5.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:87475fabc8d9996fd9c27debb395e642e8c838d78a00b6e932227a0e06b81e26", size = 367676, upload-time = "2026-09-30T04:37:28.329Z" }, + { url = "https://files.pythonhosted.org/packages/60/9f/a5d1c91c0263745e2cd344c5a4415d787c575501ab1d449f1148ac6b495d/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9409a8bf35cf78353942504b24a57de3d75b708997a1e4bd8db71ac8633ce364", size = 248414, upload-time = "2026-09-30T04:37:30.167Z" }, + { url = "https://files.pythonhosted.org/packages/26/79/e697f77464748a3ee3cf490c83d592459400d4898380d66c38366b03080c/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:498dc3188ca05a68231ac3fdbfc7f57eb67e1343c30e0fea17f8218c1599b253", size = 244775, upload-time = "2026-09-30T04:37:31.964Z" }, + { url = "https://files.pythonhosted.org/packages/ca/87/3d42a42e18ea066e2513936fd678a00696e77878b5ae04528976abdbcb83/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e242bb1c5e76e97dfa9e7f209a71e93a01d7f19ffdd5cfbb2e2d55b4f08f8ab0", size = 273877, upload-time = "2026-09-30T04:37:33.661Z" }, + { url = "https://files.pythonhosted.org/packages/c3/76/8a28136f3938ba9836f84280ce0c4d61ed1cf15a036b2034900c62634162/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:def79fa35ef0cef8d2accec024f4fdc7ead3012ff02f5215c783f39f03ef8cfc", size = 269455, upload-time = "2026-09-30T04:37:35.573Z" }, + { url = "https://files.pythonhosted.org/packages/a0/a1/4fbf5d0f0f1b2a080474c1cf9a2f12c4c6531bb0e8ba591055e846d2b4e9/charset_normalizer-3.5.2-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3df041de8887954562c9b261cba85ca0e9ded74048daf125f45edcfaa4832229", size = 257336, upload-time = "2026-09-30T04:37:37.397Z" }, + { url = "https://files.pythonhosted.org/packages/ba/a2/8b50aa320adb880ad579518e6f718f24944804b42a88b83d267d5d444125/charset_normalizer-3.5.2-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:04851f73ae72b8413dddadb16a49dfee95263553741fd42d546f7d66907e6be5", size = 257584, upload-time = "2026-09-30T04:37:39.522Z" }, + { url = "https://files.pythonhosted.org/packages/a5/57/50e3fed84e175f40349bd0da7a4fce94c87f0378f52d74f511d89e0bdc20/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:183b88127acdb4fabe59d951ab424faf1af7b63cdbb5f776186c1ea2ffcaed98", size = 251854, upload-time = "2026-09-30T04:37:41.23Z" }, + { url = "https://files.pythonhosted.org/packages/d6/54/f7fbb3493c9f49091213b9c2d6dd65800696f1ce1a3f196a4205f50417b1/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:16fa0eccf81304b79c5cd87f9271c3b85dd9dd99245e4422ae9c0dd45e0f99d3", size = 248767, upload-time = "2026-09-30T04:37:42.883Z" }, + { url = "https://files.pythonhosted.org/packages/d9/37/b3a6385acc5a1e45b39ae9c90bfb9cf838a09b9dd37ef2740ab4c6b4a2eb/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:7441d755b7ab94f8d4eb3e43ec05482d760842fd263d003a99102d742cd835e2", size = 274479, upload-time = "2026-09-30T04:37:44.658Z" }, + { url = "https://files.pythonhosted.org/packages/89/44/809913e2cfd279e635a9294fdbbfb1b1dc62a8189d473d561f649fce98d8/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:ca403d7e4798f525fdfc78e258820419cbbd0f0ecbab9de7840e3c017cf6b8cf", size = 258310, upload-time = "2026-09-30T04:37:46.529Z" }, + { url = "https://files.pythonhosted.org/packages/af/a2/f28400ab13359d91bd39179df8e149376b9bf36588e739a3a4f9de2b84b2/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:df29a0a7107f7011e77f4eebdddec4c7331e24d787a0b21a46d63bdf7445da95", size = 271100, upload-time = "2026-09-30T04:37:48.399Z" }, + { url = "https://files.pythonhosted.org/packages/e9/89/9bab37955edf0adb3b66f8a3a6617d9f2f487e0d56f295a6a286cb640aa6/charset_normalizer-3.5.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:f3c96f633825733f735c5a9cf21d21a257d8e1edf0b1cee0a064b9c424ca0f7d", size = 259936, upload-time = "2026-09-30T04:37:50.023Z" }, + { url = "https://files.pythonhosted.org/packages/23/b5/4459e08d45a679f903d50fea08bc52cfa728cca4d7bd02c757b5e5abda2e/charset_normalizer-3.5.2-cp315-cp315-win32.whl", hash = "sha256:281cb91036248400f4cc957495cccd44c275c2e0c5854f7e45ac5cf7dc193847", size = 186301, upload-time = "2026-09-30T04:37:51.722Z" }, + { url = "https://files.pythonhosted.org/packages/98/e8/55d5fd3935b4bce6da4fe0df61898e8c82653e317e677bd58aceb9c60f13/charset_normalizer-3.5.2-cp315-cp315-win_amd64.whl", hash = "sha256:89b53f3cda69831909888e0494f4fa0bcd3537e3e138dabeb620bd6ad946bae8", size = 210858, upload-time = "2026-09-30T04:37:53.427Z" }, + { url = "https://files.pythonhosted.org/packages/a9/5b/974423c2fd8e524c7a7f64318c1e02240ef954912fa2b4d70344107b9c68/charset_normalizer-3.5.2-cp315-cp315-win_arm64.whl", hash = "sha256:6be488a102b8cf28d0391d8c4ba7748938ae28b78ad901f8585520fca33ead1a", size = 200309, upload-time = "2026-09-30T04:37:55.015Z" }, + { url = "https://files.pythonhosted.org/packages/ee/f9/00ee0195db1013d8f7c416fd770fbeb560bb46eb2e36b054d05cb56f6cfa/charset_normalizer-3.5.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:915563965d418f986e7e145accc592eae9e1a1be3566ff98a05d7a9ec42a76e1", size = 395343, upload-time = "2026-09-30T04:37:56.743Z" }, + { url = "https://files.pythonhosted.org/packages/04/3a/c00b50e94c964cf934c7899cd47c97952fc11dad71cc5884b3c61795b09b/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:65cd72beeeca9d3aaea1201e5923859f308f952f9c71de93f06063c79f0f7a3b", size = 250114, upload-time = "2026-09-30T04:37:58.607Z" }, + { url = "https://files.pythonhosted.org/packages/50/27/d102dc880bbcffd0479ab64dfc1fb96777a854355a55e2bda72a71efadcb/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b7fd005a73d9e657273b7a10dc71a9e03c8fb9ee6999798d6918ce095b81ac7f", size = 239997, upload-time = "2026-09-30T04:38:00.511Z" }, + { url = "https://files.pythonhosted.org/packages/a5/4a/bf7ef45794dd293fab5f98a9309817977fbb845b9998f171b8cc5d8437a3/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e54da4baf05720032d527874d40b65fa4d7e5c6c6a43d0c3adbeffcaf275a2b3", size = 272313, upload-time = "2026-09-30T04:38:02.509Z" }, + { url = "https://files.pythonhosted.org/packages/e8/ee/008a2837737991474c5754bb3191010007663860979701990982a502cbaf/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:124fbf1a8ff966d87ae05bb8bd45a71f966055ed8bba320d0c7cf450bc5f4d0e", size = 269986, upload-time = "2026-09-30T04:38:04.435Z" }, + { url = "https://files.pythonhosted.org/packages/93/ad/bd74a283940dc910c5b14f8e4f80a248082bc9c0fcbe1f54530cb6d9cc5e/charset_normalizer-3.5.2-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:28b4f0d66fb834ff90f28209ac7bce77868c45d8c93e26f906709d9b7c2e1af9", size = 260202, upload-time = "2026-09-30T04:38:06.549Z" }, + { url = "https://files.pythonhosted.org/packages/8a/7b/ed341c66f69f688723501fac752be3d63c7159ca0d0d4174fc611e5710bb/charset_normalizer-3.5.2-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:58ca3755ee7ff7f59b57789ec9833c9de9ea275405cdd240eda1f193112e398a", size = 259083, upload-time = "2026-09-30T04:38:08.311Z" }, + { url = "https://files.pythonhosted.org/packages/cc/9d/e41588b777965e5031a43128a1e96173ebb35ac75fc53ec3b517e7c21cd4/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:443eae2bf318abeaf6f15d785138f71fd6de770e99a92158b8b814265e079115", size = 253081, upload-time = "2026-09-30T04:38:10.402Z" }, + { url = "https://files.pythonhosted.org/packages/81/35/b761eb6d8c1eb218b9b42b9b4d5ac902afdc399fb6dac6f9a9aac7bda589/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:58f361dcbab699cf8f42db3f47c8e7fd1036f138c23a5d08de9fde5f425a730c", size = 248712, upload-time = "2026-09-30T04:38:12.317Z" }, + { url = "https://files.pythonhosted.org/packages/4d/2c/147169a041b747759f37405c0a97157e8e92de967968373101ff14915cba/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:1b4cbc7c3491ccb4aa17fcd8165649d01cf39f76de1696da8631b5f71b85401d", size = 274176, upload-time = "2026-09-30T04:38:14.138Z" }, + { url = "https://files.pythonhosted.org/packages/f0/2d/0ff8db0d373ba8538db686db11cd7e8912031490b9e4f383b41912e8d594/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:ba0b1d2620edf869789c3879223f52bf2afc5d31b3cb47cc57b3a12c05e2aa9d", size = 259413, upload-time = "2026-09-30T04:38:15.841Z" }, + { url = "https://files.pythonhosted.org/packages/8a/8e/b4a085fb47c9d3a7e43576a4784fdd8fe23f907514a972de8086edaf7a48/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:5e2b6b57e9733d39f0c9fd3185efa6b8e29652c4cd8fe94180272cf6ed9a78c4", size = 269434, upload-time = "2026-09-30T04:38:17.626Z" }, + { url = "https://files.pythonhosted.org/packages/83/1c/d8d8d7322a7c3eecdf3237a4a419cf41d2eaad8e006ce7dfdd9d4c8fa2eb/charset_normalizer-3.5.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:51cf45226a9b588d0d2b4880c62d686934b63ab0bd79ca23ab0e9762eb27441b", size = 262716, upload-time = "2026-09-30T04:38:19.214Z" }, + { url = "https://files.pythonhosted.org/packages/a0/16/0e4c6ba9b44e97a2da150e52d331e8f9c968b21b358fbffa6c856cebcd89/charset_normalizer-3.5.2-cp315-cp315t-win32.whl", hash = "sha256:5fb29fb8cd1a46c27a1bf9613ad5ec2599310d46b4025d9556404a6b6a292800", size = 197159, upload-time = "2026-09-30T04:38:21.037Z" }, + { url = "https://files.pythonhosted.org/packages/be/33/e90bc2b1374f7f36ef106f56620de5a783907e19ca857efe2277e31cac3e/charset_normalizer-3.5.2-cp315-cp315t-win_amd64.whl", hash = "sha256:a192e2c40070d92c3ccf777e3a5c4ff515573cd2bb7ed0c537fdadbbec5bbf21", size = 221322, upload-time = "2026-09-30T04:38:22.886Z" }, + { url = "https://files.pythonhosted.org/packages/66/89/dfa6dcb08c200b7830ab56439e8c1890f2971d51aafbb3937894a2e7fcfc/charset_normalizer-3.5.2-cp315-cp315t-win_arm64.whl", hash = "sha256:749e97e1b32313717a565abbe321bc2190bc8b35f1a67e4cdbc7c56c8d8ffe58", size = 209192, upload-time = "2026-09-30T04:38:24.648Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ab/176fbfd5b64939c55d652366aa5b9ef1d767af207a3aa6ebeb0d226c484d/charset_normalizer-3.5.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:4275811936e2f06feff5e598fb42a1b7ae852da8e39605211892b56b81a34efd", size = 331815, upload-time = "2026-09-30T04:38:26.216Z" }, + { url = "https://files.pythonhosted.org/packages/7e/84/371eac6b30bdbcbf2d632a1a01809103459216fcaae61b8b8d922c1bfb8a/charset_normalizer-3.5.2-cp37-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1c50fe28bbc2ced33386f298650d91218076c05420e6cbd790b913adc41659e7", size = 253276, upload-time = "2026-09-30T04:38:28.032Z" }, + { url = "https://files.pythonhosted.org/packages/43/6f/c4fbae58febff71709c51bc7e18fdfa55341dc382704740f9f0cbf03817b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d19fbd981a488e22cd04883659ca6b08f50b5974f9fd7c95655ef6a043e5893f", size = 241239, upload-time = "2026-09-30T04:38:29.732Z" }, + { url = "https://files.pythonhosted.org/packages/61/71/458c3f42164a07d0c5210798e9e704b39e540a6793b05aba67f3a35243a9/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0fed1d06615f022ee3b13caf5e8b180cfea32bb2c5aded8a9d44277afc040f93", size = 231121, upload-time = "2026-09-30T04:38:31.462Z" }, + { url = "https://files.pythonhosted.org/packages/09/54/ab9e89367076f6331bb6c65c4bf14a5361fa5191cb6561bf534f18504e1b/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:838dcc90063569a0448120554591a1d6c4a4ffe11babf048908793154ab86ade", size = 260350, upload-time = "2026-09-30T04:38:33.239Z" }, + { url = "https://files.pythonhosted.org/packages/7c/c1/061431ecc688d9d76602502cb57cc01e691e682c18f1beb45f9673b5bbd2/charset_normalizer-3.5.2-cp37-abi3-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2ce45c6627b22c47e390bc91a41c3d13032192e699fa0bea96e9671b373d69b0", size = 255430, upload-time = "2026-09-30T04:38:34.865Z" }, + { url = "https://files.pythonhosted.org/packages/8d/1f/20c8949f0676f7ab811abdeb7f4d7f1cbc6e61ff20bef08b44edeb092bc8/charset_normalizer-3.5.2-cp37-abi3-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0774bf9bf620249fee3e0b8b9fd3065de213be30f3aa94ce2494b3b638949e26", size = 250612, upload-time = "2026-09-30T04:38:36.649Z" }, + { url = "https://files.pythonhosted.org/packages/2b/9e/46f2fa4c431fc98c4ae76a8cb5bdca54e0341e3cfc3fcfd8e82740250818/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:1db38f4c5496827c1a501846d64d14c3b80c7e6714e406cd7dc36a9899fa1011", size = 242083, upload-time = "2026-09-30T04:38:38.26Z" }, + { url = "https://files.pythonhosted.org/packages/bd/39/559be29a0c0f086e0bba6922babd38916cc5e0b58ced4de13ee01ea05508/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:304d8e4d493af723536393eee0c689eb7813f4a474c8b479dee63f1fdd98f621", size = 232738, upload-time = "2026-09-30T04:38:39.81Z" }, + { url = "https://files.pythonhosted.org/packages/ff/6c/387b0e4f756a282831c1d9fc6aeb6c51ca4507ca202767c8de15ce9b12e2/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_ppc64le.whl", hash = "sha256:9b7f416ff0978e2f2249330527f0ad6fa02f4932e6199692d3b52da2048c19e4", size = 260703, upload-time = "2026-09-30T04:38:41.346Z" }, + { url = "https://files.pythonhosted.org/packages/96/92/1fdf015f09ef449f50d3ac4b67c90887c9c318b727daa95cc4f866e6521d/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_riscv64.whl", hash = "sha256:01077390b03f7988f11d700a2194e69b119741a86b1a638b1db88891e3eced8e", size = 247622, upload-time = "2026-09-30T04:38:42.937Z" }, + { url = "https://files.pythonhosted.org/packages/dc/3c/8e7b8a5671ad5d433669fb2a76f1a0164df2d9b1718b0206bc2a16d840cc/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_s390x.whl", hash = "sha256:7e841fb9010836c992c9f12fcbd43a831de93a5f726fc1ccd8ca1d0268c5014c", size = 257500, upload-time = "2026-09-30T04:38:44.604Z" }, + { url = "https://files.pythonhosted.org/packages/b4/f0/45b579df5cabc1d5d53ea1cc35e8437d3ca768c0acccc7041517cb6fbb32/charset_normalizer-3.5.2-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9cae88599c7219005d879f98e5ed53341e9a122af585e1091200358a3003d2a0", size = 255100, upload-time = "2026-09-30T04:38:46.289Z" }, + { url = "https://files.pythonhosted.org/packages/31/68/fdec18a343f5fb3f310588dd478b09ac4799e0b187dbade3a8cd776f03ef/charset_normalizer-3.5.2-cp37-abi3-win32.whl", hash = "sha256:01b0c0d2262a9e28e8484a278c7e1b5d650e3ac8cf2683d2967e25899f208bdf", size = 174499, upload-time = "2026-09-30T04:38:47.999Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8a/b618149cc5207943a0242068d7a27897f56a62947b5a039085f2a22029f8/charset_normalizer-3.5.2-cp37-abi3-win_amd64.whl", hash = "sha256:9f56f72050826f63dcee7a7f55b0a77168cb3bfc553fd405e7f8f9ece75a4036", size = 200092, upload-time = "2026-09-30T04:38:49.707Z" }, + { url = "https://files.pythonhosted.org/packages/03/cf/4c66866fa9e2b1c78e3c911516d1de497a677b7ac60f1eceda74ce777ca3/charset_normalizer-3.5.2-cp37-abi3-win_arm64.whl", hash = "sha256:40ab6bffa02ae10a0581e6c198be7d2d8ca5c2a0c64e4ed3465d766df457573e", size = 294363, upload-time = "2026-09-30T04:38:51.312Z" }, + { url = "https://files.pythonhosted.org/packages/fc/ad/d07d7862a62ffa6d79d68074d14823243dd235a77c45262acbf6adeb28bf/charset_normalizer-3.5.2-py3-none-any.whl", hash = "sha256:b6b751274acb69d77b3323d6b7dbaa3c7fdfc1eb829b7eb61d262f32e1af9685", size = 68872, upload-time = "2026-09-30T04:39:21.828Z" }, ] [[package]] @@ -730,8 +868,6 @@ dependencies = [ { name = "filelock" }, { name = "packaging" }, { name = "platformdirs" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/eb/6c/1934be8118ea842c3ee7542e6e2a0ff9299f632db531f61368b412bb75a7/cibuildwheel-2.23.4.tar.gz", hash = "sha256:5a3e4a3d9c18e77838c37c483642e4f071da06ec05c05336826cc46c97abb708", size = 294641, upload-time = "2026-03-16T19:33:13.649Z" } wheels = [ @@ -740,14 +876,11 @@ wheels = [ [[package]] name = "click" -version = "8.4.2" +version = "8.5.0" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "colorama", marker = "sys_platform == 'win32'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/76/d4/81420972a676e8ffea40450d8c8c92943e7218a78fe9b64359836cc9876b/click-8.4.2.tar.gz", hash = "sha256:9a6cea6e60b17ebe0a44c5cc636d94f09bd66142c1cd7d8b4cd731c4917a15f6", size = 338000, upload-time = "2026-06-24T17:45:15.148Z" } +sdist = { url = "https://files.pythonhosted.org/packages/c7/0e/7fa0ef50764b67090eca4114772a2abf8b6148198475e54c660b97caeee6/click-8.5.0.tar.gz", hash = "sha256:ba0d2089de75ea0310e2dde03160e6ca10009947fb95a182f9b54021bb272e34", size = 382235, upload-time = "2026-08-26T13:33:14.56Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/fb/e2/79c688af8b210d232694e31e59da9f6ec747bae31c3f5946e4e9b98860d5/click-8.4.2-py3-none-any.whl", hash = "sha256:e6f9f66136c816745b9d65817da91d61d957fb16e02e4dcd0552553c5a197b76", size = 119243, upload-time = "2026-06-24T17:45:13.73Z" }, + { url = "https://files.pythonhosted.org/packages/58/50/6c0d534c5f134586a8e1ba4e330569e32f057e33372ae556463212fb4cd3/click-8.5.0-py3-none-any.whl", hash = "sha256:255bc9599cf7748b4b1a446ccc735421bd08a2ae529a8b88597d3de5664ee360", size = 125251, upload-time = "2026-08-26T13:33:12.928Z" }, ] [[package]] @@ -761,11 +894,11 @@ wheels = [ [[package]] name = "configargparse" -version = "1.7.5" +version = "1.8.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/3f/0b/30328302903c55218ffc5199646d0e9d28348ff26c02ba77b2ffc58d294a/configargparse-1.7.5.tar.gz", hash = "sha256:e3f9a7bb6be34d66b2e3c4a2f58e3045f8dfae47b0dc039f87bcfaa0f193fb0f", size = 53548, upload-time = "2026-03-11T02:19:38.144Z" } +sdist = { url = "https://files.pythonhosted.org/packages/5d/ed/33c0ba7f0b5be384ff8a2101ce77728f219e816b2104819f1651477e1ad5/configargparse-1.8.0.tar.gz", hash = "sha256:22a417f4d7b00149f0af82ef7c491f8ecc4b1d5454633fd319b386f5eb806f92", size = 74830, upload-time = "2026-09-28T15:10:52.119Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/fe/19/3ba5e1b0bcc7b91aeab6c258afd70e4907d220fed3972febe38feb40db30/configargparse-1.7.5-py3-none-any.whl", hash = "sha256:1e63fdffedf94da9cd435fc13a1cd24777e76879dd2343912c1f871d4ac8c592", size = 27692, upload-time = "2026-03-11T02:19:36.442Z" }, + { url = "https://files.pythonhosted.org/packages/b0/74/bd8453e8e20296063f9f431e6f1417f1b62bae0e012821df07fb71ede6c2/configargparse-1.8.0-py3-none-any.whl", hash = "sha256:bb25b307c3cd46a3e868e7f7aa51487eb8003a9f01cac3ae129b66ec26eb794c", size = 34611, upload-time = "2026-09-28T15:10:50.818Z" }, ] [[package]] @@ -779,100 +912,116 @@ wheels = [ [[package]] name = "coverage" -version = "7.15.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/76/d0/55fe630f4cf94e3fcba868240fad8c8cdd1f764e2a932f8926347e6ec4cd/coverage-7.15.2.tar.gz", hash = "sha256:3df60dc267f0a2ca23cb7a9ab1109c62b9335ffbf519fcfe167157c28c09b81d", size = 927741, upload-time = "2026-07-15T18:56:19.558Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/10/03/060ce69008ac97bbc01b1411b3e55b61f6f015659400b46749b662107831/coverage-7.15.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9b5bd92ff1ec22e535eab0de75fa6db021992791f461a2aceb7822c625a1187d", size = 221284, upload-time = "2026-07-15T18:53:29.52Z" }, - { url = "https://files.pythonhosted.org/packages/fc/a3/d936e8b53edd9684100a6aefaf3fcabaa54728fe33324436c8d279c047aa/coverage-7.15.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:44826758cfe73fcd0e6af5deb4ba6d5417cc1d13df3acb35c93484a11160f846", size = 221799, upload-time = "2026-07-15T18:53:31.708Z" }, - { url = "https://files.pythonhosted.org/packages/ae/a3/ca234b06aec7ee28226f11d39a696b4481fe5eddfce8e03bf39979bb8ffb/coverage-7.15.2-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:09f5c6ec5901f667bd97dd140b5b9a2586b10efec66f46fb1e6d8135f8b95bdf", size = 248544, upload-time = "2026-07-15T18:53:33.212Z" }, - { url = "https://files.pythonhosted.org/packages/2b/89/dda79527bb7573ba91828b2fb91b3105d87378d6a2749ca0c0924ce0addd/coverage-7.15.2-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1d16e3a7104ea84f03e614611b3edbf6fb6892554b3ab0fe7fbb3f2b2ef04376", size = 250374, upload-time = "2026-07-15T18:53:34.683Z" }, - { url = "https://files.pythonhosted.org/packages/67/c6/c33755a34572f81f49a8c0cdf6b622f35ccb3238b136e1909daf0cdd4319/coverage-7.15.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d46e62cb35d91e6e2589fda6d28074426b0e276422b5d2ebef2c6b11dc60dbfd", size = 252239, upload-time = "2026-07-15T18:53:36.205Z" }, - { url = "https://files.pythonhosted.org/packages/b9/6f/dc341741b375be53a5baeee5b4bf0f0e525d38caed428f7932d23bb7bcb1/coverage-7.15.2-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:dfd3db045e95960ae3683059571e597fda7cc610106a8916f77c5839048c1deb", size = 254150, upload-time = "2026-07-15T18:53:37.863Z" }, - { url = "https://files.pythonhosted.org/packages/e9/8d/966a18a5b195cb4e77b14c53f5f3dce22b5da05e6de7fafd1e08f2d2067a/coverage-7.15.2-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:affd532502d34c0472d0cdb181325c89f1d2c44992fef0c17e88e7b1576259a1", size = 249234, upload-time = "2026-07-15T18:53:39.394Z" }, - { url = "https://files.pythonhosted.org/packages/c5/8b/8b2e367496ab48484d48e79984fec76cdc1b7cb5d3a00ee799a5602e3ec9/coverage-7.15.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:d17d7512151fedfcc64c1821a8977fc9be0dbf495754669afcab7b57abc98ae9", size = 250276, upload-time = "2026-07-15T18:53:41.027Z" }, - { url = "https://files.pythonhosted.org/packages/63/92/1199318a200eb6c8c6ce0192c892c8710ac791abbe0f35099294620bbfda/coverage-7.15.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e26ff680768b8095e8874aabe0e9d3a47a2a9f176a8340d05f8604c56457c23a", size = 248283, upload-time = "2026-07-15T18:53:42.557Z" }, - { url = "https://files.pythonhosted.org/packages/56/da/be284a55c5619bda891a89c27dfd59324a2c6a14d755cf6aac6960ceebeb/coverage-7.15.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:7e8f27131dc7cd53de2c137dd207b3720919320b3c20d499dc30aa9ee6173287", size = 252093, upload-time = "2026-07-15T18:53:44.271Z" }, - { url = "https://files.pythonhosted.org/packages/d4/53/ee112da833ddd77b73c6d781a98029b45b584b136615b4900ed0569f887e/coverage-7.15.2-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:728a33676d4c3f0db977990a4bd421dcaa3be3e53b5b6273036fff6666008e89", size = 248552, upload-time = "2026-07-15T18:53:45.7Z" }, - { url = "https://files.pythonhosted.org/packages/82/6a/802cfc802e9113494c80bf3f284cd4d72faeb1f24e244f61046af364f2ca/coverage-7.15.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:29c052f7c83ccfcc5c577eaae025d2e4a9bb80daf03c0ac31c996e83b000ce88", size = 249154, upload-time = "2026-07-15T18:53:47.256Z" }, - { url = "https://files.pythonhosted.org/packages/2c/65/529808e91d651147edae408fd9e894abc3b8cad7f3e594bbc36719a3e13a/coverage-7.15.2-cp310-cp310-win32.whl", hash = "sha256:1268ac8fb9ddcd783d3948dbabaf80a5d53bfdaa0575e873e2139a692f797443", size = 223334, upload-time = "2026-07-15T18:53:48.768Z" }, - { url = "https://files.pythonhosted.org/packages/68/0f/0e1829d7001130876dfbc0b4e1c737ea7c155b809e3e4a98a0aa268e2369/coverage-7.15.2-cp310-cp310-win_amd64.whl", hash = "sha256:9f4432898c4bf2fba0435bbe35dd4437d7264565e5a88a21f5b49d8662a6b629", size = 223959, upload-time = "2026-07-15T18:53:50.429Z" }, - { url = "https://files.pythonhosted.org/packages/7d/3a/54536704f507d4573bf9161c4d0dd3dd59b6d85e48c664e901b6844d8e33/coverage-7.15.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2f1ec6f304b156669cfde653b4e9a953f5de87e247ea02ac599bce0ab2744036", size = 221414, upload-time = "2026-07-15T18:53:51.941Z" }, - { url = "https://files.pythonhosted.org/packages/b6/d9/8ba925d29743e3577b21e4d8c11a702b76bc93c41e7fdfd1177af63d4b8d/coverage-7.15.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4d3361879d736f469f45723c11ea1a5bbdaf1f6928f0e632c940378b5aa9b660", size = 221913, upload-time = "2026-07-15T18:53:53.682Z" }, - { url = "https://files.pythonhosted.org/packages/09/54/a855f3aa0187f2b431ade4e4791b77b56282cfb5d201c83ec26a31b5b36a/coverage-7.15.2-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:c6a98d698f9e2c8008d0370ec7fc452ebfcc530002ae2d0061170d768b992589", size = 252332, upload-time = "2026-07-15T18:53:55.467Z" }, - { url = "https://files.pythonhosted.org/packages/8e/d3/13ac97b4370640ba3452fc8559b06cc2f479ce3ba4a0b632a73e44c38a7d/coverage-7.15.2-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:d50dd325e18ec25bfcc10cd7f99b04df1ab9ec76b0918c260e60817ad0643dee", size = 254243, upload-time = "2026-07-15T18:53:57.055Z" }, - { url = "https://files.pythonhosted.org/packages/88/83/5eca144942d8d0659d3f55176517f4a59cdc65eefd17146a0770935a3ebd/coverage-7.15.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:67d7602480a47bdf5b675635403625553ebaa70d5a62a657c035149fd401cea0", size = 256352, upload-time = "2026-07-15T18:53:58.83Z" }, - { url = "https://files.pythonhosted.org/packages/4e/ba/d3db2e01a50fc88cdb4c0f19542bcf6f61489e34dc9aa3538413e2459a38/coverage-7.15.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:cee0f89f4767a6057c8fbf168f8135f18be651300496086bd873e3189fed0487", size = 258313, upload-time = "2026-07-15T18:54:00.497Z" }, - { url = "https://files.pythonhosted.org/packages/78/b3/aba83416e9177df28e5186d856c19158c59fc0e7e814aaa61a4a2354ad1b/coverage-7.15.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a29ec5305a7335aacee2d799e3422e91e1c8a12474986e2b3b07e315c91be82f", size = 252449, upload-time = "2026-07-15T18:54:02.456Z" }, - { url = "https://files.pythonhosted.org/packages/6a/a5/4b00ecac0194431ab451b0f6710f8e2517d04cef60f821b14dec4637d575/coverage-7.15.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:48ccc6395958eda89093ecdc35644c86f23a8b23a7f4d44958812b721aad67c1", size = 254043, upload-time = "2026-07-15T18:54:04.072Z" }, - { url = "https://files.pythonhosted.org/packages/75/b6/cfa209b4313ee7f1b34da47efcd789ea51c024ad35af390e00f5a3c10a2e/coverage-7.15.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:81f382c5a94b434ec1f6da607edb904c76d7212e618cd4d1bc9f97bed4120ef5", size = 252107, upload-time = "2026-07-15T18:54:06.745Z" }, - { url = "https://files.pythonhosted.org/packages/36/67/e8cac5a6954038c98d7fe7eb9802afe7ab3ecb637bb7cc00e69b4148b56d/coverage-7.15.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:bbc808daf4f5cd567af8075ecc72d21c6dfef9a254709a621a84c217c935ebc0", size = 255873, upload-time = "2026-07-15T18:54:08.48Z" }, - { url = "https://files.pythonhosted.org/packages/2c/92/395cca9f330a86c3fe3471d73e2c102116c4c58fdc619dbbc125c6e93a54/coverage-7.15.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:a4c46b247b5d4b78f613bd89fea926d32b25c6cc61a50bd1e99ba310348f3dad", size = 251826, upload-time = "2026-07-15T18:54:10.083Z" }, - { url = "https://files.pythonhosted.org/packages/51/60/3e91b20295439652424f426b7086ec5bf4fbe3f604c73eda22b986c4fd6b/coverage-7.15.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:094dd37f3ef7b2da8b068b583d1f4c40f91c65197e16c52a71962d5d537fc5db", size = 252735, upload-time = "2026-07-15T18:54:11.878Z" }, - { url = "https://files.pythonhosted.org/packages/a5/eb/8c07839005e5e3c6b3877d3a6e2a80ce766589f31dd2b6882b78d59a7b8c/coverage-7.15.2-cp311-cp311-win32.whl", hash = "sha256:a63b9e190711134d581c4d703df5df09851b1acf99792c7aacbbe9f41f0283c9", size = 223500, upload-time = "2026-07-15T18:54:13.525Z" }, - { url = "https://files.pythonhosted.org/packages/2e/98/59d83c257cd59f0fbaf9d9ddb26b744a576760dfd1ae16e516408894a02b/coverage-7.15.2-cp311-cp311-win_amd64.whl", hash = "sha256:8bb9f4b4279187560796a4cdaca3b0a93dd97e48ee667df005f4ed9a97403688", size = 223973, upload-time = "2026-07-15T18:54:15.163Z" }, - { url = "https://files.pythonhosted.org/packages/ea/09/2d285c8bef5c4f695d120c1c96dc11715638aa8e134069f210bb6a62a9fe/coverage-7.15.2-cp311-cp311-win_arm64.whl", hash = "sha256:8c726b232659cbd2ae57ade46509eb068c9bd7a06df9fcbff6fe484870006934", size = 223519, upload-time = "2026-07-15T18:54:16.803Z" }, - { url = "https://files.pythonhosted.org/packages/6a/50/eb5bf42e531611a9f8d272556b1ed4de503f84a91413584094487cf69f8f/coverage-7.15.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1adac78e5abc7c5438f7a209c9ca69d06542f0bf481d728b6989ea80b813fdf9", size = 221587, upload-time = "2026-07-15T18:54:18.439Z" }, - { url = "https://files.pythonhosted.org/packages/06/d1/da99af464c335d4e023a6efcd7ec30f63b88a43c93745154ab74ffb31cea/coverage-7.15.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b868acc62aa5de3be7a9d05c2333bf8359ca987e43f9cb30ff8fbda6a024ab73", size = 221943, upload-time = "2026-07-15T18:54:20.062Z" }, - { url = "https://files.pythonhosted.org/packages/5b/8a/13c42723d61ca447eafa18732e8141dd6a63f2732e1c7e1502c182dd88d7/coverage-7.15.2-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:6f6966fc30e6f06ca8f98fb0ce51eda6b111b3ee8d066a8b1ec9e77fa06ab55d", size = 253450, upload-time = "2026-07-15T18:54:21.765Z" }, - { url = "https://files.pythonhosted.org/packages/d7/29/99021303f98fbdcb63504b4d07bea4cc025b9b2dd907c4f07c85d50a0dab/coverage-7.15.2-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:68af907f595ab01a78f794932ff3bdf929c316d3000810d38dbc247129e26f8b", size = 256187, upload-time = "2026-07-15T18:54:23.4Z" }, - { url = "https://files.pythonhosted.org/packages/f9/a8/fd503715ed6ca9c5d742923aa5209257340b367a867b2ced0c7d4ba8a0b9/coverage-7.15.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:afa29e2eff3d5729267e2cb2fd4ce9d61c952932fb2694e34ccb5d9540c6a296", size = 257301, upload-time = "2026-07-15T18:54:25.183Z" }, - { url = "https://files.pythonhosted.org/packages/da/40/3f4b8fb409810036ebc2857d36adc0498c6e957b5df0290c5036b2e143f1/coverage-7.15.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bbf44513ceb1589e31948e20eafbde9deaface90e1a1afa5f5f77b4423d17ce6", size = 259562, upload-time = "2026-07-15T18:54:27.204Z" }, - { url = "https://files.pythonhosted.org/packages/0b/8a/9bdffbef47db77cce3d6b02a28f7e919b19f0106c4b080c2c2246040f885/coverage-7.15.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9deddf09eecb717b7f980414b43d90a5b22ff3967d2949ab29cb0aa83d9e9098", size = 253841, upload-time = "2026-07-15T18:54:29.134Z" }, - { url = "https://files.pythonhosted.org/packages/1b/1e/9031efde019d31a06646261fce6dfc5c3c74e951e27a71e5c9a424563178/coverage-7.15.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:ae901f7e55ba405c84ee1cab3d3e962e4e871e4a2bcb9c90911adbd69b42ac5a", size = 255221, upload-time = "2026-07-15T18:54:31.142Z" }, - { url = "https://files.pythonhosted.org/packages/56/db/787acde872389fc84a9ef9d8cd1ccc658e391ab4cb5b28092a714426a394/coverage-7.15.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a0f47002c6eeb7c280228467a4cb0cc15ca2103a8421b986b2d3ec04a0f9bd8b", size = 253366, upload-time = "2026-07-15T18:54:32.886Z" }, - { url = "https://files.pythonhosted.org/packages/2f/9b/6f57bc4b93c842eef1695f8cdaf2318e35e7ba54f5ba80d84be213ab7858/coverage-7.15.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:1cd7a5beb7af3e864a13b1f0fb26efd3695da43ef0daf71e586adfffaf34d5b2", size = 257434, upload-time = "2026-07-15T18:54:34.7Z" }, - { url = "https://files.pythonhosted.org/packages/88/26/b3186a21b2acc83e451118978905c81c7072c3333707804db09a78c096a2/coverage-7.15.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:97a5c5457a9fb1d6c4e06cfb5dc835871fbfb6a6a51addc9e925bdeff5ef7440", size = 252935, upload-time = "2026-07-15T18:54:36.548Z" }, - { url = "https://files.pythonhosted.org/packages/20/c2/c9f3376b2e717ea69ed7a6e9a5fcab968fb0b290db6cf4bd9a1fc7541b75/coverage-7.15.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0901cfe6c13bcd2302da4f83e884555d2a22bda6e4c476f09ef204ba20ca536e", size = 254807, upload-time = "2026-07-15T18:54:38.296Z" }, - { url = "https://files.pythonhosted.org/packages/f0/e1/dfc15401f4a8aaeb486e1ba3e9e3c40522a6e38bd0ecf0b3f29cb8082957/coverage-7.15.2-cp312-cp312-win32.whl", hash = "sha256:b171bdd71cb7ff792bf32e376173b0ace7e7963e7e57c58dfc42063a6a7174cd", size = 223641, upload-time = "2026-07-15T18:54:40.103Z" }, - { url = "https://files.pythonhosted.org/packages/91/40/81b6d809d320cd366ec5bdf8176575e897dcb8efe7fb4b489ef9e93e4d13/coverage-7.15.2-cp312-cp312-win_amd64.whl", hash = "sha256:582edc45c2040543fef83341be23c43024a3ab3ae0c2d8bc498a06282905ad40", size = 224172, upload-time = "2026-07-15T18:54:41.882Z" }, - { url = "https://files.pythonhosted.org/packages/ef/28/9f14ec438149f7de557f45518f09b4a7917b795cc37083aa7db482693f8c/coverage-7.15.2-cp312-cp312-win_arm64.whl", hash = "sha256:a638db90c61cd219aeee65e83a24fdaa57269a741ae0cf773309208ac862cee3", size = 223556, upload-time = "2026-07-15T18:54:43.674Z" }, - { url = "https://files.pythonhosted.org/packages/fc/d5/f8c838e6b7282976f7c918884b792df7a0c42c5bba5d99c60ad2d221d56d/coverage-7.15.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1121caa19159a38b5463eaae4b1e1fde81e525b15ecc5e000cd5b1a108f743a8", size = 221606, upload-time = "2026-07-15T18:54:45.448Z" }, - { url = "https://files.pythonhosted.org/packages/bf/37/97c926376364f66298cc44893b89cdf17b8bc406376497c4061ae4b8a8ff/coverage-7.15.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a300c6934e0989c327b9e8a1e110329da4641149f872bbe9f70168be66da76c1", size = 221982, upload-time = "2026-07-15T18:54:47.341Z" }, - { url = "https://files.pythonhosted.org/packages/b7/30/a36050a6e83c2135ee0776f452ca3948224befc6d7f26acecc082d0c106a/coverage-7.15.2-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2617f8799d268fabdeef42a7e89ac3a23e1deee9025427db2df970f99a89a578", size = 252972, upload-time = "2026-07-15T18:54:49.2Z" }, - { url = "https://files.pythonhosted.org/packages/31/d3/06b5f1daf95f0f15ab05bd75f26ba5f3c8b33d0bb72f3aaa3cf41d1bad3a/coverage-7.15.2-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7dc2950a2992cd676d35c20ae63522836deeb034f08874699d14068710af3dc1", size = 255569, upload-time = "2026-07-15T18:54:51.098Z" }, - { url = "https://files.pythonhosted.org/packages/81/1c/9afb3f8de2b8d36960391c48559a2e3ff96594b58099f115921549ea8d0d/coverage-7.15.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9e36686f7a442185db2400b3df171aac520869faf9deb59df687d28659eda2a6", size = 256806, upload-time = "2026-07-15T18:54:53.145Z" }, - { url = "https://files.pythonhosted.org/packages/64/d8/b989f96061a5e32d82fddd1b1b9ff48a7c8f8ae7606f0e80fd9de54b1e33/coverage-7.15.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7d29ca7bd67af6e12e74632d65f026eabc1364da5c254494cd914446a28a3ef7", size = 258936, upload-time = "2026-07-15T18:54:55.015Z" }, - { url = "https://files.pythonhosted.org/packages/b8/fa/f99771f5110457c7b511c1935ca49ddf288218eaa84322e028b9334146ae/coverage-7.15.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:db9c8438057e5b0f6a22a0af99c0c1d26b57fbbdbd1be5861ddb8f897fcc3a2d", size = 253178, upload-time = "2026-07-15T18:54:57.527Z" }, - { url = "https://files.pythonhosted.org/packages/f6/96/c098a6044d119c751ceede7be91035fa8310170ec24a6523aff72f0a5793/coverage-7.15.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:63022c4c8dec1d0342f05c3ede99842fe3d007689acc45e86f123a1746e4a026", size = 254934, upload-time = "2026-07-15T18:54:59.41Z" }, - { url = "https://files.pythonhosted.org/packages/b2/a2/1457b3a7a50c8d77500103b97a046db863e2f59a1cf6d2f814595f349885/coverage-7.15.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:6c0be82b4d4aa5b2704e08518e2252f3e3d110164bcca826816801052e48a7aa", size = 252898, upload-time = "2026-07-15T18:55:01.338Z" }, - { url = "https://files.pythonhosted.org/packages/6c/0e/76958874c471ecfcdde0d2b2747bb2c61bdbf34a40636f4ce9db9923e643/coverage-7.15.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:4510fb9cdf6bb02dfa6af0be4a534b8102d086e22e4a33f8836df663da3d660d", size = 257056, upload-time = "2026-07-15T18:55:03.243Z" }, - { url = "https://files.pythonhosted.org/packages/7c/7c/3d7c4e3bf58baa40327dc7edc2272b17cf02299366d52763db1b0ca1556a/coverage-7.15.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:42ec3d989421b174a2ab607c1539f24127ad362757b7f1c0c0d7a2993f7eb37b", size = 252718, upload-time = "2026-07-15T18:55:05.029Z" }, - { url = "https://files.pythonhosted.org/packages/c8/b8/1cecffed9ce14fb25be9ba42d37b6bb61485c9a3ddd43cd3dde36b6087d8/coverage-7.15.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e8f91bce78e32343af184c3b7fa28fcf5a9e2641f4b6623d392038f804939188", size = 254490, upload-time = "2026-07-15T18:55:06.889Z" }, - { url = "https://files.pythonhosted.org/packages/6c/2c/42984561bc7f4c045dca67516a0c50ee5ef8d84352dbeb5559dc86c4823e/coverage-7.15.2-cp313-cp313-win32.whl", hash = "sha256:434e68d531858205895eb0d74b73d20b84260de426387d53c422a5acda2cf050", size = 223647, upload-time = "2026-07-15T18:55:08.941Z" }, - { url = "https://files.pythonhosted.org/packages/41/9f/39c7c9245efc583beddf89a87683574e663ed93637f3afb6cd7b88405676/coverage-7.15.2-cp313-cp313-win_amd64.whl", hash = "sha256:26c3b04a6377fd7c09800921fa934e3a17c0020439cd59df73e73ae1d4b6a78c", size = 224190, upload-time = "2026-07-15T18:55:10.789Z" }, - { url = "https://files.pythonhosted.org/packages/c7/de/3a2883cf8a213659280ef4b403059e17a9acaeb7fc7fd4105e1226ff2e6d/coverage-7.15.2-cp313-cp313-win_arm64.whl", hash = "sha256:3ed010aa1b69cda8e827aabfca9866216c980e2dca82ab9a78c5f83689964c8b", size = 223583, upload-time = "2026-07-15T18:55:12.678Z" }, - { url = "https://files.pythonhosted.org/packages/81/5f/aed265fd7a3551a394f36dfe41868aee709b7f95db4052205b4ad1563ac3/coverage-7.15.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:40f633c5c5fc783732f6312280122e859538fa24461235597c13d803ea9a108a", size = 221650, upload-time = "2026-07-15T18:55:14.527Z" }, - { url = "https://files.pythonhosted.org/packages/6b/2c/222ba12a545189017120f8eddfc1a0bd4616b47d5d4a8d99421edb2fe4c6/coverage-7.15.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:075560438765b7a2ef43bf7aa7758661b53d889df47f062a31bda6c1ade553a2", size = 221988, upload-time = "2026-07-15T18:55:16.674Z" }, - { url = "https://files.pythonhosted.org/packages/aa/38/304b5877ab46e6c290b4292cfcf3fe28245f0e5597cad7f6acc91fc7e0a4/coverage-7.15.2-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:25fd15dd40a0a2c51a500d664ca29053c09c3259d998407bf982b6e114696138", size = 253029, upload-time = "2026-07-15T18:55:18.856Z" }, - { url = "https://files.pythonhosted.org/packages/6c/58/821b533b8db9e44cf1d8a97bd525149ced40dde1d0093da02cb78e715244/coverage-7.15.2-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b9a6367e4aff723e8ee8190836836124284e8fcd4265e307c844010cfa074f3f", size = 255536, upload-time = "2026-07-15T18:55:21.027Z" }, - { url = "https://files.pythonhosted.org/packages/f1/f2/7aa06604c389d32ea7f0a6a988359a7eafc3cd3f8e7bc2e88cd2fdf0b877/coverage-7.15.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9854ca62c152874b2060772503535be2e8f53f70b8aaa7686b094888d872f984", size = 256881, upload-time = "2026-07-15T18:55:23.125Z" }, - { url = "https://files.pythonhosted.org/packages/a2/4f/1ef342339c7916d0096bc5888cc0f653882cc7bc8f897d5cb89143287c9b/coverage-7.15.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:913b6c56e110da40e035bbd168353bf7aaa2544a5eaccea5d98a4629aac156c7", size = 259196, upload-time = "2026-07-15T18:55:25.099Z" }, - { url = "https://files.pythonhosted.org/packages/fe/f4/7ed055d7a9c5ec13b161773a115a5ccc6b0081d568c31fad830806306cc7/coverage-7.15.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:aaccad4129d735a8a4d526f26929894c9a4e8ef7034566f210b176749d6906e3", size = 253036, upload-time = "2026-07-15T18:55:27.018Z" }, - { url = "https://files.pythonhosted.org/packages/14/79/ea82cca18c242a3a38b6c017da39726aa62dcb64aa635abf79b92009975c/coverage-7.15.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a164b50081fc7357331c4024ef4d17b78ba325f8380d05f5a69599a7e05257ee", size = 254887, upload-time = "2026-07-15T18:55:29.084Z" }, - { url = "https://files.pythonhosted.org/packages/a4/ba/a136db3c0d9562b00e10b72540dbf3a33cd3bc5b95060c9308e247494623/coverage-7.15.2-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:bfd341ccf78128e72c094bc70cc25b3ef309c33c7c2c66ba3ed4309549e02de1", size = 252852, upload-time = "2026-07-15T18:55:31.184Z" }, - { url = "https://files.pythonhosted.org/packages/17/17/ea334246b16b7d059953fad6fdefa11e33c68efbd3fe37b1098120a1fac2/coverage-7.15.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1473b3ba8e7ee0f076117b1a72c23f579a2b9e2bb742f48a8d86ea27ca93f91a", size = 257128, upload-time = "2026-07-15T18:55:33.163Z" }, - { url = "https://files.pythonhosted.org/packages/ed/c3/074fb66d46d607855f710876b117cbda562c5ab08363528e78820449f937/coverage-7.15.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:17c432b5f73ad52ef46fb06019f6fa7c66ce381961cf0f7dfd1d3a4bd3a98145", size = 252668, upload-time = "2026-07-15T18:55:35.063Z" }, - { url = "https://files.pythonhosted.org/packages/e1/c1/f620850ada9b36435921c9a3a8057013422b1d964eb4bf37fe138724d192/coverage-7.15.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:77f0ef5011df53a4bd1b35211ab122287f8d9b8d7aa1c4553e5c2deb24b1d446", size = 254325, upload-time = "2026-07-15T18:55:37.125Z" }, - { url = "https://files.pythonhosted.org/packages/cc/31/a729ca3689404493af82ef8e6ff70bd88bdda8da89aeef6ca9b387aeb2b4/coverage-7.15.2-cp314-cp314-win32.whl", hash = "sha256:f653e5d7248c1191ec988a85c72edeab46c3ff44f90639a4ed4874ec0be90243", size = 223844, upload-time = "2026-07-15T18:55:39.078Z" }, - { url = "https://files.pythonhosted.org/packages/c6/83/5d809dc808fb1698c671f3e372259bb9158e64b7ea526fc6ab7de64de9fe/coverage-7.15.2-cp314-cp314-win_amd64.whl", hash = "sha256:9911f31aad8906abe337c271343485cf20df5e70df5d2f57f9f136e7b55f26bc", size = 224331, upload-time = "2026-07-15T18:55:41.346Z" }, - { url = "https://files.pythonhosted.org/packages/16/4e/35e488548e952795829e129995c4174df33bf432b591d1aa42c8d9e4e7ad/coverage-7.15.2-cp314-cp314-win_arm64.whl", hash = "sha256:e38def96ad59853824c97953fdcd2c320a84ba3ce99b417db78af8bb6c3db635", size = 223760, upload-time = "2026-07-15T18:55:43.518Z" }, - { url = "https://files.pythonhosted.org/packages/ed/49/dd2c86cd6374038f6e415fb5bfb86db5218553209c081384a020369dee79/coverage-7.15.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:835ec4e20b45f0a7f63ed78f94065aca00de033403df8377bfe8b9c6abc0a7be", size = 222384, upload-time = "2026-07-15T18:55:45.569Z" }, - { url = "https://files.pythonhosted.org/packages/d3/74/173ff17a1c0808e5a438f549f6f145d5ac7528f2791310b63523e3200ac7/coverage-7.15.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7466cc7ab6dc0db871d264bf99e8779f0917ee63d40730af0552f71535a6e072", size = 222647, upload-time = "2026-07-15T18:55:47.544Z" }, - { url = "https://files.pythonhosted.org/packages/84/f8/b8cba872162356fb44ac79c10309d987206a4461e32072fc29228dad7331/coverage-7.15.2-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:e370c12133095ff18432de8c044962be85a5a96d90c6fcbce8e17e76236d2328", size = 264013, upload-time = "2026-07-15T18:55:49.768Z" }, - { url = "https://files.pythonhosted.org/packages/ee/67/a807a7586d0b8cae485308ddd55756f0806c92f8e0b411bacbf23c48edf3/coverage-7.15.2-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:fe41909c9515c3bfdb5f02c4d1f857dba322d9a9a1178069b91eea77889df63a", size = 266135, upload-time = "2026-07-15T18:55:51.941Z" }, - { url = "https://files.pythonhosted.org/packages/ce/67/cd78771dc985f7e4ebdcc82b1a96d9a932af9e806f01f2f91a89f4c72e80/coverage-7.15.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6aa28cfb6488e5453b5b762d65f73aa586380f6693a04d58078ce228a29b06c0", size = 268555, upload-time = "2026-07-15T18:55:54.065Z" }, - { url = "https://files.pythonhosted.org/packages/18/3e/10134cf81275188c58568f324fc74aedff32c63ca4d5bbc513a91944a6f0/coverage-7.15.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bcc0aae933921d03096f53b0b03eeb702129fd406dee59f08d2efacc68681fa5", size = 269674, upload-time = "2026-07-15T18:55:56.066Z" }, - { url = "https://files.pythonhosted.org/packages/75/4a/771b77de446cba985dc414bbc5844bd21604da05dbc044286df8318a48a7/coverage-7.15.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7c63387e21ab21f512c69c9756a8c7dadd322c7275edb064064433c9a09c3743", size = 263101, upload-time = "2026-07-15T18:55:58.107Z" }, - { url = "https://files.pythonhosted.org/packages/5f/b5/70a7011da15f4071943361183aefa27847f3e3aec4fd335f1cb3d3a622b1/coverage-7.15.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0e55510bc98ae943cece9e667a6c0fe94c6a92913720dea34243657a17993d0c", size = 266007, upload-time = "2026-07-15T18:56:00.468Z" }, - { url = "https://files.pythonhosted.org/packages/b4/0d/f9547e804ce7ad49646ffeffac26699510efbe6c0f751b66fdc960c4e825/coverage-7.15.2-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:2ff08701be2d1556fc78b326c80a3e8042da09352ecb3819105f8e386c8a3071", size = 263611, upload-time = "2026-07-15T18:56:02.615Z" }, - { url = "https://files.pythonhosted.org/packages/ac/59/f576a396659c0efd351f5c1544f67c3560e89c7761cabf7f65e412beeda5/coverage-7.15.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:38c9518b7103826c403a461544e3c2e77151e8676d06eaed85911a97e962584a", size = 267344, upload-time = "2026-07-15T18:56:04.622Z" }, - { url = "https://files.pythonhosted.org/packages/7c/5d/c2e4fce3579c0cb635024293f1a32bbe26df101b3e3a69f22243d1352b6c/coverage-7.15.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:dee88b1ed88587abd8c0269a1fc1f4cc77f7750d1dfde2869e2a123af420e67d", size = 262456, upload-time = "2026-07-15T18:56:06.641Z" }, - { url = "https://files.pythonhosted.org/packages/bb/dd/956287d69436b66094bc4b57ac2da71e43bfd2a5524e958900b9f582fcf8/coverage-7.15.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:2fbeeeecea279727f8ac16c8e1133ddfeee793e985c86ae343d6a5ce744eef8c", size = 264771, upload-time = "2026-07-15T18:56:08.795Z" }, - { url = "https://files.pythonhosted.org/packages/2c/5a/6f979530c2734c575de77cf58f5f28d51f7123a94b5030fd9156fe5f363c/coverage-7.15.2-cp314-cp314t-win32.whl", hash = "sha256:cb0fddaa6884be6aae36ced9544b5e90f7d5f03845a2853bf47a14953a4e8688", size = 224151, upload-time = "2026-07-15T18:56:10.856Z" }, - { url = "https://files.pythonhosted.org/packages/54/7e/27f6b2a74d484742f4017553e710b01e396b23d809df3e95ca0bb9a2824b/coverage-7.15.2-cp314-cp314t-win_amd64.whl", hash = "sha256:77f091ea3a9cc611cd29f433565476bc1936c084ac8eee00ea0e7e70c27e4199", size = 224981, upload-time = "2026-07-15T18:56:12.928Z" }, - { url = "https://files.pythonhosted.org/packages/b1/48/284863423aa474240f6842bd00d680da22f4e6ea2e466618ef7c9c9e69a9/coverage-7.15.2-cp314-cp314t-win_arm64.whl", hash = "sha256:6fc448c377d6eeb00a47c673494bd9bae29280ca53987e1869e67ebedfe20658", size = 224294, upload-time = "2026-07-15T18:56:15.156Z" }, - { url = "https://files.pythonhosted.org/packages/ec/82/32e3bd191d498e64f6f911ad55d14006a0861e54869d2d32452326399e65/coverage-7.15.2-py3-none-any.whl", hash = "sha256:eb6bcae8d1a9d305351ecb108232441d11c5cfe9de840a04388ba5d2db8d735c", size = 213375, upload-time = "2026-07-15T18:56:17.305Z" }, +version = "7.16.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2f/55/d1eaf3e73781174340a00dc1ba2aee8a65f82fadb18e2797b192b6b3925b/coverage-7.16.2.tar.gz", hash = "sha256:ca64d9f1f384f151b9511bec01126072acd2f313439f8ed015a22d8790aab6fa", size = 971999, upload-time = "2026-09-27T12:29:01.118Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/fa/ce3baf63d85b730398d92a7162f486f3a5e4e2cc3382a02488b3943725ba/coverage-7.16.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:732d950e51f3ba4fb6209c73250f3e8924fefca42953ee04a9e65d8c02414d7d", size = 223797, upload-time = "2026-09-27T12:25:54.756Z" }, + { url = "https://files.pythonhosted.org/packages/7a/57/9ba29c2aac7f756d479f03d45762120060f0f988788001001bf36e0e6fca/coverage-7.16.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5dca0bb66b4c3d624ba047887bf70270030c150692d543cb501293dc38a9f4b5", size = 224303, upload-time = "2026-09-27T12:25:56.214Z" }, + { url = "https://files.pythonhosted.org/packages/5d/7b/0d6d60906dca7d28cc1e3fce12a9861801c4fbb6cbf220ad78cd059c9467/coverage-7.16.2-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:af2a2a8c7c74de0559e0c368d94c8def9e16c58faaee33a0bf081057c4227e3b", size = 254715, upload-time = "2026-09-27T12:25:57.755Z" }, + { url = "https://files.pythonhosted.org/packages/cd/b8/9198b865679379fb165c689c64f6e11105ef380f6bd1c7673e83f73d9f5c/coverage-7.16.2-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:db5f8394e17f877a625b257f2ba0ce8e728a499c2c1579ad66220272cd3df510", size = 256627, upload-time = "2026-09-27T12:25:59.131Z" }, + { url = "https://files.pythonhosted.org/packages/98/79/9521462cb6072fe394701bc8974b74afd576c9c9355156c7844e1a86a42b/coverage-7.16.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5b3146d2317c75f70df2509066d979dadd941f7021cdf9b5db4bcd8568258e25", size = 258724, upload-time = "2026-09-27T12:26:00.691Z" }, + { url = "https://files.pythonhosted.org/packages/a6/76/8d7d5d633db9fe0f3182fedc731bf09f9bcf2366055735152504ad614677/coverage-7.16.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9e1d0ced76318bab499693ff25f64faa343415187cb2e4d7befdfdd391a1cf6a", size = 260692, upload-time = "2026-09-27T12:26:02.083Z" }, + { url = "https://files.pythonhosted.org/packages/4e/a7/76cb09c89ba46d74d37428bf93251fc14fb0bbe9e05cc2a5ef61773d318a/coverage-7.16.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:af98ad5ed9d6daaca956201e00bb429a7eb2b080426686f70a20353e0f9839f5", size = 254800, upload-time = "2026-09-27T12:26:03.369Z" }, + { url = "https://files.pythonhosted.org/packages/72/b6/2351c1979aaeb5b4a8091a75b90ca997ad60de36e181ddba267cf61dac97/coverage-7.16.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d56e4d21c56d2046447733f8b118409597db48c01efe898ee9ac24e858ec2d6", size = 256423, upload-time = "2026-09-27T12:26:04.751Z" }, + { url = "https://files.pythonhosted.org/packages/0f/f4/ad9a4f8b5cb2d494fa9452b546fe742ed2f9d3847cc14c05e36279a3e649/coverage-7.16.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:1d5d0e3b660506fb84f995814e3118a21efdc0c8eb80127da1be627d90093c17", size = 254487, upload-time = "2026-09-27T12:26:06.082Z" }, + { url = "https://files.pythonhosted.org/packages/6c/1f/a520470472f3e8b01169bf42162b1470c9ba992230432f62ca36269bf3a0/coverage-7.16.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:17228fbca0f22976f797be94e975dcd237799c657d49551c7de1e0654d1202e9", size = 258259, upload-time = "2026-09-27T12:26:07.513Z" }, + { url = "https://files.pythonhosted.org/packages/09/d2/ff26d5938274745855fa61cfcba0245c88ccc10d98d2cbd96064f16cd5a7/coverage-7.16.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:bc0b0ac781d489304b741269857f1f8338b7a26b1b89c06c0344658001ec0035", size = 254216, upload-time = "2026-09-27T12:26:08.982Z" }, + { url = "https://files.pythonhosted.org/packages/a4/1d/5d832d3b06785d9f53267e4f2724a9f60c312eee6ebed9063a461d0d3b45/coverage-7.16.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:bf1bd822ec4e387ed245bed0d71151582cf7be9e5309bc4145eefe36083d5878", size = 255125, upload-time = "2026-09-27T12:26:10.35Z" }, + { url = "https://files.pythonhosted.org/packages/55/4d/1d33edbc2fcf7d99e384e393e712aa5a2ebbbd8409825357815982207976/coverage-7.16.2-cp311-cp311-win32.whl", hash = "sha256:7ed238d227e23cc300c3d464babdaf9f6ddc740aa1b15a77ae96136e6a7c4516", size = 225898, upload-time = "2026-09-27T12:26:11.7Z" }, + { url = "https://files.pythonhosted.org/packages/6f/7c/676df4882118756c4f8f560c954eddb93e166d84dda8c5f0b6a829689bde/coverage-7.16.2-cp311-cp311-win_amd64.whl", hash = "sha256:a90700f743e29aa3d75a6ff5f01953176a889c00e526194bc4d281731b88d99d", size = 226369, upload-time = "2026-09-27T12:26:13.375Z" }, + { url = "https://files.pythonhosted.org/packages/7a/0e/a457f4a461b3c5610d845137fdd45fa465e011a64c25af440518ab1f4e41/coverage-7.16.2-cp311-cp311-win_arm64.whl", hash = "sha256:a336eec40e3520d369b8a6cdabb4f596e69a8b42927ca074aa1452fed943238a", size = 226344, upload-time = "2026-09-27T12:26:15.127Z" }, + { url = "https://files.pythonhosted.org/packages/5e/2c/f8296c63c5d542f3d21aed685e56b7031a419037d155bb3382fc0940d249/coverage-7.16.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:218d742afca2b5ad5ca759e93eddedfbcc6eadf8322f080dcefc40b7bd4e2d48", size = 223969, upload-time = "2026-09-27T12:26:16.753Z" }, + { url = "https://files.pythonhosted.org/packages/90/23/6f3dcb1423a0d43216e402ea1746e4a7c7c44f38896b97dd573790f56a40/coverage-7.16.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a9a638be322a8d76a41cdb17781c7f82aaee6a66493d8ffb7e2c09ee22423d99", size = 224328, upload-time = "2026-09-27T12:26:18.15Z" }, + { url = "https://files.pythonhosted.org/packages/ac/7d/8f3b6dc920e3fc6732f7678785a2091db439f186afbec30dbf2214d9b1f7/coverage-7.16.2-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:724bd0f1e81856b35e59fc98cf7b4e544a3cb662e4e0864dca73d4326ee9d808", size = 255832, upload-time = "2026-09-27T12:26:19.799Z" }, + { url = "https://files.pythonhosted.org/packages/d1/36/6c45f15be4eca4ac1062c6a55a323286494c99726a7e58951fe85967ac08/coverage-7.16.2-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:5375ebd99038021b35e99dc88255022912c06565d316212f4a576e4b08d30f5d", size = 258571, upload-time = "2026-09-27T12:26:21.199Z" }, + { url = "https://files.pythonhosted.org/packages/34/fb/b54cbeba3ad89082c2e441278681859e538322cc34b84b2af7ebff00080f/coverage-7.16.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7a076277ca9f5750cc230f0f578ebd2620cec60255b25707361699fef6fb465c", size = 259680, upload-time = "2026-09-27T12:26:22.822Z" }, + { url = "https://files.pythonhosted.org/packages/6e/a2/0dc65ec3d61930e1e4c2e371763b15eb4290896eb343a12d5d3091308116/coverage-7.16.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:58d4a54c6ea672afef66d49be922a2c69826c5ae1a42a9cd94f0c9c2bacdf800", size = 261945, upload-time = "2026-09-27T12:26:24.336Z" }, + { url = "https://files.pythonhosted.org/packages/d6/93/5fad7a61f2c14e08e98946fc31c1c7ffc1195061bf3fdc351db3be77a863/coverage-7.16.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0dcbcfcc059117284c603ff8cb61a65872512882f84a8cf0339241f7f7c2f148", size = 256191, upload-time = "2026-09-27T12:26:25.89Z" }, + { url = "https://files.pythonhosted.org/packages/2d/47/74e5de9227b939ece9f64e729645ddc4296bea10dbfa98721c1333c8be2e/coverage-7.16.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:afdf43b72ef3876c1fe66423b91466e37877c9e81e8cec70542b7e8525b9d1b7", size = 257610, upload-time = "2026-09-27T12:26:27.35Z" }, + { url = "https://files.pythonhosted.org/packages/13/fe/2cf28d40b43645d1b72388fe3ee7f7c747533a6a9557bb8c24a7ae74fe1a/coverage-7.16.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:9acc7f7ec4a1b5f89bd929fde5b8a714f6fafdc6cc18725413d510aa082b47ad", size = 255757, upload-time = "2026-09-27T12:26:28.949Z" }, + { url = "https://files.pythonhosted.org/packages/d7/3d/7c149fd99fc8bbc39c80db5e688d1d39fd040be2ecb78b8335a51a55b9c0/coverage-7.16.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:80d3f7b48d43ee8fc5e8707a8adb43d743a5a1a85256c25a24f9d6d0e2238fa6", size = 259822, upload-time = "2026-09-27T12:26:30.515Z" }, + { url = "https://files.pythonhosted.org/packages/e6/3f/b283fce09d5995e227bd8e513358dd7471bedc0f78abc85a925ebdb0a2f6/coverage-7.16.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:126d1af8804d7224421fe991ff65d3ce649081560df7a98b1a5ffff07f9923bd", size = 255325, upload-time = "2026-09-27T12:26:32.037Z" }, + { url = "https://files.pythonhosted.org/packages/bf/91/f3325edf0c4223fb1fe1532b8dbef2a1d2f729459a9a7d1a44d073bae534/coverage-7.16.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c19cd6d025c1673f22afcd22c7df8a662d779e05d8e3fa6820c22afb895b0206", size = 257191, upload-time = "2026-09-27T12:26:33.525Z" }, + { url = "https://files.pythonhosted.org/packages/c4/89/21eb5e83ecf2eed523c4eb3d65ae513cd082c8fd1b6deb34c4cb6c332f97/coverage-7.16.2-cp312-cp312-win32.whl", hash = "sha256:152877cdc8a07264882cfcd503ba56a3ef6cba56a70e8c70f6eb8ffd7384789a", size = 226034, upload-time = "2026-09-27T12:26:35.021Z" }, + { url = "https://files.pythonhosted.org/packages/db/de/e3ad6d864c0833624b4f1f9b53f9e58e116c945e5e965c3f1e172c5e84cd/coverage-7.16.2-cp312-cp312-win_amd64.whl", hash = "sha256:e6c52d3307824ff93b39efd99e4185d557db40bd841452abfb32e5d9151ca162", size = 226569, upload-time = "2026-09-27T12:26:36.604Z" }, + { url = "https://files.pythonhosted.org/packages/3e/c1/bccc58ebe5489cc70628f635c1932fd371f5d7da850dbcf960f95f4c4afc/coverage-7.16.2-cp312-cp312-win_arm64.whl", hash = "sha256:a678c0b6b22086ec2427359d22e37445d4a792f5fdbbc744112c7dade65cad02", size = 226372, upload-time = "2026-09-27T12:26:38.406Z" }, + { url = "https://files.pythonhosted.org/packages/f0/f6/8eb4f220ef24f84fb27d852d4f9bf83e0c73ec1a4a08dd9a87e3f4529739/coverage-7.16.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1a37c6e478cf687e1aa30a593d19c92c02fad9d122b51ab73f51b8dc7a0c0fc9", size = 223993, upload-time = "2026-09-27T12:26:40.164Z" }, + { url = "https://files.pythonhosted.org/packages/40/23/d4bbaf0c154e0b0c2b5264890dbf6ef098dcb50ec8f2469be9490d191660/coverage-7.16.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0993d0e90858c03943d3cb152e068a20dd4707924deec84dd2230261baae3b1b", size = 224368, upload-time = "2026-09-27T12:26:41.762Z" }, + { url = "https://files.pythonhosted.org/packages/7f/48/fc1e88fd571ec5cb38150b7f89f7696ca1bdf9920e01432febb69774cc85/coverage-7.16.2-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:bb2fc905bbf4e6b7f40806ea79e31515abf6349594cdf0adf27c4215f0463204", size = 255358, upload-time = "2026-09-27T12:26:43.442Z" }, + { url = "https://files.pythonhosted.org/packages/1d/56/6785397d07c29c8e70fbb9a07e97d062b43c21ffc5f12385917847f09f63/coverage-7.16.2-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4358b9c8c0125b460407f3017c6cce8156e904b32772c5630d27112f52bdbfe5", size = 257955, upload-time = "2026-09-27T12:26:45.725Z" }, + { url = "https://files.pythonhosted.org/packages/27/3b/c8cdd07721e5f99abd81cea970d971997f99bf158c0b85f51bd284179c8b/coverage-7.16.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1f15254427c9b33eedac4f198eaf9e356eb4f6214551afb43da6194a2c088ad7", size = 259183, upload-time = "2026-09-27T12:26:47.208Z" }, + { url = "https://files.pythonhosted.org/packages/9b/11/606b192fe43d32574ec6238549d48de588fdcc18485682a5ec0a8ac357f2/coverage-7.16.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9a75a4704ff640e46170042eec1f984385a121227c505d5a16ad8e495f452541", size = 261325, upload-time = "2026-09-27T12:26:49.084Z" }, + { url = "https://files.pythonhosted.org/packages/67/90/eea481f8b0305ceeb33f081a5f47e298391dbd1b589de0c4b3b3aa50d3f2/coverage-7.16.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:14253fc7bb15749b849795a06f5d3b6d8bc3fb8a4b5ddc341faf7a89dce205fc", size = 255531, upload-time = "2026-09-27T12:26:50.509Z" }, + { url = "https://files.pythonhosted.org/packages/6b/be/dedbf9aea1457b120c27ac10b8fc2a357f37fa2b54c3e7286d42980a0a2a/coverage-7.16.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:921415102a90637fcc2e3f169f61dad7699ecf690e8639fc21b813acbedc0967", size = 257329, upload-time = "2026-09-27T12:26:52.005Z" }, + { url = "https://files.pythonhosted.org/packages/fa/cb/b25c19d5bb2bd0f2e4e27fe8e2ffcae80c7a91ae181c0dc749ed60e9b1a4/coverage-7.16.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cce2bc991293f15cc4084ca116827b5900c5f34e1a54dfe83f10ab5c43162eb7", size = 255294, upload-time = "2026-09-27T12:26:53.634Z" }, + { url = "https://files.pythonhosted.org/packages/5f/a2/892c5c5f4ad44b7b2ca009aee705191f3f268f15052244f2f9e3539b2e35/coverage-7.16.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:e1fa594c887365b69745f25a416806e61085dd07b94c9eae68a6e20730629b23", size = 259444, upload-time = "2026-09-27T12:26:55.243Z" }, + { url = "https://files.pythonhosted.org/packages/ed/99/a562537deba0a3e370182ae71c149be796c39d8087365f17a09188f27145/coverage-7.16.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:11e597173af1dc33d5f8a7332ada544199269a223af1ee1770ddd5e245ad0fe8", size = 255111, upload-time = "2026-09-27T12:26:56.851Z" }, + { url = "https://files.pythonhosted.org/packages/2d/20/854ec68641a9b3362ff068a32dfa41637299761617ef253791dbade6fc76/coverage-7.16.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3e7f99698ba3a7d13988bdd984b7ebf13af4dbe2166dc8502eef90d77603b0a4", size = 256882, upload-time = "2026-09-27T12:26:58.41Z" }, + { url = "https://files.pythonhosted.org/packages/db/0d/748e4518b0ac0f9ff2687c248a6e5f8c0737306e709372632a2556f84443/coverage-7.16.2-cp313-cp313-win32.whl", hash = "sha256:f80bd9f9633eafc73d0a913ba2645c96ba58bba1befc30590f7c0fbfde59d865", size = 226045, upload-time = "2026-09-27T12:26:59.983Z" }, + { url = "https://files.pythonhosted.org/packages/31/fa/6e46edba66a183fe4d99d4bb52c173287e9b8dddabe0888d24cb8210e580/coverage-7.16.2-cp313-cp313-win_amd64.whl", hash = "sha256:8be099e979fc42559328a21828281b4578304191ae46ed4e80a407048a82eee6", size = 226581, upload-time = "2026-09-27T12:27:01.494Z" }, + { url = "https://files.pythonhosted.org/packages/1b/d9/9ef6845367600b336ff75d000444a0d32497d6972c833141bd39356abf68/coverage-7.16.2-cp313-cp313-win_arm64.whl", hash = "sha256:28ff850182a67d117990fa2ce5ea1032836d8c9630dae867e8bdd3bff4533b79", size = 226409, upload-time = "2026-09-27T12:27:03.116Z" }, + { url = "https://files.pythonhosted.org/packages/59/4c/577fc0803dab4155dcf808faffbdd7b159256781c0874a8586e17b81b149/coverage-7.16.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:4ee546b9e4872ffa194bf07ac87bfa1202ebb824d0795dc1ef22f175545ca90a", size = 224138, upload-time = "2026-09-27T12:27:05.141Z" }, + { url = "https://files.pythonhosted.org/packages/75/9e/e3785ba3ecba2bd11efc74bfe2801ca4b78c4480b15a375648d809a59da3/coverage-7.16.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a2fac6895eb299a2e52d7bbb8fb3903502b9da8d3f5309ceb16ec40c646b58ee", size = 224445, upload-time = "2026-09-27T12:27:06.805Z" }, + { url = "https://files.pythonhosted.org/packages/f0/d0/963ff22d3fd27117da3b8cc442f5bdc91196f783321e1a8ff0ec43476772/coverage-7.16.2-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:57ff3783f99d75a1e81dd56a9737eb5665e6736a5d93258ba596b6dcad8fd05b", size = 256112, upload-time = "2026-09-27T12:27:08.43Z" }, + { url = "https://files.pythonhosted.org/packages/a8/d4/a306940c81c6ae759e82fff27d20b7fdc6896e422b821f51313cce212b6c/coverage-7.16.2-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:35f37886699cb9abd29958247d718628d5bc6f39e623dff66a09e546c42a7e03", size = 258727, upload-time = "2026-09-27T12:27:09.927Z" }, + { url = "https://files.pythonhosted.org/packages/b9/a3/d3d99d93b02517087aa05bc0cf2d04d372956b849e5443e059079901429b/coverage-7.16.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0fd7a86fdda7cb6d616d178654bd0ad6bc0f3f33c2e478aa598500a1a9e34eda", size = 259909, upload-time = "2026-09-27T12:27:11.55Z" }, + { url = "https://files.pythonhosted.org/packages/08/44/39dd599181726758dd185ae4dc0c0ab3aeabf7ca70e68e145060feeaaa16/coverage-7.16.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ac0f3b379c94acc2f7dce5f5f0b24d44fa1cc6a509717ef83dfee07450c2117c", size = 262481, upload-time = "2026-09-27T12:27:13.17Z" }, + { url = "https://files.pythonhosted.org/packages/99/e8/91ee43f6ded411460c359d7e1aebde4d6fd8f00a2e5394182d9d212eb23c/coverage-7.16.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7d0732c83746bc24123c581a85d9dd96b70ddb538c9076020aa1a041790361e9", size = 256012, upload-time = "2026-09-27T12:27:14.91Z" }, + { url = "https://files.pythonhosted.org/packages/11/8c/e9499ddc33197bd7eabcb1118ca81756fc874457b324e2b479a4804b2ad2/coverage-7.16.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7b451c68218c150f616bc9649783ec8de76a59792c759b43aa0c9c0466a465e4", size = 257898, upload-time = "2026-09-27T12:27:16.588Z" }, + { url = "https://files.pythonhosted.org/packages/5f/6e/c081cb5991a0afba99f9c4ad6c74a5fce9513a38ddc64e3e6680c6fed9af/coverage-7.16.2-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a56ac4fa5a75c7e182e8f62600cfb4aff43c5ed7356a034f3557659c3bec1d90", size = 255938, upload-time = "2026-09-27T12:27:18.19Z" }, + { url = "https://files.pythonhosted.org/packages/b2/42/1c3d819e8f9b6eb01c2fe90874d67a8882adb9507e0bbb09361ed131ea89/coverage-7.16.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:4cc4f73aa3fabc36e32046d6cd2971405948d8a903636508a3d3b2f9128b3a95", size = 260368, upload-time = "2026-09-27T12:27:19.903Z" }, + { url = "https://files.pythonhosted.org/packages/19/4f/d70eac07901fd587b6ab05e659b52afe13959992aa5113bf6cce059cc572/coverage-7.16.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:723dcdab91357159b722935b500ee8abc0a66c8c432e1e9fabf4cc7598952de8", size = 255620, upload-time = "2026-09-27T12:27:21.621Z" }, + { url = "https://files.pythonhosted.org/packages/34/5e/6d87af88317d3d9a9b18a9ca1bc1673eb516917f296e579d0d4a55cb3490/coverage-7.16.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5397e21a90dde0e9c6896b77ded8f0be26b66f8b22b33aed41f6043ed95d55e6", size = 257521, upload-time = "2026-09-27T12:27:23.358Z" }, + { url = "https://files.pythonhosted.org/packages/79/bb/90c2641170d2fa1a6757b3f8450ba2740197317b0ddd749e9604b914e886/coverage-7.16.2-cp314-cp314-win32.whl", hash = "sha256:848893e1d361448c113dc2f0913503522a6f7be231d0e38333d2a22d9698a011", size = 226248, upload-time = "2026-09-27T12:27:25.153Z" }, + { url = "https://files.pythonhosted.org/packages/30/08/d8d0478bb02c8eb0ae20a496fc80c40fcf4d3450bd184300d682ba2d28a6/coverage-7.16.2-cp314-cp314-win_amd64.whl", hash = "sha256:5a27b731c171e43dc8b5f32b76a5051dde2ec9b9366c87028f08a7088ebc2c7b", size = 226732, upload-time = "2026-09-27T12:27:26.907Z" }, + { url = "https://files.pythonhosted.org/packages/32/3f/0001da22155b0a8ce063ec0f7e64ecbe17b373f306e7a74435f6d6accb72/coverage-7.16.2-cp314-cp314-win_arm64.whl", hash = "sha256:1c569a9fd25505f1cd6bea90588818f90373ce90e2632e2cacf19ddbd6e14fdb", size = 226645, upload-time = "2026-09-27T12:27:28.588Z" }, + { url = "https://files.pythonhosted.org/packages/d7/85/6d8813aff9b8b8586691a9d33c43c5604f7227622574da7cdc3d91a86861/coverage-7.16.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:d93db87adb6b1c1b408dce4763314b55d76a9f589e96783a84ac9e7689e48bdf", size = 224871, upload-time = "2026-09-27T12:27:30.32Z" }, + { url = "https://files.pythonhosted.org/packages/5c/70/444f3a4981ac2cda40fdcf4cc9b56a4e1a33c222abeb33e51ed3e3eb2a6b/coverage-7.16.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:aa62c85046473959c13ba9edca9dc90a77d5c1095b1ba313556314d77fe5b036", size = 225123, upload-time = "2026-09-27T12:27:32.33Z" }, + { url = "https://files.pythonhosted.org/packages/d0/c1/980681cd7b33eb66ac835044116ef0a92e11fcc7bdd866cc89d10b1130b9/coverage-7.16.2-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:db76506aa5416081f3e8974ae0f7965c58ada0bb0ef7339ac86099588dbb20d3", size = 265049, upload-time = "2026-09-27T12:27:34.085Z" }, + { url = "https://files.pythonhosted.org/packages/b2/e3/87679875c33bb2191f0f05544a1cc9adcc940fe0c35443a10f2df753dde5/coverage-7.16.2-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:a0f2285329dac10ab08f79cb11f5692c497018e6c7c511f95e6fd63a70b8f831", size = 267717, upload-time = "2026-09-27T12:27:36.025Z" }, + { url = "https://files.pythonhosted.org/packages/76/64/5d372776d6eb523d4e93bafba2253f96984e3b18261c4cc56a50863c6d0d/coverage-7.16.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:382d3346d56b0eec1b793d53a4c88799c8053f516aa3a8d7c44315696954bacf", size = 270047, upload-time = "2026-09-27T12:27:37.96Z" }, + { url = "https://files.pythonhosted.org/packages/be/c1/44082ff0cbf9f97d0043f57970a71204097ec7ba606361a9fd2065393669/coverage-7.16.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:648352b94507179d82637292e7ae8802508d95f78e2f00a705a50b6c48011681", size = 271360, upload-time = "2026-09-27T12:27:39.766Z" }, + { url = "https://files.pythonhosted.org/packages/b8/17/9a215efe25b5e0ecc87c89dbe525c4a87d14d87c8c0c7316ef140a5f6f3e/coverage-7.16.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fb2bde05838fffae1a1bf75e5d411a6cac3e4e9bb97e6640fed8cd47888b33f0", size = 264736, upload-time = "2026-09-27T12:27:42.072Z" }, + { url = "https://files.pythonhosted.org/packages/a2/da/7f0a31af8e448107d4d32844bd684757f51ea907bc0c68c8fd537b2123ff/coverage-7.16.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6a75180829efb8ae62b4aded25be6ddca1c888d138d2d82e21d93bfbd88f41cb", size = 267600, upload-time = "2026-09-27T12:27:43.85Z" }, + { url = "https://files.pythonhosted.org/packages/dd/a4/3bfecbd3366b775bacdcb3330394d356cf384b5d8f5b2146ac4b14b252b5/coverage-7.16.2-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:99704f73721e23859112072d522076e11c31744fc96b5652e5dd2018aa4359f7", size = 264767, upload-time = "2026-09-27T12:27:45.768Z" }, + { url = "https://files.pythonhosted.org/packages/b8/3f/5d62163732d87e4a0c4710a0eab30f0fd6a2d480112abe2029f014fe8c9d/coverage-7.16.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:29309ccc86b7f33df7db12813c299f215bbbc470ed6292d0bedd63ffae1ebf64", size = 269026, upload-time = "2026-09-27T12:27:47.787Z" }, + { url = "https://files.pythonhosted.org/packages/49/4d/8e4579f225426535085a9be371cc75e3b026d058d679b80affbdfb4c3ef0/coverage-7.16.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:30c1b65d529e46569899fadca59e4a87c1faf2886923f1307ba61e654d4f3c20", size = 264147, upload-time = "2026-09-27T12:27:49.681Z" }, + { url = "https://files.pythonhosted.org/packages/d1/36/ef1f77e2c3f7bb03c2b13b9a2006f88700fdd75535ef158d70049f425c1c/coverage-7.16.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:dcf4bc2aab4e16b1c4c0c2005918f23a7dd5d7821ddae82caed9e3342dc2fcce", size = 266376, upload-time = "2026-09-27T12:27:51.551Z" }, + { url = "https://files.pythonhosted.org/packages/be/79/0cb2bf4428830dec971c718c2c841a039c084415c99e67281f5a72841aab/coverage-7.16.2-cp314-cp314t-win32.whl", hash = "sha256:a9cd3de0a5bfe7b0e21ee10e1a14e3d61bf52efc88217ab1d95d6ace6970bd46", size = 226585, upload-time = "2026-09-27T12:27:53.945Z" }, + { url = "https://files.pythonhosted.org/packages/3c/f9/da17121c16667fd84998e972200ae226a41540f6ea4795776c6d99e8976f/coverage-7.16.2-cp314-cp314t-win_amd64.whl", hash = "sha256:611a44e5229a59d7483ce830160e1a0e85f700562c7a5651c7c63fb8f4eb528c", size = 227378, upload-time = "2026-09-27T12:27:55.778Z" }, + { url = "https://files.pythonhosted.org/packages/74/89/01179c62d1b7e6e33bd5001566b02d7f778cf33d3ec1e81e94ca170c517f/coverage-7.16.2-cp314-cp314t-win_arm64.whl", hash = "sha256:22957cef43ce038641de78ba995de7568d2d6a37c6ddbf7fa0fd7d1ae2344d91", size = 227064, upload-time = "2026-09-27T12:27:57.496Z" }, + { url = "https://files.pythonhosted.org/packages/4c/57/52935003c3f627ba6e5203d7179aad32448c10899663a30336aba8e81a2c/coverage-7.16.2-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:414c26dfdb96aac2d570a54e03008f001e32eb2d413705365503648c6bd361d8", size = 224140, upload-time = "2026-09-27T12:27:59.343Z" }, + { url = "https://files.pythonhosted.org/packages/31/38/df472520f3e626524d7e2fc9d6da0afe7895a2f1489d36b48af8ca40bb41/coverage-7.16.2-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:00d3eb96e9988c45f50cccd1f1496571ac5c1f91386ac02c4d55516eeda19a24", size = 224449, upload-time = "2026-09-27T12:28:01.299Z" }, + { url = "https://files.pythonhosted.org/packages/0c/aa/3be084d5b82e63ccdad4ed751e4acbae294673573e30481d29f8b7402eec/coverage-7.16.2-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:4dbbd1155ca46e6e0b6b89d204428c56ef6a459af21333f365d135a2820e5a09", size = 256060, upload-time = "2026-09-27T12:28:03.185Z" }, + { url = "https://files.pythonhosted.org/packages/de/29/48fca82a7ebf7ff7b2e35019cc9537e7f65e4d2aa1215cc5a8792c989251/coverage-7.16.2-cp315-cp315-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:8fc15cc8d0d06e873c00ef18e1372d605f9aaf3de27d8c24e50782e75bc8b843", size = 259106, upload-time = "2026-09-27T12:28:05.15Z" }, + { url = "https://files.pythonhosted.org/packages/06/3d/b2d5986f2dd53fe201aa1be2e4ab204fa1aed5101e67c0dbbb419b850aee/coverage-7.16.2-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c6afdd69218202bc1758c9a14b86b8cf1084f37ed2ca143e567a103772b16d1", size = 260674, upload-time = "2026-09-27T12:28:06.868Z" }, + { url = "https://files.pythonhosted.org/packages/ce/7e/b50160be3506ead12e6480d14279af7f0f17627694300a2d1fd2c42d2ff5/coverage-7.16.2-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:aba5c63b7afdc749cc9eae943d5b868cba2b261a176378fa1c5a30bc8bc89982", size = 263139, upload-time = "2026-09-27T12:28:08.771Z" }, + { url = "https://files.pythonhosted.org/packages/14/5e/7c805ac9a32606de1399bd7e9bd375aa2f973dc61b12680d9e6403c2e891/coverage-7.16.2-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9174f0af24e5eff248b9dbfe76ec5275a3d19d37edbc2810543f12cf97347a34", size = 256591, upload-time = "2026-09-27T12:28:10.842Z" }, + { url = "https://files.pythonhosted.org/packages/ab/9e/76f1ed129a2daf658a3ea17122824cf2e3b91fea0460d8d3664fc5a61018/coverage-7.16.2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:80e9fdb4c3d926b6ba721d4bf7435bdb869c3527ae7803290361d0ab73db13b6", size = 258708, upload-time = "2026-09-27T12:28:12.962Z" }, + { url = "https://files.pythonhosted.org/packages/5a/b7/8d62e75f48b527619239a65294f842d4b7fd02a0839d43ae1de80184e2df/coverage-7.16.2-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:7b3bce4a0d05401d70b7d0d5ca783e686bc9d30e81dbd7d980d532609bf809e4", size = 256562, upload-time = "2026-09-27T12:28:14.934Z" }, + { url = "https://files.pythonhosted.org/packages/b8/8d/0a15f95c3afb78e947c52644786ba4bc9de259905687dd720d5e6fae2e76/coverage-7.16.2-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:44f21e407b278efdfc1ee5e481e00518bd1d500310a30a5fbf2bcbedfef4aaf0", size = 261077, upload-time = "2026-09-27T12:28:17.215Z" }, + { url = "https://files.pythonhosted.org/packages/25/00/88389987305a47d732866c07c8a500000ab574df9505e3114ac69c8d027f/coverage-7.16.2-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:59c3926585e1cd1f2190f4b2ac9014de1bbeaf0d5d0587b0dc6b0aa90d17896a", size = 256034, upload-time = "2026-09-27T12:28:19.08Z" }, + { url = "https://files.pythonhosted.org/packages/92/02/34d079d4952ad461bde037d353f9a6e037a7edc45fe0f9ee8781ff73f028/coverage-7.16.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:066429634299e14dd2d511e1e85f8f9cecc500781f6b41907c0dd6f1baea7e63", size = 258034, upload-time = "2026-09-27T12:28:21.242Z" }, + { url = "https://files.pythonhosted.org/packages/f6/d8/3e59a62879285b464ec1b10fd824fbc1af9ce66e842cd39974f80a0becc4/coverage-7.16.2-cp315-cp315-win32.whl", hash = "sha256:893ea9cf86cb8d2546812ac93d973aaf2ee1fb45110a873b014214fd23e3725e", size = 226252, upload-time = "2026-09-27T12:28:23.102Z" }, + { url = "https://files.pythonhosted.org/packages/f4/e1/128026e1b2836e9ad6b219207ba9edf1c5e0088a7869e23088aee7fbbe7a/coverage-7.16.2-cp315-cp315-win_amd64.whl", hash = "sha256:01c6908bc613b420c26c818fe948e1b97dfd041a53c98b01c63bd8321f5c9aae", size = 226728, upload-time = "2026-09-27T12:28:25.21Z" }, + { url = "https://files.pythonhosted.org/packages/a8/f4/c9fa8e7cf525ca7748ac52b0ee89331d13fe09808e45c679830708782e90/coverage-7.16.2-cp315-cp315-win_arm64.whl", hash = "sha256:967d72c835d7a8cf0af99ec813a2d06e3db6df706402f1fe85b31b437645f495", size = 226648, upload-time = "2026-09-27T12:28:27.136Z" }, + { url = "https://files.pythonhosted.org/packages/a2/13/e96b045447a856666f36f9c653e2a80bdaa732aaaf72412b19aa2c26a473/coverage-7.16.2-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:98d9c97f51b334b0adce7b964442a9af33c1a00c6ac856984cc5dc8d18f81c75", size = 224858, upload-time = "2026-09-27T12:28:29.169Z" }, + { url = "https://files.pythonhosted.org/packages/23/90/087f6ad1bd3df059632ca3407a4e6552ed1053ee35354de0a771acf35423/coverage-7.16.2-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:3e861f1071dcc2fec1e88bef0920f6b1eaa66a143555b4f8ab79ba2b0f30ef55", size = 225139, upload-time = "2026-09-27T12:28:31.131Z" }, + { url = "https://files.pythonhosted.org/packages/7e/8e/285dcef0184358044e7cbcd810a1bdc9566bc620f54702d605477155df4a/coverage-7.16.2-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:fb9d92ecfe2d5b494367c67f7446f8b75b68d8d0c8cf3bc3e6997478be25d9e2", size = 265090, upload-time = "2026-09-27T12:28:33.04Z" }, + { url = "https://files.pythonhosted.org/packages/06/b2/cc83f3a6e5789a4e89059c69555bc641c2efcde568405a1c06fc702951ab/coverage-7.16.2-cp315-cp315t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:eb57acff4a74246ae513c142d4b36e18c389c3aed8661914a53f7cd0071031b2", size = 268254, upload-time = "2026-09-27T12:28:35.135Z" }, + { url = "https://files.pythonhosted.org/packages/ac/41/f548c19530f5d66ac6e3c92bbcbc49da7261de3a458b9f3e54a3efb1a0b2/coverage-7.16.2-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:444889f7f66b74e4455c0a97e0e166dd41177f1dca8c0239a47cff25e05ba7e1", size = 270695, upload-time = "2026-09-27T12:28:36.959Z" }, + { url = "https://files.pythonhosted.org/packages/94/61/4dc27cf82ef96434d2874110ad0cc10ea4621025705dc5049862bd3bd181/coverage-7.16.2-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a740ea6f083c6db7b926534d159508f80ba275ab35e722522de0d18d0f56e55f", size = 271853, upload-time = "2026-09-27T12:28:38.821Z" }, + { url = "https://files.pythonhosted.org/packages/38/29/bf8072b1b8bd5f2de8b21460a404460b1a2b97e80a9464c78ec0271f6199/coverage-7.16.2-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8e209591f7c41ae4a9171335cf6156afda0b21de73b02f73f5aa95b2d5fbb08d", size = 265644, upload-time = "2026-09-27T12:28:40.815Z" }, + { url = "https://files.pythonhosted.org/packages/7c/2f/0aecb8721be5cdeb8afd9d6d9f6b463f074e4d8d37f00f4c42442522709f/coverage-7.16.2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:396bb16e04ce04efbb3df91456ae4e3da918e69ecdf67fb711b0a0fdf35ccce0", size = 268530, upload-time = "2026-09-27T12:28:42.725Z" }, + { url = "https://files.pythonhosted.org/packages/ab/0b/92b4b7628268ee711249958e68fc0328779bd3d9a7ab4715379465aedb84/coverage-7.16.2-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:9cdf19874e0d247f32f03609200370343c3c7aa260b191d8c2bb251d36198283", size = 265154, upload-time = "2026-09-27T12:28:44.684Z" }, + { url = "https://files.pythonhosted.org/packages/7b/d9/41c95c1ab29b3dcd357cd1227181d1c98185632aca41ce670ce671b23a43/coverage-7.16.2-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:fd3d72233eb8b48acc94fa57d44e2d32ce8e7abed02882ccb6d855ccc4ed33ec", size = 269799, upload-time = "2026-09-27T12:28:46.672Z" }, + { url = "https://files.pythonhosted.org/packages/80/07/ebeb259aa5362b033a137b86d7274ff4b109d59be8cc9913889b783bf75a/coverage-7.16.2-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:bb4ffe96aa663cee727659db5a2afeb38c95f8677b747d447b90d6d4874ea2c5", size = 265196, upload-time = "2026-09-27T12:28:48.996Z" }, + { url = "https://files.pythonhosted.org/packages/b2/18/8437620f90d023680a072eee02f968055f3658bbfb7d386d0ea34cfb7f30/coverage-7.16.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:dba2edfb054f6d4a08df9d1637c39a5aa3865bca6617c13c86be21e45658a59c", size = 267266, upload-time = "2026-09-27T12:28:51.361Z" }, + { url = "https://files.pythonhosted.org/packages/28/6c/f08e8ee4293e6434035424180bef4d45e028e8ecc006c61bf9453e74405e/coverage-7.16.2-cp315-cp315t-win32.whl", hash = "sha256:251aed777c47c77aba047096d4542889db089227655711dfc2b9c54ef0e15e35", size = 226583, upload-time = "2026-09-27T12:28:53.33Z" }, + { url = "https://files.pythonhosted.org/packages/f7/fd/3f939c2847f4a72c20cff8b1ac33da78ea91a2d38d9b43336e60db719103/coverage-7.16.2-cp315-cp315t-win_amd64.whl", hash = "sha256:2aca0bdfa9e91621d5b09d815357bf63def4fc0e9cb66da67bf2cf93f3b1a6f5", size = 227374, upload-time = "2026-09-27T12:28:55.158Z" }, + { url = "https://files.pythonhosted.org/packages/5a/35/b98cdc354c952402132e675a87f2cc3227fb68f959c84aaa491fbe15933d/coverage-7.16.2-cp315-cp315t-win_arm64.whl", hash = "sha256:b88841e654f09732804809e435b3e005a929ffd9998b872b7b213957b8759cb8", size = 227064, upload-time = "2026-09-27T12:28:57.075Z" }, + { url = "https://files.pythonhosted.org/packages/3f/0c/7a64e1ac90541a8edf50daef0914848011fb057a5bf55284a4811e21939a/coverage-7.16.2-py3-none-any.whl", hash = "sha256:11d28e9123a9156cb405d8d27b44256c9a58fb5decc2073a8f17862057e3aa0f", size = 215754, upload-time = "2026-09-27T12:28:59.075Z" }, ] [package.optional-dependencies] @@ -882,98 +1031,101 @@ toml = [ [[package]] name = "cryptography" -version = "49.0.0" +version = "50.0.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/1f/99/d1c90d6041656cc6ee229dc99cd67fd0cd5aec3c5f7d72fffc27cc750054/cryptography-49.0.0.tar.gz", hash = "sha256:f89660a348f4f78a92366240a61404e337586ef7f5909a2fef59ca88ef505493", size = 854345, upload-time = "2026-06-12T20:02:30.512Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/9b/22/adf66990e63584a68dfb50c24f48a125c07b1699899381c8151e63ed458c/cryptography-49.0.0-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:966fe0e9c67490071f14c0d2b1cb2dfb3023c5ce39457343931415f08382f2db", size = 4032100, upload-time = "2026-06-12T20:02:32.143Z" }, - { url = "https://files.pythonhosted.org/packages/09/41/3797cfaf69cae04a13ee78ebd83f0678d9c02b4779d21ce24445326f1a69/cryptography-49.0.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:36d1709f992593689b45bda411498d62c6e365f2ca00b84657d4dadd24de16db", size = 4692978, upload-time = "2026-06-12T20:01:21.305Z" }, - { url = "https://files.pythonhosted.org/packages/e6/8b/43011f7ebe515a8aa20d61f290a326cd890c2e738e16e59eaff8d9c3a412/cryptography-49.0.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0e959b578856a3924bc0cbb710fc12c387b9412a951389f3ca61704a9e25f325", size = 4716422, upload-time = "2026-06-12T20:01:48.566Z" }, - { url = "https://files.pythonhosted.org/packages/4a/91/01ce7303a4579e6d3a6abef01bd322848e9ea7a219adcabc5048b9033571/cryptography-49.0.0-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:53ecee2e23f7169b6117e99fc8a944e5e50f79e69758a83b52a00cb98ab2b2d2", size = 4700503, upload-time = "2026-06-12T20:02:47.091Z" }, - { url = "https://files.pythonhosted.org/packages/62/99/a2c95cf8293f07491e9e27c20cc4dcd18176d944e674679adeb1d0173fd6/cryptography-49.0.0-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:2eda353d8a27bcbcaa4cbed18994a74ab4d19a2ca897db188ea269ab9b71419b", size = 5309779, upload-time = "2026-06-12T20:02:08.987Z" }, - { url = "https://files.pythonhosted.org/packages/20/2c/0622f20ff02b2ef32558733443805dc82fd4c275be01b2d19d14676f3a1b/cryptography-49.0.0-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:2afe9051da7ae7bd5905da5a949280c7d2bb75682e188f650a9d0f2756b834c6", size = 4749683, upload-time = "2026-06-12T20:02:03.335Z" }, - { url = "https://files.pythonhosted.org/packages/a3/5b/c5246635d5fd3b64e0d45ae10e99fd32fe9676a79915ccfe5a61ba9af1a5/cryptography-49.0.0-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:0b82e28ee398a386f0807bba7884d30f25218855690f45115831bcce5d90822c", size = 4337874, upload-time = "2026-06-12T20:02:54.323Z" }, - { url = "https://files.pythonhosted.org/packages/6d/88/05563c7fe2e914e87d1a536d06fe83e66b4e1d95cb593e05aea375531da8/cryptography-49.0.0-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:ccac2bfebc306b862133e3bb71f3f6ee8bb525240089b2d952e4144b3a6d5da7", size = 4700283, upload-time = "2026-06-12T20:01:34.822Z" }, - { url = "https://files.pythonhosted.org/packages/c4/b6/d7696e4e890d6ae1469935164c9e5215c557671cb78d6e3f458ccceaa632/cryptography-49.0.0-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:d0527ce944105f257f605a827d6ebead966c752038b6e8656abb9c5edee6fc68", size = 5265844, upload-time = "2026-06-12T20:01:24.09Z" }, - { url = "https://files.pythonhosted.org/packages/a9/3c/f3ad17eecc1a57b0ba236dc01f90e783c51f4a2f35f64777cc4f47a184b2/cryptography-49.0.0-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:cbc77da8c523d5abd028635ba850a6966fcee2c82e2bf65a41d1d8afe0f98be9", size = 4749290, upload-time = "2026-06-12T20:01:30.848Z" }, - { url = "https://files.pythonhosted.org/packages/4f/01/339573cf1023163a400b0b5d16f6d507de413b9f60be6fd1b77feeaf6737/cryptography-49.0.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:b87e65d263b3e5d3bb92a57e2a6638e2f31110fa7aa890c7b2dbba42248d0a3f", size = 4834612, upload-time = "2026-06-12T20:01:29.246Z" }, - { url = "https://files.pythonhosted.org/packages/71/fd/577302e213a1be9468f92d1afef66fcf1ef83d516819d9992ca547f592bd/cryptography-49.0.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:66ec79c3904820572d7e987abdf304281f141d37ad9a489b8e97066e7b9b6459", size = 4980804, upload-time = "2026-06-12T20:01:42.853Z" }, - { url = "https://files.pythonhosted.org/packages/1f/09/f42b1d190c5ba75f72062a387f8030d1d75f6ab035788f1d9c4b01de6525/cryptography-49.0.0-cp311-abi3-win_amd64.whl", hash = "sha256:e5dfc1e64de5677cec922ffa8da89c546d0415bf6efdf081842e5d44c84e1f0e", size = 3810026, upload-time = "2026-06-12T20:02:39.262Z" }, - { url = "https://files.pythonhosted.org/packages/ec/9e/db72b3ae7fc9cfad53e630e56c6ae83b9b6ff0bf3718ffb8012d20b3aabf/cryptography-49.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:73a205dce83953d131a4aa1e0fd917a2fd1c5b1eef251e9d7152efefcbf5caf7", size = 4013892, upload-time = "2026-06-12T20:02:10.735Z" }, - { url = "https://files.pythonhosted.org/packages/86/12/c48a424f38db03027be9f7ed5c7dc5de9933dbee992865f98b13727a009d/cryptography-49.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:196ecd6a36e4e9aa10270393bb98d8df88fccee0bf1e5128b91ae4eb4375896d", size = 4678835, upload-time = "2026-06-12T20:02:48.743Z" }, - { url = "https://files.pythonhosted.org/packages/68/28/8a3ad4653662c93fc44dc4e5d8fd374c25c42e07b34bbfbadf49cf57a5a8/cryptography-49.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7abcee80084cda3f7691f3eb1ce480d8df49cec637b429aa35986c1de71738aa", size = 4697239, upload-time = "2026-06-12T20:02:56.03Z" }, - { url = "https://files.pythonhosted.org/packages/a8/b2/2193fc74f81aee4f9b62733133b73b5176718932ed8f2e4b03fa040480a6/cryptography-49.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:4ae387c9cb68ea569ca17e490d66d8142b81c3cc814bf179974b7d146e490bbb", size = 4685593, upload-time = "2026-06-12T20:02:50.666Z" }, - { url = "https://files.pythonhosted.org/packages/47/f1/1d3eaa243bfc5de4a187b22aa8c048b3e4980bfbe830ac46e6bac2e66947/cryptography-49.0.0-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:f37d847238971164fdbc68ade6f6574aecc9c0af714190e2083429ff68f4ce9d", size = 5289961, upload-time = "2026-06-12T20:01:46.468Z" }, - { url = "https://files.pythonhosted.org/packages/58/39/2d51306721330c486495853eda1c567880ff036de15a14c4b74f399934af/cryptography-49.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:c2bc30226390d60ea19d9f82b19db005fe0452154a23c1c410c12ea801e43561", size = 4731145, upload-time = "2026-06-12T20:02:16.832Z" }, - { url = "https://files.pythonhosted.org/packages/17/50/983e838c7fd0d87fd8c969bcdd328edaf5f756e38df5281637424c155873/cryptography-49.0.0-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:07cab27cc7b7e0fd28e5e26bb9eeedde5c135c868b46de4a27845abe94af6122", size = 4321719, upload-time = "2026-06-12T20:02:52.611Z" }, - { url = "https://files.pythonhosted.org/packages/a7/f5/8f571d7e27c55bce9f76f026143bcb1e040a4233149ecca0bea5fa5dd5f7/cryptography-49.0.0-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:b20133d204d2bb56ba047642199603876c872026ca53e79c35b83772ab2cc505", size = 4685209, upload-time = "2026-06-12T20:02:07.282Z" }, - { url = "https://files.pythonhosted.org/packages/e7/84/0e27016a6fc5a0886f797018b26aa42f40c09a82332bff77822a451deaaa/cryptography-49.0.0-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:b970c6da94d5bb18629db453d14f2a1300f6bf59b61e9b82377931ef95504866", size = 5246285, upload-time = "2026-06-12T20:01:32.439Z" }, - { url = "https://files.pythonhosted.org/packages/11/2d/5e1fb307cb5931881516b464c98774b3f2c36b5d4bb9a2830253cf553cad/cryptography-49.0.0-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:d8ecde755e2e91bf773fc94e8c9d730cd7f2007004cb492263a794ec3899a1c8", size = 4730441, upload-time = "2026-06-12T20:02:01.469Z" }, - { url = "https://files.pythonhosted.org/packages/e4/c0/bff5a02ee731d207d6a1ed51732549d8c53d2bc8da1d10ec6f2844201d68/cryptography-49.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e3fb64c420688e5319ae25113a354015abbd8dffbfbc41781a1ea66fc7622ac3", size = 4815869, upload-time = "2026-06-12T20:01:36.574Z" }, - { url = "https://files.pythonhosted.org/packages/b9/26/814681d14248d95d73d5c3eea0c39a94eb8302df966f670a2c60de90974b/cryptography-49.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:32703d93296f5c1f4b53349ad3a250c2cae0fdecd3a3dd5d47e616d8d616af27", size = 4960948, upload-time = "2026-06-12T20:02:18.688Z" }, - { url = "https://files.pythonhosted.org/packages/4c/fe/93ecac273d3738939d023612ad12cca9a3740a5345d69fda04134c43fd96/cryptography-49.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:33cd0565932807baddb67b96dbee92f2c374b5c89dee09fd74079aeb8c8dba61", size = 3799153, upload-time = "2026-06-12T20:01:39.059Z" }, - { url = "https://files.pythonhosted.org/packages/19/2a/5bb823f5bedcf80718cea7fbc95ec5515cca3769633c4b01a32be7f30e7c/cryptography-49.0.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:ec5e529fb80935c94fe7b729f9972b50e351a0e6b50aa294fd5cabb109fcc29a", size = 4025947, upload-time = "2026-06-12T20:01:25.745Z" }, - { url = "https://files.pythonhosted.org/packages/3d/df/40577043ca124e17012f408ddddaeb213b856336ac82ddb3bc915f39e29f/cryptography-49.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f78ff2c9ed8dc2d036b0f4d640e22522213d047c1b14e61205a7e55c80a494d4", size = 4692429, upload-time = "2026-06-12T20:01:53.628Z" }, - { url = "https://files.pythonhosted.org/packages/2c/99/2d13299eb3dd27b02dcfaafcc91d6b5cb3329f7cbd6d8f51921acd566c1a/cryptography-49.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:35b151772baff2c74cba7fa290ceaff4c3b11c0c881eb93eb5dbc05a7cfbba18", size = 4700968, upload-time = "2026-06-12T20:02:45.383Z" }, - { url = "https://files.pythonhosted.org/packages/a5/4d/9c0cd02f95e2602dd5e563da149ee0830abef3537be8b34dc56281ebe27a/cryptography-49.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:0f21641cf4b30fca7aee061ced0ec7ad7b073518088b7c9969a297c0ae796c69", size = 4697758, upload-time = "2026-06-12T20:01:41.13Z" }, - { url = "https://files.pythonhosted.org/packages/24/01/186c825898477d77e2324d5360fefe622ff1d8d1963ec0554e2cada8ec77/cryptography-49.0.0-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:9e82dcc8e56052715fb18b2429e3bca4823b1629136a2084fc45a9a5cecb9b64", size = 5298863, upload-time = "2026-06-12T20:02:24.579Z" }, - { url = "https://files.pythonhosted.org/packages/b8/7b/62cbbab75d0659865bf0273790031544a0b16c8072d258f9428dcd8190dc/cryptography-49.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:6f2debedf9ca60cf1d5bd466475638af5130f89965605cd818484d19987d3a21", size = 4735983, upload-time = "2026-06-12T20:01:50.14Z" }, - { url = "https://files.pythonhosted.org/packages/6c/72/3e798c064bc39e471008075d0f9bc9daf77a80879c092e4a8e170c585ed4/cryptography-49.0.0-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:8c25ceb16df5b9435f3f6a9829204985b0e0cbee3b48aacd432c7d2c850b44d9", size = 4334173, upload-time = "2026-06-12T20:01:44.743Z" }, - { url = "https://files.pythonhosted.org/packages/f0/ee/6fca21d1ac73e06f8bef71940abfd4d2f6472b4bca284d770f32bd4086f6/cryptography-49.0.0-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:28d8b15e6275f12c8a207dc309dfa957903c927d08d0cc937ee3f63f200693cc", size = 4697298, upload-time = "2026-06-12T20:02:20.918Z" }, - { url = "https://files.pythonhosted.org/packages/67/d0/a5fcd3515f0bae49a7b6d0413cc1bdccdcc1fc0047037a0d480642cdc5d6/cryptography-49.0.0-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:6fc361c34fb6aac015ce19435876635e5c6d21db31998b0920f675f131e043b8", size = 5254338, upload-time = "2026-06-12T20:02:22.737Z" }, - { url = "https://files.pythonhosted.org/packages/a0/84/84fe36f19caf857d61cb7fc9c63035a47ffabd84ea12d1d393148efa3615/cryptography-49.0.0-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:2400ef9c9e2299a25614eb1dea3db54a69b1349efd043bfac9c67630d136df36", size = 4735650, upload-time = "2026-06-12T20:02:41.389Z" }, - { url = "https://files.pythonhosted.org/packages/6c/a0/db537264e234f7273a73ec020873d6d6b39dfd8a53db78b550ca8320440e/cryptography-49.0.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:67e1d20ad9ef3a563c59ef22e7a8a0b8210bd26604369ea4a30a7c66aefe504e", size = 4834820, upload-time = "2026-06-12T20:01:51.847Z" }, - { url = "https://files.pythonhosted.org/packages/93/77/8df9eb486495979bccecd1062e2eaf435250e84437040295b57d09048b0b/cryptography-49.0.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:42b0684e0e40cf26122427802486f6d93aea593612603a94fbf260c7eb1e9c1b", size = 4967968, upload-time = "2026-06-12T20:02:12.524Z" }, - { url = "https://files.pythonhosted.org/packages/c2/e6/f60198ea8d9dfa15fff9ed4ca02ce362f6eadd9ba757dcc50634c4257b63/cryptography-49.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:026ac7423e6fa66872d3bf889be5974507da3944f866f704fa200eadacd00001", size = 3785547, upload-time = "2026-06-12T20:02:26.847Z" }, - { url = "https://files.pythonhosted.org/packages/63/d3/4a83af35d65e3fad632c926fad684c193ea4398569ccb0bbbc7fe8f5dc9a/cryptography-49.0.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:fc1e275c2f1d97b1a6450b8b0ea3ebfa6e087a611c2b26cb2404d48588abab7b", size = 3993685, upload-time = "2026-06-12T20:02:14.883Z" }, - { url = "https://files.pythonhosted.org/packages/d6/a7/f9dac0ab7f80368c56993a7bf638ef9935f825c91902798481fac0898138/cryptography-49.0.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:c83782480a4a9da4d0feb51950131ba32e12e70813848b3343f6e18c28a66838", size = 4676239, upload-time = "2026-06-12T20:02:28.793Z" }, - { url = "https://files.pythonhosted.org/packages/d7/70/2ba3769dd0ae167e2f33dfa9592d45db6ff9a61d62ca1a5b3d1bdd09068f/cryptography-49.0.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:b39efa323140595abd3ecca8529d321ae50f55f3aa3ba9cc81ea56a6011953d5", size = 4715584, upload-time = "2026-06-12T20:01:27.495Z" }, - { url = "https://files.pythonhosted.org/packages/94/64/2923570ac1c0bd3a737aa366ac3abbbbde273042308b8cde95e2364a6e6a/cryptography-49.0.0-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:b47db11c2c3525083296069b98ac5221907455e989ae0c2e3008bde851921615", size = 4675885, upload-time = "2026-06-12T20:01:55.49Z" }, - { url = "https://files.pythonhosted.org/packages/ab/f8/614dc7e051418cfe53d55173c1e24c6b0085e89996fe90508c2fdf769aef/cryptography-49.0.0-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:084ef1af862eb07ec46d25f68689f2102a9fc0e05ce7b80f14f5fe51e4eef0f6", size = 4715449, upload-time = "2026-06-12T20:02:05.469Z" }, - { url = "https://files.pythonhosted.org/packages/aa/50/a9caea39ad19c431c1a3f8a31114df65b260cdfe67786b6c7e7c040c4c44/cryptography-49.0.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:be9fcb48a55f023493482827d4f459bd263cc20efde64f204b97c123201850c6", size = 3783731, upload-time = "2026-06-12T20:02:43.319Z" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9d/af/182eb91b0df3fe75c4d9f26fe70684569566745f6ba7e5c9c73a862c5252/cryptography-50.0.2.tar.gz", hash = "sha256:7b46165bb56eb4704e2eaaf86f3c940d19154535d9b0ca7d6d590b04060e00d5", size = 880623, upload-time = "2026-09-30T15:30:04.884Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e5/56/d194340cc4a57535e82e1bee9e89667ac4b7c13b5d3f59686deae3094dd5/cryptography-50.0.2-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:fa8f5efb344d6908a1ce62f4a24e2e5780f825d6f53f5f50ec5ffacac72936cb", size = 3914904, upload-time = "2026-09-30T14:43:44.339Z" }, + { url = "https://files.pythonhosted.org/packages/d9/69/c9bd862c3bf43d6399c433caf002df16e2dffd4be49bdf515cda38038711/cryptography-50.0.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:79def8d059362e7831389ed3be0ecdf58a89386e1271e35dd9f5af84e81bffd0", size = 4731146, upload-time = "2026-09-30T14:43:47.113Z" }, + { url = "https://files.pythonhosted.org/packages/21/69/64cef1f702bf6657e0cc186ed1a2891d50d29fb41586b254e1c07adea261/cryptography-50.0.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:630ebfea3bf689d075f82316324ff7433dc447fe6bc1bfc76524b74b4a9567d2", size = 4719841, upload-time = "2026-09-30T14:43:49.01Z" }, + { url = "https://files.pythonhosted.org/packages/38/6b/61a3f8d8c5e1e49a6cddccafc4015cc1c0021360ab0acb4080e7a423644a/cryptography-50.0.2-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f9f6143a8c75945eb960d9eb98905a441394abfa24afaae239d514ffb2586480", size = 4738340, upload-time = "2026-09-30T14:43:50.932Z" }, + { url = "https://files.pythonhosted.org/packages/7b/2e/7212ca32fd43dc91f2f41db20160b268098874b4c9a0e7be94d6835f5b2e/cryptography-50.0.2-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:a582ab2ae1d34f67112cadc86702774c9ea4374df6bca6afe672817203c99134", size = 5367029, upload-time = "2026-09-30T14:43:52.911Z" }, + { url = "https://files.pythonhosted.org/packages/1a/f1/b474e930c4d910328780e3940da76f5aa5cbc48ce1fc14e44d239d9ea9db/cryptography-50.0.2-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:4061c0079120205fb760c58acab6443e217307dcf05e3702cf970e0689972856", size = 4753050, upload-time = "2026-09-30T14:43:55.272Z" }, + { url = "https://files.pythonhosted.org/packages/7c/52/9af10e80ac16b0fcc2123f9cbd5e7afbd0fd5075bb7a607c592258a39cda/cryptography-50.0.2-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:ac9ed99d81760c62fe89d5f0815cdfa1ba9a35141cf30f1c2d044f04b4803d2e", size = 4376724, upload-time = "2026-09-30T14:43:57.24Z" }, + { url = "https://files.pythonhosted.org/packages/71/37/6202e488cc1eb625ea110c292c6bda92823176e023f427d8d5660ce8d632/cryptography-50.0.2-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:87e9ce85beb6b328ba370cc6e6aea483c92617b4c95b1d33a49297eb662bfb04", size = 4737859, upload-time = "2026-09-30T14:43:59.541Z" }, + { url = "https://files.pythonhosted.org/packages/8f/30/e86d7d518489b0ae2497091a35287abcb1a2ce4037837a34afbe9b1d6964/cryptography-50.0.2-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:f265528741e048bce55c3463ed721fb0aa45a5888d8add8cfeccb3035451bbdc", size = 5324103, upload-time = "2026-09-30T14:44:01.901Z" }, + { url = "https://files.pythonhosted.org/packages/d3/69/2c833a049475e0a3444e94c7d0aca0aa51d166374a449b09e92ac98138de/cryptography-50.0.2-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:9dab55f57c74c3cad24c323bacbbd04be4705ba6eb0d92e920b1fc4837ed5079", size = 4752576, upload-time = "2026-09-30T14:44:04.545Z" }, + { url = "https://files.pythonhosted.org/packages/6c/5d/906970b83bbfc1f5bbfb677a143c181f2801f23b6a7204a3b47c42c97e65/cryptography-50.0.2-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:25784ce8b9621c90c643efb9e1e2162ab3b0224cae446ad5e70e7fcb1ce18b51", size = 4870819, upload-time = "2026-09-30T14:44:06.884Z" }, + { url = "https://files.pythonhosted.org/packages/68/e3/f2298d3bb55e0c4a91841ec4d01b3f020ba8c5fbf15ccdcc6dcf03f97025/cryptography-50.0.2-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:85d0d9a31b9098e98534226d5686b47264b95e62ce459dc2e62fdfc809f9fe93", size = 5030152, upload-time = "2026-09-30T14:44:09.443Z" }, + { url = "https://files.pythonhosted.org/packages/9a/4f/adfc442765721292fff86d314ce385d3249d22db42295c0dd057727b60f3/cryptography-50.0.2-cp311-abi3-win_amd64.whl", hash = "sha256:7afa5a6602a9f29af1f3a2965f831bae7c9d5d597b7cbb716d41ab3b7d89879c", size = 3824692, upload-time = "2026-09-30T14:44:11.671Z" }, + { url = "https://files.pythonhosted.org/packages/ce/cb/52eb3770c0d0be2702a98c6e96065ddc0a2877cf0845aa9c23397c142cd4/cryptography-50.0.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f785f6161f202ab04d8ca194158968798e480ca058943907972da5f12e2881e8", size = 3892731, upload-time = "2026-09-30T14:44:13.485Z" }, + { url = "https://files.pythonhosted.org/packages/19/8e/aa1fc533d4546b127b45de8aa024eb5933d23eff9debfe25931e56861095/cryptography-50.0.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0ecbc5652bdb6fc9eaf89a7d196e20941adfe812f43bc4ca05d9150496821047", size = 4710431, upload-time = "2026-09-30T14:44:15.427Z" }, + { url = "https://files.pythonhosted.org/packages/6a/64/72bc3f75176e7e406b748a3e3830432b8c51297b38368713df04dc04898a/cryptography-50.0.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ab50ee449bf968271e820086f10a33d101dd060370abc10bcd22279be2656539", size = 4694824, upload-time = "2026-09-30T14:44:17.69Z" }, + { url = "https://files.pythonhosted.org/packages/4e/c6/62c77550edfa5ca3f14bf44a1e6739b9fa09d6e998a11d97ed8213bccc98/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:a9f7355e6fab51f6c369b86fb7571cffa05edee2c2121e0380a37fb9ac1cd5c1", size = 4716967, upload-time = "2026-09-30T14:44:19.661Z" }, + { url = "https://files.pythonhosted.org/packages/f4/37/cce70f150c432914460157a6ecc161752e053aa5ec0ef3b3f7dc6e31039a/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:94e5e9f108ee10471288214d3d233fbfbb492840a8457eb85178d643ddeb32c7", size = 5328676, upload-time = "2026-09-30T14:44:21.744Z" }, + { url = "https://files.pythonhosted.org/packages/aa/9a/6f2f0304d634ceafdeaf23e84537336664ac419b5d07611675c2ad3f6b7a/cryptography-50.0.2-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:241449bf940a5d27309bd317e6f9a2af6932113818bb2b8f5c59ddc7ef16da18", size = 4727698, upload-time = "2026-09-30T14:44:24.178Z" }, + { url = "https://files.pythonhosted.org/packages/1d/de/66bcf9244d118663b2e1aaded8990f4640e3d7b7411870a5765f252074d2/cryptography-50.0.2-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:d8947001be83df1394050758ce0e745dd74fb134eef0a4b5124208dfc3a68c37", size = 4354821, upload-time = "2026-09-30T14:44:26.263Z" }, + { url = "https://files.pythonhosted.org/packages/bd/e6/db28a28c7b6c676addce89136de3d8db49ea825a8c863472e36e42ead4ad/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:4a20ce1e5cb4284a86692fdcba7cb8754185c6b2e5c56fcef3751cf451d3cdc2", size = 4716748, upload-time = "2026-09-30T14:44:28.447Z" }, + { url = "https://files.pythonhosted.org/packages/30/96/01546c7f69ea0e2ab790a2e4f0934a4052fb9b388147fbf83c2fd72f1e57/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:84f964e537f916e2cc85199e5a88742e964939b575ac8598b3f9d6cc416cdaf1", size = 5285085, upload-time = "2026-09-30T14:44:30.704Z" }, + { url = "https://files.pythonhosted.org/packages/6c/01/03263395f74d50b071e9e66daace3f8bef80493e5d410726f2ba8554736b/cryptography-50.0.2-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:828d49b0ff5a0e3975865571c5d91dbbdd0d38d8289b249a163e9425413a5e05", size = 4727268, upload-time = "2026-09-30T14:44:32.92Z" }, + { url = "https://files.pythonhosted.org/packages/eb/94/2bfe8f29ec0cc9c0d99359c4161adf32858e4934b72c6d100d2ac0bbe962/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:deb9fde5c60e437ee4821bc9bc39ff31b42135c27e1dc61ef0a629389c1de62e", size = 4849503, upload-time = "2026-09-30T14:44:34.969Z" }, + { url = "https://files.pythonhosted.org/packages/54/44/e80651ecbf0e42b62e2bb5f5768916e07eea72e1297338956a61df361f88/cryptography-50.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8c71ba2cd31fc93748c38e1b613200ff1c2665cbfd5341fe3a61cfde35a1430e", size = 5004057, upload-time = "2026-09-30T14:44:37.064Z" }, + { url = "https://files.pythonhosted.org/packages/f8/cc/1d33befb3cd7ea7e77d2d73f43f2066471da1b21f24a6156efcaabf6d2e8/cryptography-50.0.2-cp314-cp314t-win_amd64.whl", hash = "sha256:78198641e5be9521beea5aa782bb551a58068d10e6eb04c9c680c1b69f2e7d45", size = 3795868, upload-time = "2026-09-30T14:44:39.71Z" }, + { url = "https://files.pythonhosted.org/packages/2d/49/93f6a6e7a87c9aa68d44d3e1cdb5fe8f60c90d5d2f46acae9a56892816b8/cryptography-50.0.2-cp315-abi3.abi3t-macosx_11_0_arm64.whl", hash = "sha256:edc3342adf8f697fc5f59c887a304356f147b397809440ed64e2fa6af2f50f37", size = 4133708, upload-time = "2026-09-30T14:44:41.807Z" }, + { url = "https://files.pythonhosted.org/packages/8c/75/32ac2a56243d778805c16ca6a32b8f74fb757df7e28d7ecb560afafb59cf/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d370b8d1dfcdf7130178137f6fbee6140774a1acc6cacefc4b42643ec11d0a3a", size = 4956267, upload-time = "2026-09-30T14:44:43.693Z" }, + { url = "https://files.pythonhosted.org/packages/aa/a4/2c8d734e43d97f0842ee9f1b7b4bfb3d0cf5e19edebf43c2afe6675c2320/cryptography-50.0.2-cp315-abi3.abi3t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f2f9bd7f90c64fe89253f0a2c05e3c4856072660429ce8831b4235bf29403a67", size = 4966465, upload-time = "2026-09-30T14:44:45.769Z" }, + { url = "https://files.pythonhosted.org/packages/c2/58/ee288c829a6f41f6235ae9dd33d82fd19b45442b65b4c8a3da36963d9f7a/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_aarch64.whl", hash = "sha256:e275096ea1e60cc595cda2836fd4a6c725d1125108b868be17f53684d164e2cc", size = 4959356, upload-time = "2026-09-30T14:44:48.211Z" }, + { url = "https://files.pythonhosted.org/packages/92/20/9ded6d51ddd9897f6b6e81fb9ebea7951d7cc5d6c890b0ed8abf77a51a80/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_ppc64le.whl", hash = "sha256:b13478603dcd0a2479ff8e87e2c19a7d525734686fe3c49542472293a204212d", size = 5548822, upload-time = "2026-09-30T14:44:50.86Z" }, + { url = "https://files.pythonhosted.org/packages/02/a8/8df951850d6b31d2a00218f19e2b3f999523437ed7a819df7fa427942fca/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_28_x86_64.whl", hash = "sha256:58a0c478eeca76fe5e07993c5a0703def34a6dc6a0cda4f5564639b33112ffe7", size = 5001199, upload-time = "2026-09-30T14:44:53.379Z" }, + { url = "https://files.pythonhosted.org/packages/8b/f9/36b3022218ce75b7cdf068fb95f809f9bd0d820e4955ef43b90c255cc7ac/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_31_armv7l.whl", hash = "sha256:d38cdff612d06fa6a32840d5e1b1f7a27cee4a349aa9085d94a67789d6bfd408", size = 4629333, upload-time = "2026-09-30T14:44:55.635Z" }, + { url = "https://files.pythonhosted.org/packages/8c/72/20f99a219f6af47cdd1cbd978c243b92d71496e168a746138af44ded4f29/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_aarch64.whl", hash = "sha256:fdd28f912fccfec1846a94e2e1e8f9b0012f557f0c46fe4f3eb0d7a87afcf90b", size = 4958822, upload-time = "2026-09-30T14:44:59.639Z" }, + { url = "https://files.pythonhosted.org/packages/f2/20/196f112617fb08eb4d608a2a6c422373d46f9cc2857f38fc0667033c0899/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_ppc64le.whl", hash = "sha256:cbc8738fd8526d80f35cb3a40d41f41a2e7030bb3b18b09a6778ef63d291c2fd", size = 5506351, upload-time = "2026-09-30T14:45:02.267Z" }, + { url = "https://files.pythonhosted.org/packages/24/95/83378121ef3eaaaf71d4b781577ff794acb39b9e1b87a3f156898c8497ed/cryptography-50.0.2-cp315-abi3.abi3t-manylinux_2_34_x86_64.whl", hash = "sha256:e105ab60406787da31fccc883fc0f733af1efd78f0136a4599692c4083a73d0c", size = 5000859, upload-time = "2026-09-30T14:45:05.009Z" }, + { url = "https://files.pythonhosted.org/packages/22/f7/70fd7ae4d1dbfa7ba29b02e1b9068771519a86027756510b700ce81086a8/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl", hash = "sha256:6f8700550aa1474a91e5dc07049c46f98b423b5b1ddd0483e0b51362eeeaf5be", size = 5092151, upload-time = "2026-09-30T15:29:15.932Z" }, + { url = "https://files.pythonhosted.org/packages/d4/be/688367b74de86984bd58d8efacfc7c9e68b89a6a22ced0fb4f38db50254a/cryptography-50.0.2-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl", hash = "sha256:c71be1cbfa5cd9a41ee452acf1eccd82b2c05950358b106ec8ceb83411d1a020", size = 5286120, upload-time = "2026-09-30T15:29:18.309Z" }, + { url = "https://files.pythonhosted.org/packages/39/d1/55f8a3f2ef5d1529e16835ef10cf0fe3d559ce237b46dddc440c0bba3649/cryptography-50.0.2-cp315-abi3.abi3t-win_amd64.whl", hash = "sha256:c423ab384a46c4dff7217b2ea5ba2e11cffdeab6441acd04cf65a369caf0366c", size = 4111557, upload-time = "2026-09-30T15:29:20.155Z" }, + { url = "https://files.pythonhosted.org/packages/23/ad/ac987755d00e1e64273760228d2635ae38dae2be83e3c6e0d3289d91dec3/cryptography-50.0.2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:0ec5f09541743261e66e291b4a0cbf0fb2997aeaab6d9e9c740b9dba1b58d1c2", size = 3943588, upload-time = "2026-09-30T15:29:22.265Z" }, + { url = "https://files.pythonhosted.org/packages/d5/8d/6d585339bedf85d45044c85d8412dac53f2bb6f918e8b7777efba1787844/cryptography-50.0.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c5e67125c7dca78d199ec4e116aa93dbb83494808ecbb8211a2cb09b1bf41dbd", size = 4756166, upload-time = "2026-09-30T15:29:24.58Z" }, + { url = "https://files.pythonhosted.org/packages/bf/f1/1c1f6874e8550cfddd4b688ceb38cefb6ed15ceed224d56f133f3d88c214/cryptography-50.0.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ee247f5c245c9a2fe7c8e2214e295918838e44e00a45a6718451e4004219e767", size = 4749145, upload-time = "2026-09-30T15:29:26.807Z" }, + { url = "https://files.pythonhosted.org/packages/c1/63/61b15dc1a8de03fe0adbe3fd7608b3ad5c73bf50993bbcb1faaa930afe33/cryptography-50.0.2-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dfe9763530994147d9af1def057a5b9658b00e8f8fe8743d144d1e0911c2e454", size = 4763638, upload-time = "2026-09-30T15:29:28.588Z" }, + { url = "https://files.pythonhosted.org/packages/fc/35/b345bdfa40c9126df1a9d33236aa98418367931b8725f84fc3ae2b98dc59/cryptography-50.0.2-cp39-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:58ddb5a8e3179d12f19e4ea34d2d32e9d63a4baa142c875c1eb59f41b7243acd", size = 5382217, upload-time = "2026-09-30T15:29:30.589Z" }, + { url = "https://files.pythonhosted.org/packages/4f/87/ef344a9e616871f2519c22d6afcda79ddd5d35e9592d95eb6e677608d055/cryptography-50.0.2-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f21e8a22c8605750c7af886bab299a363721264061b4ac0a30efb73cfd58efc5", size = 4781387, upload-time = "2026-09-30T15:29:32.605Z" }, + { url = "https://files.pythonhosted.org/packages/90/5b/f2fdb13cd0b96f6f932c8627bb292a45f11c64d21620a8e120aee9a3b848/cryptography-50.0.2-cp39-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:9c8402a82ea0dc4ceeab793db05f0fafa8ca139ca34fcde5df0f596103c74107", size = 4403790, upload-time = "2026-09-30T15:29:34.374Z" }, + { url = "https://files.pythonhosted.org/packages/bc/ce/7e4f662b1e3c393513569e402cfc85ac7da0bd3d5435e122a3140219eb2d/cryptography-50.0.2-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:0ddc924c04591c2811ca024d62ecad4f7f6f08af8939c211438f48a16bd23602", size = 4764319, upload-time = "2026-09-30T15:29:36.149Z" }, + { url = "https://files.pythonhosted.org/packages/3c/3f/86ff33ce34cc0de6847fb96e035a1a760d81652e38643f617c02ad32ef7a/cryptography-50.0.2-cp39-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:a6557e5f38e065ca9fbdaf7cfc7435ecb1d113aa81a022d1b51921ee7432e227", size = 5338560, upload-time = "2026-09-30T15:29:39.053Z" }, + { url = "https://files.pythonhosted.org/packages/40/cf/6b5c8e2fd9202d98988ab7cb5cc5c991704c4ad55f492ff408e4969f83f1/cryptography-50.0.2-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:1981f1db4630889b9ef7803fadef12b056f428cb6b85c27ba57b774793b6093c", size = 4780973, upload-time = "2026-09-30T15:29:41.251Z" }, + { url = "https://files.pythonhosted.org/packages/10/bf/8d6ebc7dded797bd0f0160d52188021211f011a2b164ef0ae1dac4587465/cryptography-50.0.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:7a8701d6b584d76e909e3d305b7d126b41439876a5aaf76cddc67fc230eafa2e", size = 4897738, upload-time = "2026-09-30T15:29:43.106Z" }, + { url = "https://files.pythonhosted.org/packages/d4/aa/f3f6e0de7e6253b8baa8b2d8fb9d50924fa75cee3d4624bd4bc1208ee923/cryptography-50.0.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ce47f66801c20ec6c6632453bb5960fe38939e9306970b48b3a5a26de7745d94", size = 5058280, upload-time = "2026-09-30T15:29:44.827Z" }, + { url = "https://files.pythonhosted.org/packages/f6/b6/a1faf3a27ae9405fb34b1713cc73b2d8a26b04d5c561578fa2e6ef3e5bb9/cryptography-50.0.2-cp39-abi3-win_amd64.whl", hash = "sha256:4e81d95e5bafc2d6e34e4bed780e53e4d5b9a2f928573428aa4d35fbec1eb0de", size = 3854095, upload-time = "2026-09-30T15:29:46.782Z" }, + { url = "https://files.pythonhosted.org/packages/1d/7a/f08d34ce09d60f89ebd391e2ebc6ba2b995e6dd7552f41820f8085f94e53/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:92e665960f25fcdc73725b9cec7a3824f279ba97a98653afe9ffac2e43668f67", size = 4716035, upload-time = "2026-09-30T15:29:48.681Z" }, + { url = "https://files.pythonhosted.org/packages/45/67/e18fb65592451a2acb76e9f2fbe14e0f47a8318b4c5430f1633851d03daa/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:eef4c2f3423810b3070ab391f85436d2f8bbfcb286ac15cbc73190b3563b1f1a", size = 4726917, upload-time = "2026-09-30T15:29:50.608Z" }, + { url = "https://files.pythonhosted.org/packages/83/28/38fdce17e60f6b825e69fc3b7f75e70a6612759980704697e1de4cbfaf6e/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl", hash = "sha256:7c6d0330c472d96f6a6afe24d80dfdf15176c33096f0a4397ae4c60f3dd3be48", size = 4715341, upload-time = "2026-09-30T15:29:52.522Z" }, + { url = "https://files.pythonhosted.org/packages/b6/b1/d9121a717e0f893c64bd6ca7702614778d7df2a5c309128a002421788516/cryptography-50.0.2-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl", hash = "sha256:1ba34f04897fcdaa73f74145c25f3ec146fbd56593853e88adc2e811303c5f42", size = 4726322, upload-time = "2026-09-30T15:29:54.263Z" }, + { url = "https://files.pythonhosted.org/packages/36/8b/e6d153808bf353e152abd2fd4d8f09670d956ac78379ac46e60d7efbf04c/cryptography-50.0.2-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:3dc4fd8058cea1644971207d530e1a03a184a805ffc8ebdddf0599d78a331b81", size = 3873097, upload-time = "2026-09-30T15:29:56.097Z" }, + { url = "https://files.pythonhosted.org/packages/ca/1d/1271f287ff7170ddafc2aad36260c4eec20ccd2fea70f38455e9d56d427b/cryptography-50.0.2-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:7b75de3c8b3be1cdb1052747c929440c3eea46c1bc2cb8a6e3a48388e9b7b452", size = 3805376, upload-time = "2026-09-30T15:29:58.729Z" }, ] [[package]] name = "deepagents" -version = "0.6.12" +version = "0.7.15" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "langchain", marker = "python_full_version >= '3.11'" }, - { name = "langchain-anthropic", marker = "python_full_version >= '3.11'" }, - { name = "langchain-core", marker = "python_full_version >= '3.11'" }, - { name = "langchain-google-genai", marker = "python_full_version >= '3.11'" }, - { name = "langsmith", marker = "python_full_version >= '3.11'" }, - { name = "wcmatch", marker = "python_full_version >= '3.11'" }, + { name = "langchain" }, + { name = "langchain-anthropic" }, + { name = "langchain-core" }, + { name = "langchain-google-genai" }, + { name = "langsmith" }, + { name = "packaging" }, + { name = "wcmatch" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e0/db/a6acdc72a9e90c3f07ed10de35c951734a02d4facb693bb59684ad368801/deepagents-0.6.12.tar.gz", hash = "sha256:1f281c0bc5a63132f62e2ee345c1dc593b23188da6e23016401f6879fbe54b5f", size = 211364, upload-time = "2026-06-25T17:26:52.775Z" } +sdist = { url = "https://files.pythonhosted.org/packages/fc/a5/be1b210a06d1b73ab8ef5d7c80bfcd432d3405e63ffac66613ce0004807b/deepagents-0.7.15.tar.gz", hash = "sha256:bf8922e72627d577739449cc8954517e71a6b2796e8ff880d1385249365e85cf", size = 300771, upload-time = "2026-09-16T21:01:05.793Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/98/49/af7219b3c13520fee047bb807cfaefba17f8e4584c551d946773589a4f08/deepagents-0.6.12-py3-none-any.whl", hash = "sha256:28b8fa0119ca0a689e3e18e288c4634e4046062acfc87a1cb34289d3af3a1c88", size = 236120, upload-time = "2026-06-25T17:26:51.736Z" }, + { url = "https://files.pythonhosted.org/packages/8d/1a/86b2f25bacfb9f62221e35dfcb4ce943ffdf2fe03a5472c24ff6a7ad89d1/deepagents-0.7.15-py3-none-any.whl", hash = "sha256:49d040f5d065cb20566967465bfbf36da226f3bca839e03446e97cf3fcd02bde", size = 327865, upload-time = "2026-09-16T21:01:04.053Z" }, ] [[package]] name = "dependency-groups" -version = "1.3.1" +version = "1.3.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "packaging" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/62/55/f054de99871e7beb81935dea8a10b90cd5ce42122b1c3081d5282fdb3621/dependency_groups-1.3.1.tar.gz", hash = "sha256:78078301090517fd938c19f64a53ce98c32834dfe0dee6b88004a569a6adfefd", size = 10093, upload-time = "2025-05-02T00:34:29.452Z" } +sdist = { url = "https://files.pythonhosted.org/packages/b5/16/65e61d8e837e0d70a99a0d4dd76e2af53357c3a03ed1db8ad9b5786d7f25/dependency_groups-1.3.2.tar.gz", hash = "sha256:c81831f43828dbc3987ee247eb198241a0152b8e7ceab10977cc3808eb388ac7", size = 13309, upload-time = "2026-08-22T02:43:30.137Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/99/c7/d1ec24fb280caa5a79b6b950db565dab30210a66259d17d5bb2b3a9f878d/dependency_groups-1.3.1-py3-none-any.whl", hash = "sha256:51aeaa0dfad72430fcfb7bcdbefbd75f3792e5919563077f30bc0d73f4493030", size = 8664, upload-time = "2025-05-02T00:34:27.085Z" }, -] - -[[package]] -name = "dill" -version = "0.4.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/81/e1/56027a71e31b02ddc53c7d65b01e68edf64dea2932122fe7746a516f75d5/dill-0.4.1.tar.gz", hash = "sha256:423092df4182177d4d8ba8290c8a5b640c66ab35ec7da59ccfa00f6fa3eea5fa", size = 187315, upload-time = "2026-01-19T02:36:56.85Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/77/dc8c558f7593132cf8fefec57c4f60c83b16941c574ac5f619abb3ae7933/dill-0.4.1-py3-none-any.whl", hash = "sha256:1e1ce33e978ae97fcfcff5638477032b801c46c7c65cf717f95fbc2248f79a9d", size = 120019, upload-time = "2026-01-19T02:36:55.663Z" }, + { url = "https://files.pythonhosted.org/packages/a1/e4/da5f2f176050efcfb9222a76a3e81c41f69f775be8e563b76ca4292a134f/dependency_groups-1.3.2-py3-none-any.whl", hash = "sha256:8c337f7b92445823b0d0ea507f611390c58dcd2112be00aebcd738a2ca7a1c64", size = 9802, upload-time = "2026-08-22T02:43:28.853Z" }, ] [[package]] @@ -1017,18 +1169,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/32/91/30151a39f7570f448ed84529390628a651d7f27c87d73c9b887f8189695e/docutils-0.23-py3-none-any.whl", hash = "sha256:25d013af9bf23bc1c7b2b093dff4208166c53a94786c9e447808335ef1185fea", size = 634701, upload-time = "2026-05-27T17:40:58.442Z" }, ] -[[package]] -name = "exceptiongroup" -version = "1.3.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" }, -] - [[package]] name = "execnet" version = "2.1.2" @@ -1040,7 +1180,7 @@ wheels = [ [[package]] name = "fastapi" -version = "0.139.2" +version = "0.141.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "annotated-doc" }, @@ -1049,81 +1189,18 @@ dependencies = [ { name = "typing-extensions" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/cd/95/d3f0ae10836324a2eab98a52b61210ac609f08200bf4bb0dc8132d32f78a/fastapi-0.139.2.tar.gz", hash = "sha256:333145a6891e9b5b3cfceb69baf817e8240cde4d4588ae5a10bf56ffacb6255e", size = 423428, upload-time = "2026-07-16T15:06:17.912Z" } +sdist = { url = "https://files.pythonhosted.org/packages/8a/02/91e3416a8fdd715abb903a952a6bec7cdd8d14eed55d415fc8595524c319/fastapi-0.141.1.tar.gz", hash = "sha256:e8822fc40db1e1858054d7a949a888695bc9bdce70139178e33bd2871a453ca1", size = 425799, upload-time = "2026-07-29T17:18:05.568Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/5f/c7/cb03251d9dfb177246a9809a76f189d21df32dbd4a845951881d11323b7f/fastapi-0.139.2-py3-none-any.whl", hash = "sha256:b9ad015a835173d59865e2f5d8296fbc2b317bf56a2ba1a5bfbdd03de2fd4b1c", size = 130234, upload-time = "2026-07-16T15:06:19.557Z" }, -] - -[[package]] -name = "fastuuid" -version = "0.14.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c3/7d/d9daedf0f2ebcacd20d599928f8913e9d2aea1d56d2d355a93bfa2b611d7/fastuuid-0.14.0.tar.gz", hash = "sha256:178947fc2f995b38497a74172adee64fdeb8b7ec18f2a5934d037641ba265d26", size = 18232, upload-time = "2025-10-19T22:19:22.402Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ad/b2/731a6696e37cd20eed353f69a09f37a984a43c9713764ee3f7ad5f57f7f9/fastuuid-0.14.0-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:6e6243d40f6c793c3e2ee14c13769e341b90be5ef0c23c82fa6515a96145181a", size = 516760, upload-time = "2025-10-19T22:25:21.509Z" }, - { url = "https://files.pythonhosted.org/packages/c5/79/c73c47be2a3b8734d16e628982653517f80bbe0570e27185d91af6096507/fastuuid-0.14.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:13ec4f2c3b04271f62be2e1ce7e95ad2dd1cf97e94503a3760db739afbd48f00", size = 264748, upload-time = "2025-10-19T22:41:52.873Z" }, - { url = "https://files.pythonhosted.org/packages/24/c5/84c1eea05977c8ba5173555b0133e3558dc628bcf868d6bf1689ff14aedc/fastuuid-0.14.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b2fdd48b5e4236df145a149d7125badb28e0a383372add3fbaac9a6b7a394470", size = 254537, upload-time = "2025-10-19T22:33:55.603Z" }, - { url = "https://files.pythonhosted.org/packages/0e/23/4e362367b7fa17dbed646922f216b9921efb486e7abe02147e4b917359f8/fastuuid-0.14.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f74631b8322d2780ebcf2d2d75d58045c3e9378625ec51865fe0b5620800c39d", size = 278994, upload-time = "2025-10-19T22:26:17.631Z" }, - { url = "https://files.pythonhosted.org/packages/b2/72/3985be633b5a428e9eaec4287ed4b873b7c4c53a9639a8b416637223c4cd/fastuuid-0.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:83cffc144dc93eb604b87b179837f2ce2af44871a7b323f2bfed40e8acb40ba8", size = 280003, upload-time = "2025-10-19T22:23:45.415Z" }, - { url = "https://files.pythonhosted.org/packages/b3/6d/6ef192a6df34e2266d5c9deb39cd3eea986df650cbcfeaf171aa52a059c3/fastuuid-0.14.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1a771f135ab4523eb786e95493803942a5d1fc1610915f131b363f55af53b219", size = 303583, upload-time = "2025-10-19T22:26:00.756Z" }, - { url = "https://files.pythonhosted.org/packages/9d/11/8a2ea753c68d4fece29d5d7c6f3f903948cc6e82d1823bc9f7f7c0355db3/fastuuid-0.14.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:4edc56b877d960b4eda2c4232f953a61490c3134da94f3c28af129fb9c62a4f6", size = 460955, upload-time = "2025-10-19T22:36:25.196Z" }, - { url = "https://files.pythonhosted.org/packages/23/42/7a32c93b6ce12642d9a152ee4753a078f372c9ebb893bc489d838dd4afd5/fastuuid-0.14.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:bcc96ee819c282e7c09b2eed2b9bd13084e3b749fdb2faf58c318d498df2efbe", size = 480763, upload-time = "2025-10-19T22:24:28.451Z" }, - { url = "https://files.pythonhosted.org/packages/b9/e9/a5f6f686b46e3ed4ed3b93770111c233baac87dd6586a411b4988018ef1d/fastuuid-0.14.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7a3c0bca61eacc1843ea97b288d6789fbad7400d16db24e36a66c28c268cfe3d", size = 452613, upload-time = "2025-10-19T22:25:06.827Z" }, - { url = "https://files.pythonhosted.org/packages/b4/c9/18abc73c9c5b7fc0e476c1733b678783b2e8a35b0be9babd423571d44e98/fastuuid-0.14.0-cp310-cp310-win32.whl", hash = "sha256:7f2f3efade4937fae4e77efae1af571902263de7b78a0aee1a1653795a093b2a", size = 155045, upload-time = "2025-10-19T22:28:32.732Z" }, - { url = "https://files.pythonhosted.org/packages/5e/8a/d9e33f4eb4d4f6d9f2c5c7d7e96b5cdbb535c93f3b1ad6acce97ee9d4bf8/fastuuid-0.14.0-cp310-cp310-win_amd64.whl", hash = "sha256:ae64ba730d179f439b0736208b4c279b8bc9c089b102aec23f86512ea458c8a4", size = 156122, upload-time = "2025-10-19T22:23:15.59Z" }, - { url = "https://files.pythonhosted.org/packages/98/f3/12481bda4e5b6d3e698fbf525df4443cc7dce746f246b86b6fcb2fba1844/fastuuid-0.14.0-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:73946cb950c8caf65127d4e9a325e2b6be0442a224fd51ba3b6ac44e1912ce34", size = 516386, upload-time = "2025-10-19T22:42:40.176Z" }, - { url = "https://files.pythonhosted.org/packages/59/19/2fc58a1446e4d72b655648eb0879b04e88ed6fa70d474efcf550f640f6ec/fastuuid-0.14.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:12ac85024637586a5b69645e7ed986f7535106ed3013640a393a03e461740cb7", size = 264569, upload-time = "2025-10-19T22:25:50.977Z" }, - { url = "https://files.pythonhosted.org/packages/78/29/3c74756e5b02c40cfcc8b1d8b5bac4edbd532b55917a6bcc9113550e99d1/fastuuid-0.14.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:05a8dde1f395e0c9b4be515b7a521403d1e8349443e7641761af07c7ad1624b1", size = 254366, upload-time = "2025-10-19T22:29:49.166Z" }, - { url = "https://files.pythonhosted.org/packages/52/96/d761da3fccfa84f0f353ce6e3eb8b7f76b3aa21fd25e1b00a19f9c80a063/fastuuid-0.14.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09378a05020e3e4883dfdab438926f31fea15fd17604908f3d39cbeb22a0b4dc", size = 278978, upload-time = "2025-10-19T22:35:41.306Z" }, - { url = "https://files.pythonhosted.org/packages/fc/c2/f84c90167cc7765cb82b3ff7808057608b21c14a38531845d933a4637307/fastuuid-0.14.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bbb0c4b15d66b435d2538f3827f05e44e2baafcc003dd7d8472dc67807ab8fd8", size = 279692, upload-time = "2025-10-19T22:25:36.997Z" }, - { url = "https://files.pythonhosted.org/packages/af/7b/4bacd03897b88c12348e7bd77943bac32ccf80ff98100598fcff74f75f2e/fastuuid-0.14.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:cd5a7f648d4365b41dbf0e38fe8da4884e57bed4e77c83598e076ac0c93995e7", size = 303384, upload-time = "2025-10-19T22:29:46.578Z" }, - { url = "https://files.pythonhosted.org/packages/c0/a2/584f2c29641df8bd810d00c1f21d408c12e9ad0c0dafdb8b7b29e5ddf787/fastuuid-0.14.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:c0a94245afae4d7af8c43b3159d5e3934c53f47140be0be624b96acd672ceb73", size = 460921, upload-time = "2025-10-19T22:36:42.006Z" }, - { url = "https://files.pythonhosted.org/packages/24/68/c6b77443bb7764c760e211002c8638c0c7cce11cb584927e723215ba1398/fastuuid-0.14.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:2b29e23c97e77c3a9514d70ce343571e469098ac7f5a269320a0f0b3e193ab36", size = 480575, upload-time = "2025-10-19T22:28:18.975Z" }, - { url = "https://files.pythonhosted.org/packages/5a/87/93f553111b33f9bb83145be12868c3c475bf8ea87c107063d01377cc0e8e/fastuuid-0.14.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:1e690d48f923c253f28151b3a6b4e335f2b06bf669c68a02665bc150b7839e94", size = 452317, upload-time = "2025-10-19T22:25:32.75Z" }, - { url = "https://files.pythonhosted.org/packages/9e/8c/a04d486ca55b5abb7eaa65b39df8d891b7b1635b22db2163734dc273579a/fastuuid-0.14.0-cp311-cp311-win32.whl", hash = "sha256:a6f46790d59ab38c6aa0e35c681c0484b50dc0acf9e2679c005d61e019313c24", size = 154804, upload-time = "2025-10-19T22:24:15.615Z" }, - { url = "https://files.pythonhosted.org/packages/9c/b2/2d40bf00820de94b9280366a122cbaa60090c8cf59e89ac3938cf5d75895/fastuuid-0.14.0-cp311-cp311-win_amd64.whl", hash = "sha256:e150eab56c95dc9e3fefc234a0eedb342fac433dacc273cd4d150a5b0871e1fa", size = 156099, upload-time = "2025-10-19T22:24:31.646Z" }, - { url = "https://files.pythonhosted.org/packages/02/a2/e78fcc5df65467f0d207661b7ef86c5b7ac62eea337c0c0fcedbeee6fb13/fastuuid-0.14.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:77e94728324b63660ebf8adb27055e92d2e4611645bf12ed9d88d30486471d0a", size = 510164, upload-time = "2025-10-19T22:31:45.635Z" }, - { url = "https://files.pythonhosted.org/packages/2b/b3/c846f933f22f581f558ee63f81f29fa924acd971ce903dab1a9b6701816e/fastuuid-0.14.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:caa1f14d2102cb8d353096bc6ef6c13b2c81f347e6ab9d6fbd48b9dea41c153d", size = 261837, upload-time = "2025-10-19T22:38:38.53Z" }, - { url = "https://files.pythonhosted.org/packages/54/ea/682551030f8c4fa9a769d9825570ad28c0c71e30cf34020b85c1f7ee7382/fastuuid-0.14.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d23ef06f9e67163be38cece704170486715b177f6baae338110983f99a72c070", size = 251370, upload-time = "2025-10-19T22:40:26.07Z" }, - { url = "https://files.pythonhosted.org/packages/14/dd/5927f0a523d8e6a76b70968e6004966ee7df30322f5fc9b6cdfb0276646a/fastuuid-0.14.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0c9ec605ace243b6dbe3bd27ebdd5d33b00d8d1d3f580b39fdd15cd96fd71796", size = 277766, upload-time = "2025-10-19T22:37:23.779Z" }, - { url = "https://files.pythonhosted.org/packages/16/6e/c0fb547eef61293153348f12e0f75a06abb322664b34a1573a7760501336/fastuuid-0.14.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:808527f2407f58a76c916d6aa15d58692a4a019fdf8d4c32ac7ff303b7d7af09", size = 278105, upload-time = "2025-10-19T22:26:56.821Z" }, - { url = "https://files.pythonhosted.org/packages/2d/b1/b9c75e03b768f61cf2e84ee193dc18601aeaf89a4684b20f2f0e9f52b62c/fastuuid-0.14.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2fb3c0d7fef6674bbeacdd6dbd386924a7b60b26de849266d1ff6602937675c8", size = 301564, upload-time = "2025-10-19T22:30:31.604Z" }, - { url = "https://files.pythonhosted.org/packages/fc/fa/f7395fdac07c7a54f18f801744573707321ca0cee082e638e36452355a9d/fastuuid-0.14.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:ab3f5d36e4393e628a4df337c2c039069344db5f4b9d2a3c9cea48284f1dd741", size = 459659, upload-time = "2025-10-19T22:31:32.341Z" }, - { url = "https://files.pythonhosted.org/packages/66/49/c9fd06a4a0b1f0f048aacb6599e7d96e5d6bc6fa680ed0d46bf111929d1b/fastuuid-0.14.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:b9a0ca4f03b7e0b01425281ffd44e99d360e15c895f1907ca105854ed85e2057", size = 478430, upload-time = "2025-10-19T22:26:22.962Z" }, - { url = "https://files.pythonhosted.org/packages/be/9c/909e8c95b494e8e140e8be6165d5fc3f61fdc46198c1554df7b3e1764471/fastuuid-0.14.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:3acdf655684cc09e60fb7e4cf524e8f42ea760031945aa8086c7eae2eeeabeb8", size = 450894, upload-time = "2025-10-19T22:27:01.647Z" }, - { url = "https://files.pythonhosted.org/packages/90/eb/d29d17521976e673c55ef7f210d4cdd72091a9ec6755d0fd4710d9b3c871/fastuuid-0.14.0-cp312-cp312-win32.whl", hash = "sha256:9579618be6280700ae36ac42c3efd157049fe4dd40ca49b021280481c78c3176", size = 154374, upload-time = "2025-10-19T22:29:19.879Z" }, - { url = "https://files.pythonhosted.org/packages/cc/fc/f5c799a6ea6d877faec0472d0b27c079b47c86b1cdc577720a5386483b36/fastuuid-0.14.0-cp312-cp312-win_amd64.whl", hash = "sha256:d9e4332dc4ba054434a9594cbfaf7823b57993d7d8e7267831c3e059857cf397", size = 156550, upload-time = "2025-10-19T22:27:49.658Z" }, - { url = "https://files.pythonhosted.org/packages/a5/83/ae12dd39b9a39b55d7f90abb8971f1a5f3c321fd72d5aa83f90dc67fe9ed/fastuuid-0.14.0-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:77a09cb7427e7af74c594e409f7731a0cf887221de2f698e1ca0ebf0f3139021", size = 510720, upload-time = "2025-10-19T22:42:34.633Z" }, - { url = "https://files.pythonhosted.org/packages/53/b0/a4b03ff5d00f563cc7546b933c28cb3f2a07344b2aec5834e874f7d44143/fastuuid-0.14.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:9bd57289daf7b153bfa3e8013446aa144ce5e8c825e9e366d455155ede5ea2dc", size = 262024, upload-time = "2025-10-19T22:30:25.482Z" }, - { url = "https://files.pythonhosted.org/packages/9c/6d/64aee0a0f6a58eeabadd582e55d0d7d70258ffdd01d093b30c53d668303b/fastuuid-0.14.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ac60fc860cdf3c3f327374db87ab8e064c86566ca8c49d2e30df15eda1b0c2d5", size = 251679, upload-time = "2025-10-19T22:36:14.096Z" }, - { url = "https://files.pythonhosted.org/packages/60/f5/a7e9cda8369e4f7919d36552db9b2ae21db7915083bc6336f1b0082c8b2e/fastuuid-0.14.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab32f74bd56565b186f036e33129da77db8be09178cd2f5206a5d4035fb2a23f", size = 277862, upload-time = "2025-10-19T22:36:23.302Z" }, - { url = "https://files.pythonhosted.org/packages/f0/d3/8ce11827c783affffd5bd4d6378b28eb6cc6d2ddf41474006b8d62e7448e/fastuuid-0.14.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:33e678459cf4addaedd9936bbb038e35b3f6b2061330fd8f2f6a1d80414c0f87", size = 278278, upload-time = "2025-10-19T22:29:43.809Z" }, - { url = "https://files.pythonhosted.org/packages/a2/51/680fb6352d0bbade04036da46264a8001f74b7484e2fd1f4da9e3db1c666/fastuuid-0.14.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1e3cc56742f76cd25ecb98e4b82a25f978ccffba02e4bdce8aba857b6d85d87b", size = 301788, upload-time = "2025-10-19T22:36:06.825Z" }, - { url = "https://files.pythonhosted.org/packages/fa/7c/2014b5785bd8ebdab04ec857635ebd84d5ee4950186a577db9eff0fb8ff6/fastuuid-0.14.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:cb9a030f609194b679e1660f7e32733b7a0f332d519c5d5a6a0a580991290022", size = 459819, upload-time = "2025-10-19T22:35:31.623Z" }, - { url = "https://files.pythonhosted.org/packages/01/d2/524d4ceeba9160e7a9bc2ea3e8f4ccf1ad78f3bde34090ca0c51f09a5e91/fastuuid-0.14.0-cp313-cp313-musllinux_1_1_i686.whl", hash = "sha256:09098762aad4f8da3a888eb9ae01c84430c907a297b97166b8abc07b640f2995", size = 478546, upload-time = "2025-10-19T22:26:03.023Z" }, - { url = "https://files.pythonhosted.org/packages/bc/17/354d04951ce114bf4afc78e27a18cfbd6ee319ab1829c2d5fb5e94063ac6/fastuuid-0.14.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:1383fff584fa249b16329a059c68ad45d030d5a4b70fb7c73a08d98fd53bcdab", size = 450921, upload-time = "2025-10-19T22:31:02.151Z" }, - { url = "https://files.pythonhosted.org/packages/fb/be/d7be8670151d16d88f15bb121c5b66cdb5ea6a0c2a362d0dcf30276ade53/fastuuid-0.14.0-cp313-cp313-win32.whl", hash = "sha256:a0809f8cc5731c066c909047f9a314d5f536c871a7a22e815cc4967c110ac9ad", size = 154559, upload-time = "2025-10-19T22:36:36.011Z" }, - { url = "https://files.pythonhosted.org/packages/22/1d/5573ef3624ceb7abf4a46073d3554e37191c868abc3aecd5289a72f9810a/fastuuid-0.14.0-cp313-cp313-win_amd64.whl", hash = "sha256:0df14e92e7ad3276327631c9e7cec09e32572ce82089c55cb1bb8df71cf394ed", size = 156539, upload-time = "2025-10-19T22:33:35.898Z" }, - { url = "https://files.pythonhosted.org/packages/16/c9/8c7660d1fe3862e3f8acabd9be7fc9ad71eb270f1c65cce9a2b7a31329ab/fastuuid-0.14.0-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:b852a870a61cfc26c884af205d502881a2e59cc07076b60ab4a951cc0c94d1ad", size = 510600, upload-time = "2025-10-19T22:43:44.17Z" }, - { url = "https://files.pythonhosted.org/packages/4c/f4/a989c82f9a90d0ad995aa957b3e572ebef163c5299823b4027986f133dfb/fastuuid-0.14.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:c7502d6f54cd08024c3ea9b3514e2d6f190feb2f46e6dbcd3747882264bb5f7b", size = 262069, upload-time = "2025-10-19T22:43:38.38Z" }, - { url = "https://files.pythonhosted.org/packages/da/6c/a1a24f73574ac995482b1326cf7ab41301af0fabaa3e37eeb6b3df00e6e2/fastuuid-0.14.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1ca61b592120cf314cfd66e662a5b54a578c5a15b26305e1b8b618a6f22df714", size = 251543, upload-time = "2025-10-19T22:32:22.537Z" }, - { url = "https://files.pythonhosted.org/packages/1a/20/2a9b59185ba7a6c7b37808431477c2d739fcbdabbf63e00243e37bd6bf49/fastuuid-0.14.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa75b6657ec129d0abded3bec745e6f7ab642e6dba3a5272a68247e85f5f316f", size = 277798, upload-time = "2025-10-19T22:33:53.821Z" }, - { url = "https://files.pythonhosted.org/packages/ef/33/4105ca574f6ded0af6a797d39add041bcfb468a1255fbbe82fcb6f592da2/fastuuid-0.14.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a8a0dfea3972200f72d4c7df02c8ac70bad1bb4c58d7e0ec1e6f341679073a7f", size = 278283, upload-time = "2025-10-19T22:29:02.812Z" }, - { url = "https://files.pythonhosted.org/packages/fe/8c/fca59f8e21c4deb013f574eae05723737ddb1d2937ce87cb2a5d20992dc3/fastuuid-0.14.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1bf539a7a95f35b419f9ad105d5a8a35036df35fdafae48fb2fd2e5f318f0d75", size = 301627, upload-time = "2025-10-19T22:35:54.985Z" }, - { url = "https://files.pythonhosted.org/packages/cb/e2/f78c271b909c034d429218f2798ca4e89eeda7983f4257d7865976ddbb6c/fastuuid-0.14.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:9a133bf9cc78fdbd1179cb58a59ad0100aa32d8675508150f3658814aeefeaa4", size = 459778, upload-time = "2025-10-19T22:28:00.999Z" }, - { url = "https://files.pythonhosted.org/packages/1e/f0/5ff209d865897667a2ff3e7a572267a9ced8f7313919f6d6043aed8b1caa/fastuuid-0.14.0-cp314-cp314-musllinux_1_1_i686.whl", hash = "sha256:f54d5b36c56a2d5e1a31e73b950b28a0d83eb0c37b91d10408875a5a29494bad", size = 478605, upload-time = "2025-10-19T22:36:21.764Z" }, - { url = "https://files.pythonhosted.org/packages/e0/c8/2ce1c78f983a2c4987ea865d9516dbdfb141a120fd3abb977ae6f02ba7ca/fastuuid-0.14.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:ec27778c6ca3393ef662e2762dba8af13f4ec1aaa32d08d77f71f2a70ae9feb8", size = 450837, upload-time = "2025-10-19T22:34:37.178Z" }, - { url = "https://files.pythonhosted.org/packages/df/60/dad662ec9a33b4a5fe44f60699258da64172c39bd041da2994422cdc40fe/fastuuid-0.14.0-cp314-cp314-win32.whl", hash = "sha256:e23fc6a83f112de4be0cc1990e5b127c27663ae43f866353166f87df58e73d06", size = 154532, upload-time = "2025-10-19T22:35:18.217Z" }, - { url = "https://files.pythonhosted.org/packages/1f/f6/da4db31001e854025ffd26bc9ba0740a9cbba2c3259695f7c5834908b336/fastuuid-0.14.0-cp314-cp314-win_amd64.whl", hash = "sha256:df61342889d0f5e7a32f7284e55ef95103f2110fee433c2ae7c2c0956d76ac8a", size = 156457, upload-time = "2025-10-19T22:33:44.579Z" }, + { url = "https://files.pythonhosted.org/packages/cb/03/10388a42375ee7e4ac9b94eb2c5c569c8b5795e377e701c9ac3ad63de890/fastapi-0.141.1-py3-none-any.whl", hash = "sha256:bfb91aa2d334c61cb35ba9a116fc123b3d3df31640b801cf57a7a78ec3f603b3", size = 131954, upload-time = "2026-07-29T17:18:04.364Z" }, ] [[package]] name = "filelock" -version = "3.30.0" +version = "4.1.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/83/2b/8b6480a70a647035334a604d0931926de4b5cd1f57835d45ad5eed2b1a1e/filelock-3.30.0.tar.gz", hash = "sha256:1774e682dbe443bd60f9609162fc596e2c80dc84ffc2957068953406d0520090", size = 174927, upload-time = "2026-07-16T03:53:58.152Z" } +sdist = { url = "https://files.pythonhosted.org/packages/35/c8/1d457d9150ff948f2ce6ada7715e0eeebbe5d3b58a45271a1e222474bcd3/filelock-4.1.1.tar.gz", hash = "sha256:7ba0927482c5a814b0a7f391d029ccdb8010f576f0a74c0dcde1811e8bc4c1b6", size = 563430, upload-time = "2026-10-11T16:11:54.373Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/52/af/9b01bcf5c91e81899bb890b87bd9077732a9b3365c098e67fe77958c39ed/filelock-3.30.0-py3-none-any.whl", hash = "sha256:40632998f0772e64183bb819f086a1b9def6be1090cf1dcb9d45f46806ef279b", size = 93131, upload-time = "2026-07-16T03:53:56.727Z" }, + { url = "https://files.pythonhosted.org/packages/d7/8b/f837f52905395ba4510fe61f753c24833fb0a9c76e21267bb9f828b664a9/filelock-4.1.1-py3-none-any.whl", hash = "sha256:3f4a557945a7b0f95efeb1f432267affe5d45ac8ddde2aed1b97ebb62382c089", size = 132460, upload-time = "2026-10-11T16:11:52.753Z" }, ] [[package]] @@ -1158,7 +1235,6 @@ version = "6.0.5" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "flask" }, - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, { name = "werkzeug" }, ] sdist = { url = "https://files.pythonhosted.org/packages/47/03/4e464a50860f9adf08b5c1d3479cb8ea1f12af2aa69535c7042c6e628135/flask_cors-6.0.5.tar.gz", hash = "sha256:30c5031552cd59f620ac0c8211dac45b345d3b2df310e7721879e4f46ef9c601", size = 101386, upload-time = "2026-06-08T20:20:17.765Z" } @@ -1172,22 +1248,6 @@ version = "1.8.0" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/2d/f5/c831fac6cc817d26fd54c7eaccd04ef7e0288806943f7cc5bbf69f3ac1f0/frozenlist-1.8.0.tar.gz", hash = "sha256:3ede829ed8d842f6cd48fc7081d7a41001a56f1f38603f9d49bf3020d59a31ad", size = 45875, upload-time = "2025-10-06T05:38:17.865Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/83/4a/557715d5047da48d54e659203b9335be7bfaafda2c3f627b7c47e0b3aaf3/frozenlist-1.8.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:b37f6d31b3dcea7deb5e9696e529a6aa4a898adc33db82da12e4c60a7c4d2011", size = 86230, upload-time = "2025-10-06T05:35:23.699Z" }, - { url = "https://files.pythonhosted.org/packages/a2/fb/c85f9fed3ea8fe8740e5b46a59cc141c23b842eca617da8876cfce5f760e/frozenlist-1.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ef2b7b394f208233e471abc541cc6991f907ffd47dc72584acee3147899d6565", size = 49621, upload-time = "2025-10-06T05:35:25.341Z" }, - { url = "https://files.pythonhosted.org/packages/63/70/26ca3f06aace16f2352796b08704338d74b6d1a24ca38f2771afbb7ed915/frozenlist-1.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a88f062f072d1589b7b46e951698950e7da00442fc1cacbe17e19e025dc327ad", size = 49889, upload-time = "2025-10-06T05:35:26.797Z" }, - { url = "https://files.pythonhosted.org/packages/5d/ed/c7895fd2fde7f3ee70d248175f9b6cdf792fb741ab92dc59cd9ef3bd241b/frozenlist-1.8.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:f57fb59d9f385710aa7060e89410aeb5058b99e62f4d16b08b91986b9a2140c2", size = 219464, upload-time = "2025-10-06T05:35:28.254Z" }, - { url = "https://files.pythonhosted.org/packages/6b/83/4d587dccbfca74cb8b810472392ad62bfa100bf8108c7223eb4c4fa2f7b3/frozenlist-1.8.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:799345ab092bee59f01a915620b5d014698547afd011e691a208637312db9186", size = 221649, upload-time = "2025-10-06T05:35:29.454Z" }, - { url = "https://files.pythonhosted.org/packages/6a/c6/fd3b9cd046ec5fff9dab66831083bc2077006a874a2d3d9247dea93ddf7e/frozenlist-1.8.0-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c23c3ff005322a6e16f71bf8692fcf4d5a304aaafe1e262c98c6d4adc7be863e", size = 219188, upload-time = "2025-10-06T05:35:30.951Z" }, - { url = "https://files.pythonhosted.org/packages/ce/80/6693f55eb2e085fc8afb28cf611448fb5b90e98e068fa1d1b8d8e66e5c7d/frozenlist-1.8.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8a76ea0f0b9dfa06f254ee06053d93a600865b3274358ca48a352ce4f0798450", size = 231748, upload-time = "2025-10-06T05:35:32.101Z" }, - { url = "https://files.pythonhosted.org/packages/97/d6/e9459f7c5183854abd989ba384fe0cc1a0fb795a83c033f0571ec5933ca4/frozenlist-1.8.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c7366fe1418a6133d5aa824ee53d406550110984de7637d65a178010f759c6ef", size = 236351, upload-time = "2025-10-06T05:35:33.834Z" }, - { url = "https://files.pythonhosted.org/packages/97/92/24e97474b65c0262e9ecd076e826bfd1d3074adcc165a256e42e7b8a7249/frozenlist-1.8.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:13d23a45c4cebade99340c4165bd90eeb4a56c6d8a9d8aa49568cac19a6d0dc4", size = 218767, upload-time = "2025-10-06T05:35:35.205Z" }, - { url = "https://files.pythonhosted.org/packages/ee/bf/dc394a097508f15abff383c5108cb8ad880d1f64a725ed3b90d5c2fbf0bb/frozenlist-1.8.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:e4a3408834f65da56c83528fb52ce7911484f0d1eaf7b761fc66001db1646eff", size = 235887, upload-time = "2025-10-06T05:35:36.354Z" }, - { url = "https://files.pythonhosted.org/packages/40/90/25b201b9c015dbc999a5baf475a257010471a1fa8c200c843fd4abbee725/frozenlist-1.8.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:42145cd2748ca39f32801dad54aeea10039da6f86e303659db90db1c4b614c8c", size = 228785, upload-time = "2025-10-06T05:35:37.949Z" }, - { url = "https://files.pythonhosted.org/packages/84/f4/b5bc148df03082f05d2dd30c089e269acdbe251ac9a9cf4e727b2dbb8a3d/frozenlist-1.8.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:e2de870d16a7a53901e41b64ffdf26f2fbb8917b3e6ebf398098d72c5b20bd7f", size = 230312, upload-time = "2025-10-06T05:35:39.178Z" }, - { url = "https://files.pythonhosted.org/packages/db/4b/87e95b5d15097c302430e647136b7d7ab2398a702390cf4c8601975709e7/frozenlist-1.8.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:20e63c9493d33ee48536600d1a5c95eefc870cd71e7ab037763d1fbb89cc51e7", size = 217650, upload-time = "2025-10-06T05:35:40.377Z" }, - { url = "https://files.pythonhosted.org/packages/e5/70/78a0315d1fea97120591a83e0acd644da638c872f142fd72a6cebee825f3/frozenlist-1.8.0-cp310-cp310-win32.whl", hash = "sha256:adbeebaebae3526afc3c96fad434367cafbfd1b25d72369a9e5858453b1bb71a", size = 39659, upload-time = "2025-10-06T05:35:41.863Z" }, - { url = "https://files.pythonhosted.org/packages/66/aa/3f04523fb189a00e147e60c5b2205126118f216b0aa908035c45336e27e4/frozenlist-1.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:667c3777ca571e5dbeb76f331562ff98b957431df140b54c85fd4d52eea8d8f6", size = 43837, upload-time = "2025-10-06T05:35:43.205Z" }, - { url = "https://files.pythonhosted.org/packages/39/75/1135feecdd7c336938bd55b4dc3b0dfc46d85b9be12ef2628574b28de776/frozenlist-1.8.0-cp310-cp310-win_arm64.whl", hash = "sha256:80f85f0a7cc86e7a54c46d99c9e1318ff01f4687c172ede30fd52d19d1da1c8e", size = 39989, upload-time = "2025-10-06T05:35:44.596Z" }, { url = "https://files.pythonhosted.org/packages/bc/03/077f869d540370db12165c0aa51640a873fb661d8b315d1d4d67b284d7ac/frozenlist-1.8.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:09474e9831bc2b2199fad6da3c14c7b0fbdd377cce9d3d77131be28906cb7d84", size = 86912, upload-time = "2025-10-06T05:35:45.98Z" }, { url = "https://files.pythonhosted.org/packages/df/b5/7610b6bd13e4ae77b96ba85abea1c8cb249683217ef09ac9e0ae93f25a91/frozenlist-1.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:17c883ab0ab67200b5f964d2b9ed6b00971917d5d8a92df149dc2c9779208ee9", size = 50046, upload-time = "2025-10-06T05:35:47.009Z" }, { url = "https://files.pythonhosted.org/packages/6e/ef/0e8f1fe32f8a53dd26bdd1f9347efe0778b0fddf62789ea683f4cc7d787d/frozenlist-1.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:fa47e444b8ba08fffd1c18e8cdb9a75db1b6a27f17507522834ad13ed5922b93", size = 50119, upload-time = "2025-10-06T05:35:48.38Z" }, @@ -1288,22 +1348,44 @@ wheels = [ ] [[package]] -name = "fsspec" -version = "2026.6.0" +name = "gcloud-aio-auth" +version = "5.5.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/10/a1/ae4e3e5003468d6391d2c77b6fa1cd73bd5d13511d81c642d7b28ac90ed4/fsspec-2026.6.0.tar.gz", hash = "sha256:f5bac145310fe30e16e1471bd6840b2d990d609e872251d7e674241822abf01a", size = 313646, upload-time = "2026-06-16T01:57:28.105Z" } +dependencies = [ + { name = "aiohttp" }, + { name = "chardet" }, + { name = "cryptography" }, + { name = "pyjwt" }, + { name = "tenacity" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/66/c9/cf630a761d4bbe4de88c52362b55dc29ca24735b1d893a6d6c5990879c47/gcloud_aio_auth-5.5.1.tar.gz", hash = "sha256:8039b9423445e6ad702649e2b73c1352dd380c884cf6401963c5065f583ed30c", size = 15765, upload-time = "2026-10-02T12:44:07.558Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e5/22/4222d7ddf3da30f363edaa98e329c2bce6c65497c9cb2810931c8b2c0fbc/fsspec-2026.6.0-py3-none-any.whl", hash = "sha256:02e0b71817df9b2169dc30a16832045764def1191b43dcff5bb85bdee212d2a1", size = 203949, upload-time = "2026-06-16T01:57:26.358Z" }, + { url = "https://files.pythonhosted.org/packages/5d/a3/2766b5e0691743d1865aafe2323c8fd343df080597f287e52292c795c2e3/gcloud_aio_auth-5.5.1-py3-none-any.whl", hash = "sha256:3f3ca5a79c176586c142a017346b88535a5ac6ec492329f9e17334216d829894", size = 18359, upload-time = "2026-10-02T12:44:08.325Z" }, +] + +[[package]] +name = "gcloud-aio-storage" +version = "9.6.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "aiofiles" }, + { name = "cryptography" }, + { name = "gcloud-aio-auth" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/15/be/528ac1d1506eaf4526c2c0039d68dec99b243d50a556cd688968d1498e1a/gcloud_aio_storage-9.6.5.tar.gz", hash = "sha256:44a9529e429d7460f1a55b49a0f77906d988ee68483513abb3c0d66dedf43abd", size = 14309, upload-time = "2026-10-02T12:59:14.278Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c3/7d/88c82ec77bbf867734011fa4292c69b11e27c823db3dfb55879e5dbd139f/gcloud_aio_storage-9.6.5-py3-none-any.whl", hash = "sha256:07bf233a065539bebbd1a34ce61505d6dba2b6674f23f8e0319606d2f01111ab", size = 17005, upload-time = "2026-10-02T12:59:15.309Z" }, ] [[package]] name = "google-adk" -version = "2.4.0" +version = "2.12.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiosqlite" }, { name = "authlib" }, { name = "click" }, + { name = "cryptography" }, { name = "fastapi" }, { name = "google-auth", extra = ["pyopenssl"] }, { name = "google-genai" }, @@ -1321,27 +1403,33 @@ dependencies = [ { name = "starlette" }, { name = "tenacity" }, { name = "typing-extensions" }, - { name = "tzlocal" }, { name = "uvicorn" }, { name = "watchdog" }, { name = "websockets" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/2a/a1/6048b1c22817859bafc1101f8ba26f704233d9acb07e715dff5fb41b9b55/google_adk-2.4.0.tar.gz", hash = "sha256:5a2996b288d591deefcb277eeeeb7da838d72056675763bfef52ad3b36975dde", size = 3566788, upload-time = "2026-07-07T19:46:14.802Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a5/c7/52dcd19f95d412a60b2e42bc4fc586f48106778d03de7c250840d6a40ba1/google_adk-2.12.0.tar.gz", hash = "sha256:93dfb7ff5e27d18f96520f59939faa8a7b6c21c7908161022702a3c208a37b25", size = 4305241, upload-time = "2026-10-13T16:42:58.223Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/fd/ab/12ec18054990ac69f37dae8327f5d8d5e04557bada0d8d725afd872d3020/google_adk-2.4.0-py3-none-any.whl", hash = "sha256:fba91f1a693e5fc2fd13dc40d625562bd52e44a7baaeecedb01811a68063d847", size = 4123277, upload-time = "2026-07-07T19:46:13.026Z" }, + { url = "https://files.pythonhosted.org/packages/d3/65/3706e52bac2f8ac1328caa7da28dfff8a9086fce5004619960f91c7f7bb4/google_adk-2.12.0-py3-none-any.whl", hash = "sha256:79f89ea94ccd87e4ac8c893e81c44ed2ce5568d05406a95c1d10bcef0ce0ff5d", size = 4998446, upload-time = "2026-10-13T16:42:55.26Z" }, +] + +[package.optional-dependencies] +mcp = [ + { name = "aiohttp" }, + { name = "anyio" }, + { name = "mcp" }, ] [[package]] name = "google-auth" -version = "2.56.0" +version = "2.62.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cryptography" }, { name = "pyasn1-modules" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/58/66/b4ba60005743e01933e22b4f62313e063f7460458b7d8a358427b4930013/google_auth-2.56.0.tar.gz", hash = "sha256:f90fa030b569a92654b9d690665a073841df33d57487be53db583a9a0867a553", size = 364629, upload-time = "2026-07-13T19:09:57.143Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/b9/4b2528f30114b106e3c3a7298ba38d85e682fd1f83fe7c4a5b77c7677082/google_auth-2.62.0.tar.gz", hash = "sha256:0bef0ce54bdf9ce226c5d66e4264413bd918141c31bbe49fb52eac882f513d69", size = 398180, upload-time = "2026-10-12T19:20:48.328Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a8/7d/cd3e187f14ce832e419e70709bfcc40cb0dc11517d5d03c9d3919bcc3101/google_auth-2.56.0-py3-none-any.whl", hash = "sha256:6e88c10217e07a92bfd01cac8ee99e32ccfb08414c3102e6c5b8d58f37a0d1e0", size = 257976, upload-time = "2026-07-13T19:09:42.685Z" }, + { url = "https://files.pythonhosted.org/packages/eb/a3/87fe9b7203ec2e56ea6a57c75e6d632eaf9487c7f7978cdad1d801bee0af/google_auth-2.62.0-py3-none-any.whl", hash = "sha256:4ff4319aeb4ad128409759d397a9fcafad126d0031d241cc0dd6b9a00b43e3f3", size = 267911, upload-time = "2026-10-12T19:20:46.355Z" }, ] [package.optional-dependencies] @@ -1354,7 +1442,7 @@ requests = [ [[package]] name = "google-genai" -version = "2.11.0" +version = "2.30.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, @@ -1368,9 +1456,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "websockets" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a6/01/e7b5f3aac89200c78318ed7643401e7f5ed3131b0cd353c07483606b1e61/google_genai-2.11.0.tar.gz", hash = "sha256:4c5e524d24b145c96be327f9a7f8f04b0fe4efee0533877795e9848afed01749", size = 622366, upload-time = "2026-07-09T17:49:43.862Z" } +sdist = { url = "https://files.pythonhosted.org/packages/df/8a/76e592bca2a4ff63a8ba8025012ccae2d1a9aa1762af2278f43756045e12/google_genai-2.30.1.tar.gz", hash = "sha256:a348b28b86a98fbc8e0bea759e14ae3ac807954355df8638079715d027cd14d5", size = 736895, upload-time = "2026-10-13T14:11:18.246Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/93/ef/d296c23390160a8b0b1dafb36dd3cb36a39ed40c81cd27e04e6233334186/google_genai-2.11.0-py3-none-any.whl", hash = "sha256:5bc8186100e1d34d691fbe0cba392b7e04e98d286ca952323a6672d054accf95", size = 984162, upload-time = "2026-07-09T17:49:42.15Z" }, + { url = "https://files.pythonhosted.org/packages/46/28/faa7c02d87df1343aa8e51c816694a82eb37f41d0e83253e6e75a00b96ec/google_genai-2.30.1-py3-none-any.whl", hash = "sha256:1bb8961c60f7100439a45067a32764a18da0f8d0f95954ffc777d1f8225a2469", size = 1199070, upload-time = "2026-10-13T14:11:16.459Z" }, ] [[package]] @@ -1387,11 +1475,11 @@ wheels = [ [[package]] name = "graphql-core" -version = "3.2.11" +version = "3.3.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/4d/90/f2aff026ab4aebd80eb71905106a0885f4cfde85dcf965543f45bed0d9ee/graphql_core-3.2.11.tar.gz", hash = "sha256:e7e156d10beb127cab5c89ff0da71416fc73d27c484a4757d3b2d35633774802", size = 528407, upload-time = "2026-06-05T13:45:22.915Z" } +sdist = { url = "https://files.pythonhosted.org/packages/fa/90/dfade6d16a55abb45e41b215fcdc940e4f119a6ac7d87430d45d020b659f/graphql_core-3.3.0.tar.gz", hash = "sha256:fd3424e88af3f3211931c6ff96350f1cd9069cf0f1a31b9972899e35d39136b5", size = 726439, upload-time = "2026-09-27T14:50:14.57Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/00/15/b92b4e1d88d02c6eff9733c9eea21846ab435cc4d813d84ccc5d335955df/graphql_core-3.2.11-py3-none-any.whl", hash = "sha256:0b3e35ff41e9adba53021ab0cef475eb18f57c7f53f0f2ca55567fbf3c537ea0", size = 214879, upload-time = "2026-06-05T13:45:21.245Z" }, + { url = "https://files.pythonhosted.org/packages/0c/13/03fb01b3581134cc30d7dd3fb8a9c429267574ace881a9e72c2f57896ee9/graphql_core-3.3.0-py3-none-any.whl", hash = "sha256:d37fac6ef4dfc3eaa5daa59dcb498d7cbb118439d240993c68fddc4cb1bade44", size = 347906, upload-time = "2026-09-27T14:50:12.905Z" }, ] [[package]] @@ -1405,135 +1493,72 @@ wheels = [ [[package]] name = "griffelib" -version = "2.1.0" +version = "2.3.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/33/e4/8d187ea29c2e30b3a09505c567513077d6117861bde1fbd997a167f262ec/griffelib-2.1.0.tar.gz", hash = "sha256:762a186d2c6fd6794d4ea20d428d597ffb857cb56b66421651cbba15bdd5e813", size = 216234, upload-time = "2026-06-19T12:05:42.278Z" } +sdist = { url = "https://files.pythonhosted.org/packages/2b/27/b55f1a5278918be765fb2fd8b20966bc72bbdd3f789f031937cceea7834a/griffelib-2.3.2.tar.gz", hash = "sha256:df00c7a0dee3d86268d76788997a1859272cb1fb7b865658e043d2c0c3d52e60", size = 234729, upload-time = "2026-10-06T09:54:37.222Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e4/d3/5268aeabf2ad82658c4e2ff3a060648d0f02f3926cb53247c0e4d0dab49e/griffelib-2.1.0-py3-none-any.whl", hash = "sha256:cc7b3d2d2865ad0b909fcc38086e3f554b5ea7acbaa7bbb7ecaa3f5dfb7d9f00", size = 142560, upload-time = "2026-06-19T12:05:38.742Z" }, + { url = "https://files.pythonhosted.org/packages/04/e5/0ae74c83c1cab2c14daadf28bd0143eb14bb81503834af987b66badc7b61/griffelib-2.3.2-py3-none-any.whl", hash = "sha256:8e710afededd5607f95bf3c8ccc175ee306e7084459faf27b9f9f44ef2a7a274", size = 169420, upload-time = "2026-10-06T09:54:32.038Z" }, ] [[package]] name = "grpcio" -version = "1.82.1" +version = "1.84.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/90/bc/656b89387d6f4ed7e0686c7b64c2ae7e554a759aa58122c8e5fb99392c32/grpcio-1.82.1.tar.gz", hash = "sha256:707b24abd90fcb1e45bcc080577da1dbf9971d107490589b9539af8e1e77b4b5", size = 13187300, upload-time = "2026-07-08T12:36:16.588Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a3/14/5d05bfd85c101cbe44a12d7c1cea9c40698e0438cddf3a70019f735b5a27/grpcio-1.82.1-cp310-cp310-linux_armv7l.whl", hash = "sha256:91859d1cac5f47caec5fc40e9f827500cdb54ce5b36450dc9a65616b5af49c17", size = 6177087, upload-time = "2026-07-08T12:34:06.825Z" }, - { url = "https://files.pythonhosted.org/packages/19/2e/c906f8e6d0b54c0137885fff6f7b5883c6bbc381b44a0ba5ea07d7d1579b/grpcio-1.82.1-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:c80c9741dcef192f669876a81957cf7713b441c2f0c43631350d75fa49321d31", size = 11960907, upload-time = "2026-07-08T12:34:10.583Z" }, - { url = "https://files.pythonhosted.org/packages/de/be/ec4aa76cdf25539b9e960cbb9d5739f892ea6cde58078b5293860c1159d3/grpcio-1.82.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b89cff456796d2f0581783726ad017a2c70aff2d27b0f05504c34e2e417f7560", size = 6754802, upload-time = "2026-07-08T12:34:13.082Z" }, - { url = "https://files.pythonhosted.org/packages/e6/dd/47519c2a8fd9db47ec4493f44bd9f5b0175307e07089b1132e54b7b5b19c/grpcio-1.82.1-cp310-cp310-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:d6e8a08f7038ba7a77f71e250804e4aba84fe91d22cfc54ff43c07b7529c4728", size = 7484535, upload-time = "2026-07-08T12:34:15.164Z" }, - { url = "https://files.pythonhosted.org/packages/63/99/659711e9689c4dd553bcd4eacff9cb9f458f34b60edf7afb3bbc1b0a58a2/grpcio-1.82.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:50fd2fe83426b1b1c6cdc4d72d555223b7dddf8ce07c5bac218b13fc6d684c6f", size = 6919066, upload-time = "2026-07-08T12:34:17.367Z" }, - { url = "https://files.pythonhosted.org/packages/29/39/f2b772356b4f593ffe439795509fcbf675b0ff98211ae8ce2a180f2e559f/grpcio-1.82.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b758540a24d5394a9c578bf9f6126389f474b106ac3d9df1d53de56cb14c9fd9", size = 7525855, upload-time = "2026-07-08T12:34:19.479Z" }, - { url = "https://files.pythonhosted.org/packages/a7/06/b28cfffb989a84d8272593498bddd2d68148cce1813ad55189c469b0f1f8/grpcio-1.82.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:c4ba4aac238f685743575d9d700003ac16537cce26e7c774993134f530652464", size = 8565122, upload-time = "2026-07-08T12:34:21.951Z" }, - { url = "https://files.pythonhosted.org/packages/97/f9/54956cb0c701190cbc9d7e535c3f84acf0285c6b9ed198a902766e17c3cd/grpcio-1.82.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:ed6fc621d6f366c88a60f0b971d5afd21d441d9aa561ee688de5b7acdb2cf901", size = 7933872, upload-time = "2026-07-08T12:34:24.539Z" }, - { url = "https://files.pythonhosted.org/packages/76/85/5f9cd1f965bbe4329556a212f178ae0c072b18b446cae05ed32fa8847c53/grpcio-1.82.1-cp310-cp310-win32.whl", hash = "sha256:bd2f45e46fff5b91c10997d0743a987517a7dde67c64c592835c2dcaac66f587", size = 4257373, upload-time = "2026-07-08T12:34:26.566Z" }, - { url = "https://files.pythonhosted.org/packages/93/b0/c4f42f7c69c53d27ed41643421b55908bcbe885b68f5a208135c72917c98/grpcio-1.82.1-cp310-cp310-win_amd64.whl", hash = "sha256:5e171d5f0d6a0af78ea7512783f170a44f80c165259d8773e3a354a7f991f2b5", size = 5006571, upload-time = "2026-07-08T12:34:28.778Z" }, - { url = "https://files.pythonhosted.org/packages/26/5b/e5092af97fa671ca279b3e373251af4bf87d5fbda7dc85f6a616899562a7/grpcio-1.82.1-cp311-cp311-linux_armv7l.whl", hash = "sha256:0ddb18a9a9e1f46692b3567ae4abb3f8d117ce6afea48650f8eca06d8ab5d06f", size = 6181472, upload-time = "2026-07-08T12:34:31.009Z" }, - { url = "https://files.pythonhosted.org/packages/c1/8f/18053a3a2ca03d0c2a1b8cc7271e705007a16aa5dae84bac00935c5b1a7f/grpcio-1.82.1-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:cf855b1af246720f567b0ce5d0724d45dfa4188eecc3296a2a69257b11b9e94b", size = 11970995, upload-time = "2026-07-08T12:34:33.603Z" }, - { url = "https://files.pythonhosted.org/packages/5b/7e/21b1acb052876ad00959ec4d1b05fe08607d650bcfa282073bb164c2703c/grpcio-1.82.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ddb30cb13e25bc13cea70ffc69d6d90c49d36ea6c1d4549e6912f70177834cac", size = 6760127, upload-time = "2026-07-08T12:34:36.122Z" }, - { url = "https://files.pythonhosted.org/packages/3e/12/25eef9c245c54f0061317d13a302357fe8ea03bac240b2b02ececcf54da4/grpcio-1.82.1-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:1e822b2774f719c017cbe700b6e47173b6ae290fb84906f52a5a3c2c60b62e1e", size = 7484377, upload-time = "2026-07-08T12:34:38.368Z" }, - { url = "https://files.pythonhosted.org/packages/a0/41/1a348767eb9d9bd7765dc4fa8a01723d3bb386d67f981ee5c6f9c02b8b1c/grpcio-1.82.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5dafb1ece8ed45dee7c738f166ec82e19673221ed5ab8967f72858a4685345b2", size = 6924269, upload-time = "2026-07-08T12:34:40.583Z" }, - { url = "https://files.pythonhosted.org/packages/e4/b9/3aae7a03d34c86ea27988db859a6087c186f6c3f53f9b551e07afd989bfa/grpcio-1.82.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:e06503106e7271e0a49fd5a1ac04747f1e47e87d900476db6fe45bc87ee411f4", size = 7531848, upload-time = "2026-07-08T12:34:43.277Z" }, - { url = "https://files.pythonhosted.org/packages/3c/2e/3c4afa625d0dac9090707966916284c035fc5b2fb3e2c51e156accee6735/grpcio-1.82.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ff99bc8cafb6a952201c37b995f425e641c93ffa6e072258525feab57290141d", size = 8568217, upload-time = "2026-07-08T12:34:45.502Z" }, - { url = "https://files.pythonhosted.org/packages/20/9c/d8489c628e73e20a3d034e7f66912de7b1acb405f01d388f056a88e47924/grpcio-1.82.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:644ae1b94266ac785330f4590a69e52b6a7eb73029043a02209db81c81397d69", size = 7938771, upload-time = "2026-07-08T12:34:48.323Z" }, - { url = "https://files.pythonhosted.org/packages/4b/b7/0a92cfd1658f3a896d4aa12d4efeb7dd4ddfc723725ae22741a5241ea710/grpcio-1.82.1-cp311-cp311-win32.whl", hash = "sha256:e203d2e19d471630084a16c815616f8211dff21c268ab3c5f5bf38417832e074", size = 4256432, upload-time = "2026-07-08T12:34:50.432Z" }, - { url = "https://files.pythonhosted.org/packages/c7/6a/2872c761b025d9ec74386f22a4a7d59c5a5b00ebf718761b33739ffc45de/grpcio-1.82.1-cp311-cp311-win_amd64.whl", hash = "sha256:0d8299c285fe6cc6a1f56badf8d3bc5078c8d20273ee64bafa3783b4bc29a769", size = 5009633, upload-time = "2026-07-08T12:34:52.67Z" }, - { url = "https://files.pythonhosted.org/packages/dc/88/d1350bf3343a2ed87d801584e40609f6c6bd3087926eeca03de50348cf4a/grpcio-1.82.1-cp312-cp312-linux_armv7l.whl", hash = "sha256:c09bd5fa0d5b1fbd773ec349fe61441c3e4ebf168c229aa7538a820bdfad6a58", size = 6144689, upload-time = "2026-07-08T12:34:55.567Z" }, - { url = "https://files.pythonhosted.org/packages/e6/33/71875cdecd27c24ac1385d4783a09853f01b84a825a36aec2a2bc7d0d080/grpcio-1.82.1-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:1eae24810720734598e3e6a1a528d5de0f265fe3fc86575e9ecce424b9ec7379", size = 11952034, upload-time = "2026-07-08T12:34:58.128Z" }, - { url = "https://files.pythonhosted.org/packages/82/b2/d9125df3d8a140dec12cc82c05b7deafedeababcff6496f28b2fd5634d10/grpcio-1.82.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a6bd5daf5bde7b24d7ad2cbaf8bf9eac620d96222016bb5e7ddde930dec0673f", size = 6710772, upload-time = "2026-07-08T12:35:01.33Z" }, - { url = "https://files.pythonhosted.org/packages/88/9b/69e2d1627398b964f34437dc476a5aff5a2cc8e7f247d26272b5674b5faf/grpcio-1.82.1-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:1ecfde669cb687ac020d31ff76debe5dc7a62213335f02262eb6625628da1c03", size = 7450677, upload-time = "2026-07-08T12:35:03.926Z" }, - { url = "https://files.pythonhosted.org/packages/e4/e7/8f855ca29c294956122a2a73023655b9b02602d5111dad2b9b00e7631c68/grpcio-1.82.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:011c8badee95734dee8bf05ce3464756a0ac3ebb8d443afd20c0e2b5e4640ad9", size = 6886855, upload-time = "2026-07-08T12:35:06.174Z" }, - { url = "https://files.pythonhosted.org/packages/5f/f0/fa87e85f49925f44c479d07e58b051e69bcfef6b6d5fbc6749d140f6730a/grpcio-1.82.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b85f4564926fb23114d239392bdcae200db1e6179629edd7d7ab0ab89c96a197", size = 7501323, upload-time = "2026-07-08T12:35:08.49Z" }, - { url = "https://files.pythonhosted.org/packages/67/55/2e0b10ae1d3ef9dcc480b91dc2158f4931fc4675d3af0a2836e39b2a744f/grpcio-1.82.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:2c0c8270833395644c3fe6b6a806397955a2bc0538000a19a78b90c05a6c16e0", size = 8536899, upload-time = "2026-07-08T12:35:10.975Z" }, - { url = "https://files.pythonhosted.org/packages/bd/95/a3d8b0431fa221efc51ee39d73595ede74ba82a43b7c4313192e580face2/grpcio-1.82.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:2ba199205ff46c7778290fe1673c91ac8e7e45678dd5c86e9e56fa33ec8788f6", size = 7913892, upload-time = "2026-07-08T12:35:13.944Z" }, - { url = "https://files.pythonhosted.org/packages/b8/92/f2651ec704d9852a56faef394775038afba435b50ce82ab2404d119c3355/grpcio-1.82.1-cp312-cp312-win32.whl", hash = "sha256:06127691866e295c14e84a1fb86356dd962254f6abd0da4ca4b001eea9e89438", size = 4240985, upload-time = "2026-07-08T12:35:16.048Z" }, - { url = "https://files.pythonhosted.org/packages/96/4f/a5fe8bf0d0a1b24855f370293075c931f27de4eb55f0f158786095bf3c11/grpcio-1.82.1-cp312-cp312-win_amd64.whl", hash = "sha256:1fa3223a3a2e1db74f4c2b255189eb7ea875dfba56e221d252ee3fc7b204778e", size = 5001580, upload-time = "2026-07-08T12:35:18.689Z" }, - { url = "https://files.pythonhosted.org/packages/1b/3e/496992d08c0aaa11272eb6228dc8ab947da01fe835de243cd00521bce4c4/grpcio-1.82.1-cp313-cp313-linux_armv7l.whl", hash = "sha256:b454a2d97bfab7565683a02345f86bd182ab69fd7c2bdb7414171e7538f266b1", size = 6146068, upload-time = "2026-07-08T12:35:21.365Z" }, - { url = "https://files.pythonhosted.org/packages/e7/8f/f263d6f14fdba6b56cfadd91fd3e158a52682b72c6016d1f8723d435659f/grpcio-1.82.1-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:3dde70abfc80b3be11de53ba0d601c439e7fb2afd3583ad1788d1146bec92fdc", size = 11948600, upload-time = "2026-07-08T12:35:24.312Z" }, - { url = "https://files.pythonhosted.org/packages/8c/14/3a02e6ee49c2d85bc15eaae321e0e11ab3542cad3c5b2de121ecce0c4296/grpcio-1.82.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f5523099c98c292ea1ae08e617249db760c56a78f8deae879027fe7d1ffbcbf6", size = 6714591, upload-time = "2026-07-08T12:35:27.027Z" }, - { url = "https://files.pythonhosted.org/packages/69/80/58e3738696f48ab7645347b98d8a7f93d10e00e6218388fbfcd6c9310e3d/grpcio-1.82.1-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:5e5c4dc0a59b0f8490a6bdfd6fc8395b9d8ad8a8407c7d67ca7b5bba15c0877f", size = 7454995, upload-time = "2026-07-08T12:35:29.599Z" }, - { url = "https://files.pythonhosted.org/packages/f3/6c/2557c1a889363072fbf2285ecd0e8c44860d4dbd60f017a32537c5b863e2/grpcio-1.82.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c40d94ba820329cc191981bc22fa6f6eed0799c6d921f3c6709521d59d4a2fd7", size = 6888621, upload-time = "2026-07-08T12:35:32.38Z" }, - { url = "https://files.pythonhosted.org/packages/d2/66/907706ccaff1223f1e10fd5b37fc16faead43392fccb4e786e7e390ac141/grpcio-1.82.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4c816180e31e273caaec6f8bd86a8392499d5bbb26f41da44e3dce48bde69095", size = 7505069, upload-time = "2026-07-08T12:35:35.072Z" }, - { url = "https://files.pythonhosted.org/packages/b3/7c/ff97b0d0f635987ee5ec80dfedafa1aad629303745d48e8637d10eec5b80/grpcio-1.82.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:e31fd780b261830720cb70b0fd8f0aa51d49e75a66d7464ad2e31d4b765f2580", size = 8535384, upload-time = "2026-07-08T12:35:37.954Z" }, - { url = "https://files.pythonhosted.org/packages/62/9e/a97fddd970a8d1588cade06eca20443761c1858b0ad6590a5c835aa18062/grpcio-1.82.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9d76152d7c31d7210d4a106e5d8b64da5bba5d6abf11be30e2f7b0a0c59bbcbf", size = 7910707, upload-time = "2026-07-08T12:35:40.797Z" }, - { url = "https://files.pythonhosted.org/packages/20/e4/eaba1517888af483a88d449eb7566f0f7f63446d46f339c5891798435875/grpcio-1.82.1-cp313-cp313-win32.whl", hash = "sha256:38e9dcb5258226fb3282630b31b16a968df52c8c6ad514af540646e0a4578f8a", size = 4240363, upload-time = "2026-07-08T12:35:43.298Z" }, - { url = "https://files.pythonhosted.org/packages/b0/42/66a98d47732e35290bef722f6149fed3709cd4cf61166f6f53a12f417302/grpcio-1.82.1-cp313-cp313-win_amd64.whl", hash = "sha256:3dbfb52c36d9511ac2b8e6c94fdde837b393ae520cc321f52a333a2deedf5a90", size = 5000980, upload-time = "2026-07-08T12:35:46.262Z" }, - { url = "https://files.pythonhosted.org/packages/b4/cb/cf9ae9e164c6e6dc8a494faa9771763df9da150eefe19671009624d1559f/grpcio-1.82.1-cp314-cp314-linux_armv7l.whl", hash = "sha256:35f990f7784c8fd2872644f07f96ebb4d9e48e145a190ab80d0280af91a1bfb2", size = 6146901, upload-time = "2026-07-08T12:35:49.261Z" }, - { url = "https://files.pythonhosted.org/packages/3b/2a/eccf26dbcfb7f7cab8027c5490a16c8937c5aa7a2ec20a3eab2cf7a43165/grpcio-1.82.1-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:46536a4a1f4434df3c851b9254ff6fc7df5705b273681a15ca277d5921c178a0", size = 11954756, upload-time = "2026-07-08T12:35:52.196Z" }, - { url = "https://files.pythonhosted.org/packages/ad/75/3b3b4a3cc9f084b026af96e1d3e539b1af29ec7f41ed0dfff3cb99cc8626/grpcio-1.82.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d6650a7c1ebb7921c70e12a385439a8118efb99e669fa9ed31cf25db1843937c", size = 6723087, upload-time = "2026-07-08T12:35:54.973Z" }, - { url = "https://files.pythonhosted.org/packages/9c/8b/b0f0c9b1400a99a4da4c09b114f101b192f8f11192e76f620b8962f5d90b/grpcio-1.82.1-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:b8e110c66df5204c0506d6c8787b35d48b8b699ef5aa366d6c4d67325c67fe9a", size = 7454542, upload-time = "2026-07-08T12:35:57.586Z" }, - { url = "https://files.pythonhosted.org/packages/b7/bd/428e38868382aa193697a5aa53973f29c58e58ba4268aa0c86a2715ee58b/grpcio-1.82.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f853eae07235a51a27bb5d6a9a175a59ca55dc9b99edc6ce2f76f07332d333ae", size = 6889588, upload-time = "2026-07-08T12:36:00.012Z" }, - { url = "https://files.pythonhosted.org/packages/49/ce/03e01d5e10259bf5c08ee50570cc94724e79c956f61fd2f09b341af0956c/grpcio-1.82.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:60b0f2c95337694fc094b77d9f60f50566c84b5677393e342eb98daeee242d98", size = 7514166, upload-time = "2026-07-08T12:36:02.693Z" }, - { url = "https://files.pythonhosted.org/packages/ff/59/278b4b600329e2ba3849f3c1ea3c820b3a01b38a7ad184ba09595e8d2733/grpcio-1.82.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:b064fc444812bdaa9825d33c26f8d732d63ee6a5d78557c1faf92c98687fed27", size = 8536166, upload-time = "2026-07-08T12:36:05.349Z" }, - { url = "https://files.pythonhosted.org/packages/44/27/7ccf2ef00f27a8e47a79d641c8ceaf7d3028c7a03d9a97b4c8a9a783c086/grpcio-1.82.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7d7ede11d747b4e1bd05e3bc0260e155b65a88735a895a10f6521f19b889511e", size = 7912572, upload-time = "2026-07-08T12:36:08.393Z" }, - { url = "https://files.pythonhosted.org/packages/0d/be/33742482d2753f2d3a1b7641664b6622262d44f2f3b609f13425dd86d36f/grpcio-1.82.1-cp314-cp314-win32.whl", hash = "sha256:3d21f19838dc255ecbb79321b15ae9b98fbddff4c3d4aedb0a81bdd7f4ab572a", size = 4321856, upload-time = "2026-07-08T12:36:10.899Z" }, - { url = "https://files.pythonhosted.org/packages/cc/67/03329c847172c78ddeb1eb9be6b444fdbc12775a84c958b27e427e7b926d/grpcio-1.82.1-cp314-cp314-win_amd64.whl", hash = "sha256:e20f1edbb15f99e3128ec86433f9785fd5a451d8f115e74fe0056134f092a9d5", size = 5141114, upload-time = "2026-07-08T12:36:13.595Z" }, -] - -[[package]] -name = "grpcio-tools" -version = "1.81.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "grpcio" }, - { name = "protobuf" }, - { name = "setuptools" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/83/b3/1c5951352d6777fd7f99a0ccee04617fdfd8a5dbf2918a1f58c8b2b280b8/grpcio_tools-1.81.1.tar.gz", hash = "sha256:a22a3870180927fdd84e2b27d079ef5b7f5f8c6110181b6736afc17a463481f1", size = 6236155, upload-time = "2026-06-11T12:51:21.235Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5a/e1/1fcf884902ae7255d8da224cfa638ea88a46d50f62a33d06d35c8960b029/grpcio_tools-1.81.1-cp310-cp310-linux_armv7l.whl", hash = "sha256:9b6ba8a72cfda576508701a7c0bbeebe6f6f9843320d4f12e74efd19ddccd965", size = 2586261, upload-time = "2026-06-11T12:49:21.447Z" }, - { url = "https://files.pythonhosted.org/packages/a2/d7/1815110b2d40ec99dbb0a7e6d7eafd591cd1f1e9bf9d3858cd9cf3ffacbd/grpcio_tools-1.81.1-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:ac47a9ea1224df8b653072614e6f0207e9fbfe63fdabaa5918a60ca5fc931b88", size = 5817509, upload-time = "2026-06-11T12:49:25.958Z" }, - { url = "https://files.pythonhosted.org/packages/23/e8/af99579842b5a555312fa782f32ce0f99bd35b2b7a1243294b2755468857/grpcio_tools-1.81.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:eac4bb645ceff0c147cc720a40ae68f97427eaafb4968e866dd8fcc20d3d4831", size = 2634112, upload-time = "2026-06-11T12:49:27.937Z" }, - { url = "https://files.pythonhosted.org/packages/b5/cd/235ad56ac728c49c17e9218c4daccd5831e6ec7af94236bec0cc66c71c68/grpcio_tools-1.81.1-cp310-cp310-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:cc410b621dd85193766c12dca2e238696199a27a65d2b31b6f0a4c6c0043ff26", size = 2957950, upload-time = "2026-06-11T12:49:29.619Z" }, - { url = "https://files.pythonhosted.org/packages/77/3e/9103e8b4610597bf89db49eb112091c91bf5d63ddef2a951e11a4be05f2b/grpcio_tools-1.81.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b62d254c214faa3773eac709376ae25cf7abff1a76ba5fc4dbcd7b14fc4e4ae6", size = 2697765, upload-time = "2026-06-11T12:49:31.702Z" }, - { url = "https://files.pythonhosted.org/packages/3c/86/beb2a43fbb93570a2305696083f6736566301d957869f463308ec6839f95/grpcio_tools-1.81.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:bd0b68dc76b10b3384b9b6e9f59202b83dcaafd8098eb644759a69316686acf8", size = 3147588, upload-time = "2026-06-11T12:49:33.748Z" }, - { url = "https://files.pythonhosted.org/packages/af/4d/b0182d9948631cd837a372b6625cf59d6e335d4aab0f425d4b7306619074/grpcio_tools-1.81.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:a28d231455ab6e3558299f7d831a73c8be8ee6b7ec614ecf39eb50c0ed15767f", size = 3708798, upload-time = "2026-06-11T12:49:35.979Z" }, - { url = "https://files.pythonhosted.org/packages/23/9b/f452a189d399051d85cf82fe2f27a070efaa52512a2c5e3ae6ef1ae99a1f/grpcio_tools-1.81.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:82740248eb6f3b6a38988cb5e64adb7303af9ea5cb4197c8ed08c1fabc767440", size = 3366969, upload-time = "2026-06-11T12:49:37.911Z" }, - { url = "https://files.pythonhosted.org/packages/9b/48/0075cb4f6ae7db280f461de2dbba700b22ae62e351ae13e6e461cd6804de/grpcio_tools-1.81.1-cp310-cp310-win32.whl", hash = "sha256:801d9d8ab5cddf8f8e064225292f0713427011252a07828a6b54e2ed64d534de", size = 1008713, upload-time = "2026-06-11T12:49:39.791Z" }, - { url = "https://files.pythonhosted.org/packages/17/bd/7692bc698259e5645b68720e77e7b176d376f6ae0c9db8b5b750a02f1958/grpcio_tools-1.81.1-cp310-cp310-win_amd64.whl", hash = "sha256:3c8611d6e4e859ac5373422ef27c4b7540cf98c9991c9abc6722613ef72b13aa", size = 1174752, upload-time = "2026-06-11T12:49:41.43Z" }, - { url = "https://files.pythonhosted.org/packages/18/76/14ff87090199a36f914388299a1148d0734a20cea1b0ca8480bae1f373f1/grpcio_tools-1.81.1-cp311-cp311-linux_armv7l.whl", hash = "sha256:8161f398f957a376cae7385ea7c8684f439d460ef702b528912da3bcb31fc515", size = 2586251, upload-time = "2026-06-11T12:49:43.514Z" }, - { url = "https://files.pythonhosted.org/packages/87/a8/d5aa99de9d8b2dd2a8192c1779796eda8b0d0f1dd915422e0a8a61b80391/grpcio_tools-1.81.1-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:53ef76cc3b0493ff734a5e8c39d5b519e1822236fcccdfe7677c5e1efd767761", size = 5818063, upload-time = "2026-06-11T12:49:45.975Z" }, - { url = "https://files.pythonhosted.org/packages/ba/cb/2e9a6dbc6a514dd3cd264fb3bf9217937453a4d45dbc3ca6ca4ee34ba1a7/grpcio_tools-1.81.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:690e6dcaa8b8a7886ce206ba344e2127211597e1a1ddab73df9f3d80c8f6707e", size = 2634061, upload-time = "2026-06-11T12:49:48.13Z" }, - { url = "https://files.pythonhosted.org/packages/c8/2b/2ccd1a929e6c8ad84a0aa8d66ad9f615b4a8e79d9927373d86aa36b4ba2e/grpcio_tools-1.81.1-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:ad7a997c07bd345e84842e60561e7e2cc090ce6c4e1d2f0407e31b85b40fc49a", size = 2958029, upload-time = "2026-06-11T12:49:50.466Z" }, - { url = "https://files.pythonhosted.org/packages/e7/67/2da8cd312edc348f44f26f82096b25cdb7d2905cd786acc6bf777b169502/grpcio_tools-1.81.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b6bd163ece4535726e5292b845ed80ae9b2cae73ba091c7d6c66033c430e3857", size = 2698031, upload-time = "2026-06-11T12:49:52.292Z" }, - { url = "https://files.pythonhosted.org/packages/d9/ba/ad1680fbdf9317c4f1e54c37c96d1f422370df66ac9adbd175c7cb3531d7/grpcio_tools-1.81.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2baa7e735f35b2a648144c03348a126097b13e101d3c242d5edb6ac91437ccbe", size = 3147541, upload-time = "2026-06-11T12:49:54.43Z" }, - { url = "https://files.pythonhosted.org/packages/57/c1/57cd08eef293d713cb8935295e4f08d8f0013480b2ba3aad1af0271eb7ba/grpcio_tools-1.81.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:1d602b410b2b2addc434cace9ce4fe2035974a3078228f98ffa049a5c90acc2f", size = 3708524, upload-time = "2026-06-11T12:49:56.544Z" }, - { url = "https://files.pythonhosted.org/packages/52/31/01ea8ca9c82fe2c79b5b594c3ae427d56699bc106b2d91caca129add8b10/grpcio_tools-1.81.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f8cb64f87c45ccca8234fa47e6b21f09e43801ff11b556deecb461b3b3e9f292", size = 3367022, upload-time = "2026-06-11T12:49:59.608Z" }, - { url = "https://files.pythonhosted.org/packages/7d/35/8140cd175602df3d17215cfb28a7ea55b7a67e2b872be76e1ee4af5c4df9/grpcio_tools-1.81.1-cp311-cp311-win32.whl", hash = "sha256:87b25ca0e27373a4a32a629a4ba976f5764b9887dd50d6fe017d38009a0363e8", size = 1008980, upload-time = "2026-06-11T12:50:01.422Z" }, - { url = "https://files.pythonhosted.org/packages/be/86/1bd29ab3c52457702b96536f1f208ab27695322d855f95c9666dfb713019/grpcio_tools-1.81.1-cp311-cp311-win_amd64.whl", hash = "sha256:204de03b539a4b08772c6553b92bcc112cbc965e0ac22f909f6d133b8ac33a8c", size = 1174840, upload-time = "2026-06-11T12:50:03.408Z" }, - { url = "https://files.pythonhosted.org/packages/3b/8a/824a9ca20bcdce8a568bb8c9f98bfeb7fad62129235e6d2ae7576fd1250a/grpcio_tools-1.81.1-cp312-cp312-linux_armv7l.whl", hash = "sha256:353b1fafcc739c31ed42271052709595b340d34f27c459beeb78a32938305bb5", size = 2585927, upload-time = "2026-06-11T12:50:05.671Z" }, - { url = "https://files.pythonhosted.org/packages/2f/35/e5f9f671378b1b89a896150d3e4fa2c6ec61a5e1e9e5107ce4c140ccc931/grpcio_tools-1.81.1-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:768f584c2423cbeb6cb6867817a39365b987ff16b8259a3adbc6546b9e303a4e", size = 5815665, upload-time = "2026-06-11T12:50:08.178Z" }, - { url = "https://files.pythonhosted.org/packages/c6/02/631b628e4072e988c669bd8f1b2406ef3c9a4cfcb2625bbf2a308a07b71d/grpcio_tools-1.81.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1680b35a84f4694401819ac4acac42dda6dbc7bb8fc74112fd1a60425a07adf4", size = 2635518, upload-time = "2026-06-11T12:50:10.391Z" }, - { url = "https://files.pythonhosted.org/packages/de/7c/2e3537e3ea3d1c0ddd6766cf6a7c62b487d89fb005713df2781d5f21483a/grpcio_tools-1.81.1-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:f64e665c8ec639278ecf009beb92cbdcc5994f617c1af3d58036e1f70b1423ec", size = 2958252, upload-time = "2026-06-11T12:50:12.677Z" }, - { url = "https://files.pythonhosted.org/packages/35/68/14013cb2942bdac354746b643b4c37dd91906da8dce00f41c616e88bf33d/grpcio_tools-1.81.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ba8f1ae82ad199f43448995715445cc623fb20d3882382e4be61f0da8ccb3f0e", size = 2698439, upload-time = "2026-06-11T12:50:15.017Z" }, - { url = "https://files.pythonhosted.org/packages/bd/45/000c14c0338a7ad36054b9f17ea41842deb7841c05c067dd36cc831bc0f4/grpcio_tools-1.81.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b7b6d1e986d5923751bfe2b5cca9c4cb3d5653446e4fa4aacd438033e2dc360a", size = 3152160, upload-time = "2026-06-11T12:50:17.3Z" }, - { url = "https://files.pythonhosted.org/packages/41/97/881930ca3967d2c8a95649bea8ebc991a7cf2331bc96679fd3600450dccc/grpcio_tools-1.81.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:7f208c207aca639dcb34648d3826c38d7cf3485118fb2065117e9fc4827406b3", size = 3710468, upload-time = "2026-06-11T12:50:19.479Z" }, - { url = "https://files.pythonhosted.org/packages/c7/b5/67baeba7366162652cdc1dbd962289accde07241bc8f42f6f02b305efcc6/grpcio_tools-1.81.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:724ecb69af63d2f6d4ccea3e6fa0ca110ed9c5824d48c2f887c631bbb03c1c3c", size = 3370797, upload-time = "2026-06-11T12:50:21.501Z" }, - { url = "https://files.pythonhosted.org/packages/f2/5d/34f2dce2125ccb107e32b57f5a9c1257edcc0793b0d2fef1e8b13a6bac3c/grpcio_tools-1.81.1-cp312-cp312-win32.whl", hash = "sha256:895a6782cec86beac71ccebb4b9848259c6f04a3028b8e42fa8d40cfe5146593", size = 1008453, upload-time = "2026-06-11T12:50:23.358Z" }, - { url = "https://files.pythonhosted.org/packages/8a/be/09da8256ec8d2a5ce8a1acc51cbbc4ca52a462d78ed3412778440a56502e/grpcio_tools-1.81.1-cp312-cp312-win_amd64.whl", hash = "sha256:0265fd1386b7458302f79542558345880d484f8fa92ae196c0c0268242c5f23a", size = 1174857, upload-time = "2026-06-11T12:50:25.685Z" }, - { url = "https://files.pythonhosted.org/packages/76/90/5faa8b26e03495e5117f93bef8293cbada4af136362745dad7d1813ef0b0/grpcio_tools-1.81.1-cp313-cp313-linux_armv7l.whl", hash = "sha256:3d604b4fd114b79ebb9f865bf3e04fd3ae93c704e1fad96f7fd03b0865c263b7", size = 2586071, upload-time = "2026-06-11T12:50:28.4Z" }, - { url = "https://files.pythonhosted.org/packages/e8/9a/85dc589fa6ae2439451eaa81a1578de31e29c676980d38bef7549b8a1f45/grpcio_tools-1.81.1-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:3389e705460efa3f3758141ba5520e6743b131c9576197c944fb9cbe49048126", size = 5813299, upload-time = "2026-06-11T12:50:31.295Z" }, - { url = "https://files.pythonhosted.org/packages/77/fd/c53994e58a837e6eefe48f53eb3492afc04f2b8af255df4adb37d14378f8/grpcio_tools-1.81.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8a17d8ceeb6a855fadf39f5171c80a382d97c4db98d5943eca553497fdebf84b", size = 2634668, upload-time = "2026-06-11T12:50:33.938Z" }, - { url = "https://files.pythonhosted.org/packages/34/32/de988e86688686a2117e7ce6ce9eff4f638c929bb55b0afe60d6fbd2e45c/grpcio_tools-1.81.1-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:43baf71dc60fd653062da2e95e95c73b35dd130be8f9fa3d544c3af3f808a290", size = 2957930, upload-time = "2026-06-11T12:50:36.726Z" }, - { url = "https://files.pythonhosted.org/packages/72/97/3f18a0ea32b5f809d21961dbd0bc382b589a4c3d501e3d67c345d5456ed3/grpcio_tools-1.81.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:136e90906af0df51ad929713244ba812d0dbb1844b4f467d5d86bdb054698f90", size = 2697760, upload-time = "2026-06-11T12:50:39.108Z" }, - { url = "https://files.pythonhosted.org/packages/49/c0/dbf5cbc877290ff7504a59959a8af4fdcfdaa1e84237948405ccf1aa82a6/grpcio_tools-1.81.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bd6c3bf3ea6a61eb58c54368d72ada591f2a270f3a31a32e8536e773337e76d9", size = 3151456, upload-time = "2026-06-11T12:50:41.983Z" }, - { url = "https://files.pythonhosted.org/packages/de/ea/16fe2dc83140a59e5c0a0b9dc2693dd36bfaa6bd835724b4ec66a68eab7b/grpcio_tools-1.81.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2c306c307f8f74cddc4056fdbb6f1da55de087a21120efbd02bd915daa5a52fd", size = 3710469, upload-time = "2026-06-11T12:50:44.596Z" }, - { url = "https://files.pythonhosted.org/packages/22/7d/df987d7d81e7ad2f7516d9e9d56ff29c54dbc6d8587e425688dca9a28e49/grpcio_tools-1.81.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bdbdc927be2e0ea13c32564a72ee31d712a716fb6f8c0d53d37a77d8277c272c", size = 3370488, upload-time = "2026-06-11T12:50:47.199Z" }, - { url = "https://files.pythonhosted.org/packages/ba/c5/5a63444d694ea47bf670138208f71830cc1759c402c8818092b28ab2dc5f/grpcio_tools-1.81.1-cp313-cp313-win32.whl", hash = "sha256:9d383724bcd67244b6def9e9164c640ee9380c0b7534ee7545a6fb0022a59afe", size = 1008229, upload-time = "2026-06-11T12:50:49.527Z" }, - { url = "https://files.pythonhosted.org/packages/00/75/3945e26d5c94ae6ed9be5caef73d4d66c47dc8cfdd7b4995efaf942754e0/grpcio_tools-1.81.1-cp313-cp313-win_amd64.whl", hash = "sha256:f3eb15849979ca7bb864ce81a74d68b0f225a7f111ed3fe212bfc08cf9812b10", size = 1174523, upload-time = "2026-06-11T12:50:51.755Z" }, - { url = "https://files.pythonhosted.org/packages/0d/08/e581ad42ae517a61172285047e4d710e2ac75f2f1915f7c91f284254e6d5/grpcio_tools-1.81.1-cp314-cp314-linux_armv7l.whl", hash = "sha256:7d168ea26390717d0462c0d0408331dc98a60fc7f7e6118afac9b73f5a66d87c", size = 2585944, upload-time = "2026-06-11T12:50:54.528Z" }, - { url = "https://files.pythonhosted.org/packages/78/c8/200d90ebad685af7eea5ff7e0360c504dd01ec053fe0f1f9c4abe3ea2d5a/grpcio_tools-1.81.1-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:43c528655b226375013036692d8db4cd59060c1f41dd62c77f4d17b69f6ce828", size = 5813492, upload-time = "2026-06-11T12:50:57.291Z" }, - { url = "https://files.pythonhosted.org/packages/2d/c0/60da2a1af37aa8eb47308cec24d9f7709a8976fdec3a53fd35b56b358326/grpcio_tools-1.81.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a9c6fcc68c9d5a208967bfe4fd3224d3c3be9a950c3e827e8f4b17e15c2dc555", size = 2634991, upload-time = "2026-06-11T12:50:59.767Z" }, - { url = "https://files.pythonhosted.org/packages/0c/7f/dede28b579ae9bf9079ba1aa913e8088d1dc0cdbe21c85caa22f0790cad2/grpcio_tools-1.81.1-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:a987c85dcbe1b32066d7acd46266d1a428aecbd629331bf5b853e74c835bf876", size = 2957913, upload-time = "2026-06-11T12:51:02.31Z" }, - { url = "https://files.pythonhosted.org/packages/4c/38/4de2118adb58ec7ffba65ec623b5836db769665c192517cbf187db3f6145/grpcio_tools-1.81.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a882382507bb5ec6d7edc9648053dfd3bc8f9285cde56a6fa9b9a83b4bd07f1c", size = 2697709, upload-time = "2026-06-11T12:51:05.016Z" }, - { url = "https://files.pythonhosted.org/packages/6b/e1/762ced51059e4f694fd337ecae491581d42a4e61dcb0415d8c5c60e6ddcb/grpcio_tools-1.81.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7746e508d4239a02f7e93638be5bc0ebb0120ddb796f7506aaae9d47a4599d97", size = 3151884, upload-time = "2026-06-11T12:51:07.593Z" }, - { url = "https://files.pythonhosted.org/packages/19/d8/9823090dc801e7229944874e7429c3b98e741ac778d8dc373f60240e1c43/grpcio_tools-1.81.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:fc3d2a41a7a4467fa03b391394fffada9291fe8feebc8679b526f6bc36942b25", size = 3710404, upload-time = "2026-06-11T12:51:10.172Z" }, - { url = "https://files.pythonhosted.org/packages/64/4e/4eae98d02148cb6f9f452f09942afba407afa6851e6c1fddc5ae9ec0b4ed/grpcio_tools-1.81.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:21bb3ba90e6d8df1ff663d4ee39a4e5b25a64e8ed4902476ca9ded0954d3917a", size = 3370525, upload-time = "2026-06-11T12:51:12.678Z" }, - { url = "https://files.pythonhosted.org/packages/e0/3e/2206e597a128da6a03a6106d2eaf2c3e72c7d80843d4be933e3a3d10d02a/grpcio_tools-1.81.1-cp314-cp314-win32.whl", hash = "sha256:3dca56016d90a710c4d9861bae793dc089c1430a90c79ce672e948ddb65fa539", size = 1030582, upload-time = "2026-06-11T12:51:14.906Z" }, - { url = "https://files.pythonhosted.org/packages/cf/f2/bbeef86c687225b7bbc7c0acdfbd25c8bcaa3f5b1c941db053e5c3d9e859/grpcio_tools-1.81.1-cp314-cp314-win_amd64.whl", hash = "sha256:cb08172b7b629e75cb33866928d319a3196540a725eaab628ba721007140f1af", size = 1207490, upload-time = "2026-06-11T12:51:17.598Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/3f/4f/4435c0aae54657258d9cfcba78598f3d9e5fe4c82ff18d78558567b90faf/grpcio-1.84.0.tar.gz", hash = "sha256:19aaf172fc2edbefccce3f6e92c5150975dbe56c45744e9e87cf72ebdf85bfbe", size = 13493876, upload-time = "2026-09-14T06:59:33.291Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2d/b9/46146728b3f4a5c7e34c17d0ab724d58b5456b116e76dc77d3ef4e79b135/grpcio-1.84.0-cp311-cp311-linux_armv7l.whl", hash = "sha256:4aaeceeb7fa7d824c322d1ec3208c8495c88478a927295553235435fc49043ad", size = 6454572, upload-time = "2026-09-14T06:57:14.651Z" }, + { url = "https://files.pythonhosted.org/packages/e3/63/5d668b4102637410d700153fd12d6a798e3ff8308bd9dcbaeae93f191060/grpcio-1.84.0-cp311-cp311-macosx_11_0_universal2.whl", hash = "sha256:06619ba1515e5ee69fb2a514e95dd8be05ce74cb3928d5b34f87f87c86fe3c27", size = 12359529, upload-time = "2026-09-14T06:57:17.202Z" }, + { url = "https://files.pythonhosted.org/packages/18/2a/52e29c02047a493f15a78c0502bde4d3fab7c19c7813944d367cd501811c/grpcio-1.84.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:158c1c11cfb61b4849c3caf4d52de6f5ecd376e14446feb4a90dc95a90d616f5", size = 7029927, upload-time = "2026-09-14T06:57:19.767Z" }, + { url = "https://files.pythonhosted.org/packages/0a/11/9962b313553647abb091943e0721e4a1662ecc63cdfe930abf00abcce47a/grpcio-1.84.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:a9383401d9f116f98cacd4eba6c505a6edb80ba65badfc8e8ed8ae64983bcc44", size = 7782268, upload-time = "2026-09-14T06:57:22.381Z" }, + { url = "https://files.pythonhosted.org/packages/e2/b7/14a9413cb7d4b2e782b4f79c81a918610caedf55138ab5916f5fdd4b002f/grpcio-1.84.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bd8ea8eb3817b226057cc1c0e7ec4b378dcda52043b972b6ff12b1152178967d", size = 7187959, upload-time = "2026-09-14T06:57:24.686Z" }, + { url = "https://files.pythonhosted.org/packages/ee/3b/6cc8e6aed8f23be40f52af341e5d4595ec3ec8d7572271a692b5c1212178/grpcio-1.84.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:756ea5c2da00fa65c930284892d2a9706828704ca3ba40b4c51c4834eb39fcfd", size = 7737554, upload-time = "2026-09-14T06:57:27.5Z" }, + { url = "https://files.pythonhosted.org/packages/3c/7e/6f61002a01802ca9675e1b3599c9b0f9f3cf168ded94ebacc02199309f88/grpcio-1.84.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:28d2609691da93051e998495108bbddd2a9f7a561253bae94828d81290f30c15", size = 8792681, upload-time = "2026-09-14T06:57:29.731Z" }, + { url = "https://files.pythonhosted.org/packages/eb/84/8bec1ae7e6732a9b435a394ddfdfffde46c2620ae0109823f7cce1a54455/grpcio-1.84.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:27b8b36200a9fbee6e120246f4a8a41657549107ef19fb2c819c4b2fd524f39a", size = 8145493, upload-time = "2026-09-14T06:57:32.672Z" }, + { url = "https://files.pythonhosted.org/packages/59/84/c8c7bd210d657288f18af06522f150f61e81ea14fd3c7c135beed697c5fd/grpcio-1.84.0-cp311-cp311-win32.whl", hash = "sha256:465eef3d17e59ad22a556fc0138f7c7c799df426734344daec42c797d49fda99", size = 4495596, upload-time = "2026-09-14T06:57:34.799Z" }, + { url = "https://files.pythonhosted.org/packages/da/1e/da99356b3b573af357d059753a47fba54f1ca1a9c0e4deccd0210cb7f4ba/grpcio-1.84.0-cp311-cp311-win_amd64.whl", hash = "sha256:f9a456bdbed52a01c9ab8423bdebab04a5363c78676edc55ab9b58bd13bdf9e1", size = 5259900, upload-time = "2026-09-14T06:57:37.067Z" }, + { url = "https://files.pythonhosted.org/packages/0a/c1/4c9a2e0e6b0aaf02781404cad2f79211f989f2c827cf672a4a48d1604d3e/grpcio-1.84.0-cp312-cp312-linux_armv7l.whl", hash = "sha256:b5c6f20d657ae09ae4e30d9d3a21edd13f1219d58cc6f999b9d1bb63be9c1baa", size = 6415756, upload-time = "2026-09-14T06:57:39.345Z" }, + { url = "https://files.pythonhosted.org/packages/b1/57/131e7007bdee9acb77a8dbe8a16fa9fef75f88c1695242d8ee0993ac2d3d/grpcio-1.84.0-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:406583b4e8fb2282ebd392e12b963e601c1f82e07125a8c2cb5b144e7e024796", size = 12339195, upload-time = "2026-09-14T06:57:42.373Z" }, + { url = "https://files.pythonhosted.org/packages/db/d1/a7b7cda98fcab9b3d2916204a872d87371158a7a34e41768f524584fb64d/grpcio-1.84.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:fbdbcd06986ede3ce584083b1dc2afe6808e8943e5cf50ad11183c03aceda25a", size = 6984468, upload-time = "2026-09-14T06:57:45.035Z" }, + { url = "https://files.pythonhosted.org/packages/19/81/c5be83e3ac9416f73c4c51fe1ea9c41a0c42fc3509e3505faa46f5046abe/grpcio-1.84.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:23e6e8e8a75cff88e0a793bfd3becea03a13e2763ae90c1ff573bc19ca5b429a", size = 7749432, upload-time = "2026-09-14T06:57:47.395Z" }, + { url = "https://files.pythonhosted.org/packages/a0/bf/258cd7c0a7ed92745dc93c31666d462d05b702807a689744bd49fb833bde/grpcio-1.84.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b44f0a0fc7bc6677d38cc80bca1a32814ce6c8f200fb8b3c1a61c9d77eaefbf3", size = 7156115, upload-time = "2026-09-14T06:57:49.657Z" }, + { url = "https://files.pythonhosted.org/packages/2b/4b/7f829418dbfcf91b875e55e2973f1059a95decb4f081313416317ef04ec1/grpcio-1.84.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:210e4c32f907045eb8158273e60c6ab69a3947697df6245dbda381f26c59485b", size = 7708010, upload-time = "2026-09-14T06:57:52.496Z" }, + { url = "https://files.pythonhosted.org/packages/34/f0/9932e2fec6a04205f8bf3f8f4d2020479dcdac88feb6f93822ed31bf0eba/grpcio-1.84.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a71d24f40b0cc6798feaa978c7411dc1135b7018e9fc0442db611c139bf58344", size = 8759980, upload-time = "2026-09-14T06:57:55.312Z" }, + { url = "https://files.pythonhosted.org/packages/2c/5c/b67407c6dbc480dfc0715f6eccdb1061e7c88d85f9a330a241d357a538c5/grpcio-1.84.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f6c972474ce691aca74e58d17625450cef153dc4760364cadeb167983ea6d589", size = 8124904, upload-time = "2026-09-14T06:57:58.569Z" }, + { url = "https://files.pythonhosted.org/packages/02/37/2bfdae2df8dfcfc0df619b628e0c7153ce703adae827243f44720322ccc1/grpcio-1.84.0-cp312-cp312-win32.whl", hash = "sha256:0d532ade4486dad9b302ffa4d4683d67561051c26d17c4023322845e9fa10140", size = 4478915, upload-time = "2026-09-14T06:58:00.714Z" }, + { url = "https://files.pythonhosted.org/packages/85/2c/309268b7b39f6deb2342f634841e105623a0b67982e8b10ec516782ff1c6/grpcio-1.84.0-cp312-cp312-win_amd64.whl", hash = "sha256:49717e857899f4136d7657bf5aded61ac479110a075438290923a4d86af7cd02", size = 5253534, upload-time = "2026-09-14T06:58:03.336Z" }, + { url = "https://files.pythonhosted.org/packages/5d/51/40f99701adb01d4e5316a2aaf13838da1a24d5c879cd8c95156d7c364454/grpcio-1.84.0-cp313-cp313-linux_armv7l.whl", hash = "sha256:209414080da8c20af94df1395b635da52dd57b5edc9e917e1deca0dc1c4bb55e", size = 6427619, upload-time = "2026-09-14T06:58:06.025Z" }, + { url = "https://files.pythonhosted.org/packages/c5/4b/ed8e22a1237e6b2be6ef4f221d074a5b0e0dd8a0da8c944c04aea731f0eb/grpcio-1.84.0-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:e41c3993eee896c617dbd8a505085d28b6e84a0445ed9a1f40f95808473cf678", size = 12336549, upload-time = "2026-09-14T06:58:08.583Z" }, + { url = "https://files.pythonhosted.org/packages/d3/50/00165b05cd73f45996748ea67ce9e55d08936f2fea94a7fd8541cc2d0e54/grpcio-1.84.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:fff5ef3fe1bba7d6147e5f19e01e5e122ac2c076486887ddcb8d42e663400fbe", size = 6989458, upload-time = "2026-09-14T06:58:11.884Z" }, + { url = "https://files.pythonhosted.org/packages/26/38/d0486230e684d916f97429a53041db88410e662a38f2a8d09e2d90375840/grpcio-1.84.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:b8c62888c3e49debf37ad9773e3c02f77b0c1e811f8fb0962f2b6c3bbab5b97a", size = 7757778, upload-time = "2026-09-14T06:58:14.849Z" }, + { url = "https://files.pythonhosted.org/packages/da/56/548a643decb059ca244499c675ae2c13a15f523ba94592c2774bd80a13c1/grpcio-1.84.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:986e9751d416d7a6eaa2fecdac38da63153d63a4b340ba7d624889c490451500", size = 7159572, upload-time = "2026-09-14T06:58:17.87Z" }, + { url = "https://files.pythonhosted.org/packages/db/f5/42caac81a79ec680f1f7a8eaf7ca90d2f93936ce0c3a073141ba96757f77/grpcio-1.84.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5933a052946873d01a42119a05420d669bdca436aeba2d1851988ccb12b421c0", size = 7710547, upload-time = "2026-09-14T06:58:20.607Z" }, + { url = "https://files.pythonhosted.org/packages/57/a4/828ad990b2410fee0a55cc73aa1bf98eb5b911c54847374ef4f24b9e877b/grpcio-1.84.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:e094dd21f077af8194923fc263cad872eaa1802bb0156fd7e5ae18e99cd86715", size = 8761519, upload-time = "2026-09-14T06:58:23.875Z" }, + { url = "https://files.pythonhosted.org/packages/d5/a5/1f91af098919eaf5d80d5a61126ad9fae074e5190c25a3014ce1d8d0d890/grpcio-1.84.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:08735e3d08d24ab3132cf87e2e5dea8746cabcc7d676c2b0b7362f195feef9d9", size = 8121424, upload-time = "2026-09-14T06:58:27.006Z" }, + { url = "https://files.pythonhosted.org/packages/8c/8f/77fd4a7a913b636785479922349c4cb98d94d05d15652e556b3ca0df6663/grpcio-1.84.0-cp313-cp313-win32.whl", hash = "sha256:70bb4ce8be0c5606bec259cbd7152374470396413b7863a658a08c849e6b29ff", size = 4477974, upload-time = "2026-09-14T06:58:29.528Z" }, + { url = "https://files.pythonhosted.org/packages/d0/9a/1fa59ddbfc8898e5518d1447e46f771f387f0ed6132ad531395338e51a5c/grpcio-1.84.0-cp313-cp313-win_amd64.whl", hash = "sha256:b61692f0069b3eee2fc8a3a1b7f6c044df9e03fede6ce69b3ca832e1c39f26c5", size = 5255326, upload-time = "2026-09-14T06:58:31.781Z" }, + { url = "https://files.pythonhosted.org/packages/26/6f/e25ca89ca5b0b7b95464c907a5c21a77c0ac8c4ee1dca164c4dd8f153ddb/grpcio-1.84.0-cp314-cp314-linux_armv7l.whl", hash = "sha256:026d757df86c5b7a41de8200b9a2cda454aaa5004cb0c7e3374c66eb82f61499", size = 6428207, upload-time = "2026-09-14T06:58:34.401Z" }, + { url = "https://files.pythonhosted.org/packages/cd/b4/6b76b429f3f9b901cdbc306c81364d708bc957f847a05cbd1046cd2d05d8/grpcio-1.84.0-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:3de427b05f244ba2c2a9bdc67e7a6731c8340811524ecc4435466549f8af1d17", size = 12342420, upload-time = "2026-09-14T06:58:37.416Z" }, + { url = "https://files.pythonhosted.org/packages/af/64/ac86d638ba7f73bee0dccb608ba551d4f63adf75151f00d2c43e46d3979e/grpcio-1.84.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e90e3bdf7b5eac005fef631adae9cafde16f922def207b80a7c46b253c18ad20", size = 6998396, upload-time = "2026-09-14T06:58:40.535Z" }, + { url = "https://files.pythonhosted.org/packages/4a/65/fa12e9ec9d7ebf8cc3e81428fa9e1ca0d30d22d546ce2baa4c64bc917cbc/grpcio-1.84.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:e88d304f094f4937bc27ec6a435e218a084168f11ec630c8d5d39b431d08d81d", size = 7757538, upload-time = "2026-09-14T06:58:43.297Z" }, + { url = "https://files.pythonhosted.org/packages/21/d7/94240c7fae121ff1f116dcf04a3b7ee0216a06832c704310363f72638d4c/grpcio-1.84.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:57dc36a5ab0e676f5f6e171de2917fd0aef73f32a9aaf23956bfe19997a30bd1", size = 7161480, upload-time = "2026-09-14T06:58:45.939Z" }, + { url = "https://files.pythonhosted.org/packages/23/c9/7033e95d4b344969818b09185721c7608b47fc2498d97b5e4eec4995dbf3/grpcio-1.84.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:5deda5b4bf62769eb98c119cca43d40e1231e34846b19db5cdea821d446a2253", size = 7720191, upload-time = "2026-09-14T06:58:48.308Z" }, + { url = "https://files.pythonhosted.org/packages/95/22/b45df2deba81d55069076859480bae7109c9eec02bce5515c799530cc2aa/grpcio-1.84.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:9bab4cf571653a8afffb83ce21aa27b51dfe629b526b7b6adec35491fe1fc2ea", size = 8762792, upload-time = "2026-09-14T06:58:51.068Z" }, + { url = "https://files.pythonhosted.org/packages/de/c4/3e1c3d6155c16b8737cc31d5b477d6cf1fc7cdd10d58320cf0ec9b446f42/grpcio-1.84.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:c5559b492007dc09b4de9b95dab05f0b5e53547aad230cf07e46c7dd017a3be5", size = 8123299, upload-time = "2026-09-14T06:58:54.332Z" }, + { url = "https://files.pythonhosted.org/packages/56/fe/f4864de5b815e5ba18858771f99381a398fac14117f89ef5291ed43d3c4e/grpcio-1.84.0-cp314-cp314-win32.whl", hash = "sha256:2c024da73b296f040b8360e60bd73a659b230093684a438da0e1260f34cc724e", size = 4562560, upload-time = "2026-09-14T06:58:56.894Z" }, + { url = "https://files.pythonhosted.org/packages/44/03/640811d4d8c84f5e603995c5a9bab725223aa472cad9ca4286c3bbf1c3e3/grpcio-1.84.0-cp314-cp314-win_amd64.whl", hash = "sha256:800b7e00d92553313c0463c200087930aa78678ec1d528193aeb50906f55989b", size = 5394092, upload-time = "2026-09-14T06:58:59.61Z" }, + { url = "https://files.pythonhosted.org/packages/4a/1a/9e3d2c9f005f680f03308fa894b1db91d4ab3f0fe65ff630c69561e91e95/grpcio-1.84.0-cp315-cp315-linux_armv7l.whl", hash = "sha256:47ecf0d9b81d981f07b61bd89eced9d2582f5eaacc3aaa36ad27f81aef70a27f", size = 6428252, upload-time = "2026-09-14T06:59:02.597Z" }, + { url = "https://files.pythonhosted.org/packages/77/34/0bc9f52ebf091311651eeab3a452fb557985604a3088cb5406f4d6df85d3/grpcio-1.84.0-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:61386101ecaa096b694d0dd278caf99a56aeec78440cc17e918eef0b50f2d567", size = 12359488, upload-time = "2026-09-14T06:59:05.646Z" }, + { url = "https://files.pythonhosted.org/packages/93/0e/c31052712f241cb6ecae9c226fabd519b7f8c64a7a40bac27e9ca0405b78/grpcio-1.84.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f6d178ba6dc8e82976c184b65fddde172d054c17237993a3e083efe4f134d55b", size = 7019339, upload-time = "2026-09-14T06:59:08.76Z" }, + { url = "https://files.pythonhosted.org/packages/55/b9/b9b33ea4f1eb4cad28833cade604febf357385b5ebb0c9c7562d020e167a/grpcio-1.84.0-cp315-cp315-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:15bb76489e337fc492685c9758e2fd4d4ab516b901ad830dc5a91987decf00be", size = 7107974, upload-time = "2026-09-14T06:59:11.568Z" }, + { url = "https://files.pythonhosted.org/packages/0e/9e/799d4c45db91bbdcd8c54b3982932dbcf3d059f7ce67dca3e8540faa1ece/grpcio-1.84.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:82da34ae4f639c73ac46e521e00c0a49bf86f717b9fb1f405f133e98731e38dc", size = 7200036, upload-time = "2026-09-14T06:59:14.401Z" }, + { url = "https://files.pythonhosted.org/packages/45/dc/dcfdd13ada41aff9098f0c2c6f260eb7debbc88b84b7e5fcbd085165427d/grpcio-1.84.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:9b73836ba0e16fcbb57c31cf6cbc2907c8d8c790b83679df454b74bd15e0be04", size = 7742281, upload-time = "2026-09-14T06:59:17.348Z" }, + { url = "https://files.pythonhosted.org/packages/55/31/75eab2ec77b80804bc5e21cec99b57598e726fca6484cd3e8920a97639d5/grpcio-1.84.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:42959bd50dd660ffc3f2a9bec15a6da4f9aaa0dda555d59ff2d2e80b908456a8", size = 8113629, upload-time = "2026-09-14T06:59:20.584Z" }, + { url = "https://files.pythonhosted.org/packages/34/f0/fdcf6bdc1df9ca11679a1187bef8e6b81df31a2baae69497e17344f05ea3/grpcio-1.84.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:659728f20fc7a0933ed7b1945435e31014b97ab8a5a7edcbaa70da4794aeb191", size = 8152972, upload-time = "2026-09-14T06:59:24.523Z" }, + { url = "https://files.pythonhosted.org/packages/5c/cf/6720e720bfa80fcb1ace873f66724eb3c8b03bba2fa078a30c12cab3212e/grpcio-1.84.0-cp315-cp315-win32.whl", hash = "sha256:edb6f87fc60ff438557291501b3e16c7a77c3b01a52d782cf276dccc7c5dd89c", size = 4561981, upload-time = "2026-09-14T06:59:27.275Z" }, + { url = "https://files.pythonhosted.org/packages/7f/b9/69d8a709df225bc2e06e028e9465166b174c24b3da07cc72d9a5ddc63194/grpcio-1.84.0-cp315-cp315-win_amd64.whl", hash = "sha256:4119efa6519871719ad81f33bc95ab87857dcb1c5801f30a6e592f2c41164169", size = 5394757, upload-time = "2026-09-14T06:59:30.118Z" }, ] [[package]] @@ -1545,38 +1570,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, ] -[[package]] -name = "hf-xet" -version = "1.5.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/4b/2d/57fd21d84d93efb4bd0b962383790e19dd1bc053501b4264c97903b4e83e/hf_xet-1.5.1.tar.gz", hash = "sha256:51ef4500dab3764b41135ee1381a4b62ce56fc54d4c92b719b59e597d6df5bf6", size = 876636, upload-time = "2026-06-08T23:02:53.897Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/64/ee/dd9ba7beae1005e54131b7d45263cc74c8a066d47d354e6d58ae9445a388/hf_xet-1.5.1-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:dbf48c0d02cf0b2e568944330c60d9120c272dabe013bd892d48e25bc6797577", size = 4069485, upload-time = "2026-06-08T23:02:13.193Z" }, - { url = "https://files.pythonhosted.org/packages/b6/bc/9cae6cfeb4e03070874e73e5c97c66eb90369d3206b6a2b1ef5f96520888/hf_xet-1.5.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e78e4e5192ad2b674c2e1160b651cb9134db974f8ae1835bdfbfb0166b894a43", size = 3838493, upload-time = "2026-06-08T23:02:15.282Z" }, - { url = "https://files.pythonhosted.org/packages/ba/b4/d5c01e0eb6d9f2ca2dacd84d0d1b71e6cfbb2ef3208c968528e010e9b3d7/hf_xet-1.5.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6f7a04a8ad962422e225bc49fbbac99dc1806764b1f3e54dbd154bffa7593947", size = 4505658, upload-time = "2026-06-08T23:02:17.196Z" }, - { url = "https://files.pythonhosted.org/packages/76/c5/29a7598c0c6383c523dc22186d577f4e04267a626cd95ae60f67c00bfe66/hf_xet-1.5.1-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:d48199c2bf4f8df0adc55d31d1368b6ec0e4d4f45bc86b08038089c23db0bed8", size = 4292822, upload-time = "2026-06-08T23:02:18.608Z" }, - { url = "https://files.pythonhosted.org/packages/04/9a/dceaf6ca69390126b86ea825fb354b93d01163199070b7bd849225de9468/hf_xet-1.5.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:97f212a88d14bbf573619a74b7fecb238de77d08fc702e54dec6f78276ca3283", size = 4491255, upload-time = "2026-06-08T23:02:20.124Z" }, - { url = "https://files.pythonhosted.org/packages/48/a7/e5a7afaacf6c1791fdbeeac42951fb81c3d2bc482992b115dedcc86d963e/hf_xet-1.5.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f61e3665892a6c8c5e765395838b8ddf36185da835253d4bc4509a81e49fb342", size = 4711062, upload-time = "2026-06-08T23:02:21.863Z" }, - { url = "https://files.pythonhosted.org/packages/53/49/2802f8433c9742ce281bddc1e65c02c32268ca3098d66828b05e12e45ee2/hf_xet-1.5.1-cp313-cp313t-win_amd64.whl", hash = "sha256:f4ad3ebd4c32dd2b27099d69dc7b2df821e30767e46fb6ee6a0713778243b8ff", size = 4017205, upload-time = "2026-06-08T23:02:23.495Z" }, - { url = "https://files.pythonhosted.org/packages/9e/5a/50c71195b9fb883659f596e7252faf4c18c58e753a9013bdbf9bac5d2250/hf_xet-1.5.1-cp313-cp313t-win_arm64.whl", hash = "sha256:8298485c1e36e7e67cbd01eeb1376619b7af43d4f1ec245caae306f890a8a32d", size = 3845426, upload-time = "2026-06-08T23:02:25.124Z" }, - { url = "https://files.pythonhosted.org/packages/05/24/5e0c28f80371c17d49fed004597d9d132cb75c1f6f53db2cb95f459d2312/hf_xet-1.5.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:3474760d10e3bb6f92ff3f024fcb00c0b3e4001e9b035c7483e49a5dd17aa70f", size = 4069676, upload-time = "2026-06-08T23:02:26.759Z" }, - { url = "https://files.pythonhosted.org/packages/d2/17/261ba565b6a4d960fb478f61fdf919c0be5824645aaf1c319eca660c1611/hf_xet-1.5.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6762d89b9e3267dfd502b29b2a327b4525f33b17e7b509a78d94e2151a30ce30", size = 3838509, upload-time = "2026-06-08T23:02:28.573Z" }, - { url = "https://files.pythonhosted.org/packages/4e/44/7ffdc2e184b0d41fc0f683ba3936ef669ab63cf242cf36ef50e57d683668/hf_xet-1.5.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bf67e6ed10260cef62e852789dc91ebb03f382d5bdc4b1dbeb64763ea275e7d6", size = 4505881, upload-time = "2026-06-08T23:02:30.257Z" }, - { url = "https://files.pythonhosted.org/packages/63/b6/788060d5aa4d5e671f1a31bf69624c314eb2d8babab3aa562f9e5d53444e/hf_xet-1.5.1-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:c6b6cd08ca095058780b50b8ce4d6cbf6787bcf27841705d58a9d32246e3e47a", size = 4292995, upload-time = "2026-06-08T23:02:31.993Z" }, - { url = "https://files.pythonhosted.org/packages/22/93/c5540cbd6b55529b7dc42f6734e88cebee21aefbea34128b66229df56c57/hf_xet-1.5.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e1af0de8ca6f190d4294a28b88023db64a1e2d1d719cab044baf75bec569e7a9", size = 4491570, upload-time = "2026-06-08T23:02:33.86Z" }, - { url = "https://files.pythonhosted.org/packages/03/f3/9d8ceab30f44f36c1679b1b8683054c71a0dadc787dbf07421891742d3ca/hf_xet-1.5.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:4f561cbbb92f80960772059864b7fb07eae879adde1b2e781ec6f86f6ac26c59", size = 4711565, upload-time = "2026-06-08T23:02:35.454Z" }, - { url = "https://files.pythonhosted.org/packages/cd/54/27ed9a5e2cc583b4df82f75a03a4df8dbf55f5a9fa1f47f1fadfb20dbeac/hf_xet-1.5.1-cp314-cp314t-win_amd64.whl", hash = "sha256:e7dbb40617410f432182d918e37c12303fe6700fd6aa6c5964e30a535a4461d6", size = 4017343, upload-time = "2026-06-08T23:02:37.14Z" }, - { url = "https://files.pythonhosted.org/packages/ae/12/ecb2fc8d45e767580e3a37faa97cb895608b614965567efb4f18cff67e27/hf_xet-1.5.1-cp314-cp314t-win_arm64.whl", hash = "sha256:6071d5ccb4d8d2cbd5fea5cc798da4f0ba3f44e25369591c4e89a4987050e61d", size = 3845716, upload-time = "2026-06-08T23:02:39.073Z" }, - { url = "https://files.pythonhosted.org/packages/7a/d8/5e54cf37434759d1f4f2ba9b66077ff9d4c4e1f37b6bd7975da5c40d94ab/hf_xet-1.5.1-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:6abd35c3221eff63836618ddfb954dcf84798603f71d8e33e3ed7b04acfdbe6e", size = 4077794, upload-time = "2026-06-08T23:02:40.656Z" }, - { url = "https://files.pythonhosted.org/packages/35/94/4b2ecfbad8f8b04701a23aefb62f540b9137d058b7e1dbef16a32676f0e9/hf_xet-1.5.1-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:94e761bbd266bf4c03cee73753916062665ce8365aa40ed321f45afcb934b41e", size = 3845354, upload-time = "2026-06-08T23:02:42.702Z" }, - { url = "https://files.pythonhosted.org/packages/de/cc/f99f4bc7295023d7bd9ebbfd51f75cc530ca262c1227666268b8208f4b77/hf_xet-1.5.1-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:892e3a3a3aecc12aded8b93cf4f9cd059282c7de0732f7d55026f3abdf474350", size = 4514864, upload-time = "2026-06-08T23:02:44.497Z" }, - { url = "https://files.pythonhosted.org/packages/cd/6e/21f7e5a2381278bd3b7b7a5a4d90038518bb6308a0c1daf5d9f8268bb178/hf_xet-1.5.1-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:a93df2039190502835b1db8cd7e178b0b7b889fe9ab51299d5ced26e0dd879a4", size = 4303784, upload-time = "2026-06-08T23:02:46.203Z" }, - { url = "https://files.pythonhosted.org/packages/35/0e/f992bb6927ac1cb30ef74e62268f551f338bc32b2191f7c96a44c6f7283e/hf_xet-1.5.1-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:0c97106032ef70467b4f6bc2d0ccc266d7613ee076afc56516c502f87ce1c4a6", size = 4500703, upload-time = "2026-06-08T23:02:47.628Z" }, - { url = "https://files.pythonhosted.org/packages/fb/d1/90a498d05447980b977b1669246eeeeae4cfb0ea3e7a286eaba627f91bf9/hf_xet-1.5.1-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:6208adb15d192b90e4c2ad2a27ed864359b2cb0f2494eb6d7c7f3699ac02e2bf", size = 4719498, upload-time = "2026-06-08T23:02:49.268Z" }, - { url = "https://files.pythonhosted.org/packages/6d/b6/20f99cfe97cc663a711f7b33cc21d4793e51968e9a26125b4afcd77315ba/hf_xet-1.5.1-cp37-abi3-win_amd64.whl", hash = "sha256:f7b3002f95d1c13e24bcb4537baa8f0eb3838957067c91bb4959bc004a6435f5", size = 4026419, upload-time = "2026-06-08T23:02:50.829Z" }, - { url = "https://files.pythonhosted.org/packages/f9/fa/77453694888f03e5a8c8852d1514a0894d8e81c622d39edbaf308ea0dcf4/hf_xet-1.5.1-cp37-abi3-win_arm64.whl", hash = "sha256:93d090b57b211133f6c0dab0205ef5cb6d89162979ba75a74845045cc3063b8e", size = 3855178, upload-time = "2026-06-08T23:02:52.452Z" }, -] - [[package]] name = "httpcore" version = "1.0.9" @@ -1590,6 +1583,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, ] +[[package]] +name = "httpcore2" +version = "2.13.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "h11", marker = "python_full_version != '3.12.*' or sys_platform != 'emscripten'" }, + { name = "truststore", marker = "python_full_version != '3.12.*' or sys_platform != 'emscripten'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/cb/f3/1db7aa2bc2524062192bb0e0323969492d1883152a232fe36eea65f4e35c/httpcore2-2.13.1.tar.gz", hash = "sha256:e0aa977abe17e69a3b820a24542a6fa88702676d83880b8d194dcd18408e5103", size = 68071, upload-time = "2026-09-23T07:47:22.372Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/09/ba/a4568248771ce81957bfb7cc600264a40fbcda092391ee1c415c50be4bea/httpcore2-2.13.1-py3-none-any.whl", hash = "sha256:e1e05d4f25f7d7d496bfb96748f6f4b67657b03da069b3a68c36069f3db73d0a", size = 83423, upload-time = "2026-09-23T07:47:19.365Z" }, +] + [[package]] name = "httpx" version = "0.28.1" @@ -1615,23 +1621,29 @@ wheels = [ ] [[package]] -name = "huggingface-hub" -version = "1.23.0" +name = "httpx2" +version = "2.13.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "click" }, - { name = "filelock" }, - { name = "fsspec" }, - { name = "hf-xet", marker = "platform_machine == 'AMD64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'" }, - { name = "httpx" }, - { name = "packaging" }, - { name = "pyyaml" }, - { name = "tqdm" }, - { name = "typing-extensions" }, + { name = "anyio", marker = "sys_platform != 'emscripten'" }, + { name = "httpcore2", marker = "sys_platform != 'emscripten'" }, + { name = "httpx2-jsfetch", marker = "python_full_version >= '3.12' and sys_platform == 'emscripten'" }, + { name = "idna" }, + { name = "truststore", marker = "sys_platform != 'emscripten'" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/1a/8f/999e4dda11c6187c78f090eac00895a47e11a0049308f07579bcb7aa3aa2/huggingface_hub-1.23.0.tar.gz", hash = "sha256:c04997fb8bbdace1e57b7703d30ed7678af51f70d00d241819ff411b92ae9a88", size = 919163, upload-time = "2026-07-09T14:49:32.315Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d5/44/474bef2a0e9d90f1715d32cb98b0738695ca17ba324095fb2497ed7fbd59/httpx2-2.13.1.tar.gz", hash = "sha256:e48744a19e3af5ee48313d0ce5fe941d5422fae5705ea922a4aabf94d7800dfa", size = 100405, upload-time = "2026-09-23T07:47:23.052Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f1/ce/13b2ba57838b8db1e6bd033c1b21ce0b9f6153b87d4e4939f77074e41eb0/huggingface_hub-1.23.0-py3-none-any.whl", hash = "sha256:b1d604788f5adc7f0eb246e03e0ec19011ca06e38400218c347dccc3dffa64a2", size = 770336, upload-time = "2026-07-09T14:49:30.597Z" }, + { url = "https://files.pythonhosted.org/packages/d8/9c/6fe8931fd9f381042a9e4c7d5a7b4cbf7016b252bec0c99a49fce42c3326/httpx2-2.13.1-py3-none-any.whl", hash = "sha256:6dff50fabc270ee5fd25d845d0b078ed20564579744d6d962850975996d2f9a4", size = 95597, upload-time = "2026-09-23T07:47:20.995Z" }, +] + +[[package]] +name = "httpx2-jsfetch" +version = "1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cd/c4/0e5636363151a2a1795e0a77617168b9ca438e1748ec05fc9b5687f93d64/httpx2_jsfetch-1.0.tar.gz", hash = "sha256:70a0e3eabfef7cce5ad9c629f7d01ca05e418f586646f4ddf14782e4c1454c60", size = 6872, upload-time = "2026-08-07T00:13:07.492Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9b/43/832f631d32e4f1211caa2ba368317739fe71f0b8530e4c9d15dc454bac2a/httpx2_jsfetch-1.0-py3-none-any.whl", hash = "sha256:cb916b707601e69a07721aabc8f3f6659be3a6893bc1ff5c6f9e02241df2da32", size = 6382, upload-time = "2026-08-07T00:13:06.567Z" }, ] [[package]] @@ -1648,23 +1660,23 @@ wheels = [ [[package]] name = "idna" -version = "3.18" +version = "3.20" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/cd/63/9496c57188a2ee585e0f1db071d75089a11e98aa86eb99d9d7618fc1edce/idna-3.18.tar.gz", hash = "sha256:ffb385a7e039654cef1ab9ef32c6fafe283c0c0467bba1d9029738ce4a14a848", size = 196711, upload-time = "2026-06-02T14:34:07.794Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/5e/d4e9f1a599fb8e573b7b87160658329fbf28d19eac2718f51fc3def3aa5a/idna-3.18-py3-none-any.whl", hash = "sha256:7f952cbe720b688055e3f87de14f5c3e5fdaa8bc3928985c4077ca689de849a2", size = 65455, upload-time = "2026-06-02T14:34:06.319Z" }, + { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" }, ] [[package]] name = "importlib-metadata" -version = "8.9.0" +version = "9.0.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "zipp" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e7/72/c600ae4f68c28fc19f9c31b9403053e5dbb8cace2e6842c7b7c3e4d42fe9/importlib_metadata-8.9.0.tar.gz", hash = "sha256:58850626cef4bd2df100378b0f2aea9724a7b92f10770d547725b047078f99ee", size = 56140, upload-time = "2026-03-20T16:56:26.362Z" } +sdist = { url = "https://files.pythonhosted.org/packages/6f/7e/1e7e8dc30634b93ebb3d58a3dea569ad146e656218d3960ab04f62047b29/importlib_metadata-9.0.1.tar.gz", hash = "sha256:ab830580bc0ef3db61ce8fae716389e5462b67e033018bab6d8f80ef17172f99", size = 59124, upload-time = "2026-08-28T15:30:34.646Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/7d/f9/97f2ca8bb3ec6e4b1d64f983ebe98b9a192faddff67fac3d6303a537e670/importlib_metadata-8.9.0-py3-none-any.whl", hash = "sha256:e0f761b6ea91ced3b0844c14c9d955224d538105921f8e6754c00f6ca79fba7f", size = 27220, upload-time = "2026-03-20T16:56:25.07Z" }, + { url = "https://files.pythonhosted.org/packages/b3/55/ecca97ae19075f1fac62def77731e7f535e6c1fb8f92ff08160c5e6dade8/importlib_metadata-9.0.1-py3-none-any.whl", hash = "sha256:bba5600596a7e21f3eef53281cf28d6a5195634d2f2b78ff9501a3272c6eaab0", size = 27920, upload-time = "2026-08-28T15:30:33.433Z" }, ] [[package]] @@ -1673,7 +1685,6 @@ version = "24.11.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "packaging" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/ef/3c/82e84109e02c492f382c711c58a3dd91badda6d746def81a1465f74dc9f5/incremental-24.11.0.tar.gz", hash = "sha256:87d3480dbb083c1d736222511a8cf380012a8176c2456d01ef483242abbbcf8c", size = 24000, upload-time = "2025-11-28T02:30:17.861Z" } wheels = [ @@ -1682,11 +1693,11 @@ wheels = [ [[package]] name = "iniconfig" -version = "2.3.0" +version = "2.3.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" } +sdist = { url = "https://files.pythonhosted.org/packages/01/e1/2069291243c926a2ff1cd706c7f3eeb9b62144bf60f77c9fb9ff2fb26bd3/iniconfig-2.3.1.tar.gz", hash = "sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960", size = 21209, upload-time = "2026-10-06T22:48:38.076Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" }, + { url = "https://files.pythonhosted.org/packages/56/43/4ca9e49d27a1fcf6bece6f6aec0ea46bb9112489b93d4b688fb415457bdb/iniconfig-2.3.1-py3-none-any.whl", hash = "sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7", size = 7552, upload-time = "2026-10-06T22:48:36.959Z" }, ] [[package]] @@ -1757,101 +1768,115 @@ wheels = [ [[package]] name = "jiter" -version = "0.16.0" +version = "0.17.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/1d/1f/10936e16d8860c70698a1aa939a46aa0224813b782bce4e000e637da0b2d/jiter-0.16.0.tar.gz", hash = "sha256:7b24c3492c5f4f84a37946ad9cf504910cf6a782d6a4e0689b6673c5894b4a1c", size = 176431, upload-time = "2026-06-29T13:05:13.657Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/76/d8/b959609e44012a42b1f3e5ba98ea3b33c7e41e6d4b77cd8f00fd19b1d3ad/jiter-0.16.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:c5fc4f8def331036a7b8e981b4347ebe409981edbc8308a5ea842b8c3614fa6c", size = 310082, upload-time = "2026-06-29T13:02:31.356Z" }, - { url = "https://files.pythonhosted.org/packages/c6/3d/4d7f5667ea0e0548534ba880b84bb3d12924fd133aa83ad6c6c80fca3d76/jiter-0.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5a71d0d2014c3275043e1170bf3d4e771493cb0dcf07be54c567155f4d8ee64b", size = 315643, upload-time = "2026-06-29T13:02:33.204Z" }, - { url = "https://files.pythonhosted.org/packages/9b/83/bed2dcb5c9f3e1ccfcbc67dda48265fe7d5ad0c9cadda5fe95f6e3b87f94/jiter-0.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:741eed508c233a76313a1c7b001f8f21b82f14327e9196ae8bd29a2cc164ae84", size = 341363, upload-time = "2026-06-29T13:02:34.853Z" }, - { url = "https://files.pythonhosted.org/packages/f4/2f/6bb3c3dda668ebc0445689c81a2b0f26a82b10843d67ed9c9b2c3edc177f/jiter-0.16.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3fb7bc819187b56dc48aa5c833aaf92257da8e07efdb9306156667bd2eeb491c", size = 365483, upload-time = "2026-06-29T13:02:36.295Z" }, - { url = "https://files.pythonhosted.org/packages/92/35/8a045ccb39164e70dcdae696413b661771f148b68b12b175c3a04d901937/jiter-0.16.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7c9610fd25ebccb43fca584136f5c2fbb26802447eccd430dfdbab95a0fd5126", size = 461219, upload-time = "2026-06-29T13:02:38.116Z" }, - { url = "https://files.pythonhosted.org/packages/e7/99/22292dbbf0ed0c610cfe5ddc7f3bd67237a412f121318f865196e62a07bd/jiter-0.16.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4a1d68ff7ca1d3b5dee20a97a3decda7d5f15003823bf6d140c81f8561d3bc5c", size = 374905, upload-time = "2026-06-29T13:02:40.357Z" }, - { url = "https://files.pythonhosted.org/packages/29/ac/2f55ccb1f0eeafa6d89d24caf52f6f0944a59290ee199e9ade62177dca42/jiter-0.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fb08c276dd02dac3a284acdd02cacc630d2e3cd6572a4b85519f35cbd133c3de", size = 348320, upload-time = "2026-06-29T13:02:41.923Z" }, - { url = "https://files.pythonhosted.org/packages/50/e3/7d88b9174c40064fabc07c84a9b62e6b10f5644562ec0e0a29392edbe978/jiter-0.16.0-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:8fc4d94713c4697347e38faf7d6ef91547c142219bdcfc7220c4870879974244", size = 356519, upload-time = "2026-06-29T13:02:43.436Z" }, - { url = "https://files.pythonhosted.org/packages/27/57/c4a33aeef513a9d5e26e31534e0bcc752d6ea0e54c94ddb7b68bade669c2/jiter-0.16.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1a0f05e229edb29e68cdd0ccb83cea13b64263416120cf943767a6fd72e6787f", size = 394204, upload-time = "2026-06-29T13:02:44.987Z" }, - { url = "https://files.pythonhosted.org/packages/9d/70/c6c23e76ebb3766b111bc399437bbc9f870a76e2a92e10b2a5f561d57372/jiter-0.16.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:2c842cbf374a8daf50b2c04212995bee34ca2ac2cdc29a901b4cdb072c9c4131", size = 521477, upload-time = "2026-06-29T13:02:46.724Z" }, - { url = "https://files.pythonhosted.org/packages/2a/d3/0001c8c0c5976af2625bb1cfb1895e8ec693b6589fe4574b8e6fc2c85501/jiter-0.16.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:5ed466aee31294d7cdcd4d37dfe5c42c97bc29d9a5f00eacf24504358309cb9b", size = 552187, upload-time = "2026-06-29T13:02:48.144Z" }, - { url = "https://files.pythonhosted.org/packages/f6/76/311b718e07e85740e48619c0632b36f7e0b8d113984499e436452ed13a9a/jiter-0.16.0-cp310-cp310-win32.whl", hash = "sha256:b42e9ff5376819c053da25809a8d4b6fa6e473b4856ebe42e298ac958be3d7f9", size = 206513, upload-time = "2026-06-29T13:02:49.515Z" }, - { url = "https://files.pythonhosted.org/packages/db/7f/ac680eeb0777dc0eb7dc824800ba27880d7f6bc712e362d34ad8ee559f36/jiter-0.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:10438939205546132189c8e74a2d536a707841f3a25cd7c74ee91fe503407a26", size = 199505, upload-time = "2026-06-29T13:02:50.829Z" }, - { url = "https://files.pythonhosted.org/packages/4e/3f/fae6cc967d120ec89e31c5418a51176d8278b3087fbb384a9176754f353c/jiter-0.16.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:67fddeda1688f0cce2d2ae83ccf8a80f79936f2d2997d6cc2261f82fdb54a4d3", size = 309289, upload-time = "2026-06-29T13:02:52.301Z" }, - { url = "https://files.pythonhosted.org/packages/c8/e3/97c6c3562c077f6247d6e6ce5c82562500b6316c0d928e97e106b7a1321a/jiter-0.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c90c0f63df322be920eda6ce622e3083d8906ba267f8220fe7873213b8b4430e", size = 315181, upload-time = "2026-06-29T13:02:53.964Z" }, - { url = "https://files.pythonhosted.org/packages/7b/89/d8d073f8aa2667e46c6c0873f86fe4a512bba4293cc730f626a076211a62/jiter-0.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64c0203212098470032aabcde9356fc168f377aade3e43def61dfe17e92f2037", size = 340939, upload-time = "2026-06-29T13:02:55.412Z" }, - { url = "https://files.pythonhosted.org/packages/87/c9/db4fda3ed73fb864139305e935e5b8b38a5a24692a5a9dd356c22f1b9c8d/jiter-0.16.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:12288303c9844e61e1651d02a9a6f6633e47d39f897d6991d1427161ce6b746e", size = 364932, upload-time = "2026-06-29T13:02:57.28Z" }, - { url = "https://files.pythonhosted.org/packages/a2/74/52b5e86241057f52ddd7c9a580f90effb51f9d06239f6fc612279b91a838/jiter-0.16.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cf109d010b4b05a105afb3d43be36a21322d345ad3111e13d15f680afef0e5b", size = 461132, upload-time = "2026-06-29T13:02:58.994Z" }, - { url = "https://files.pythonhosted.org/packages/a9/87/544a700f7447c1f31c5d7833821a4daa5683165c2d5a094fbf5b5800c3dc/jiter-0.16.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:62c1b7fe1f77925acf5af68b6140b8810fa87dfd4dc0a9c8568ec2fa2a10429c", size = 374857, upload-time = "2026-06-29T13:03:00.455Z" }, - { url = "https://files.pythonhosted.org/packages/40/cd/0fcc3f7d39183674d5bfa9ec640faaeb506c60be7c8f94625dfba366e37c/jiter-0.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8597d23c87f59294f83bcb6229b9ed1fccee13dbba967b46930d2f1759466fee", size = 347053, upload-time = "2026-06-29T13:03:02.045Z" }, - { url = "https://files.pythonhosted.org/packages/5c/ae/c7e64e7932ad597fa395b61440b249ada6366716e25c6e08dd2afbd021e6/jiter-0.16.0-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:3126a5dbad56401989ac769aca0cb56005bfb3e2366eea0ca99d1a91c3c1ee03", size = 356153, upload-time = "2026-06-29T13:03:03.706Z" }, - { url = "https://files.pythonhosted.org/packages/d4/1c/1c719044f14da814e1a060191ab19b96f3e99207bc5b4bfc6d6be34b3f80/jiter-0.16.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c4b4717bdb35ae456f831a6b08d01880fff399887a6bbc526a583a406e484eea", size = 393956, upload-time = "2026-06-29T13:03:05.165Z" }, - { url = "https://files.pythonhosted.org/packages/3b/dc/7b2f303a2847207e265503853a2d964a55354cffd62a5f2936c155486798/jiter-0.16.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:adff21bc78edfe086c15eb495b900306076de378dc2337c132401fc39bd79c91", size = 521081, upload-time = "2026-06-29T13:03:06.886Z" }, - { url = "https://files.pythonhosted.org/packages/c2/5f/501cf6e1e09caeb420195179ffc6f62aca603f1220ec53fd80d0d70b3e56/jiter-0.16.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:dab907db06fc593645e73109acf4581ba5b548897d28b9348dc41ddc8343b2d3", size = 552085, upload-time = "2026-06-29T13:03:08.339Z" }, - { url = "https://files.pythonhosted.org/packages/79/54/aa5be86520113b79455c3877f3d1f07a348098df4083ba3688e9537e52dd/jiter-0.16.0-cp311-cp311-win32.whl", hash = "sha256:560b2cf3fb03240cd34f27409a238547488708f05b7c3924f571a60422251ec7", size = 206755, upload-time = "2026-06-29T13:03:09.653Z" }, - { url = "https://files.pythonhosted.org/packages/64/ec/2feb893eb330bd69b413866f4d5daada33c3962f1c6f270c91ca2d87fdf9/jiter-0.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:e431cfc9caf44c1d5459ff77d4e64cbf85fddb6a35dad836a15c6a9ec23087c1", size = 199155, upload-time = "2026-06-29T13:03:10.979Z" }, - { url = "https://files.pythonhosted.org/packages/b9/9c/ca040d94415048a3666fc237774df8151c96f8d2b661cbe3b184acc95876/jiter-0.16.0-cp311-cp311-win_arm64.whl", hash = "sha256:2a8e9e39cf083016137aa5cadafe3188adc2ba6ba1fbf1e5d18889ad3e9ad056", size = 194403, upload-time = "2026-06-29T13:03:12.341Z" }, - { url = "https://files.pythonhosted.org/packages/83/2b/52ace16ed031354f0539749a49e4bf33797d82bea5137910835fa4b09793/jiter-0.16.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:67c3bc1760f8c99d805dcab4e644027142a53b1d5d861f18780ebdbd5d40b72a", size = 306943, upload-time = "2026-06-29T13:03:14.035Z" }, - { url = "https://files.pythonhosted.org/packages/94/2e/34957c2c1b661c252ba9bcc60ae0bddc27e0f7202c6073326a13c5390eec/jiter-0.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5af7780e4a26bd7d0d989592bf9ef12ebf806b74ab709223ecca37c749872ea9", size = 307779, upload-time = "2026-06-29T13:03:15.418Z" }, - { url = "https://files.pythonhosted.org/packages/88/6c/59bd309cab4460c54cf1079f3eb7fe7af6a4c895c5c957a53378693bad2b/jiter-0.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d5bf78d0e05e45cfdd66558893938d59afe3d1b1a824a202039b20e607d25a72", size = 335826, upload-time = "2026-06-29T13:03:17.11Z" }, - { url = "https://files.pythonhosted.org/packages/3b/8c/f5ef7b65f0df47afa16596969defb281ebb86e96df346d62be6fd853d620/jiter-0.16.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f4444a83f946605990c98f625cdd3d2725bfb818158760c5748c653170a20e0e", size = 362573, upload-time = "2026-06-29T13:03:18.781Z" }, - { url = "https://files.pythonhosted.org/packages/2b/0b/ace4354da061ee38844a0c27dc2c21eecd27aea119e8da324bea987522d0/jiter-0.16.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3a23f0e4f957e1be65752d2dfac9a5a06b1917af8dc85deb639c3b9d02e31290", size = 457979, upload-time = "2026-06-29T13:03:20.293Z" }, - { url = "https://files.pythonhosted.org/packages/55/40/c0253d3772eb9dcd8e6606ee9b2d53ec8e5b814589c47f140aa585f21eaa/jiter-0.16.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c22a488f7b9218e245a0025a9ba6b100e2e54700831cf4cf16833a27fba3ad01", size = 372302, upload-time = "2026-06-29T13:03:21.739Z" }, - { url = "https://files.pythonhosted.org/packages/a8/d2/4839422241aa12860ce597b20068727094ba0bc480723c74924ca5bad483/jiter-0.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:46add52f4ad47a08bfb1219f3e673da972191489a33016edefdb5ea55bfa8c48", size = 343805, upload-time = "2026-06-29T13:03:23.384Z" }, - { url = "https://files.pythonhosted.org/packages/e2/59/e196888a05befdda7dbe299b722d56f2f6eec65402bc34c0a3306d595feb/jiter-0.16.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:9c8a956fd72c2cf1e730d01ea080341f13aa0a97a4a33b51abebe725b7ae9ca9", size = 351107, upload-time = "2026-06-29T13:03:24.815Z" }, - { url = "https://files.pythonhosted.org/packages/ec/74/4cd9e0fca65232136400354b630fbfcd2de634e22ccbb96567725981b548/jiter-0.16.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:561926e0573ffe4a32498420a76d64b16c513e1ab413b9d28158a8764ac701e5", size = 388441, upload-time = "2026-06-29T13:03:26.266Z" }, - { url = "https://files.pythonhosted.org/packages/d9/8c/554691e48bc711299c0a293dd8a6179e24b2d66a54dc295421fcf64569c0/jiter-0.16.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:44d019fa8cdaf89bf29c71b39e3712143fdd0ac76725c6ef954f9957a5ea8730", size = 516354, upload-time = "2026-06-29T13:03:28.02Z" }, - { url = "https://files.pythonhosted.org/packages/a4/cb/01e9d69dc2cc6759d4f91e230b34489c4fdb2518992650633f9e20bece89/jiter-0.16.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:0df91907609837f33341b8e6fe73b95991fdaa57caf1a0fbd343dffe826f386f", size = 547880, upload-time = "2026-06-29T13:03:29.534Z" }, - { url = "https://files.pythonhosted.org/packages/79/70/2953195f1c6ad00f49fa67e13df7e60acb3dd4f387101bc15abccddd905e/jiter-0.16.0-cp312-cp312-win32.whl", hash = "sha256:51d7b836acb0108d7c77df1742332cac2a1fa04a74d6dacec46e7091f0e91274", size = 203473, upload-time = "2026-06-29T13:03:31.025Z" }, - { url = "https://files.pythonhosted.org/packages/2d/05/2909a8b10699a4d560f8c502b6b2c5f3991b682b1922c1eedda242b225bd/jiter-0.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:1878349266f8ee36ecb1375cc5ba2f115f35fd9f0a1a4119e725e379126647f7", size = 196905, upload-time = "2026-06-29T13:03:32.472Z" }, - { url = "https://files.pythonhosted.org/packages/e9/a9/6b82bb1c8d7790d602489b967b982a909e5d092875a6c2ade96444c8dfc5/jiter-0.16.0-cp312-cp312-win_arm64.whl", hash = "sha256:2ed5738ae4af18271a51a528b8811b0cbfa4a1858de9d83359e4169855d6a331", size = 190618, upload-time = "2026-06-29T13:03:34.672Z" }, - { url = "https://files.pythonhosted.org/packages/91/c0/555fc60473d30d66894ba825e63615e3be7524fac23858356afa7a38906c/jiter-0.16.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:41977aa5654023948c2dae2a81cbf9c43343954bef1cd59a154dd15a4d84c195", size = 306203, upload-time = "2026-06-29T13:03:36.243Z" }, - { url = "https://files.pythonhosted.org/packages/d0/2b/c3eaf16f5d7c9bad66ea32f40a95bd169b29a91217fcc7f081375157e99c/jiter-0.16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d28bb3c26762358dadf3e5bf0bccd29ae987d65e6988d2e6f49829c76b003c09", size = 306489, upload-time = "2026-06-29T13:03:37.846Z" }, - { url = "https://files.pythonhosted.org/packages/96/3f/02fdfc6705cad96127d883af5c34e4867f554f29ec7705ec1a46156400a9/jiter-0.16.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0542a7189c26920778658fc8fcf2af8bae05bae9924577f71804acef37996536", size = 335453, upload-time = "2026-06-29T13:03:39.221Z" }, - { url = "https://files.pythonhosted.org/packages/b2/a6/e4bda5920d4b0d7c5dfb7174ce4a6b2e4d3e11c9162c452ef0eab4cdbdbd/jiter-0.16.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8fb8de1e23a0cb2a7f53c335049c7b72b6db41aa6227cdcc0972a1de5cb39450", size = 361625, upload-time = "2026-06-29T13:03:40.597Z" }, - { url = "https://files.pythonhosted.org/packages/b7/97/4e6b59b2c6e55cbb3e183595f81ad65dcfb21c915fee5e19e335df21bc55/jiter-0.16.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b72d0b2990ca754a9102779ac98d8597b7cb31678958562214a007f909eab78e", size = 456958, upload-time = "2026-06-29T13:03:42.074Z" }, - { url = "https://files.pythonhosted.org/packages/15/e0/97e9557686d2f94f4b93786eccb7eed28e9228ad132ea8237f44727314a7/jiter-0.16.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d5f91b1c27fc22a57993d5a5cb8a627cb8ed4b10502716fac1ffbfe1d19d84e8", size = 372017, upload-time = "2026-06-29T13:03:43.658Z" }, - { url = "https://files.pythonhosted.org/packages/0f/94/db768b6938e0df35c86beeba3dfbbb025c9ee5c19e1aa271f2396e50864d/jiter-0.16.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c682bea068a90b764577bdb78a60a4c1d1606daf9cd4c893832a37c7cc9d9026", size = 343320, upload-time = "2026-06-29T13:03:45.226Z" }, - { url = "https://files.pythonhosted.org/packages/c1/d6/5a59d938244a30735fe62d9433fd325f9021ea29d89780ea4596ea93bc89/jiter-0.16.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:8d031aabecc4f1b6276adfb42e3aabb77c89d468bf616600e8d3a11328929053", size = 350520, upload-time = "2026-06-29T13:03:46.671Z" }, - { url = "https://files.pythonhosted.org/packages/67/f8/c4a857f49c9af125f6bbcac7e3eee7f7978ed89682833062e2dbf62576b1/jiter-0.16.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:eab2cd170150e70153de16896a1774e3a1dca80154c56b54d7a812c479a7165e", size = 387550, upload-time = "2026-06-29T13:03:48.361Z" }, - { url = "https://files.pythonhosted.org/packages/8b/d6/5fbc2f7d6b67b754caa61a993a2e626e815dec47ffc2f9e35f01adfebec7/jiter-0.16.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:6edb63a46e65a82c26800a868e49b2cac30dd5a4218b88d74bc2c848c8ad60bb", size = 515424, upload-time = "2026-06-29T13:03:49.881Z" }, - { url = "https://files.pythonhosted.org/packages/ed/54/284f0164b64a5fed915fea6ba7e9ba9b3d8d37c67d59cf2e3bb99d45cdfe/jiter-0.16.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:659039cc50b5addcc35fcc87ae2c1833b7c0a8e5326ef631a75e4478447bcf84", size = 546981, upload-time = "2026-06-29T13:03:51.363Z" }, - { url = "https://files.pythonhosted.org/packages/13/c5/2a467585a576594384e1d2c43e1224deaafc085f24e243529cf98beef8e1/jiter-0.16.0-cp313-cp313-win32.whl", hash = "sha256:c9c53be232c2e206ef9cdbad81a48bfa74c3d3f08bcf8124630a8a748aad993e", size = 202853, upload-time = "2026-06-29T13:03:53.015Z" }, - { url = "https://files.pythonhosted.org/packages/88/6a/de61d04b9eec69c71719968d2f716532a3bc121170c44a39e14979c6be81/jiter-0.16.0-cp313-cp313-win_amd64.whl", hash = "sha256:baad945ed47f163ad833314f8e3288c396118934f94e7bbb9e243ce4b341a4fd", size = 196160, upload-time = "2026-06-29T13:03:54.447Z" }, - { url = "https://files.pythonhosted.org/packages/19/4b/b390ed59bafb3f31d008d1218578f10327714484b334439947f7e5b11e7f/jiter-0.16.0-cp313-cp313-win_arm64.whl", hash = "sha256:3c1fd2dbe1b0af19e987f03fe66c5f5bd105a2229c1aff4ab14890b24f41d21a", size = 189862, upload-time = "2026-06-29T13:03:55.754Z" }, - { url = "https://files.pythonhosted.org/packages/a7/89/bc4f1b57d5da938fd344a466396541e586d161320d70bffd929aaafcd8f4/jiter-0.16.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:b2c61484666ad42726029af0c00ef4541f0f3b5cdc550221f56c2343208018ee", size = 308239, upload-time = "2026-06-29T13:03:57.205Z" }, - { url = "https://files.pythonhosted.org/packages/65/7a/c415453e5213001bf3b411ff65dec3d303b0e76a4a2cfea9768cd4960994/jiter-0.16.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:63efadc657488f45db1c676d81e704cac2abf3fdb892def1faea61db053127e2", size = 308928, upload-time = "2026-06-29T13:03:58.643Z" }, - { url = "https://files.pythonhosted.org/packages/11/fc/1f4fb7ebf9a724c7741994f4aae18fba1e2f3133df14521a79194952c34a/jiter-0.16.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cf0d73f50e7b6935677854f6e8e31d499ca7064dd24734f703e060f5b237d883", size = 336998, upload-time = "2026-06-29T13:04:00.071Z" }, - { url = "https://files.pythonhosted.org/packages/a0/8d/72cadaac05ccfa7cc3a0a2232862e6c72443ca40cf300ba8b57f9f18b69b/jiter-0.16.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bf3ea07d9bc8e7d03a9fbc051295462e6dbc295b894fd72457c3136e3e43d898", size = 362112, upload-time = "2026-06-29T13:04:01.52Z" }, - { url = "https://files.pythonhosted.org/packages/58/4a/c4b0d5f651fda90a24ffce9f8d56cde462a2e09d31ae3de3c68cef34c04e/jiter-0.16.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:26798522707abb47d767db536e4148ceac1b14446bf028ee85e579a2e043cfe5", size = 459807, upload-time = "2026-06-29T13:04:03.214Z" }, - { url = "https://files.pythonhosted.org/packages/80/58/ef77879ea9aa56b50824edc5a445e226422c7a8d211f3fd2a56bcb9493cf/jiter-0.16.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bc837c1b9631be10abfe0191537fe8009838204cec7e44827401ace390ddb567", size = 373181, upload-time = "2026-06-29T13:04:04.629Z" }, - { url = "https://files.pythonhosted.org/packages/49/2e/ffbc3f254e4d8a66da3062c624a7df4b7c2b2cf9e1fe43cf394b3e104041/jiter-0.16.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:49060fd70737fad59d33ba9dcc0d83247dc9e77187de26053a19c16c9f32bd69", size = 344927, upload-time = "2026-06-29T13:04:06.067Z" }, - { url = "https://files.pythonhosted.org/packages/9a/f6/0be5dc6d64a89f80aa8fec984f94dedb2973e251edcae55841d60786d578/jiter-0.16.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:adbb8edeadd431bc4477879d5d371ece7cb1334486584e0f252656dd7ffada29", size = 352754, upload-time = "2026-06-29T13:04:07.477Z" }, - { url = "https://files.pythonhosted.org/packages/da/6e/7d31243b3b91cd261dd19e9d3557fc3251a80883d3d8049c86174e7ab7af/jiter-0.16.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:31aaee5b80f672c1dc21272bcfb9cbdcfc1ea04ff50f00ed5af500b80c44fa93", size = 390553, upload-time = "2026-06-29T13:04:08.92Z" }, - { url = "https://files.pythonhosted.org/packages/25/33/51ae371fde3c88897520f62b4d5f8b27ad7103e2bb10812ff52195609853/jiter-0.16.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:6722bcef4ffc86c835574b1b2fac6b33b9fb4a889c781e67950e891591f3c55a", size = 516900, upload-time = "2026-06-29T13:04:10.407Z" }, - { url = "https://files.pythonhosted.org/packages/a0/45/6449b3d123ea439ba79507c657288f461d55049e7bcbdc2cf8eb8210f491/jiter-0.16.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:5ab4f50ff971b611d656554ea10b75f80097392c827bc32923c6eeb6386c8b00", size = 548754, upload-time = "2026-06-29T13:04:12.046Z" }, - { url = "https://files.pythonhosted.org/packages/9b/e7/fd2fb11ae3e2649333da3aa170d04d7b3000bbdc3b270f6513382fdf4e04/jiter-0.16.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:710cc51d4ebdcd3c1f70b232c1db1ea1344a075770422bbd4bede5708335acbe", size = 122381, upload-time = "2026-06-29T13:04:13.413Z" }, - { url = "https://files.pythonhosted.org/packages/26/80/f0b147a62c315a164ed2168908286ca302310824c218d3aae52b06c0c9a9/jiter-0.16.0-cp314-cp314-win32.whl", hash = "sha256:57b37fc887a32d44798e4d8ebfa7c9683ff3da1d5bf38f08d1bb3573ccb39106", size = 204578, upload-time = "2026-06-29T13:04:14.813Z" }, - { url = "https://files.pythonhosted.org/packages/5e/e6/4758a14304b4523a6f5adb2419340086aa3593bd4327c2b25b5948a90548/jiter-0.16.0-cp314-cp314-win_amd64.whl", hash = "sha256:cbd18dd5e2df96b580487b5745adf57ef64ad89ba2d9662fc3c19386acce7db8", size = 198154, upload-time = "2026-06-29T13:04:16.272Z" }, - { url = "https://files.pythonhosted.org/packages/26/be/41fa54a2e7ea41d6c99f1dc5b1f0fd4cb474680304b5d268dd518e81da3a/jiter-0.16.0-cp314-cp314-win_arm64.whl", hash = "sha256:a32d2027a9fa67f109ff245a3252ece3ccc32cc56703e1deab6cc846a59e0585", size = 191458, upload-time = "2026-06-29T13:04:17.707Z" }, - { url = "https://files.pythonhosted.org/packages/81/6b/59127338b86d9fe4d99418f5a15118bea778103ee0fe9d9dd7e0af174e95/jiter-0.16.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2577196f4474ef3fc4779a088a23b0897bbf86f9ea3679c372d45b8383b43207", size = 316739, upload-time = "2026-06-29T13:04:19.663Z" }, - { url = "https://files.pythonhosted.org/packages/2d/95/49461034d5388196d3dabf98748935f017b7785d8f3f5349f834bcc4ed0d/jiter-0.16.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:616e89e008a93c01104161c75b4988e58716b01d62307ebfe161e52a56d2a818", size = 340911, upload-time = "2026-06-29T13:04:21.257Z" }, - { url = "https://files.pythonhosted.org/packages/cd/97/a4369f2fb82cb3dda13b98622f31249b2e014b223fe64ee534413ad72294/jiter-0.16.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0e2e9efbe042210df657bade597f66d6d75723e3d8f45a12ea6d8167ff8bbce3", size = 361747, upload-time = "2026-06-29T13:04:22.677Z" }, - { url = "https://files.pythonhosted.org/packages/28/51/49b6ed456261646e1906016a6760367a28aacd3c24805e4e5fe64116c1db/jiter-0.16.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3f4d9e473a5ce7d27fef8b848df4dc16e283893d3f53b4a585e72c9595f3c284", size = 460225, upload-time = "2026-06-29T13:04:24.441Z" }, - { url = "https://files.pythonhosted.org/packages/33/b5/5689aff4f66c5b60be63106e591dbfcba2190df97d2c9c7cf052361ddb98/jiter-0.16.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8d30a4a1c87713060c8d1cc59a7b6c8fb6b8ef0a6900368014c76c87922a2929", size = 373169, upload-time = "2026-06-29T13:04:25.884Z" }, - { url = "https://files.pythonhosted.org/packages/a2/96/3ae1b85ee0d6d6cab254fb7f8da018272b932bbf2d69b07e98aa2a96c746/jiter-0.16.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bae96332410f866e5900d809298b1ed82735932986c672495f9701daacd80620", size = 350332, upload-time = "2026-06-29T13:04:27.302Z" }, - { url = "https://files.pythonhosted.org/packages/15/32/c99d7bafd78986556c95bf60ce84c6cc98786eac56066c12d7f828bb6747/jiter-0.16.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:da3d7ec75dc83bb18bca888b5edfae0656a26849056c59e05a7728badd17e7af", size = 353377, upload-time = "2026-06-29T13:04:28.731Z" }, - { url = "https://files.pythonhosted.org/packages/0e/4b/f99a8e571287c3dec766bcc18528bbe8e8fb5365522ab5e6d64c93e87066/jiter-0.16.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ee6162b77d49a9939229df666dfa8af3e656b6701b54c4c84966d740e189264e", size = 387746, upload-time = "2026-06-29T13:04:30.319Z" }, - { url = "https://files.pythonhosted.org/packages/75/69/c78a5b3f71040e34eb5917df26fb7ae9a2174cad1ccbf277512507c53a6e/jiter-0.16.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:63ffdbdae7d4499f4cda14eadc12ddcabef0fc0c081191bdc2247489cb698077", size = 517292, upload-time = "2026-06-29T13:04:31.709Z" }, - { url = "https://files.pythonhosted.org/packages/c2/f7/095b38eda4c70d03651c403f29a5590f16d12ddc5d544aac9f9cddf72277/jiter-0.16.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:a111256a7193bea0759267b10385e5870949c239ed7b6ddbaaf57573edb38734", size = 549259, upload-time = "2026-06-29T13:04:33.721Z" }, - { url = "https://files.pythonhosted.org/packages/2e/c5/6a0207d90e5f656d95af98ebd0934f382d37674416f215aeda2ff8063e51/jiter-0.16.0-cp314-cp314t-win32.whl", hash = "sha256:de5ba8763e56b793561f43bed197c9ea55776daa5e9a6b91eed68a909bc9cdbf", size = 206523, upload-time = "2026-06-29T13:04:35.068Z" }, - { url = "https://files.pythonhosted.org/packages/a5/31/c757d5f30a8980fd945ce7b98be10be9e4ff59c7c42f5fd86804c2e87db8/jiter-0.16.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b8a3f9a6008048fe9def7bf465180564a6e458047d2ce499149cfbe73c3ae9db", size = 200366, upload-time = "2026-06-29T13:04:36.61Z" }, - { url = "https://files.pythonhosted.org/packages/7c/a2/d88de6d313d734a544a7901353ad5db67cb38dcfcd91713b7979dafc345d/jiter-0.16.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0fa25b09b13075c46f5bc174f2690525a925a4fc2f7c82969a2bbabff22386ce", size = 190516, upload-time = "2026-06-29T13:04:38.004Z" }, - { url = "https://files.pythonhosted.org/packages/06/d3/8e278946d43eeca2585b4dd0834a887cd71136329b837f3a16ed86a8b4b0/jiter-0.16.0-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:850ccb1d7eedb4200f4014b1c0e8a577de114fc3cd88faad646dcc9bc4bb12ad", size = 304518, upload-time = "2026-06-29T13:05:00.172Z" }, - { url = "https://files.pythonhosted.org/packages/72/43/28d4ef495028bf0506a413d4db3f4eb3e7288a382e0f065f306a17bbeb5e/jiter-0.16.0-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:e34e97bda77eb63242a410243c071e28ac7e0d8c0948c5ee658498690a4b2f2f", size = 310207, upload-time = "2026-06-29T13:05:02.123Z" }, - { url = "https://files.pythonhosted.org/packages/e0/ca/c366b1012da1d640de975d9683acd44e4d150d9068845d0ca2610435253f/jiter-0.16.0-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b7dc85ea77d4abbae8bad0d3538678aedee75bceec4e2f6c8dfb1c74772e5aa5", size = 342771, upload-time = "2026-06-29T13:05:03.55Z" }, - { url = "https://files.pythonhosted.org/packages/16/52/50cc4056fc1ae02e7154704e7ecc89df0afb8300222cfe8a52d3f67e4730/jiter-0.16.0-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17ca7fae79f6d99cd9a042b75f917eaada7b895cfc7dd2ee3a16089dcaec7a85", size = 346468, upload-time = "2026-06-29T13:05:05.452Z" }, - { url = "https://files.pythonhosted.org/packages/98/ab/664fd8c4be028b2bedd3d2ff08769c4ede23d0dbc87a77c62384a0515b5d/jiter-0.16.0-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:f17d61a28b4b3e0e3e2ba98490c70501403b4d196f78732439160e7fd3678127", size = 303106, upload-time = "2026-06-29T13:05:07.118Z" }, - { url = "https://files.pythonhosted.org/packages/1a/07/421f1d5b65493a76e16027b848aba6a7d28073ae75944fa4289cc914d39f/jiter-0.16.0-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:96e38eea538c8ddf853a35727c7be0741c76c13f04148ac5c116222f50ece3b3", size = 304658, upload-time = "2026-06-29T13:05:08.708Z" }, - { url = "https://files.pythonhosted.org/packages/0a/db/bba1155f01a01c3c37a89425d571da751bbedf5c54247b831a04cb971798/jiter-0.16.0-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d284fb8d94d5855d60c44fefcab4bf966f1da6fada73992b01f6f0c9bc0c6702", size = 339719, upload-time = "2026-06-29T13:05:10.41Z" }, - { url = "https://files.pythonhosted.org/packages/78/f7/18a1afcd64f35314b68c1f23afcd9994d0bc13e65cc77517afff4e83986d/jiter-0.16.0-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:64d613743df53199b1aa256a7d328340da6d7078aac7705a7db9d7a791e9cfd2", size = 343885, upload-time = "2026-06-29T13:05:12.087Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/9c/1f/8176d92e001f86505424b41664032ae26a882bc9ca41a32c803f373f9195/jiter-0.17.0.tar.gz", hash = "sha256:03e432f226a453851079fb84cd17c6da9991eab723e28d716f14ae3d906e0c12", size = 229037, upload-time = "2026-09-12T15:14:14.253Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a1/50/17afdaffcc8af4bf4fddf2b6c26d066553aa2221983f2affcde435fc2532/jiter-0.17.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:cfafd7be8b16ceadd298db542cead37cddc211c4c49e04ad2596924df18625b1", size = 290699, upload-time = "2026-09-12T15:11:30.085Z" }, + { url = "https://files.pythonhosted.org/packages/c9/e4/c185d32d5b3657ad84da26c84a9eb15f00aa1b39d6882fcc0052dba2d7c2/jiter-0.17.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8adca2e793288e5f1bb29279bb439d0d3cfbb50eddca7e7e6ffd42ff4f482406", size = 324246, upload-time = "2026-09-12T15:11:31.3Z" }, + { url = "https://files.pythonhosted.org/packages/24/7a/8b8903bfe91a90a8fa1ec9b45d9fda5b6287a386693b69d720a882d73f3c/jiter-0.17.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30c692d567ba206c7cca38c9d1d0ccc70c9786290173c184d871ca12e9981ed7", size = 343275, upload-time = "2026-09-12T15:11:32.758Z" }, + { url = "https://files.pythonhosted.org/packages/a2/5d/6821fae2abc71a3c3a84bef8598d31fc4f27d9edfb55bd8f6c08afb8ef93/jiter-0.17.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:81c83c0abe614446a283d994d2c07c4f58632dea2cdf66ba9e2921bb8ccd593e", size = 328034, upload-time = "2026-09-12T15:11:33.9Z" }, + { url = "https://files.pythonhosted.org/packages/f3/51/8e7a963b1c2dfdc01d6228b004f50a2a3d7c46f0549d7b096a5d15ef81d5/jiter-0.17.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:073dc68c1a700c8fc480e877864a6b6ffc887533e261f4380c08c16bf09d057a", size = 342457, upload-time = "2026-09-12T15:11:36.414Z" }, + { url = "https://files.pythonhosted.org/packages/73/27/8b2a267e3bda45d9298331cacfe3521e761f0a2b05ad10a23c6548d08358/jiter-0.17.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:492f37230bbf9581ab2c17bcda862c249afb9ae2e3ab2dd6db59943bc4cc3153", size = 351271, upload-time = "2026-09-12T15:11:37.692Z" }, + { url = "https://files.pythonhosted.org/packages/4a/8f/5c74e5e142a6736833d7a991ab04d5c0738038dc44db05af0bb3cd2559e8/jiter-0.17.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5888fe5abc1ca2fa834a3e1b4c7ef0dcece286a7d7e95a609ef0934b777b9fc9", size = 346052, upload-time = "2026-09-12T15:11:39.722Z" }, + { url = "https://files.pythonhosted.org/packages/98/9c/f54920f06d1696e80b1be841d56412871c6856b1b1e3b541b1ed35346554/jiter-0.17.0-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:84ac78df457e1ee3f7e733bd114823302ae8c5ad5542d7e6647d92ffaa090a04", size = 328915, upload-time = "2026-09-12T15:11:41.065Z" }, + { url = "https://files.pythonhosted.org/packages/21/53/080f126863bceb055db9f1fd5431485eb493b35545a3c35e961ac18cd924/jiter-0.17.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7573e80232c5bcf80c24c038cf7e53a463f5c3b1dd1dd4109d66304f4dccc233", size = 337240, upload-time = "2026-09-12T15:11:42.356Z" }, + { url = "https://files.pythonhosted.org/packages/f0/76/3ab742823a0e0e70e143c6c90a482d9d90396ac2445e7b9483eb7245d3b5/jiter-0.17.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:11902505d401691720f5785c15b02204248526edee11b635cd6c40cd52b81599", size = 484917, upload-time = "2026-09-12T15:11:43.549Z" }, + { url = "https://files.pythonhosted.org/packages/14/e0/8ca71bc8b9cc9ed96c9da565863e00f3bb875a8fb82abcf03e975e067902/jiter-0.17.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:64846211a2debe7c071d2146d2283d2b0c1c93dc8fd5fb7794faac2ca6061b5c", size = 521868, upload-time = "2026-09-12T15:11:44.704Z" }, + { url = "https://files.pythonhosted.org/packages/c1/02/81f8719dcedb75713082a2048405376c81f6546b75af8167f3bba01a1ed0/jiter-0.17.0-cp311-cp311-win32.whl", hash = "sha256:c19b9357309b8cc6de8a48fca8e44a8c9c2feaaa2f5896d037fa505d48fcab80", size = 187844, upload-time = "2026-09-12T15:11:45.874Z" }, + { url = "https://files.pythonhosted.org/packages/3e/8c/59693f348488f01ed12d862e99ab8da14961152d3e9c39b9b1ef363f3572/jiter-0.17.0-cp311-cp311-win_amd64.whl", hash = "sha256:e654b6b04e39c9cb19cb8b04c6ddf1f2db07751fa14156413969fd78bad0e5cb", size = 231402, upload-time = "2026-09-12T15:11:47.083Z" }, + { url = "https://files.pythonhosted.org/packages/fe/89/fb35e286463cb9f01edc2c4e47df6e5477ee36bca5096414e9ea87985588/jiter-0.17.0-cp311-cp311-win_arm64.whl", hash = "sha256:3ad556afc289f15d2b181b941982d01f06190863c07440185b9f354e1bd2def3", size = 187006, upload-time = "2026-09-12T15:11:48.245Z" }, + { url = "https://files.pythonhosted.org/packages/aa/f8/07bd8c3a23f7a8a6875e6a820bbffe1483a18f18f9398a91b5495123176e/jiter-0.17.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:ebf918dfd6a74adc1b9ad71f63c4ab00902fcd3b7fd39f2e24d871db8d713b91", size = 291633, upload-time = "2026-09-12T15:11:49.431Z" }, + { url = "https://files.pythonhosted.org/packages/0e/5e/0de4c6f84ffefa6809ffc2d550b9a314365acf7e7ec9b6c7375d49047900/jiter-0.17.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:61aed66ee042b3b49ef85fdf75714234d055d89d8496ac1c6e47f89e7a30d5e4", size = 321695, upload-time = "2026-09-12T15:11:52.727Z" }, + { url = "https://files.pythonhosted.org/packages/20/ac/befe2e82065bee37a0252081666ed2f48c1ac5f5c6c318c2de8168ba393d/jiter-0.17.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:76eb4a5c20e86f9f848286f167024890f2862258a965d254774deb7fc1545ca1", size = 341967, upload-time = "2026-09-12T15:11:54.231Z" }, + { url = "https://files.pythonhosted.org/packages/9f/cd/9797c1e529746750ae589da7c1a8c24373f00d88e11a989f9e5eb1959079/jiter-0.17.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bcc064f99183a9cbe7f26ed648c352031a74145cd61ed75d34632c73eb46a5a8", size = 326546, upload-time = "2026-09-12T15:11:55.41Z" }, + { url = "https://files.pythonhosted.org/packages/d9/fd/e6914c38d6347bab4ebff2b1f0c0f191db276e7a1d5c376176757da42fe3/jiter-0.17.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:73b64e69c4150748e020356d958af94bec33c70a0a93d665cfa8f6d580fe1a63", size = 340995, upload-time = "2026-09-12T15:11:58.211Z" }, + { url = "https://files.pythonhosted.org/packages/9d/7d/611b3abf6f88945b5474da5cdc6d1a185e805ac9bf446bb7766dcda6ea87/jiter-0.17.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f0bc7f684b65bcda9c20434267577db71bf9905ceddd32b60d1d93278d8c8d3a", size = 352188, upload-time = "2026-09-12T15:11:59.414Z" }, + { url = "https://files.pythonhosted.org/packages/52/f8/b6e513ecbdf3b3cebe587c2279281ecf775b729a58cf4cc7bdf898ded029/jiter-0.17.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8c21265b251d99bbb40080d178a8953e35601d3a1564e05c4de4c0d2ca616797", size = 345025, upload-time = "2026-09-12T15:12:00.697Z" }, + { url = "https://files.pythonhosted.org/packages/28/a8/fe26d06c5a6c5a4cfe703c5154c8a140da1305671eb3681aba9422d4f393/jiter-0.17.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:f3d7f7b34114f7ddc6d72a8e882d49de636b35d9fd12b4d420d3c5729f6c9812", size = 329180, upload-time = "2026-09-12T15:12:01.831Z" }, + { url = "https://files.pythonhosted.org/packages/e1/58/e6d66a26af40a20e62486feb7e222fd50f6e7aaa4f107abd89675dcc835b/jiter-0.17.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5078ab00664307fab2019b522a93aeb191122789f085daf5fd9e362154021d4a", size = 335805, upload-time = "2026-09-12T15:12:03.056Z" }, + { url = "https://files.pythonhosted.org/packages/ef/3e/96520aa2fef5ef831d95483a902140bfab83dcac9eaa74f7df61b5e50a1b/jiter-0.17.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:470e1b1e4c42f1ead2189166a299691871a2df5056c976e7fb96feafaf5f9d44", size = 484121, upload-time = "2026-09-12T15:12:04.414Z" }, + { url = "https://files.pythonhosted.org/packages/6a/8f/5d9d92fe538bf36ff481a2278c48147e59c1cf8eb2f7be665260665febe5/jiter-0.17.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:6eb6aedeb7352b8f3b6af9cbd67983840165c00428e63f1b420a85885128ea31", size = 521310, upload-time = "2026-09-12T15:12:05.612Z" }, + { url = "https://files.pythonhosted.org/packages/50/06/a09f979b22e652afbc3de66c709b2ba92edcef555f7535ab937c86b4f21a/jiter-0.17.0-cp312-cp312-win32.whl", hash = "sha256:362bb47423886d45a9f705d2d9d4008c6eedd4e41eb1bab4e96fb6daa06b33fd", size = 185029, upload-time = "2026-09-12T15:12:06.994Z" }, + { url = "https://files.pythonhosted.org/packages/6c/d9/98265a005b2473ec2be5a84e2b64c2f65382c673879f1574845cd4bcd77c/jiter-0.17.0-cp312-cp312-win_amd64.whl", hash = "sha256:9bd3caac219df476dd0cc3fe01d2f1581ed588906feac767abd9614c1c12f8b3", size = 227381, upload-time = "2026-09-12T15:12:08.823Z" }, + { url = "https://files.pythonhosted.org/packages/a8/11/2e05bf5a56e57a543ebb8f585074adf09383e99d7b062dac92eab1f4d57f/jiter-0.17.0-cp312-cp312-win_arm64.whl", hash = "sha256:36ee6e69027396664e59995b9a635a947a5304ee9837279584a0bb8145c8f6b8", size = 183610, upload-time = "2026-09-12T15:12:10.374Z" }, + { url = "https://files.pythonhosted.org/packages/40/eb/2c4a8075ed5ea02b56911e9375d4c8d7784572ff4af32e5a99ae0d071044/jiter-0.17.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:1b18434638228c0c184281609bf3d9459026a0f1ea48fb76c205e3ef72069caa", size = 290991, upload-time = "2026-09-12T15:12:11.641Z" }, + { url = "https://files.pythonhosted.org/packages/ca/b1/34bfa29599d420423baac6ff7cada6674fe63d5a7a2ccb3900b904678783/jiter-0.17.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ec89771f4272b989487a6364e519db6bbaba323e8bbf949ac89a45ea9c18b7a3", size = 321425, upload-time = "2026-09-12T15:12:13.855Z" }, + { url = "https://files.pythonhosted.org/packages/11/71/a5ac64a62a04aebd556afadab14a6b730001e16df87266ded943a100a1d9/jiter-0.17.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e3f052c671d5f425cca5ea5901cf11a831369fba4a55a3862cab93c323b4c3b", size = 343138, upload-time = "2026-09-12T15:12:15.046Z" }, + { url = "https://files.pythonhosted.org/packages/01/dd/f761e320ea473314cb68612bc6a435393464dbd198051399b36848b4ebf3/jiter-0.17.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:785a216bbaf8f15fc974e964ced7322cd3d774bb0e86949edd78c6bffd6ba35b", size = 325805, upload-time = "2026-09-12T15:12:16.506Z" }, + { url = "https://files.pythonhosted.org/packages/19/1a/27d8e40f0fb29bbc7a5adf30907144396a115dbe93d5d8976c054a6dfe96/jiter-0.17.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d85c558c9f8532bba287a990ac63767c7daf756f0d8c030219f62499b1fa228a", size = 340230, upload-time = "2026-09-12T15:12:17.682Z" }, + { url = "https://files.pythonhosted.org/packages/ac/c0/30bcde78a28155461f965d16b7aca4ffca6d17494d905f7a0bb072e6c64e/jiter-0.17.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5c23849235d2142ce444b2b8c6eceee9f82f4cc0bd5c9081602e4155c6197807", size = 351343, upload-time = "2026-09-12T15:12:19.337Z" }, + { url = "https://files.pythonhosted.org/packages/27/17/91420b156315ae22732f5ee1a7b5725a030aab9dc8fd7dcdacfb4aa588d3/jiter-0.17.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58df29268a95e910f17db7ec9178eb7f15aa8619aaca3575275c4e6b3f4fe4c5", size = 344990, upload-time = "2026-09-12T15:12:20.705Z" }, + { url = "https://files.pythonhosted.org/packages/6d/a2/ae6d5672644cc11127970277c9aeb0fa6fae376845587f5b0a8e8828167c/jiter-0.17.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:a277f97eba7d66b1ee27eb5dab5b774ff46a10c78d89a1d3dcce04ce1357c8ca", size = 328624, upload-time = "2026-09-12T15:12:23.859Z" }, + { url = "https://files.pythonhosted.org/packages/04/62/45cb1162f6aa586536e4a973fc339d72dc6b08cca030d70a838a307aa778/jiter-0.17.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe15ddf316f1f1f643347d3a474e74ce61880c79a11ec5dca53df20c071bd3e8", size = 334731, upload-time = "2026-09-12T15:12:25.229Z" }, + { url = "https://files.pythonhosted.org/packages/d9/5f/45c1574b644da7deda0b7591c349520dcf83ce45b24d7ca19922dab1fc27/jiter-0.17.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:02adebb7ce6413c44d40af9ad59d1c1cd79630ccdcb6f7bdd2d461e48c03d8f9", size = 483649, upload-time = "2026-09-12T15:12:27.557Z" }, + { url = "https://files.pythonhosted.org/packages/c1/d3/ebea1ecb5b241c519f192b30215c79a8e47f42f1621acbcd6f8830728416/jiter-0.17.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:55d0e0e613a3f9ad600cf436e0e2b8057d1b52bcf1d91b2d36ac53451231e6a8", size = 520758, upload-time = "2026-09-12T15:12:28.99Z" }, + { url = "https://files.pythonhosted.org/packages/64/e6/682b641ff0765ea9bdc349dbc7d223de5c8af8ec1abda0db3406992f92fe/jiter-0.17.0-cp313-cp313-win32.whl", hash = "sha256:2c45ad7c973ef33fe5114a953377b35a95240f4542c0724d9f781e47dc24bac7", size = 184334, upload-time = "2026-09-12T15:12:30.813Z" }, + { url = "https://files.pythonhosted.org/packages/b8/d2/9a49aac2b27af4cc5015e368c0cc3588491a532f717a668ffce1f1ac57da/jiter-0.17.0-cp313-cp313-win_amd64.whl", hash = "sha256:a3cebb1fe4a1abb00465f3f8a17e09112603e8b7c59e5c3adbcd9f7815a64acd", size = 226601, upload-time = "2026-09-12T15:12:32.096Z" }, + { url = "https://files.pythonhosted.org/packages/b4/ce/9a43e9f614608eafa78de22aedcff54cd21324467b5d442d5c9b00244145/jiter-0.17.0-cp313-cp313-win_arm64.whl", hash = "sha256:96b8b0c6dc5d78682f54a450785e075aa929cde768304cad363cd4efba5a82ac", size = 183103, upload-time = "2026-09-12T15:12:34.396Z" }, + { url = "https://files.pythonhosted.org/packages/01/9e/23065f8e2c7a4c372c1b6f6622e4cfab4dc786cb5150052b1527e6a6a840/jiter-0.17.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:00d783a779c5664e16dbad5e3a3c3a75e128b07dd5f4765159658d9210a50ca5", size = 292210, upload-time = "2026-09-12T15:12:35.613Z" }, + { url = "https://files.pythonhosted.org/packages/ea/81/67b58647560bc82a4490d722caa8561d7a86a9f45d4fa620b7e5fe282c7a/jiter-0.17.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0619d806e260ecf0c2a64521942c94af5d547c9ec99b55ae4f51b538b5576a76", size = 321512, upload-time = "2026-09-12T15:12:36.907Z" }, + { url = "https://files.pythonhosted.org/packages/c7/07/6658359a25f55927f7f8bf0e16465dee2ccd0b2a1a5208acc0df8972e074/jiter-0.17.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dc0288ce39190ee33fe6e4ec73161eed34e7e2da509b525546ca061778d62b64", size = 343897, upload-time = "2026-09-12T15:12:38.189Z" }, + { url = "https://files.pythonhosted.org/packages/46/04/5d50a9f0319cbdc37fd53c27f8c313d46afc34f1b048219ae6d8ea068da4/jiter-0.17.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5a52a430d04225ffde633e6840bf2381d34c019ff98526b5929755b9052fb199", size = 326519, upload-time = "2026-09-12T15:12:39.532Z" }, + { url = "https://files.pythonhosted.org/packages/bb/c7/d02517832b29eb8275fdd0f4ce0f17b80f58cc4c3ebecd4d9ace990d633d/jiter-0.17.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:37f33d327900bf2879613b3363fd48df97b4232d0c41f54bcf2e790c2fc40a71", size = 341369, upload-time = "2026-09-12T15:12:41.486Z" }, + { url = "https://files.pythonhosted.org/packages/3b/07/499b5f5603501cdd93a73a6a176dfad9c96555a3ae58ca9f8e3acba63dc9/jiter-0.17.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6cf564d43c4388149ca58ee571d0f5ccf875e20d1fd4662fd94cc0d1ea3b10ef", size = 352160, upload-time = "2026-09-12T15:12:42.721Z" }, + { url = "https://files.pythonhosted.org/packages/f5/75/b04013c7743269d4533ef4e746fc0ed678a143968dd7448658e3f51daad2/jiter-0.17.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:523c499235fb65add25d4bb01b1c4709ce695efdc7deb6c0a7bc515b5c44e0fb", size = 345018, upload-time = "2026-09-12T15:12:44.192Z" }, + { url = "https://files.pythonhosted.org/packages/1d/96/cbb6fd1e42a77c8412ec4643db95059b30cdfc635e387cc9193e098ce268/jiter-0.17.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:455e4ab35cb2a4a91a8404e08fd3c621bae433922e59bf1c494fe20a426b013b", size = 329244, upload-time = "2026-09-12T15:12:45.491Z" }, + { url = "https://files.pythonhosted.org/packages/15/67/d3be402f398566a379bf40ae65be5c3505b14d9e95e0802a597ddde7ddee/jiter-0.17.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6871973bfbd4408f7f1c632b30bbb5bbd9671c1bc8650af6823e24b7be13709b", size = 335693, upload-time = "2026-09-12T15:12:46.935Z" }, + { url = "https://files.pythonhosted.org/packages/7f/8d/98e2c4130b93d64f1d67c89060b928d04102549bf05e64451c9e6024f9ca/jiter-0.17.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:77f6aac0137309b31448c1bdcda4c6c77077664a6d018ece8d94019c68a5a5b9", size = 484329, upload-time = "2026-09-12T15:12:48.361Z" }, + { url = "https://files.pythonhosted.org/packages/78/5e/8da91e49f0fbca37c3489fb4cf3ad6676d4965f00ae5468bca3a2513737a/jiter-0.17.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:93946d89fa04d5ba64dd323a8dd8d901676cb8a3c81d99ae4f6c051a9b4c3f2f", size = 521358, upload-time = "2026-09-12T15:12:49.856Z" }, + { url = "https://files.pythonhosted.org/packages/be/21/5388684a5a38af3557cd9c2424b9827c71809cff24373c75ef9d0d3dfba9/jiter-0.17.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:70f19a2ca8429f91e82eeffb2f51cb87bc2d6e953b009b91a92d29c3a16ccb03", size = 110459, upload-time = "2026-09-12T15:12:51.747Z" }, + { url = "https://files.pythonhosted.org/packages/b1/ad/58b3a93525d2ffca7f54d9dee441381990082bd1172fbeb8d6a3f72a4dc3/jiter-0.17.0-cp314-cp314-win32.whl", hash = "sha256:71dbd74314c5df52a1bccf7b8bca46d14e943af7a2012e73b23f49977ef194c8", size = 185043, upload-time = "2026-09-12T15:12:54.477Z" }, + { url = "https://files.pythonhosted.org/packages/7a/4a/1aa520eb6c359b262c14ff995ca7283837208ddfb1202082ce9d73cf214d/jiter-0.17.0-cp314-cp314-win_amd64.whl", hash = "sha256:ac3c6ee3264d6f5c44c617f90bc7e8b9e1587e7d6708c9d8f811cb65582ee312", size = 227163, upload-time = "2026-09-12T15:12:55.931Z" }, + { url = "https://files.pythonhosted.org/packages/cf/e4/5997f648794bd9b499491d0ff480b096cc9a9c65bdba29f57568e6aa1705/jiter-0.17.0-cp314-cp314-win_arm64.whl", hash = "sha256:6219adaf59711ba7063a52496e8ec6d3fa3e209d7827d83eee3b2abc780a1744", size = 183505, upload-time = "2026-09-12T15:12:58.196Z" }, + { url = "https://files.pythonhosted.org/packages/ac/4a/84a5ec271d09f7590b6073af5ee4abb44eab4ccace453b7e2c5ce45234ca/jiter-0.17.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:59bddbe6f9ffecc68d641e1e2d619ce64cf8a9e9eeb74e5c518f74fc87abf1b0", size = 321527, upload-time = "2026-09-12T15:12:59.394Z" }, + { url = "https://files.pythonhosted.org/packages/39/71/9e1fd0045f5920b4c36be35c3f0f0dfd123668684f8ad352619d7aa44183/jiter-0.17.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6cb41cd1432f1dc19a231cf70b54d42b2c9f05085155859263fce06fa4d41388", size = 340865, upload-time = "2026-09-12T15:13:00.756Z" }, + { url = "https://files.pythonhosted.org/packages/b7/2b/14627fd2bc377f3dd09491bcace6b90e34b4d7fea2f1f3295031ff91f528/jiter-0.17.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fd7790aa79c8b518e512ebcdfce9f11d8ef5f30efd43720c8a19a548b39fa489", size = 325412, upload-time = "2026-09-12T15:13:02.152Z" }, + { url = "https://files.pythonhosted.org/packages/4c/f3/8d5808f7bf0f456bde79e6393587183a0cee5f83d179fe1f7f1eff2ba067/jiter-0.17.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dbbfe4e3c21c8166980cddc5bee1a315df082454f007947dfb6fb73800768165", size = 340473, upload-time = "2026-09-12T15:13:03.485Z" }, + { url = "https://files.pythonhosted.org/packages/4f/da/1d8c7c6c4ae6b2423b94a81b6b907d37b28f87664e077427b531bf1b5313/jiter-0.17.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8c286860abfe8b100cac1c02e225e5776eb9216edd71ba17cdb237da4af32bc9", size = 350757, upload-time = "2026-09-12T15:13:04.828Z" }, + { url = "https://files.pythonhosted.org/packages/eb/96/c1813dcca15c5a370145a448aaea7d1f83f6f0228a5f1130e79340ee385f/jiter-0.17.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f753eb70b1474a29e635e7542ff7312e6d6b951e0b25e8a2e8c34eeb1ddcd478", size = 345203, upload-time = "2026-09-12T15:13:06.131Z" }, + { url = "https://files.pythonhosted.org/packages/d7/f7/fc61cbcf2992d169ede13648fc3fd8e2d3171a3669dde43cd4db556549ac/jiter-0.17.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:eae86b1f027031e39db2e0e9c4842221edb7b8cd474d23f87a79b3bd4b651768", size = 328322, upload-time = "2026-09-12T15:13:07.392Z" }, + { url = "https://files.pythonhosted.org/packages/8f/88/46418a3abbdffb7dc41b314200360f24f75faaeb35573e81c92de322cce9/jiter-0.17.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5bf350452a43173e69e1fc74847c57a60e3d7515807287f29849baa2a85d8718", size = 336570, upload-time = "2026-09-12T15:13:08.666Z" }, + { url = "https://files.pythonhosted.org/packages/f0/28/b8a55b949be6306df8888e365a8df05441de8a7b11289f6957004302e41e/jiter-0.17.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:da139721f4b7cafdbff580a4f511ea24cb91f4909330c6b926a1ca53836c0a59", size = 482879, upload-time = "2026-09-12T15:13:10.037Z" }, + { url = "https://files.pythonhosted.org/packages/75/3b/21d0afa53ba0680962c39f3eb95ed2946f8793369ed44b0c82b490723081/jiter-0.17.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:8079849db9a1371bfd90bad088458a8fb836261879df2233cc9632464ecf64e1", size = 520406, upload-time = "2026-09-12T15:13:11.456Z" }, + { url = "https://files.pythonhosted.org/packages/ef/03/bcbaf8b6b9ea23c2c074411f8ecfbb02d820abac5d0cb8f4e280209174a2/jiter-0.17.0-cp314-cp314t-win32.whl", hash = "sha256:8f770b0c77e5fac482e1ba03ca1a7e18286bfb213d749932a00a7e4cd5de5e06", size = 184434, upload-time = "2026-09-12T15:13:13.037Z" }, + { url = "https://files.pythonhosted.org/packages/7a/b5/5d6ce2c93ef6fe1241b37a9005547f9b6d58db1f07f39fe95807d4b98f51/jiter-0.17.0-cp314-cp314t-win_amd64.whl", hash = "sha256:c4289293e5278d9314b00f15c37f2120fa51d3d68565292e715524c750e775a9", size = 227392, upload-time = "2026-09-12T15:13:14.933Z" }, + { url = "https://files.pythonhosted.org/packages/f5/4b/1e52baf90187606e33a7b8cfa8f96f5829acd7f01870077eb01059ab76d0/jiter-0.17.0-cp314-cp314t-win_arm64.whl", hash = "sha256:4dfbfe5a6e1e80a7082af559f66386405025ec278833e0c649f69cbc6e1004cc", size = 182776, upload-time = "2026-09-12T15:13:16.239Z" }, + { url = "https://files.pythonhosted.org/packages/05/fc/efe3ac75564ab10f53517958f5ccdc231fc7334af66c76776cb554a88967/jiter-0.17.0-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:84963d3f395ef5e9a32ce47155e08a7962fa292c159a10cb98b931cef1416925", size = 292143, upload-time = "2026-09-12T15:13:17.502Z" }, + { url = "https://files.pythonhosted.org/packages/d1/4c/46982118d91f9ffe9714319d21ec4f98d9b7e0cfd9062826c524a54de24e/jiter-0.17.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:ffa0380ad091de7d3fc33e17a97ff479851ee18a0a2a3ee56ff3215cdc886656", size = 321341, upload-time = "2026-09-12T15:13:19.133Z" }, + { url = "https://files.pythonhosted.org/packages/e7/12/9b1ac6ecc6307049913db54839ddba1c11c1ef72c5a8bbb5514bc3b50d1b/jiter-0.17.0-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:755079792868ce5d4938e83b91a0939b34fb858a1ca65a104f2d771bea57faa1", size = 344383, upload-time = "2026-09-12T15:13:20.508Z" }, + { url = "https://files.pythonhosted.org/packages/a9/b6/527cc72af836d824e9d4d666e64f0a1ca7eafd662a8da9657b78592172ba/jiter-0.17.0-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3bf4dc2b84a464117fb097d15a25c58d100d2692888e3b0d92df5b48ed16b7c0", size = 326841, upload-time = "2026-09-12T15:13:21.83Z" }, + { url = "https://files.pythonhosted.org/packages/d1/41/567f98617e88005b249503b933803f633ec6ba2d427cf4cc35e5c832125c/jiter-0.17.0-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:02a360707033d8cef53f7f3480817a1489177a259ec6ec01e98c37e0b922ddca", size = 341354, upload-time = "2026-09-12T15:13:23.323Z" }, + { url = "https://files.pythonhosted.org/packages/40/da/b29cda895b785f7d426e224638a885b6145a08ce853b381f34afe3e88c5d/jiter-0.17.0-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:300ce01ab0215e3dea4d00090143c909aedc65c0f809b3c07983e1d038f291b9", size = 351985, upload-time = "2026-09-12T15:13:26.526Z" }, + { url = "https://files.pythonhosted.org/packages/f7/5c/8a73829e7389e72ea298a450f2b3cb58e71a3e464b45f6d8753740f1c4f5/jiter-0.17.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:746243a080b4ca790b8499af3d7cf9825d5f5987933950cd818e767ee353d826", size = 346052, upload-time = "2026-09-12T15:13:27.887Z" }, + { url = "https://files.pythonhosted.org/packages/1d/2f/98d6001026932c095ba440925570123043bed29f5ff56158dfe729a9e81b/jiter-0.17.0-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:b550585523339b71cb852b811aae49d08d7601ad8ffe9f5dc1562f4c3d22fd87", size = 329159, upload-time = "2026-09-12T15:13:31.569Z" }, + { url = "https://files.pythonhosted.org/packages/94/2e/708dc1d2678f092c31c12754e860cd8353e6a85ecbdb1010157edca0da9e/jiter-0.17.0-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0239520085cac678e77a606fd7e3f1c60c371d719790c5e3807388d3da4354c2", size = 336001, upload-time = "2026-09-12T15:13:32.846Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f0/75a5ae38862f4eaf0fe2f8a9fbf6484c4890df04c06dcdffc45e36bca61a/jiter-0.17.0-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:eb2295da7c3769f6719b227a237aa6a5cfa6550e478bc838001b592c57e16575", size = 484281, upload-time = "2026-09-12T15:13:35.333Z" }, + { url = "https://files.pythonhosted.org/packages/a0/32/6636fae811c27c7f93e1b11fb5800de6a5c9e4269a27cf718e0b31218ad1/jiter-0.17.0-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:e088612ff90ebc9247e1a43074b72835804261c47e6a6c01cb3ddcb55360d688", size = 521300, upload-time = "2026-09-12T15:13:37.101Z" }, + { url = "https://files.pythonhosted.org/packages/61/aa/12df7e0b0b1a2602e3d5a5a7104d7d9700f254b400f134a9b50955c4d231/jiter-0.17.0-cp315-cp315-win32.whl", hash = "sha256:0b52d52035b3907c5b1f6277857b29c1cbfc965e24e0f27330dbed83edb591ec", size = 185138, upload-time = "2026-09-12T15:13:38.901Z" }, + { url = "https://files.pythonhosted.org/packages/ba/ec/3dd2e495032cddde05723c1f4c743b67a23e55d2af244692a7f58f0cdae3/jiter-0.17.0-cp315-cp315-win_amd64.whl", hash = "sha256:10f5558eed511b830488003449d942bd75829ad6257dc58cb9a03e596a7777b1", size = 226950, upload-time = "2026-09-12T15:13:40.17Z" }, + { url = "https://files.pythonhosted.org/packages/c3/c7/ef85704e0a57e9cadb2babc05f6d7c5df4a1c75da1a6ee31e1986b0099a5/jiter-0.17.0-cp315-cp315-win_arm64.whl", hash = "sha256:fa13acf1046f95df808c64b1310705e143fab87aee73ae00cc42d640867fd2c1", size = 183618, upload-time = "2026-09-12T15:13:41.432Z" }, + { url = "https://files.pythonhosted.org/packages/0e/9a/a4b348349de68762b58d6713973d363ad80a1c741d0bf8def7975f0ecb26/jiter-0.17.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:af2f7501580f274b63c4b2283bc425f5df7edf06ae5b171e5f87d912ff359a20", size = 321155, upload-time = "2026-09-12T15:13:42.716Z" }, + { url = "https://files.pythonhosted.org/packages/c1/70/aebd6d0b5f0677de3a3d0bdc4a05fac949b97c4ede454c8809f180ac7b17/jiter-0.17.0-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:10c5349312e5cb02b7a21e123a57665afa895953f05bf252a9dd4c13a572b7ab", size = 340985, upload-time = "2026-09-12T15:13:44.115Z" }, + { url = "https://files.pythonhosted.org/packages/a7/82/4c3b49796b5eb62f3f5046f957683f4ba0135fe1a60957c11180512460df/jiter-0.17.0-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:86f3f9343a288eb85a81ef20a752b2f84564296636db54a9fff0b5c8deaf1df2", size = 325670, upload-time = "2026-09-12T15:13:45.901Z" }, + { url = "https://files.pythonhosted.org/packages/bc/43/f6341ecb4872202a4ef150486fcee0e1ace4aa3da39b71b82061452cdd3a/jiter-0.17.0-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4607ec7d93355fbc25b8dc5189153cf21d66063b9f9cd04dd2774e6e783f9b6a", size = 340339, upload-time = "2026-09-12T15:13:47.442Z" }, + { url = "https://files.pythonhosted.org/packages/f9/c4/bc2c86e08fa065e03cb2fbc53b367c3640a7d257ef9d877b29118ea636b7/jiter-0.17.0-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:10cd64a5720ad7f809ac5466ff1705813f1b6b510f195a73acafba0ac0e1f675", size = 350705, upload-time = "2026-09-12T15:13:48.848Z" }, + { url = "https://files.pythonhosted.org/packages/9d/67/91f12aa111cca6e3a197c3e36bf60a034bf9f122f6d41112a639e44217d8/jiter-0.17.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:efe9f61bb30174d2f5c8396445c360c96c44e78164d0815dfe627ccf57849574", size = 345011, upload-time = "2026-09-12T15:13:50.215Z" }, + { url = "https://files.pythonhosted.org/packages/f5/cb/9f5556e8f6ec89755fb5a709d8eb8270c9a324e31079eda0dfbeca451b6e/jiter-0.17.0-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:370d8fe5bf201dc6925e8a84c81ac7291f74d9fd1778234fc79d517064a5c76b", size = 328268, upload-time = "2026-09-12T15:13:51.809Z" }, + { url = "https://files.pythonhosted.org/packages/22/98/153f20680fb75781a490fb849940e2b00f95035c7aa054df592f36ed33fc/jiter-0.17.0-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6b303d88e6a0bda789ec4b7801c7bad68e27230ba1fe4baffc756d1fbd32dc9d", size = 337024, upload-time = "2026-09-12T15:13:53.095Z" }, + { url = "https://files.pythonhosted.org/packages/af/59/b16c9be3a5035df4466cc72e888188c027562de90a723d290ab6814cb9d4/jiter-0.17.0-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:30793a24a31e968969757c9e08d830cbb15a2cd3c4959b4498b38f4b1c2258eb", size = 482766, upload-time = "2026-09-12T15:13:55.713Z" }, + { url = "https://files.pythonhosted.org/packages/d0/55/667dea313094024bef082175d6bfe8976f90d1c00c926af9df1d8e0eab48/jiter-0.17.0-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:686c93d86f2b426c803024b805bd161a6cd10e9627c23e901640eab646c0ad8a", size = 520367, upload-time = "2026-09-12T15:13:57.674Z" }, + { url = "https://files.pythonhosted.org/packages/21/e3/4b1a43501fb9ed17b01d137e380cb0e8fdcb39a254ce31aa2ab95bc861ac/jiter-0.17.0-cp315-cp315t-win32.whl", hash = "sha256:86d703d9faa1ffc8ae4e9de0fa007712ed2171b5c0d93811a8e2e105ac729b0d", size = 184603, upload-time = "2026-09-12T15:13:59.27Z" }, + { url = "https://files.pythonhosted.org/packages/f9/f2/b8ee0372b6ebdf1bde5cc44495d5291d17f961065f5b48f8616cc67cac2e/jiter-0.17.0-cp315-cp315t-win_amd64.whl", hash = "sha256:42b0260445251b1bc520a63baa94a32d88e0f931fba234f1764db7feb7c72174", size = 227936, upload-time = "2026-09-12T15:14:00.472Z" }, + { url = "https://files.pythonhosted.org/packages/a4/b4/923a1215daba959aed8355973315cb3f81f53e0d01c5b211870a27b41f45/jiter-0.17.0-cp315-cp315t-win_arm64.whl", hash = "sha256:d47687806f9c54c84ea38733507081337922beca90ce819c7d852dd485bc0f23", size = 182977, upload-time = "2026-09-12T15:14:01.799Z" }, + { url = "https://files.pythonhosted.org/packages/b9/3b/05a917204413e2e09906dfa35240c1021227aeb56c7305abea9562c598b4/jiter-0.17.0-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:eaba834b72d573547b9d966465b3394b749d5e14208cc70acb63aca37619ab33", size = 288143, upload-time = "2026-09-12T15:14:02.998Z" }, + { url = "https://files.pythonhosted.org/packages/d9/e1/a1cd3c0cf8f79945939e4f8caae9990529f67d7f77f671769f73956329b9/jiter-0.17.0-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:51e1519d676a9f14dad9c2a411170d43b022ddb7989562df4e849b261ce127b2", size = 281847, upload-time = "2026-09-12T15:14:04.414Z" }, + { url = "https://files.pythonhosted.org/packages/72/b4/9b797679e09f4a46c32986aeb3670bd9bc562fc0b373c7a0ee5c5dce1206/jiter-0.17.0-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d0ce4feb52493e3513335b2accdcd75605652e4632772d3c8c2f7b86954d7f39", size = 304797, upload-time = "2026-09-12T15:14:05.733Z" }, + { url = "https://files.pythonhosted.org/packages/25/4a/0d77415b27a00d970e4e710f7c1de62e96a11c4cab3ed1add0015af04626/jiter-0.17.0-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:29f49b325e0234e4ad9ecca5b861ffbd09b95ccac9bd46fa55841b6e56eea5fe", size = 307815, upload-time = "2026-09-12T15:14:07.105Z" }, + { url = "https://files.pythonhosted.org/packages/17/31/4bb27f54333d3b9ef1e5bd3312dc0b4bbe59c68bb0885fdb40583a6b1567/jiter-0.17.0-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:454c4997d73cc466c71fd565d91e603b0274e48ea0c6b0b7a7aee6967e4ceb7c", size = 288415, upload-time = "2026-09-12T15:14:08.455Z" }, + { url = "https://files.pythonhosted.org/packages/28/30/879570ecf82574eaea77c5eb10309f4b630dece5f2a556e9814a90ba3f2d/jiter-0.17.0-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:40d2c240f8f80b5b0f201b29f0ae129c81448c60c772227a41747b5e0026f6a2", size = 279113, upload-time = "2026-09-12T15:14:10.117Z" }, + { url = "https://files.pythonhosted.org/packages/77/7a/1f0b8a35fbd079a4f1752c31a15dc99cf277f863747c459be0af39e900e5/jiter-0.17.0-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e05f5adbf68c4bd11e1610f394034d984152988e84be6f8314235ce6f2139e5", size = 303708, upload-time = "2026-09-12T15:14:11.445Z" }, + { url = "https://files.pythonhosted.org/packages/e1/8b/d76219ebdbcf3d4209d9d21a0810db4c8d0a6f88e3ee87d30bdea4e90d30/jiter-0.17.0-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2c0bf24c72fd0491405dce5d40194f2070e9021ce648c1a1d46234b93d848ff", size = 307147, upload-time = "2026-09-12T15:14:12.897Z" }, ] [[package]] @@ -1865,44 +1890,44 @@ wheels = [ [[package]] name = "joserfc" -version = "1.7.3" +version = "1.7.6" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cryptography" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/d4/c6/b1cac0280f8efc57626ea8804866b37099f23cae11b1485a42b213245e31/joserfc-1.7.3.tar.gz", hash = "sha256:116955c2587139dba20621fd0bd7fc9255fa960c9fe7f43c43ebef2e801dcfcf", size = 233821, upload-time = "2026-07-08T12:41:42.66Z" } +sdist = { url = "https://files.pythonhosted.org/packages/cd/db/ec5b5fe07a7bda62cd2c2d619daf160eb7442b979c7cd61bbe0262108de9/joserfc-1.7.6.tar.gz", hash = "sha256:fb1cf6d2977318bef976c2ed2ef2167cc5f8ade8fc96f034e38f7abd656907c4", size = 236091, upload-time = "2026-10-18T23:12:18.43Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/7d/f5/650b59d1b74f5befb7a7a7e7d7c92a26b94256df3541e2b4914152cd177a/joserfc-1.7.3-py3-none-any.whl", hash = "sha256:7c39f3f2c943dbc03122747fa8ebbd8e156e54904cf25651b452f4d2634a6075", size = 70982, upload-time = "2026-07-08T12:41:41.521Z" }, + { url = "https://files.pythonhosted.org/packages/98/40/63886ba742c6fd9e6dd222e20b8d54012fbc933465350c7747c4ed5b31e4/joserfc-1.7.6-py3-none-any.whl", hash = "sha256:e2d72e3fa937ed8ddd42ad8c1cc337a43e7ffd02efa572a2aa15e2764a05b506", size = 71588, upload-time = "2026-10-18T23:12:17.085Z" }, ] [[package]] name = "jsonpatch" -version = "1.33" +version = "1.35" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "jsonpointer" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/42/78/18813351fe5d63acad16aec57f94ec2b70a09e53ca98145589e185423873/jsonpatch-1.33.tar.gz", hash = "sha256:9fcd4009c41e6d12348b4a0ff2563ba56a2923a7dfee731d004e212e1ee5030c", size = 21699, upload-time = "2023-06-26T12:07:29.144Z" } +sdist = { url = "https://files.pythonhosted.org/packages/df/f8/48a6033ebdd5013a58b5a79402eacb15ffb6e208f244c1c17f6f1e3b29c2/jsonpatch-1.35.tar.gz", hash = "sha256:679ad08672b4663c7ef1e5f3331d940f5e7786661b9acc1530104be1638e7a4f", size = 39440, upload-time = "2026-10-10T21:34:24.61Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/73/07/02e16ed01e04a374e644b575638ec7987ae846d25ad97bcc9945a3ee4b0e/jsonpatch-1.33-py2.py3-none-any.whl", hash = "sha256:0ae28c0cd062bbd8b8ecc26d7d164fbbea9652a1a3693f3b956c1eae5145dade", size = 12898, upload-time = "2023-06-16T21:01:28.466Z" }, + { url = "https://files.pythonhosted.org/packages/77/46/840ee494290e36ffad7c905b1f90a5a074d94de0f752ebe466ebccd6e1e1/jsonpatch-1.35-py3-none-any.whl", hash = "sha256:417e05303ebf7aef98d3ebf1e1ae7e7a4de6ec57bc5d243cd3509eff650e959f", size = 17005, upload-time = "2026-10-10T21:34:23.299Z" }, ] [[package]] name = "jsonpath-ng" -version = "1.8.0" +version = "1.10.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/32/58/250751940d75c8019659e15482d548a4aa3b6ce122c515102a4bfdac50e3/jsonpath_ng-1.8.0.tar.gz", hash = "sha256:54252968134b5e549ea5b872f1df1168bd7defe1a52fed5a358c194e1943ddc3", size = 74513, upload-time = "2026-02-24T14:42:06.182Z" } +sdist = { url = "https://files.pythonhosted.org/packages/4c/dc/178bf7bb75d2df2532d0d1796805381f2599eb805c40eeda089538af9393/jsonpath_ng-1.10.1.tar.gz", hash = "sha256:1247d0983361ebe44f47741e759bbb76e74213c68f25abb4b65f6de21d1934d6", size = 87626, upload-time = "2026-10-12T12:57:12.048Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/03/99/33c7d78a3fb70d545fd5411ac67a651c81602cc09c9cf0df383733f068c5/jsonpath_ng-1.8.0-py3-none-any.whl", hash = "sha256:b8dde192f8af58d646fc031fac9c99fe4d00326afc4148f1f043c601a8cfe138", size = 67844, upload-time = "2026-02-28T00:53:19.637Z" }, + { url = "https://files.pythonhosted.org/packages/08/e6/d0f38911783aa7bc69afb0cdf5151e8cefeecd8ca3944c5453e13fc5afda/jsonpath_ng-1.10.1-py3-none-any.whl", hash = "sha256:9355047e5e6a8919f5ae0ccfd5b793bff69e4165f1248b1763e8962457b58ff5", size = 75386, upload-time = "2026-10-12T12:57:10.48Z" }, ] [[package]] name = "jsonpointer" -version = "3.1.1" +version = "3.2.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/18/c7/af399a2e7a67fd18d63c40c5e62d3af4e67b836a2107468b6a5ea24c4304/jsonpointer-3.1.1.tar.gz", hash = "sha256:0b801c7db33a904024f6004d526dcc53bbb8a4a0f4e32bfd10beadf60adf1900", size = 9068, upload-time = "2026-03-23T22:32:32.458Z" } +sdist = { url = "https://files.pythonhosted.org/packages/33/a2/c92f0a7ed439c490d2c8ad712fdb074c311afa4f77870987826a3b1483ba/jsonpointer-3.2.1.tar.gz", hash = "sha256:47c846513b3a4ec46eecef1105207fba075e2a3659048e362bd7daff0fc33342", size = 11309, upload-time = "2026-10-10T21:11:06.988Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/9e/6a/a83720e953b1682d2d109d3c2dbb0bc9bf28cc1cbc205be4ef4be5da709d/jsonpointer-3.1.1-py3-none-any.whl", hash = "sha256:8ff8b95779d071ba472cf5bc913028df06031797532f08a7d5b602d8b2a488ca", size = 7659, upload-time = "2026-03-23T22:32:31.568Z" }, + { url = "https://files.pythonhosted.org/packages/fa/29/accef8eea16670b88f3a23102c35dee62c6f159db30d9628908043b3e21b/jsonpointer-3.2.1-py3-none-any.whl", hash = "sha256:b19ee68644e9ffb51440448d8f7811af2b7406eea1db90603e93f5849323119a", size = 8332, upload-time = "2026-10-10T21:11:05.648Z" }, ] [[package]] @@ -1913,8 +1938,7 @@ dependencies = [ { name = "attrs" }, { name = "jsonschema-specifications" }, { name = "referencing" }, - { name = "rpds-py", version = "0.30.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, - { name = "rpds-py", version = "2026.6.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, + { name = "rpds-py" }, ] sdist = { url = "https://files.pythonhosted.org/packages/b3/fc/e067678238fa451312d4c62bf6e6cf5ec56375422aee02f9cb5f909b3047/jsonschema-4.26.0.tar.gz", hash = "sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326", size = 366583, upload-time = "2026-01-07T13:41:07.246Z" } wheels = [ @@ -1968,37 +1992,38 @@ wheels = [ [[package]] name = "langchain" -version = "1.3.14" +version = "1.4.5" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "langchain-core", marker = "python_full_version >= '3.11'" }, - { name = "langgraph", marker = "python_full_version >= '3.11'" }, - { name = "pydantic", marker = "python_full_version >= '3.11'" }, + { name = "langchain-core" }, + { name = "langgraph" }, + { name = "pydantic" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/29/68/a6dbad9c22df4087a0f9e79ddd46226c442b30128bfeee538d5889492a73/langchain-1.3.14.tar.gz", hash = "sha256:1b6696c72ba3bbbce54d745e0180742c9f6ece8bbc59ed5a46c3e20b9a435929", size = 645181, upload-time = "2026-07-16T13:28:18.29Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ea/61/f52073a1b7b401b7ad82db3674e94dbe2d0fee28e794a8c4440223c0bc91/langchain-1.4.5.tar.gz", hash = "sha256:e99b9bd3b1203a475f627ba970ede2b1263fa4e52154b6c3660b4c3ee1bf73c8", size = 745545, upload-time = "2026-10-12T19:28:24.197Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a9/ec/0f942e78a621f8e3162ff1ed24284f469aaf51fb4607ee5831c626f2b2bc/langchain-1.3.14-py3-none-any.whl", hash = "sha256:4d10dbe91005952cddd56d0dc77aa108964da6bae90ab20063653957e901f782", size = 139560, upload-time = "2026-07-16T13:28:16.498Z" }, + { url = "https://files.pythonhosted.org/packages/c1/e0/c8ec47569a73c0c6205eb545f229ffb9fae66e85b12e9032765442317a09/langchain-1.4.5-py3-none-any.whl", hash = "sha256:0879b85a79d7fbc89fc91f6c65c9fa573f03f4d9458e6b5b3c50c717868bd79f", size = 166359, upload-time = "2026-10-12T19:28:22.883Z" }, ] [[package]] name = "langchain-anthropic" -version = "1.4.8" +version = "1.7.6" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "anthropic", marker = "python_full_version >= '3.11'" }, - { name = "langchain-core", marker = "python_full_version >= '3.11'" }, - { name = "pydantic", marker = "python_full_version >= '3.11'" }, + { name = "anthropic" }, + { name = "langchain-core" }, + { name = "pydantic" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/98/22/40ab129b08329ca295b391aa1d48267692b42594757084c6918e22b655ac/langchain_anthropic-1.4.8.tar.gz", hash = "sha256:c76891b2044d56105ff13c106ed12650637b53bd598a4bdf15b4796eefa2a4ec", size = 708524, upload-time = "2026-06-26T21:28:46.916Z" } +sdist = { url = "https://files.pythonhosted.org/packages/3c/45/b369666909be4a6f58877b18e692655ee792e06047c6c572d1218e09a31c/langchain_anthropic-1.7.6.tar.gz", hash = "sha256:e5b41959a39810e69bc608fd6622b7d5d017bde93f858b09332fbb6ac764c393", size = 765188, upload-time = "2026-10-12T14:39:58.537Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b7/14/746235c4da89d9bc6a608c5f489f628e03feb8f697195c146e452c8f23c8/langchain_anthropic-1.4.8-py3-none-any.whl", hash = "sha256:778e9301b6fd517824f76ec1776975ce8add97a1f6a36c50ae3c2f4b03a66f7f", size = 52366, upload-time = "2026-06-26T21:28:45.535Z" }, + { url = "https://files.pythonhosted.org/packages/97/d6/da1ba42b7c26cd511c9be5473dbb178c51b07a337e94f09188d45f0306a2/langchain_anthropic-1.7.6-py3-none-any.whl", hash = "sha256:06bee97006d99e9a04abc4bd56599fc356c0c7f7f2a97629645cb603d9785c73", size = 65535, upload-time = "2026-10-12T14:39:57.386Z" }, ] [[package]] name = "langchain-core" -version = "1.4.9" +version = "1.6.10" source = { registry = "https://pypi.org/simple" } dependencies = [ + { name = "httpx" }, { name = "jsonpatch" }, { name = "langchain-protocol" }, { name = "langsmith" }, @@ -2009,41 +2034,41 @@ dependencies = [ { name = "typing-extensions" }, { name = "uuid-utils" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/2a/b9/e937d0a90b26540bff07e7a7c64349f3b29c2dcc36257cd1cd3fdce17f2a/langchain_core-1.4.9.tar.gz", hash = "sha256:f8078901145bed0466755277500a5a22822a7b628808c4c0a28d4fc88895fcf2", size = 967294, upload-time = "2026-07-08T20:06:54.191Z" } +sdist = { url = "https://files.pythonhosted.org/packages/f7/00/0a95f74a79908e7bc844a82fca35c1afc55689f55aaed086e95745946db8/langchain_core-1.6.10.tar.gz", hash = "sha256:3ad7a64eab150c1fea9f8a748b1c076aa1a960c5cf7c28d81a841a2f2dbffad1", size = 1010280, upload-time = "2026-10-12T14:13:51.184Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/84/70/ade2fada52772798ef815b6352b59e71b116aa0c32c3aef5be3dc2cbed12/langchain_core-1.4.9-py3-none-any.whl", hash = "sha256:28e3909e2a10cc81504952d795ac0a9e014c0018121ef89d48dd396fa09ec624", size = 558293, upload-time = "2026-07-08T20:06:52.382Z" }, + { url = "https://files.pythonhosted.org/packages/1e/2c/6ed698c6b451af0ed0efdbe94a703c18aea768d925347d8d1efd5645ae8c/langchain_core-1.6.10-py3-none-any.whl", hash = "sha256:14341bdd8b42d0dd9a53dbbcd8b0599ab47b0c718c7caa12e3eb5c50b32cffcb", size = 573253, upload-time = "2026-10-12T14:13:49.616Z" }, ] [[package]] name = "langchain-google-genai" -version = "4.2.7" +version = "4.4.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "filetype", marker = "python_full_version >= '3.11'" }, - { name = "google-genai", marker = "python_full_version >= '3.11'" }, - { name = "langchain-core", marker = "python_full_version >= '3.11'" }, - { name = "pydantic", marker = "python_full_version >= '3.11'" }, + { name = "filetype" }, + { name = "google-genai" }, + { name = "langchain-core" }, + { name = "pydantic" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/1d/0c/bc60dabc362ca7c6ffe8c4bcc2f724c7e566b43eb230cee51419f88f784c/langchain_google_genai-4.2.7.tar.gz", hash = "sha256:03b1463ffe4d42435f43c7870467f2215f684bb46400d2543435d10157c80ac7", size = 281605, upload-time = "2026-07-06T13:51:58.724Z" } +sdist = { url = "https://files.pythonhosted.org/packages/3f/25/3004415b1547436fee3445bcb2e06b2eace2dce95b693ad37af3ee0017d4/langchain_google_genai-4.4.1.tar.gz", hash = "sha256:1729b83e1e08d1431a6f4f29776b6b787b4f1c2ca95a248b08c4d90149d817bd", size = 378698, upload-time = "2026-10-10T19:08:16.655Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b2/f9/d73d1e712591723aaddb7a7b1e94978cd2320c29acfe0d26b6169a2f26f0/langchain_google_genai-4.2.7-py3-none-any.whl", hash = "sha256:0d9c388d0e6c629718fca6abb19c6fdca728a9a7873d0324c1ec821288b5b571", size = 70702, upload-time = "2026-07-06T13:51:57.499Z" }, + { url = "https://files.pythonhosted.org/packages/68/d6/bba02be84de7f3c92d0354a62f28cb6a40abed98373bce5b771ecde0a089/langchain_google_genai-4.4.1-py3-none-any.whl", hash = "sha256:462f1ad309498d11c8950d7b7ccf943580b021c0d778bd1415fa72e46e37e762", size = 81710, upload-time = "2026-10-10T19:08:15.389Z" }, ] [[package]] name = "langchain-protocol" -version = "0.0.18" +version = "0.0.19" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/d2/59/b5959aea96faa9146e2e49a7a22882b3528c62efafe9a6a95beab30c2305/langchain_protocol-0.0.18.tar.gz", hash = "sha256:ec3e11782f1ed0c9db38e5a9ed01b0e7a0d3fba406faa8aef6594b73c56a63e6", size = 6150, upload-time = "2026-06-18T17:08:26.959Z" } +sdist = { url = "https://files.pythonhosted.org/packages/14/56/913599f2f9cec8524868929f12d72b2ede377a6056ca8a40a32bdadfa535/langchain_protocol-0.0.19.tar.gz", hash = "sha256:79d90a1425122ac87e8052e2ec054fbd09c3edbf341bdfb6397112a495c7bf8c", size = 6265, upload-time = "2026-08-26T21:12:00.703Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/99/2e/d82db9eec13ad0f72e7aaad5c4bc730ab111934fdc83c85523206eb9b0a0/langchain_protocol-0.0.18-py3-none-any.whl", hash = "sha256:70b53a86fbf9cedc863555effe44da192ab02d556ddbf2cf95b8873adcf41b5a", size = 7221, upload-time = "2026-06-18T17:08:25.996Z" }, + { url = "https://files.pythonhosted.org/packages/80/c9/f6cbf357d48ccbd18bb394433b1fd7ad9be004eed9377ad08bb85777e5e6/langchain_protocol-0.0.19-py3-none-any.whl", hash = "sha256:4cdf879a492a35980fd859ae792d3c65458ccaae504e183c9a10d7eac1f0720f", size = 7327, upload-time = "2026-08-26T21:11:59.781Z" }, ] [[package]] name = "langgraph" -version = "1.2.9" +version = "1.2.15" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "langchain-core" }, @@ -2053,22 +2078,22 @@ dependencies = [ { name = "pydantic" }, { name = "xxhash" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/41/4b/0d1130e26b41a99dcc88353bbe7162a1f255c4db746bd94024268e6af27b/langgraph-1.2.9.tar.gz", hash = "sha256:385f87bc1802c35af7e0aa479278ecba8582d103515eb48256cb2ddcd42d0bd4", size = 722869, upload-time = "2026-07-10T01:30:14.985Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ab/69/d43defeb393d5e222574b80411ee3c214dc4de4012b4ce363f6faf115aff/langgraph-1.2.15.tar.gz", hash = "sha256:bebcfe5369b7307de1369ac00775f6e7b5a64ec94c050896b67de69d98aac612", size = 767102, upload-time = "2026-10-12T22:38:13.165Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/41/16/0b8dc48823f1326f3e0c8012a3c07a40da6f194299e2ec080df236287baf/langgraph-1.2.9-py3-none-any.whl", hash = "sha256:c2d98ad94333937922ba04148641c1da2bfe45b5b8e55d7b6dcb0bb2df809e76", size = 247473, upload-time = "2026-07-10T01:30:13.733Z" }, + { url = "https://files.pythonhosted.org/packages/c2/82/d79317d651dc575aa471cd777d781d8fdd28d974b1de90e8718d473f6863/langgraph-1.2.15-py3-none-any.whl", hash = "sha256:6e1611c4dad33d933b8cf21a91db73285221e67508feb2db5a0397af55fb838f", size = 259575, upload-time = "2026-10-12T22:38:11.806Z" }, ] [[package]] name = "langgraph-checkpoint" -version = "4.1.1" +version = "4.3.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "langchain-core" }, { name = "ormsgpack" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/83/47/886af6f886f0bff2273164a45f008694e48a96ff3cd25ff0228f2aa9480e/langgraph_checkpoint-4.1.1.tar.gz", hash = "sha256:6c2bdb530c91f91d7d9c1bd100925d0fc4f498d418c17f3587d1526279482a25", size = 184020, upload-time = "2026-05-22T16:57:38.503Z" } +sdist = { url = "https://files.pythonhosted.org/packages/0f/69/31fdbdc65a85bbd6178afa193c772bb926620f47b4869638bc2bc80afaaa/langgraph_checkpoint-4.3.0.tar.gz", hash = "sha256:c75965d84cc2c1d549163e910a15bcb577758001b141619d05297c463280b018", size = 182652, upload-time = "2026-10-12T22:26:31.478Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/bd/b4/71425e3e38be92611300b9cc5e46a5bf98ab23f5ea8a75b73d02a2f1413c/langgraph_checkpoint-4.1.1-py3-none-any.whl", hash = "sha256:25d29144b082827218e7bc3f1e9b0566a4bb007895cd6cc26f66a8428739f56e", size = 56212, upload-time = "2026-05-22T16:57:37.203Z" }, + { url = "https://files.pythonhosted.org/packages/1f/0c/84747e340bf4f29291c84cdd5733fc8d0a822f3d33bb24e664a18afa4a7c/langgraph_checkpoint-4.3.0-py3-none-any.whl", hash = "sha256:bedfafe2f997ded60e4fa593e79f56f436a6e45586392dc382aa810d0c751c64", size = 58063, upload-time = "2026-10-12T22:26:30.429Z" }, ] [[package]] @@ -2086,7 +2111,7 @@ wheels = [ [[package]] name = "langgraph-sdk" -version = "0.4.2" +version = "0.4.7" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "httpx" }, @@ -2095,30 +2120,34 @@ dependencies = [ { name = "orjson" }, { name = "websockets" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/b4/2b/bd8ac26d4e97f6df88ef05ce5b6a38945a3903e1025d926f4752aa88aa97/langgraph_sdk-0.4.2.tar.gz", hash = "sha256:b88f0f5f6328ac0680d6790614a905b2bcfa257f2276dba4e38f0e86db0aa738", size = 348327, upload-time = "2026-06-01T17:51:19.856Z" } +sdist = { url = "https://files.pythonhosted.org/packages/0e/5d/cbeacb114f4a6269fc476f7d2feba088f6ada0c00f81bf5decc587f81511/langgraph_sdk-0.4.7.tar.gz", hash = "sha256:6827560be31e38daae1514234e9aa12c345dd40d4d4b94aa1b443729bfccda69", size = 350917, upload-time = "2026-10-12T22:54:05.573Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a0/05/aac507337cceae773c2cc9ab91eb6301963af7aeeb55b4217a00e15aff17/langgraph_sdk-0.4.2-py3-none-any.whl", hash = "sha256:75fa5096c1177ce39c847096a8fe3745ffd480ddb412995f836e9f5f884c43dd", size = 160521, upload-time = "2026-06-01T17:51:18.849Z" }, + { url = "https://files.pythonhosted.org/packages/3a/2b/996e641d2020f30b25a523e8cc43f068406eb2b5b677190b3ca917cbbd05/langgraph_sdk-0.4.7-py3-none-any.whl", hash = "sha256:a005c7ac662c318a3405e436e9effaa90c05343f9f4ae9e11dca19c9369727dd", size = 162399, upload-time = "2026-10-12T22:54:04.224Z" }, ] [[package]] name = "langsmith" -version = "0.8.18" +version = "0.12.6" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "httpx" }, + { name = "anyio" }, + { name = "distro" }, + { name = "httpx2" }, { name = "orjson", marker = "platform_python_implementation != 'PyPy'" }, { name = "packaging" }, { name = "pydantic" }, { name = "requests" }, { name = "requests-toolbelt" }, + { name = "sniffio" }, + { name = "typing-extensions" }, { name = "uuid-utils" }, { name = "websockets" }, { name = "xxhash" }, { name = "zstandard" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/9a/d9/a6681aa9847bbbc5ec21abe20a5e233b94e5edcfe39624db607ac7e8ccb4/langsmith-0.8.18.tar.gz", hash = "sha256:32dde9c0e67e053e0fb738921fc8ced768af7b8fa83d7a0e3fd63597cf8776dd", size = 4526988, upload-time = "2026-06-19T13:12:17.123Z" } +sdist = { url = "https://files.pythonhosted.org/packages/1f/ab/53c8110164e52ae759d3fed27a24cf860c717995be3ab652cf4d671a2a60/langsmith-0.12.6.tar.gz", hash = "sha256:f16901a5be1539f8c789cd26391f1935886f4029bfaf465d82afde7f7cb464bb", size = 4890684, upload-time = "2026-09-16T17:35:09.174Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/03/70/0e0cc80a3b064c8d6c8d697c3125ed86e39d5a7393ec6dc8b07cb1cf13c4/langsmith-0.8.18-py3-none-any.whl", hash = "sha256:3940183349993faef48e6c7d08e4822ee9cefd906b362d0e3c2d650314d2f282", size = 508108, upload-time = "2026-06-19T13:12:15.348Z" }, + { url = "https://files.pythonhosted.org/packages/73/03/e63610daca0bdadb6456648beea89e812f245293d39f2eb7287503e2f419/langsmith-0.12.6-py3-none-any.whl", hash = "sha256:5782b38dd259b2a6a1933dc9ca2beba4fb2899ad05e2ab10d61568dc49ce1d35", size = 768545, upload-time = "2026-09-16T17:35:07.252Z" }, ] [[package]] @@ -2127,12 +2156,6 @@ version = "1.12.0" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/08/a2/69df9c6ba6d316cfd81fe2381e464db3e6de5db45f8c43c6a23504abf8cb/lazy_object_proxy-1.12.0.tar.gz", hash = "sha256:1f5a462d92fd0cfb82f1fab28b51bfb209fabbe6aabf7f0d51472c0c124c0c61", size = 43681, upload-time = "2025-08-22T13:50:06.783Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d6/2b/d5e8915038acbd6c6a9fcb8aaf923dc184222405d3710285a1fec6e262bc/lazy_object_proxy-1.12.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:61d5e3310a4aa5792c2b599a7a78ccf8687292c8eb09cf187cca8f09cf6a7519", size = 26658, upload-time = "2025-08-22T13:42:23.373Z" }, - { url = "https://files.pythonhosted.org/packages/da/8f/91fc00eeea46ee88b9df67f7c5388e60993341d2a406243d620b2fdfde57/lazy_object_proxy-1.12.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c1ca33565f698ac1aece152a10f432415d1a2aa9a42dfe23e5ba2bc255ab91f6", size = 68412, upload-time = "2025-08-22T13:42:24.727Z" }, - { url = "https://files.pythonhosted.org/packages/07/d2/b7189a0e095caedfea4d42e6b6949d2685c354263bdf18e19b21ca9b3cd6/lazy_object_proxy-1.12.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d01c7819a410f7c255b20799b65d36b414379a30c6f1684c7bd7eb6777338c1b", size = 67559, upload-time = "2025-08-22T13:42:25.875Z" }, - { url = "https://files.pythonhosted.org/packages/a3/ad/b013840cc43971582ff1ceaf784d35d3a579650eb6cc348e5e6ed7e34d28/lazy_object_proxy-1.12.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:029d2b355076710505c9545aef5ab3f750d89779310e26ddf2b7b23f6ea03cd8", size = 66651, upload-time = "2025-08-22T13:42:27.427Z" }, - { url = "https://files.pythonhosted.org/packages/7e/6f/b7368d301c15612fcc4cd00412b5d6ba55548bde09bdae71930e1a81f2ab/lazy_object_proxy-1.12.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:cc6e3614eca88b1c8a625fc0a47d0d745e7c3255b21dac0e30b3037c5e3deeb8", size = 66901, upload-time = "2025-08-22T13:42:28.585Z" }, - { url = "https://files.pythonhosted.org/packages/61/1b/c6b1865445576b2fc5fa0fbcfce1c05fee77d8979fd1aa653dd0f179aefc/lazy_object_proxy-1.12.0-cp310-cp310-win_amd64.whl", hash = "sha256:be5fe974e39ceb0d6c9db0663c0464669cf866b2851c73971409b9566e880eab", size = 26536, upload-time = "2025-08-22T13:42:29.636Z" }, { url = "https://files.pythonhosted.org/packages/01/b3/4684b1e128a87821e485f5a901b179790e6b5bc02f89b7ee19c23be36ef3/lazy_object_proxy-1.12.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1cf69cd1a6c7fe2dbcc3edaa017cf010f4192e53796538cc7d5e1fedbfa4bcff", size = 26656, upload-time = "2025-08-22T13:42:30.605Z" }, { url = "https://files.pythonhosted.org/packages/3a/03/1bdc21d9a6df9ff72d70b2ff17d8609321bea4b0d3cffd2cea92fb2ef738/lazy_object_proxy-1.12.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:efff4375a8c52f55a145dc8487a2108c2140f0bec4151ab4e1843e52eb9987ad", size = 68832, upload-time = "2025-08-22T13:42:31.675Z" }, { url = "https://files.pythonhosted.org/packages/3d/4b/5788e5e8bd01d19af71e50077ab020bc5cce67e935066cd65e1215a09ff9/lazy_object_proxy-1.12.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1192e8c2f1031a6ff453ee40213afa01ba765b3dc861302cd91dbdb2e2660b00", size = 69148, upload-time = "2025-08-22T13:42:32.876Z" }, @@ -2167,26 +2190,119 @@ wheels = [ ] [[package]] -name = "litellm" -version = "1.91.0" +name = "librt" +version = "0.16.0" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "aiohttp" }, - { name = "click" }, - { name = "fastuuid" }, - { name = "httpx" }, - { name = "importlib-metadata" }, - { name = "jinja2" }, - { name = "jsonschema" }, - { name = "openai" }, - { name = "pydantic" }, - { name = "python-dotenv" }, - { name = "tiktoken" }, - { name = "tokenizers" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/86/1e/90cfeada42170986a290feebaca0a90923b3c310cddeb0f8690abd239ad4/litellm-1.91.0.tar.gz", hash = "sha256:4fd469fe7356ba8fcc86f4efdf332e3426b760962ab12331fdaf1a01aeec065f", size = 14872290, upload-time = "2026-07-04T19:18:28.466Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a4/15/81fc2d162513803fe08b359c2e2a98f7a33195034fb94b005e263e272c6b/litellm-1.91.0-py3-none-any.whl", hash = "sha256:c3eb52dd2c6a5779e9efd67350f3640f9055d9c05d4b572fc1dd01a217e562ad", size = 16669331, upload-time = "2026-07-04T19:18:25.203Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/04/f5/9dc696772d241814bacac7880bac32f2930b5a6ebc1f85317b83161a011c/librt-0.16.0.tar.gz", hash = "sha256:ac38d6d8d66bf3d744148dbbc0b8e193e195a51e364ed55e224631f5721891fc", size = 219839, upload-time = "2026-09-29T00:55:32.891Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ba/0e/b04fd2d76b6a78a02286938251b2c119fb36ddece92c76cb4886ef7d44b8/librt-0.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:fe4372c52d4849096c6cc1cda2817d293ec51440c890474ed59ef38d46556f18", size = 148058, upload-time = "2026-09-29T00:44:40.903Z" }, + { url = "https://files.pythonhosted.org/packages/a3/fc/e1ed24aadb32d38603c0c07f579d739eb4d90e64e90d525b024e4a999b4d/librt-0.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c72c5295a84bd249526da9bdca38f2e176d15c31c13bb0063c5053f4ca023421", size = 153073, upload-time = "2026-09-29T00:44:42.165Z" }, + { url = "https://files.pythonhosted.org/packages/be/38/133ab655409420e0c34a9a9836a7f4e5ae75fba758d7fe177099130d58ba/librt-0.16.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:be56ba9c884143495b517f23fe794ae367d58cd89ea0fdd6d437e3c024a87f9f", size = 493052, upload-time = "2026-09-29T00:44:44.043Z" }, + { url = "https://files.pythonhosted.org/packages/94/42/aaa663bc9421f5bf7bbbe9d3316d7219749698ec7688ac3b519770a89c04/librt-0.16.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:ef46c1a29ffb8c72e882e22618ec618778eacd0578fb22c6e7cf9c11d15f357b", size = 485506, upload-time = "2026-09-29T00:44:45.479Z" }, + { url = "https://files.pythonhosted.org/packages/7b/59/83a6eb5087ba8b45b083859e2085256963e06d4c2531944cdd962670bfb5/librt-0.16.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d3c94211ee0c4f8d649ec06b7c115c0ec4eadb873a0e3154ca15cef3f814b071", size = 498708, upload-time = "2026-09-29T00:44:46.916Z" }, + { url = "https://files.pythonhosted.org/packages/a0/e4/15a8d62b2bc12935080ec7277e2e0b9b233047781eb784a51d3e25af669a/librt-0.16.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:94aed6a8308818b91677957d1bd03188869cd7aeb23c5dba7912a6c0402f7602", size = 515981, upload-time = "2026-09-29T00:44:48.316Z" }, + { url = "https://files.pythonhosted.org/packages/46/4f/287cc282ac5dd815204c0779e79401bb0a568c3a1335fb319bf0838fb566/librt-0.16.0-cp311-cp311-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:349c0bcb87ebd07481b6ff781e25cdc699723dbe2212e57dabb27f7a13b7b87d", size = 508670, upload-time = "2026-09-29T00:44:49.726Z" }, + { url = "https://files.pythonhosted.org/packages/bf/5b/ab7292add898ade0d2b5b75d32a923aae315861671aa5c39f5491309f7ae/librt-0.16.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:001bfd59a7d45b17e3e75f2a8c6405280b35e7b84471792778e718c4f368950e", size = 530393, upload-time = "2026-09-29T00:44:51.356Z" }, + { url = "https://files.pythonhosted.org/packages/7a/9e/8e6bcf027d4bcbc16a4e864b3d158a1d3e5f55ffa53af0238020cad89271/librt-0.16.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:28e038895b998d7a0c7798922ce8a1dc157675df5cf1c9ef0aca809ed804b7a1", size = 534302, upload-time = "2026-09-29T00:44:52.893Z" }, + { url = "https://files.pythonhosted.org/packages/96/a4/8c5ab4f3b3a8e905ff8305d76976a2e666f52fe049edd398aed2402beb36/librt-0.16.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:0dbe4096a7ecc00fa835d24510ad8545a4efef738dac96e0e63516783ccde905", size = 536150, upload-time = "2026-09-29T00:44:54.421Z" }, + { url = "https://files.pythonhosted.org/packages/ea/5e/7c4bc267e3cd4b8bd288de9f62d61fff203829c9cc649ea2aa12e9218cf0/librt-0.16.0-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:5cd5b092441053364af968ea12084692cb9d4a22f3ce9524e377880bf028761e", size = 514316, upload-time = "2026-09-29T00:44:55.998Z" }, + { url = "https://files.pythonhosted.org/packages/e0/75/c8bc6b50f43c73819334233f5a3259c81216742cef56d2140c3dd377c3f0/librt-0.16.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3ddeb3c9dedb461bb457c6c7d9aa7fbf35329da313d1a7543d00c8d0f3473c96", size = 557731, upload-time = "2026-09-29T00:44:57.581Z" }, + { url = "https://files.pythonhosted.org/packages/93/fb/e241f91bc8de6c7ac1c6a20ea6dd381bc52312b44d711ffcd97140db1e57/librt-0.16.0-cp311-cp311-win32.whl", hash = "sha256:e05108e0849966f53a8d2d3112a7af881d0efaa479bc735bba91108f9f2350a7", size = 104922, upload-time = "2026-09-29T00:44:59.078Z" }, + { url = "https://files.pythonhosted.org/packages/d1/38/c892383d2bb1a6a80b2ec8ede84970a265a792c56614a06282bf3008517c/librt-0.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:5f49cff01bd608ef7d97104cb035c75455e79c2d70bf4a506cf773338ac1860d", size = 125093, upload-time = "2026-09-29T00:49:01.621Z" }, + { url = "https://files.pythonhosted.org/packages/e4/56/8bbde1ed0b21480163617648f638fdaec9374cf5e9c846ebcee34ec02a42/librt-0.16.0-cp311-cp311-win_arm64.whl", hash = "sha256:1d28ae980ae2218f9c5b95d191e947296f918c9bf0b400d467a9430275bbe678", size = 115910, upload-time = "2026-09-29T00:52:40.131Z" }, + { url = "https://files.pythonhosted.org/packages/ad/76/bbdaeb87b7c47b5c7343e90222b9bfa4e4a8a83f647e02933ad0129225b1/librt-0.16.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:fe52bf4641069e7978a14253b036cb9002def1926317e710f2e249f8a8c47742", size = 151028, upload-time = "2026-09-29T00:52:41.508Z" }, + { url = "https://files.pythonhosted.org/packages/fd/0c/ab8ed3dab0085931aec4a792c7eaac8dc6c5ff4691fda3a5360d9d8a9cd2/librt-0.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5bcc2c4726ced915b00de0c9856a4eeabfb3fddb93e10e0b8f735b7709358b6d", size = 155283, upload-time = "2026-09-29T00:52:42.873Z" }, + { url = "https://files.pythonhosted.org/packages/eb/36/494e79d460c80c1f030661e8287c9eca5e1ad652dc2b2180b6cd42abce0a/librt-0.16.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ff7baa55f8e7c69851419e50a666015d02a74198716fd45c0125a2112e0a389f", size = 503185, upload-time = "2026-09-29T00:52:44.638Z" }, + { url = "https://files.pythonhosted.org/packages/9b/34/a8464038dd9db6e4381fa2b6eb73dc9a50888d77102c4c139304ac35cddc/librt-0.16.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:b95d5d92ab83d39e760a52091bb1baba664f3a2351e39b1e16801e5747c2f0e9", size = 496738, upload-time = "2026-09-29T00:52:46.441Z" }, + { url = "https://files.pythonhosted.org/packages/6a/53/e0e5e334ef0c6ed27039d323819368b9ef6712be87d55ee2bf9799398afd/librt-0.16.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b6d085d70bce51d43c5c7c36d63490770180d8779e71c49305c87b4213918de7", size = 513818, upload-time = "2026-09-29T00:52:48.068Z" }, + { url = "https://files.pythonhosted.org/packages/ad/f7/7ce72cbf19d0addd05090b339152fd0548a02562c2866a603e6e3b3da2df/librt-0.16.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:36e53948e99bbe3ffea257124cfcae1cfb01831555c9a9c903c9f9a72db7fd07", size = 531952, upload-time = "2026-09-29T00:52:49.816Z" }, + { url = "https://files.pythonhosted.org/packages/83/22/0b1bcb6a8e723c8b4fd60dfc8ae8ec6461c54073fbc8685efeb8d900d407/librt-0.16.0-cp312-cp312-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:54d11f726aae9df5a6ffbbf0a03a52449bbac84a53ef03669cb41cdfd4ae41bf", size = 524465, upload-time = "2026-09-29T00:52:51.354Z" }, + { url = "https://files.pythonhosted.org/packages/64/2e/e9c23b8b9df1813da1be205deca9606beb7ddd033972246cd426d05374a0/librt-0.16.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4323193ac0cd025f85af531df8ba91bf24d1973b401697347a6282e8fd3fcf5e", size = 543191, upload-time = "2026-09-29T00:52:53.284Z" }, + { url = "https://files.pythonhosted.org/packages/bc/e5/6a8b21b342c03ed7e230fa3afbfd2edc58e6e87ef1f0d11fa2b9a748c252/librt-0.16.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:e42f8e098b9c5396fefa05fb1cc7e33b0e08fc51da106b5de4a45fd22aac6743", size = 546979, upload-time = "2026-09-29T00:52:54.932Z" }, + { url = "https://files.pythonhosted.org/packages/84/9e/b5129023eced1be01e01c22757f53be551d463b1bb7264f787927404c1d6/librt-0.16.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:39ec1d5a14e37baf1450a6cabf03fe552340808bf1ad9d71824ab90117716459", size = 555317, upload-time = "2026-09-29T00:52:56.869Z" }, + { url = "https://files.pythonhosted.org/packages/71/89/28bba5938c725fe91f06bf93f7fa6c6b150229df53a87b454b0d5c2a796e/librt-0.16.0-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:d1aabe3925cbb4a08d15b7b20ba4011b53019da0c4173a25155139b7b1baed65", size = 535846, upload-time = "2026-09-29T00:52:58.475Z" }, + { url = "https://files.pythonhosted.org/packages/22/92/63773026614f888c5d4e370e395ce42ca604b89f70b3acdfedbf94851b80/librt-0.16.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:300c3ffdc459f4a779a8411ecb188e3ac0b1ff3a3a7b099642555dedae06c69b", size = 573700, upload-time = "2026-09-29T00:53:00.127Z" }, + { url = "https://files.pythonhosted.org/packages/66/8f/347d4677eefb57cd9f8e01d95a1dcee9a91b4e44e664173c32ff6f3752e5/librt-0.16.0-cp312-cp312-win32.whl", hash = "sha256:c17194318e4c0c0348b36f36c2ec7534436fe0a4c15582403162a4f08c80797a", size = 106158, upload-time = "2026-09-29T00:53:02.031Z" }, + { url = "https://files.pythonhosted.org/packages/f0/2c/5193dc81127cd5ddfad031391b046bf32dda219b38463ab872407ca30646/librt-0.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:25a58a19ea8d83b68209f04912df765e9260635ef77646542ed4b4abe6bc7940", size = 126176, upload-time = "2026-09-29T00:53:03.445Z" }, + { url = "https://files.pythonhosted.org/packages/ff/3d/9668a400c8dd81d162eba38b33fa49fa6205f1a64493570a13fbb815c3ee/librt-0.16.0-cp312-cp312-win_arm64.whl", hash = "sha256:f7be7cf555bc30ec12622e9447299cc4a9b8ff307548b634794353db0c2065dc", size = 116572, upload-time = "2026-09-29T00:53:04.815Z" }, + { url = "https://files.pythonhosted.org/packages/46/cd/ae5e0e9dba45d1399aa04a5395bcc0bead40d9fa06dc903634a7b4d7473d/librt-0.16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:c5e6144e68b577f157519f2ba88ca20e3ed61c29b00e5cdfa76cd2d45acf059a", size = 151036, upload-time = "2026-09-29T00:53:06.284Z" }, + { url = "https://files.pythonhosted.org/packages/41/5a/48a16e323c5f9447a94cce7b59babf60fa04e62c3365ecf060c77ed8b320/librt-0.16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:33f41443a1f4e1f099331b3d8120e409fbff84b9760bc1cc9ea496f37ddaa5cc", size = 155211, upload-time = "2026-09-29T00:53:07.72Z" }, + { url = "https://files.pythonhosted.org/packages/3f/29/0f59299eb4251a409b2e690ad4b7d9f8a676db829d7817ec961f32b44f7e/librt-0.16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7e510b7770bee609617a3374a96548eb114cae048023e3f049ee449e7ff2db32", size = 502587, upload-time = "2026-09-29T00:53:09.191Z" }, + { url = "https://files.pythonhosted.org/packages/de/ba/d6fb4ef8d1537c396079d72289f16be7cd35a366e5065c51253fea2760b6/librt-0.16.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:efc49c462d4516b8a58b00b490078fa64689fd1fe66970cc190131d7afb8027e", size = 496146, upload-time = "2026-09-29T00:53:11.016Z" }, + { url = "https://files.pythonhosted.org/packages/52/fc/8c50dd4d7cc97c0ee8f252c8a3104980f234391cf1519b554e8b9de08b60/librt-0.16.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:92caf82ebef5e12d21c72242b70d1e92536f1711cf2a727a4c276de4b4469087", size = 513336, upload-time = "2026-09-29T00:53:12.655Z" }, + { url = "https://files.pythonhosted.org/packages/a9/59/16c409c56f708eda2db9a0553662845d45e3871c77d70a240dae3f3bdc56/librt-0.16.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:17bac7f7a16b328fff77e440287693eb017abde913595b5827ebccbc21ecd8a6", size = 531689, upload-time = "2026-09-29T00:53:14.39Z" }, + { url = "https://files.pythonhosted.org/packages/88/82/d34772a6c29d1446dcca6e64d74062efd508523ab351aa16625a4689d5cc/librt-0.16.0-cp313-cp313-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5b976054553670829985ed767feb78fb6bcede0175327c4844dd5c281c1be659", size = 524537, upload-time = "2026-09-29T00:53:16.064Z" }, + { url = "https://files.pythonhosted.org/packages/77/8f/24c5631313746131ccee53bc91fdc8374f9cf25e0082a1fee9c93bb98acc/librt-0.16.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0058f9d68721094105917254c72ac0569117bb7b13b9769cf45d26d89f9d21cd", size = 543231, upload-time = "2026-09-29T00:53:17.939Z" }, + { url = "https://files.pythonhosted.org/packages/f2/cb/5f8e0d41dbd8b499c2265e939c31acc9ba59845565bf99539ad1c06aebcf/librt-0.16.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:30b7beaf3f4487b7d8adef1f158b49067cb4d5a19fa7a3bf31a4e7a820e435c5", size = 546499, upload-time = "2026-09-29T00:53:19.666Z" }, + { url = "https://files.pythonhosted.org/packages/be/61/063052de441d1385f59cea4223f184bf9e5d125de1ae3239b490aa1e486e/librt-0.16.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:468df902df016a06eb0e40b0747dc8d14e47d7a38b18b63b1fb167d85cb94d63", size = 555261, upload-time = "2026-09-29T00:53:21.292Z" }, + { url = "https://files.pythonhosted.org/packages/14/11/a2ada0529372268d6401afa9d457a095b68cd7753532b6f7f33049a19b43/librt-0.16.0-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:aea7b1f2b125dad5de85f049136651bff256c883c65e6b9209b2da0a1ac3cdef", size = 536029, upload-time = "2026-09-29T00:53:23.07Z" }, + { url = "https://files.pythonhosted.org/packages/23/9d/5bb6d38853382986dca702fc7e06c8256d30f5fa0676d882773b744610dc/librt-0.16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a8afb6557920860b7a3a596eb804cf37e09e7cf8a803db2478c202acc72d8c2e", size = 573748, upload-time = "2026-09-29T00:53:24.696Z" }, + { url = "https://files.pythonhosted.org/packages/99/f6/0025cde35ff7f607684dc775a2b2d732cce2561cec050a6ee1fb2e1fc6fe/librt-0.16.0-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:77c7a2b4fe2c1369e0d5aa1cade26740a7b14be32fbc9a5535d617d20065c39d", size = 79861, upload-time = "2026-09-29T00:53:26.089Z" }, + { url = "https://files.pythonhosted.org/packages/93/93/303b8592909bd583f83f02818ffbea3f7647ca1e22b1cd5465d04b8145fe/librt-0.16.0-cp313-cp313-win32.whl", hash = "sha256:02d89c813d5ff74b17df72d3a34819d132cd168e56b81bf755b809bd9e46b8c4", size = 106236, upload-time = "2026-09-29T00:53:27.43Z" }, + { url = "https://files.pythonhosted.org/packages/cf/24/80bbb463c60ed18e29cb26aba386ddb76609580e4e7160710e550587018c/librt-0.16.0-cp313-cp313-win_amd64.whl", hash = "sha256:14ed6ebe3e4f85f326d7920011ad30ff49ed9334e62cf88caef9ba973d9e3a92", size = 126180, upload-time = "2026-09-29T00:53:28.7Z" }, + { url = "https://files.pythonhosted.org/packages/43/80/b1a6fbdd7da825cdd55c71aa81eb6cfa82c513c360774152eacb50b4a771/librt-0.16.0-cp313-cp313-win_arm64.whl", hash = "sha256:83d4041a3d9b2fd053a8a4e1f22878b3e5833e2712956382d5c048d791454e91", size = 116557, upload-time = "2026-09-29T00:53:30.012Z" }, + { url = "https://files.pythonhosted.org/packages/1e/93/9e0cf7da129a93c3dc7f45bc3cd4a660f2aaa995aa8a6f95c2583ef41239/librt-0.16.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:931a0bb0fcac88f263e269e46eb30ba8e21402cd3c62ca40cb97034c0693fab1", size = 149844, upload-time = "2026-09-29T00:53:31.391Z" }, + { url = "https://files.pythonhosted.org/packages/8f/26/8a90d2a8f2b2e471bb486b7aec117b8ae622715ed6c39853aec48ea20073/librt-0.16.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1bc17e54e5305f8d40b7ca203671ff5a9e59c1d0f8ea0f625dcca53a3984de11", size = 154111, upload-time = "2026-09-29T00:53:32.718Z" }, + { url = "https://files.pythonhosted.org/packages/35/ce/67abb46258da4d3e42ff5b141db6f38c59357bef84c7979f183b22f924f1/librt-0.16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:877698bf6bca5721d8be345f2fe09778e40ecadea8b58c73075f2b1a53666bf2", size = 494234, upload-time = "2026-09-29T00:53:34.466Z" }, + { url = "https://files.pythonhosted.org/packages/12/f9/ea7162414a16f8f1bbd3b493ad6d22b926c5471916e078350bdbca8c4e5f/librt-0.16.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:5981c011b306781ce561e18e14230a14524a3d8109b97553666c942c18f31a96", size = 491173, upload-time = "2026-09-29T00:53:36.124Z" }, + { url = "https://files.pythonhosted.org/packages/b1/09/9b3e869060dd33f9989b80ba4fea306f6db8cecefcdfe6d7346ef0603f65/librt-0.16.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:afced3dfc17cd805ecf7a3d77996a71cf5f2c75aa66eb0c21a9930f4fc992f86", size = 505547, upload-time = "2026-09-29T00:53:37.686Z" }, + { url = "https://files.pythonhosted.org/packages/50/07/79007d2165f649ea93e08c0962d1d62c70af9cde77965255095bf9d96f9a/librt-0.16.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ca8052401c55d7511dda6760719fda7618067e83535d7d0010096d216c34b667", size = 523057, upload-time = "2026-09-29T00:53:39.301Z" }, + { url = "https://files.pythonhosted.org/packages/61/0c/8fbaff66d0ba376d8864653f5acce1569bae27e89648671f26f7eca67ab8/librt-0.16.0-cp314-cp314-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1e511762a074005bb0aa569166779834e75e438370226930d0ce1866d4b6a33b", size = 515158, upload-time = "2026-09-29T00:53:41.012Z" }, + { url = "https://files.pythonhosted.org/packages/df/2e/23ff0dece76f07a4124413a57682efa0bbeb5765ac0122bc0955513f82ca/librt-0.16.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:f1e8591bd8a5a628cd7f07954c6a1592359a878bf032957a8e9057a41d644311", size = 534183, upload-time = "2026-09-29T00:53:42.451Z" }, + { url = "https://files.pythonhosted.org/packages/26/c4/e11dea21d9a29486eba78887380374189d472734fa32cc50cb37ca44d3d0/librt-0.16.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a4aaefb4ba6c07e1aeebb2795c8958148f1d6f9af3b555b53d23d766edb6d67a", size = 540663, upload-time = "2026-09-29T00:53:44.272Z" }, + { url = "https://files.pythonhosted.org/packages/44/75/e873ae158a8b7f5359be33e7fd6c1fbe02d9a78a3e89a77de6b0e837f476/librt-0.16.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:d92db7a0f6aee44f1baee94750457e8d2d1c6ccea41842de6268d34e8dc7eddd", size = 545908, upload-time = "2026-09-29T00:53:45.812Z" }, + { url = "https://files.pythonhosted.org/packages/ba/36/8939d3f6a93e11bd9592e6fe28d2b44f1c2dc4bed6e22e72359a91e18ffb/librt-0.16.0-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:378dfaffb38e59c24a87cde5713cd865d51ff7383fa12947f3907f306ea1ca55", size = 523302, upload-time = "2026-09-29T00:53:47.596Z" }, + { url = "https://files.pythonhosted.org/packages/71/14/35309f44a077f0f42ade0e2e7cd88c0cea760c661af205c01ea90d3c0e1f/librt-0.16.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:3e0c39bdc85370422e8b637be76eb1fd07d30967551b03e62267dd156f553152", size = 565911, upload-time = "2026-09-29T00:53:49.278Z" }, + { url = "https://files.pythonhosted.org/packages/78/0c/df6255b94967f3159ebc46f08d8e783c12da6ee269ddb74b2efed63c640c/librt-0.16.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:1b384b90ab79a7bc30b566895809a636e0666f21f3cf12b54823d025b7e83839", size = 79119, upload-time = "2026-09-29T00:53:50.938Z" }, + { url = "https://files.pythonhosted.org/packages/6b/44/d30d5a5461378c9d33f36736c6791c3b4c4ba4b1ffe0da7350aedcb2c9a0/librt-0.16.0-cp314-cp314-win32.whl", hash = "sha256:52327da75a94012e7f932f913d20d3876bed3c102be00e6c3e8600ff7bdd58a7", size = 100140, upload-time = "2026-09-29T00:53:52.205Z" }, + { url = "https://files.pythonhosted.org/packages/c2/98/769712f356a1e897df3581bb0c3100375d054a000de26099360ea65b5111/librt-0.16.0-cp314-cp314-win_amd64.whl", hash = "sha256:3f0b8114c44b2ac06ff5dacd08e07e8e807ff4f46083f2a1602685122559be41", size = 120464, upload-time = "2026-09-29T00:53:53.495Z" }, + { url = "https://files.pythonhosted.org/packages/bf/d3/ae2abccc8bdc8b063c1613a77686e17b74e9d3d60cfe6f12c63fa2821b9f/librt-0.16.0-cp314-cp314-win_arm64.whl", hash = "sha256:8caf96a4ef8fb27d0ac0d1ad8337d26a240acd4a02fe4345d0a8f264753e8f99", size = 110889, upload-time = "2026-09-29T00:53:54.817Z" }, + { url = "https://files.pythonhosted.org/packages/e4/26/0737d4be058dd6376eade7dd8b380d4b869b6394cee929393a5a431c45bb/librt-0.16.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:953107e2f68d0f3512c48f898b0dbf0ce5cc52bba0f318d847c985dc555ee4cc", size = 159838, upload-time = "2026-09-29T00:53:56.22Z" }, + { url = "https://files.pythonhosted.org/packages/01/96/9bc96531d7c620e9949af904470f02e3fa8f35129ab8e8f281c51eaa3788/librt-0.16.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ad37d5b9abd49c9a655dcda7ea52a8a752884062ef1ee71ae17c2f2a0f81fe6a", size = 162018, upload-time = "2026-09-29T00:53:57.532Z" }, + { url = "https://files.pythonhosted.org/packages/0e/fa/b0289dcb186eb3f97221ba00da5f4bd3ba7fa5e99752d48aa8d336615334/librt-0.16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2c4aa329c17bd1aaea4f6e89335d8ccd494b3a5830b6654462273e50e11023f0", size = 703983, upload-time = "2026-09-29T00:53:59.024Z" }, + { url = "https://files.pythonhosted.org/packages/d9/ab/05ebbbde7530fc5eeb58fbd1581522a9f64f132fa703c4c595eed6e14760/librt-0.16.0-cp314-cp314t-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:0ead24d2562a49473dddd9efef8581f020007eb0054389c3ee3ffad38b1ca4c9", size = 683847, upload-time = "2026-09-29T00:54:00.671Z" }, + { url = "https://files.pythonhosted.org/packages/a3/75/f52aeecd4dbadbddf80725ba7de126d8bd5d0eb66247eae17a81ed90dd4d/librt-0.16.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:02118f56a9c36ddd07dfd9b919d9ecc117ba20a90987d56aa4c429fa34509188", size = 698045, upload-time = "2026-09-29T00:54:02.247Z" }, + { url = "https://files.pythonhosted.org/packages/e6/55/fa277a835cd6eb42380591ceb85f48c5b4d2b2d7e2cb9869e1e17d24d237/librt-0.16.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4e29522c62e28595ff7e324c6834ade51127707f0e255b18d1c1cf03d39c1048", size = 724640, upload-time = "2026-09-29T00:54:04.078Z" }, + { url = "https://files.pythonhosted.org/packages/25/e4/2cf64354f3fde8ebd591b3b48f96510bee24ac5f7d1e567adbbe210abdbd/librt-0.16.0-cp314-cp314t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3ff4b2367926b69c6215635902cccb04048e73094e9862900d27cb2c6bbff143", size = 731748, upload-time = "2026-09-29T00:54:05.741Z" }, + { url = "https://files.pythonhosted.org/packages/f8/c9/c180af3e94e01aa529fa93d7733fec2abc47f222345400cf21d5481d5f8a/librt-0.16.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c6f1b27bf1632a7e016af9f145f82be95e1edd7721a646505c21059257cb5a04", size = 754960, upload-time = "2026-09-29T00:54:07.38Z" }, + { url = "https://files.pythonhosted.org/packages/95/d6/01073aa78c58f356b10d9c57b3fe9abb143df338142bcd316df417b89db0/librt-0.16.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:5696d7f52e7b37217cb3a8f92c744fe835942602fdd4c1a8bc4741d3bfdce15e", size = 747000, upload-time = "2026-09-29T00:54:09.06Z" }, + { url = "https://files.pythonhosted.org/packages/f7/d8/1de3783908658d697a8cfc00582f61299ffba7796d7260c112e4700b1109/librt-0.16.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:6072e92dd876ff6ceeb6cf371e35e51f479349837391341f479b08df4564242b", size = 749569, upload-time = "2026-09-29T00:54:10.702Z" }, + { url = "https://files.pythonhosted.org/packages/b7/32/e817f66c96d6caa8bb8435ff93c4c220624d59efc506be59ab98fcd01d0c/librt-0.16.0-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:39ca4f2f2fe05de8e63493da592d84311adabe5bef52b193851981da9816b302", size = 729483, upload-time = "2026-09-29T00:54:12.25Z" }, + { url = "https://files.pythonhosted.org/packages/7c/c9/23992ccd2b9d22798fdd0f61353183a47414e651da782ad83eb680f50833/librt-0.16.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f9807485a908f00355820f18e91e045ffdcdc5adb68aaec40a1e2b88c5f7bba1", size = 776584, upload-time = "2026-09-29T00:54:13.837Z" }, + { url = "https://files.pythonhosted.org/packages/67/3b/e8af957f08e6e2e8e566b099e43d2748418aa565df6ee1d9d3331209fdfe/librt-0.16.0-cp314-cp314t-win32.whl", hash = "sha256:94be5cb7bca4df6201f4183e9e4fa2086c655283d20b38cd84500a69057575a7", size = 104402, upload-time = "2026-09-29T00:54:15.568Z" }, + { url = "https://files.pythonhosted.org/packages/ca/1c/946e6443d7cd32347a086043395e421e52fd603c9163d2ec970ceab8eed6/librt-0.16.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d46ca272b251d033dd4527b0dec5f261a28a52bd5fa0f99c117b0a1f8588cc2d", size = 126227, upload-time = "2026-09-29T00:54:17.165Z" }, + { url = "https://files.pythonhosted.org/packages/c2/a3/bc4f9959d3c62bcbf9e5fd3470a8bbd8bf33224ed4c25d7fba173201b8ac/librt-0.16.0-cp314-cp314t-win_arm64.whl", hash = "sha256:b9d6d4b14e92d876f8026b54c20c445f36425214c1081dc76f74e40db386b82b", size = 116493, upload-time = "2026-09-29T00:54:18.567Z" }, + { url = "https://files.pythonhosted.org/packages/b6/4b/10fdb42dfab4c1533e1570e686b18e86ff4328b406361b39fb3016667638/librt-0.16.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:6fe436af2eaf630474f491af5d032cbe45f93fcff5c3b9fe4ab194a7255b20ff", size = 149829, upload-time = "2026-09-29T00:54:19.933Z" }, + { url = "https://files.pythonhosted.org/packages/8e/30/a90ca13f1d3d91af1680000a4038536907018fbd51764767287a05d28b8b/librt-0.16.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:8ff5d26c529336be9bd7ae04483235d77778ee7d6444a95353102b542601ce81", size = 154522, upload-time = "2026-09-29T00:54:21.306Z" }, + { url = "https://files.pythonhosted.org/packages/5c/dd/bcf364eacfa070bb1fc88d503111ae7177914197ba1fa717c748926e7930/librt-0.16.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:909d8e3c1faee44cb762b1c519ff8613dcc5ceae5c99987a00917b5a31fd1d6a", size = 497593, upload-time = "2026-09-29T00:54:22.798Z" }, + { url = "https://files.pythonhosted.org/packages/18/c1/2c4e81e347bdabfe8346bfc6dc37ae5e154d61c88e30848ec0606025a5e0/librt-0.16.0-cp315-cp315-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:6d4a64283ee61824b5790de882bc68e2d9d7a5143537cb7a966f7354f71646d4", size = 480459, upload-time = "2026-09-29T00:54:24.364Z" }, + { url = "https://files.pythonhosted.org/packages/ab/d7/fef2a3cb8400701be496f6e459876f650b3451f407e30cb243de571ae615/librt-0.16.0-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5810ba811297fdf37a1531a57667cb8ace0842013ca8606bf9eb7c24cf4be154", size = 507814, upload-time = "2026-09-29T00:54:25.997Z" }, + { url = "https://files.pythonhosted.org/packages/e1/6f/53762927a32e9dc9eb1d1c1f3528da281290c86d96929a8af652f671266e/librt-0.16.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e56aaf8c167548dc8e5d6f3bd0f48dcdd299a23c73be3f744aab79d99e9c7f5d", size = 525114, upload-time = "2026-09-29T00:54:27.747Z" }, + { url = "https://files.pythonhosted.org/packages/6c/67/0b9d031f303c4e8c691a9a8ef9d272f13b530c11cc563b819df621b6a348/librt-0.16.0-cp315-cp315-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8f36c58e33b304b525c6c9c5076399c6ebf1109e17b9051a05a407b091b9215b", size = 520465, upload-time = "2026-09-29T00:54:29.331Z" }, + { url = "https://files.pythonhosted.org/packages/ae/d5/2056a3a85864e882eb17a203a10ddb26fa748bc9718ec67e79059ab46cae/librt-0.16.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:242e00b3d4fa37c3d3c1ca5f5c9adb7d909ddb1eac9c41f2787320d00caa0af2", size = 537257, upload-time = "2026-09-29T00:54:30.915Z" }, + { url = "https://files.pythonhosted.org/packages/54/57/e0d79790c163cbc0909e209a6f62e30bb713b647f905a176cdc64848fd4d/librt-0.16.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:0253721561787b8df8443eb347b7a6461015354e5bdd37ee38a41fef220d2bb0", size = 527442, upload-time = "2026-09-29T00:54:32.478Z" }, + { url = "https://files.pythonhosted.org/packages/aa/50/1c0c95aba7af51f4752ea34fbf2eb79b36e7cae3a72536248e8c735de735/librt-0.16.0-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:3e483a8d69ede8067db70c0e83007423b6925de6fd53afed01d66160f2e9398c", size = 548139, upload-time = "2026-09-29T00:54:34.183Z" }, + { url = "https://files.pythonhosted.org/packages/98/91/a8a43dd5138d4f55f88846b8f0c85454a4fad69952cebfcff9948f831290/librt-0.16.0-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:69ba927445cfaaffb4081003ef5224c55a5c2ab67ef956f416ef744916e44121", size = 529708, upload-time = "2026-09-29T00:54:35.761Z" }, + { url = "https://files.pythonhosted.org/packages/2d/41/d5226881ab2b7c20d9d587b37bdd4a0ec8775a96d00ca87ac9f385587db4/librt-0.16.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:d6a365f2ab45a984d0e00eee0dd17f599ceab8cadab6ea07b6111c8132fc0e42", size = 567781, upload-time = "2026-09-29T00:54:37.409Z" }, + { url = "https://files.pythonhosted.org/packages/bb/bf/2345ba57a626e8c78c4ddcc724636a8df5a593fe46c1ee76bbf477e32b0d/librt-0.16.0-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:f01f3805f2dae4781c0c34b440e31740d082950bdaf89a6f601ad589a28af57a", size = 79177, upload-time = "2026-09-29T00:54:38.792Z" }, + { url = "https://files.pythonhosted.org/packages/1e/40/99e77936cc9207f629b077bf7cbc5e2f0827cddd7c29792f04ef881bd2c3/librt-0.16.0-cp315-cp315-win32.whl", hash = "sha256:b0e3e721c75d2e79a76d4422c79d7ba705fe1bbafec907037fe7a657a480a0e3", size = 100127, upload-time = "2026-09-29T00:54:40.251Z" }, + { url = "https://files.pythonhosted.org/packages/56/1e/801fe26bc622061b9dfd010e166d94142cb774b733217e6d98d1c0cf2638/librt-0.16.0-cp315-cp315-win_amd64.whl", hash = "sha256:bc02954b1295de798bbdb0b4e2d8a28c2117de8b5c73dcbeb27dc32572dfb971", size = 120480, upload-time = "2026-09-29T00:54:41.722Z" }, + { url = "https://files.pythonhosted.org/packages/bb/a9/d533983055bd36e112627384c2c038845d1df882540b8bcefb566475640b/librt-0.16.0-cp315-cp315-win_arm64.whl", hash = "sha256:c5db585d43449a5f54303d4b2774e45e1babd975cfe1630a3d708c0b80c3e560", size = 110915, upload-time = "2026-09-29T00:54:43.052Z" }, + { url = "https://files.pythonhosted.org/packages/55/fe/d62238fa9c653b0e0613290349467cb65711b5800e8e474f45e942a0ad95/librt-0.16.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:f06c689cb14afd9b612727553a5ec5a40febf113ca41c4413a2b0b334285884b", size = 159714, upload-time = "2026-09-29T00:54:44.497Z" }, + { url = "https://files.pythonhosted.org/packages/f3/ac/f31efe7818700be72ba4f9af8a80fa67c39808c8d26dacc55dc1f6f35172/librt-0.16.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:13b4e8aba90b0b1c82474e9844aa9ffe7ad3faa484350e1da64cb8188d903134", size = 162086, upload-time = "2026-09-29T00:54:45.968Z" }, + { url = "https://files.pythonhosted.org/packages/d9/16/4d7487bf86a9d7e8e18f37ba5538789233ea693637379b75701bd35ec9de/librt-0.16.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5a269c46ae327d8e6f8c1f85f7516cb52c0fa48127565a1105a4f4a05ff2a0b4", size = 712727, upload-time = "2026-09-29T00:54:47.486Z" }, + { url = "https://files.pythonhosted.org/packages/77/74/50cd550ccc1a517b9ed62347625c01ddf8c4afad66490312677c011458f6/librt-0.16.0-cp315-cp315t-manylinux2014_i686.manylinux_2_17_i686.manylinux_2_28_i686.whl", hash = "sha256:a33e0dae1f8592146a4764d54ce842b278732d21a84e17c3bbe6b1bc158a2248", size = 681106, upload-time = "2026-09-29T00:54:49.126Z" }, + { url = "https://files.pythonhosted.org/packages/df/5d/7293f712975ee6fdd2251411fd9ef1c62bc99c7b83ecbe62dbc999b1fab7/librt-0.16.0-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:47ada6ea32636492c61aa8ad27ae3b9404bfe7a97e3ba946d1984236cc741da0", size = 705921, upload-time = "2026-09-29T00:54:50.905Z" }, + { url = "https://files.pythonhosted.org/packages/67/f7/8aab946f11d59d1bece9ffc65d994b200c789a8ca5a95c17e17e609f912a/librt-0.16.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c43bd6e642d8a248c114327f98dd25ac5a7cb5aa168ef02f0559b91874df16b8", size = 731786, upload-time = "2026-09-29T00:54:52.584Z" }, + { url = "https://files.pythonhosted.org/packages/43/76/1c42ab31e7cb8384ebf6d3af607213c495222474f4940443ae7639ab7685/librt-0.16.0-cp315-cp315t-manylinux_2_34_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c3d1bb7841a816ace6449bb26d3f9560dbfa20e71c568d23f0f62bf1e68f50b1", size = 744964, upload-time = "2026-09-29T00:54:54.217Z" }, + { url = "https://files.pythonhosted.org/packages/6f/2e/4b19982d933d2dfced671e840b219e4c1cd3f507df6e6dabb51bbd4e3850/librt-0.16.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:3931f7a3db322e7f44e02a280e3949326ce9579ad388ee8d691dc7c76da9fb70", size = 765305, upload-time = "2026-09-29T00:54:55.815Z" }, + { url = "https://files.pythonhosted.org/packages/b8/1b/e872583de2dcb3ac7746e7a2321aeeb168274f3952a87dc66e05ddb29faf/librt-0.16.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:f4462528b6000afe8f16907b5c7c2553abf1df005ba5140e6eb394541c3624c3", size = 744959, upload-time = "2026-09-29T00:54:57.532Z" }, + { url = "https://files.pythonhosted.org/packages/10/de/a18c6bcfb297af2674233e90b3c3661c3a0af0f1434a0c966d2ef708a835/librt-0.16.0-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:80039ba9b6a7d5f1a0175a4cca6bbefead87bd854c80abad1cb30afe47a830db", size = 758138, upload-time = "2026-09-29T00:54:59.484Z" }, + { url = "https://files.pythonhosted.org/packages/22/1c/0df1d732539c297bb1a093e1fe3204d2faf76a9022cf4e1d1c2fce059790/librt-0.16.0-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:7a1d272724b581bb6bc769dfdafed6da2ecc9886ba2450311de55a4ac2e1e9cd", size = 744268, upload-time = "2026-09-29T00:55:01.179Z" }, + { url = "https://files.pythonhosted.org/packages/a2/f7/ccaf31331f20c91a5bd9bd48ffc3f743f9c81bb5720cc7b2a720ca204f0a/librt-0.16.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:fbe4fb8c5445f7496d7f7f6bb0807875d09d47e6771ffa175fb2df2895fb86ba", size = 785783, upload-time = "2026-09-29T00:55:02.938Z" }, + { url = "https://files.pythonhosted.org/packages/c1/ea/7421d9e6db894cd6cd788b604b3394a163ded6b942052b6f96c23ccf08e1/librt-0.16.0-cp315-cp315t-win32.whl", hash = "sha256:375bfe6b572a8f6cfc398709356046173bf27e64c4c5edaf5f7062f051fb4bf9", size = 104355, upload-time = "2026-09-29T00:55:04.533Z" }, + { url = "https://files.pythonhosted.org/packages/85/6d/7c31a506eb847bc58aeb2402d58e17605e821f68ab5df5e66fe274a6df41/librt-0.16.0-cp315-cp315t-win_amd64.whl", hash = "sha256:bd3150023d3dc2bc70f3784e59ffa1140d56ddba3d8125b3d6f9f85221279bfc", size = 126134, upload-time = "2026-09-29T00:55:06.017Z" }, + { url = "https://files.pythonhosted.org/packages/36/69/7a5d10ac409c4da0355e054a14371871da9b5557fcc42772cd00181c6cce/librt-0.16.0-cp315-cp315t-win_arm64.whl", hash = "sha256:8ceafb70f2a4f0826f11031942e59c0728fd98da112dc346d4352bde1e486866", size = 116391, upload-time = "2026-09-29T00:55:07.484Z" }, ] [[package]] @@ -2210,131 +2326,158 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", hash = "sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", size = 91687, upload-time = "2026-05-07T12:08:27.182Z" }, ] -[[package]] -name = "markdownify" -version = "1.2.3" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "beautifulsoup4" }, - { name = "six" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/92/ab/d1297139c0e2ceb151ae564c8c4f57ac0155d8f1f8b4cbd5d6523c82ea36/markdownify-1.2.3.tar.gz", hash = "sha256:1a176f05522c8a2cb1dd3ab9d307dcdadbed5c26ae717855bfc42b3b6d38d937", size = 18852, upload-time = "2026-06-30T20:27:39.06Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/04/10/fa543d484e8b1199243fe20eedd02cc5af050edebce98a7293a5773df592/markdownify-1.2.3-py3-none-any.whl", hash = "sha256:a189a0bedfd14009030fde5f85bb6f77c56897cb839b5c25315dd7d4e3e290ba", size = 15732, upload-time = "2026-06-30T20:27:38.094Z" }, -] - [[package]] name = "markupsafe" -version = "3.0.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz", hash = "sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698", size = 80313, upload-time = "2025-09-27T18:37:40.426Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e8/4b/3541d44f3937ba468b75da9eebcae497dcf67adb65caa16760b0a6807ebb/markupsafe-3.0.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2f981d352f04553a7171b8e44369f2af4055f888dfb147d55e42d29e29e74559", size = 11631, upload-time = "2025-09-27T18:36:05.558Z" }, - { url = "https://files.pythonhosted.org/packages/98/1b/fbd8eed11021cabd9226c37342fa6ca4e8a98d8188a8d9b66740494960e4/markupsafe-3.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e1c1493fb6e50ab01d20a22826e57520f1284df32f2d8601fdd90b6304601419", size = 12057, upload-time = "2025-09-27T18:36:07.165Z" }, - { url = "https://files.pythonhosted.org/packages/40/01/e560d658dc0bb8ab762670ece35281dec7b6c1b33f5fbc09ebb57a185519/markupsafe-3.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1ba88449deb3de88bd40044603fafffb7bc2b055d626a330323a9ed736661695", size = 22050, upload-time = "2025-09-27T18:36:08.005Z" }, - { url = "https://files.pythonhosted.org/packages/af/cd/ce6e848bbf2c32314c9b237839119c5a564a59725b53157c856e90937b7a/markupsafe-3.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f42d0984e947b8adf7dd6dde396e720934d12c506ce84eea8476409563607591", size = 20681, upload-time = "2025-09-27T18:36:08.881Z" }, - { url = "https://files.pythonhosted.org/packages/c9/2a/b5c12c809f1c3045c4d580b035a743d12fcde53cf685dbc44660826308da/markupsafe-3.0.3-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c0c0b3ade1c0b13b936d7970b1d37a57acde9199dc2aecc4c336773e1d86049c", size = 20705, upload-time = "2025-09-27T18:36:10.131Z" }, - { url = "https://files.pythonhosted.org/packages/cf/e3/9427a68c82728d0a88c50f890d0fc072a1484de2f3ac1ad0bfc1a7214fd5/markupsafe-3.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:0303439a41979d9e74d18ff5e2dd8c43ed6c6001fd40e5bf2e43f7bd9bbc523f", size = 21524, upload-time = "2025-09-27T18:36:11.324Z" }, - { url = "https://files.pythonhosted.org/packages/bc/36/23578f29e9e582a4d0278e009b38081dbe363c5e7165113fad546918a232/markupsafe-3.0.3-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:d2ee202e79d8ed691ceebae8e0486bd9a2cd4794cec4824e1c99b6f5009502f6", size = 20282, upload-time = "2025-09-27T18:36:12.573Z" }, - { url = "https://files.pythonhosted.org/packages/56/21/dca11354e756ebd03e036bd8ad58d6d7168c80ce1fe5e75218e4945cbab7/markupsafe-3.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:177b5253b2834fe3678cb4a5f0059808258584c559193998be2601324fdeafb1", size = 20745, upload-time = "2025-09-27T18:36:13.504Z" }, - { url = "https://files.pythonhosted.org/packages/87/99/faba9369a7ad6e4d10b6a5fbf71fa2a188fe4a593b15f0963b73859a1bbd/markupsafe-3.0.3-cp310-cp310-win32.whl", hash = "sha256:2a15a08b17dd94c53a1da0438822d70ebcd13f8c3a95abe3a9ef9f11a94830aa", size = 14571, upload-time = "2025-09-27T18:36:14.779Z" }, - { url = "https://files.pythonhosted.org/packages/d6/25/55dc3ab959917602c96985cb1253efaa4ff42f71194bddeb61eb7278b8be/markupsafe-3.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:c4ffb7ebf07cfe8931028e3e4c85f0357459a3f9f9490886198848f4fa002ec8", size = 15056, upload-time = "2025-09-27T18:36:16.125Z" }, - { url = "https://files.pythonhosted.org/packages/d0/9e/0a02226640c255d1da0b8d12e24ac2aa6734da68bff14c05dd53b94a0fc3/markupsafe-3.0.3-cp310-cp310-win_arm64.whl", hash = "sha256:e2103a929dfa2fcaf9bb4e7c091983a49c9ac3b19c9061b6d5427dd7d14d81a1", size = 13932, upload-time = "2025-09-27T18:36:17.311Z" }, - { url = "https://files.pythonhosted.org/packages/08/db/fefacb2136439fc8dd20e797950e749aa1f4997ed584c62cfb8ef7c2be0e/markupsafe-3.0.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1cc7ea17a6824959616c525620e387f6dd30fec8cb44f649e31712db02123dad", size = 11631, upload-time = "2025-09-27T18:36:18.185Z" }, - { url = "https://files.pythonhosted.org/packages/e1/2e/5898933336b61975ce9dc04decbc0a7f2fee78c30353c5efba7f2d6ff27a/markupsafe-3.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4bd4cd07944443f5a265608cc6aab442e4f74dff8088b0dfc8238647b8f6ae9a", size = 12058, upload-time = "2025-09-27T18:36:19.444Z" }, - { url = "https://files.pythonhosted.org/packages/1d/09/adf2df3699d87d1d8184038df46a9c80d78c0148492323f4693df54e17bb/markupsafe-3.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b5420a1d9450023228968e7e6a9ce57f65d148ab56d2313fcd589eee96a7a50", size = 24287, upload-time = "2025-09-27T18:36:20.768Z" }, - { url = "https://files.pythonhosted.org/packages/30/ac/0273f6fcb5f42e314c6d8cd99effae6a5354604d461b8d392b5ec9530a54/markupsafe-3.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0bf2a864d67e76e5c9a34dc26ec616a66b9888e25e7b9460e1c76d3293bd9dbf", size = 22940, upload-time = "2025-09-27T18:36:22.249Z" }, - { url = "https://files.pythonhosted.org/packages/19/ae/31c1be199ef767124c042c6c3e904da327a2f7f0cd63a0337e1eca2967a8/markupsafe-3.0.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc51efed119bc9cfdf792cdeaa4d67e8f6fcccab66ed4bfdd6bde3e59bfcbb2f", size = 21887, upload-time = "2025-09-27T18:36:23.535Z" }, - { url = "https://files.pythonhosted.org/packages/b2/76/7edcab99d5349a4532a459e1fe64f0b0467a3365056ae550d3bcf3f79e1e/markupsafe-3.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:068f375c472b3e7acbe2d5318dea141359e6900156b5b2ba06a30b169086b91a", size = 23692, upload-time = "2025-09-27T18:36:24.823Z" }, - { url = "https://files.pythonhosted.org/packages/a4/28/6e74cdd26d7514849143d69f0bf2399f929c37dc2b31e6829fd2045b2765/markupsafe-3.0.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7be7b61bb172e1ed687f1754f8e7484f1c8019780f6f6b0786e76bb01c2ae115", size = 21471, upload-time = "2025-09-27T18:36:25.95Z" }, - { url = "https://files.pythonhosted.org/packages/62/7e/a145f36a5c2945673e590850a6f8014318d5577ed7e5920a4b3448e0865d/markupsafe-3.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f9e130248f4462aaa8e2552d547f36ddadbeaa573879158d721bbd33dfe4743a", size = 22923, upload-time = "2025-09-27T18:36:27.109Z" }, - { url = "https://files.pythonhosted.org/packages/0f/62/d9c46a7f5c9adbeeeda52f5b8d802e1094e9717705a645efc71b0913a0a8/markupsafe-3.0.3-cp311-cp311-win32.whl", hash = "sha256:0db14f5dafddbb6d9208827849fad01f1a2609380add406671a26386cdf15a19", size = 14572, upload-time = "2025-09-27T18:36:28.045Z" }, - { url = "https://files.pythonhosted.org/packages/83/8a/4414c03d3f891739326e1783338e48fb49781cc915b2e0ee052aa490d586/markupsafe-3.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:de8a88e63464af587c950061a5e6a67d3632e36df62b986892331d4620a35c01", size = 15077, upload-time = "2025-09-27T18:36:29.025Z" }, - { url = "https://files.pythonhosted.org/packages/35/73/893072b42e6862f319b5207adc9ae06070f095b358655f077f69a35601f0/markupsafe-3.0.3-cp311-cp311-win_arm64.whl", hash = "sha256:3b562dd9e9ea93f13d53989d23a7e775fdfd1066c33494ff43f5418bc8c58a5c", size = 13876, upload-time = "2025-09-27T18:36:29.954Z" }, - { url = "https://files.pythonhosted.org/packages/5a/72/147da192e38635ada20e0a2e1a51cf8823d2119ce8883f7053879c2199b5/markupsafe-3.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d53197da72cc091b024dd97249dfc7794d6a56530370992a5e1a08983ad9230e", size = 11615, upload-time = "2025-09-27T18:36:30.854Z" }, - { url = "https://files.pythonhosted.org/packages/9a/81/7e4e08678a1f98521201c3079f77db69fb552acd56067661f8c2f534a718/markupsafe-3.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1872df69a4de6aead3491198eaf13810b565bdbeec3ae2dc8780f14458ec73ce", size = 12020, upload-time = "2025-09-27T18:36:31.971Z" }, - { url = "https://files.pythonhosted.org/packages/1e/2c/799f4742efc39633a1b54a92eec4082e4f815314869865d876824c257c1e/markupsafe-3.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3a7e8ae81ae39e62a41ec302f972ba6ae23a5c5396c8e60113e9066ef893da0d", size = 24332, upload-time = "2025-09-27T18:36:32.813Z" }, - { url = "https://files.pythonhosted.org/packages/3c/2e/8d0c2ab90a8c1d9a24f0399058ab8519a3279d1bd4289511d74e909f060e/markupsafe-3.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d6dd0be5b5b189d31db7cda48b91d7e0a9795f31430b7f271219ab30f1d3ac9d", size = 22947, upload-time = "2025-09-27T18:36:33.86Z" }, - { url = "https://files.pythonhosted.org/packages/2c/54/887f3092a85238093a0b2154bd629c89444f395618842e8b0c41783898ea/markupsafe-3.0.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:94c6f0bb423f739146aec64595853541634bde58b2135f27f61c1ffd1cd4d16a", size = 21962, upload-time = "2025-09-27T18:36:35.099Z" }, - { url = "https://files.pythonhosted.org/packages/c9/2f/336b8c7b6f4a4d95e91119dc8521402461b74a485558d8f238a68312f11c/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:be8813b57049a7dc738189df53d69395eba14fb99345e0a5994914a3864c8a4b", size = 23760, upload-time = "2025-09-27T18:36:36.001Z" }, - { url = "https://files.pythonhosted.org/packages/32/43/67935f2b7e4982ffb50a4d169b724d74b62a3964bc1a9a527f5ac4f1ee2b/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:83891d0e9fb81a825d9a6d61e3f07550ca70a076484292a70fde82c4b807286f", size = 21529, upload-time = "2025-09-27T18:36:36.906Z" }, - { url = "https://files.pythonhosted.org/packages/89/e0/4486f11e51bbba8b0c041098859e869e304d1c261e59244baa3d295d47b7/markupsafe-3.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77f0643abe7495da77fb436f50f8dab76dbc6e5fd25d39589a0f1fe6548bfa2b", size = 23015, upload-time = "2025-09-27T18:36:37.868Z" }, - { url = "https://files.pythonhosted.org/packages/2f/e1/78ee7a023dac597a5825441ebd17170785a9dab23de95d2c7508ade94e0e/markupsafe-3.0.3-cp312-cp312-win32.whl", hash = "sha256:d88b440e37a16e651bda4c7c2b930eb586fd15ca7406cb39e211fcff3bf3017d", size = 14540, upload-time = "2025-09-27T18:36:38.761Z" }, - { url = "https://files.pythonhosted.org/packages/aa/5b/bec5aa9bbbb2c946ca2733ef9c4ca91c91b6a24580193e891b5f7dbe8e1e/markupsafe-3.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:26a5784ded40c9e318cfc2bdb30fe164bdb8665ded9cd64d500a34fb42067b1c", size = 15105, upload-time = "2025-09-27T18:36:39.701Z" }, - { url = "https://files.pythonhosted.org/packages/e5/f1/216fc1bbfd74011693a4fd837e7026152e89c4bcf3e77b6692fba9923123/markupsafe-3.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:35add3b638a5d900e807944a078b51922212fb3dedb01633a8defc4b01a3c85f", size = 13906, upload-time = "2025-09-27T18:36:40.689Z" }, - { url = "https://files.pythonhosted.org/packages/38/2f/907b9c7bbba283e68f20259574b13d005c121a0fa4c175f9bed27c4597ff/markupsafe-3.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e1cf1972137e83c5d4c136c43ced9ac51d0e124706ee1c8aa8532c1287fa8795", size = 11622, upload-time = "2025-09-27T18:36:41.777Z" }, - { url = "https://files.pythonhosted.org/packages/9c/d9/5f7756922cdd676869eca1c4e3c0cd0df60ed30199ffd775e319089cb3ed/markupsafe-3.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:116bb52f642a37c115f517494ea5feb03889e04df47eeff5b130b1808ce7c219", size = 12029, upload-time = "2025-09-27T18:36:43.257Z" }, - { url = "https://files.pythonhosted.org/packages/00/07/575a68c754943058c78f30db02ee03a64b3c638586fba6a6dd56830b30a3/markupsafe-3.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:133a43e73a802c5562be9bbcd03d090aa5a1fe899db609c29e8c8d815c5f6de6", size = 24374, upload-time = "2025-09-27T18:36:44.508Z" }, - { url = "https://files.pythonhosted.org/packages/a9/21/9b05698b46f218fc0e118e1f8168395c65c8a2c750ae2bab54fc4bd4e0e8/markupsafe-3.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ccfcd093f13f0f0b7fdd0f198b90053bf7b2f02a3927a30e63f3ccc9df56b676", size = 22980, upload-time = "2025-09-27T18:36:45.385Z" }, - { url = "https://files.pythonhosted.org/packages/7f/71/544260864f893f18b6827315b988c146b559391e6e7e8f7252839b1b846a/markupsafe-3.0.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:509fa21c6deb7a7a273d629cf5ec029bc209d1a51178615ddf718f5918992ab9", size = 21990, upload-time = "2025-09-27T18:36:46.916Z" }, - { url = "https://files.pythonhosted.org/packages/c2/28/b50fc2f74d1ad761af2f5dcce7492648b983d00a65b8c0e0cb457c82ebbe/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a4afe79fb3de0b7097d81da19090f4df4f8d3a2b3adaa8764138aac2e44f3af1", size = 23784, upload-time = "2025-09-27T18:36:47.884Z" }, - { url = "https://files.pythonhosted.org/packages/ed/76/104b2aa106a208da8b17a2fb72e033a5a9d7073c68f7e508b94916ed47a9/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:795e7751525cae078558e679d646ae45574b47ed6e7771863fcc079a6171a0fc", size = 21588, upload-time = "2025-09-27T18:36:48.82Z" }, - { url = "https://files.pythonhosted.org/packages/b5/99/16a5eb2d140087ebd97180d95249b00a03aa87e29cc224056274f2e45fd6/markupsafe-3.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8485f406a96febb5140bfeca44a73e3ce5116b2501ac54fe953e488fb1d03b12", size = 23041, upload-time = "2025-09-27T18:36:49.797Z" }, - { url = "https://files.pythonhosted.org/packages/19/bc/e7140ed90c5d61d77cea142eed9f9c303f4c4806f60a1044c13e3f1471d0/markupsafe-3.0.3-cp313-cp313-win32.whl", hash = "sha256:bdd37121970bfd8be76c5fb069c7751683bdf373db1ed6c010162b2a130248ed", size = 14543, upload-time = "2025-09-27T18:36:51.584Z" }, - { url = "https://files.pythonhosted.org/packages/05/73/c4abe620b841b6b791f2edc248f556900667a5a1cf023a6646967ae98335/markupsafe-3.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:9a1abfdc021a164803f4d485104931fb8f8c1efd55bc6b748d2f5774e78b62c5", size = 15113, upload-time = "2025-09-27T18:36:52.537Z" }, - { url = "https://files.pythonhosted.org/packages/f0/3a/fa34a0f7cfef23cf9500d68cb7c32dd64ffd58a12b09225fb03dd37d5b80/markupsafe-3.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:7e68f88e5b8799aa49c85cd116c932a1ac15caaa3f5db09087854d218359e485", size = 13911, upload-time = "2025-09-27T18:36:53.513Z" }, - { url = "https://files.pythonhosted.org/packages/e4/d7/e05cd7efe43a88a17a37b3ae96e79a19e846f3f456fe79c57ca61356ef01/markupsafe-3.0.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:218551f6df4868a8d527e3062d0fb968682fe92054e89978594c28e642c43a73", size = 11658, upload-time = "2025-09-27T18:36:54.819Z" }, - { url = "https://files.pythonhosted.org/packages/99/9e/e412117548182ce2148bdeacdda3bb494260c0b0184360fe0d56389b523b/markupsafe-3.0.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:3524b778fe5cfb3452a09d31e7b5adefeea8c5be1d43c4f810ba09f2ceb29d37", size = 12066, upload-time = "2025-09-27T18:36:55.714Z" }, - { url = "https://files.pythonhosted.org/packages/bc/e6/fa0ffcda717ef64a5108eaa7b4f5ed28d56122c9a6d70ab8b72f9f715c80/markupsafe-3.0.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4e885a3d1efa2eadc93c894a21770e4bc67899e3543680313b09f139e149ab19", size = 25639, upload-time = "2025-09-27T18:36:56.908Z" }, - { url = "https://files.pythonhosted.org/packages/96/ec/2102e881fe9d25fc16cb4b25d5f5cde50970967ffa5dddafdb771237062d/markupsafe-3.0.3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8709b08f4a89aa7586de0aadc8da56180242ee0ada3999749b183aa23df95025", size = 23569, upload-time = "2025-09-27T18:36:57.913Z" }, - { url = "https://files.pythonhosted.org/packages/4b/30/6f2fce1f1f205fc9323255b216ca8a235b15860c34b6798f810f05828e32/markupsafe-3.0.3-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b8512a91625c9b3da6f127803b166b629725e68af71f8184ae7e7d54686a56d6", size = 23284, upload-time = "2025-09-27T18:36:58.833Z" }, - { url = "https://files.pythonhosted.org/packages/58/47/4a0ccea4ab9f5dcb6f79c0236d954acb382202721e704223a8aafa38b5c8/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9b79b7a16f7fedff2495d684f2b59b0457c3b493778c9eed31111be64d58279f", size = 24801, upload-time = "2025-09-27T18:36:59.739Z" }, - { url = "https://files.pythonhosted.org/packages/6a/70/3780e9b72180b6fecb83a4814d84c3bf4b4ae4bf0b19c27196104149734c/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:12c63dfb4a98206f045aa9563db46507995f7ef6d83b2f68eda65c307c6829eb", size = 22769, upload-time = "2025-09-27T18:37:00.719Z" }, - { url = "https://files.pythonhosted.org/packages/98/c5/c03c7f4125180fc215220c035beac6b9cb684bc7a067c84fc69414d315f5/markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:8f71bc33915be5186016f675cd83a1e08523649b0e33efdb898db577ef5bb009", size = 23642, upload-time = "2025-09-27T18:37:01.673Z" }, - { url = "https://files.pythonhosted.org/packages/80/d6/2d1b89f6ca4bff1036499b1e29a1d02d282259f3681540e16563f27ebc23/markupsafe-3.0.3-cp313-cp313t-win32.whl", hash = "sha256:69c0b73548bc525c8cb9a251cddf1931d1db4d2258e9599c28c07ef3580ef354", size = 14612, upload-time = "2025-09-27T18:37:02.639Z" }, - { url = "https://files.pythonhosted.org/packages/2b/98/e48a4bfba0a0ffcf9925fe2d69240bfaa19c6f7507b8cd09c70684a53c1e/markupsafe-3.0.3-cp313-cp313t-win_amd64.whl", hash = "sha256:1b4b79e8ebf6b55351f0d91fe80f893b4743f104bff22e90697db1590e47a218", size = 15200, upload-time = "2025-09-27T18:37:03.582Z" }, - { url = "https://files.pythonhosted.org/packages/0e/72/e3cc540f351f316e9ed0f092757459afbc595824ca724cbc5a5d4263713f/markupsafe-3.0.3-cp313-cp313t-win_arm64.whl", hash = "sha256:ad2cf8aa28b8c020ab2fc8287b0f823d0a7d8630784c31e9ee5edea20f406287", size = 13973, upload-time = "2025-09-27T18:37:04.929Z" }, - { url = "https://files.pythonhosted.org/packages/33/8a/8e42d4838cd89b7dde187011e97fe6c3af66d8c044997d2183fbd6d31352/markupsafe-3.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaa9599de571d72e2daf60164784109f19978b327a3910d3e9de8c97b5b70cfe", size = 11619, upload-time = "2025-09-27T18:37:06.342Z" }, - { url = "https://files.pythonhosted.org/packages/b5/64/7660f8a4a8e53c924d0fa05dc3a55c9cee10bbd82b11c5afb27d44b096ce/markupsafe-3.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c47a551199eb8eb2121d4f0f15ae0f923d31350ab9280078d1e5f12b249e0026", size = 12029, upload-time = "2025-09-27T18:37:07.213Z" }, - { url = "https://files.pythonhosted.org/packages/da/ef/e648bfd021127bef5fa12e1720ffed0c6cbb8310c8d9bea7266337ff06de/markupsafe-3.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f34c41761022dd093b4b6896d4810782ffbabe30f2d443ff5f083e0cbbb8c737", size = 24408, upload-time = "2025-09-27T18:37:09.572Z" }, - { url = "https://files.pythonhosted.org/packages/41/3c/a36c2450754618e62008bf7435ccb0f88053e07592e6028a34776213d877/markupsafe-3.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:457a69a9577064c05a97c41f4e65148652db078a3a509039e64d3467b9e7ef97", size = 23005, upload-time = "2025-09-27T18:37:10.58Z" }, - { url = "https://files.pythonhosted.org/packages/bc/20/b7fdf89a8456b099837cd1dc21974632a02a999ec9bf7ca3e490aacd98e7/markupsafe-3.0.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e8afc3f2ccfa24215f8cb28dcf43f0113ac3c37c2f0f0806d8c70e4228c5cf4d", size = 22048, upload-time = "2025-09-27T18:37:11.547Z" }, - { url = "https://files.pythonhosted.org/packages/9a/a7/591f592afdc734f47db08a75793a55d7fbcc6902a723ae4cfbab61010cc5/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec15a59cf5af7be74194f7ab02d0f59a62bdcf1a537677ce67a2537c9b87fcda", size = 23821, upload-time = "2025-09-27T18:37:12.48Z" }, - { url = "https://files.pythonhosted.org/packages/7d/33/45b24e4f44195b26521bc6f1a82197118f74df348556594bd2262bda1038/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0eb9ff8191e8498cca014656ae6b8d61f39da5f95b488805da4bb029cccbfbaf", size = 21606, upload-time = "2025-09-27T18:37:13.485Z" }, - { url = "https://files.pythonhosted.org/packages/ff/0e/53dfaca23a69fbfbbf17a4b64072090e70717344c52eaaaa9c5ddff1e5f0/markupsafe-3.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2713baf880df847f2bece4230d4d094280f4e67b1e813eec43b4c0e144a34ffe", size = 23043, upload-time = "2025-09-27T18:37:14.408Z" }, - { url = "https://files.pythonhosted.org/packages/46/11/f333a06fc16236d5238bfe74daccbca41459dcd8d1fa952e8fbd5dccfb70/markupsafe-3.0.3-cp314-cp314-win32.whl", hash = "sha256:729586769a26dbceff69f7a7dbbf59ab6572b99d94576a5592625d5b411576b9", size = 14747, upload-time = "2025-09-27T18:37:15.36Z" }, - { url = "https://files.pythonhosted.org/packages/28/52/182836104b33b444e400b14f797212f720cbc9ed6ba34c800639d154e821/markupsafe-3.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:bdc919ead48f234740ad807933cdf545180bfbe9342c2bb451556db2ed958581", size = 15341, upload-time = "2025-09-27T18:37:16.496Z" }, - { url = "https://files.pythonhosted.org/packages/6f/18/acf23e91bd94fd7b3031558b1f013adfa21a8e407a3fdb32745538730382/markupsafe-3.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:5a7d5dc5140555cf21a6fefbdbf8723f06fcd2f63ef108f2854de715e4422cb4", size = 14073, upload-time = "2025-09-27T18:37:17.476Z" }, - { url = "https://files.pythonhosted.org/packages/3c/f0/57689aa4076e1b43b15fdfa646b04653969d50cf30c32a102762be2485da/markupsafe-3.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:1353ef0c1b138e1907ae78e2f6c63ff67501122006b0f9abad68fda5f4ffc6ab", size = 11661, upload-time = "2025-09-27T18:37:18.453Z" }, - { url = "https://files.pythonhosted.org/packages/89/c3/2e67a7ca217c6912985ec766c6393b636fb0c2344443ff9d91404dc4c79f/markupsafe-3.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1085e7fbddd3be5f89cc898938f42c0b3c711fdcb37d75221de2666af647c175", size = 12069, upload-time = "2025-09-27T18:37:19.332Z" }, - { url = "https://files.pythonhosted.org/packages/f0/00/be561dce4e6ca66b15276e184ce4b8aec61fe83662cce2f7d72bd3249d28/markupsafe-3.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1b52b4fb9df4eb9ae465f8d0c228a00624de2334f216f178a995ccdcf82c4634", size = 25670, upload-time = "2025-09-27T18:37:20.245Z" }, - { url = "https://files.pythonhosted.org/packages/50/09/c419f6f5a92e5fadde27efd190eca90f05e1261b10dbd8cbcb39cd8ea1dc/markupsafe-3.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed51ac40f757d41b7c48425901843666a6677e3e8eb0abcff09e4ba6e664f50", size = 23598, upload-time = "2025-09-27T18:37:21.177Z" }, - { url = "https://files.pythonhosted.org/packages/22/44/a0681611106e0b2921b3033fc19bc53323e0b50bc70cffdd19f7d679bb66/markupsafe-3.0.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f190daf01f13c72eac4efd5c430a8de82489d9cff23c364c3ea822545032993e", size = 23261, upload-time = "2025-09-27T18:37:22.167Z" }, - { url = "https://files.pythonhosted.org/packages/5f/57/1b0b3f100259dc9fffe780cfb60d4be71375510e435efec3d116b6436d43/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e56b7d45a839a697b5eb268c82a71bd8c7f6c94d6fd50c3d577fa39a9f1409f5", size = 24835, upload-time = "2025-09-27T18:37:23.296Z" }, - { url = "https://files.pythonhosted.org/packages/26/6a/4bf6d0c97c4920f1597cc14dd720705eca0bf7c787aebc6bb4d1bead5388/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:f3e98bb3798ead92273dc0e5fd0f31ade220f59a266ffd8a4f6065e0a3ce0523", size = 22733, upload-time = "2025-09-27T18:37:24.237Z" }, - { url = "https://files.pythonhosted.org/packages/14/c7/ca723101509b518797fedc2fdf79ba57f886b4aca8a7d31857ba3ee8281f/markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5678211cb9333a6468fb8d8be0305520aa073f50d17f089b5b4b477ea6e67fdc", size = 23672, upload-time = "2025-09-27T18:37:25.271Z" }, - { url = "https://files.pythonhosted.org/packages/fb/df/5bd7a48c256faecd1d36edc13133e51397e41b73bb77e1a69deab746ebac/markupsafe-3.0.3-cp314-cp314t-win32.whl", hash = "sha256:915c04ba3851909ce68ccc2b8e2cd691618c4dc4c4232fb7982bca3f41fd8c3d", size = 14819, upload-time = "2025-09-27T18:37:26.285Z" }, - { url = "https://files.pythonhosted.org/packages/1a/8a/0402ba61a2f16038b48b39bccca271134be00c5c9f0f623208399333c448/markupsafe-3.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4faffd047e07c38848ce017e8725090413cd80cbc23d86e55c587bf979e579c9", size = 15426, upload-time = "2025-09-27T18:37:27.316Z" }, - { url = "https://files.pythonhosted.org/packages/70/bc/6f1c2f612465f5fa89b95bead1f44dcb607670fd42891d8fdcd5d039f4f4/markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa", size = 14146, upload-time = "2025-09-27T18:37:28.327Z" }, +version = "3.0.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/38/9b/e422a865e1d5d57d0e509b4e0bf1c1a70a7f6382c29a5aa428df994c8bc8/markupsafe-3.0.4.tar.gz", hash = "sha256:2e9ad7dd851bf45fab9f75cbff4cb493fee9979e8d8c7c9c3ee119022518edd6", size = 153777, upload-time = "2026-10-02T23:07:22.29Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/32/55/18dbb4778b30ada5ce071608503cc3edc9e14e13d868c17a6d178fc30f7a/markupsafe-3.0.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9e25feb9e330b63edb0278a0acdf85e50d0cb0fbf49c3084abbe4e24ae195346", size = 11520, upload-time = "2026-10-02T23:04:36.299Z" }, + { url = "https://files.pythonhosted.org/packages/6c/14/0b05f79b4733e264a18d08fe08fa1df7347630ff32a6cb82180d9dccec55/markupsafe-3.0.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7d3391b2188d18737cb2fa147028b1096236eaa7e156446c650a489fa2cadc91", size = 12063, upload-time = "2026-10-02T23:04:37.291Z" }, + { url = "https://files.pythonhosted.org/packages/ca/3a/63ba10b6c1463216b3e4df669a9f0e5a3b0c3071557d2e8229e3968c79fb/markupsafe-3.0.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:849dd2bb0e5e4ab2b71c7191726a4a8d5aa8a610daa584728cbee0b710ddc4ef", size = 24321, upload-time = "2026-10-02T23:04:38.262Z" }, + { url = "https://files.pythonhosted.org/packages/1a/2e/5f015261b76ad633d187ef6f388b413aedd64a8773c4df59e530a0be5525/markupsafe-3.0.4-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:befb4158af32106b9a93db8d6d1d1cbbd418c0d5aca0cabb7b1780abf0c89169", size = 28845, upload-time = "2026-10-02T23:04:39.295Z" }, + { url = "https://files.pythonhosted.org/packages/33/cf/26e594b26be40c2f1fec63ccf8a8b99d0335a5b2cbe84835c7d82a994375/markupsafe-3.0.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:71f88e749ea29f67f21f3b36433c1dc54c7729ed2a6d9e2da2e0d9e0d7b224eb", size = 24701, upload-time = "2026-10-02T23:04:40.348Z" }, + { url = "https://files.pythonhosted.org/packages/81/a5/a513b76c139a3915b43404324e55c0b7979ae4f0d39eb6f075b0282e90a8/markupsafe-3.0.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6da83a088f8ef93b2d483a8232a4dbf4d69d3d8496b568a03c56becac43e1808", size = 22961, upload-time = "2026-10-02T23:04:41.372Z" }, + { url = "https://files.pythonhosted.org/packages/46/cf/4c66192c100b4542bcbe392ae06696b670f66927be3ac38a213234778ff9/markupsafe-3.0.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8f0fac8b13d14bb06c68195f849371924ae53dd7b1c00fed24650f704383b692", size = 21920, upload-time = "2026-10-02T23:04:42.429Z" }, + { url = "https://files.pythonhosted.org/packages/cb/17/ac3662678bfbad649893117ada2ba44dc30bf56884e84f13154a792b10f1/markupsafe-3.0.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:4a7cdc2a420ca01058182da4253329764d4bfa055564d1eced90e6ba1e8b1d3d", size = 23726, upload-time = "2026-10-02T23:04:43.531Z" }, + { url = "https://files.pythonhosted.org/packages/f7/af/fe47cee339180a69ebca3c57fb3483d0f5cbd1e8337d1871fb1d9c1aebee/markupsafe-3.0.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:83b3944fea42a8400edf92fd1770fb8d0d4f7de651353bd2d8525a92dba69a21", size = 22539, upload-time = "2026-10-02T23:04:44.618Z" }, + { url = "https://files.pythonhosted.org/packages/12/32/d55440ba140442800e02d799c9cb5ab597bf6ebdb1177b5ea39a11f797bd/markupsafe-3.0.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:8138eb83940ec7299024d92d4dee45f601b9e6c5ffde9d25f4e35e326203c707", size = 23963, upload-time = "2026-10-02T23:04:45.656Z" }, + { url = "https://files.pythonhosted.org/packages/50/9d/9c86042cb364c2ad4c971e6d1247929effd25f714cd7ee11b05e6316445b/markupsafe-3.0.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:811d02d5122171c1941357efd8f9bf4ffe907b7f0a1a4e729a880e4be3f46e3e", size = 21506, upload-time = "2026-10-02T23:04:46.671Z" }, + { url = "https://files.pythonhosted.org/packages/75/ef/5b824f03ba40c3b3652b6272d083d2fc4fcdd440de519a3a39ba2c3e7262/markupsafe-3.0.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:50b5bedc9ed8a94fc8857a42ef4f84a81ea88f8d4f05dc8705fb23ee6d8dcca7", size = 22955, upload-time = "2026-10-02T23:04:47.698Z" }, + { url = "https://files.pythonhosted.org/packages/1e/e8/44cfcb5ea40e5e43cec7793ef90704ed0c475280839076c4345757eb8e59/markupsafe-3.0.4-cp311-cp311-win32.whl", hash = "sha256:2e5a7cd7fdd14fcb1ae5d7d8bf23d24fbd1daefd1fbca2580132e1ea75f098b5", size = 14094, upload-time = "2026-10-02T23:04:48.788Z" }, + { url = "https://files.pythonhosted.org/packages/91/89/f2b509f7bf79352e40117824c1070dbeafd4df67031d3fa98165a3134228/markupsafe-3.0.4-cp311-cp311-win_amd64.whl", hash = "sha256:fdb4ca07ab75ffadab4a8b135ad59cdbb3156b99310f3d565370da74a15d6bd3", size = 14328, upload-time = "2026-10-02T23:04:49.801Z" }, + { url = "https://files.pythonhosted.org/packages/2b/5a/ccf22672a0f64dc682306e288f0dabcb06c7a201f3bb6e6cbf86d9e8ad03/markupsafe-3.0.4-cp311-cp311-win_arm64.whl", hash = "sha256:569d65055d367e3dcdf30c3f41119467b73d9ee9faf332bdf40402644f5ac08e", size = 14188, upload-time = "2026-10-02T23:04:50.847Z" }, + { url = "https://files.pythonhosted.org/packages/81/09/4c59d56b8461ae8eb0d8ba34bb25b7e618547044679d58a82ef9b2479fc1/markupsafe-3.0.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:61631e08084be9e21a8967ec3139c7616ed7c5e9368e05c86d1b39562c8a57b6", size = 11658, upload-time = "2026-10-02T23:04:51.876Z" }, + { url = "https://files.pythonhosted.org/packages/a2/f0/d6613774d86fbf6d145751d43c59875e47a6f9f17daee0aef173bd36d90e/markupsafe-3.0.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0930db9bdc62d22944e10b066448bb65dc9abe9112880c7cab8da54db4284d5f", size = 12050, upload-time = "2026-10-02T23:04:52.931Z" }, + { url = "https://files.pythonhosted.org/packages/0d/f2/8f18e0b806eb13c1f8d07d917a720831ead54253a6dec011fbc78098a6f8/markupsafe-3.0.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6a45c3d514f2436064db00d7fc8778d888f0236ebfed649b53d13a59e69ad51b", size = 24363, upload-time = "2026-10-02T23:04:53.895Z" }, + { url = "https://files.pythonhosted.org/packages/60/ce/fa07dbe8a5675558fa36dea033e19995bc783de2dec5f540ccb9030b06aa/markupsafe-3.0.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1e1451fab512d1bcc3dc26988ec1edb0b82c2db909132872cd9356070a6b63df", size = 28525, upload-time = "2026-10-02T23:04:54.905Z" }, + { url = "https://files.pythonhosted.org/packages/85/40/be87c01f3868ec217f8a2015089d71c22c8c5a75324822e5ed1cdd87210d/markupsafe-3.0.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bd3ce56ae2cbae3ba82b683bc425cd7e48d2ed8b10f3e818186b6f5646d9271c", size = 24733, upload-time = "2026-10-02T23:04:56.229Z" }, + { url = "https://files.pythonhosted.org/packages/4f/a7/aeedb5140afa41fc74c225e9184ab96723a6e873b6ee1c9fede7283456d8/markupsafe-3.0.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e124f974786f831d6043728e38296969d3579db8896fe004682f5758e613581", size = 22985, upload-time = "2026-10-02T23:04:57.521Z" }, + { url = "https://files.pythonhosted.org/packages/c3/fc/e91352bb08c6a59da3ef0909d457bf95a5f5908fbf151b30a06d9dbcfbb4/markupsafe-3.0.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c02e8f18bdedba082cef725942ac823b9b60656db07f7e265cb31618dfd00d77", size = 22001, upload-time = "2026-10-02T23:04:58.597Z" }, + { url = "https://files.pythonhosted.org/packages/5d/f8/bffee5e7d2a3deb59748a797650a48af7e672025cf641a79344a771ad106/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:9f098115c247e11d138ab83a28fa0323c77015007ea2df73ba5fd714dfefd67c", size = 23793, upload-time = "2026-10-02T23:04:59.686Z" }, + { url = "https://files.pythonhosted.org/packages/ed/59/b853d6628ecb4d658e1d637224846d5e9bb4adf4f8df97f3be9f29dce2ec/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:d5f93ebbeb8032d47e349328ec8662d973d9b05a70b3c35df1f91fe419b84749", size = 22640, upload-time = "2026-10-02T23:05:00.768Z" }, + { url = "https://files.pythonhosted.org/packages/09/b2/1506df394f0f075797c418d0301498f49e43be194e3ffcb49e6fe6ccf022/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:64511c54db4e4987aef4c41923235927428729e8174c5dba488429be70a998ed", size = 24074, upload-time = "2026-10-02T23:05:01.813Z" }, + { url = "https://files.pythonhosted.org/packages/c7/81/5ed69cda630ac69ef60d06c09ba5a7f84ff66a2e28cf986fd5614ab3c6e6/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:e1a622f13970d81f95d0c72f9dc090dce9085fccfa4c9f2174377ee32bd15786", size = 21563, upload-time = "2026-10-02T23:05:03.239Z" }, + { url = "https://files.pythonhosted.org/packages/0c/fe/fb1e79be0fea60aa32602ebefc9c35a82bb42b4df157285ab7dfec12341a/markupsafe-3.0.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c9a7f43c0b202b334cc9184af09bb8f21d3a209e038efaf106936fb69e6b026e", size = 23048, upload-time = "2026-10-02T23:05:04.479Z" }, + { url = "https://files.pythonhosted.org/packages/c8/52/7632a53360671a9b750cdbabaf9cdd89f18b42248b8e4cb42c0b0296e459/markupsafe-3.0.4-cp312-cp312-win32.whl", hash = "sha256:f0ec3b750b59375eab5b0fb2b9254810c00a3375be6d789899f1055a1d556237", size = 14108, upload-time = "2026-10-02T23:05:05.513Z" }, + { url = "https://files.pythonhosted.org/packages/3f/bf/62495e180b7000aaf30000fff849e933f74264638057176cf46852500adc/markupsafe-3.0.4-cp312-cp312-win_amd64.whl", hash = "sha256:11935df9bf455ed0c04eb87bcd720f02b1fe5e02128a9430f23aed6f93336fc7", size = 14303, upload-time = "2026-10-02T23:05:06.538Z" }, + { url = "https://files.pythonhosted.org/packages/c5/8e/4c24208776a65878d656996945aacfbfe010d3720d1a98fc0eb8491fc03b/markupsafe-3.0.4-cp312-cp312-win_arm64.whl", hash = "sha256:a4bbd2d87dd233b9fc5812160c3d0ffbe42edc22a26ce0469f58479ede633fe9", size = 14174, upload-time = "2026-10-02T23:05:07.617Z" }, + { url = "https://files.pythonhosted.org/packages/6d/18/4bc5ba32499e87bb2b0ef5b3a9bb9c00a131fa961ddf0be548cb550f548b/markupsafe-3.0.4-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:de8b364c423ef0a4bad9069657d617f9a5d2b2062457a89b1fa16ee199c399c1", size = 12786, upload-time = "2026-10-02T23:05:08.709Z" }, + { url = "https://files.pythonhosted.org/packages/4e/6f/17f0c099bf25f3e31e63cc19244d9f6af861a9a4ab778c203997903cfdd0/markupsafe-3.0.4-cp313-cp313-android_24_x86_64.whl", hash = "sha256:34bdde374c5932765d7dc685c4a1d191a3207852d67e8e0a9eb6ea85156181f1", size = 12510, upload-time = "2026-10-02T23:05:09.93Z" }, + { url = "https://files.pythonhosted.org/packages/11/af/1a141081b905036ee904ec4bd945e1f70b4e1b32d33c4e59e8cf1d58b247/markupsafe-3.0.4-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:6bd9e1788e15bfcf6a9082de42e30387e7b85d211ab21e57a939bb8cfaaf8d96", size = 11583, upload-time = "2026-10-02T23:05:10.884Z" }, + { url = "https://files.pythonhosted.org/packages/e7/0a/a89385ae590232622a03e091805cff12f24fabe6c11e0e8bae096cece81c/markupsafe-3.0.4-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:5066b244f576f91afc8ee3ba029a89f99d39c79b1853fe9d39bea9f0afbec148", size = 11801, upload-time = "2026-10-02T23:05:11.913Z" }, + { url = "https://files.pythonhosted.org/packages/ed/85/ea548dc013962eb73653124bc595635fbf9e0fa41d1f181a967ccb784dfb/markupsafe-3.0.4-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:7a83aa6e4805df46fed18e989d3d16f86ef60cb50bbc8d9ce3a6be89165fbf6e", size = 11443, upload-time = "2026-10-02T23:05:12.887Z" }, + { url = "https://files.pythonhosted.org/packages/cc/72/15f2e5ec9cf2eb00d5cdfe968d94e4156a7bd7303832c3f3b2c403a36839/markupsafe-3.0.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2d1b7d9308288661f56672b1b157d75fc536714d3638487bbea17b6318a78248", size = 11665, upload-time = "2026-10-02T23:05:13.829Z" }, + { url = "https://files.pythonhosted.org/packages/ca/e0/4030bea613677e333c8a2c901fd405055f657f9d06acba5b7357984b6ef7/markupsafe-3.0.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:73e77980c7207854f00fc4e71fb1626868d5740ab4012623d55c7a99ad122a72", size = 12061, upload-time = "2026-10-02T23:05:14.807Z" }, + { url = "https://files.pythonhosted.org/packages/f3/a5/28b76a7449eb702966b88bef599e2360b411fbb3afeee8fe560939be06ec/markupsafe-3.0.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7018d4af1cd272e847aa5917983ab5e83e4f6579f9dbfecd4a79c0ca80b144c2", size = 24395, upload-time = "2026-10-02T23:05:15.909Z" }, + { url = "https://files.pythonhosted.org/packages/07/6c/21232811afc3a063b5e934b1ae2efda52f46154ec382f585149c020e61fe/markupsafe-3.0.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c90d5b3d4e944e065a301d741b3c1d784f6bd1f503aa68b4967e32b2ba313d85", size = 27183, upload-time = "2026-10-02T23:05:16.976Z" }, + { url = "https://files.pythonhosted.org/packages/14/38/6ccdfa5b59049cb36fb80cbc80aee9cf1fc9bb77d1335ad435f2070b08cf/markupsafe-3.0.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:18a801868a884f216e784d7d14db2a4077143ce7610440aee2ce8f734e7cfcde", size = 24772, upload-time = "2026-10-02T23:05:18.209Z" }, + { url = "https://files.pythonhosted.org/packages/63/e0/cec6865dfe88cb48fedd4b20aed6af5158e41092adcbf3e028bcc6ec2108/markupsafe-3.0.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:434139499bb20b502ed3baa1f169e618f924a97e7a777fea1a49446d80106cf6", size = 23017, upload-time = "2026-10-02T23:05:19.286Z" }, + { url = "https://files.pythonhosted.org/packages/ee/76/6ed4940bb7648a9aac457c14f870cfdd5105f139a0fb1f29cd61fafa47d1/markupsafe-3.0.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9e227f3dbe6bde7491cf0a9965d00b88c6b1a4a95d11480ddf88bb96d397c19f", size = 22036, upload-time = "2026-10-02T23:05:20.352Z" }, + { url = "https://files.pythonhosted.org/packages/a1/4f/ed476226d4fe46a09090a36025bf319296810028df55eb12f1253b540f3a/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b8cd1f918b26fd7b1832ece557cc18f2d8747309ff8b3f0ef9d4250c5ad67a39", size = 23786, upload-time = "2026-10-02T23:05:21.576Z" }, + { url = "https://files.pythonhosted.org/packages/9a/35/66ff30450e35ef5fba9ebc930c9411747e537fd9447b65e44f5007e2b84d/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:a5fcffb37e602b0b3c1638a97746b9b96125caa9bcf6fa41d337a9261de231ee", size = 22672, upload-time = "2026-10-02T23:05:22.922Z" }, + { url = "https://files.pythonhosted.org/packages/32/0b/72f45ce4b4efcbca4b80cf1b06703eff0be8d37e82abb78f66c85a7ead1e/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:5989cb26b2e1efc6a42216a9f6b5ee495ce5ace2e5b352a9af489976b32d1ee2", size = 24107, upload-time = "2026-10-02T23:05:24.175Z" }, + { url = "https://files.pythonhosted.org/packages/d2/03/71776e5fdcba04614b384cc102e8a4198208579d896fd1394cb7cb9aa900/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:add96447a86d205ab616665d53b2950ee81083757f56e6ea833c8b2917646b46", size = 21615, upload-time = "2026-10-02T23:05:25.215Z" }, + { url = "https://files.pythonhosted.org/packages/ab/5f/801ce02a02e7aee0f784b1ec7843026178f6adeb9c93ac67eb1992a9a84d/markupsafe-3.0.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:2628d3a8cb648ecebb3c5d6b0a1052d400e4d8b7ac0fb786be8d285b50040d17", size = 23076, upload-time = "2026-10-02T23:05:26.423Z" }, + { url = "https://files.pythonhosted.org/packages/4a/85/c43776625428f3bb4a61e8633940400e3efe6409e3c6f5bff26de5e45618/markupsafe-3.0.4-cp313-cp313-win32.whl", hash = "sha256:672d207103e6b16ca098611b0f9efad6bc00afd47c03d6ef62186495ca677dc0", size = 14118, upload-time = "2026-10-02T23:05:27.716Z" }, + { url = "https://files.pythonhosted.org/packages/6f/36/163da64de88a13db79214ef75fa041be7fa13bdb42261cf5b7484de14bfb/markupsafe-3.0.4-cp313-cp313-win_amd64.whl", hash = "sha256:1f1f9477e174582b0a1b583d60b66e1f2cf5d3fe12cee985e4aedf44766600e5", size = 14313, upload-time = "2026-10-02T23:05:28.749Z" }, + { url = "https://files.pythonhosted.org/packages/9f/a8/9b662783ffaa1149221432a923cee562f78b9cbbb8baa3df9b3753e63e1e/markupsafe-3.0.4-cp313-cp313-win_arm64.whl", hash = "sha256:06de8ef6331f6e822c28d577dc8bf43fe398800477c49498f38fc38b67ff33fc", size = 14189, upload-time = "2026-10-02T23:05:29.917Z" }, + { url = "https://files.pythonhosted.org/packages/5c/c3/a944f3b0df22bd129e96915b9f4e98d2eeca6516687d7618304a966c3c74/markupsafe-3.0.4-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:4ed644d75aa94a2baf7ec3a96eaa160ea58c742eb9d27c6506053c5c40fc84ed", size = 12787, upload-time = "2026-10-02T23:05:30.971Z" }, + { url = "https://files.pythonhosted.org/packages/d4/d6/a44863f69d88b6c7e27889108f70d47aed259edf89d5df3c5fca1eac87d6/markupsafe-3.0.4-cp314-cp314-android_24_x86_64.whl", hash = "sha256:6d2a9efe686f9de00d0d1ea32a4a5a86d558a2277501bd78d964214eab625e59", size = 12525, upload-time = "2026-10-02T23:05:32.263Z" }, + { url = "https://files.pythonhosted.org/packages/17/8f/168ba80e532dd6a93f96f8f706f1ad41d7990b6e1aeedc1cc0d211a33497/markupsafe-3.0.4-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:8781a792a070cf2bd1b86d3aa943894115faaba6e88122a7bf32d62072742453", size = 11589, upload-time = "2026-10-02T23:05:33.251Z" }, + { url = "https://files.pythonhosted.org/packages/32/b3/aa2c95a574d3af39403a469b295886eb9b6d448da568cbebb5a2cbfdc2e5/markupsafe-3.0.4-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:971a3bbb75d97ae4e2e8f7d4834236f86f85f0c85e04ab2e191db1123b04f80b", size = 11801, upload-time = "2026-10-02T23:05:34.315Z" }, + { url = "https://files.pythonhosted.org/packages/60/d0/34b810107d83840e768bf485de795893ebbae35b26ab061b487adfa0a692/markupsafe-3.0.4-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:8909c2f1c6dd65e054ac4b573a91c8384d1492281e55d82d159d653f7a13adf6", size = 11447, upload-time = "2026-10-02T23:05:35.302Z" }, + { url = "https://files.pythonhosted.org/packages/6c/ab/2f8488f0f817a39fca068d2b17daf446bf5cdb3eae28c3720af534d873b4/markupsafe-3.0.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:4cf3468d5ec187ffffcaca8e61929a37448f215dafc1386a12c750a72fe53634", size = 11722, upload-time = "2026-10-02T23:05:36.363Z" }, + { url = "https://files.pythonhosted.org/packages/ad/40/e2d117b048d47282ade906fbfd92814cbee5647afc13fda88a3406039372/markupsafe-3.0.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:52704c5d36eb6dda8866493decd61111fff86244c9b1ad225ca01b9e91e5970f", size = 12061, upload-time = "2026-10-02T23:05:37.397Z" }, + { url = "https://files.pythonhosted.org/packages/9a/a8/73a81135e85ba66217f5af7facb03bbb386807e1a729ab64532e4c802652/markupsafe-3.0.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1caa2fa5a6184fb233153b35f654e6687bd555476f6170f29d8ee9be1a8b0af9", size = 24434, upload-time = "2026-10-02T23:05:38.407Z" }, + { url = "https://files.pythonhosted.org/packages/ac/ca/fa9216dd01efee2dfdacafe7df32b4d0170fbac694b0c258a193d6e53999/markupsafe-3.0.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:387d8cd30e69b3f0a72877b9ae717033396404e19095b17fe89753a981fda44f", size = 27183, upload-time = "2026-10-02T23:05:39.581Z" }, + { url = "https://files.pythonhosted.org/packages/fa/4e/a469509e538d37af51103b17b073126973f2b1cbf197ff32c7ddf025cfe5/markupsafe-3.0.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:051417f74bcaaefa316276e0ff723f541616ca51043d070da00249d9bddd3e3c", size = 24813, upload-time = "2026-10-02T23:05:40.671Z" }, + { url = "https://files.pythonhosted.org/packages/8f/db/d7282caf7ab03af44d5d6fdbaa019b35c7d7f1c90588b839c07cba640d6a/markupsafe-3.0.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8e9f292fcda89b324f2f5c91d13f1424a153e40fc2756f38ee23b15835ff300", size = 23049, upload-time = "2026-10-02T23:05:41.864Z" }, + { url = "https://files.pythonhosted.org/packages/30/f3/b6a425206e6964efda6acee544d0eb01d1501784d0b8e2dcc74986f33b17/markupsafe-3.0.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:df1ae86ff54725a01fa1a0510b914ca53a161b7050be74f6204e24aded5971d0", size = 22088, upload-time = "2026-10-02T23:05:43.014Z" }, + { url = "https://files.pythonhosted.org/packages/ea/8a/84d3582fc1f0d5bd466cdf2eebf175e172158a6e70701aacec1de1b35430/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8965520ac587c94a4ac48b729be3d8b8de00af39699b17585dfb599babe77977", size = 23846, upload-time = "2026-10-02T23:05:44.098Z" }, + { url = "https://files.pythonhosted.org/packages/1c/65/db101cce51b7ba4864ac491a9859d297dd1adf0e55b103fee9db9c47c527/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:340cbb1957ba99929cbf19a75626d36ba1ae21d1730b287d1cf7f824a20c4fc7", size = 22674, upload-time = "2026-10-02T23:05:45.23Z" }, + { url = "https://files.pythonhosted.org/packages/e0/49/ddee9813d71db0c7a5c9d97c832125e6758a0c844777f1cf076569bb0e22/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:3a93d9616ddecfb393727a0041a562cf0b15a244e20f2bd25efc7949be4c4f17", size = 24104, upload-time = "2026-10-02T23:05:46.398Z" }, + { url = "https://files.pythonhosted.org/packages/aa/0e/7d8518d726726870a2399d69fd30d0fa36c5e57a2132c336b58d7c491073/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:d2e56fd3b00222722abfb3f5f0759ddbae4b90811b5ad4343c64030ad1bde70c", size = 21637, upload-time = "2026-10-02T23:05:47.48Z" }, + { url = "https://files.pythonhosted.org/packages/b4/b0/b505e8a361ba557dbf3b3aa7331ea39b00d2022a26e925ff8463b9714bb3/markupsafe-3.0.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:0d9c47709875fdb321452056622e930c52afbc07a7d780762fbb8b4d91ce6fa4", size = 23081, upload-time = "2026-10-02T23:05:48.611Z" }, + { url = "https://files.pythonhosted.org/packages/1c/ea/9cc3cea873f980c75cbdb6f4277ce30ee955de38be0b3d02f14c108e0698/markupsafe-3.0.4-cp314-cp314-win32.whl", hash = "sha256:38fc55594dab834470b6733dead2ee9e3f657fb0608c769dcafa0ba5ab52f45c", size = 14272, upload-time = "2026-10-02T23:05:49.707Z" }, + { url = "https://files.pythonhosted.org/packages/80/f0/5792ff768a410f93ee3f84fc19345295ffc352d2c936b424cb37e514714c/markupsafe-3.0.4-cp314-cp314-win_amd64.whl", hash = "sha256:c1bc67752d5f21013cfe430df4062441714eab79f65a6a05e01505957e9c35fe", size = 14501, upload-time = "2026-10-02T23:05:50.788Z" }, + { url = "https://files.pythonhosted.org/packages/5f/cf/3d074a8edffcc6899355232ff2543ae8d929733239596423b7db79698bc9/markupsafe-3.0.4-cp314-cp314-win_arm64.whl", hash = "sha256:7e1636da3d8dfc220b6dd10264db5f2b165e4888c4518594898fbe381049af8a", size = 14364, upload-time = "2026-10-02T23:05:51.857Z" }, + { url = "https://files.pythonhosted.org/packages/d9/31/87ce42159aae2163cf3bbbd0c44bc87780510eecab1ea3859099aed95dcb/markupsafe-3.0.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:805c8b84534fa10891890f0e4be39f3a99e94615d93e8836bf9fa1fdca2feeb2", size = 11759, upload-time = "2026-10-02T23:05:52.951Z" }, + { url = "https://files.pythonhosted.org/packages/5f/53/b047207eeb7752e960aca3eb1df5fb7eefa7dd4c62ac49bb156456c8a702/markupsafe-3.0.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:fa95848c929b6a75f6848d3c9793e59db365ee436776e57db835cdbfa79ba977", size = 12096, upload-time = "2026-10-02T23:05:54.066Z" }, + { url = "https://files.pythonhosted.org/packages/ee/51/4326c88a13c7b755657d44b4bb986f8c3d9843ecba7e22d98661d87f9a57/markupsafe-3.0.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e916035e3e9930cbdfdd10abf48861340221857f45509565898e012263f7b289", size = 25699, upload-time = "2026-10-02T23:05:55.15Z" }, + { url = "https://files.pythonhosted.org/packages/f2/bb/990581b7474bfcf2cf34bed6ba5ea23bd87adb9d671213d68e88620e7a6b/markupsafe-3.0.4-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b4d12837e0203bbace818ff4a7461afdcd78bcd782351cea148139180d7bcffe", size = 27804, upload-time = "2026-10-02T23:05:56.29Z" }, + { url = "https://files.pythonhosted.org/packages/6b/89/89491878c28e8291f5aa2fffe2c2d57230d10ae366d55dd810b840513d78/markupsafe-3.0.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5086f9975abb1ab531ee6afca1761e4b59a19b446f3f6522ed776963228cfe5a", size = 25912, upload-time = "2026-10-02T23:05:57.416Z" }, + { url = "https://files.pythonhosted.org/packages/30/77/680998b54efdea06fc114565cd739b6d059f826a0279219b218dfa750d29/markupsafe-3.0.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b4a635a0487774f841cb1fb62e907e7195cc95bc761e053184b8acc3ceb20733", size = 23623, upload-time = "2026-10-02T23:05:58.557Z" }, + { url = "https://files.pythonhosted.org/packages/ae/75/2709f5ac5de9467b40b10e2bb8f89cc63dfb74582e09aa734b1124a217de/markupsafe-3.0.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cb96e6e088d6cf71c1ea977510948320234824cf226e32f6f6e044f7a9c82b34", size = 23301, upload-time = "2026-10-02T23:05:59.94Z" }, + { url = "https://files.pythonhosted.org/packages/a0/c8/39eadc6c5b14c9c7679bfb98f4d4c6a97863b5beb91839aca4d2d6e16e55/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8b5d563170ff8ba3181caa967c99a3c804d1dedb702c7cb93a6a7c32247da978", size = 24950, upload-time = "2026-10-02T23:06:01.289Z" }, + { url = "https://files.pythonhosted.org/packages/1a/5e/01037f8a43e8ccb0bffb4fbdc5212db05bf080fdd7286cd392332d58128a/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:396ec4e65cc889f69786b3b89478b471cee5a3bcf468b9d9bb03e1a30fb291fc", size = 23330, upload-time = "2026-10-02T23:06:02.441Z" }, + { url = "https://files.pythonhosted.org/packages/d4/f4/23e83ce0596bb0cbe670502d31df8f757bbd01a392aa486fa3b40d1ed399/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:15ba9e28640feef770374b116a6f019c21f52404aeabe516aa7f800587b98cfc", size = 25239, upload-time = "2026-10-02T23:06:03.579Z" }, + { url = "https://files.pythonhosted.org/packages/88/5b/3708897368073cc683d524750474f41a77d2986152c380dcc55b20fdf340/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:d920abdfa61279ba1a2ef9484aab07bf03331f8c08a10120fa332353d06e6932", size = 22767, upload-time = "2026-10-02T23:06:04.699Z" }, + { url = "https://files.pythonhosted.org/packages/c6/61/ebda1307864b409e6b3115757a3d4a09cca46cfb6cc65191b5de226b424b/markupsafe-3.0.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:a9f54054101545a9a9cccefddf54316aa6e4491611fcbef9e91b3b6bebec04f6", size = 23668, upload-time = "2026-10-02T23:06:05.9Z" }, + { url = "https://files.pythonhosted.org/packages/09/15/98075cceac3b5ba0dbb8e4762a847be967d2befc349a2cf2d0ac77f62c9d/markupsafe-3.0.4-cp314-cp314t-win32.whl", hash = "sha256:12a606a492de952afcb43b59a14aaaaad120e708d3663dd0fdf2d738d427a691", size = 14301, upload-time = "2026-10-02T23:06:07.109Z" }, + { url = "https://files.pythonhosted.org/packages/0b/a3/768b560fcc4156685cb563d922b217810cfa7bc135773367f62f1f9d2078/markupsafe-3.0.4-cp314-cp314t-win_amd64.whl", hash = "sha256:a18f38cafc329bac5e3c2b96c765b4c96d3d103421ed22ab7988c1e3fce27464", size = 14526, upload-time = "2026-10-02T23:06:08.276Z" }, + { url = "https://files.pythonhosted.org/packages/93/63/da554b4c97a6b0ea3229ca7fe8cbfb620be81613d517f482e85958550537/markupsafe-3.0.4-cp314-cp314t-win_arm64.whl", hash = "sha256:eba154571c16e032112afac0dc2dfe9e63c2ceb7aedd07bb7eecf2ce26d4dd4c", size = 14421, upload-time = "2026-10-02T23:06:09.402Z" }, + { url = "https://files.pythonhosted.org/packages/a9/30/54d11c8ca027114898cab97421fb39e4ffd9ddf47cdbc44df2ec76722da9/markupsafe-3.0.4-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:737c9c3981998eba27f11786f84fddcbabc74068b72a4a1f454ea02094b57b65", size = 12791, upload-time = "2026-10-02T23:06:10.485Z" }, + { url = "https://files.pythonhosted.org/packages/10/6d/97c913e253a14bd3cd0e15a5c56d13203b823fa7ee32498342896a072dc4/markupsafe-3.0.4-cp315-cp315-android_24_x86_64.whl", hash = "sha256:489505b03f692c3f376394e49194fa7a7f9e8558d6e293a7056a0032b0c38163", size = 12527, upload-time = "2026-10-02T23:06:11.834Z" }, + { url = "https://files.pythonhosted.org/packages/26/f9/b86d032042a4d597d9e1997f0e5f63a3eedaf11258e0a05760b0a0a826ea/markupsafe-3.0.4-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:077293e425f28ec737dbcad442a71752e28f8ae27cde3d68acd1fb212091cd92", size = 11602, upload-time = "2026-10-02T23:06:13.122Z" }, + { url = "https://files.pythonhosted.org/packages/f2/dc/73c14c1eedf0ac5fa3292ba43435e6c49d2c2050f33cebde541f8f4807f1/markupsafe-3.0.4-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:9348cbb300d224fe3b89793262cb093504d4ae927004468463f745188a193e4a", size = 11817, upload-time = "2026-10-02T23:06:14.227Z" }, + { url = "https://files.pythonhosted.org/packages/8f/69/2c2fcaa5fcee22d72c7819c0d536fd181c74a688e6143845419579cd2863/markupsafe-3.0.4-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:b807e598953730f82e4eae3bd30f6a122cf6b31c398c6b504c0e04c13c170429", size = 11446, upload-time = "2026-10-02T23:06:15.574Z" }, + { url = "https://files.pythonhosted.org/packages/88/54/9e5ec76c62e6e2834d5a93623018c943e8b3bb41d663e3fd4c03303b9b85/markupsafe-3.0.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:799c39bdf5e2f1292fedd3009f7b3c9e760f10b2420cb9638d56920840ff6db8", size = 11719, upload-time = "2026-10-02T23:06:16.701Z" }, + { url = "https://files.pythonhosted.org/packages/96/24/3ec292b44064c16229e064d770b2625bd8ea941aa61f44905a9fa44942c0/markupsafe-3.0.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:ae9dcb8fbe244cb82f8a6458b455b927a03685e383d9bacf1ea5ce180b96dc97", size = 12075, upload-time = "2026-10-02T23:06:17.855Z" }, + { url = "https://files.pythonhosted.org/packages/aa/85/b64fdb1f304848518742136983c24e96d967bfb59a0ea160e92736901ab0/markupsafe-3.0.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4bced6e2a6dba6a28f7dd3c6ce14df1b2dd495923f16ea484cad03decd463b2b", size = 24656, upload-time = "2026-10-02T23:06:18.963Z" }, + { url = "https://files.pythonhosted.org/packages/9c/18/23997d4c65b355da6390d61cd56e0ab3befd6ba8dda25cb40c602bd0fa6b/markupsafe-3.0.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3882fb412298575bae3b9c46868251f15cc69307359f87bb1b382e53d6e5a2c9", size = 27737, upload-time = "2026-10-02T23:06:20.117Z" }, + { url = "https://files.pythonhosted.org/packages/d4/36/35998dead3c6af88c38265a56e58100211f036234ab88eb2283fd4cbce44/markupsafe-3.0.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:04e7902ba80ee4bac1d50a549606527a1dcf0476cd81403db41099d3b60ec653", size = 25003, upload-time = "2026-10-02T23:06:21.284Z" }, + { url = "https://files.pythonhosted.org/packages/82/96/ef49135ce260db4ca4a12b119ed468449cd248db6b1468e2112b546d7a2e/markupsafe-3.0.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:925f929d6b59a8b3f8b8c6ac363cd0af7eecc81efb3071770b3c6717c450a369", size = 23111, upload-time = "2026-10-02T23:06:22.524Z" }, + { url = "https://files.pythonhosted.org/packages/50/7d/83126e338bd88c17a220668235368ad719fd4638e426739858cbb8508f77/markupsafe-3.0.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f68edfc67aabac33708941f26f22a7b8e9f81429bc0cf249fcf7d66b23af8d19", size = 22403, upload-time = "2026-10-02T23:06:23.785Z" }, + { url = "https://files.pythonhosted.org/packages/83/dd/daf7e420de23c8206c365204e7b85e1251d8e19d34196a56336f316e5ed2/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:e5c802729725bd07e2bc3ab7b76dc7e0bbfc53129d8f1eb1c002c24cf774717e", size = 24083, upload-time = "2026-10-02T23:06:25.037Z" }, + { url = "https://files.pythonhosted.org/packages/19/3c/11eecdc06bc44ad5570350085b572ebf049e8f9a38d1ece6d76640b739cd/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:55ffd6ce583d97dc71dc92e930324c8c0d25aea7e3ade6ae54ef77cedb096811", size = 22931, upload-time = "2026-10-02T23:06:26.328Z" }, + { url = "https://files.pythonhosted.org/packages/0d/9e/ac0fd77f2a726e56ecc3ca0235d095feace1358d1b822406c2a2ef26a4dc/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:2cb3dd71fc6be918ad4264346a8ed69485f9b7ed7bf35495d8e22807cd6b8bea", size = 24299, upload-time = "2026-10-02T23:06:27.742Z" }, + { url = "https://files.pythonhosted.org/packages/d7/09/c6bd842ad58ff5b3bc76eeed7e9a42a6f11adc5d090ec697b72c9672731e/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:94f5407f7bc64fa6463906b896f9904beeeb7dd8dc116ee8e9056c8714ff9916", size = 21948, upload-time = "2026-10-02T23:06:29.274Z" }, + { url = "https://files.pythonhosted.org/packages/a3/46/82f586711fed61e86faa1ee1bc317d68cd45a10c8bdbe3f7d1fdf9026ad8/markupsafe-3.0.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:2dad610540cb2e6272855c178f08ae9a1c7ac258a7fb71660553a5f104b42741", size = 23150, upload-time = "2026-10-02T23:06:30.583Z" }, + { url = "https://files.pythonhosted.org/packages/19/2d/2dfdce99318abbfa26925195fbc17db188c46a1ec6457be121b6f9cfeb42/markupsafe-3.0.4-cp315-cp315-win32.whl", hash = "sha256:03470d1a8268e692ecf79ecd565593e59d44219377a7ead61f1f1b94c1f7ff6b", size = 14269, upload-time = "2026-10-02T23:06:31.949Z" }, + { url = "https://files.pythonhosted.org/packages/5b/ec/6000fd82e8791e58fcd0456ec20f098957e2b03d5ed02eb73241a577c0ba/markupsafe-3.0.4-cp315-cp315-win_amd64.whl", hash = "sha256:d882a373d8093c2941e01291b7ced96e9cbe4781da9a7751ca7e6c70385e5214", size = 14496, upload-time = "2026-10-02T23:06:33.258Z" }, + { url = "https://files.pythonhosted.org/packages/bc/66/e73bd5016421d5d6e2fb6de7dd609f9de020942ac8c626526bd8c6eeaf82/markupsafe-3.0.4-cp315-cp315-win_arm64.whl", hash = "sha256:353bd63081912ab8cfa6a0c7d185934cdf8426f04c618bba6bc4b394f2069b67", size = 14361, upload-time = "2026-10-02T23:06:34.539Z" }, + { url = "https://files.pythonhosted.org/packages/90/df/cb8c3dc98d313a951df2f8968f44e4cb5643df6d3cab749a530ce2f7d972/markupsafe-3.0.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:c61750fadcd119d0825bcb7d7d675dd264dcc89cc05292aab5be68ebdbb374ad", size = 11760, upload-time = "2026-10-02T23:06:35.807Z" }, + { url = "https://files.pythonhosted.org/packages/d6/bb/4af9b3ca0753d654ac75f9531d5bd741bb77ca6e696f36807c475ffc099a/markupsafe-3.0.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1c0df495a977d10460a94941799c72d5b5ab03d3858d949b55b5a66c8f371c99", size = 12108, upload-time = "2026-10-02T23:06:37.089Z" }, + { url = "https://files.pythonhosted.org/packages/3f/d4/b56429313aee5fd59b079c3df5615299959e25e7113eb6d8caadbdd7d38a/markupsafe-3.0.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:02fa4acbc6a3fc5c693c34d4dd8c1130b7fe99cc915181b0ddd6f72aeb296002", size = 25762, upload-time = "2026-10-02T23:06:38.419Z" }, + { url = "https://files.pythonhosted.org/packages/65/f5/34c181e891aa4f7d59c918584672e0c5eb7fffe76c1387d1246008bf4081/markupsafe-3.0.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:05295589e619b9bed252a86b532b8e27350abc372d18ba89b59375325e91ec1e", size = 28400, upload-time = "2026-10-02T23:06:39.819Z" }, + { url = "https://files.pythonhosted.org/packages/ce/b5/ad14694fd0ac9a5ce30bc6498f2999378f418583dd1679cca5a1b512957e/markupsafe-3.0.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:be6cb0c799abb0e2ba3e618e6d28ddddf7e485f6c2ce938dfa237daf3905072c", size = 25946, upload-time = "2026-10-02T23:06:41.381Z" }, + { url = "https://files.pythonhosted.org/packages/d6/a8/26b606445387d0ceb1eb1f21840094b84e4e3c3c3983d80d10b89823b490/markupsafe-3.0.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:26e9867520db70d37f7fb421a7f0d8adb40171011fb84ce869afa1a83370dfa8", size = 23634, upload-time = "2026-10-02T23:06:42.748Z" }, + { url = "https://files.pythonhosted.org/packages/39/a2/b8814de672f1f0094d498bf646f2fec9d6356b503d28ef500b71c5095377/markupsafe-3.0.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f03460ff076f70ab595bb45a0205ccea1971443575b6920c52e755dec2b3fbfe", size = 23488, upload-time = "2026-10-02T23:06:44.176Z" }, + { url = "https://files.pythonhosted.org/packages/db/c7/287223376fb73335a3cc5d6eb22c6ab01358cf33945a9c39c06b9dac3f4b/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:436e3ffc6310d3c41878c601db29098102fe5d8a467c49da4a4125254e0980f2", size = 25037, upload-time = "2026-10-02T23:06:45.646Z" }, + { url = "https://files.pythonhosted.org/packages/f9/29/4df8355e313426d19e62ba33e0253c009ca12a0894ee77d67fa67255361c/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:4e2c4809c14559aa7ef426f27fb35afbb38104c349a903bf8f3600456764bb38", size = 23543, upload-time = "2026-10-02T23:06:47.264Z" }, + { url = "https://files.pythonhosted.org/packages/71/e5/8377731e8495668dcc768f645e717df18318c841edaf023a99395f6da9b4/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:da2af0d7aebfc2074080d72efa6ab8317c62481ef1f896f65d9999c1c01f4494", size = 25282, upload-time = "2026-10-02T23:06:48.795Z" }, + { url = "https://files.pythonhosted.org/packages/ed/5f/373456e37ceb1478d657d6fe769cbe0a39f0a8dfc1548eeb19c471eefdd9/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:aa2c838cc024642cc04c6854232f32b43e5e22833dd11119c1766c7873b8370d", size = 22993, upload-time = "2026-10-02T23:06:50.31Z" }, + { url = "https://files.pythonhosted.org/packages/d7/93/2cbd5628435afb6f541bbaced4bce0c2edac4b09a142e6e928b8b0da9858/markupsafe-3.0.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:b91cc9d336957239ff200f30097e6fea2dc6d6fb3c81e853eaa09eac904fd894", size = 23712, upload-time = "2026-10-02T23:06:51.759Z" }, + { url = "https://files.pythonhosted.org/packages/81/99/157e10966b033b363aeda5263e82596ee232a0b1d082fdbf90aa417ff083/markupsafe-3.0.4-cp315-cp315t-win32.whl", hash = "sha256:e49fb0d1ce92cfa0cb198cc5b1b11cdf9d0638658e2a2db2687e39db7c87fc78", size = 14300, upload-time = "2026-10-02T23:06:53.241Z" }, + { url = "https://files.pythonhosted.org/packages/33/05/55884815414c9706a23deca150b72c25a62109e65b0b6ce232077802c719/markupsafe-3.0.4-cp315-cp315t-win_amd64.whl", hash = "sha256:4f6e0852a0283b1b1fd776eeb7b766a5f440b3e2bd31ab51af3b400585f3965c", size = 14522, upload-time = "2026-10-02T23:06:54.729Z" }, + { url = "https://files.pythonhosted.org/packages/92/f9/ecbde7149e95b8a0f18e16d5d747f7dc06049d5da2e4f77f6f5e4a1f46a8/markupsafe-3.0.4-cp315-cp315t-win_arm64.whl", hash = "sha256:39dbacefc411633db5b4378b066a9aca70a3d7e2922c9e578d825f844026eeba", size = 14417, upload-time = "2026-10-02T23:06:56.246Z" }, ] [[package]] name = "maturin" -version = "1.14.1" +version = "1.15.0" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "tomli", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e7/b3/addd877f871fb1860d46d3a4f206ecb10b946c85846805e6367631926fd3/maturin-1.14.1.tar.gz", hash = "sha256:9d6577a62cd08e0ceba7a0db06fb098e0c9b1b3429bad747a4f3a18215a1b3df", size = 369637, upload-time = "2026-06-19T05:19:49.774Z" } +sdist = { url = "https://files.pythonhosted.org/packages/b9/c8/22e5e21b2679c9bce6415ca578034ca2cc9316be0642ae21e051a2d5198c/maturin-1.15.0.tar.gz", hash = "sha256:94b26cc8e8aba61a5f2099715fe640e18c5f678e9a500408b38761263954228a", size = 385504, upload-time = "2026-08-24T12:11:22.665Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f4/f0/97c5a5bd9c71653a066c0976a484eaaae50b9369557838a4176b7b0bdaa5/maturin-1.14.1-py3-none-linux_armv6l.whl", hash = "sha256:522292398945442cdafa9daeb2271b2340fbde57027b818f923f88eab04174f8", size = 10207496, upload-time = "2026-06-19T05:19:09.321Z" }, - { url = "https://files.pythonhosted.org/packages/fe/83/294bca639b0e052f1e2f65199b3db258780c7d4e31408b934c9c974a1379/maturin-1.14.1-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:ffe5ad71f21d1e6603c4dd75f7fee34adf5ed5ebcebb692886549888ebb329ed", size = 19680113, upload-time = "2026-06-19T05:19:13.43Z" }, - { url = "https://files.pythonhosted.org/packages/43/b6/79c881410a3b1c187f7eb3d407aecae646c6a4433d630d72200359015e83/maturin-1.14.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:f3306078070c1508fd715b9116070cbcaff5959024272a9f1e6f5cb29768b86c", size = 10169205, upload-time = "2026-06-19T05:19:16.615Z" }, - { url = "https://files.pythonhosted.org/packages/93/9d/44b6f26dcb7f7a04c5501ac2dbb6ca1490150682baa525ca5860504f9eab/maturin-1.14.1-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl", hash = "sha256:cd457cd88961156e26379e1155bd287cc0ec1c8b2f1582b0660fb31b87c8842d", size = 10188098, upload-time = "2026-06-19T05:19:19.736Z" }, - { url = "https://files.pythonhosted.org/packages/1a/bd/9c0d5d6983905ce2c9edaa073a7e89355a9cf7f396988e05d32f1c37785d/maturin-1.14.1-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl", hash = "sha256:dfc54ae32e6fcb18302193ab9a30b0b25eefffba994ae13238974805533ef75e", size = 10627576, upload-time = "2026-06-19T05:19:22.713Z" }, - { url = "https://files.pythonhosted.org/packages/e5/33/b096412bd6a7cb399652b260666f901adf88a687181a6dbd6a3f89f0a94e/maturin-1.14.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:a131d912b5267e640bc96d70f4914e10590aed64082ec9abacba7cea52004224", size = 10085181, upload-time = "2026-06-19T05:19:25.69Z" }, - { url = "https://files.pythonhosted.org/packages/56/8d/08c3bf469c38a23c9e6c877e338193001eb604d010fedc08341974e38528/maturin-1.14.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl", hash = "sha256:be18fc568fb76884c0205456336892a75105ec398e6b667cd777c6268bd06d69", size = 10026363, upload-time = "2026-06-19T05:19:28.904Z" }, - { url = "https://files.pythonhosted.org/packages/3a/a4/c4d1a92839f8745ab4aab988a7db884a79d6d710bd3b286fcf9316dece1a/maturin-1.14.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl", hash = "sha256:994a0c8ba3ad8a92b3a9ee1b02645d200d610216b15cff5102b0fe65e8e08666", size = 13321347, upload-time = "2026-06-19T05:19:32.411Z" }, - { url = "https://files.pythonhosted.org/packages/b3/fa/170f04624d03fd07d2a8b1b67de83a127af93aef9eaa425839553347297b/maturin-1.14.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:be80866363e605d137991b491a741a84cde9ae350183c4c85f49690ca9aaaa65", size = 10877609, upload-time = "2026-06-19T05:19:35.448Z" }, - { url = "https://files.pythonhosted.org/packages/61/ad/1ae2e1d0ded282bf2c55ac13f0811d87deb425e200ae64a15785675dede9/maturin-1.14.1-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl", hash = "sha256:5282dffd4b539d2be245f4e5b1a5ab6bc1033b58f4a4872f5833f9d43c954aa4", size = 10417316, upload-time = "2026-06-19T05:19:38.28Z" }, - { url = "https://files.pythonhosted.org/packages/fb/27/bf677183920718da49cd7982d6a3ffc440aad8919329f571d189f81b7bdf/maturin-1.14.1-py3-none-win32.whl", hash = "sha256:1a04de0a20188f95c721b5702eed18140bdcccb28c386797093eca3f62f4d4e0", size = 8931293, upload-time = "2026-06-19T05:19:41.183Z" }, - { url = "https://files.pythonhosted.org/packages/63/4b/585adeb9167b08d3cdff0032a938b0e72655c92003df4f52c3f696a1bcc2/maturin-1.14.1-py3-none-win_amd64.whl", hash = "sha256:3c9f94640ecc4895e94abaf834a0684430032c865b2748a36c12461fd9252fdd", size = 10314067, upload-time = "2026-06-19T05:19:44.389Z" }, - { url = "https://files.pythonhosted.org/packages/51/d4/dac8c0720ae246be1700afb6fbdbbea20fe35b13f6570b2f70faa005df77/maturin-1.14.1-py3-none-win_arm64.whl", hash = "sha256:15cea8fcb3ba47dd636f50092bb34baea8b04ac777392f23e6bf8a9a61efb894", size = 9718943, upload-time = "2026-06-19T05:19:47.49Z" }, + { url = "https://files.pythonhosted.org/packages/14/69/5c01b461044eb1f45ddcce006706eb88110c793cdb11c7ae0b5e08492e94/maturin-1.15.0-py3-none-linux_armv6l.whl", hash = "sha256:6bf6dc62e22d4dcfd5a51244ff0d58975fa4979c48209fe84159617648956d82", size = 10206220, upload-time = "2026-08-24T12:10:53.327Z" }, + { url = "https://files.pythonhosted.org/packages/eb/1f/2b431554e11687cdb1077e0cdadcc118c53f611086b3af00c8545a67c6a5/maturin-1.15.0-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:cd35772633f489841132bc8e71d6fc7f842df30b9c05cd5cdf1ee1ddcb744cc7", size = 19416513, upload-time = "2026-08-24T12:10:56.126Z" }, + { url = "https://files.pythonhosted.org/packages/51/36/e23a21cb34a648b711036b9b2fe1d4f3f4ee24f8db54215d73f1a9a3a3ec/maturin-1.15.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:c40b4eae7bf5ef1f4b1af8d623fe4105016f93578fb15b764e741d08ec3b92dd", size = 10014962, upload-time = "2026-08-24T12:10:58.486Z" }, + { url = "https://files.pythonhosted.org/packages/8c/80/33b15cb2d8f30f12c807955e8f2fd775027692904e30ec0784744ce8cd83/maturin-1.15.0-py3-none-manylinux_2_12_i686.manylinux2010_i686.musllinux_1_1_i686.whl", hash = "sha256:7eb066372f541f8eb4909c79c5d9bd0b9e8125980bdf1ec9e8aba23c6c8d6c55", size = 10196223, upload-time = "2026-08-24T12:11:00.696Z" }, + { url = "https://files.pythonhosted.org/packages/fe/91/b495e19e2f5c503b540452b2039115e7b2363867e8c5ad4179eb752fa92c/maturin-1.15.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl", hash = "sha256:653020a63525bb224e5ab0adf02e17a2e08bc86dbea7fc1399c9a56d7529b99e", size = 10541186, upload-time = "2026-08-24T12:11:02.857Z" }, + { url = "https://files.pythonhosted.org/packages/5d/2b/2abff58037188d852b124871b1f0d720e1c2bfb3d4f1b03d87c52cd66488/maturin-1.15.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:0ebf9767892725083138e671c34482c660317a2f3d6a29fc0e0f34e9d8c99136", size = 10083468, upload-time = "2026-08-24T12:11:05.012Z" }, + { url = "https://files.pythonhosted.org/packages/3f/07/b7e9f8be99a6627849e81ac7b6694876bce8f50a92995fe17e3cf2610f0a/maturin-1.15.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.musllinux_1_1_armv7l.whl", hash = "sha256:7ab7eebffd7b8debca2265985de4eaeb332141276d24b9560b5ad484d4b3add1", size = 10047786, upload-time = "2026-08-24T12:11:07.042Z" }, + { url = "https://files.pythonhosted.org/packages/ca/ab/167e3cb7accee11b507dbe53e0e87aeccb376d44ae66284c96ee4df3a9fd/maturin-1.15.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.musllinux_1_1_ppc64le.whl", hash = "sha256:126e12e618b4db42f68c779a56d41f82a390145ba36ac3f621d057eb34f5ad9d", size = 13315332, upload-time = "2026-08-24T12:11:09.433Z" }, + { url = "https://files.pythonhosted.org/packages/14/4d/801379f646cbc6b00998e5289b0630a886be3a4ee4c75b6bc9b87478a7f1/maturin-1.15.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4f9d33e6c3f9615c8caceecbbbd440f8eb25a3ddeb687077682cd5eca2e9ae15", size = 10807183, upload-time = "2026-08-24T12:11:11.73Z" }, + { url = "https://files.pythonhosted.org/packages/89/27/2e612e1cbd1580e9e94d4722c227b5180dca27b32b955a34b79918aa1292/maturin-1.15.0-py3-none-manylinux_2_31_riscv64.musllinux_1_1_riscv64.whl", hash = "sha256:bf29beddd0c6708f112db51d5275fc28b28b9e9c9c5faae387eaef662918b176", size = 10413274, upload-time = "2026-08-24T12:11:14.04Z" }, + { url = "https://files.pythonhosted.org/packages/70/d8/202a7b4d75a51f20f84ec9ce3b7345b12b822207072164e2b1c6ef665125/maturin-1.15.0-py3-none-win32.whl", hash = "sha256:da649988be98e87e009e51b1bf0d301b6a301bc0cecbdd60d40d8ba60748d1ca", size = 8928744, upload-time = "2026-08-24T12:11:16.269Z" }, + { url = "https://files.pythonhosted.org/packages/40/dc/4e90da594986ba78dd3bc8a5921ecdcdb11085b22b02a412caab3b225601/maturin-1.15.0-py3-none-win_amd64.whl", hash = "sha256:552c2be4afd43fe8d5c9f3ec8d4c4756d973b8dcbe94c14084390301f50243e1", size = 10335085, upload-time = "2026-08-24T12:11:18.326Z" }, + { url = "https://files.pythonhosted.org/packages/8b/10/15d4314edf130955edf2dc237aa393a8a7c10f2b9b57b89fa2f61f915659/maturin-1.15.0-py3-none-win_arm64.whl", hash = "sha256:c7dc0c66c78d3debdd9c5aa807e861fbcbf07f3505d34b125df74c03986b0f48", size = 9713795, upload-time = "2026-08-24T12:11:20.83Z" }, ] [[package]] name = "mcp" -version = "1.28.1" +version = "1.30.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, @@ -2352,9 +2495,9 @@ dependencies = [ { name = "typing-inspection" }, { name = "uvicorn", marker = "sys_platform != 'emscripten'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/6e/77/9450b8f251a13affb6281997d0523c4615f8a8b35d0b21ff30db3a5aac9d/mcp-1.28.1.tar.gz", hash = "sha256:d51e36a5f5644faea4f85ea649bfffa6bc6c26770d42798ad6a3de3d2ba69683", size = 638501, upload-time = "2026-06-26T12:57:29.093Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ba/93/0142dc84a666daf8ad51a34268f34c12fd6fda4f3810c4be2504eecc8212/mcp-1.30.0.tar.gz", hash = "sha256:445414625fce5c295faa505bb11bacece661ab6f4028d57c935db57820b7a3e4", size = 680511, upload-time = "2026-09-07T14:34:15.845Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e2/5e/d118fce19f87a2e7d8101c35c8ae0ec289098a4df0ff244cec23e415aca0/mcp-1.28.1-py3-none-any.whl", hash = "sha256:2726bca5e7193f61c5dde8b12500a6de2d9acf6d1a1c0be9e8c2e706437991df", size = 222620, upload-time = "2026-06-26T12:57:27.218Z" }, + { url = "https://files.pythonhosted.org/packages/f5/f4/e58bc33317c92a0203664daaf00bf6f41166cc0149e5d6870a03f7cd004a/mcp-1.30.0-py3-none-any.whl", hash = "sha256:666edb5009503e1047c9d60346a756f94b261f05cc2625f23d41c728ffc484d0", size = 234581, upload-time = "2026-09-07T14:34:14.266Z" }, ] [[package]] @@ -2368,16 +2511,16 @@ wheels = [ [[package]] name = "more-itertools" -version = "11.1.0" +version = "11.2.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/de/1d/f4da6f02cdffe04d6362210b807146a26044c88d839208aec273bb0d9184/more_itertools-11.1.0.tar.gz", hash = "sha256:48e8f4d9e7e5878571ecf6f2b4e57634f93cd474cc8cfbd2376f2d11b396e30d", size = 145772, upload-time = "2026-05-22T14:14:29.909Z" } +sdist = { url = "https://files.pythonhosted.org/packages/55/e5/8735dc589d9e3571e76cd684e7763dc0fcc940b811f71640410458749689/more_itertools-11.2.0.tar.gz", hash = "sha256:59960f488835254863a857eb501f69e4ec92fdc8822f098c0f48dba530afd487", size = 75940, upload-time = "2026-10-13T16:01:14.428Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e8/3d/1087453384dbde46a8c7f9356eead2c58be8a7bf156bca40243377c85715/more_itertools-11.1.0-py3-none-any.whl", hash = "sha256:4b65538ae22f6fed0ce4874efd317463a7489796a0939fa66824dd542125a192", size = 72226, upload-time = "2026-05-22T14:14:28.824Z" }, + { url = "https://files.pythonhosted.org/packages/d4/f7/86f27473377a8ebdbdfedec5e62e87fbc24c4c88ed0a2a5ea0a12ee2229b/more_itertools-11.2.0-py3-none-any.whl", hash = "sha256:e4c522352a24664c974d0be8382944107ae638281a06391a5a538366b5707fe5", size = 74407, upload-time = "2026-10-13T16:01:13.424Z" }, ] [[package]] name = "moto" -version = "5.2.2" +version = "5.2.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "boto3" }, @@ -2388,9 +2531,9 @@ dependencies = [ { name = "werkzeug" }, { name = "xmltodict" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/47/63/d944f387582cc53f53febbff2b3fa36a6d2ed7c1feef8990bf646cfa9cba/moto-5.2.2.tar.gz", hash = "sha256:aac8023a429e125e91c91f8f4730a67b54f518cda587352f7e67252fe3168f75", size = 8678761, upload-time = "2026-06-06T18:57:54.931Z" } +sdist = { url = "https://files.pythonhosted.org/packages/17/27/671bc2fbff0f86a8fcd6882ee56de69b5f80f71ba089eb663d10eca28726/moto-5.2.4.tar.gz", hash = "sha256:1a467004562034a09717c3f1ed533337a81ead573ed5d2d40cad648b5ec17e00", size = 9228741, upload-time = "2026-10-11T18:41:16.538Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c1/45/13cff46f4f617a6e97e1d497d75abd913e250bb4c823a4985668c6e593e4/moto-5.2.2-py3-none-any.whl", hash = "sha256:3817f1e39721ca833579b921e53e3b68547ace6a34d848c9486fbb5905808de9", size = 6698689, upload-time = "2026-06-06T18:57:51.435Z" }, + { url = "https://files.pythonhosted.org/packages/6d/00/5729790afc2ee0ac52567c2388452918dfabb383d3afbf613f9136ee5ee2/moto-5.2.4-py3-none-any.whl", hash = "sha256:b75cf0a0063315bab6a4c3606f475ee118f3c329c8d5477a2447e699bdf13155", size = 7195856, upload-time = "2026-10-11T18:41:12.892Z" }, ] [package.optional-dependencies] @@ -2412,7 +2555,6 @@ server = [ { name = "py-partiql-parser" }, { name = "pyparsing" }, { name = "pyyaml" }, - { name = "setuptools" }, ] [[package]] @@ -2426,258 +2568,308 @@ wheels = [ [[package]] name = "msgpack" -version = "1.2.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/31/f9/c0a1c127f9049db9155afc316952ea571720dd01833ff5e4d7e8e6352dbb/msgpack-1.2.1.tar.gz", hash = "sha256:04c721c2c7448767e9e3f2520a475663d8ee0f09c31890f6d2bd70fd636a9647", size = 183960, upload-time = "2026-06-18T16:13:52.594Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5b/16/f70100614b69feb3ade7285f08c9c52d6cda0a5c03f3f5e2facd63acb211/msgpack-1.2.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8c7b398c56ff125feae96c2737abfec5595f1fa0aa186df60c56040b8accb95c", size = 82926, upload-time = "2026-06-18T16:12:31.531Z" }, - { url = "https://files.pythonhosted.org/packages/e4/3c/08ecd5cdfe4e2de43aec79062028ad0f7b2d9b1fea5430068c198ba570da/msgpack-1.2.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1548006a91aa93c5da81f3bdcebc1a0d10cea2d25969754fbe848da622b2b895", size = 82730, upload-time = "2026-06-18T16:12:32.894Z" }, - { url = "https://files.pythonhosted.org/packages/19/9f/a70c9cb1a04ecc134005149367dcfe35d167284e8f65035a1e4156ad17b5/msgpack-1.2.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1dabedcd0f23559f3596428c6589c1cd8c6eaed3a0d720795b07b0225d769203", size = 400729, upload-time = "2026-06-18T16:12:34.052Z" }, - { url = "https://files.pythonhosted.org/packages/fa/7f/5ce020168cf0439041526e95aa068c722c016aee21624e331aeabeee2e8e/msgpack-1.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:83efa1c898e0fc5380fc0cabbf75164c52e3b5cbb45973710d75821928380c73", size = 407625, upload-time = "2026-06-18T16:12:35.239Z" }, - { url = "https://files.pythonhosted.org/packages/79/70/fb7668ce0386819303047057aef6fc1da73b584291d9cff82b821744e2ef/msgpack-1.2.1-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:01e2dd6c9b19d333a00282330cc8a73d38d8dabc306dc5b42cd668c3ac82e833", size = 377891, upload-time = "2026-06-18T16:12:36.684Z" }, - { url = "https://files.pythonhosted.org/packages/3d/dc/9ebe654a73c3aed2e40aa6b52e3c2a02b5f53ef0085fa235a45d5b367f87/msgpack-1.2.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:350cb813d0af6e65d2f7ef0d729f7ff5be5a8bce03665892f43e5883d4ecc1b8", size = 391987, upload-time = "2026-06-18T16:12:37.839Z" }, - { url = "https://files.pythonhosted.org/packages/42/eb/b67cf64218a2fa25e1c671fe1d3dbb06cbeb973e71bc4b822da079862d0b/msgpack-1.2.1-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:ee1d9ed27d0497b848923746cf762ed2e7db24f4be7eec8e5cbe8c766aa707b7", size = 374603, upload-time = "2026-06-18T16:12:39.221Z" }, - { url = "https://files.pythonhosted.org/packages/a2/2e/9ee200cde32fd1a0101b4006202fde554c1860adfb9bf7bff31ea4c08df8/msgpack-1.2.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:633727297ed063441fd1cda2288865487f33ad14eeb8831afb5f0c396a62cfce", size = 405121, upload-time = "2026-06-18T16:12:40.524Z" }, - { url = "https://files.pythonhosted.org/packages/43/b6/f10117be7ca7a51e8feed699a907b8e663a8cd66e115ae6b4fb30cc7945c/msgpack-1.2.1-cp310-cp310-win32.whl", hash = "sha256:298872ecf9e61950f1c6af4ca969b859ee91783bb920ef6e6172697d0c8aad74", size = 64088, upload-time = "2026-06-18T16:12:41.762Z" }, - { url = "https://files.pythonhosted.org/packages/ba/93/89976c696fb0224662239d952c47b4d1661b34d79a332ef5584facaa8579/msgpack-1.2.1-cp310-cp310-win_amd64.whl", hash = "sha256:2ff164c1b0bcb740b073b99e945234d0212852fa378e44a208c425379140dbeb", size = 70113, upload-time = "2026-06-18T16:12:42.78Z" }, - { url = "https://files.pythonhosted.org/packages/f4/6b/e9b1cdc042c4458801d2545ed782a95f3d6ba8e270cce8745b8603c7f748/msgpack-1.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:29a3f6e9667868429d8240dfd063ea5ffdc1321c13d783aa23827a38de0dcb22", size = 82812, upload-time = "2026-06-18T16:12:45.022Z" }, - { url = "https://files.pythonhosted.org/packages/0c/3a/dd518a1bf78ed1e9ad8afe57307c079a00eafe4b3068932a27ca1ea56b4f/msgpack-1.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:aded5bdf32609dc7987a49bbbd15a8ef096193f96dd8bbeb791de729e650acf5", size = 82739, upload-time = "2026-06-18T16:12:46.025Z" }, - { url = "https://files.pythonhosted.org/packages/70/e0/7ba9e1542bf0771a27b8b37c1316e3f95ae9d748fd765284655c476ad4ef/msgpack-1.2.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:146ee4e9ce80b365c6d4c47073da9da7bcec473e58194ceee5dd7620ace77e06", size = 414233, upload-time = "2026-06-18T16:12:47.029Z" }, - { url = "https://files.pythonhosted.org/packages/03/8d/671d81534ea0e2b0e8a121be100020da09eb78861fe3aa8f3ef7dcd3bed1/msgpack-1.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a28d076ca7c82b9c8728ad90b7147489449557038bed50e4241eb832395169b4", size = 423843, upload-time = "2026-06-18T16:12:48.19Z" }, - { url = "https://files.pythonhosted.org/packages/d2/b6/e5c737515ed1f166664b87601b532f58cbb73d8aa6a90b99f7c2c5037e8e/msgpack-1.2.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7d31c0ac0c640f877804c67cb2bc9f4e23dc2db97e96c2e67fa27d38283b41f8", size = 390772, upload-time = "2026-06-18T16:12:49.624Z" }, - { url = "https://files.pythonhosted.org/packages/a8/46/62ed8c2e87d7021eab19921594d961ef3aa3794eec76c716dc30f3bfd433/msgpack-1.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8ff92d7feeaf5bc26c51495b69e2f99ed97ab79346fb6555f44be7dd2ac6503b", size = 409559, upload-time = "2026-06-18T16:12:50.936Z" }, - { url = "https://files.pythonhosted.org/packages/70/ff/59aa3887b860bbf43532835e192b1c388a17590d6068ae4f8b2bc74c906e/msgpack-1.2.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:779197a6513bab3c3632265e3d0f7cb3227e62510841a6f34f1eaa37efbb345e", size = 387838, upload-time = "2026-06-18T16:12:52.161Z" }, - { url = "https://files.pythonhosted.org/packages/09/11/f8563e471093420cf6478cb3271a0175d8402b82d879783d4035d2d03360/msgpack-1.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:67f6dd22fa72a93752643f07889796d62739a13415ee630169a8ce764f86cf9f", size = 421732, upload-time = "2026-06-18T16:12:53.556Z" }, - { url = "https://files.pythonhosted.org/packages/57/cf/e673683c4c6c90c1022b24c65af4b03eda72b182a1176ef6449069d66acc/msgpack-1.2.1-cp311-cp311-win32.whl", hash = "sha256:91054a783328e0ea7954b8771095705c8d2243b814743fbaadf14552c9c52c5d", size = 64091, upload-time = "2026-06-18T16:12:54.821Z" }, - { url = "https://files.pythonhosted.org/packages/3f/07/ca212739d179f9083bff2c7c08c24101c3555a334fadc2b876b18768a3ae/msgpack-1.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2eda0b7ebb1283a98d3e4492ac933c8af6aff59fd3df1c3ed024f536af4b1dc8", size = 70462, upload-time = "2026-06-18T16:12:55.898Z" }, - { url = "https://files.pythonhosted.org/packages/6d/be/6798347b425e26f35db82e69dd83c09716c856a3714e7bffc4c0860fd830/msgpack-1.2.1-cp311-cp311-win_arm64.whl", hash = "sha256:6ee967f7c7e1df2890c671ff2ee51a28ded0efc95da3e507176dee881ce36c66", size = 65059, upload-time = "2026-06-18T16:12:57.053Z" }, - { url = "https://files.pythonhosted.org/packages/bc/dd/9e8cbd8f5582ca4b590336f2b91ee5662f6a6ca562b565abaf696a0f81ff/msgpack-1.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:2ef59c659f289eddf8aa6623823f19fa2f40a4029266889eac7a2505dd210c35", size = 83531, upload-time = "2026-06-18T16:12:58.249Z" }, - { url = "https://files.pythonhosted.org/packages/50/2e/ebdb85a8da151397a2790363676b7ed7c125924fe618e4c6d8befb0cc62c/msgpack-1.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d3567748a5107cb40cdf66a275430c2f87c07777698f4bfd25c35f44d533258c", size = 82657, upload-time = "2026-06-18T16:12:59.396Z" }, - { url = "https://files.pythonhosted.org/packages/26/aa/753ad8b007b464e1d8aa0c8e650b9c5f4f725e658fc5ac8a7635c55b7f6e/msgpack-1.2.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:60926b75d00c8e816ef98f3034f484a8bc64242d66839cef4cf7e503142316a0", size = 410634, upload-time = "2026-06-18T16:13:00.383Z" }, - { url = "https://files.pythonhosted.org/packages/6a/fd/6adabd4f6d5e686f97dd02ce7fce3fe4cf672cbac36b8f67ff4040e8ad8b/msgpack-1.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:020e881a764b20d8d7ca1a54fc01b8175519d108e3c3f194fddc200bda95951a", size = 419989, upload-time = "2026-06-18T16:13:01.776Z" }, - { url = "https://files.pythonhosted.org/packages/5a/cc/85039b7b0eb168aaad7383a23c97e291a11f08351cb45a606ce865e4e3f1/msgpack-1.2.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4202c74688ca06591f78cb18988228bd4cca2cc75d57b60008372892d2f1e6e6", size = 377544, upload-time = "2026-06-18T16:13:03.637Z" }, - { url = "https://files.pythonhosted.org/packages/ed/bf/35963899493b32030c85fc513b723ae66144ac70c11ebc52e889e16e3d99/msgpack-1.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8b267ce94efb76fbd1b3373511420074ee3187f0f7811bf394531de13294735a", size = 400842, upload-time = "2026-06-18T16:13:05.012Z" }, - { url = "https://files.pythonhosted.org/packages/a6/df/8e2ac970c8f99264cd9997d1c73df5466bc19da3301d7dc5500862a9b089/msgpack-1.2.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:e4f1d0f8f98ade9634e01fb704a408f9336c0a8f1117b369f5db83dc7551d8b1", size = 374108, upload-time = "2026-06-18T16:13:06.232Z" }, - { url = "https://files.pythonhosted.org/packages/17/dd/fa8bd265110dfa51c20cb529f9e6d240a16fafe7e645004c6af2d01353ba/msgpack-1.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f02cf17a6ca1abe29b5f980644f7551f94d71f2011509b26d8625ce038f0df64", size = 414939, upload-time = "2026-06-18T16:13:07.478Z" }, - { url = "https://files.pythonhosted.org/packages/2e/b9/8377a5ad8953fc0437c70cc98d9ae29f27fe5ac5109fbec0812085865735/msgpack-1.2.1-cp312-cp312-win32.whl", hash = "sha256:0c0d9802354507bcba62af19c17918e3eb437cc25e6f50657d511b5856a77aac", size = 64504, upload-time = "2026-06-18T16:13:08.822Z" }, - { url = "https://files.pythonhosted.org/packages/57/7f/ce1e377df7e62461fefd9eb23bfb93a4a523f40a517b377b8f844d836828/msgpack-1.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:5c24aa15d5963051e1a5c62b12c50cd705992502b5ec1f3bece6046f33c9fc24", size = 71421, upload-time = "2026-06-18T16:13:09.828Z" }, - { url = "https://files.pythonhosted.org/packages/8f/32/ebfe84c9929f08f188d56c7a2fd913406a9ddad76a634697c1c43b8112e6/msgpack-1.2.1-cp312-cp312-win_arm64.whl", hash = "sha256:4227224aaec8f7fbcbfbd4272319347b2bb4030366502600f8c45588c5187b07", size = 64775, upload-time = "2026-06-18T16:13:11.056Z" }, - { url = "https://files.pythonhosted.org/packages/b0/ac/dcddcab6f6c20ecb387ca5e980371cdb3f87ff69aeca388be97eebc4c074/msgpack-1.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0a70e3cf2804a300d921bb0940426e35f4e489a23adfb77a808892241db0a064", size = 83151, upload-time = "2026-06-18T16:13:12.173Z" }, - { url = "https://files.pythonhosted.org/packages/64/71/fbcfa83a1d6a9c6091942d1cfd070962244664b87427a9a49a6897b1b219/msgpack-1.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:491cc39455ca765fad51fb451bf2915eb2cf41192ab5801ce8d67c1d614fe056", size = 82351, upload-time = "2026-06-18T16:13:13.194Z" }, - { url = "https://files.pythonhosted.org/packages/e3/10/ddf7b06db879e8792d13934ddda09ff20bd2a583fd84c9b59aae9b0e650b/msgpack-1.2.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f310233ef7fb9c14e201c93639fe5f5260b005f56f0b29048e999c30935596cc", size = 407518, upload-time = "2026-06-18T16:13:14.233Z" }, - { url = "https://files.pythonhosted.org/packages/79/d3/36a46a8ed992b781acbc05928bd5bee3c810cb0c3563bf81a7b0c04a1a76/msgpack-1.2.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:787c9bebb5833e8f6fc8abca3c0597683d8d87f56a8842b6b89c75a5f3176e2d", size = 416405, upload-time = "2026-06-18T16:13:15.435Z" }, - { url = "https://files.pythonhosted.org/packages/f9/84/e8e9598b557c0ba6ddae901a73780a4c75ac667dddf59414b1e56a42fb34/msgpack-1.2.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:dc871b997a9370d855b7394465f2f350e847a5b806dd38dcc9c989e7d87da155", size = 376257, upload-time = "2026-06-18T16:13:17.022Z" }, - { url = "https://files.pythonhosted.org/packages/40/16/738fe6d875ad7e2a9429c165322a4ec088f4f273cdfae63d96a89c467961/msgpack-1.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:85f57e960d877f2977f6430896191b04a21f8901b3b4baf2e4604329f4db5402", size = 397469, upload-time = "2026-06-18T16:13:18.287Z" }, - { url = "https://files.pythonhosted.org/packages/ca/be/6d5952df75a7f24f35833af764c3a6860780364cb3a0030beb8099e1b2b4/msgpack-1.2.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:1233ee2dd0cefba127583de50ea654677277047d238303521db35def3d7b2e7c", size = 372802, upload-time = "2026-06-18T16:13:19.685Z" }, - { url = "https://files.pythonhosted.org/packages/e1/39/e2ef7dbf0473bcb8dc7c50bf782a892d67414877b63e47fc88eb189ef5e6/msgpack-1.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e3dc2feb0876209d9c38aa56cb1de169bd6c4348f1aa48271f241226590993e6", size = 411273, upload-time = "2026-06-18T16:13:21.028Z" }, - { url = "https://files.pythonhosted.org/packages/ef/c5/133f4512a56e983a93445c836c9d94d88f3bc2e0980ff4b9e577bd8416ce/msgpack-1.2.1-cp313-cp313-win32.whl", hash = "sha256:6d09badf350af2be9d189184e04e64cf54ad93569ab3d96fca58bd3e84aad707", size = 64471, upload-time = "2026-06-18T16:13:22.293Z" }, - { url = "https://files.pythonhosted.org/packages/e2/98/577e10b055096a7dd40732358cabaf7180a20c79ed1dcdbb618e4b9deac7/msgpack-1.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:33f14fba63278b714efe6ad07e50ea5f03d91537aa6a1c5f1ceca4cf44013ca9", size = 71274, upload-time = "2026-06-18T16:13:23.455Z" }, - { url = "https://files.pythonhosted.org/packages/ba/ee/0c0048e7cfbef23c6a94791b8959ab28155232e7956de8a305b5ff588f05/msgpack-1.2.1-cp313-cp313-win_arm64.whl", hash = "sha256:afc5febcd4c99effbc02b528e49d6fd0760b2b7d48c05239e345a5fa6e743d9a", size = 64795, upload-time = "2026-06-18T16:13:24.687Z" }, - { url = "https://files.pythonhosted.org/packages/77/58/cce442852c6b9e1639c7c8ac8fd9143121cb32dab0f308df4d1426a8eb9c/msgpack-1.2.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:05f340e47e7e47d2da8db9b53e1bb1d294369e9ef45a747441309f6650b8351d", size = 83610, upload-time = "2026-06-18T16:13:25.724Z" }, - { url = "https://files.pythonhosted.org/packages/60/5c/15b4c7a0182f75ffa90751958ba36a9c01cafee367d49a3edc10ed140b01/msgpack-1.2.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:810b916696c86ef0deb3b74588480224df4c1b071136c34183e4a2a4284d7ac7", size = 83138, upload-time = "2026-06-18T16:13:26.781Z" }, - { url = "https://files.pythonhosted.org/packages/b8/a6/99e58722feaffc5f2fbcc0c8c0d1451ab9f84097f7af87291b46af2390f4/msgpack-1.2.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ca0dacff965c47afdc3749a8469d7302a8f801d6a28758d55120d75e66ce6889", size = 406090, upload-time = "2026-06-18T16:13:28.072Z" }, - { url = "https://files.pythonhosted.org/packages/19/03/8c63e8cf52958534ef688625965ab04c269a6cadd8caef16758b380a821a/msgpack-1.2.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0e2bf9280bceb5efca998435904b5d3e9fdbcc11d90dc9df30aec7973252b720", size = 412106, upload-time = "2026-06-18T16:13:29.427Z" }, - { url = "https://files.pythonhosted.org/packages/63/d2/155d9e71b40e41fd934bc0c48b9b2770f22263e1ac20aad8e29fdca7be3f/msgpack-1.2.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:aa6c4be5d1c02a42b066ca6ddb71adf36432868fdcdb6ee87e634e86e0674190", size = 374851, upload-time = "2026-06-18T16:13:30.631Z" }, - { url = "https://files.pythonhosted.org/packages/98/48/deaf2326262a8d5ea3295ce9649912ecd3f551ba7ec8e33c665d2ba583f3/msgpack-1.2.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec0e675d59150a6269ddc9139087c722292664a37d071a849c05c473350f1f2d", size = 396168, upload-time = "2026-06-18T16:13:31.977Z" }, - { url = "https://files.pythonhosted.org/packages/10/2a/b4410f906c2ec0008f1608d3ab5143afc3ad3f4e6da0fed3ea2231d0bef4/msgpack-1.2.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:dd3bfe82d53edfe4b7fc9a7ec9761e23a7a5b1dac22264505af428253c29ed24", size = 371959, upload-time = "2026-06-18T16:13:33.282Z" }, - { url = "https://files.pythonhosted.org/packages/59/86/1edc67270099a528fa2093ea60fe191233cd238e4bd30cfacf7db79fc959/msgpack-1.2.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5ad5467fc3f68b5468e06c5f788d712e9f8ffc8b0cd1bcb160c105c1ee92dae7", size = 408457, upload-time = "2026-06-18T16:13:34.567Z" }, - { url = "https://files.pythonhosted.org/packages/82/90/8b630fef07d8c5ab457b71ff2c217910c83d333c7a68472c186e87cc504a/msgpack-1.2.1-cp314-cp314-win32.whl", hash = "sha256:98b58bdb89c46190e4609bb36abe17c6d4105ad13f9c5f8f6f64d320f8ced3fb", size = 65942, upload-time = "2026-06-18T16:13:36.056Z" }, - { url = "https://files.pythonhosted.org/packages/16/f1/467b81e98b24dd3885d7b1857728797b4ffc76a7a7483af4fb321a07de3c/msgpack-1.2.1-cp314-cp314-win_amd64.whl", hash = "sha256:74847557e28ce71bd3c438a447ca90e4b507e997ddbdef8a12a7b283b86c156b", size = 72627, upload-time = "2026-06-18T16:13:37.079Z" }, - { url = "https://files.pythonhosted.org/packages/a7/1d/5d8c4c89985feb6acefb82a09e501c60392261856d2408d20bfe4f0360b1/msgpack-1.2.1-cp314-cp314-win_arm64.whl", hash = "sha256:b50b727bd652bdc37d950336c848ef20ec54a4cafc38dce19b1cd86ad625d0f7", size = 66908, upload-time = "2026-06-18T16:13:38.23Z" }, - { url = "https://files.pythonhosted.org/packages/1b/02/ad2afb678b4de94496cd432b581759b756a92c1192d8c767edd6b132efdc/msgpack-1.2.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:8d00f177ca88a77c1cf848d204a38f249751650b601cb6532acc68805d8a8273", size = 86000, upload-time = "2026-06-18T16:13:39.44Z" }, - { url = "https://files.pythonhosted.org/packages/54/74/0b797484013128837f3b1cbb6cea019277c4de4e377dc512b4d9a0f92940/msgpack-1.2.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5bb9c386f0a329c035ddbab4b72d1028bf9627add8dda41070288563d57ed1b1", size = 86544, upload-time = "2026-06-18T16:13:40.447Z" }, - { url = "https://files.pythonhosted.org/packages/a9/b4/b774d7eb95561739907fec675582f83203cf41c597a418c2589b4bfb8e9d/msgpack-1.2.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20466cca18c49c7292a8984bc15d65857b171e7264bdcb5f96baf8be238791fc", size = 427661, upload-time = "2026-06-18T16:13:41.574Z" }, - { url = "https://files.pythonhosted.org/packages/b2/f9/3243191dc9937e00756c8bc1b0272fed8f23758e43df2a3b46f533e5090f/msgpack-1.2.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:196300e7e5d6e74d50f1607ab9c06c4a1484c383cd22defd727902591f7e8dde", size = 426375, upload-time = "2026-06-18T16:13:42.936Z" }, - { url = "https://files.pythonhosted.org/packages/23/c7/1693111db9944ba4ad4b67a1e788400d78a0b6af7a6523dc7e4e58f8274b/msgpack-1.2.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:575957e79cd51903a4e8495a242442949641e08f1efd5197b43bebd3ea7682b4", size = 380495, upload-time = "2026-06-18T16:13:44.306Z" }, - { url = "https://files.pythonhosted.org/packages/3e/2b/92f86956a0c13e8662f7e2ad630c4eb4db07497b967589bd5245e018b2c1/msgpack-1.2.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8c2ed1e48cc0f460bf3c7780e7137ff21a4e18433451916f2442c1b21036cd7d", size = 410897, upload-time = "2026-06-18T16:13:45.629Z" }, - { url = "https://files.pythonhosted.org/packages/da/ea/1479f72d200313a76fc2f823a79d1e07ed052ab7b8a0280640aa7b95de42/msgpack-1.2.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:5f6277e5f783c36786a145e0247fc189a03f35f84b251646e53592d2bc12b355", size = 378519, upload-time = "2026-06-18T16:13:46.998Z" }, - { url = "https://files.pythonhosted.org/packages/f5/4d/fa006060ffa1011d32bfae826fe766fe73e02982183601633b7121058ab3/msgpack-1.2.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f9389552ecf4784886345ead0647e4edc96bee37cbab05b75540f542f766c48c", size = 419815, upload-time = "2026-06-18T16:13:48.205Z" }, - { url = "https://files.pythonhosted.org/packages/2f/e1/aab6c946570496b78e67804721f3d5e2d62a93081b9b37df77764ef56347/msgpack-1.2.1-cp314-cp314t-win32.whl", hash = "sha256:c1c79a604a2969a868a78b6ebd27a887e00c624f14f66b3038e0590cb23332d1", size = 70914, upload-time = "2026-06-18T16:13:49.385Z" }, - { url = "https://files.pythonhosted.org/packages/13/0a/e608956488a2af014cfe6e3d665e090b8ee42aa14b07f8f95b8880d66b09/msgpack-1.2.1-cp314-cp314t-win_amd64.whl", hash = "sha256:f12038a35fabd52e56a3547bab42401af49a45caa6dd00b34c44de235bc93ee2", size = 77999, upload-time = "2026-06-18T16:13:50.467Z" }, - { url = "https://files.pythonhosted.org/packages/d2/8a/27e2e57055176e366a46b85d02d68e7a5bcfbdd8474c9706375d965f24d3/msgpack-1.2.1-cp314-cp314t-win_arm64.whl", hash = "sha256:0adcf06ffde0777c0e1a9b771a2b1c4226ba1bbf748c8efcc02fcdeca3299107", size = 71160, upload-time = "2026-06-18T16:13:51.498Z" }, +version = "1.2.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/0a/e7/bb605a7bab2d8425a64b3fa762b39dc1bf1c7e3f11ba6fb5413d6db0ff8c/msgpack-1.2.3.tar.gz", hash = "sha256:32edb81a2b5eb7cd7c9d941b2bfbbb082fd2cd09e0e725930316af6b708db186", size = 196517, upload-time = "2026-09-29T02:33:52.276Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2a/95/b9c651ccb9d720b2e2c8d537954dff528ab869a03bf89598145716db823c/msgpack-1.2.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ec90a9ae3e1169fa1171147340f0e97d941aa19fcd3b34e8339a55933ed042af", size = 90404, upload-time = "2026-09-29T02:31:44.826Z" }, + { url = "https://files.pythonhosted.org/packages/50/cd/fc9e2e367e80f1493e2ec5f610dda558b344eeede296f88976db133e8f2c/msgpack-1.2.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9d7e9cbb0998bbfd363fd9a09c330520d5e9cb323c05b5a1a05865d23ccf2226", size = 89683, upload-time = "2026-09-29T02:31:46.413Z" }, + { url = "https://files.pythonhosted.org/packages/19/9e/1028485c6886c1c117f777cc9b053e541eff0fedb3292dfb1da95040edb5/msgpack-1.2.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6707d2fa2aa1bb5424ea0b05f44ffc989b15ab41a73ff5855bff4944fec7c8ac", size = 465347, upload-time = "2026-09-29T02:31:47.934Z" }, + { url = "https://files.pythonhosted.org/packages/aa/83/800570e6a22376eb8d599920f70aead4779a63611696f567477c4e85a70f/msgpack-1.2.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:382b219de3d436de3baba0f4b0c6d4336e8f5858d0eb047918b13b69a71c6c55", size = 477820, upload-time = "2026-09-29T02:31:49.479Z" }, + { url = "https://files.pythonhosted.org/packages/ab/ff/817e4a2052f848d3fb67726908d6e4e7c19f68ee7c19553a82ce7b0ed415/msgpack-1.2.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:186e6c602b8a9968b8e864c67d622a69279f7d1e55ae25f40e3bff7e815b2b62", size = 436656, upload-time = "2026-09-29T02:31:51.18Z" }, + { url = "https://files.pythonhosted.org/packages/3d/42/040cc55dde6a7d92057baac8d1fc9cfb9f4fd4162900e2ec16dc33917a7d/msgpack-1.2.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:9276ba88891338f2617044429dfd080ae008c9868a25f6f1a7d004a35dc9ac0a", size = 460939, upload-time = "2026-09-29T02:31:53.026Z" }, + { url = "https://files.pythonhosted.org/packages/09/93/4dc007bdef930eed247346773bc0189b710078961d3218d5ee7ba59f322c/msgpack-1.2.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:c942c21a93f36b3a69e828c8945bb72c94dc2ffe488a2086950c812f3edf046c", size = 433608, upload-time = "2026-09-29T02:31:54.981Z" }, + { url = "https://files.pythonhosted.org/packages/c0/97/a1b944046f283ec89445cb2a982c42233b5b07cc630f9be739f4f1d469a3/msgpack-1.2.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:18a6ed513023001b28dcd3ba54966f6bb90a38274ba8d2640464bcab3a1b81d4", size = 477373, upload-time = "2026-09-29T02:31:56.713Z" }, + { url = "https://files.pythonhosted.org/packages/59/79/ab411d0d172743732ab2503f4c32a22dd1a7d1436a6feecbb160e4b6376a/msgpack-1.2.3-cp311-cp311-win32.whl", hash = "sha256:d0238cd05dec9ffbe0de1071df685ba63e30a36ac155285b1a094e727c38cbe9", size = 67514, upload-time = "2026-09-29T02:31:58.267Z" }, + { url = "https://files.pythonhosted.org/packages/63/8d/6f0cb2b84e484e96278455c26870196d025bb0cec312b226a663f1fa9000/msgpack-1.2.3-cp311-cp311-win_amd64.whl", hash = "sha256:30e1522e4173230dca4d9ad896f038f73c0da6c1edd42f4dbad88ac583cf5d46", size = 75850, upload-time = "2026-09-29T02:31:59.449Z" }, + { url = "https://files.pythonhosted.org/packages/aa/25/f99e13a2c1d3f5a1dcaa5aab27f474e8c4358188bbc68ad79fecb0d1aefe/msgpack-1.2.3-cp311-cp311-win_arm64.whl", hash = "sha256:8ca67f77938ea6a3663aa9bd22b3e031f6da84d665be850abab910ee90728dfd", size = 72338, upload-time = "2026-09-29T02:32:00.885Z" }, + { url = "https://files.pythonhosted.org/packages/af/12/4d7c6d6203416d9fbf0f59ebaa805e70fb929b93a41b611bc821ec5964a0/msgpack-1.2.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:89c930aece4e972b208ba589c8410b4167b05e411a5ea2cb25fd96f8bc47ee43", size = 91577, upload-time = "2026-09-29T02:32:02.141Z" }, + { url = "https://files.pythonhosted.org/packages/eb/c7/8576ad39f4ca42ddad26f68eb8621d2d0a60501193d480f504bd9d7f36c4/msgpack-1.2.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:905a189853d6bdb204c7ae5f4ab77fb857448abfff574d3d93c62e2815b24b4f", size = 90027, upload-time = "2026-09-29T02:32:03.508Z" }, + { url = "https://files.pythonhosted.org/packages/0a/3a/aa9c580aea1314529a0f3562461479780b0d254b064f0880956bfbcc74a8/msgpack-1.2.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f3d7b3d0018746b5997dd6b14a1870b07cc4c327d9101145d94a1fc264a51a06", size = 460343, upload-time = "2026-09-29T02:32:04.906Z" }, + { url = "https://files.pythonhosted.org/packages/3a/cf/9c2e4d6c179529d5bf4a64cff76fa581486569e9fbdd35bd98f51cb624bf/msgpack-1.2.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ede33b2892ceb976283e009ad12fa1834cfdf1f9c43ee9c97849fc588d00a618", size = 472998, upload-time = "2026-09-29T02:32:06.69Z" }, + { url = "https://files.pythonhosted.org/packages/7b/41/915c81fe6df2d3cbdb0dece4f1a5cd313e1cd2abd9f501d0f50c0582517e/msgpack-1.2.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:666ef5601ab0e6e345e47febc96aa81143cc932201543480cbb9499164f05ffb", size = 423216, upload-time = "2026-09-29T02:32:08.739Z" }, + { url = "https://files.pythonhosted.org/packages/a2/e7/7dda8b1039abfd9bba4c5068172c67135c9e33089f503512db9226f23c24/msgpack-1.2.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:87cf2ef05ff2f2493ba29fcdaef27e960ca64dacfd13460ae29e6f92e0ed05bb", size = 451218, upload-time = "2026-09-29T02:32:10.517Z" }, + { url = "https://files.pythonhosted.org/packages/16/5b/ce995c1ed4a0522b7f2d034bc2034fd63005f240b945961b70fb56fbaf3d/msgpack-1.2.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:b774ff994d844e541439ac5d2d49a14def4104830c3465e9394c153f86200ffb", size = 422453, upload-time = "2026-09-29T02:32:11.956Z" }, + { url = "https://files.pythonhosted.org/packages/d2/3f/ce191fb87e2650d0166b34c437e499ee4a7f9db9c1eb164f41725eb6160e/msgpack-1.2.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:eaf7e82249837e3aa97297b34a0bb9ff562027381631e057cea6e1367f10b438", size = 469003, upload-time = "2026-09-29T02:32:13.663Z" }, + { url = "https://files.pythonhosted.org/packages/42/35/539123407fe200fb16609c835675496fbeb6017ace9fc93909f0613223ae/msgpack-1.2.3-cp312-cp312-win32.whl", hash = "sha256:7c047250096f9fc19dba26e3d1639b5e7a84114003605c94def667149a70ced1", size = 68303, upload-time = "2026-09-29T02:32:15.02Z" }, + { url = "https://files.pythonhosted.org/packages/6f/4c/331b45f9b86fbda6b9e103244d189068e51f726d8c40021ed66e1f2c415e/msgpack-1.2.3-cp312-cp312-win_amd64.whl", hash = "sha256:3ec409b0d6aa8e9eec6eaf881b893caa215dbe68c5319ca96e8a271d81bb111d", size = 76744, upload-time = "2026-09-29T02:32:16.344Z" }, + { url = "https://files.pythonhosted.org/packages/13/9f/fb572dc42b9fac06c7ea848aaee6e140d84469743bd1402bc07089fc4566/msgpack-1.2.3-cp312-cp312-win_arm64.whl", hash = "sha256:59612b4ed48a04cf024584218e813562f3b30a3bafa5f55abe300b15da314751", size = 71580, upload-time = "2026-09-29T02:32:17.617Z" }, + { url = "https://files.pythonhosted.org/packages/1f/8b/3824d65e912e925d09ce30d9130fa9970d6d2855d7888b13639a6604967f/msgpack-1.2.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:21bfa4d2aa0b04c1806ef778a1199e9e53ea2441bcbf284420a32083896320b8", size = 91728, upload-time = "2026-09-29T02:32:18.949Z" }, + { url = "https://files.pythonhosted.org/packages/05/e6/df7f2c9ebb94760113debbcea2bd3afe5fdab88a4f7bec1b618755517460/msgpack-1.2.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:db84203b13aecc222f465061397fdd5b53b7ae73d2c95ffc1c8dc5be0153a709", size = 89955, upload-time = "2026-09-29T02:32:20.224Z" }, + { url = "https://files.pythonhosted.org/packages/08/6a/e5fc57136e8bacccb2b39627dea2cd546540a06181e22fe6db90e15b3ae4/msgpack-1.2.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5e0d7950ca3c1bbae291d0552dd3bb2792fc680629c4c0d44e47e5bab969f3ca", size = 454930, upload-time = "2026-09-29T02:32:21.771Z" }, + { url = "https://files.pythonhosted.org/packages/b0/30/c394d37898db9212d1693456cdf363c7e1a097d0b63e10664007f3df3ec1/msgpack-1.2.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:07c9733089d1b176c3dd2f7fa268452f9d5d784d076473499d754a58e8d1fbbb", size = 466866, upload-time = "2026-09-29T02:32:23.742Z" }, + { url = "https://files.pythonhosted.org/packages/4a/c8/1e4ddf6f6b829b3ee6c530c79dfae89cb609d2b0eedb5e0ae716851c52d1/msgpack-1.2.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f24a43b3560e20f825b807fe1e874bd73d53abaf8bbdcf258a6eb152cddbc1f5", size = 418715, upload-time = "2026-09-29T02:32:25.262Z" }, + { url = "https://files.pythonhosted.org/packages/11/a5/f460ba6d7a12d4301002f3efbb8f841e8bdc9c5fc98d771689677a352885/msgpack-1.2.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6576f348ed6cc4f31db6fd915a8e94245f042f50eae08d48732425e70638ea37", size = 446489, upload-time = "2026-09-29T02:32:26.988Z" }, + { url = "https://files.pythonhosted.org/packages/49/23/adface88db909bed321c85dd673655152d4a514c67e1f0800eb51c777d07/msgpack-1.2.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:cd5a9f9f86a52c24713679aa2631956835f3842512964ff93f736ff76f1f530d", size = 416998, upload-time = "2026-09-29T02:32:28.606Z" }, + { url = "https://files.pythonhosted.org/packages/36/00/5bb3a239ccfc3763c4d0fa49b13b1b7010b00182c499ab3c1fecfe6294bc/msgpack-1.2.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f9ddd28d3e9bbc602a9dced1591882c7fb9ab776eef8837da2c326fde19e2853", size = 463288, upload-time = "2026-09-29T02:32:30.375Z" }, + { url = "https://files.pythonhosted.org/packages/29/8c/456df77f00d701df9d6980ffb80291bce6e4e2e112e25a4dfae216f0715a/msgpack-1.2.3-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:62cc1a4ef0e553bac32c8342e1f04834aca7de276b92744eb7307db77759b890", size = 53347, upload-time = "2026-09-29T02:32:31.867Z" }, + { url = "https://files.pythonhosted.org/packages/9d/22/ce780be666f89b77cdb855daa9ec62e87bb7f69e9f403e4a5d83a2b2208f/msgpack-1.2.3-cp313-cp313-win32.whl", hash = "sha256:d2f9c4f85e47a44d26d5baf3b041eef23436e224d44eed273f01bd8a12048d9f", size = 68258, upload-time = "2026-09-29T02:32:33.163Z" }, + { url = "https://files.pythonhosted.org/packages/51/06/c3def9bc4db283103c5901b302ee2a4305cb1e69729244f94d9bd8f8e8e7/msgpack-1.2.3-cp313-cp313-win_amd64.whl", hash = "sha256:bb89b5dc30469c84bbf8684826eb851d82412ca95690e111b9ac5e8fb343961a", size = 76569, upload-time = "2026-09-29T02:32:34.412Z" }, + { url = "https://files.pythonhosted.org/packages/12/9f/cef344073858b80adb92d6ea342e20b0eae7a8f6fe70281b69cf03707270/msgpack-1.2.3-cp313-cp313-win_arm64.whl", hash = "sha256:471e12a6a42498a31490c206e0069e343b6a7c35db540be73a879eb06f5be047", size = 71530, upload-time = "2026-09-29T02:32:35.892Z" }, + { url = "https://files.pythonhosted.org/packages/3f/8e/f777f74e38731c428857933c8011596f2d2f3160c821152f23b6ffba862f/msgpack-1.2.3-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:3a31905206722103a84c1f72633fe30692cff6732c9d262e09a27dbc468797c8", size = 92042, upload-time = "2026-09-29T02:32:37.464Z" }, + { url = "https://files.pythonhosted.org/packages/a0/71/551608543ee5d590f7e8d522267665d6d9946866ad2a2a70a770f7c70793/msgpack-1.2.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3372475211a9ce1a23acefe512cb3e121d18c95dc74ed56cb1819ef40836ebf4", size = 90578, upload-time = "2026-09-29T02:32:38.883Z" }, + { url = "https://files.pythonhosted.org/packages/ea/11/6d78ce5a9a58bf9ba7b1b6a8f649173b030e6770c8019cf330b91825ee5d/msgpack-1.2.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9324c54995641c3d1f92a9d55093c8cde0ffa2fbc87a467a688ef60428393220", size = 454352, upload-time = "2026-09-29T02:32:40.34Z" }, + { url = "https://files.pythonhosted.org/packages/3d/08/feb9a196269ba7809f44f9117d9e4a601c41c313f6144fd0c337293a5488/msgpack-1.2.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d8ef3a66e4b52d2d7fdd90df2984670124b2ff7546d76bb25dcf68ef47f7df58", size = 462562, upload-time = "2026-09-29T02:32:42.176Z" }, + { url = "https://files.pythonhosted.org/packages/f5/77/3a674f366def24140b103d1ffd4fd27b3d912a13e47da67422afa16bebb3/msgpack-1.2.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:902f3490db0e07a7d40b48536a85c9b28fbf1397e7e1658a45a55f958e303620", size = 418134, upload-time = "2026-09-29T02:32:43.693Z" }, + { url = "https://files.pythonhosted.org/packages/48/82/944e71f280577490d99a3951cbce21aa4cbe04e7ab42cb373fd668af883c/msgpack-1.2.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8e51eca14fbb65c4e0a5a9657346962bd3dca78c08e04e3d4dee70ef48687d30", size = 445937, upload-time = "2026-09-29T02:32:45.739Z" }, + { url = "https://files.pythonhosted.org/packages/b1/ec/feddd629c4a3edf1395313680450c525086cceab56dec0d4de9da9ccb618/msgpack-1.2.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:f42f146752eedb6765f07dcc04d72dab0a25779ec8d4a88c0085263ce114f22c", size = 416450, upload-time = "2026-09-29T02:32:47.558Z" }, + { url = "https://files.pythonhosted.org/packages/e4/59/263a10f8c4613ba0713f48cbda7695ac8dd6d6fab2fcbc9168f03f23a94d/msgpack-1.2.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:0ed5823c4efc20fe87d3530665f40ec18a002be003114814c21235cc8d256207", size = 459546, upload-time = "2026-09-29T02:32:49.145Z" }, + { url = "https://files.pythonhosted.org/packages/1e/21/addcfa1e583cfc8a22fbdc57526621b5decd7ad676ae12e9150b7be1be5d/msgpack-1.2.3-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:2487453ca1b6104442c6442f9a1a8fee1fe8f428a70d99d4cba799108b304150", size = 53462, upload-time = "2026-09-29T02:32:50.708Z" }, + { url = "https://files.pythonhosted.org/packages/8d/2c/3cb5c8524a1335ee27ca952c7ab78d375a16fea8e18ae3767ba0c880416c/msgpack-1.2.3-cp314-cp314-win32.whl", hash = "sha256:6df430419f2338cb71e4a34d6e64f83c88ccd321f91f40ba4513400b36d864ec", size = 70294, upload-time = "2026-09-29T02:32:52.037Z" }, + { url = "https://files.pythonhosted.org/packages/23/f9/9172ff3cdb85d160ad06df5e2708a5fce7682982a5eee8d31869b9f69d2e/msgpack-1.2.3-cp314-cp314-win_amd64.whl", hash = "sha256:84a6616d396ec1bc18a1e83e67c96a393ec35dfe5e17434a5be7b9aa0fe988ab", size = 77778, upload-time = "2026-09-29T02:32:53.429Z" }, + { url = "https://files.pythonhosted.org/packages/04/e8/b4c23178bcf605ae17cec48a75530dd69d49b0a5a6f5f4df5c47d59f746e/msgpack-1.2.3-cp314-cp314-win_arm64.whl", hash = "sha256:7a003b02c6ee2eea6dfe0bb08818631e3597e69f0131f2a8250488a1cc553290", size = 73794, upload-time = "2026-09-29T02:32:54.763Z" }, + { url = "https://files.pythonhosted.org/packages/66/b1/92704be352c4f428b7e0a0e0fb210cb1aa2b1c42c102b8dc22d34b82fac0/msgpack-1.2.3-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:ccea05b5542f6d283fef3f0a8e93a7f0be90af0ddeeef84c25c0216ba76dcae1", size = 93721, upload-time = "2026-09-29T02:32:56.342Z" }, + { url = "https://files.pythonhosted.org/packages/49/78/9c91f1e86cadcbc100b3780fd429c3715648704032a612e77a00646ebe79/msgpack-1.2.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b1631e12fe572e181cd77e831f69335d6cd5278eac22e3db3f33cf264ac2ac18", size = 94256, upload-time = "2026-09-29T02:32:58.056Z" }, + { url = "https://files.pythonhosted.org/packages/91/4d/270f9725921ae88a29d37a774a77ac24f0ef1411fc960a63f5a4665e81b4/msgpack-1.2.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e54394b7dbe2e12ab032d9d21feef7bb61a90a150a2623633ba3781ba69dcb1f", size = 471673, upload-time = "2026-09-29T02:32:59.886Z" }, + { url = "https://files.pythonhosted.org/packages/48/b8/eaa8d930f72dc1d1dd79511dc2ccf965922b059f2f0ed3b30aebac8c4b11/msgpack-1.2.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:63bb7448a1e9111319ae2430c09a5596140c160422830d6271bc75730ff2ff9a", size = 466257, upload-time = "2026-09-29T02:33:01.517Z" }, + { url = "https://files.pythonhosted.org/packages/5b/5a/97adc805037bc7e24c4e2f711bbcd3b28be8ec9aea3e778f18208cfbdb46/msgpack-1.2.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:382bc88fe90f29f5ac8a0b65c7046ff255356f2f2f3186c30e370215736fa1dc", size = 418484, upload-time = "2026-09-29T02:33:03.402Z" }, + { url = "https://files.pythonhosted.org/packages/0d/7e/1c53302606fe436ab48ba539ebafafe4a6a9efe12c4f04dc7eb36912d93e/msgpack-1.2.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c77e27790ad72989db783d5303825fba0b71550f00a490efba35cde7dc4b719f", size = 454064, upload-time = "2026-09-29T02:33:04.977Z" }, + { url = "https://files.pythonhosted.org/packages/00/2d/9ee0170f638907b396c15c6cd26b3e54f869159efc6206683acfd8f696e1/msgpack-1.2.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:700bc0fc9e968a292b9137ee70e7a012f7e115bf0107ce45e3a88202788dfc1e", size = 417901, upload-time = "2026-09-29T02:33:06.489Z" }, + { url = "https://files.pythonhosted.org/packages/cc/d2/905c84490a75cd15a27065407cd085d201f7d392e1e0411f49f03fd31ade/msgpack-1.2.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5bd5f91ea75c45cafcc5433ba8fae59b708b736ec178d2441c40c499e9e079db", size = 459896, upload-time = "2026-09-29T02:33:08.361Z" }, + { url = "https://files.pythonhosted.org/packages/37/cd/4ce5809b9ab3b114d7cca64863e436820fa1614b49d55ccb93d49824ac2d/msgpack-1.2.3-cp314-cp314t-win32.whl", hash = "sha256:7995a7c6a62a1d6e7df211b4a16de513bd99fd053525050a319f80f44fb8015e", size = 75983, upload-time = "2026-09-29T02:33:10.023Z" }, + { url = "https://files.pythonhosted.org/packages/8a/31/853bb580744c24be0dbd8b090c3e6987dce466a1fc840fe50c0ac2ef9044/msgpack-1.2.3-cp314-cp314t-win_amd64.whl", hash = "sha256:bfe7d5b62cbe7aa664f0b3e2c49077f10fcdd06183d3014f8271ff3c5edbfbf9", size = 83757, upload-time = "2026-09-29T02:33:11.441Z" }, + { url = "https://files.pythonhosted.org/packages/0d/49/9f1b2ee484414eef9e21ee2b2b23b482bb71433ab9bac1da03cbda15ebf5/msgpack-1.2.3-cp314-cp314t-win_arm64.whl", hash = "sha256:1f585407f740a9eac04a3bb82c61d68a0ea78f90e29e670bfb086b9ce3a518dd", size = 78128, upload-time = "2026-09-29T02:33:13.063Z" }, + { url = "https://files.pythonhosted.org/packages/47/b8/50db4235407c3802f622b4ccdf65c6fe1e48d3c3eab6981fa6a9a5e53f11/msgpack-1.2.3-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:13221a6c81ebb8e43ea63a7251c35d54e4175cea37ebf3a62e911bdf42562a3c", size = 92111, upload-time = "2026-09-29T02:33:14.476Z" }, + { url = "https://files.pythonhosted.org/packages/15/56/50cf2a45c6163edafd737e2fd555103a26ce6748e1e241fb56ed445ea835/msgpack-1.2.3-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:0955b9000725573d1457c1676944b370dd9643c8d18f25bda5ac72913f850949", size = 90583, upload-time = "2026-09-29T02:33:15.924Z" }, + { url = "https://files.pythonhosted.org/packages/2a/fd/8cc02f767c3bc94d2649c954d28dea935ce9398eb9c93ce2444bb9474cc1/msgpack-1.2.3-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0c91762c48cd686dc9cf2b142c0bc544083952de32f5853d6624c956e54b85e5", size = 454751, upload-time = "2026-09-29T02:33:17.475Z" }, + { url = "https://files.pythonhosted.org/packages/80/c9/ddb896767808e3e022453d8dfae26fd52ed404b0aa6fb7f752d39c040208/msgpack-1.2.3-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1f4ae8bd4ad9ba085fde95e95d055a896d19210238a4199a771a3cf36dceed49", size = 463597, upload-time = "2026-09-29T02:33:19.309Z" }, + { url = "https://files.pythonhosted.org/packages/4d/a5/e7c261abf75783c07dcac89951cb31dd0c123bf02fbdeda0c67303e698d8/msgpack-1.2.3-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7013534a7163aa4f213c4d9864f1a8a7555daac6fcd48f699a198e29b436bfab", size = 422661, upload-time = "2026-09-29T02:33:21.093Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8e/466d5133f9e1c2e232e15e304f715b62f6f0e28332d18e37d975fe174315/msgpack-1.2.3-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:6a834097144aabe948b8ca9020a833e8026f7d0abbd0ec54bc7e50f45a8ce012", size = 445188, upload-time = "2026-09-29T02:33:22.877Z" }, + { url = "https://files.pythonhosted.org/packages/d4/b4/33e7ad987ee2f4b3d449a6cbf28f574ed222987ca7f65ad277072646ac5e/msgpack-1.2.3-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:d31864ba3933a589b6a00249f89c0eb422197f49128fc10da550e57e9cb0f377", size = 420451, upload-time = "2026-09-29T02:33:24.485Z" }, + { url = "https://files.pythonhosted.org/packages/34/2c/9d8be0d6c16e7e6131cd7da20257dd3da65473e3e6df0c00572fb10a195c/msgpack-1.2.3-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:e15f70588f4db8cd10df0930145b186de70feb9db51710cd378b1399009655bd", size = 460624, upload-time = "2026-09-29T02:33:26.063Z" }, + { url = "https://files.pythonhosted.org/packages/6a/e7/3a04783582c6f44f398cbfcf5f07a111192126ec4e63edf7f5640143bf64/msgpack-1.2.3-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:b949cc25e4a09252cbcc54e66e507de914d0e94a3a7039bd54c299bf7037c098", size = 53474, upload-time = "2026-09-29T02:33:27.83Z" }, + { url = "https://files.pythonhosted.org/packages/68/fb/db07359851644e258609d84f8e4fe0030ef448c108e20afe73f2a3bf539c/msgpack-1.2.3-cp315-cp315-win32.whl", hash = "sha256:8ec7a1d49ca6c2569d722ab5ec86e90089b0713900aa31905b47b4c4d9e78ce0", size = 70344, upload-time = "2026-09-29T02:33:29.382Z" }, + { url = "https://files.pythonhosted.org/packages/5b/e4/cf5584d2f2a2e4465d5896a855a3e75a34a20ab172360b3d42ad862dd1ce/msgpack-1.2.3-cp315-cp315-win_amd64.whl", hash = "sha256:79dfa38faf92f804aa61beec140d70b18418e1dde1778dbb77a87a4cce85aa8a", size = 77800, upload-time = "2026-09-29T02:33:30.941Z" }, + { url = "https://files.pythonhosted.org/packages/63/f9/518ad4e8a580027b507eafdd26de7aae661a714e43d7c111c212482e4a1b/msgpack-1.2.3-cp315-cp315-win_arm64.whl", hash = "sha256:ed899d73a22f286a72bd9528d63f2ab3030dbad8bf1527fc249319a50d61fb9d", size = 73871, upload-time = "2026-09-29T02:33:32.406Z" }, + { url = "https://files.pythonhosted.org/packages/a4/79/254d4c9ad642b2a3ba84e646787892b34cc815eb36c9976f67a1c4f38515/msgpack-1.2.3-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:f56fba61b2516be7917cb00151f0d060b5b21184e3499bb57f0f7d9259bea124", size = 93370, upload-time = "2026-09-29T02:33:33.87Z" }, + { url = "https://files.pythonhosted.org/packages/3d/6f/5a2ba167646a25e84eaa8894e12935351e4331b80c28a9237ce6fe8d375f/msgpack-1.2.3-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:69ad12cedb674c73527bed869cddb42b742cac79a207a614202a4abaa24ea173", size = 93959, upload-time = "2026-09-29T02:33:35.503Z" }, + { url = "https://files.pythonhosted.org/packages/e9/a1/2b44612e55f7cf5d5e4b580294959b4429bbbcb1991177888e3e18668137/msgpack-1.2.3-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:db9fb67a3a2e75247bae569d34ebb5ff61c0448a4f0d6dbf991dae68af39b007", size = 467921, upload-time = "2026-09-29T02:33:37.023Z" }, + { url = "https://files.pythonhosted.org/packages/0b/6e/3309798ed1c11d7fcfdc7b946642685b0ff1588477925bc0d26bee7dcaae/msgpack-1.2.3-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2574ef81c1c8c38b10e330f3f9406fd09198a776b002030fafcf8e7647e9e06e", size = 467310, upload-time = "2026-09-29T02:33:38.799Z" }, + { url = "https://files.pythonhosted.org/packages/6f/79/9c799f489fa4146de4e00cfe9fee17afe33d8012f88ddffffea94f7c4700/msgpack-1.2.3-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fafc3b8898b432b841d30a61082c599fa7f4d06885f9dc58ad72259e12059fa6", size = 420178, upload-time = "2026-09-29T02:33:40.781Z" }, + { url = "https://files.pythonhosted.org/packages/94/c6/5850dc9cafcd2ea315692e65db0e222d20923dd55f44adf35061003de27e/msgpack-1.2.3-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:a393e428f6ffb0dcb73308c1fff5593041c16ff42da66e5bac8a83a6107a54b0", size = 450248, upload-time = "2026-09-29T02:33:42.366Z" }, + { url = "https://files.pythonhosted.org/packages/a9/d2/b4c806e3497fe21f0b353568266aec14ff735d092aea672de7b2955db03f/msgpack-1.2.3-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:d1c1e8989a855b7f1f2a64ec4a80b23a631822903952770813857b2e4f460471", size = 418431, upload-time = "2026-09-29T02:33:44.178Z" }, + { url = "https://files.pythonhosted.org/packages/b0/f5/f4ecc3ddac4d551bf2f3cdb283ec546dcc826fe7c500074be61aa273e08a/msgpack-1.2.3-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:e0bd394e999949c814f7912284243298de1b5a17b6a3dcb6cc8a79b156ffc4fa", size = 457543, upload-time = "2026-09-29T02:33:45.978Z" }, + { url = "https://files.pythonhosted.org/packages/a4/69/1c821d8386fae5cecc5fcaacf3de3947ff0a23f16bb481b5532b5868372a/msgpack-1.2.3-cp315-cp315t-win32.whl", hash = "sha256:3d4c807ed050fe3ddbea5ba7e9f63d7136871ce42861be1f50ff739f0e91047a", size = 75820, upload-time = "2026-09-29T02:33:47.596Z" }, + { url = "https://files.pythonhosted.org/packages/68/9e/41e2f7343a3764a9c1fb10c79f9a6a05db9df93dedd76401d1b511f5a685/msgpack-1.2.3-cp315-cp315t-win_amd64.whl", hash = "sha256:5f304123b90e8b2e49867981b7f6061612c39f50cca51ee88de007c084cf68d3", size = 83345, upload-time = "2026-09-29T02:33:49.325Z" }, + { url = "https://files.pythonhosted.org/packages/80/cd/0c3aa439bc7a7bf24684fef3a0ad776cba170e18ed94445e723bce42fce7/msgpack-1.2.3-cp315-cp315t-win_arm64.whl", hash = "sha256:f41ca154b7737b11893cdce3c78c61d703398a1cd54d4297bdad908392338a8e", size = 77572, upload-time = "2026-09-29T02:33:50.729Z" }, ] [[package]] name = "multidict" -version = "6.7.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/1a/c2/c2d94cbe6ac1753f3fc980da97b3d930efe1da3af3c9f5125354436c073d/multidict-6.7.1.tar.gz", hash = "sha256:ec6652a1bee61c53a3e5776b6049172c53b6aaba34f18c9ad04f82712bac623d", size = 102010, upload-time = "2026-01-26T02:46:45.979Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/84/0b/19348d4c98980c4851d2f943f8ebafdece2ae7ef737adcfa5994ce8e5f10/multidict-6.7.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:c93c3db7ea657dd4637d57e74ab73de31bccefe144d3d4ce370052035bc85fb5", size = 77176, upload-time = "2026-01-26T02:42:59.784Z" }, - { url = "https://files.pythonhosted.org/packages/ef/04/9de3f8077852e3d438215c81e9b691244532d2e05b4270e89ce67b7d103c/multidict-6.7.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:974e72a2474600827abaeda71af0c53d9ebbc3c2eb7da37b37d7829ae31232d8", size = 44996, upload-time = "2026-01-26T02:43:01.674Z" }, - { url = "https://files.pythonhosted.org/packages/31/5c/08c7f7fe311f32e83f7621cd3f99d805f45519cd06fafb247628b861da7d/multidict-6.7.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cdea2e7b2456cfb6694fb113066fd0ec7ea4d67e3a35e1f4cbeea0b448bf5872", size = 44631, upload-time = "2026-01-26T02:43:03.169Z" }, - { url = "https://files.pythonhosted.org/packages/b7/7f/0e3b1390ae772f27501199996b94b52ceeb64fe6f9120a32c6c3f6b781be/multidict-6.7.1-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:17207077e29342fdc2c9a82e4b306f1127bf1ea91f8b71e02d4798a70bb99991", size = 242561, upload-time = "2026-01-26T02:43:04.733Z" }, - { url = "https://files.pythonhosted.org/packages/dd/f4/8719f4f167586af317b69dd3e90f913416c91ca610cac79a45c53f590312/multidict-6.7.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d4f49cb5661344764e4c7c7973e92a47a59b8fc19b6523649ec9dc4960e58a03", size = 242223, upload-time = "2026-01-26T02:43:06.695Z" }, - { url = "https://files.pythonhosted.org/packages/47/ab/7c36164cce64a6ad19c6d9a85377b7178ecf3b89f8fd589c73381a5eedfd/multidict-6.7.1-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a9fc4caa29e2e6ae408d1c450ac8bf19892c5fca83ee634ecd88a53332c59981", size = 222322, upload-time = "2026-01-26T02:43:08.472Z" }, - { url = "https://files.pythonhosted.org/packages/f5/79/a25add6fb38035b5337bc5734f296d9afc99163403bbcf56d4170f97eb62/multidict-6.7.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c5f0c21549ab432b57dcc82130f388d84ad8179824cc3f223d5e7cfbfd4143f6", size = 254005, upload-time = "2026-01-26T02:43:10.127Z" }, - { url = "https://files.pythonhosted.org/packages/4a/7b/64a87cf98e12f756fc8bd444b001232ffff2be37288f018ad0d3f0aae931/multidict-6.7.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7dfb78d966b2c906ae1d28ccf6e6712a3cd04407ee5088cd276fe8cb42186190", size = 251173, upload-time = "2026-01-26T02:43:11.731Z" }, - { url = "https://files.pythonhosted.org/packages/4b/ac/b605473de2bb404e742f2cc3583d12aedb2352a70e49ae8fce455b50c5aa/multidict-6.7.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9b0d9b91d1aa44db9c1f1ecd0d9d2ae610b2f4f856448664e01a3b35899f3f92", size = 243273, upload-time = "2026-01-26T02:43:13.063Z" }, - { url = "https://files.pythonhosted.org/packages/03/65/11492d6a0e259783720f3bc1d9ea55579a76f1407e31ed44045c99542004/multidict-6.7.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:dd96c01a9dcd4889dcfcf9eb5544ca0c77603f239e3ffab0524ec17aea9a93ee", size = 238956, upload-time = "2026-01-26T02:43:14.843Z" }, - { url = "https://files.pythonhosted.org/packages/5f/a7/7ee591302af64e7c196fb63fe856c788993c1372df765102bd0448e7e165/multidict-6.7.1-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:067343c68cd6612d375710f895337b3a98a033c94f14b9a99eff902f205424e2", size = 233477, upload-time = "2026-01-26T02:43:16.025Z" }, - { url = "https://files.pythonhosted.org/packages/9c/99/c109962d58756c35fd9992fed7f2355303846ea2ff054bb5f5e9d6b888de/multidict-6.7.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:5884a04f4ff56c6120f6ccf703bdeb8b5079d808ba604d4d53aec0d55dc33568", size = 243615, upload-time = "2026-01-26T02:43:17.84Z" }, - { url = "https://files.pythonhosted.org/packages/d5/5f/1973e7c771c86e93dcfe1c9cc55a5481b610f6614acfc28c0d326fe6bfad/multidict-6.7.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:8affcf1c98b82bc901702eb73b6947a1bfa170823c153fe8a47b5f5f02e48e40", size = 249930, upload-time = "2026-01-26T02:43:19.06Z" }, - { url = "https://files.pythonhosted.org/packages/5d/a5/f170fc2268c3243853580203378cd522446b2df632061e0a5409817854c7/multidict-6.7.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:0d17522c37d03e85c8098ec8431636309b2682cf12e58f4dbc76121fb50e4962", size = 243807, upload-time = "2026-01-26T02:43:20.286Z" }, - { url = "https://files.pythonhosted.org/packages/de/01/73856fab6d125e5bc652c3986b90e8699a95e84b48d72f39ade6c0e74a8c/multidict-6.7.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:24c0cf81544ca5e17cfcb6e482e7a82cd475925242b308b890c9452a074d4505", size = 239103, upload-time = "2026-01-26T02:43:21.508Z" }, - { url = "https://files.pythonhosted.org/packages/e7/46/f1220bd9944d8aa40d8ccff100eeeee19b505b857b6f603d6078cb5315b0/multidict-6.7.1-cp310-cp310-win32.whl", hash = "sha256:d82dd730a95e6643802f4454b8fdecdf08667881a9c5670db85bc5a56693f122", size = 41416, upload-time = "2026-01-26T02:43:22.703Z" }, - { url = "https://files.pythonhosted.org/packages/68/00/9b38e272a770303692fc406c36e1a4c740f401522d5787691eb38a8925a8/multidict-6.7.1-cp310-cp310-win_amd64.whl", hash = "sha256:cf37cbe5ced48d417ba045aca1b21bafca67489452debcde94778a576666a1df", size = 46022, upload-time = "2026-01-26T02:43:23.77Z" }, - { url = "https://files.pythonhosted.org/packages/64/65/d8d42490c02ee07b6bbe00f7190d70bb4738b3cce7629aaf9f213ef730dd/multidict-6.7.1-cp310-cp310-win_arm64.whl", hash = "sha256:59bc83d3f66b41dac1e7460aac1d196edc70c9ba3094965c467715a70ecb46db", size = 43238, upload-time = "2026-01-26T02:43:24.882Z" }, - { url = "https://files.pythonhosted.org/packages/ce/f1/a90635c4f88fb913fbf4ce660b83b7445b7a02615bda034b2f8eb38fd597/multidict-6.7.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:7ff981b266af91d7b4b3793ca3382e53229088d193a85dfad6f5f4c27fc73e5d", size = 76626, upload-time = "2026-01-26T02:43:26.485Z" }, - { url = "https://files.pythonhosted.org/packages/a6/9b/267e64eaf6fc637a15b35f5de31a566634a2740f97d8d094a69d34f524a4/multidict-6.7.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:844c5bca0b5444adb44a623fb0a1310c2f4cd41f402126bb269cd44c9b3f3e1e", size = 44706, upload-time = "2026-01-26T02:43:27.607Z" }, - { url = "https://files.pythonhosted.org/packages/dd/a4/d45caf2b97b035c57267791ecfaafbd59c68212004b3842830954bb4b02e/multidict-6.7.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f2a0a924d4c2e9afcd7ec64f9de35fcd96915149b2216e1cb2c10a56df483855", size = 44356, upload-time = "2026-01-26T02:43:28.661Z" }, - { url = "https://files.pythonhosted.org/packages/fd/d2/0a36c8473f0cbaeadd5db6c8b72d15bbceeec275807772bfcd059bef487d/multidict-6.7.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8be1802715a8e892c784c0197c2ace276ea52702a0ede98b6310c8f255a5afb3", size = 244355, upload-time = "2026-01-26T02:43:31.165Z" }, - { url = "https://files.pythonhosted.org/packages/5d/16/8c65be997fd7dd311b7d39c7b6e71a0cb449bad093761481eccbbe4b42a2/multidict-6.7.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2e2d2ed645ea29f31c4c7ea1552fcfd7cb7ba656e1eafd4134a6620c9f5fdd9e", size = 246433, upload-time = "2026-01-26T02:43:32.581Z" }, - { url = "https://files.pythonhosted.org/packages/01/fb/4dbd7e848d2799c6a026ec88ad39cf2b8416aa167fcc903baa55ecaa045c/multidict-6.7.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:95922cee9a778659e91db6497596435777bd25ed116701a4c034f8e46544955a", size = 225376, upload-time = "2026-01-26T02:43:34.417Z" }, - { url = "https://files.pythonhosted.org/packages/b6/8a/4a3a6341eac3830f6053062f8fbc9a9e54407c80755b3f05bc427295c2d0/multidict-6.7.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6b83cabdc375ffaaa15edd97eb7c0c672ad788e2687004990074d7d6c9b140c8", size = 257365, upload-time = "2026-01-26T02:43:35.741Z" }, - { url = "https://files.pythonhosted.org/packages/f7/a2/dd575a69c1aa206e12d27d0770cdf9b92434b48a9ef0cd0d1afdecaa93c4/multidict-6.7.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:38fb49540705369bab8484db0689d86c0a33a0a9f2c1b197f506b71b4b6c19b0", size = 254747, upload-time = "2026-01-26T02:43:36.976Z" }, - { url = "https://files.pythonhosted.org/packages/5a/56/21b27c560c13822ed93133f08aa6372c53a8e067f11fbed37b4adcdac922/multidict-6.7.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:439cbebd499f92e9aa6793016a8acaa161dfa749ae86d20960189f5398a19144", size = 246293, upload-time = "2026-01-26T02:43:38.258Z" }, - { url = "https://files.pythonhosted.org/packages/5a/a4/23466059dc3854763423d0ad6c0f3683a379d97673b1b89ec33826e46728/multidict-6.7.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6d3bc717b6fe763b8be3f2bee2701d3c8eb1b2a8ae9f60910f1b2860c82b6c49", size = 242962, upload-time = "2026-01-26T02:43:40.034Z" }, - { url = "https://files.pythonhosted.org/packages/1f/67/51dd754a3524d685958001e8fa20a0f5f90a6a856e0a9dcabff69be3dbb7/multidict-6.7.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:619e5a1ac57986dbfec9f0b301d865dddf763696435e2962f6d9cf2fdff2bb71", size = 237360, upload-time = "2026-01-26T02:43:41.752Z" }, - { url = "https://files.pythonhosted.org/packages/64/3f/036dfc8c174934d4b55d86ff4f978e558b0e585cef70cfc1ad01adc6bf18/multidict-6.7.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:0b38ebffd9be37c1170d33bc0f36f4f262e0a09bc1aac1c34c7aa51a7293f0b3", size = 245940, upload-time = "2026-01-26T02:43:43.042Z" }, - { url = "https://files.pythonhosted.org/packages/3d/20/6214d3c105928ebc353a1c644a6ef1408bc5794fcb4f170bb524a3c16311/multidict-6.7.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:10ae39c9cfe6adedcdb764f5e8411d4a92b055e35573a2eaa88d3323289ef93c", size = 253502, upload-time = "2026-01-26T02:43:44.371Z" }, - { url = "https://files.pythonhosted.org/packages/b1/e2/c653bc4ae1be70a0f836b82172d643fcf1dade042ba2676ab08ec08bff0f/multidict-6.7.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:25167cc263257660290fba06b9318d2026e3c910be240a146e1f66dd114af2b0", size = 247065, upload-time = "2026-01-26T02:43:45.745Z" }, - { url = "https://files.pythonhosted.org/packages/c8/11/a854b4154cd3bd8b1fd375e8a8ca9d73be37610c361543d56f764109509b/multidict-6.7.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:128441d052254f42989ef98b7b6a6ecb1e6f708aa962c7984235316db59f50fa", size = 241870, upload-time = "2026-01-26T02:43:47.054Z" }, - { url = "https://files.pythonhosted.org/packages/13/bf/9676c0392309b5fdae322333d22a829715b570edb9baa8016a517b55b558/multidict-6.7.1-cp311-cp311-win32.whl", hash = "sha256:d62b7f64ffde3b99d06b707a280db04fb3855b55f5a06df387236051d0668f4a", size = 41302, upload-time = "2026-01-26T02:43:48.753Z" }, - { url = "https://files.pythonhosted.org/packages/c9/68/f16a3a8ba6f7b6dc92a1f19669c0810bd2c43fc5a02da13b1cbf8e253845/multidict-6.7.1-cp311-cp311-win_amd64.whl", hash = "sha256:bdbf9f3b332abd0cdb306e7c2113818ab1e922dc84b8f8fd06ec89ed2a19ab8b", size = 45981, upload-time = "2026-01-26T02:43:49.921Z" }, - { url = "https://files.pythonhosted.org/packages/ac/ad/9dd5305253fa00cd3c7555dbef69d5bf4133debc53b87ab8d6a44d411665/multidict-6.7.1-cp311-cp311-win_arm64.whl", hash = "sha256:b8c990b037d2fff2f4e33d3f21b9b531c5745b33a49a7d6dbe7a177266af44f6", size = 43159, upload-time = "2026-01-26T02:43:51.635Z" }, - { url = "https://files.pythonhosted.org/packages/8d/9c/f20e0e2cf80e4b2e4b1c365bf5fe104ee633c751a724246262db8f1a0b13/multidict-6.7.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:a90f75c956e32891a4eda3639ce6dd86e87105271f43d43442a3aedf3cddf172", size = 76893, upload-time = "2026-01-26T02:43:52.754Z" }, - { url = "https://files.pythonhosted.org/packages/fe/cf/18ef143a81610136d3da8193da9d80bfe1cb548a1e2d1c775f26b23d024a/multidict-6.7.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3fccb473e87eaa1382689053e4a4618e7ba7b9b9b8d6adf2027ee474597128cd", size = 45456, upload-time = "2026-01-26T02:43:53.893Z" }, - { url = "https://files.pythonhosted.org/packages/a9/65/1caac9d4cd32e8433908683446eebc953e82d22b03d10d41a5f0fefe991b/multidict-6.7.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b0fa96985700739c4c7853a43c0b3e169360d6855780021bfc6d0f1ce7c123e7", size = 43872, upload-time = "2026-01-26T02:43:55.041Z" }, - { url = "https://files.pythonhosted.org/packages/cf/3b/d6bd75dc4f3ff7c73766e04e705b00ed6dbbaccf670d9e05a12b006f5a21/multidict-6.7.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cb2a55f408c3043e42b40cc8eecd575afa27b7e0b956dfb190de0f8499a57a53", size = 251018, upload-time = "2026-01-26T02:43:56.198Z" }, - { url = "https://files.pythonhosted.org/packages/fd/80/c959c5933adedb9ac15152e4067c702a808ea183a8b64cf8f31af8ad3155/multidict-6.7.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eb0ce7b2a32d09892b3dd6cc44877a0d02a33241fafca5f25c8b6b62374f8b75", size = 258883, upload-time = "2026-01-26T02:43:57.499Z" }, - { url = "https://files.pythonhosted.org/packages/86/85/7ed40adafea3d4f1c8b916e3b5cc3a8e07dfcdcb9cd72800f4ed3ca1b387/multidict-6.7.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c3a32d23520ee37bf327d1e1a656fec76a2edd5c038bf43eddfa0572ec49c60b", size = 242413, upload-time = "2026-01-26T02:43:58.755Z" }, - { url = "https://files.pythonhosted.org/packages/d2/57/b8565ff533e48595503c785f8361ff9a4fde4d67de25c207cd0ba3befd03/multidict-6.7.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9c90fed18bffc0189ba814749fdcc102b536e83a9f738a9003e569acd540a733", size = 268404, upload-time = "2026-01-26T02:44:00.216Z" }, - { url = "https://files.pythonhosted.org/packages/e0/50/9810c5c29350f7258180dfdcb2e52783a0632862eb334c4896ac717cebcb/multidict-6.7.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:da62917e6076f512daccfbbde27f46fed1c98fee202f0559adec8ee0de67f71a", size = 269456, upload-time = "2026-01-26T02:44:02.202Z" }, - { url = "https://files.pythonhosted.org/packages/f3/8d/5e5be3ced1d12966fefb5c4ea3b2a5b480afcea36406559442c6e31d4a48/multidict-6.7.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bfde23ef6ed9db7eaee6c37dcec08524cb43903c60b285b172b6c094711b3961", size = 256322, upload-time = "2026-01-26T02:44:03.56Z" }, - { url = "https://files.pythonhosted.org/packages/31/6e/d8a26d81ac166a5592782d208dd90dfdc0a7a218adaa52b45a672b46c122/multidict-6.7.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3758692429e4e32f1ba0df23219cd0b4fc0a52f476726fff9337d1a57676a582", size = 253955, upload-time = "2026-01-26T02:44:04.845Z" }, - { url = "https://files.pythonhosted.org/packages/59/4c/7c672c8aad41534ba619bcd4ade7a0dc87ed6b8b5c06149b85d3dd03f0cd/multidict-6.7.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:398c1478926eca669f2fd6a5856b6de9c0acf23a2cb59a14c0ba5844fa38077e", size = 251254, upload-time = "2026-01-26T02:44:06.133Z" }, - { url = "https://files.pythonhosted.org/packages/7b/bd/84c24de512cbafbdbc39439f74e967f19570ce7924e3007174a29c348916/multidict-6.7.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:c102791b1c4f3ab36ce4101154549105a53dc828f016356b3e3bcae2e3a039d3", size = 252059, upload-time = "2026-01-26T02:44:07.518Z" }, - { url = "https://files.pythonhosted.org/packages/fa/ba/f5449385510825b73d01c2d4087bf6d2fccc20a2d42ac34df93191d3dd03/multidict-6.7.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:a088b62bd733e2ad12c50dad01b7d0166c30287c166e137433d3b410add807a6", size = 263588, upload-time = "2026-01-26T02:44:09.382Z" }, - { url = "https://files.pythonhosted.org/packages/d7/11/afc7c677f68f75c84a69fe37184f0f82fce13ce4b92f49f3db280b7e92b3/multidict-6.7.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3d51ff4785d58d3f6c91bdbffcb5e1f7ddfda557727043aa20d20ec4f65e324a", size = 259642, upload-time = "2026-01-26T02:44:10.73Z" }, - { url = "https://files.pythonhosted.org/packages/2b/17/ebb9644da78c4ab36403739e0e6e0e30ebb135b9caf3440825001a0bddcb/multidict-6.7.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fc5907494fccf3e7d3f94f95c91d6336b092b5fc83811720fae5e2765890dfba", size = 251377, upload-time = "2026-01-26T02:44:12.042Z" }, - { url = "https://files.pythonhosted.org/packages/ca/a4/840f5b97339e27846c46307f2530a2805d9d537d8b8bd416af031cad7fa0/multidict-6.7.1-cp312-cp312-win32.whl", hash = "sha256:28ca5ce2fd9716631133d0e9a9b9a745ad7f60bac2bccafb56aa380fc0b6c511", size = 41887, upload-time = "2026-01-26T02:44:14.245Z" }, - { url = "https://files.pythonhosted.org/packages/80/31/0b2517913687895f5904325c2069d6a3b78f66cc641a86a2baf75a05dcbb/multidict-6.7.1-cp312-cp312-win_amd64.whl", hash = "sha256:fcee94dfbd638784645b066074b338bc9cc155d4b4bffa4adce1615c5a426c19", size = 46053, upload-time = "2026-01-26T02:44:15.371Z" }, - { url = "https://files.pythonhosted.org/packages/0c/5b/aba28e4ee4006ae4c7df8d327d31025d760ffa992ea23812a601d226e682/multidict-6.7.1-cp312-cp312-win_arm64.whl", hash = "sha256:ba0a9fb644d0c1a2194cf7ffb043bd852cea63a57f66fbd33959f7dae18517bf", size = 43307, upload-time = "2026-01-26T02:44:16.852Z" }, - { url = "https://files.pythonhosted.org/packages/f2/22/929c141d6c0dba87d3e1d38fbdf1ba8baba86b7776469f2bc2d3227a1e67/multidict-6.7.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2b41f5fed0ed563624f1c17630cb9941cf2309d4df00e494b551b5f3e3d67a23", size = 76174, upload-time = "2026-01-26T02:44:18.509Z" }, - { url = "https://files.pythonhosted.org/packages/c7/75/bc704ae15fee974f8fccd871305e254754167dce5f9e42d88a2def741a1d/multidict-6.7.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:84e61e3af5463c19b67ced91f6c634effb89ef8bfc5ca0267f954451ed4bb6a2", size = 45116, upload-time = "2026-01-26T02:44:19.745Z" }, - { url = "https://files.pythonhosted.org/packages/79/76/55cd7186f498ed080a18440c9013011eb548f77ae1b297206d030eb1180a/multidict-6.7.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:935434b9853c7c112eee7ac891bc4cb86455aa631269ae35442cb316790c1445", size = 43524, upload-time = "2026-01-26T02:44:21.571Z" }, - { url = "https://files.pythonhosted.org/packages/e9/3c/414842ef8d5a1628d68edee29ba0e5bcf235dbfb3ccd3ea303a7fe8c72ff/multidict-6.7.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:432feb25a1cb67fe82a9680b4d65fb542e4635cb3166cd9c01560651ad60f177", size = 249368, upload-time = "2026-01-26T02:44:22.803Z" }, - { url = "https://files.pythonhosted.org/packages/f6/32/befed7f74c458b4a525e60519fe8d87eef72bb1e99924fa2b0f9d97a221e/multidict-6.7.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e82d14e3c948952a1a85503817e038cba5905a3352de76b9a465075d072fba23", size = 256952, upload-time = "2026-01-26T02:44:24.306Z" }, - { url = "https://files.pythonhosted.org/packages/03/d6/c878a44ba877f366630c860fdf74bfb203c33778f12b6ac274936853c451/multidict-6.7.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4cfb48c6ea66c83bcaaf7e4dfa7ec1b6bbcf751b7db85a328902796dfde4c060", size = 240317, upload-time = "2026-01-26T02:44:25.772Z" }, - { url = "https://files.pythonhosted.org/packages/68/49/57421b4d7ad2e9e60e25922b08ceb37e077b90444bde6ead629095327a6f/multidict-6.7.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1d540e51b7e8e170174555edecddbd5538105443754539193e3e1061864d444d", size = 267132, upload-time = "2026-01-26T02:44:27.648Z" }, - { url = "https://files.pythonhosted.org/packages/b7/fe/ec0edd52ddbcea2a2e89e174f0206444a61440b40f39704e64dc807a70bd/multidict-6.7.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:273d23f4b40f3dce4d6c8a821c741a86dec62cded82e1175ba3d99be128147ed", size = 268140, upload-time = "2026-01-26T02:44:29.588Z" }, - { url = "https://files.pythonhosted.org/packages/b0/73/6e1b01cbeb458807aa0831742232dbdd1fa92bfa33f52a3f176b4ff3dc11/multidict-6.7.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d624335fd4fa1c08a53f8b4be7676ebde19cd092b3895c421045ca87895b429", size = 254277, upload-time = "2026-01-26T02:44:30.902Z" }, - { url = "https://files.pythonhosted.org/packages/6a/b2/5fb8c124d7561a4974c342bc8c778b471ebbeb3cc17df696f034a7e9afe7/multidict-6.7.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:12fad252f8b267cc75b66e8fc51b3079604e8d43a75428ffe193cd9e2195dfd6", size = 252291, upload-time = "2026-01-26T02:44:32.31Z" }, - { url = "https://files.pythonhosted.org/packages/5a/96/51d4e4e06bcce92577fcd488e22600bd38e4fd59c20cb49434d054903bd2/multidict-6.7.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:03ede2a6ffbe8ef936b92cb4529f27f42be7f56afcdab5ab739cd5f27fb1cbf9", size = 250156, upload-time = "2026-01-26T02:44:33.734Z" }, - { url = "https://files.pythonhosted.org/packages/db/6b/420e173eec5fba721a50e2a9f89eda89d9c98fded1124f8d5c675f7a0c0f/multidict-6.7.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:90efbcf47dbe33dcf643a1e400d67d59abeac5db07dc3f27d6bdeae497a2198c", size = 249742, upload-time = "2026-01-26T02:44:35.222Z" }, - { url = "https://files.pythonhosted.org/packages/44/a3/ec5b5bd98f306bc2aa297b8c6f11a46714a56b1e6ef5ebda50a4f5d7c5fb/multidict-6.7.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:5c4b9bfc148f5a91be9244d6264c53035c8a0dcd2f51f1c3c6e30e30ebaa1c84", size = 262221, upload-time = "2026-01-26T02:44:36.604Z" }, - { url = "https://files.pythonhosted.org/packages/cd/f7/e8c0d0da0cd1e28d10e624604e1a36bcc3353aaebdfdc3a43c72bc683a12/multidict-6.7.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:401c5a650f3add2472d1d288c26deebc540f99e2fb83e9525007a74cd2116f1d", size = 258664, upload-time = "2026-01-26T02:44:38.008Z" }, - { url = "https://files.pythonhosted.org/packages/52/da/151a44e8016dd33feed44f730bd856a66257c1ee7aed4f44b649fb7edeb3/multidict-6.7.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:97891f3b1b3ffbded884e2916cacf3c6fc87b66bb0dde46f7357404750559f33", size = 249490, upload-time = "2026-01-26T02:44:39.386Z" }, - { url = "https://files.pythonhosted.org/packages/87/af/a3b86bf9630b732897f6fc3f4c4714b90aa4361983ccbdcd6c0339b21b0c/multidict-6.7.1-cp313-cp313-win32.whl", hash = "sha256:e1c5988359516095535c4301af38d8a8838534158f649c05dd1050222321bcb3", size = 41695, upload-time = "2026-01-26T02:44:41.318Z" }, - { url = "https://files.pythonhosted.org/packages/b2/35/e994121b0e90e46134673422dd564623f93304614f5d11886b1b3e06f503/multidict-6.7.1-cp313-cp313-win_amd64.whl", hash = "sha256:960c83bf01a95b12b08fd54324a4eb1d5b52c88932b5cba5d6e712bb3ed12eb5", size = 45884, upload-time = "2026-01-26T02:44:42.488Z" }, - { url = "https://files.pythonhosted.org/packages/ca/61/42d3e5dbf661242a69c97ea363f2d7b46c567da8eadef8890022be6e2ab0/multidict-6.7.1-cp313-cp313-win_arm64.whl", hash = "sha256:563fe25c678aaba333d5399408f5ec3c383ca5b663e7f774dd179a520b8144df", size = 43122, upload-time = "2026-01-26T02:44:43.664Z" }, - { url = "https://files.pythonhosted.org/packages/6d/b3/e6b21c6c4f314bb956016b0b3ef2162590a529b84cb831c257519e7fde44/multidict-6.7.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:c76c4bec1538375dad9d452d246ca5368ad6e1c9039dadcf007ae59c70619ea1", size = 83175, upload-time = "2026-01-26T02:44:44.894Z" }, - { url = "https://files.pythonhosted.org/packages/fb/76/23ecd2abfe0957b234f6c960f4ade497f55f2c16aeb684d4ecdbf1c95791/multidict-6.7.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:57b46b24b5d5ebcc978da4ec23a819a9402b4228b8a90d9c656422b4bdd8a963", size = 48460, upload-time = "2026-01-26T02:44:46.106Z" }, - { url = "https://files.pythonhosted.org/packages/c4/57/a0ed92b23f3a042c36bc4227b72b97eca803f5f1801c1ab77c8a212d455e/multidict-6.7.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e954b24433c768ce78ab7929e84ccf3422e46deb45a4dc9f93438f8217fa2d34", size = 46930, upload-time = "2026-01-26T02:44:47.278Z" }, - { url = "https://files.pythonhosted.org/packages/b5/66/02ec7ace29162e447f6382c495dc95826bf931d3818799bbef11e8f7df1a/multidict-6.7.1-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3bd231490fa7217cc832528e1cd8752a96f0125ddd2b5749390f7c3ec8721b65", size = 242582, upload-time = "2026-01-26T02:44:48.604Z" }, - { url = "https://files.pythonhosted.org/packages/58/18/64f5a795e7677670e872673aca234162514696274597b3708b2c0d276cce/multidict-6.7.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:253282d70d67885a15c8a7716f3a73edf2d635793ceda8173b9ecc21f2fb8292", size = 250031, upload-time = "2026-01-26T02:44:50.544Z" }, - { url = "https://files.pythonhosted.org/packages/c8/ed/e192291dbbe51a8290c5686f482084d31bcd9d09af24f63358c3d42fd284/multidict-6.7.1-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0b4c48648d7649c9335cf1927a8b87fa692de3dcb15faa676c6a6f1f1aabda43", size = 228596, upload-time = "2026-01-26T02:44:51.951Z" }, - { url = "https://files.pythonhosted.org/packages/1e/7e/3562a15a60cf747397e7f2180b0a11dc0c38d9175a650e75fa1b4d325e15/multidict-6.7.1-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:98bc624954ec4d2c7cb074b8eefc2b5d0ce7d482e410df446414355d158fe4ca", size = 257492, upload-time = "2026-01-26T02:44:53.902Z" }, - { url = "https://files.pythonhosted.org/packages/24/02/7d0f9eae92b5249bb50ac1595b295f10e263dd0078ebb55115c31e0eaccd/multidict-6.7.1-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1b99af4d9eec0b49927b4402bcbb58dea89d3e0db8806a4086117019939ad3dd", size = 255899, upload-time = "2026-01-26T02:44:55.316Z" }, - { url = "https://files.pythonhosted.org/packages/00/e3/9b60ed9e23e64c73a5cde95269ef1330678e9c6e34dd4eb6b431b85b5a10/multidict-6.7.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6aac4f16b472d5b7dc6f66a0d49dd57b0e0902090be16594dc9ebfd3d17c47e7", size = 247970, upload-time = "2026-01-26T02:44:56.783Z" }, - { url = "https://files.pythonhosted.org/packages/3e/06/538e58a63ed5cfb0bd4517e346b91da32fde409d839720f664e9a4ae4f9d/multidict-6.7.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:21f830fe223215dffd51f538e78c172ed7c7f60c9b96a2bf05c4848ad49921c3", size = 245060, upload-time = "2026-01-26T02:44:58.195Z" }, - { url = "https://files.pythonhosted.org/packages/b2/2f/d743a3045a97c895d401e9bd29aaa09b94f5cbdf1bd561609e5a6c431c70/multidict-6.7.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:f5dd81c45b05518b9aa4da4aa74e1c93d715efa234fd3e8a179df611cc85e5f4", size = 235888, upload-time = "2026-01-26T02:44:59.57Z" }, - { url = "https://files.pythonhosted.org/packages/38/83/5a325cac191ab28b63c52f14f1131f3b0a55ba3b9aa65a6d0bf2a9b921a0/multidict-6.7.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:eb304767bca2bb92fb9c5bd33cedc95baee5bb5f6c88e63706533a1c06ad08c8", size = 243554, upload-time = "2026-01-26T02:45:01.054Z" }, - { url = "https://files.pythonhosted.org/packages/20/1f/9d2327086bd15da2725ef6aae624208e2ef828ed99892b17f60c344e57ed/multidict-6.7.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:c9035dde0f916702850ef66460bc4239d89d08df4d02023a5926e7446724212c", size = 252341, upload-time = "2026-01-26T02:45:02.484Z" }, - { url = "https://files.pythonhosted.org/packages/e8/2c/2a1aa0280cf579d0f6eed8ee5211c4f1730bd7e06c636ba2ee6aafda302e/multidict-6.7.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:af959b9beeb66c822380f222f0e0a1889331597e81f1ded7f374f3ecb0fd6c52", size = 246391, upload-time = "2026-01-26T02:45:03.862Z" }, - { url = "https://files.pythonhosted.org/packages/e5/03/7ca022ffc36c5a3f6e03b179a5ceb829be9da5783e6fe395f347c0794680/multidict-6.7.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:41f2952231456154ee479651491e94118229844dd7226541788be783be2b5108", size = 243422, upload-time = "2026-01-26T02:45:05.296Z" }, - { url = "https://files.pythonhosted.org/packages/dc/1d/b31650eab6c5778aceed46ba735bd97f7c7d2f54b319fa916c0f96e7805b/multidict-6.7.1-cp313-cp313t-win32.whl", hash = "sha256:df9f19c28adcb40b6aae30bbaa1478c389efd50c28d541d76760199fc1037c32", size = 47770, upload-time = "2026-01-26T02:45:06.754Z" }, - { url = "https://files.pythonhosted.org/packages/ac/5b/2d2d1d522e51285bd61b1e20df8f47ae1a9d80839db0b24ea783b3832832/multidict-6.7.1-cp313-cp313t-win_amd64.whl", hash = "sha256:d54ecf9f301853f2c5e802da559604b3e95bb7a3b01a9c295c6ee591b9882de8", size = 53109, upload-time = "2026-01-26T02:45:08.044Z" }, - { url = "https://files.pythonhosted.org/packages/3d/a3/cc409ba012c83ca024a308516703cf339bdc4b696195644a7215a5164a24/multidict-6.7.1-cp313-cp313t-win_arm64.whl", hash = "sha256:5a37ca18e360377cfda1d62f5f382ff41f2b8c4ccb329ed974cc2e1643440118", size = 45573, upload-time = "2026-01-26T02:45:09.349Z" }, - { url = "https://files.pythonhosted.org/packages/91/cc/db74228a8be41884a567e88a62fd589a913708fcf180d029898c17a9a371/multidict-6.7.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:8f333ec9c5eb1b7105e3b84b53141e66ca05a19a605368c55450b6ba208cb9ee", size = 75190, upload-time = "2026-01-26T02:45:10.651Z" }, - { url = "https://files.pythonhosted.org/packages/d5/22/492f2246bb5b534abd44804292e81eeaf835388901f0c574bac4eeec73c5/multidict-6.7.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a407f13c188f804c759fc6a9f88286a565c242a76b27626594c133b82883b5c2", size = 44486, upload-time = "2026-01-26T02:45:11.938Z" }, - { url = "https://files.pythonhosted.org/packages/f1/4f/733c48f270565d78b4544f2baddc2fb2a245e5a8640254b12c36ac7ac68e/multidict-6.7.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0e161ddf326db5577c3a4cc2d8648f81456e8a20d40415541587a71620d7a7d1", size = 43219, upload-time = "2026-01-26T02:45:14.346Z" }, - { url = "https://files.pythonhosted.org/packages/24/bb/2c0c2287963f4259c85e8bcbba9182ced8d7fca65c780c38e99e61629d11/multidict-6.7.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1e3a8bb24342a8201d178c3b4984c26ba81a577c80d4d525727427460a50c22d", size = 245132, upload-time = "2026-01-26T02:45:15.712Z" }, - { url = "https://files.pythonhosted.org/packages/a7/f9/44d4b3064c65079d2467888794dea218d1601898ac50222ab8a9a8094460/multidict-6.7.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:97231140a50f5d447d3164f994b86a0bed7cd016e2682f8650d6a9158e14fd31", size = 252420, upload-time = "2026-01-26T02:45:17.293Z" }, - { url = "https://files.pythonhosted.org/packages/8b/13/78f7275e73fa17b24c9a51b0bd9d73ba64bb32d0ed51b02a746eb876abe7/multidict-6.7.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6b10359683bd8806a200fd2909e7c8ca3a7b24ec1d8132e483d58e791d881048", size = 233510, upload-time = "2026-01-26T02:45:19.356Z" }, - { url = "https://files.pythonhosted.org/packages/4b/25/8167187f62ae3cbd52da7893f58cb036b47ea3fb67138787c76800158982/multidict-6.7.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:283ddac99f7ac25a4acadbf004cb5ae34480bbeb063520f70ce397b281859362", size = 264094, upload-time = "2026-01-26T02:45:20.834Z" }, - { url = "https://files.pythonhosted.org/packages/a1/e7/69a3a83b7b030cf283fb06ce074a05a02322359783424d7edf0f15fe5022/multidict-6.7.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:538cec1e18c067d0e6103aa9a74f9e832904c957adc260e61cd9d8cf0c3b3d37", size = 260786, upload-time = "2026-01-26T02:45:22.818Z" }, - { url = "https://files.pythonhosted.org/packages/fe/3b/8ec5074bcfc450fe84273713b4b0a0dd47c0249358f5d82eb8104ffe2520/multidict-6.7.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7eee46ccb30ff48a1e35bb818cc90846c6be2b68240e42a78599166722cea709", size = 248483, upload-time = "2026-01-26T02:45:24.368Z" }, - { url = "https://files.pythonhosted.org/packages/48/5a/d5a99e3acbca0e29c5d9cba8f92ceb15dce78bab963b308ae692981e3a5d/multidict-6.7.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:fa263a02f4f2dd2d11a7b1bb4362aa7cb1049f84a9235d31adf63f30143469a0", size = 248403, upload-time = "2026-01-26T02:45:25.982Z" }, - { url = "https://files.pythonhosted.org/packages/35/48/e58cd31f6c7d5102f2a4bf89f96b9cf7e00b6c6f3d04ecc44417c00a5a3c/multidict-6.7.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:2e1425e2f99ec5bd36c15a01b690a1a2456209c5deed58f95469ffb46039ccbb", size = 240315, upload-time = "2026-01-26T02:45:27.487Z" }, - { url = "https://files.pythonhosted.org/packages/94/33/1cd210229559cb90b6786c30676bb0c58249ff42f942765f88793b41fdce/multidict-6.7.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:497394b3239fc6f0e13a78a3e1b61296e72bf1c5f94b4c4eb80b265c37a131cd", size = 245528, upload-time = "2026-01-26T02:45:28.991Z" }, - { url = "https://files.pythonhosted.org/packages/64/f2/6e1107d226278c876c783056b7db43d800bb64c6131cec9c8dfb6903698e/multidict-6.7.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:233b398c29d3f1b9676b4b6f75c518a06fcb2ea0b925119fb2c1bc35c05e1601", size = 258784, upload-time = "2026-01-26T02:45:30.503Z" }, - { url = "https://files.pythonhosted.org/packages/4d/c1/11f664f14d525e4a1b5327a82d4de61a1db604ab34c6603bb3c2cc63ad34/multidict-6.7.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:93b1818e4a6e0930454f0f2af7dfce69307ca03cdcfb3739bf4d91241967b6c1", size = 251980, upload-time = "2026-01-26T02:45:32.603Z" }, - { url = "https://files.pythonhosted.org/packages/e1/9f/75a9ac888121d0c5bbd4ecf4eead45668b1766f6baabfb3b7f66a410e231/multidict-6.7.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f33dc2a3abe9249ea5d8360f969ec7f4142e7ac45ee7014d8f8d5acddf178b7b", size = 243602, upload-time = "2026-01-26T02:45:34.043Z" }, - { url = "https://files.pythonhosted.org/packages/9a/e7/50bf7b004cc8525d80dbbbedfdc7aed3e4c323810890be4413e589074032/multidict-6.7.1-cp314-cp314-win32.whl", hash = "sha256:3ab8b9d8b75aef9df299595d5388b14530839f6422333357af1339443cff777d", size = 40930, upload-time = "2026-01-26T02:45:36.278Z" }, - { url = "https://files.pythonhosted.org/packages/e0/bf/52f25716bbe93745595800f36fb17b73711f14da59ed0bb2eba141bc9f0f/multidict-6.7.1-cp314-cp314-win_amd64.whl", hash = "sha256:5e01429a929600e7dab7b166062d9bb54a5eed752384c7384c968c2afab8f50f", size = 45074, upload-time = "2026-01-26T02:45:37.546Z" }, - { url = "https://files.pythonhosted.org/packages/97/ab/22803b03285fa3a525f48217963da3a65ae40f6a1b6f6cf2768879e208f9/multidict-6.7.1-cp314-cp314-win_arm64.whl", hash = "sha256:4885cb0e817aef5d00a2e8451d4665c1808378dc27c2705f1bf4ef8505c0d2e5", size = 42471, upload-time = "2026-01-26T02:45:38.889Z" }, - { url = "https://files.pythonhosted.org/packages/e0/6d/f9293baa6146ba9507e360ea0292b6422b016907c393e2f63fc40ab7b7b5/multidict-6.7.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0458c978acd8e6ea53c81eefaddbbee9c6c5e591f41b3f5e8e194780fe026581", size = 82401, upload-time = "2026-01-26T02:45:40.254Z" }, - { url = "https://files.pythonhosted.org/packages/7a/68/53b5494738d83558d87c3c71a486504d8373421c3e0dbb6d0db48ad42ee0/multidict-6.7.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:c0abd12629b0af3cf590982c0b413b1e7395cd4ec026f30986818ab95bfaa94a", size = 48143, upload-time = "2026-01-26T02:45:41.635Z" }, - { url = "https://files.pythonhosted.org/packages/37/e8/5284c53310dcdc99ce5d66563f6e5773531a9b9fe9ec7a615e9bc306b05f/multidict-6.7.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:14525a5f61d7d0c94b368a42cff4c9a4e7ba2d52e2672a7b23d84dc86fb02b0c", size = 46507, upload-time = "2026-01-26T02:45:42.99Z" }, - { url = "https://files.pythonhosted.org/packages/e4/fc/6800d0e5b3875568b4083ecf5f310dcf91d86d52573160834fb4bfcf5e4f/multidict-6.7.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:17307b22c217b4cf05033dabefe68255a534d637c6c9b0cc8382718f87be4262", size = 239358, upload-time = "2026-01-26T02:45:44.376Z" }, - { url = "https://files.pythonhosted.org/packages/41/75/4ad0973179361cdf3a113905e6e088173198349131be2b390f9fa4da5fc6/multidict-6.7.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7a7e590ff876a3eaf1c02a4dfe0724b6e69a9e9de6d8f556816f29c496046e59", size = 246884, upload-time = "2026-01-26T02:45:47.167Z" }, - { url = "https://files.pythonhosted.org/packages/c3/9c/095bb28b5da139bd41fb9a5d5caff412584f377914bd8787c2aa98717130/multidict-6.7.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5fa6a95dfee63893d80a34758cd0e0c118a30b8dcb46372bf75106c591b77889", size = 225878, upload-time = "2026-01-26T02:45:48.698Z" }, - { url = "https://files.pythonhosted.org/packages/07/d0/c0a72000243756e8f5a277b6b514fa005f2c73d481b7d9e47cd4568aa2e4/multidict-6.7.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a0543217a6a017692aa6ae5cc39adb75e587af0f3a82288b1492eb73dd6cc2a4", size = 253542, upload-time = "2026-01-26T02:45:50.164Z" }, - { url = "https://files.pythonhosted.org/packages/c0/6b/f69da15289e384ecf2a68837ec8b5ad8c33e973aa18b266f50fe55f24b8c/multidict-6.7.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f99fe611c312b3c1c0ace793f92464d8cd263cc3b26b5721950d977b006b6c4d", size = 252403, upload-time = "2026-01-26T02:45:51.779Z" }, - { url = "https://files.pythonhosted.org/packages/a2/76/b9669547afa5a1a25cd93eaca91c0da1c095b06b6d2d8ec25b713588d3a1/multidict-6.7.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9004d8386d133b7e6135679424c91b0b854d2d164af6ea3f289f8f2761064609", size = 244889, upload-time = "2026-01-26T02:45:53.27Z" }, - { url = "https://files.pythonhosted.org/packages/7e/a9/a50d2669e506dad33cfc45b5d574a205587b7b8a5f426f2fbb2e90882588/multidict-6.7.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e628ef0e6859ffd8273c69412a2465c4be4a9517d07261b33334b5ec6f3c7489", size = 241982, upload-time = "2026-01-26T02:45:54.919Z" }, - { url = "https://files.pythonhosted.org/packages/c5/bb/1609558ad8b456b4827d3c5a5b775c93b87878fd3117ed3db3423dfbce1b/multidict-6.7.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:841189848ba629c3552035a6a7f5bf3b02eb304e9fea7492ca220a8eda6b0e5c", size = 232415, upload-time = "2026-01-26T02:45:56.981Z" }, - { url = "https://files.pythonhosted.org/packages/d8/59/6f61039d2aa9261871e03ab9dc058a550d240f25859b05b67fd70f80d4b3/multidict-6.7.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:ce1bbd7d780bb5a0da032e095c951f7014d6b0a205f8318308140f1a6aba159e", size = 240337, upload-time = "2026-01-26T02:45:58.698Z" }, - { url = "https://files.pythonhosted.org/packages/a1/29/fdc6a43c203890dc2ae9249971ecd0c41deaedfe00d25cb6564b2edd99eb/multidict-6.7.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b26684587228afed0d50cf804cc71062cc9c1cdf55051c4c6345d372947b268c", size = 248788, upload-time = "2026-01-26T02:46:00.862Z" }, - { url = "https://files.pythonhosted.org/packages/a9/14/a153a06101323e4cf086ecee3faadba52ff71633d471f9685c42e3736163/multidict-6.7.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:9f9af11306994335398293f9958071019e3ab95e9a707dc1383a35613f6abcb9", size = 242842, upload-time = "2026-01-26T02:46:02.824Z" }, - { url = "https://files.pythonhosted.org/packages/41/5f/604ae839e64a4a6efc80db94465348d3b328ee955e37acb24badbcd24d83/multidict-6.7.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:b4938326284c4f1224178a560987b6cf8b4d38458b113d9b8c1db1a836e640a2", size = 240237, upload-time = "2026-01-26T02:46:05.898Z" }, - { url = "https://files.pythonhosted.org/packages/5f/60/c3a5187bf66f6fb546ff4ab8fb5a077cbdd832d7b1908d4365c7f74a1917/multidict-6.7.1-cp314-cp314t-win32.whl", hash = "sha256:98655c737850c064a65e006a3df7c997cd3b220be4ec8fe26215760b9697d4d7", size = 48008, upload-time = "2026-01-26T02:46:07.468Z" }, - { url = "https://files.pythonhosted.org/packages/0c/f7/addf1087b860ac60e6f382240f64fb99f8bfb532bb06f7c542b83c29ca61/multidict-6.7.1-cp314-cp314t-win_amd64.whl", hash = "sha256:497bde6223c212ba11d462853cfa4f0ae6ef97465033e7dc9940cdb3ab5b48e5", size = 53542, upload-time = "2026-01-26T02:46:08.809Z" }, - { url = "https://files.pythonhosted.org/packages/4c/81/4629d0aa32302ef7b2ec65c75a728cc5ff4fa410c50096174c1632e70b3e/multidict-6.7.1-cp314-cp314t-win_arm64.whl", hash = "sha256:2bbd113e0d4af5db41d5ebfe9ccaff89de2120578164f86a5d17d5a576d1e5b2", size = 44719, upload-time = "2026-01-26T02:46:11.146Z" }, - { url = "https://files.pythonhosted.org/packages/81/08/7036c080d7117f28a4af526d794aab6a84463126db031b007717c1a6676e/multidict-6.7.1-py3-none-any.whl", hash = "sha256:55d97cc6dae627efa6a6e548885712d4864b81110ac76fa4e534c03819fa4a56", size = 12319, upload-time = "2026-01-26T02:46:44.004Z" }, +version = "6.9.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d6/99/1d4d69c3512d0ddbfa3a1b69cfd9a151012ab2eb4eabbb096201b1f0b7d8/multidict-6.9.1.tar.gz", hash = "sha256:0f06e60fa190aa7abd0914c2a766736fdc8e9f34878c4346338534b73d1b20e2", size = 182404, upload-time = "2026-09-21T17:59:05.362Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e3/24/3823efc330630a1f132bcd0a9b182ddec3c53f452f551c8e8d3aaf5a2d20/multidict-6.9.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:910d4260512660484c0dc1588a316fbb35a40c081c36fc51d1225351af17cfe4", size = 96739, upload-time = "2026-09-21T17:54:42.815Z" }, + { url = "https://files.pythonhosted.org/packages/6a/69/36331fe1d3aeb0c525a9972d6cf82791075a395aa96f026f060009d691ae/multidict-6.9.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:33fa55b990f81c2927e01399ace0d18926c69d69baa8cdaa819424132fb97987", size = 58514, upload-time = "2026-09-21T17:54:44.064Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ca/5860651f782078ef13f2761c2593f4ba066d76f626b2f30f23a7f838b775/multidict-6.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:369b5aa01b241cd3fea6890bdbb11a1425d87bf1515831500d518f4223e9d72c", size = 57303, upload-time = "2026-09-21T17:54:45.304Z" }, + { url = "https://files.pythonhosted.org/packages/c7/9f/c56e2fa223cb5d182660e1a09eec38880f96b7cd22769582f74447c60418/multidict-6.9.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:803f8b575a71b1b299d677c28db0653459c79b5308874efec813f17b7457c7f1", size = 320076, upload-time = "2026-09-21T17:54:46.826Z" }, + { url = "https://files.pythonhosted.org/packages/59/97/eda4fe0cad51f96096363ed32d3e0f8df28dab00beff4d92adc9db517726/multidict-6.9.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b8a65621b98984a62e59403009591b8a5a7736273aefe1cab64cfb85b365cc07", size = 315489, upload-time = "2026-09-21T17:54:48.25Z" }, + { url = "https://files.pythonhosted.org/packages/24/14/10b1ded0a4085a51c3054125f854da4f47ce4fec724a2d2503231b83f3db/multidict-6.9.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:13849a1d4f54c3809ae721e9e83ab28f5ea602f33660cb84eb6ef261eac706c1", size = 296716, upload-time = "2026-09-21T17:54:49.749Z" }, + { url = "https://files.pythonhosted.org/packages/dc/14/04d155dd18528443cb9009f3a9f35f7417773797d072c95104ff17b8b9b7/multidict-6.9.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:dd9a137a4a9becda3094f3831cd026380f75f6855e051eefe4c73ade524f1cc3", size = 330244, upload-time = "2026-09-21T17:54:51.26Z" }, + { url = "https://files.pythonhosted.org/packages/8b/90/284d10b3a9e5b312a8ec5b7a175fc7d560eefdc99886320449891a197992/multidict-6.9.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9ae9614c317c50836689ce2dfde07c05fe0b16378562e2221746c3913ede3c80", size = 331288, upload-time = "2026-09-21T17:54:52.595Z" }, + { url = "https://files.pythonhosted.org/packages/27/50/f420de3683f9b047fc5588064d84043ef57a7152ef451b8373dfc7068d22/multidict-6.9.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e8f1e362c9352b50ed120f001046fdbb80810c9d56580f4c3fc13bbe30823387", size = 320663, upload-time = "2026-09-21T17:54:53.91Z" }, + { url = "https://files.pythonhosted.org/packages/01/ab/0120a650d7ce4fe167299c13a13cc4ee2dc72458a9c0e9e9330b824b73c9/multidict-6.9.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0dd655518f136febd96c05131a76a863e32fc2a1d7acd4e3c959e3ceb77d8345", size = 291139, upload-time = "2026-09-21T17:54:55.313Z" }, + { url = "https://files.pythonhosted.org/packages/b3/3f/c66342f73ee5cd2c9b1dda6cfce89b5f348c48921b8c8b6e59aafbbfe31a/multidict-6.9.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:2c5d675da8f1cb5650271c8ad5e95c0a3e5a183c105e72d953b12877b1c8d0fd", size = 310044, upload-time = "2026-09-21T17:54:56.745Z" }, + { url = "https://files.pythonhosted.org/packages/05/0d/e44b90d9e77e44ec3473c4c7ac7ea95764d7e8fbf6d5a085ef9bff7ce0c2/multidict-6.9.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:658f90f49cf5af2441cad0a2b801c3ef520471989a1ec55bcb25b255b2ca8d2f", size = 303279, upload-time = "2026-09-21T17:54:58.178Z" }, + { url = "https://files.pythonhosted.org/packages/97/8a/7741f7c23c211fae31ab546f0ba41569dae7671cf7ca30d5afb59e9d92aa/multidict-6.9.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:43124fe172ada86d03ac3c8dc8179091341f6724d5e5d5b160e1587e4cd3761b", size = 326177, upload-time = "2026-09-21T17:54:59.825Z" }, + { url = "https://files.pythonhosted.org/packages/e8/63/0cdbfbbe36316b2ef4b8e011afaca2cf291a73fe4fabf34dd0b22e3ee48a/multidict-6.9.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:b2f0adc22a4eb31e545221d93fc73a0f6a8cc2379d0f4309f71d1d17ba938b82", size = 323526, upload-time = "2026-09-21T17:55:01.43Z" }, + { url = "https://files.pythonhosted.org/packages/98/05/0c86e9678e78f4596df0ed7f59d2aa755107da3f2a92f1b7fa150e94cbb8/multidict-6.9.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7fc59e9ba821b220944ccfe0f89c9dc4745f6d097569992356eb03869f21e953", size = 290278, upload-time = "2026-09-21T17:55:02.993Z" }, + { url = "https://files.pythonhosted.org/packages/95/8e/71bd7f43c4883cba6c5f96db88bd2311d52e74ad7680be5915938490d56f/multidict-6.9.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:87cc632c88ee5dc80e12681047839304d98ee5c9a708d686505767001c9b8b9a", size = 321142, upload-time = "2026-09-21T17:55:04.48Z" }, + { url = "https://files.pythonhosted.org/packages/2d/00/bf59d6bb22a4c152e4039574c29490caf3c65107715121807b4bd7cde244/multidict-6.9.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b828cf64d62dc09ac183f03c1aeedd164ade96a2ce4934109452edf29de1dd13", size = 319045, upload-time = "2026-09-21T17:55:06.119Z" }, + { url = "https://files.pythonhosted.org/packages/3a/3c/f27f4f045198bf1c4bcd6eb3b6cf06be2dceaceb6e67222b903fce7a6749/multidict-6.9.1-cp311-cp311-win32.whl", hash = "sha256:2c1aeb92eea59d824f004341b26d5e4b47a8a441cf9726769b9a90abf9d0e08f", size = 51309, upload-time = "2026-09-21T17:55:07.531Z" }, + { url = "https://files.pythonhosted.org/packages/91/17/c2064aef64efc007bc89a571f843e5772f27946eb9bc018731bf8016e319/multidict-6.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:5f89dad732280e7a10b74d40b91364f88e13c3f2c08c2ef83a8cd42f7a61af2e", size = 59148, upload-time = "2026-09-21T17:55:08.936Z" }, + { url = "https://files.pythonhosted.org/packages/45/a1/3bab1827edd813dfb90712af5cbb7fc1473ed4d9c871d103df4f4bb950c2/multidict-6.9.1-cp311-cp311-win_arm64.whl", hash = "sha256:5800368526647146978389dfaa46da3356291e9f0fff9a4ef12e8c2bef964a0d", size = 54258, upload-time = "2026-09-21T17:55:10.191Z" }, + { url = "https://files.pythonhosted.org/packages/d9/0d/4b5afb6d3e545c9af0cdfe2db8f6f4c6664568c23d863d888674e447e6a4/multidict-6.9.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:29138fef49828542e859828107e42e50d0e587c513b7eb4b2d92bade2b0860fe", size = 98360, upload-time = "2026-09-21T17:55:11.508Z" }, + { url = "https://files.pythonhosted.org/packages/89/ab/1b9ca66251899981b21138b87da9d5a9c2c81af12b1ea7d19466972f7fe2/multidict-6.9.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:19e31815d41cefc365489e591d105d2baceb2f65aa75d29471fbdbda8651e006", size = 59979, upload-time = "2026-09-21T17:55:12.866Z" }, + { url = "https://files.pythonhosted.org/packages/36/eb/6ae44062466c26c8469ef43f2481a6a48d8cea0587b2d54514ec92e2adfd/multidict-6.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6ed30be8918e18c8bed0a2e8b70639ecf02feb61ed00ca2e41cfcb2a50fa3f42", size = 57736, upload-time = "2026-09-21T17:55:14.223Z" }, + { url = "https://files.pythonhosted.org/packages/b9/5c/a67817593019257a4ac8b0d1b4c426030e637c047b0692ef405439ecea7a/multidict-6.9.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:637f4ae36264bd7b8d9a60193acddc1d735ad52e8ed53a19931ea6d921fea8e5", size = 333097, upload-time = "2026-09-21T17:55:15.591Z" }, + { url = "https://files.pythonhosted.org/packages/90/bf/599ae2e6222822d88a247a8a7ae82fe6fd25d5700757b79603d5edafe6a0/multidict-6.9.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35fc236507fb1b3138f0af5ecd5f94ed752d4d6d826248eae425f86204013eea", size = 334196, upload-time = "2026-09-21T17:55:17.015Z" }, + { url = "https://files.pythonhosted.org/packages/15/10/d8aac5acacbe7f5c117866c776ec26d5f15a868759b6f37ad8e7ed3b5b02/multidict-6.9.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e58952f04772f59f11c6e007471449809a30165188669bca8fdb19dde40a8f24", size = 317465, upload-time = "2026-09-21T17:55:18.412Z" }, + { url = "https://files.pythonhosted.org/packages/19/0a/714f796f7293a8b1c5c3f465a26996231d5450c54e85d64ef1258c091134/multidict-6.9.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d35a4f1c63f07fbb8c8f9946dea98b21eddf6c57421585f71d91864be3ba2a24", size = 345914, upload-time = "2026-09-21T17:55:20.306Z" }, + { url = "https://files.pythonhosted.org/packages/da/b1/e37fbf769c567be277bcf32df6234035a4384677fcc1bd852752be3d6b93/multidict-6.9.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b5f8771aaaed7f80e84a4e471d2f29ab6721e4595075e54d03ae1ed951b2000a", size = 351163, upload-time = "2026-09-21T17:55:22.21Z" }, + { url = "https://files.pythonhosted.org/packages/ed/5b/db08419c1e1f7c9d60cfd2787b2b517d7ae4ebbda8281b48a33eb5141467/multidict-6.9.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:976fd7689d69ec78d67d31d38d396d8adb562f7e8368279f76aed4aa451fa06d", size = 336881, upload-time = "2026-09-21T17:55:23.699Z" }, + { url = "https://files.pythonhosted.org/packages/9b/07/cc9bc8a62651d2d53ab93ee4993b3a71b7cb78eb8ebfc9c757a5b6698617/multidict-6.9.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:95052e8777a86bae87c0bd0b5ab22d809e3d1d02bf69e3e66ddda5ba75a05805", size = 303405, upload-time = "2026-09-21T17:55:25.305Z" }, + { url = "https://files.pythonhosted.org/packages/b6/0c/8e912afafa70e944dbb8bec4b66ca6e008511395278c0d3dd0e89567536a/multidict-6.9.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1a8adfcaf96f587ab138476eaddef95f29b8a2a8a9afbfea8d2fd62180995d02", size = 324265, upload-time = "2026-09-21T17:55:26.989Z" }, + { url = "https://files.pythonhosted.org/packages/66/6a/62c2af80fb085e6234805017af857b8e913dfac7a55e9c1349c27768c58a/multidict-6.9.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:1a53de2772cfb74559df2eb4456ec4eeb908435ec55a84b69370d9d745d62aa8", size = 322085, upload-time = "2026-09-21T17:55:28.732Z" }, + { url = "https://files.pythonhosted.org/packages/f8/6b/35bf801b336fd960811207203ffdcdc24acc3558b3e7ff2e1c914b141e70/multidict-6.9.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f2ce963299d42fa3f22a90adc0fdf174792ffef5ff4c7ffb68260548fb05580", size = 338107, upload-time = "2026-09-21T17:55:30.303Z" }, + { url = "https://files.pythonhosted.org/packages/80/41/495ef65bf5bba29d142d81b3fe1b8154b919bed70e96491b1e93c3c26f0f/multidict-6.9.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5b30ddf7234e611ca877575b62840e6af5977f92f1f9d532eedbb05a44ff8004", size = 339631, upload-time = "2026-09-21T17:55:32.012Z" }, + { url = "https://files.pythonhosted.org/packages/19/bd/057fdff5f4e04dcd40a960e38f77d19d3c4b67dd243ffa5f43718edb29fc/multidict-6.9.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:63ada7ee2e9345695f9e9bc4c65d72222253f07b1ac94fd0e37555cc6f3c7f60", size = 302080, upload-time = "2026-09-21T17:55:33.817Z" }, + { url = "https://files.pythonhosted.org/packages/3f/de/9ace933ee8dad808632523726f42255b09600087219e3d4ead7369820910/multidict-6.9.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:3c95601ed98fad3f6e2f8fe809c3b526b0fab31ef525e00a155e227f3d17f58a", size = 341107, upload-time = "2026-09-21T17:55:35.471Z" }, + { url = "https://files.pythonhosted.org/packages/d8/ac/7c1204406097bfc5c283d4a3287d61166807d189917567df4c1318484fc4/multidict-6.9.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c148e8b596000dd3e4bfe206e70f3e666be18d72032e0012555f2373c52e35d6", size = 333482, upload-time = "2026-09-21T17:55:37.002Z" }, + { url = "https://files.pythonhosted.org/packages/ff/c0/a70c32ea3299ebe00f44533740cb46905717c51faf29bbd3ce8bb5886d9d/multidict-6.9.1-cp312-cp312-win32.whl", hash = "sha256:f9dad513626a33670f17cddc6078e30e311f444c957e8dbfc5b2b4603c8b4edb", size = 52548, upload-time = "2026-09-21T17:55:38.529Z" }, + { url = "https://files.pythonhosted.org/packages/d7/2e/8c9c2591df01e5692ad1bf92febb082a17b1c6c3a19aa8b7ff49988fd989/multidict-6.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:a16a1dc8529f9e734a41c3b856f3eae7ebacdc061dde3f8a844e0c7889c97203", size = 59622, upload-time = "2026-09-21T17:55:39.86Z" }, + { url = "https://files.pythonhosted.org/packages/d0/95/59f4472ec512bc180fd207899594c7803ece96262ff9aaa3a4b6d7da6940/multidict-6.9.1-cp312-cp312-win_arm64.whl", hash = "sha256:361f7206cf341ba94fb015688f5c8b480f8e63bd58a4c14a48aeca7851a241cc", size = 54930, upload-time = "2026-09-21T17:55:41.155Z" }, + { url = "https://files.pythonhosted.org/packages/eb/45/ddf7c76860f5f553a23ad3ca38463ccf5247081618977742c8dc4625355e/multidict-6.9.1-cp313-cp313-android_24_x86_64.whl", hash = "sha256:d7bf9e43282d69561618e8a0ea33368d532ebef42f15c096f427090521dd74f3", size = 63266, upload-time = "2026-09-21T17:55:42.676Z" }, + { url = "https://files.pythonhosted.org/packages/6d/d3/f4ae5945ea2de597eaeb4eca3a74c59783ace54482c9b49435442b63efa8/multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:03d47df72f084f757c1cb771188d5f4e3a805e4abc4d67e32509272343ae9382", size = 55771, upload-time = "2026-09-21T17:55:44.016Z" }, + { url = "https://files.pythonhosted.org/packages/93/7d/15468239920040d01c686e5ae669e6382f7bf31fc3e5e0a6b8f1c3b32d3b/multidict-6.9.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:6bc94fe17c3c56e5418f79515b786b101845f70609b0d19d0c1ba13448e5633a", size = 57116, upload-time = "2026-09-21T17:55:45.315Z" }, + { url = "https://files.pythonhosted.org/packages/17/1b/b958f06aac2d8b1e485eb1c105b1b159cbf3868249e5142142451577dad2/multidict-6.9.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8f2973bbd2bebd9d2e0cd6394c1292a1a19ccd56bdcbe1e174059f1a39be5b40", size = 97692, upload-time = "2026-09-21T17:55:46.674Z" }, + { url = "https://files.pythonhosted.org/packages/93/6c/d6cfe18e61010166d7237d7527c775eb9843e7078feadea45b7628751b60/multidict-6.9.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:de7738b8c0bb74c4cc16bbd7fb49fc2bcf6430dba11b3432cd52768ae40933e8", size = 59556, upload-time = "2026-09-21T17:55:48.22Z" }, + { url = "https://files.pythonhosted.org/packages/46/46/9b4c1127cece0289fb207d04aae5116382ddfcb2a4dc8e0cb49a33f3c7b3/multidict-6.9.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e5ccad4b7bac125722f48d6f862bed3b514d8526deea06316bb72f152cd30a7c", size = 57357, upload-time = "2026-09-21T17:55:49.998Z" }, + { url = "https://files.pythonhosted.org/packages/bc/fc/c18b07100a6064573e49e538d13d47eb2b5221f48080512df78aef54ab04/multidict-6.9.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:a49ff5cdb33654cb7d6a3c377aa2a83ddefaa1db31eb10bcf3c180aa84f9af8a", size = 330433, upload-time = "2026-09-21T17:55:51.435Z" }, + { url = "https://files.pythonhosted.org/packages/62/ff/52a0082adeb69656b634609d4fb0ae65456deaae4cca3d5a12656626dc50/multidict-6.9.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b22ff30006a2f28f8bff878fb93413cbe3a4d1fd517c28081d848c90e9cfd2c8", size = 332487, upload-time = "2026-09-21T17:55:52.937Z" }, + { url = "https://files.pythonhosted.org/packages/39/3e/80bd4729635a7af371ff4dcc312594cf96e73f98854491be8740792de430/multidict-6.9.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3adf06c66041aa21eeb8a71e82379b74773298c8e6d3d839b151aae441a99b94", size = 316911, upload-time = "2026-09-21T17:55:54.751Z" }, + { url = "https://files.pythonhosted.org/packages/15/f4/7ea4a907e053e924e2e1694d90560f79f72056504bfd5e8483695f9527d2/multidict-6.9.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:963a8d8f97057082679523d0fd4c53a38f86bc58cabe4556faef682ae53fa2fa", size = 344950, upload-time = "2026-09-21T17:55:56.5Z" }, + { url = "https://files.pythonhosted.org/packages/0d/16/9642ae41fbfbdc546aa481c2b07ae1bc087a94ab5f5020b4d9ab77da401f/multidict-6.9.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b66ccc5c2cdd26e74fa5d4c29ffae424cc6148bf93ce574821783fb3b6d452c5", size = 350264, upload-time = "2026-09-21T17:55:58.073Z" }, + { url = "https://files.pythonhosted.org/packages/93/f2/e06c8e42074d0a4b8419bfe92afbd1d262190b69549ecbcd2dffa4f103c2/multidict-6.9.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7fd79c521f6290c69125fa2b85fa65d9e657e6a8ffaf722dc881b926bef4aa5c", size = 336213, upload-time = "2026-09-21T17:55:59.723Z" }, + { url = "https://files.pythonhosted.org/packages/98/43/d7cf9ef4700e7c25244590d1b4f20cf12cbed86beba6c17be4d9e48c1099/multidict-6.9.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1d804e4caf5d5da37d6dac1325da5629ebef1e27a294c2b568b295814aa36c7b", size = 302555, upload-time = "2026-09-21T17:56:01.666Z" }, + { url = "https://files.pythonhosted.org/packages/7d/3a/54209920324bc3928f5f2ba28b01a6dd957a9d48c3aaff77e38faaf5668d/multidict-6.9.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bb0d664505f4b112f384cffeee82e91e3f6448d8e574989479db4439b68cba05", size = 322247, upload-time = "2026-09-21T17:56:03.265Z" }, + { url = "https://files.pythonhosted.org/packages/33/50/df96f961b178b621ab0adbf9221d4fd21534e1064fd9f5e85c1fa27fea55/multidict-6.9.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:9e14d17773b1b3c758ff153659a1824608a0cb562c45f484b5ed8a433428444a", size = 321787, upload-time = "2026-09-21T17:56:04.894Z" }, + { url = "https://files.pythonhosted.org/packages/a7/9b/37f354562a8f82f9c1f63d3a94300fc82126d50320175f0702bbd544f87c/multidict-6.9.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:083735b7f395894e43adb278d5dae901448883a835ff8f1977e285fefdb10418", size = 335498, upload-time = "2026-09-21T17:56:06.783Z" }, + { url = "https://files.pythonhosted.org/packages/1e/44/78e366efc6c004185295cc9eb9711c10f13eadf3b547603b9c5526329976/multidict-6.9.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:b65121091567847a8cb520d364ab22ba90e00d3cc55fa9eb34bb439f0684bcd1", size = 338244, upload-time = "2026-09-21T17:56:09.162Z" }, + { url = "https://files.pythonhosted.org/packages/ad/2b/ab5bd3964691abe4d14b43bdbdb8a621b77cea2ca352dc93159ec0a4575b/multidict-6.9.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:ea999ae6e80e66ad5eea287860951b033d0104ca34d6d87c7b5125ebe0e12721", size = 301641, upload-time = "2026-09-21T17:56:11.227Z" }, + { url = "https://files.pythonhosted.org/packages/ea/a8/f6bc899f5aafaba755edc8e4bb934bc00b1e405f8d3fbc1dd10283738074/multidict-6.9.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:095d900c242e00fbe5f321ee072e7278b4153e78c5ce9c1efde167d62c1e4771", size = 340162, upload-time = "2026-09-21T17:56:13.076Z" }, + { url = "https://files.pythonhosted.org/packages/eb/03/a8fc809ef364b8c231c065ea2ea2f97ae86d4f9a0e36b5721759fd606778/multidict-6.9.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6441cc837aea58be7d9baef1b2383eb8311ab9303f500f99ac90b584cd78bb14", size = 332826, upload-time = "2026-09-21T17:56:15.175Z" }, + { url = "https://files.pythonhosted.org/packages/f2/27/32dde80245e2024e9bb7a6ca3c2fb7c695dc74014cba557cc35be6f91e24/multidict-6.9.1-cp313-cp313-win32.whl", hash = "sha256:9c4880d017555d70dea367dd49271830842d48e3891c2da97da7ce8c4abcee40", size = 52378, upload-time = "2026-09-21T17:56:16.959Z" }, + { url = "https://files.pythonhosted.org/packages/be/78/1bac2987edac273a6b27fa50e9204bc3466c94a7b4f6a44828d730f8810f/multidict-6.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:ac51cd64bae51c462ea58ad2492c9b8209667a4ef60c45c4a304518b67598d5d", size = 59449, upload-time = "2026-09-21T17:56:18.336Z" }, + { url = "https://files.pythonhosted.org/packages/e1/32/2a77ce19eea48cb9b3521a202b513ba3349aafa702c8317be0b645ffb74b/multidict-6.9.1-cp313-cp313-win_arm64.whl", hash = "sha256:37a9ebe00c698279213d56e6c64e1962ab1e092918270649b397cac3dc196ca4", size = 54713, upload-time = "2026-09-21T17:56:19.774Z" }, + { url = "https://files.pythonhosted.org/packages/ec/0f/c6041015aa2cdc11e1dff0cae58898ae5525d19e35efd65a4ecf3c6ea235/multidict-6.9.1-cp314-cp314-android_24_x86_64.whl", hash = "sha256:fc0dcb22fa9aeabfe3fa4e0430099acff985ec5d77a851382f76cc6146e780e5", size = 62336, upload-time = "2026-09-21T17:56:21.181Z" }, + { url = "https://files.pythonhosted.org/packages/23/db/95bd0afb130a0149c955f1f066143528d60864e64f41ff5a1e1313609361/multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:024123f0ab402ab33828e24eb80fa8f25167d0d3783ba5f287e39ed741e6abf9", size = 54892, upload-time = "2026-09-21T17:56:22.63Z" }, + { url = "https://files.pythonhosted.org/packages/94/cc/8aa34ae8d09498e8da003f485c03371b55cf1bc6d56cff861b3a7de61251/multidict-6.9.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:af1b5a92315048c3e36bbebfa7d4760a9c3e910bc4166f11b20d77d20d6bcfca", size = 56251, upload-time = "2026-09-21T17:56:24.36Z" }, + { url = "https://files.pythonhosted.org/packages/52/48/22baa3b95375096369b04c4348af14139570f302f951773d2c68bf0ccf2e/multidict-6.9.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b2483da477932ad1983d1d33c18bc3771c6fb00cfbaaed70a875fd547ef8e840", size = 96345, upload-time = "2026-09-21T17:56:25.777Z" }, + { url = "https://files.pythonhosted.org/packages/2f/3e/b96779dcac28ec6d491fd821112a0156b519b6701bba186cdf6f6df737f4/multidict-6.9.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:db4d697b18b6ef5528b1f36bfa25072cd2a421869f5963bc0e92c8a34b9e2800", size = 58901, upload-time = "2026-09-21T17:56:27.364Z" }, + { url = "https://files.pythonhosted.org/packages/f9/b4/8e6d950f02ca6ecc00ecf671f2ddb5dab7017671a8d197326f75621f5786/multidict-6.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:854fd2f1bc6e8a56b89910b5cd7261a8b40f13ebb31572da985ce59c7da0886d", size = 56491, upload-time = "2026-09-21T17:56:28.901Z" }, + { url = "https://files.pythonhosted.org/packages/ed/8f/212ed7e03282c7bc271e3796bf985b53d5727c2827361e3dd9c5ee6b093f/multidict-6.9.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:03731f6fc036180700c9dc2308205a48e5ca6f3ff03087739ab746f294022201", size = 332297, upload-time = "2026-09-21T17:56:30.495Z" }, + { url = "https://files.pythonhosted.org/packages/a0/97/555aab000e03ecba85c0a1837fd5674d8bf10949490df7800da3a40660ce/multidict-6.9.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:989261c5f1735a165f2e4e87cf6d5f17ab734fa18f9ad0383d5adfcdaefce701", size = 329197, upload-time = "2026-09-21T17:56:32.652Z" }, + { url = "https://files.pythonhosted.org/packages/3d/25/f3539b5bdc147beba66015795dfe589eedcc580348fb1a8c69b1df4196b5/multidict-6.9.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b4c9e5d05b126b267ac048a89a0e2d9b48b1b648add62d4872906304a8590610", size = 308456, upload-time = "2026-09-21T17:56:34.657Z" }, + { url = "https://files.pythonhosted.org/packages/1e/7d/4665cad8fc326787d218879be879d86dfe32f006c1f88ae47b04d3b52fd5/multidict-6.9.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9d0a21cf76153de8f2d96a877991d6bc59b9ab5180b949e50db73cc193b4a694", size = 343382, upload-time = "2026-09-21T17:56:36.606Z" }, + { url = "https://files.pythonhosted.org/packages/41/01/e1e9abe27f492b22dede492bc423015597412b14ce074f7475f4ecd80185/multidict-6.9.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e7386aa18d98d6b8af44b92173654ec469237fda35f8e8523e43b581a86f476a", size = 346848, upload-time = "2026-09-21T17:56:38.344Z" }, + { url = "https://files.pythonhosted.org/packages/f8/e5/8d54118bc228e64e1087f1729647b93bbea225eda4a3f914663a6f410bca/multidict-6.9.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b69651732c64afb691e50cdc3387cae305e0eeff8804fe3e3ce203876494932a", size = 333612, upload-time = "2026-09-21T17:56:40.041Z" }, + { url = "https://files.pythonhosted.org/packages/76/e1/9509dafc1fc68948e75842a74533ddfa64af57f2b17810e9cacfa68a829b/multidict-6.9.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1fee9a16d88a1c4865610de31ef5c666671020d7a81d1f510eaf3c97d00ebeba", size = 304246, upload-time = "2026-09-21T17:56:42.313Z" }, + { url = "https://files.pythonhosted.org/packages/1d/b6/96b93808e1bec0b51d49d89859e49b82a94f7b2e58eca0fc44ffcafd3ae5/multidict-6.9.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7814bbee202acd3bd240204c17d8b87a4c48c81064fd8674dbe527d94d5a4290", size = 321983, upload-time = "2026-09-21T17:56:44.399Z" }, + { url = "https://files.pythonhosted.org/packages/d9/1c/08e5184df026b9d8e05a6dce5da22628e46bc4a7c7f03b8bf3c6939a8c46/multidict-6.9.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:95f273bea318a194f656527ee2ed19494327bc500b8e87d9358e3222579aa28d", size = 315927, upload-time = "2026-09-21T17:56:46.208Z" }, + { url = "https://files.pythonhosted.org/packages/d7/5d/9ff39e7387f6fcc9a81af5dbf055fde08149849a04f8df10ca5b086b0d39/multidict-6.9.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:73bcafa21a78d0776b3ee7cd2a63c66f968eb7db8e8d594e32d7329950f6e828", size = 336827, upload-time = "2026-09-21T17:56:48.021Z" }, + { url = "https://files.pythonhosted.org/packages/5a/be/30fbb2cab22203128928066de94be247dc9a3230bf2bfc54437ac3b5f9f7/multidict-6.9.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1a938761c77e0e6edb0c93d02f4e988d44a69e5195e5a3b893e5553311347132", size = 336317, upload-time = "2026-09-21T17:56:49.778Z" }, + { url = "https://files.pythonhosted.org/packages/bf/f0/2480aef6b7d8e7ab89b064ae14f12ec069570dab3a5c13e0155912293247/multidict-6.9.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:37245ca4105386194dd1d292a6f2aae09bfe1bd7ac6f9ec25093e3cf8e9b143b", size = 303258, upload-time = "2026-09-21T17:56:51.829Z" }, + { url = "https://files.pythonhosted.org/packages/4c/04/dbe59cf4ea3778600e8e70e30b31aa9118ad6da2844bc9f717804cbaa000/multidict-6.9.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:f0700527dd5bfa8b7204b08330542f4f388899d3c14d885d8a368992e0eb562d", size = 337232, upload-time = "2026-09-21T17:56:53.537Z" }, + { url = "https://files.pythonhosted.org/packages/f4/8c/abe55548f06f12878588f08eb803c5a391283f01243f784cb00adac79231/multidict-6.9.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6b7e54fd883671d1a8810704851c044b7173287c552b9f5c3d9e0eb9f00ae194", size = 330261, upload-time = "2026-09-21T17:56:55.335Z" }, + { url = "https://files.pythonhosted.org/packages/d0/f1/ba67f668478f152bdfa18abe72e7588bd078bf8b42c172fcf542fcf45826/multidict-6.9.1-cp314-cp314-win32.whl", hash = "sha256:e81ae656b9935ac4528a71f96bb7a14d949778ed1897c573d3e7ebb9187f8841", size = 51715, upload-time = "2026-09-21T17:56:57.048Z" }, + { url = "https://files.pythonhosted.org/packages/33/81/014bb2128aedc8157d2848f0ec8a0209c6b822fb88deea012834e1c4a4e8/multidict-6.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:acddcac38adc8342ba48aba98896faa7928854bebb62542362138655b5367ee3", size = 58621, upload-time = "2026-09-21T17:56:58.531Z" }, + { url = "https://files.pythonhosted.org/packages/66/34/8f43c03c2d8821a2320b8c560d8a49d0be2920627edfac3f546922f91969/multidict-6.9.1-cp314-cp314-win_arm64.whl", hash = "sha256:32217133dddc58c927805cf6c0731d8144584176b768042ee886d51e71860bc9", size = 53959, upload-time = "2026-09-21T17:57:00.15Z" }, + { url = "https://files.pythonhosted.org/packages/08/64/4f2a5eeea10b6d42634ba168ec6efc732ef218772e57b8239cd485c202f6/multidict-6.9.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0b2fb8c349d1103863750b5d8cb5ace766917f4b35f3d883c8f778853eaa9f76", size = 107694, upload-time = "2026-09-21T17:57:01.785Z" }, + { url = "https://files.pythonhosted.org/packages/32/ce/c68d08ac2096c1528ff20d77fd10f7e401db3e534ac5a1c7726e36a77c2f/multidict-6.9.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:56d834b74c993a7d7cb2b8ab33a0d55c3e0d4a3d2f2da2808a4ad3d79189711b", size = 64766, upload-time = "2026-09-21T17:57:03.52Z" }, + { url = "https://files.pythonhosted.org/packages/3a/9a/9f5c270c88fe289b4876fe28f9932a70e015a7916aff1e5b0325f7597b11/multidict-6.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:783ba7d845d79ce976afd9c1e91a4e5714671defa198ee789e8b23316083a485", size = 62723, upload-time = "2026-09-21T17:57:05.104Z" }, + { url = "https://files.pythonhosted.org/packages/7c/63/c9a0b131354dd949426166cef712d708f436a8cf261114f8d5d2aec440ca/multidict-6.9.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:4d718fa1b5f0d0dd75e86fbbc5b0c93ea3a5d65216c85c61cd5d7cdddfe08455", size = 290445, upload-time = "2026-09-21T17:57:06.687Z" }, + { url = "https://files.pythonhosted.org/packages/9d/41/ed27d1d20ba91f4e13e8f7dcfaa592614ae0e1d5f45e03171d23c3b098ac/multidict-6.9.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a313bad717dde740959d50850c315b75fd4eb0c5e6b4dc8535db0f1c369be125", size = 304375, upload-time = "2026-09-21T17:57:08.717Z" }, + { url = "https://files.pythonhosted.org/packages/66/6f/a7b26167173c3b73d6e5ebb0856c5154ad005156c3a2fa4062329921819c/multidict-6.9.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ef01d29fca550ab871fd99154f82c6472aacf8e7def272dfb07b460123850390", size = 281746, upload-time = "2026-09-21T17:57:10.713Z" }, + { url = "https://files.pythonhosted.org/packages/34/1d/da27bdd49b0cb84263288f5f48dbd915f2d17fd228fee2078ca607e80277/multidict-6.9.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0f3bd290711c6e9486173a6ee7cd4e7f00c3971c7908c1ec1b6e5437c5e4c6f9", size = 311499, upload-time = "2026-09-21T17:57:12.467Z" }, + { url = "https://files.pythonhosted.org/packages/d0/36/ab0299a7abf53e38ff75d96c64480f1e2ff8edde985f93f7a1ad5e08bd94/multidict-6.9.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:81cdc537e0a42e3c0170752fcadbe450246d5c3b4b7231d6eb9672456605ac94", size = 313553, upload-time = "2026-09-21T17:57:14.548Z" }, + { url = "https://files.pythonhosted.org/packages/5a/44/e21be702efc9c9ba097c8be874c68860b1cb6cf9c85611263039bf95b37e/multidict-6.9.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8b193bf7a443c97d81c47052f60c486071a4bdef4a573fa2514f920089414d45", size = 299898, upload-time = "2026-09-21T17:57:16.192Z" }, + { url = "https://files.pythonhosted.org/packages/00/8d/e93bc0dc947c7f872e502cfaa7ad9d98f001e1c93cfa6f4940457a6e187a/multidict-6.9.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7a0c98f6a636adf0d7edd60c61589eaf52d149239af754d0bfeb0effedba53a8", size = 273054, upload-time = "2026-09-21T17:57:17.793Z" }, + { url = "https://files.pythonhosted.org/packages/5e/c9/945b44493fbe7af26ffe1e43c506b376daeab070fc1a0923bef9bbf572eb/multidict-6.9.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6e6b7e3a1520c39a2772f414cd9ddf5995f77e4e823dfa1522af383addd465a3", size = 294751, upload-time = "2026-09-21T17:57:19.631Z" }, + { url = "https://files.pythonhosted.org/packages/24/79/0969a9b38b814e5fa3af1b0a57708c49b3d9b3d55c208bac6e98b87bb028/multidict-6.9.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:ca65cced0d67a9039e93bcd98a369920e499bf98296844ff56ead01c9085321f", size = 284523, upload-time = "2026-09-21T17:57:21.313Z" }, + { url = "https://files.pythonhosted.org/packages/1d/1e/c32ddf53234c228b1a374ddabca19f542ac7f32752f5155982abe2304833/multidict-6.9.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:372c063f37480f62c1ae32dc3a1a0a5942b180c883f99789075a8a8ec3c4e709", size = 290275, upload-time = "2026-09-21T17:57:23.206Z" }, + { url = "https://files.pythonhosted.org/packages/5d/09/7a99a3daafd987330abb865a2d36e432fd8bf18e790ddda55c5de15eb98f/multidict-6.9.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:827c92145b3b976b39430129c89d213b250dacbe5fce678e9a03940e6e848983", size = 303350, upload-time = "2026-09-21T17:57:25.086Z" }, + { url = "https://files.pythonhosted.org/packages/2e/09/7e6ebaecc4e226d7fe27973c271d58b75c14c24e84c23736d21dc39997dd/multidict-6.9.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:9b0124b9c17e9890f0819b2e7a5f65ec9a2f5aabd6c8e7ad090c1675cf70dee6", size = 272232, upload-time = "2026-09-21T17:57:27.193Z" }, + { url = "https://files.pythonhosted.org/packages/1f/6e/420e9e879b21cbdb5036214ee238efabcfab7bf262d3fc124132050f79ff/multidict-6.9.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:23136f5a564654eb61061ec6d5620a4c1ea32c8f552b65e9982a12b72bff601b", size = 300525, upload-time = "2026-09-21T17:57:29.004Z" }, + { url = "https://files.pythonhosted.org/packages/b7/7f/c6b0896850b3ceb190ca302760d63148843371f027c5dde3d1d732343a08/multidict-6.9.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f2524ec55b3e65cbe235a8b3c36e2af3b635be02ed05e20c94e70c5c943c009e", size = 295933, upload-time = "2026-09-21T17:57:30.837Z" }, + { url = "https://files.pythonhosted.org/packages/29/f2/f0ff3384a756227741c72f4ee94cadf1f9900df0ae961e48639f96115b1c/multidict-6.9.1-cp314-cp314t-win32.whl", hash = "sha256:35ba0263bae5dd3ad5aad767cc9afc01a8598c7dae30f1b3b2de98b1b32c28bd", size = 57776, upload-time = "2026-09-21T17:57:32.835Z" }, + { url = "https://files.pythonhosted.org/packages/8d/87/013e1eed30ad46bec1eb68947bc9caf55ba2fd0d6aed04fe964e3b44c23b/multidict-6.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:7c8d5882ba25ac0282258be435d8a05aa0cbcacfce15799154a338f847f159b9", size = 64881, upload-time = "2026-09-21T17:57:34.489Z" }, + { url = "https://files.pythonhosted.org/packages/7f/95/64dd049bb4c53426e2fee7afb874daaa8b4426c41878785883a94511ecf8/multidict-6.9.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ac348379cf4de5538a0a213be1532d289aa801ec5d267c5909446b9ea2f8e2c3", size = 58582, upload-time = "2026-09-21T17:57:36.19Z" }, + { url = "https://files.pythonhosted.org/packages/a2/2c/26bc1723592cfe965b575652a7749026474b0625b04b04564e1fba265dc5/multidict-6.9.1-cp315-cp315-android_24_x86_64.whl", hash = "sha256:f04551dce5a7db8c9659f2e4245494c182d0663b83661803e08d46bfcae5eda1", size = 62339, upload-time = "2026-09-21T17:57:37.967Z" }, + { url = "https://files.pythonhosted.org/packages/bd/c5/614d2eb9995232d066aae7f17d1d454060b6b5d882b22fbaf6150b05ef1d/multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:c0c88085affd35c33e124e36930c5ad96aff9294ce195eaa0fd9cec962b64a82", size = 55009, upload-time = "2026-09-21T17:57:39.746Z" }, + { url = "https://files.pythonhosted.org/packages/7f/24/f7179ecdf9cdd3581ace3292c3b883a1a500a374aa4e619bf6eb521c62e5/multidict-6.9.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a8b75dd3d3638d9a19f23e84af4ffab3b8940422c0df2da2a77005ef5aa3d7ea", size = 56273, upload-time = "2026-09-21T17:57:41.544Z" }, + { url = "https://files.pythonhosted.org/packages/ac/72/c9dffcecccd1f8b9a58f960ec4eaecab62c4edb08d5bb984d4de67fe3fdb/multidict-6.9.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:006c4478de0a1876f4834e14255776286f09b9846b505fe63f67f9d173a9487c", size = 96390, upload-time = "2026-09-21T17:57:43.385Z" }, + { url = "https://files.pythonhosted.org/packages/e9/3f/76542360e655cecdb7c158c7af88c69c4db0d2aac3421659d41214927229/multidict-6.9.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:2784090c30a586d5b45197bd9c32f87fb927216cde302f6cfd76d76577e90f08", size = 58900, upload-time = "2026-09-21T17:57:45.105Z" }, + { url = "https://files.pythonhosted.org/packages/04/15/f28c71af461dd4ff15653a165cfd8ddaf01f3387ff80d2dd0de057d527d0/multidict-6.9.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:7c708566da8014b120a64b1eb6d200c6c0c8cb36296383723cdb6fc82038270b", size = 56540, upload-time = "2026-09-21T17:57:46.913Z" }, + { url = "https://files.pythonhosted.org/packages/19/de/5ee4050c3ddad88c605a89fc1cd18e89abd40a64f183e6fb5276b6eb7f52/multidict-6.9.1-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:042fb0196047e786936a730bd302de83143950da45f2c16078da8f35e1cf7919", size = 331818, upload-time = "2026-09-21T17:57:48.825Z" }, + { url = "https://files.pythonhosted.org/packages/70/e2/2d4e3c3ee70f583334ff236fe6a3babf7a05ce56169a15df65453af647c0/multidict-6.9.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a2212a0c842c723d919ea4a22a9296cb6b244b386e4e6ea92adfc7fbf3095519", size = 329800, upload-time = "2026-09-21T17:57:50.91Z" }, + { url = "https://files.pythonhosted.org/packages/d6/14/f64bd05667343a7250cdd99f81bda2270e3959f00832441f10c7f904e1c1/multidict-6.9.1-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fd882aa29bf402b62bf1fd7c19fd5df4b6528cf468a908864b39368572b662a9", size = 312048, upload-time = "2026-09-21T17:57:53.053Z" }, + { url = "https://files.pythonhosted.org/packages/64/bf/a91256ce00199e7544e3eda79c4e9544eb7388c38fa22f11638c2e357ccb/multidict-6.9.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c57541034d12b215ab0a2bfa371d1a8a198da18176d0426c27105b9161a6862d", size = 343676, upload-time = "2026-09-21T17:57:55.069Z" }, + { url = "https://files.pythonhosted.org/packages/14/48/628b978413518159228c2b2ec38645362ceb6427e935d83d716e26490a49/multidict-6.9.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d73fed4e37158ff00cd271871170b79e40138db51e625fd352fa17c6acb34f67", size = 347028, upload-time = "2026-09-21T17:57:57.157Z" }, + { url = "https://files.pythonhosted.org/packages/8c/73/5f9dc2b5ac7dd7a82458ae9cd283b99c185834f23442ace295362dcc5e45/multidict-6.9.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:79da2491348b30810728050b4a8ec0416f85884125c2fd44655b3d01150d9c3e", size = 335670, upload-time = "2026-09-21T17:57:59.126Z" }, + { url = "https://files.pythonhosted.org/packages/f8/84/6f319ee000f5ab3fa0055b194ad706fddd552c60c76a21d581c87db1d46c/multidict-6.9.1-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b4da208a63434d21a3df64d29758e650fc4aa8cb05848554b76949c296539cca", size = 307804, upload-time = "2026-09-21T17:58:01.2Z" }, + { url = "https://files.pythonhosted.org/packages/3f/24/61be5fe1616d033532e8d63dc789c0f35b9793917834713eefe050589ba9/multidict-6.9.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:877ca17fdcfdf5c397493a71e5ff97a87bb181417fe717fdadc77c08c09301ac", size = 323409, upload-time = "2026-09-21T17:58:03.383Z" }, + { url = "https://files.pythonhosted.org/packages/22/a6/eab8aaf59892169a0f4e8e78a5516a6caa6abd8e96e6410111258f4ef0ef/multidict-6.9.1-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:40aec5299e1ed71fbb988389059da381c3c1a60e0c649acceb2a35d9b128848e", size = 315746, upload-time = "2026-09-21T17:58:05.372Z" }, + { url = "https://files.pythonhosted.org/packages/42/b1/d1e14bab80a74babf6e2ac971a878b84fdcf3a972f3ec3400ca12260fac5/multidict-6.9.1-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:4a409ccc42aefec904038695d5d7fd6d8f3af2721b7b6401d55135ec7d6d298e", size = 334529, upload-time = "2026-09-21T17:58:07.35Z" }, + { url = "https://files.pythonhosted.org/packages/f5/50/a05b1d36f6d3363a5a334cebbf11624c9c7a69d66fd23345eb53b1d43b7e/multidict-6.9.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:0a5769559e3312dd96731fbe15b4abb6033368ac1cad5a98dadd21946a4c7d6c", size = 336455, upload-time = "2026-09-21T17:58:09.112Z" }, + { url = "https://files.pythonhosted.org/packages/cd/0d/bf33cb097380252b08e1177b5ae0cab822c47ce80d236f3f724953c76721/multidict-6.9.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:03fac50ddfd8302175b77863a015eccfae76767cda5506eef86df559ba861e1f", size = 305865, upload-time = "2026-09-21T17:58:10.921Z" }, + { url = "https://files.pythonhosted.org/packages/ba/ee/a2bd133391204b1cec5a5caf327dc9a06710439b7403220860a8fb164560/multidict-6.9.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:5ecace251ccfa705bf3d7d35c5032cf750f5c629809740405697bce5c118c4a4", size = 337531, upload-time = "2026-09-21T17:58:12.846Z" }, + { url = "https://files.pythonhosted.org/packages/a8/32/c0972486f81a06c3bbb23063c85afaac53c51608f7e35bcb101a1006408b/multidict-6.9.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:ecc89dbd4155b2f8a47f4bbd89242a35ed15e8e0ec581cab5ac65fa38407329d", size = 332464, upload-time = "2026-09-21T17:58:14.673Z" }, + { url = "https://files.pythonhosted.org/packages/69/4f/5cbbe852b45d8a7f0ab3ed042386e4894e463010eb230603596cb15d0fee/multidict-6.9.1-cp315-cp315-win32.whl", hash = "sha256:a3ffe881246d28a862f1985824f484cb7361f44d6b99c4c620436ef56462f38d", size = 51714, upload-time = "2026-09-21T17:58:16.409Z" }, + { url = "https://files.pythonhosted.org/packages/d4/77/1fa118386deeae4e7a48870fa5cb073e748b0ac5265a6990651cefc48068/multidict-6.9.1-cp315-cp315-win_amd64.whl", hash = "sha256:59c123d0e948d760a5f930f316cfefa07e8d632ab84327c0693ee6a88171154f", size = 58619, upload-time = "2026-09-21T17:58:18.369Z" }, + { url = "https://files.pythonhosted.org/packages/dd/ee/51c45748acfce9cb69d89dcfcd09c874b385407fd6993e885d6905659865/multidict-6.9.1-cp315-cp315-win_arm64.whl", hash = "sha256:31199204b3ced121ff5407a2c342326a5d27e3870abbf94bd80dbd2451b7bc8f", size = 53969, upload-time = "2026-09-21T17:58:20.102Z" }, + { url = "https://files.pythonhosted.org/packages/aa/57/89d2d3dedfae2558853c1770c7cbcdfd5211eb4c4090b1e8cb570544a490/multidict-6.9.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:8879510a76940670517ea1cb589978da44b86e286ec3e50d664ef330817afce7", size = 107679, upload-time = "2026-09-21T17:58:21.98Z" }, + { url = "https://files.pythonhosted.org/packages/c8/df/0c2a28870181c1762f90952b897f6db46c934ce073efe0442604cbc276db/multidict-6.9.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:aec65b53a07f580606593f877eefbb29a45939bfc0d3fe6e6d9f42b41b749f68", size = 64753, upload-time = "2026-09-21T17:58:23.622Z" }, + { url = "https://files.pythonhosted.org/packages/43/7e/9c6a3e7619459407d8958f7e56ab3dda7f0738f5aed9bb4ad48076e8de83/multidict-6.9.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:14c56f73e78faa1f68bbb826197cd5871994e70e841b8590829c35912ece5c64", size = 62732, upload-time = "2026-09-21T17:58:25.46Z" }, + { url = "https://files.pythonhosted.org/packages/38/eb/fd56c9d83ba0cdc3cf66f9acb278b24ef1f043b620b96d145685a3b57338/multidict-6.9.1-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:38c9986f9ce50c459b10de216a05f4bd7ed5ac63887d56e500a52bb464b861ce", size = 288648, upload-time = "2026-09-21T17:58:27.115Z" }, + { url = "https://files.pythonhosted.org/packages/df/ef/51e79c2442b0f56ac4ac580108d713078b31297e028d468fc220971a305d/multidict-6.9.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:15db6a102cbaf1949cf028ecf080aac76d20bcd29ad4e092574db6c6b7af78a5", size = 304919, upload-time = "2026-09-21T17:58:29.143Z" }, + { url = "https://files.pythonhosted.org/packages/6f/e4/774700cc5739353fe88a7204ed30e78a9403d98d4bb2496cc91f096d2e71/multidict-6.9.1-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:bd82c4977196681a499bb6ca9e462afbc5c91c1c15b6a991dfbd72733fea4dd2", size = 289094, upload-time = "2026-09-21T17:58:30.938Z" }, + { url = "https://files.pythonhosted.org/packages/ca/41/0bec327bc3a8271825376b6d8a469d1f80e3ba1e2e730e019836e29663c3/multidict-6.9.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bb58ba73a3f96f9a3e46b1fab69929d7edbbddb3133ee74b5c3c54074a53c4f1", size = 312007, upload-time = "2026-09-21T17:58:32.964Z" }, + { url = "https://files.pythonhosted.org/packages/c3/7a/9906bf5f1fe20e8e755affccc1a69ecd8aebb079ac65386e5ffc8eefbe75/multidict-6.9.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7c6eecfab7ce4cd9487ff8ba936fe38cdfd68c04faf3d5c710363c6a8e695659", size = 314657, upload-time = "2026-09-21T17:58:35.285Z" }, + { url = "https://files.pythonhosted.org/packages/33/92/cf6d665a45663bbe216420fe632da10e9f4f842b07ce02bc3ddf8eb882b8/multidict-6.9.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c62e71e6289d78c0108d8aeb495f8bd3cad4bc1632fedddc9297ddf287ecc20", size = 301563, upload-time = "2026-09-21T17:58:37.472Z" }, + { url = "https://files.pythonhosted.org/packages/97/4c/9f1b7945526905d58b4b2d422e2ea81326dda71f9bdc9c32c8002639234a/multidict-6.9.1-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:539c2cd5fed0947c135cd7eabaaac55f48300dfa1de0f3ca4edb5efa6606f471", size = 278540, upload-time = "2026-09-21T17:58:39.551Z" }, + { url = "https://files.pythonhosted.org/packages/5c/d9/133aa472fc1be181de29a0c2e1c4cd778280882f532b404395f646742e46/multidict-6.9.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:3100d169ceb7bc8f05f89a6db11d1b21f119975fc26f29dc45a472e3569f0879", size = 294858, upload-time = "2026-09-21T17:58:41.791Z" }, + { url = "https://files.pythonhosted.org/packages/bd/38/21f2305dd20ac5038fa581b5d7e0d8dbbd70dc6b50231c22ec173dacddda/multidict-6.9.1-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:696477ad71385c4795e3b8e4cf10b0d2c28c2a1ca6a955e031cb1e62993e9ee3", size = 285461, upload-time = "2026-09-21T17:58:43.844Z" }, + { url = "https://files.pythonhosted.org/packages/ad/21/465a43c214d1d7e2d0c974e727d4b5935f8a0868838b5df9d0984c83c1dc/multidict-6.9.1-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:f5844e7befc707367807586f550fa97e23dcfef0728f02b98c7bc498a961a5df", size = 288964, upload-time = "2026-09-21T17:58:46.16Z" }, + { url = "https://files.pythonhosted.org/packages/2d/58/72a3e8d56c1e05146d2d1841dbaacf8986375eded1e5a58d30eef191a580/multidict-6.9.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:abc7c2e4b47bfe6a9aea434d3fdebb9597ee636e914e92ba352f2068b9142f4c", size = 303924, upload-time = "2026-09-21T17:58:48.395Z" }, + { url = "https://files.pythonhosted.org/packages/6f/b9/911084c04530a682a54536b4f738d3992a593b5ff6fea1d6a1f02f3acc6b/multidict-6.9.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:7ab379f95caee071a37cbd8be86d4c65accc651d391f9f97748fef006f38769c", size = 278479, upload-time = "2026-09-21T17:58:50.494Z" }, + { url = "https://files.pythonhosted.org/packages/45/eb/9a333346c02c928a9e82534638bce85697c10c46b4901fcd70af19357356/multidict-6.9.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:557a4e1708df428ebe6c3081c83a273d275dad2446ce0d81fc648ac71afdb18d", size = 301650, upload-time = "2026-09-21T17:58:52.554Z" }, + { url = "https://files.pythonhosted.org/packages/67/2f/1d936c4e45c8199db6082b6836e9182e31aa393de0de652637790831ca4b/multidict-6.9.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:475d04d5192eba487a3e2f935976340baa24529046e9c1c9c7a3b7bf80445ae1", size = 298024, upload-time = "2026-09-21T17:58:55.03Z" }, + { url = "https://files.pythonhosted.org/packages/a4/0c/ca62ae2882b89a4cfeb0bbca873a4afdb5fc32994c4f8a37a7cb52ede7a0/multidict-6.9.1-cp315-cp315t-win32.whl", hash = "sha256:10083a8a0f4e1b26b599889e90b9802504ce5d3f7722f925bbb7ca47dd22a7c1", size = 57810, upload-time = "2026-09-21T17:58:57.141Z" }, + { url = "https://files.pythonhosted.org/packages/02/8b/b2c2805c3eb6fa4cdf5512fb95ac6174dde71e34dd601c5be52f4df5dc82/multidict-6.9.1-cp315-cp315t-win_amd64.whl", hash = "sha256:e96ca64383efa107262ee3949f047af5ee4f1845ba09463466c04d35a83bd3ec", size = 64984, upload-time = "2026-09-21T17:58:59.446Z" }, + { url = "https://files.pythonhosted.org/packages/fd/34/03f1d204d698c408f4754c969882609b6b7a902c0e3d16a7033f219cdeda/multidict-6.9.1-cp315-cp315t-win_arm64.whl", hash = "sha256:501ed8b02a5990c67a91c732843609d43a6be1f7576fcdfc867331239f37fbd3", size = 58742, upload-time = "2026-09-21T17:59:01.726Z" }, + { url = "https://files.pythonhosted.org/packages/be/59/e26cb779be4c591d1a910f59d29aca9fba4de70349840a833beba2652371/multidict-6.9.1-py3-none-any.whl", hash = "sha256:7bf6478188f4e47bf5686e8a33da4ae28bf43b1b2528d9ee144d28492bfac60b", size = 19176, upload-time = "2026-09-21T17:59:03.501Z" }, ] [[package]] name = "mypy" -version = "1.18.2" +version = "2.4.0" source = { registry = "https://pypi.org/simple" } dependencies = [ + { name = "ast-serialize" }, + { name = "librt", marker = "platform_python_implementation != 'PyPy'" }, { name = "mypy-extensions" }, { name = "pathspec" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/c0/77/8f0d0001ffad290cef2f7f216f96c814866248a0b92a722365ed54648e7e/mypy-1.18.2.tar.gz", hash = "sha256:06a398102a5f203d7477b2923dda3634c36727fa5c237d8f859ef90c42a9924b", size = 3448846, upload-time = "2025-09-19T00:11:10.519Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/03/6f/657961a0743cff32e6c0611b63ff1c1970a0b482ace35b069203bf705187/mypy-1.18.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c1eab0cf6294dafe397c261a75f96dc2c31bffe3b944faa24db5def4e2b0f77c", size = 12807973, upload-time = "2025-09-19T00:10:35.282Z" }, - { url = "https://files.pythonhosted.org/packages/10/e9/420822d4f661f13ca8900f5fa239b40ee3be8b62b32f3357df9a3045a08b/mypy-1.18.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:7a780ca61fc239e4865968ebc5240bb3bf610ef59ac398de9a7421b54e4a207e", size = 11896527, upload-time = "2025-09-19T00:10:55.791Z" }, - { url = "https://files.pythonhosted.org/packages/aa/73/a05b2bbaa7005f4642fcfe40fb73f2b4fb6bb44229bd585b5878e9a87ef8/mypy-1.18.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:448acd386266989ef11662ce3c8011fd2a7b632e0ec7d61a98edd8e27472225b", size = 12507004, upload-time = "2025-09-19T00:11:05.411Z" }, - { url = "https://files.pythonhosted.org/packages/4f/01/f6e4b9f0d031c11ccbd6f17da26564f3a0f3c4155af344006434b0a05a9d/mypy-1.18.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f9e171c465ad3901dc652643ee4bffa8e9fef4d7d0eece23b428908c77a76a66", size = 13245947, upload-time = "2025-09-19T00:10:46.923Z" }, - { url = "https://files.pythonhosted.org/packages/d7/97/19727e7499bfa1ae0773d06afd30ac66a58ed7437d940c70548634b24185/mypy-1.18.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:592ec214750bc00741af1f80cbf96b5013d81486b7bb24cb052382c19e40b428", size = 13499217, upload-time = "2025-09-19T00:09:39.472Z" }, - { url = "https://files.pythonhosted.org/packages/9f/4f/90dc8c15c1441bf31cf0f9918bb077e452618708199e530f4cbd5cede6ff/mypy-1.18.2-cp310-cp310-win_amd64.whl", hash = "sha256:7fb95f97199ea11769ebe3638c29b550b5221e997c63b14ef93d2e971606ebed", size = 9766753, upload-time = "2025-09-19T00:10:49.161Z" }, - { url = "https://files.pythonhosted.org/packages/88/87/cafd3ae563f88f94eec33f35ff722d043e09832ea8530ef149ec1efbaf08/mypy-1.18.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:807d9315ab9d464125aa9fcf6d84fde6e1dc67da0b6f80e7405506b8ac72bc7f", size = 12731198, upload-time = "2025-09-19T00:09:44.857Z" }, - { url = "https://files.pythonhosted.org/packages/0f/e0/1e96c3d4266a06d4b0197ace5356d67d937d8358e2ee3ffac71faa843724/mypy-1.18.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:776bb00de1778caf4db739c6e83919c1d85a448f71979b6a0edd774ea8399341", size = 11817879, upload-time = "2025-09-19T00:09:47.131Z" }, - { url = "https://files.pythonhosted.org/packages/72/ef/0c9ba89eb03453e76bdac5a78b08260a848c7bfc5d6603634774d9cd9525/mypy-1.18.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1379451880512ffce14505493bd9fe469e0697543717298242574882cf8cdb8d", size = 12427292, upload-time = "2025-09-19T00:10:22.472Z" }, - { url = "https://files.pythonhosted.org/packages/1a/52/ec4a061dd599eb8179d5411d99775bec2a20542505988f40fc2fee781068/mypy-1.18.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1331eb7fd110d60c24999893320967594ff84c38ac6d19e0a76c5fd809a84c86", size = 13163750, upload-time = "2025-09-19T00:09:51.472Z" }, - { url = "https://files.pythonhosted.org/packages/c4/5f/2cf2ceb3b36372d51568f2208c021870fe7834cf3186b653ac6446511839/mypy-1.18.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3ca30b50a51e7ba93b00422e486cbb124f1c56a535e20eff7b2d6ab72b3b2e37", size = 13351827, upload-time = "2025-09-19T00:09:58.311Z" }, - { url = "https://files.pythonhosted.org/packages/c8/7d/2697b930179e7277529eaaec1513f8de622818696857f689e4a5432e5e27/mypy-1.18.2-cp311-cp311-win_amd64.whl", hash = "sha256:664dc726e67fa54e14536f6e1224bcfce1d9e5ac02426d2326e2bb4e081d1ce8", size = 9757983, upload-time = "2025-09-19T00:10:09.071Z" }, - { url = "https://files.pythonhosted.org/packages/07/06/dfdd2bc60c66611dd8335f463818514733bc763e4760dee289dcc33df709/mypy-1.18.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:33eca32dd124b29400c31d7cf784e795b050ace0e1f91b8dc035672725617e34", size = 12908273, upload-time = "2025-09-19T00:10:58.321Z" }, - { url = "https://files.pythonhosted.org/packages/81/14/6a9de6d13a122d5608e1a04130724caf9170333ac5a924e10f670687d3eb/mypy-1.18.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a3c47adf30d65e89b2dcd2fa32f3aeb5e94ca970d2c15fcb25e297871c8e4764", size = 11920910, upload-time = "2025-09-19T00:10:20.043Z" }, - { url = "https://files.pythonhosted.org/packages/5f/a9/b29de53e42f18e8cc547e38daa9dfa132ffdc64f7250e353f5c8cdd44bee/mypy-1.18.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5d6c838e831a062f5f29d11c9057c6009f60cb294fea33a98422688181fe2893", size = 12465585, upload-time = "2025-09-19T00:10:33.005Z" }, - { url = "https://files.pythonhosted.org/packages/77/ae/6c3d2c7c61ff21f2bee938c917616c92ebf852f015fb55917fd6e2811db2/mypy-1.18.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:01199871b6110a2ce984bde85acd481232d17413868c9807e95c1b0739a58914", size = 13348562, upload-time = "2025-09-19T00:10:11.51Z" }, - { url = "https://files.pythonhosted.org/packages/4d/31/aec68ab3b4aebdf8f36d191b0685d99faa899ab990753ca0fee60fb99511/mypy-1.18.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a2afc0fa0b0e91b4599ddfe0f91e2c26c2b5a5ab263737e998d6817874c5f7c8", size = 13533296, upload-time = "2025-09-19T00:10:06.568Z" }, - { url = "https://files.pythonhosted.org/packages/9f/83/abcb3ad9478fca3ebeb6a5358bb0b22c95ea42b43b7789c7fb1297ca44f4/mypy-1.18.2-cp312-cp312-win_amd64.whl", hash = "sha256:d8068d0afe682c7c4897c0f7ce84ea77f6de953262b12d07038f4d296d547074", size = 9828828, upload-time = "2025-09-19T00:10:28.203Z" }, - { url = "https://files.pythonhosted.org/packages/5f/04/7f462e6fbba87a72bc8097b93f6842499c428a6ff0c81dd46948d175afe8/mypy-1.18.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:07b8b0f580ca6d289e69209ec9d3911b4a26e5abfde32228a288eb79df129fcc", size = 12898728, upload-time = "2025-09-19T00:10:01.33Z" }, - { url = "https://files.pythonhosted.org/packages/99/5b/61ed4efb64f1871b41fd0b82d29a64640f3516078f6c7905b68ab1ad8b13/mypy-1.18.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ed4482847168439651d3feee5833ccedbf6657e964572706a2adb1f7fa4dfe2e", size = 11910758, upload-time = "2025-09-19T00:10:42.607Z" }, - { url = "https://files.pythonhosted.org/packages/3c/46/d297d4b683cc89a6e4108c4250a6a6b717f5fa96e1a30a7944a6da44da35/mypy-1.18.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c3ad2afadd1e9fea5cf99a45a822346971ede8685cc581ed9cd4d42eaf940986", size = 12475342, upload-time = "2025-09-19T00:11:00.371Z" }, - { url = "https://files.pythonhosted.org/packages/83/45/4798f4d00df13eae3bfdf726c9244bcb495ab5bd588c0eed93a2f2dd67f3/mypy-1.18.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a431a6f1ef14cf8c144c6b14793a23ec4eae3db28277c358136e79d7d062f62d", size = 13338709, upload-time = "2025-09-19T00:11:03.358Z" }, - { url = "https://files.pythonhosted.org/packages/d7/09/479f7358d9625172521a87a9271ddd2441e1dab16a09708f056e97007207/mypy-1.18.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7ab28cc197f1dd77a67e1c6f35cd1f8e8b73ed2217e4fc005f9e6a504e46e7ba", size = 13529806, upload-time = "2025-09-19T00:10:26.073Z" }, - { url = "https://files.pythonhosted.org/packages/71/cf/ac0f2c7e9d0ea3c75cd99dff7aec1c9df4a1376537cb90e4c882267ee7e9/mypy-1.18.2-cp313-cp313-win_amd64.whl", hash = "sha256:0e2785a84b34a72ba55fb5daf079a1003a34c05b22238da94fcae2bbe46f3544", size = 9833262, upload-time = "2025-09-19T00:10:40.035Z" }, - { url = "https://files.pythonhosted.org/packages/5a/0c/7d5300883da16f0063ae53996358758b2a2df2a09c72a5061fa79a1f5006/mypy-1.18.2-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:62f0e1e988ad41c2a110edde6c398383a889d95b36b3e60bcf155f5164c4fdce", size = 12893775, upload-time = "2025-09-19T00:10:03.814Z" }, - { url = "https://files.pythonhosted.org/packages/50/df/2cffbf25737bdb236f60c973edf62e3e7b4ee1c25b6878629e88e2cde967/mypy-1.18.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:8795a039bab805ff0c1dfdb8cd3344642c2b99b8e439d057aba30850b8d3423d", size = 11936852, upload-time = "2025-09-19T00:10:51.631Z" }, - { url = "https://files.pythonhosted.org/packages/be/50/34059de13dd269227fb4a03be1faee6e2a4b04a2051c82ac0a0b5a773c9a/mypy-1.18.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6ca1e64b24a700ab5ce10133f7ccd956a04715463d30498e64ea8715236f9c9c", size = 12480242, upload-time = "2025-09-19T00:11:07.955Z" }, - { url = "https://files.pythonhosted.org/packages/5b/11/040983fad5132d85914c874a2836252bbc57832065548885b5bb5b0d4359/mypy-1.18.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d924eef3795cc89fecf6bedc6ed32b33ac13e8321344f6ddbf8ee89f706c05cb", size = 13326683, upload-time = "2025-09-19T00:09:55.572Z" }, - { url = "https://files.pythonhosted.org/packages/e9/ba/89b2901dd77414dd7a8c8729985832a5735053be15b744c18e4586e506ef/mypy-1.18.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:20c02215a080e3a2be3aa50506c67242df1c151eaba0dcbc1e4e557922a26075", size = 13514749, upload-time = "2025-09-19T00:10:44.827Z" }, - { url = "https://files.pythonhosted.org/packages/25/bc/cc98767cffd6b2928ba680f3e5bc969c4152bf7c2d83f92f5a504b92b0eb/mypy-1.18.2-cp314-cp314-win_amd64.whl", hash = "sha256:749b5f83198f1ca64345603118a6f01a4e99ad4bf9d103ddc5a3200cc4614adf", size = 9982959, upload-time = "2025-09-19T00:10:37.344Z" }, - { url = "https://files.pythonhosted.org/packages/87/e3/be76d87158ebafa0309946c4a73831974d4d6ab4f4ef40c3b53a385a66fd/mypy-1.18.2-py3-none-any.whl", hash = "sha256:22a1748707dd62b58d2ae53562ffc4d7f8bcc727e8ac7cbc69c053ddc874d47e", size = 2352367, upload-time = "2025-09-19T00:10:15.489Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/34/4e/64300736cf0a0373a27b94a91b664ee7382e36f77b0621bae6381da3e180/mypy-2.4.0.tar.gz", hash = "sha256:77bdaebd452f43fcfc4cc3ba94352a3ea537cd01e3f2d0879f48673d2ec00d6e", size = 4064425, upload-time = "2026-10-01T20:40:39.229Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/26/67/e53965e67d23d48e78dd603aa7525a8d77e7818c23954cc217ccde5cd5c0/mypy-2.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5d20e6c7c35fcbf2a0ebdd0eaeacfbc243009dfd33ab7822d54e213912e6dbbd", size = 14315745, upload-time = "2026-10-01T20:39:25.03Z" }, + { url = "https://files.pythonhosted.org/packages/b1/5d/a588ccd57625822d8484d7aff4e9c70f88d042a91c2ec84324a2bc14b3f3/mypy-2.4.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3011537be6cf1de4511c0255a324362a812b58184bbe61e15f59c8b31033bd74", size = 14465652, upload-time = "2026-10-01T20:38:57.19Z" }, + { url = "https://files.pythonhosted.org/packages/05/af/b4978a5566cb829ca563dc08e3ad8d944f116078786ad54ba3dff2bcb64d/mypy-2.4.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a96b07a49b7b1d025ce59c1b3acbcf24bead9a83da4523c4a6bde1bb94e7a0e1", size = 15419180, upload-time = "2026-10-01T20:40:27.808Z" }, + { url = "https://files.pythonhosted.org/packages/b2/8c/52c71f31c54d0a749d832cc73b933c6e38c52d9b270d5503e031c73723dc/mypy-2.4.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7c4f8f8d1d1c0e2832d8ee7113dd08f6df6c7aad9e863fcbed9f25832be0b8c4", size = 15669212, upload-time = "2026-10-01T20:39:20.443Z" }, + { url = "https://files.pythonhosted.org/packages/e8/55/ba63121494404fd7d3787ec176ccd02820d6ec125ac4e7c4c0b79f2cc6c7/mypy-2.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:ba05652540bf12828e52abae807b024b09ca144ff4f75e2450a81d69c376425b", size = 11299572, upload-time = "2026-10-01T20:40:03.627Z" }, + { url = "https://files.pythonhosted.org/packages/9c/9c/385c81b5c0d3a2917f077c4da660d0493f9521ccfd4b058e33b860f72d02/mypy-2.4.0-cp311-cp311-win_arm64.whl", hash = "sha256:6306086b87cf7f8a29aa618d9fd9bffb56c59247166b9660fdb54d86d7714ecd", size = 10869751, upload-time = "2026-10-01T20:40:25.483Z" }, + { url = "https://files.pythonhosted.org/packages/68/ed/e5d7cf4017e74a1c1e1c4058ce8f614fc1e3e7606564f47166e22bfc9f95/mypy-2.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e05ff2925d8b37ad26c80c1b9dc43ae5d455da2df1e23c24c095a6425917c57e", size = 14378593, upload-time = "2026-10-01T20:38:48.222Z" }, + { url = "https://files.pythonhosted.org/packages/30/7d/12d994886a922f0f1997becc9c6625198d61eeb5962558a886af7dd38d54/mypy-2.4.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:29243242cf72582b65f9582ad9e56e8cb281566ed3519f4cd70bb8b9f2977e90", size = 14464697, upload-time = "2026-10-01T20:39:11.059Z" }, + { url = "https://files.pythonhosted.org/packages/f3/9e/bcc9af755425ad17790bf11d73c2ea7592914cf309ee1340997670f9d57a/mypy-2.4.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:29eb0b9427a6b11b992e452f6cceb8af724f4dceb47e779d0b35e405e996ea5e", size = 15552257, upload-time = "2026-10-01T20:39:56.269Z" }, + { url = "https://files.pythonhosted.org/packages/af/0c/3343fc4525d6f00d75ad17a93a9f052d5163641cb8911840d4a12cb59ff2/mypy-2.4.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e3ebe2f72a2a1156065a9851570ffbf50c0a93cdccadef9c6e05c508a4fd10b1", size = 15800443, upload-time = "2026-10-01T20:38:54.815Z" }, + { url = "https://files.pythonhosted.org/packages/8f/0e/69aac6b8159da7c53e6115a2be1bf48e85503402cadbf506dd708e8b2ad7/mypy-2.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:236e0d68f6941992b0811128e652590f590db444ab29ad8f1324765b9298b946", size = 11381574, upload-time = "2026-10-01T20:39:49.406Z" }, + { url = "https://files.pythonhosted.org/packages/6e/d3/d32ce4feb5993eec09d2024bef16cedc9b93701b1446b86092f08b24491b/mypy-2.4.0-cp312-cp312-win_arm64.whl", hash = "sha256:82d0f94c8587ccb472622ee7795280aaa38a06640d5f45b3f16909d6dd86a989", size = 10944729, upload-time = "2026-10-01T20:40:15.203Z" }, + { url = "https://files.pythonhosted.org/packages/44/f2/eb15183c97c69d7cbfac990a6efd33a19ecfd97dab9e714c742fa78a784f/mypy-2.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7da85fbcff6dac1abcc636707bed38b45598131fb7a605d9719c70b5cc733af8", size = 14213395, upload-time = "2026-10-01T20:40:21.178Z" }, + { url = "https://files.pythonhosted.org/packages/8c/b5/ba91b6ff65e4d6b6ff53b2b3b3ac5f1babf0c7c27d0b43a0196b1c967926/mypy-2.4.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4209da39d85cf240f762af622d8180fcdfcb4727d021f44ade62d613a1a43324", size = 14373009, upload-time = "2026-10-01T20:39:58.86Z" }, + { url = "https://files.pythonhosted.org/packages/d5/c4/484275efc935c0003e55e4e8a33e4b8e99528ee956c12256ece4708f903f/mypy-2.4.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6be721bd4bd57576193653b75b4af3461c9d0bf7dd8b528f782e9be210dc75bb", size = 15465557, upload-time = "2026-10-01T20:39:01.794Z" }, + { url = "https://files.pythonhosted.org/packages/50/30/66eb6fdd0875e3c9025a02f0bb0ea2e524b74274b658c37fde0068c4939d/mypy-2.4.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e1fde197ae65be856a034a91b70ed747a16562ca69577785f06c661548424bf1", size = 15728673, upload-time = "2026-10-01T20:38:43.724Z" }, + { url = "https://files.pythonhosted.org/packages/58/bc/2aa98fd7f49c42dba8e9c065886fadffdd00f3c654cff3f2a7103a797ac8/mypy-2.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:295ecf2e57542cd836ca537486951289678c8c7d1ee6ad74ebe29b2168a003cf", size = 11389803, upload-time = "2026-10-01T20:39:37.547Z" }, + { url = "https://files.pythonhosted.org/packages/49/41/17b60df2d946792ef6af43b89351f5c9ddabc69053206b2304945572a744/mypy-2.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:bc378bdad4e9f12b5bd96466083d1e71acf00594ec9c7b2bdb5e02816f77f303", size = 10951060, upload-time = "2026-10-01T20:39:04.015Z" }, + { url = "https://files.pythonhosted.org/packages/e0/66/924be0b653372ed31ad5c48e26044cc00840e591943a56e61621cf05b60e/mypy-2.4.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:058165f564ccf559c68c70fec2091fca5891110480210c22594635e3f6683437", size = 14234230, upload-time = "2026-10-01T20:39:44.535Z" }, + { url = "https://files.pythonhosted.org/packages/56/39/c4f176880a4177123576de6cec6309feea8f42fca2bf2f6584e88054f656/mypy-2.4.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9fa247e02b505a45a2775f69df38d360d197e3790bc60f717595db9eda358b6e", size = 14392944, upload-time = "2026-10-01T20:40:05.78Z" }, + { url = "https://files.pythonhosted.org/packages/bc/1c/26e16977e25ef2494a74f8ffc872a76ec2c3aa43c3156057cbdf88f352c5/mypy-2.4.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:20e9a5cd875837520c43db98dea0b6d0c2197833d95c30127d8f570fb9b1f00b", size = 15441463, upload-time = "2026-10-01T20:40:32.412Z" }, + { url = "https://files.pythonhosted.org/packages/31/9c/9e4b049f0ecefbfd6817ca2a16eea55dd74a07950268edc6cffd29ccfe98/mypy-2.4.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9f03a7828cca2b0adcd6662aee8f2711ff8830e1027641fdea3ab0b787483566", size = 15705406, upload-time = "2026-10-01T20:40:34.844Z" }, + { url = "https://files.pythonhosted.org/packages/4a/5e/e861b5f6c5ef9ee6cd24683aed1edecf82a26dbd536049f9b7850b586267/mypy-2.4.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:9279488933040b638c0ab739084c0ca100efeea6db581bf5d7628d8e89de53fe", size = 7897523, upload-time = "2026-10-01T20:39:39.861Z" }, + { url = "https://files.pythonhosted.org/packages/3a/87/61ffee58b25a956532a6006fae84918a2de849ed25f397492b2e815fe7b3/mypy-2.4.0-cp314-cp314-win_amd64.whl", hash = "sha256:2106b55105ba5ea9be4f53a24517fc5fa927ff1585edc9bc1a975abb72caef89", size = 11576345, upload-time = "2026-10-01T20:39:41.553Z" }, + { url = "https://files.pythonhosted.org/packages/a1/88/a331c20698971c2ce8d1c30f317fd61b5be13a85b1f053e12dfa22ac6568/mypy-2.4.0-cp314-cp314-win_arm64.whl", hash = "sha256:528c8744b8b5e3ecb8774f86af38d2376216816e9908317ad055f3c9c2d74799", size = 11172062, upload-time = "2026-10-01T20:38:59.534Z" }, + { url = "https://files.pythonhosted.org/packages/47/c0/4f7daa73270dced8e86c6f4a911c68082d03a84e6c1ec9bd916028d66131/mypy-2.4.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0bb95cf34899e4619c61ab0a8667804e139e580b30d5df12af2102dfe44d0c97", size = 15711208, upload-time = "2026-10-01T20:39:30.597Z" }, + { url = "https://files.pythonhosted.org/packages/2f/05/f1afa303c678be24cf7a266d38fb24b3de4599a024c2f9ba0d5905a3efa3/mypy-2.4.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:86d616fe84c6eab8026f8c50ab5bcb90db780d2ccd233d971e34e92bede9b359", size = 15935442, upload-time = "2026-10-01T20:39:22.781Z" }, + { url = "https://files.pythonhosted.org/packages/9d/d6/6a1a45459b63716e0d035f4892a926d3054f0a8cbfa02551d228a9946083/mypy-2.4.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a3f86fd1313dd69d013e265f1fdcd12ea7a9d606f9875b2a3db946cd334555f3", size = 17240044, upload-time = "2026-10-01T20:39:32.95Z" }, + { url = "https://files.pythonhosted.org/packages/87/85/ae33bee66c13f98d421964d87bf0888be941063bc75c1204a4cf142cf1cc/mypy-2.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:720434d48542ecfe84d32d287b727569d3fc8f5769acd39051130e490a5c295c", size = 17545856, upload-time = "2026-10-01T20:39:08.827Z" }, + { url = "https://files.pythonhosted.org/packages/df/de/eeff209b65c3e267818d79333bb9f058da6e4e73761461bd94748a2eb628/mypy-2.4.0-cp314-cp314t-win_amd64.whl", hash = "sha256:a6e851b82c0661f69f1630fc16172c68787a6a9cf0991e7c6437d60976cdcd76", size = 12369342, upload-time = "2026-10-01T20:40:10.516Z" }, + { url = "https://files.pythonhosted.org/packages/2b/43/e62d8d5c1dd737aa248968302ff7d6eabf997c3301773ed8bcb64932ca77/mypy-2.4.0-cp314-cp314t-win_arm64.whl", hash = "sha256:3bd0e340f0ebe65c548210f53be3fd8192e83964760caf0c28bef368e68b0d37", size = 11849099, upload-time = "2026-10-01T20:39:51.834Z" }, + { url = "https://files.pythonhosted.org/packages/2e/5f/335b8980055118dc131355155883fb676bb2161a0d97e08658e479c776fb/mypy-2.4.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:afa89837d9be67e0cadfa33bca3bb7efdda98c3b07e74dc3b635ebfb1c8a926a", size = 14241302, upload-time = "2026-10-01T20:39:13.227Z" }, + { url = "https://files.pythonhosted.org/packages/18/37/1482fdc49332b145828912b15f16eee0c4ca70a8bce0f6514ece79b14680/mypy-2.4.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fb443e81057896132d3642d6be219e6efd158691ac7883e3ba8fcb469865f05d", size = 14408200, upload-time = "2026-10-01T20:38:52.576Z" }, + { url = "https://files.pythonhosted.org/packages/04/09/dce2e8f6c1b31053c430ef6963f6f7a38ccb49b90c5e01e37ed0129b7d5a/mypy-2.4.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7f38f57d344f8b6accb40e01c3d83cfc590498231724d16c07ffb7940f157818", size = 15444409, upload-time = "2026-10-01T20:39:18.1Z" }, + { url = "https://files.pythonhosted.org/packages/43/c5/91b68306da4cd280cb15be35dbb5ffc343cabd67c4b121b6625bf2d13177/mypy-2.4.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:e76172710bd4e5eeae061abfd68347e5264632e02778be61784671ae3a2132f5", size = 15731186, upload-time = "2026-10-01T20:40:23.426Z" }, + { url = "https://files.pythonhosted.org/packages/64/71/2d0340182a8f27352fb1e25531355951108b506097c433937e9eec452ffd/mypy-2.4.0-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:f83353e47ab520bf6fd4df8f5897d9fe081211f2fbc4b7d37736a3e3c166cbcf", size = 7897838, upload-time = "2026-10-01T20:38:50.779Z" }, + { url = "https://files.pythonhosted.org/packages/3e/08/32703c117e134c02efa2a82705bb40cee91eaedea10b6530e20eba651b1f/mypy-2.4.0-cp315-cp315-win_amd64.whl", hash = "sha256:970b221ed5842213d98e3c480c08f795ace4b1f81fb21e1b126bd0476bce1c34", size = 11575700, upload-time = "2026-10-01T20:39:53.982Z" }, + { url = "https://files.pythonhosted.org/packages/ab/08/08bb269feafdaad031046ee2d771528a64467e6a180f962afc28c4a3ccd8/mypy-2.4.0-cp315-cp315-win_arm64.whl", hash = "sha256:502b94b0b331f7dafe32fd6b151797ddbb4f32385b362e722c783a025e5954a3", size = 11172908, upload-time = "2026-10-01T20:40:12.91Z" }, + { url = "https://files.pythonhosted.org/packages/fb/3f/c5c92626006ca92c7686adfbece47fc6a0daa0e54753952a9ad13ce0561c/mypy-2.4.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:c9de622fd397495695d0598ddc789222bfcfec9d7c9ec3a1e385c855e3bc5e01", size = 15705970, upload-time = "2026-10-01T20:40:17.79Z" }, + { url = "https://files.pythonhosted.org/packages/10/f3/863365f7997a76a5a1dd42d7902ab05afa4124e8419089cbca1ce2554db1/mypy-2.4.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9f459f0b4f0596d9d51fe7716b404b35287b99e77da98a7af90a65dd5fd61141", size = 15942234, upload-time = "2026-10-01T20:40:37.243Z" }, + { url = "https://files.pythonhosted.org/packages/f6/30/2f45b1f425a2c95dbe1a3f4d076bfd42b76e9615dba5906230703b14e4eb/mypy-2.4.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f9b028548b3af480e2b1ed8df14ccaac86f99c9f600d1580770ab7ba3dcd40f0", size = 17218364, upload-time = "2026-10-01T20:39:06.497Z" }, + { url = "https://files.pythonhosted.org/packages/43/8b/5b2bbfc69e84800b78fa2dba16d995b003f93b573558e412c5490d6e6c37/mypy-2.4.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:cb734b2668c1f40d07ce093bbeb4407e9527c67901627b0e1679825be3f09975", size = 17557934, upload-time = "2026-10-01T20:38:46.077Z" }, + { url = "https://files.pythonhosted.org/packages/df/c0/1a5dc601c22041a7bbfe1ff71cf097fbbd4fb49930867c6789baf5102106/mypy-2.4.0-cp315-cp315t-win_amd64.whl", hash = "sha256:172e30b8fea631fe310f0c665477f52d9ea40bb4e99e0c81dc30118563b13710", size = 12350955, upload-time = "2026-10-01T20:40:01.52Z" }, + { url = "https://files.pythonhosted.org/packages/1c/bc/697e9e26fc2a86c094ad67ee1e419971b7f01ded66ee66231b09e9f3e12e/mypy-2.4.0-cp315-cp315t-win_arm64.whl", hash = "sha256:5786ef987b3767e51aaa53f20aec104c0252b42ecda7aef8e8b4cbae279b05c5", size = 11842738, upload-time = "2026-10-01T20:40:30.026Z" }, + { url = "https://files.pythonhosted.org/packages/81/12/46ae8670c98a3cd0286ca5645c2f918f8f6be65edfed81b916010619f668/mypy-2.4.0-py3-none-any.whl", hash = "sha256:d01c5d26a352acc6d5cf3128225477e1e8465e8d3029d4c345807fbf7f3cf093", size = 2800734, upload-time = "2026-10-01T20:39:26.837Z" }, ] [[package]] @@ -2689,156 +2881,143 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" }, ] -[[package]] -name = "mypy-protobuf" -version = "3.7.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "protobuf" }, - { name = "types-protobuf" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/99/bd/92ee9e7d2ff30cb57b36bd6f61ee4da8a05acf32f6a6121883b58720e9d4/mypy_protobuf-3.7.0.tar.gz", hash = "sha256:912fb281f7c7b3e3a7c9b8695712618a716fddbab70f6ad63eaf68eda80c5efe", size = 25690, upload-time = "2025-11-17T22:11:12.809Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/69/32/709df4390d155bd72e75f2a9bce6004c2958a21f31817f3a2c7750299f70/mypy_protobuf-3.7.0-py3-none-any.whl", hash = "sha256:85256e9d4da935722ce8fbaa8d19397e1a2989aa8075c96577987de9fe7cea4d", size = 17488, upload-time = "2025-11-17T22:11:11.62Z" }, -] - [[package]] name = "networkx" -version = "3.4.2" +version = "3.6.1" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version < '3.11'", + "python_full_version < '3.12'", ] -sdist = { url = "https://files.pythonhosted.org/packages/fd/1d/06475e1cd5264c0b870ea2cc6fdb3e37177c1e565c43f56ff17a10e3937f/networkx-3.4.2.tar.gz", hash = "sha256:307c3669428c5362aab27c8a1260aa8f47c4e91d3891f48be0141738d8d053e1", size = 2151368, upload-time = "2024-10-21T12:39:38.695Z" } +sdist = { url = "https://files.pythonhosted.org/packages/6a/51/63fe664f3908c97be9d2e4f1158eb633317598cfa6e1fc14af5383f17512/networkx-3.6.1.tar.gz", hash = "sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509", size = 2517025, upload-time = "2025-12-08T17:02:39.908Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b9/54/dd730b32ea14ea797530a4479b2ed46a6fb250f682a9cfb997e968bf0261/networkx-3.4.2-py3-none-any.whl", hash = "sha256:df5d4365b724cf81b8c6a7312509d0c22386097011ad1abe274afd5e9d3bbc5f", size = 1723263, upload-time = "2024-10-21T12:39:36.247Z" }, + { url = "https://files.pythonhosted.org/packages/9e/c9/b2622292ea83fbb4ec318f5b9ab867d0a28ab43c5717bb85b0a5f6b3b0a4/networkx-3.6.1-py3-none-any.whl", hash = "sha256:d47fbf302e7d9cbbb9e2555a0d267983d2aa476bac30e90dfbe5669bd57f3762", size = 2068504, upload-time = "2025-12-08T17:02:38.159Z" }, ] [[package]] name = "networkx" -version = "3.6.1" +version = "3.7" source = { registry = "https://pypi.org/simple" } resolution-markers = [ - "python_full_version >= '3.14'", + "python_full_version >= '3.15'", + "python_full_version == '3.14.*'", "python_full_version == '3.13.*'", - "python_full_version >= '3.11' and python_full_version < '3.13'", + "python_full_version == '3.12.*' and sys_platform == 'emscripten'", + "python_full_version == '3.12.*' and sys_platform != 'emscripten'", ] -sdist = { url = "https://files.pythonhosted.org/packages/6a/51/63fe664f3908c97be9d2e4f1158eb633317598cfa6e1fc14af5383f17512/networkx-3.6.1.tar.gz", hash = "sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509", size = 2517025, upload-time = "2025-12-08T17:02:39.908Z" } +sdist = { url = "https://files.pythonhosted.org/packages/dc/76/3af777226b63a5e64a6b36b1ec5855c14e2b94a37096d4760e595fc43511/networkx-3.7.tar.gz", hash = "sha256:fd77a511bd90f39f3d016351345b52cf5319b813bdca01de3f755d3cca62e96a", size = 1866482, upload-time = "2026-09-21T16:45:16.974Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/9e/c9/b2622292ea83fbb4ec318f5b9ab867d0a28ab43c5717bb85b0a5f6b3b0a4/networkx-3.6.1-py3-none-any.whl", hash = "sha256:d47fbf302e7d9cbbb9e2555a0d267983d2aa476bac30e90dfbe5669bd57f3762", size = 2068504, upload-time = "2025-12-08T17:02:38.159Z" }, + { url = "https://files.pythonhosted.org/packages/7e/cd/fe58041e9011f307c490e3e17dd48cc516448f7c698a3f2d9d9d65d7e6a8/networkx-3.7-py3-none-any.whl", hash = "sha256:e3fd2c13a7814cee3746340d8d7f8598a67f16a58bf47fb7f8793fab6efca1b0", size = 2142205, upload-time = "2026-09-21T16:45:14.609Z" }, ] [[package]] name = "nexus-rpc" -version = "1.4.0" +version = "1.5.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/35/d5/cd1ffb202b76ebc1b33c1332a3416e55a39929006982adc2b1eb069aaa9b/nexus_rpc-1.4.0.tar.gz", hash = "sha256:3b8b373d4865671789cc43623e3dc0bcbf192562e40e13727e17f1c149050fba", size = 82367, upload-time = "2026-02-25T22:01:34.053Z" } +sdist = { url = "https://files.pythonhosted.org/packages/25/e5/25be948c92492cfc8ac24a524ad8828fe0cb9f71f46a974d7a37f0794a26/nexus_rpc-1.5.0.tar.gz", hash = "sha256:be2d6934414677bc9dd8e571fb5106c22b8769edc19562c3f49d9988edd24e1c", size = 97404, upload-time = "2026-10-28T17:12:21.82Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/11/52/6327a5f4fda01207205038a106a99848a41c83e933cd23ea2cab3d2ebc6c/nexus_rpc-1.4.0-py3-none-any.whl", hash = "sha256:14c953d3519113f8ccec533a9efdb6b10c28afef75d11cdd6d422640c40b3a49", size = 29645, upload-time = "2026-02-25T22:01:33.122Z" }, + { url = "https://files.pythonhosted.org/packages/33/e2/00541e7997f3dfb294f7be3dafea3307ea09b9d3fd332054fe4d30627efc/nexus_rpc-1.5.0-py3-none-any.whl", hash = "sha256:5d6e856972be812573948df02da2257344c407a8eaa99977b5d38be54448305a", size = 30406, upload-time = "2026-10-28T17:12:20.245Z" }, ] [[package]] name = "nh3" -version = "0.3.6" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/5e/1b/ef84624f14954d270f74060a19fc550dd4f06656399447569afb584d8c06/nh3-0.3.6.tar.gz", hash = "sha256:f3736c9dd3d1856f80cd031715b84ca75cda2bbb1ac802c3da26bfce590838d7", size = 24684, upload-time = "2026-06-22T00:47:02.008Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/99/3e/6506aa4f23dc7b7993a2d0a45dca3ce864ec48380adfe15a173e643c63e8/nh3-0.3.6-cp314-cp314t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:2411e8c3cee81a1ddd62c2a5d50585c28aa5566d373ad1db92536b95ddb24ef2", size = 1421679, upload-time = "2026-06-22T00:46:20.248Z" }, - { url = "https://files.pythonhosted.org/packages/e3/e1/e96e7864a7a53bd6b6fab7e9632467382a2a2c1f3fed951918ad131542fb/nh3-0.3.6-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e196fa70c2ff2eb4de7d3df3108f8f358c1d69dff20d45b11f20a5aa227ffb6d", size = 792570, upload-time = "2026-06-22T00:46:22.179Z" }, - { url = "https://files.pythonhosted.org/packages/59/62/5b6108bedaef2b2637fed04c87bdbcb5967b9961758b41f0e466ef22a022/nh3-0.3.6-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:34d2b0d934156b87ee114f599a3ba9b8b9e17b5d79652ba3a13fa50903de965e", size = 842243, upload-time = "2026-06-22T00:46:23.801Z" }, - { url = "https://files.pythonhosted.org/packages/4b/4a/526f199626bfcb496bc01a268051b44737962005553b158e985ed7e64865/nh3-0.3.6-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:f2f14b7ae1fca99c4a66c981aac3974e7fbc1ca30a12673d223ae1df76680917", size = 1001468, upload-time = "2026-06-22T00:46:25.481Z" }, - { url = "https://files.pythonhosted.org/packages/49/09/0d8e3101636d9ad88cdefb2914e764cb8e876ebdbb4286bfc251277d9c67/nh3-0.3.6-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:889932a97fb4abb6f95fef1914c0d269ebfb60011e67121c1163059b9449dbb4", size = 1082933, upload-time = "2026-06-22T00:46:27.15Z" }, - { url = "https://files.pythonhosted.org/packages/09/a1/ea83abe738a3fbaa203dfdb836ca7cbab0e7e9609faaee4fe1d4652599c0/nh3-0.3.6-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:edb2b4a1a27523e6cc7c417f8d21ce3d005243548b93e56b762b66b0c7f589f9", size = 1043120, upload-time = "2026-06-22T00:46:28.89Z" }, - { url = "https://files.pythonhosted.org/packages/66/69/0654482b8635012fbae67826bd6c381abb05d841ac7388b9b4666300fdad/nh3-0.3.6-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:43bc1ed3fa0716295fabee29ba42b2667e4a51d140b0a68e092170a765474fa6", size = 1023824, upload-time = "2026-06-22T00:46:30.453Z" }, - { url = "https://files.pythonhosted.org/packages/ed/a6/1f7285ffadc8307c4dbeb08d21b920536d5117785056d1079e998c4dfa44/nh3-0.3.6-cp314-cp314t-win32.whl", hash = "sha256:597a8e843bea00b2eb5520658dc24a9bb032e7fc9e7c2c0c4cd29420220c9796", size = 599253, upload-time = "2026-06-22T00:46:32.072Z" }, - { url = "https://files.pythonhosted.org/packages/36/ea/5542f3c45da4c00290d9d67a65e996702e23e613c4b627de3e09cb9fe357/nh3-0.3.6-cp314-cp314t-win_amd64.whl", hash = "sha256:4713502748f564fee0633b37b3403783ce0a3af3a3d148ad91025a5bdadb7bc6", size = 612553, upload-time = "2026-06-22T00:46:33.53Z" }, - { url = "https://files.pythonhosted.org/packages/66/35/26bd47e6af5915a628281dccdac354ddf4e32f7397047894270acd8c9870/nh3-0.3.6-cp314-cp314t-win_arm64.whl", hash = "sha256:69bbb92865a693d909db3a700d3c01537533844d0948c1e9323561ce06ecda41", size = 595151, upload-time = "2026-06-22T00:46:34.878Z" }, - { url = "https://files.pythonhosted.org/packages/f3/ab/a7653bce9a3b204be6a6931767a9e23595807bb84790ce6685e4d7e5bd08/nh3-0.3.6-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:a43ebd7543555c3ac1bc353023d0794e75cb76f6f18f19c32e95441496c0cc25", size = 1443564, upload-time = "2026-06-22T00:46:36.66Z" }, - { url = "https://files.pythonhosted.org/packages/41/21/e1084ab18eb589506335c7c7576f2d4643e9a0c0e33983ef0e549a256b96/nh3-0.3.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e1b160831c9cdb06a6c79c2f9cdb11386602938f9af260d1c457a85add4f6f69", size = 838002, upload-time = "2026-06-22T00:46:38.101Z" }, - { url = "https://files.pythonhosted.org/packages/b0/94/f48d08e6f72a406300fa11d8acd929fea1a80d4bf750fa292cb10785f126/nh3-0.3.6-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d14bf7982e7a77c0c775634c29c07ce08b38a046df73e1c1f139b3e82f18a38e", size = 823045, upload-time = "2026-06-22T00:46:39.495Z" }, - { url = "https://files.pythonhosted.org/packages/25/bb/431615ba1d1d3eb63cde0f974f2114edf863a8a3f6049a12fed23fc241d3/nh3-0.3.6-cp38-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:44673b27010051ab5a5e438a86ec31bbda61d4a77d7e900af6b7be3037c1abae", size = 1093171, upload-time = "2026-06-22T00:46:41.21Z" }, - { url = "https://files.pythonhosted.org/packages/0e/24/a0d80182a18919665fefd19c1c06f1d1df1c9a6455d0252de40c034a0bc3/nh3-0.3.6-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e6b7beece07525dc6e6b0fc2f104442de2ba328360ad00e50cbe2e1fd620447d", size = 1049217, upload-time = "2026-06-22T00:46:42.804Z" }, - { url = "https://files.pythonhosted.org/packages/0a/13/6f1e302ca674ac74362e150848ad56a1be5145391204f74facdb8e94df12/nh3-0.3.6-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:455469a29951edc92bc48b47ac2281c3f2609e6c4f6a047056449f8c2c23facf", size = 917372, upload-time = "2026-06-22T00:46:44.495Z" }, - { url = "https://files.pythonhosted.org/packages/5b/67/314f6151bad77a93d751978a344033e1fc890822f05f0416079338e34231/nh3-0.3.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:905f877dc66dd7aea4a76e54bcb26acb5ff8216f720c0017ccf63e0e6035698e", size = 806699, upload-time = "2026-06-22T00:46:45.99Z" }, - { url = "https://files.pythonhosted.org/packages/3c/a6/bfaa00046e58603507dcfc266c4778e3ab7adf68a5dedd73b6274b8d9314/nh3-0.3.6-cp38-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:25c733bee928530556b1db0ea46c52cf5aa686146e38e60a6fc7cb801ef91cec", size = 835165, upload-time = "2026-06-22T00:46:47.617Z" }, - { url = "https://files.pythonhosted.org/packages/30/a8/fb2c38845efb703a9173bffdfc745fc64d2b0e55cfc73a3647d2f028250c/nh3-0.3.6-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2f90d9a0cfdbee218994fdaaeeb5a0fde62d08f35e4eef0378ec1e2200172fd0", size = 858282, upload-time = "2026-06-22T00:46:49.276Z" }, - { url = "https://files.pythonhosted.org/packages/68/17/06e72a18ee9b572914447338237ca7eb164c0df901f141bc10d1282247a2/nh3-0.3.6-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:82ca5bf427ad1b216b65ede1a2e2d87dc49bec417ceba0f297213107d3cd9d78", size = 1014328, upload-time = "2026-06-22T00:46:51.026Z" }, - { url = "https://files.pythonhosted.org/packages/11/f9/3966c61455668c08853bf5e33b4bed93c421f3194ce4de896dc248d6f6ce/nh3-0.3.6-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:f5ed5fe84aee7f39db95c214a7421bf0499fbf500fec6d86a4e29bfc37971438", size = 1098207, upload-time = "2026-06-22T00:46:52.674Z" }, - { url = "https://files.pythonhosted.org/packages/19/d3/479cb4ae440424825735d60525b53e3c77fd60fd6e6afc0e984f00eb0178/nh3-0.3.6-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:082675ff87b9385ec430ffe6d5847ba7456cc39b73720cd4add472f9f4cffd56", size = 1056961, upload-time = "2026-06-22T00:46:54.335Z" }, - { url = "https://files.pythonhosted.org/packages/17/0c/6cdb5ee1e127be50dc8391e54bddc1f64e87bf4bfad0c55633320e2e02db/nh3-0.3.6-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:36d06341bd501240d320f5942481ed5e6846136b666e1ba4faf802b78ebc875f", size = 1033829, upload-time = "2026-06-22T00:46:56.258Z" }, - { url = "https://files.pythonhosted.org/packages/e9/55/9de666ad975d6ccd77d799ea0add55ee2347aa81286ce21b2a97c070746b/nh3-0.3.6-cp38-abi3-win32.whl", hash = "sha256:5276ef17bdba9ad8040575c74072008b13aae429436e9d0429e718bb5f90f4da", size = 609081, upload-time = "2026-06-22T00:46:57.665Z" }, - { url = "https://files.pythonhosted.org/packages/82/fa/2b5d684e3edf1e81bfd02d298c78c3e3da77ca1d8a2be3183a79544a7548/nh3-0.3.6-cp38-abi3-win_amd64.whl", hash = "sha256:f338ac7d594c067679f1e99b4f5ec3906842979560f9d8f15d6bdfa39a353b10", size = 624461, upload-time = "2026-06-22T00:46:59.163Z" }, - { url = "https://files.pythonhosted.org/packages/7b/e5/7cafee2f0413ca4cb0ef3bd111e94d408a48810008b283ad8aee00dd1809/nh3-0.3.6-cp38-abi3-win_arm64.whl", hash = "sha256:69f365963f63a1e9bff53bdbb3c542c7c2efed3e163c9d5d83a772a2ac468c21", size = 603060, upload-time = "2026-06-22T00:47:00.596Z" }, +version = "0.3.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/18/2f/022b27146d52d24b1b353b003359134788ecbcd6fcdf6283adbd57c0fbc8/nh3-0.3.7.tar.gz", hash = "sha256:71860d01c16f4d8c72e334e0674beb2b0899dbd0bf760de18932ef4390303848", size = 25662, upload-time = "2026-08-23T14:26:30.728Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ce/88/b594f0e86856b37e182fb663283da419eea6424972506e640e890885467f/nh3-0.3.7-cp314-cp314t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:91a4dab4e94d9fc54b9f67b1adfb23e81fab7ab43f33c3b8c97be9aa38f789ba", size = 1471147, upload-time = "2026-08-23T14:25:55.259Z" }, + { url = "https://files.pythonhosted.org/packages/1e/60/847a21339f095c4d4c655af31fa2d18b174585bcc210709facacc7ce205c/nh3-0.3.7-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eae64328e46a25785535afcb6885b6f182ecaf5ee8c88f8c075422db8aacc65b", size = 820463, upload-time = "2026-08-23T14:25:56.803Z" }, + { url = "https://files.pythonhosted.org/packages/7b/7f/1a103e00aaf5e59f2dee4c2709aac609bb2d4bb74fddaf0dcfade11ed87b/nh3-0.3.7-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4968fe8d2db97c6f047659bf46a449fd8ec377f44ebf3e0a1b96c0d3a333ae32", size = 861456, upload-time = "2026-08-23T14:25:58.087Z" }, + { url = "https://files.pythonhosted.org/packages/d8/4a/e9c436089a0c80b928011ead0efd156aa7639a19b6064ef58dcedcab8369/nh3-0.3.7-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:be53a4825585f701955cb9baf49f478f56eb81e20294329fe4bc689dd5dd81fa", size = 1023930, upload-time = "2026-08-23T14:25:59.465Z" }, + { url = "https://files.pythonhosted.org/packages/04/5c/aa1468e3e281e78d2b3b7d762ccba59f681af355e971dbd255d5903f7b86/nh3-0.3.7-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:94fd6e59553fbb9ffd8ba71bbd5a54e3126ba01799a097ae30d5341d750bc6ac", size = 1102614, upload-time = "2026-08-23T14:26:00.869Z" }, + { url = "https://files.pythonhosted.org/packages/6a/9f/57d186d9d3dd38905dc12dddb3484406cdf6aa0b1ce33639a2d277d4ee1c/nh3-0.3.7-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:18f4278ecd157d43cb35acd5aae9f35cfa79f546b4922bd86536adc0f6312102", size = 1059915, upload-time = "2026-08-23T14:26:02.388Z" }, + { url = "https://files.pythonhosted.org/packages/6b/53/097a5ad0b34b15d67a472ef849165a54209fa5fbd3e639801c6fe439ba28/nh3-0.3.7-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:808def0c8c07843e6e50dc84f532457bfa2cfd17417b219a5d9e7c773709331a", size = 1047402, upload-time = "2026-08-23T14:26:03.897Z" }, + { url = "https://files.pythonhosted.org/packages/9a/a7/c57a2c70534418310889a65ccfac3525e62f0bc0a8613225903403755ce7/nh3-0.3.7-cp314-cp314t-win32.whl", hash = "sha256:874b7d67a067bd29a59223f6270fc30da4edd8e6d87fd219fc93bcbaa662c946", size = 619895, upload-time = "2026-08-23T14:26:05.105Z" }, + { url = "https://files.pythonhosted.org/packages/e6/b7/efda1d0a611d940bdfde6893bde1ea6b7b7d48c31273aea48e35b822fd58/nh3-0.3.7-cp314-cp314t-win_amd64.whl", hash = "sha256:614dac4a4c36ad084e78447d16fe898dedd762e354a7ab9cda2984e82f67883d", size = 633456, upload-time = "2026-08-23T14:26:06.661Z" }, + { url = "https://files.pythonhosted.org/packages/1d/18/3ab564595cb88196f50d26e163ed0fd2acc731ab26ac615df91981885887/nh3-0.3.7-cp314-cp314t-win_arm64.whl", hash = "sha256:157ec1eb7a62f3d9a7badb8d82d89aa810e3e24e097eedfa481a25d0c8a99877", size = 611003, upload-time = "2026-08-23T14:26:07.813Z" }, + { url = "https://files.pythonhosted.org/packages/94/0d/c257754bf57f829f307aa226bbe136d3a1356b5a0d08324c7b6bd2a8aacd/nh3-0.3.7-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:6c3aa50eb26e9228238271db9f983cbc3b006dfbfeca2d4dc34c33ddc6ac5ea5", size = 1493959, upload-time = "2026-08-23T14:26:09.025Z" }, + { url = "https://files.pythonhosted.org/packages/07/42/a687e7091928806e514f89fa2666f25ec9bfe0a902fc4402b25e51ce408b/nh3-0.3.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f266d3f1b3647449923a8e406524632220dd5d8b647078dfe45b885d33d10479", size = 859615, upload-time = "2026-08-23T14:26:10.606Z" }, + { url = "https://files.pythonhosted.org/packages/85/05/b0e6bef633549a23347d5462aa288fcc42381e7918482062ca3cb456242a/nh3-0.3.7-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e8fd1ab205258b29254f72db377d99e2c96aa7653ef3b015ccab0420b094b506", size = 839872, upload-time = "2026-08-23T14:26:12.037Z" }, + { url = "https://files.pythonhosted.org/packages/17/40/2a0921d45b20828708bcb56887e47dcf8cae13818de5bf9a01308d348712/nh3-0.3.7-cp38-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:19f288c938ec6eef1f5d2c6cab47838e71fef8097e1c1233802be5a6230ba086", size = 1091325, upload-time = "2026-08-23T14:26:13.34Z" }, + { url = "https://files.pythonhosted.org/packages/e4/d1/9d70e0e418a48280ec0ddc6c1b08b4b1136ebcc31a1625e57ff5c665fa51/nh3-0.3.7-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:de2b2aab32ea303405debefdcfc58043d3e635fa3f67b9eb140d2b0e0c0d2563", size = 1042482, upload-time = "2026-08-23T14:26:14.667Z" }, + { url = "https://files.pythonhosted.org/packages/93/a7/02dd159d4e71f98607d8d4249cddb7561e77be1a8e4dec77d76e1b68fc99/nh3-0.3.7-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b7279d43323a25225df23576af6594a16693f61431170848b8b2ac21ad4f174", size = 946868, upload-time = "2026-08-23T14:26:16.094Z" }, + { url = "https://files.pythonhosted.org/packages/a6/ed/c5510c615dce55b6fcc364aa1838142f938beed64f5e4927490dfcaf4405/nh3-0.3.7-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70f5ac8626e899a4bab0ef74ca2f5bd602f49c7b739e6e5026b4afc6d63dac42", size = 832161, upload-time = "2026-08-23T14:26:17.272Z" }, + { url = "https://files.pythonhosted.org/packages/7b/e3/3212c1a5b5745245d7f18885207bbddb34c56075f34dd682bd539aad55cc/nh3-0.3.7-cp38-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:5ffdfcb9a686ffb12765376bcfb6b5b55728516d3c0ee317d29982381ded3df8", size = 849791, upload-time = "2026-08-23T14:26:18.498Z" }, + { url = "https://files.pythonhosted.org/packages/20/64/9e36594efad6c290de4240d02cb2bd80c339a4ab1c4de66e599ffa6d9d81/nh3-0.3.7-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:bc42bb1193c1e28a1e74c2cabaca178e118a7103e8832699fef8a2b3e2496493", size = 875473, upload-time = "2026-08-23T14:26:19.908Z" }, + { url = "https://files.pythonhosted.org/packages/00/0c/1a8985fd43fea5530c0ac890b6f0b423770ee72f111b70b7a77f2dec243a/nh3-0.3.7-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:d56e76bd3cadb09b6b0cef364850811663734b348a25f5f587a2819c495367bd", size = 1036463, upload-time = "2026-08-23T14:26:21.536Z" }, + { url = "https://files.pythonhosted.org/packages/b2/5d/891e533b716cf00df76ad0ba6485dcfd14d59a6430a3cc99057c4c04004e/nh3-0.3.7-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:fd4a70efb45d5372174f718878eb7a35c12677626a63b2f103b23b833457dcac", size = 1116029, upload-time = "2026-08-23T14:26:22.907Z" }, + { url = "https://files.pythonhosted.org/packages/42/e5/ae8c0782fce74fb6fcf7234bb3d4017f37ce181b4f9d29369eab21c50a04/nh3-0.3.7-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:15f5fbf090f5c88d61c820e1fc1fceecb6520cca9fe85649c06b57ef9dc9ff62", size = 1076589, upload-time = "2026-08-23T14:26:24.302Z" }, + { url = "https://files.pythonhosted.org/packages/26/a4/c3423351e8d864ad756e85e15f0c01433361f14d34e4ed156482c0518f2a/nh3-0.3.7-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:6698a822132beedab80f131c08d8d0ac5a178ddeb488d02ca4b67716ecfac7af", size = 1058871, upload-time = "2026-08-23T14:26:25.674Z" }, + { url = "https://files.pythonhosted.org/packages/4b/6a/478f153f1d7c0baaa3d1e8bb5fdcee3a6235f90fe44ea969a9d4e2b8c47a/nh3-0.3.7-cp38-abi3-win32.whl", hash = "sha256:6e4280115d44c3b278eef712a86748c1a723105cd79feec46952383117ab4e59", size = 630729, upload-time = "2026-08-23T14:26:26.932Z" }, + { url = "https://files.pythonhosted.org/packages/b4/b9/34433ccb1f0fe6968dabbb7d4bf5721c6221878ef07832748c06655a6a80/nh3-0.3.7-cp38-abi3-win_amd64.whl", hash = "sha256:618e3059caf41ccdf5dcccb3fa9df4cf6e4efe23d1382a8bbfca272a8a4f8bfc", size = 644462, upload-time = "2026-08-23T14:26:28.294Z" }, + { url = "https://files.pythonhosted.org/packages/f9/70/e140dffff6e808dc6343598df76e7e2407fd0f581de3524c75fba2e0cf24/nh3-0.3.7-cp38-abi3-win_arm64.whl", hash = "sha256:f04b7d333b27f13ca439da3cf1c75c2fba34f104969f6ce4ac8e7079699c2f4a", size = 621867, upload-time = "2026-08-23T14:26:29.547Z" }, ] [[package]] name = "nodeenv" -version = "1.10.0" +version = "1.11.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/24/bf/d1bda4f6168e0b2e9e5958945e01910052158313224ada5ce1fb2e1113b8/nodeenv-1.10.0.tar.gz", hash = "sha256:996c191ad80897d076bdfba80a41994c2b47c68e224c542b48feba42ba00f8bb", size = 55611, upload-time = "2025-12-20T14:08:54.006Z" } +sdist = { url = "https://files.pythonhosted.org/packages/9a/8e/105de02c1322cfada6d9710d9146ef8026419d433c9d08359a2d35805811/nodeenv-1.11.0.tar.gz", hash = "sha256:3ce8fe5b71d16e8af7039ca65257354100bc772965d6bc549070649e53b1b146", size = 99301, upload-time = "2026-09-26T11:29:21.367Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/88/b2/d0896bdcdc8d28a7fc5717c305f1a861c26e18c05047949fb371034d98bd/nodeenv-1.10.0-py2.py3-none-any.whl", hash = "sha256:5bb13e3eed2923615535339b3c620e76779af4cb4c6a90deccc9e36b274d3827", size = 23438, upload-time = "2025-12-20T14:08:52.782Z" }, + { url = "https://files.pythonhosted.org/packages/54/c8/12811c9b48fde162bb72b6f2e78fada9a247a09d7bb5be2050a5d099c77b/nodeenv-1.11.0-py2.py3-none-any.whl", hash = "sha256:edaa16e6c14d7cf395d75d4bbd5a26390f4dc06501a33b4e76282b02cc688a25", size = 34277, upload-time = "2026-09-26T11:29:19.933Z" }, ] [[package]] name = "nodejs-wheel-binaries" -version = "24.16.0" +version = "24.19.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/a3/22/2a5beb4e21417c73233d9f65cf6f3e96e891b80d2f550a8f630ebc6b88c6/nodejs_wheel_binaries-24.16.0.tar.gz", hash = "sha256:c973cb69dc5fd16e6f6dc6e579e2c3d5534e2a1f57619dddf5ba070efa7dde37", size = 8056, upload-time = "2026-05-30T16:52:09.807Z" } +sdist = { url = "https://files.pythonhosted.org/packages/c0/76/7e97195e14346598565a0de4ca8bdbd5e634b3fb5b1ba590b7b1b89f8a63/nodejs_wheel_binaries-24.19.0.tar.gz", hash = "sha256:db217eef8cab8551667863379b08db4d9067403f6cbbe87481eb40edceb8aa9b", size = 8058, upload-time = "2026-08-19T21:47:19.671Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/83/d1/68b43b53cd0fa83ae6fd406705023ca988d9e0ca41c724d82e66fbeb2ef6/nodejs_wheel_binaries-24.16.0-py2.py3-none-macosx_13_0_arm64.whl", hash = "sha256:d9f8f677dcf30e37ac244f07869726abe043f01eb0f45722b1df31cc2af7093c", size = 55666374, upload-time = "2026-05-30T16:51:39.588Z" }, - { url = "https://files.pythonhosted.org/packages/e9/b2/40a989159599080da485de966c4c2d207e852ac7aa7864702626d96c8bf5/nodejs_wheel_binaries-24.16.0-py2.py3-none-macosx_13_0_x86_64.whl", hash = "sha256:3d0370fe7120ce9697a4f60d40480d2bd8808d9f30131458d5afc0040d4e5a51", size = 55838487, upload-time = "2026-05-30T16:51:43.383Z" }, - { url = "https://files.pythonhosted.org/packages/d7/a7/cd42174fb5ff6faff7fa8d326a18914d8f232098ab5de055b57c16fa13ca/nodejs_wheel_binaries-24.16.0-py2.py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:85dc92bbb79c851569c5925dcc2a4c915a034efab375f99e4e7e6bbe9cca8342", size = 60179540, upload-time = "2026-05-30T16:51:47.036Z" }, - { url = "https://files.pythonhosted.org/packages/2b/95/c8a1f9ae140aa28df8744d984d01d4b3af7cdd6555af12127f40ceb45a7d/nodejs_wheel_binaries-24.16.0-py2.py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:2f3036292811514ba847b3708492644764f88a833ac425c5f55007014308ddfd", size = 60716262, upload-time = "2026-05-30T16:51:50.711Z" }, - { url = "https://files.pythonhosted.org/packages/64/c9/7c35b3737f59e36d0249c265397b7bff570519b95301d6e16ea361e904ad/nodejs_wheel_binaries-24.16.0-py2.py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:db8a8a76ebd2b28ecbfc9ad464baa3707241b9e050a30e2efdf6f60c0f886502", size = 62230592, upload-time = "2026-05-30T16:51:55Z" }, - { url = "https://files.pythonhosted.org/packages/04/96/d931255cf9d11a84d6b54d882dba7434646467d568ccf070ea3418638df3/nodejs_wheel_binaries-24.16.0-py2.py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:f1a3d8f7b4491cbbd023ba3fc4e901fcca2d9fb80d57f24ba3890de8b1dbac03", size = 62841759, upload-time = "2026-05-30T16:51:59.407Z" }, - { url = "https://files.pythonhosted.org/packages/a2/7b/8b7a3f41bc255411be30b6d7d288aab8ffd9ea2055db8555ced3548007b9/nodejs_wheel_binaries-24.16.0-py2.py3-none-win_amd64.whl", hash = "sha256:bb136be9944f0662dcf1120f45193a6b75b13fac378971a95cc42c9f879a81aa", size = 42027734, upload-time = "2026-05-30T16:52:03.348Z" }, - { url = "https://files.pythonhosted.org/packages/17/66/1ed71f1f529b8ca727d42c7ceb9db0bef145ce4a13dfc86fb50aa44f3be6/nodejs_wheel_binaries-24.16.0-py2.py3-none-win_arm64.whl", hash = "sha256:8308940b5edd0a50dc5267ea36ba21c9f668e83fe0d9f293937174d3a7e31c36", size = 39714528, upload-time = "2026-05-30T16:52:06.421Z" }, + { url = "https://files.pythonhosted.org/packages/8c/52/0774b52c7be8151ad9d5aff44edc100c3f13d6d8eb3765f63ffa40e69fe8/nodejs_wheel_binaries-24.19.0-py2.py3-none-macosx_13_0_arm64.whl", hash = "sha256:e12cbfd69089504e42fb14194ce734a9dcf3eb38c820ca63dd511d36fb964e9c", size = 56047203, upload-time = "2026-08-19T21:46:43.448Z" }, + { url = "https://files.pythonhosted.org/packages/67/3a/4fdbbfecf2c23d52c0e3f68de7f7c1b3c97a26d328c69c5f6c49c48e340e/nodejs_wheel_binaries-24.19.0-py2.py3-none-macosx_13_0_x86_64.whl", hash = "sha256:1c890adf4b7e6556ccc1ca66c866bb81884b6c9a581dee4e530dc7f78fb9d514", size = 56219459, upload-time = "2026-08-19T21:46:48.45Z" }, + { url = "https://files.pythonhosted.org/packages/5f/a8/0147149415195c59b8a72a594916bfb80d6be4d586f9fbfda313889e0efc/nodejs_wheel_binaries-24.19.0-py2.py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:4e029dadfae1295876063c96b236f673487e8c27379fe146c1e2250283520227", size = 60588256, upload-time = "2026-08-19T21:46:53.298Z" }, + { url = "https://files.pythonhosted.org/packages/f4/89/6631d0982353da1bb7bc00bb1988f702822c62b42634f57999ee53b5c337/nodejs_wheel_binaries-24.19.0-py2.py3-none-manylinux_2_28_x86_64.whl", hash = "sha256:4196a947bcc883f2003ab101762d729f3e99b5e86b75bd09151563403e2eceb8", size = 61123607, upload-time = "2026-08-19T21:46:58.117Z" }, + { url = "https://files.pythonhosted.org/packages/32/a2/fa30f0841e4602995782e124359f9b910c7b481d98decf61ef0b2fc3ebfb/nodejs_wheel_binaries-24.19.0-py2.py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:352e048ab4dd35e7de5f338d1cc4fcbf77a0e93da30bf7336a8217ee246b31d7", size = 62632842, upload-time = "2026-08-19T21:47:03.42Z" }, + { url = "https://files.pythonhosted.org/packages/18/01/22d97ca72213f66cc386ee638db30c2e62757fdf761c6029074bced83d1c/nodejs_wheel_binaries-24.19.0-py2.py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:28d078b2ced9e2069516e652dc4b1380e7a1a7f2d3934eccd1611586d283ba4c", size = 63250653, upload-time = "2026-08-19T21:47:07.938Z" }, + { url = "https://files.pythonhosted.org/packages/88/d1/e3be8fa327a795bcaf7a19cd84299e338a7bce32ff0665fdce9cfa22573c/nodejs_wheel_binaries-24.19.0-py2.py3-none-win_amd64.whl", hash = "sha256:67e3abeb9c3830cae8c8487ae8a2af7cc27dfa75af06145cee5ca7d1857c81bd", size = 42448503, upload-time = "2026-08-19T21:47:12.093Z" }, + { url = "https://files.pythonhosted.org/packages/1d/37/34cf28ba1691a060174948a9927fe61091982d6048b2e403071a9acce443/nodejs_wheel_binaries-24.19.0-py2.py3-none-win_arm64.whl", hash = "sha256:d9074c665ea68b04e183d82482c86dc907d3a9bd15eb6cf85542cb785266bb36", size = 40090155, upload-time = "2026-08-19T21:47:16.032Z" }, ] [[package]] name = "openai" -version = "2.45.0" +version = "3.29.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, - { name = "distro" }, - { name = "httpx" }, + { name = "httpx2" }, { name = "jiter" }, { name = "pydantic" }, { name = "sniffio" }, - { name = "tqdm" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/78/60/d4219875289b11d2c2f7da93c36283da224a2e55865ed865ab64e0ce9217/openai-2.45.0.tar.gz", hash = "sha256:10d34ca9c5643bce775852fddbfc172505cb1d4de1ccd101696c3ecff358765d", size = 1109653, upload-time = "2026-07-09T18:02:44.091Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/99/5f6206494a87edbaa67b35c5212a2cb5e6f414bee5efb0f0672c4704315a/openai-3.29.0.tar.gz", hash = "sha256:bc70a46d97b70ba64daedfcb3227f610a395f297ec68d39f735676190a92be94", size = 1828914, upload-time = "2026-10-11T17:39:41.895Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f1/b0/2291689e3ec4723fbf5bbf3b54afcd7b160f9ddc98ca7aedfd0132af5677/openai-2.45.0-py3-none-any.whl", hash = "sha256:5df105f5f8c9b711fcb9d06d2d3888cebc82506db216484c14a4e53cdf651777", size = 1629470, upload-time = "2026-07-09T18:02:42.21Z" }, + { url = "https://files.pythonhosted.org/packages/ef/9a/91285d01a9293d0b3d86167f9c7bd13f08c960d3fa365782751ce9bcbfb1/openai-3.29.0-py3-none-any.whl", hash = "sha256:860d3bad424c5d38cd9ba0a0a2050d558b58ce027596a39f9ccbc0f51a2090b7", size = 2173181, upload-time = "2026-10-11T17:39:39.493Z" }, ] [[package]] name = "openai-agents" -version = "0.19.4" +version = "0.22.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "griffelib" }, + { name = "httpx2" }, { name = "mcp" }, { name = "openai" }, { name = "pydantic" }, + { name = "pyjwt" }, + { name = "python-multipart" }, { name = "requests" }, + { name = "starlette" }, { name = "typing-extensions" }, + { name = "urllib3" }, { name = "websockets" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/ff/ea/a8cae2dadf798f369be5f9cb544a169f5f6aecc096a80f1a209dddc4c00f/openai_agents-0.19.4.tar.gz", hash = "sha256:fe21778ee1e8216c9cdb775fa86d11b08be68c0184e14023993088d3f812c0be", size = 5784063, upload-time = "2026-08-05T02:59:12.939Z" } +sdist = { url = "https://files.pythonhosted.org/packages/88/2a/78734078b2d6c2132fab1c4c0ca223b4085b3c983c135a5bd7171c5d57ff/openai_agents-0.22.3.tar.gz", hash = "sha256:33c79a5da0c9cf8ace0019bb09e268338d9162a18edbb6c2ce12bc139917109e", size = 6584491, upload-time = "2026-09-17T22:20:44.87Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/90/d8/98925e1e4888e58d7694ba71af2ba93b94540f481c45ee8b7f7be7e30fcd/openai_agents-0.19.4-py3-none-any.whl", hash = "sha256:12e0372fae9698fe6f78e05aaeb4ccdb229602f7ef99b8195a7d68dc82869f51", size = 968498, upload-time = "2026-08-05T02:59:11.191Z" }, -] - -[package.optional-dependencies] -litellm = [ - { name = "litellm", marker = "python_full_version < '3.14'" }, + { url = "https://files.pythonhosted.org/packages/f8/56/f5d32edb2e890a5dea9824cb76d179cef47c6a5ea8269d3559d092936106/openai_agents-0.22.3-py3-none-any.whl", hash = "sha256:41dec9e2e703db32a627bf0290f3721a6ca37405603a8cb654213356dbb8ee9d", size = 1149658, upload-time = "2026-09-17T22:20:42.768Z" }, ] [[package]] @@ -2875,66 +3054,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/95/d8/321ff889330acca2e3097f3d4f80a40bcc41b6d34d302978ab32c449520b/openapi_spec_validator-0.9.0-py3-none-any.whl", hash = "sha256:222fecffc7714f6d0a6ad62c0e4b66cc2b7dbfafb7b93acfc6c308abbdb51af8", size = 50328, upload-time = "2026-05-20T09:23:17.017Z" }, ] -[[package]] -name = "openinference-instrumentation" -version = "0.1.54" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "openinference-semantic-conventions" }, - { name = "opentelemetry-api" }, - { name = "opentelemetry-sdk" }, - { name = "wrapt" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/c1/cc/62c1175ee7edc2cbdf95b5b73e0b0f305e759d407bf1bc353ff30a763365/openinference_instrumentation-0.1.54.tar.gz", hash = "sha256:9af9817bb38816ed32856fb4cd813c1a5d9f530ab589c3473b37e06cf406ab28", size = 33938, upload-time = "2026-06-30T19:23:15.648Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/38/e3/c7aa7bb4845e0cfdf477ff87f9a3ec0cd2aa55a34a9f31be84d724cabbb7/openinference_instrumentation-0.1.54-py3-none-any.whl", hash = "sha256:8bc991865c90c804ac9983ef93aa6081a7a2397dd113d3d38b5465cca17892bb", size = 41197, upload-time = "2026-06-30T19:23:14.315Z" }, -] - -[[package]] -name = "openinference-instrumentation-google-adk" -version = "0.1.17" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "openinference-instrumentation" }, - { name = "openinference-semantic-conventions" }, - { name = "opentelemetry-api" }, - { name = "opentelemetry-instrumentation" }, - { name = "opentelemetry-semantic-conventions" }, - { name = "typing-extensions" }, - { name = "wrapt" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/3b/c2/8400125398ac568efe49bc8a9411a4c860b27112279d52d2bb8acbc70126/openinference_instrumentation_google_adk-0.1.17.tar.gz", hash = "sha256:8235d2cf3fce5edaf213136fbd00e876db183add362b2edede87cd42b21ab112", size = 14844, upload-time = "2026-07-01T15:44:19.524Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/27/c0/b0c301a0a1de9fe377e666e89b9e87fa368bd5ac1341ab125624e2bbc081/openinference_instrumentation_google_adk-0.1.17-py3-none-any.whl", hash = "sha256:3f45e38cfd5ffb41c18deddc747e48c68595d4dfa1a89b7b1aa1f3d31e46ce0d", size = 16755, upload-time = "2026-07-01T15:44:18.364Z" }, -] - -[[package]] -name = "openinference-instrumentation-openai-agents" -version = "1.6.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "openinference-instrumentation" }, - { name = "openinference-semantic-conventions" }, - { name = "opentelemetry-api" }, - { name = "opentelemetry-instrumentation" }, - { name = "opentelemetry-semantic-conventions" }, - { name = "typing-extensions" }, - { name = "wrapt" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/cc/6f/281a267b837d33505c8b4ef70644b8ebfeb7ed902a909200333916185851/openinference_instrumentation_openai_agents-1.6.1.tar.gz", hash = "sha256:39b211b7ff28d59a401b2659f3885f967fb3e17580b29b4b4aedac6b8fc98e0e", size = 26089, upload-time = "2026-06-05T19:54:22.737Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/08/54/c3d4e67bdad5170e315bb03086f034d2a60ccb26c4200010428456c9f4d6/openinference_instrumentation_openai_agents-1.6.1-py3-none-any.whl", hash = "sha256:ca5dc650fc53461cbce0f8f19bfa78d43de605c439a9d3c44d99fd0b6e10e3ba", size = 28466, upload-time = "2026-06-05T19:54:21.48Z" }, -] - -[[package]] -name = "openinference-semantic-conventions" -version = "0.1.30" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/2c/51/8ba1182ee86fc79793d5ff2d11e7fdcda10ded2d01f3e46ca6fcf0568213/openinference_semantic_conventions-0.1.30.tar.gz", hash = "sha256:81fece76e09c83789e35c393b8b30523481eeabf1008745b955631a53e3221d9", size = 13391, upload-time = "2026-05-22T21:10:44.065Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b6/76/5b7e78cf0de38589b821bbe8e9c29c59a6e76edfb980488d0854cbb90f7c/openinference_semantic_conventions-0.1.30-py3-none-any.whl", hash = "sha256:36d946d3f95f699b7c4b12324ae9c1f02d6c7750df11eece56aa159cff430b3d", size = 10911, upload-time = "2026-05-22T21:10:43.04Z" }, -] - [[package]] name = "opentelemetry-api" version = "1.42.1" @@ -3059,148 +3178,125 @@ wheels = [ [[package]] name = "orjson" -version = "3.11.9" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/7e/0c/964746fcafbd16f8ff53219ad9f6b412b34f345c75f384ad434ceaadb538/orjson-3.11.9.tar.gz", hash = "sha256:4fef17e1f8722c11587a6ef18e35902450221da0028e65dbaaa543619e68e48f", size = 5599163, upload-time = "2026-05-06T15:11:08.309Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/10/5d/b95ca542a001135cc250a49370f282f578c8f4e46cc8617d73775297eea8/orjson-3.11.9-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:135869ef917b8704ea0a94e01620e0c05021c15c52036e4663baffe75e72f8ce", size = 228986, upload-time = "2026-05-06T15:09:14.765Z" }, - { url = "https://files.pythonhosted.org/packages/80/01/be33fbff646e22f93398429ea645f20d2097aea1a6cdc1e6628e70125f83/orjson-3.11.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:115ab5f5f4a0f203cc2a5f0fb09aee503a3f771aa08392949ab5ca230c4fbdbd", size = 132558, upload-time = "2026-05-06T15:09:17.431Z" }, - { url = "https://files.pythonhosted.org/packages/4e/61/73d49333bba660a075daccca10970dc6409ce1cf42ae4046646a19468aad/orjson-3.11.9-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4da3c38a2083ca4aaf9c2a36776cce3e9328e6647b10d118948f3cfb4913ffe4", size = 128213, upload-time = "2026-05-06T15:09:18.719Z" }, - { url = "https://files.pythonhosted.org/packages/1f/7d/30e844b3dac3f74aed66b1f984daf9db3c98c0328c03d965a9e8dc06449e/orjson-3.11.9-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:53b50b0e14084b8f7e29c5ce84c5af0f1160169b30d8a6914231d97d2fe297d4", size = 135430, upload-time = "2026-05-06T15:09:20.257Z" }, - { url = "https://files.pythonhosted.org/packages/16/64/bd815f5c610b3facc204f26ba94e87a9eb49b0d83de3d5fc1eee2402d91b/orjson-3.11.9-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:231742b4a11dad8d5380a435962c57e91b7c37b79be858f4ef1c0df1a259897e", size = 146178, upload-time = "2026-05-06T15:09:21.616Z" }, - { url = "https://files.pythonhosted.org/packages/c7/35/e744fd36c79b339d27beb06068b5a08a8882ef5418804d0ce545a31f718d/orjson-3.11.9-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:34fd2317602587321faab75ab76c623a0117e80841a6413654f04e47f339a8fb", size = 133068, upload-time = "2026-05-06T15:09:23.228Z" }, - { url = "https://files.pythonhosted.org/packages/2a/56/d54152b67b63a0b3e556cfc549d6ce84f74d7f425ddeadc6c8a74d913da7/orjson-3.11.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:71f3db16e69b667b132e0f305a833d5497da302d801508cbb051ed9a9819da47", size = 134217, upload-time = "2026-05-06T15:09:24.847Z" }, - { url = "https://files.pythonhosted.org/packages/0b/ee/66154baf69f71c7164a268a5e888908aec5a0819d13c81d5e2755a257758/orjson-3.11.9-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:0b34789fa0da61cf7bef0546b09c738fb195331e017e477096d129e9105ab03d", size = 141917, upload-time = "2026-05-06T15:09:26.647Z" }, - { url = "https://files.pythonhosted.org/packages/09/d3/c5824260ca8b9d7ba82648d042a3f8f4815d18c15bb98a1f30edd1bb2d83/orjson-3.11.9-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:87e4d4ab280b0c87424d47695bec2182caf8cfc17879ea78dab76680194abc13", size = 415356, upload-time = "2026-05-06T15:09:28.252Z" }, - { url = "https://files.pythonhosted.org/packages/64/cb/509c2e816fe4df641d93dc92f6a89adc8df3ada8ebdee2bd44aba3264c3c/orjson-3.11.9-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:ace6c58523302d3b97b6ac5c38a5298a54b473762b6be82726b4265c41029f92", size = 148112, upload-time = "2026-05-06T15:09:29.783Z" }, - { url = "https://files.pythonhosted.org/packages/db/b5/3ceae56d2e4962979eedb023ba6a46a4bb65f333960379be0ca470686220/orjson-3.11.9-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:97d0d932803c1b164fde11cb542a9efcb1e0f63b184537cca65887147906ff48", size = 137112, upload-time = "2026-05-06T15:09:31.432Z" }, - { url = "https://files.pythonhosted.org/packages/d7/7a/81fa3f2c7bef79b04cf2ab7838e5ac74b1f12511ceab979759b0275d6bb4/orjson-3.11.9-cp310-cp310-win32.whl", hash = "sha256:b3afcf569c15577a9fe64627292daa3e6b3a70f4fb77a5df246a87ec21681b94", size = 131706, upload-time = "2026-05-06T15:09:32.707Z" }, - { url = "https://files.pythonhosted.org/packages/ae/d8/b64600f9083c7f151ad39717a5877fccbeb0ef6d7efcb55f971ce00b6bee/orjson-3.11.9-cp310-cp310-win_amd64.whl", hash = "sha256:8697ab6a080a5c46edaad50e2bc5bd8c7ca5c66442d24104fa44ec74910a8244", size = 127282, upload-time = "2026-05-06T15:09:33.955Z" }, - { url = "https://files.pythonhosted.org/packages/1e/51/3fb9e65ae76ee97bd611869a503fa3fc0a6e81dd8b737cf3003f682df7ff/orjson-3.11.9-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:f01c4818b3fc9b0da8e096722a84318071eaa118df35f6ed2344da0e73a5444f", size = 228522, upload-time = "2026-05-06T15:09:35.362Z" }, - { url = "https://files.pythonhosted.org/packages/16/fa/9d54b07cb3f3b0bfd57841478e42d7a0ece4a9f49f9907eecf5a45461687/orjson-3.11.9-cp311-cp311-macosx_15_0_arm64.whl", hash = "sha256:3ebca4179031ee716ed076ffadc29428e900512f6fccee8614c9983157fcf19c", size = 128463, upload-time = "2026-05-06T15:09:37.063Z" }, - { url = "https://files.pythonhosted.org/packages/88/b1/6ceafc2eefd0a553e3be77ce6c49d107e772485d9568629376171c50e634/orjson-3.11.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:48ee05097750de0ff69ed5b7bbcf0732182fd57a24043dcc2a1da780a5ead3a5", size = 132306, upload-time = "2026-05-06T15:09:38.299Z" }, - { url = "https://files.pythonhosted.org/packages/ea/76/f11311285324a40aab1e3031385c50b635a7cd0734fdaf60c7e89a696f60/orjson-3.11.9-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a6082706765a95a6680d812e1daf1c0cfe8adec7831b3ff3b625693f3b461b1c", size = 127988, upload-time = "2026-05-06T15:09:39.597Z" }, - { url = "https://files.pythonhosted.org/packages/9e/85/0ef63bcf1337f44031ce9b91b1919563f62a37527b3ea4368bb15a22e5d7/orjson-3.11.9-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:277fefe9d76ee17eb14debf399e3533d4d63b5f677a4d3719eb763536af1f4bd", size = 135188, upload-time = "2026-05-06T15:09:40.957Z" }, - { url = "https://files.pythonhosted.org/packages/05/94/b0d27090ea8a2095db3c2bd1b1c96f96f19bbb494d7fef33130e846e613d/orjson-3.11.9-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:03db380e3780fa0015ed776a90f20e8e20bb11dde13b216ce19e5718e3dfba62", size = 145937, upload-time = "2026-05-06T15:09:42.249Z" }, - { url = "https://files.pythonhosted.org/packages/09/eb/75d50c29c05b8054013e221e598820a365c8e64065312e75e202ed880709/orjson-3.11.9-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:33d7d766701847dc6729846362dc27895d2f2d2251264f9d10e7cb9878194877", size = 132758, upload-time = "2026-05-06T15:09:43.945Z" }, - { url = "https://files.pythonhosted.org/packages/49/bd/360686f39348aa88827cb6fbf7dc606fd41c831a35235e1abf1db8e3a9e6/orjson-3.11.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:147302878da387104b66bb4a8b0227d1d487e976ce41a8501916161072ed87b1", size = 133971, upload-time = "2026-05-06T15:09:45.239Z" }, - { url = "https://files.pythonhosted.org/packages/0e/30/3178eb16f3221aeef068b6f1f1ebe05f656ea5c6dffe9f6c917329fe17a3/orjson-3.11.9-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:3513550321f8c8c811a7c3297b8a630e82dc08e4c10216d07703c997776236cd", size = 141685, upload-time = "2026-05-06T15:09:46.858Z" }, - { url = "https://files.pythonhosted.org/packages/5f/f1/ff2f19ed0225f9680fafa42febca3570dd59444ebf190980738d376214c2/orjson-3.11.9-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:c5d001196b89fa9cf0a4ab79766cd835b991a166e4b621ba95089edc50c429ff", size = 415167, upload-time = "2026-05-06T15:09:48.312Z" }, - { url = "https://files.pythonhosted.org/packages/9b/61/863bddf0da6e9e586765414debd54b4e58db05f560902b6d00658cb88636/orjson-3.11.9-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:16969c9d369c98eb084889c6e4d2d39b77c7eb38ceccf8da2a9fff62ae908980", size = 147913, upload-time = "2026-05-06T15:09:49.733Z" }, - { url = "https://files.pythonhosted.org/packages/b6/8a/4081492586d75b073d60c5271a8d0f05a0955cabf1e34c8473f6fcd84235/orjson-3.11.9-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:63e0efbc991250c0b3143488fa57d95affcabbfc63c99c48d625dd37779aafe2", size = 136959, upload-time = "2026-05-06T15:09:51.311Z" }, - { url = "https://files.pythonhosted.org/packages/0d/bd/70b6ab193594d7abb875320c0a7c8335e846f28968c432c31042409c3c8d/orjson-3.11.9-cp311-cp311-win32.whl", hash = "sha256:14ed654580c1ed2bc217352ec82f91b047aef82951aa71c7f64e0dcb03c0e180", size = 131533, upload-time = "2026-05-06T15:09:52.637Z" }, - { url = "https://files.pythonhosted.org/packages/3f/17/1a1a228183d62d1b77e2c30d210f47dd4768b310ebe1607c63e3c0e3a71e/orjson-3.11.9-cp311-cp311-win_amd64.whl", hash = "sha256:57ea77fb70a448ce87d18fca050193202a3da5e54598f6501ca5476fb66cfe02", size = 127106, upload-time = "2026-05-06T15:09:54.204Z" }, - { url = "https://files.pythonhosted.org/packages/b8/95/285de5fa296d09681ee9c546cd4a8aeb773b701cf343dc125994f4d52953/orjson-3.11.9-cp311-cp311-win_arm64.whl", hash = "sha256:19b72ed11572a2ee51a67a903afbe5af504f84ed6f529c0fe44b0ab3fb5cc697", size = 126848, upload-time = "2026-05-06T15:09:55.551Z" }, - { url = "https://files.pythonhosted.org/packages/16/6d/11867a3ffa3a3608d84a4de51ef4dd0896d6b5cc9132fbe1daf593e677bc/orjson-3.11.9-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:9ef6fe90aadef185c7b128859f40beb24720b4ecea95379fc9000931179c3a49", size = 228515, upload-time = "2026-05-06T15:09:57.265Z" }, - { url = "https://files.pythonhosted.org/packages/24/75/05912954c8b288f34fcf5cd4b9b071cb4f6e77b9961e175e56ebb258089f/orjson-3.11.9-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:e5c9b8f28e726e97d97696c826bc7bea5d71cecd63576dba92924a32c1961291", size = 128409, upload-time = "2026-05-06T15:09:59.063Z" }, - { url = "https://files.pythonhosted.org/packages/ab/86/1c3a47df3bc8191ea9ac51603bbb872a95167a364320c269f2557911f406/orjson-3.11.9-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:26a473dbb4162108b27901492546f83c76fdcea3d0eadff00ae7a07e18dcce09", size = 132106, upload-time = "2026-05-06T15:10:00.798Z" }, - { url = "https://files.pythonhosted.org/packages/d7/cf/b33b5f3e695ae7d63feef9d915c37cc3b8f465493dcd4f8e0b4c697a2366/orjson-3.11.9-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:011382e2a60fda9d46f1cdee31068cfc52ffe952b587d683ec0463002802a0f4", size = 127864, upload-time = "2026-05-06T15:10:02.15Z" }, - { url = "https://files.pythonhosted.org/packages/31/6a/6cf69385a58208024fcb8c014e2141b8ce838aba6492b589f8acfff97fab/orjson-3.11.9-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c2d3dc759490128c5c1711a53eeaa8ee1d437fd0038ffd2b6008abf46db3f882", size = 135213, upload-time = "2026-05-06T15:10:03.515Z" }, - { url = "https://files.pythonhosted.org/packages/e8/f8/0b1bd3e8f2efcdd376af5c8cfd79eaf13f018080c0089c80ebd724e3c7fb/orjson-3.11.9-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d8ea516b3726d190e1b4297e6f4e7a8650347ae053868a18163b4dd3641d1fff", size = 145994, upload-time = "2026-05-06T15:10:05.083Z" }, - { url = "https://files.pythonhosted.org/packages/f3/59/dab79f61044c529d2c81aecdc589b1f833a1c8dec11ba3b1c2498a02ca7e/orjson-3.11.9-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:380cdce7ba24989af81d0a7013d0aaec5d0e2a21734c0e2681b1bc4f141957fe", size = 132744, upload-time = "2026-05-06T15:10:06.853Z" }, - { url = "https://files.pythonhosted.org/packages/0e/a4/82b7a2fe5d8a67a59ed831b24d59a3d46ea7d207b66e1602d376541d94a6/orjson-3.11.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:be4fa4f0af7fa18951f7ab3fc2148e223af211bf03f59e1c6034ec3f97f21d61", size = 134014, upload-time = "2026-05-06T15:10:08.213Z" }, - { url = "https://files.pythonhosted.org/packages/50/c7/375e83a76851b73b2e39f3bcf0e5a19e2b89bad13e5bca97d0b293d27f24/orjson-3.11.9-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a8f5f8bc7ce7d59f08d9f99fa510c06496164a24cb5f3d34537dbd9ca30132e2", size = 141509, upload-time = "2026-05-06T15:10:09.595Z" }, - { url = "https://files.pythonhosted.org/packages/7f/7c/49d5d82a3d3097f641f094f552131f1e2723b0b8cb0fa2874ab65ecfffa6/orjson-3.11.9-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:4d7fde5501b944f83b3e665e1b31343ff6e154b15560a16b7130ea1e594a4206", size = 415127, upload-time = "2026-05-06T15:10:11.049Z" }, - { url = "https://files.pythonhosted.org/packages/3a/dc/7446c538590d55f455647e5f3c61fc33f7108714e7afcffa6a2a033f8350/orjson-3.11.9-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:cde1a448023ba7d5bb4c01c5afb48894380b5e4956e0627266526587ef4e535f", size = 148025, upload-time = "2026-05-06T15:10:12.842Z" }, - { url = "https://files.pythonhosted.org/packages/df/e5/4d2d8af06f788329b4f78f8cc3679bb395392fcaa1e4d8d3c33e85308fa4/orjson-3.11.9-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:71e63adb0e1f1ed5d9e168f50a91ceb93ae6420731d222dc7da5c69409aa47aa", size = 136943, upload-time = "2026-05-06T15:10:14.405Z" }, - { url = "https://files.pythonhosted.org/packages/06/69/850264ccf6d80f6b174620d30a87f65c9b1490aba33fe6b62798e618cad3/orjson-3.11.9-cp312-cp312-win32.whl", hash = "sha256:2d057a602cdd19a0ad680417527c45b6961a095081c0f46fe0e03e304aac6470", size = 131606, upload-time = "2026-05-06T15:10:15.791Z" }, - { url = "https://files.pythonhosted.org/packages/b9/d5/973a43fc9c55e20f2051e9830997649f669be0cb3ca52192087c0143f118/orjson-3.11.9-cp312-cp312-win_amd64.whl", hash = "sha256:59e403b1cc5a676da8eaf31f6254801b7341b3e29efa85f92b48d272637e77be", size = 127101, upload-time = "2026-05-06T15:10:17.129Z" }, - { url = "https://files.pythonhosted.org/packages/fe/ae/495470f0e4a18f73fa10b7f6b84b464ec4cc5291c4e0c7c2a6c400bef006/orjson-3.11.9-cp312-cp312-win_arm64.whl", hash = "sha256:9af678d6488357948f1f84c6cd1c1d397c014e1ae2f98ae082a44eb48f602624", size = 126736, upload-time = "2026-05-06T15:10:18.645Z" }, - { url = "https://files.pythonhosted.org/packages/32/33/93fcc25907235c344ae73122f8a4e01d2d393ef062b4af7d2e2487a32c37/orjson-3.11.9-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:4bab1b2d6141fe7b32ae71dac905666ece4f94936efbfb13d55bb7739a3a6021", size = 228458, upload-time = "2026-05-06T15:10:20.079Z" }, - { url = "https://files.pythonhosted.org/packages/8f/27/b1e6dadb3c080313c03fdd8067b85e6a0460c7d8d6a1c3984ef77b904e4d/orjson-3.11.9-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:844417969855fc7a41be124aafe83dc424592a7f77cd4501900c67307122b92c", size = 128368, upload-time = "2026-05-06T15:10:21.549Z" }, - { url = "https://files.pythonhosted.org/packages/21/0f/c9ede0bf052f6b4051e64a7d4fa91b725cccf8321a6a786e86eb03519f00/orjson-3.11.9-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffe02797b5e9f3a9d8292ddcd289b474ad13e81ad83cd1891a240811f1d2cb81", size = 132070, upload-time = "2026-05-06T15:10:23.371Z" }, - { url = "https://files.pythonhosted.org/packages/fd/26/d398e28048dc18205bbe812f2c88cb9b40313db2470778e25964796458fe/orjson-3.11.9-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0e4eed3b200023042814d2fc8a5d2e880f13b52e1ed2485e83da4f3962f7dc1a", size = 127892, upload-time = "2026-05-06T15:10:24.714Z" }, - { url = "https://files.pythonhosted.org/packages/66/60/52b0054c4c700d5aa7fc5b7ca96917400d8f061307778578e67a10e25852/orjson-3.11.9-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8aff7da9952a5ad1cef8e68017724d96c7b9a66e99e91d6252e1b133d67a7b10", size = 135217, upload-time = "2026-05-06T15:10:26.084Z" }, - { url = "https://files.pythonhosted.org/packages/d5/97/1e3dc2b2a28b7b2528f403d2fc1d79ec5f39af3bc143ab65d3ec26426385/orjson-3.11.9-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4d4e98d6f3b8afed8bc8cd9718ec0cdf46661826beefb53fe8eafb37f2bf0362", size = 145980, upload-time = "2026-05-06T15:10:28.062Z" }, - { url = "https://files.pythonhosted.org/packages/fc/39/31fbfe7850f2de32dee7e7e5c09f26d403ab01e440ac96001c6b01ad3c99/orjson-3.11.9-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3a81d52442a7c99b3662333235b3adf96a1715864658b35bb797212be7bddb97", size = 132738, upload-time = "2026-05-06T15:10:29.727Z" }, - { url = "https://files.pythonhosted.org/packages/a1/08/dca0082dd2a194acb93e5457e73455388e2e2ca464a2672449a9ddbb679d/orjson-3.11.9-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4e39364e726a8fff737309aff059ff67d8a8c8d5b677be7bb49a8b3e84b7e218", size = 134033, upload-time = "2026-05-06T15:10:31.152Z" }, - { url = "https://files.pythonhosted.org/packages/11/d4/5bdb0626801230139987385554c5d4c42255218ac906525bf4347f22cd95/orjson-3.11.9-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4fd66214623f1b17501df9f0543bef0b833979ab5b6ded1e1d123222866aa8c9", size = 141492, upload-time = "2026-05-06T15:10:32.641Z" }, - { url = "https://files.pythonhosted.org/packages/fa/88/a21fb53b3ede6703aede6dce4710ed4111e5b201cfa6bbff5e544f9d47d7/orjson-3.11.9-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:8ecc30f10465fa1e0ce13fd01d9e22c316e5053a719a8d915d4545a09a5ff677", size = 415087, upload-time = "2026-05-06T15:10:34.438Z" }, - { url = "https://files.pythonhosted.org/packages/3d/57/1b30daf70f0d8180e9a73cefbfbdd99e4bf19eb020466502b01fba7e0e50/orjson-3.11.9-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:97db4c94a7db398a5bd636273324f0b3fd58b350bbbac8bb380ceb825a9b40f4", size = 148031, upload-time = "2026-05-06T15:10:36.358Z" }, - { url = "https://files.pythonhosted.org/packages/04/83/45fbb6d962e260807f99441db9613cee868ceda4baceda59b3720a563f97/orjson-3.11.9-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9f78cf8fec5bd627f4082b8dfeac7871b43d7f3274904492a43dab39f18a19a0", size = 136915, upload-time = "2026-05-06T15:10:38.013Z" }, - { url = "https://files.pythonhosted.org/packages/5f/cc/2d10025f9056d376e4127ec05a5808b218d46f035fdc08178a5411b34250/orjson-3.11.9-cp313-cp313-win32.whl", hash = "sha256:d4087e5c0209a0a8efe4de3303c234b9c44d1174161dcd851e8eea07c7560b32", size = 131613, upload-time = "2026-05-06T15:10:39.569Z" }, - { url = "https://files.pythonhosted.org/packages/67/bd/2775ff28bfe883b9aa1ff348300542eb2ef1ee18d8ae0e3a49846817a865/orjson-3.11.9-cp313-cp313-win_amd64.whl", hash = "sha256:051b102c93b4f634e89f3866b07b9a9a98915ada541f4ec30f177067b2694979", size = 127086, upload-time = "2026-05-06T15:10:41.262Z" }, - { url = "https://files.pythonhosted.org/packages/91/2b/d26799e580939e32a7da9a39531bc9e58e15ca32ffaa6a8cb3e9bb0d22cd/orjson-3.11.9-cp313-cp313-win_arm64.whl", hash = "sha256:cce9127885941bd28f080cecf1f1d288336b7e0d812c345b08be88b572796254", size = 126696, upload-time = "2026-05-06T15:10:42.651Z" }, - { url = "https://files.pythonhosted.org/packages/8e/eb/5da01e356015aee6ecfa1187ced87aef51364e306f5e695dd52719bf0e78/orjson-3.11.9-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:b6ef1979adc4bc243523f1a2ba91418030a8e29b0a99cbe7e0e2d6807d4dce6e", size = 228465, upload-time = "2026-05-06T15:10:44.097Z" }, - { url = "https://files.pythonhosted.org/packages/64/62/3e0e0c14c957133bcd855395c62b55ed4e3b0af23ffea11b032cb1dcbdb1/orjson-3.11.9-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:f36b7f32c7c0db4a719f1fc5824db4a9c6f8bd1a354debb91faf26ebf3a4c71e", size = 128364, upload-time = "2026-05-06T15:10:45.839Z" }, - { url = "https://files.pythonhosted.org/packages/5a/5a/07d8aa117211a8ed7630bda80c8c0b14d04e0f8dcf99bcf49656e4a710eb/orjson-3.11.9-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08f4d8ebb44925c794e535b2bebc507cebf32209df81de22ae285fb0d8d66de0", size = 132063, upload-time = "2026-05-06T15:10:47.267Z" }, - { url = "https://files.pythonhosted.org/packages/d6/ec/4acaf21483e18aa945be74a474c74b434f284b549f275a0a39b9f98956e9/orjson-3.11.9-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6cc7923789694fd58f001cbcac7e47abc13af4d560ebbfcf3b41a8b1a0748124", size = 122356, upload-time = "2026-05-06T15:10:48.765Z" }, - { url = "https://files.pythonhosted.org/packages/13/d8/5f0555e7638801323b7a75850f92e7dfa891bc84fe27a1ba4449170d1200/orjson-3.11.9-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ea5c46eb2d3af39e806b986f4b09d5c2706a1f5afde3cbf7544ce6616127173c", size = 129592, upload-time = "2026-05-06T15:10:50.13Z" }, - { url = "https://files.pythonhosted.org/packages/b6/30/ed9860412a3603ceb3c5955bfd72d28b9d0e7ba6ed81add14f83d7114236/orjson-3.11.9-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f5d89a2ed90731df3be64bab0aa44f78bff39fdc9d71c291f4a8023aa46425b7", size = 140491, upload-time = "2026-05-06T15:10:51.582Z" }, - { url = "https://files.pythonhosted.org/packages/d0/17/adc514dea7ac7c505527febf884934b815d34f0c7b8693c1a8b39c5c4a57/orjson-3.11.9-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:25e4aed0312d292c09f61af25bba34e0b2c88546041472b09088c39a4d828af1", size = 127309, upload-time = "2026-05-06T15:10:53.329Z" }, - { url = "https://files.pythonhosted.org/packages/76/3e/c0b690253f0b82d86e99949af13533363acfb5432ecb5d53dd5b3bce9c34/orjson-3.11.9-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aaea64f3f467d22e70eeed68bdccb3bc4f83f650446c4a03c59f2cba28a108db", size = 134030, upload-time = "2026-05-06T15:10:54.988Z" }, - { url = "https://files.pythonhosted.org/packages/c1/7a/bc82a0bb25e9faaf92dc4d9ef002732efc09737706af83e346788641d4a7/orjson-3.11.9-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a028425d1b440c5d92a6be1e1a020739dfe67ea87d96c6dbe828c1b30041728b", size = 141482, upload-time = "2026-05-06T15:10:56.663Z" }, - { url = "https://files.pythonhosted.org/packages/01/55/e69188b939f77d5d32a9833745ace31ea5ccae3ab613a1ec185d3cd2c4fb/orjson-3.11.9-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:5b192c6cf397e4455b11523c5cf2b18ed084c1bbd61b6c0926344d2129481972", size = 415178, upload-time = "2026-05-06T15:10:58.446Z" }, - { url = "https://files.pythonhosted.org/packages/2e/1a/b8a5a7ac527e80b9cb11d51e3f6689b709279183264b9ec5c7bc680bb8b5/orjson-3.11.9-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ea407d4ccf5891d667d045fecae97a7a1e5e87b3b97f97ae1803c2e741130be0", size = 148089, upload-time = "2026-05-06T15:11:00.441Z" }, - { url = "https://files.pythonhosted.org/packages/97/4e/00503f64204bf859b37213a63927028f30fb6268cd8677fb0a5ad48155e1/orjson-3.11.9-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5f63aaf97afd9f6dec5b1a68e1b8da12bfccb4cb9a9a65c3e0b6c847849e7586", size = 136921, upload-time = "2026-05-06T15:11:02.176Z" }, - { url = "https://files.pythonhosted.org/packages/0d/ba/a23b82a0a8d0ed7bed4e5f5035aae751cad4ff6a1e8d2ecd14d8860f5929/orjson-3.11.9-cp314-cp314-win32.whl", hash = "sha256:e30ab17845bb9fa54ccf67fa4f9f5282652d54faa6d17452f47d0f369d038673", size = 131638, upload-time = "2026-05-06T15:11:03.696Z" }, - { url = "https://files.pythonhosted.org/packages/f3/c3/0c6798456bade745c75c452342dabacce5798196483e77e643be1f53877d/orjson-3.11.9-cp314-cp314-win_amd64.whl", hash = "sha256:32ef5f4283a3be81913947d19608eacb7c6608026851123790cd9cc8982af34b", size = 127078, upload-time = "2026-05-06T15:11:05.123Z" }, - { url = "https://files.pythonhosted.org/packages/16/21/5a3f1e8913103b703a436a5664238e5b965ec392b555fe68943ea3691e6b/orjson-3.11.9-cp314-cp314-win_arm64.whl", hash = "sha256:eebdbdeef0094e4f5aefa20dcd4eb2368ab5e7a3b4edea27f1e7b2892e009cf9", size = 126687, upload-time = "2026-05-06T15:11:06.602Z" }, +version = "3.13.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f2/72/380b97dc45bd162d23afe5194721ef678d9eac7cfaa549fe2873f7f0a518/orjson-3.13.0.tar.gz", hash = "sha256:d1de5eb04485110c5da4c657e49168995d55e076b1ce60f1a042e254f4186c4f", size = 2732604, upload-time = "2026-10-07T14:09:25.719Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ce/a3/0be3b115907fea61ed340639fb0e1562cd18969bad5b3f486f808197aaff/orjson-3.13.0-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:948bad47f2e2e43527f14248364a0e5dee26dd3184691010ec4a1ebeb0fd6771", size = 223146, upload-time = "2026-10-07T14:08:06.474Z" }, + { url = "https://files.pythonhosted.org/packages/9e/f7/665935edb16163f8b764182e29a30cf056947a66893ed032191e5f01eb3d/orjson-3.13.0-cp311-cp311-macosx_15_0_arm64.whl", hash = "sha256:1807c2fa49d393c7ee95fd1ef1b39cbb24aa3ccd81f30b84503ba59407666960", size = 123546, upload-time = "2026-10-07T14:08:08.324Z" }, + { url = "https://files.pythonhosted.org/packages/67/ec/e7cde480c0e212594d17ba2b2bd210c002052e9147fc1a1aeafaabe722fb/orjson-3.13.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:637dbca1fccffe83780e806fbc0f17427c0c59bf822528eb0acc8f0aa9f19acb", size = 113290, upload-time = "2026-10-07T14:08:09.816Z" }, + { url = "https://files.pythonhosted.org/packages/36/59/4455fb11a297af73611dfc437f0f89456220227ed1cb1544a5a0ee9d6c03/orjson-3.13.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:554948becd1110123ef9f6a6e1310fd92b2d07d2cbac6dbf65df3de75702e736", size = 130342, upload-time = "2026-10-07T14:08:11.253Z" }, + { url = "https://files.pythonhosted.org/packages/ca/80/0eec5fbde2e52407646b4cb3118f63175bdcee1e2390c2759dc96e0bc62a/orjson-3.13.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd9d9a101bd8dbfad112170f009cd155e52bb8c936468821a0d03cbb96c0e426", size = 129138, upload-time = "2026-10-07T14:08:12.814Z" }, + { url = "https://files.pythonhosted.org/packages/cd/cc/c0874f13819ae346d69ca00d074d464710b494abd4442bdebf75ac404a98/orjson-3.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:89bcf2d4bc6c9a7e1763c8cf534f38712e66b76a0fefda7fb7785462f0d635e4", size = 130518, upload-time = "2026-10-07T14:08:14.392Z" }, + { url = "https://files.pythonhosted.org/packages/25/ab/140dd9adff84bf64b862c4fcfe2d055af6014d5ba03a075f95c9addb2ec7/orjson-3.13.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a79cdc4934fe81f593072c94e13da3095e9d41c2deef8f6ff2901794ca1c5042", size = 134924, upload-time = "2026-10-07T14:08:16.09Z" }, + { url = "https://files.pythonhosted.org/packages/08/0a/e8f6deb032b1d98a39043cf99b863d8b9e842e2ffc2d2067d2e2a88c18e4/orjson-3.13.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:50a5202ba388b3850ba24437951727d3aa6d79a21964a30ae8dc6a059a5fd34c", size = 126704, upload-time = "2026-10-07T14:08:17.439Z" }, + { url = "https://files.pythonhosted.org/packages/af/cf/be64b99ff75f7983488390d4ef5df72115119770eed295691c0a715d492a/orjson-3.13.0-cp311-cp311-win_amd64.whl", hash = "sha256:a0377d6962fa431c93ecd78fdea771bb62ec545b24ee0c5d4e32acf2260af259", size = 121287, upload-time = "2026-10-07T14:08:18.843Z" }, + { url = "https://files.pythonhosted.org/packages/ca/ab/1b8ca186baf3420f12db1f2819fcc5f2cae69e4cf051168501726a64c0fa/orjson-3.13.0-cp311-cp311-win_arm64.whl", hash = "sha256:1d84820b2ec4ac975cba482214032de5b0dbdd17046170c98e642ef9c4a4ee4b", size = 126314, upload-time = "2026-10-07T14:08:20.452Z" }, + { url = "https://files.pythonhosted.org/packages/98/17/ed65f84ed5ed6a1e06eb628611b4172e7480fc4ad92594856751a6363cac/orjson-3.13.0-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:fb8644dc6d705e1269ed2842bf4dbe2b4e50d670de503bf79d5cef3a5148a4c7", size = 223063, upload-time = "2026-10-07T14:08:21.979Z" }, + { url = "https://files.pythonhosted.org/packages/6f/4d/9332eb96d2e379384be0f211f543835eebc81f460c9403b84abe1294c431/orjson-3.13.0-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:6ff2a2c67f35202f7d823753d38ad371a9b7fc297567cdfff4420e763cb9f6f8", size = 123364, upload-time = "2026-10-07T14:08:24.026Z" }, + { url = "https://files.pythonhosted.org/packages/b4/06/558456b7da27e974a8c9ea09117b07119f6fa131cd62b8b9ecad9eea94e1/orjson-3.13.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:65c4e0e106ccc7265b488385659117a6805c37d042f737558ecd68aa0c67ad8f", size = 113199, upload-time = "2026-10-07T14:08:25.476Z" }, + { url = "https://files.pythonhosted.org/packages/b7/f2/1187a9c09965620348262ec0f406868f6d7c234b2e9b5ee51020bdde5748/orjson-3.13.0-cp312-cp312-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:fbbad6b9b1da43f25c1f5b20cd5a268e028a2fc95d5a8d1ade6059973bc71584", size = 130329, upload-time = "2026-10-07T14:08:26.877Z" }, + { url = "https://files.pythonhosted.org/packages/46/07/5d1a151bc11600434fe799e73abfc6a4d463d02e149a20e47c59d3a985ae/orjson-3.13.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae1d895cf7bbfd50ef34bb63bb727b14514f259f3e3f8dd010783bd38e864c6e", size = 129072, upload-time = "2026-10-07T14:08:28.355Z" }, + { url = "https://files.pythonhosted.org/packages/ea/8c/bb07c368abbf4021c4cd01c12edb526e00090f7f750ff1b88da6e6b6c7a6/orjson-3.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bceadfd314bd238f584fc229a4bbaf0e573597e7a026dec5429fbf29fd66c641", size = 130612, upload-time = "2026-10-07T14:08:30.041Z" }, + { url = "https://files.pythonhosted.org/packages/d2/8d/4b66d19619ed344ac000ffea7c006477d0061d580646e736ef0e203759e8/orjson-3.13.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b74c30e56346aad067937d766846ee74c231d1d18aad3f324e9b9261de3b2d5e", size = 134632, upload-time = "2026-10-07T14:08:31.474Z" }, + { url = "https://files.pythonhosted.org/packages/ea/88/f8221f6593e37eb26ec4706e185b9ac6f38ff0c8f7bad5459844031ffd2d/orjson-3.13.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:4329c19b8a25693f60a77b867c9d2a3ab637b20e36f5b7bea7f5acb492b44b15", size = 126807, upload-time = "2026-10-07T14:08:32.914Z" }, + { url = "https://files.pythonhosted.org/packages/58/9d/a1ca7321eeafd7d72e174cdc388cc96301f41516d863e7b1f64f0a1735be/orjson-3.13.0-cp312-cp312-win_amd64.whl", hash = "sha256:b571236d8393edcd3236e07423f762bfcf571f852aad667a3bce9e7b755e0790", size = 121538, upload-time = "2026-10-07T14:08:34.325Z" }, + { url = "https://files.pythonhosted.org/packages/d0/a0/1f19b4779c910104370932fceb9ed436b47ac077f297db74008062525c04/orjson-3.13.0-cp312-cp312-win_arm64.whl", hash = "sha256:8594956a75223f657e1e68c568c0eeb3dd145f02cd6b78a47fd9a8095dbc4eae", size = 126259, upload-time = "2026-10-07T14:08:35.765Z" }, + { url = "https://files.pythonhosted.org/packages/a9/56/f8ad2546150168858c16915c452b00eecb79597597524d1ad6ae14ad4eab/orjson-3.13.0-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:64e8f345048d988c8b68d3882e5d41028fca1219a9939b32e4a77be34c8ae8e3", size = 222892, upload-time = "2026-10-07T14:08:37.495Z" }, + { url = "https://files.pythonhosted.org/packages/1f/19/725d23160b2471a3f27026c55bb79af34687652d8be8f5f583cee5dcd42f/orjson-3.13.0-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:ded33b972cffdaf4ca0ac917338ab61d2bb10d68987dbcae641c313fbfdbf499", size = 123319, upload-time = "2026-10-07T14:08:38.989Z" }, + { url = "https://files.pythonhosted.org/packages/ac/08/e5d81a00b22c73dfcb60d80da3bd92d5a7684346593536565f184dbae3c9/orjson-3.13.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:45e34deb3437509f4ec9888dd9ee5dc426cfe21be10f1eb4ea3a9e4d33034f9e", size = 113196, upload-time = "2026-10-07T14:08:40.383Z" }, + { url = "https://files.pythonhosted.org/packages/67/78/fda6117c69a43e470b1e9dff38dd8c5f0bc6fd8a47e4d4561ab023039335/orjson-3.13.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:9825b954155b345c4759f24e5f8d652b9aec2261bb5d4e1abe06bba0a1200535", size = 130245, upload-time = "2026-10-07T14:08:41.878Z" }, + { url = "https://files.pythonhosted.org/packages/6d/31/d0cfebd456defb234414795ae7599696bf124843dfe077d0c9ece0c93554/orjson-3.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b081f0e7b600ff24513dec4ca75507fa05e904607847e386e8310d5b7b96b6c7", size = 128981, upload-time = "2026-10-07T14:08:43.716Z" }, + { url = "https://files.pythonhosted.org/packages/45/46/f8d83189ff5b7b2ff225a58c5908618cc4e86afe09e65d17a30ac68c9da4/orjson-3.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cbed5f4c4b88d94bcc36115f4c3bb3aa25da1563a5c3328aa3acebce2b083040", size = 130370, upload-time = "2026-10-07T14:08:45.132Z" }, + { url = "https://files.pythonhosted.org/packages/e6/6a/d6344c305003ea826b3fa0482645a897a3cd6d477ed74e1fe15d3322cb23/orjson-3.13.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e9b61676116f755126b90e740a9cff36b91562f47ec330056cc88cc3b9f02f4b", size = 134595, upload-time = "2026-10-07T14:08:46.63Z" }, + { url = "https://files.pythonhosted.org/packages/9f/52/d73fa44f88d53e02d10de1cf77c16ed13204ff5bca47e1692da6b406619c/orjson-3.13.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3ef75ed7e81dae34a3649f82df52cd85f9ac839a7d6ec78ab355b33b3b27ef7f", size = 126513, upload-time = "2026-10-07T14:08:48.111Z" }, + { url = "https://files.pythonhosted.org/packages/fb/f8/bcfc50b4ab851c4f9c0ee62f52bf3b28f0bcd0d9fe08e0ad98d4585148db/orjson-3.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:4ee06e53b998c71ce3eb93b86222912fdd9dcced685ac64d4525d36fac338ea4", size = 121371, upload-time = "2026-10-07T14:08:49.549Z" }, + { url = "https://files.pythonhosted.org/packages/7b/7a/d6927845712ec2b1e89263cd12d7203531db185dbad67f914226f2fca156/orjson-3.13.0-cp313-cp313-win_arm64.whl", hash = "sha256:89efecad02515df7f318d0613b5dfd6d2a1acd323a2b8294712789a715945525", size = 126134, upload-time = "2026-10-07T14:08:51.118Z" }, + { url = "https://files.pythonhosted.org/packages/f0/10/98b5a3cdc086abf78d8cd20bb0cba124485d4b6a745722197bd209d967a5/orjson-3.13.0-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a7bfc7db961c7d96cb75889dc6a1e4ae1e91d87ee61da564f582bd742b8dfeef", size = 222889, upload-time = "2026-10-07T14:08:52.673Z" }, + { url = "https://files.pythonhosted.org/packages/22/7c/7728c5280ab5202f4891ff4b0b96e2e1dbd5520dfee53edf083c54409a64/orjson-3.13.0-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:91d933e668ff0ffe164d7c2daec36beba6d1ce7fadb71538fbe142a71f8a1e6e", size = 123312, upload-time = "2026-10-07T14:08:54.25Z" }, + { url = "https://files.pythonhosted.org/packages/a9/a5/d9a44321e6f66c0f64b45be587395f87ad94cb447bce7d92286f6b97d46a/orjson-3.13.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:6c8bfe728b81b0fd58a3c7f3f9c5a113f87f2992c9948e0f28707aafd737c0bc", size = 113146, upload-time = "2026-10-07T14:08:55.803Z" }, + { url = "https://files.pythonhosted.org/packages/80/da/d95c80d413f288feb471e16d82e5c1512d2439728e3bac917d058c31f098/orjson-3.13.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:e8e05549f3b30f9d8a8e28c5aba11cc2a4b90b90961ec685ca58444b0815fc09", size = 130348, upload-time = "2026-10-07T14:08:57.31Z" }, + { url = "https://files.pythonhosted.org/packages/04/0f/36fdfb32ad1852997bac00e3ce52c7888d8a1094ba9dcdcbb22fcc6b953a/orjson-3.13.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c749ab3ac30b5ab1ffb7677f8b92eacfdfdc5260210baa398f845bc3714c05d8", size = 128971, upload-time = "2026-10-07T14:08:58.843Z" }, + { url = "https://files.pythonhosted.org/packages/25/de/a82acf93bdcca0c79ccff25ef0c6868d24ccbc2e72f21fae39c8cabce4f1/orjson-3.13.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58a9619d88f8818d9ab6b39d70d203789457ba13c1ed5d274f33ce9ae7e81a36", size = 130359, upload-time = "2026-10-07T14:09:00.412Z" }, + { url = "https://files.pythonhosted.org/packages/71/ca/2bc4f7697cb9f6897bf61aca11803df096a5d971bf69ef5538b243bb1fa8/orjson-3.13.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:2715c4808d1571029ed18fd07a82140bf3ba7def0dc89f8d015c416e3649bf87", size = 134583, upload-time = "2026-10-07T14:09:02.047Z" }, + { url = "https://files.pythonhosted.org/packages/23/b3/12b1af9b87ff9fa0aaf4e5724c87672b30bb5de76f275f7fac64e8219c1b/orjson-3.13.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:08bf722f923d2100bc5e5a5dcf72c656db557049c1bea26582fdd5dd9d5395a1", size = 126500, upload-time = "2026-10-07T14:09:03.863Z" }, + { url = "https://files.pythonhosted.org/packages/ad/ea/cf257fc8a7f4b18f5677c22b3a9673a1b51d4b7161f25177ed389b76560e/orjson-3.13.0-cp314-cp314-win_amd64.whl", hash = "sha256:6adcaa85d79977659a448b4123a88eb33511a11ed2db243535ad7ea88a6668e0", size = 121378, upload-time = "2026-10-07T14:09:05.375Z" }, + { url = "https://files.pythonhosted.org/packages/05/0a/9f4643f849e9918eab11983b83928af3aac14bedb04002e28e885ee1936f/orjson-3.13.0-cp314-cp314-win_arm64.whl", hash = "sha256:83705c12b4afde10c62a5dd3fe6fdb21b7900bd0dcd5af1c85612ae94d0ee590", size = 126123, upload-time = "2026-10-07T14:09:07.085Z" }, + { url = "https://files.pythonhosted.org/packages/8c/15/d265f2b556c0c7c0b30ea830316d6e5af5b85dde08f234a1ebed60fab386/orjson-3.13.0-cp315-cp315-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:5ef4d4157392a0439b74f7e49e5636b4ea43d9616bd0884effc0195fffcaa2d5", size = 223305, upload-time = "2026-10-07T14:09:08.84Z" }, + { url = "https://files.pythonhosted.org/packages/0c/97/781be8b80a33b8171b3f5acea941af47182c8b4b5827c2b7c3fea706f21c/orjson-3.13.0-cp315-cp315-macosx_15_0_arm64.whl", hash = "sha256:84d87e322e1674408f85adea63f11aa19201eba082755aec20ebc217f493bbd2", size = 123515, upload-time = "2026-10-07T14:09:10.792Z" }, + { url = "https://files.pythonhosted.org/packages/20/68/011bb98fa7da7b430b363db1bb7ef9160c438fc5c43e7468fb593c220037/orjson-3.13.0-cp315-cp315-manylinux_2_39_aarch64.whl", hash = "sha256:8c2ac5c09b017c484df1b4c68b2cf250b4e8ba08204cb58e7cd6cbbc71a9c902", size = 129222, upload-time = "2026-10-07T14:09:12.542Z" }, + { url = "https://files.pythonhosted.org/packages/86/7f/d96fa2aedaaec14c095ea9cd48d2158fdf33c0f4fd6e7a598d899d536b03/orjson-3.13.0-cp315-cp315-manylinux_2_39_armv7l.whl", hash = "sha256:51d11525bc3ca736fa97ce4e4c7da9999cc00bf261522bede43b4e7531bd7965", size = 113152, upload-time = "2026-10-07T14:09:14.059Z" }, + { url = "https://files.pythonhosted.org/packages/e9/2d/ee77aa685c54bd920a1f0e2936986b46269adb0d72bf5098c2c694dbeb36/orjson-3.13.0-cp315-cp315-manylinux_2_39_i686.whl", hash = "sha256:ac81530647c3423107cf61c3481e91f57134e9ddfb6ef83f5150ccbdcbc3a3ee", size = 130749, upload-time = "2026-10-07T14:09:15.835Z" }, + { url = "https://files.pythonhosted.org/packages/48/eb/3411fbfdad61b3f3af22343b5af7ed5c8a1679e35f442e8f1b229b33040e/orjson-3.13.0-cp315-cp315-manylinux_2_39_x86_64.whl", hash = "sha256:0526a3456db67b264c6d661b5f090077f326b6cd074d0ef53a72763595dec5d7", size = 130471, upload-time = "2026-10-07T14:09:17.463Z" }, + { url = "https://files.pythonhosted.org/packages/87/71/abdc2b8c70b8d85a6cb22f404da0f52d7d712f9d49cda039a0cb1adcb973/orjson-3.13.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:dd61e64802d51d1e4f16531c64536354fc3bc67932dc0cff254044f72bf0f187", size = 134793, upload-time = "2026-10-07T14:09:19.084Z" }, + { url = "https://files.pythonhosted.org/packages/0a/2e/1c13552d8b0241083116de02b2f284ee38501ef06ebfb79893f741538168/orjson-3.13.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:c5e3ccaac3106e8fa6e2f2f6962449d7c757d7b067e41b395a19d6f0d6cec892", size = 126711, upload-time = "2026-10-07T14:09:20.645Z" }, + { url = "https://files.pythonhosted.org/packages/85/f8/d4ece953a519d064cf690adaa68cd389d5b64fd261726334841b32978d6a/orjson-3.13.0-cp315-cp315-win_amd64.whl", hash = "sha256:7804dd1d6161da0e53b284c2aebf20f23e78eaac617300803e1467d1828d987f", size = 121496, upload-time = "2026-10-07T14:09:22.359Z" }, + { url = "https://files.pythonhosted.org/packages/70/cf/f691388c4a9bc4af7dcc1648c4b40845869908b517d7c0009d005c7d1fa1/orjson-3.13.0-cp315-cp315-win_arm64.whl", hash = "sha256:f5c05a8fee59309f537590a1ff12d3c1009c485e96a50a9ac60dd085c09d0fc0", size = 126260, upload-time = "2026-10-07T14:09:23.928Z" }, ] [[package]] name = "ormsgpack" -version = "1.12.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/12/0c/f1761e21486942ab9bb6feaebc610fa074f7c5e496e6962dea5873348077/ormsgpack-1.12.2.tar.gz", hash = "sha256:944a2233640273bee67521795a73cf1e959538e0dfb7ac635505010455e53b33", size = 39031, upload-time = "2026-01-18T20:55:28.023Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/93/fa/a91f70829ebccf6387c4946e0a1a109f6ba0d6a28d65f628bedfad94b890/ormsgpack-1.12.2-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:c1429217f8f4d7fcb053523bbbac6bed5e981af0b85ba616e6df7cce53c19657", size = 378262, upload-time = "2026-01-18T20:55:22.284Z" }, - { url = "https://files.pythonhosted.org/packages/5f/62/3698a9a0c487252b5c6a91926e5654e79e665708ea61f67a8bdeceb022bf/ormsgpack-1.12.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5f13034dc6c84a6280c6c33db7ac420253852ea233fc3ee27c8875f8dd651163", size = 203034, upload-time = "2026-01-18T20:55:53.324Z" }, - { url = "https://files.pythonhosted.org/packages/66/3a/f716f64edc4aec2744e817660b317e2f9bb8de372338a95a96198efa1ac1/ormsgpack-1.12.2-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:59f5da97000c12bc2d50e988bdc8576b21f6ab4e608489879d35b2c07a8ab51a", size = 210538, upload-time = "2026-01-18T20:55:20.097Z" }, - { url = "https://files.pythonhosted.org/packages/72/30/a436be9ce27d693d4e19fa94900028067133779f09fc45776db3f689c822/ormsgpack-1.12.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9e4459c3f27066beadb2b81ea48a076a417aafffff7df1d3c11c519190ed44f2", size = 212401, upload-time = "2026-01-18T20:55:46.447Z" }, - { url = "https://files.pythonhosted.org/packages/10/c5/cde98300fd33fee84ca71de4751b19aeeca675f0cf3c0ec4b043f40f3b76/ormsgpack-1.12.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:7a1c460655d7288407ffa09065e322a7231997c0d62ce914bf3a96ad2dc6dedd", size = 387080, upload-time = "2026-01-18T20:56:00.884Z" }, - { url = "https://files.pythonhosted.org/packages/6a/31/30bf445ef827546747c10889dd254b3d84f92b591300efe4979d792f4c41/ormsgpack-1.12.2-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:458e4568be13d311ef7d8877275e7ccbe06c0e01b39baaac874caaa0f46d826c", size = 482346, upload-time = "2026-01-18T20:55:39.831Z" }, - { url = "https://files.pythonhosted.org/packages/2e/f5/e1745ddf4fa246c921b5ca253636c4c700ff768d78032f79171289159f6e/ormsgpack-1.12.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:8cde5eaa6c6cbc8622db71e4a23de56828e3d876aeb6460ffbcb5b8aff91093b", size = 425178, upload-time = "2026-01-18T20:55:27.106Z" }, - { url = "https://files.pythonhosted.org/packages/8d/a2/e6532ed7716aed03dede8df2d0d0d4150710c2122647d94b474147ccd891/ormsgpack-1.12.2-cp310-cp310-win_amd64.whl", hash = "sha256:dc7a33be14c347893edbb1ceda89afbf14c467d593a5ee92c11de4f1666b4d4f", size = 117183, upload-time = "2026-01-18T20:55:55.52Z" }, - { url = "https://files.pythonhosted.org/packages/4b/08/8b68f24b18e69d92238aa8f258218e6dfeacf4381d9d07ab8df303f524a9/ormsgpack-1.12.2-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:bd5f4bf04c37888e864f08e740c5a573c4017f6fd6e99fa944c5c935fabf2dd9", size = 378266, upload-time = "2026-01-18T20:55:59.876Z" }, - { url = "https://files.pythonhosted.org/packages/0d/24/29fc13044ecb7c153523ae0a1972269fcd613650d1fa1a9cec1044c6b666/ormsgpack-1.12.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:34d5b28b3570e9fed9a5a76528fc7230c3c76333bc214798958e58e9b79cc18a", size = 203035, upload-time = "2026-01-18T20:55:30.59Z" }, - { url = "https://files.pythonhosted.org/packages/ad/c2/00169fb25dd8f9213f5e8a549dfb73e4d592009ebc85fbbcd3e1dcac575b/ormsgpack-1.12.2-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3708693412c28f3538fb5a65da93787b6bbab3484f6bc6e935bfb77a62400ae5", size = 210539, upload-time = "2026-01-18T20:55:48.569Z" }, - { url = "https://files.pythonhosted.org/packages/1b/33/543627f323ff3c73091f51d6a20db28a1a33531af30873ea90c5ac95a9b5/ormsgpack-1.12.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:43013a3f3e2e902e1d05e72c0f1aeb5bedbb8e09240b51e26792a3c89267e181", size = 212401, upload-time = "2026-01-18T20:56:10.101Z" }, - { url = "https://files.pythonhosted.org/packages/e8/5d/f70e2c3da414f46186659d24745483757bcc9adccb481a6eb93e2b729301/ormsgpack-1.12.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7c8b1667a72cbba74f0ae7ecf3105a5e01304620ed14528b2cb4320679d2869b", size = 387082, upload-time = "2026-01-18T20:56:12.047Z" }, - { url = "https://files.pythonhosted.org/packages/c0/d6/06e8dc920c7903e051f30934d874d4afccc9bb1c09dcaf0bc03a7de4b343/ormsgpack-1.12.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:df6961442140193e517303d0b5d7bc2e20e69a879c2d774316125350c4a76b92", size = 482346, upload-time = "2026-01-18T20:56:05.152Z" }, - { url = "https://files.pythonhosted.org/packages/66/c4/f337ac0905eed9c393ef990c54565cd33644918e0a8031fe48c098c71dbf/ormsgpack-1.12.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:c6a4c34ddef109647c769d69be65fa1de7a6022b02ad45546a69b3216573eb4a", size = 425181, upload-time = "2026-01-18T20:55:37.83Z" }, - { url = "https://files.pythonhosted.org/packages/78/29/6d5758fabef3babdf4bbbc453738cc7de9cd3334e4c38dd5737e27b85653/ormsgpack-1.12.2-cp311-cp311-win_amd64.whl", hash = "sha256:73670ed0375ecc303858e3613f407628dd1fca18fe6ac57b7b7ce66cc7bb006c", size = 117182, upload-time = "2026-01-18T20:55:31.472Z" }, - { url = "https://files.pythonhosted.org/packages/c4/57/17a15549233c37e7fd054c48fe9207492e06b026dbd872b826a0b5f833b6/ormsgpack-1.12.2-cp311-cp311-win_arm64.whl", hash = "sha256:c2be829954434e33601ae5da328cccce3266b098927ca7a30246a0baec2ce7bd", size = 111464, upload-time = "2026-01-18T20:55:38.811Z" }, - { url = "https://files.pythonhosted.org/packages/4c/36/16c4b1921c308a92cef3bf6663226ae283395aa0ff6e154f925c32e91ff5/ormsgpack-1.12.2-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:7a29d09b64b9694b588ff2f80e9826bdceb3a2b91523c5beae1fab27d5c940e7", size = 378618, upload-time = "2026-01-18T20:55:50.835Z" }, - { url = "https://files.pythonhosted.org/packages/c0/68/468de634079615abf66ed13bb5c34ff71da237213f29294363beeeca5306/ormsgpack-1.12.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0b39e629fd2e1c5b2f46f99778450b59454d1f901bc507963168985e79f09c5d", size = 203186, upload-time = "2026-01-18T20:56:11.163Z" }, - { url = "https://files.pythonhosted.org/packages/73/a9/d756e01961442688b7939bacd87ce13bfad7d26ce24f910f6028178b2cc8/ormsgpack-1.12.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:958dcb270d30a7cb633a45ee62b9444433fa571a752d2ca484efdac07480876e", size = 210738, upload-time = "2026-01-18T20:56:09.181Z" }, - { url = "https://files.pythonhosted.org/packages/7b/ba/795b1036888542c9113269a3f5690ab53dd2258c6fb17676ac4bd44fcf94/ormsgpack-1.12.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58d379d72b6c5e964851c77cfedfb386e474adee4fd39791c2c5d9efb53505cc", size = 212569, upload-time = "2026-01-18T20:56:06.135Z" }, - { url = "https://files.pythonhosted.org/packages/6c/aa/bff73c57497b9e0cba8837c7e4bcab584b1a6dbc91a5dd5526784a5030c8/ormsgpack-1.12.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8463a3fc5f09832e67bdb0e2fda6d518dc4281b133166146a67f54c08496442e", size = 387166, upload-time = "2026-01-18T20:55:36.738Z" }, - { url = "https://files.pythonhosted.org/packages/d3/cf/f8283cba44bcb7b14f97b6274d449db276b3a86589bdb363169b51bc12de/ormsgpack-1.12.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:eddffb77eff0bad4e67547d67a130604e7e2dfbb7b0cde0796045be4090f35c6", size = 482498, upload-time = "2026-01-18T20:55:29.626Z" }, - { url = "https://files.pythonhosted.org/packages/05/be/71e37b852d723dfcbe952ad04178c030df60d6b78eba26bfd14c9a40575e/ormsgpack-1.12.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fcd55e5f6ba0dbce624942adf9f152062135f991a0126064889f68eb850de0dd", size = 425518, upload-time = "2026-01-18T20:55:49.556Z" }, - { url = "https://files.pythonhosted.org/packages/7a/0c/9803aa883d18c7ef197213cd2cbf73ba76472a11fe100fb7dab2884edf48/ormsgpack-1.12.2-cp312-cp312-win_amd64.whl", hash = "sha256:d024b40828f1dde5654faebd0d824f9cc29ad46891f626272dd5bfd7af2333a4", size = 117462, upload-time = "2026-01-18T20:55:47.726Z" }, - { url = "https://files.pythonhosted.org/packages/c8/9e/029e898298b2cc662f10d7a15652a53e3b525b1e7f07e21fef8536a09bb8/ormsgpack-1.12.2-cp312-cp312-win_arm64.whl", hash = "sha256:da538c542bac7d1c8f3f2a937863dba36f013108ce63e55745941dda4b75dbb6", size = 111559, upload-time = "2026-01-18T20:55:54.273Z" }, - { url = "https://files.pythonhosted.org/packages/eb/29/bb0eba3288c0449efbb013e9c6f58aea79cf5cb9ee1921f8865f04c1a9d7/ormsgpack-1.12.2-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:5ea60cb5f210b1cfbad8c002948d73447508e629ec375acb82910e3efa8ff355", size = 378661, upload-time = "2026-01-18T20:55:57.765Z" }, - { url = "https://files.pythonhosted.org/packages/6e/31/5efa31346affdac489acade2926989e019e8ca98129658a183e3add7af5e/ormsgpack-1.12.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f3601f19afdbea273ed70b06495e5794606a8b690a568d6c996a90d7255e51c1", size = 203194, upload-time = "2026-01-18T20:56:08.252Z" }, - { url = "https://files.pythonhosted.org/packages/eb/56/d0087278beef833187e0167f8527235ebe6f6ffc2a143e9de12a98b1ce87/ormsgpack-1.12.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:29a9f17a3dac6054c0dce7925e0f4995c727f7c41859adf9b5572180f640d172", size = 210778, upload-time = "2026-01-18T20:55:17.694Z" }, - { url = "https://files.pythonhosted.org/packages/1c/a2/072343e1413d9443e5a252a8eb591c2d5b1bffbe5e7bfc78c069361b92eb/ormsgpack-1.12.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:39c1bd2092880e413902910388be8715f70b9f15f20779d44e673033a6146f2d", size = 212592, upload-time = "2026-01-18T20:55:32.747Z" }, - { url = "https://files.pythonhosted.org/packages/a2/8b/a0da3b98a91d41187a63b02dda14267eefc2a74fcb43cc2701066cf1510e/ormsgpack-1.12.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:50b7249244382209877deedeee838aef1542f3d0fc28b8fe71ca9d7e1896a0d7", size = 387164, upload-time = "2026-01-18T20:55:40.853Z" }, - { url = "https://files.pythonhosted.org/packages/19/bb/6d226bc4cf9fc20d8eb1d976d027a3f7c3491e8f08289a2e76abe96a65f3/ormsgpack-1.12.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:5af04800d844451cf102a59c74a841324868d3f1625c296a06cc655c542a6685", size = 482516, upload-time = "2026-01-18T20:55:42.033Z" }, - { url = "https://files.pythonhosted.org/packages/fb/f1/bb2c7223398543dedb3dbf8bb93aaa737b387de61c5feaad6f908841b782/ormsgpack-1.12.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:cec70477d4371cd524534cd16472d8b9cc187e0e3043a8790545a9a9b296c258", size = 425539, upload-time = "2026-01-18T20:55:24.727Z" }, - { url = "https://files.pythonhosted.org/packages/7b/e8/0fb45f57a2ada1fed374f7494c8cd55e2f88ccd0ab0a669aa3468716bf5f/ormsgpack-1.12.2-cp313-cp313-win_amd64.whl", hash = "sha256:21f4276caca5c03a818041d637e4019bc84f9d6ca8baa5ea03e5cc8bf56140e9", size = 117459, upload-time = "2026-01-18T20:55:56.876Z" }, - { url = "https://files.pythonhosted.org/packages/7a/d4/0cfeea1e960d550a131001a7f38a5132c7ae3ebde4c82af1f364ccc5d904/ormsgpack-1.12.2-cp313-cp313-win_arm64.whl", hash = "sha256:baca4b6773d20a82e36d6fd25f341064244f9f86a13dead95dd7d7f996f51709", size = 111577, upload-time = "2026-01-18T20:55:43.605Z" }, - { url = "https://files.pythonhosted.org/packages/94/16/24d18851334be09c25e87f74307c84950f18c324a4d3c0b41dabdbf19c29/ormsgpack-1.12.2-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:bc68dd5915f4acf66ff2010ee47c8906dc1cf07399b16f4089f8c71733f6e36c", size = 378717, upload-time = "2026-01-18T20:55:26.164Z" }, - { url = "https://files.pythonhosted.org/packages/b5/a2/88b9b56f83adae8032ac6a6fa7f080c65b3baf9b6b64fd3d37bd202991d4/ormsgpack-1.12.2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:46d084427b4132553940070ad95107266656cb646ea9da4975f85cb1a6676553", size = 203183, upload-time = "2026-01-18T20:55:18.815Z" }, - { url = "https://files.pythonhosted.org/packages/a9/80/43e4555963bf602e5bdc79cbc8debd8b6d5456c00d2504df9775e74b450b/ormsgpack-1.12.2-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c010da16235806cf1d7bc4c96bf286bfa91c686853395a299b3ddb49499a3e13", size = 210814, upload-time = "2026-01-18T20:55:33.973Z" }, - { url = "https://files.pythonhosted.org/packages/78/e1/7cfbf28de8bca6efe7e525b329c31277d1b64ce08dcba723971c241a9d60/ormsgpack-1.12.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:18867233df592c997154ff942a6503df274b5ac1765215bceba7a231bea2745d", size = 212634, upload-time = "2026-01-18T20:55:28.634Z" }, - { url = "https://files.pythonhosted.org/packages/95/f8/30ae5716e88d792a4e879debee195653c26ddd3964c968594ddef0a3cc7e/ormsgpack-1.12.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b009049086ddc6b8f80c76b3955df1aa22a5fbd7673c525cd63bf91f23122ede", size = 387139, upload-time = "2026-01-18T20:56:02.013Z" }, - { url = "https://files.pythonhosted.org/packages/dc/81/aee5b18a3e3a0e52f718b37ab4b8af6fae0d9d6a65103036a90c2a8ffb5d/ormsgpack-1.12.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:1dcc17d92b6390d4f18f937cf0b99054824a7815818012ddca925d6e01c2e49e", size = 482578, upload-time = "2026-01-18T20:55:35.117Z" }, - { url = "https://files.pythonhosted.org/packages/bd/17/71c9ba472d5d45f7546317f467a5fc941929cd68fb32796ca3d13dcbaec2/ormsgpack-1.12.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f04b5e896d510b07c0ad733d7fce2d44b260c5e6c402d272128f8941984e4285", size = 425539, upload-time = "2026-01-18T20:56:04.009Z" }, - { url = "https://files.pythonhosted.org/packages/2e/a6/ac99cd7fe77e822fed5250ff4b86fa66dd4238937dd178d2299f10b69816/ormsgpack-1.12.2-cp314-cp314-win_amd64.whl", hash = "sha256:ae3aba7eed4ca7cb79fd3436eddd29140f17ea254b91604aa1eb19bfcedb990f", size = 117493, upload-time = "2026-01-18T20:56:07.343Z" }, - { url = "https://files.pythonhosted.org/packages/3a/67/339872846a1ae4592535385a1c1f93614138566d7af094200c9c3b45d1e5/ormsgpack-1.12.2-cp314-cp314-win_arm64.whl", hash = "sha256:118576ea6006893aea811b17429bfc561b4778fad393f5f538c84af70b01260c", size = 111579, upload-time = "2026-01-18T20:55:21.161Z" }, - { url = "https://files.pythonhosted.org/packages/49/c2/6feb972dc87285ad381749d3882d8aecbde9f6ecf908dd717d33d66df095/ormsgpack-1.12.2-cp314-cp314t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:7121b3d355d3858781dc40dafe25a32ff8a8242b9d80c692fd548a4b1f7fd3c8", size = 378721, upload-time = "2026-01-18T20:55:52.12Z" }, - { url = "https://files.pythonhosted.org/packages/a3/9a/900a6b9b413e0f8a471cf07830f9cf65939af039a362204b36bd5b581d8b/ormsgpack-1.12.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4ee766d2e78251b7a63daf1cddfac36a73562d3ddef68cacfb41b2af64698033", size = 203170, upload-time = "2026-01-18T20:55:44.469Z" }, - { url = "https://files.pythonhosted.org/packages/87/4c/27a95466354606b256f24fad464d7c97ab62bce6cc529dd4673e1179b8fb/ormsgpack-1.12.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:292410a7d23de9b40444636b9b8f1e4e4b814af7f1ef476e44887e52a123f09d", size = 212816, upload-time = "2026-01-18T20:55:23.501Z" }, - { url = "https://files.pythonhosted.org/packages/73/cd/29cee6007bddf7a834e6cd6f536754c0535fcb939d384f0f37a38b1cddb8/ormsgpack-1.12.2-cp314-cp314t-win_amd64.whl", hash = "sha256:837dd316584485b72ef451d08dd3e96c4a11d12e4963aedb40e08f89685d8ec2", size = 117232, upload-time = "2026-01-18T20:55:45.448Z" }, +version = "1.13.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/72/ae/aea2bee05bd61645daf97515174d71d8fd978a2c395b4dd5f0a5ada7facc/ormsgpack-1.13.0.tar.gz", hash = "sha256:4127e84b07816e1f36d557e95b5642041692df22bf77f2c2f563a2039ab8144e", size = 45467, upload-time = "2026-10-15T19:51:30.979Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2d/bc/7f7285cb06217751bff45c4e6d8a98509baf6afe2291549ef551dc2d5a86/ormsgpack-1.13.0-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:4615f5bfd4bef7bf6186c0677fe15bd8ef741c88c0183ea1578064078a3175af", size = 442833, upload-time = "2026-10-15T19:50:15.446Z" }, + { url = "https://files.pythonhosted.org/packages/68/f1/1fab220a4469c42337831090b14a190cfe625f966cc03e2a676f52d68d26/ormsgpack-1.13.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3ad79aeeb3335e851abe6216f7409328fce166dd192774eb0f02e8c671fe77e9", size = 244445, upload-time = "2026-10-15T19:50:17.735Z" }, + { url = "https://files.pythonhosted.org/packages/3f/61/38bb1b8dd7bb8f7f764539f2449287f967f62976ff8c030bfd1d054e0376/ormsgpack-1.13.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ffa23ab2fe9188f24c3f68428a2cb61b37c8b7f103af75a4700ad199339d6bfc", size = 248948, upload-time = "2026-10-15T19:50:20.325Z" }, + { url = "https://files.pythonhosted.org/packages/32/95/b7fc58012b596b477f4f4a360c98667d6a4dafd9791f61e8235c3d685c2d/ormsgpack-1.13.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c12feb508595b6fbe9e2eae35ac132dc819fb3d7bafff428c6e0a7934be3b99c", size = 251084, upload-time = "2026-10-15T19:50:21.764Z" }, + { url = "https://files.pythonhosted.org/packages/58/21/e74b936ba087fc4e123b0e119dd225b550d51a03627d07a24aa8fafec2ae/ormsgpack-1.13.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:840495450518a5fc21f47a412be387cdcccf3f6c14f35ac97f7c3317b2080889", size = 423497, upload-time = "2026-10-15T19:50:23.228Z" }, + { url = "https://files.pythonhosted.org/packages/a4/9c/21ffa391d8c1a73deb91d912c1ed622031b8aefed6621465e031131df5e5/ormsgpack-1.13.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:fc4a6f98828cbe0a4fce3171806504f3926d658b696ae4c7c6cf4bc44d462373", size = 465790, upload-time = "2026-10-15T19:50:24.85Z" }, + { url = "https://files.pythonhosted.org/packages/15/b0/a6283210086037418ba2a8cb1e2795772eadce9f301c2c0669b90c9e34eb/ormsgpack-1.13.0-cp311-cp311-win_amd64.whl", hash = "sha256:dcc34f07b883d96681385517110182fe319ba8a5cdd40c990560c0fe1e01a27f", size = 153758, upload-time = "2026-10-15T19:50:26.536Z" }, + { url = "https://files.pythonhosted.org/packages/ef/1d/ef43638664016a6cac64ee4ac2f96f8690d6a5b86b9384a16b4ed91bfdb0/ormsgpack-1.13.0-cp311-cp311-win_arm64.whl", hash = "sha256:a897a75d40e4c6f496d984eb2eaa7ca44fe0b0cade790e3a75ca3595428b4450", size = 150907, upload-time = "2026-10-15T19:50:27.769Z" }, + { url = "https://files.pythonhosted.org/packages/3d/f4/a8e286ff787c247cec785ceb1f438a59c52806d66636f5b3a46eada93cd4/ormsgpack-1.13.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:0036b68293a526b852fad7e490e30f4646fc360a76b4d587800c96bece9df657", size = 442511, upload-time = "2026-10-15T19:50:29.319Z" }, + { url = "https://files.pythonhosted.org/packages/e9/dc/95e81104f1cecc52caaa52983296b3d5d896035c8238f14ae8e7daf1117f/ormsgpack-1.13.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a22d85e6010676b8a6e9024c4f7fdeb56953684ea6679cc084d0ecb7d768b572", size = 246498, upload-time = "2026-10-15T19:50:30.974Z" }, + { url = "https://files.pythonhosted.org/packages/d9/82/ee80a587364a1cd4cd39a7e90089ef3ba2687e0c6ee8292a76ccc92398cd/ormsgpack-1.13.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6684d53e9bb1b20ebda36b8e746c3af8c9c2b33ae05f8f8558b57fe4a06e11d0", size = 249452, upload-time = "2026-10-15T19:50:32.799Z" }, + { url = "https://files.pythonhosted.org/packages/49/f1/1bc3710e6f1b8d4da288d949aa8c04d12d5265c23004799f0b102778ee2c/ormsgpack-1.13.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8187048ec7b9ec628f985954e2409248acfeb8732e2751305649eaaba7304db7", size = 254913, upload-time = "2026-10-15T19:50:34.24Z" }, + { url = "https://files.pythonhosted.org/packages/01/3a/73d98be73efc79e6b99ec967be0f285c47e90c9fa852f2a34d70074d72d2/ormsgpack-1.13.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4608875478521f10fc40d17b6f925b2f16e8e69265c6d86a8fb8e389d58853b3", size = 425884, upload-time = "2026-10-15T19:50:35.641Z" }, + { url = "https://files.pythonhosted.org/packages/b4/7c/127707749c3bd30cd6058e67604c1084a7680fe074d05b7445db9e023d25/ormsgpack-1.13.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:738d03e31651861c5582fecf2901cf473b8745f1c948aba7ee7770f3a8f89fec", size = 469643, upload-time = "2026-10-15T19:50:37.2Z" }, + { url = "https://files.pythonhosted.org/packages/0e/37/4732e2864fac58a878b941ef6a1cc385c6d22b924e7bfdbdd23a6b64b23c/ormsgpack-1.13.0-cp312-cp312-win_amd64.whl", hash = "sha256:03f579be28e7cab389815650ef003b0f47a2adc63f756d5064a3040b98553484", size = 157757, upload-time = "2026-10-15T19:50:38.816Z" }, + { url = "https://files.pythonhosted.org/packages/90/88/ea2c6f359356cdd8daecd21272709266580fa865eab969fb7ca406234a23/ormsgpack-1.13.0-cp312-cp312-win_arm64.whl", hash = "sha256:a40a974b8917949e3fdff71fa8b44bebd0e36a70bb4a40eb817653070cdc1afc", size = 152986, upload-time = "2026-10-15T19:50:40.126Z" }, + { url = "https://files.pythonhosted.org/packages/d3/26/a021066bf089ca5af395525d6f01f09d7ca3bd47e78251724cdaf3191164/ormsgpack-1.13.0-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:a50285a1910d8fd334b1b8c0108cd7574a0b50c7cde6581aea5bf23622b167ad", size = 442945, upload-time = "2026-10-15T19:50:41.638Z" }, + { url = "https://files.pythonhosted.org/packages/d9/03/bd0ee0fe7f41b6be15147ce01114b25cc0a0556c35a8feade2a175399b8a/ormsgpack-1.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1294f8c325a4ba77f6a49b8e3430024e912a7ba845c5ad03bde281422c82698b", size = 246924, upload-time = "2026-10-15T19:50:43.039Z" }, + { url = "https://files.pythonhosted.org/packages/2a/9a/95b2bb2c660a514c16e8daab50eeefd6eee4149e9bf89c7e0207c97a7c89/ormsgpack-1.13.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c20b99d0d375681529e621b47491ef684a1538b55981ff05281d4f83f00b900d", size = 249462, upload-time = "2026-10-15T19:50:44.742Z" }, + { url = "https://files.pythonhosted.org/packages/12/d8/6e06361ae376131982c43a56d53bf7ef0a36149481b8cea6413e28ce8794/ormsgpack-1.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fc8eff22184cbfef56f0a4a6ca4fedc38174b2447ecef517fc050d6340546345", size = 255216, upload-time = "2026-10-15T19:50:46.408Z" }, + { url = "https://files.pythonhosted.org/packages/5d/6d/d18aa8463b35aec4737d9fd670afd6813d1e287328bd1caabe240e7490ca/ormsgpack-1.13.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1428ed9cfc1fd7dc5fa75ea4cb8f1f445428e3d06a478dcad6e7f357555ea86a", size = 426174, upload-time = "2026-10-15T19:50:47.783Z" }, + { url = "https://files.pythonhosted.org/packages/04/eb/d87ab35e6c7e34be9e0f147f9d82f4e71d10a8c87515b950471d00b2f5c1/ormsgpack-1.13.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0633eeb91eada7609881823aae77435f57ac7f49ce39b1657c823b139536b20", size = 469990, upload-time = "2026-10-15T19:50:49.231Z" }, + { url = "https://files.pythonhosted.org/packages/35/ec/c0746317254800377ca815c48496b8cd833de0d91ab221886b2c2c20259f/ormsgpack-1.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:8ae078104fceb107250d1b792a4c3b72bc9a0e9536c11c4dd0b6cc6ffc44ba9c", size = 158109, upload-time = "2026-10-15T19:50:50.674Z" }, + { url = "https://files.pythonhosted.org/packages/0d/5b/e644b5ab0e4b1c66c00e66c5d4b7ad5cd9003735f8bb9f15e4c8d3d6b38f/ormsgpack-1.13.0-cp313-cp313-win_arm64.whl", hash = "sha256:6a2f510666f5094a8187086bc3c82509a6ceccdb0f73f3cdd5beb0245a2867cf", size = 153241, upload-time = "2026-10-15T19:50:52.041Z" }, + { url = "https://files.pythonhosted.org/packages/0a/1a/3094130c991b4af52a884a5ce49dc1164e4e41e32108939596bcf2aac09e/ormsgpack-1.13.0-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:057fc67582f1f2b12a1d777c7b1937205fc11a7b191b11e306ce1398342a6b8e", size = 441938, upload-time = "2026-10-15T19:50:53.501Z" }, + { url = "https://files.pythonhosted.org/packages/92/b8/6c9f6af94b3593f31b8c3475ba68c58fe87be04be6f1ff8e3dc1d342d6a8/ormsgpack-1.13.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a1e8fb08f8ff5de3204486a6b94dd8034c5fa223356b222725c41ccdd6145161", size = 246577, upload-time = "2026-10-15T19:50:54.859Z" }, + { url = "https://files.pythonhosted.org/packages/f1/ad/fa855a48e202f584ffd57de2f518e16fab1fe1de6c882606dc4acfbef90e/ormsgpack-1.13.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:31cd297453ce4723e03667d1d65c77626a5471d5b9cbc9ec19f70d6bfc5b470e", size = 249131, upload-time = "2026-10-15T19:50:56.211Z" }, + { url = "https://files.pythonhosted.org/packages/b8/be/53833e82ce1e2f2354e17e067df1e47a630cc7a5da93c74672604ba1050e/ormsgpack-1.13.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e1bc81dc0b5f55105838e1be312e81320338f6e26f0023a9306d45857c073ca", size = 254851, upload-time = "2026-10-15T19:50:57.799Z" }, + { url = "https://files.pythonhosted.org/packages/ca/d3/869ffe3b5c78d0c79435e2a687f3e22e1fc5f8677cc2eeb0544a8dbaa780/ormsgpack-1.13.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:139722db6d60a68eb3fbef1bd04f912f8fcce5c50ce7d57e83c466e6085aed2e", size = 425850, upload-time = "2026-10-15T19:50:59.178Z" }, + { url = "https://files.pythonhosted.org/packages/9a/5c/9b482f690abe4f1990007bcc2acdae6c0c73a3363280d8c02aeacac275e5/ormsgpack-1.13.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f9cac2b774e189252754e2e52ea84f2180d9ebf84994ac2a3ce57dc902fe4679", size = 469719, upload-time = "2026-10-15T19:51:00.568Z" }, + { url = "https://files.pythonhosted.org/packages/19/2a/179860fc46783a9355ed5bedf2000bb504d2c5c248552a6907114fa13297/ormsgpack-1.13.0-cp314-cp314-win_amd64.whl", hash = "sha256:e640fa1e884bfb77d50c5bf04a514814794df2826665ee8abdfa92c9f3bacbd5", size = 157230, upload-time = "2026-10-15T19:51:02.069Z" }, + { url = "https://files.pythonhosted.org/packages/23/40/9386084706ae2d3f1db446fafb3e4d9f7647b7560a48b998af4367c250a4/ormsgpack-1.13.0-cp314-cp314-win_arm64.whl", hash = "sha256:5ab8e0418ece15e378143808ff8c7f2fc3c0de5472da712a5bf7465883acf4f3", size = 152311, upload-time = "2026-10-15T19:51:03.503Z" }, + { url = "https://files.pythonhosted.org/packages/ec/65/e1a8c48b33a32a3908f3cfd31a3c3c045c4fba59326163e4873eecdb7397/ormsgpack-1.13.0-cp314-cp314t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:b004c3b9360ddff287a04d9e161ed05439d241637753cd99054dd3ca09c2f24a", size = 438955, upload-time = "2026-10-15T19:51:04.881Z" }, + { url = "https://files.pythonhosted.org/packages/fc/47/303b6d462bcdb3f1940f65a76ad5ae11529fd99f6f27fd6a59d23d140ee6/ormsgpack-1.13.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab4abaf49bebebf7f9586c58a7d70153cbea4f2dc96c9c5aadc072312bf6e3c7", size = 244921, upload-time = "2026-10-15T19:51:06.438Z" }, + { url = "https://files.pythonhosted.org/packages/97/1e/bc82ca79b79f4883360a7ad9a10dea5fd362f74ddb0071821c6f293c9519/ormsgpack-1.13.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b531d01d2b2274d038f02b455729774f08d868e190cfba6c75d1cb46a9c1c80a", size = 253288, upload-time = "2026-10-15T19:51:08.232Z" }, + { url = "https://files.pythonhosted.org/packages/ba/5c/75f1ef31fa85432554a62f772dd535773eaa601e86e1706aec15d2995750/ormsgpack-1.13.0-cp314-cp314t-win_amd64.whl", hash = "sha256:e7747caab9d87f684bd59934f414d97a1a502db9ea60594a0cc67e67001a8f3a", size = 155310, upload-time = "2026-10-15T19:51:10.091Z" }, + { url = "https://files.pythonhosted.org/packages/62/cf/5f07edd33c66f6d98a762f3e5823bcc770d972749fd15c9f0930b4465f7f/ormsgpack-1.13.0-cp315-cp315-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:02008ec476f5f3162a36abb7b49a2b091982f902cb20457553eb6d9fb4891a20", size = 442308, upload-time = "2026-10-15T19:51:12.236Z" }, + { url = "https://files.pythonhosted.org/packages/7c/9c/78d1a9c3d8ef1e873af3a1dd74240815cbea6252277c3a5e7f2f5fbff5de/ormsgpack-1.13.0-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:720cfe54a4350c892d2a21971022e39263b2044ecd1575c69d4e2f9fec339297", size = 246906, upload-time = "2026-10-15T19:51:14.06Z" }, + { url = "https://files.pythonhosted.org/packages/90/80/dd7f0f8d3be226b556e8e9bbfb54bc8a1298dc8d82d5ee0ec0b8b3c2c36d/ormsgpack-1.13.0-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:97bb6ae1a87cb50440a663a5cc33e11f25b7d10727dc3ae00198aacd1deb421e", size = 249415, upload-time = "2026-10-15T19:51:15.475Z" }, + { url = "https://files.pythonhosted.org/packages/e3/b1/b3b98b45b23e22977f891b0164b9f200d7a978d4217f13936c9496c40a24/ormsgpack-1.13.0-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10207cff63729a24e50d7bdacbffbb01384ee9baf3373bbbb4be3e43fdf65de8", size = 255169, upload-time = "2026-10-15T19:51:17.207Z" }, + { url = "https://files.pythonhosted.org/packages/52/0a/cd9c408e35a75604c51beb65d9e00373ded60007a58ad5d84fe6fd80d048/ormsgpack-1.13.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:9128325adcfd1c8c8c3447dfd9265de7df8408377c75168dc0a1a2a9ff028453", size = 426227, upload-time = "2026-10-15T19:51:18.97Z" }, + { url = "https://files.pythonhosted.org/packages/56/7d/e498890118b5b784e0c0f2d818622b3665b918885e6efc5d189d6135b8ff/ormsgpack-1.13.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:38dd6945be164ff6babe609ecd5f684ac58c88520643bd962a4fc5c07e6b0c45", size = 470014, upload-time = "2026-10-15T19:51:20.571Z" }, + { url = "https://files.pythonhosted.org/packages/1a/d8/5d28464c0b34b71fc79ef7e36533c5e0f8a43fd214e38fdeba2c8c01359a/ormsgpack-1.13.0-cp315-cp315-win_amd64.whl", hash = "sha256:3caea52fe5d04ff8e926e4ad6d5a3bffdc31db120ac65b35105cea027777fca3", size = 157513, upload-time = "2026-10-15T19:51:22.093Z" }, + { url = "https://files.pythonhosted.org/packages/29/0b/39daf74d2e94883b21fd1a4f82c920671a858ef41d643985ce9ed9391293/ormsgpack-1.13.0-cp315-cp315-win_arm64.whl", hash = "sha256:53bb4509ec12986a457608f76157b4fb12b90a36ce04b1e441daa43da354e2fe", size = 152397, upload-time = "2026-10-15T19:51:23.49Z" }, + { url = "https://files.pythonhosted.org/packages/89/6a/857bfc6da976bcd5f93a2c5285e7c4582d2cad0f183f8ab8bfd4b29a8167/ormsgpack-1.13.0-cp315-cp315t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:814c6b5634721635d4601fbf01d87b1fdb53beed7ac4058871cc5d4743e65b66", size = 439675, upload-time = "2026-10-15T19:51:24.99Z" }, + { url = "https://files.pythonhosted.org/packages/bc/a6/d099434eebeaf31ac1eb60f814d09eb7fc02da9c18c63f2d2c780f78408a/ormsgpack-1.13.0-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b6aa751eff9821bb51768930f94eb4616ce66a78a5b0cfd8e964c293ccbfd07a", size = 245220, upload-time = "2026-10-15T19:51:26.76Z" }, + { url = "https://files.pythonhosted.org/packages/fb/00/797e0ff57c70222c36d42c57a423a3f6cd71dc447c082c400dac796e91bf/ormsgpack-1.13.0-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:793da94721648804c9055cba73dcb569e55724574c362aa2b33bd05396da1fe5", size = 253649, upload-time = "2026-10-15T19:51:28.293Z" }, + { url = "https://files.pythonhosted.org/packages/a6/0a/a42471023b6fc0ad7c4fa171eb398a712de2aaeb36d2b070806ddf3bcb50/ormsgpack-1.13.0-cp315-cp315t-win_amd64.whl", hash = "sha256:85bad43f70fdbb77e9a0d5bae592829632c2c4d9508b6dd844997aa285f8d2a9", size = 155501, upload-time = "2026-10-15T19:51:29.719Z" }, ] [[package]] name = "packaging" -version = "26.2" +version = "26.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d7/f1/e7a6dd94a8d4a5626c03e4e99c87f241ba9e350cd9e6d75123f992427270/packaging-26.2.tar.gz", hash = "sha256:ff452ff5a3e828ce110190feff1178bb1f2ea2281fa2075aadb987c2fb221661", size = 228134, upload-time = "2026-04-24T20:15:23.917Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/df/b2/87e62e8c3e2f4b32e5fe99e0b86d576da1312593b39f47d8ceef365e95ed/packaging-26.2-py3-none-any.whl", hash = "sha256:5fc45236b9446107ff2415ce77c807cee2862cb6fac22b8a73826d0693b0980e", size = 100195, upload-time = "2026-04-24T20:15:22.081Z" }, + { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" }, ] [[package]] @@ -3221,116 +3317,22 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/f1/d9/7fb5aa316bc299258e68c73ba3bddbc499654a07f151cba08f6153988714/pathspec-1.1.1-py3-none-any.whl", hash = "sha256:a00ce642f577bf7f473932318056212bc4f8bfdf53128c78bbd5af0b9b20b189", size = 57328, upload-time = "2026-04-27T01:46:07.06Z" }, ] -[[package]] -name = "pillow" -version = "12.3.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/1c/3d/bb7fca845737cf9d7dbde16ed1843984665ff2e0a518f5db43e77ec540b9/pillow-12.3.0.tar.gz", hash = "sha256:3b8182a766685eaa002637e28b4ec8d6b18819a0c71f579bf0dbaa5830297cce", size = 47025035, upload-time = "2026-07-01T11:56:38.965Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/25/c2/669d88644cddb1485bd9534e63e8cf476c8e51cb3c3a1297677023505c0e/pillow-12.3.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:6c0016e7b354317c4e9e525b937ac8596c38d2d232b419529b9cd7a1cd46e39a", size = 5392418, upload-time = "2026-07-01T11:53:27.808Z" }, - { url = "https://files.pythonhosted.org/packages/6b/ba/3762f376a2948e3036488d773a146e0ae6ecc2ca03ac20e2615bd0b2ba02/pillow-12.3.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:bcc33feacfaefce60c12fd500a277533bdc02b10a19f7f6d348763d8140bbba7", size = 4785287, upload-time = "2026-07-01T11:53:29.761Z" }, - { url = "https://files.pythonhosted.org/packages/07/50/b5d688cc9c52d4482f3d5bcab6ce20bc2a74a85d2343841c907444a3be2c/pillow-12.3.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5594fc43d548a7ed94949d139aa1341b270f1863f11cfd37f5a6c8b778a6b67f", size = 6253754, upload-time = "2026-07-01T11:53:32.298Z" }, - { url = "https://files.pythonhosted.org/packages/4e/89/36f4cd76cf4baf05c50ababb976249153f18c959171c7f6ba09a6f217260/pillow-12.3.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f0606c8bf2cdefea14a43530f7657cbbb7ecf1c4222512492ef4a4434a9501ec", size = 6925605, upload-time = "2026-07-01T11:53:34.487Z" }, - { url = "https://files.pythonhosted.org/packages/eb/c0/4de58cf6633b9e3a6061ef4be6fb91fc3c90b812ece886f531e3c523d777/pillow-12.3.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:85f998ea1848bc6757289e739cfbdda3a04adfd58b02fc018ce54d754a5ce468", size = 6327788, upload-time = "2026-07-01T11:53:36.433Z" }, - { url = "https://files.pythonhosted.org/packages/87/3c/14d53682a19550dbbaf3b598f807d5457646c510805a44c7d7891cd1cd1a/pillow-12.3.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:25b9b82bb22e6e2b3cd07b39c68b7b862001226cb3dff7130d1cb914121b39ed", size = 7036288, upload-time = "2026-07-01T11:53:38.712Z" }, - { url = "https://files.pythonhosted.org/packages/38/1d/36279e3c77efe034e4cc2b0393ee74ffdb5a62391dacbf9b916154f5f0b8/pillow-12.3.0-cp310-cp310-win32.whl", hash = "sha256:37dc8f7bbb66efe481bb60defacef820c950c24713fb44962ed6aa2a50966de1", size = 6472396, upload-time = "2026-07-01T11:53:40.781Z" }, - { url = "https://files.pythonhosted.org/packages/48/7c/8fa0039574c476d7c6fa57dd7c32a130436877c6ec1e5ce1cc8ec44878c1/pillow-12.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:300557495eb45ebb8aec96c2da9c4be642fbf7cd937278b4013ba894ea8eb0eb", size = 7226887, upload-time = "2026-07-01T11:53:42.764Z" }, - { url = "https://files.pythonhosted.org/packages/fa/17/e324be141d173c1c919428066c3259f21c1b8982e564e01a4a81e96dbdcf/pillow-12.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:514435a37670e3e5e08f3945b68718b6ed329bb84367777e16f9f4dfe1e61a0f", size = 2568039, upload-time = "2026-07-01T11:53:45.372Z" }, - { url = "https://files.pythonhosted.org/packages/fb/c8/0a78b0e02d7ac54bc03e5321c9220da52f0c2ea83b21f7c40e7f3169c502/pillow-12.3.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:00808c5e14ef63ac5161091d242999076604ff74b883423a11e5d7bbb38bf756", size = 5392415, upload-time = "2026-07-01T11:53:47.162Z" }, - { url = "https://files.pythonhosted.org/packages/b2/5b/a02d30018abd97ced9f5a6c63d28597694a00d066516b9c1c6de45859fc9/pillow-12.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:37d6d0a00072fd2948eb22bce7e1475f34569d90c87c59f7a2ec59541b77f7a6", size = 4785266, upload-time = "2026-07-01T11:53:49.079Z" }, - { url = "https://files.pythonhosted.org/packages/c8/98/766667a4be768150a202836acd9fad19c06824ca86c4286d3cf6b274964e/pillow-12.3.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bcb46e2f9feff8d06323983bd83ed00c201fdcab3d74973e7072a889b3979fcd", size = 6263814, upload-time = "2026-07-01T11:53:51.32Z" }, - { url = "https://files.pythonhosted.org/packages/3b/2d/ede717bc1144f63886c21fd349bb95860b0d1a21149ff16f2bb362b612b6/pillow-12.3.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23d27a3e0307ec2244cc51e7287b919aa68d097504ebe19df4e76a98a3eea5bd", size = 6934408, upload-time = "2026-07-01T11:53:53.487Z" }, - { url = "https://files.pythonhosted.org/packages/a3/48/9c58b685e69d49c31af6c8eb9012055fab7e665785165c84796e2c73ce72/pillow-12.3.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:4f883547d4b7f0495ebe7056b0cc2aea76094e7a4abc8e933540f3271df27d9c", size = 6337160, upload-time = "2026-07-01T11:53:55.457Z" }, - { url = "https://files.pythonhosted.org/packages/ff/fa/dc2a5c0ba6df93f67c31d34b808b7ce440b40cdbf96f0b81cde1d1e6fa93/pillow-12.3.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:236ff70b9312fb68943c703aa842ca6a758abfa45ac187a5e7c1452e96ef72b5", size = 7045172, upload-time = "2026-07-01T11:53:57.736Z" }, - { url = "https://files.pythonhosted.org/packages/86/a5/444817a4d4c4c2417df00513086ca196f388d8f9ef40c2e4ccd1ad1af54b/pillow-12.3.0-cp311-cp311-win32.whl", hash = "sha256:10e41f0fbf1eec8cfd234b8fe17a4caac7c9d0db4c204d3c173a8f9f6ef3232b", size = 6472232, upload-time = "2026-07-01T11:53:59.767Z" }, - { url = "https://files.pythonhosted.org/packages/63/c6/4bad1b18d132a50b27e1365e1ab163616f7a5bb56d330f66f9d1d9d4f9d4/pillow-12.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:8e95e1385e4998ae9694eeaa4730ba5457ff61185b3a55e2e7bea0880aef452a", size = 7233653, upload-time = "2026-07-01T11:54:02.066Z" }, - { url = "https://files.pythonhosted.org/packages/fd/16/00f91ab7760dc842f5aad55217e80fc4a7067a0604535249bc8a2d6d9870/pillow-12.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:ebaea975e03d3141d9d3a507df75c9b3ec90fa9d2ffd07567b3a978d9d790b26", size = 2568195, upload-time = "2026-07-01T11:54:04.622Z" }, - { url = "https://files.pythonhosted.org/packages/37/bf/fb3ebff8ddcb76aac5a01389251bbbb9519922a9b520d8247c1ca864a25d/pillow-12.3.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ba09209fbe443b4acccebe845d8a138b89a8f4fbaeedd44953490b5315d5e965", size = 5345969, upload-time = "2026-07-01T11:54:06.397Z" }, - { url = "https://files.pythonhosted.org/packages/d8/66/9a386a92561f402389a4fc70c18838bf6d35eb5eb5c6850b4b2dc64f5048/pillow-12.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ffd0c5368496f41b0944be820fcb7a838aa6e623d250b01acf2643939c3f99d7", size = 4780323, upload-time = "2026-07-01T11:54:09.351Z" }, - { url = "https://files.pythonhosted.org/packages/25/27/ac8f99618ffd3dde21db0f4d4b1d2ab00c0880595bfd17df103f7f39fd0c/pillow-12.3.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d9c7f76c0673154f044e9d78c8655fb4213f6ca31a836df48b40fe5d187717b9", size = 6266838, upload-time = "2026-07-01T11:54:11.71Z" }, - { url = "https://files.pythonhosted.org/packages/84/21/a35af28dcc61f37ed850a2d64c65c701321dfbf25085e469d5559360cbbf/pillow-12.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:78cb2c6865a35ab8ff8b75fd122f6033b92a62c82801110e48ddd6c936a45d91", size = 6940830, upload-time = "2026-07-01T11:54:13.732Z" }, - { url = "https://files.pythonhosted.org/packages/eb/51/8b08617af3ad95e33ce6d7dd2c99ed6c8298f7fb131636303956be022e25/pillow-12.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e491916b378fba47242221bb9ead245211b70d504f495d105d17b14a24b4907c", size = 6344383, upload-time = "2026-07-01T11:54:15.756Z" }, - { url = "https://files.pythonhosted.org/packages/1d/72/cf78ac9780bb93c28328f408973845a309d4d145041665f734572ced1b52/pillow-12.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0dd2064cbc55aaec028ef5fbb60fa47bb6c3e7918e07ff17935284b227a9d2df", size = 7052934, upload-time = "2026-07-01T11:54:17.721Z" }, - { url = "https://files.pythonhosted.org/packages/20/20/25e0f4dc178a6bc0696793720055519a0de89e7661dae886992decbd2f81/pillow-12.3.0-cp312-cp312-win32.whl", hash = "sha256:dbce0b29841537a2fa4a214c2bbf14de3587c9680caa9b4e217568472490b28f", size = 6472684, upload-time = "2026-07-01T11:54:19.839Z" }, - { url = "https://files.pythonhosted.org/packages/45/89/da2f7971a317f83d807fdd4065c0af40208e59e692cc43d315a71a0e96d1/pillow-12.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:a2b55dd6b2a4c4b7d87ffa56bdb33fdc5fdb9a462173861a7bc097f17d91cb09", size = 7227137, upload-time = "2026-07-01T11:54:22.025Z" }, - { url = "https://files.pythonhosted.org/packages/de/47/4845a0a6c0dbf1db8456bd9fc791f13c5ced7ced20606d08a0aacfd25b49/pillow-12.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:331b624368d4f1d069149002f25f44bc61c8919ce8ddb3c45bdad8f6e2d89510", size = 2568267, upload-time = "2026-07-01T11:54:24.051Z" }, - { url = "https://files.pythonhosted.org/packages/9d/ac/31fb64e1e7efb5a4b50cd3d92049ba89ac6e4d8d3bb6a74e15048ca3353e/pillow-12.3.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:21900ce7ba264168cd50defae43cd75d25c833ad4ad6e73ffc5596d12e25ac89", size = 4161684, upload-time = "2026-07-01T11:54:25.934Z" }, - { url = "https://files.pythonhosted.org/packages/87/b4/9805e23d2b4d77842b468513841fda254ee42f0289d25088340e4ff46e2d/pillow-12.3.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:4e8c2a84d977f50b9daed6eeaf3baef67d00d5d74d932288f02cb94518ee3ace", size = 4255487, upload-time = "2026-07-01T11:54:27.935Z" }, - { url = "https://files.pythonhosted.org/packages/df/39/ecf519435a200c693fe053a6ee4d835b41cf963a4dfc2551c4e637cb2a71/pillow-12.3.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:ae26d61dfa7a47befdc7572b521024e8745f3d809bd95ca9505a7bba9ef849ec", size = 3696433, upload-time = "2026-07-01T11:54:29.813Z" }, - { url = "https://files.pythonhosted.org/packages/42/92/2fc3ffad878ae8dd5469ec1bc8eb83b71f48e13efdf68f02709003982a32/pillow-12.3.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7a743ff716f746fc19a9557f60dab1600d4613255f8a7aeb3cdde4db7eb15a66", size = 5345889, upload-time = "2026-07-01T11:54:31.97Z" }, - { url = "https://files.pythonhosted.org/packages/10/76/8803c13605b763d33d156c4678fc77f8443389c0c51c8aef707bb02015f4/pillow-12.3.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d69141514cc30b774ceea5e3ed3a6635c8d8a96edf664689b890f4089111fb35", size = 4780109, upload-time = "2026-07-01T11:54:34.026Z" }, - { url = "https://files.pythonhosted.org/packages/1f/01/e18aff37cb0b4aac47ac90f016d347a49aca667ef97f190b06ac2aabc928/pillow-12.3.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f7401aebd7f581d7f83a439d87d474999317ee099218e5ad25d125290990ba65", size = 6263736, upload-time = "2026-07-01T11:54:36.131Z" }, - { url = "https://files.pythonhosted.org/packages/f7/62/de5bdd77d935331f4f802edc11e4d82950f642caad6cb2f949837b8560e2/pillow-12.3.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0847a763afefb695bc912d7c131e7e0632d4edc1d8698f58ddabec8e46b8b6d3", size = 6937129, upload-time = "2026-07-01T11:54:38.216Z" }, - { url = "https://files.pythonhosted.org/packages/70/4d/105627a13300c5e0df1d174230b32fd1273062c96f7745fd552b945d1e1d/pillow-12.3.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:571b9fcb07b97ef3a492028fb3d2dc0993ca23a06138b0315286566d29ef718a", size = 6339562, upload-time = "2026-07-01T11:54:40.354Z" }, - { url = "https://files.pythonhosted.org/packages/6b/1d/f13de01a553988ab895ba1c722e06cf3144d4f57656fd5b81b6d881f1179/pillow-12.3.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:756c768d0c9c2955feb7a56c37ea24aea2e369f8d36a88da270b6a9f19e62b5e", size = 7049439, upload-time = "2026-07-01T11:54:42.489Z" }, - { url = "https://files.pythonhosted.org/packages/c9/f9/066794cca041b969964f779ee5fa66a9498bbf34248ac39c5d7954e4198f/pillow-12.3.0-cp313-cp313-win32.whl", hash = "sha256:a876864214e136f0eb367788dbd7df045f4806801518e2cfe9e13229cfe06d8f", size = 6473287, upload-time = "2026-07-01T11:54:44.9Z" }, - { url = "https://files.pythonhosted.org/packages/a6/9b/7a58e61d62be561da3a356fe2384d4059a6345fc130e23ef1c36a5b81d24/pillow-12.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:1cca606cd25738df4ed873d5ad46bbdb3d83b5cbca291f6b4ff13a4df6b0bbe8", size = 7239691, upload-time = "2026-07-01T11:54:47.141Z" }, - { url = "https://files.pythonhosted.org/packages/aa/b0/c4ed4f0ef8f8fa5ee8351537db6650bb8189f7e118842978dd6589065692/pillow-12.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:b629de27fda84b42cde7edef0d85f13b958b47f6e9bbcbba9b673c562a89bd8b", size = 2568185, upload-time = "2026-07-01T11:54:49.137Z" }, - { url = "https://files.pythonhosted.org/packages/dc/01/001f65b68192f0228cc1dbbc8d2530ab5d58b61037ba0587f946fea607cd/pillow-12.3.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:9cf95fe4d0f84c82d282745d9bb08ad9f926efa00be4697e767b814ce40d4330", size = 4161736, upload-time = "2026-07-01T11:54:51.156Z" }, - { url = "https://files.pythonhosted.org/packages/1a/d2/0219746d0fd16fc8a84498e79452375be3797d3ce4044596ce565164b84f/pillow-12.3.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:8728f216dcdb6e6d555cf971cb34076139ad74b31fc2c14da4fafc741c5f6217", size = 4255435, upload-time = "2026-07-01T11:54:53.414Z" }, - { url = "https://files.pythonhosted.org/packages/c8/02/8d0bc62ef0302318c46ff2a512822d2610e81c7aa46c9b3abe6cbaca5ad0/pillow-12.3.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:a45650e8ce7fafffd731db8550230db6b0d306d181a90b67d3e6bca2f1990930", size = 3696262, upload-time = "2026-07-01T11:54:55.739Z" }, - { url = "https://files.pythonhosted.org/packages/85/e2/73c77d218410b14f5f2d565e8a998d5317b7b9c75368d29985139f7a46f0/pillow-12.3.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:ba54cfebe86920a559a7c4d6b9050791c20513650a1952ebe3368c7dc70306f8", size = 5350344, upload-time = "2026-07-01T11:54:57.657Z" }, - { url = "https://files.pythonhosted.org/packages/c7/da/32c752228ae345f489e3a42499d817b6c3996da7e8a3bc7a04fc806b243b/pillow-12.3.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:e158cb00350dc278f3b91551101aa7d12415a66ebf2c91d8d5ac14e56ddd3ad0", size = 4780131, upload-time = "2026-07-01T11:54:59.713Z" }, - { url = "https://files.pythonhosted.org/packages/b1/9d/8b2c807dbef61a5197c047afe99823787eb66f63daf9fb2432f91d6f0462/pillow-12.3.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e9aeb04d6aef139de265b29683e119b638208f88cf73cdd1658aa07221165321", size = 6263757, upload-time = "2026-07-01T11:55:01.778Z" }, - { url = "https://files.pythonhosted.org/packages/5c/44/c85361f65dbe00eea8576ee467c768d25129989efb76e94f205e9ca9bb46/pillow-12.3.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:251bf95b67017e27b13d82f5b326234ca62d70f9cf4c2b9032de2358a3b12c7b", size = 6936962, upload-time = "2026-07-01T11:55:03.93Z" }, - { url = "https://files.pythonhosted.org/packages/18/7e/e483414b35800b86b6f08dbbc7803fb5cd52c4d6f897f47d53ea2c7e6f65/pillow-12.3.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:fe3cca2e4e8a592be0f269a1ca4835c25199d9f3ce815c8491048f785b0a0198", size = 6339171, upload-time = "2026-07-01T11:55:05.989Z" }, - { url = "https://files.pythonhosted.org/packages/f0/f4/68c491844841ede6bed70189546b3ee9731cf9f2cbad396faff5e1ccba45/pillow-12.3.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:23aceaa007d6172b02c277f0cd359c79492bbb14f7072b4ede9fbcaf20648130", size = 7048116, upload-time = "2026-07-01T11:55:08.131Z" }, - { url = "https://files.pythonhosted.org/packages/a3/34/77f3f793fed8efc7d243f21b33c5a3f0d1c97ee70346d3db855587e155ff/pillow-12.3.0-cp314-cp314-win32.whl", hash = "sha256:af8d94b0db561cf68b88a267c5c44b49e134f525d0dc2cb7ed413a66bc23559a", size = 6467209, upload-time = "2026-07-01T11:55:10.408Z" }, - { url = "https://files.pythonhosted.org/packages/f1/e0/492879f69d94f91f60fc8cd05ba03650e9520afebb2fb7aa12777d7c7f38/pillow-12.3.0-cp314-cp314-win_amd64.whl", hash = "sha256:fdafc9cce40277e0f7a0feabce0ee50dd2fa1800f3b38015e51296b5e814048d", size = 7237707, upload-time = "2026-07-01T11:55:12.745Z" }, - { url = "https://files.pythonhosted.org/packages/c9/ac/6b11f2875f1c2ac040d84e1bbf9cf22a88038f901ca1037898b280b38365/pillow-12.3.0-cp314-cp314-win_arm64.whl", hash = "sha256:e91206ee562682b51b98ef4b26a6ef48fd84e15fd4c4bc5ec768eb641d206838", size = 2565995, upload-time = "2026-07-01T11:55:14.736Z" }, - { url = "https://files.pythonhosted.org/packages/52/69/c2208e56af9bfc1913afb24020297a691eb1d4ef688474c8a04913f65e04/pillow-12.3.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:164b31cd1a0490ab6efae01aa5df49da7061be0af1b30e035b6e9a1bfe34ee6e", size = 5352503, upload-time = "2026-07-01T11:55:17.076Z" }, - { url = "https://files.pythonhosted.org/packages/07/70/e5686d753e898a45d778ff1718dba8516ead6ab6b95d85fc8c4b70650cf2/pillow-12.3.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5afb51d599ea772b8365ae807ae557f18bccfe46ab261fd1c2a9ed700fc6eb17", size = 4782956, upload-time = "2026-07-01T11:55:19.448Z" }, - { url = "https://files.pythonhosted.org/packages/d5/37/25c6692f06927ee973ff18c8d9ee98ad0b4d84ee67a09610c2dd1447958e/pillow-12.3.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3edce1d53195db527e0191f84b71d02022de0540bf43a16ed734ed7537b07385", size = 6322855, upload-time = "2026-07-01T11:55:21.613Z" }, - { url = "https://files.pythonhosted.org/packages/cc/91/420637fcb8f1bc11029e403b4538e6694744428d8246118e45719f944556/pillow-12.3.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bf16ba1b4d0b6b7c8e534936632270cf70eb00dbe09005bc345b2677b726855c", size = 6989642, upload-time = "2026-07-01T11:55:24.006Z" }, - { url = "https://files.pythonhosted.org/packages/10/08/b94d7811281ccf0d143a1cf768d1c49e1e54af63e7b708ab2ee3eb87face/pillow-12.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:24870b09b224f7ae3c39ed07d10e819d06f8720bc551847b1d623832b5b0e28d", size = 6391281, upload-time = "2026-07-01T11:55:26.252Z" }, - { url = "https://files.pythonhosted.org/packages/d2/87/24233f785f55474dc02ce3e739c5528a77e3a862e9333d1dd7a25cc31f70/pillow-12.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:30f2aa603c41533cc25c05acd0da21636e84a315768feb631c937177db558931", size = 7096716, upload-time = "2026-07-01T11:55:28.318Z" }, - { url = "https://files.pythonhosted.org/packages/23/26/fcb2f6e37175b04f53570b59937867e2b80ee1685e744023153028fc14f9/pillow-12.3.0-cp314-cp314t-win32.whl", hash = "sha256:4b0a7fe987b14c31ebda6083f74f22b561fd3739bc0ac51e019622e3d72668c7", size = 6474125, upload-time = "2026-07-01T11:55:30.956Z" }, - { url = "https://files.pythonhosted.org/packages/90/de/3634abee5f1c9e13c56787b7d5517b0ba8d6de51700b95578cf338349c9f/pillow-12.3.0-cp314-cp314t-win_amd64.whl", hash = "sha256:962864dc93511324d51ddbb5b9f8731bf71675b93ca612a07441896f4688fb8c", size = 7242939, upload-time = "2026-07-01T11:55:34.044Z" }, - { url = "https://files.pythonhosted.org/packages/ce/2a/fd13f8eb24de5714a6eb444a3d67e2842c6c576e159a43793adf23051351/pillow-12.3.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0740a512dc522224c77d9aa5a8d70d8b7d73fb91f2c21125d8d025d3b8990e45", size = 2567506, upload-time = "2026-07-01T11:55:35.988Z" }, - { url = "https://files.pythonhosted.org/packages/5d/dc/8fdce34ec725a33c81c6ba122b904d6b9024e50ea9ac7bede62fab54506c/pillow-12.3.0-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:0feb2e9d6ad6c9e3c06effe9d00f3f1e618a6643273576b016f591e9315a7139", size = 4162063, upload-time = "2026-07-01T11:55:37.941Z" }, - { url = "https://files.pythonhosted.org/packages/76/66/2044b9a63d3b84ff048228dfcb7cd9bf0df983e8470971bf7d4c57b693de/pillow-12.3.0-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:9e881fca225083806662a5c43d627d215f258ff43c890f831966c7d7ba9c7402", size = 4255549, upload-time = "2026-07-01T11:55:40.022Z" }, - { url = "https://files.pythonhosted.org/packages/52/7e/1f67e6f4ece6b582ee4b539decbcc9f848dc245a93ed8cd7338bafef72f1/pillow-12.3.0-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:4998562bf62a445225f22e07c896bb04b35b1b1f2eb6d760584c9c51d7a5f78c", size = 3696331, upload-time = "2026-07-01T11:55:41.98Z" }, - { url = "https://files.pythonhosted.org/packages/12/40/d306fc2c8e4d45d7f175c77edca7063be7b86fe7fe6e68f4353bf71d808c/pillow-12.3.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:dc624f6bc473dacdf7ef7eb8678d0d08edf15cd94fad6ae5c7d6cc67a4e4902f", size = 5350370, upload-time = "2026-07-01T11:55:44.028Z" }, - { url = "https://files.pythonhosted.org/packages/dd/44/668fb1437e8ce420f62d6106eb66e44a5971602a4d794615bdf79315d82d/pillow-12.3.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:71d6097b330eea8fd15097780c8e89cb1a8ce7838669f48c5bacd6f663dd4701", size = 4780147, upload-time = "2026-07-01T11:55:46.073Z" }, - { url = "https://files.pythonhosted.org/packages/0c/08/93fa2e70e30a2d81547e481b6ee2bb9522117221fb1e0ce4b5df70967677/pillow-12.3.0-cp315-cp315-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:28ce87c5ab450a9dd970b52e5aca5fe63ed432d18a2eaddd1979a00a1ba24ace", size = 6273659, upload-time = "2026-07-01T11:55:48.264Z" }, - { url = "https://files.pythonhosted.org/packages/f8/6d/043e96ff814fc31a33077e4cba86082167db520c93632afdf2042febbb0c/pillow-12.3.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6b02afb9b97f65fbca5f31db6a2a3ba21aa93030225f150fa3f249717e938fb4", size = 6947439, upload-time = "2026-07-01T11:55:50.503Z" }, - { url = "https://files.pythonhosted.org/packages/af/92/ba71d2ee2ac0edf3fa33bd9d5ee9ee080da70b1766f3ca3934f9938ddac9/pillow-12.3.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:1182d52bc2d5e5d7d0949503aa7e36d12f42205dc287e4883f407b1988820d39", size = 6353577, upload-time = "2026-07-01T11:55:52.697Z" }, - { url = "https://files.pythonhosted.org/packages/0f/ce/e63064e2122923ff687c8ad792d0d736a7b3920a56a46982e81a7fdd25d6/pillow-12.3.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:e795b7eb908249c4e43c7c99fac7c2c75dab0c43566e37db472a355f63693d71", size = 7060394, upload-time = "2026-07-01T11:55:55.149Z" }, - { url = "https://files.pythonhosted.org/packages/54/76/a09cc3ccc8d773a7283d34c38bec1708f9e3cc932093cbc4c5e71ac4060b/pillow-12.3.0-cp315-cp315-win32.whl", hash = "sha256:57b3d78c95ba9059768b10e28b813002261d3f3dfc55cc48b0c988f625175827", size = 6467375, upload-time = "2026-07-01T11:55:57.769Z" }, - { url = "https://files.pythonhosted.org/packages/3e/03/1846c49ba3b1d5550392a4bbd06d6fb4578e1cd91a803198b5c90f5f7d53/pillow-12.3.0-cp315-cp315-win_amd64.whl", hash = "sha256:fa4ecea169a355be7a3ade2c783e2ed12f0e40d2c5621cda8b3297faf7fbb9f5", size = 7237048, upload-time = "2026-07-01T11:55:59.975Z" }, - { url = "https://files.pythonhosted.org/packages/fb/bb/89f35dcc79610423f9f195504d7def7f0d1416a711541b42867e25fe3412/pillow-12.3.0-cp315-cp315-win_arm64.whl", hash = "sha256:877c3f311ff35410f690861c4409e7ccbf0cd2f878e50628a28e5a0bb689e658", size = 2566006, upload-time = "2026-07-01T11:56:02.143Z" }, - { url = "https://files.pythonhosted.org/packages/30/88/707027ba09942dfa2c28759b5c222d769290a41c6d20ea60ec250801941f/pillow-12.3.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:e9871b1ffbfa9656b60aeee92ed5136a5742696006fa322b29ea3d8da0ecc9cf", size = 5352509, upload-time = "2026-07-01T11:56:04.2Z" }, - { url = "https://files.pythonhosted.org/packages/b0/6d/00352fa25332c2569cd387851f568cc5a4b75a9adbfb37ac4fbce4c02eec/pillow-12.3.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:53aa02d20d10c3d814d536aa4e5ac9b84ca0ff5a88377963b085ad6822f93e64", size = 4783167, upload-time = "2026-07-01T11:56:06.631Z" }, - { url = "https://files.pythonhosted.org/packages/13/4f/9e049dfa21af7c22427275720e2490267ba8138120add5c4c574deb69782/pillow-12.3.0-cp315-cp315t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:446c34dcc4324b084a53b705127dc15717b22c5e140ae0a3c38349d4efec071e", size = 6329237, upload-time = "2026-07-01T11:56:08.868Z" }, - { url = "https://files.pythonhosted.org/packages/36/16/cf6eeaae8d0fce8dd390a33437cf68c5d5bd73834a2bc6e2f14efda0ab45/pillow-12.3.0-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cf1845d02ad822a369a49f2bb9345b1614744267682e7a03527dc3bf6eea1777", size = 6997047, upload-time = "2026-07-01T11:56:11.379Z" }, - { url = "https://files.pythonhosted.org/packages/1e/69/dbf769bdd55f48bf5733cac28edc6364ffaa072ec9ba336266e4fe66be55/pillow-12.3.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:186941b6aef820ad110fb01fb06eb925374dc3a21b17e37ec9a53b250c6fe2d1", size = 6400440, upload-time = "2026-07-01T11:56:13.908Z" }, - { url = "https://files.pythonhosted.org/packages/a0/e1/ffc9cfc2eea0d178da8018e18e959301ad9d6bc9f3edb7181e748a474b97/pillow-12.3.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:f13c32a3abd6079a66d9526e18dad9b6d280384d49d7c54040cd57b6424041d9", size = 7105895, upload-time = "2026-07-01T11:56:16.575Z" }, - { url = "https://files.pythonhosted.org/packages/18/f0/a5595c1e8c3ae44b9828cb2f0fa8155e5095ef04d6327b8f61cf44a3df85/pillow-12.3.0-cp315-cp315t-win32.whl", hash = "sha256:1657923d2d45afb66526e5b933e5b3052e6bdea196c90d3abb2424e18c77dae8", size = 6474384, upload-time = "2026-07-01T11:56:18.855Z" }, - { url = "https://files.pythonhosted.org/packages/e4/04/62bcd9f844984c5938d3b05264a61d797a29d3e0812341a8204af70bbdee/pillow-12.3.0-cp315-cp315t-win_amd64.whl", hash = "sha256:8cd2f7bdda092d99c9fc2fb7391354f306d01443d22785d0cbfafa2e2c8bb418", size = 7243537, upload-time = "2026-07-01T11:56:21.214Z" }, - { url = "https://files.pythonhosted.org/packages/3d/68/1f3066acedf37673694a7141381d8f811ae97f30d34413d236abe7d489f1/pillow-12.3.0-cp315-cp315t-win_arm64.whl", hash = "sha256:06ff022112bc9cbf83b60f8e028d94ad87b60621706487e65f673de61610ab59", size = 2567491, upload-time = "2026-07-01T11:56:23.506Z" }, - { url = "https://files.pythonhosted.org/packages/75/18/2e8b40223153ccbc60df07f9e8928dc0c76202aa4e55ae9f53962b6510d6/pillow-12.3.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:b3c777e849237620b022f7f297dd67705f9f5cf1685f09f02e46f93e92725468", size = 5302510, upload-time = "2026-07-01T11:56:25.736Z" }, - { url = "https://files.pythonhosted.org/packages/46/3e/51fabf59d5ab801ceab709453d3ab6b180083496579549de4c45ced6528a/pillow-12.3.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:b343699e8308bdc51978310e1c959c584e7869cc8c40780058c87da7781a1e94", size = 4736058, upload-time = "2026-07-01T11:56:28.041Z" }, - { url = "https://files.pythonhosted.org/packages/bf/20/22fe9384b7949e25fb1293bcfc84fb82590ff4ea6b37c95b24d26d793d86/pillow-12.3.0-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fbd139c8447d25dd750ab79ee274cc5e1fe80fc56340ab10b18a195e1b6eca3e", size = 5237776, upload-time = "2026-07-01T11:56:30.263Z" }, - { url = "https://files.pythonhosted.org/packages/08/14/f6ba68107680ffa74b39985f3f30884e41318fbc4250caa423c79b4788bb/pillow-12.3.0-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e7e480451b9fa137494bccd3a7d69adbe8ac65a87d97be61e11f1b1050a5bac3", size = 5860358, upload-time = "2026-07-01T11:56:32.68Z" }, - { url = "https://files.pythonhosted.org/packages/36/54/0169bc772ec491108b62f644f8ecf1fe5d8ae5ebafde2ee2142210166903/pillow-12.3.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:04f01d28a6aaff387bf842a13be313df23ba0597a44f1a976c9feb3c6ff4711a", size = 7231786, upload-time = "2026-07-01T11:56:35.046Z" }, -] - [[package]] name = "pkginfo" -version = "1.12.1.2" +version = "1.13" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/24/03/e26bf3d6453b7fda5bd2b84029a426553bb373d6277ef6b5ac8863421f87/pkginfo-1.12.1.2.tar.gz", hash = "sha256:5cd957824ac36f140260964eba3c6be6442a8359b8c48f4adf90210f33a04b7b", size = 451828, upload-time = "2025-02-19T15:27:37.188Z" } +sdist = { url = "https://files.pythonhosted.org/packages/3e/ad/97538d5a1041d8d3ba155075b0b35248cf8538e1f1ec764f1d117962b01d/pkginfo-1.13.tar.gz", hash = "sha256:4f70471c643f71fe84a06230c0e33c5c5b12a33b2fd21bff14ddaef5a974adb1", size = 453525, upload-time = "2026-08-30T02:45:07.804Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/fa/3d/f4f2ba829efb54b6cd2d91349c7463316a9cc55a43fc980447416c88540f/pkginfo-1.12.1.2-py3-none-any.whl", hash = "sha256:c783ac885519cab2c34927ccfa6bf64b5a704d7c69afaea583dd9b7afe969343", size = 32717, upload-time = "2025-02-19T15:27:33.071Z" }, + { url = "https://files.pythonhosted.org/packages/ed/ad/2e9e8a7bb014758af9453b3d818848d50852592296aceb8817f2a937fa71/pkginfo-1.13-py3-none-any.whl", hash = "sha256:37e1bfb7b5b149829e6f140a225b517c4c8808d8d164f68137b9492023874061", size = 32769, upload-time = "2026-08-30T02:45:06.55Z" }, ] [[package]] name = "platformdirs" -version = "4.10.0" +version = "4.13.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d7/47/e4501f49c178ae1d9f4a75073fda4204f52647993f075a9db4d14930e0c5/platformdirs-4.10.0.tar.gz", hash = "sha256:31e761a6a0ca04faf7353ea759bdba55652be214725111e5aac52dfa29d4bef7", size = 31224, upload-time = "2026-05-28T03:32:53.587Z" } +sdist = { url = "https://files.pythonhosted.org/packages/80/a8/66d45abadff219e36e2a824181b8f6a67e7ed4572934d6252c71c29d5731/platformdirs-4.13.0.tar.gz", hash = "sha256:1aa0b0d3f224c1f07c295121e312a5a24a180d6ae5a8425ea1784b3e3863e9c0", size = 61094, upload-time = "2026-10-11T02:05:24.109Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/81/e6/cd9575ac904136b3cbf7aa7ee819ef86eedb7274e46f230e94ea4342e729/platformdirs-4.10.0-py3-none-any.whl", hash = "sha256:fb516cdb12eb0d857d0cd85a7c57cea4d060bee4578d6cf5a14dfdf8cbf8784a", size = 22743, upload-time = "2026-05-28T03:32:52.175Z" }, + { url = "https://files.pythonhosted.org/packages/8d/15/1633010b26e88e872c93b67c0b6c5e174fb74cb6fb5c1472b4d51d4a8f22/platformdirs-4.13.0-py3-none-any.whl", hash = "sha256:3dbcf4cd708f21cf876c4eaa90e58412bc4f033d87143f41b1493ff77c25b7e1", size = 32724, upload-time = "2026-10-11T02:05:22.776Z" }, ] [[package]] @@ -3342,159 +3344,146 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, ] -[[package]] -name = "prompt-toolkit" -version = "3.0.52" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "wcwidth" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/a1/96/06e01a7b38dce6fe1db213e061a4602dd6032a8a97ef6c1a862537732421/prompt_toolkit-3.0.52.tar.gz", hash = "sha256:28cde192929c8e7321de85de1ddbe736f1375148b02f2e17edd840042b1be855", size = 434198, upload-time = "2025-08-27T15:24:02.057Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/84/03/0d3ce49e2505ae70cf43bc5bb3033955d2fc9f932163e84dc0779cc47f48/prompt_toolkit-3.0.52-py3-none-any.whl", hash = "sha256:9aac639a3bbd33284347de5ad8d68ecc044b91a762dc39b7c21095fcd6a19955", size = 391431, upload-time = "2025-08-27T15:23:59.498Z" }, -] - [[package]] name = "propcache" -version = "0.5.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ec/44/c87281c333769159c50594f22610f77398a47ccbfbbf23074e744e86f87c/propcache-0.5.2.tar.gz", hash = "sha256:01c4fc7480cd0598bb4b57022df55b9ca296da7fc5a8760bd8451a7e63a7d427", size = 50208, upload-time = "2026-05-08T21:02:12.199Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5b/56/030b7b4719d53085722893e0009dffb9236aa10bca1b12121bdc5626ef16/propcache-0.5.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d5a81be28596d6559f6131ef33e10200de6e17643b3c74ce03f9eb103be6ae8b", size = 93417, upload-time = "2026-05-08T20:59:15.597Z" }, - { url = "https://files.pythonhosted.org/packages/1a/55/1140a8e067b8ec093a18a4ae7bb0045d9db65da38a08618ddc5e2f1994aa/propcache-0.5.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:29cbaac5ea0212663e6845e04b5e188d5a6ae6dd919810ac835bf1d3b42c3f4c", size = 53847, upload-time = "2026-05-08T20:59:17.096Z" }, - { url = "https://files.pythonhosted.org/packages/20/42/0e7443c90310498561addf346e7d57fe3c6ba1914e1ba938b5464c7bbfd2/propcache-0.5.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6bf3be92233808fcd338eba0fb4d0b59ec5772af4f4ecfcec450d1bfc0f8b5eb", size = 53512, upload-time = "2026-05-08T20:59:18.64Z" }, - { url = "https://files.pythonhosted.org/packages/b7/db/cf51a71bab2009517d1a7f0ee07657e3bd446c4d69f67e6966cf17bcf956/propcache-0.5.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2f8ea531c794b9d6274acd4e8d2c2ebcac590a4361d27482edd3010b79f1325e", size = 58068, upload-time = "2026-05-08T20:59:20.683Z" }, - { url = "https://files.pythonhosted.org/packages/b7/43/39b6bdee9699fa1e1641c519feeb64a67e2a9f93bb465c70776b37a7333f/propcache-0.5.2-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:decfca4c79dd53ebab484b00cc4b6717d8c369f86e74aa4ca395a64ac651495e", size = 61020, upload-time = "2026-05-08T20:59:22.112Z" }, - { url = "https://files.pythonhosted.org/packages/26/0b/843726fbb0a29a8c5684fdb25971823638399f31e52e9d1f06a02dc9aa6b/propcache-0.5.2-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4621064bbf28fa77ff64dd5d94367c04684c67d3a5bf1dff25f0cd0d98a38f3b", size = 62732, upload-time = "2026-05-08T20:59:23.805Z" }, - { url = "https://files.pythonhosted.org/packages/39/6e/899fed76dc1942b8a64193a4f059d7f1a2c7ef65085e8a9366ed8ec0d199/propcache-0.5.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b96db7141a592cbc968daf1feea83a118e6ab378af4abbc72b248c895414c22d", size = 60140, upload-time = "2026-05-08T20:59:25.389Z" }, - { url = "https://files.pythonhosted.org/packages/ab/09/3da4be9b5b879219ad234aa535b3dd4a080ed1ad48d3a73ca07a9e798f22/propcache-0.5.2-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1ca071adabaab6e9219924bbe00af821f1ee7de113a9eca1cdc292de3d120f4d", size = 60400, upload-time = "2026-05-08T20:59:27.238Z" }, - { url = "https://files.pythonhosted.org/packages/60/2f/09b72b874a9aa0044faf52a69807a6ed618e267ceaa9ec4a63195fa5b504/propcache-0.5.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:e4294d04a94dcab1b3bccd8b66d962dcad411a1d19414b2a41d1445f1de32ad0", size = 58155, upload-time = "2026-05-08T20:59:28.48Z" }, - { url = "https://files.pythonhosted.org/packages/8a/37/97489848c54c95578045473954f10956d619ce6a09e7ac137b71cdcb698b/propcache-0.5.2-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:a0e399a2eccb91ed18721f86aa85757727400b6865c89e88934781deb9c8498b", size = 57037, upload-time = "2026-05-08T20:59:30.146Z" }, - { url = "https://files.pythonhosted.org/packages/22/db/6c695285ccfc49012743ee9c98212b8c5dd0aed7b63cfd816d4a0f7a1601/propcache-0.5.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:823581fd5cb08b12a48bfa11fe962a7916766b6170c17b028fbdf762b85eb9bf", size = 61103, upload-time = "2026-05-08T20:59:31.626Z" }, - { url = "https://files.pythonhosted.org/packages/98/a9/1e500401ca593b0bdb6bf75a70bc2d723835fd53360edff6af70692c7546/propcache-0.5.2-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:949c91d1a990cf3b2e8188dfcfb25005e0b834a06c63fa4ef9f360878ce21ecf", size = 60394, upload-time = "2026-05-08T20:59:32.829Z" }, - { url = "https://files.pythonhosted.org/packages/1f/87/f638b6e375eae0f30a1a2325d8b34fd85fdc785bb9960cf805f3bf1ec69a/propcache-0.5.2-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:cc1177027eda740fdb152706bd215a3f124e3eea15afc39f2cb9fe351b50619e", size = 63084, upload-time = "2026-05-08T20:59:35.964Z" }, - { url = "https://files.pythonhosted.org/packages/f6/18/884573f5d97b6d9eba68de759a82c901b7e39d7904d30f7b8d58d42d2a12/propcache-0.5.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b05d643f944a8c3c4bd86d65ffd87bf3264b617f87791940302bc474d2ff5274", size = 60999, upload-time = "2026-05-08T20:59:38.481Z" }, - { url = "https://files.pythonhosted.org/packages/8f/1a/c3915eb059ceec9e758a56e4cfd955292bc0f201be2176a46b76d94b303a/propcache-0.5.2-cp310-cp310-win32.whl", hash = "sha256:8114f28879e0904748e831c3a7774261bd9e75f49be089f389a76f959dcd13fe", size = 39036, upload-time = "2026-05-08T20:59:40.323Z" }, - { url = "https://files.pythonhosted.org/packages/5b/02/1dfd5607501a602d19c1c449d2d193b7d1c611f9246b4059026a1189a80e/propcache-0.5.2-cp310-cp310-win_amd64.whl", hash = "sha256:5fcb98e7598b1ee0addab320d90f65b530297a867dbfe9de52ea838077e16e3d", size = 42190, upload-time = "2026-05-08T20:59:42.232Z" }, - { url = "https://files.pythonhosted.org/packages/57/93/f71588ad08b3e6f4b555b5ef215808a3c02b042d0151ad82fa6f15be677a/propcache-0.5.2-cp310-cp310-win_arm64.whl", hash = "sha256:04dc2390d9edbbaef7461f33322555976ffddf0b650a038649d026358714e6c5", size = 38545, upload-time = "2026-05-08T20:59:44.087Z" }, - { url = "https://files.pythonhosted.org/packages/e7/f1/8a8cc1c2c7e7934ab77e0163414f736fadbc0f5e8dd9673b952355ac175b/propcache-0.5.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:74b70780220e2dd89175ca24b81b68b67c83db499ae611e7f2313cb329801c78", size = 90744, upload-time = "2026-05-08T20:59:45.799Z" }, - { url = "https://files.pythonhosted.org/packages/c2/f4/651b1225e976bd1a2ba5cfba0c29d096581c2636b437e3a9a7ab6276270a/propcache-0.5.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a4840ab0ae0216d952f4b53dc6d0b992bfc2bedbfe360bdd9b548bc184c08959", size = 52033, upload-time = "2026-05-08T20:59:47.408Z" }, - { url = "https://files.pythonhosted.org/packages/15/a8/8ede85d6aa1f79fc7dc2f8fd2c8d65920b8272c3892903c8a1affde48cfb/propcache-0.5.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c6844ba6364fb12f403928a82cfd295ab103a2b315c77c747b2dbe4a41894ea7", size = 52754, upload-time = "2026-05-08T20:59:49.202Z" }, - { url = "https://files.pythonhosted.org/packages/7d/fe/b3551b41bbc2f5b5bb088fc6920567cd43101253e68fbaa261339eb96fe1/propcache-0.5.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2293949b855ce597f2826452d17c2d545fb5622379c4ea6fdf525e9b8e8a2511", size = 57573, upload-time = "2026-05-08T20:59:50.778Z" }, - { url = "https://files.pythonhosted.org/packages/83/27/ab851ebd1b7172e3e161f5f8d39e315d54a91bea246f01f4d872d3376aef/propcache-0.5.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0fd59b5af35f74da48d905dcbad55449ba13be91823cb05a9bd590bbf5b61660", size = 60645, upload-time = "2026-05-08T20:59:52.227Z" }, - { url = "https://files.pythonhosted.org/packages/95/7d/466b3d18022e9897cbda9c735c493c5bd747d7a4c6f5ea1480b4cec434b6/propcache-0.5.2-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:29f9309a2e42b0d273be006fdb4be2d6c39a47f6f57d8fb1cf9f81481df81b66", size = 61563, upload-time = "2026-05-08T20:59:53.866Z" }, - { url = "https://files.pythonhosted.org/packages/27/1b/16ab7f2cf2041da2f60d156ba64c2484eadf9168075b4ff43c3ef60045af/propcache-0.5.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5aaa2b923c1944ac8febd6609cb373540a5563e7cbcb0fd770f75dace2eb817b", size = 58888, upload-time = "2026-05-08T20:59:55.457Z" }, - { url = "https://files.pythonhosted.org/packages/0a/67/bb777ffd907633563bf35fd859c4ce97b0512c32f4633cf5d1eb7c33512b/propcache-0.5.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:66ea454f095ddf5b6b14f56c064c0941c4788be11e18d2464cf643bf7203ff67", size = 59253, upload-time = "2026-05-08T20:59:57.075Z" }, - { url = "https://files.pythonhosted.org/packages/b9/42/64f8d90b73fd9cdc1499b48057ff6d9cd2a98a25734c9bb62ecf07e87061/propcache-0.5.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:95f1e3f4760d404b13c9976c0229b2b49a3c8e2c62a9ce92efdd2b11ada75e3f", size = 57558, upload-time = "2026-05-08T20:59:58.602Z" }, - { url = "https://files.pythonhosted.org/packages/eb/02/dba5bc03c9041f2092ea55a449caf5dfe68352c6654511b29ba0654ddb69/propcache-0.5.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:85341b12b9d55bad0bded24cac341bb34289469e03a11f3f583ea1cc1db0326c", size = 55007, upload-time = "2026-05-08T20:59:59.837Z" }, - { url = "https://files.pythonhosted.org/packages/14/c0/43f649c7aa2a77a3b100d84e9dea3a483120ecb608bfe36ce49eaff517fe/propcache-0.5.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:26a4dca084132874e639895c3135dfad5eb20bae209f62d1aeb31b03e601c3c0", size = 60355, upload-time = "2026-05-08T21:00:01.144Z" }, - { url = "https://files.pythonhosted.org/packages/83/c0/435dafd27f1cb4a495381dae60e25883ccfe4020bb72818e8184c1678092/propcache-0.5.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:3b199b9b2b3d6a7edf3183ba8a9a137a22b97f7df525feb5ae1eccf026d2a9c6", size = 59057, upload-time = "2026-05-08T21:00:02.401Z" }, - { url = "https://files.pythonhosted.org/packages/53/ae/6e292df9135d659944e96cb3389258e4a663e5b2b5f6c217ef0ddc8d2f73/propcache-0.5.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:e59bc9e66329185b93dab73f210f1a37f81cb40f321501db8017c9aea15dba27", size = 61938, upload-time = "2026-05-08T21:00:03.638Z" }, - { url = "https://files.pythonhosted.org/packages/0b/42/314ebc50d8159055411fd6b0bda322ff510e4b1f7d2e4927940ad0f6af20/propcache-0.5.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:552ffadf6ad409844bc5919c42a0a83d88314cedddaea0e41e80a8b8fffe881f", size = 59731, upload-time = "2026-05-08T21:00:04.881Z" }, - { url = "https://files.pythonhosted.org/packages/b8/9b/2da6dee38871c3c8772fabc2758325a5c9077d6d18c597737dc04dd884cd/propcache-0.5.2-cp311-cp311-win32.whl", hash = "sha256:cd416c1de191973c52ff1a12a57446bfc7642797b282d7caf2162d7d1b8aa9a0", size = 38966, upload-time = "2026-05-08T21:00:06.511Z" }, - { url = "https://files.pythonhosted.org/packages/42/4e/f17363fb58c0afe05b067361cb6d86ed2d29de6506779a27547c4d183075/propcache-0.5.2-cp311-cp311-win_amd64.whl", hash = "sha256:44e488ef40dbb452700b2b1f8188934121f6648f52c295055662d2191959ff82", size = 42135, upload-time = "2026-05-08T21:00:08.088Z" }, - { url = "https://files.pythonhosted.org/packages/c6/eb/6af6685077d22e8b33358d3c548e3282706a0b3cd85044ffba4e5dd08e3b/propcache-0.5.2-cp311-cp311-win_arm64.whl", hash = "sha256:54adaa85a22078d1e306304a40984dc5be99d599bf3dc0a24dc98f7daeab89ab", size = 38381, upload-time = "2026-05-08T21:00:09.692Z" }, - { url = "https://files.pythonhosted.org/packages/4a/cb/e27bc2b2737a0bb49962b275efa051e8f1c35a936df7d5139b6b658b7dc9/propcache-0.5.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:806719138ecd720339a12410fb9614ac9b2b2d3a5fdf8235d56981c36f4039ba", size = 95887, upload-time = "2026-05-08T21:00:11.277Z" }, - { url = "https://files.pythonhosted.org/packages/e6/13/b8ae04c59392f8d11c6cd9fb4011d1dc7c86b81225c770280300e259ffe1/propcache-0.5.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:db2b80ea58eab4f86b2beec3cc8b39e8ff9276ac20e96b7cce43c8ae84cd6b5a", size = 54654, upload-time = "2026-05-08T21:00:12.604Z" }, - { url = "https://files.pythonhosted.org/packages/2c/7d/49777a3e20b55863d4794384a38acd460c04157b0a00f8602b0d508b8431/propcache-0.5.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e5cbfac9f61484f7e9f3597775500cd3ebe8274e9b050c38f9525c77c97520bf", size = 55190, upload-time = "2026-05-08T21:00:13.935Z" }, - { url = "https://files.pythonhosted.org/packages/44/c7/085d0cd63062e84044e3f05797749c3f8e3938ff3aeb0eb2f69d43fafc91/propcache-0.5.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5dbc581d2814337da56222fab8dc5f161cd798a434e49bac27930aaef798e144", size = 59995, upload-time = "2026-05-08T21:00:15.526Z" }, - { url = "https://files.pythonhosted.org/packages/9c/42/32cf8e3009e92b2645cf1e944f701e8ea4e924dffde1ee26db860bcbf7e4/propcache-0.5.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:857187f381f88c8e2fa2fe56ab94879d011b883d5a2ee5a1b60a8cd2a06846d9", size = 63422, upload-time = "2026-05-08T21:00:16.824Z" }, - { url = "https://files.pythonhosted.org/packages/9e/1b/f112433f99fc979431b87a39ef169e3f8df070d99a72792c56d6937ac48b/propcache-0.5.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:178b4a2cdaac1818e2bf1c5a99b94383fa73ea5382e032a48dec07dc5668dc42", size = 64342, upload-time = "2026-05-08T21:00:18.362Z" }, - { url = "https://files.pythonhosted.org/packages/14/15/5574111ae50dd6e879456888c0eadd4c5a869959775854e18e18a6b345f3/propcache-0.5.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6f328175a2cde1f0ff2c4ed8ce968b9dcfb55f3a7153f39e2957ed994da13476", size = 61639, upload-time = "2026-05-08T21:00:19.692Z" }, - { url = "https://files.pythonhosted.org/packages/cc/da/4d775080b1490c0ae604acda868bd71aabe3a89ed16f2aa4339eb8a283e7/propcache-0.5.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5671d09a36b06d0fd4a3da0fccbcae360e9b1570924171a15e9e0997f0249fba", size = 61588, upload-time = "2026-05-08T21:00:21.155Z" }, - { url = "https://files.pythonhosted.org/packages/04/ac/f076982cbe2195ee9cf32de5a1e46951d9fb399fc207f390562dd0fd8fb2/propcache-0.5.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:80168e2ebe4d3ec6599d10ad8f520304ae1cad9b6c5a95372aef1b66b7bfb53a", size = 60029, upload-time = "2026-05-08T21:00:22.713Z" }, - { url = "https://files.pythonhosted.org/packages/70/60/189be62e0dd898dce3b331e1b8c7a543cd3a405ac0c81fe8ee8a9d5d77e1/propcache-0.5.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:45f11346f884bc47444f6e6647131055844134c3175b629f84952e2b5cd62b64", size = 56774, upload-time = "2026-05-08T21:00:24.001Z" }, - { url = "https://files.pythonhosted.org/packages/ea/9e/93377b9c7939c1ffae98f878dee955efadfd638078bc86dbc21f9d52f651/propcache-0.5.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:8e778ebd44ef4f66ed60a0416b06b489687db264a9c0b3620362f26489492913", size = 63532, upload-time = "2026-05-08T21:00:25.545Z" }, - { url = "https://files.pythonhosted.org/packages/14/f9/590ef6cfb9b8028d516d287812ece32bb0bc5f11fbb9c8bf6b2e6313fec8/propcache-0.5.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:c0cb9ed24c8964e172768d455a38254c2dd8a552905729ce006cad3d3dda59b1", size = 61592, upload-time = "2026-05-08T21:00:27.186Z" }, - { url = "https://files.pythonhosted.org/packages/b4/5e/70958b3034c297a630bba2f17ca7abc2d5f39a803ad7e370ab79d1ecd022/propcache-0.5.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:1d1ad32d9d4355e2be65574fd0bfd3677e7066b009cd5b9b2dee8aa6a6393b33", size = 64788, upload-time = "2026-05-08T21:00:28.8Z" }, - { url = "https://files.pythonhosted.org/packages/12/fd/77fe5936d8c3086ca9048f7f415f122ed82e53884a9ec193646b42deef06/propcache-0.5.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:c80f4ba3e8f00189165999a742ee526ebeccedf6c3f7beb0c7df821e9772435a", size = 62514, upload-time = "2026-05-08T21:00:30.098Z" }, - { url = "https://files.pythonhosted.org/packages/cf/74/66bd798b5b3be70aa1b391f5cc9d6a0a5532d7fd3b19ec0b213e72e6ad9d/propcache-0.5.2-cp312-cp312-win32.whl", hash = "sha256:8c7972d8f193740d9175f0998ab38717e6cd322d5935c5b0fef8c0d323fd9031", size = 39018, upload-time = "2026-05-08T21:00:31.622Z" }, - { url = "https://files.pythonhosted.org/packages/61/7c/5c0d34aa3024694d6dcb9271cdbdd08c4e47c1c0ad95ec7e7bc74cdea145/propcache-0.5.2-cp312-cp312-win_amd64.whl", hash = "sha256:d9ee8826a7d47863a08ac44e1a5f611a462eefc3a194b492da242128bec75b42", size = 42322, upload-time = "2026-05-08T21:00:32.918Z" }, - { url = "https://files.pythonhosted.org/packages/4d/91/875812f1a3feb20ceba818ef39fbe4d92f1081e04ac815c822496d0d038b/propcache-0.5.2-cp312-cp312-win_arm64.whl", hash = "sha256:2800a4a8ead6b28cccd1ec54b59346f0def7922ee1c7598e8499c733cfbb7c84", size = 38172, upload-time = "2026-05-08T21:00:35.124Z" }, - { url = "https://files.pythonhosted.org/packages/c5/09/f049e45385503fe67db75a6b6186a7b9f0c3930366dc960522c312a825b1/propcache-0.5.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:099aaf4b4d1a02265b92a977edf00b5c4f63b3b17ac6de39b0d637c9cac0188a", size = 94457, upload-time = "2026-05-08T21:00:36.355Z" }, - { url = "https://files.pythonhosted.org/packages/6b/65/83d1d05655baf63113731bd5a1008435e14f8d1e5a06cbe4ec5b23ad7a31/propcache-0.5.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:68ce1c44c7a813a7f71ea04315a8c7b330b63db99d059a797a4651bb6f69f117", size = 53835, upload-time = "2026-05-08T21:00:38.072Z" }, - { url = "https://files.pythonhosted.org/packages/a9/12/a6ba6482bb5ea3260c000c9b20881c95fa11c6b30173715668259f844ed7/propcache-0.5.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fc299c129490f55f254cd90be0deca4764e36e9a7c08b4aa588479a3bbed3098", size = 54545, upload-time = "2026-05-08T21:00:39.319Z" }, - { url = "https://files.pythonhosted.org/packages/a9/19/7fa086f5764c59ec8a8e157cd93aa8497acc00aba9dcdec56bfffb32602d/propcache-0.5.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a6ae2198be502c10f09b2516e7b5d019816924bc3183a43ce792a7bd6625e6f4", size = 59886, upload-time = "2026-05-08T21:00:40.621Z" }, - { url = "https://files.pythonhosted.org/packages/a1/e4/5d7663dc8235956c8f5281698a3af1d351d8820341ddd890f59d9a9127f2/propcache-0.5.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6041d31504dc1779d700e1edcfb08eea334b357620b06681a4eabb57a74e574e", size = 63261, upload-time = "2026-05-08T21:00:41.775Z" }, - { url = "https://files.pythonhosted.org/packages/4a/4a/15a03adee24d6350da4292caeac44c34c033d2afe5e87eb370f38854560f/propcache-0.5.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f7eabc04151c78a9f4d5bbb5f1faf571e4defeb4b585e0fe95b60ff2dbe4d3d7", size = 64184, upload-time = "2026-05-08T21:00:43.018Z" }, - { url = "https://files.pythonhosted.org/packages/8b/c6/979176efdaa3d239e36d503d5af63a0a773b36662ed8f52e5b6a6d9fd40e/propcache-0.5.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4db0ba63d693afd40d249bd93f842b5f144f8fcbb83de05660373bcf30517b1d", size = 61534, upload-time = "2026-05-08T21:00:44.507Z" }, - { url = "https://files.pythonhosted.org/packages/c8/22/63e8cd1bae4c2d2be6493b6b7d10566ddafad88137cfbc99964a1119853c/propcache-0.5.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1dbcf7675229b35d31abb6547d8ebc8c27a830ac3f9a794edff6254873ec7c0a", size = 61500, upload-time = "2026-05-08T21:00:45.796Z" }, - { url = "https://files.pythonhosted.org/packages/60/5a/28e5d9acbac1cc9ccb67045e8c1b943aa8d79fdf39c93bd73cacd68008ea/propcache-0.5.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d310c013aad2c72f1c3f2f8dd3279d460a858c551f97aeb8c63e4693cca7b4d2", size = 59994, upload-time = "2026-05-08T21:00:47.093Z" }, - { url = "https://files.pythonhosted.org/packages/f3/40/db650677f554a95b9c01a7c9d93d629e93a15562f5deb4573c9ee136fed2/propcache-0.5.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:06187263ddad280d05b4d8a8b3bb7d164cbebd469236544a42e6d9b28ac6a4fa", size = 56884, upload-time = "2026-05-08T21:00:48.376Z" }, - { url = "https://files.pythonhosted.org/packages/80/45/70b39b89516ff8b96bf732fa6fded8cef20f293cb1508690101c3c07ec51/propcache-0.5.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:3115559b8effafd63b142ea5ed53d63a16ea6469cbc63dce4ee194b42db5d853", size = 63464, upload-time = "2026-05-08T21:00:49.954Z" }, - { url = "https://files.pythonhosted.org/packages/f9/e2/fa59d3a89eac5534293124af4f1d0d0ada091ce4a0ab4610ce03fd2bdd8d/propcache-0.5.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c60462af8e6dc30c35407c7237ea908d777b22862bbee27bc4699c0d8bcdc45a", size = 61588, upload-time = "2026-05-08T21:00:51.281Z" }, - { url = "https://files.pythonhosted.org/packages/0b/97/efb547a55c4bc7381cfb202d6a2239ac621045277bc1ea5dfd3a7f0516c0/propcache-0.5.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:40314bca9ac559716fe374094fc81c11dcc34b64fd6c585360f5775690505704", size = 64667, upload-time = "2026-05-08T21:00:52.602Z" }, - { url = "https://files.pythonhosted.org/packages/92/56/f5c7d9b4b7595d5127da38974d791b2153f3d1eae6c674af3583ace92ad3/propcache-0.5.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:cfa21e036ce1e1db2be04ba3b85d2df1bb1702fa01932d984c5464c665228ff4", size = 62463, upload-time = "2026-05-08T21:00:54.303Z" }, - { url = "https://files.pythonhosted.org/packages/bd/3b/484a3a65fc9f9f60c41dcd17b428bace5389544e2c680994534a20755066/propcache-0.5.2-cp313-cp313-win32.whl", hash = "sha256:f156a3529f38063b6dbaf356e15602a7f95f8055b1295a438433a6386f10463d", size = 38621, upload-time = "2026-05-08T21:00:55.808Z" }, - { url = "https://files.pythonhosted.org/packages/1c/fd/3f0f10dba4dabad3bf53102be007abf55481067952bde0fdddff439e7c61/propcache-0.5.2-cp313-cp313-win_amd64.whl", hash = "sha256:dfed59d0a5aeb01e242e66ff0300bc4a265a7c05f612d30016f0b60b1017d757", size = 41649, upload-time = "2026-05-08T21:00:57.061Z" }, - { url = "https://files.pythonhosted.org/packages/90/ec/6ce619cc32bb500a482f811f9cd509368b4e58e638d13f2c68f370d6b475/propcache-0.5.2-cp313-cp313-win_arm64.whl", hash = "sha256:ba338430e87ceb9c8f0cf754de38a9860560261e56c00376debd628698a7364f", size = 37636, upload-time = "2026-05-08T21:00:58.646Z" }, - { url = "https://files.pythonhosted.org/packages/1b/82/c1d268bbbf2ef981c5bf0fbbe746db617c66e3bcefe431a1aa8943fbe23a/propcache-0.5.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:a592f5f3da71c8691c788c13cb6734b6d17663d2e1cb8caddf0673d01ef8847d", size = 98872, upload-time = "2026-05-08T21:00:59.889Z" }, - { url = "https://files.pythonhosted.org/packages/f4/d4/52c871e73e864e6b34c0e2d58ac1ec5ccd149497ddc7ad2137ae98323a35/propcache-0.5.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:6a997d0489e9668a384fcfd5061b857aa5361de73191cac204d04b889cfbbafa", size = 56257, upload-time = "2026-05-08T21:01:01.195Z" }, - { url = "https://files.pythonhosted.org/packages/67/f0/9b90ca2a210b3d09bcfcd96ecd0f55545c091535abce2a45de2775cfd357/propcache-0.5.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:10734b5484ea113152ee25a91dccedf81631791805d2c9ccb054958e51842c94", size = 56696, upload-time = "2026-05-08T21:01:02.941Z" }, - { url = "https://files.pythonhosted.org/packages/9d/0e/6e9d4ba07c8e56e21ddec1e75f12148142b21ca83a51871babce095334f4/propcache-0.5.2-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cafca7e56c12bb02ae16d283742bef25a61122e9dab2b5b3f2ccbe589ce32164", size = 62378, upload-time = "2026-05-08T21:01:04.475Z" }, - { url = "https://files.pythonhosted.org/packages/65/19/c10badaa463dde8a27ce884f8ee2ec37e6035b7c9f5ff0c8f74f06f08dac/propcache-0.5.2-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f064f8d2b59177878b7615df1735cd8fe3462ed6be8c7b217d17a276489c2b7f", size = 65283, upload-time = "2026-05-08T21:01:05.959Z" }, - { url = "https://files.pythonhosted.org/packages/b0/b6/93bea99ca80e19cef6512a8580e5b7857bbe09422d9daa7fd4ef5723306c/propcache-0.5.2-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f78abfa8dfc32376fd1aacf597b2f2fbbe0ea751419aee718af5d4f82537ef8c", size = 66616, upload-time = "2026-05-08T21:01:07.228Z" }, - { url = "https://files.pythonhosted.org/packages/83/e4/5c7462e50625f051f37fb38b8224f7639f667184bbd34424ec83819bb1b7/propcache-0.5.2-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f7467da8a9822bf1a55336f877340c5bcbd3c482afc43a99771169f74a26dedc", size = 63773, upload-time = "2026-05-08T21:01:08.514Z" }, - { url = "https://files.pythonhosted.org/packages/ca/b6/99238894047b13c823be25027e736626cd414a52a5e30d2c3347c2733529/propcache-0.5.2-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a6ddc6ac9e25de626c1f129c1b467d7ecd33ce2237d3fd0c4e429feef0a7ee1f", size = 63664, upload-time = "2026-05-08T21:01:09.874Z" }, - { url = "https://files.pythonhosted.org/packages/85/1e/a3a1a63116a2b8edb415a8bb9a6f0c34bd03830b1e18e8ce2904e1dc1cf4/propcache-0.5.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:2f22cbbac9e26a8e864c0985ff1268d5d939d53d9d9411a9824279097e03a2cb", size = 62643, upload-time = "2026-05-08T21:01:11.132Z" }, - { url = "https://files.pythonhosted.org/packages/e4/03/893cf147de2fc6543c5eaa07ad833170e7e2a2385725bbebe8c0503723bb/propcache-0.5.2-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:fc76378c62a0f04d0cd82fbb1a2cd2d7e28fcb40d5873f28a6c44e388aaa2751", size = 59595, upload-time = "2026-05-08T21:01:12.387Z" }, - { url = "https://files.pythonhosted.org/packages/86/3b/04c1a2e12c57766568ba75ba72b3bf2042818d4c1425fab6fc07155c7cff/propcache-0.5.2-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:acd2c8edba48e31e58a363b8cf4e5c7db3b04b3f9e371f601df30d9b0d244836", size = 65711, upload-time = "2026-05-08T21:01:13.676Z" }, - { url = "https://files.pythonhosted.org/packages/1c/34/80f8d0099f8d6bacc4de1624c85672681c8cd1149ca2da0e38fd120b817f/propcache-0.5.2-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:452b5065457eb9991ec5eb38ff41d6cd4c991c9ac7c531c4d5849ae473a9a13f", size = 64247, upload-time = "2026-05-08T21:01:14.936Z" }, - { url = "https://files.pythonhosted.org/packages/f3/1a/8b08f3a5f1037e9e370c55883ceeeee0f6dd0416fb2d2d67b8bfc91f2a79/propcache-0.5.2-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:3430bb2bfe1331885c427745a751e774ee679fd4344f80b97bf879815fe8fa55", size = 67102, upload-time = "2026-05-08T21:01:16.281Z" }, - { url = "https://files.pythonhosted.org/packages/34/68/8bdb7bb7756d76e005490649d10e4a8369e610c74d619f71e1aedf889e9c/propcache-0.5.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:cef6cea3922890dd6c9654971001fa797b526c16ab5e1e46c05fd6f877be7568", size = 64964, upload-time = "2026-05-08T21:01:17.57Z" }, - { url = "https://files.pythonhosted.org/packages/0a/aa/50fb0b5d3968b61a510926ff8b8465f1d6e976b3ab74496d7a4b9fc42515/propcache-0.5.2-cp313-cp313t-win32.whl", hash = "sha256:72d61e16dd78228b58c5d47be830ff3da7e5f139abdf0aef9d86cde1c5cf2191", size = 42546, upload-time = "2026-05-08T21:01:18.946Z" }, - { url = "https://files.pythonhosted.org/packages/ae/4c/0ddbae64321bd4a95bcbfc19307238016b5b1fee645c84626c8d539e5b74/propcache-0.5.2-cp313-cp313t-win_amd64.whl", hash = "sha256:0958834041a0166d343b8d2cedcd8bcbaeb4fdbe0cf08320c5379f143c3be6e7", size = 46330, upload-time = "2026-05-08T21:01:20.162Z" }, - { url = "https://files.pythonhosted.org/packages/00/d9/9cddc8efb78d8af264c5ec9f6d10b62f57c515feda8d321595f56010fb23/propcache-0.5.2-cp313-cp313t-win_arm64.whl", hash = "sha256:6de8bd93ddde9b992cf2b2e0d796d501a19026b5b9fd87356d7d0779531a8d96", size = 40521, upload-time = "2026-05-08T21:01:21.399Z" }, - { url = "https://files.pythonhosted.org/packages/e2/ea/23ee535d90ce8bcc465a3028eb3cc0ce3bd1005f4bb27710b30587de798d/propcache-0.5.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:46088abff4cba581dea21ae0467a480526cb25aa5f3c269e909f800328bc3999", size = 94662, upload-time = "2026-05-08T21:01:22.683Z" }, - { url = "https://files.pythonhosted.org/packages/b5/06/c5a52f419b5d8972f8d46a7577476090d8e3263ff589ce40b5ca4968d5be/propcache-0.5.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:fc88b26f08d634f7bc819a7852e5214f5802641ab8d9fd5326892292eee1993e", size = 53928, upload-time = "2026-05-08T21:01:23.986Z" }, - { url = "https://files.pythonhosted.org/packages/63/b1/4260d67d6bd85e58a66b72d54ce15d5de789b6f3870cc6bedf8ff9667401/propcache-0.5.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:97797ebb098e670a2f92dd66f32897e30d7615b14e7f59711de23e30a9072539", size = 54650, upload-time = "2026-05-08T21:01:25.305Z" }, - { url = "https://files.pythonhosted.org/packages/70/06/2f46c318e3307cd7a6a7481def374ce838c0fe20084b39dd54b0879d0e99/propcache-0.5.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ba57fffe4ac99c5d30076161b5866336d97600769bad35cc68f7774b15298a4e", size = 59912, upload-time = "2026-05-08T21:01:26.545Z" }, - { url = "https://files.pythonhosted.org/packages/4c/29/fe1aebec2ce57ab985a9c382bded1124431f85078113aa222c5d278430d4/propcache-0.5.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:583c19759d9eec1e5b69e2fbef36a7d9c326041be9746cb822d335c8cedc2979", size = 63300, upload-time = "2026-05-08T21:01:27.937Z" }, - { url = "https://files.pythonhosted.org/packages/b4/18/2334b26768b6c82be8c69e83671b767d5ef426aa09b0cba6c2ea47816774/propcache-0.5.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d0326e2e5e1f3163fa306c834e48e8d490e5fae607a097a40c0648109b47ba80", size = 64208, upload-time = "2026-05-08T21:01:29.484Z" }, - { url = "https://files.pythonhosted.org/packages/2b/76/7f1bfd6afff4c5e38e36a3c6d68eb5f4b7311ea80baf693db78d95b603c4/propcache-0.5.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e00820e192c8dbebcafb383ebbf99030895f09905e7a0eb2e0340a0bcc2bc825", size = 61633, upload-time = "2026-05-08T21:01:31.068Z" }, - { url = "https://files.pythonhosted.org/packages/c4/46/b3ff8aba2b4953a3e50de2cf72f1b5748b8eca93b15f3dc2c84339084c09/propcache-0.5.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c66afea89b1e43725731d2004732a046fe6fe955d51f952c3e95a7314a284a39", size = 61724, upload-time = "2026-05-08T21:01:32.374Z" }, - { url = "https://files.pythonhosted.org/packages/c5/01/814cfcafbcff954f94c01cf30e097ddc88a076b5440fbcf4570753437d40/propcache-0.5.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d4dc37dec6c6cdad0b57881a5658fd14fbf53e333b1a86cf86559f190e1d9ec4", size = 60069, upload-time = "2026-05-08T21:01:33.67Z" }, - { url = "https://files.pythonhosted.org/packages/da/68/5c6f7622d510cc666a300687e06fd060c1a43361c0c9b20d284f06d8096a/propcache-0.5.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:5570dbcc97571c15f68068e529c92715a12f8d54030e272d264b377e22bd17a5", size = 57099, upload-time = "2026-05-08T21:01:34.915Z" }, - { url = "https://files.pythonhosted.org/packages/55/27/9cb0b4c679124085327957d42521c99dba04c88c90c3e55a6f0b633ebccc/propcache-0.5.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:f814362777a9f841adddb200ecdf8f5cb1e5a3c4b7a86378edbd6ccb26edd702", size = 63391, upload-time = "2026-05-08T21:01:36.231Z" }, - { url = "https://files.pythonhosted.org/packages/f0/9d/7258aaa5bdf60fc6f27591eef6fe52768cb0beda7140be477c8b12c9794a/propcache-0.5.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:196913dea116aeb5a2ba95af4ddcb7ea85559ae07d8eee8751688310d09168c3", size = 61626, upload-time = "2026-05-08T21:01:37.545Z" }, - { url = "https://files.pythonhosted.org/packages/8e/0d/41c602003e8a9b16fe1e7eadf62c7bfba9d5474370b24200bf48b315f45f/propcache-0.5.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:6e7b8719005dd1175be4ab1cd25e9b98659a5e0347331506ec6760d2773a7fb5", size = 64781, upload-time = "2026-05-08T21:01:38.83Z" }, - { url = "https://files.pythonhosted.org/packages/8b/f3/38e66b1856e9bd079deea015bc4a55f7767c0e4db2f7dcf69e7e680ba4ce/propcache-0.5.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:51f96d685ab16e88cab128cd37a52c5da540809c8b879fa047731bfcb4ad35a4", size = 62570, upload-time = "2026-05-08T21:01:40.415Z" }, - { url = "https://files.pythonhosted.org/packages/95/ca/bbfe9b910ce57dde8bb4876b4520fc02a4e89497c10de26be936758a3aaa/propcache-0.5.2-cp314-cp314-win32.whl", hash = "sha256:cc6fc3cc62e8501d3ed62894425040d2728ecddb1ed072737a5c70bd537aa9f0", size = 39436, upload-time = "2026-05-08T21:01:41.654Z" }, - { url = "https://files.pythonhosted.org/packages/61/d2/45c9defbaa1ea297035d9d4cce9e8f80daafbf19319c6007f157c6256ea9/propcache-0.5.2-cp314-cp314-win_amd64.whl", hash = "sha256:81e3a30b0bb60caa22033dd0f8a3618d1d67356212514f62c57db75cb0ef410c", size = 42373, upload-time = "2026-05-08T21:01:43.041Z" }, - { url = "https://files.pythonhosted.org/packages/44/68/9ea5103f41d5217d7d6ec24db90018e23aebec070c3f9a6e54d12b841fd8/propcache-0.5.2-cp314-cp314-win_arm64.whl", hash = "sha256:0d2c9bf8528f135dbb805ce027567e09164f7efa51a2be07458a2c0420f292d0", size = 38554, upload-time = "2026-05-08T21:01:44.336Z" }, - { url = "https://files.pythonhosted.org/packages/8a/81/fadf555f42d3b762eea8a53950b0489fdc0aa9da5f8ed9e10ce0a4e01b48/propcache-0.5.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:4bc8ff1feffc6a61c7002ffe84634c41b822e104990ae009f44a0834430070bb", size = 99395, upload-time = "2026-05-08T21:01:45.883Z" }, - { url = "https://files.pythonhosted.org/packages/f5/c9/c61e134a686949cf7971af3a390148b1156f7be81c73bc0cd12c873e2d48/propcache-0.5.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:79aa3ff0a9b566633b642fa9caf7e21ed1c13d6feca718187873f199e1514078", size = 56653, upload-time = "2026-05-08T21:01:47.307Z" }, - { url = "https://files.pythonhosted.org/packages/cb/73/daf935ea7048ddd7ec8eec5345b4a40b619d2d178b3c0a0900796bc3c794/propcache-0.5.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1b31822f4474c4036bae62de9402710051d431a606d6a0f907fec79935a071aa", size = 56914, upload-time = "2026-05-08T21:01:48.573Z" }, - { url = "https://files.pythonhosted.org/packages/79/9f/aba959b435ea18617edd7cf0a7ad0b9c574b8fc7e3d2cd55fb59cb255d33/propcache-0.5.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:13fef48778b5a2a756523fdb781326b028ca75e32858b04f2cdd19f394564917", size = 62567, upload-time = "2026-05-08T21:01:49.903Z" }, - { url = "https://files.pythonhosted.org/packages/6c/a1/859942de9a791ff42f6141736f5b37749b8f53e65edfa49638c67dd67e6a/propcache-0.5.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8b73ab70f1a3351fbc71f663b3e645af6dd0329100c353081cf69c37433fc6fe", size = 65542, upload-time = "2026-05-08T21:01:51.204Z" }, - { url = "https://files.pythonhosted.org/packages/b5/61/315bc0fd6c0fc7f80a528b8afd209e5fc4a875ea79571b91b8f50f442907/propcache-0.5.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5538d2c13d93e4698af7e092b57bc7298fd35d1d58e656ae18f23ee0d0378e03", size = 66845, upload-time = "2026-05-08T21:01:52.539Z" }, - { url = "https://files.pythonhosted.org/packages/47/f7/9f8122e3132e8e354ac41975ef8f1099be7d5a16bc7ae562734e993665c0/propcache-0.5.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cd645f03898405cabe694fb8bc35241e3a9c332ec85627584fe3de201452b335", size = 63985, upload-time = "2026-05-08T21:01:53.847Z" }, - { url = "https://files.pythonhosted.org/packages/c8/54/c317819ec157cbf6f35df9df9657a6f82daf34d5faf15948b2f639c2192e/propcache-0.5.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a473b3440261e0c60706e732b2ed2f517857344fc21bf48fdfe211e2d98eb285", size = 63999, upload-time = "2026-05-08T21:01:55.179Z" }, - { url = "https://files.pythonhosted.org/packages/5a/56/387e3f7dfce0a9233df41fb888aa1c30222cb4bbbf09537c02dd9bd85fe2/propcache-0.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7afa37062e6650640e932e4cc9297d81f9f42d9944029cc386b8247dea4da837", size = 62779, upload-time = "2026-05-08T21:01:57.489Z" }, - { url = "https://files.pythonhosted.org/packages/a1/9c/596784cb5824ed61ee960d3f8655a3f0993e107c6e98ab6c818b7fb92ccb/propcache-0.5.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:8a90efd5777e996e42d568db9ac740b944d691e565cbfd31b2f7832f9184b2b8", size = 59796, upload-time = "2026-05-08T21:01:58.736Z" }, - { url = "https://files.pythonhosted.org/packages/c2/3d/1a6cfa1726a48542c1e8784a0761421476a5b68e09b7f36bf95eb954aaba/propcache-0.5.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:f19bb891234d72535764d703bfed1153cc34f4214d5bd7150aee1eec9e8f4366", size = 66023, upload-time = "2026-05-08T21:02:00.228Z" }, - { url = "https://files.pythonhosted.org/packages/e4/0e/05fd6990369477076e4e280bcb970de760fddf0161a46e988bc95f7940ec/propcache-0.5.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:32775082acd2d807ee3db715c7770d38767b817870acfa08c29e057f3c4d5b56", size = 64448, upload-time = "2026-05-08T21:02:01.888Z" }, - { url = "https://files.pythonhosted.org/packages/cd/86/5f8da315a4309c62c10c0b2516b17492d5d3bbe1bb862b96604db67e2a37/propcache-0.5.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:9282fb1a3bccd038da9f768b927b24a0c753e466c086b7c4f3c6982851eefb2d", size = 67329, upload-time = "2026-05-08T21:02:03.484Z" }, - { url = "https://files.pythonhosted.org/packages/da/d3/3368efe79ab21f0cdf86ef49895811c9cc933131d4cde1f28a624e22e712/propcache-0.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:cc49723e2f60d6b32a0f0b08a3fd6d13203c07f1cd9566cfce0f12a917c967a2", size = 65172, upload-time = "2026-05-08T21:02:04.745Z" }, - { url = "https://files.pythonhosted.org/packages/d5/07/127e8b0bacfb325396196f9d976a22453049b89b9b2b08477cc3145faa44/propcache-0.5.2-cp314-cp314t-win32.whl", hash = "sha256:2d7aa89ebca5acc98cba9d1472d976e394782f587bad6661003602a619fd1821", size = 43813, upload-time = "2026-05-08T21:02:06.025Z" }, - { url = "https://files.pythonhosted.org/packages/88/fb/46dad6c0ae49ed230ab1b16c890c2b6314e2403e6c412976f4a72d64a527/propcache-0.5.2-cp314-cp314t-win_amd64.whl", hash = "sha256:d447bb0b3054be5818458fbb171208b1d9ff11eba14e18ca18b90cbb45767370", size = 47764, upload-time = "2026-05-08T21:02:07.353Z" }, - { url = "https://files.pythonhosted.org/packages/e7/c4/a47d0a63aa309d10d59ede6e9d4cff03a344a79d1f0f4cd0cd74997b53e0/propcache-0.5.2-cp314-cp314t-win_arm64.whl", hash = "sha256:fe67a3d11cd9b4efabfa45c3d00ffba2b26811442a73a581a94b67c2b5faccf6", size = 41140, upload-time = "2026-05-08T21:02:09.065Z" }, - { url = "https://files.pythonhosted.org/packages/3a/ed/1cdcab6ba3d6ab7feca11fc14f0eeea80755bb53ef4e892079f31b10a25f/propcache-0.5.2-py3-none-any.whl", hash = "sha256:be1ddfcbb376e3de5d2e2db1d58d6d67463e6b4f9f040c000de8e300295465fe", size = 14036, upload-time = "2026-05-08T21:02:10.673Z" }, +version = "0.5.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b3/9a/9fbf4e4ec0c2d7f1c32519fff782ef467859b8faa9fbc5331a96f6395d43/propcache-0.5.4.tar.gz", hash = "sha256:ff6b113f50bc066a698db5d944d2c6dc7507168dd3341e255a8892fd0715a558", size = 61545, upload-time = "2026-09-16T00:17:14.386Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/1e/40/14b21e505b7921617466576423f188a5c9caddfdaa1cf4b2b8a83d8fe216/propcache-0.5.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:897d1ddf6716e8f47200f7aad9a0efa6cc7586df66c6defa572f9eab379c078e", size = 86393, upload-time = "2026-09-16T00:14:06.9Z" }, + { url = "https://files.pythonhosted.org/packages/e7/4b/5a52e1a7b43563f7d408814194bb23cc8bf214eb6b86639b667a33a8d0d0/propcache-0.5.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9cbfff4423eef4cc6cafc021469641a2b835f610b2647a6c5281903e21b8670d", size = 50431, upload-time = "2026-09-16T00:14:08.025Z" }, + { url = "https://files.pythonhosted.org/packages/05/cf/b5248180bf056cc76acc60c9c6e8c0ebbfdbd1c6cffd31fd14996927b7c8/propcache-0.5.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3fc24f209c1b7f7f688b66b98293954f5504279760999b58920ee12dd8471c1d", size = 52116, upload-time = "2026-09-16T00:14:09.114Z" }, + { url = "https://files.pythonhosted.org/packages/86/a8/7c6cd6bfead1a11f2e411e688640e6d26574cb0bde7dcaa7423b0b65ed7a/propcache-0.5.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:62530ca89187827e4a4fe733f971abe81a7542eeea48ff61995f19b64d7199c8", size = 238729, upload-time = "2026-09-16T00:14:10.357Z" }, + { url = "https://files.pythonhosted.org/packages/5c/b4/442715b2e980df51be52d203549279e027728f24c80b00b5e525e31cd5ea/propcache-0.5.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:56fc3f7599528db40b1efa0889a620116e2704144495273d66066e8164e45838", size = 246121, upload-time = "2026-09-16T00:14:11.735Z" }, + { url = "https://files.pythonhosted.org/packages/bc/5d/df0684fc2b1732a01a7bec26d7897369022712422d25b09c37ce7dbc88a2/propcache-0.5.4-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4f2d880ff60f45898f4acfa152aac8d04e3ee627d90ff4003491bf92239d5757", size = 251735, upload-time = "2026-09-16T00:14:13.053Z" }, + { url = "https://files.pythonhosted.org/packages/c7/06/519a5ebb48b6f94beb48396e55c905f12246a25c3a3608a7ec7bceabf50e/propcache-0.5.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6e9368e87a3efc285e559131092c5db643eb8e56de4ee42064d5baec22ef2bb5", size = 235381, upload-time = "2026-09-16T00:14:14.398Z" }, + { url = "https://files.pythonhosted.org/packages/3c/07/1e0a9bb310830f2245edbd5cd3c6d24a783c053c4efd8e08e386e513c940/propcache-0.5.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:004e685b315646c410771836e72a44f143bbe624f29653a42687815069a303d5", size = 208973, upload-time = "2026-09-16T00:14:15.715Z" }, + { url = "https://files.pythonhosted.org/packages/62/5c/9324fab27d6088eecc47fe4332bf7aaf8c1ded93c36f558391e8a06d41a7/propcache-0.5.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:594eb4c6ec35e7179b058481f4e9f02521b56de16fa577c4b85c76fb1bf8a9f8", size = 233897, upload-time = "2026-09-16T00:14:17.25Z" }, + { url = "https://files.pythonhosted.org/packages/9c/a3/570d92fc952eae93b676f3a1568f4b89264102abd3c982ab6a9ebec58dcf/propcache-0.5.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:2dba2f02d2d5c09ef8a0e6c1a42aeaa451f4be9898cb00b04fe98717da2eb23b", size = 223512, upload-time = "2026-09-16T00:14:18.87Z" }, + { url = "https://files.pythonhosted.org/packages/65/47/26810d889d89bba31db397e6a88f8984af775f5ed6bad0a29dce84324cff/propcache-0.5.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:c3ef2818d63bc86071e9d2989ae75a1bc32b8f7059cfd9f5abbbee70c32e2ed6", size = 239043, upload-time = "2026-09-16T00:14:20.366Z" }, + { url = "https://files.pythonhosted.org/packages/89/2d/f9c47691aa024c8299a3afacd78d22a01ab57eb627b481b6089708e71017/propcache-0.5.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:dd2ac8f5b643454c2cc6b6118b13da16e88f4a6434fc3ba61aca384029f04f36", size = 208218, upload-time = "2026-09-16T00:14:21.801Z" }, + { url = "https://files.pythonhosted.org/packages/74/6b/d510c0c378cabbf9d0ac7b663af6d00f2e9074073d93b20c85f24aa5c071/propcache-0.5.4-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:4054acf80d40456a0537f2913b349718649d8d6458a14ab7f48d0ce28c30869d", size = 240301, upload-time = "2026-09-16T00:14:23.121Z" }, + { url = "https://files.pythonhosted.org/packages/3d/80/c80f6adaaa1e51f0db2dce8c9b3714d94ec45e358a21f9a1910b10b40a80/propcache-0.5.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:40e94adb1e7d39ff28a8bd8d8b8fbd1df6b9f40976dbe379134f1ce058e532dd", size = 230785, upload-time = "2026-09-16T00:14:24.458Z" }, + { url = "https://files.pythonhosted.org/packages/d9/e2/c32a7df3f39caa7f11b2eb37ea5b6960a6946f2bc7c4b8ff97bbdf6d6b6e/propcache-0.5.4-cp311-cp311-win32.whl", hash = "sha256:9f86f7259efe2c951f43e57d471c9b41daa5bfc7db9f67189059cf1ae6d77fd9", size = 42747, upload-time = "2026-09-16T00:14:25.715Z" }, + { url = "https://files.pythonhosted.org/packages/0a/8a/3db6a3543d8101263b4c52978b6276a04ead2caff2c5ab880d934f47bd89/propcache-0.5.4-cp311-cp311-win_amd64.whl", hash = "sha256:e904d4d01f36bd6e197590be1533c44e06058771e0746dd073a8ebb3ef880858", size = 46268, upload-time = "2026-09-16T00:14:26.996Z" }, + { url = "https://files.pythonhosted.org/packages/41/07/5222e2665bbf6e45847492ecbf3b9f3e4975a0ae300e5fd465df7d48ce55/propcache-0.5.4-cp311-cp311-win_arm64.whl", hash = "sha256:d42a9a856a4a6e2f6c10f1318c07e7daa498d6593abe745c71dae4521a26ca39", size = 43547, upload-time = "2026-09-16T00:14:28.143Z" }, + { url = "https://files.pythonhosted.org/packages/71/cd/348d58f142aebc4873345c6b31087629182ca6e0f2b3caeaa528cf882eba/propcache-0.5.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:b28f41fa3b8c6900457f858ec5b03998f3a6d535fbc1bb2edec5961ea05ec429", size = 87285, upload-time = "2026-09-16T00:14:29.362Z" }, + { url = "https://files.pythonhosted.org/packages/df/f4/f3ffaee281b276da854ac1d7a6a506d26cbc62ea2e623756f1d0a4a1ba1a/propcache-0.5.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:dcbf346a318a5e30063f547630b02bb787ce2f45b6368d5da143660b6a3835d8", size = 50984, upload-time = "2026-09-16T00:14:30.473Z" }, + { url = "https://files.pythonhosted.org/packages/25/88/1d7df7201750b37765ef2b23bc1c526c028dadde80afa0f57a118fc01182/propcache-0.5.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:87a3caecf8095e48dc72f84bfa42e23a848cf410cc9cc13031fba4869b706a21", size = 52460, upload-time = "2026-09-16T00:14:31.692Z" }, + { url = "https://files.pythonhosted.org/packages/83/4f/48865bd02a16ee5236bc46166b2946f37b93e07b0eae355dac0be0b216ca/propcache-0.5.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:60a64cbccaa11b7760ce705a14ada17ba459e7ca9f23ba587eb013821032d7ef", size = 251768, upload-time = "2026-09-16T00:14:32.908Z" }, + { url = "https://files.pythonhosted.org/packages/b0/19/3742a5eed62317b03b4002ee865dc9fd720308bdd0da1f29a5786c630311/propcache-0.5.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a74bfa37147cc08fb29df10bd9c16f40fa7f860cd3a6d2fff853323a94f6e17f", size = 257723, upload-time = "2026-09-16T00:14:34.267Z" }, + { url = "https://files.pythonhosted.org/packages/cb/d5/ee6350fb0be9122bb6c67082a876d34b90d980d100c106af4b81023e04f4/propcache-0.5.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a4d7a54719b67338a305dca2ce6aafe366817df94ddfd4b5514374356f5ca546", size = 265597, upload-time = "2026-09-16T00:14:35.56Z" }, + { url = "https://files.pythonhosted.org/packages/85/9f/83a07b6ec0e043c050cfdd35fb0cf1b7897b91d554d6eea293740309afe7/propcache-0.5.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2814ecd8e818f487bee4b0f921bc4d1c176cc5fc71ac0f072d0fa67eda4ac14b", size = 250424, upload-time = "2026-09-16T00:14:36.894Z" }, + { url = "https://files.pythonhosted.org/packages/33/2c/a763a8251f50fba042af0fb1f02bfec4b31381e40aff760db2be7b2e1f84/propcache-0.5.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6af4693716bfb03f1752ef1b30faa593db2c01d5272e9b8564a1549452a979ab", size = 216748, upload-time = "2026-09-16T00:14:38.369Z" }, + { url = "https://files.pythonhosted.org/packages/6a/e2/4d11bea8fd6a777149c6c20645f873952eab5de3a2497aa11648ec9ab6ab/propcache-0.5.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4fbc1a15dc8cd1689508758d626b372b1f09d28d9577667feaf9e6bfcd8efcbc", size = 246533, upload-time = "2026-09-16T00:14:39.82Z" }, + { url = "https://files.pythonhosted.org/packages/9f/36/6683597de4907e70c717e3588c541202c66086a72ff3db58be49de66e72c/propcache-0.5.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:cdee8205a44d0be91bbac4c41b95d86641b72dfc7aef1279400e4fda3f26a937", size = 238173, upload-time = "2026-09-16T00:14:41.259Z" }, + { url = "https://files.pythonhosted.org/packages/85/84/cb08d79f1762daafeb2b030c470cd0c725c97b8ad67412457c6f35c53e9d/propcache-0.5.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:9a2a8a50a93dee0268a860a07fa3b4bd968f8ce4dbd794957da772f395368526", size = 251128, upload-time = "2026-09-16T00:14:42.652Z" }, + { url = "https://files.pythonhosted.org/packages/c2/0d/41b848036db6621370c1f2e5471a7da8149c730f8552a5257567721f4576/propcache-0.5.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:7ffafcbfc7b549ab940047e505c831eabac5e67de53e1bc174adbc5285c55944", size = 214821, upload-time = "2026-09-16T00:14:44.112Z" }, + { url = "https://files.pythonhosted.org/packages/f1/b7/adfae4bf9c63bccf12e2d9690a175c6579047a6eec3b5a6a5f51428c15e2/propcache-0.5.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:d1f5a500bfcbb2c0ab85e98a0dcd70f5899d34efe365a0187700369a79603031", size = 254793, upload-time = "2026-09-16T00:14:45.429Z" }, + { url = "https://files.pythonhosted.org/packages/51/6f/eeca9647245d5f92e87d53e5f14335bb42fce1a7e6842c8045b364eded8b/propcache-0.5.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:8a235f73d6e020855dc29dff012d920c02ee0feab8d73a24185a7569f4be1161", size = 247134, upload-time = "2026-09-16T00:14:46.976Z" }, + { url = "https://files.pythonhosted.org/packages/5d/a9/424e38838793d37160b4379c702f61c74c598fc6cd17204adbe3c554f7a8/propcache-0.5.4-cp312-cp312-win32.whl", hash = "sha256:b3083bfe87f95c756e610bd8025f26cbd1cd4aaa03a422f2d65efb7a97cd53d8", size = 43073, upload-time = "2026-09-16T00:14:48.338Z" }, + { url = "https://files.pythonhosted.org/packages/58/7b/6e8ef26f6d510a7916064fec68d55fcbfbdf7eb01e377480d66a122152d8/propcache-0.5.4-cp312-cp312-win_amd64.whl", hash = "sha256:98914de2c4d7f0f9f4a8c6ea4bf05841f4175796941e3ef7d47eb718f22311fb", size = 46190, upload-time = "2026-09-16T00:14:49.99Z" }, + { url = "https://files.pythonhosted.org/packages/08/b9/72028c5b56ced97f456de6aefa79435ca64d7f77af78ea8cf3c76fc5195f/propcache-0.5.4-cp312-cp312-win_arm64.whl", hash = "sha256:8876b39961e33d912afe3c1bee18ee564fdad0206f873cc15d522756b7f50737", size = 43075, upload-time = "2026-09-16T00:14:51.155Z" }, + { url = "https://files.pythonhosted.org/packages/78/4c/3b1365d58a667689e067e13d055fcd92bdf8d9a2fca3d9201b47ed5b3631/propcache-0.5.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:36c0d9db44b523ef93d03341b1c42d69ff01d673c053d1b1c6c3a363bcaa39ba", size = 85290, upload-time = "2026-09-16T00:14:52.342Z" }, + { url = "https://files.pythonhosted.org/packages/8f/61/5f9c29c3aa67c30238c4eadf95149b1d983a48f69b86b0cff927a7d6df13/propcache-0.5.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e1d52a05dc417279f7e5c7618c5dfbbc29923aaf9bc0a5c1802ddcebf54c61a0", size = 50027, upload-time = "2026-09-16T00:14:53.67Z" }, + { url = "https://files.pythonhosted.org/packages/25/7d/c1ab1ef09e9d4d835be5d58c0a32a1e1de8397abaa4e502a9d4141328cad/propcache-0.5.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:44149f46500a0a41b95b4d99c2e586a77319539730607b9892974a092788b111", size = 51425, upload-time = "2026-09-16T00:14:54.826Z" }, + { url = "https://files.pythonhosted.org/packages/73/36/0093091ebb270fcd1bc1f6e095f93b2e0ed7f1011c28837dc2dbe5f96b99/propcache-0.5.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dbab5f5ff6897c81f355d079010cdae85b02e5a0b518b5251523b8ad8ae9ac3c", size = 233595, upload-time = "2026-09-16T00:14:56.09Z" }, + { url = "https://files.pythonhosted.org/packages/ae/8f/0de9d4c8e05ce0be71b436919a216bd7fc5cc6e2691c0602295efb22b9ed/propcache-0.5.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c3e98c55bde2bcf7db3c70d1aed7ae9aa8aebbf19a250c66645cde44cdb8b867", size = 240318, upload-time = "2026-09-16T00:14:57.674Z" }, + { url = "https://files.pythonhosted.org/packages/7d/71/2b35e91455209b85ee98f7859583e0814fab57d3af0f2381aaee34c37304/propcache-0.5.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:db3ae52ccc150dbc84704e9d642743897f3e1c54742ff34cacb661e52e3818a9", size = 246649, upload-time = "2026-09-16T00:14:59.352Z" }, + { url = "https://files.pythonhosted.org/packages/ed/74/08e6c1faf26ee2732023a3828787ba535557122774f4a386b1f715cbd8e0/propcache-0.5.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f85915e00dcb1cd9f2f890ead064ed40a27df06f0db65be427b29482ae357572", size = 234316, upload-time = "2026-09-16T00:15:00.696Z" }, + { url = "https://files.pythonhosted.org/packages/5c/9a/08385733c9321c9bb78039d3ff31045e4fca962d9665023c4eb70f998819/propcache-0.5.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c2ba30a89035b57b73e00475de948521602f543d79ce01db10b04b36c4c76fc8", size = 204666, upload-time = "2026-09-16T00:15:02.019Z" }, + { url = "https://files.pythonhosted.org/packages/1d/f4/e87bc7629af9a14a752b218764a78742d73c2c563ac58315da6841f0cbe4/propcache-0.5.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ae58f361bd5dae942717c65d3413b478c70aea9c462599e7b9adad3731db3894", size = 225900, upload-time = "2026-09-16T00:15:03.394Z" }, + { url = "https://files.pythonhosted.org/packages/d9/6d/11014938d3fe9bea2ea2dcf930f26ed565bfb2f5be3c756362ea48c92636/propcache-0.5.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:96f7c5c15656040ddcbc51e56dc59b58aa25999d743c126abd425b9766ab43e9", size = 219988, upload-time = "2026-09-16T00:15:04.811Z" }, + { url = "https://files.pythonhosted.org/packages/dc/72/fbf17c589f92c0b3bbf6709a425661f8ef2ed0d46b38985a7d7b5a0f6b91/propcache-0.5.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:7cc528e760a8af06f2b13e9b9f362cd90c7c718ea61228a96dbd31ba16ed7f47", size = 233611, upload-time = "2026-09-16T00:15:06.498Z" }, + { url = "https://files.pythonhosted.org/packages/55/7e/dbd637572a279692e5518d117274a9331bf5faac59f191d30e82521a3ec7/propcache-0.5.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:425f8cc86ab5018b4b8d4a23bc8e74d964bd3d757c3702e301aa79be76c53f6c", size = 204333, upload-time = "2026-09-16T00:15:07.961Z" }, + { url = "https://files.pythonhosted.org/packages/ba/5a/f99c92068f1e0f5c886899ce0e4a619db376ca98c5279d93f95bd86906af/propcache-0.5.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:a5793c7698a53f56f4a1889a4737c7eeb1b7ad0842fa6b1abca22913ff79c8c1", size = 235177, upload-time = "2026-09-16T00:15:09.334Z" }, + { url = "https://files.pythonhosted.org/packages/ee/28/95456fabd2daf6be89049a13fbf03341756014d2959c83d12957d4c49694/propcache-0.5.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:c02c0e570c5c7e077b0181a9f3cdb7d4c3617d1cda6b5c95bd5d34022923d82c", size = 228982, upload-time = "2026-09-16T00:15:10.729Z" }, + { url = "https://files.pythonhosted.org/packages/b1/bb/df90f62c9cf7c93ea235f6f9405143bba802914607317266dd81fc8d737e/propcache-0.5.4-cp313-cp313-win32.whl", hash = "sha256:3e413d7a4a9b4866b7a761d6060d434b64d23cd35122eda3b026a0bbe8196b25", size = 42611, upload-time = "2026-09-16T00:15:12.111Z" }, + { url = "https://files.pythonhosted.org/packages/01/bc/e0a7b84af04ec02d73a48aa71f091e1e4a2107e3074b7ce12195b66901f4/propcache-0.5.4-cp313-cp313-win_amd64.whl", hash = "sha256:0c889f6fa84957bc7e8b4eab71fd16a0455068d5045e3aa40c733071d2b2fd77", size = 45342, upload-time = "2026-09-16T00:15:13.519Z" }, + { url = "https://files.pythonhosted.org/packages/9a/70/50b031cafe72a5c1878b903ee87303f71313345566bf3d6ec202e5ddc9ec/propcache-0.5.4-cp313-cp313-win_arm64.whl", hash = "sha256:69fc35c0779522da366c563e5faf203ffc1f8ff0021d5b1337fa4efa5be73177", size = 42408, upload-time = "2026-09-16T00:15:14.788Z" }, + { url = "https://files.pythonhosted.org/packages/33/c9/07e227b930c8ae513b8ef1aae3793499be097bffcdf7aee4fb8b33db4cd1/propcache-0.5.4-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:e6720ba44ad7e72174314d0e1fb0172494cff5c73a3a8a2159c3d2402ff15565", size = 85933, upload-time = "2026-09-16T00:15:16.073Z" }, + { url = "https://files.pythonhosted.org/packages/e4/e1/6710bb44510c4e4a8e0f004bbaf3cecfd048141309c77bae56d4e5a6ebc1/propcache-0.5.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:4cfe0a92ae30151869e67a4b5f5e105e4e03ad30b3f38e5211b5bf77d0881993", size = 50179, upload-time = "2026-09-16T00:15:17.377Z" }, + { url = "https://files.pythonhosted.org/packages/e2/22/b533b493d7025456f44518b33e53e000021a20fe7c27b88cf3d341df7186/propcache-0.5.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1d759d05634f1b038fb625a66662a8c85e5a8fec912da381b5149ddac107482b", size = 51942, upload-time = "2026-09-16T00:15:18.589Z" }, + { url = "https://files.pythonhosted.org/packages/f1/74/70ac8430e28f21e442c7bcb964eb46c4363f6881ade4aa0e978bfd8d503a/propcache-0.5.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:251c63dd46a0659bb875cb254dc4c1e79ee91a847c737cd62373295afc2235dc", size = 232647, upload-time = "2026-09-16T00:15:19.905Z" }, + { url = "https://files.pythonhosted.org/packages/72/95/f222f13b6fe623310be0eb61a673bf26df439ce27e563ca8e422d0818777/propcache-0.5.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7a8d5ff04eb1f85698a78d20c62a14676e7b960dcafde09a388d60ad377d355d", size = 241541, upload-time = "2026-09-16T00:15:21.3Z" }, + { url = "https://files.pythonhosted.org/packages/a2/3e/763e370340db16115c5e63ad46e21ef0770a7f06928b3d3b62d8f8edfca4/propcache-0.5.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7b9100a93b372418d8688f3f2a3e5b45c64d70ca4d6176e121aca1e3bfc1e32f", size = 245332, upload-time = "2026-09-16T00:15:22.802Z" }, + { url = "https://files.pythonhosted.org/packages/96/d3/e97cd6f5de2176bd90ed4076c7a9b5e09d0f0b9687d00a576507988bb62c/propcache-0.5.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cc07876cfb079b6f6f36d21ce75784ad6c2c6b563eeac0ed26c2fa2669b85df9", size = 232757, upload-time = "2026-09-16T00:15:24.374Z" }, + { url = "https://files.pythonhosted.org/packages/f9/4c/6766e5f60bcda26d244333aa71d0a702c1c9b21b251d543c7af5953d1eee/propcache-0.5.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0951315a6b3142ee2167404d707743f0157c110091342b1aa0accac5cf0e4acf", size = 204389, upload-time = "2026-09-16T00:15:25.667Z" }, + { url = "https://files.pythonhosted.org/packages/b8/5e/ec4bb09a70b26ea99d76a8292c3383b960b296de2b347ac9986678f1761c/propcache-0.5.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:bee7d3aed13d56f54e681df38c3a23031bc9e3863f687d9d598825c9146acd7d", size = 228217, upload-time = "2026-09-16T00:15:27.11Z" }, + { url = "https://files.pythonhosted.org/packages/e1/7d/b53922ba7d9e5bf797324e63aa05906ec240871899f779628df068743e2d/propcache-0.5.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:4e985382be6d15da8d0c2710a6fa7b9070fc9ecdeefb7f580e88373984ec8be3", size = 216947, upload-time = "2026-09-16T00:15:28.532Z" }, + { url = "https://files.pythonhosted.org/packages/ff/39/b62eee45e5ea4de094a258cbb3b01c1e856ca51ddfd95b43135c5effd1eb/propcache-0.5.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:9e9ab13760aa8b6d0881ae7cb04fd891d8d490cd2554ea8e79bb278399169bcc", size = 233457, upload-time = "2026-09-16T00:15:29.977Z" }, + { url = "https://files.pythonhosted.org/packages/cc/a9/feec61ed296d993db9dd097e0f6723e3f576a647722367547495e4c5b05c/propcache-0.5.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:1b2f3bec4261a94019575481c726c29850f72e27907773c75b1de421e20e9f9d", size = 204131, upload-time = "2026-09-16T00:15:31.74Z" }, + { url = "https://files.pythonhosted.org/packages/92/4d/411ef380cddad28dc001f1c6d75ec72c76cd3817030f68ec1ccfba0ec6c1/propcache-0.5.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:720cf832eb2d0b0dfee129cb3335a26f6ce3cc45ee1187e8f0731758caa16792", size = 234820, upload-time = "2026-09-16T00:15:33.087Z" }, + { url = "https://files.pythonhosted.org/packages/15/37/c988229753629ef1cfd5198337a83e624780ea2b3787efe9e747c05aad2d/propcache-0.5.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9fb0a5be8d9aa213150e8d8148a42aca4984b285bcad1e69587dc4298edd929b", size = 228350, upload-time = "2026-09-16T00:15:34.533Z" }, + { url = "https://files.pythonhosted.org/packages/12/49/5ef1c5cf98591da3c5b952b39e6a298084cc1ce353bc70f85e82397a5036/propcache-0.5.4-cp314-cp314-win32.whl", hash = "sha256:30cc1cebaf9aef49db06357a50398323ae04d70460c0491837d026ab7d6452ea", size = 43578, upload-time = "2026-09-16T00:15:35.957Z" }, + { url = "https://files.pythonhosted.org/packages/1e/9e/a0ac821a2229186af5e2e3c3635a78abb23cfddca57f38513ab5d70420f3/propcache-0.5.4-cp314-cp314-win_amd64.whl", hash = "sha256:0a095db8e15a6020db149ecbed6461939fe74f6acaa3ae8b702a1fe8c38cd983", size = 46304, upload-time = "2026-09-16T00:15:37.655Z" }, + { url = "https://files.pythonhosted.org/packages/a1/19/c8d0d36a9d16cba5dcee67d389c9333b988c8986a653a61c00a451817a46/propcache-0.5.4-cp314-cp314-win_arm64.whl", hash = "sha256:45488d1a5f9ab5bd90aaa1ca20f50fe1922b8ffad71a2009d2adf41355897aac", size = 43440, upload-time = "2026-09-16T00:15:39.091Z" }, + { url = "https://files.pythonhosted.org/packages/2c/e9/42f1da77cacfc184e6ec929557ef653b7961bbf6f1da460b9221273948b3/propcache-0.5.4-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:53eaa697c4d0422ff4cb714d00231b43352064d97b944033b30c1d57cc506ec0", size = 90672, upload-time = "2026-09-16T00:15:40.306Z" }, + { url = "https://files.pythonhosted.org/packages/cf/2f/4b79940908c6ab8c795097c102999d7bc1f7e0b8604dfd1c232f9d99d67a/propcache-0.5.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:886b59c4d28ca97dd23b025fdfc50a0356be934efbbbca89ad26230067f86fe5", size = 52586, upload-time = "2026-09-16T00:15:41.575Z" }, + { url = "https://files.pythonhosted.org/packages/eb/07/02196ae6320c110235bb343f90dbd34be41f8b8964a3ee30db84ec12579e/propcache-0.5.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:3fa15757fea1dfcd5b7745cad9f4638929605531bd4018ab2adff7955f1a403d", size = 54335, upload-time = "2026-09-16T00:15:43.027Z" }, + { url = "https://files.pythonhosted.org/packages/6f/44/f48b9a131985659924df5fa5093f68fe72c7ee375329802989ba3126efc6/propcache-0.5.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6f0093ac3e9daada202c2082439d414a625c57184727a46e112a3fb2a81cb788", size = 297567, upload-time = "2026-09-16T00:15:44.373Z" }, + { url = "https://files.pythonhosted.org/packages/04/a1/418d956d2735139f77fc35262179f1f52c23aa666de5a8ab3819c1ae7854/propcache-0.5.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3cd3a7edb6b95b9b33998135ebfa18d709da82290fb8f27c858970b5a12c8b56", size = 297477, upload-time = "2026-09-16T00:15:46.048Z" }, + { url = "https://files.pythonhosted.org/packages/69/fd/ff811fdb6d3d3e67fd9bbfb75881675d34a42d0ef29a45d33e3e233dde07/propcache-0.5.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c174bfd1c48a1b51a3078e95586dde718374bac79719ab3541ec9e74aec40574", size = 302669, upload-time = "2026-09-16T00:15:47.458Z" }, + { url = "https://files.pythonhosted.org/packages/fc/57/527910c455b5ec62f6871bef45d4f79fea16cb8c966ba0d4a07f0339ddc4/propcache-0.5.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a219f0ac59817a9114dd2aa57c13180f993e819ba658c7ddab4b66ed1ee0d370", size = 287908, upload-time = "2026-09-16T00:15:48.99Z" }, + { url = "https://files.pythonhosted.org/packages/1d/86/f69ab82707534a0cb2057bdca04f9200a71214c7551800f9d34d6ac39e4f/propcache-0.5.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:17a7400cec0256f0a71ae71f9da398f9894c956ff6668a1c9d317b3367316320", size = 249804, upload-time = "2026-09-16T00:15:50.486Z" }, + { url = "https://files.pythonhosted.org/packages/27/19/60677af50d93be4256213de7cd487f056944c048b9c0b6f2e45b3a30f666/propcache-0.5.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:978f28401afbc76cdc3df9e1717b4229a06b626a1dcc75db4e1f2beb3884c3e9", size = 282344, upload-time = "2026-09-16T00:15:52.029Z" }, + { url = "https://files.pythonhosted.org/packages/7c/f7/a0057808a91fb3b6a5f3602b528f0cdcb3d53e0ff8315d73fabdfdf8fec4/propcache-0.5.4-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:4a1f4f5ffa55dce6307631f3cb2948e117e665966ea512e0d502b16c24f567e7", size = 270167, upload-time = "2026-09-16T00:15:53.466Z" }, + { url = "https://files.pythonhosted.org/packages/83/c8/f4a865490df0dc0c8531d4e59ac411cb6dc24bb255d2396a6f1c60a368f4/propcache-0.5.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:213bb68d9ced5cf2bf717b1071bf2b09b4b04c426256f9fe6d054c60318424c4", size = 286551, upload-time = "2026-09-16T00:15:54.995Z" }, + { url = "https://files.pythonhosted.org/packages/b0/67/b4faebde9da4e8173d0e5a30e8cd31335914af7ef350b988f27fec588cfd/propcache-0.5.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:286867fb156488c251a3721766e380ac4495e4fd6b51aaa1403d89ce7f4359d9", size = 249595, upload-time = "2026-09-16T00:15:56.505Z" }, + { url = "https://files.pythonhosted.org/packages/f6/40/52e1dd5636e9f5a27f6b5a4b4e2f33c322fd72afe956c397d82523ec4a80/propcache-0.5.4-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:445ee3bfb46e85838387fb3c536a73cc0b994dc192b004e40e170adc54aa2a7e", size = 286700, upload-time = "2026-09-16T00:15:57.985Z" }, + { url = "https://files.pythonhosted.org/packages/d5/0e/30b2b324b93ff31a0bab539c102aae59e84e444031b2742150a7646aa1bb/propcache-0.5.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:48cb48c5346a97de792254af77715aa2529c2a1ebc5f586aa0aae44a02f1fe57", size = 280500, upload-time = "2026-09-16T00:15:59.487Z" }, + { url = "https://files.pythonhosted.org/packages/64/36/721bb59f682ff060d0c8df64274fca8cd0521b1a54506c2eedaef795b7f5/propcache-0.5.4-cp314-cp314t-win32.whl", hash = "sha256:03b229037d25b801e7af53fd52b9fc49d9439b036fca1e087e02780631adfa97", size = 46121, upload-time = "2026-09-16T00:16:01.349Z" }, + { url = "https://files.pythonhosted.org/packages/c1/86/0b1b80fa1ac3a0aac44e2922a6964fbe9cd52af5eab8fa933bf9e90b030c/propcache-0.5.4-cp314-cp314t-win_amd64.whl", hash = "sha256:8a1fc236528c457cd739c88abe823da851b7ab645d72792f88658114cc340c12", size = 49154, upload-time = "2026-09-16T00:16:02.901Z" }, + { url = "https://files.pythonhosted.org/packages/69/4f/9fe6f05a47cb550c823155052116f710064b6be5c6e8ec4e9faae7e18115/propcache-0.5.4-cp314-cp314t-win_arm64.whl", hash = "sha256:135036c5cfc93864affb0f9af9a27e5d7a71cb7bd745e7b6dbfc2d56cc30e827", size = 46005, upload-time = "2026-09-16T00:16:04.266Z" }, + { url = "https://files.pythonhosted.org/packages/58/25/895a11d1e4c5c2acc6d816e2bece34e02d9dc92f2182ae276cd819e9e804/propcache-0.5.4-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:45bf2e730ab8905d0527fe05a86500f406e64305c34cc81ebe64b4617cab9760", size = 85634, upload-time = "2026-09-16T00:16:05.599Z" }, + { url = "https://files.pythonhosted.org/packages/58/41/c0acd69271de7a1cf439e77d5d60c18575fd09bad56e798b95fa23458ea4/propcache-0.5.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:31eb43ba2edc704ab2ec27815315dd8a19def0fb16215be4cfe8d32fe78ffd51", size = 50084, upload-time = "2026-09-16T00:16:07.384Z" }, + { url = "https://files.pythonhosted.org/packages/a5/1a/ad561f99f90884089e6403b76c220610809429ba868a81a2e7ce115d32e0/propcache-0.5.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:174507f82d3594622acb1dd2dafecf2d899d6d506335494e7107767bf05f3aae", size = 51692, upload-time = "2026-09-16T00:16:08.956Z" }, + { url = "https://files.pythonhosted.org/packages/e9/07/057bdd3a9609ffad59b06239cceee784b047f6c720247bfaa36d2103e138/propcache-0.5.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:50e337653721d20ead710da33bf44487fbe8a0db8782714b60306481e9f95b51", size = 232947, upload-time = "2026-09-16T00:16:10.466Z" }, + { url = "https://files.pythonhosted.org/packages/fa/dd/d36ad35986718530498a65e45e3713f9f0e6a580f192ef02d2ef7cae9b52/propcache-0.5.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0d21d0d2c82bbfeb1677a9711f38df968f9837576102bb4add1bd449d28d88f1", size = 241250, upload-time = "2026-09-16T00:16:12.056Z" }, + { url = "https://files.pythonhosted.org/packages/fb/81/f1459415cdb6c10d46942779de39bb59a77b38e5a76bb1def9227962eb45/propcache-0.5.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ccf4f7a79e26bb7efb06ecd50c177833b71df05cbc748701372325e6bcc17f6f", size = 245150, upload-time = "2026-09-16T00:16:13.596Z" }, + { url = "https://files.pythonhosted.org/packages/ce/4e/58b9b1460afc97a4c0b17ee89af701c4011d4d7f46470eba3aaff76a8069/propcache-0.5.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23278f808cd81d5ada7184a76606b925fb3389c60e1077b2cd7da7b1fcf0553c", size = 232166, upload-time = "2026-09-16T00:16:15.126Z" }, + { url = "https://files.pythonhosted.org/packages/b9/c6/5a79e0eda3e7b6987d03d8c622ff6d52a42165a12e8418eb37694b9cc4b4/propcache-0.5.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e738ab81179510ce79b2eac9a6ecf47feffd9e76d1c72e403005dddb6e36c06c", size = 206085, upload-time = "2026-09-16T00:16:16.713Z" }, + { url = "https://files.pythonhosted.org/packages/4e/72/940aed42c73f9da345ca2de0f6e835c726498159abca5f1ef14fb0a2af8a/propcache-0.5.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:a419ee85e654927baabda3929c03c0cc1112bf472ff0dfd6142f4e3a81ca4162", size = 228460, upload-time = "2026-09-16T00:16:18.352Z" }, + { url = "https://files.pythonhosted.org/packages/85/71/3f54e1535c8f323d91ba566044d7c2b39ff6f6a2f1d0bd9071779d07b9b3/propcache-0.5.4-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:b61805357d966680acf68b3b6d49772631ed9df44ebece10ff1460e117a7da8a", size = 218350, upload-time = "2026-09-16T00:16:20.064Z" }, + { url = "https://files.pythonhosted.org/packages/a8/f4/025890cc389ac3ec485ecec607d4a7ca47e15bfa2a465746ab98af602536/propcache-0.5.4-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:58134228927cee6c047d626c08e60a81be604a20578a12ce752cc5c9a84d4826", size = 233156, upload-time = "2026-09-16T00:16:21.624Z" }, + { url = "https://files.pythonhosted.org/packages/04/29/b39cae08c87c140d3d274f0a2c058cb5588e836175c3309e260b230ab07d/propcache-0.5.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:350b272b2279f4135a64fc0c304a5d08e28a137c9573442c606152446638a831", size = 206206, upload-time = "2026-09-16T00:16:23.204Z" }, + { url = "https://files.pythonhosted.org/packages/18/61/e16462ef18a87247dc9ebbd5c606f46d5ce67e708bd9cc734dd0d9222564/propcache-0.5.4-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:45bebbe252550fec975ba3b62bc6f931643cfd3b5464ef47619cf3fef154e01c", size = 234469, upload-time = "2026-09-16T00:16:24.841Z" }, + { url = "https://files.pythonhosted.org/packages/9f/84/b6a1490922427204fc47df920ed002eec709621de6b79b11592bf45c623a/propcache-0.5.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:ada748108a43d29b7c328ba7db3755327cd94f028bcc1a7ee3f0addcfacd9c38", size = 227311, upload-time = "2026-09-16T00:16:26.549Z" }, + { url = "https://files.pythonhosted.org/packages/ff/5c/5a59527582e9bcb694b2f08b9894134b65a0f5f79dbff174f054f5f74ed0/propcache-0.5.4-cp315-cp315-win32.whl", hash = "sha256:ee19113bce2f3acd46432050688b70f61acd6857d75abb9ec96341b7e9ced123", size = 43512, upload-time = "2026-09-16T00:16:28.313Z" }, + { url = "https://files.pythonhosted.org/packages/26/07/93cf699ed363681e754d7c3fad587fb09ef6b65618ee193332ad16a68d7b/propcache-0.5.4-cp315-cp315-win_amd64.whl", hash = "sha256:ceb3e879afac028f93d272c957814695dc5569e4904262dbee92f6c41bd5e4a3", size = 46264, upload-time = "2026-09-16T00:16:29.751Z" }, + { url = "https://files.pythonhosted.org/packages/65/10/fef04fbdcd44a4a163cb5ff5674599c6d6fdefd64a5a459438f9ad2ba042/propcache-0.5.4-cp315-cp315-win_arm64.whl", hash = "sha256:c83acbce9f2b5e3f5f5eda9e53d2001fed22fcdfef81274a9e02d8fd53b70a30", size = 43395, upload-time = "2026-09-16T00:16:31.5Z" }, + { url = "https://files.pythonhosted.org/packages/70/f6/7e2f4dab0b92ab46111bd48cee9ee1e5f519514c44e3779ede5358d7ada0/propcache-0.5.4-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:a5e8ef588c109725dc713ba69aadcac00a1ef90c2ce9c0a8c7075128f569f47f", size = 89825, upload-time = "2026-09-16T00:16:43.115Z" }, + { url = "https://files.pythonhosted.org/packages/9f/8b/dfeff925cb6ced97ede701d5c6a99998da963c6f2e06abbf879c9dac5b54/propcache-0.5.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:4d86476a935c88963d9b8e1a9a0d38188790e9622169bfbafa173046846709d3", size = 52159, upload-time = "2026-09-16T00:16:44.754Z" }, + { url = "https://files.pythonhosted.org/packages/24/6c/924c810be5b7cf218ef47e707cf06d34adb4e3f3a31e3c24c55c6d945a88/propcache-0.5.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:f5470694918830da62fac9e69133b53d23b736d7070e587b27a4a2be37e08e68", size = 53956, upload-time = "2026-09-16T00:16:46.762Z" }, + { url = "https://files.pythonhosted.org/packages/3f/b6/9ed0a5c939b58b6bed740a05b5d0f919f0b318d03284b4b6d81a0fe8a29a/propcache-0.5.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10ef33a68a61ce317e095fd2e202a592ea92392b90944a78c993f0d9a73ab06c", size = 295235, upload-time = "2026-09-16T00:16:48.577Z" }, + { url = "https://files.pythonhosted.org/packages/5a/eb/5ce886e902a2e781dddf110993d5329458a9b1a8626b876c65e5e25bf413/propcache-0.5.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5cacf3c9efd09df409dc33654dd077e1c245ba8fb747b0f0236ef41b7c49b589", size = 294463, upload-time = "2026-09-16T00:16:50.539Z" }, + { url = "https://files.pythonhosted.org/packages/f2/88/c98f49183ecd3e5b204a556f0ca47baa02c2206a500fe8c7ec1726297b0a/propcache-0.5.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:770e8209d018175fc0063936fa9583b6d27e88c5ad31543f3383d66080efdd62", size = 300081, upload-time = "2026-09-16T00:16:52.423Z" }, + { url = "https://files.pythonhosted.org/packages/27/0d/c5090f9e6f67cbc30a2b744c7bb0f8006dcba5ec1b0d82f866ae1cc7c5c4/propcache-0.5.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:03969626faf0783a592dfa17e28eac06018bd0b44dafae6943d53b92421a7f72", size = 285360, upload-time = "2026-09-16T00:16:54.141Z" }, + { url = "https://files.pythonhosted.org/packages/ac/9c/34a55396910583ed07926669ab309dde2213a2dec05a7e946bb90ad66908/propcache-0.5.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ef3b928d9c984322b5c44e6964d8dbc653da87d2d8ee1647fa6da43072e650a9", size = 248014, upload-time = "2026-09-16T00:16:56.062Z" }, + { url = "https://files.pythonhosted.org/packages/cd/b5/c0a142b656093ca397039dd3fe166cbb87c945712b534546514a24cd2611/propcache-0.5.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:7177c43eddf10a0893c4fec52ebb408fdcd7f7d63962caace9180d8f81b14ece", size = 280662, upload-time = "2026-09-16T00:16:58.044Z" }, + { url = "https://files.pythonhosted.org/packages/54/28/fab2809c2e337fe26becea9648e84d5cef46075c91b826acb13e4f9dd04e/propcache-0.5.4-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:420162a77f94eb1cf5ef7893f500016dabd548e73de956785a1dd899cc73006a", size = 266149, upload-time = "2026-09-16T00:16:59.702Z" }, + { url = "https://files.pythonhosted.org/packages/3a/11/7ddf336288b2678a5f054f8da2e2bd1a719f5d4b7de714d9c6bd588a2313/propcache-0.5.4-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3eb2e820e8e2101407da93f17c57cbb7d225461955fc60105daaba14cd421ee2", size = 283097, upload-time = "2026-09-16T00:17:01.459Z" }, + { url = "https://files.pythonhosted.org/packages/1a/ae/351b1a5225f5473c411d9a612a229ae147cf0cf65c72ad838b87219ea8e8/propcache-0.5.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:13e52b6e0bde97dee98ab66552dbff2931649c96f1ac432eac299fe689ec373b", size = 248160, upload-time = "2026-09-16T00:17:03.298Z" }, + { url = "https://files.pythonhosted.org/packages/3f/d0/7f79f061e30d135bb615c9782c94a74652033d00b49254edbbf35a9165a8/propcache-0.5.4-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:12682126712ddc19b70ff819debbd279e58adf1f0c8f8f8138c18ade2044b284", size = 283036, upload-time = "2026-09-16T00:17:05.238Z" }, + { url = "https://files.pythonhosted.org/packages/53/3c/016f1cad8bf4c428d748cf399b2bac603026fbfd6966e6a5579b5c5b6956/propcache-0.5.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:3af0c8642b2da4815d86e631232ac8286e17644fad907c19508aa8e7cb4ba8ad", size = 279350, upload-time = "2026-09-16T00:17:06.881Z" }, + { url = "https://files.pythonhosted.org/packages/ea/60/d8f72cb24b412487ed4c397f539117d3b74c3c33dd32020e91fe00a958a8/propcache-0.5.4-cp315-cp315t-win32.whl", hash = "sha256:1df8d8561b21465c5dd56110a01caf897e026d065b4b84e98a488209094272ec", size = 45874, upload-time = "2026-09-16T00:17:08.567Z" }, + { url = "https://files.pythonhosted.org/packages/d4/ef/8bae0a316d406644450522f2f3d44a4e19632f5f3bb60d1d0e6c53842616/propcache-0.5.4-cp315-cp315t-win_amd64.whl", hash = "sha256:02c0a34f16889cf800f10f0247a564d8ce6eeab6ffcd7c87198f769067eb8432", size = 48574, upload-time = "2026-09-16T00:17:10.077Z" }, + { url = "https://files.pythonhosted.org/packages/57/be/bcc053f66a97355683884b448198e79580fae8e8fa4d96b9bb01614e9913/propcache-0.5.4-cp315-cp315t-win_arm64.whl", hash = "sha256:dc4242ca653c9b30ab51c5f8193323e7bc0928f897ee9103201e59a43abcb72e", size = 45625, upload-time = "2026-09-16T00:17:11.377Z" }, + { url = "https://files.pythonhosted.org/packages/f5/cd/785c64ed382f3f04201870267b02783f63b4678c2acfddc177a3ebcc2727/propcache-0.5.4-py3-none-any.whl", hash = "sha256:62c60aec739ed00124573cce1178138fd690c7676352d67a37328c1cf51d7468", size = 16338, upload-time = "2026-09-16T00:17:13.106Z" }, ] [[package]] name = "protobuf" -version = "6.33.6" +version = "5.29.6" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/66/70/e908e9c5e52ef7c3a6c7902c9dfbb34c7e29c25d2f81ade3856445fd5c94/protobuf-6.33.6.tar.gz", hash = "sha256:a6768d25248312c297558af96a9f9c929e8c4cee0659cb07e780731095f38135", size = 444531, upload-time = "2026-03-18T19:05:00.988Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7e/57/394a763c103e0edf87f0938dafcd918d53b4c011dfc5c8ae80f3b0452dbb/protobuf-5.29.6.tar.gz", hash = "sha256:da9ee6a5424b6b30fd5e45c5ea663aef540ca95f9ad99d1e887e819cdf9b8723", size = 425623, upload-time = "2026-02-04T22:54:40.584Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/fc/9f/2f509339e89cfa6f6a4c4ff50438db9ca488dec341f7e454adad60150b00/protobuf-6.33.6-cp310-abi3-win32.whl", hash = "sha256:7d29d9b65f8afef196f8334e80d6bc1d5d4adedb449971fefd3723824e6e77d3", size = 425739, upload-time = "2026-03-18T19:04:48.373Z" }, - { url = "https://files.pythonhosted.org/packages/76/5d/683efcd4798e0030c1bab27374fd13a89f7c2515fb1f3123efdfaa5eab57/protobuf-6.33.6-cp310-abi3-win_amd64.whl", hash = "sha256:0cd27b587afca21b7cfa59a74dcbd48a50f0a6400cfb59391340ad729d91d326", size = 437089, upload-time = "2026-03-18T19:04:50.381Z" }, - { url = "https://files.pythonhosted.org/packages/5c/01/a3c3ed5cd186f39e7880f8303cc51385a198a81469d53d0fdecf1f64d929/protobuf-6.33.6-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:9720e6961b251bde64edfdab7d500725a2af5280f3f4c87e57c0208376aa8c3a", size = 427737, upload-time = "2026-03-18T19:04:51.866Z" }, - { url = "https://files.pythonhosted.org/packages/ee/90/b3c01fdec7d2f627b3a6884243ba328c1217ed2d978def5c12dc50d328a3/protobuf-6.33.6-cp39-abi3-manylinux2014_aarch64.whl", hash = "sha256:e2afbae9b8e1825e3529f88d514754e094278bb95eadc0e199751cdd9a2e82a2", size = 324610, upload-time = "2026-03-18T19:04:53.096Z" }, - { url = "https://files.pythonhosted.org/packages/9b/ca/25afc144934014700c52e05103c2421997482d561f3101ff352e1292fb81/protobuf-6.33.6-cp39-abi3-manylinux2014_s390x.whl", hash = "sha256:c96c37eec15086b79762ed265d59ab204dabc53056e3443e702d2681f4b39ce3", size = 339381, upload-time = "2026-03-18T19:04:54.616Z" }, - { url = "https://files.pythonhosted.org/packages/16/92/d1e32e3e0d894fe00b15ce28ad4944ab692713f2e7f0a99787405e43533a/protobuf-6.33.6-cp39-abi3-manylinux2014_x86_64.whl", hash = "sha256:e9db7e292e0ab79dd108d7f1a94fe31601ce1ee3f7b79e0692043423020b0593", size = 323436, upload-time = "2026-03-18T19:04:55.768Z" }, - { url = "https://files.pythonhosted.org/packages/c4/72/02445137af02769918a93807b2b7890047c32bfb9f90371cbc12688819eb/protobuf-6.33.6-py3-none-any.whl", hash = "sha256:77179e006c476e69bf8e8ce866640091ec42e1beb80b213c3900006ecfba6901", size = 170656, upload-time = "2026-03-18T19:04:59.826Z" }, + { url = "https://files.pythonhosted.org/packages/d4/88/9ee58ff7863c479d6f8346686d4636dd4c415b0cbeed7a6a7d0617639c2a/protobuf-5.29.6-cp310-abi3-win32.whl", hash = "sha256:62e8a3114992c7c647bce37dcc93647575fc52d50e48de30c6fcb28a6a291eb1", size = 423357, upload-time = "2026-02-04T22:54:25.805Z" }, + { url = "https://files.pythonhosted.org/packages/1c/66/2dc736a4d576847134fb6d80bd995c569b13cdc7b815d669050bf0ce2d2c/protobuf-5.29.6-cp310-abi3-win_amd64.whl", hash = "sha256:7e6ad413275be172f67fdee0f43484b6de5a904cc1c3ea9804cb6fe2ff366eda", size = 435175, upload-time = "2026-02-04T22:54:28.592Z" }, + { url = "https://files.pythonhosted.org/packages/06/db/49b05966fd208ae3f44dcd33837b6243b4915c57561d730a43f881f24dea/protobuf-5.29.6-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:b5a169e664b4057183a34bdc424540e86eea47560f3c123a0d64de4e137f9269", size = 418619, upload-time = "2026-02-04T22:54:30.266Z" }, + { url = "https://files.pythonhosted.org/packages/b7/d7/48cbf6b0c3c39761e47a99cb483405f0fde2be22cf00d71ef316ce52b458/protobuf-5.29.6-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:a8866b2cff111f0f863c1b3b9e7572dc7eaea23a7fae27f6fc613304046483e6", size = 320284, upload-time = "2026-02-04T22:54:31.782Z" }, + { url = "https://files.pythonhosted.org/packages/e3/dd/cadd6ec43069247d91f6345fa7a0d2858bef6af366dbd7ba8f05d2c77d3b/protobuf-5.29.6-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:e3387f44798ac1106af0233c04fb8abf543772ff241169946f698b3a9a3d3ab9", size = 320478, upload-time = "2026-02-04T22:54:32.909Z" }, + { url = "https://files.pythonhosted.org/packages/5a/cb/e3065b447186cb70aa65acc70c86baf482d82bf75625bf5a2c4f6919c6a3/protobuf-5.29.6-py3-none-any.whl", hash = "sha256:6b9edb641441b2da9fa8f428760fc136a49cf97a52076010cf22a2ff73438a86", size = 173126, upload-time = "2026-02-04T22:54:39.462Z" }, ] [[package]] @@ -3543,16 +3532,16 @@ wheels = [ [[package]] name = "pycparser" -version = "3.0" +version = "3.11" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492, upload-time = "2026-01-21T14:26:51.89Z" } +sdist = { url = "https://files.pythonhosted.org/packages/da/a8/c5fdbeee588bb8ada9458774f43adf1bdd30bd59157055142183e769a024/pycparser-3.11.tar.gz", hash = "sha256:d875f09c3507d00e1aba0eecc6dcadc1352f30fff09dc6bff2f1c2935e97c2bc", size = 113796, upload-time = "2026-10-09T12:56:59.539Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" }, + { url = "https://files.pythonhosted.org/packages/90/11/0e6f11117525ff0eec40ebac3d313376f102df93ca44ad9e893ee85e4f89/pycparser-3.11-py3-none-any.whl", hash = "sha256:51d5a8ba2be0bbe440b99d2112604c95bbbc3c2748a64260186c541e1729cd80", size = 51178, upload-time = "2026-10-09T12:56:58.131Z" }, ] [[package]] name = "pydantic" -version = "2.13.4" +version = "2.14.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "annotated-types" }, @@ -3560,139 +3549,156 @@ dependencies = [ { name = "typing-extensions" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/18/a5/b60d21ac674192f8ab0ba4e9fd860690f9b4a6e51ca5df118733b487d8d6/pydantic-2.13.4.tar.gz", hash = "sha256:c40756b57adaa8b1efeeced5c196f3f3b7c435f90e84ea7f443901bec8099ef6", size = 844775, upload-time = "2026-05-06T13:43:05.343Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7c/0b/8e10b2e693af8ec54346a14caf36221334775975a747c9ceaa3f8371d96d/pydantic-2.14.1.tar.gz", hash = "sha256:94f478203dd03404682a1ada216965651dd74b1d2d5ffd62e00e0837caab5c26", size = 900362, upload-time = "2026-10-11T18:37:55.396Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/fd/7b/122376b1fd3c62c1ed9dc80c931ace4844b3c55407b6fb2d199377c9736f/pydantic-2.13.4-py3-none-any.whl", hash = "sha256:45a282cde31d808236fd7ea9d919b128653c8b38b393d1c4ab335c62924d9aba", size = 472262, upload-time = "2026-05-06T13:43:02.641Z" }, + { url = "https://files.pythonhosted.org/packages/35/ea/a56b9fe5066f3537b7882f77e9c5dfb26d8c2eefdaed9b5fc73d57b4dc22/pydantic-2.14.1-py3-none-any.whl", hash = "sha256:9195d967ec791692a04438115466764fb8b9a27b31f14a760437694f40d6b454", size = 488106, upload-time = "2026-10-11T18:37:53.437Z" }, ] [[package]] name = "pydantic-core" -version = "2.46.4" +version = "2.50.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/9d/56/921726b776ace8d8f5db44c4ef961006580d91dc52b803c489fafd1aa249/pydantic_core-2.46.4.tar.gz", hash = "sha256:62f875393d7f270851f20523dd2e29f082bcc82292d66db2b64ea71f64b6e1c1", size = 471464, upload-time = "2026-05-06T13:37:06.98Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e7/08/f1ba952f1c8ae5581c70fa9c6da89f247b83e3dd8c09c035d5d7931fc23d/pydantic_core-2.46.4-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:a396dcc17e5a0b164dbe026896245a4fa9ff402edca1dff0be3d53a517f74de4", size = 2113146, upload-time = "2026-05-06T13:37:36.537Z" }, - { url = "https://files.pythonhosted.org/packages/56/c6/65f646c7ff09bd257f660434adb45c4dfcbbcebcc030562fecf6f5bf887d/pydantic_core-2.46.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:da4b951fe36dc7c3a1ccb4e3cd1747c3542b8c9ceede8fc86cae054e764485f5", size = 1949769, upload-time = "2026-05-06T13:37:46.365Z" }, - { url = "https://files.pythonhosted.org/packages/64/ba/bfb1d928fd5b49e1258935ff104ae356e9fd89384a55bf9f847e9193ad40/pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb63e0198ca18aad131c089b9204c23079c3afa95487e561f4c522d519e55aba", size = 1974958, upload-time = "2026-05-06T13:37:28.611Z" }, - { url = "https://files.pythonhosted.org/packages/4e/74/76223bfb117b64af743c9b6670d1364516f5c0604f96b48f3272f6af6cc6/pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f47286a97f0bc9b8859519809077b91b2cefe4ae47fcbf5e466a009c1c5d742b", size = 2042118, upload-time = "2026-05-06T13:36:55.216Z" }, - { url = "https://files.pythonhosted.org/packages/cb/7b/848732968bc8f48f3187542f08358b9d842db564147b256669426ebb1652/pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:905a0ed8ea6f2d61c1738835f99b699348d7857379083e5fc497fa0c967a407c", size = 2222876, upload-time = "2026-05-06T13:38:25.455Z" }, - { url = "https://files.pythonhosted.org/packages/b5/2f/e90b63ee2e14bd8d3db8f705a6d75d64e6ee1b7c2c8833747ce706e1e0ce/pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ea793e075b70290d89d8142074262885d3f7da19634845135751bd6344f73b50", size = 2286703, upload-time = "2026-05-06T13:37:53.304Z" }, - { url = "https://files.pythonhosted.org/packages/ba/1e/acc4d70f88a0a277e4a1fa77ebb985ceabaf900430f875bf9338e11c9420/pydantic_core-2.46.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:395aebd9183f9d112f569aeb5b2214d1a10a33bec8456447f7fbdfa51d38d4cd", size = 2092042, upload-time = "2026-05-06T13:38:46.981Z" }, - { url = "https://files.pythonhosted.org/packages/a9/da/0a422b57bf8504102bf3c4ccea9c41bab5a5cee6a54650acf8faf67f5a24/pydantic_core-2.46.4-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:b078afbc25f3a1436c7a1d2cd3e322497ee99615ba97c563566fdf46aff1ee01", size = 2117231, upload-time = "2026-05-06T13:39:23.146Z" }, - { url = "https://files.pythonhosted.org/packages/bd/2a/2ac13c3af305843e23c5078c53d135656b3f05a2fd78cb7bbbb12e97b473/pydantic_core-2.46.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f747929cf940cddb5b3668a390056ddd5ba2e5010615ea2dcf4f9c4f3ab8791d", size = 2168388, upload-time = "2026-05-06T13:40:08.06Z" }, - { url = "https://files.pythonhosted.org/packages/72/04/2beacf7e1607e93eefe4aed1b4709f079b905fb77530179d4f7c71745f22/pydantic_core-2.46.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:daa27d92c36f24388fe3ad306b174781c747627f134452e4f128ea00ce1fe8c4", size = 2184769, upload-time = "2026-05-06T13:38:13.901Z" }, - { url = "https://files.pythonhosted.org/packages/9e/29/d2b9fd9f539133548eaf622c06a4ce176cb46ac59f32d0359c4abc0de047/pydantic_core-2.46.4-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:19e51f073cd3df251856a8a4189fbdf1de4012c3ebacfb1884f94f1eb406079f", size = 2319312, upload-time = "2026-05-06T13:39:08.24Z" }, - { url = "https://files.pythonhosted.org/packages/7c/af/0f7a5b85fec6075bea96e3ef9187de38fccced0de92c1e7feda8d5cc7bb9/pydantic_core-2.46.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:c1747f85cee84c26985853c6f3d9bd3e75da5212912443fa111c113b9c246f39", size = 2361817, upload-time = "2026-05-06T13:38:43.2Z" }, - { url = "https://files.pythonhosted.org/packages/25/a4/73363fec545fd3ec025490bdda2743c56d0dd5b6266b1a53bbe9e4265375/pydantic_core-2.46.4-cp310-cp310-win32.whl", hash = "sha256:2f84c03c8607173d16b5a854ec68a2f9079ae03237a54fb506d13af47e1d018d", size = 1987085, upload-time = "2026-05-06T13:39:25.497Z" }, - { url = "https://files.pythonhosted.org/packages/01/aa/62f082da2c91fac1c234bc9ee0066257ce83f0604abd72e4c9d5991f2d84/pydantic_core-2.46.4-cp310-cp310-win_amd64.whl", hash = "sha256:8358a950c8909158e3df31538a7e4edc2d7265a7c54b47f0864d9e5bae9dcebf", size = 2074311, upload-time = "2026-05-06T13:39:59.922Z" }, - { url = "https://files.pythonhosted.org/packages/5c/fa/6d7708d2cfc1a832acb6aeb0cd16e801902df8a0f583bb3b4b527fde022e/pydantic_core-2.46.4-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:0e96592440881c74a213e5ad528e2b24d3d4f940de2766bed9010ab1d9e51594", size = 2111872, upload-time = "2026-05-06T13:40:27.596Z" }, - { url = "https://files.pythonhosted.org/packages/ae/6f/aa064a3e74b5745afbdf250594f38e7ead05e2d651bcb35994b9417a0d4d/pydantic_core-2.46.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e0d65b8c354be7fb5f720c3caa8bc940bc2d20ce749c8e06135f07f8ed95dd7c", size = 1948255, upload-time = "2026-05-06T13:39:12.574Z" }, - { url = "https://files.pythonhosted.org/packages/43/3a/41114a9f7569b84b4d84e7a018c57c56347dac30c0d4a872946ec4e36c46/pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7bfb192b3f4b9e8a89b6277b6ce787564f62cfd272055f6e685726b111dc7826", size = 1972827, upload-time = "2026-05-06T13:38:19.841Z" }, - { url = "https://files.pythonhosted.org/packages/ef/25/1ab42e8048fe551934d9884e8d64daa7e990ad386f310a15981aeb6a5b08/pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9037063db01f09b09e237c282b6792bd4da634b5402c4e7f0c61effed7701a04", size = 2041051, upload-time = "2026-05-06T13:38:10.447Z" }, - { url = "https://files.pythonhosted.org/packages/94/c2/1a934597ddf08da410385b3b7aae91956a5a76c635effef456074fad7e88/pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fc010ab034c8c7452522748bf937df58020d256ccae0874463d1f4d01758af8e", size = 2221314, upload-time = "2026-05-06T13:40:13.089Z" }, - { url = "https://files.pythonhosted.org/packages/02/6d/9e8ad178c9c4df27ad3c8f25d1fe2a7ab0d2ba0559fad4aee5d3d1f16771/pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8c5dac79fa1614d1e06ca695109c6105923bd9c7d1d6c918d4e637b7e6b32fd3", size = 2285146, upload-time = "2026-05-06T13:38:59.224Z" }, - { url = "https://files.pythonhosted.org/packages/80/50/540cd3aeefc041beb111125c4bff779831a2111fc6b15a9138cda277d32c/pydantic_core-2.46.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f9fa868638bf362d3d138ea55829cefb3d5f4b0d7f142234382a15e2485dbec4", size = 2089685, upload-time = "2026-05-06T13:38:17.762Z" }, - { url = "https://files.pythonhosted.org/packages/6b/a4/b440ad35f05f6a38f89fa0f149accb3f0e02be94ca5e15f3c449a61b4bc9/pydantic_core-2.46.4-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:17299feefe090f2caa5b8e37222bb5f663e4935a8bfa6931d4102e5df1a9f398", size = 2115420, upload-time = "2026-05-06T13:37:58.195Z" }, - { url = "https://files.pythonhosted.org/packages/99/61/de4f55db8dfd57bfdfa9a12ec90fe1b57c4f41062f7ca86f08586b3e0ac0/pydantic_core-2.46.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4c63ebc82684aa89d9a3bcbd13d515b3be44250dc68dd3bd81526c1cb31286c3", size = 2165122, upload-time = "2026-05-06T13:37:01.167Z" }, - { url = "https://files.pythonhosted.org/packages/f7/52/7c529d7bdb2d1068bd52f51fe32572c8301f9a4febf1948f10639f1436f5/pydantic_core-2.46.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:aaa2a54443eff1950ba5ddc6b6ccda0d9c84a364276a62f969bdf2a390650848", size = 2182573, upload-time = "2026-05-06T13:38:45.04Z" }, - { url = "https://files.pythonhosted.org/packages/37/b3/7c40325848ba78247f2812dcf9c7274e38cd801820ca6dd9fe63bcfb0eb4/pydantic_core-2.46.4-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:18e5ceec2ab67e6d5f1a9085e5a24c9c4e2ac4545730bfe668680bca05e555f3", size = 2317139, upload-time = "2026-05-06T13:37:15.539Z" }, - { url = "https://files.pythonhosted.org/packages/d9/37/f913f81a657c865b75da6c0dbed79876073c2a43b5bd9edbe8da785e4d49/pydantic_core-2.46.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:a0f62d0a58f4e7da165457e995725421e0064f2255d8eccebc49f41bbc23b109", size = 2360433, upload-time = "2026-05-06T13:37:30.099Z" }, - { url = "https://files.pythonhosted.org/packages/c4/67/6acaa1be2567f9256b056d8477158cac7240813956ce86e49deae8e173b4/pydantic_core-2.46.4-cp311-cp311-win32.whl", hash = "sha256:041bde0a48fd37cf71cab1c9d56d3e8625a3793fef1f7dd232b3ff37e978ecda", size = 1985513, upload-time = "2026-05-06T13:38:15.669Z" }, - { url = "https://files.pythonhosted.org/packages/aa/e6/c505f83dfeda9a2e5c995cfd872949e4d05e12f7feb3dca72f633daefa94/pydantic_core-2.46.4-cp311-cp311-win_amd64.whl", hash = "sha256:6f2eeda33a839975441c86a4119e1383c50b47faf0cbb5176985565c6bb02c33", size = 2071114, upload-time = "2026-05-06T13:40:35.416Z" }, - { url = "https://files.pythonhosted.org/packages/0f/da/7a263a96d965d9d0df5e8de8a475f33495451117035b09acb110288c381f/pydantic_core-2.46.4-cp311-cp311-win_arm64.whl", hash = "sha256:14f4c5d6db102bd796a627bbb3a17b4cf4574b9ae861d8b7c9a9661c6dd3362d", size = 2044298, upload-time = "2026-05-06T13:38:29.754Z" }, - { url = "https://files.pythonhosted.org/packages/ce/8c/af022f0af448d7747c5154288d46b5f2bc5f17366eaa0e23e9aa04d59f3b/pydantic_core-2.46.4-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:3245406455a5d98187ec35530fd772b1d799b26667980872c8d4614991e2c4a2", size = 2106158, upload-time = "2026-05-06T13:38:57.215Z" }, - { url = "https://files.pythonhosted.org/packages/19/95/6195171e385007300f0f5574592e467c568becce2d937a0b6804f218bc49/pydantic_core-2.46.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:962ccbab7b642487b1d8b7df90ef677e03134cf1fd8880bf698649b22a69371f", size = 1951724, upload-time = "2026-05-06T13:37:02.697Z" }, - { url = "https://files.pythonhosted.org/packages/8e/bc/f47d1ff9cbb1620e1b5b697eef06010035735f07820180e74178226b27b3/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8233f2947cf85404441fd7e0085f53b10c93e0ee78611099b5c7237e36aacbf7", size = 1975742, upload-time = "2026-05-06T13:37:09.448Z" }, - { url = "https://files.pythonhosted.org/packages/5b/11/9b9a5b0306345664a2da6410877af6e8082481b5884b3ddd78d47c6013ce/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a233125ac121aa3ffba9a2b59edfc4a985a76092dc8279586ab4b71390875e7", size = 2052418, upload-time = "2026-05-06T13:37:38.234Z" }, - { url = "https://files.pythonhosted.org/packages/f1/b7/a65fec226f5d78fc39f4a13c4cc0c768c22b113438f60c14adc9d2865038/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5b712b53160b79a5850310b912a5ef8e57e56947c8ad690c227f5c9d7e561712", size = 2232274, upload-time = "2026-05-06T13:38:27.753Z" }, - { url = "https://files.pythonhosted.org/packages/68/f0/92039db98b907ef49269a8271f67db9cb78ae2fc68062ef7e4e77adb5f61/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9401557acd873c3a7f3eb9383edef8ac4968f9510e340f4808d427e75667e7b4", size = 2309940, upload-time = "2026-05-06T13:38:05.353Z" }, - { url = "https://files.pythonhosted.org/packages/5f/97/2aab507d3d00ca626e8e57c1eac6a79e4e5fbcc63eb99733ff55d1717f65/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:926c9541b14b12b1681dca8a0b75feb510b06c6341b70a8e500c2fdcff837cce", size = 2094516, upload-time = "2026-05-06T13:39:10.577Z" }, - { url = "https://files.pythonhosted.org/packages/22/37/a8aca44d40d737dde2bc05b3c6c07dff0de07ce6f82e9f3167aeaf4d5dea/pydantic_core-2.46.4-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:56cb4851bcaf3d117eddcef4fe66afd750a50274b0da8e22be256d10e5611987", size = 2136854, upload-time = "2026-05-06T13:40:22.59Z" }, - { url = "https://files.pythonhosted.org/packages/24/99/fcef1b79238c06a8cbec70819ac722ba76e02bc8ada9b0fd66eba40da01b/pydantic_core-2.46.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c68fcd102d71ea85c5b2dfac3f4f8476eff42a9e078fd5faefff6d145063536b", size = 2180306, upload-time = "2026-05-06T13:40:10.666Z" }, - { url = "https://files.pythonhosted.org/packages/ae/6c/fc44000918855b42779d007ae63b0532794739027b2f417321cddbc44f6a/pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b2f69dec1725e79a012d920df1707de5caf7ed5e08f3be4435e25803efc47458", size = 2190044, upload-time = "2026-05-06T13:40:43.231Z" }, - { url = "https://files.pythonhosted.org/packages/6b/65/d9cadc9f1920d7a127ad2edba16c1db7916e59719285cd6c94600b0080ba/pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:8d0820e8192167f80d88d64038e609c31452eeca865b4e1d9950a27a4609b00b", size = 2329133, upload-time = "2026-05-06T13:39:57.365Z" }, - { url = "https://files.pythonhosted.org/packages/d0/cf/c873d91679f3a30bcf5e7ac280ce5573483e72295307685120d0d5ad3416/pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:fbdb89b3e1c94a30cc5edfce477c6e6a5dc4d8f84665b455c27582f211a1c72c", size = 2374464, upload-time = "2026-05-06T13:38:06.976Z" }, - { url = "https://files.pythonhosted.org/packages/47/bd/6f2fc8188f31bf10590f1e98e7b306336161fac930a8c514cd7bd828c7dc/pydantic_core-2.46.4-cp312-cp312-win32.whl", hash = "sha256:9aa768456404a8bf48a4406685ac2bec8e72b62c69313734fa3b73cf33b3a894", size = 1974823, upload-time = "2026-05-06T13:40:47.985Z" }, - { url = "https://files.pythonhosted.org/packages/40/8c/985c1d41ea1107c2534abd9870e4ed5c8e7669b5c308297835c001e7a1c4/pydantic_core-2.46.4-cp312-cp312-win_amd64.whl", hash = "sha256:e9c26f834c65f5752f3f06cb08cb86a913ceb7274d0db6e267808a708b46bc89", size = 2072919, upload-time = "2026-05-06T13:39:21.153Z" }, - { url = "https://files.pythonhosted.org/packages/c4/ba/f463d006e0c47373ca7ec5e1a261c59dc01ef4d62b2657af925fb0deee3a/pydantic_core-2.46.4-cp312-cp312-win_arm64.whl", hash = "sha256:4fc73cb559bdb54b1134a706a2802a4cddd27a0633f5abb7e53056268751ac6a", size = 2027604, upload-time = "2026-05-06T13:39:03.753Z" }, - { url = "https://files.pythonhosted.org/packages/51/a2/5d30b469c5267a17b39dec53208222f76a8d351dfac4af661888c5aee77d/pydantic_core-2.46.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:5d5902252db0d3cedf8d4a1bc68f70eeb430f7e4c7104c8c476753519b423008", size = 2106306, upload-time = "2026-05-06T13:37:48.029Z" }, - { url = "https://files.pythonhosted.org/packages/c1/81/4fa520eaffa8bd7d1525e644cd6d39e7d60b1592bc5b516693c7340b50f1/pydantic_core-2.46.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c94f0688e7b8d0a67abf40e57a7eaaecd17cc9586706a31b76c031f63df052b4", size = 1951906, upload-time = "2026-05-06T13:37:17.012Z" }, - { url = "https://files.pythonhosted.org/packages/03/d5/fd02da45b659668b05923b17ba3a0100a0a3d5541e3bd8fcc4ecb711309e/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f027324c56cd5406ca49c124b0db10e56c69064fec039acc571c29020cc87c76", size = 1976802, upload-time = "2026-05-06T13:37:35.113Z" }, - { url = "https://files.pythonhosted.org/packages/21/f2/95727e1368be3d3ed485eaab7adbd7dda408f33f7a36e8b48e0144002b91/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e739fee756ba1010f8bcccb534252e85a35fe45ae92c295a06059ce58b74ccd3", size = 2052446, upload-time = "2026-05-06T13:37:12.313Z" }, - { url = "https://files.pythonhosted.org/packages/9c/86/5d99feea3f77c7234b8718075b23db11532773c1a0dbd9b9490215dc2eeb/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9d56801be94b86a9da183e5f3766e6310752b99ff647e38b09a9500d88e46e76", size = 2232757, upload-time = "2026-05-06T13:39:01.149Z" }, - { url = "https://files.pythonhosted.org/packages/d2/3a/508ac615935ef7588cf6d9e9b91309fdc2da751af865e02a9098de88258c/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2412e734dcb48da14d4e4006b82b46b74f2518b8a26ee7e58c6844a6cd6d03c4", size = 2309275, upload-time = "2026-05-06T13:37:41.406Z" }, - { url = "https://files.pythonhosted.org/packages/07/f8/41db9de19d7987d6b04715a02b3b40aea467000275d9d758ffaa31af7d50/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9551187363ffc0de2a00b2e47c25aeaeb1020b69b668762966df15fc5659dd5a", size = 2094467, upload-time = "2026-05-06T13:39:18.847Z" }, - { url = "https://files.pythonhosted.org/packages/2c/e2/f35033184cb11d0052daf4416e8e10a502ea2ac006fc4f459aee872727d1/pydantic_core-2.46.4-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:0186750b482eefa11d7f435892b09c5c606193ef3375bcf94aa00ae6bfb66262", size = 2134417, upload-time = "2026-05-06T13:40:17.944Z" }, - { url = "https://files.pythonhosted.org/packages/7e/7b/6ceeb1cc90e193862f444ebe373d8fdf613f0a82572dde03fb10734c6c71/pydantic_core-2.46.4-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5855698a4856556d86e8e6cd8434bc3ac0314ee8e12089ae0e143f64c6256e4e", size = 2179782, upload-time = "2026-05-06T13:40:32.618Z" }, - { url = "https://files.pythonhosted.org/packages/5a/f2/c8d7773ede6af08036423a00ae0ceffce266c3c52a096c435d68c896083f/pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:cbaf13819775b7f769bf4a1f066cb6df7a28d4480081a589828ef190226881cd", size = 2188782, upload-time = "2026-05-06T13:36:51.018Z" }, - { url = "https://files.pythonhosted.org/packages/59/31/0c864784e31f09f05cdd87606f08923b9c9e7f6e51dd27f20f62f975ce9f/pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:633147d34cf4550417f12e2b1a0383973bdf5cdfde212cb09e9a581cf10820be", size = 2328334, upload-time = "2026-05-06T13:40:37.764Z" }, - { url = "https://files.pythonhosted.org/packages/c2/eb/4f6c8a41efa30baa755590f4141abf3a8c370fab610915733e74134a7270/pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:82cf5301172168103724d49a1444d3378cb20cdee30b116a1bd6031236298a5d", size = 2372986, upload-time = "2026-05-06T13:39:34.152Z" }, - { url = "https://files.pythonhosted.org/packages/5b/24/b375a480d53113860c299764bfe9f349a3dc9108b3adc0d7f0d786492ebf/pydantic_core-2.46.4-cp313-cp313-win32.whl", hash = "sha256:9fa8ae11da9e2b3126c6426f147e0fba88d96d65921799bb30c6abd1cb2c97fb", size = 1973693, upload-time = "2026-05-06T13:37:55.072Z" }, - { url = "https://files.pythonhosted.org/packages/7e/e8/cff247591966f2d22ec8c003cd7587e27b7ba7b81ab2fb888e3ab75dc285/pydantic_core-2.46.4-cp313-cp313-win_amd64.whl", hash = "sha256:6b3ace8194b0e5204818c92802dcdca7fc6d88aabbb799d7c795540d9cd6d292", size = 2071819, upload-time = "2026-05-06T13:38:49.139Z" }, - { url = "https://files.pythonhosted.org/packages/c6/1a/f4aee670d5670e9e148e0c82c7db98d780be566c6e6a97ee8035528ca0b3/pydantic_core-2.46.4-cp313-cp313-win_arm64.whl", hash = "sha256:184c081504d17f1c1066e430e117142b2c77d9448a97f7b65c6ac9fd9aee238d", size = 2027411, upload-time = "2026-05-06T13:40:45.796Z" }, - { url = "https://files.pythonhosted.org/packages/8d/74/228a26ddad29c6672b805d9fd78e8d251cd04004fa7eed0e622096cd0250/pydantic_core-2.46.4-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:428e04521a40150c85216fc8b85e8d39fece235a9cf5e383761238c7fa9b96fb", size = 2102079, upload-time = "2026-05-06T13:38:41.019Z" }, - { url = "https://files.pythonhosted.org/packages/ad/1f/8970b150a4b4365623ae00fc88603491f763c627311ae8031e3111356d6e/pydantic_core-2.46.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:23ace664830ee0bfe014a0c7bc248b1f7f25ed7ad103852c317624a1083af462", size = 1952179, upload-time = "2026-05-06T13:36:59.812Z" }, - { url = "https://files.pythonhosted.org/packages/95/30/5211a831ae054928054b2f79731661087a2bc5c01e825c672b3a4a8f1b3e/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ce5c1d2a8b27468f433ca974829c44060b8097eedc39933e3c206a90ee49c4a9", size = 1978926, upload-time = "2026-05-06T13:37:39.933Z" }, - { url = "https://files.pythonhosted.org/packages/57/e9/689668733b1eb67adeef047db3c2e8788fcf65a7fd9c9e2b46b7744fe245/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7283d57845ecf5a163403eb0702dfc220cc4fbdd18919cb5ccea4f95ee1cdab4", size = 2046785, upload-time = "2026-05-06T13:38:01.995Z" }, - { url = "https://files.pythonhosted.org/packages/60/d9/6715260422ff50a2109878fd24d948a6c3446bb2664f34ee78cd972b3acd/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8daafc69c93ee8a0204506a3b6b30f586ef54028f52aeeeb5c4cfc5184fd5914", size = 2228733, upload-time = "2026-05-06T13:40:50.371Z" }, - { url = "https://files.pythonhosted.org/packages/18/ae/fdb2f64316afca925640f8e70bb1a564b0ec2721c1389e25b8eb4bf9a299/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd2213145bcc2ba85884d0ac63d222fece9209678f77b9b4d76f054c561adb28", size = 2307534, upload-time = "2026-05-06T13:37:21.531Z" }, - { url = "https://files.pythonhosted.org/packages/89/1d/8eff589b45bb8190a9d12c49cfad0f176a5cbd1534908a6b5125e2886239/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7a5f930472650a82629163023e630d160863fce524c616f4e5186e5de9d9a49b", size = 2099732, upload-time = "2026-05-06T13:39:31.942Z" }, - { url = "https://files.pythonhosted.org/packages/06/d5/ee5a3366637fee41dee51a1fc91562dcf12ddbc68fda34e6b253da2324bb/pydantic_core-2.46.4-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:c1b3f518abeca3aa13c712fd202306e145abf59a18b094a6bafb2d2bbf59192c", size = 2129627, upload-time = "2026-05-06T13:37:25.033Z" }, - { url = "https://files.pythonhosted.org/packages/94/33/2414be571d2c6a6c4d08be21f9292b6d3fdb08949a97b6dfe985017821db/pydantic_core-2.46.4-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1a7dd0b3ee80d90150e3495a3a13ac34dbcbfd4f012996a6a1d8900e91b5c0fb", size = 2179141, upload-time = "2026-05-06T13:37:14.046Z" }, - { url = "https://files.pythonhosted.org/packages/7b/79/7daa95be995be0eecc4cf75064cb33f9bbbfe3fe0158caf2f0d4a996a5c7/pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:3fb702cd90b0446a3a1c5e470bfa0dd23c0233b676a9099ddcc964fa6ca13898", size = 2184325, upload-time = "2026-05-06T13:36:53.615Z" }, - { url = "https://files.pythonhosted.org/packages/9f/cb/d0a382f5c0de8a222dc61c65348e0ce831b1f68e0a018450d31c2cace3a5/pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:b8458003118a712e66286df6a707db01c52c0f52f7db8e4a38f0da1d3b94fc4e", size = 2323990, upload-time = "2026-05-06T13:40:29.971Z" }, - { url = "https://files.pythonhosted.org/packages/05/db/d9ba624cc4a5aced1598e88c04fdbd8310c8a69b9d38b9a3d39ce3a61ed7/pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:372429a130e469c9cd698925ce5fc50940b7a1336b0d82038e63d5bbc4edc519", size = 2369978, upload-time = "2026-05-06T13:37:23.027Z" }, - { url = "https://files.pythonhosted.org/packages/f2/20/d15df15ba918c423461905802bfd2981c3af0bfa0e40d05e13edbfa48bc3/pydantic_core-2.46.4-cp314-cp314-win32.whl", hash = "sha256:85bb3611ff1802f3ee7fdd7dbff26b56f343fb432d57a4728fdd49b6ef35e2f4", size = 1966354, upload-time = "2026-05-06T13:38:03.499Z" }, - { url = "https://files.pythonhosted.org/packages/fc/b6/6b8de4c0a7d7ab3004c439c80c5c1e0a3e8d78bbae19379b01960383d9e5/pydantic_core-2.46.4-cp314-cp314-win_amd64.whl", hash = "sha256:811ff8e9c313ab425368bcbb36e5c4ebd7108c2bbf4e4089cfbb0b01eff63fac", size = 2072238, upload-time = "2026-05-06T13:39:40.807Z" }, - { url = "https://files.pythonhosted.org/packages/32/36/51eb763beec1f4cf59b1db243a7dcc39cbb41230f050a09b9d69faaf0a48/pydantic_core-2.46.4-cp314-cp314-win_arm64.whl", hash = "sha256:bfec22eab3c8cc2ceec0248aec886624116dc079afa027ecc8ad4a7e62010f8a", size = 2018251, upload-time = "2026-05-06T13:37:26.72Z" }, - { url = "https://files.pythonhosted.org/packages/e8/91/855af51d625b23aa987116a19e231d2aaef9c4a415273ddc189b79a45fee/pydantic_core-2.46.4-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:af8244b2bef6aaad6d92cda81372de7f8c8d36c9f0c3ea36e827c60e7d9467a0", size = 2099593, upload-time = "2026-05-06T13:39:47.682Z" }, - { url = "https://files.pythonhosted.org/packages/fb/1b/8784a54c65edb5f49f0a14d6977cf1b209bba85a4c77445b255c2de58ab3/pydantic_core-2.46.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5a4330cdbc57162e4b3aa303f588ba752257694c9c9be3e7ebb11b4aca659b5d", size = 1935226, upload-time = "2026-05-06T13:40:40.428Z" }, - { url = "https://files.pythonhosted.org/packages/e8/e7/1955d28d1afc56dd4b3ad7cc0cf39df1b9852964cf16e5d13912756d6d6b/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c61fc04a3d840155ff08e475a04809278972fe6aef51e2720554e96367e34b", size = 1974605, upload-time = "2026-05-06T13:37:32.029Z" }, - { url = "https://files.pythonhosted.org/packages/93/e2/3fedbf0ba7a22850e6e9fd78117f1c0f10f950182344d8a6c535d468fdd8/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c50f2528cf200c5eed56faf3f4e22fcd5f38c157a8b78576e6ba3168ec35f000", size = 2030777, upload-time = "2026-05-06T13:38:55.239Z" }, - { url = "https://files.pythonhosted.org/packages/f8/61/46be275fcaaba0b4f5b9669dd852267ce1ff616592dccf7a7845588df091/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0cbe8b01f948de4286c74cdd6c667aceb38f5c1e26f0693b3983d9d74887c65e", size = 2236641, upload-time = "2026-05-06T13:37:08.096Z" }, - { url = "https://files.pythonhosted.org/packages/60/db/12e93e46a8bac9988be3c016860f83293daea8c716c029c9ace279036f2f/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:617d7e2ca7dcb8c5cf6bcb8c59b8832c94b36196bbf1cbd1bfb56ed341905edd", size = 2286404, upload-time = "2026-05-06T13:40:20.221Z" }, - { url = "https://files.pythonhosted.org/packages/e2/4a/4d8b19008f38d31c53b8219cfedc2e3d5de5fe99d90076b7e767de29274f/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7027560ee92211647d0d34e3f7cd6f50da56399d26a9c8ad0da286d3869a53f3", size = 2109219, upload-time = "2026-05-06T13:38:12.153Z" }, - { url = "https://files.pythonhosted.org/packages/88/70/3cbc40978fefb7bb09c6708d40d4ad1a5d70fd7213c3d17f971de868ec1f/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:f99626688942fb746e545232e7726926f3be91b5975f8b55327665fafda991c7", size = 2110594, upload-time = "2026-05-06T13:40:02.971Z" }, - { url = "https://files.pythonhosted.org/packages/9d/20/b8d36736216e29491125531685b2f9e61aa5b4b2599893f8268551da3338/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fc3e9034a63de20e15e8ade85358bc6efc614008cab72898b4b4952bea0509ff", size = 2159542, upload-time = "2026-05-06T13:39:27.506Z" }, - { url = "https://files.pythonhosted.org/packages/1d/a2/367df868eb584dacf6bf82a389272406d7178e301c4ac82545ab98bc2dd9/pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:97e7cf2be5c77b7d1a9713a05605d49460d02c6078d38d8bef3cbe323c548424", size = 2168146, upload-time = "2026-05-06T13:38:31.93Z" }, - { url = "https://files.pythonhosted.org/packages/c1/b8/4460f77f7e201893f649a29ab355dddd3beee8a97bcb1a320db414f9a06e/pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:3bf92c5d0e00fefaab325a4d27828fe6b6e2a21848686b5b60d2d9eeb09d76c6", size = 2306309, upload-time = "2026-05-06T13:37:44.717Z" }, - { url = "https://files.pythonhosted.org/packages/64/c4/be2639293acd87dc8ddbcec41a73cee9b2ebf996fe6d892a1a74e88ad3f7/pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:3ecbc122d18468d06ca279dc26a8c2e2d5acb10943bb35e36ae92096dc3b5565", size = 2369736, upload-time = "2026-05-06T13:37:05.645Z" }, - { url = "https://files.pythonhosted.org/packages/30/a6/9f9f380dbb301f67023bf8f707aaa75daadf84f7152d95c410fd7e81d994/pydantic_core-2.46.4-cp314-cp314t-win32.whl", hash = "sha256:e846ae7835bf0703ae43f534ab79a867146dadd59dc9ca5c8b53d5c8f7c9ef02", size = 1955575, upload-time = "2026-05-06T13:38:51.116Z" }, - { url = "https://files.pythonhosted.org/packages/40/1f/f1eb9eb350e795d1af8586289746f5c5677d16043040d63710e22abc43c9/pydantic_core-2.46.4-cp314-cp314t-win_amd64.whl", hash = "sha256:2108ba5c1c1eca18030634489dc544844144ee36357f2f9f780b93e7ddbb44b5", size = 2051624, upload-time = "2026-05-06T13:38:21.672Z" }, - { url = "https://files.pythonhosted.org/packages/f6/d2/42dd53d0a85c27606f316d3aa5d2869c4e8470a5ed6dec30e4a1abe19192/pydantic_core-2.46.4-cp314-cp314t-win_arm64.whl", hash = "sha256:4fcbe087dbc2068af7eda3aa87634eba216dbda64d1ae73c8684b621d33f6596", size = 2017325, upload-time = "2026-05-06T13:40:52.723Z" }, - { url = "https://files.pythonhosted.org/packages/ee/a4/73995fd4ebbb46ba0ee51e6fa049b8f02c40daebb762208feda8a6b7894d/pydantic_core-2.46.4-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:14d4edf427bdcf950a8a02d7cb44a08614388dd6e1bdcbf4f67504fa7887da9c", size = 2111589, upload-time = "2026-05-06T13:37:10.817Z" }, - { url = "https://files.pythonhosted.org/packages/fb/7f/f37d3a5e8bfcc2e403f5c57a730f2d815693fb42119e8ea48b3789335af1/pydantic_core-2.46.4-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:0ce40cd7b21210e99342afafbd4d0f76d784eb5b1d60f3bdc566be4983c6c73b", size = 1944552, upload-time = "2026-05-06T13:36:56.717Z" }, - { url = "https://files.pythonhosted.org/packages/15/3c/d7eb777b3ff43e8433a4efb39a17aa8fd98a4ee8561a24a67ef5db07b2d6/pydantic_core-2.46.4-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:90884113d8b48f760e9587002789ddd741e76ab9f89518cd1e43b1f1a52ec44b", size = 1982984, upload-time = "2026-05-06T13:39:06.207Z" }, - { url = "https://files.pythonhosted.org/packages/63/87/70b9f40170a81afd55ca26c9b2acb25c20d64bcfbf888fafecb3ba077d4c/pydantic_core-2.46.4-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:66ce7632c22d837c95301830e111ad0128a32b8207533b60896a96c4915192ea", size = 2138417, upload-time = "2026-05-06T13:39:45.476Z" }, - { url = "https://files.pythonhosted.org/packages/9d/1d/8987ad40f65ae1432753072f214fb5c74fe47ffbd0698bb9cbbb585664f8/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:1d8ba486450b14f3b1d63bc521d410ec7565e52f887b9fb671791886436a42f7", size = 2095527, upload-time = "2026-05-06T13:39:52.283Z" }, - { url = "https://files.pythonhosted.org/packages/64/d3/84c282a7eee1d3ac4c0377546ef5a1ea436ce26840d9ac3b7ed54a377507/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:3009f12e4e90b7f88b4f9adb1b0c4a3d58fe7820f3238c190047209d148026df", size = 1936024, upload-time = "2026-05-06T13:40:15.671Z" }, - { url = "https://files.pythonhosted.org/packages/d7/ca/eac61596cdeb4d7e174d3dc0bd8a6238f14f75f97a24e7b7db4c7e7340a0/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad785e92e6dc634c21555edc8bd6b64957ab844541bcb96a1366c202951ae526", size = 1990696, upload-time = "2026-05-06T13:38:34.717Z" }, - { url = "https://files.pythonhosted.org/packages/fa/c3/7c8b240552251faf6b3a957db200fcfbbcec36763c050428b601e0c9b83b/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:00c603d540afdd6b80eb39f078f33ebd46211f02f33e34a32d9f053bba711de0", size = 2147590, upload-time = "2026-05-06T13:39:29.883Z" }, - { url = "https://files.pythonhosted.org/packages/11/cb/428de0385b6c8d44b716feba566abfacfbd23ee3c4439faa789a1456242f/pydantic_core-2.46.4-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:0c563b08bca408dc7f65f700633d8442fffb2421fc47b8101377e9fd65051ff0", size = 2112782, upload-time = "2026-05-06T13:37:04.016Z" }, - { url = "https://files.pythonhosted.org/packages/0b/b5/6a17bdadd0fc1f170adfd05a20d37c832f52b117b4d9131da1f41bb097ce/pydantic_core-2.46.4-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:db06ffe51636ffe9ca531fe9023dd64bdd794be8754cb5df57c5498ae5b518a7", size = 1952146, upload-time = "2026-05-06T13:39:43.092Z" }, - { url = "https://files.pythonhosted.org/packages/2a/dc/03734d80e362cd43ef65428e9de77c730ce7f2f11c60d2b1e1b39f0fbf99/pydantic_core-2.46.4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:133878133d271ade3d41d1bfb2a45ec38dbdbda40bc065921c6b04e4630127e2", size = 2134492, upload-time = "2026-05-06T13:36:58.124Z" }, - { url = "https://files.pythonhosted.org/packages/de/df/5e5ffc085ed07cc22d298134d3d911c63e91f6a0eb91fe646750a3209910/pydantic_core-2.46.4-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:9bc519fbf2b7578398853d815009ae5e4d4603d12f4e3f91da8c06852d3da3e9", size = 2156604, upload-time = "2026-05-06T13:37:49.88Z" }, - { url = "https://files.pythonhosted.org/packages/81/44/6e112a4253e56f5705467cbab7ab5e91ee7398ba3d56d358635958893d3e/pydantic_core-2.46.4-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:c7a7bd4e39e8e4c12c39cd480356842b6a8a06e41b23a55a5e3e191718838ddf", size = 2183828, upload-time = "2026-05-06T13:37:43.053Z" }, - { url = "https://files.pythonhosted.org/packages/ac/ad/5565071e937d8e752842ac241463944c9eb14c87e2d269f2658a5bd05e98/pydantic_core-2.46.4-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:d396ec2b979760aaf3218e76c24e65bd0aca24983298653b3a9d7a45f9e47b30", size = 2310000, upload-time = "2026-05-06T13:37:56.694Z" }, - { url = "https://files.pythonhosted.org/packages/4f/c3/66883a5cec183e7fba4d024b4cbbe61851a63750ef606b0afecc46d1f2bf/pydantic_core-2.46.4-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:86e1a4418c6cd97d60c95c71164158eaf7324fae7b0923264016baa993eba6fc", size = 2361286, upload-time = "2026-05-06T13:40:05.667Z" }, - { url = "https://files.pythonhosted.org/packages/4b/2d/69abac8f838090bbecd5df894befb2c2619e7996a98ddb949db9f3b93225/pydantic_core-2.46.4-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:d51026d73fcfd93610abc7b27789c26b313920fcfb20e27462d74a7f8b06e983", size = 2193071, upload-time = "2026-05-06T13:38:08.682Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/a6/24/af4ec4be49fbc810f35b0bdcacc3d433b56bbfa469fd3bfd4ae116cd9bf1/pydantic_core-2.50.1.tar.gz", hash = "sha256:e50d7b94baac6c7d09927fa5ca5800a0c7ee5015c7fcff65beb3a1931b5a6e09", size = 513515, upload-time = "2026-10-11T18:35:44.82Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/45/1b/ca81811da3d2aea724fb3c4ba6b83f50ab8f210576306ccd601973142d35/pydantic_core-2.50.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:c531166c42ea7bdfecc8c50049581f05dd1993b09cc7c52bb36a14e96deaec7d", size = 2152145, upload-time = "2026-10-11T18:31:58.046Z" }, + { url = "https://files.pythonhosted.org/packages/59/20/938ef7e0541af0a314e2f9d63848dbd1656ba2ebfe5ca0469f7ebee00d5e/pydantic_core-2.50.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b6d0c2183008c188e19f4906d426b293bdc4f67ab17df8e180fe16cda208fa71", size = 2045761, upload-time = "2026-10-11T18:31:59.35Z" }, + { url = "https://files.pythonhosted.org/packages/2f/4b/456497fe2affa18f49b226e89bde31e8a204751ee343dd9beaac5438123e/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:94be440c03fede26969a5ce75468e0e6a9927a1b46d9b679ee8adc1b057b0350", size = 2049557, upload-time = "2026-10-11T18:32:01.121Z" }, + { url = "https://files.pythonhosted.org/packages/a5/9d/cd5dfe13928f55e236dff3a1bee06721d318ca6c955d9ca993b0a5d09f39/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:36c426eac0af8d1529ff8467e612b933346caec1fdc0d774f78f67a1a11e16c1", size = 2188153, upload-time = "2026-10-11T18:32:02.442Z" }, + { url = "https://files.pythonhosted.org/packages/fb/8d/d0b25bc484f8d9136ea76ece69e0b2d24ab370cc2e7bbd1b79e61723b763/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:028e2f212273d4a39b1ec1e0de8166b1165a65fc0f1111452a9d94fc7c625c63", size = 2388308, upload-time = "2026-10-11T18:32:03.767Z" }, + { url = "https://files.pythonhosted.org/packages/c5/64/6513cac7c9f78492abafa01d57a69de1d246bf3085fd7b0330bf14b025b3/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e6f0cc1bb9900dc558960894adeb30b0c083366fc1d69b856209fb2ca5c36fe5", size = 2431187, upload-time = "2026-10-11T18:32:05.159Z" }, + { url = "https://files.pythonhosted.org/packages/ed/60/7f2ae89c37e69a3dc0da9ff57b0388c285542c688d05f36767770429de85/pydantic_core-2.50.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8812592c85d0edf423f10eadcef42716d71e8219085ad9e85b775057b7306133", size = 2157623, upload-time = "2026-10-11T18:32:06.616Z" }, + { url = "https://files.pythonhosted.org/packages/87/02/e3a71373b85a7973099b9a229a4302c7792262717e0b4997e41c01f7dd16/pydantic_core-2.50.1-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:bbce99252ba3167b2b6277f1829d5bf4b43b754524bddf7f944707c3db7d2253", size = 2254539, upload-time = "2026-10-11T18:32:07.968Z" }, + { url = "https://files.pythonhosted.org/packages/3f/d5/5b620aaf40dc631d911565b64d49d3fa8422027c046a7a96dc4e4921ae98/pydantic_core-2.50.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:476f6ed8e43cd1e0b460920e23571700872b284e77331cb30c4faf459cf48a4b", size = 2267344, upload-time = "2026-10-11T18:32:09.399Z" }, + { url = "https://files.pythonhosted.org/packages/e0/48/f46baf4580d8a56ca4782aa65842e16d3cf39736b29fcce8e9c0521b3422/pydantic_core-2.50.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:2cbd1b75b09e976ed0d6b6ca297675632ca35df86130088457cdc60ef36970ae", size = 2300877, upload-time = "2026-10-11T18:32:10.903Z" }, + { url = "https://files.pythonhosted.org/packages/2b/9d/e7d28505e6092c1fe075838a4f793ccbe6dd676e44ab16175815ee06cfe0/pydantic_core-2.50.1-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:5958c72adb417c39b12ac87525ac60b0d73315fcdc59e21f44ee4a5e2512c9ef", size = 2464270, upload-time = "2026-10-11T18:32:12.329Z" }, + { url = "https://files.pythonhosted.org/packages/22/b1/3bf63b82efd93ebc9968f9c12fc46037a28bcb452c88e4688f33e5ff7dca/pydantic_core-2.50.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d8f9e8a6c4ab04b78d61f78627370d834eb004b2869dcb28cfffa647b4ea1980", size = 2478653, upload-time = "2026-10-11T18:32:13.735Z" }, + { url = "https://files.pythonhosted.org/packages/28/17/26d1e4b9c2ba6a92b7dc75bbcb99ef44456b7e3af1bced868403667ea7d3/pydantic_core-2.50.1-cp311-cp311-win32.whl", hash = "sha256:4be846f55c9477f5f3ddde8f2ce941137e16862a56d018ed885d422bb6ae02f2", size = 2120246, upload-time = "2026-10-11T18:32:15.591Z" }, + { url = "https://files.pythonhosted.org/packages/24/65/3e875e7991eaecd4d70686293ff0d8a99aa8f93dc295e6a21c3d702912fb/pydantic_core-2.50.1-cp311-cp311-win_amd64.whl", hash = "sha256:0048b6dddc8ef4b64fccaad878bd143b0c3882ea9936279dc11d613f6b7dd1bc", size = 2176332, upload-time = "2026-10-11T18:32:17.153Z" }, + { url = "https://files.pythonhosted.org/packages/ab/5c/58dbd17c61f209d91c70f549eb7a3bbec7023e89ea12dead091462d6d658/pydantic_core-2.50.1-cp311-cp311-win_arm64.whl", hash = "sha256:6a733778df2f7087ec1100ed0b41533e4f3001976e99570fa34f57c66e7f8e3e", size = 2182471, upload-time = "2026-10-11T18:32:18.49Z" }, + { url = "https://files.pythonhosted.org/packages/ee/94/101b49a6c63f99586755690696eae14532772587d9e39e93f7b8d28a49da/pydantic_core-2.50.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:704075d10b74f2f3c6e15407c696d88701df35fc8953f434a431add0d0074db0", size = 2222428, upload-time = "2026-10-11T18:32:20.228Z" }, + { url = "https://files.pythonhosted.org/packages/db/a3/f8b1b39349c33037c73d7a1b794c9c29d8f07d5bd2b74399c1375a529cc6/pydantic_core-2.50.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e8e1d6ce820aa23317e8209a86bd65a540973c12dc7552b48a4f6c8e9926815e", size = 2025779, upload-time = "2026-10-11T18:32:21.723Z" }, + { url = "https://files.pythonhosted.org/packages/d2/2d/862a7d115305cc621358e51ba13f296e0ffdf4fbd984be9f63bc7862730b/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c18db21573bd2c6489f9a544b7499f0df2853958c568e5e783536ee1f690af41", size = 2048429, upload-time = "2026-10-11T18:32:23.3Z" }, + { url = "https://files.pythonhosted.org/packages/c0/7d/fed95d18bf2b5abe2d5ab2bbec4184bfc22b6805994a33ccdae8edffd25a/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:cb57f304525a5e3c13333b772bf9a473f36326e9c821b2e8e1b2fd36f80ae2c3", size = 2173274, upload-time = "2026-10-11T18:32:24.697Z" }, + { url = "https://files.pythonhosted.org/packages/93/1e/c6f22ceac65dc3d291ff79bea0eb74cbd1de8b128f01fee48af03bcea1e1/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a27c09d86600f1bf2fe3f37e1ae697faf3143931c09322cd799da94deee923b5", size = 2360403, upload-time = "2026-10-11T18:32:26.281Z" }, + { url = "https://files.pythonhosted.org/packages/2c/97/190b5b6bfe4c72f265feb657913eb30749193927a5ad7b83cfa7866a25a2/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:46b3301d3b5c886f77de7546e47274a5842c622ea2020b8c6524c6b66913b4a6", size = 2439799, upload-time = "2026-10-11T18:32:27.844Z" }, + { url = "https://files.pythonhosted.org/packages/90/24/48cd98388e4ac2c08d0800af36d15413db15e20387f1038123a2c86cb2f6/pydantic_core-2.50.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:93ba4e9d8210d941c200431a56b2c0400b131865947903937ed3ec5404307d2e", size = 2160157, upload-time = "2026-10-11T18:32:29.553Z" }, + { url = "https://files.pythonhosted.org/packages/00/86/d909133d0b9979ed14c20f110f21124a0e346caf071bd66ac5af3009062b/pydantic_core-2.50.1-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:e5faeaee74a57d32b3ab3aebad2e348f06d3ba946fc5d28c1728455f00a3d13a", size = 2229523, upload-time = "2026-10-11T18:32:31.027Z" }, + { url = "https://files.pythonhosted.org/packages/90/31/4b43f08131b2098e73a852fd932063385f3103b33839fd9d1abdb89e673d/pydantic_core-2.50.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a3cda0e538208e5d722bbf3698b24f19c0a7d05bc8d5f8a7f9b121ea7fa243d9", size = 2242700, upload-time = "2026-10-11T18:32:32.622Z" }, + { url = "https://files.pythonhosted.org/packages/88/77/de39658569dc7a4c293d110a89629f61145e7538f00d1e4280c28debefd3/pydantic_core-2.50.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:57f51b31ff826e2859120cf4737c5a758a48d96f3e97da40ccee1796d58078ff", size = 2278452, upload-time = "2026-10-11T18:32:34.165Z" }, + { url = "https://files.pythonhosted.org/packages/46/bd/1eeb9e4e791e81210ef9096f58080b32ba15b5b13c108d50aaa3f8ce9f73/pydantic_core-2.50.1-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:8daa7ee75245d43ad7d747e5c9ecc1b1d06552f72b14887e9276f787d57375f4", size = 2450098, upload-time = "2026-10-11T18:32:35.547Z" }, + { url = "https://files.pythonhosted.org/packages/1c/e6/b2accfdff17e5a88d6358536702146de00f9339adaa4d5bbe1ee93cb4832/pydantic_core-2.50.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:acbf31f37c53a5ac0c34706c80b4f5107ba20b05fdd3816124bf236ef0c57dd2", size = 2476839, upload-time = "2026-10-11T18:32:37.119Z" }, + { url = "https://files.pythonhosted.org/packages/3b/7e/c8a83eb5d2cd42c2e13507150fb777b1edea5a018adc9cbf2858a1d08285/pydantic_core-2.50.1-cp312-cp312-win32.whl", hash = "sha256:45b11cac094aa25725581d9304eee93c9028516b9ea80dd9e175e13a5a2c840e", size = 2101425, upload-time = "2026-10-11T18:32:38.593Z" }, + { url = "https://files.pythonhosted.org/packages/c5/17/8bbd530b8659e9d963f5b16f6cb8e159f4cd174b4d6304e48969ab12dba8/pydantic_core-2.50.1-cp312-cp312-win_amd64.whl", hash = "sha256:132529c83901437ff642f585216831bf5fd7a91df66829907e155192ead62498", size = 2172522, upload-time = "2026-10-11T18:32:40.112Z" }, + { url = "https://files.pythonhosted.org/packages/af/9f/a79d690b127e4e3cff143d031538ab9aa715f6b2fbeecbd07cd6f2bf9fb7/pydantic_core-2.50.1-cp312-cp312-win_arm64.whl", hash = "sha256:4e834f6a8e4ff772dcc34f58ef5504147a3ea5b0f4eeb13b0f8eb2ca75ac57f1", size = 2161366, upload-time = "2026-10-11T18:32:41.606Z" }, + { url = "https://files.pythonhosted.org/packages/ae/57/0e237d7091d2cd44a35d243b7344227f90440166860469cd036afc23a04d/pydantic_core-2.50.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:d5e062c01286d861fd6a1c4ff6e063547b3e713067f2df033c0ff97ac2ca006b", size = 2222774, upload-time = "2026-10-11T18:32:43.103Z" }, + { url = "https://files.pythonhosted.org/packages/f7/b9/c720e56858d4e1539503297ed37063e0c08e0f3541c41b777f6a800f75fa/pydantic_core-2.50.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0c003c3b7f49debb893d2d85ae099ac5959c9839e2f330fadb1fcdf7a6594482", size = 2024738, upload-time = "2026-10-11T18:32:44.587Z" }, + { url = "https://files.pythonhosted.org/packages/4d/b8/fbfc25875219cc060e613170ff10e850c6d8924beb4910da57c2ee3ba1d2/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:409e0ea40ec30d9158f33574fd758e689f6045a0f2596701828c27816ca9687d", size = 2047049, upload-time = "2026-10-11T18:32:46.164Z" }, + { url = "https://files.pythonhosted.org/packages/d7/43/34210124d504c553688f2f04b48500b131237528ac545b445e0d6d30e0d5/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:131059670f1d2444269b8585cb888963994871932447c08b39ac6a51fcfef658", size = 2173415, upload-time = "2026-10-11T18:32:47.722Z" }, + { url = "https://files.pythonhosted.org/packages/65/cf/6e178e8fdc11da5965bef980983bf46326a42f436871dd51ba0a57f39df1/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6dbcbee53bf17196a7f745aa9bf5a9603953a1e365b1f020be3207c676a3e7c4", size = 2361719, upload-time = "2026-10-11T18:32:49.217Z" }, + { url = "https://files.pythonhosted.org/packages/11/14/bd5169d356aa91bf777e28ba0b281c192d286d03c2812c9c9db023a2f00e/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:325c23f3e35cfbf0fe3486fa5f7260d1e45885173002d30a28ca019994124255", size = 2439803, upload-time = "2026-10-11T18:32:51.025Z" }, + { url = "https://files.pythonhosted.org/packages/1c/bc/d79d000e5203ebef39af839f2ce77a777fcad6e08ad26af9a2fcd114ffc8/pydantic_core-2.50.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:17e722e156d0444ecaefbe640bdb60928752bf2013e2b7a11cdb099aaae19bec", size = 2158402, upload-time = "2026-10-11T18:32:52.714Z" }, + { url = "https://files.pythonhosted.org/packages/1b/a5/4902cb5fd599422c130bd3124ab31ee8b771199bd56662702eed07d3fec7/pydantic_core-2.50.1-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:aa8224f10880d9bf1b5993988ba153d42a8b4f3f4f511f93b1f09c93ff613c72", size = 2229755, upload-time = "2026-10-11T18:32:54.126Z" }, + { url = "https://files.pythonhosted.org/packages/1a/f5/c1481f8669f6060d89110c9b1374173fc8767ca276b84f4870bd8acd5e3f/pydantic_core-2.50.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:41bc8237121bd8dc8d888dfd6279fc166ffc88c1f1bf3a8bf00869680533ca4c", size = 2242303, upload-time = "2026-10-11T18:32:55.641Z" }, + { url = "https://files.pythonhosted.org/packages/04/f9/77fc3c7653ba9b6e42049e17e96b25388187d4a7c274ab1cb07f58ac8419/pydantic_core-2.50.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:45c6266d071c241f2a168d45bf8c54344f0effce35e7e6b73afdec11f3687568", size = 2278345, upload-time = "2026-10-11T18:32:57.38Z" }, + { url = "https://files.pythonhosted.org/packages/95/9b/0579c5d12e7f2b16b27e6782427987341fcce07b0725e02ddb0b74add0c4/pydantic_core-2.50.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:1deeacb112d14d3f4fcb16b165f7dbaf76c70ba6e82f37ba042bdab51970a0b8", size = 2449947, upload-time = "2026-10-11T18:32:58.896Z" }, + { url = "https://files.pythonhosted.org/packages/a8/ac/1b677db91eba54cc5922f4de6edc46ba45c2bd712dfdc0130382d158e214/pydantic_core-2.50.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:1c96fd793b73d1b92e65570132505498fe7b21eaef73cdf74e67e5dfba7ac9e4", size = 2476889, upload-time = "2026-10-11T18:33:00.665Z" }, + { url = "https://files.pythonhosted.org/packages/4d/2a/3a9f6624ee3ea9ccba5249dde11418bb4c35780a7a92608f8768bd3fea39/pydantic_core-2.50.1-cp313-cp313-win32.whl", hash = "sha256:06ead20d39ffd6f2f6f2a8f8a6de67ff8bb1b4f14a8a30e058502514ee2ac685", size = 2101118, upload-time = "2026-10-11T18:33:02.329Z" }, + { url = "https://files.pythonhosted.org/packages/2d/1f/323f78ddd9d9938aac420c1abb4e8ba799fc8bdab0acc67c0593b837c979/pydantic_core-2.50.1-cp313-cp313-win_amd64.whl", hash = "sha256:7816e98acc08119dc0f340ab167048ecc54126316330c1f0caf7c6756c88e28f", size = 2170840, upload-time = "2026-10-11T18:33:03.919Z" }, + { url = "https://files.pythonhosted.org/packages/cb/09/8497c52a739ae425c3ac2f7f56414cbc711c67d374346174f40fe2062644/pydantic_core-2.50.1-cp313-cp313-win_arm64.whl", hash = "sha256:c17799a62c142d61b8a3c51752a7cbc87fe2ad4ccfab10e628a77b405075c662", size = 2161633, upload-time = "2026-10-11T18:33:05.518Z" }, + { url = "https://files.pythonhosted.org/packages/49/33/28b96e81677153715e3eafb9f26663a80841e859fde282a380359b0d3fa1/pydantic_core-2.50.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:1cf41f1ae3fa155cf167a72689ad044bcc1e3c97e064123677149bdfb5dafc4a", size = 2224428, upload-time = "2026-10-11T18:33:07.153Z" }, + { url = "https://files.pythonhosted.org/packages/94/40/15c06410c9b7b8da5805d27b64e09bd3f900e986728106db2689dbc51513/pydantic_core-2.50.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4df197990c15b5a37c5a277d131d9f2c67de6133f2e5dafd80d9bba4b99f46f9", size = 2023740, upload-time = "2026-10-11T18:33:08.763Z" }, + { url = "https://files.pythonhosted.org/packages/a1/4e/5eb629f6efc2a27e421d789dd4bfacbb5f6d09c80c28b13d1e87d73163d5/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0036473f5583e6a60e50b8b21651511564277a3f05cc5dab8cf579f552cd5f6c", size = 2049435, upload-time = "2026-10-11T18:33:10.366Z" }, + { url = "https://files.pythonhosted.org/packages/ba/8e/f195aebec49ad12318876ac2368c197a7939f5d52f8e156d2238ef8a4588/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:992c3514ec891fa7858099183e4d64e6bd5a5d4ff452fae29df22faa77a006bb", size = 2172975, upload-time = "2026-10-11T18:33:12.368Z" }, + { url = "https://files.pythonhosted.org/packages/e0/f5/7ad9fb83010cd5ea0948409db105676ed779c4e709e2d3d89b9fe2558794/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:739dc730e6be3bd5ec2f4ab5cfc7eb047cc45fc1497b3bafec74ff2ed07df597", size = 2364197, upload-time = "2026-10-11T18:33:14.244Z" }, + { url = "https://files.pythonhosted.org/packages/ca/fb/bf0aab3e78301d202b82a0322ec968cd703b11fc0623fde9a28708936f62/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:32fad3a91e51b6d2039c572db04a5a873260b399f6bd62c3552671fa7a4a2899", size = 2444259, upload-time = "2026-10-11T18:33:15.79Z" }, + { url = "https://files.pythonhosted.org/packages/45/35/38f6d6564fae57d9b12e5676dfa947e0e7d5c46dbeaa7eb3352261d6d299/pydantic_core-2.50.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42b54c2c90ad348b5e3a85e03e715d572c1fde357ef104cdfe3b03b697a404ea", size = 2159857, upload-time = "2026-10-11T18:33:17.51Z" }, + { url = "https://files.pythonhosted.org/packages/65/a0/fb0a3ca10f139dcf765b2d312d10cf0f65c57c59993229d00ad12b14ceff/pydantic_core-2.50.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:2df1ff41884de2bc4b307bafd7c40a691094fad2ff8e767e5b45a319257bcf4e", size = 2233954, upload-time = "2026-10-11T18:33:19.591Z" }, + { url = "https://files.pythonhosted.org/packages/8c/6a/e63842252702aa4ec6e6b7178ca85e541a77459076592c23ebe2d9840b33/pydantic_core-2.50.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe90228920fd8ff2be62622b6bb8a2b11acd65046d50c6b130614b5879605a20", size = 2243876, upload-time = "2026-10-11T18:33:21.393Z" }, + { url = "https://files.pythonhosted.org/packages/39/25/5991cf8318b37e0dfab47b87541619a1df8501a793cba0d978846cba37a7/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:844b869f118e22a41a091bdcedda8a71bc1b0f62c38d1a0c3211cece47e1d8fc", size = 2277908, upload-time = "2026-10-11T18:33:23.324Z" }, + { url = "https://files.pythonhosted.org/packages/a7/3e/3ee8baaa6cc25a6961c69168cf9ff0f002d56f4e0d541ad6724c18fb61f3/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:2eb75304506894a281d346220a4f7481a1b8729577c5ed2a05395991966a8396", size = 2449285, upload-time = "2026-10-11T18:33:24.942Z" }, + { url = "https://files.pythonhosted.org/packages/c0/c7/acbec6deac13fe697a80c275a9b6661db62c4d323bac8a47347b1f39c7cd/pydantic_core-2.50.1-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:6b20a4bffabdad0db2927ac034ae3b8a681b1f7a0182f3e60b479ad2fde21ebb", size = 2479013, upload-time = "2026-10-11T18:33:26.925Z" }, + { url = "https://files.pythonhosted.org/packages/10/08/21a3f237b264389f6219d053ee78fc1b5c2fd402c1b1cb2b6cb8b85f9834/pydantic_core-2.50.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:99ba9bc2b8062ea0c326a990f7f00e6530c23579de66dd246e72c4cafef950a5", size = 1484400, upload-time = "2026-10-11T18:33:28.693Z" }, + { url = "https://files.pythonhosted.org/packages/09/ce/077a6d262d12ef09108377ac0717f029f420d773ace63cafd6143af75568/pydantic_core-2.50.1-cp314-cp314-win32.whl", hash = "sha256:cf356f70551d40374eaffb1aa63f1eb6d2006681cbd7a9faea173ce0f4dd7cd2", size = 2103222, upload-time = "2026-10-11T18:33:30.326Z" }, + { url = "https://files.pythonhosted.org/packages/14/4c/350a2415209c43d670eb71d3c040f332c04a30583d39e311b05c7ac15762/pydantic_core-2.50.1-cp314-cp314-win_amd64.whl", hash = "sha256:d32f3acc081cc3923386d88f422cde8892335e95f034e0104bb4cf9310d9915f", size = 2171586, upload-time = "2026-10-11T18:33:32.139Z" }, + { url = "https://files.pythonhosted.org/packages/bf/92/9bea6ca96580a0902fed366f064f0829e404f41889b34543279a1162b888/pydantic_core-2.50.1-cp314-cp314-win_arm64.whl", hash = "sha256:bed5163e03b98bc1fa2eb05d74c63d9c5c95d8ed6254985481640fbf5e237dea", size = 2155773, upload-time = "2026-10-11T18:33:33.896Z" }, + { url = "https://files.pythonhosted.org/packages/86/8c/f121f073cf32bdd5cba7e6230b1ce0ac845b0cf43e44dd597d95af272db2/pydantic_core-2.50.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:9572c1369e9c9da2d64a7b7992c786d90ff295abc93964cfe3125e4290768070", size = 2234017, upload-time = "2026-10-11T18:33:35.588Z" }, + { url = "https://files.pythonhosted.org/packages/a4/69/2bb2bcd6146cffe98d760a46c42ae71efd5151d9b2f9c9bf6619a3b32083/pydantic_core-2.50.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2005207aafe1231315718bf6ed5d064a7300fb4772754af35ee72fc68159492e", size = 2001016, upload-time = "2026-10-11T18:33:37.57Z" }, + { url = "https://files.pythonhosted.org/packages/20/b3/fbf854c7d07ec114260c26e9e2071a4381740f9ae09641dbfcbdf2a18c45/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:64f6047f62a6c5ae08d0a6afb035667aa2d97c3d20d69762e034c5ea144d92a5", size = 2023015, upload-time = "2026-10-11T18:33:39.433Z" }, + { url = "https://files.pythonhosted.org/packages/65/20/6de55b2f92cdb614b745c6e9ced639fc4fd7e1e77604825a88bdece6fcbd/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1ef800dd7d85bcdadf4c3076e4c94e43939493558a3b69a1ea830c706d4617bb", size = 2192543, upload-time = "2026-10-11T18:33:41.381Z" }, + { url = "https://files.pythonhosted.org/packages/0c/d9/19e91c94bd5c405945ce2f15526808aea37e162c253160de8ed7bf70b406/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b0135bcdcaa0f23573f286e4cb5e0fd2962700964ed13df085b85f2b97aeab9e", size = 2388704, upload-time = "2026-10-11T18:33:43.167Z" }, + { url = "https://files.pythonhosted.org/packages/b6/bc/2e24c8415eae1a25ee5a5484946a917123bad2e9d01689a759236928175a/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0b3a6f334c6a2345ca15318ff894502a90012536404b37c844a976c76c846e0b", size = 2464118, upload-time = "2026-10-11T18:33:44.856Z" }, + { url = "https://files.pythonhosted.org/packages/bd/1f/945b8053cb061c64e102bcaf7bfb9ed740c0bd4349f9bb978a7d4ddff4ab/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:06e01fbbfdb9be777b316a71b6c49efaf4a08b615d0a98d678cda3023f79d019", size = 2150142, upload-time = "2026-10-11T18:33:46.661Z" }, + { url = "https://files.pythonhosted.org/packages/2b/78/96a3e50bf0d64aaae781107eb9335b7529d05a85793ed6e7241c4cd1d931/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:a29a061fec0b4e2d714f277e70a3a18125ecff803f2fea6eade2f2e53711d112", size = 2245577, upload-time = "2026-10-11T18:33:48.574Z" }, + { url = "https://files.pythonhosted.org/packages/7a/5d/a6038a0322232758a6ebfa709f4ca14a60bf5b93940cd0b345056a557da4/pydantic_core-2.50.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f5187624823423e1d1b82b1072ac41dc837389e18d3d0572cc19bbee46cd550a", size = 2263728, upload-time = "2026-10-11T18:33:50.527Z" }, + { url = "https://files.pythonhosted.org/packages/0d/4b/76ded3333a457a9344c4f2d63f2d82d0101654b05178fa4ddfe7d3627674/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:3e46a9eb0a0901dd6275e6b06ac3a464885ef350ec4121fe486869de8053e4bb", size = 2293630, upload-time = "2026-10-11T18:33:52.362Z" }, + { url = "https://files.pythonhosted.org/packages/a9/00/9eca378335c9c1b72bc779bf6e4c2a82ce784f14ec48a0e87102c9870e05/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:756d669f04e62ec4148ecfe22be6a4484d9b1181a6ef32e205ebfd200540858b", size = 2468048, upload-time = "2026-10-11T18:33:54.118Z" }, + { url = "https://files.pythonhosted.org/packages/35/ca/e3832e9cf93651251de43c8c5c029ed680a3c1a0a1b17ee26c81bed08cbd/pydantic_core-2.50.1-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:c516cc5367ca3448995d42cb994bf3f4c9002d2a7c22eac9622551269ad1b807", size = 2512159, upload-time = "2026-10-11T18:33:55.99Z" }, + { url = "https://files.pythonhosted.org/packages/4b/f2/773469b5a10a39116a2cb17edaf6d722f017dd8da07161b371465311c542/pydantic_core-2.50.1-cp314-cp314t-win32.whl", hash = "sha256:9d1bed94af6a63835461f3cf7502058eb166c58c4778e11d0f433cfb1bd69e19", size = 2098406, upload-time = "2026-10-11T18:33:58.043Z" }, + { url = "https://files.pythonhosted.org/packages/ee/42/0bb74f8f25204b259b11ab7c12dc7f180893b6bd706118b385147fb6efd5/pydantic_core-2.50.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c8dce1f1e0e5358b682a6ad3fa5e31b31d4560997b8e61417e9217c8d60f8a0c", size = 2148481, upload-time = "2026-10-11T18:33:59.913Z" }, + { url = "https://files.pythonhosted.org/packages/47/0d/d801646c9679a4e630e15cf521d4108b93854b42a6e6e02391bd4c6b1095/pydantic_core-2.50.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ceff0acc940be2715bd6ad17b24c0e5304abf44f6efd0f81ee8499e640f9dc86", size = 2174972, upload-time = "2026-10-11T18:34:01.875Z" }, + { url = "https://files.pythonhosted.org/packages/b2/84/23984b763d8862a02a13d27a44b6e8169428fd85ecfed88f54c29108604d/pydantic_core-2.50.1-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:8a6791afa2245e6c6b180122d105941644f5bd410bb18623b408808cc41a3102", size = 2224599, upload-time = "2026-10-11T18:34:04.016Z" }, + { url = "https://files.pythonhosted.org/packages/4d/90/a63cf8586abc1d1a3f6d9b18f0224789ebf003851f092ebda3c7c863fd32/pydantic_core-2.50.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:84f34323a61a365b4e9295de6028474754829aaddd59c7bf1a040e7487ef8f3c", size = 2024191, upload-time = "2026-10-11T18:34:05.901Z" }, + { url = "https://files.pythonhosted.org/packages/a6/6a/f34bff9808ffb4907fbf5f5040457d253cacf2da7fce9efbc99ca1b1a44d/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23edad659e8dbd8ca7e4e877fe6c81573abbdf215bd25a68b53e1272f58b80c7", size = 2048252, upload-time = "2026-10-11T18:34:07.757Z" }, + { url = "https://files.pythonhosted.org/packages/b2/54/13f419bf1eb59852003818e25935aaf175687d978f4c4bca70e08fe40a3b/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a5fce22f1e87d181e924e12da7d81cfe031fb3881a5ddf26ad28f141756ca43", size = 2173376, upload-time = "2026-10-11T18:34:09.592Z" }, + { url = "https://files.pythonhosted.org/packages/6d/6c/b5a34d24cd0c81669d8f8339d74e6815abcf2f8fb48ab4b49b84c09be1d5/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c73622ef819328873b53109ee4f77ceb598bffedd02daf916102be3228866b78", size = 2364559, upload-time = "2026-10-11T18:34:11.534Z" }, + { url = "https://files.pythonhosted.org/packages/eb/8d/d64d6216a8df365082665927ff923f183056f9049fee08e9777c9ac05296/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ce8c25ca38cc0e3d7753ba180808de2c0c8cb24eae0df64491e40921454e9831", size = 2444697, upload-time = "2026-10-11T18:34:13.535Z" }, + { url = "https://files.pythonhosted.org/packages/b8/0d/1b1149f60a00ea21ba5f70e28acbd40feb4598af414f80f53c921fac07c9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7689580e72a642ab5ec64d5f55b2e33636fa43b4ebe63c0c2c965ef307c7d1aa", size = 2159961, upload-time = "2026-10-11T18:34:15.56Z" }, + { url = "https://files.pythonhosted.org/packages/1e/35/f236549299dcc78e71e945495d7ec67e78d20844d0999c60601685003031/pydantic_core-2.50.1-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:d5c0e32fdbce7f1e8ef4d11f655694bf5f4175c757a9f1dc2be09b8864e5bcf5", size = 2234581, upload-time = "2026-10-11T18:34:17.502Z" }, + { url = "https://files.pythonhosted.org/packages/6a/85/26901a490522b7f75ef9bb9a7afb73e5bb550f0e1cb5b99a0069183e2eb9/pydantic_core-2.50.1-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:40f523349960fa30f3ea51404308ff50f9997a90df639590f47a057c1f32b415", size = 2244090, upload-time = "2026-10-11T18:34:19.402Z" }, + { url = "https://files.pythonhosted.org/packages/ca/2c/481bcfc70ceeb77a778ca6e5b705fe592cb64735c108157f81b7dd9c280e/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:d4193206b6587047437f6f11d7e776df23e1c1e23af2a54d9347275614791e10", size = 2277948, upload-time = "2026-10-11T18:34:21.317Z" }, + { url = "https://files.pythonhosted.org/packages/24/eb/f1e09333faa7ba447cde967310f758430cc7c5e987bdab5228816c70030d/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:84bc765b282a9d5b7fe0348b8648904f25a6a04b2139da52b1dd30c8ac3a2c8f", size = 2449688, upload-time = "2026-10-11T18:34:23.321Z" }, + { url = "https://files.pythonhosted.org/packages/d1/b3/036bde636db8f76d92996e81aefc75678ab5cec4a07eea1ad0c72a893fc3/pydantic_core-2.50.1-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:ed1e728b39a383c81035b2459cfcb35d99dfb01f7d6ebe3a913bc1cc5b81e459", size = 2479286, upload-time = "2026-10-11T18:34:25.214Z" }, + { url = "https://files.pythonhosted.org/packages/d0/a3/07f018294ee18d144afeb6df1a47d9e92960f014be45c5ed13519fa5af95/pydantic_core-2.50.1-cp315-cp315-win32.whl", hash = "sha256:bc94f474417604bd383d2cd445d071b07dd55fedceed3ce33407bf1fcc107290", size = 2103683, upload-time = "2026-10-11T18:34:27.42Z" }, + { url = "https://files.pythonhosted.org/packages/5f/98/f9bd7e1f9b6709f155acb9ef826d9c3884fe925f811fd8e55b9b52280bad/pydantic_core-2.50.1-cp315-cp315-win_amd64.whl", hash = "sha256:983a662de2571cb2502fc8ff47b6770b03d025d2eb314c92f77b3f07c74720ed", size = 2171681, upload-time = "2026-10-11T18:34:29.508Z" }, + { url = "https://files.pythonhosted.org/packages/10/87/4bb3e1e7f385c076ab5af4d6dd0571b22042cd8207eb810d5b9fef15ae31/pydantic_core-2.50.1-cp315-cp315-win_arm64.whl", hash = "sha256:94845ff54dc5193f228cab81b2662a04bfbb892e95bdc15edf7399000ce57d54", size = 2156251, upload-time = "2026-10-11T18:34:31.455Z" }, + { url = "https://files.pythonhosted.org/packages/47/47/83643225b08f2aef6c8cc4bbe6e3f79c5e139c4364a6e450d0f399d87774/pydantic_core-2.50.1-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:4a53d13cdfbedbfa87f08b83c1a0a5efcc767d785a4b41934fa9cb672670493a", size = 2234363, upload-time = "2026-10-11T18:34:33.65Z" }, + { url = "https://files.pythonhosted.org/packages/5e/66/127ca649ba2f2462039dc1e694c6c01e00a3689f023a617364d3507e6d97/pydantic_core-2.50.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:efbecf43d321f7b9281441f1f213f7c21c66988b0e06c2730ba13ed47a46bb08", size = 2000972, upload-time = "2026-10-11T18:34:36.037Z" }, + { url = "https://files.pythonhosted.org/packages/5e/4f/e421e0a5d653b1203b090b2e48745976988d7338a647940704b5b9c2b399/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bc1f08f68dac9f9e83845a8039880aba2ab553eb9b2259c3243a313182c253fe", size = 2022925, upload-time = "2026-10-11T18:34:37.972Z" }, + { url = "https://files.pythonhosted.org/packages/d5/4e/ea5568e2491e1a71100f15ae8c2d01ef52db42a184a2d4e716bc79e5eb8f/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5dfe41f232befddb9c4377f6cfc702b51595e2d78ed082672adf8758d2c4619f", size = 2192867, upload-time = "2026-10-11T18:34:39.921Z" }, + { url = "https://files.pythonhosted.org/packages/ae/5e/3b8c3a35acbe219909ada5defad5d7d9fed845fb2b37bd5ec518f453c119/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:adc06d218a1cadfd2ec4628424d7d79ce4eba69c2965e7e7b55106f0da5208c8", size = 2388687, upload-time = "2026-10-11T18:34:42.184Z" }, + { url = "https://files.pythonhosted.org/packages/b6/aa/7889b4e515f91a2e8c0ae6b5081fec0feb30c4398d1434e14793c60f173a/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2cf91809d0721ab81592ba67bea7694821679c10b1a2e3c3460082b286c1918a", size = 2464415, upload-time = "2026-10-11T18:34:44.384Z" }, + { url = "https://files.pythonhosted.org/packages/08/78/93449e628eb8a6fdcce3eff9043081179d1bc7ce6f1bff32dc5006f41e00/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:23923ab9292c40da026330b1ecf4dc2618c8e86e0422e5d1fbf50d94d64ca4f8", size = 2150823, upload-time = "2026-10-11T18:34:46.392Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f1/72c5bc129fceb0d00f05dc1e67f518c1728de1928c55f81fc13d7690de39/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:f3377c8c2b3ce898423c5e5dd94c7982e30aa7717a7e6ab2470b9de364963709", size = 2245806, upload-time = "2026-10-11T18:34:48.805Z" }, + { url = "https://files.pythonhosted.org/packages/28/2a/922a0e78f3aa6ab837b59f88190233fb8dad546c17995fde9bb3ed3b9b49/pydantic_core-2.50.1-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:455a773617b5913bf5c20d0692e5787b119e52c4d40ea644ca31f5758fd31be2", size = 2264160, upload-time = "2026-10-11T18:34:50.876Z" }, + { url = "https://files.pythonhosted.org/packages/52/a8/0f1449e3e1b20941c9372faa18e7b6a092e30cdfa841902473f7989532ac/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:1a9006395dece0e32e704c315eff8a00bede494f6108546cfc5539c89fef4f9a", size = 2294031, upload-time = "2026-10-11T18:34:52.876Z" }, + { url = "https://files.pythonhosted.org/packages/d1/d0/1031f492857de70355fb16524bbb03efce5fd34c93ed4a1ec60be07e0d4b/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:d2d82aa62521c55ddfb000ae70f88cdd8de974078f6024e821dfe5addd0c818f", size = 2468423, upload-time = "2026-10-11T18:34:54.995Z" }, + { url = "https://files.pythonhosted.org/packages/46/52/269ffffa645b8e47906395a39cf9db1151ae9fa4bcd7f47b960bc31baf37/pydantic_core-2.50.1-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:009634b83993777ddcd69cad0ffcace43dabde692109528e35f0fde91e386a8b", size = 2512598, upload-time = "2026-10-11T18:34:57.149Z" }, + { url = "https://files.pythonhosted.org/packages/31/5c/e47e28281f20326ff6f3c31d626f0a83e615d2d94ba41bb0ad6ec237184a/pydantic_core-2.50.1-cp315-cp315t-win32.whl", hash = "sha256:3fde4fdc6487a58d944ca87cf5adc95d5f266e872c19599f5f4c0a8a1b1f9f9f", size = 2098535, upload-time = "2026-10-11T18:34:59.313Z" }, + { url = "https://files.pythonhosted.org/packages/03/ad/759e181e69c1b472c60b2049e5f61d5da1deefdd5ce1df4bb2ebcf771f25/pydantic_core-2.50.1-cp315-cp315t-win_amd64.whl", hash = "sha256:1c8632d4ac04e6f91128fca584b3a8a507d81604c24eeaaad00d4be42765c32b", size = 2148645, upload-time = "2026-10-11T18:35:01.571Z" }, + { url = "https://files.pythonhosted.org/packages/6d/56/8a702c27e5be9f47e5f19d8669227424290e4c024e7c370279cbaf244b4e/pydantic_core-2.50.1-cp315-cp315t-win_arm64.whl", hash = "sha256:c3ede305158e75510be50869b319550ab072008c13d64d4ab1e094fb286b6f44", size = 2175297, upload-time = "2026-10-11T18:35:04.079Z" }, + { url = "https://files.pythonhosted.org/packages/e7/73/a23a327237d9bb985298ce47702e196f995ce850224c12c70886bd66bb5c/pydantic_core-2.50.1-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:062e891facce5ca296a1c37098e5e466780457f86413894b399f0cf22934f769", size = 2162560, upload-time = "2026-10-11T18:35:06.274Z" }, + { url = "https://files.pythonhosted.org/packages/df/b2/33b37b5e82408f402a5e82649a43e7c95cd5dab7beaeef2c35cedbfd18f2/pydantic_core-2.50.1-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:49c2cbb2397fe4d0987e84606e691af6cb87bc0ee1bd3e7b737f7e10b4c142f9", size = 2075250, upload-time = "2026-10-11T18:35:08.455Z" }, + { url = "https://files.pythonhosted.org/packages/04/62/c7d5b9249466ccab90f3ce4790c2399dbfb8172ae9e74a7753dd295fe65a/pydantic_core-2.50.1-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9e4472072de0137ee0d8e72d6620e85939c271d2f90f6bbb4b15c24638b79f92", size = 2107891, upload-time = "2026-10-11T18:35:10.918Z" }, + { url = "https://files.pythonhosted.org/packages/d4/7e/28d29bc1657195933147f772dee0558d9e0f045bbc11db7f992f40c37bb5/pydantic_core-2.50.1-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ed4f3cef55164b026fefb41341b7754cc6b624c75dfe7142d2ecceb5ad21c87", size = 2268026, upload-time = "2026-10-11T18:35:13.336Z" }, + { url = "https://files.pythonhosted.org/packages/a5/09/1bcf160f3cd6333e2a76982fae5963e5032de0bcaaba38464223dc266bfe/pydantic_core-2.50.1-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:76e2e83fa6ec8cdc972d438dafc2522b3a47bee4ec0ae668b29cfb1977ab5242", size = 2217070, upload-time = "2026-10-11T18:35:15.688Z" }, + { url = "https://files.pythonhosted.org/packages/3d/81/f02de95eec7794dfc7a5bc69a834f0e834b31b3009014ce6de903855f775/pydantic_core-2.50.1-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:a51eee75939cf811ac09b278745a6cee7dc873ccfbc8b9af3cc88fe4b7ce25b5", size = 2039027, upload-time = "2026-10-11T18:35:18.07Z" }, + { url = "https://files.pythonhosted.org/packages/4d/16/227746ed3771d9bf2304568b55134849ece34e13b38b1d76de763015c77f/pydantic_core-2.50.1-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ae28183297fb0d2b8dc46a1f01d51f5e45825fc5afe76a835a6cb7fb34821295", size = 2109009, upload-time = "2026-10-11T18:35:20.218Z" }, + { url = "https://files.pythonhosted.org/packages/e5/b9/7664d1592a0e5a74903f357cd5b28ceb7336f3473256c5a4e8c8432f1881/pydantic_core-2.50.1-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88e492e8b9d0312e7dc13667c30222abf284dc3b79b5302b3607b41a5784ce61", size = 2269883, upload-time = "2026-10-11T18:35:22.48Z" }, + { url = "https://files.pythonhosted.org/packages/bd/35/002a378302ff91d2a7f149bc8d22363faf581ba40ac39d0123444315a32d/pydantic_core-2.50.1-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:7456d699b13954e9c0164dcb267250a10ae0dfb03e6e26d6796ab0d46e189c84", size = 2154076, upload-time = "2026-10-11T18:35:24.743Z" }, + { url = "https://files.pythonhosted.org/packages/4b/5c/7a034330082c00f3c9795052bd9b161aaaf6e1951e897ac00a094823ef7e/pydantic_core-2.50.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:b0d955195bbbe489ad343fcc956eacea9357b79cb22192c66cacdefcbc14b32f", size = 2085850, upload-time = "2026-10-11T18:35:27.009Z" }, + { url = "https://files.pythonhosted.org/packages/57/fa/d5b44a7d3d4eceed6ef8713a0003af56fefde6ec75915513bcdd5d730cd9/pydantic_core-2.50.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f2c634642694e6a0dad2ab1d375589fa671fd442edd5caf7d9737b8f6ca22906", size = 2259754, upload-time = "2026-10-11T18:35:29.763Z" }, + { url = "https://files.pythonhosted.org/packages/b6/88/e01dd37301710bd8b3b2daf34ec9e2a6e83a333130831c0d468b0292a48c/pydantic_core-2.50.1-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ee6db2fbed51a7991302e8fac498cd67e336246026d0dfa84cf5166ce1412760", size = 2268712, upload-time = "2026-10-11T18:35:32.654Z" }, + { url = "https://files.pythonhosted.org/packages/3e/43/5bb80d4a4d2b2d84612a30205662cc521a20d209c94abc079ea48b4e0df2/pydantic_core-2.50.1-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:79490e33c4c0fcb933bbbcfc3a62184d8803b99f535863dfbb925e1bcb6945ad", size = 2305049, upload-time = "2026-10-11T18:35:35.392Z" }, + { url = "https://files.pythonhosted.org/packages/e8/7b/e3ef76b269cfe4a5bd3bdcf5d7124cf05e5a8909d443b91639307116bdae/pydantic_core-2.50.1-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:48569b0ade9edfbe065cad1d700175546592aebbb42f02adcebcc26e75b896fe", size = 2466001, upload-time = "2026-10-11T18:35:37.791Z" }, + { url = "https://files.pythonhosted.org/packages/8f/7a/ea0947aadc1d9f72d4be00d2e19939611ec17363bcb5e6eb9ec7d8221c34/pydantic_core-2.50.1-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:5f3cae32fc46121f787cb2486de9cf95a8bf72aec5cc78f64c606fa1735a6ef5", size = 2481777, upload-time = "2026-10-11T18:35:40.287Z" }, + { url = "https://files.pythonhosted.org/packages/24/f3/d15bc0b1fb0c4f1e07b3326ffb7489f7ae70da2b56a0884d22641b0eb47c/pydantic_core-2.50.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:7f476456ac2bb0d937f75191494a09c83a30765fea4f70f3b404942fe25f6cdf", size = 2336787, upload-time = "2026-10-11T18:35:42.558Z" }, ] [[package]] name = "pydantic-settings" -version = "2.14.2" +version = "2.15.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pydantic" }, { name = "python-dotenv" }, { name = "typing-inspection" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/5c/b5/8f48e906c3e0205276e8bd8cb7512217a87b2685304d64be27cad5b3019f/pydantic_settings-2.14.2.tar.gz", hash = "sha256:c19dd64b19097f1de80184f0cc7b0272a13ae6e170cbf240a3e27e381ed14a5f", size = 237700, upload-time = "2026-06-19T13:44:56.324Z" } +sdist = { url = "https://files.pythonhosted.org/packages/68/ca/31c57507b13119d7d3cfa1576dad2911a4861e3be07b579395f4e9d393f9/pydantic_settings-2.15.0.tar.gz", hash = "sha256:694b793e84f766ba76a90ebdefc01d0a9a045dab0382bee70393da93712ad117", size = 261253, upload-time = "2026-08-07T09:24:57.419Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/77/c1/6e422f34e569cf8e18df68d1939c81c099d2b61e4f7d9621c8a77560799c/pydantic_settings-2.14.2-py3-none-any.whl", hash = "sha256:a20c97b37910b6550d5ea50fbcc2d4187defe58cd57070b73863d069419c9440", size = 61715, upload-time = "2026-06-19T13:44:55.02Z" }, + { url = "https://files.pythonhosted.org/packages/30/a4/2bffa9f8e804325a09867f0e9d30795c80ea9f8d62560bd1b6ad6220eb2f/pydantic_settings-2.15.0-py3-none-any.whl", hash = "sha256:0ba092c291c94baceb5eff768aa0d56400a457585bc0175925a5a5510303da42", size = 69413, upload-time = "2026-08-07T09:24:55.839Z" }, ] [[package]] @@ -3719,7 +3725,6 @@ dependencies = [ { name = "lunr" }, { name = "platformdirs" }, { name = "requests" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, { name = "twisted" }, { name = "urllib3" }, ] @@ -3730,23 +3735,20 @@ wheels = [ [[package]] name = "pygments" -version = "2.20.0" +version = "2.21.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c3/b2/bc9c9196916376152d655522fdcebac55e66de6603a76a02bca1b6414f6c/pygments-2.20.0.tar.gz", hash = "sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f", size = 4955991, upload-time = "2026-03-29T13:29:33.898Z" } +sdist = { url = "https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c", size = 5005329, upload-time = "2026-08-17T08:02:48.824Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", hash = "sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", size = 1231151, upload-time = "2026-03-29T13:29:30.038Z" }, + { url = "https://files.pythonhosted.org/packages/71/46/17f022dd3e953bf20a04a028a21ec746d942f8d2af30fa0f124fa0e6a684/pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9", size = 1250147, upload-time = "2026-08-17T08:02:44.912Z" }, ] [[package]] name = "pyjwt" -version = "2.13.0" +version = "2.15.1" source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/3b/81/58d0ac84e1ef3a3843791d6954d94c0b33d526c75eeb1efbce9d0a4c4077/pyjwt-2.13.0.tar.gz", hash = "sha256:41571c89ca91598c79e8ef18a2d07367d4810fbbd6f637794879baf1b7703423", size = 107515, upload-time = "2026-05-21T19:54:36.618Z" } +sdist = { url = "https://files.pythonhosted.org/packages/43/ea/5194e52748b0da83d71e082d75496eaec6e58f419f5e184786ded517e6a9/pyjwt-2.15.1.tar.gz", hash = "sha256:4f259e80cdfb6b3fc18a7de51fd1ef9ec79652f25019bae68975ca2468a34df8", size = 121252, upload-time = "2026-09-28T18:40:42.598Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a3/5e/ecf12fdb62546d64385c158514e9b2b671f7832108ef2ecd2020ce0af2d1/pyjwt-2.13.0-py3-none-any.whl", hash = "sha256:66adcc2aff09b3f1bbd95fc1e1577df8ac8723c978552fd43304c8a290ac5728", size = 31274, upload-time = "2026-05-21T19:54:35.362Z" }, + { url = "https://files.pythonhosted.org/packages/50/ca/44de4e75f8aadc457f0634be3b542815078ded46dca30efb960edeecad6e/pyjwt-2.15.1-py3-none-any.whl", hash = "sha256:42d59d631f7768a1028a64c7ff581a9bf7519804daf91fc5b6c56e30eec5e193", size = 33860, upload-time = "2026-09-28T18:40:41.429Z" }, ] [package.optional-dependencies] @@ -3756,24 +3758,24 @@ crypto = [ [[package]] name = "pyparsing" -version = "3.3.2" +version = "3.3.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f3/91/9c6ee907786a473bf81c5f53cf703ba0957b23ab84c264080fb5a450416f/pyparsing-3.3.2.tar.gz", hash = "sha256:c777f4d763f140633dcb6d8a3eda953bf7a214dc4eff598413c070bcdc117cbc", size = 6851574, upload-time = "2026-01-21T03:57:59.36Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/11/b213bebff182584360cb8d17c72c1677fec5c5c228de439e63bcf8ab1c8f/pyparsing-3.3.3.tar.gz", hash = "sha256:928ae7e20211f3b6f3915a72f06a0cfd29ab9d24279dd6346b6b1a7146397d36", size = 1050487, upload-time = "2026-09-20T20:59:05.609Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/10/bd/c038d7cc38edc1aa5bf91ab8068b63d4308c66c4c8bb3cbba7dfbc049f9c/pyparsing-3.3.2-py3-none-any.whl", hash = "sha256:850ba148bd908d7e2411587e247a1e4f0327839c40e2e5e6d05a007ecc69911d", size = 122781, upload-time = "2026-01-21T03:57:55.912Z" }, + { url = "https://files.pythonhosted.org/packages/38/bb/d215ee7c73b61497b28a5503f9f53523f294fcc936762b7caf90e0c1c2b5/pyparsing-3.3.3-py3-none-any.whl", hash = "sha256:ece8c00a69cf01b45d0b1dedabb469c90d8caf996d4fda40f147627a122849a4", size = 126420, upload-time = "2026-09-20T20:59:04.025Z" }, ] [[package]] name = "pyright" -version = "1.1.403" +version = "1.1.414" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "nodeenv" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/fe/f6/35f885264ff08c960b23d1542038d8da86971c5d8c955cfab195a4f672d7/pyright-1.1.403.tar.gz", hash = "sha256:3ab69b9f41c67fb5bbb4d7a36243256f0d549ed3608678d381d5f51863921104", size = 3913526, upload-time = "2025-07-09T07:15:52.882Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e1/1b/244c7b710031ada80f27e579ec20d28a2285dfc318fed0339866b1047f12/pyright-1.1.414.tar.gz", hash = "sha256:523c0a97c60da6333234955c277730c9cf4f5bd6d5399e7b7d2b0fc5d3599524", size = 4154638, upload-time = "2026-09-10T12:26:53.181Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/49/b6/b04e5c2f41a5ccad74a1a4759da41adb20b4bc9d59a5e08d29ba60084d07/pyright-1.1.403-py3-none-any.whl", hash = "sha256:c0eeca5aa76cbef3fcc271259bbd785753c7ad7bcac99a9162b4c4c7daed23b3", size = 5684504, upload-time = "2025-07-09T07:15:50.958Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ba/18b6e682ead424ad24bcc134339ae5d1b931cd9ae260540592a058a91279/pyright-1.1.414-py3-none-any.whl", hash = "sha256:2a6b4b3298c9eec174c5ed83bd338de6eee82df2992f3e1930e6199d381be36f", size = 6225049, upload-time = "2026-09-10T12:26:51.427Z" }, ] [[package]] @@ -3782,12 +3784,10 @@ version = "9.1.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, - { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, { name = "iniconfig" }, { name = "packaging" }, { name = "pluggy" }, { name = "pygments" }, - { name = "tomli", marker = "python_full_version < '3.11'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" } wheels = [ @@ -3847,15 +3847,15 @@ wheels = [ [[package]] name = "pytest-rerunfailures" -version = "16.4" +version = "16.7" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "packaging" }, { name = "pytest" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/47/60/a90ca1cc6cffcb97b4260ed0ad2b7934b999d7c48abe4ea0840344862a3b/pytest_rerunfailures-16.4.tar.gz", hash = "sha256:8222d17c37eb7b9e4d6fc96a3c724ff4e1a5c97a5cc7cbb2c19e9282cfd21a11", size = 36635, upload-time = "2026-07-01T06:30:56.813Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d1/b0/6b5337f9d59b26b0069ea3d5e863c31dc04b69e51bbfb1cf2ea6328fba87/pytest_rerunfailures-16.7.tar.gz", hash = "sha256:6956ddfb65ca1d07e7e3d99e2c5359d82300f4cb062e6049563bd2c106f72d5c", size = 59666, upload-time = "2026-09-17T07:08:48.871Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ce/93/3cdcc4033444e822e01b573414b03fd37fd5533070c750477b8f5fa5224b/pytest_rerunfailures-16.4-py3-none-any.whl", hash = "sha256:f69b5beb39622c90d1e44bd945d826eff6db545dcf0b68f52b7e4ad15eaf6d6c", size = 16955, upload-time = "2026-07-01T06:30:55.333Z" }, + { url = "https://files.pythonhosted.org/packages/c1/d3/07ea35102cf2020ddaaac368d2a6f0bcc63d6523fb8918805bac3eb8b98f/pytest_rerunfailures-16.7-py3-none-any.whl", hash = "sha256:edf1886209c2b7dafe35b5bf1708d6ec40ccf6c6b357f0f02807efcec0204c99", size = 23952, upload-time = "2026-09-17T07:08:47.635Z" }, ] [[package]] @@ -3897,11 +3897,11 @@ wheels = [ [[package]] name = "python-dotenv" -version = "1.2.2" +version = "1.2.4" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/82/ed/0301aeeac3e5353ef3d94b6ec08bbcabd04a72018415dcb29e588514bba8/python_dotenv-1.2.2.tar.gz", hash = "sha256:2c371a91fbd7ba082c2c1dc1f8bf89ca22564a087c2c287cd9b662adde799cf3", size = 50135, upload-time = "2026-03-01T16:00:26.196Z" } +sdist = { url = "https://files.pythonhosted.org/packages/74/26/2fbeedb218a787a5eea551c7532cac4e009f83d689dd2faa0d0353473f86/python_dotenv-1.2.4.tar.gz", hash = "sha256:f0d53e69935a851c0dcc78f3ab7aaccd8cabef0b92382b576b824212902873c0", size = 60824, upload-time = "2026-10-01T05:36:10Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0b/d7/1959b9648791274998a9c3526f6d0ec8fd2233e4d4acce81bbae76b44b2a/python_dotenv-1.2.2-py3-none-any.whl", hash = "sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a", size = 22101, upload-time = "2026-03-01T16:00:25.09Z" }, + { url = "https://files.pythonhosted.org/packages/60/d1/38f3a3405989a89ac18390803e70c6ad7c7760da4f9b83cbeca0c44a0c72/python_dotenv-1.2.4-py3-none-any.whl", hash = "sha256:42269a8a5b3fd54ffa6f3d84b18abed50064717576b4ecf03dc4a55d8aa04fdc", size = 23266, upload-time = "2026-10-01T05:36:08.633Z" }, ] [[package]] @@ -3918,9 +3918,6 @@ name = "pywin32" version = "312" source = { registry = "https://pypi.org/simple" } wheels = [ - { url = "https://files.pythonhosted.org/packages/fe/1b/9cfdeac80ee45bebbbcb31f1b7b99a0d81a1c72de48d837be984e0e88b1d/pywin32-312-cp310-cp310-win32.whl", hash = "sha256:772235332b5d1024c696f11cea1ae4be7930f0a8b894bb43db14e3f435f1ff7e", size = 6361387, upload-time = "2026-06-04T07:49:14.329Z" }, - { url = "https://files.pythonhosted.org/packages/33/b1/7afc96d041d982c27bc2df6f853d43f01fd273e3d39d04be3647ddeb533d/pywin32-312-cp310-cp310-win_amd64.whl", hash = "sha256:5dbc35d2b5320dc07f25fa31269cfb767471002b17de5eb067d03da68c7cb2db", size = 6926780, upload-time = "2026-06-04T07:49:16.881Z" }, - { url = "https://files.pythonhosted.org/packages/ce/3a/4140da9ad54108e517f4a16b2d83da3033e08662144623e1239587cb7db6/pywin32-312-cp310-cp310-win_arm64.whl", hash = "sha256:3020656e34f1cf7faeb7bccd2b84653a607c6ff0c55ada85e6487d61716deabd", size = 4307203, upload-time = "2026-06-04T07:49:18.993Z" }, { url = "https://files.pythonhosted.org/packages/1f/f5/10a6e845a00fc5e7afd0a988b744f403d4d57162a28d160a093c4d9322f0/pywin32-312-cp311-cp311-win32.whl", hash = "sha256:17948aeadbdb091f0ced6ef0841620794e68327b94ee415571c1203594b7215c", size = 6362659, upload-time = "2026-06-04T07:49:21.349Z" }, { url = "https://files.pythonhosted.org/packages/35/c4/dcd2d62b5944b6d5db53413a5899016ccd57ffcb7278f3f81655d25d2027/pywin32-312-cp311-cp311-win_amd64.whl", hash = "sha256:d11417d84412f859b722fad0841b3614459ed0047f7542d8362e77884f6b6e8a", size = 6928825, upload-time = "2026-06-04T07:49:23.934Z" }, { url = "https://files.pythonhosted.org/packages/b7/56/3cbb433fe4501cdba2eb9040f56a4e1a8243faa4186b25295564d1a7a79d/pywin32-312-cp311-cp311-win_arm64.whl", hash = "sha256:b2200a054ca6d6625c4842fc56a4976a4b47f96b73dbe5538c3f813a80359f47", size = 6721875, upload-time = "2026-06-04T07:49:26.416Z" }, @@ -3953,15 +3950,6 @@ version = "6.0.3" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f4/a0/39350dd17dd6d6c6507025c0e53aef67a9293a6d37d3511f23ea510d5800/pyyaml-6.0.3-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b", size = 184227, upload-time = "2025-09-25T21:31:46.04Z" }, - { url = "https://files.pythonhosted.org/packages/05/14/52d505b5c59ce73244f59c7a50ecf47093ce4765f116cdb98286a71eeca2/pyyaml-6.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956", size = 174019, upload-time = "2025-09-25T21:31:47.706Z" }, - { url = "https://files.pythonhosted.org/packages/43/f7/0e6a5ae5599c838c696adb4e6330a59f463265bfa1e116cfd1fbb0abaaae/pyyaml-6.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8", size = 740646, upload-time = "2025-09-25T21:31:49.21Z" }, - { url = "https://files.pythonhosted.org/packages/2f/3a/61b9db1d28f00f8fd0ae760459a5c4bf1b941baf714e207b6eb0657d2578/pyyaml-6.0.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198", size = 840793, upload-time = "2025-09-25T21:31:50.735Z" }, - { url = "https://files.pythonhosted.org/packages/7a/1e/7acc4f0e74c4b3d9531e24739e0ab832a5edf40e64fbae1a9c01941cabd7/pyyaml-6.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b", size = 770293, upload-time = "2025-09-25T21:31:51.828Z" }, - { url = "https://files.pythonhosted.org/packages/8b/ef/abd085f06853af0cd59fa5f913d61a8eab65d7639ff2a658d18a25d6a89d/pyyaml-6.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0", size = 732872, upload-time = "2025-09-25T21:31:53.282Z" }, - { url = "https://files.pythonhosted.org/packages/1f/15/2bc9c8faf6450a8b3c9fc5448ed869c599c0a74ba2669772b1f3a0040180/pyyaml-6.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69", size = 758828, upload-time = "2025-09-25T21:31:54.807Z" }, - { url = "https://files.pythonhosted.org/packages/a3/00/531e92e88c00f4333ce359e50c19b8d1de9fe8d581b1534e35ccfbc5f393/pyyaml-6.0.3-cp310-cp310-win32.whl", hash = "sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e", size = 142415, upload-time = "2025-09-25T21:31:55.885Z" }, - { url = "https://files.pythonhosted.org/packages/2a/fa/926c003379b19fca39dd4634818b00dec6c62d87faf628d1394e137354d4/pyyaml-6.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c", size = 158561, upload-time = "2025-09-25T21:31:57.406Z" }, { url = "https://files.pythonhosted.org/packages/6d/16/a95b6757765b7b031c9374925bb718d55e0a9ba8a1b6a12d25962ea44347/pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e", size = 185826, upload-time = "2025-09-25T21:31:58.655Z" }, { url = "https://files.pythonhosted.org/packages/16/19/13de8e4377ed53079ee996e1ab0a9c33ec2faf808a4647b7b4c0d46dd239/pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824", size = 175577, upload-time = "2025-09-25T21:32:00.088Z" }, { url = "https://files.pythonhosted.org/packages/0c/62/d2eb46264d4b157dae1275b573017abec435397aa59cbcdab6fc978a8af4/pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c", size = 775556, upload-time = "2025-09-25T21:32:01.31Z" }, @@ -4013,16 +4001,16 @@ wheels = [ [[package]] name = "readme-renderer" -version = "45.0" +version = "46.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "docutils" }, { name = "nh3" }, { name = "pygments" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/02/51/d3a6ea424652c60f05600d8c2e01a55c913755e7cdad64afabbd1aa16f44/readme_renderer-45.0.tar.gz", hash = "sha256:030a8fac74904f8fba11ad1bb6964e3f76e896dc7e5e71f16af190c9056696d1", size = 36172, upload-time = "2026-06-09T21:05:17.37Z" } +sdist = { url = "https://files.pythonhosted.org/packages/25/d7/9309494fad74ee831d4546f69325b5519f37c6dfb2d9ba495db8c6d4f4ca/readme_renderer-46.0.tar.gz", hash = "sha256:af3e964914f6310a33ff67b72a4bdd940bed8d7c3bdecd2d14f40edf284bfe90", size = 38382, upload-time = "2026-08-28T15:18:32.49Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/97/1b/295bf2fa3e740131778065e5ffa2c481f0e7210182d408e9a2c244ff5b0c/readme_renderer-45.0-py3-none-any.whl", hash = "sha256:3385ed220117104a2bceb4a9dac8c5fdf6d1f96890d7ea2a9c7174fd5c84091f", size = 14134, upload-time = "2026-06-09T21:05:15.85Z" }, + { url = "https://files.pythonhosted.org/packages/4b/72/ac5ca81fe9121fcaa9d828d21017cba00a16a98e4ea5fb60c878f93dda4f/readme_renderer-46.0-py3-none-any.whl", hash = "sha256:d0dae1f74bb273b534770cb4cccb6bb78735540afdb03c2146f4e19dcd412560", size = 14239, upload-time = "2026-08-28T15:18:31.132Z" }, ] [[package]] @@ -4031,8 +4019,7 @@ version = "0.37.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "attrs" }, - { name = "rpds-py", version = "0.30.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, - { name = "rpds-py", version = "2026.6.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" }, + { name = "rpds-py" }, { name = "typing-extensions", marker = "python_full_version < '3.13'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/22/f5/df4e9027acead3ecc63e50fe1e36aca1523e1719559c499951bb4b53188f/referencing-0.37.0.tar.gz", hash = "sha256:44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8", size = 78036, upload-time = "2025-10-13T15:30:48.871Z" } @@ -4042,123 +4029,122 @@ wheels = [ [[package]] name = "regex" -version = "2026.7.10" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/7b/37/451aaddbf50922f34d744ad5ca919ae1fcfac112123885d9728f52a484b3/regex-2026.7.10.tar.gz", hash = "sha256:1050fedf0a8a92e843971120c2f57c3a99bea86c0dfa1d63a9fac053fe54b135", size = 416282, upload-time = "2026-07-10T19:49:46.267Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b3/69/62bb7d63f26698949c905cb7ebe29c7b0659e2a7f2a50c35cc29640b0852/regex-2026.7.10-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:799a369bdab91dcf0eb424ebd7aa9650897025ce22f729248d8f2c72002c4daa", size = 494652, upload-time = "2026-07-10T19:46:28.394Z" }, - { url = "https://files.pythonhosted.org/packages/3a/f2/eed2ce38cc38def9c366d060ec739ff5f235a33647ceb73ae6be37306d39/regex-2026.7.10-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f0192e5f1cfc70e3cb35347135dd02e7497b3e7d83e378aa226d8b3e53a93f19", size = 295920, upload-time = "2026-07-10T19:46:30.342Z" }, - { url = "https://files.pythonhosted.org/packages/36/57/4d724eeb1c440d71ccd6400d33b62b911bb62ca05385fe1961556e628319/regex-2026.7.10-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:221f2771cb780186b94bbf125a151bbeb242fa1a971da6ad59d7b0370f19de9a", size = 290696, upload-time = "2026-07-10T19:46:31.953Z" }, - { url = "https://files.pythonhosted.org/packages/c7/9d/76c6779e424c64740d2a564b7ecb389a62c77b6294127d34f52008c91ea7/regex-2026.7.10-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ab2fb1f7a2deb4ca3ddebbae6b93905d21480a3b4e11de28d79d9fb0d316fcf8", size = 784833, upload-time = "2026-07-10T19:46:33.145Z" }, - { url = "https://files.pythonhosted.org/packages/54/ec/f777841d88f0c9d46699daf16f86a8086e077e506603be212de2c4584f85/regex-2026.7.10-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2f98ef73a13791a387d5c841416ad7f52040ae5caf10bcf46fa12bd2b3d63745", size = 852182, upload-time = "2026-07-10T19:46:34.368Z" }, - { url = "https://files.pythonhosted.org/packages/d1/de/5ba208a0826117851f6c12af9ae7fae5838ccfde69b999b26c5fdc1cedc3/regex-2026.7.10-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9a094ed44a22f9da497453137c3118b531fd783866ab524b0b0fc146e7395e1d", size = 899571, upload-time = "2026-07-10T19:46:35.564Z" }, - { url = "https://files.pythonhosted.org/packages/7f/46/602b7b81d26a53113d3cec6dd845fd664d7b854b0ea45245bfdd6b9dc9ef/regex-2026.7.10-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:53bbbd6c610489700f7110db1d85f3623924c3f7c760f987eca033867360788a", size = 794164, upload-time = "2026-07-10T19:46:36.972Z" }, - { url = "https://files.pythonhosted.org/packages/53/cc/c21ebc520c3e17d93e495eb2de2b1c5ae5f6780ccdb298b2d8ce1e940820/regex-2026.7.10-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:87b776cf2890e356e4ab104b9df846e169da3eb5b0f110975547091f4e51854e", size = 786304, upload-time = "2026-07-10T19:46:38.238Z" }, - { url = "https://files.pythonhosted.org/packages/65/d8/69ec8c062bbba8d4d153f9eb70ab43564f591035b81fc4ea7eb059fdf71c/regex-2026.7.10-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ab39d2c967aae3b48a412bff9cdbe7cd7559cd1e277599aceaeada7bc82b7200", size = 769958, upload-time = "2026-07-10T19:46:39.541Z" }, - { url = "https://files.pythonhosted.org/packages/af/82/c56db326ac5f852865bd78d49a275757cc367e8114b13bc1015ed2491db1/regex-2026.7.10-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b56416091bfd7a429f958f69aaf6823c517be9a49cb5bf1daa3767ce8bf8095e", size = 775056, upload-time = "2026-07-10T19:46:40.808Z" }, - { url = "https://files.pythonhosted.org/packages/af/2a/1ba62462f679eb598d7325ff20798a264ddb9aa34a3f5d2ac388d54c6e4b/regex-2026.7.10-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:617e8f10472e34a8477931f978ff3a88d46ae2ba0e41927e580b933361f60948", size = 848857, upload-time = "2026-07-10T19:46:42.02Z" }, - { url = "https://files.pythonhosted.org/packages/84/5b/37bf2e2fe810540ca90bbfe457a2f61088721c95d442eee8bb1257165ad7/regex-2026.7.10-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:31fa17378b29519bfd0a1b8ba4e9c10cf0baf1cf4099b39b0689429e7dc2c795", size = 757747, upload-time = "2026-07-10T19:46:43.282Z" }, - { url = "https://files.pythonhosted.org/packages/9a/c5/131dd41f73f766af6b08492073b5f28bc4f907b5571230c9f9e895e88302/regex-2026.7.10-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:5c363de7c0339d39341b6181839ed32509820b85ef506deafcf2e7e43baadab4", size = 837183, upload-time = "2026-07-10T19:46:44.91Z" }, - { url = "https://files.pythonhosted.org/packages/a5/ee/00b9332c3c5d7460639f2c10fdc7197a64de6eaafff69478ec3332815335/regex-2026.7.10-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:ed7c886a2fcbf14493ceaf9579394b33521730c161ebb8dad7db9c3e9fcab1a8", size = 782151, upload-time = "2026-07-10T19:46:46.385Z" }, - { url = "https://files.pythonhosted.org/packages/e5/a7/31ce26ec6465c12e7136ea9efcc716f5c55cac616f7958c33f0bf171781e/regex-2026.7.10-cp310-cp310-win32.whl", hash = "sha256:b04583e8867136ae66353fa274f45121ab3ec3166dc45aaff3655a5db90d9f0e", size = 266770, upload-time = "2026-07-10T19:46:47.608Z" }, - { url = "https://files.pythonhosted.org/packages/71/00/22a554bb83203eef88a40ec2fe7cf9a6e5df8765d57f7a96ebe1af5d60c3/regex-2026.7.10-cp310-cp310-win_amd64.whl", hash = "sha256:e21e888a6b471b2bb1cdd4247e8d86632672232f29be583e7eafaa5f4634d34c", size = 277941, upload-time = "2026-07-10T19:46:48.915Z" }, - { url = "https://files.pythonhosted.org/packages/76/46/596a7084918ddf18cea6fb0cc047af1f00cec8790962e8f2edee9b6ec749/regex-2026.7.10-cp310-cp310-win_arm64.whl", hash = "sha256:081acf191b4d614d573a56cab69f948b6864daa5e3cc69f209ee92e26e454c2f", size = 276923, upload-time = "2026-07-10T19:46:50.829Z" }, - { url = "https://files.pythonhosted.org/packages/3d/16/bfd13770be1acd1c05506b93fc6be15c759d6417595d1ba334d355efbf26/regex-2026.7.10-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:66d2c35587cd601c95965d5c0415058ba5cfd6ffbab7624ce198bd967102b341", size = 494639, upload-time = "2026-07-10T19:46:52.207Z" }, - { url = "https://files.pythonhosted.org/packages/e6/b4/0086215709f0f705661f13ba81516287538886ef0d589c545c12b0484669/regex-2026.7.10-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:28a0973eeffff4292f5a7ee498ab65d5e94ee8cc9cea364239251eb4a260a0f1", size = 295920, upload-time = "2026-07-10T19:46:53.63Z" }, - { url = "https://files.pythonhosted.org/packages/8e/9e/8e07d0eea46d2cf36bf4d3794634bb0a820f016d31bc349dfef008d96b02/regex-2026.7.10-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8331484450b3894298bef8abecce532171ff6ac60b71f999eed10f2c01941a8a", size = 290673, upload-time = "2026-07-10T19:46:54.863Z" }, - { url = "https://files.pythonhosted.org/packages/b7/56/d83c446de21c70ff49d2f1b2ff2196ac79a4ac6373d2cfe496011a250600/regex-2026.7.10-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0639b2488b775a0109f55a5a2172deebdedb4b6c5ab0d48c90b43cbf5de58d17", size = 792378, upload-time = "2026-07-10T19:46:56.116Z" }, - { url = "https://files.pythonhosted.org/packages/dc/0e/d265e0cc6da47aea97e90eb896be2d2e8f92d16add13bac04fa46a0fd972/regex-2026.7.10-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:be4223af640d0aa04c05db81d5d96ada3ead9c09187d892fd37f4f97829480be", size = 861790, upload-time = "2026-07-10T19:46:57.611Z" }, - { url = "https://files.pythonhosted.org/packages/b4/a5/62655f6208d1170a3e9188d6a45d4af0a5ae3b9da8b87d474818ac5ff016/regex-2026.7.10-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d3c75d57a00109255e60bc9c623b6ececaf7905eaab845c79f036670ed4750a2", size = 906530, upload-time = "2026-07-10T19:46:59.142Z" }, - { url = "https://files.pythonhosted.org/packages/86/b7/d65aa2e9ffb18677cd0afbcf5990da8519a4e50778deb1bca49f043c5174/regex-2026.7.10-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:724ee9379568658ec06362cf24325c5315cc5a67f61dfe585bfeff58300a355b", size = 799912, upload-time = "2026-07-10T19:47:00.534Z" }, - { url = "https://files.pythonhosted.org/packages/8f/19/3a5ce23ea2eb1fe36306aef49c79746ce297e4b434aeb981b525c661413a/regex-2026.7.10-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:732c19e5828eb287d01edb83b2eb87f283ba8e5fc3441c732709d3e8cbd14aaa", size = 773675, upload-time = "2026-07-10T19:47:01.999Z" }, - { url = "https://files.pythonhosted.org/packages/fe/76/3c0eaa426700dd2ba14f2335f2b700a4e1484202254192ae440b83b8352a/regex-2026.7.10-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:982d07727c809b42a3968785354f11c3728414e4e90af0754345b431b2c32561", size = 781711, upload-time = "2026-07-10T19:47:03.425Z" }, - { url = "https://files.pythonhosted.org/packages/a4/a8/a5a3fad84f9a7f897619f0f8e0a2c64946e9709044a186a8f869fb5c332f/regex-2026.7.10-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:4574feca202f8c470bf678aed8b5d89df04aaf8dc677f3b83d92825051301c0f", size = 854539, upload-time = "2026-07-10T19:47:04.999Z" }, - { url = "https://files.pythonhosted.org/packages/f8/c7/47e9b8c8ee77723b9eda74f517b6b25d2f555cf276c063a9eeea35bd86d5/regex-2026.7.10-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:80151ca5bfc6c4524186b3e08b499e97319b2001fc265ed2d4fc12c0d5692cdf", size = 763378, upload-time = "2026-07-10T19:47:06.845Z" }, - { url = "https://files.pythonhosted.org/packages/36/09/e27e42d9d42edf71205c7e6f5b2902bc874ea03c557c80da03b8ed16c9bf/regex-2026.7.10-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:bb52e10e453b5493afe1f7702a2973bc10f4dd8901c0f2ed869ffaa3f8319296", size = 844663, upload-time = "2026-07-10T19:47:08.923Z" }, - { url = "https://files.pythonhosted.org/packages/a1/b5/2423acb98362184ad9c8eebabafa15188d6a177daab919add8f2120fc6cd/regex-2026.7.10-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:e37aba1994d73b4944053ab65a15f313bd5c28c885dd7f0d494a11749d89db6e", size = 789236, upload-time = "2026-07-10T19:47:10.303Z" }, - { url = "https://files.pythonhosted.org/packages/60/ed/b387e84c8a3d6aa115dfb56865437a3fbaf28f4a6fb3b76cc6cce38ced70/regex-2026.7.10-cp311-cp311-win32.whl", hash = "sha256:6cbedeb5112f59dbd169385459b9943310bdd241c6966c19c5f6e2295055c93a", size = 266774, upload-time = "2026-07-10T19:47:11.904Z" }, - { url = "https://files.pythonhosted.org/packages/c4/64/f30a163a65ed1f07ad12c53af00a6bd2a7251a5329fba5a08adc6f9e81a3/regex-2026.7.10-cp311-cp311-win_amd64.whl", hash = "sha256:b1963ec5ba4d52788fb0eac6aca6eb8040e8e318c7e47ebbdfc09440c802919c", size = 277959, upload-time = "2026-07-10T19:47:13.231Z" }, - { url = "https://files.pythonhosted.org/packages/2b/de/61c8174171134cebb834ca9f8fe2ff8f49d8a3dd43453b48b537d0fbb49b/regex-2026.7.10-cp311-cp311-win_arm64.whl", hash = "sha256:3750c42d47712e362158a04d0fd80131f73a55e8c715b2885442a0ff6f9fc3fc", size = 276918, upload-time = "2026-07-10T19:47:14.693Z" }, - { url = "https://files.pythonhosted.org/packages/b3/9c/2503d4ccf3452dc323f8baa3cf3ee10406037d52735c76cfced81423f183/regex-2026.7.10-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:7252b48b0c60100095088fbeb281fca9a4fcf678a4e04b1c520c3f8613c952c4", size = 497114, upload-time = "2026-07-10T19:47:16.22Z" }, - { url = "https://files.pythonhosted.org/packages/91/eb/04534f4263a4f658cd20a511e9d6124350044f2214eb24fee2db96acf318/regex-2026.7.10-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:da6ef4cb8d457aab0482b50120136ae94238aaa421863eaa7d599759742c72d6", size = 297422, upload-time = "2026-07-10T19:47:17.794Z" }, - { url = "https://files.pythonhosted.org/packages/ca/2d/35809de392ab66ba439b58c3187ae3b8b53c883233f284b59961e5725c99/regex-2026.7.10-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fe7ff456c22725c9d9017f7a2a7df2b51af6df77314176760b22e2d05278e181", size = 292110, upload-time = "2026-07-10T19:47:19.188Z" }, - { url = "https://files.pythonhosted.org/packages/ad/1e/5ce0fbe9aab071893ce2b7df020d0f561f7b411ec334124302468d587884/regex-2026.7.10-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f3463a5f26be513a49e4d497debcf1b252a2db7b92c77d89621aa90b83d2dd38", size = 796800, upload-time = "2026-07-10T19:47:20.639Z" }, - { url = "https://files.pythonhosted.org/packages/d4/67/c1ccbada395c10e334763b583e1039b1660b142303ebb941d4269130b22f/regex-2026.7.10-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:948dfc62683a6947b9b486c4598d8f6e3ecc542478b6767b87d52be68aeb55c6", size = 865509, upload-time = "2026-07-10T19:47:22.135Z" }, - { url = "https://files.pythonhosted.org/packages/0e/06/f0b31afc16c1208f945b66290eb2a9936ab8becdfb23bbcedb91cc5f9d9b/regex-2026.7.10-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c2cbd385d82f63bb35edb60b09b08abad3619bd0a4a492ae59e55afaf98e1b9d", size = 912395, upload-time = "2026-07-10T19:47:24.128Z" }, - { url = "https://files.pythonhosted.org/packages/0b/1c/8687de3a6c3220f4f872a9bf4bcd8dc249f2a96e7dddfa93de8bd4d16399/regex-2026.7.10-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f6222cafe00e072bb2b8f14142cd969637411fbc4dd3b1d73a90a3b817fa046f", size = 801308, upload-time = "2026-07-10T19:47:25.696Z" }, - { url = "https://files.pythonhosted.org/packages/5f/e3/60a40ec02a2315d826414a125640aceb6f30450574c530c8f352110ece0e/regex-2026.7.10-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:65ee5d1ac3cd541325f5ac92625b1c1505f4d171520dd931bda7952895c5321a", size = 777120, upload-time = "2026-07-10T19:47:27.158Z" }, - { url = "https://files.pythonhosted.org/packages/6a/9a/ec579b4f840ac59bc7c192b56e66abd4cbf385615300d59f7c94bf6863ae/regex-2026.7.10-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:aa34473fbcc108fea403074f3f45091461b18b2047d136f16ffaa4c65ad46a68", size = 785164, upload-time = "2026-07-10T19:47:28.732Z" }, - { url = "https://files.pythonhosted.org/packages/ad/1c/60d88afd5f98d4b0fb1f8b8969270628140dc01c7ff93a939f2aa83f31a6/regex-2026.7.10-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:9d028d189d8f38d7ff292f22187c0df37f2317f554d2ed9a2908ada330af57c0", size = 860161, upload-time = "2026-07-10T19:47:30.605Z" }, - { url = "https://files.pythonhosted.org/packages/2a/40/08ae3ba45fe79e48c9a888a3389a7ee7e2d8c580d2d996da5ece02dfdcb9/regex-2026.7.10-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:396ea70e4ea1f19571940add3bad9fd3eb6a19dc610d0d01f692bc1ba0c10cb4", size = 765829, upload-time = "2026-07-10T19:47:32.06Z" }, - { url = "https://files.pythonhosted.org/packages/12/e6/e613c6755d19aca9d977cdc3418a1991ffc8f386779752dd8fdfa888ea89/regex-2026.7.10-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:ebbf0d83ed5271991d666e54bb6c90ac2c55fb2ef3a88740c6af85dc85de2402", size = 852170, upload-time = "2026-07-10T19:47:33.567Z" }, - { url = "https://files.pythonhosted.org/packages/03/33/89072f2060e6b844b4916d5bc40ef01e973640c703025707869264ec75ab/regex-2026.7.10-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:58a4571b2a093f6f6ee4fd281faa8ebf645abcf575f758173ea2605c7a1e1ecb", size = 789550, upload-time = "2026-07-10T19:47:35.395Z" }, - { url = "https://files.pythonhosted.org/packages/e3/3c/4bc8be9a155035e63780ccac1da101f36194946fdc3f6fce90c7179fc6df/regex-2026.7.10-cp312-cp312-win32.whl", hash = "sha256:eac1207936555aa691ce32df1432b478f2729d54e6d93a1f4db9215bcd8eb47d", size = 267151, upload-time = "2026-07-10T19:47:37.047Z" }, - { url = "https://files.pythonhosted.org/packages/35/73/9f5aade65bb98cc6e99c336e45a49a658300720c16721f3e687f8d754fec/regex-2026.7.10-cp312-cp312-win_amd64.whl", hash = "sha256:ecae626449d00db8c08f8f1fc00047a32d6d7eb5402b3976f5c3fda2b80a7a4f", size = 277751, upload-time = "2026-07-10T19:47:38.488Z" }, - { url = "https://files.pythonhosted.org/packages/36/6f/d069dd12872ea1d50e17319d342f89e2072cae4b62f4245009a1108c74d8/regex-2026.7.10-cp312-cp312-win_arm64.whl", hash = "sha256:87794549a3f5c1c2bdfba2380c1bf87b931e375f4133d929da44f95e396bf5fe", size = 277063, upload-time = "2026-07-10T19:47:40.023Z" }, - { url = "https://files.pythonhosted.org/packages/e0/88/0c977b9f3ba9b08645516eca236388c340f56f7a87054d41a187a04e134c/regex-2026.7.10-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:4db009b4fc533d79af3e841d6c8538730423f82ea8508e353a3713725de7901c", size = 496868, upload-time = "2026-07-10T19:47:41.675Z" }, - { url = "https://files.pythonhosted.org/packages/f6/51/600882cd5d9a3cf083fd66a4064f5b7f243ba2a7de2437d42823e286edaf/regex-2026.7.10-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b96341cb29a3faa5db05aff29c77d141d827414f145330e5d8846892119351c1", size = 297306, upload-time = "2026-07-10T19:47:43.521Z" }, - { url = "https://files.pythonhosted.org/packages/52/6f/48a912054ffcb756e374207bb8f4430c5c3e0ffa9627b3c7b6661844b30a/regex-2026.7.10-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:14d27f6bd04beb01f6a25a1153d73e58c290fd45d92ba56af1bb44199fd1010d", size = 291950, upload-time = "2026-07-10T19:47:45.267Z" }, - { url = "https://files.pythonhosted.org/packages/1a/c8/8e1c3c86ebcee7effccbd1f7fc54fe3af22aa0e9204503e2baea4a6ff001/regex-2026.7.10-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e6b6a11bf898cca3ce7bfaa17b646901107f3975677fbd5097f36e5eb5641983", size = 796817, upload-time = "2026-07-10T19:47:48.054Z" }, - { url = "https://files.pythonhosted.org/packages/65/39/3e49d9ff0e0737eb8180a00569b47aabb59b84611f48392eba4d998d91a0/regex-2026.7.10-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:234f8e0d65cf1df9becadae98648f74030ee85a8f12edcb5eb0f60a22a602197", size = 865513, upload-time = "2026-07-10T19:47:49.855Z" }, - { url = "https://files.pythonhosted.org/packages/70/57/6511ad809bb3122c65bbeeffa5b750652bb03d273d29f3acb0754109b183/regex-2026.7.10-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:91b916d495db3e1b473c7c8e68733beec4dce8e487442db61764fff94f59740e", size = 912391, upload-time = "2026-07-10T19:47:51.776Z" }, - { url = "https://files.pythonhosted.org/packages/cc/29/a1b0c109c9e878cb04b931bfe4c54332d692b93c322e127b5ae9f25b0d9e/regex-2026.7.10-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1f0d4ccf70b1d13711242de0ba78967db5c35d12ac408378c70e06295c3f6644", size = 801338, upload-time = "2026-07-10T19:47:53.38Z" }, - { url = "https://files.pythonhosted.org/packages/33/be/171c3dad4d77000e1befeff2883ca88734696dfd97b2951e5e074f32e4dd/regex-2026.7.10-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c622f4c638a725c39abcb2e680b1bd592663c83b672a4ed350a17f806d75618e", size = 777149, upload-time = "2026-07-10T19:47:54.944Z" }, - { url = "https://files.pythonhosted.org/packages/33/61/41ab0de0e4574da1071c151f67d1eb9db3d92c43e31d64d2e6863c3d89bf/regex-2026.7.10-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:41a47c2b28d9421e2509a4583a22510dc31d83212fcf38e1508a7013140f71a8", size = 785216, upload-time = "2026-07-10T19:47:56.56Z" }, - { url = "https://files.pythonhosted.org/packages/66/28/372859ea693736f07cf7023247c7eca8f221d9c6df8697ff9f93371cca08/regex-2026.7.10-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:13fba679fe035037e9d5286620f88bbfd105df4d5fcd975942edd282ab986775", size = 860229, upload-time = "2026-07-10T19:47:58.278Z" }, - { url = "https://files.pythonhosted.org/packages/50/b1/e1d32cd944b599534ae655d35e8640d0ec790c0fa12e1fb29bf434d50f55/regex-2026.7.10-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:8e26a075fa9945b9e44a3d02cc83d776c3b76bb1ff4b133bbfa620d5650131da", size = 765797, upload-time = "2026-07-10T19:48:00.291Z" }, - { url = "https://files.pythonhosted.org/packages/0c/62/79a2cd9556a3329351e370929743ef4f0ccc0aaff6b3dc414ae5fa4a1302/regex-2026.7.10-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:d0834c84ae8750ae1c4cede59b0afd4d2f775be958e11b18a3eea24ed9d0d9f1", size = 852130, upload-time = "2026-07-10T19:48:01.972Z" }, - { url = "https://files.pythonhosted.org/packages/66/58/76fec29898cf5d359ab63face50f9d4f7135cc2eca3477139227b1d09952/regex-2026.7.10-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:64722a5031aeace7f6c8d5ea9a9b22d9368af0d6e8fa532585da8158549ea963", size = 789644, upload-time = "2026-07-10T19:48:03.748Z" }, - { url = "https://files.pythonhosted.org/packages/f6/06/3c7cec7817bda293e13c8f88aed227bbcf8b37e5990936ff6442a8fdf11a/regex-2026.7.10-cp313-cp313-win32.whl", hash = "sha256:74ae61d8573ecd51b5eeee7be2218e4c56e99c14fa8fcf97cf7519611d4be92e", size = 267130, upload-time = "2026-07-10T19:48:05.677Z" }, - { url = "https://files.pythonhosted.org/packages/88/6c/e2a6f9a6a905f923cfc912298a5949737e9504b1ca24f29eda8d04d05ece/regex-2026.7.10-cp313-cp313-win_amd64.whl", hash = "sha256:5e792367e5f9b4ffb8cad93f1beaa91837056b94da98aa5c65a0db0c1b474927", size = 277722, upload-time = "2026-07-10T19:48:07.318Z" }, - { url = "https://files.pythonhosted.org/packages/00/a6/9d8935aaa940c388496aa1a0c82669cc4b5d06291c2712d595e3f0cf16d3/regex-2026.7.10-cp313-cp313-win_arm64.whl", hash = "sha256:82ab8330e7e2e416c2d42fcec67f02c242393b8681014750d4b70b3f158e1f08", size = 277059, upload-time = "2026-07-10T19:48:08.977Z" }, - { url = "https://files.pythonhosted.org/packages/7d/e9/26decfd3e85c09e42ff7b0d23a6f51085ca4c268db15f084928ca33459c6/regex-2026.7.10-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:2b93eafd92c4128bab2f93500e8912cc9ecb3d3765f6685b902c6820d0909b6b", size = 501508, upload-time = "2026-07-10T19:48:10.668Z" }, - { url = "https://files.pythonhosted.org/packages/38/a5/5b167cebde101945690219bf34361481c9f07e858a4f46d9996b80ec1490/regex-2026.7.10-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:3f03b92fb6ec739df042e45b06423fc717ecf0063e07ffe2897f7b2d5735e1e8", size = 299705, upload-time = "2026-07-10T19:48:12.544Z" }, - { url = "https://files.pythonhosted.org/packages/f6/20/7909be4b9f449f8c282c14b6762d59aa722aeaeebe7ee4f9bb623eeaa5e0/regex-2026.7.10-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:bb5aab464a0c5e03a97abad5bdf54517061ebbf72340d576e99ff661a42575cc", size = 294605, upload-time = "2026-07-10T19:48:14.495Z" }, - { url = "https://files.pythonhosted.org/packages/82/88/e52550185d6fda68f549b01239698697de47320fd599f5e880b1986b7673/regex-2026.7.10-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fadb07dbe36a541283ff454b1a268afd54b077d917043f2e1e5615372cb5f200", size = 811747, upload-time = "2026-07-10T19:48:16.197Z" }, - { url = "https://files.pythonhosted.org/packages/06/98/16c255c909714de1ee04da6ae30f3ee04170f300cdc0dcf57a314ee4816a/regex-2026.7.10-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:21150500b970b12202879dfd82e7fd809d8e853140fff84d08e57a90cf1e154e", size = 871203, upload-time = "2026-07-10T19:48:18.12Z" }, - { url = "https://files.pythonhosted.org/packages/3b/32/423ed27c9bae2092a453e853da2b6628a658d08bb5a6117db8d591183d85/regex-2026.7.10-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a68b637451d64ba30ed8ae125c973fa834cc2d37dfa7f154c2b479015d477ba8", size = 917334, upload-time = "2026-07-10T19:48:19.952Z" }, - { url = "https://files.pythonhosted.org/packages/73/87/74dac8efb500db31cb000fda6bae2be45fc2fbf1fa9412f445fbb8acbe37/regex-2026.7.10-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3e23458d8903e33e7d27196d7a311523dc4e2f4137a5f34e4dbd30c8d37ff33e", size = 816379, upload-time = "2026-07-10T19:48:21.616Z" }, - { url = "https://files.pythonhosted.org/packages/a8/9f/1859403654e3e030b288f06d49233c6a4f889d62b84c4ef3f3a28653173d/regex-2026.7.10-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cae27622c094558e519abf3242cf4272db961d12c5c9a9ffb7a1b44b2627d5c6", size = 785563, upload-time = "2026-07-10T19:48:23.643Z" }, - { url = "https://files.pythonhosted.org/packages/6d/d8/35d30d6bdf1ef6a5430e8982607b3a6db4df1ddedbe001e43435585d88ba/regex-2026.7.10-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:ee877b6d78f9dff1da94fef51ae8cf9cce0967e043fdcc864c40b85cf293c192", size = 801415, upload-time = "2026-07-10T19:48:25.499Z" }, - { url = "https://files.pythonhosted.org/packages/f7/22/630f31f5ea4826167b2b064d9cac2093a5b3222af380aa432cfe1a5dabcd/regex-2026.7.10-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:2c66a8a1969cfd506d1e203c0005fd0fc3fe6efc83c945606566b6f9611d4851", size = 866560, upload-time = "2026-07-10T19:48:27.789Z" }, - { url = "https://files.pythonhosted.org/packages/8d/14/f5914a6d9c5bc63b9bed8c9a1169fb0be35dbe05cdc460e17d953031a366/regex-2026.7.10-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:2bc350e1c5fa250f30ab0c3e38e5cfdffcd82cb8af224df69955cab4e3003812", size = 772877, upload-time = "2026-07-10T19:48:29.563Z" }, - { url = "https://files.pythonhosted.org/packages/c1/0f/7c13999eef3e4186f7c79d4950fa56f041bf4de107682fb82c80db605ff9/regex-2026.7.10-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:53f54993b462f3f91fea0f2076b46deb6619a5f45d70dbd1f543f789d8b900ef", size = 856648, upload-time = "2026-07-10T19:48:31.282Z" }, - { url = "https://files.pythonhosted.org/packages/a4/71/a48e43909b6450fb48fa94e783bef2d9a37179258bc32ef2283955df7be7/regex-2026.7.10-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:cfcec18f7da682c4e2d82112829ce906569cb8d69fa6c26f3a50dfbed5ceb682", size = 803520, upload-time = "2026-07-10T19:48:33.275Z" }, - { url = "https://files.pythonhosted.org/packages/e0/b8/f037d1bf2c133cb24ceb6e7d81d08417080390eddab6ddfd701aa7091874/regex-2026.7.10-cp313-cp313t-win32.whl", hash = "sha256:a2d6d30be35ddd70ce0f8ee259a4c25f24d6d689a45a5ac440f03e6bcc5a21d1", size = 269168, upload-time = "2026-07-10T19:48:35.353Z" }, - { url = "https://files.pythonhosted.org/packages/b6/9c/eaac34f8452a838956e7e89852ad049678cdc1af5d14f72d3b3b658b1ea5/regex-2026.7.10-cp313-cp313t-win_amd64.whl", hash = "sha256:c57b6ad3f7a1bdd101b2966f29dc161adf49727b1e8d3e1e89db2eda8a75c344", size = 280004, upload-time = "2026-07-10T19:48:37.106Z" }, - { url = "https://files.pythonhosted.org/packages/cd/a9/e22e997587bc1d588b0b2cd0572027d39dd3a006216e40bbf0361688c51c/regex-2026.7.10-cp313-cp313t-win_arm64.whl", hash = "sha256:3d8ef9df02c8083c7b4b855e3cb87c8e0ebbcfea088d98c7a886aaefdf88d837", size = 279308, upload-time = "2026-07-10T19:48:38.907Z" }, - { url = "https://files.pythonhosted.org/packages/6a/4a/a7fa3ada9bd2d2ce20d56dfceec6b2a51afeed9bf3d8286355ceec5f0628/regex-2026.7.10-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:39f81d1fdf594446495f2f4edd8e62d8eda0f7a802c77ac596dc8448ad4cc5ca", size = 497087, upload-time = "2026-07-10T19:48:40.543Z" }, - { url = "https://files.pythonhosted.org/packages/0f/7e/ca0b1a87192e5828dbc16f16ae6caca9b67f25bf729a3348468a5ff52755/regex-2026.7.10-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:441edc66a54063f8269d1494fc8474d06605e71e8a918f4bcfd079ebda4ce042", size = 297307, upload-time = "2026-07-10T19:48:42.213Z" }, - { url = "https://files.pythonhosted.org/packages/b2/6c/fb40bb34275d3cd4d7a376d5fb2ea1f0f4a96fd884fa83c0c4ae869001bf/regex-2026.7.10-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:cfeb11990f59e59a0df26c648f0adfcbf27be77241250636f5769eb08db662be", size = 292163, upload-time = "2026-07-10T19:48:43.929Z" }, - { url = "https://files.pythonhosted.org/packages/18/0b/34cbea16c8fea9a18475a7e8f5837c70af451e738bfeb4eb5b029b7dc07a/regex-2026.7.10-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:460176b2db044a292baaee6891106566739657877af89a251cded228689015a6", size = 797064, upload-time = "2026-07-10T19:48:45.623Z" }, - { url = "https://files.pythonhosted.org/packages/87/77/f6805d97f15f5a710bdfd56a768f3468c978239daf9e1b15efd8935e1967/regex-2026.7.10-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9dc55698737aca028848bde418d6c51d74f2a5fd44872d3c8b56b626729adb89", size = 866155, upload-time = "2026-07-10T19:48:47.589Z" }, - { url = "https://files.pythonhosted.org/packages/a2/e3/a2a905807bba3bcd90d6ebbb67d27af2adf7d41708175cbc6b956a0c75f1/regex-2026.7.10-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d3e10779f60c000213a5b53f518824bd07b3dc119333b26d70c6be1c27b5c794", size = 911596, upload-time = "2026-07-10T19:48:49.473Z" }, - { url = "https://files.pythonhosted.org/packages/a2/ca/a3126888b2c6f33c7e29144fedf85f6d5a52a400024fa045ad8fc0550ef1/regex-2026.7.10-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:38a5926601aaccf379512746b86eb0ac1d29121f6c776dac6ac5b31077432f2c", size = 800713, upload-time = "2026-07-10T19:48:51.452Z" }, - { url = "https://files.pythonhosted.org/packages/66/19/9d252fd969f726c8b56b4bacf910811cc70495a110907b3a7ccb96cd9cad/regex-2026.7.10-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a72ecf5bfd3fc8d57927f7e3ded2487e144472f39010c3acaec3f6f3ff53f361", size = 777286, upload-time = "2026-07-10T19:48:53.443Z" }, - { url = "https://files.pythonhosted.org/packages/40/7a/5f1bf433fa446ecb3aab87bb402603dc9e171ef8052c1bb8690bb4e255a3/regex-2026.7.10-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d50714405845c1010c871098558cfe5718fe39d2a2fab5f95c8863caeb7a82b3", size = 785826, upload-time = "2026-07-10T19:48:55.381Z" }, - { url = "https://files.pythonhosted.org/packages/99/ca/69f3a7281d86f1b592338007f3e535cc219d771448e2b61c0b56e4f9d05b/regex-2026.7.10-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:ec1c44cf9bd22079aac37a07cb49a29ced9050ab5bddf24e50aba298f1e34d90", size = 860957, upload-time = "2026-07-10T19:48:57.962Z" }, - { url = "https://files.pythonhosted.org/packages/bc/11/487ff55c8d515ec9dd60d7ba3c129eeaa9e527358ed9e8a054a9e9430f81/regex-2026.7.10-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:9e9aaef25a40d1f1e1bbb1d0eb0190c4a64a7a1750f7eb67b8399bed6f4fd2a6", size = 765959, upload-time = "2026-07-10T19:49:00.27Z" }, - { url = "https://files.pythonhosted.org/packages/73/e1/fa034e6fa8896a09bd0d5e19c81fdc024411ab37980950a0401dccee8f6d/regex-2026.7.10-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:e54e088dc64dd2766014e7cfe5f8bc45399400fd486816e494f93e3f0f55da06", size = 851447, upload-time = "2026-07-10T19:49:02.128Z" }, - { url = "https://files.pythonhosted.org/packages/ee/a5/b9427ed53b0e14c540dc436d56aaf57a19fb9183c6e7abd66f4b4368fbad/regex-2026.7.10-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:834271b1ff2cfa1f67fcd65a48bf11d11e9ab837e21bf79ce554efb648599ae8", size = 789418, upload-time = "2026-07-10T19:49:03.949Z" }, - { url = "https://files.pythonhosted.org/packages/ba/52/aab92420c8aa845c7bcbe68dc65023d4a9e9ea785abf0beb2198f0de5ba1/regex-2026.7.10-cp314-cp314-win32.whl", hash = "sha256:f988a1cec68058f71a38471813fba9e87dffe855582682e8a10e40ece12567a2", size = 272538, upload-time = "2026-07-10T19:49:05.833Z" }, - { url = "https://files.pythonhosted.org/packages/99/16/5c7050e0ef7dd8889441924ff0a2c33b7f0587c0ccb0953fe7ca997d673b/regex-2026.7.10-cp314-cp314-win_amd64.whl", hash = "sha256:2129e4a5e86f26926982d883dff815056f2e98220fdf630e59f961b578a26c43", size = 280796, upload-time = "2026-07-10T19:49:07.593Z" }, - { url = "https://files.pythonhosted.org/packages/e8/1a/4f6099d2ba271502fdb97e697bae2ed0213c0d87f2273fe7d21e2e401d12/regex-2026.7.10-cp314-cp314-win_arm64.whl", hash = "sha256:9cd5b6805396157b4cf993a6940cbb8663161f29b4df2458c1c9991f099299c5", size = 281017, upload-time = "2026-07-10T19:49:09.767Z" }, - { url = "https://files.pythonhosted.org/packages/19/02/4061fc71f64703e0df61e782c2894c3fbc089d277767eff6e16099581c73/regex-2026.7.10-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:103e8f3acc3dcede88c0331c8612766bdcfc47c9250c5477f0e10e0550b9da49", size = 501467, upload-time = "2026-07-10T19:49:11.952Z" }, - { url = "https://files.pythonhosted.org/packages/73/a5/8d42b2f3fd672908a05582effd0f88438bf9bb4e8e02d69a62c723e23601/regex-2026.7.10-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:538ddb143f5ca085e372def17ef3ed9d74b50ad7fc431bd85dc50a9af1a7076f", size = 299700, upload-time = "2026-07-10T19:49:14.067Z" }, - { url = "https://files.pythonhosted.org/packages/65/70/36fa4b46f73d268c0dbe77c40e62da2cd4833ee206d3b2e438c2034e1f36/regex-2026.7.10-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6e3448e86b05ce87d4eb50f9c680860830f3b32493660b39f43957d6263e2eba", size = 294590, upload-time = "2026-07-10T19:49:15.883Z" }, - { url = "https://files.pythonhosted.org/packages/e0/a7/b6db1823f3a233c2a46f854fdc986f4fd424a84ed557b7751f2998efb266/regex-2026.7.10-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5eab9d3f981c423afd1a61db055cfe83553c3f6455949e334db04722469dd0a2", size = 811925, upload-time = "2026-07-10T19:49:17.97Z" }, - { url = "https://files.pythonhosted.org/packages/b6/7d/f8bee4c210c42c7e8b952bb9fb7099dd7fb2f4bd0f33d0d65a8ab08aafc0/regex-2026.7.10-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:177f930af3ad72e1045f8877540e0c43a38f7d328cf05f31963d0bd5f7ecf067", size = 871257, upload-time = "2026-07-10T19:49:19.943Z" }, - { url = "https://files.pythonhosted.org/packages/5d/78/22adf72e614ba0216b996e9aaef5712c23699e360ea127bb3d5ee1a7666f/regex-2026.7.10-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:dd3b6d97beb39afb412f2c79522b9e099463c31f4c49ab8347c5a2ca3531c478", size = 917551, upload-time = "2026-07-10T19:49:22.069Z" }, - { url = "https://files.pythonhosted.org/packages/03/f7/ebc15a39e81e6b58da5f913b91fc293a25c6700d353c14d5cd25fc85712a/regex-2026.7.10-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8679f0652a183d93da646fcec8da8228db0be40d1595da37e6d74c2dc8c4713c", size = 816436, upload-time = "2026-07-10T19:49:24.131Z" }, - { url = "https://files.pythonhosted.org/packages/5c/33/20bc2bdd57f7e0fcc51be37e4c4d1bca7f0b4af8dc0a148c23220e689da8/regex-2026.7.10-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:494b19a5805438aeb582de99f9d97603d8fd48e6f4cc74d0088bb292b4da3b70", size = 785935, upload-time = "2026-07-10T19:49:26.265Z" }, - { url = "https://files.pythonhosted.org/packages/b4/51/87ff99c849b56309c40214a72b54b0eef320d0516a8a516970cc8be1b725/regex-2026.7.10-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0911e34151a5429d0325dae538ba9851ec0b62426bdfd613060cda8f1c36ec7f", size = 801494, upload-time = "2026-07-10T19:49:28.493Z" }, - { url = "https://files.pythonhosted.org/packages/16/11/fde67d49083fef489b7e0f841e2e5736516795b166c9867f05956c1e494b/regex-2026.7.10-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b862572b7a5f5ed47d2ba5921e63bf8d9e3b682f859d8f11e0e5ca46f7e82173", size = 866549, upload-time = "2026-07-10T19:49:30.592Z" }, - { url = "https://files.pythonhosted.org/packages/e6/b5/31a156c36acf10181d88f55a66c688d5454a344e53ccc03d49f4a48a2297/regex-2026.7.10-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:3f361215e000d68a4aff375106637b83c80be36091d83ee5107ad3b32bd73f48", size = 773089, upload-time = "2026-07-10T19:49:32.661Z" }, - { url = "https://files.pythonhosted.org/packages/27/bb/734e978c904726664df47ae36ce5eca5065de5141185ae46efec063476a2/regex-2026.7.10-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:4533af6099543db32ef26abc2b2f824781d4eebb309ab9296150fd1a0c7eb07d", size = 856710, upload-time = "2026-07-10T19:49:35.289Z" }, - { url = "https://files.pythonhosted.org/packages/6d/e5/dc35cea074dbdcb9776c4b0542a3bc326ff08454af0768ef35f3fc66e7fa/regex-2026.7.10-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:668ab85105361d0200e3545bec198a1acfc6b0aeb5fff8897647a826e5a171be", size = 803621, upload-time = "2026-07-10T19:49:37.704Z" }, - { url = "https://files.pythonhosted.org/packages/a6/b2/124564af46bc0b592785610b3985315610af0a07f4cf21fa36e06c2398dd/regex-2026.7.10-cp314-cp314t-win32.whl", hash = "sha256:dd7715817a187edd7e2a2390908757f7ba42148e59cad755fb8ee1160c628eca", size = 274558, upload-time = "2026-07-10T19:49:39.926Z" }, - { url = "https://files.pythonhosted.org/packages/4e/9c/cd813ce9f3404c0443915175c1e339c5afd8fcda04310102eaf233015eef/regex-2026.7.10-cp314-cp314t-win_amd64.whl", hash = "sha256:78712d4954234df5ca24fdadb65a2ab034213f0cdfde376c272f9fc5e09866bb", size = 283687, upload-time = "2026-07-10T19:49:41.872Z" }, - { url = "https://files.pythonhosted.org/packages/1b/d3/3dae6a6ce46144940e64425e32b8573a393a009aeaf75fa6752a35399056/regex-2026.7.10-cp314-cp314t-win_arm64.whl", hash = "sha256:749b92640e1970e881fdf22a411d74bf9d049b154f4ef7232eeb9a90dd8be7f3", size = 283377, upload-time = "2026-07-10T19:49:43.985Z" }, +version = "2026.9.29" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/fc/f2/af1da9d3ceed77bfcdce40427d49ba0be94e4fe84245e3bfef68c10e75b6/regex-2026.9.29.tar.gz", hash = "sha256:8b5fcc4771732191b2b7d1dd68d8f0353f47f8d90b6150f6dce58bf1112442cb", size = 419199, upload-time = "2026-09-29T00:49:58.298Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e8/6b/6dea87689c3a06a6e79d254bf824e6f3e3d724b5ba027c6112559aa6cd2c/regex-2026.9.29-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:6abb75ab16bc3281714a5b99548a2225db70dba1f995f6d7f7419b76eb5a8fbe", size = 495413, upload-time = "2026-09-29T00:46:14.51Z" }, + { url = "https://files.pythonhosted.org/packages/3a/a5/0c791a0e83ad1013d262c13247c4c77e0f4a8d05bdc167df96aba6681c0d/regex-2026.9.29-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b7b893976e7fe42053da64f2aa27239c24252fd2ec6df471e1be197c0addc3b1", size = 295145, upload-time = "2026-09-29T00:46:16.292Z" }, + { url = "https://files.pythonhosted.org/packages/b1/07/9bf3607d8d13a12e436ab9d63f9791e10706827d535695b23964ad79fd79/regex-2026.9.29-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:066d0e3dbfdd739bce2bf8c2a41dd16f73e3d8adc2eb06dd803a36a307f56075", size = 292123, upload-time = "2026-09-29T00:46:17.646Z" }, + { url = "https://files.pythonhosted.org/packages/64/6b/32c2e6fc617e1d3f247e250fea31a9a35b1265bd32f585968aa13b9999b9/regex-2026.9.29-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7020ed44df30b3aa492c00ee3b52d0548c1f30c2c6c5bb13ae897680900d3413", size = 799537, upload-time = "2026-09-29T00:46:18.976Z" }, + { url = "https://files.pythonhosted.org/packages/bf/72/f041177f3c7a4606f7c81a95fe7eea03e2a0c4e8bff9e439a01432cbc9f2/regex-2026.9.29-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ae4613d7d9dda60fcba95f846cc6f808017f1843f392cf9daad14a6534493d71", size = 873255, upload-time = "2026-09-29T00:46:20.684Z" }, + { url = "https://files.pythonhosted.org/packages/d0/4e/a78948e11dd715e0e46716c2e0f3404b3fe6a44e2a2e9abdc7d965cab2b3/regex-2026.9.29-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bec37990e3d6121f29ecfb594bd8f1bf009e9f7926daba2e50e3b27d3892a783", size = 914570, upload-time = "2026-09-29T00:46:22.599Z" }, + { url = "https://files.pythonhosted.org/packages/8a/70/aa08d1d2b294894b365e5f8ba5380fe3f8546acdb81f10639dfd74209c37/regex-2026.9.29-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:612b709381c0355b70d89cdb51b7f670591ed5cbbc0e3b5337488019dc667b65", size = 804978, upload-time = "2026-09-29T00:46:23.981Z" }, + { url = "https://files.pythonhosted.org/packages/21/32/1b03534c4715aca3b564416d28d518083ed4dab3bc913267600d2256140d/regex-2026.9.29-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a760da040b47767b4b873adfb7c3b691e9ba2fc60f113f9d0b88f1a62f323e85", size = 779297, upload-time = "2026-09-29T00:46:25.318Z" }, + { url = "https://files.pythonhosted.org/packages/76/a7/378f6f558d9e4444af315a307c5953565a511d1e3666f1bb7bdc82012b6b/regex-2026.9.29-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:49ee178ca31c94621294bf9b8b676a92a2e6bba8af0529591753719e57edb621", size = 786961, upload-time = "2026-09-29T00:46:26.963Z" }, + { url = "https://files.pythonhosted.org/packages/59/13/79f0b1846f5f342f92ddbd4b27b18bcb86da96d902c1a0be26520bde98d7/regex-2026.9.29-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:5eeb8edc6110d9194a4d0d54610f64c37a31c605b5dbb7e407fc6ec7fa34a4a1", size = 863234, upload-time = "2026-09-29T00:46:28.58Z" }, + { url = "https://files.pythonhosted.org/packages/97/19/05af70dec9f2eed6ba34e08d2dcc6a48e7ae5e307659d5fe4201a5d7bbee/regex-2026.9.29-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:ccb64d887a9db1cd76dbc0f92051a1a478a2a67e7f56c62d915cb881d7734704", size = 766487, upload-time = "2026-09-29T00:46:29.941Z" }, + { url = "https://files.pythonhosted.org/packages/01/e1/9c7486d4afe8fdd1fe0ad60139f8aa91427381f409af6a29b609d8fdcb3a/regex-2026.9.29-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:9e4482589065c8ecd761cff522dcd85f2d39e62f551e37e025d1c7d54772def3", size = 854792, upload-time = "2026-09-29T00:46:31.358Z" }, + { url = "https://files.pythonhosted.org/packages/26/c7/49d008ff5f741d9a9799d7315556f3a12b983ff0fcd2cdfb62904bedafbf/regex-2026.9.29-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:d60030baaa7bfbb02d650c126cdcddcb6e33dbff14d819434c8fa2fdcaeeeba5", size = 793050, upload-time = "2026-09-29T00:46:32.775Z" }, + { url = "https://files.pythonhosted.org/packages/cb/a1/46ba549e65562ca04608b24179b8a7bb6f146ae0e7c6d7f5e70f3339c8ba/regex-2026.9.29-cp311-cp311-win32.whl", hash = "sha256:18ae8eed4526e35bdb754d61562b90bf5c00a67fdcf3cc1380dd59597486631b", size = 268940, upload-time = "2026-09-29T00:46:34.179Z" }, + { url = "https://files.pythonhosted.org/packages/4d/4a/aab232183c70fdcf77bcf0c51819da02ec522e393e6a0bf00bcf2142e21f/regex-2026.9.29-cp311-cp311-win_amd64.whl", hash = "sha256:1043aedf5917caa861bcb25a9c11460049656bdf0017a90a309fa8f255467725", size = 280641, upload-time = "2026-09-29T00:46:35.484Z" }, + { url = "https://files.pythonhosted.org/packages/33/b1/7c05954af0f51de376df2ba97f7f78a8b79334c7e5b3d2d9f2aead1f4d3d/regex-2026.9.29-cp311-cp311-win_arm64.whl", hash = "sha256:352cf115a810b357caa35193ab656ecf5ef41056855e82f292c99e8514f8d954", size = 279411, upload-time = "2026-09-29T00:46:37.193Z" }, + { url = "https://files.pythonhosted.org/packages/84/48/3fdcde9a0baa84d7d25571223265d6e434e114763b438601d54a8028bf3e/regex-2026.9.29-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:dc79d36d0618752265f0d575915bdc5c5130ecb9c9f6b3bcefeae32e4bdfafcf", size = 497903, upload-time = "2026-09-29T00:46:38.938Z" }, + { url = "https://files.pythonhosted.org/packages/2e/1c/4ee3e97c76f53940488dfe7a7e18705e78daac8cd7fb161d246b9e328449/regex-2026.9.29-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3a21a9509d0ee88e7a70e1ad228cd2f0e0fd1e187458db132e8a8d18c97daf9d", size = 296416, upload-time = "2026-09-29T00:46:40.406Z" }, + { url = "https://files.pythonhosted.org/packages/37/14/f3f0ba083d2094392d5eabf56db5ea6ba469fd6e927afd187042054ea68a/regex-2026.9.29-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f57dc6b8fef170f105d2cf5cdce254f47b137d7755086cf7050f47e16582abba", size = 293633, upload-time = "2026-09-29T00:46:41.959Z" }, + { url = "https://files.pythonhosted.org/packages/c9/72/67e7a8ce17f1aea49df215564048efb49cc8c2b31a0e0fc30f36838f8516/regex-2026.9.29-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f93bc1c3486ef3747e07c9d7c1d0a147b8fbaab975f80e348aed6f71309dfaca", size = 805885, upload-time = "2026-09-29T00:46:43.373Z" }, + { url = "https://files.pythonhosted.org/packages/f6/78/25436bcfd4d2260b4b4090094d55d7ab53ec8a1ab4865a0b8bcb33c7d5c0/regex-2026.9.29-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9e1d3a4cb7993b708f0ada8d0c84590efd853f169e7147d2202c9da503180242", size = 878344, upload-time = "2026-09-29T00:46:45.328Z" }, + { url = "https://files.pythonhosted.org/packages/97/e6/a09ec3a23ae41d6179880e67f0aace9284b2d95f2d7b326eff203f8eec5e/regex-2026.9.29-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:dabee8f4935e731fb46b2a3091bdda0d3d94b3bbfb907d2b4f12eefce4009619", size = 919181, upload-time = "2026-09-29T00:46:47.041Z" }, + { url = "https://files.pythonhosted.org/packages/26/83/d2fbd2e4e3afb1167daa825187d196f313cbaa1a4768f311fb041bb0e3d2/regex-2026.9.29-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:39ab5894d971f9ac68baa6eca5c50387db579cfcacf36ae8df3feceb1815e6d0", size = 807783, upload-time = "2026-09-29T00:46:48.894Z" }, + { url = "https://files.pythonhosted.org/packages/46/0b/eb429a7016610d44fc89a597163f8c9127505f0d7dc724dc9effbb6a3ac0/regex-2026.9.29-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c1a9a6651197fbed6f0212591418b9def774fc3f8324f78d1bf0e6a63e5f8aa1", size = 783465, upload-time = "2026-09-29T00:46:50.64Z" }, + { url = "https://files.pythonhosted.org/packages/1b/07/58a3c0153c7476898430f6a7cf3d9062a1d17fbea4f43399ecaf411c7b4c/regex-2026.9.29-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:87fb80cbe3557e27e7b28b995c2b2eedf689b8886f941ab93e0e288f0976518a", size = 793519, upload-time = "2026-09-29T00:46:52.396Z" }, + { url = "https://files.pythonhosted.org/packages/2a/e8/161b94d39164520e21a7befe0245569bf7fda4c7cf1fc4e2df2b5def49da/regex-2026.9.29-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:3c5c2ef13797466aa64170cbb66ad98a32351dd4127694cea7199f80f213750d", size = 869293, upload-time = "2026-09-29T00:46:54.128Z" }, + { url = "https://files.pythonhosted.org/packages/8f/07/3b02ed829aa2decdc1955d222bd1e2f99d1c8bb4873bbb9a66b2f0a36bff/regex-2026.9.29-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:59b49507f47479e299a9e1bc41b5cb83a7afda0540625f1dbae886615978acbf", size = 770239, upload-time = "2026-09-29T00:46:56.106Z" }, + { url = "https://files.pythonhosted.org/packages/42/5b/ba61f6fe062eb8562e742367d177bb75370434138ef6c9d2a27114f8d613/regex-2026.9.29-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:0dd8af32e9f7b56b7f95cc1fd79b23054c3bdc172392ae560acc24d57b7ffe71", size = 861973, upload-time = "2026-09-29T00:46:57.665Z" }, + { url = "https://files.pythonhosted.org/packages/cc/27/767259b20e8a842948990f5e99138d6c077248fd42f8b5468b1d9ca4b814/regex-2026.9.29-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:db5e82ba15c142425b8406690032df89e39cca4a2e8afbbb9a3d84edc2373ac3", size = 796470, upload-time = "2026-09-29T00:46:59.236Z" }, + { url = "https://files.pythonhosted.org/packages/a0/05/2566c4ba849b68a8ab81a6bf428fa79d20aae7ddee83979103c0381df254/regex-2026.9.29-cp312-cp312-win32.whl", hash = "sha256:d0c3082bf79bcd6a614d55916590ad4b8f93200e10b97f463ea5d9d07c9b5f23", size = 269327, upload-time = "2026-09-29T00:47:01.135Z" }, + { url = "https://files.pythonhosted.org/packages/93/19/489bc8db91196381c935752df01ba3f607140daece33b78d88573f028e64/regex-2026.9.29-cp312-cp312-win_amd64.whl", hash = "sha256:fdd88ed5e20b1bcdd234421e454962c971aa44b653bdb7f1ea9ef683e90fb649", size = 280334, upload-time = "2026-09-29T00:47:04.436Z" }, + { url = "https://files.pythonhosted.org/packages/0b/47/fb88ba779d0e5e7d4b0ec1aceeb13845948a2cb876bd572a2d1dfdba090b/regex-2026.9.29-cp312-cp312-win_arm64.whl", hash = "sha256:4fe97894d1b306c919b4e50def1e6f6c522f4d03a7283811f4d108f1ce5d3ac2", size = 279614, upload-time = "2026-09-29T00:47:06.541Z" }, + { url = "https://files.pythonhosted.org/packages/79/d5/6080f7d1a6e7e36aa720f806ac93c035ba39c209ae6cc510e8ef4c0279c6/regex-2026.9.29-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:f1a0d5117230dd46b399a30a38afa44f79c99f3168988fdc4f425c3f928b39df", size = 497622, upload-time = "2026-09-29T00:47:08.251Z" }, + { url = "https://files.pythonhosted.org/packages/00/71/c87fc7a2e21a42f9d57489db32951c37eef56d153840459a80d464f0321d/regex-2026.9.29-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f0fe9834e5aeccaf19a0d8feb296d66a24be1a7c9922002f842a682cd5abb787", size = 296281, upload-time = "2026-09-29T00:47:09.764Z" }, + { url = "https://files.pythonhosted.org/packages/11/9e/aa0f4cde3bc4688c1d58b0cd8415edd708339bc0bc401a195b0b1e8c8f0c/regex-2026.9.29-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c90fcf7804ea0a54b896ce0f2b9565350220b8d4890fd0db461a476a4c687963", size = 293472, upload-time = "2026-09-29T00:47:11.723Z" }, + { url = "https://files.pythonhosted.org/packages/90/d4/e835c487850ed922a8d6074f953b888c8ea99775c76b9ed5f8a4d72eab92/regex-2026.9.29-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e11edba5bc344a32b029a7af9d4b3173982dd79eeafa0b9dbd787364414b0509", size = 805966, upload-time = "2026-09-29T00:47:13.235Z" }, + { url = "https://files.pythonhosted.org/packages/2c/57/ba8809847fbae8d2cbc71367c6ded510a7ec88bf52493c65efc1acf4effb/regex-2026.9.29-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bb90e7177944b6684738c1fc36aabd2dd00d1de3be7dbe09f91e196f1bc0dc81", size = 878346, upload-time = "2026-09-29T00:47:14.877Z" }, + { url = "https://files.pythonhosted.org/packages/1a/52/e3da19fc3cc15ef67ab67e121e87887c3bccfdb683a7a9ec557c460ca5b7/regex-2026.9.29-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d06fcdecc10fc7954d7c8f27a03c96055fe525274dc84a7b0dbdc3d6b9e03dab", size = 919250, upload-time = "2026-09-29T00:47:16.622Z" }, + { url = "https://files.pythonhosted.org/packages/9a/8e/c1ed81f55f992f6aa0b699a592a50c1ce9e6d44ff1aee2c14c0537dcef9c/regex-2026.9.29-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d49c18f1ea294cf4adde2e5ac256e98c82ea9d708462ce4bf799dffa7cfe8a2c", size = 807902, upload-time = "2026-09-29T00:47:18.268Z" }, + { url = "https://files.pythonhosted.org/packages/ad/bc/5a6886eb470e41040e21e05b75024a18b6ebfe7ea400b72094a60f949101/regex-2026.9.29-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3e778bfccd63075167709136afbc251c1f683758d5bf49c803c60ac3f894ce6b", size = 783514, upload-time = "2026-09-29T00:47:19.921Z" }, + { url = "https://files.pythonhosted.org/packages/cb/52/6d951d453b023c6edb880f1ba474291b53b8ce1cc438b96a9db6d791d991/regex-2026.9.29-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:686ac5350fceae63830bb98805fcb8039325bf4c06d9f6f048ff65229d5bffa5", size = 793466, upload-time = "2026-09-29T00:47:21.552Z" }, + { url = "https://files.pythonhosted.org/packages/99/b9/d5a41adc08360f5eee0dc4846c578f002366947211fc8af5a69a64ee7b9f/regex-2026.9.29-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:26ec4ccce55aa533fbd603d08911b01101a8fcfec987845ac3ae2c7087b2bde3", size = 869464, upload-time = "2026-09-29T00:47:23.276Z" }, + { url = "https://files.pythonhosted.org/packages/4b/32/d76c9d91f5d798e2e9e67f6f85ec4ae35445ac425f7454797311cecb80ca/regex-2026.9.29-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:a655d34b2a6943af32401f3d94f72e9d731f6ad16285815550bf2b4ee69d420a", size = 770278, upload-time = "2026-09-29T00:47:25.193Z" }, + { url = "https://files.pythonhosted.org/packages/24/00/aeebdb540c620a0f7317f6d6fad80a47729ecf0599a24b5c34ec155351f5/regex-2026.9.29-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:0c992c19cd45058a4b92f68f139c93db168b48fb1f322c9a7cd620806afb6b51", size = 861949, upload-time = "2026-09-29T00:47:27.005Z" }, + { url = "https://files.pythonhosted.org/packages/12/62/d0314bcedfd3586197e4596931fa220260eb2385bf53184e5b9ae67db24b/regex-2026.9.29-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ebb8912f565b8cdbbf27debfe00df04202c20e2f651b9e32767930c5eace3621", size = 796602, upload-time = "2026-09-29T00:47:29.233Z" }, + { url = "https://files.pythonhosted.org/packages/ae/c7/d5a8c13a613facb03e0fb55c1ebaaf7bb35d8e2c1abe8bef8dca809fc1d9/regex-2026.9.29-cp313-cp313-win32.whl", hash = "sha256:4d7d93613b01b0199961330e49cfc52d479b3d5776c56c691db31130c0a07d91", size = 269306, upload-time = "2026-09-29T00:47:31.14Z" }, + { url = "https://files.pythonhosted.org/packages/80/a7/bf93a3a6afa5f7bc16b7afb94ae581b01cae620b8ad56bd8f9572a985959/regex-2026.9.29-cp313-cp313-win_amd64.whl", hash = "sha256:61956f074ecd123f55adca68ee3eab46e6a07ad3f8e64e6db95dfacb444f55c4", size = 280307, upload-time = "2026-09-29T00:47:32.709Z" }, + { url = "https://files.pythonhosted.org/packages/b2/7d/388274e53605a86297f433a08102a7bbdcf9379d47683d307ccaefd88e2c/regex-2026.9.29-cp313-cp313-win_arm64.whl", hash = "sha256:bfc71e6d970419c1309b3640305298643e2a734cad3f7cfb6d2ddee4175ab53d", size = 279599, upload-time = "2026-09-29T00:47:34.674Z" }, + { url = "https://files.pythonhosted.org/packages/93/1f/d9dc6f02f569625faf67a4daec926cd5023472dcd69bb44286dccd5a5ab3/regex-2026.9.29-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:957bb708e8057ab1649ba566456429d691ec9b90d1c9ad1af1ba7ffbbeaf05f2", size = 497598, upload-time = "2026-09-29T00:47:36.541Z" }, + { url = "https://files.pythonhosted.org/packages/9c/83/9b693a3fd1451381e812031a8961ec5b3b8f0c8cc6871f14c5223642804d/regex-2026.9.29-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c9b602fae1e00b7c035d661ce85575365719192a7b46784bd71cf64c68053aa0", size = 296250, upload-time = "2026-09-29T00:47:38.233Z" }, + { url = "https://files.pythonhosted.org/packages/dd/5f/52bc2abc3fef040cd9de76ab29c918d6a717a454ae2b9dd7938b0c95656d/regex-2026.9.29-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0166844493626c5015c6088ee15c9ca2fd060ca15b7641d1657da6a58432ae33", size = 293518, upload-time = "2026-09-29T00:47:39.957Z" }, + { url = "https://files.pythonhosted.org/packages/dc/fc/cf50671215ee0057046980b4571ef8646a005819bb67f0957e779ed107a5/regex-2026.9.29-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b97a38fb4c732b6832db6bf108963adbcd82ef1268ba2025dce390f45af75efa", size = 806037, upload-time = "2026-09-29T00:47:41.676Z" }, + { url = "https://files.pythonhosted.org/packages/14/4b/dddef8fc15c63e4347cc9efb138d0cd306f30e6c98acbcc81a8f780083b9/regex-2026.9.29-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a540abfab208e1b7ef2df231c40ef3b6cbb30a0aad6204e9b6a81c10a6794628", size = 878881, upload-time = "2026-09-29T00:47:43.755Z" }, + { url = "https://files.pythonhosted.org/packages/9f/cb/38daabed32d28f7e58a06e9344ce00dc67952e9996bc578ed6a29fe1240e/regex-2026.9.29-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ddfa987262763c3c22a8367d2a49c244b018a74c3a8e3ab1a864119ad45c5633", size = 918684, upload-time = "2026-09-29T00:47:45.594Z" }, + { url = "https://files.pythonhosted.org/packages/a9/4d/041d9458a645fee4fce4d642a89d27271a3cfcd91095104f6dde44da70bf/regex-2026.9.29-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2f7f7aa47b229f2b39a2ae2596d2ad5625d77b5eb9856fac2dab3eb506cdd0a0", size = 807176, upload-time = "2026-09-29T00:47:47.372Z" }, + { url = "https://files.pythonhosted.org/packages/bf/c4/4383eed7aa5aef67616cb1b3f3ad06b7c624c4e6cced48630cd5ce133d85/regex-2026.9.29-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d9b77b25b4f395f92de6099ab08e8ae2bc7e51dfe157f22900902243a5cc90c7", size = 784315, upload-time = "2026-09-29T00:47:49.518Z" }, + { url = "https://files.pythonhosted.org/packages/5c/a6/0086ad31cebb183c637d3198547075aa493afde308e1ff61fccccb29ba6e/regex-2026.9.29-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:34b6925af9853bf461950e6508910f179fd6e9b1a7ec8548e069606b7e51a26b", size = 793748, upload-time = "2026-09-29T00:47:51.279Z" }, + { url = "https://files.pythonhosted.org/packages/d5/a0/f9005cba3f629a859573fc5d1224ea4e1f97919ec8581d018e03a351a604/regex-2026.9.29-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:addd736a0547d553283adaf4e05d7104e7f2c7b0b092e9b4d28756825f14531f", size = 870302, upload-time = "2026-09-29T00:47:53.368Z" }, + { url = "https://files.pythonhosted.org/packages/01/4f/e1a3e46bb5315a4e18b01a990e7a28e2a16595609d50c442baf2815a3c65/regex-2026.9.29-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:fe3fa1dd453ed5c7f5ea23a26218329790ed7197a99b90e94330e313959a7f52", size = 770299, upload-time = "2026-09-29T00:47:55.606Z" }, + { url = "https://files.pythonhosted.org/packages/2c/fe/f303b4acfda44e1ff1379368748c1ef2dad04a6a8e9c0ecbc970b19d97ca/regex-2026.9.29-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:0cc63b5e47c12a48d90c7e9d7de6a035dd14f62868aaedbb4e0ff8ba2b8bfe7b", size = 861570, upload-time = "2026-09-29T00:47:57.617Z" }, + { url = "https://files.pythonhosted.org/packages/60/b6/b4f7e99249f596017c60ccad5faf9310fc8e3e59bb2244940a90a1b0bdff/regex-2026.9.29-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:724184b4aafed865e4f13ca313fdcb43024300c028ec67319cfa16847d84685e", size = 795967, upload-time = "2026-09-29T00:47:59.922Z" }, + { url = "https://files.pythonhosted.org/packages/fb/d3/fc865a4638d9f6762192b6bab5b7aa1f33a90e9e99578c2e111e2a63c8c3/regex-2026.9.29-cp314-cp314-win32.whl", hash = "sha256:c6c8fabf1dafc1f1ddcbb67896d3f93efb092e8c4b6322d7389b944e76a484e5", size = 274758, upload-time = "2026-09-29T00:48:01.8Z" }, + { url = "https://files.pythonhosted.org/packages/31/e2/c2b466924ccbeb874862968ca638051b15a8fd29d994a0e99004a5cbf78e/regex-2026.9.29-cp314-cp314-win_amd64.whl", hash = "sha256:1c2a0026062abcc321a53db4a185ceba0b59a66b5d37b0808917a88b55a5257f", size = 283817, upload-time = "2026-09-29T00:48:03.614Z" }, + { url = "https://files.pythonhosted.org/packages/c6/42/ea0f8dbaa924fa75c6338935eaee2f44dab369b27f02db1e03d74344b049/regex-2026.9.29-cp314-cp314-win_arm64.whl", hash = "sha256:121a76a0985db80ceae9e171c337f8c927868e37d01b54e3ce87bc87f9c6a208", size = 283663, upload-time = "2026-09-29T00:48:05.624Z" }, + { url = "https://files.pythonhosted.org/packages/44/48/d58e5081119f5c223bbb37d2340acde3d069e1df8e8cd166c37502eee4da/regex-2026.9.29-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:e31f72490b7c12f7790e1e25c3afffd20503ee1bfb43461d7838b871ff244b19", size = 501393, upload-time = "2026-09-29T00:48:07.833Z" }, + { url = "https://files.pythonhosted.org/packages/72/3c/c49945287d4f9efee7d41f98072f8ad880efb8f430595a612fbdea996a4e/regex-2026.9.29-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:80ea96f5c1a30bf09007d48466521d9c294bebe197c708c3359096e3e3691632", size = 298237, upload-time = "2026-09-29T00:48:09.684Z" }, + { url = "https://files.pythonhosted.org/packages/f9/1f/688cb61c3d4cf7bcc1ed444b5cc49399eba3e51c469ae285cf87fea3022e/regex-2026.9.29-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:554bffadcbcb6d5f4e5fb10a61cc52084b9a63d1dab5f10bcd2c4343972e8e2c", size = 295936, upload-time = "2026-09-29T00:48:11.454Z" }, + { url = "https://files.pythonhosted.org/packages/26/a3/de43ac6b877b7d09c19a3a426b1bd5acdd209eaaf68f406466f80439ccf6/regex-2026.9.29-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:864e9b87ac33c3fb9fb4ad48166d4fdb579c351d5c77deb0d34bccb36a775cd9", size = 816905, upload-time = "2026-09-29T00:48:13.321Z" }, + { url = "https://files.pythonhosted.org/packages/62/14/9940763201c51d537786304984c67d0fc3d2ed18837ffb6f09a869f6b6c9/regex-2026.9.29-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:044265d77d94f5e3cb2fd72c76723807c429cb8c533e9d4672d0334a6f14f588", size = 881527, upload-time = "2026-09-29T00:48:15.313Z" }, + { url = "https://files.pythonhosted.org/packages/d3/e1/c842d8df0b23245ebf202f8ab9c39fd48e2db39959454ec39a41c8c72082/regex-2026.9.29-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2089fe39c406784d90101c726755ffa1497bb74638fd434300d2b88006186de8", size = 923115, upload-time = "2026-09-29T00:48:17.328Z" }, + { url = "https://files.pythonhosted.org/packages/d8/c1/98622479e3c354a446a75232e522d747d2b3df23092dcd8a5309380a2020/regex-2026.9.29-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0def9fb6abac55492d6d51cddb7225d07d6f279e774e0adc08569a54a5fc8d46", size = 820674, upload-time = "2026-09-29T00:48:19.32Z" }, + { url = "https://files.pythonhosted.org/packages/6c/d0/5808c95f9c79ed27b5eedaafc3df6239ec56a49f2e23ea8f831b18427c82/regex-2026.9.29-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:888d60953908dcf761aa320c3e390ab8556efbdb551ace63921de90f6ae0848d", size = 793306, upload-time = "2026-09-29T00:48:21.615Z" }, + { url = "https://files.pythonhosted.org/packages/bf/d3/021ca2638671ad20603bcd9b4d5bfa35d2610cd216a043ea7f0b44ea39f6/regex-2026.9.29-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ed511a0708e2297e1d6431e7fb217e3402791e491e02da800658ace4973df1bb", size = 803103, upload-time = "2026-09-29T00:48:23.871Z" }, + { url = "https://files.pythonhosted.org/packages/6b/2d/755c6d13ef9c657378013676c391c7a402166b3f419a464a3e058dcbe533/regex-2026.9.29-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:e1172147d28d8fbcf8cb8d26c41506169f5ad8fe9ec969cb116835a19d4d8eca", size = 872175, upload-time = "2026-09-29T00:48:26.255Z" }, + { url = "https://files.pythonhosted.org/packages/6c/fc/e1cab183b9dafe8597f58c1c766da9bf96204d3b2f232bcf3eeb75ff7b6c/regex-2026.9.29-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:92f05c9c42bde5785dc48770bc2194d9f7442544156f951e19cd31b096cec562", size = 777362, upload-time = "2026-09-29T00:48:28.389Z" }, + { url = "https://files.pythonhosted.org/packages/06/7c/e10ea17fba31fb4a1f9d13ed53a2d2a9066a2aea58d7557e263f6d99e7b0/regex-2026.9.29-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:f37964e4a5e993d2fd45147741e9dff7f34a2d8c00ab94c4ea0514a4677f959e", size = 865606, upload-time = "2026-09-29T00:48:30.4Z" }, + { url = "https://files.pythonhosted.org/packages/8e/6e/69824d9aee1fd41c54ea7264654a47c8d9d84d8a228e11c2bcf4c201ed81/regex-2026.9.29-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:951733b1bbdb71e377cec567b409f1a7881b47cfcad84121aa74cb575fa425ea", size = 807945, upload-time = "2026-09-29T00:48:32.375Z" }, + { url = "https://files.pythonhosted.org/packages/89/22/857050a86e21ce60193e02a8ef662521f2e263a645c8b1b905fc136b61a7/regex-2026.9.29-cp314-cp314t-win32.whl", hash = "sha256:65b408d8fcb273e3499e7ef2ce796810da1becd208c7fb4373692a242d79d461", size = 276758, upload-time = "2026-09-29T00:48:34.72Z" }, + { url = "https://files.pythonhosted.org/packages/4d/96/56808fe029553d7d4c703414f2a527faad2ea2bfa9ca094a2e7f8762b530/regex-2026.9.29-cp314-cp314t-win_amd64.whl", hash = "sha256:bf48516e35cf848390ea68850aba53e7c333720d2945b4d2c25b69fc5171723f", size = 286527, upload-time = "2026-09-29T00:48:36.864Z" }, + { url = "https://files.pythonhosted.org/packages/01/aa/074e2cfb3d8101a6a764aba5f7c5d1e21de087483e35bdc0c4ce2eb60364/regex-2026.9.29-cp314-cp314t-win_arm64.whl", hash = "sha256:9173db3be74a35cb6731701094b98120f7ee4876a287882a59cdea1fa7da342f", size = 285954, upload-time = "2026-09-29T00:48:38.901Z" }, + { url = "https://files.pythonhosted.org/packages/a7/dc/d84990386c9dfdf8c377f00f371b241fdc9a2c8aea0e3d66941b2e51be0b/regex-2026.9.29-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:c3589f40749acce747510bf5d589d54e376cb0930ea58b35effac97e5312b0c1", size = 497836, upload-time = "2026-09-29T00:48:40.858Z" }, + { url = "https://files.pythonhosted.org/packages/c2/ab/a569ebde875fa12ff8c6c9a30e07503620f195e4be4d54c3d3ee8eecc283/regex-2026.9.29-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:32ab11df9677ca80bcbb5fe4eb1da9109a5019239a054836efc6fa1c64e683cf", size = 296244, upload-time = "2026-09-29T00:48:42.952Z" }, + { url = "https://files.pythonhosted.org/packages/f3/3e/7d548e82a108e7c8b2d5246650e397a2f8db599f9b2e975466939c5b4e70/regex-2026.9.29-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:7c03031610e3e6ed1768a2b7a8fc84637c1257b50c5eacaf094c6e17a84fc563", size = 293748, upload-time = "2026-09-29T00:48:44.985Z" }, + { url = "https://files.pythonhosted.org/packages/40/34/a8e19a52f452bbb07b32a2bef70dcdf90c2737049749f74cc12d7486fb4f/regex-2026.9.29-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:42e82e578c904445d4c8a35b8f28052cf567593215fa5db06266fbc6f77aaa2e", size = 807840, upload-time = "2026-09-29T00:48:46.948Z" }, + { url = "https://files.pythonhosted.org/packages/88/7b/11fbd4640b3bb82b72822a63c20ade4013d562d291703a9debeedc24e682/regex-2026.9.29-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0b65c72739f981377c9c22e0c5c3cd7f42da7bd8a3c9209330fac772c7d893ed", size = 879330, upload-time = "2026-09-29T00:48:49.168Z" }, + { url = "https://files.pythonhosted.org/packages/f3/55/de58c74f1f4e31586d83eb39c56872d686c4e0d0966d151884c833b94ced/regex-2026.9.29-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4408b2b27a95ca8cc48b7411945753773353b5c93b307754781086c99d3a576f", size = 919251, upload-time = "2026-09-29T00:48:51.322Z" }, + { url = "https://files.pythonhosted.org/packages/81/42/a8c480f6dd5ac59fa28ddae79afd9d7ac7e596fdb61813adc65bb6e674b8/regex-2026.9.29-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a714befaacbd10092ffe4cea0d3c5f008fb9efe9bc322c715bcdfdee414b9a3d", size = 808808, upload-time = "2026-09-29T00:48:53.529Z" }, + { url = "https://files.pythonhosted.org/packages/68/60/0bc0d1ec8b37ad64be6fa30e035251f11de9667a0fac9e82ee74517d81be/regex-2026.9.29-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:33026515aebc0e70d1c89978e53e8d695d35d9e472f8d5b34465ba3c74028650", size = 789907, upload-time = "2026-09-29T00:48:56.036Z" }, + { url = "https://files.pythonhosted.org/packages/da/84/116a3ef19b3acfe81077f0bf2cbc7714a5e94bc8935b7243ab61cb0f1c3c/regex-2026.9.29-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:31b003f9a070335e2a8233ee9b14a3ca8e6d792012ae011f741bf0aaf11744c5", size = 795770, upload-time = "2026-09-29T00:48:58.284Z" }, + { url = "https://files.pythonhosted.org/packages/96/ba/e38c3f203e7e7e18c957d48e6cb6dbf96c11e95a44efa4a480522afc5d6d/regex-2026.9.29-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:c03c6eb6ece86dfdcbb34799efaa339b093132e1aceed491ba5e08fe06cdf699", size = 870671, upload-time = "2026-09-29T00:49:00.506Z" }, + { url = "https://files.pythonhosted.org/packages/2f/0f/9ee0b0cb76c55f63684bd7fff554978e8773b4fc86e2bcb2d50772dc1086/regex-2026.9.29-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:a5300757f8a68f5b6cc33f57338d72a0e3589c5cc9ad5f8504ea06f028be582a", size = 778631, upload-time = "2026-09-29T00:49:02.984Z" }, + { url = "https://files.pythonhosted.org/packages/b6/19/e6e3eeb226af5872c4958002f6edef4e4f40ea4cc5f5665023f2019eb045/regex-2026.9.29-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:80c7cadd3fd2bfde5df8aa0787e315812cad0c313a753095d02f4c2b6c01677b", size = 862187, upload-time = "2026-09-29T00:49:05.264Z" }, + { url = "https://files.pythonhosted.org/packages/5b/62/823c102e106bb2711d6b7dfe5981552fe4467b2969c46a20c5c383cf498c/regex-2026.9.29-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:3f1e6cb402a89457582cd696f982559217d13484a193202c394015297968c86d", size = 798423, upload-time = "2026-09-29T00:49:07.644Z" }, + { url = "https://files.pythonhosted.org/packages/37/e0/e927776258fa70b2f6feffc3be584ffc85ba4c1e20a320f0aee9a632fc7d/regex-2026.9.29-cp315-cp315-win32.whl", hash = "sha256:a64b85a4760337cfefdb27d42da6ed8b58e8cde3f2d57b6ef43e76ef6ea9ef47", size = 274757, upload-time = "2026-09-29T00:49:10.513Z" }, + { url = "https://files.pythonhosted.org/packages/77/04/358de85d1860238e1b4fa98fc2c80c990124a25d2e14739e28cc02c25562/regex-2026.9.29-cp315-cp315-win_amd64.whl", hash = "sha256:b3e445b66c80b4eb4234e855ce94d9adc183eedbd632816228d89930b91b2c5b", size = 283824, upload-time = "2026-09-29T00:49:12.849Z" }, + { url = "https://files.pythonhosted.org/packages/92/d3/d5c5b264784a5ab2b0f8cf620c1eeb4dbf3440d306761905e7d99345bef5/regex-2026.9.29-cp315-cp315-win_arm64.whl", hash = "sha256:8f39588af4731c8923c26810eb3b33f76f17633985e40f59c3cd45a33805a895", size = 283664, upload-time = "2026-09-29T00:49:15.331Z" }, + { url = "https://files.pythonhosted.org/packages/02/dc/f63ec2c201445ce1150fe780f5c56f16a10124d9a9da3a93161dbb0d8892/regex-2026.9.29-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:fb99cc9d45f48895d9d67f6a0b8a57f08d39c174d9f25ad97a313e0470267b1c", size = 501549, upload-time = "2026-09-29T00:49:17.705Z" }, + { url = "https://files.pythonhosted.org/packages/9a/5c/d2a698dc6bfc11fbce03f1cb0249c13284e93b79ed11f893edf6fac431c9/regex-2026.9.29-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:720537c7ea6f80dc61913184edb0ce2497a306b39ef19f28505b322553d52bdb", size = 298187, upload-time = "2026-09-29T00:49:20.171Z" }, + { url = "https://files.pythonhosted.org/packages/85/b7/88dcdb38cd3935d4ee9e9ce9b8e56cb3b3518d1f020acfa7dd62ad289bf8/regex-2026.9.29-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:0fd2c901cc307a745ad4bc87f20060d7a0825a3371d1e93488af22e7a387f78f", size = 296157, upload-time = "2026-09-29T00:49:22.342Z" }, + { url = "https://files.pythonhosted.org/packages/d3/8e/ba6c01dde33a69fc294b38b43f6677baaa5735a6248f39708031a738158a/regex-2026.9.29-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b11b589e00095ec69cf79841a76360f9b079e95b0368a25b5ebb951ab0c157ff", size = 818468, upload-time = "2026-09-29T00:49:24.612Z" }, + { url = "https://files.pythonhosted.org/packages/2a/f1/2586693e3a2d6b1247852593d37a6c17b42a92ee44f7cdcb9a0c1494e64a/regex-2026.9.29-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d7cab119d0df0b9413f106b4d7fc34f2872d3574ed3806fb48959c830b1537da", size = 882825, upload-time = "2026-09-29T00:49:26.996Z" }, + { url = "https://files.pythonhosted.org/packages/30/51/084f3e7bdcd0e9c33665c938cf5d134dc3548cbb4a75f0197ec7bfd754b1/regex-2026.9.29-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b89efc38431793d28b7cd91227e2f952ad7c48df19132b17f43a5fec3c14143b", size = 923314, upload-time = "2026-09-29T00:49:29.822Z" }, + { url = "https://files.pythonhosted.org/packages/5a/f1/066c6fc23b7dc229789c21c880b5ba5ad689fb95fed12e078266f55a1f9b/regex-2026.9.29-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:80a5ea3b4fd9d6a5b9a44f7976a9acaaab35aa3c1f6b29e5bd857dfabaded223", size = 822222, upload-time = "2026-09-29T00:49:32.404Z" }, + { url = "https://files.pythonhosted.org/packages/0a/56/592cd46fdb8f2f8682a1d7fd1310e4d0bcb93fbd0e6bbe4141ac28240227/regex-2026.9.29-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:19959129885356df0e97556856f77eb2888380dac18bed075a7c05c5128c618d", size = 794882, upload-time = "2026-09-29T00:49:35.076Z" }, + { url = "https://files.pythonhosted.org/packages/ee/4d/d65384bb071c864b01aa8314e3a6a687845ebd57588390976edc960c218b/regex-2026.9.29-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:6a1a824fbed817e0a891103886b68f063b1e83cc51bc97192a90a60195a9291f", size = 805887, upload-time = "2026-09-29T00:49:37.395Z" }, + { url = "https://files.pythonhosted.org/packages/65/b6/358de0d8f40d5178e4f7e7e121cfd5b961c812b77a055d11f5079e3f8fd7/regex-2026.9.29-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:1ba8c6a416569ce0d37e83e28a254a61dc99a419084dfb6476cea02d997f74fa", size = 872901, upload-time = "2026-09-29T00:49:39.927Z" }, + { url = "https://files.pythonhosted.org/packages/00/06/6bfded72d043240c6b52bbb5e16f639d81affbf7484b4fe2ec45f3d4afc9/regex-2026.9.29-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:446654b29bfaa30500d80947eda42cef1449dc8a87f4e3cf061cc8485d3a1f0b", size = 782970, upload-time = "2026-09-29T00:49:42.581Z" }, + { url = "https://files.pythonhosted.org/packages/5a/20/9f418a50baa78b3ed8308fcb0cc49e472dd000b7ef935a7295af202ea744/regex-2026.9.29-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:bf3c49863c23a1ad6da9c30351aed6cff8d5ddbeb63c5c8420ae54e98c7d0138", size = 865441, upload-time = "2026-09-29T00:49:45.238Z" }, + { url = "https://files.pythonhosted.org/packages/2c/29/817c7eacdeaf8463123e949bd394c39ad024eea1ec38ddf5ad141da2f3bd/regex-2026.9.29-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:01000ddf0e3ffef97f2413ceb514f6313040106b6d18a03ee00a4fe35c1eb1db", size = 809431, upload-time = "2026-09-29T00:49:47.878Z" }, + { url = "https://files.pythonhosted.org/packages/63/0b/83aab3b5b739947f744135a7a3a446e25433ebc92b05e01aae197ccbfdda/regex-2026.9.29-cp315-cp315t-win32.whl", hash = "sha256:c4e38dd8f39c43a91d2410ad2b85610701b0979342c3df1d69eaf8e838c757d8", size = 276964, upload-time = "2026-09-29T00:49:50.524Z" }, + { url = "https://files.pythonhosted.org/packages/72/f2/6314b5fc68789b5dcc38885bc6e3d6986b34fb3372b7231088ee5cecaa05/regex-2026.9.29-cp315-cp315t-win_amd64.whl", hash = "sha256:e2c89e9b762c57f59d5e99ee8b20202adb892e35f8d3485741340999ca55058e", size = 286487, upload-time = "2026-09-29T00:49:53.224Z" }, + { url = "https://files.pythonhosted.org/packages/56/bc/97b2245c8c7b2dd01f2db74f2bea003cd33c15009b4996a2447f46b5325c/regex-2026.9.29-cp315-cp315t-win_arm64.whl", hash = "sha256:e8c65ef3862a8ad6e86492b6ed9327805dd66904c012bd3649dc67d822ed6c34", size = 285955, upload-time = "2026-09-29T00:49:55.655Z" }, ] [[package]] @@ -4190,16 +4176,16 @@ wheels = [ [[package]] name = "responses" -version = "0.26.2" +version = "0.26.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pyyaml" }, { name = "requests" }, { name = "urllib3" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/f0/1a/4af3e6d659394b809838490b144e4ab8d7ed3b9fecc7ca78f5d2f79b1a3d/responses-0.26.2.tar.gz", hash = "sha256:9c9259b46a8349197edebf43cfa68a87e1a2802ef503ff8b2fecbabc0b45afd8", size = 84030, upload-time = "2026-07-03T16:44:50.325Z" } +sdist = { url = "https://files.pythonhosted.org/packages/9f/47/f216a33221db8eff328987661cf18371afee89c62a62b434b963d6b509c9/responses-0.26.3.tar.gz", hash = "sha256:b0c11ca8131b8b227b8d5108e6ed39772222bd5aab030ed430e8f99057c4c409", size = 86335, upload-time = "2026-08-26T19:17:24.373Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/7c/28/693e1d9ebf72baa062ded80d837a035b86ce75eda5a269379e9e2b1008a8/responses-0.26.2-py3-none-any.whl", hash = "sha256:6fdfeabd58e5ec473b98dfe02e6d46d3173bd8dd573eff2ccccf1a05a5135364", size = 35609, upload-time = "2026-07-03T16:44:49.1Z" }, + { url = "https://files.pythonhosted.org/packages/6d/86/ca7958de70cb0752350575e98229368a3a2f746a2942034b3364e17312bb/responses-0.26.3-py3-none-any.whl", hash = "sha256:74474f799334ac4f37d93b6437ecc3bb1bb5c77a8d31780a338643be2dce0af8", size = 36289, upload-time = "2026-08-26T19:17:23.176Z" }, ] [[package]] @@ -4225,268 +4211,150 @@ wheels = [ [[package]] name = "rich" -version = "14.3.4" +version = "15.0.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markdown-it-py" }, { name = "pygments" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e9/67/cae617f1351490c25a4b8ac3b8b63a4dda609295d8222bad12242dfdc629/rich-14.3.4.tar.gz", hash = "sha256:817e02727f2b25b40ef56f5aa2217f400c8489f79ca8f46ea2b70dd5e14558a9", size = 230524, upload-time = "2026-04-11T02:57:45.419Z" } +sdist = { url = "https://files.pythonhosted.org/packages/c0/8f/0722ca900cc807c13a6a0c696dacf35430f72e0ec571c4275d2371fca3e9/rich-15.0.0.tar.gz", hash = "sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36", size = 230680, upload-time = "2026-04-12T08:24:00.75Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b3/76/6d163cfac87b632216f71879e6b2cf17163f773ff59c00b5ff4900a80fa3/rich-14.3.4-py3-none-any.whl", hash = "sha256:07e7adb4690f68864777b1450859253bed81a99a31ac321ac1817b2313558952", size = 310480, upload-time = "2026-04-11T02:57:47.484Z" }, -] - -[[package]] -name = "rpds-py" -version = "0.30.0" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version < '3.11'", -] -sdist = { url = "https://files.pythonhosted.org/packages/20/af/3f2f423103f1113b36230496629986e0ef7e199d2aa8392452b484b38ced/rpds_py-0.30.0.tar.gz", hash = "sha256:dd8ff7cf90014af0c0f787eea34794ebf6415242ee1d6fa91eaba725cc441e84", size = 69469, upload-time = "2025-11-30T20:24:38.837Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/06/0c/0c411a0ec64ccb6d104dcabe0e713e05e153a9a2c3c2bd2b32ce412166fe/rpds_py-0.30.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:679ae98e00c0e8d68a7fda324e16b90fd5260945b45d3b824c892cec9eea3288", size = 370490, upload-time = "2025-11-30T20:21:33.256Z" }, - { url = "https://files.pythonhosted.org/packages/19/6a/4ba3d0fb7297ebae71171822554abe48d7cab29c28b8f9f2c04b79988c05/rpds_py-0.30.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4cc2206b76b4f576934f0ed374b10d7ca5f457858b157ca52064bdfc26b9fc00", size = 359751, upload-time = "2025-11-30T20:21:34.591Z" }, - { url = "https://files.pythonhosted.org/packages/cd/7c/e4933565ef7f7a0818985d87c15d9d273f1a649afa6a52ea35ad011195ea/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:389a2d49eded1896c3d48b0136ead37c48e221b391c052fba3f4055c367f60a6", size = 389696, upload-time = "2025-11-30T20:21:36.122Z" }, - { url = "https://files.pythonhosted.org/packages/5e/01/6271a2511ad0815f00f7ed4390cf2567bec1d4b1da39e2c27a41e6e3b4de/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:32c8528634e1bf7121f3de08fa85b138f4e0dc47657866630611b03967f041d7", size = 403136, upload-time = "2025-11-30T20:21:37.728Z" }, - { url = "https://files.pythonhosted.org/packages/55/64/c857eb7cd7541e9b4eee9d49c196e833128a55b89a9850a9c9ac33ccf897/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f207f69853edd6f6700b86efb84999651baf3789e78a466431df1331608e5324", size = 524699, upload-time = "2025-11-30T20:21:38.92Z" }, - { url = "https://files.pythonhosted.org/packages/9c/ed/94816543404078af9ab26159c44f9e98e20fe47e2126d5d32c9d9948d10a/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:67b02ec25ba7a9e8fa74c63b6ca44cf5707f2fbfadae3ee8e7494297d56aa9df", size = 412022, upload-time = "2025-11-30T20:21:40.407Z" }, - { url = "https://files.pythonhosted.org/packages/61/b5/707f6cf0066a6412aacc11d17920ea2e19e5b2f04081c64526eb35b5c6e7/rpds_py-0.30.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c0e95f6819a19965ff420f65578bacb0b00f251fefe2c8b23347c37174271f3", size = 390522, upload-time = "2025-11-30T20:21:42.17Z" }, - { url = "https://files.pythonhosted.org/packages/13/4e/57a85fda37a229ff4226f8cbcf09f2a455d1ed20e802ce5b2b4a7f5ed053/rpds_py-0.30.0-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:a452763cc5198f2f98898eb98f7569649fe5da666c2dc6b5ddb10fde5a574221", size = 404579, upload-time = "2025-11-30T20:21:43.769Z" }, - { url = "https://files.pythonhosted.org/packages/f9/da/c9339293513ec680a721e0e16bf2bac3db6e5d7e922488de471308349bba/rpds_py-0.30.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e0b65193a413ccc930671c55153a03ee57cecb49e6227204b04fae512eb657a7", size = 421305, upload-time = "2025-11-30T20:21:44.994Z" }, - { url = "https://files.pythonhosted.org/packages/f9/be/522cb84751114f4ad9d822ff5a1aa3c98006341895d5f084779b99596e5c/rpds_py-0.30.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:858738e9c32147f78b3ac24dc0edb6610000e56dc0f700fd5f651d0a0f0eb9ff", size = 572503, upload-time = "2025-11-30T20:21:46.91Z" }, - { url = "https://files.pythonhosted.org/packages/a2/9b/de879f7e7ceddc973ea6e4629e9b380213a6938a249e94b0cdbcc325bb66/rpds_py-0.30.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:da279aa314f00acbb803da1e76fa18666778e8a8f83484fba94526da5de2cba7", size = 598322, upload-time = "2025-11-30T20:21:48.709Z" }, - { url = "https://files.pythonhosted.org/packages/48/ac/f01fc22efec3f37d8a914fc1b2fb9bcafd56a299edbe96406f3053edea5a/rpds_py-0.30.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:7c64d38fb49b6cdeda16ab49e35fe0da2e1e9b34bc38bd78386530f218b37139", size = 560792, upload-time = "2025-11-30T20:21:50.024Z" }, - { url = "https://files.pythonhosted.org/packages/e2/da/4e2b19d0f131f35b6146425f846563d0ce036763e38913d917187307a671/rpds_py-0.30.0-cp310-cp310-win32.whl", hash = "sha256:6de2a32a1665b93233cde140ff8b3467bdb9e2af2b91079f0333a0974d12d464", size = 221901, upload-time = "2025-11-30T20:21:51.32Z" }, - { url = "https://files.pythonhosted.org/packages/96/cb/156d7a5cf4f78a7cc571465d8aec7a3c447c94f6749c5123f08438bcf7bc/rpds_py-0.30.0-cp310-cp310-win_amd64.whl", hash = "sha256:1726859cd0de969f88dc8673bdd954185b9104e05806be64bcd87badbe313169", size = 235823, upload-time = "2025-11-30T20:21:52.505Z" }, - { url = "https://files.pythonhosted.org/packages/4d/6e/f964e88b3d2abee2a82c1ac8366da848fce1c6d834dc2132c3fda3970290/rpds_py-0.30.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:a2bffea6a4ca9f01b3f8e548302470306689684e61602aa3d141e34da06cf425", size = 370157, upload-time = "2025-11-30T20:21:53.789Z" }, - { url = "https://files.pythonhosted.org/packages/94/ba/24e5ebb7c1c82e74c4e4f33b2112a5573ddc703915b13a073737b59b86e0/rpds_py-0.30.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:dc4f992dfe1e2bc3ebc7444f6c7051b4bc13cd8e33e43511e8ffd13bf407010d", size = 359676, upload-time = "2025-11-30T20:21:55.475Z" }, - { url = "https://files.pythonhosted.org/packages/84/86/04dbba1b087227747d64d80c3b74df946b986c57af0a9f0c98726d4d7a3b/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:422c3cb9856d80b09d30d2eb255d0754b23e090034e1deb4083f8004bd0761e4", size = 389938, upload-time = "2025-11-30T20:21:57.079Z" }, - { url = "https://files.pythonhosted.org/packages/42/bb/1463f0b1722b7f45431bdd468301991d1328b16cffe0b1c2918eba2c4eee/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:07ae8a593e1c3c6b82ca3292efbe73c30b61332fd612e05abee07c79359f292f", size = 402932, upload-time = "2025-11-30T20:21:58.47Z" }, - { url = "https://files.pythonhosted.org/packages/99/ee/2520700a5c1f2d76631f948b0736cdf9b0acb25abd0ca8e889b5c62ac2e3/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:12f90dd7557b6bd57f40abe7747e81e0c0b119bef015ea7726e69fe550e394a4", size = 525830, upload-time = "2025-11-30T20:21:59.699Z" }, - { url = "https://files.pythonhosted.org/packages/e0/ad/bd0331f740f5705cc555a5e17fdf334671262160270962e69a2bdef3bf76/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:99b47d6ad9a6da00bec6aabe5a6279ecd3c06a329d4aa4771034a21e335c3a97", size = 412033, upload-time = "2025-11-30T20:22:00.991Z" }, - { url = "https://files.pythonhosted.org/packages/f8/1e/372195d326549bb51f0ba0f2ecb9874579906b97e08880e7a65c3bef1a99/rpds_py-0.30.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:33f559f3104504506a44bb666b93a33f5d33133765b0c216a5bf2f1e1503af89", size = 390828, upload-time = "2025-11-30T20:22:02.723Z" }, - { url = "https://files.pythonhosted.org/packages/ab/2b/d88bb33294e3e0c76bc8f351a3721212713629ffca1700fa94979cb3eae8/rpds_py-0.30.0-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:946fe926af6e44f3697abbc305ea168c2c31d3e3ef1058cf68f379bf0335a78d", size = 404683, upload-time = "2025-11-30T20:22:04.367Z" }, - { url = "https://files.pythonhosted.org/packages/50/32/c759a8d42bcb5289c1fac697cd92f6fe01a018dd937e62ae77e0e7f15702/rpds_py-0.30.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:495aeca4b93d465efde585977365187149e75383ad2684f81519f504f5c13038", size = 421583, upload-time = "2025-11-30T20:22:05.814Z" }, - { url = "https://files.pythonhosted.org/packages/2b/81/e729761dbd55ddf5d84ec4ff1f47857f4374b0f19bdabfcf929164da3e24/rpds_py-0.30.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d9a0ca5da0386dee0655b4ccdf46119df60e0f10da268d04fe7cc87886872ba7", size = 572496, upload-time = "2025-11-30T20:22:07.713Z" }, - { url = "https://files.pythonhosted.org/packages/14/f6/69066a924c3557c9c30baa6ec3a0aa07526305684c6f86c696b08860726c/rpds_py-0.30.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8d6d1cc13664ec13c1b84241204ff3b12f9bb82464b8ad6e7a5d3486975c2eed", size = 598669, upload-time = "2025-11-30T20:22:09.312Z" }, - { url = "https://files.pythonhosted.org/packages/5f/48/905896b1eb8a05630d20333d1d8ffd162394127b74ce0b0784ae04498d32/rpds_py-0.30.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3896fa1be39912cf0757753826bc8bdc8ca331a28a7c4ae46b7a21280b06bb85", size = 561011, upload-time = "2025-11-30T20:22:11.309Z" }, - { url = "https://files.pythonhosted.org/packages/22/16/cd3027c7e279d22e5eb431dd3c0fbc677bed58797fe7581e148f3f68818b/rpds_py-0.30.0-cp311-cp311-win32.whl", hash = "sha256:55f66022632205940f1827effeff17c4fa7ae1953d2b74a8581baaefb7d16f8c", size = 221406, upload-time = "2025-11-30T20:22:13.101Z" }, - { url = "https://files.pythonhosted.org/packages/fa/5b/e7b7aa136f28462b344e652ee010d4de26ee9fd16f1bfd5811f5153ccf89/rpds_py-0.30.0-cp311-cp311-win_amd64.whl", hash = "sha256:a51033ff701fca756439d641c0ad09a41d9242fa69121c7d8769604a0a629825", size = 236024, upload-time = "2025-11-30T20:22:14.853Z" }, - { url = "https://files.pythonhosted.org/packages/14/a6/364bba985e4c13658edb156640608f2c9e1d3ea3c81b27aa9d889fff0e31/rpds_py-0.30.0-cp311-cp311-win_arm64.whl", hash = "sha256:47b0ef6231c58f506ef0b74d44e330405caa8428e770fec25329ed2cb971a229", size = 229069, upload-time = "2025-11-30T20:22:16.577Z" }, - { url = "https://files.pythonhosted.org/packages/03/e7/98a2f4ac921d82f33e03f3835f5bf3a4a40aa1bfdc57975e74a97b2b4bdd/rpds_py-0.30.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:a161f20d9a43006833cd7068375a94d035714d73a172b681d8881820600abfad", size = 375086, upload-time = "2025-11-30T20:22:17.93Z" }, - { url = "https://files.pythonhosted.org/packages/4d/a1/bca7fd3d452b272e13335db8d6b0b3ecde0f90ad6f16f3328c6fb150c889/rpds_py-0.30.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6abc8880d9d036ecaafe709079969f56e876fcf107f7a8e9920ba6d5a3878d05", size = 359053, upload-time = "2025-11-30T20:22:19.297Z" }, - { url = "https://files.pythonhosted.org/packages/65/1c/ae157e83a6357eceff62ba7e52113e3ec4834a84cfe07fa4b0757a7d105f/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca28829ae5f5d569bb62a79512c842a03a12576375d5ece7d2cadf8abe96ec28", size = 390763, upload-time = "2025-11-30T20:22:21.661Z" }, - { url = "https://files.pythonhosted.org/packages/d4/36/eb2eb8515e2ad24c0bd43c3ee9cd74c33f7ca6430755ccdb240fd3144c44/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a1010ed9524c73b94d15919ca4d41d8780980e1765babf85f9a2f90d247153dd", size = 408951, upload-time = "2025-11-30T20:22:23.408Z" }, - { url = "https://files.pythonhosted.org/packages/d6/65/ad8dc1784a331fabbd740ef6f71ce2198c7ed0890dab595adb9ea2d775a1/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f8d1736cfb49381ba528cd5baa46f82fdc65c06e843dab24dd70b63d09121b3f", size = 514622, upload-time = "2025-11-30T20:22:25.16Z" }, - { url = "https://files.pythonhosted.org/packages/63/8e/0cfa7ae158e15e143fe03993b5bcd743a59f541f5952e1546b1ac1b5fd45/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d948b135c4693daff7bc2dcfc4ec57237a29bd37e60c2fabf5aff2bbacf3e2f1", size = 414492, upload-time = "2025-11-30T20:22:26.505Z" }, - { url = "https://files.pythonhosted.org/packages/60/1b/6f8f29f3f995c7ffdde46a626ddccd7c63aefc0efae881dc13b6e5d5bb16/rpds_py-0.30.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47f236970bccb2233267d89173d3ad2703cd36a0e2a6e92d0560d333871a3d23", size = 394080, upload-time = "2025-11-30T20:22:27.934Z" }, - { url = "https://files.pythonhosted.org/packages/6d/d5/a266341051a7a3ca2f4b750a3aa4abc986378431fc2da508c5034d081b70/rpds_py-0.30.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:2e6ecb5a5bcacf59c3f912155044479af1d0b6681280048b338b28e364aca1f6", size = 408680, upload-time = "2025-11-30T20:22:29.341Z" }, - { url = "https://files.pythonhosted.org/packages/10/3b/71b725851df9ab7a7a4e33cf36d241933da66040d195a84781f49c50490c/rpds_py-0.30.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a8fa71a2e078c527c3e9dc9fc5a98c9db40bcc8a92b4e8858e36d329f8684b51", size = 423589, upload-time = "2025-11-30T20:22:31.469Z" }, - { url = "https://files.pythonhosted.org/packages/00/2b/e59e58c544dc9bd8bd8384ecdb8ea91f6727f0e37a7131baeff8d6f51661/rpds_py-0.30.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:73c67f2db7bc334e518d097c6d1e6fed021bbc9b7d678d6cc433478365d1d5f5", size = 573289, upload-time = "2025-11-30T20:22:32.997Z" }, - { url = "https://files.pythonhosted.org/packages/da/3e/a18e6f5b460893172a7d6a680e86d3b6bc87a54c1f0b03446a3c8c7b588f/rpds_py-0.30.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:5ba103fb455be00f3b1c2076c9d4264bfcb037c976167a6047ed82f23153f02e", size = 599737, upload-time = "2025-11-30T20:22:34.419Z" }, - { url = "https://files.pythonhosted.org/packages/5c/e2/714694e4b87b85a18e2c243614974413c60aa107fd815b8cbc42b873d1d7/rpds_py-0.30.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7cee9c752c0364588353e627da8a7e808a66873672bcb5f52890c33fd965b394", size = 563120, upload-time = "2025-11-30T20:22:35.903Z" }, - { url = "https://files.pythonhosted.org/packages/6f/ab/d5d5e3bcedb0a77f4f613706b750e50a5a3ba1c15ccd3665ecc636c968fd/rpds_py-0.30.0-cp312-cp312-win32.whl", hash = "sha256:1ab5b83dbcf55acc8b08fc62b796ef672c457b17dbd7820a11d6c52c06839bdf", size = 223782, upload-time = "2025-11-30T20:22:37.271Z" }, - { url = "https://files.pythonhosted.org/packages/39/3b/f786af9957306fdc38a74cef405b7b93180f481fb48453a114bb6465744a/rpds_py-0.30.0-cp312-cp312-win_amd64.whl", hash = "sha256:a090322ca841abd453d43456ac34db46e8b05fd9b3b4ac0c78bcde8b089f959b", size = 240463, upload-time = "2025-11-30T20:22:39.021Z" }, - { url = "https://files.pythonhosted.org/packages/f3/d2/b91dc748126c1559042cfe41990deb92c4ee3e2b415f6b5234969ffaf0cc/rpds_py-0.30.0-cp312-cp312-win_arm64.whl", hash = "sha256:669b1805bd639dd2989b281be2cfd951c6121b65e729d9b843e9639ef1fd555e", size = 230868, upload-time = "2025-11-30T20:22:40.493Z" }, - { url = "https://files.pythonhosted.org/packages/ed/dc/d61221eb88ff410de3c49143407f6f3147acf2538c86f2ab7ce65ae7d5f9/rpds_py-0.30.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:f83424d738204d9770830d35290ff3273fbb02b41f919870479fab14b9d303b2", size = 374887, upload-time = "2025-11-30T20:22:41.812Z" }, - { url = "https://files.pythonhosted.org/packages/fd/32/55fb50ae104061dbc564ef15cc43c013dc4a9f4527a1f4d99baddf56fe5f/rpds_py-0.30.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e7536cd91353c5273434b4e003cbda89034d67e7710eab8761fd918ec6c69cf8", size = 358904, upload-time = "2025-11-30T20:22:43.479Z" }, - { url = "https://files.pythonhosted.org/packages/58/70/faed8186300e3b9bdd138d0273109784eea2396c68458ed580f885dfe7ad/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2771c6c15973347f50fece41fc447c054b7ac2ae0502388ce3b6738cd366e3d4", size = 389945, upload-time = "2025-11-30T20:22:44.819Z" }, - { url = "https://files.pythonhosted.org/packages/bd/a8/073cac3ed2c6387df38f71296d002ab43496a96b92c823e76f46b8af0543/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0a59119fc6e3f460315fe9d08149f8102aa322299deaa5cab5b40092345c2136", size = 407783, upload-time = "2025-11-30T20:22:46.103Z" }, - { url = "https://files.pythonhosted.org/packages/77/57/5999eb8c58671f1c11eba084115e77a8899d6e694d2a18f69f0ba471ec8b/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:76fec018282b4ead0364022e3c54b60bf368b9d926877957a8624b58419169b7", size = 515021, upload-time = "2025-11-30T20:22:47.458Z" }, - { url = "https://files.pythonhosted.org/packages/e0/af/5ab4833eadc36c0a8ed2bc5c0de0493c04f6c06de223170bd0798ff98ced/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:692bef75a5525db97318e8cd061542b5a79812d711ea03dbc1f6f8dbb0c5f0d2", size = 414589, upload-time = "2025-11-30T20:22:48.872Z" }, - { url = "https://files.pythonhosted.org/packages/b7/de/f7192e12b21b9e9a68a6d0f249b4af3fdcdff8418be0767a627564afa1f1/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9027da1ce107104c50c81383cae773ef5c24d296dd11c99e2629dbd7967a20c6", size = 394025, upload-time = "2025-11-30T20:22:50.196Z" }, - { url = "https://files.pythonhosted.org/packages/91/c4/fc70cd0249496493500e7cc2de87504f5aa6509de1e88623431fec76d4b6/rpds_py-0.30.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:9cf69cdda1f5968a30a359aba2f7f9aa648a9ce4b580d6826437f2b291cfc86e", size = 408895, upload-time = "2025-11-30T20:22:51.87Z" }, - { url = "https://files.pythonhosted.org/packages/58/95/d9275b05ab96556fefff73a385813eb66032e4c99f411d0795372d9abcea/rpds_py-0.30.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a4796a717bf12b9da9d3ad002519a86063dcac8988b030e405704ef7d74d2d9d", size = 422799, upload-time = "2025-11-30T20:22:53.341Z" }, - { url = "https://files.pythonhosted.org/packages/06/c1/3088fc04b6624eb12a57eb814f0d4997a44b0d208d6cace713033ff1a6ba/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5d4c2aa7c50ad4728a094ebd5eb46c452e9cb7edbfdb18f9e1221f597a73e1e7", size = 572731, upload-time = "2025-11-30T20:22:54.778Z" }, - { url = "https://files.pythonhosted.org/packages/d8/42/c612a833183b39774e8ac8fecae81263a68b9583ee343db33ab571a7ce55/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ba81a9203d07805435eb06f536d95a266c21e5b2dfbf6517748ca40c98d19e31", size = 599027, upload-time = "2025-11-30T20:22:56.212Z" }, - { url = "https://files.pythonhosted.org/packages/5f/60/525a50f45b01d70005403ae0e25f43c0384369ad24ffe46e8d9068b50086/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:945dccface01af02675628334f7cf49c2af4c1c904748efc5cf7bbdf0b579f95", size = 563020, upload-time = "2025-11-30T20:22:58.2Z" }, - { url = "https://files.pythonhosted.org/packages/0b/5d/47c4655e9bcd5ca907148535c10e7d489044243cc9941c16ed7cd53be91d/rpds_py-0.30.0-cp313-cp313-win32.whl", hash = "sha256:b40fb160a2db369a194cb27943582b38f79fc4887291417685f3ad693c5a1d5d", size = 223139, upload-time = "2025-11-30T20:23:00.209Z" }, - { url = "https://files.pythonhosted.org/packages/f2/e1/485132437d20aa4d3e1d8b3fb5a5e65aa8139f1e097080c2a8443201742c/rpds_py-0.30.0-cp313-cp313-win_amd64.whl", hash = "sha256:806f36b1b605e2d6a72716f321f20036b9489d29c51c91f4dd29a3e3afb73b15", size = 240224, upload-time = "2025-11-30T20:23:02.008Z" }, - { url = "https://files.pythonhosted.org/packages/24/95/ffd128ed1146a153d928617b0ef673960130be0009c77d8fbf0abe306713/rpds_py-0.30.0-cp313-cp313-win_arm64.whl", hash = "sha256:d96c2086587c7c30d44f31f42eae4eac89b60dabbac18c7669be3700f13c3ce1", size = 230645, upload-time = "2025-11-30T20:23:03.43Z" }, - { url = "https://files.pythonhosted.org/packages/ff/1b/b10de890a0def2a319a2626334a7f0ae388215eb60914dbac8a3bae54435/rpds_py-0.30.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:eb0b93f2e5c2189ee831ee43f156ed34e2a89a78a66b98cadad955972548be5a", size = 364443, upload-time = "2025-11-30T20:23:04.878Z" }, - { url = "https://files.pythonhosted.org/packages/0d/bf/27e39f5971dc4f305a4fb9c672ca06f290f7c4e261c568f3dea16a410d47/rpds_py-0.30.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:922e10f31f303c7c920da8981051ff6d8c1a56207dbdf330d9047f6d30b70e5e", size = 353375, upload-time = "2025-11-30T20:23:06.342Z" }, - { url = "https://files.pythonhosted.org/packages/40/58/442ada3bba6e8e6615fc00483135c14a7538d2ffac30e2d933ccf6852232/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cdc62c8286ba9bf7f47befdcea13ea0e26bf294bda99758fd90535cbaf408000", size = 383850, upload-time = "2025-11-30T20:23:07.825Z" }, - { url = "https://files.pythonhosted.org/packages/14/14/f59b0127409a33c6ef6f5c1ebd5ad8e32d7861c9c7adfa9a624fc3889f6c/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:47f9a91efc418b54fb8190a6b4aa7813a23fb79c51f4bb84e418f5476c38b8db", size = 392812, upload-time = "2025-11-30T20:23:09.228Z" }, - { url = "https://files.pythonhosted.org/packages/b3/66/e0be3e162ac299b3a22527e8913767d869e6cc75c46bd844aa43fb81ab62/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1f3587eb9b17f3789ad50824084fa6f81921bbf9a795826570bda82cb3ed91f2", size = 517841, upload-time = "2025-11-30T20:23:11.186Z" }, - { url = "https://files.pythonhosted.org/packages/3d/55/fa3b9cf31d0c963ecf1ba777f7cf4b2a2c976795ac430d24a1f43d25a6ba/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:39c02563fc592411c2c61d26b6c5fe1e51eaa44a75aa2c8735ca88b0d9599daa", size = 408149, upload-time = "2025-11-30T20:23:12.864Z" }, - { url = "https://files.pythonhosted.org/packages/60/ca/780cf3b1a32b18c0f05c441958d3758f02544f1d613abf9488cd78876378/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:51a1234d8febafdfd33a42d97da7a43f5dcb120c1060e352a3fbc0c6d36e2083", size = 383843, upload-time = "2025-11-30T20:23:14.638Z" }, - { url = "https://files.pythonhosted.org/packages/82/86/d5f2e04f2aa6247c613da0c1dd87fcd08fa17107e858193566048a1e2f0a/rpds_py-0.30.0-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:eb2c4071ab598733724c08221091e8d80e89064cd472819285a9ab0f24bcedb9", size = 396507, upload-time = "2025-11-30T20:23:16.105Z" }, - { url = "https://files.pythonhosted.org/packages/4b/9a/453255d2f769fe44e07ea9785c8347edaf867f7026872e76c1ad9f7bed92/rpds_py-0.30.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6bdfdb946967d816e6adf9a3d8201bfad269c67efe6cefd7093ef959683c8de0", size = 414949, upload-time = "2025-11-30T20:23:17.539Z" }, - { url = "https://files.pythonhosted.org/packages/a3/31/622a86cdc0c45d6df0e9ccb6becdba5074735e7033c20e401a6d9d0e2ca0/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c77afbd5f5250bf27bf516c7c4a016813eb2d3e116139aed0096940c5982da94", size = 565790, upload-time = "2025-11-30T20:23:19.029Z" }, - { url = "https://files.pythonhosted.org/packages/1c/5d/15bbf0fb4a3f58a3b1c67855ec1efcc4ceaef4e86644665fff03e1b66d8d/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:61046904275472a76c8c90c9ccee9013d70a6d0f73eecefd38c1ae7c39045a08", size = 590217, upload-time = "2025-11-30T20:23:20.885Z" }, - { url = "https://files.pythonhosted.org/packages/6d/61/21b8c41f68e60c8cc3b2e25644f0e3681926020f11d06ab0b78e3c6bbff1/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c5f36a861bc4b7da6516dbdf302c55313afa09b81931e8280361a4f6c9a2d27", size = 555806, upload-time = "2025-11-30T20:23:22.488Z" }, - { url = "https://files.pythonhosted.org/packages/f9/39/7e067bb06c31de48de3eb200f9fc7c58982a4d3db44b07e73963e10d3be9/rpds_py-0.30.0-cp313-cp313t-win32.whl", hash = "sha256:3d4a69de7a3e50ffc214ae16d79d8fbb0922972da0356dcf4d0fdca2878559c6", size = 211341, upload-time = "2025-11-30T20:23:24.449Z" }, - { url = "https://files.pythonhosted.org/packages/0a/4d/222ef0b46443cf4cf46764d9c630f3fe4abaa7245be9417e56e9f52b8f65/rpds_py-0.30.0-cp313-cp313t-win_amd64.whl", hash = "sha256:f14fc5df50a716f7ece6a80b6c78bb35ea2ca47c499e422aa4463455dd96d56d", size = 225768, upload-time = "2025-11-30T20:23:25.908Z" }, - { url = "https://files.pythonhosted.org/packages/86/81/dad16382ebbd3d0e0328776d8fd7ca94220e4fa0798d1dc5e7da48cb3201/rpds_py-0.30.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:68f19c879420aa08f61203801423f6cd5ac5f0ac4ac82a2368a9fcd6a9a075e0", size = 362099, upload-time = "2025-11-30T20:23:27.316Z" }, - { url = "https://files.pythonhosted.org/packages/2b/60/19f7884db5d5603edf3c6bce35408f45ad3e97e10007df0e17dd57af18f8/rpds_py-0.30.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ec7c4490c672c1a0389d319b3a9cfcd098dcdc4783991553c332a15acf7249be", size = 353192, upload-time = "2025-11-30T20:23:29.151Z" }, - { url = "https://files.pythonhosted.org/packages/bf/c4/76eb0e1e72d1a9c4703c69607cec123c29028bff28ce41588792417098ac/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f251c812357a3fed308d684a5079ddfb9d933860fc6de89f2b7ab00da481e65f", size = 384080, upload-time = "2025-11-30T20:23:30.785Z" }, - { url = "https://files.pythonhosted.org/packages/72/87/87ea665e92f3298d1b26d78814721dc39ed8d2c74b86e83348d6b48a6f31/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ac98b175585ecf4c0348fd7b29c3864bda53b805c773cbf7bfdaffc8070c976f", size = 394841, upload-time = "2025-11-30T20:23:32.209Z" }, - { url = "https://files.pythonhosted.org/packages/77/ad/7783a89ca0587c15dcbf139b4a8364a872a25f861bdb88ed99f9b0dec985/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3e62880792319dbeb7eb866547f2e35973289e7d5696c6e295476448f5b63c87", size = 516670, upload-time = "2025-11-30T20:23:33.742Z" }, - { url = "https://files.pythonhosted.org/packages/5b/3c/2882bdac942bd2172f3da574eab16f309ae10a3925644e969536553cb4ee/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4e7fc54e0900ab35d041b0601431b0a0eb495f0851a0639b6ef90f7741b39a18", size = 408005, upload-time = "2025-11-30T20:23:35.253Z" }, - { url = "https://files.pythonhosted.org/packages/ce/81/9a91c0111ce1758c92516a3e44776920b579d9a7c09b2b06b642d4de3f0f/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47e77dc9822d3ad616c3d5759ea5631a75e5809d5a28707744ef79d7a1bcfcad", size = 382112, upload-time = "2025-11-30T20:23:36.842Z" }, - { url = "https://files.pythonhosted.org/packages/cf/8e/1da49d4a107027e5fbc64daeab96a0706361a2918da10cb41769244b805d/rpds_py-0.30.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:b4dc1a6ff022ff85ecafef7979a2c6eb423430e05f1165d6688234e62ba99a07", size = 399049, upload-time = "2025-11-30T20:23:38.343Z" }, - { url = "https://files.pythonhosted.org/packages/df/5a/7ee239b1aa48a127570ec03becbb29c9d5a9eb092febbd1699d567cae859/rpds_py-0.30.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4559c972db3a360808309e06a74628b95eaccbf961c335c8fe0d590cf587456f", size = 415661, upload-time = "2025-11-30T20:23:40.263Z" }, - { url = "https://files.pythonhosted.org/packages/70/ea/caa143cf6b772f823bc7929a45da1fa83569ee49b11d18d0ada7f5ee6fd6/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:0ed177ed9bded28f8deb6ab40c183cd1192aa0de40c12f38be4d59cd33cb5c65", size = 565606, upload-time = "2025-11-30T20:23:42.186Z" }, - { url = "https://files.pythonhosted.org/packages/64/91/ac20ba2d69303f961ad8cf55bf7dbdb4763f627291ba3d0d7d67333cced9/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ad1fa8db769b76ea911cb4e10f049d80bf518c104f15b3edb2371cc65375c46f", size = 591126, upload-time = "2025-11-30T20:23:44.086Z" }, - { url = "https://files.pythonhosted.org/packages/21/20/7ff5f3c8b00c8a95f75985128c26ba44503fb35b8e0259d812766ea966c7/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:46e83c697b1f1c72b50e5ee5adb4353eef7406fb3f2043d64c33f20ad1c2fc53", size = 553371, upload-time = "2025-11-30T20:23:46.004Z" }, - { url = "https://files.pythonhosted.org/packages/72/c7/81dadd7b27c8ee391c132a6b192111ca58d866577ce2d9b0ca157552cce0/rpds_py-0.30.0-cp314-cp314-win32.whl", hash = "sha256:ee454b2a007d57363c2dfd5b6ca4a5d7e2c518938f8ed3b706e37e5d470801ed", size = 215298, upload-time = "2025-11-30T20:23:47.696Z" }, - { url = "https://files.pythonhosted.org/packages/3e/d2/1aaac33287e8cfb07aab2e6b8ac1deca62f6f65411344f1433c55e6f3eb8/rpds_py-0.30.0-cp314-cp314-win_amd64.whl", hash = "sha256:95f0802447ac2d10bcc69f6dc28fe95fdf17940367b21d34e34c737870758950", size = 228604, upload-time = "2025-11-30T20:23:49.501Z" }, - { url = "https://files.pythonhosted.org/packages/e8/95/ab005315818cc519ad074cb7784dae60d939163108bd2b394e60dc7b5461/rpds_py-0.30.0-cp314-cp314-win_arm64.whl", hash = "sha256:613aa4771c99f03346e54c3f038e4cc574ac09a3ddfb0e8878487335e96dead6", size = 222391, upload-time = "2025-11-30T20:23:50.96Z" }, - { url = "https://files.pythonhosted.org/packages/9e/68/154fe0194d83b973cdedcdcc88947a2752411165930182ae41d983dcefa6/rpds_py-0.30.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:7e6ecfcb62edfd632e56983964e6884851786443739dbfe3582947e87274f7cb", size = 364868, upload-time = "2025-11-30T20:23:52.494Z" }, - { url = "https://files.pythonhosted.org/packages/83/69/8bbc8b07ec854d92a8b75668c24d2abcb1719ebf890f5604c61c9369a16f/rpds_py-0.30.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a1d0bc22a7cdc173fedebb73ef81e07faef93692b8c1ad3733b67e31e1b6e1b8", size = 353747, upload-time = "2025-11-30T20:23:54.036Z" }, - { url = "https://files.pythonhosted.org/packages/ab/00/ba2e50183dbd9abcce9497fa5149c62b4ff3e22d338a30d690f9af970561/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d08f00679177226c4cb8c5265012eea897c8ca3b93f429e546600c971bcbae7", size = 383795, upload-time = "2025-11-30T20:23:55.556Z" }, - { url = "https://files.pythonhosted.org/packages/05/6f/86f0272b84926bcb0e4c972262f54223e8ecc556b3224d281e6598fc9268/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5965af57d5848192c13534f90f9dd16464f3c37aaf166cc1da1cae1fd5a34898", size = 393330, upload-time = "2025-11-30T20:23:57.033Z" }, - { url = "https://files.pythonhosted.org/packages/cb/e9/0e02bb2e6dc63d212641da45df2b0bf29699d01715913e0d0f017ee29438/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9a4e86e34e9ab6b667c27f3211ca48f73dba7cd3d90f8d5b11be56e5dbc3fb4e", size = 518194, upload-time = "2025-11-30T20:23:58.637Z" }, - { url = "https://files.pythonhosted.org/packages/ee/ca/be7bca14cf21513bdf9c0606aba17d1f389ea2b6987035eb4f62bd923f25/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5d3e6b26f2c785d65cc25ef1e5267ccbe1b069c5c21b8cc724efee290554419", size = 408340, upload-time = "2025-11-30T20:24:00.2Z" }, - { url = "https://files.pythonhosted.org/packages/c2/c7/736e00ebf39ed81d75544c0da6ef7b0998f8201b369acf842f9a90dc8fce/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:626a7433c34566535b6e56a1b39a7b17ba961e97ce3b80ec62e6f1312c025551", size = 383765, upload-time = "2025-11-30T20:24:01.759Z" }, - { url = "https://files.pythonhosted.org/packages/4a/3f/da50dfde9956aaf365c4adc9533b100008ed31aea635f2b8d7b627e25b49/rpds_py-0.30.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:acd7eb3f4471577b9b5a41baf02a978e8bdeb08b4b355273994f8b87032000a8", size = 396834, upload-time = "2025-11-30T20:24:03.687Z" }, - { url = "https://files.pythonhosted.org/packages/4e/00/34bcc2565b6020eab2623349efbdec810676ad571995911f1abdae62a3a0/rpds_py-0.30.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe5fa731a1fa8a0a56b0977413f8cacac1768dad38d16b3a296712709476fbd5", size = 415470, upload-time = "2025-11-30T20:24:05.232Z" }, - { url = "https://files.pythonhosted.org/packages/8c/28/882e72b5b3e6f718d5453bd4d0d9cf8df36fddeb4ddbbab17869d5868616/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:74a3243a411126362712ee1524dfc90c650a503502f135d54d1b352bd01f2404", size = 565630, upload-time = "2025-11-30T20:24:06.878Z" }, - { url = "https://files.pythonhosted.org/packages/3b/97/04a65539c17692de5b85c6e293520fd01317fd878ea1995f0367d4532fb1/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:3e8eeb0544f2eb0d2581774be4c3410356eba189529a6b3e36bbbf9696175856", size = 591148, upload-time = "2025-11-30T20:24:08.445Z" }, - { url = "https://files.pythonhosted.org/packages/85/70/92482ccffb96f5441aab93e26c4d66489eb599efdcf96fad90c14bbfb976/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:dbd936cde57abfee19ab3213cf9c26be06d60750e60a8e4dd85d1ab12c8b1f40", size = 556030, upload-time = "2025-11-30T20:24:10.956Z" }, - { url = "https://files.pythonhosted.org/packages/20/53/7c7e784abfa500a2b6b583b147ee4bb5a2b3747a9166bab52fec4b5b5e7d/rpds_py-0.30.0-cp314-cp314t-win32.whl", hash = "sha256:dc824125c72246d924f7f796b4f63c1e9dc810c7d9e2355864b3c3a73d59ade0", size = 211570, upload-time = "2025-11-30T20:24:12.735Z" }, - { url = "https://files.pythonhosted.org/packages/d0/02/fa464cdfbe6b26e0600b62c528b72d8608f5cc49f96b8d6e38c95d60c676/rpds_py-0.30.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27f4b0e92de5bfbc6f86e43959e6edd1425c33b5e69aab0984a72047f2bcf1e3", size = 226532, upload-time = "2025-11-30T20:24:14.634Z" }, - { url = "https://files.pythonhosted.org/packages/69/71/3f34339ee70521864411f8b6992e7ab13ac30d8e4e3309e07c7361767d91/rpds_py-0.30.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:c2262bdba0ad4fc6fb5545660673925c2d2a5d9e2e0fb603aad545427be0fc58", size = 372292, upload-time = "2025-11-30T20:24:16.537Z" }, - { url = "https://files.pythonhosted.org/packages/57/09/f183df9b8f2d66720d2ef71075c59f7e1b336bec7ee4c48f0a2b06857653/rpds_py-0.30.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:ee6af14263f25eedc3bb918a3c04245106a42dfd4f5c2285ea6f997b1fc3f89a", size = 362128, upload-time = "2025-11-30T20:24:18.086Z" }, - { url = "https://files.pythonhosted.org/packages/7a/68/5c2594e937253457342e078f0cc1ded3dd7b2ad59afdbf2d354869110a02/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3adbb8179ce342d235c31ab8ec511e66c73faa27a47e076ccc92421add53e2bb", size = 391542, upload-time = "2025-11-30T20:24:20.092Z" }, - { url = "https://files.pythonhosted.org/packages/49/5c/31ef1afd70b4b4fbdb2800249f34c57c64beb687495b10aec0365f53dfc4/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:250fa00e9543ac9b97ac258bd37367ff5256666122c2d0f2bc97577c60a1818c", size = 404004, upload-time = "2025-11-30T20:24:22.231Z" }, - { url = "https://files.pythonhosted.org/packages/e3/63/0cfbea38d05756f3440ce6534d51a491d26176ac045e2707adc99bb6e60a/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9854cf4f488b3d57b9aaeb105f06d78e5529d3145b1e4a41750167e8c213c6d3", size = 527063, upload-time = "2025-11-30T20:24:24.302Z" }, - { url = "https://files.pythonhosted.org/packages/42/e6/01e1f72a2456678b0f618fc9a1a13f882061690893c192fcad9f2926553a/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:993914b8e560023bc0a8bf742c5f303551992dcb85e247b1e5c7f4a7d145bda5", size = 413099, upload-time = "2025-11-30T20:24:25.916Z" }, - { url = "https://files.pythonhosted.org/packages/b8/25/8df56677f209003dcbb180765520c544525e3ef21ea72279c98b9aa7c7fb/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58edca431fb9b29950807e301826586e5bbf24163677732429770a697ffe6738", size = 392177, upload-time = "2025-11-30T20:24:27.834Z" }, - { url = "https://files.pythonhosted.org/packages/4a/b4/0a771378c5f16f8115f796d1f437950158679bcd2a7c68cf251cfb00ed5b/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_31_riscv64.whl", hash = "sha256:dea5b552272a944763b34394d04577cf0f9bd013207bc32323b5a89a53cf9c2f", size = 406015, upload-time = "2025-11-30T20:24:29.457Z" }, - { url = "https://files.pythonhosted.org/packages/36/d8/456dbba0af75049dc6f63ff295a2f92766b9d521fa00de67a2bd6427d57a/rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ba3af48635eb83d03f6c9735dfb21785303e73d22ad03d489e88adae6eab8877", size = 423736, upload-time = "2025-11-30T20:24:31.22Z" }, - { url = "https://files.pythonhosted.org/packages/13/64/b4d76f227d5c45a7e0b796c674fd81b0a6c4fbd48dc29271857d8219571c/rpds_py-0.30.0-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:dff13836529b921e22f15cb099751209a60009731a68519630a24d61f0b1b30a", size = 573981, upload-time = "2025-11-30T20:24:32.934Z" }, - { url = "https://files.pythonhosted.org/packages/20/91/092bacadeda3edf92bf743cc96a7be133e13a39cdbfd7b5082e7ab638406/rpds_py-0.30.0-pp311-pypy311_pp73-musllinux_1_2_i686.whl", hash = "sha256:1b151685b23929ab7beec71080a8889d4d6d9fa9a983d213f07121205d48e2c4", size = 599782, upload-time = "2025-11-30T20:24:35.169Z" }, - { url = "https://files.pythonhosted.org/packages/d1/b7/b95708304cd49b7b6f82fdd039f1748b66ec2b21d6a45180910802f1abf1/rpds_py-0.30.0-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:ac37f9f516c51e5753f27dfdef11a88330f04de2d564be3991384b2f3535d02e", size = 562191, upload-time = "2025-11-30T20:24:36.853Z" }, + { url = "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", hash = "sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", size = 310654, upload-time = "2026-04-12T08:24:02.83Z" }, ] [[package]] name = "rpds-py" -version = "2026.6.3" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.14'", - "python_full_version == '3.13.*'", - "python_full_version >= '3.11' and python_full_version < '3.13'", -] -sdist = { url = "https://files.pythonhosted.org/packages/aa/2a/9618a122aeb2a169a28b03889a2995fe297588964333d4a7d67bdf46e147/rpds_py-2026.6.3.tar.gz", hash = "sha256:1cebd1337c242e4ec2293e541f712b2da849b29f48f0c293684b71c0632625d4", size = 64051, upload-time = "2026-06-30T07:17:53.009Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/94/1f/a2dca5ffdbf1d475ffc4e80e4d5d720ff3a00f691795910116960ee12511/rpds_py-2026.6.3-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:7b689145a1485c335569bd056464f3243a29af7ed3871c7be31ad624ba239bc7", size = 342174, upload-time = "2026-06-30T07:14:54.821Z" }, - { url = "https://files.pythonhosted.org/packages/4d/dc/323d08583c0832911768663d1944f0107fcd4088704858d84b5e06d105a0/rpds_py-2026.6.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:db08f45aecde626498fb3df07bcf6d2ec040af42e859a4f5040d79c200342911", size = 345513, upload-time = "2026-06-30T07:14:56.515Z" }, - { url = "https://files.pythonhosted.org/packages/0b/2a/e31989834d18d2f26ec1d2774c5b1eb3331df4ea8ada525175294c94b48a/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:acc992ab27b15f852c76755eb2ab7dce86585ddadba6fa5946e58556088845b4", size = 373783, upload-time = "2026-06-30T07:14:57.736Z" }, - { url = "https://files.pythonhosted.org/packages/87/fe/e80107ee3639585c9941c17d6a42cd65325022f656c023191fce78c324c8/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7f88d653e7b3b779d71ae7454e20dcc9b6bae903f33c269db9f2be41bda3f261", size = 378316, upload-time = "2026-06-30T07:14:59.077Z" }, - { url = "https://files.pythonhosted.org/packages/22/6f/81e3adf81acfb6fa694de2a6e4e7d8863121e3e0799e0a7725e6cf5679c4/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e52655eaf81e32593abedaa4bfe33170c8cfedf3365ed9be6e11e07f148f0278", size = 499423, upload-time = "2026-06-30T07:15:00.488Z" }, - { url = "https://files.pythonhosted.org/packages/2d/9a/41263969df0ce3d9af2a96d5005a288200af1989aed3354bfceb5fc0b21f/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dfcc8b909769d19db55c7cc9541eb64b9b774b1057ffffb4f1048070475bb9f9", size = 386077, upload-time = "2026-06-30T07:15:01.911Z" }, - { url = "https://files.pythonhosted.org/packages/5e/19/7e98f468bd50346faff5b10e5297374b443bfdddacc8e9fbc65984539597/rpds_py-2026.6.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c1255b302953c86a486b81d330d5ee1d5bd937691ce271b6be0ef0e299eaab7", size = 371315, upload-time = "2026-06-30T07:15:03.317Z" }, - { url = "https://files.pythonhosted.org/packages/99/3c/2b973b4d371906a134b03decfea7f5d9835a2c6d263454392e15b64b5b18/rpds_py-2026.6.3-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:8d2294a31386bfa251d8c8a39472beee17db67d4f1a6eabea665d35c9a4461c3", size = 383502, upload-time = "2026-06-30T07:15:04.627Z" }, - { url = "https://files.pythonhosted.org/packages/98/2a/12e2799500af0a307bca76b63361c51f9fe479223561489c29eea1f2ee41/rpds_py-2026.6.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f8f23ead891a3b762f35ab3b04623da7056545b48aa60d59957e6789914545da", size = 402673, upload-time = "2026-06-30T07:15:05.856Z" }, - { url = "https://files.pythonhosted.org/packages/2d/e3/21e5872d165fe08be4f229e3d5ee9d90019c0bf0e5538de60dbd54009450/rpds_py-2026.6.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:421aba32367055614287a4292b6a17f1939c9452299f7a0209c117e990b646d4", size = 549964, upload-time = "2026-06-30T07:15:07.159Z" }, - { url = "https://files.pythonhosted.org/packages/1a/d0/5ee0fe36844297de8123bee27bc12078c1a7416ad9f1b8a8ca18d6b0c0ac/rpds_py-2026.6.3-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:1e5822dfc2f0d4ab7e745eaa6d85945069329beeccef965af3f3bb26058fcab6", size = 615446, upload-time = "2026-06-30T07:15:08.531Z" }, - { url = "https://files.pythonhosted.org/packages/b1/80/1ea5873cb683f2fbe5f21b23ea1f6d179ead19f3c5b249b7eb5dca568ef2/rpds_py-2026.6.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:83e35b57523816c8613fd0776b40cd8bb9f596b37ddd2692eb4a6bb5ab2f8c93", size = 576975, upload-time = "2026-06-30T07:15:09.97Z" }, - { url = "https://files.pythonhosted.org/packages/c9/e1/90ef639217a5ddb15b7f4f61b1c33911fd044ad03c311bafdd2bcab85582/rpds_py-2026.6.3-cp311-cp311-win32.whl", hash = "sha256:de3eceba0b683bcbb1ab93da016d0270df1f9ae7be716b40214c5dafac6ea45a", size = 204453, upload-time = "2026-06-30T07:15:11.324Z" }, - { url = "https://files.pythonhosted.org/packages/f2/b7/b7a1695d7af36f521fb11e80d6d3adbd744f73b921859bd3c2a2c0dc706f/rpds_py-2026.6.3-cp311-cp311-win_amd64.whl", hash = "sha256:2c54a076ca4d370980ab57bc0e31df57bbe8d41340436a90ef8b1219a3cbb127", size = 223219, upload-time = "2026-06-30T07:15:12.476Z" }, - { url = "https://files.pythonhosted.org/packages/d7/a2/145afacf796e4506062825941176ad9445c2dcf2b3b6a1f13d3030a15e19/rpds_py-2026.6.3-cp311-cp311-win_arm64.whl", hash = "sha256:168c733a7112e071bb7a66460e667edfcff06c017a3c523f7a8a8e08d0140804", size = 219137, upload-time = "2026-06-30T07:15:13.631Z" }, - { url = "https://files.pythonhosted.org/packages/5c/be/2e8974163072e7bab7df1a5acd54c4498e75e35d6d18b864d3a9d5dadc92/rpds_py-2026.6.3-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:a0811d33247c3d6128a3001d763f2aa056bb3425204335400ac54f89eec3a0d0", size = 343691, upload-time = "2026-06-30T07:15:14.96Z" }, - { url = "https://files.pythonhosted.org/packages/a4/73/319dfa745dd668efe89309141ded489126461fcecd2b8f3a3cda185129b6/rpds_py-2026.6.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:538949e262e46caa31ac01bdb3c1e8f642622922cacbabbae6a8445d9dc33eaf", size = 338542, upload-time = "2026-06-30T07:15:16.267Z" }, - { url = "https://files.pythonhosted.org/packages/21/63/4239893be1c4d09b709b1a8f6be4188f0870084ff547f46606b8a75f1b03/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55927d532399c2c646100ff7feb48eaa940ad70f42cd68e1328f3ded9f81ca24", size = 368180, upload-time = "2026-06-30T07:15:17.62Z" }, - { url = "https://files.pythonhosted.org/packages/1c/ca/9c5de382225234ceb37b1844ebdb140db12b2a278bb9efe2fcd19f6c82ce/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f56f1695bc5c0871cbc33dc0130fcf503aab0c57dcc5a6700a4f49eba4f2652e", size = 375067, upload-time = "2026-06-30T07:15:18.952Z" }, - { url = "https://files.pythonhosted.org/packages/87/dc/863f69d1bf04ade34b7fe0d59b9fdf6f0135fe2d7cbca74f1d665589559d/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:270b293dae9058fc9fcedab50f13cebf46fb8ed1d1d54e0521a9da5d6b211975", size = 490509, upload-time = "2026-06-30T07:15:20.434Z" }, - { url = "https://files.pythonhosted.org/packages/ce/ef/eac16a12048b45ec7c7fa94f2be3438a5f26bf9cc8580b18a1cfd609b7f6/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:127565fead0a10943b282957bd5447804ff3160ad79f2ad2635e6d249e380680", size = 382754, upload-time = "2026-06-30T07:15:21.831Z" }, - { url = "https://files.pythonhosted.org/packages/04/8f/d2f3f532616be4d06c316ef119683e832bd3d41e112bf3a88f4151c95b17/rpds_py-2026.6.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ecabd69db66de867690f9797f2f8fa27ba501bbc24540cbdbdc649cd15888ba6", size = 366189, upload-time = "2026-06-30T07:15:23.371Z" }, - { url = "https://files.pythonhosted.org/packages/e3/29/41a7b0e98a4b44cd676ab7598419623373eb43b20be68c084935c1a8cf88/rpds_py-2026.6.3-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:58eadac9cd119677b60e1cf8ac4052f35949d71b8a9e5556efccbe82533cf22a", size = 377750, upload-time = "2026-06-30T07:15:24.659Z" }, - { url = "https://files.pythonhosted.org/packages/2e/05/ecda0bec46f9a1565090bcdc941d023f6a25aff85fda28f89f8d19878152/rpds_py-2026.6.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7491ee23305ac3eb59e492b6945881f5cd77a6f731061a3f25b77fd40f9e99a4", size = 395576, upload-time = "2026-06-30T07:15:25.987Z" }, - { url = "https://files.pythonhosted.org/packages/68/a8/6ed52f03ee6cb854ce78785cc9a9a672eb880e83fd7224d471f667d151f1/rpds_py-2026.6.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2c99f7e8ccb3dd6e3e4bfeac657a7b208c9bac8075f4b078c02d7404c34107fa", size = 543807, upload-time = "2026-06-30T07:15:27.356Z" }, - { url = "https://files.pythonhosted.org/packages/8f/d6/156c0d3eea27ba09b92562ba2364ba124c0a061b199e17eac637cd25a5e2/rpds_py-2026.6.3-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:62698275682bf121181861295c9181e789030a2d516071f5b8f3c23c170cd0fc", size = 611187, upload-time = "2026-06-30T07:15:28.931Z" }, - { url = "https://files.pythonhosted.org/packages/f1/31/774212ed989c62f7f310220089f9b0a3fb8f40f5443d1727abd5d9f52bc9/rpds_py-2026.6.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a214c993455f99a89aaeadc9b21241900037adc9d97203e374d75513c5911822", size = 573030, upload-time = "2026-06-30T07:15:30.553Z" }, - { url = "https://files.pythonhosted.org/packages/c9/50/22f73127a41f1ce4f87fe39aadfb9a126345801c274aa93ae88456249327/rpds_py-2026.6.3-cp312-cp312-win32.whl", hash = "sha256:501f9f04a588d6a09179368c57071301445191767c64e4b52a6aa9871f1ef5ed", size = 202185, upload-time = "2026-06-30T07:15:32.027Z" }, - { url = "https://files.pythonhosted.org/packages/04/3a/f0ee4d4dde9d3b69dedf1b5f74e7a40017046d55052d173e418c6a94f960/rpds_py-2026.6.3-cp312-cp312-win_amd64.whl", hash = "sha256:2c958bf94822e9290a40aaf2a822d4bc5c88099093e3948ad6c571eca9272e5f", size = 220394, upload-time = "2026-06-30T07:15:33.359Z" }, - { url = "https://files.pythonhosted.org/packages/f3/83/3382fe37f809b59f02aac04dbc4e765b480b46ee0227ed516e3bdc4d3dfc/rpds_py-2026.6.3-cp312-cp312-win_arm64.whl", hash = "sha256:22bffe6042b9bcb0822bcd1955ec00e245daf17b4344e4ed8e9551b976b63e96", size = 215753, upload-time = "2026-06-30T07:15:34.778Z" }, - { url = "https://files.pythonhosted.org/packages/a4/9e/b818ee580026ec578138e961027a68820c40afeb1ec8f6819b54fb99e196/rpds_py-2026.6.3-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:3cfe765c1da0072636ca06628261e0ea05688e160d5c8a03e0217c3854037223", size = 343012, upload-time = "2026-06-30T07:15:36.005Z" }, - { url = "https://files.pythonhosted.org/packages/f3/6b/686d9dc4359a8f163cfbbf89ee0b4e586431de22fe8248edb63a8cf50d49/rpds_py-2026.6.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f4d78253f6996be4901669ad25319f842f740eccf4d58e3c7f3dd39e6dde1d8f", size = 338203, upload-time = "2026-06-30T07:15:37.462Z" }, - { url = "https://files.pythonhosted.org/packages/9e/9b/069aa329940f8207615e091f5eedbbd40e1e15eac68a0790fd05ccdf796c/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:54f45a148e28767bf343d33a684693c70e451c6f4c0e9904709a723fafbdfc1f", size = 367984, upload-time = "2026-06-30T07:15:39.008Z" }, - { url = "https://files.pythonhosted.org/packages/14/db/34c203e4becff3703e4d3bc121842c00b8689197f398161203a880052f4e/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:842e7b070435622248c7a2c44ae53fa1440e073cc3023bc919fed570884097a7", size = 374815, upload-time = "2026-06-30T07:15:40.253Z" }, - { url = "https://files.pythonhosted.org/packages/ee/7d/8071067d2cc453d916ad836e828c943f575e8a44612537759002a1e07381/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8020133a74bd81b4572dd8e4be028a6b1ebcd70e6726edc3918008c08bee6ee6", size = 490545, upload-time = "2026-06-30T07:15:41.729Z" }, - { url = "https://files.pythonhosted.org/packages/a3/42/da06c5aa8f0484ff07f270787434204d9f4535e2f8c3b51ed402267e63c3/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cdc7e35386f3847df728fbcb5e887e2d79c19e2fa1eba9e51b6621d23e3243af", size = 382828, upload-time = "2026-06-30T07:15:43.327Z" }, - { url = "https://files.pythonhosted.org/packages/57/d7/fe978efc2ae50abe48eb7464668ea99f53c010c60aeebb7b35ad27f23661/rpds_py-2026.6.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:acac386b453c2516111b50985d60ce46e7fadb5ea71ae7b25f4c946935bf27cf", size = 365678, upload-time = "2026-06-30T07:15:44.992Z" }, - { url = "https://files.pythonhosted.org/packages/69/9d/1d8922e1990b2a6eb532b6ff53d3e73d2b3bbffc84116c75826bee73dfc6/rpds_py-2026.6.3-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:425560c6fa0415f27261727bb20bd097568485e5eb0c121f1949417d1c516885", size = 377811, upload-time = "2026-06-30T07:15:46.523Z" }, - { url = "https://files.pythonhosted.org/packages/b1/3d/198dceafb4fb034a6a47347e1b0735d34e0bd4a50be4e898d408ee66cb14/rpds_py-2026.6.3-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a550fb4950a06dde3beb4721f5ad4b25bf4513784665b0a8522c792e2bd822a4", size = 395382, upload-time = "2026-06-30T07:15:47.955Z" }, - { url = "https://files.pythonhosted.org/packages/1f/f1/13968e49655d40b6b19d8b9140296bbc6f1d86b3f0f6c346cf9f1adddf4b/rpds_py-2026.6.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4f4bca01b63096f606e095734dd56e74e175f94cfbf24ff3d63281cec61f7bb7", size = 543832, upload-time = "2026-06-30T07:15:49.33Z" }, - { url = "https://files.pythonhosted.org/packages/ac/ab/289bcb1b90bd3e40a2900c561fa0e2087345ecbb094f0b870f2345142b7c/rpds_py-2026.6.3-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ccffae9a092a00deb7efd545fe5e2c33c33b88e7c054337e9a74c179347d0b7d", size = 611011, upload-time = "2026-06-30T07:15:50.847Z" }, - { url = "https://files.pythonhosted.org/packages/1e/16/5043105e679436ccfbc8e5e0dd2d663ed18a8b8113515fd06a5e5d77c83e/rpds_py-2026.6.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1cf01971c4f2c5553b772a542e4aaf191789cd331bc2cd4ff0e6e65ba49e1e97", size = 572431, upload-time = "2026-06-30T07:15:52.394Z" }, - { url = "https://files.pythonhosted.org/packages/85/ed/adab103321c0a6565d5ae1c2998349bc3ee175b82ccc5ae8fc04cc413075/rpds_py-2026.6.3-cp313-cp313-win32.whl", hash = "sha256:8c3d1e9c15b9d51ca0391e13da1a25a0a4df3c58a37c9dc368e0736cf7f69df0", size = 201710, upload-time = "2026-06-30T07:15:53.894Z" }, - { url = "https://files.pythonhosted.org/packages/7b/ed/a03b09668e74e5dabbf2e211f6468e1820c0552f7b0500082da31841bf7b/rpds_py-2026.6.3-cp313-cp313-win_amd64.whl", hash = "sha256:9250a9a0a6fd4648b3f868da8d91a4c52b5811a62df58e753d50ae4454a36f80", size = 219454, upload-time = "2026-06-30T07:15:55.25Z" }, - { url = "https://files.pythonhosted.org/packages/27/17/b8642c12930b71bc2b25831f6708ccf0f75abcd11883932ec9ce54ba3a78/rpds_py-2026.6.3-cp313-cp313-win_arm64.whl", hash = "sha256:900a67df3fd1660b035a4761c4ce73c382ea6b35f90f9863c36c6fd8bf8b09bb", size = 215063, upload-time = "2026-06-30T07:15:56.573Z" }, - { url = "https://files.pythonhosted.org/packages/b6/36/7fbe9dcdaf857fb3f63c2a2284b62492d95f5e8334e947e5fb6e7f68c9be/rpds_py-2026.6.3-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:931908d9fc855d8f74783377822be318edb6dcb19e47169dc038f9a1bf60b06e", size = 344510, upload-time = "2026-06-30T07:15:57.921Z" }, - { url = "https://files.pythonhosted.org/packages/ba/54/f785cc3d3f60839ca57a5af4927a9f347b07b2799c373fc20f7949f87c7e/rpds_py-2026.6.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d7469697dce35be237db177d42e2a2ee26e6dcc5fc052078a6fefabd288c6edd", size = 339495, upload-time = "2026-06-30T07:15:59.238Z" }, - { url = "https://files.pythonhosted.org/packages/63/ef/d4cdaf309e6b095b43597103cf8c0b951d6cca2acce68c474f75ec12e0c7/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bcfbcf66006befb9fd2aeaa9e01feaf881b4dc330a02ba07d2322b1c11be7b5d", size = 369454, upload-time = "2026-06-30T07:16:01.021Z" }, - { url = "https://files.pythonhosted.org/packages/96/4a/9559a68b7ee15db09d7981212e8c2e219d2a1d6d4faa0391d813c3496a36/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:847927daf4cffbd4e90e42bc890069897101edd015f956cb8721b3473372edda", size = 374583, upload-time = "2026-06-30T07:16:02.287Z" }, - { url = "https://files.pythonhosted.org/packages/ef/75/8964aa7d2c6e8ac43eba8eb6e6b0fdda1f46d39f2fc3e6aa9f2cb17f485d/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aca6c1ef08a82bfe327cc156da694660f599923e2e6665b6d81c9c2d0ac9ffc8", size = 492919, upload-time = "2026-06-30T07:16:03.723Z" }, - { url = "https://files.pythonhosted.org/packages/8f/97/6908094ac804115e65aedfd90f1b5fee4eebebd3f6c4cfc5419939267565/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ae50181a047c871561212bb97f7932a2d45fb53e947bd9b57ebad85b529cbc53", size = 383725, upload-time = "2026-06-30T07:16:05.305Z" }, - { url = "https://files.pythonhosted.org/packages/d1/9c/0d1fdc2e7aba23e290d603bc494e97bd205bae262ce33c6b32a69768ed5e/rpds_py-2026.6.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dc319e5a1de4b6913aac94bf6a2f9e847371e0a140a43dd4991db1a09bc2d504", size = 367255, upload-time = "2026-06-30T07:16:07.086Z" }, - { url = "https://files.pythonhosted.org/packages/c4/fe/f0209ca4a9ed074bc8acb44dfd0e81c3122e94c9689f5645b7973a866719/rpds_py-2026.6.3-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:e4316bf32babbed84e691e352faf967ce2f0f024174a8643c37c94a1080374fc", size = 379060, upload-time = "2026-06-30T07:16:08.525Z" }, - { url = "https://files.pythonhosted.org/packages/c6/8d/f1cc54c616b9d8897de8738aac148d20afca93f68187475fe194d09a71b9/rpds_py-2026.6.3-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8c6e5a2f750cc71c3e3b11d71661f21d6f9bc6cebc6564b1466417a1ec03ec77", size = 395960, upload-time = "2026-06-30T07:16:09.989Z" }, - { url = "https://files.pythonhosted.org/packages/fb/04/aafff00f73aeca2945f734f1d483c64ab8f472d0864ab02377fd8e89c3b2/rpds_py-2026.6.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:4470ce197d4090875cf6affbf1f853338387428df97c4fb7b7106317b8214698", size = 545356, upload-time = "2026-06-30T07:16:11.816Z" }, - { url = "https://files.pythonhosted.org/packages/fd/cc/e229663b9e4ddac5a4acbe9085dd80a71af2a5d356b8b39d6bff233f24b0/rpds_py-2026.6.3-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ea964164cc9afa72d4d9b23cc28dafae93693c0a53e0b42acbff15b22c3f9ddd", size = 612319, upload-time = "2026-06-30T07:16:13.586Z" }, - { url = "https://files.pythonhosted.org/packages/e3/7a/8a0e6d3e6cd066af108b71b43122c3fe158dd9eb86acac626593a2582eb1/rpds_py-2026.6.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:639c8929aa0afe81be836b04de888460d6bed38b9c54cfc18da8f6bfabf5af5d", size = 573508, upload-time = "2026-06-30T07:16:15.23Z" }, - { url = "https://files.pythonhosted.org/packages/87/03/2a69ab618a789cf6cf85c86bb844c62d090e700ab1a2aa676b3741b6c516/rpds_py-2026.6.3-cp314-cp314-win32.whl", hash = "sha256:882076c00c0a608b131187055ddc5ae29f2e7eaf870d6168980420d58528a5c8", size = 202504, upload-time = "2026-06-30T07:16:16.893Z" }, - { url = "https://files.pythonhosted.org/packages/85/62/a3892ba945f4e24c78f352e5de3c7620d8479f73f211406a97263d13c7d2/rpds_py-2026.6.3-cp314-cp314-win_amd64.whl", hash = "sha256:0be972be84cfcaf46c8c6edf690ca0f154ac17babf1f6a955a51579b34ad2dc5", size = 220380, upload-time = "2026-06-30T07:16:18.108Z" }, - { url = "https://files.pythonhosted.org/packages/3d/e7/c2bd44dc831931815ad11ebb5f430b5a0a4d3caa9de837107876c30c3432/rpds_py-2026.6.3-cp314-cp314-win_arm64.whl", hash = "sha256:2a9c6f195058cb45335e8cc3802745c603d716eb96bc9625950c1aac71c0c703", size = 215976, upload-time = "2026-06-30T07:16:19.654Z" }, - { url = "https://files.pythonhosted.org/packages/79/9c/fff7b74bce9a091ec9a012a03f9ff5f69364eaf9451060dfc4486da2ffdd/rpds_py-2026.6.3-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:f90938e92afda60266da758ee7d363447f7f0138c9559f9e1811629580582d90", size = 346840, upload-time = "2026-06-30T07:16:21.268Z" }, - { url = "https://files.pythonhosted.org/packages/e9/44/77bcb1168b33704908295533d27f10eb811e9e3e193e8993dc99572211d3/rpds_py-2026.6.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ec829541c45bca16e61c7ae50c20501f213605beb75d1aba91a6ee37fbbb56a4", size = 340282, upload-time = "2026-06-30T07:16:22.875Z" }, - { url = "https://files.pythonhosted.org/packages/87/3c/7a9081c7c9e645b39efe19e4ffbeccd80add246327cd9b888aecffd72317/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:afd70d95892096cdb26f15a00c45907b17817577aa8d1c76b2dcc2788391f9e9", size = 370403, upload-time = "2026-06-30T07:16:24.415Z" }, - { url = "https://files.pythonhosted.org/packages/f7/69/af47021eb7dad6ff3396cb001c08f0f3c4d06c20253f75be6421a59fe6b7/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:29dfa0533a5d4c94d4dfa1b694fcb56c9c63aad8330ffdd816fd225d0a7a162f", size = 376055, upload-time = "2026-06-30T07:16:26.111Z" }, - { url = "https://files.pythonhosted.org/packages/81/fc/a3bcf517084396a6dd258c592567a3c011ba4557f2fde23dceaf26e74f2e/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:af05d726809bff6b141be124d4c7ce998f9c9c7f30edb1f46c07aa103d540b41", size = 494419, upload-time = "2026-06-30T07:16:27.596Z" }, - { url = "https://files.pythonhosted.org/packages/c9/eb/13d529d1788135425c7bf207f8463458ca5d92e43f3f701365b83e9dffc1/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9826217f048f620d9a712672818bf231442c1b35d96b227a07eabd11b4bb6945", size = 384848, upload-time = "2026-06-30T07:16:29.183Z" }, - { url = "https://files.pythonhosted.org/packages/8e/f4/b7ac49f30013aba8f7b9566b1dd07e81de95e708c1374b7bacc5b9bc5c9c/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:536bceea4fa4acf7e1c61da2b5786304367c816c8895be71b8f537c480b0ea1f", size = 371369, upload-time = "2026-06-30T07:16:30.912Z" }, - { url = "https://files.pythonhosted.org/packages/31/86/6260bafa622f788b07ddec0e52d810305c8b9b0b8c27f58a2ab04bf62b4f/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:bc0011654b91cc4fb2ae701bec0a0ba1e552c0714247fa7af6c59e0ccfa3a4e1", size = 379673, upload-time = "2026-06-30T07:16:32.486Z" }, - { url = "https://files.pythonhosted.org/packages/19/c3/03f1ee79a047b48daeca157c89a18509cde22b6b951d642b9b0af1be660a/rpds_py-2026.6.3-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:539d75de9e0d536c84ff18dfeb805398e58227001ce09231a26a08b9aed1ee0e", size = 397500, upload-time = "2026-06-30T07:16:34.471Z" }, - { url = "https://files.pythonhosted.org/packages/f0/95/8ed0cd8c377dca12aea498f119fe639fc474d1461545c39d2b5872eb1c0f/rpds_py-2026.6.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:166cf54d9f44fc6ceb53c7860258dde44a81406646de79f8ed3234fca3b6e538", size = 545978, upload-time = "2026-06-30T07:16:36.45Z" }, - { url = "https://files.pythonhosted.org/packages/d3/f2/0eb57f0eaa83f8fc152a7e03de968ab77e1f00732bebc892b190c6eebde7/rpds_py-2026.6.3-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:d34c20167764fbcf927194d532dd7e0c56772f0a5f943fa5ef9e9afbba8fb9db", size = 613350, upload-time = "2026-06-30T07:16:38.213Z" }, - { url = "https://files.pythonhosted.org/packages/5b/de/e0674bdbc3ef7634989b3f854c3f34bc1f587d36e5bfdc5c378d57034619/rpds_py-2026.6.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ea7bb13b7c9a29791f87a0387ba7d3ad3a6d783d827e4d3f27b40a0ff44495e2", size = 576486, upload-time = "2026-06-30T07:16:39.797Z" }, - { url = "https://files.pythonhosted.org/packages/f2/f6/21101359743cd136ada781e8210a85769578422ba460672eea0e29739200/rpds_py-2026.6.3-cp314-cp314t-win32.whl", hash = "sha256:6de4744d05bd1aa1be4ed7ea1189e3979196808008113bbbf899a460966b925e", size = 201068, upload-time = "2026-06-30T07:16:41.316Z" }, - { url = "https://files.pythonhosted.org/packages/a6/b2/9574d4d44f7760c2aa32d92a0a4f41698e33f5b204a0bf5c9758f52c79d5/rpds_py-2026.6.3-cp314-cp314t-win_amd64.whl", hash = "sha256:c7b9a2f8f4d8e90af72571d3d495deebdd7e3c75451f5b41719aee166e940fc2", size = 220600, upload-time = "2026-06-30T07:16:43.091Z" }, - { url = "https://files.pythonhosted.org/packages/08/ae/f23a2697e6ee6340a578b0f136be6483657bef0c6f9497b752bb5c0964bb/rpds_py-2026.6.3-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:e059c5dde6452b44424bd1834557556c226b57781dee1227af23518459722b13", size = 344726, upload-time = "2026-06-30T07:16:44.5Z" }, - { url = "https://files.pythonhosted.org/packages/c3/63/e7b3a1a5358dd32c930a1062d8e15b67fd6e8922e81df9e91706d66ee5c8/rpds_py-2026.6.3-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:2f7c26fbc5acd2522b95d4177fe4710ffd8e9b20529e703ffbf8db4d93903f05", size = 339587, upload-time = "2026-06-30T07:16:46.255Z" }, - { url = "https://files.pythonhosted.org/packages/ec/64/10a85681916ca55fffb91b0a211f84e34297c109243484dd6394660a8a7c/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a3086b538543802f84c843911242db20447de00d8752dd0efc936dbcf02218ba", size = 369585, upload-time = "2026-06-30T07:16:48.101Z" }, - { url = "https://files.pythonhosted.org/packages/76/c2/baf95c7c38823e12ba34407c5f5767a89e5cf2233895e56f608167ae9493/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8f2e5c5ee828d42cb11760761c0af6507927bec42d0ad5458f97c9203b054617", size = 375479, upload-time = "2026-06-30T07:16:49.93Z" }, - { url = "https://files.pythonhosted.org/packages/6a/94/0aad06c72d65101e11d33528d438cda99a39ce0da99466e156158f2541d3/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ed0c1e5d10cdc7135537988c74a0188da68e2f3c30813ba3744ab1e42e0480f9", size = 492418, upload-time = "2026-06-30T07:16:51.641Z" }, - { url = "https://files.pythonhosted.org/packages/b5/17/de3f5a479a1f056535d7489819639d8cd591ea6281d700390b43b1abd745/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8c2642a7603ec0b16ed77da4555db3b4b472341904873788327c0b0d7b95f1bb", size = 384123, upload-time = "2026-06-30T07:16:53.622Z" }, - { url = "https://files.pythonhosted.org/packages/46/7d/bf09bd1b145bb2671c03e1e6d1ab8651858d90d8c7dfeadd85a37a934fd8/rpds_py-2026.6.3-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8e4320744c1ffdd95a603def63344bfab2d33edeab301c5007e7de9f9f5b3885", size = 367351, upload-time = "2026-06-30T07:16:55.241Z" }, - { url = "https://files.pythonhosted.org/packages/a3/ea/1bb734f314b8be319149ddee80b18bd41372bdcfbdf88d28131c0cd37719/rpds_py-2026.6.3-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:a9f4645593036b81bbdb36b9c8e0ea0d1c3fee968c4d59db0344c14087ef143a", size = 378827, upload-time = "2026-06-30T07:16:56.841Z" }, - { url = "https://files.pythonhosted.org/packages/4b/93/d9611e5b25e26df9a3649813ed66193ace9347a7c7fc4ab7cf70e94851c0/rpds_py-2026.6.3-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e55d236be29255554da47abe5c577637db7c24a02b8b46f0ca9524c855801868", size = 395966, upload-time = "2026-06-30T07:16:58.557Z" }, - { url = "https://files.pythonhosted.org/packages/c3/cb/99d77e16e5534ae1d90629bbe419ba6ee170833a6a85e3aa1cc41726fbbc/rpds_py-2026.6.3-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:24e9c5386e16669b674a69c156c8eeefcb578f3b3397b713b08e6d60f3c7b187", size = 545680, upload-time = "2026-06-30T07:17:00.164Z" }, - { url = "https://files.pythonhosted.org/packages/59/15/11a29755f790cef7a2f755e8e14f4f0c33f39489e1893a632a2eee59672b/rpds_py-2026.6.3-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:c60924535c75f1566b6eb75b5c31a48a43fef04fa2d0d201acbad8a9969c6107", size = 611853, upload-time = "2026-06-30T07:17:01.962Z" }, - { url = "https://files.pythonhosted.org/packages/68/86/0c27547e21644da938fb530f7e1a8148dd24d02db07e7a5f2567a17ce710/rpds_py-2026.6.3-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:38a2fea2787428f811719ceb9114cb78964a3138838320c29ac39526c79c16ba", size = 573715, upload-time = "2026-06-30T07:17:03.693Z" }, - { url = "https://files.pythonhosted.org/packages/29/71/4d8fcf700931815594bce892255bbd973b94efaf0fc1932b0590df18d886/rpds_py-2026.6.3-cp315-cp315-win32.whl", hash = "sha256:d483fe17f01ad64b7bf7cc38fcefff1ca9fb83f8c2b2542b68f97ffe0611b369", size = 202864, upload-time = "2026-06-30T07:17:05.746Z" }, - { url = "https://files.pythonhosted.org/packages/eb/62/b577562de0edbb55b2be85ce5fd09c33e386b9b13eee09833af4240fd5c4/rpds_py-2026.6.3-cp315-cp315-win_amd64.whl", hash = "sha256:67e3a721ffc5d8d2210d3671872298c4a84e4b8035cfe42ffd7cde35d772b146", size = 220430, upload-time = "2026-06-30T07:17:07.471Z" }, - { url = "https://files.pythonhosted.org/packages/c8/95/d6d0b2509825141eef60669a5739eec88dbc6a48053d6c92993a5704defe/rpds_py-2026.6.3-cp315-cp315-win_arm64.whl", hash = "sha256:6e84adbcf4bf841aed8116a8264b9f50b4cb3e7bd89b516122e616ac56ca269e", size = 215877, upload-time = "2026-06-30T07:17:09.008Z" }, - { url = "https://files.pythonhosted.org/packages/b7/bf/f3ea278f0afd615c1d0f19cb69043a41526e2bb600c2b536eb192218eb27/rpds_py-2026.6.3-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:ae6dd8f10bd17aad820876d24caec9efdafd80a318d16c0a48edb5e136902c6b", size = 346933, upload-time = "2026-06-30T07:17:10.762Z" }, - { url = "https://files.pythonhosted.org/packages/9d/29/9907bdf1c5346763cf10b7f6852aad86652168c259def904cbe0082c5864/rpds_py-2026.6.3-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:bdbd97738551fca3917c1bd7188bec1920bb520104f28e7e1007f9ceb17b7690", size = 340274, upload-time = "2026-06-30T07:17:12.266Z" }, - { url = "https://files.pythonhosted.org/packages/6f/2c/8e03767b5778ef25cebf74a7a91a2c3806f8eced4c92cb7406bbe060756d/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b95977e7211527ab0ba576e286d023389fbeeb32a6b7b771665d333c60e5342", size = 370763, upload-time = "2026-06-30T07:17:14.107Z" }, - { url = "https://files.pythonhosted.org/packages/2e/e1/df2a7e1ba2efd796af26194250b8d42c821b46592311595162af9ef0528d/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d15fde0e6fb0d88a60d221204873743e5d9f0b7d29165e62cd86d0413ad74ba6", size = 376467, upload-time = "2026-06-30T07:17:15.76Z" }, - { url = "https://files.pythonhosted.org/packages/6b/de/8a0814d1946af29cb068fb259aa8622f856df1d0bab58429448726b537f5/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a136d453475ac0fcbda502ef1e6504bd28d6d904700915d278deeab0d00fe140", size = 496689, upload-time = "2026-06-30T07:17:17.308Z" }, - { url = "https://files.pythonhosted.org/packages/df/f3/f19e0c852ba13694f5a79f3b719331051573cb5693feacf8a88ffffc3a71/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f826877d462181e5eb1c26a0026b8d0cab05d99844ecb6d8bf3627a2ca0c0442", size = 385340, upload-time = "2026-06-30T07:17:18.928Z" }, - { url = "https://files.pythonhosted.org/packages/e2/ae/7ec3a9d2d4351f99e37bcb06b6b6f954512646bfdbf9742e1de727865daf/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:79486287de1730dbaff3dbd124d0ca4d2ef7f9d29bf2544f1f93c09b5bcbbd12", size = 372179, upload-time = "2026-06-30T07:17:20.539Z" }, - { url = "https://files.pythonhosted.org/packages/d3/ac/9cee911dff2aaa9a5a8354f6610bf2e6a616de9197c5fff4f54f82585f1e/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:808345f53cb952433ca2816f1604ff3515608a81784954f38d4452acfe8e61d5", size = 379993, upload-time = "2026-06-30T07:17:22.212Z" }, - { url = "https://files.pythonhosted.org/packages/83/6b/7c2a07ba88d1e9a936612f7a5d067467ed03d971d5a06f7d309dff044a7e/rpds_py-2026.6.3-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1967debc37f64f2c4dc90a7f563aec558b471966e12adcac4e1c4240496b6ebf", size = 398909, upload-time = "2026-06-30T07:17:23.66Z" }, - { url = "https://files.pythonhosted.org/packages/97/0b/776ffcb66783637b0031f6d58d6fb55913c8b5abf00aeecd46bf933fb477/rpds_py-2026.6.3-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:f0840b5b17057f7fd918b76183a4b5a0635f43e14eb2ce60dce1d4ee4707ea00", size = 546584, upload-time = "2026-06-30T07:17:25.264Z" }, - { url = "https://files.pythonhosted.org/packages/55/33/ba3bc04d7092bd553c9b2b195624992d2cc4f3de1f380b7b93cbee67bd79/rpds_py-2026.6.3-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:faa679d19a6696fd54259ad321251ad77a13e70e03dd834daa762a44fb6196ef", size = 614357, upload-time = "2026-06-30T07:17:26.888Z" }, - { url = "https://files.pythonhosted.org/packages/8b/71/14edf065f04630b1a8472f7653cad03f6c478bcf95ea0e6aed55451e33ea/rpds_py-2026.6.3-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:23a439f31ccbeff1574e24889128821d1f7917470e830cf6544dced1c662262a", size = 576533, upload-time = "2026-06-30T07:17:28.546Z" }, - { url = "https://files.pythonhosted.org/packages/ba/76/65002b08596c389105720a8c0d22298b8dc25a4baf89b2ce431343c8b1de/rpds_py-2026.6.3-cp315-cp315t-win32.whl", hash = "sha256:913ca42ccad3f8cc6e292b587ae8ae49c8c823e5dce51a736252fc7c7cdfa577", size = 201204, upload-time = "2026-06-30T07:17:30.193Z" }, - { url = "https://files.pythonhosted.org/packages/8c/97/d855d6b3c322d1f27e26f5241c42016b56cf01377ea8ed348285f54652f0/rpds_py-2026.6.3-cp315-cp315t-win_amd64.whl", hash = "sha256:ae3d4fe8c0b9213624fdce7279d70e3b148b682ca20719ebd193a23ebfa47324", size = 220719, upload-time = "2026-06-30T07:17:31.788Z" }, - { url = "https://files.pythonhosted.org/packages/b4/9c/f0d19ac587fd0e4ab6b72cda355e9c5a6166b01ef7e064e437aef8eb9fef/rpds_py-2026.6.3-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:4cf2d36a2357e4d07bb5a4f98801265327b48256867816cfd2ceb001e9754a8f", size = 349791, upload-time = "2026-06-30T07:17:33.315Z" }, - { url = "https://files.pythonhosted.org/packages/38/c7/1d49d204c9fd2ee6c537601dc4c1ba921e03363ca576bfab94a00254ac9a/rpds_py-2026.6.3-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:30c6dc199b24a5e3e81d50da0f00858c5bbdb2617a750395687f4339c5818171", size = 352842, upload-time = "2026-06-30T07:17:34.897Z" }, - { url = "https://files.pythonhosted.org/packages/ac/e5/c0b5dc93cd0d4c06ce1f438907649514e2ea077bcd911e3154a51e96c38e/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9891e594296ab9dada6551c8e7b387b2721f27a67eecd528412e8906247a7b90", size = 382094, upload-time = "2026-06-30T07:17:36.514Z" }, - { url = "https://files.pythonhosted.org/packages/0d/54/ec0e907b4ca8d541112db352409bd15f871c9b243e0c92c9b5a46ae96f01/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b5c2dc92304aa48a4a60443b548bb12f12e119d4b72f314015e67b9e1be97fca", size = 388662, upload-time = "2026-06-30T07:17:38.235Z" }, - { url = "https://files.pythonhosted.org/packages/d3/f4/921c22a4fd0f1c1ac13a3996ffbf0aa67951e2c8ad0d1d9574938a2932e8/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:127e08c0642d880cf32ca47ec2a4a77b901f7e2dd1ad9762adb13955d72ffcc9", size = 504896, upload-time = "2026-06-30T07:17:39.689Z" }, - { url = "https://files.pythonhosted.org/packages/0b/1b/a114b972cefa1ab1cdb3c7bb177cd3844a12826c507c722d3a73516dbbaf/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8bb68f03f395eb793220b45c097bd4d8c32944393da0fad8b999efac0868fc8c", size = 391545, upload-time = "2026-06-30T07:17:41.336Z" }, - { url = "https://files.pythonhosted.org/packages/4e/98/af9b3db77d47fcbe6c8c1f36e2c2147ec70292819e99c325f871584a1c11/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3450b693fde92133e9f51060568a4c31fcca76d5e53bbd611e689ca446517e9", size = 380059, upload-time = "2026-06-30T07:17:42.857Z" }, - { url = "https://files.pythonhosted.org/packages/c9/ba/0efd8668b97c1d26a61566386c636a7a7a09829e474fdf807caa15a2c844/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_31_riscv64.whl", hash = "sha256:5e8d07bddee435a2ff6f1920e18feff28d0bc4533e42f4bf6927fbd073312c41", size = 393235, upload-time = "2026-06-30T07:17:44.637Z" }, - { url = "https://files.pythonhosted.org/packages/62/90/8c139ee9690f73b0829f32647de6f40d826f8f443af6fa72644f96351aac/rpds_py-2026.6.3-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3a83ae6c67b7676b9878378547ca8e93ed77a580037bcbcd1d32f739e1e6089c", size = 413008, upload-time = "2026-06-30T07:17:46.225Z" }, - { url = "https://files.pythonhosted.org/packages/9c/97/0043896fdd7828ce09a1d9a8b06433714d0960fc4ff3fc4aa72b666b764e/rpds_py-2026.6.3-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:2bfd04c19ddbd6640de0b51894d764bd2758854d5b75bd102d2ef10cb9c293a9", size = 558118, upload-time = "2026-06-30T07:17:47.759Z" }, - { url = "https://files.pythonhosted.org/packages/f6/40/02355f0e134f783a8f9814c4680a1bd311d37671577a5964ea838573ff37/rpds_py-2026.6.3-pp311-pypy311_pp73-musllinux_1_2_i686.whl", hash = "sha256:ca6546b66be9dc4738b1b043d5ebd5488c66c578c5ff0fd0e8065313fe3afb76", size = 623138, upload-time = "2026-06-30T07:17:49.355Z" }, - { url = "https://files.pythonhosted.org/packages/10/85/48f0abdcef5cce4e034c7a5b0ceeceba0b01bf0d942824f4bb720afe2dec/rpds_py-2026.6.3-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:8e65860d238379ed982fd9ba690579b5e95af2f4840f99c772816dbe573cb826", size = 586486, upload-time = "2026-06-30T07:17:51.141Z" }, +version = "2026.9.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/42/68/3bd46b8a5e01d3c2ebdf9c5e9497912e3fe0cde02bac21a7130ca866e403/rpds_py-2026.9.1.tar.gz", hash = "sha256:4793ef7f78268b124b73fa933440f01d258bbae01de9fa53e9080c9ab0425a12", size = 63948, upload-time = "2026-10-04T16:32:36.469Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f5/6d/ddb8dfcf41892ba9c672d27988592c038d30db61708230313831b6780a1b/rpds_py-2026.9.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:2711d29b653b3bce48a63d18b9c6b53274669e6d6c4094dddeb4d9a0e45128b2", size = 344947, upload-time = "2026-10-04T16:28:55.207Z" }, + { url = "https://files.pythonhosted.org/packages/9e/b2/632c3d034961149eff606e3e357547620a9ab37b849ae5815f67838753fd/rpds_py-2026.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3231c4c0e521dafa5be0c9f114ee2c2ad46650836f2d72caa86801950c3e7044", size = 346770, upload-time = "2026-10-04T16:28:56.884Z" }, + { url = "https://files.pythonhosted.org/packages/6d/45/4df346410bb873d03ec60c3b891d1fceb8cabde1971d29844bbb625cc296/rpds_py-2026.9.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e01b3c878c8641913e688edd1b3f08658c6783d29cf6b826bd3c0d1ae7a1ffaa", size = 377795, upload-time = "2026-10-04T16:28:58.193Z" }, + { url = "https://files.pythonhosted.org/packages/ba/b8/a70f302207e4f29f873c01a986fcac5def49b9c8224328cef1ad7da6b7a9/rpds_py-2026.9.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3e524c7874ac72884d28e16dd5b8d839fd09e0fe76b020d3fbca23212a7b8c52", size = 383137, upload-time = "2026-10-04T16:28:59.411Z" }, + { url = "https://files.pythonhosted.org/packages/13/e3/3aa28a48a01169d0e20728bf0e5ebbea3ae2774285b40853ae49b3ef332a/rpds_py-2026.9.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:761fdae6728ceb99ab182fad2f0cc1e262f610834dc891aea1d1a2a2e634776f", size = 496789, upload-time = "2026-10-04T16:29:01.011Z" }, + { url = "https://files.pythonhosted.org/packages/3e/a7/414e8d088602d66ad6f47c65bf07fe5090992a8574cdd4571c1a83b647ed/rpds_py-2026.9.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6b723eb406dec5bc9ec516c73ab9c3239a3284e017f7eb89ee2b3258bd504fb7", size = 395929, upload-time = "2026-10-04T16:29:02.465Z" }, + { url = "https://files.pythonhosted.org/packages/2d/5c/aac3b960fd55d37b49f77c0eebbe043eaf36762ebd48e7b46951e59c1c05/rpds_py-2026.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:136a1c3fe4402b7008bc81cb62ee538481795b61a7e83df88dff3b3f02b726ff", size = 375426, upload-time = "2026-10-04T16:29:03.944Z" }, + { url = "https://files.pythonhosted.org/packages/d3/80/77987a41c40be7202a78d9aed4a650bfb05792237cfd3b9e22638d990fe5/rpds_py-2026.9.1-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:839dde845559254f34885267c6878f60d61d5205180226d976fe488d45fa128e", size = 381497, upload-time = "2026-10-04T16:29:05.308Z" }, + { url = "https://files.pythonhosted.org/packages/b8/d0/640b02eb1ecd71a913c1178b6235287b31006266bca9a26862e80e497b54/rpds_py-2026.9.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:56cd8b3f77d7b6812f533b662186a1f28316931166ddc00fb893b1b0db7e9888", size = 405740, upload-time = "2026-10-04T16:29:06.578Z" }, + { url = "https://files.pythonhosted.org/packages/3e/8c/d034195d45d215625a23f2ae85dbbdb86a49a93a51272061c97c80b9d316/rpds_py-2026.9.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:074a4d198bc34d9a8ea425114fc3ded6d11ec01f6a314a8db67454a5152d8834", size = 555850, upload-time = "2026-10-04T16:29:08.115Z" }, + { url = "https://files.pythonhosted.org/packages/de/f8/532f1addfc86207bc3cf23749638bb0d457bce891595012ed8a08d0543b8/rpds_py-2026.9.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:6beb738155fe8ab8091afdfa5a3226b21c2b1593f1e50ebb90eb25b44dbc0391", size = 618661, upload-time = "2026-10-04T16:29:09.554Z" }, + { url = "https://files.pythonhosted.org/packages/50/5b/b0f2c9833a36a5b1f6ac5cb0e635fabacf713266f46ceefba2102da0bf51/rpds_py-2026.9.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:57492a550a1d88d29d003247e5f78dd8cf04a701fac0e4c8db8745a6d2504e0a", size = 583530, upload-time = "2026-10-04T16:29:11.072Z" }, + { url = "https://files.pythonhosted.org/packages/bf/20/464ed4b98d3c8c6a334f3b5e24d3886de04b05658a95fc40a37e0e6e4775/rpds_py-2026.9.1-cp311-cp311-win32.whl", hash = "sha256:d95a354e02393eada6d7351184671aced9d4cce109dabf927cb7aa99624352a1", size = 208125, upload-time = "2026-10-04T16:29:12.408Z" }, + { url = "https://files.pythonhosted.org/packages/df/c9/384a9b62f8cd89c8e3e609b8c9052c140e8c01d807261e0517c904b8bf29/rpds_py-2026.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:ce4d4f52e2a4324396caddbd45a97d8d7be5f42edd25d2355282a9c34f9b2f7f", size = 226045, upload-time = "2026-10-04T16:29:13.751Z" }, + { url = "https://files.pythonhosted.org/packages/4f/3b/0a691f0dcb2301fa9c736346da2d0d4991778373283301c5c12b8f952f3d/rpds_py-2026.9.1-cp311-cp311-win_arm64.whl", hash = "sha256:fdcd198979b4ecffcc1beba366a7fbcf4eb41243691a82fe52ceb0b902f09c12", size = 222636, upload-time = "2026-10-04T16:29:14.989Z" }, + { url = "https://files.pythonhosted.org/packages/5d/34/a828586ea3329fbb50895b50e9cf98ca3d924a9f41a0b26d443bff1b3794/rpds_py-2026.9.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:50906f5aea24b5a865cbd0a589698288631d9f3a54c3a937c83aefa95a0d14af", size = 346822, upload-time = "2026-10-04T16:29:16.258Z" }, + { url = "https://files.pythonhosted.org/packages/90/81/ac6a0d064982251856ce009c9e1dd51a34110b3c055aa7d1aad18b4899a3/rpds_py-2026.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e21c1429e205828ea886a2293a4a2c8e01f4c25d9893ca330e97a6cf73f52e7b", size = 341380, upload-time = "2026-10-04T16:29:17.706Z" }, + { url = "https://files.pythonhosted.org/packages/42/ff/bf7d54f362748fd6a49277b9d6531c394074110fedf50ad791ec59133fbb/rpds_py-2026.9.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2693b2728bbcc48d09a981a356954b0c47c53ff25b545856f28a889ea619f69a", size = 373053, upload-time = "2026-10-04T16:29:19.063Z" }, + { url = "https://files.pythonhosted.org/packages/60/de/74b0ccdbbd28687b9b5fdb34c1cabed88352182facaced9d6f5486b8b9ed/rpds_py-2026.9.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8601470267d938bcb7f3ab1a336100af51a4fd5b6ed030ef52461bb3ef5e7e07", size = 377742, upload-time = "2026-10-04T16:29:20.543Z" }, + { url = "https://files.pythonhosted.org/packages/c2/6d/b979775a3057b2a5c26d75ecbff60a20a24ef081db6dd76836fca3f20247/rpds_py-2026.9.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3890a6aa36e6baa53d5258a2a25d3ef8b37ad165a6ab27a892d7c3e3a432cd69", size = 487289, upload-time = "2026-10-04T16:29:21.958Z" }, + { url = "https://files.pythonhosted.org/packages/1d/5d/7c34734ce3ece943d9d6ee0122a74a21bbc75b47acb5b7053c83f6efb1ed/rpds_py-2026.9.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6b5b393eda5ea42cca1c1a6665f2a4882b4fd5d1777e41ce0545a107fb008c9d", size = 390710, upload-time = "2026-10-04T16:29:23.378Z" }, + { url = "https://files.pythonhosted.org/packages/1d/6d/b26eb1e75395925b3a142ed351cbed2ec8212f5c9d937aee3df32c701baa/rpds_py-2026.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:addeda51556dac7c1a2f14cda62db8b621cd12afba3091d03a96c72932387eab", size = 371261, upload-time = "2026-10-04T16:29:25.1Z" }, + { url = "https://files.pythonhosted.org/packages/7c/98/b2fdfe10301a9e27af21e634337fbba7baac0bc17fe44619a17c26bba2cb/rpds_py-2026.9.1-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:d9edf30457d74eebfd76b045535e36f1cd89062566a128a0db2145ca042d787e", size = 376075, upload-time = "2026-10-04T16:29:26.748Z" }, + { url = "https://files.pythonhosted.org/packages/c5/b1/c4b8d954e49c3c69cf8063c0c9e0919c99f3d2cecc46311606a1cbe835dc/rpds_py-2026.9.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:815d26356930846a40c7bc1366e7b1b0320ab8a063e66c11298a208bed0fd237", size = 399358, upload-time = "2026-10-04T16:29:28.282Z" }, + { url = "https://files.pythonhosted.org/packages/b3/59/9559a7293c97dff0cbb293efffbd36644103883ecc27741af8ef90c84ca8/rpds_py-2026.9.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3b5a6f40f0a1486b4b36c888123afc67acdbd9f33235927acf5ff295429a0ba3", size = 550267, upload-time = "2026-10-04T16:29:29.851Z" }, + { url = "https://files.pythonhosted.org/packages/6c/9d/6dc60e49511de4c8b00e74f9c1d43aed4d27f712cdb1ade92f2c199cbf64/rpds_py-2026.9.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:b5b8b0753718d258fd454283fbd57e14545d3b40583fa672e27cb4f987626bcc", size = 614018, upload-time = "2026-10-04T16:29:31.54Z" }, + { url = "https://files.pythonhosted.org/packages/fb/bc/92a4ecf27301b886232a413360f6b348a81d55ffef654f2ebda5970ebc3d/rpds_py-2026.9.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:46d80bc76b51a6c24f9944368c28d38b8bcbcea1da4f2f8d3ebc31a67e8c6ec6", size = 578509, upload-time = "2026-10-04T16:29:33.01Z" }, + { url = "https://files.pythonhosted.org/packages/08/53/efb97f2e6589b7ab8394385a73870e0b2ab2a195281c117b21fd6d7d4855/rpds_py-2026.9.1-cp312-cp312-win32.whl", hash = "sha256:befc2d6a953e563f8a7bfd87a42c22ebf8a3e980dcb7b6a4d17b70b0e914e8a3", size = 205401, upload-time = "2026-10-04T16:29:34.451Z" }, + { url = "https://files.pythonhosted.org/packages/1c/84/1700cc748d0eaa747486e4e82882d2575224e6e9a3148df583058850c629/rpds_py-2026.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:5ce8943f79c2210f7abcc28e86367b03b28d95027fd01c46d2472373ae70c86f", size = 222923, upload-time = "2026-10-04T16:29:35.709Z" }, + { url = "https://files.pythonhosted.org/packages/c3/89/0302215373c2f8b4408b0fdfee955368cc378a98ff59508d47a7e0dc2dbf/rpds_py-2026.9.1-cp312-cp312-win_arm64.whl", hash = "sha256:501909f2e4a1e2dee528ef766fe3c469060ebc17e54a8383d404ba07a81a6f02", size = 218415, upload-time = "2026-10-04T16:29:37.263Z" }, + { url = "https://files.pythonhosted.org/packages/83/ea/ee88fd9e756ff93fb6b1182a47ec09504a242620e33ce1d20679efefe841/rpds_py-2026.9.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:a36b70596407634ca82d4b989a3729074a008537a0522e4c8046a67c729103e9", size = 346229, upload-time = "2026-10-04T16:29:38.82Z" }, + { url = "https://files.pythonhosted.org/packages/57/71/a097d6552f837500fc36e6b23d09cfb9890c3cc47531f9ca64e149799615/rpds_py-2026.9.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:eba5d173f7d5708b22a93815017a4611873ed54db9f268077c0dd1ed99cfc858", size = 340514, upload-time = "2026-10-04T16:29:40.405Z" }, + { url = "https://files.pythonhosted.org/packages/bd/b7/497e85768bf4e0d8ddbaa096a4cac31d1509251dee2728a8490aa367e0b5/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:457866b85daf5034296666168b84a69e0b2e89dc4f1af102b46f6448a60b9063", size = 372611, upload-time = "2026-10-04T16:29:41.778Z" }, + { url = "https://files.pythonhosted.org/packages/52/4b/74ab4108916250b6e198e0d3af05bc6835eb046315f22f7a0ceb49667c5a/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a3a52a3ba86436ab3aef510fbe21512abc2ddd1993005dfe50514bd2284ef025", size = 377712, upload-time = "2026-10-04T16:29:43.242Z" }, + { url = "https://files.pythonhosted.org/packages/0c/8e/067e77d9d7b3cc793c9d909b7e97e7aadbbb1fb094093b6876902cc96d38/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d7841166b7fa64c9c56404617ae4341448847482d45933b13135d26c130519e5", size = 488106, upload-time = "2026-10-04T16:29:44.692Z" }, + { url = "https://files.pythonhosted.org/packages/3c/b4/c5aae6c2dde269bf955f6b7d35065c655a57e47750d9668052ad67e74dda/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:926bdd3e3b5998ddf70cc64bc8cf57209571f9044542913afb673799fec77dd0", size = 390795, upload-time = "2026-10-04T16:29:46.129Z" }, + { url = "https://files.pythonhosted.org/packages/a0/36/76fab39973ee11e7f9f357c55138197bb01c86f6502cb76487e3b4f42db0/rpds_py-2026.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7868b85224291c6cb6759f9b5adb9745f486d226f62b16a614dd5a2a5ab2b35b", size = 370794, upload-time = "2026-10-04T16:29:47.603Z" }, + { url = "https://files.pythonhosted.org/packages/3d/fe/cd2a80e6d7b871937a60e935c5d507aa390d143f4ff3636f640b9733d5df/rpds_py-2026.9.1-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:3cd182d7291d29b92c521a0069d9c01ba6193628a9a105531d11b40a6d731a33", size = 375673, upload-time = "2026-10-04T16:29:49.223Z" }, + { url = "https://files.pythonhosted.org/packages/6c/18/7464a9953724e55a3b3206062fa0ffdeaa519584c6aabf65d3956d94f131/rpds_py-2026.9.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e6ea1cda8d8c688278430e4268a42f5e5da3bdd74578dfadc0820c3f1766ce83", size = 398758, upload-time = "2026-10-04T16:29:50.601Z" }, + { url = "https://files.pythonhosted.org/packages/c0/86/1534b436700fd49ff411063b7c4d7e938adfabf90895b6cf1622d5a7d1f6/rpds_py-2026.9.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5943980471829f6de242a20b109de3111ba6b77e3af0ffc587028ac854b05e6c", size = 550370, upload-time = "2026-10-04T16:29:52.002Z" }, + { url = "https://files.pythonhosted.org/packages/57/1c/e1fa82a8a01e3c5820f3ba98a8b2673f642128eb368fa88871b01dd2c909/rpds_py-2026.9.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:76d3af9732d2dab69f28179b40ba2d87e2f1d5824b4a694780aa787d685e8f36", size = 613106, upload-time = "2026-10-04T16:29:53.655Z" }, + { url = "https://files.pythonhosted.org/packages/29/55/b20b8c4c3dde8755bfcd5b08492a02d0cd2e26929aedf6199ca2a377d42a/rpds_py-2026.9.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:78326f4cb4427a56ba4996c0762b63be45f06b85f086526420d2b3a66e40f84d", size = 578235, upload-time = "2026-10-04T16:29:55.157Z" }, + { url = "https://files.pythonhosted.org/packages/55/42/df3f7bbc3f7ab37a8a9db8d6c2ff2c985422899f1f7926afbf7ec3c0b8b4/rpds_py-2026.9.1-cp313-cp313-win32.whl", hash = "sha256:172e47169583f46ce118cbec68e6795d0da0f4606b488b6434f8276bca0a058c", size = 205293, upload-time = "2026-10-04T16:29:56.669Z" }, + { url = "https://files.pythonhosted.org/packages/31/9c/ba5a9569d719bfdd6ce863df4133ac6a1658cf1b07cc3534c31db729fbbc/rpds_py-2026.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:3e93b2cd69a9830be33e03945cd7cda940a0a8bfcfbff41d6144f0cb0d3d8bd9", size = 222409, upload-time = "2026-10-04T16:29:58.049Z" }, + { url = "https://files.pythonhosted.org/packages/35/72/f28ca566f6c23c35bbf7445f65eb0364577b25a026305995e24f78b83d94/rpds_py-2026.9.1-cp313-cp313-win_arm64.whl", hash = "sha256:d151e148117294133bf8af7eeace085e7e87432db15ab6adf640330298a47f6f", size = 217681, upload-time = "2026-10-04T16:29:59.449Z" }, + { url = "https://files.pythonhosted.org/packages/8a/f2/67b94be1532767803415c1c5a1fd88ea487643d74a673cec1ba140af77bb/rpds_py-2026.9.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:c9d1aca01f49170fdcf5c92761b1fafe97f554b721ca4570c5949fff778f0d4b", size = 347178, upload-time = "2026-10-04T16:30:00.865Z" }, + { url = "https://files.pythonhosted.org/packages/04/37/b751de2b59b0197a1d92a5dd491de88e8a5e928c2e6562581974f1e85263/rpds_py-2026.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3f0e9ac28fc067d4d34b88ae43c48e9489455c97fee9633d851f7eeed5a05d35", size = 341878, upload-time = "2026-10-04T16:30:02.564Z" }, + { url = "https://files.pythonhosted.org/packages/72/e2/5873bc4643c250db9e05d48dc0c93763d4aa68bc3b81164cb1af3b45b284/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07deecbfce94c78473018bc7d10b337cc651d12df87a1eb2cb3e4024bc9c33d0", size = 373963, upload-time = "2026-10-04T16:30:04.026Z" }, + { url = "https://files.pythonhosted.org/packages/51/03/5acf7632158247f3f6386ff0af3a1ee48167d575037e8d0920594b76d92b/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:821b2755db9194409254012f429c56643416fb96ef9be090be82ec8826b7f477", size = 377975, upload-time = "2026-10-04T16:30:05.555Z" }, + { url = "https://files.pythonhosted.org/packages/e6/00/63fda451b8bffa5808fc8bb311ee7c073b340974b09f273c7b2a145d3d62/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3c91c210ae7645626c608400e3519b4a642f837cce09ca830db3beb2e9f274d4", size = 490347, upload-time = "2026-10-04T16:30:07.156Z" }, + { url = "https://files.pythonhosted.org/packages/a1/ae/c093ffd070ba0fb02f76c565d06fecc65ad6e4afdbae78f7031076d3cdac/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:54ac2158a6f96cfbabff0b2eedaf94b90c5ec7ca8317fcadc61e1c2b2e0ff6ef", size = 392962, upload-time = "2026-10-04T16:30:08.77Z" }, + { url = "https://files.pythonhosted.org/packages/22/9d/d08a1128ab199b2f0cf25bfeb0639bd05119fff4b7c47bec24ef9a8ec23f/rpds_py-2026.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eac2f5dbafd585dfe31f86a23ebf0d3ba480a9d49ebc87947267b5608d4ea0cd", size = 371623, upload-time = "2026-10-04T16:30:10.501Z" }, + { url = "https://files.pythonhosted.org/packages/53/c7/4758ddcbb75609414bbccfcb11d612436f9b3ee821bd2f33f0f1604ee648/rpds_py-2026.9.1-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:8aa5dda18d39b6143eb24809d158f9252c88f402749b6f1b62a506cc7d96cc35", size = 376997, upload-time = "2026-10-04T16:30:12.124Z" }, + { url = "https://files.pythonhosted.org/packages/87/e4/947bd7f608ff60faf46dc9d389c3dffd0e3d767d78a0be19978448ef0ce7/rpds_py-2026.9.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5c90e7fa02e8f5de0d10c17595c568ada48c5302e749462c0ea1a4c362111a86", size = 400169, upload-time = "2026-10-04T16:30:13.804Z" }, + { url = "https://files.pythonhosted.org/packages/4b/35/fe93e020a0543b5670472c18d7e6af3197c08da571240ce1965c84f85c0f/rpds_py-2026.9.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:e6d198bad4e49dd6732fbd636e2fc5c082f45c8cad0b4acb756b00c82c76072e", size = 551615, upload-time = "2026-10-04T16:30:15.332Z" }, + { url = "https://files.pythonhosted.org/packages/0d/4f/5d2a0136bb03b2a56a39dc6ff92d58a6e3e53a2e17079238b86228882f16/rpds_py-2026.9.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:96beca19ec79de272e8668585380ff9092c47077c1d7a1e098e00bbd921f4785", size = 614655, upload-time = "2026-10-04T16:30:16.92Z" }, + { url = "https://files.pythonhosted.org/packages/09/1c/3f1025aaf70d9bf7272cc41f8b64ee76b48bf01726248138430e16f23b38/rpds_py-2026.9.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a5cf77eb04f20b720be95265a3e00eb2a14814074255cc27069c551b2db53118", size = 579602, upload-time = "2026-10-04T16:30:18.555Z" }, + { url = "https://files.pythonhosted.org/packages/53/0d/5c72e6204f76610608706da32b6b7e11ef7e10317558a7bb15a122e008dc/rpds_py-2026.9.1-cp314-cp314-win32.whl", hash = "sha256:a03d57b86d2a51d0a66c92177e2be154ad015f357791d306e714569999cdb4cc", size = 206315, upload-time = "2026-10-04T16:30:20.05Z" }, + { url = "https://files.pythonhosted.org/packages/a4/0b/489d48abbcc7d70cf3fbf662d9d22abf1f4650761c0a9ae05260800800d3/rpds_py-2026.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:837c6b305e26fe0f75b15c92cf3b2ba29e0ae19dc40b1c557b026cb426347d0c", size = 222852, upload-time = "2026-10-04T16:30:21.604Z" }, + { url = "https://files.pythonhosted.org/packages/91/16/bbb05a7e6a10cf79ba639be7f799d770ee15f64175cc61d081b218dd402a/rpds_py-2026.9.1-cp314-cp314-win_arm64.whl", hash = "sha256:fce4b85234a0cbad67bf8e6e1201ee815d172c9aebad75f25645bc4d834f8e31", size = 218709, upload-time = "2026-10-04T16:30:23.036Z" }, + { url = "https://files.pythonhosted.org/packages/22/ac/ac507a0a4ec478ca470440a09583db4be5259ba7670aeba0620822f1e57a/rpds_py-2026.9.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:3a72c11530d71abfb66c8d7696a2f86c43e63fca8b948f1a784ac490f4ec688e", size = 349596, upload-time = "2026-10-04T16:30:24.558Z" }, + { url = "https://files.pythonhosted.org/packages/e9/f2/817a46b658d5070f477f722c298ee9a24525b0e4017347964146ef5fdd0e/rpds_py-2026.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:068c37bba854ec2fe42f7365c640af11dd9895890ccbf2df5070d0c059bd7f96", size = 343114, upload-time = "2026-10-04T16:30:26.048Z" }, + { url = "https://files.pythonhosted.org/packages/6c/42/6ade976b13ac1b4cb3bf2eb603f1be2fe74df19a29988d4c2b386be59d6f/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d7fca4eb6df565e2a928f1c7dad92d27db8f9df0f449e76423ed5d7e713ed445", size = 374197, upload-time = "2026-10-04T16:30:27.699Z" }, + { url = "https://files.pythonhosted.org/packages/d9/70/77cdf1d3f1a07faabe936016ae623aec7981f73108a8fe7a203ed2e21998/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c933c6678c6f116ff8af47a4c6db0868b8ace74af0343016c0ef00f00272ea69", size = 378025, upload-time = "2026-10-04T16:30:29.451Z" }, + { url = "https://files.pythonhosted.org/packages/3f/6b/18a44a3beaa9b7931acb04af7bd9539836477c630a794452d4826d6185d4/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:028ad274ea951dac64491b5d1e65712a4aeabfdbdb9fccf797b57bd899b0c495", size = 491969, upload-time = "2026-10-04T16:30:30.995Z" }, + { url = "https://files.pythonhosted.org/packages/73/27/fb39cfd6bddaf741b024f813890374578ff8ac1f1adc473659c048b03b05/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:740d0a99cf9de0b17a3943388e9294a59becf75e7c43421f387bd3c7a9901f7c", size = 393905, upload-time = "2026-10-04T16:30:32.628Z" }, + { url = "https://files.pythonhosted.org/packages/ed/71/0fa7bb77b57af0d710273964180d11b503f62b8a5c358eb2d8c3f62feff6/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0da298fb372dc192610a4b9ecbc68a0cd8b675bbbd1fc519d01b41cfd658333e", size = 374569, upload-time = "2026-10-04T16:30:34.257Z" }, + { url = "https://files.pythonhosted.org/packages/54/22/f41cfac269af3b449513ef1bc3d7f32fde52abbbd2d01c7e76b47743acd9/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:eb61be926bb81567c1f48bdc8aa22b9855048dc2efd53871f9f7e6e9a5632346", size = 377482, upload-time = "2026-10-04T16:30:35.997Z" }, + { url = "https://files.pythonhosted.org/packages/b4/fc/312b49006e7f8f9ca5f96647577b8aa6f3df30519c46bd448f5c425af0b2/rpds_py-2026.9.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:42e75466f83cd43f6026c81eab74246efb2bdadafb307b85700632d06c68f299", size = 400040, upload-time = "2026-10-04T16:30:37.76Z" }, + { url = "https://files.pythonhosted.org/packages/cf/a6/18cca7a878dc7fa95165a83343fd4d7b65643fd22e54e47340a451121d5c/rpds_py-2026.9.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:617f59cde379b4f648a09797b7f683d04b90a46344cddab85639da5aff0f5531", size = 551849, upload-time = "2026-10-04T16:30:39.443Z" }, + { url = "https://files.pythonhosted.org/packages/e4/6d/1f5685e20f39604691bdc3c05aaa6b8bd2f954e9e996477adf2376768e33/rpds_py-2026.9.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:3edae8c5ddfdb6985d49ae9d150516e5076888879022f91a26c2de9276ce0bdb", size = 614842, upload-time = "2026-10-04T16:30:41.231Z" }, + { url = "https://files.pythonhosted.org/packages/c6/25/98652109fd9f7e10268dd4571aa52b81987001b806f37ef1a18260de714a/rpds_py-2026.9.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:0f045bb053c9057720d72c56dffe30dffdc05997b2897a827b9325f0ab6623fa", size = 582606, upload-time = "2026-10-04T16:30:43.345Z" }, + { url = "https://files.pythonhosted.org/packages/19/03/11ca09099bab5f53373a80a334c424ec917c13d050760a59499d2af5171e/rpds_py-2026.9.1-cp314-cp314t-win32.whl", hash = "sha256:bf35d0568abda97233239ce32896d3ad53fccc537832c104e30c94aa5fb93569", size = 203341, upload-time = "2026-10-04T16:30:44.954Z" }, + { url = "https://files.pythonhosted.org/packages/6f/8a/88909e3ffd9f47f5b58211473875d8c3c09079f0058c46fb72c55a702a26/rpds_py-2026.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:1e8d4d79d828299bf44a55db22a9388ab967b49d17132c88eab0f4360b48da8e", size = 222843, upload-time = "2026-10-04T16:30:46.486Z" }, + { url = "https://files.pythonhosted.org/packages/f6/b7/a662f367d4896dd0a10cef2fc91f10b7f08af1c10858e287e019563f338d/rpds_py-2026.9.1-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:1d77b649e6f7cdf12ca5c2a98dad0ad37f9ea9b6f960408a92f0cb12bb3d04d9", size = 347463, upload-time = "2026-10-04T16:30:48.203Z" }, + { url = "https://files.pythonhosted.org/packages/ae/3f/ad45d03df4f84ebae5439577ee81f3999d182711e82235c8037b6528890e/rpds_py-2026.9.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:00ba2d8c7dd4ee537978ddf4b3fbd712bef2d8751603f7f3146b3f4287768e25", size = 342051, upload-time = "2026-10-04T16:30:49.872Z" }, + { url = "https://files.pythonhosted.org/packages/7e/31/3dcd68c13d4bcc59c1f7eb33ac8e80698f06f3eb0d8a1e06419836071c20/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ec450527cbf485e13c8d3602a54f428ab0432fdade0ede75efd74b735421c871", size = 374143, upload-time = "2026-10-04T16:30:51.508Z" }, + { url = "https://files.pythonhosted.org/packages/cf/0d/68c1f058a250fbd1380ebda9fc227cbf50117adf8ffe8161ef383ea79f68/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:306ee1850d8105b5baf977e78d45fcadd12c1a54678d614c9baf217708446e91", size = 378604, upload-time = "2026-10-04T16:30:53.206Z" }, + { url = "https://files.pythonhosted.org/packages/d7/d6/2d4c59b85397cb4800594fadf692688ccf5ce556adc930e7a5bf21061a5e/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ef6b65b03247c54692ad4fd9ee97cb772781927db72e3cb05e70b3db6d1ff14f", size = 490790, upload-time = "2026-10-04T16:30:54.925Z" }, + { url = "https://files.pythonhosted.org/packages/da/04/7e05dc3aebaf52f4e026766bd668fdd09a9d0e23f64a14686b36b3501892/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a575404ebc9cf2e91edd32eaf570ec1430eb900d4f56724ba7dd4bc1fc9c176d", size = 393146, upload-time = "2026-10-04T16:30:56.625Z" }, + { url = "https://files.pythonhosted.org/packages/57/ca/e2e9a0a46a74ed51a0498ba1fe10f4ea6b2d9a155f372a2f91e51f18cf10/rpds_py-2026.9.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c16ab111bc27c646ba8aa005d0527754edc538ebb636f0b1bf8e244b48d1945", size = 372022, upload-time = "2026-10-04T16:30:58.295Z" }, + { url = "https://files.pythonhosted.org/packages/ba/cb/8f8774df5134e23424372838bcc5c7ed4127d723e1ff52f7bebd4dcb2563/rpds_py-2026.9.1-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:7664419f27db41d4f1c43a78dccda7dd6e8ef2428df3ee01d0c2a07a6b071297", size = 377092, upload-time = "2026-10-04T16:30:59.984Z" }, + { url = "https://files.pythonhosted.org/packages/90/02/8d7095d73bf9114219be40230baa5df00611e0a82ed9517779ff9c19f82b/rpds_py-2026.9.1-cp315-cp315-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4b26b03d9d2658ee2fa234f8f4f19f38a09773fe5261028025032e26d4d35af0", size = 400830, upload-time = "2026-10-04T16:31:01.721Z" }, + { url = "https://files.pythonhosted.org/packages/ec/02/8206856f8f363cd042a8315dc86b3912f5dcb6d3c66bbb24b69c2bfb0775/rpds_py-2026.9.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:be3e47e2d91aa3942ff9bf4077a505226005abfc39b6f7554a91c1b9393986b9", size = 551478, upload-time = "2026-10-04T16:31:03.472Z" }, + { url = "https://files.pythonhosted.org/packages/41/6b/36211f1bb1f0b0313f496d92f5905b74ea107f27cb16fa3355a82f04575e/rpds_py-2026.9.1-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:6307a0da524939decb8ca4a3933b8ab62525794411d6984fca6726e732804af6", size = 615173, upload-time = "2026-10-04T16:31:05.281Z" }, + { url = "https://files.pythonhosted.org/packages/35/77/cda0c4a6f055446b692f0ed5692f73707cafd3dff82672ede31b1a9b59de/rpds_py-2026.9.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:159a7aab5c5e8b112c8830f54717ce56da1252ebdbb526f5be2df2309280b9e7", size = 579653, upload-time = "2026-10-04T16:31:07.065Z" }, + { url = "https://files.pythonhosted.org/packages/74/ec/d8385f446240aed643b9e92a5055cff3015cc04a13c61f73b2883c478ed5/rpds_py-2026.9.1-cp315-cp315-win32.whl", hash = "sha256:dbc2673f9223d420c91145599b3ba45a8a50c207d1976908e5fb5ddb0c9b9429", size = 206498, upload-time = "2026-10-04T16:31:08.989Z" }, + { url = "https://files.pythonhosted.org/packages/6d/a5/71b5cd00e0521e3b6b81828baea368c62b6b700ebdd9554cd7d41ddf12fa/rpds_py-2026.9.1-cp315-cp315-win_amd64.whl", hash = "sha256:75c38c50ab9aca840225d9a9a3810bf11d04bd5c1f186cabbb8aee56db3e9b15", size = 223121, upload-time = "2026-10-04T16:31:10.84Z" }, + { url = "https://files.pythonhosted.org/packages/33/58/dba857c3bc8221b31b62eb170a3080f4f191de79f047200389b7ed1b06a7/rpds_py-2026.9.1-cp315-cp315-win_arm64.whl", hash = "sha256:a431156bb41865fc14cd5d79bb9d7bbed83110b0159e34e62ae30951f96c0009", size = 218741, upload-time = "2026-10-04T16:31:12.592Z" }, + { url = "https://files.pythonhosted.org/packages/5b/d0/320ab28ccc1415eeb509d68682b0014fb74690cd49f1c2d29a232475af50/rpds_py-2026.9.1-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:ef0d8c843e2827d6c120ab4687e9423fb1d893db1df27b7c1506615bcb9734a0", size = 349719, upload-time = "2026-10-04T16:31:14.48Z" }, + { url = "https://files.pythonhosted.org/packages/56/88/f5b12f1358f443c08b7ce3cc8391d82d335f4872580e2e097847fd36087a/rpds_py-2026.9.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:45bc6bccf78b20fd834237d18db64965d7ee68ba7f60440a26c7ab71e7b8d51a", size = 343267, upload-time = "2026-10-04T16:31:16.827Z" }, + { url = "https://files.pythonhosted.org/packages/f7/0c/c765b0059d532acb3b9c45d781ccc22f15a96dbe443d00903f643ba9df10/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1d55198263bb51f557550c6ed2e6d1cb6a6fed6eb5c9120b741c5926bef8a45d", size = 374555, upload-time = "2026-10-04T16:31:18.931Z" }, + { url = "https://files.pythonhosted.org/packages/6b/8a/cafddfda77564a10cd21184640c3bffda6a2b8d20972fb5dedd5e0166328/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a8763f20692da7df39b0afdd1ba3042b004c50a45994f76c2d9a25641f7673db", size = 378346, upload-time = "2026-10-04T16:31:20.75Z" }, + { url = "https://files.pythonhosted.org/packages/b9/01/5e626016eff72c183bf6c96539240cace15d402468647a453ec08415b2fc/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e43d4a1f673e8a1cbd8533e809e02b4bf9d4f2280269bb640436556312121250", size = 492373, upload-time = "2026-10-04T16:31:22.614Z" }, + { url = "https://files.pythonhosted.org/packages/3b/9c/15a2469e9389242f46896b3f0a01d68caea8a5a35c011fcb05ef333aae73/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ea394a937f17a54c51239348bdbe2e3518124c8d4a8951ba04a311d3095bd18f", size = 394371, upload-time = "2026-10-04T16:31:24.768Z" }, + { url = "https://files.pythonhosted.org/packages/63/f5/c100ff77e1e6366e947c75969c258fdfc4b7bc5bbfe7351e62ffbf2a1228/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cdeaa99ce822dca76cfb1b993e9120c5ea212f2eb66d48950ad63c349668a018", size = 375132, upload-time = "2026-10-04T16:31:26.588Z" }, + { url = "https://files.pythonhosted.org/packages/dd/f4/fe0269c9de253e99c81cabc12b8971a5feaa083debdaff1221e06264d9e3/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:b4f062343e7ad3fa94f2c66e5ae667dee47ee74dd41a9057c4fbe163236a123d", size = 377642, upload-time = "2026-10-04T16:31:28.677Z" }, + { url = "https://files.pythonhosted.org/packages/05/65/b34a7b257baccff8f4a24a722933166d4941d5ebdc9c3f4bc4ffcd5ce4f4/rpds_py-2026.9.1-cp315-cp315t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:22ffd29a63d71fb1b81552c21f2c2b734949b7ac751a9be70675a939a900839b", size = 400855, upload-time = "2026-10-04T16:31:30.802Z" }, + { url = "https://files.pythonhosted.org/packages/98/32/844e54176b6071b90b38a564e6940bc6eb8f97b2890dc709c19db9dec0f4/rpds_py-2026.9.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:08dae4a4095150a7c4545a1fb40b98e1ab1744fbc2770d92c977b9dadaa49ab6", size = 552573, upload-time = "2026-10-04T16:31:32.709Z" }, + { url = "https://files.pythonhosted.org/packages/17/73/6041d20729dffbfdf155c02d65be58bc225a1c1fb548fd87c23ef306138f/rpds_py-2026.9.1-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:9a0460d43603d1fd9ef59c30278531e15d78581721ddb538fa560aa7817ea4ad", size = 615840, upload-time = "2026-10-04T16:31:34.565Z" }, + { url = "https://files.pythonhosted.org/packages/af/9e/418094adaee6b056ce199051b255448ed872829051e341b2294c80da0977/rpds_py-2026.9.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:1c2d1f6da5128eabf34e963d7163a818846075a52568250d006c4c953b40f903", size = 582764, upload-time = "2026-10-04T16:31:36.665Z" }, + { url = "https://files.pythonhosted.org/packages/3d/9b/1698ebf6b840ddfe8b472198abbed6ace35c6e398faeecd6c47dae742a4e/rpds_py-2026.9.1-cp315-cp315t-win32.whl", hash = "sha256:5c6ee90dee3e85e055ddfd502d611643d9b0fd94c818220bda84ec3dacd9b27b", size = 203795, upload-time = "2026-10-04T16:31:38.53Z" }, + { url = "https://files.pythonhosted.org/packages/8a/e2/91f70d804c61f8eac39a417e82aa1024f655ab9e8bdd7393b196242bc41b/rpds_py-2026.9.1-cp315-cp315t-win_amd64.whl", hash = "sha256:fe5ad0664ec772b02c45859041aa17655709cced7a31005817fbbbd988c25567", size = 223037, upload-time = "2026-10-04T16:31:40.468Z" }, + { url = "https://files.pythonhosted.org/packages/f3/ad/f0eba548e297987964ef8088403db875b333963bf8189f3f563b6936b20e/rpds_py-2026.9.1-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4c0d2cb595a420b34d5086db0add011e26e2c09d6a024afbac4228bf8f863a30", size = 384112, upload-time = "2026-10-04T16:31:42.643Z" }, + { url = "https://files.pythonhosted.org/packages/33/89/891fa4d81f1eae7fe262ecd0aba2c51de94a116c7f3ccfb034fa75f4c537/rpds_py-2026.9.1-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f3d6ed6a98cfd19155996605474982cc470d7601746a6439078f1a5a3fa8b050", size = 389662, upload-time = "2026-10-04T16:31:44.642Z" }, + { url = "https://files.pythonhosted.org/packages/4f/46/912cf623b2263f9c9c2d04e8508fc38dbe89983faeba5fb36ca4558ae550/rpds_py-2026.9.1-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8171b44a054e5c67fd748ada04187f1250bf35b95f85e52ab64bcf3331a923bb", size = 504637, upload-time = "2026-10-04T16:31:46.667Z" }, + { url = "https://files.pythonhosted.org/packages/9b/5c/7f3cfa7c5f01765c9f47c8398210ed0c1eb686c0e99c223cb1c6776d3fb9/rpds_py-2026.9.1-pp311-pypy311_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fda1d96e542c37b6c804547dbf489c129fe7c97183a76a5ec275909ba1a063df", size = 402607, upload-time = "2026-10-04T16:31:49.068Z" }, + { url = "https://files.pythonhosted.org/packages/f0/76/2e915d4115ee453c33e6af17bc1df7e22ddc52974e178eeeb92a78c09983/rpds_py-2026.9.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:270bdcdaac5d5b6f73c5e22e7e135c7f2a50e789f71d9e241d5be8d90026e19a", size = 382762, upload-time = "2026-10-04T16:31:51.24Z" }, + { url = "https://files.pythonhosted.org/packages/0d/e5/844382925d7b84a4074ad79fc2b9d05eb6231ea243b34f247e68e519b606/rpds_py-2026.9.1-pp311-pypy311_pp73-manylinux_2_31_riscv64.whl", hash = "sha256:84a6ecc0c940169190d2c23bd969debd48c94dbc855acd60188a68d71d421608", size = 389563, upload-time = "2026-10-04T16:31:53.549Z" }, + { url = "https://files.pythonhosted.org/packages/81/82/d6e3951602dc2e24790ef9d299aa24bf5e2493df5043f2c6da00480cc447/rpds_py-2026.9.1-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ab4b2fda7c2b542f7f9d886cc6a838c5079d2b76f72e6081411faba11adde2c9", size = 416842, upload-time = "2026-10-04T16:31:55.76Z" }, + { url = "https://files.pythonhosted.org/packages/ea/1c/8d248e4ea671d525ab7daa0703ad81cc2175076fa0ccd7ef088facbd2b01/rpds_py-2026.9.1-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:44b32a7c4f0da3d28af31c259e38ddcff096f855e205ed0671d02fcf44f1ea1c", size = 562434, upload-time = "2026-10-04T16:31:57.874Z" }, + { url = "https://files.pythonhosted.org/packages/ad/38/e7ac0db898120d15dea25e3661b1242a40cb3b23d1f4db86c15a01fe0ba1/rpds_py-2026.9.1-pp311-pypy311_pp73-musllinux_1_2_i686.whl", hash = "sha256:a3dbc5ed9514908d5046107d7b1346bde71eea61de6e0e4919c19354f97e769f", size = 627909, upload-time = "2026-10-04T16:31:59.977Z" }, + { url = "https://files.pythonhosted.org/packages/03/c8/37e555514932cb1ee36c75349187aa882a98dee5d5654c761699ed8a0d27/rpds_py-2026.9.1-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:6eae33003518fd4cb4f83a218d5371469dd3001aa3b87128c005b07762f7fe5e", size = 593658, upload-time = "2026-10-04T16:32:02.14Z" }, + { url = "https://files.pythonhosted.org/packages/12/5c/5f69a91add94a8a33acea68a2b034a464946a654ff7296af9d957ef0d6a5/rpds_py-2026.9.1-pp311-pypy311_pp80-macosx_10_12_x86_64.whl", hash = "sha256:0483515261947e4e8b8e1375bf7463e7eb6ccfb3d86e7b554d90cd5285f20f32", size = 351769, upload-time = "2026-10-04T16:32:04.675Z" }, + { url = "https://files.pythonhosted.org/packages/41/22/35ea8bf3b2682b90ab687c74e4828418ff12298a5b0b0a0c033f61c86a30/rpds_py-2026.9.1-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:4cfaf02209061880210819934de2f4f6aa83dc04dafe6770276acc240a56da31", size = 351719, upload-time = "2026-10-04T16:32:06.834Z" }, + { url = "https://files.pythonhosted.org/packages/a3/90/a9ba81408369d34c1aca73319c15adc91ed45c1d21e9e8ee4832ffb7fe0b/rpds_py-2026.9.1-pp312-pypy312_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6cdc537c8633d7fd92a82e2e0d2ab74320a3f63d5e59fb9cf08711e08fe151c4", size = 381109, upload-time = "2026-10-04T16:32:08.994Z" }, + { url = "https://files.pythonhosted.org/packages/b3/44/5192a0bed94cec86bd2a5e1cc5a1bb8f7eec3aec907eacd2deb13e87e326/rpds_py-2026.9.1-pp312-pypy312_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:10e208f2425d973938afcd56e28a7c4be32e27b6a60b5d381f49fb9d8acf9759", size = 388222, upload-time = "2026-10-04T16:32:11.321Z" }, + { url = "https://files.pythonhosted.org/packages/92/cd/5356549711448f18b52f7a11ffbe90f1228774996fbf3c6cd1b18d22abaf/rpds_py-2026.9.1-pp312-pypy312_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6c0dbbcc19735fe5f8b0a54c07659d154a9e69f47e15d0a6ab7299215daf62cb", size = 500384, upload-time = "2026-10-04T16:32:13.478Z" }, + { url = "https://files.pythonhosted.org/packages/7a/88/ddda9d28adfe33119c75b2e733d4ba7e326f41d7e1b1093951771768ca48/rpds_py-2026.9.1-pp312-pypy312_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:684fd492fff4fead00587544e059be2bbcb6f93454f21fa2a91b66fc7508be82", size = 401661, upload-time = "2026-10-04T16:32:15.653Z" }, + { url = "https://files.pythonhosted.org/packages/32/c3/bb59ba16a6b4a57995d15b8c04c00f28df3b938c4dcdde48fbe0f73edb0c/rpds_py-2026.9.1-pp312-pypy312_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d1028417bb44037eb3069c1009bd7b7277212876cda22fbe565b0bca9fab6d2c", size = 380748, upload-time = "2026-10-04T16:32:17.727Z" }, + { url = "https://files.pythonhosted.org/packages/f5/b8/0580faa1c5a32ddc160130dd7ae54d2d007272a89a40a6b5db3e50f9f585/rpds_py-2026.9.1-pp312-pypy312_pp73-manylinux_2_31_riscv64.whl", hash = "sha256:492e5e428cbe126221611f47e068f01660352feec4ad18bc0f5ea9b2ae88fb14", size = 385731, upload-time = "2026-10-04T16:32:19.855Z" }, + { url = "https://files.pythonhosted.org/packages/bf/70/f73564642bbe3322c7eeef2c2f258cf040b71c41a430b532e59d04a1b838/rpds_py-2026.9.1-pp312-pypy312_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:88b5268892fde430d5531f95bc560b6efbbd67c929662c586afd729a96e7461c", size = 412131, upload-time = "2026-10-04T16:32:22.285Z" }, + { url = "https://files.pythonhosted.org/packages/8c/5d/17fff2e1f8f68721a2afb5cb48f7e442c751bb6b4883157c5abaf618cd08/rpds_py-2026.9.1-pp312-pypy312_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:01445c8d194aa032a08e944f16567672da1c62dbdbefd8b6d0693032e290cf68", size = 558193, upload-time = "2026-10-04T16:32:24.4Z" }, + { url = "https://files.pythonhosted.org/packages/2a/d0/869ab6fb08531f97aae4a780b4d61b4190d8aef48fe054ee28bcf7114466/rpds_py-2026.9.1-pp312-pypy312_pp73-musllinux_1_2_i686.whl", hash = "sha256:eef6a03b0b6d08d0835ccfa8ec8d1bc70525e3801387567137b50c557695e6da", size = 622448, upload-time = "2026-10-04T16:32:26.844Z" }, + { url = "https://files.pythonhosted.org/packages/ba/a5/9672e532fe02cd3b92c78cfd8743abca939d96853006c63835009a1ecb6f/rpds_py-2026.9.1-pp312-pypy312_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:6b9bf3135b4ad5981df9a73d71a35272d650a2985ae9c2746357b24d59de2448", size = 591126, upload-time = "2026-10-04T16:32:29.274Z" }, + { url = "https://files.pythonhosted.org/packages/80/ef/3a9f8e4279c7920af561deed4cb7ebebed2794a8f608cf404d5eef14a105/rpds_py-2026.9.1-pp312-pypy312_pp80-macosx_10_12_x86_64.whl", hash = "sha256:56c6952a9b15047466d0c2347c446a761d4527f89976156341e68f0ce5cc08b0", size = 357108, upload-time = "2026-10-04T16:32:31.641Z" }, + { url = "https://files.pythonhosted.org/packages/b7/55/4b2fa381a583760aea5c92841e4e928a358e1c6511b129219e9c2826a226/rpds_py-2026.9.1-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:b242c27c8f836305a4a72df9cdd564386ac57b807bd252a063223331c9316b37", size = 346877, upload-time = "2026-10-04T16:32:34.061Z" }, ] [[package]] @@ -4531,8 +4399,8 @@ name = "secretstorage" version = "3.5.0" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "cryptography" }, - { name = "jeepney" }, + { name = "cryptography", marker = "python_full_version != '3.12.*' or sys_platform != 'emscripten'" }, + { name = "jeepney", marker = "python_full_version != '3.12.*' or sys_platform != 'emscripten'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz", hash = "sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size = 19884, upload-time = "2025-11-23T19:02:53.191Z" } wheels = [ @@ -4557,27 +4425,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, ] -[[package]] -name = "slack-bolt" -version = "1.30.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "slack-sdk" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e3/4f/5ba15533d66da2e7174334cc0e2805142e5390c9f4c5f31633df78b17006/slack_bolt-1.30.0.tar.gz", hash = "sha256:af38258d41f801ad9c74503090e0f39accd66c49f667f7e55c97fcdb0e51b886", size = 131180, upload-time = "2026-07-15T20:47:33.679Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/2f/ee/1a7a286cf98fa3f4eeffaabc090e82f58f058ab4812aa1d7421d92c2637a/slack_bolt-1.30.0-py2.py3-none-any.whl", hash = "sha256:81f5bc46e79516d23d5e2a31dded6304dd1b8b6b72c0083f2f31d5d801e262c4", size = 235341, upload-time = "2026-07-15T20:47:32.113Z" }, -] - -[[package]] -name = "slack-sdk" -version = "3.43.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/13/75/a4964eb771a0c74d79ee7a3bee6fb5d9718909dd1b675e80d62a6a0ad90a/slack_sdk-3.43.0.tar.gz", hash = "sha256:0553152e46c4259eb69f7464cdadc35ba4802ca10f9f5a849c92cf03d6c2ba07", size = 252769, upload-time = "2026-06-30T18:04:41.59Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e4/55/42141b8338d46323d5b3c6095201b044c670c20f898643b322ea9b1543a1/slack_sdk-3.43.0-py2.py3-none-any.whl", hash = "sha256:4b6557c65577fc172f685af218b811f9f3b4909e24cddd839ada09565f10c585", size = 315866, upload-time = "2026-06-30T18:04:39.636Z" }, -] - [[package]] name = "sniffio" version = "1.3.1" @@ -4596,49 +4443,41 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/4c/07/2ebca9b11fb9be7340a818d8d6f63feaebb146be2c4afbd6061701d6df6e/snowballstemmer-3.1.1-py3-none-any.whl", hash = "sha256:7e207fa178741da09cdee59d3ecec3827ad5f92b1fc5c9ff3755b639f71f5752", size = 104164, upload-time = "2026-06-03T00:56:38.614Z" }, ] -[[package]] -name = "soupsieve" -version = "2.8.4" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/47/2c/0a5f6f8ee0d5589e48c7640213ed5175d52cf540a06725b628cc1a45d6ce/soupsieve-2.8.4.tar.gz", hash = "sha256:e121fd02e975c695e4e9e8774a5ee35d74714b59307868dcc5319ad2d9e3328e", size = 121110, upload-time = "2026-05-24T13:55:57.154Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5e/f5/0c41cb68dcae6b7de4fac4188a3a9589e21fb31df21ea3a2e888db95e6c9/soupsieve-2.8.4-py3-none-any.whl", hash = "sha256:e7e6b0769c8f51ed59acab6e994b00621096cfb1c640a7509295987388fbaf65", size = 37304, upload-time = "2026-05-24T13:55:55.406Z" }, -] - [[package]] name = "sse-starlette" -version = "3.4.5" +version = "3.5.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, { name = "starlette" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/d2/1b/bc9e3e7a72dcdad7dc7888758f5d00f56f8909ed5cfdff822bd72bb4c520/sse_starlette-3.4.5.tar.gz", hash = "sha256:83072538bc211a2f68b7b0422226c4af3e9b62e106e07034664b832ca019842a", size = 35249, upload-time = "2026-06-20T17:36:58.322Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e4/be/0123026f719d1a7936f214a88b553bb5701e04ff2511147c1dab0c5035eb/sse_starlette-3.5.0.tar.gz", hash = "sha256:75de713aa8a9441513cc283220826da079d982770965b951e9437720e8bafdb2", size = 36794, upload-time = "2026-09-28T17:48:14.7Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/78/75/c88d3f5dafd59c791da1ce27650d30bf5b70cbf1cbf01cd00e5f9e360915/sse_starlette-3.4.5-py3-none-any.whl", hash = "sha256:e71bad53323f65573c3864a6c3bd0c1eb6e5f092b2e48082b0c35927d19ca296", size = 16518, upload-time = "2026-06-20T17:36:56.729Z" }, + { url = "https://files.pythonhosted.org/packages/be/e4/cdda14023c316d71493bc54fdffc3dd006631b88866145c9d3cc33e0f1df/sse_starlette-3.5.0-py3-none-any.whl", hash = "sha256:3e6e1070df3f0f5d9cea81496de92dbb72f6721871d99748ece67441dd8b7997", size = 17407, upload-time = "2026-09-28T17:48:13.228Z" }, ] [[package]] name = "starlette" -version = "1.3.1" +version = "1.8.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, { name = "typing-extensions", marker = "python_full_version < '3.13'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/eb/e3/7c1dc7381d9f8ab7d854328ebfa884e62cb3f3d8549ddfd37c7814f42afa/starlette-1.3.1.tar.gz", hash = "sha256:05d0213193f2fbaae60e2ecb593b4add4262ad4e46536b54abe36f11a71724e0", size = 2703240, upload-time = "2026-06-12T09:23:11.602Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e9/0c/6efb252d091ecccd7d62048ae11f0ea35cd75a4fbaeea5e30f9c3bf91d10/starlette-1.8.0.tar.gz", hash = "sha256:1565dc0b35d5737a271ed1e0e04e949f4e81198799f216d2667b0a0fb9cf9522", size = 2730457, upload-time = "2026-10-13T07:54:39.53Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ec/bb/2799cc2ede3ed41131f8975621e7213dfc7ef4acbbaadfa440f32500c370/starlette-1.3.1-py3-none-any.whl", hash = "sha256:c7372aae11c3c3f26a42df7bd626cec2f47d03483d261d369516a615a53714c6", size = 73632, upload-time = "2026-06-12T09:23:10.017Z" }, + { url = "https://files.pythonhosted.org/packages/c1/b0/5742e4ac7af5eb58ec3470a537a49d7aa507e5539413e504b3a65ef50ba8/starlette-1.8.0-py3-none-any.whl", hash = "sha256:dfdd6b29c26483288088d990eee59631dedadd66ce20d203402a7ca8e3c4656f", size = 79612, upload-time = "2026-10-13T07:54:38.019Z" }, ] [[package]] name = "strands-agents" -version = "1.47.0" +version = "1.60.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "boto3" }, { name = "botocore" }, { name = "docstring-parser" }, + { name = "httpx" }, { name = "jsonschema" }, { name = "mcp" }, { name = "opentelemetry-api" }, @@ -4649,37 +4488,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "watchdog" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/2e/05/5eb8431ff340739b1c21b0da7d19ec9604b9c4953a1c4638df915321573c/strands_agents-1.47.0.tar.gz", hash = "sha256:97770cb6beb6e5fd1a58849f41201eb7edb43fd67ad3de6544ada2f342c2bcf0", size = 1157139, upload-time = "2026-07-10T14:45:05.809Z" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/04/2eba3ef1d72d8bfe78d103ca5aa46001085eeee877bc16e2a89308253758/strands_agents-1.60.0.tar.gz", hash = "sha256:14afec652c6f3ae88ed65e1098db21297ff6daf7ddaa7f6eff6250f6a7c160a3", size = 1760086, upload-time = "2026-10-12T19:37:48.139Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d0/cb/ceae892c5823bea9254160efc02a4553f2ced9d183676110c03c3a9ff0f3/strands_agents-1.47.0-py3-none-any.whl", hash = "sha256:1f6ce17404ff02079244ad7a4a180a2a7150546275e4b91187d71472ba8fe3f2", size = 600611, upload-time = "2026-07-10T14:45:03.942Z" }, -] - -[[package]] -name = "strands-agents-tools" -version = "0.8.3" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "aiohttp" }, - { name = "aws-requests-auth" }, - { name = "botocore" }, - { name = "dill" }, - { name = "markdownify" }, - { name = "pillow" }, - { name = "prompt-toolkit" }, - { name = "pyjwt" }, - { name = "requests" }, - { name = "rich" }, - { name = "slack-bolt" }, - { name = "strands-agents" }, - { name = "sympy" }, - { name = "tenacity" }, - { name = "typing-extensions" }, - { name = "tzdata", marker = "sys_platform == 'win32'" }, - { name = "watchdog" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/17/dd/aaa1f17ec10db4a9f49e2e48bd3cd5fb646c1c284e4fe6fa0a6a32380914/strands_agents_tools-0.8.3.tar.gz", hash = "sha256:19f6d3d617e9ef85b0a31c475f0a3f81d8ea60a2ed7dc6bd8f17fdd586c94d46", size = 511310, upload-time = "2026-07-09T19:55:59.262Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b1/8b/1500ae455cc8434a54f013278320042d88ba9daffb5dafaed1fa8b48c3f3/strands_agents_tools-0.8.3-py3-none-any.whl", hash = "sha256:bc17fbad5ad7957bef33538fb5e0c386f7883dab92c557e92175e7ff16b42dac", size = 327194, upload-time = "2026-07-09T19:55:57.473Z" }, + { url = "https://files.pythonhosted.org/packages/c0/e8/a449e98c09edcf270a54fb2707ce0d28d86b7fbfef577bcd4b827c80f7ed/strands_agents-1.60.0-py3-none-any.whl", hash = "sha256:3d0c9f6cb263c1d7f54ebd0f653d873deb8b1d88d1f3c161bc71515c5d616b27", size = 885125, upload-time = "2026-10-12T19:37:45.667Z" }, ] [[package]] @@ -4696,12 +4507,11 @@ wheels = [ [[package]] name = "temporalio" -version = "1.32.0" +version = "1.36.1" source = { virtual = "." } dependencies = [ { name = "nexus-rpc" }, { name = "protobuf" }, - { name = "python-dateutil", marker = "python_full_version < '3.11'" }, { name = "types-protobuf" }, { name = "typing-extensions" }, ] @@ -4711,17 +4521,23 @@ aioboto3 = [ { name = "aioboto3" }, { name = "types-aioboto3", extra = ["s3"] }, ] +cloud-run-worker-otel = [ + { name = "opentelemetry-api" }, + { name = "opentelemetry-exporter-otlp-proto-grpc" }, + { name = "opentelemetry-sdk" }, + { name = "protobuf" }, +] deepagents = [ - { name = "deepagents", marker = "python_full_version >= '3.11'" }, - { name = "langchain", marker = "python_full_version >= '3.11'" }, - { name = "langchain-core", marker = "python_full_version >= '3.11'" }, + { name = "temporalio-deepagents" }, +] +gcloud-aio-storage = [ + { name = "gcloud-aio-storage" }, ] google-adk = [ - { name = "google-adk" }, - { name = "mcp" }, + { name = "temporalio-google-adk", extra = ["mcp"] }, ] google-genai = [ - { name = "google-genai" }, + { name = "temporalio-google-genai", extra = ["mcp"] }, ] grpc = [ { name = "grpcio" }, @@ -4734,14 +4550,13 @@ lambda-worker-otel = [ { name = "opentelemetry-semantic-conventions" }, ] langgraph = [ - { name = "langgraph" }, + { name = "temporalio-langgraph" }, ] langsmith = [ - { name = "langsmith" }, + { name = "temporalio-langsmith" }, ] openai-agents = [ - { name = "mcp" }, - { name = "openai-agents" }, + { name = "temporalio-openai-agents" }, ] opentelemetry = [ { name = "opentelemetry-api" }, @@ -4751,34 +4566,19 @@ pydantic = [ { name = "pydantic" }, ] strands-agents = [ - { name = "strands-agents" }, + { name = "temporalio-strands-agents" }, ] [package.dev-dependencies] dev = [ - { name = "async-timeout", marker = "python_full_version < '3.11'" }, { name = "basedpyright" }, { name = "cibuildwheel" }, { name = "cryptography" }, - { name = "deepagents", marker = "python_full_version >= '3.11'" }, { name = "googleapis-common-protos" }, - { name = "grpcio-tools" }, { name = "httpx" }, - { name = "langchain", marker = "python_full_version >= '3.11'" }, - { name = "langchain-anthropic", marker = "python_full_version >= '3.11'" }, - { name = "langchain-core", marker = "python_full_version >= '3.11'" }, - { name = "langgraph" }, - { name = "langsmith" }, - { name = "litellm" }, { name = "maturin" }, - { name = "mcp" }, { name = "moto", extra = ["s3", "server"] }, { name = "mypy" }, - { name = "mypy-protobuf" }, - { name = "openai-agents" }, - { name = "openai-agents", extra = ["litellm"], marker = "python_full_version < '3.14'" }, - { name = "openinference-instrumentation-google-adk" }, - { name = "openinference-instrumentation-openai-agents" }, { name = "opentelemetry-exporter-otlp-proto-grpc" }, { name = "opentelemetry-sdk-extension-aws" }, { name = "opentelemetry-semantic-conventions" }, @@ -4796,77 +4596,62 @@ dev = [ { name = "pytest-xdist" }, { name = "ruff" }, { name = "setuptools" }, - { name = "strands-agents" }, - { name = "strands-agents-tools" }, + { name = "temporalio-openai-agents" }, { name = "toml" }, + { name = "tomlkit" }, { name = "twine" }, ] [package.metadata] requires-dist = [ { name = "aioboto3", marker = "extra == 'aioboto3'", specifier = ">=10.4.0" }, - { name = "deepagents", marker = "python_full_version >= '3.11' and extra == 'deepagents'", specifier = ">=0.6.12,<0.7" }, - { name = "google-adk", marker = "extra == 'google-adk'", specifier = ">=2.2.0,<3" }, - { name = "google-genai", marker = "extra == 'google-genai'", specifier = ">=2.10.0,<3.0.0" }, - { name = "grpcio", marker = "extra == 'grpc'", specifier = ">=1.48.2,<2" }, - { name = "langchain", marker = "python_full_version >= '3.11' and extra == 'deepagents'", specifier = ">=1.3.11,<2" }, - { name = "langchain-core", marker = "python_full_version >= '3.11' and extra == 'deepagents'", specifier = ">=1.4.8,<2" }, - { name = "langgraph", marker = "extra == 'langgraph'", specifier = ">=1.1.0" }, - { name = "langsmith", marker = "extra == 'langsmith'", specifier = ">=0.7.34,<0.9" }, - { name = "mcp", marker = "extra == 'google-adk'", specifier = ">=1.24,<2" }, - { name = "mcp", marker = "extra == 'openai-agents'", specifier = ">=1.9.4,<2" }, - { name = "nexus-rpc", specifier = "==1.4.0" }, - { name = "openai-agents", marker = "extra == 'openai-agents'", specifier = ">=0.19.2,<0.20" }, + { name = "gcloud-aio-storage", marker = "extra == 'gcloud-aio-storage'", specifier = ">=9.6.4,<10" }, + { name = "grpcio", marker = "extra == 'grpc'", specifier = ">=1.49.1,<2" }, + { name = "nexus-rpc", specifier = "==1.5.0" }, + { name = "opentelemetry-api", marker = "extra == 'cloud-run-worker-otel'", specifier = ">=1.26,<2" }, { name = "opentelemetry-api", marker = "extra == 'lambda-worker-otel'", specifier = ">=1.26,<2" }, { name = "opentelemetry-api", marker = "extra == 'opentelemetry'", specifier = ">=1.26,<2" }, + { name = "opentelemetry-exporter-otlp-proto-grpc", marker = "extra == 'cloud-run-worker-otel'", specifier = ">=1.11.1,<2" }, { name = "opentelemetry-exporter-otlp-proto-grpc", marker = "extra == 'lambda-worker-otel'", specifier = ">=1.11.1,<2" }, + { name = "opentelemetry-sdk", marker = "extra == 'cloud-run-worker-otel'", specifier = ">=1.26,<2" }, { name = "opentelemetry-sdk", marker = "extra == 'lambda-worker-otel'", specifier = ">=1.26,<2" }, { name = "opentelemetry-sdk", marker = "extra == 'opentelemetry'", specifier = ">=1.26,<2" }, { name = "opentelemetry-sdk-extension-aws", marker = "extra == 'lambda-worker-otel'", specifier = ">=2.0.0,<3" }, { name = "opentelemetry-semantic-conventions", marker = "extra == 'lambda-worker-otel'", specifier = ">=0.40b0,<1" }, - { name = "protobuf", specifier = ">=3.20,<8.0.0" }, + { name = "protobuf", specifier = ">=4.21.12,<8.0.0" }, + { name = "protobuf", marker = "extra == 'cloud-run-worker-otel'", specifier = "<7" }, { name = "pydantic", marker = "extra == 'pydantic'", specifier = ">=2.0.0,<3" }, - { name = "python-dateutil", marker = "python_full_version < '3.11'", specifier = ">=2.8.2,<3" }, - { name = "strands-agents", marker = "extra == 'strands-agents'", specifier = ">=1.39.0" }, + { name = "temporalio-deepagents", marker = "extra == 'deepagents'", specifier = ">=0.0.1" }, + { name = "temporalio-google-adk", extras = ["mcp"], marker = "extra == 'google-adk'", specifier = ">=0.0.1" }, + { name = "temporalio-google-genai", extras = ["mcp"], marker = "extra == 'google-genai'", specifier = ">=0.1.0" }, + { name = "temporalio-langgraph", marker = "extra == 'langgraph'", specifier = ">=0.1.0" }, + { name = "temporalio-langsmith", marker = "extra == 'langsmith'", specifier = ">=0.1.1" }, + { name = "temporalio-openai-agents", marker = "extra == 'openai-agents'", specifier = ">=1.0.0" }, + { name = "temporalio-strands-agents", marker = "extra == 'strands-agents'", specifier = ">=0.1.0" }, { name = "types-aioboto3", extras = ["s3"], marker = "extra == 'aioboto3'", specifier = ">=10.4.0" }, - { name = "types-protobuf", specifier = ">=3.20,<8.0.0" }, + { name = "types-protobuf", specifier = ">=4.24,<8.0.0" }, { name = "typing-extensions", specifier = ">=4.2.0,<5" }, ] -provides-extras = ["grpc", "opentelemetry", "pydantic", "openai-agents", "google-adk", "langgraph", "langsmith", "deepagents", "lambda-worker-otel", "aioboto3", "google-genai", "strands-agents"] +provides-extras = ["grpc", "opentelemetry", "pydantic", "openai-agents", "google-adk", "langgraph", "langsmith", "deepagents", "lambda-worker-otel", "cloud-run-worker-otel", "aioboto3", "gcloud-aio-storage", "google-genai", "strands-agents"] [package.metadata.requires-dev] dev = [ - { name = "async-timeout", marker = "python_full_version < '3.11'", specifier = ">=4.0,<6" }, { name = "basedpyright", specifier = "==1.34.0" }, { name = "cibuildwheel", specifier = ">=2.22.0,<3" }, { name = "cryptography", specifier = ">=46" }, - { name = "deepagents", marker = "python_full_version >= '3.11'", specifier = ">=0.6.12,<0.7" }, { name = "googleapis-common-protos", specifier = ">=1.75.0,<2" }, - { name = "grpcio-tools", specifier = ">=1.48.2,<2" }, { name = "httpx", specifier = ">=0.28.1" }, - { name = "langchain", marker = "python_full_version >= '3.11'", specifier = ">=1.3.11,<2" }, - { name = "langchain-anthropic", marker = "python_full_version >= '3.11'", specifier = ">=1.4.7" }, - { name = "langchain-core", marker = "python_full_version >= '3.11'", specifier = ">=1.4.8,<2" }, - { name = "langgraph", specifier = ">=1.1.0" }, - { name = "langsmith", specifier = ">=0.7.34,<0.9" }, - { name = "litellm", specifier = ">=1.83.0" }, { name = "maturin", specifier = ">=1.8.2" }, - { name = "mcp", specifier = ">=1.9.4,<2" }, { name = "moto", extras = ["s3", "server"], specifier = ">=5" }, - { name = "mypy", specifier = "==1.18.2" }, - { name = "mypy-protobuf", specifier = ">=3.3.0,<4" }, - { name = "openai-agents", marker = "python_full_version >= '3.14'", specifier = ">=0.19.2,<0.20" }, - { name = "openai-agents", extras = ["litellm"], marker = "python_full_version < '3.14'", specifier = ">=0.19.2,<0.20" }, - { name = "openinference-instrumentation-google-adk", specifier = ">=0.1.11" }, - { name = "openinference-instrumentation-openai-agents", specifier = ">=0.1.0" }, + { name = "mypy", specifier = "==2.4.0" }, { name = "opentelemetry-exporter-otlp-proto-grpc", specifier = ">=1.11.1,<2" }, { name = "opentelemetry-sdk-extension-aws", specifier = ">=2.0.0,<3" }, { name = "opentelemetry-semantic-conventions", specifier = ">=0.40b0,<1" }, { name = "psutil", specifier = ">=5.9.3,<6" }, { name = "pydocstyle", specifier = ">=6.3.0,<7" }, { name = "pydoctor", specifier = ">=25.10.1,<26" }, - { name = "pyright", specifier = "==1.1.403" }, - { name = "pytest", specifier = "~=9.0" }, + { name = "pyright", specifier = "==1.1.414" }, + { name = "pytest", specifier = ">=9.0,<9.2" }, { name = "pytest-asyncio", specifier = ">=0.21,<0.22" }, { name = "pytest-cov", specifier = ">=6.1.1" }, { name = "pytest-flakefinder", specifier = ">=1.1.0" }, @@ -4876,107 +4661,139 @@ dev = [ { name = "pytest-xdist", specifier = ">=3.6,<4" }, { name = "ruff", specifier = ">=0.15.12,<0.16" }, { name = "setuptools", specifier = "<82" }, - { name = "strands-agents", specifier = ">=1.39.0" }, - { name = "strands-agents-tools", specifier = ">=0.5.2" }, + { name = "temporalio-openai-agents", specifier = ">=1.0.0" }, { name = "toml", specifier = ">=0.10.2,<0.11" }, + { name = "tomlkit", specifier = ">=0.13,<0.14" }, { name = "twine", specifier = ">=4.0.1,<5" }, ] [[package]] -name = "tenacity" -version = "9.1.4" +name = "temporalio-deepagents" +version = "0.0.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/47/c6/ee486fd809e357697ee8a44d3d69222b344920433d3b6666ccd9b374630c/tenacity-9.1.4.tar.gz", hash = "sha256:adb31d4c263f2bd041081ab33b498309a57c77f9acf2db65aadf0898179cf93a", size = 49413, upload-time = "2026-02-07T10:45:33.841Z" } +dependencies = [ + { name = "deepagents" }, + { name = "langchain" }, + { name = "langchain-core" }, + { name = "langgraph" }, + { name = "langsmith" }, + { name = "pydantic" }, + { name = "temporalio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/85/9a/eb64750f6324cf0b8974da00e31fd5ee78f3f560add9c46815b7532e1ba5/temporalio_deepagents-0.0.3.tar.gz", hash = "sha256:9e4f03553f4e6d2883979820d8960f4563fd7fb13f753ea20c047b02323a0f4a", size = 42419, upload-time = "2026-10-20T20:09:00.614Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d7/c1/eb8f9debc45d3b7918a32ab756658a0904732f75e555402972246b0b8e71/tenacity-9.1.4-py3-none-any.whl", hash = "sha256:6095a360c919085f28c6527de529e76a06ad89b23659fa881ae0649b867a9d55", size = 28926, upload-time = "2026-02-07T10:45:32.24Z" }, + { url = "https://files.pythonhosted.org/packages/25/1a/603ea405ee9e8da61d2844954c5c20911d91ea7091f328a6fdbc1513aef1/temporalio_deepagents-0.0.3-py3-none-any.whl", hash = "sha256:c27c461aea3eada1fca15e20d1b4cbe190a7ce2148aab3cc868044e9e6a91f33", size = 47768, upload-time = "2026-10-20T20:08:59.021Z" }, ] [[package]] -name = "tiktoken" -version = "0.13.0" +name = "temporalio-google-adk" +version = "0.0.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "regex" }, - { name = "requests" }, + { name = "google-adk" }, + { name = "google-genai" }, + { name = "opentelemetry-api" }, + { name = "opentelemetry-sdk" }, + { name = "pydantic" }, + { name = "temporalio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/e6/76/560481d0fdf61f3644a7eeac329915e72d13cd842d4e734b46172a74ee6c/temporalio_google_adk-0.0.1.tar.gz", hash = "sha256:faad4a0a210e0788859b3548f5f14794de65a498b6bcb56b7457ea6e40286e9f", size = 28843, upload-time = "2026-10-07T18:48:47.47Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/af/e6/f19f7f07268e7537b5028557426ec050c0645baabb94d81ee26707955d88/temporalio_google_adk-0.0.1-py3-none-any.whl", hash = "sha256:0c82b463d00f3c53eeb25c71e22ea4277502e8f9d9862dcd29e9770eca3d8f8e", size = 31334, upload-time = "2026-10-07T18:48:45.902Z" }, +] + +[package.optional-dependencies] +mcp = [ + { name = "google-adk", extra = ["mcp"] }, +] + +[[package]] +name = "temporalio-google-genai" +version = "0.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "google-genai" }, + { name = "pydantic" }, + { name = "temporalio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/3d/2a/eeaf7cab52aa6500e7b325378fd20347dba4a905293959ffb91b0468b35f/temporalio_google_genai-0.1.0.tar.gz", hash = "sha256:ce90309de31f8080930a7de1fec16ac9542419325b420e487c88aa38f9ab1f53", size = 31914, upload-time = "2026-10-07T20:56:53.814Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a0/0e/979153cfdba59d0be935e3235ffd3388c043ec4b5d519bc99f9927661763/temporalio_google_genai-0.1.0-py3-none-any.whl", hash = "sha256:48dac47903277100434aa8687a71dcf93bfd652f49c43ac0671872f6b175680e", size = 42970, upload-time = "2026-10-07T20:56:52.45Z" }, +] + +[package.optional-dependencies] +mcp = [ + { name = "mcp" }, +] + +[[package]] +name = "temporalio-langgraph" +version = "0.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "langchain-core" }, + { name = "langgraph" }, + { name = "temporalio" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a0/03/21d4cbeda7843c276d01aea5fe6d17bd82877ac4111f29b39975e568cb6e/temporalio_langgraph-0.1.0.tar.gz", hash = "sha256:35d67361016052b7a87e3878096ca9cd77a7390979dbb60e5b5bb32b53098e0d", size = 17438, upload-time = "2026-10-07T21:36:42.771Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/e0/2b/af6582b850ce59ca84d491c24a92d0bfaa6eb0ea02a73e15df6e66af6b73/temporalio_langgraph-0.1.0-py3-none-any.whl", hash = "sha256:7a1643d089559d70cf3982eea9628810dc0981a1bc599f376d66a2dc69a3779e", size = 20352, upload-time = "2026-10-07T21:36:41.445Z" }, +] + +[[package]] +name = "temporalio-langsmith" +version = "0.1.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "langchain-core" }, + { name = "langsmith" }, + { name = "temporalio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/17/16/f2f679300c83f141acced23ac09b55160dbdd2f3fbd1cf561197671da3b1/temporalio_langsmith-0.1.1.tar.gz", hash = "sha256:7cafe4e210152e0ef40a6b832436084fcf55c9956b98b354f6135f1857322488", size = 214499, upload-time = "2026-10-28T18:55:44.815Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d9/e6/95dc7eba97dfa3c821fb2931cf367632d1b303e7370d65ec2e541d434937/temporalio_langsmith-0.1.1-py3-none-any.whl", hash = "sha256:74a71f4ceb59eb285007dd09cdb83f88d670ee8384fe3ad6e873f2afcb7bc938", size = 214523, upload-time = "2026-10-28T18:55:43.142Z" }, +] + +[[package]] +name = "temporalio-openai-agents" +version = "1.1.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "mcp" }, + { name = "openai" }, + { name = "openai-agents" }, + { name = "pydantic" }, + { name = "temporalio", extra = ["opentelemetry", "pydantic"] }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/1b/10/56612e595263546b578d0510e03755c7b7267de88d9ac726ebf50daca1ee/temporalio_openai_agents-1.1.0.tar.gz", hash = "sha256:5a279838db6288e873e8268a74b905c533ec196b2fbb796f14a4f45d06ee0260", size = 73387, upload-time = "2026-10-01T19:43:24.843Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/42/73/c118e692c0d5e6c624632d3b07d3c49f071c12f9ce92f825c6cccd061248/temporalio_openai_agents-1.1.0-py3-none-any.whl", hash = "sha256:d8054af26a7b4f8414b60bc04550d48dff0cb607cf70550c43e0a5b99d13041e", size = 72409, upload-time = "2026-10-01T19:43:23.328Z" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e4/e5/5f3cb2159769d0f4324c0e9e87f9de3c4b1cd45848a96b2eb3566ad5ca77/tiktoken-0.13.0.tar.gz", hash = "sha256:c9435714c3a84c2319499de9a300c0e604449dd0799ff246458b3bb6a7f433c1", size = 38986, upload-time = "2026-05-15T04:51:27.153Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/38/e3/03c90dadcf5b3f82b83cee9adee60ef666b329c654f58c066af44eae0287/tiktoken-0.13.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:47b1df8d73390a24f94980c75158cdd5c56d256f16d55f30cb49c230caba9ba4", size = 1036627, upload-time = "2026-05-15T04:50:11.229Z" }, - { url = "https://files.pythonhosted.org/packages/5e/30/760463e5b2e8ad2bc229ae0a17ecb06727b6cbc094f08d8f65844315632e/tiktoken-0.13.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:7d40c6c5aab171dcd6eb8455bc567bde404bb9def60cdb8c1299cc782b242bb9", size = 984699, upload-time = "2026-05-15T04:50:12.874Z" }, - { url = "https://files.pythonhosted.org/packages/de/8a/8895f342a6b6aabd1a358e672f6f077b3ae51d0c63ca605d142db3bcd8ab/tiktoken-0.13.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:9b842981fa91accdffd48ff6408a977b7a91c3fbda55d353c3c68114d5c9d69e", size = 1118690, upload-time = "2026-05-15T04:50:14.234Z" }, - { url = "https://files.pythonhosted.org/packages/51/e0/92557768fb0801f0d9dd9243cb9b6d342900b05e4b1006d4771f49ce233e/tiktoken-0.13.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:ed5a30027cb4d8c7ca8b273d4766f3db3cf58fad9e9f3b1a68a351ffb54873d5", size = 1138423, upload-time = "2026-05-15T04:50:15.668Z" }, - { url = "https://files.pythonhosted.org/packages/8f/b9/a3d99feeedb032ffd09cd6652077f86bdee9a70dd0b990b2b272b445d4c3/tiktoken-0.13.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:7ab10f4a21c2999846940113f6dbd72e0fa06a24119feddd74cc47e85818e06d", size = 1185077, upload-time = "2026-05-15T04:50:17.19Z" }, - { url = "https://files.pythonhosted.org/packages/cc/93/bab868277d475dc6d2aaacd34cdd239c282f4908dcc8702e0a3311a8e032/tiktoken-0.13.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:a2937ad042d49d50eac6e1ba07c5661d4bd3942a5b1e0c0d08475c4df83676e1", size = 1241702, upload-time = "2026-05-15T04:50:18.772Z" }, - { url = "https://files.pythonhosted.org/packages/c3/16/27e9f7e0ed76e501cfefc9fb2112df4c7bf70ca96945b15ecb7615aac860/tiktoken-0.13.0-cp310-cp310-win_amd64.whl", hash = "sha256:44733b99bfd72b590cd0936b1c01b3b4dd73122db2d544bc1ceeb18a7678c910", size = 876565, upload-time = "2026-05-15T04:50:20.268Z" }, - { url = "https://files.pythonhosted.org/packages/1a/4c/1bc81f4cd53e827c4ee67ca951b5935724716049452d8dfa09b8b82372bb/tiktoken-0.13.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:7bfe1849caa65d1e1d9871817170ec497bbb7984e182012e1bdce72f66608cdb", size = 1036353, upload-time = "2026-05-15T04:50:21.757Z" }, - { url = "https://files.pythonhosted.org/packages/75/91/10b9c7076bc02c246c853201fdbbe300a4b8c5ed7b84c25f7403f4e32655/tiktoken-0.13.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:91c180fe255bd5a86d8316210d2833a1d4d33d026cd86a67812f4773743c8d26", size = 984644, upload-time = "2026-05-15T04:50:23.256Z" }, - { url = "https://files.pythonhosted.org/packages/4e/e4/fceae98015fab47fcd49b8bd7f46145bcd187a47e0add1e5378ed67ef980/tiktoken-0.13.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:059c8ecf554eb5b41e6e054ba467b871b03277d267dee7244380aca4359747d4", size = 1119261, upload-time = "2026-05-15T04:50:24.348Z" }, - { url = "https://files.pythonhosted.org/packages/f9/39/fe42ad00de01a8c4a49ad8649a2c8a316835a9cad5961b11d21eac0020a5/tiktoken-0.13.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:36217497eaffc158607a3b26f065300db2aefd43b115263f3b9688ce38146173", size = 1138253, upload-time = "2026-05-15T04:50:25.505Z" }, - { url = "https://files.pythonhosted.org/packages/03/c4/ccee1ecccca107e9a16efcecdeeb964c325305038554d466ece65b42338f/tiktoken-0.13.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:303f7d91b4fce3baddbcde05c139091d4caa5026ac7214c1dc7ff7a71ee429ff", size = 1185747, upload-time = "2026-05-15T04:50:27.02Z" }, - { url = "https://files.pythonhosted.org/packages/9d/03/cd0cba295522b91eb55c6b2704f1df895f8226cfe60ab10d4d51d0cc9e69/tiktoken-0.13.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:5d48843bee149630eb735a99e1f4a85b47308d21868ea63163f6e87768d3cfed", size = 1241265, upload-time = "2026-05-15T04:50:28.815Z" }, - { url = "https://files.pythonhosted.org/packages/7e/25/a10efd564402d82c2ff50d12057353ace447aa8007deceaa48641f63d35c/tiktoken-0.13.0-cp311-cp311-win_amd64.whl", hash = "sha256:fc1c44cd37b43fc46bae593129164f4f281e82ea116b57a85aa81bda57eafc94", size = 876509, upload-time = "2026-05-15T04:50:30.026Z" }, - { url = "https://files.pythonhosted.org/packages/85/8e/144bde4e01df66b34bb865557c7cd754ed08b036217ebd79c9db5e9048a9/tiktoken-0.13.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:32ac870a806cfb260a02d0cb70426aef02e038297f8ad50df5040bb5af360791", size = 1034888, upload-time = "2026-05-15T04:50:31.579Z" }, - { url = "https://files.pythonhosted.org/packages/36/18/d4ac9d20956cdebca04841316660ed584c2fecdc2b81722a28bc7ad3b1e4/tiktoken-0.13.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4d9980f11429ed2d737c463bb1fb78cf330caa026adf002f714aced7849a687b", size = 982970, upload-time = "2026-05-15T04:50:32.961Z" }, - { url = "https://files.pythonhosted.org/packages/74/ed/6bb8d05b9f731f749fee5c6f5ca63e981143c826a5985877330507bd13b7/tiktoken-0.13.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:3f277ebea5edd7b8bf03c6f9431e1d67d517530115572b2dc1d465326e8f88c7", size = 1115741, upload-time = "2026-05-15T04:50:34.475Z" }, - { url = "https://files.pythonhosted.org/packages/34/de/2ca96b07a82d972b74fe4b46de055b79c904e45c7eab699354a0bfa697dc/tiktoken-0.13.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:a116178fa7e1b4065bff05214360373a65cac22f965be7b3f73d00a0dbfe7649", size = 1136523, upload-time = "2026-05-15T04:50:35.782Z" }, - { url = "https://files.pythonhosted.org/packages/ee/dc/9dafec002c2d4424378563cf4cf5c7fb93631d2a55013c8b87554ee4012c/tiktoken-0.13.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2c397ddda233208345b01bd30f2fca79ff730e55731d0108a603f9bc57f6af3b", size = 1181954, upload-time = "2026-05-15T04:50:36.99Z" }, - { url = "https://files.pythonhosted.org/packages/a1/d0/1f8578c45b2f24759b46f0b50d31878c63c73e6bf0f2227e10ec5c5408dc/tiktoken-0.13.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:95097e4f89b06403976e498abf61a0ee73a7497e73fb599cb211d8197a054d91", size = 1240069, upload-time = "2026-05-15T04:50:38.221Z" }, - { url = "https://files.pythonhosted.org/packages/aa/90/28d7f154888610aa9237e541986beb62b479df29d193a5a0617dbb1514d0/tiktoken-0.13.0-cp312-cp312-win_amd64.whl", hash = "sha256:8f2d16e7a7c783ad81f36e457d046d1f1c8af70b22aec8a13238efe531977c41", size = 874748, upload-time = "2026-05-15T04:50:39.587Z" }, - { url = "https://files.pythonhosted.org/packages/9c/83/b096c859c2a47c11731bf2f5885f4028b809dfe2396582883eed9cae372f/tiktoken-0.13.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5df5d1507bd245f1ccad4a074698240021239e455eb0bb4ced4e3d7181872154", size = 1034228, upload-time = "2026-05-15T04:50:40.988Z" }, - { url = "https://files.pythonhosted.org/packages/53/61/c68e123b6d753e3fc2751e9b18e732c9d8bf1e1926762e736eee935d931c/tiktoken-0.13.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8fe806a50664e83a6ffd56cbd1e4f5dcc6cd32a3e7538f70dc38b1a271384545", size = 982978, upload-time = "2026-05-15T04:50:42.195Z" }, - { url = "https://files.pythonhosted.org/packages/ef/8b/96cc178cc584e65d363134500f297790b06cd48cdeb1e8fcf7bbe60f4715/tiktoken-0.13.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:125bc05005e747f993a83dc67934249932d6e4209854452cd4c0b1d53fba3ba2", size = 1116355, upload-time = "2026-05-15T04:50:43.564Z" }, - { url = "https://files.pythonhosted.org/packages/86/f5/bab735d2c72ea55404b295d02d092644eb5f7cc6205e34d35eb9abfb9ab2/tiktoken-0.13.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:5e6358911cab4adee6712da27d65573496a4f68cf8a2b5fca6a4ad10fc5748cf", size = 1135772, upload-time = "2026-05-15T04:50:44.782Z" }, - { url = "https://files.pythonhosted.org/packages/4e/b9/6de04ebdf904edfaad87788011b3735087a0c9ea671b9027e1e4e965e8c8/tiktoken-0.13.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:975cbd78d085d75d26b59660e262736dcaed1e35f8f142cd6291025c01d25486", size = 1182415, upload-time = "2026-05-15T04:50:46.422Z" }, - { url = "https://files.pythonhosted.org/packages/0d/9c/470a05f3b1caf038f44880e334d47ab674e0c80d514c66b375d14d5afa10/tiktoken-0.13.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:75ab9bc99fa020a4c283424590ecd7f3afd70c1c281cb3fa3192a6c3af9f9615", size = 1239879, upload-time = "2026-05-15T04:50:48.052Z" }, - { url = "https://files.pythonhosted.org/packages/42/a6/c1936d16055436cb32e6c6128d68629622e00f4768562f55653752d34768/tiktoken-0.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:6b1615f0ff71953d19729ceb18865429c185b0a23c5353f1bbca34a394bf60f7", size = 874829, upload-time = "2026-05-15T04:50:49.202Z" }, - { url = "https://files.pythonhosted.org/packages/d6/07/acb5992c3772b5a36284f742cfb7a5895aa4471d1848ac31464ad50d7fdf/tiktoken-0.13.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:6eb4a5bfbc6426938026b1a334e898ac53541360d62d8c689870160cc80abd67", size = 1033600, upload-time = "2026-05-15T04:50:50.4Z" }, - { url = "https://files.pythonhosted.org/packages/14/e9/742e9aec30f59b9f161f7ff7cd072e02ea836c9e1c0854a8076dfcd40d5c/tiktoken-0.13.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:43cee3e5400573b2046fbf092cc7a5bc30164f9e4c95ce20714da929df48737a", size = 982516, upload-time = "2026-05-15T04:50:52.03Z" }, - { url = "https://files.pythonhosted.org/packages/72/74/ca1541b053e7648254d2e4b42a253e1bb4359f2c91a0a8d49228c794e1a0/tiktoken-0.13.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:7de52e3f566d19b3b11bd37eea552c6c305ad74081f736882bd44d148ed4c48d", size = 1115518, upload-time = "2026-05-15T04:50:53.543Z" }, - { url = "https://files.pythonhosted.org/packages/46/e3/93825eaf5a4a504795b787e5d5dea07fbeb3dabf97aa7b450be8bde59c89/tiktoken-0.13.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:51384448aa508e4df84c0f7c1dc3211c7f7b8096325660ee5fc82f3e11b381ce", size = 1136867, upload-time = "2026-05-15T04:50:55.191Z" }, - { url = "https://files.pythonhosted.org/packages/8c/46/002b68de6827091d5ae90b048f326e8aad8d953520950e5ce1508879414f/tiktoken-0.13.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:e28157350f7ebf35008dd8e9e0fdb621f976e4230c881099c85e8cf07eaa50e2", size = 1181826, upload-time = "2026-05-15T04:50:56.296Z" }, - { url = "https://files.pythonhosted.org/packages/db/c6/d393e3185a276505182f7abd93fe714f3c444a2be9180798fa052347504e/tiktoken-0.13.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:165cf1820ea4a354985c2490a5205d4cc74661c934aca79dd0368232fff94e0f", size = 1239489, upload-time = "2026-05-15T04:50:57.918Z" }, - { url = "https://files.pythonhosted.org/packages/b7/4d/bc07d1f1635d4897a202acc0ae11c2886eaa7325c359ba4741b47bf8e225/tiktoken-0.13.0-cp313-cp313t-win_amd64.whl", hash = "sha256:6c43a675ca14f6f2749ba7f12075d37456015a24b859f2517b9beb4ef30807ec", size = 873820, upload-time = "2026-05-15T04:50:59.528Z" }, - { url = "https://files.pythonhosted.org/packages/8c/93/0dd6adca026a616c3a92974566b43381eea4b475ce1f36c062b8271a9ac5/tiktoken-0.13.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaaaef47c2406277181d2086484c317bf7fc433e2d5d03ff94f56b0dcec87471", size = 1034977, upload-time = "2026-05-15T04:51:00.957Z" }, - { url = "https://files.pythonhosted.org/packages/d9/77/5ec6e6bc5b30bed6d93f7f2162d8f6b32437b3ba27cb527cfe004f6109c9/tiktoken-0.13.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ca8b310bd93b3772cb1b7922d915446864860f562bdfe4825c63a0aed3fb28cd", size = 983635, upload-time = "2026-05-15T04:51:02.629Z" }, - { url = "https://files.pythonhosted.org/packages/94/b0/c8ae9aff00d625c50659b4513e707a0462c4bf5d4d6cc1b802103225c02e/tiktoken-0.13.0-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:32e0c12305105002c047b3bb1070b0dd9a73b0cb3b2856a8972b810e7a4f5881", size = 1116036, upload-time = "2026-05-15T04:51:04.082Z" }, - { url = "https://files.pythonhosted.org/packages/1b/ac/6a5dddd1d0a6018ecb389bd0353e6b4a515eb4d2286611bd0ace1937b9e1/tiktoken-0.13.0-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:5ba5fd62507a932d1241346179e3b39bc7bf7408f03c272652d93b3bedf5db24", size = 1135544, upload-time = "2026-05-15T04:51:05.229Z" }, - { url = "https://files.pythonhosted.org/packages/f4/b8/585032b4384b2f7dcdaddcb52865c83a701a420d09e3c2b4a2be1c450c57/tiktoken-0.13.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d108bc2d470fc53c8ecd24f2c0fd2b5f98c33e87cdb6aa2e9b8c5dced703d273", size = 1182217, upload-time = "2026-05-15T04:51:06.517Z" }, - { url = "https://files.pythonhosted.org/packages/cd/b6/993ff1ded3958215fd341a847b8e5ffeb5de473f435296870d314fc91ac4/tiktoken-0.13.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:cb99cb5127449f58d0a2d5f5ccfb390d8dbdfd919c221246caaee29d8725ed51", size = 1239404, upload-time = "2026-05-15T04:51:07.843Z" }, - { url = "https://files.pythonhosted.org/packages/dd/3d/fef7e06e3b33e7538db0ced734cf9fe23b6832d2ac4990c119c377aec55e/tiktoken-0.13.0-cp314-cp314-win_amd64.whl", hash = "sha256:115c4f26ffa11caac8b54eea35c2ad38c612c20a48d35dd15d70a02ac6f51f58", size = 918686, upload-time = "2026-05-15T04:51:08.925Z" }, - { url = "https://files.pythonhosted.org/packages/c1/82/a7fc44582bc32ab00de988a2299bf77c077f59068b233109e34b7d6ca7e6/tiktoken-0.13.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:472527e9132952f2fbf77cd290658bacf003d4d5a3fabc18e5fbd407cbae4d9b", size = 1034454, upload-time = "2026-05-15T04:51:10.035Z" }, - { url = "https://files.pythonhosted.org/packages/37/d0/24d8a890c14f432a05cea669c17bebeaa99f96a7c79523b590f564246411/tiktoken-0.13.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:4e2f67d27c9626cdd25fe33d9313c5cdb3d8d82da646b68d6eb8e7e9c20e6448", size = 982976, upload-time = "2026-05-15T04:51:11.23Z" }, - { url = "https://files.pythonhosted.org/packages/49/b7/2ab43f62788a9266187a9bfc1d3af99ad83e5eaa25fbef168a69cd5ad14f/tiktoken-0.13.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:2b920b35805cd64585a37c3dc7ce65fba4d2d36016be01e1d7942482ca29093a", size = 1115526, upload-time = "2026-05-15T04:51:12.608Z" }, - { url = "https://files.pythonhosted.org/packages/64/39/1494321ed323ce7a14d88e3cd6cb9058625977df1c6961ddc492bd10a9f3/tiktoken-0.13.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:493af3aa28a4aaf2e3d2600a2ee717252c9bf5ab38fff94eb5a02db5ab77e5ad", size = 1136466, upload-time = "2026-05-15T04:51:13.926Z" }, - { url = "https://files.pythonhosted.org/packages/96/d9/dfd086aa2d918c563a140720e0ce296cada1634efd2783d5cf51e05f984e/tiktoken-0.13.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6644c9c2b5cf3916f5a3641d7d12fdb3f006a7b3d9ff6acdaec44e29ab1ff91e", size = 1181863, upload-time = "2026-05-15T04:51:15.025Z" }, - { url = "https://files.pythonhosted.org/packages/2f/68/a18b4f307086954fdae32714cb4f85562e34f9d34ab206e61f1816aa6018/tiktoken-0.13.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5cb65b60b9408563676d874a3a4ee573370066f0dc4e29d84e82e989c6517424", size = 1239218, upload-time = "2026-05-15T04:51:16.103Z" }, - { url = "https://files.pythonhosted.org/packages/16/5b/f2aa703a4fc5d2dff73460a7d46cc2f3f44aa0f3dd8eeb20d2a0ecf68862/tiktoken-0.13.0-cp314-cp314t-win_amd64.whl", hash = "sha256:85b78cc3a2c3d48723ca751fa981f1fedccd54194ca0471b957364353a898b07", size = 918110, upload-time = "2026-05-15T04:51:17.237Z" }, -] - -[[package]] -name = "tokenizers" -version = "0.23.1" + +[[package]] +name = "temporalio-strands-agents" +version = "0.1.0" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "huggingface-hub" }, + { name = "botocore" }, + { name = "mcp" }, + { name = "strands-agents" }, + { name = "temporalio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/35/ab/2b2a30df8ef357546e14a151ab114869da541405d99da513a74b9c4fc89f/temporalio_strands_agents-0.1.0.tar.gz", hash = "sha256:1da8ac046004bb83f12cd3c87df278f4c71ee11c2abecfb791928e22c22c3f75", size = 36060, upload-time = "2026-10-07T22:52:50.223Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f5/52/2d8e3126bbfc88f6cf8cbbacf98550ea509e3796885420344b1f49a7eb2d/temporalio_strands_agents-0.1.0-py3-none-any.whl", hash = "sha256:3227ae604e845feeab0f0868fc301d44b299585935dfb42c47d9910234f74e9f", size = 36680, upload-time = "2026-10-07T22:52:49.072Z" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/c1/60/21f715d9faba5f5407ff759472ade058ec4a507ad62bcea47cb847239a73/tokenizers-0.23.1.tar.gz", hash = "sha256:1feeeadf865a7915adc25445dea30e9933e593c31bb96c277cee36de227c8bfa", size = 365748, upload-time = "2026-04-27T14:43:25.606Z" } + +[[package]] +name = "tenacity" +version = "9.1.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/47/c6/ee486fd809e357697ee8a44d3d69222b344920433d3b6666ccd9b374630c/tenacity-9.1.4.tar.gz", hash = "sha256:adb31d4c263f2bd041081ab33b498309a57c77f9acf2db65aadf0898179cf93a", size = 49413, upload-time = "2026-02-07T10:45:33.841Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/87/39/b87a87d5bb9470610b80a2d31df42fcffeaf35118b8b97952b2aff598cc7/tokenizers-0.23.1-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:e03d6ffcbe0d56ee9c1ccd070e70a13fa750727c0277e138152acbc0252c2224", size = 3146732, upload-time = "2026-04-27T14:43:15.427Z" }, - { url = "https://files.pythonhosted.org/packages/e2/6a/068ed9f6e444c9d7e9d55ce134181325700f3d7f30410721bdc8f848d727/tokenizers-0.23.1-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:e0948bbb1ac1d7cdfc9fb6d62c596e3b7550036ad60ecd654a66ad273326324e", size = 3054954, upload-time = "2026-04-27T14:43:13.745Z" }, - { url = "https://files.pythonhosted.org/packages/6c/36/e006edf031154cba92b8416057d92c3abe3635e4c4b0aa0b5b9bb39dde70/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1bf13402aff9bc533c89cb849ec3b412dc3fbeacc9744840e423d7bf3f7dc0e3", size = 3374081, upload-time = "2026-04-27T14:43:01.241Z" }, - { url = "https://files.pythonhosted.org/packages/a2/ef/7735d226f9c7f874a6bee5e3f27fb25ecabdf207d37b8cf45286d0795893/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f836ca703b89ae07919a309f9651f7a88fd5a33d5f718ba5ad0870ec0256bad6", size = 3247641, upload-time = "2026-04-27T14:43:03.856Z" }, - { url = "https://files.pythonhosted.org/packages/b9/d9/24827036f6e21297bfffda0768e58eb6096a4f411e932964a01707857931/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ae848657742035523fdf261773630cb819a26995fcd3d9ecae0c1daf6e5a4959", size = 3585624, upload-time = "2026-04-27T14:43:10.664Z" }, - { url = "https://files.pythonhosted.org/packages/0c/9a/22f3582b3a4f49358293a5206e25317621ee4526bfe9cdaa0f07a12e770e/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:53b09e85775d5187941e7bab30e941b4134ab4a7dd8c68e783d231fb7ca27c51", size = 3844062, upload-time = "2026-04-27T14:43:05.643Z" }, - { url = "https://files.pythonhosted.org/packages/7e/65/b8f8814eef95800f20721384136d9a1d22241d50b2874357cb70542c392f/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ea5a0ce170074329faaa8ea3f6400ecde604b6678192688533af80980daae71a", size = 3460098, upload-time = "2026-04-27T14:43:08.854Z" }, - { url = "https://files.pythonhosted.org/packages/0d/d5/1353e5f677ec27c2494fb6a6725e82d56c985f53e90ec511369e7e4f02c6/tokenizers-0.23.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5075b405006415ea148a992d093699c66eb01952bf59f4d5727089a98bda45a4", size = 3346235, upload-time = "2026-04-27T14:43:12.377Z" }, - { url = "https://files.pythonhosted.org/packages/71/89/39b6b8fc073fb6d413d0147aa333dc7eff7be65639ac9d19930a0b21bf33/tokenizers-0.23.1-cp310-abi3-manylinux_2_31_riscv64.whl", hash = "sha256:56f3a77de629917652f876294dc9fe6bad4a0c43bc229dc72e59bb23a0f4729a", size = 3426398, upload-time = "2026-04-27T14:43:07.264Z" }, - { url = "https://files.pythonhosted.org/packages/0f/80/127c854da64827e5b79264ce524993a90dddcb320e5cd42412c5c02f9e8a/tokenizers-0.23.1-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9d10a6d957ef01896dc274e890eee27d41bd0e74ef31e60616f0fc311345184e", size = 9823279, upload-time = "2026-04-27T14:43:17.222Z" }, - { url = "https://files.pythonhosted.org/packages/fe/ba/44c2502feb1a058f096ddfb4e0996ef3225a01a388e1a9b094e91689fe93/tokenizers-0.23.1-cp310-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:1974288a609c343774f1b897c8b482c791ab17b75ab5c8c2b1737565c1d82288", size = 9644986, upload-time = "2026-04-27T14:43:19.45Z" }, - { url = "https://files.pythonhosted.org/packages/9e/c1/464019a9fb059870bfe4eebb4ba12208f3042035e258bf5e782906bd3847/tokenizers-0.23.1-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:120468fb4c24faf0543c835a4fabafa4deb3f20a035c9b6e83d0b553a97615d4", size = 9976181, upload-time = "2026-04-27T14:43:21.463Z" }, - { url = "https://files.pythonhosted.org/packages/79/94/3ac1432bda31626071e9b6a12709b97ae05131c804b94c8f3ac622c5da32/tokenizers-0.23.1-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:e3d8f40ea6268047de7046906326abed5134f27d4e8447b23763afe5808c8a96", size = 10113853, upload-time = "2026-04-27T14:43:23.617Z" }, - { url = "https://files.pythonhosted.org/packages/6a/dd/631b21433c771b1382535326f0eca80b9c9cee2e64961dd993bc9ac4669e/tokenizers-0.23.1-cp310-abi3-win32.whl", hash = "sha256:93120a930b919416da7cd10a2f606ac9919cc69cacae7980fa2140e277660948", size = 2536263, upload-time = "2026-04-27T14:43:29.888Z" }, - { url = "https://files.pythonhosted.org/packages/97/c9/2553f72aaf65a2797d4229e37fa7fbe38ffbf3e32912d31bdd78b3323e59/tokenizers-0.23.1-cp310-abi3-win_amd64.whl", hash = "sha256:e7bfaf995c1bdbbd21d13539decb6650967013759318627d85daeb7881af16b7", size = 2798223, upload-time = "2026-04-27T14:43:28.51Z" }, - { url = "https://files.pythonhosted.org/packages/cd/2b/2be299bab55fc595e3d38567edb1a87f86e594842968fa9515a07bdcf422/tokenizers-0.23.1-cp310-abi3-win_arm64.whl", hash = "sha256:a26197957d8e4425dfba746315f3c425ea00cfa8367c5fbc4ec73447893dcea9", size = 2664127, upload-time = "2026-04-27T14:43:26.949Z" }, + { url = "https://files.pythonhosted.org/packages/d7/c1/eb8f9debc45d3b7918a32ab756658a0904732f75e555402972246b0b8e71/tenacity-9.1.4-py3-none-any.whl", hash = "sha256:6095a360c919085f28c6527de529e76a06ad89b23659fa881ae0649b867a9d55", size = 28926, upload-time = "2026-02-07T10:45:32.24Z" }, ] [[package]] @@ -4990,68 +4807,92 @@ wheels = [ [[package]] name = "tomli" -version = "2.4.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/22/de/48c59722572767841493b26183a0d1cc411d54fd759c5607c4590b6563a6/tomli-2.4.1.tar.gz", hash = "sha256:7c7e1a961a0b2f2472c1ac5b69affa0ae1132c39adcb67aba98568702b9cc23f", size = 17543, upload-time = "2026-03-25T20:22:03.828Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f4/11/db3d5885d8528263d8adc260bb2d28ebf1270b96e98f0e0268d32b8d9900/tomli-2.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f8f0fc26ec2cc2b965b7a3b87cd19c5c6b8c5e5f436b984e85f486d652285c30", size = 154704, upload-time = "2026-03-25T20:21:10.473Z" }, - { url = "https://files.pythonhosted.org/packages/6d/f7/675db52c7e46064a9aa928885a9b20f4124ecb9bc2e1ce74c9106648d202/tomli-2.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4ab97e64ccda8756376892c53a72bd1f964e519c77236368527f758fbc36a53a", size = 149454, upload-time = "2026-03-25T20:21:12.036Z" }, - { url = "https://files.pythonhosted.org/packages/61/71/81c50943cf953efa35bce7646caab3cf457a7d8c030b27cfb40d7235f9ee/tomli-2.4.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:96481a5786729fd470164b47cdb3e0e58062a496f455ee41b4403be77cb5a076", size = 237561, upload-time = "2026-03-25T20:21:13.098Z" }, - { url = "https://files.pythonhosted.org/packages/48/c1/f41d9cb618acccca7df82aaf682f9b49013c9397212cb9f53219e3abac37/tomli-2.4.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5a881ab208c0baf688221f8cecc5401bd291d67e38a1ac884d6736cbcd8247e9", size = 243824, upload-time = "2026-03-25T20:21:14.569Z" }, - { url = "https://files.pythonhosted.org/packages/22/e4/5a816ecdd1f8ca51fb756ef684b90f2780afc52fc67f987e3c61d800a46d/tomli-2.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:47149d5bd38761ac8be13a84864bf0b7b70bc051806bc3669ab1cbc56216b23c", size = 242227, upload-time = "2026-03-25T20:21:15.712Z" }, - { url = "https://files.pythonhosted.org/packages/6b/49/2b2a0ef529aa6eec245d25f0c703e020a73955ad7edf73e7f54ddc608aa5/tomli-2.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ec9bfaf3ad2df51ace80688143a6a4ebc09a248f6ff781a9945e51937008fcbc", size = 247859, upload-time = "2026-03-25T20:21:17.001Z" }, - { url = "https://files.pythonhosted.org/packages/83/bd/6c1a630eaca337e1e78c5903104f831bda934c426f9231429396ce3c3467/tomli-2.4.1-cp311-cp311-win32.whl", hash = "sha256:ff2983983d34813c1aeb0fa89091e76c3a22889ee83ab27c5eeb45100560c049", size = 97204, upload-time = "2026-03-25T20:21:18.079Z" }, - { url = "https://files.pythonhosted.org/packages/42/59/71461df1a885647e10b6bb7802d0b8e66480c61f3f43079e0dcd315b3954/tomli-2.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:5ee18d9ebdb417e384b58fe414e8d6af9f4e7a0ae761519fb50f721de398dd4e", size = 108084, upload-time = "2026-03-25T20:21:18.978Z" }, - { url = "https://files.pythonhosted.org/packages/b8/83/dceca96142499c069475b790e7913b1044c1a4337e700751f48ed723f883/tomli-2.4.1-cp311-cp311-win_arm64.whl", hash = "sha256:c2541745709bad0264b7d4705ad453b76ccd191e64aa6f0fc66b69a293a45ece", size = 95285, upload-time = "2026-03-25T20:21:20.309Z" }, - { url = "https://files.pythonhosted.org/packages/c1/ba/42f134a3fe2b370f555f44b1d72feebb94debcab01676bf918d0cb70e9aa/tomli-2.4.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c742f741d58a28940ce01d58f0ab2ea3ced8b12402f162f4d534dfe18ba1cd6a", size = 155924, upload-time = "2026-03-25T20:21:21.626Z" }, - { url = "https://files.pythonhosted.org/packages/dc/c7/62d7a17c26487ade21c5422b646110f2162f1fcc95980ef7f63e73c68f14/tomli-2.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7f86fd587c4ed9dd76f318225e7d9b29cfc5a9d43de44e5754db8d1128487085", size = 150018, upload-time = "2026-03-25T20:21:23.002Z" }, - { url = "https://files.pythonhosted.org/packages/5c/05/79d13d7c15f13bdef410bdd49a6485b1c37d28968314eabee452c22a7fda/tomli-2.4.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ff18e6a727ee0ab0388507b89d1bc6a22b138d1e2fa56d1ad494586d61d2eae9", size = 244948, upload-time = "2026-03-25T20:21:24.04Z" }, - { url = "https://files.pythonhosted.org/packages/10/90/d62ce007a1c80d0b2c93e02cab211224756240884751b94ca72df8a875ca/tomli-2.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:136443dbd7e1dee43c68ac2694fde36b2849865fa258d39bf822c10e8068eac5", size = 253341, upload-time = "2026-03-25T20:21:25.177Z" }, - { url = "https://files.pythonhosted.org/packages/1a/7e/caf6496d60152ad4ed09282c1885cca4eea150bfd007da84aea07bcc0a3e/tomli-2.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5e262d41726bc187e69af7825504c933b6794dc3fbd5945e41a79bb14c31f585", size = 248159, upload-time = "2026-03-25T20:21:26.364Z" }, - { url = "https://files.pythonhosted.org/packages/99/e7/c6f69c3120de34bbd882c6fba7975f3d7a746e9218e56ab46a1bc4b42552/tomli-2.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:5cb41aa38891e073ee49d55fbc7839cfdb2bc0e600add13874d048c94aadddd1", size = 253290, upload-time = "2026-03-25T20:21:27.46Z" }, - { url = "https://files.pythonhosted.org/packages/d6/2f/4a3c322f22c5c66c4b836ec58211641a4067364f5dcdd7b974b4c5da300c/tomli-2.4.1-cp312-cp312-win32.whl", hash = "sha256:da25dc3563bff5965356133435b757a795a17b17d01dbc0f42fb32447ddfd917", size = 98141, upload-time = "2026-03-25T20:21:28.492Z" }, - { url = "https://files.pythonhosted.org/packages/24/22/4daacd05391b92c55759d55eaee21e1dfaea86ce5c571f10083360adf534/tomli-2.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:52c8ef851d9a240f11a88c003eacb03c31fc1c9c4ec64a99a0f922b93874fda9", size = 108847, upload-time = "2026-03-25T20:21:29.386Z" }, - { url = "https://files.pythonhosted.org/packages/68/fd/70e768887666ddd9e9f5d85129e84910f2db2796f9096aa02b721a53098d/tomli-2.4.1-cp312-cp312-win_arm64.whl", hash = "sha256:f758f1b9299d059cc3f6546ae2af89670cb1c4d48ea29c3cacc4fe7de3058257", size = 95088, upload-time = "2026-03-25T20:21:30.677Z" }, - { url = "https://files.pythonhosted.org/packages/07/06/b823a7e818c756d9a7123ba2cda7d07bc2dd32835648d1a7b7b7a05d848d/tomli-2.4.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:36d2bd2ad5fb9eaddba5226aa02c8ec3fa4f192631e347b3ed28186d43be6b54", size = 155866, upload-time = "2026-03-25T20:21:31.65Z" }, - { url = "https://files.pythonhosted.org/packages/14/6f/12645cf7f08e1a20c7eb8c297c6f11d31c1b50f316a7e7e1e1de6e2e7b7e/tomli-2.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:eb0dc4e38e6a1fd579e5d50369aa2e10acfc9cace504579b2faabb478e76941a", size = 149887, upload-time = "2026-03-25T20:21:33.028Z" }, - { url = "https://files.pythonhosted.org/packages/5c/e0/90637574e5e7212c09099c67ad349b04ec4d6020324539297b634a0192b0/tomli-2.4.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c7f2c7f2b9ca6bdeef8f0fa897f8e05085923eb091721675170254cbc5b02897", size = 243704, upload-time = "2026-03-25T20:21:34.51Z" }, - { url = "https://files.pythonhosted.org/packages/10/8f/d3ddb16c5a4befdf31a23307f72828686ab2096f068eaf56631e136c1fdd/tomli-2.4.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f3c6818a1a86dd6dca7ddcaaf76947d5ba31aecc28cb1b67009a5877c9a64f3f", size = 251628, upload-time = "2026-03-25T20:21:36.012Z" }, - { url = "https://files.pythonhosted.org/packages/e3/f1/dbeeb9116715abee2485bf0a12d07a8f31af94d71608c171c45f64c0469d/tomli-2.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d312ef37c91508b0ab2cee7da26ec0b3ed2f03ce12bd87a588d771ae15dcf82d", size = 247180, upload-time = "2026-03-25T20:21:37.136Z" }, - { url = "https://files.pythonhosted.org/packages/d3/74/16336ffd19ed4da28a70959f92f506233bd7cfc2332b20bdb01591e8b1d1/tomli-2.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:51529d40e3ca50046d7606fa99ce3956a617f9b36380da3b7f0dd3dd28e68cb5", size = 251674, upload-time = "2026-03-25T20:21:38.298Z" }, - { url = "https://files.pythonhosted.org/packages/16/f9/229fa3434c590ddf6c0aa9af64d3af4b752540686cace29e6281e3458469/tomli-2.4.1-cp313-cp313-win32.whl", hash = "sha256:2190f2e9dd7508d2a90ded5ed369255980a1bcdd58e52f7fe24b8162bf9fedbd", size = 97976, upload-time = "2026-03-25T20:21:39.316Z" }, - { url = "https://files.pythonhosted.org/packages/6a/1e/71dfd96bcc1c775420cb8befe7a9d35f2e5b1309798f009dca17b7708c1e/tomli-2.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:8d65a2fbf9d2f8352685bc1364177ee3923d6baf5e7f43ea4959d7d8bc326a36", size = 108755, upload-time = "2026-03-25T20:21:40.248Z" }, - { url = "https://files.pythonhosted.org/packages/83/7a/d34f422a021d62420b78f5c538e5b102f62bea616d1d75a13f0a88acb04a/tomli-2.4.1-cp313-cp313-win_arm64.whl", hash = "sha256:4b605484e43cdc43f0954ddae319fb75f04cc10dd80d830540060ee7cd0243cd", size = 95265, upload-time = "2026-03-25T20:21:41.219Z" }, - { url = "https://files.pythonhosted.org/packages/3c/fb/9a5c8d27dbab540869f7c1f8eb0abb3244189ce780ba9cd73f3770662072/tomli-2.4.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:fd0409a3653af6c147209d267a0e4243f0ae46b011aa978b1080359fddc9b6cf", size = 155726, upload-time = "2026-03-25T20:21:42.23Z" }, - { url = "https://files.pythonhosted.org/packages/62/05/d2f816630cc771ad836af54f5001f47a6f611d2d39535364f148b6a92d6b/tomli-2.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a120733b01c45e9a0c34aeef92bf0cf1d56cfe81ed9d47d562f9ed591a9828ac", size = 149859, upload-time = "2026-03-25T20:21:43.386Z" }, - { url = "https://files.pythonhosted.org/packages/ce/48/66341bdb858ad9bd0ceab5a86f90eddab127cf8b046418009f2125630ecb/tomli-2.4.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:559db847dc486944896521f68d8190be1c9e719fced785720d2216fe7022b662", size = 244713, upload-time = "2026-03-25T20:21:44.474Z" }, - { url = "https://files.pythonhosted.org/packages/df/6d/c5fad00d82b3c7a3ab6189bd4b10e60466f22cfe8a08a9394185c8a8111c/tomli-2.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:01f520d4f53ef97964a240a035ec2a869fe1a37dde002b57ebc4417a27ccd853", size = 252084, upload-time = "2026-03-25T20:21:45.62Z" }, - { url = "https://files.pythonhosted.org/packages/00/71/3a69e86f3eafe8c7a59d008d245888051005bd657760e96d5fbfb0b740c2/tomli-2.4.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7f94b27a62cfad8496c8d2513e1a222dd446f095fca8987fceef261225538a15", size = 247973, upload-time = "2026-03-25T20:21:46.937Z" }, - { url = "https://files.pythonhosted.org/packages/67/50/361e986652847fec4bd5e4a0208752fbe64689c603c7ae5ea7cb16b1c0ca/tomli-2.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ede3e6487c5ef5d28634ba3f31f989030ad6af71edfb0055cbbd14189ff240ba", size = 256223, upload-time = "2026-03-25T20:21:48.467Z" }, - { url = "https://files.pythonhosted.org/packages/8c/9a/b4173689a9203472e5467217e0154b00e260621caa227b6fa01feab16998/tomli-2.4.1-cp314-cp314-win32.whl", hash = "sha256:3d48a93ee1c9b79c04bb38772ee1b64dcf18ff43085896ea460ca8dec96f35f6", size = 98973, upload-time = "2026-03-25T20:21:49.526Z" }, - { url = "https://files.pythonhosted.org/packages/14/58/640ac93bf230cd27d002462c9af0d837779f8773bc03dee06b5835208214/tomli-2.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:88dceee75c2c63af144e456745e10101eb67361050196b0b6af5d717254dddf7", size = 109082, upload-time = "2026-03-25T20:21:50.506Z" }, - { url = "https://files.pythonhosted.org/packages/d5/2f/702d5e05b227401c1068f0d386d79a589bb12bf64c3d2c72ce0631e3bc49/tomli-2.4.1-cp314-cp314-win_arm64.whl", hash = "sha256:b8c198f8c1805dc42708689ed6864951fd2494f924149d3e4bce7710f8eb5232", size = 96490, upload-time = "2026-03-25T20:21:51.474Z" }, - { url = "https://files.pythonhosted.org/packages/45/4b/b877b05c8ba62927d9865dd980e34a755de541eb65fffba52b4cc495d4d2/tomli-2.4.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:d4d8fe59808a54658fcc0160ecfb1b30f9089906c50b23bcb4c69eddc19ec2b4", size = 164263, upload-time = "2026-03-25T20:21:52.543Z" }, - { url = "https://files.pythonhosted.org/packages/24/79/6ab420d37a270b89f7195dec5448f79400d9e9c1826df982f3f8e97b24fd/tomli-2.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7008df2e7655c495dd12d2a4ad038ff878d4ca4b81fccaf82b714e07eae4402c", size = 160736, upload-time = "2026-03-25T20:21:53.674Z" }, - { url = "https://files.pythonhosted.org/packages/02/e0/3630057d8eb170310785723ed5adcdfb7d50cb7e6455f85ba8a3deed642b/tomli-2.4.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1d8591993e228b0c930c4bb0db464bdad97b3289fb981255d6c9a41aedc84b2d", size = 270717, upload-time = "2026-03-25T20:21:55.129Z" }, - { url = "https://files.pythonhosted.org/packages/7a/b4/1613716072e544d1a7891f548d8f9ec6ce2faf42ca65acae01d76ea06bb0/tomli-2.4.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:734e20b57ba95624ecf1841e72b53f6e186355e216e5412de414e3c51e5e3c41", size = 278461, upload-time = "2026-03-25T20:21:56.228Z" }, - { url = "https://files.pythonhosted.org/packages/05/38/30f541baf6a3f6df77b3df16b01ba319221389e2da59427e221ef417ac0c/tomli-2.4.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8a650c2dbafa08d42e51ba0b62740dae4ecb9338eefa093aa5c78ceb546fcd5c", size = 274855, upload-time = "2026-03-25T20:21:57.653Z" }, - { url = "https://files.pythonhosted.org/packages/77/a3/ec9dd4fd2c38e98de34223b995a3b34813e6bdadf86c75314c928350ed14/tomli-2.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:504aa796fe0569bb43171066009ead363de03675276d2d121ac1a4572397870f", size = 283144, upload-time = "2026-03-25T20:21:59.089Z" }, - { url = "https://files.pythonhosted.org/packages/ef/be/605a6261cac79fba2ec0c9827e986e00323a1945700969b8ee0b30d85453/tomli-2.4.1-cp314-cp314t-win32.whl", hash = "sha256:b1d22e6e9387bf4739fbe23bfa80e93f6b0373a7f1b96c6227c32bef95a4d7a8", size = 108683, upload-time = "2026-03-25T20:22:00.214Z" }, - { url = "https://files.pythonhosted.org/packages/12/64/da524626d3b9cc40c168a13da8335fe1c51be12c0a63685cc6db7308daae/tomli-2.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:2c1c351919aca02858f740c6d33adea0c5deea37f9ecca1cc1ef9e884a619d26", size = 121196, upload-time = "2026-03-25T20:22:01.169Z" }, - { url = "https://files.pythonhosted.org/packages/5a/cd/e80b62269fc78fc36c9af5a6b89c835baa8af28ff5ad28c7028d60860320/tomli-2.4.1-cp314-cp314t-win_arm64.whl", hash = "sha256:eab21f45c7f66c13f2a9e0e1535309cee140182a9cdae1e041d02e47291e8396", size = 100393, upload-time = "2026-03-25T20:22:02.137Z" }, - { url = "https://files.pythonhosted.org/packages/7b/61/cceae43728b7de99d9b847560c262873a1f6c98202171fd5ed62640b494b/tomli-2.4.1-py3-none-any.whl", hash = "sha256:0d85819802132122da43cb86656f8d1f8c6587d54ae7dcaf30e90533028b49fe", size = 14583, upload-time = "2026-03-25T20:22:03.012Z" }, -] - -[[package]] -name = "tqdm" -version = "4.68.4" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "colorama", marker = "sys_platform == 'win32'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/ae/5f/57ff8b434839e70dab45601284ea413e947a63799891b7553e5960a793a8/tqdm-4.68.4.tar.gz", hash = "sha256:19829c9673638f2a0b8617da4cdcb927e831cd88bcfcb6e78d42a4d1af131520", size = 792418, upload-time = "2026-07-07T09:58:18.369Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/22/2a/5e5e750890ada51017d18d0d4c30da696e5b5bd3180947729927628fc3cb/tqdm-4.68.4-py3-none-any.whl", hash = "sha256:5168118b2368f48c561afda8020fd79195b1bdb0bdf8086b88442c267a315dc2", size = 676612, upload-time = "2026-07-07T09:58:16.256Z" }, +version = "2.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b0/78/9ad63712633ed3ab5cc1a648d863d7e7da371e9425e209555a0fe711b695/tomli-2.5.0.tar.gz", hash = "sha256:264507556cd8b8c8e7c6ee037cdf443a463f03f4c958e57195e3d369711b8ff6", size = 17662, upload-time = "2026-10-07T12:23:37.892Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/22/a6/ab99b60ee52acd949684febabc3005d0045d0f66bebd9cdebd67372d26dd/tomli-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c4dc1c1781f2f716de763d1e9a7b34c6a894e167e291c7c5d16c72f7a9538545", size = 163901, upload-time = "2026-10-07T12:22:15.601Z" }, + { url = "https://files.pythonhosted.org/packages/bc/00/ee01b7ed4579180fff07142d290257f25ba786f23f3ec6005f620933c2f5/tomli-2.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:eff8babca5a7999bc137acbc7482a8b7e17ffca5075ab41f5d770ab408c7bfef", size = 163756, upload-time = "2026-10-07T12:22:16.957Z" }, + { url = "https://files.pythonhosted.org/packages/72/c2/4efebf65372f6583185f79799312109dddb61102d47e5c33dcfd1a297aca/tomli-2.5.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:86665cee9c4835b7a7f1e8ec2c719b5258d4dc782887aded5a8ae7352a96843b", size = 268038, upload-time = "2026-10-07T12:22:18.135Z" }, + { url = "https://files.pythonhosted.org/packages/53/07/5850468e925d898abb36038666f9c333a94d2a223e802a8ba5b6d319d23f/tomli-2.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7e369fd63331746182360977b1892bfc215476a30d61612d732425311639f56", size = 276422, upload-time = "2026-10-07T12:22:19.567Z" }, + { url = "https://files.pythonhosted.org/packages/b4/87/f293984cdcf83c054196d4fd3dad44fc68ae55b4b8c44bc76cef360c3150/tomli-2.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ad1ea345759240d6463efa0ed1c704402752e49aa21476620738d74d72d8aa1", size = 272616, upload-time = "2026-10-07T12:22:20.794Z" }, + { url = "https://files.pythonhosted.org/packages/ce/ce/db582886b3c1219d3fec93ebd669332482e5aee7a91e0f7838d84f2d1759/tomli-2.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:96243987194634bd411066ce40c952e108f86af04db533ecd8ac3ff2a85b1885", size = 276593, upload-time = "2026-10-07T12:22:22.12Z" }, + { url = "https://files.pythonhosted.org/packages/bf/72/7619b87dea4261fc27dd7b54c4461c129c1f7d9bb7ba3aec89c797a431b8/tomli-2.5.0-cp311-cp311-win32.whl", hash = "sha256:610b27d99f28ec5f191c7064a48f3ddb179a1fe6ca73d571483ae859f57b605e", size = 101830, upload-time = "2026-10-07T12:22:23.651Z" }, + { url = "https://files.pythonhosted.org/packages/1e/74/220106da34502304b6751a2a9b8a9fbca6c3fd47e737a2e2e3da7c61c9db/tomli-2.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:c804ae44fe7b4bab5da295e4f980a1ff04670bca9d23fe0a4e887e08ebd741a8", size = 112742, upload-time = "2026-10-07T12:22:24.972Z" }, + { url = "https://files.pythonhosted.org/packages/27/99/7d9c8b41837a7773613e169504147375c157a290167aa59ad74a085f521f/tomli-2.5.0-cp311-cp311-win_arm64.whl", hash = "sha256:cfac177ebd6236003846ea339981f71457cb6eb748f23381eb257e45092e3980", size = 109332, upload-time = "2026-10-07T12:22:26.117Z" }, + { url = "https://files.pythonhosted.org/packages/52/ed/7baa86f87493646a594de388c7c1c40a39dd0461f7e9c0359cbeefc91fe8/tomli-2.5.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1f4a40d03fb9f63424f0979855bdeaf44dd7696b8d59501822c10ed30ba532df", size = 164854, upload-time = "2026-10-07T12:22:27.444Z" }, + { url = "https://files.pythonhosted.org/packages/a5/b1/44c0341f2224397855723c7a8a39f718ea6fcbcc3dacc66e5aeca0f334e3/tomli-2.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ebf8d19b17bd0daeb7b7dec81a946a439b753942fd0210d6e96c532249eea6b", size = 164074, upload-time = "2026-10-07T12:22:28.679Z" }, + { url = "https://files.pythonhosted.org/packages/23/04/e2d5b7d3fba47adedb23de616c16d428ea076c79a3d8e1d95d649ffe197e/tomli-2.5.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf0b5e8e0f68ebb494356e577c06c139161efd8d3b9050f93b39b7c26cc54ff0", size = 274274, upload-time = "2026-10-07T12:22:29.804Z" }, + { url = "https://files.pythonhosted.org/packages/43/90/6090e706ff27a6f89f4a40578e3324b95c3cd8c4150868aabf33a8f414c3/tomli-2.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6cf74416bdc94ae458b14e37286c1073081850ac8459a00d0c5efef5d44294c6", size = 286435, upload-time = "2026-10-07T12:22:31.297Z" }, + { url = "https://files.pythonhosted.org/packages/0a/9e/a2c40768df16c408f22430afb0a73e9d7e5f79c950884954649d1146b74d/tomli-2.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:61ea1ebe1e55a34ea8199cc8dbff398d35027b82271c8ac4802fd3a1fd5b1bcc", size = 278119, upload-time = "2026-10-07T12:22:32.601Z" }, + { url = "https://files.pythonhosted.org/packages/12/25/3c0cb485b98e9cfac495629b1c93c87ccf0b72fbe9d2689fd8fe62c6d5a3/tomli-2.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ed53f7e89bb04f6d9e8e7799112360b0c4d5cbff067de0814c98c37c39b920f7", size = 286177, upload-time = "2026-10-07T12:22:33.745Z" }, + { url = "https://files.pythonhosted.org/packages/77/8b/0144c65f0e37e51c18d04ae15c21b19431c165002d0131fe9aa8b0b8b1e8/tomli-2.5.0-cp312-cp312-win32.whl", hash = "sha256:e7ad033e27a516a233bea839cdb77b80146facb3b4f40bf02cd0cac165cdd5c2", size = 102760, upload-time = "2026-10-07T12:22:34.887Z" }, + { url = "https://files.pythonhosted.org/packages/de/32/5d6d8f42fc9a05fce69354e00ff256484192f5f2fc9a2165718fa0de61ec/tomli-2.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd05de8c1698f8413dd7d869492693a0bf2211543b787ac78cd5e7536af1a6d7", size = 112722, upload-time = "2026-10-07T12:22:36.162Z" }, + { url = "https://files.pythonhosted.org/packages/30/65/df18032218db0fb9b769fb23c8039a051f15c811993995ea04c350273a32/tomli-2.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:069435bd5480429b98c5e5afb02ab21c219b6f0064680671c6dc0d46817346ea", size = 109534, upload-time = "2026-10-07T12:22:37.296Z" }, + { url = "https://files.pythonhosted.org/packages/42/e5/51736d70da209350969e15aca5c5ab6e2ce1ea87a0a892a6c13aec172a86/tomli-2.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:943276cf269e0071948d9ff697159c1735e623c1151d88abb09b74659ef0cbea", size = 163328, upload-time = "2026-10-07T12:22:38.373Z" }, + { url = "https://files.pythonhosted.org/packages/ec/55/086f80dab4ab497602644274e6dea7ec5dd0b4e262e443a8ad3bb7edee2d/tomli-2.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:463b16086865b97facd8d0b3fb4cb7c544e3f58d2a69dc3113d6db9653fdb043", size = 162246, upload-time = "2026-10-07T12:22:39.673Z" }, + { url = "https://files.pythonhosted.org/packages/aa/eb/3ecc94459f3635c92321f4e7bde571323fdb2267c50e19e3188a281eae3b/tomli-2.5.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1245a6638fc4bb0a60af38a7d45413db34a13842027c77597c712c998c62fdf0", size = 272655, upload-time = "2026-10-07T12:22:41.08Z" }, + { url = "https://files.pythonhosted.org/packages/c0/d7/494fd1f0c37a621f1ad9975c2efadb523e8101f144ed6edb2e7fe64738f2/tomli-2.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5d8bac3d603c97e6854424e5b2b5b741bdbde387e09f162fb0446812b4a8362b", size = 283595, upload-time = "2026-10-07T12:22:42.222Z" }, + { url = "https://files.pythonhosted.org/packages/70/51/bb8d62b1317e6640866f6949b2d5855e5300f2c99d46de1cd245570bba65/tomli-2.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:21e4cae4114aba25aa0d4f85cdf486d290fb35c0954d7bba536248da64d43066", size = 276253, upload-time = "2026-10-07T12:22:43.625Z" }, + { url = "https://files.pythonhosted.org/packages/66/f4/f46bd7f0763cd47de2db697dca9257c6a4adfd1a93b018cc75c8190ed5a8/tomli-2.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bbaefc84548d754be821bba7c4141c4787dda182f9e77f2f87b71213529efa7b", size = 283582, upload-time = "2026-10-07T12:22:44.983Z" }, + { url = "https://files.pythonhosted.org/packages/ac/03/70f2bcb2923a6db37818d917e124270a7f4cfd38ea576f5aa753a91c0ef5/tomli-2.5.0-cp313-cp313-win32.whl", hash = "sha256:abdbf6313b8d9efe157edeb7ab6eae4de064b1300ad31abf73755154b30abe68", size = 102628, upload-time = "2026-10-07T12:22:46.508Z" }, + { url = "https://files.pythonhosted.org/packages/dc/98/d52024bb5b0ff68b4f0d276d867f634c84a67319a7e9f6b7708a37742333/tomli-2.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:fd4dc129784e0c5335bd4e61dfcc4487499a013419e655cf2da1d091b7e0efdc", size = 113301, upload-time = "2026-10-07T12:22:47.647Z" }, + { url = "https://files.pythonhosted.org/packages/6f/f2/540db3a70572a8c23a28aba3e9c358ce0ffffbafc990905c1343aa265b31/tomli-2.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:69491c143d2fe063046e0301e62a810bed338fa4d1ce0fd870c27dc1e09b0d84", size = 109744, upload-time = "2026-10-07T12:22:48.925Z" }, + { url = "https://files.pythonhosted.org/packages/e4/49/caf6b307766eb9567664a8707e9d6be5fcc0e8903f18781c6677a60d80c7/tomli-2.5.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d3182ee2d887e507bd67319a0a61105d1dd33facc111329559a233b772c1a105", size = 162899, upload-time = "2026-10-07T12:22:50.088Z" }, + { url = "https://files.pythonhosted.org/packages/d3/c8/68cfce773a2733a49c74f99d627fb461bd990756860099eac25617889585/tomli-2.5.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:521345fd1f19d45b8df87657aaa38b6f2ca3800059fadf428e7ebf479a383646", size = 162080, upload-time = "2026-10-07T12:22:51.558Z" }, + { url = "https://files.pythonhosted.org/packages/7e/b2/e5bb8651fdad593f670501a7d718b1a7f73f064d44dea15e04c04dfef45d/tomli-2.5.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e95c7614e705bfe2b04b27aa124adec59752d15813df37e2156747cab3a006b", size = 273380, upload-time = "2026-10-07T12:22:52.918Z" }, + { url = "https://files.pythonhosted.org/packages/8d/d2/9e2d7f8b1dfe0e2b34c245986ebd55c4c553ea4ce6c47c443b332673253f/tomli-2.5.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7ac2027d37c3afbdf4bdd377f2676f6f1d2122a5be1f1137b49dced590b37e75", size = 283228, upload-time = "2026-10-07T12:22:54.173Z" }, + { url = "https://files.pythonhosted.org/packages/ba/df/ec7b876b7b1a2718bd74a3743c076fff565b04029ba33e8f61fac262739f/tomli-2.5.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c414be4ed9d3cac80c42e348fa5a956117d1a48227f48026e31f59cb4a7671eb", size = 277189, upload-time = "2026-10-07T12:22:55.342Z" }, + { url = "https://files.pythonhosted.org/packages/7d/7b/e192d9eed0b9cb80da799f4d77052297fb9a2c3cc9b19f571f56ea88add6/tomli-2.5.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9b03d7dc168353b4132965bde20feceabaa470e570c6f59660dfae59b1f9eeb3", size = 283632, upload-time = "2026-10-07T12:22:56.735Z" }, + { url = "https://files.pythonhosted.org/packages/84/50/ff94454e75461d75623e47401ed323d65c10aab8fe9033242c20cd2fdf32/tomli-2.5.0-cp314-cp314-win32.whl", hash = "sha256:6f041843c4d3a37245c0c056fd955b186bf8b1fb85690cbe40b81230891dc34b", size = 103535, upload-time = "2026-10-07T12:22:58.084Z" }, + { url = "https://files.pythonhosted.org/packages/54/0b/bdacf05f963bd6026ebf6eeb0beda847d1d60e03e440725c64a4e08a0afd/tomli-2.5.0-cp314-cp314-win_amd64.whl", hash = "sha256:f4b653094e18f9031102d3a1da5c729c8f222d85225b18037dac621695e46e1a", size = 114621, upload-time = "2026-10-07T12:22:59.2Z" }, + { url = "https://files.pythonhosted.org/packages/61/99/53f438fa6ae4f9d4ed0ddde3e7242b3bdc34b48c8f9948b72b9e9b127676/tomli-2.5.0-cp314-cp314-win_arm64.whl", hash = "sha256:3f89d10c1ff6a38d992c27fc8a4816af71a909e08a40ec66934240b1e74347c3", size = 111572, upload-time = "2026-10-07T12:23:00.479Z" }, + { url = "https://files.pythonhosted.org/packages/b9/20/1f88f19427d380a40e90a770e087489eaafe4aeee070ae88ed2bbec00acd/tomli-2.5.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:e9e15b4a6c7dd6b85b5fbab29488a73f1f70de516942308daa266bf0e0aeb0d4", size = 171814, upload-time = "2026-10-07T12:23:01.914Z" }, + { url = "https://files.pythonhosted.org/packages/d0/56/cbe5079c9f9a54b9b3e27fc82f08f3cb36edee75561679f53d2380c801d6/tomli-2.5.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e12bbcd32897272fb05929110362ae9ff4c1b9bb26bd9e971e71dcd3275b4c3d", size = 171324, upload-time = "2026-10-07T12:23:03.18Z" }, + { url = "https://files.pythonhosted.org/packages/2b/30/1d53fd3b0f1cb3ba542e345ec32c26aefdddc4e829e4f3429af8a4f27782/tomli-2.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20aa36de8f2cf87237143bc1fa1aae8d6612c09118f4da21c6a684db5dd1f6f9", size = 297441, upload-time = "2026-10-07T12:23:04.345Z" }, + { url = "https://files.pythonhosted.org/packages/66/d9/0800acb6a111686f764c1b91ef15cc42a20a66a46013bb42220f1d2c61c1/tomli-2.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22185fad8a1e622f064e78008018a0dd3323550dcb479cb7a1d296888d74024f", size = 307476, upload-time = "2026-10-07T12:23:05.671Z" }, + { url = "https://files.pythonhosted.org/packages/e8/63/30a8f3cd51b5bec37f04744bad0b0dc6160df84aad4f27b0e9283d66f221/tomli-2.5.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:984012f71908165449a951de2050d52f276bfe3aa5d5f570f63ddad814370374", size = 296113, upload-time = "2026-10-07T12:23:07.202Z" }, + { url = "https://files.pythonhosted.org/packages/ab/18/0b9ffc597e69c5a1e20a7823cb60d54b39a9f54e91edcb8574f022186758/tomli-2.5.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f79203b3965b4000e91808aaa7c040206093f2b8bf86f455982f2274c9ccf442", size = 307725, upload-time = "2026-10-07T12:23:08.508Z" }, + { url = "https://files.pythonhosted.org/packages/ab/c7/18f8baae0b5607a60e8e19b4a7fedee43a8ff6458e3896dcbbadeeac9c22/tomli-2.5.0-cp314-cp314t-win32.whl", hash = "sha256:91294a9fb94a75542f6e46e4a2ae709bd8d9b51134098cae5cf3bea5478b6d03", size = 108546, upload-time = "2026-10-07T12:23:09.956Z" }, + { url = "https://files.pythonhosted.org/packages/72/34/4cca9739254130627bde87500b3f2b512154fe2f278efa7e2a5e10ad4bcb/tomli-2.5.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f15e3e0b835a6d68b10c86bf80a3149780498d6911c93c3ffd1861d19f9200f1", size = 117814, upload-time = "2026-10-07T12:23:11.486Z" }, + { url = "https://files.pythonhosted.org/packages/7d/fb/afa530d47dd80a78fce43beac6bc6e00f84558eafcffbc6f37b21e80d056/tomli-2.5.0-cp314-cp314t-win_arm64.whl", hash = "sha256:6664b7ae7af7294256c53960a6103077f4914cec8ff98479c352f622c6f6b2f0", size = 115188, upload-time = "2026-10-07T12:23:12.728Z" }, + { url = "https://files.pythonhosted.org/packages/66/98/316fdc00f8c0939e6fe50461dd343c162d3ad51d1286eb25b7db54361d50/tomli-2.5.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:a525685c2f97da40762b8695eb7aa0af4c8344ca1905c73e4e29cb04d34607dc", size = 162775, upload-time = "2026-10-07T12:23:13.941Z" }, + { url = "https://files.pythonhosted.org/packages/c5/22/7b10fa5bb01c9539f53f69b619361b19350acc73657772ea7ac70ba309a8/tomli-2.5.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9dbb18c1cfb2f6517942fc9314437f66aa06d94436ffb1f06102ef3572f35276", size = 161406, upload-time = "2026-10-07T12:23:15.215Z" }, + { url = "https://files.pythonhosted.org/packages/9c/e7/1a069d86dfd20f1f84f71c63faed9f83c1d890bc06c27d82dc7d888fb573/tomli-2.5.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:752e8b1aa6a4367ef8bf6a1a1e005540f7ed055ba36d7193796812ca5404eb52", size = 273855, upload-time = "2026-10-07T12:23:16.471Z" }, + { url = "https://files.pythonhosted.org/packages/ae/83/d1ef43d1687d092ab9c235455c76e6e709483b346b056f086095c7c263a5/tomli-2.5.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c47300f9bf791808f77d82747691c4bb09cb14bdf3060cca99b42cdc4361d5a7", size = 284910, upload-time = "2026-10-07T12:23:18.166Z" }, + { url = "https://files.pythonhosted.org/packages/cc/05/f4d9cf7de61822ece0c3873f30d291e324911c71a378b8bfe5ced13fd9f5/tomli-2.5.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:19b0dd8749f4ea2f112c5fcfb3c5248390c899d7e2e173f1d91abee1fa0ff391", size = 277723, upload-time = "2026-10-07T12:23:19.355Z" }, + { url = "https://files.pythonhosted.org/packages/42/28/78262493141fa543151cf005760c3cb01d09fc28a11f993c05109902cb8c/tomli-2.5.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:57b1c3b01fab802e2899bc3d168dca320e14165e2fd9fd584760fb4ca5826859", size = 285115, upload-time = "2026-10-07T12:23:20.698Z" }, + { url = "https://files.pythonhosted.org/packages/1a/b9/e1dab9a30bcb677b5cc5cee810609cfd64f24306a3055767dd3fda00b1e0/tomli-2.5.0-cp315-cp315-win32.whl", hash = "sha256:667e521b37a6c5ccaa044202c235b530f90177ffe2cd4a64ecc213c7dd535feb", size = 103475, upload-time = "2026-10-07T12:23:21.941Z" }, + { url = "https://files.pythonhosted.org/packages/4c/bd/31a3790c11d6ea95fcf5e6022ac0f8d0543c9b61120b730fc481bd43d3b4/tomli-2.5.0-cp315-cp315-win_amd64.whl", hash = "sha256:d747252933c8a65ef6bd8da0fbb7ce28a90eb6119d8cd00772cd528aa07b68d5", size = 114589, upload-time = "2026-10-07T12:23:23.098Z" }, + { url = "https://files.pythonhosted.org/packages/47/a2/4f6310fa699364f0e3af7ee3af88dddd9af066d33e716a0265bbe2b3ea84/tomli-2.5.0-cp315-cp315-win_arm64.whl", hash = "sha256:75dbcde8751b0a960aa3de173aa5e894d590755c6d7758b7e774c06f1dc3cbdd", size = 111493, upload-time = "2026-10-07T12:23:24.233Z" }, + { url = "https://files.pythonhosted.org/packages/68/14/00853f0b396d8971107ae1921bb5b322fdee1650d2f16bf06c20adb532e5/tomli-2.5.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:2419c2a189551987b59d80e63ec355671283336f41c6b9b89462df679c7d0c57", size = 171380, upload-time = "2026-10-07T12:23:25.512Z" }, + { url = "https://files.pythonhosted.org/packages/89/ad/fa6949321dadee46b27363974fb197b94c911c3b0f7a5fd26d7dc18fc2a0/tomli-2.5.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:0dc598040da8d42cf20f0be588ed7004f46db12a0ac6c32e03a59dccedaaadcd", size = 170553, upload-time = "2026-10-07T12:23:26.855Z" }, + { url = "https://files.pythonhosted.org/packages/53/aa/3056c919eb3e084df3752b2cf5f865dcc04af0b27dba2f66d7b28af4633a/tomli-2.5.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49096930c8d886c9bbdab62d2d0d17ce823ddeea522309a190b36245d5b49e01", size = 294428, upload-time = "2026-10-07T12:23:28.132Z" }, + { url = "https://files.pythonhosted.org/packages/96/b2/faeeb5d8769ea3832021d73e892c8391eae7b4b4f8b55a789127bd8b18a9/tomli-2.5.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8ade5023067f99fe72b88accd30d0ea05a158e9e32a11f124e731ea9695313f", size = 304909, upload-time = "2026-10-07T12:23:29.381Z" }, + { url = "https://files.pythonhosted.org/packages/f6/52/f094c09e73fb654b621716d019acb5d29bdfd1be01df80c281d552bda48d/tomli-2.5.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b69564772b5c8f22ea5f498dff08cfa825045b4d4c4400529000bdf818aa3b2a", size = 293220, upload-time = "2026-10-07T12:23:30.608Z" }, + { url = "https://files.pythonhosted.org/packages/86/f5/0c30541078ca4b505ce3bd76ed931facbfec524dd018535d691d1af0a6d2/tomli-2.5.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:8ff3a2ca028c7eee0c777f9a092038d0a594a9fa04e215f929a22c329e2cb142", size = 305705, upload-time = "2026-10-07T12:23:32.181Z" }, + { url = "https://files.pythonhosted.org/packages/05/74/590e7d19d6a118fc5cc5704ff358e21d95b8573f6b9443b1519f29ca8825/tomli-2.5.0-cp315-cp315t-win32.whl", hash = "sha256:62fc1bc8eb03e3a9cadfca713d65614ed8e09d974a283295ffe3a831976b4dc5", size = 108432, upload-time = "2026-10-07T12:23:33.496Z" }, + { url = "https://files.pythonhosted.org/packages/1c/b8/63a75cfb27a17c38550e44025d3a6e7be64516fd8608a3b75703bf37d81b/tomli-2.5.0-cp315-cp315t-win_amd64.whl", hash = "sha256:f3fcbc57b1791fa6cbe5d8434179d51de12be1a4811469529f47f6e7487a2571", size = 117281, upload-time = "2026-10-07T12:23:34.648Z" }, + { url = "https://files.pythonhosted.org/packages/72/01/e8c1debb2173973372934c68fc8e46170ab60ef23ed4592dff4dec6e8993/tomli-2.5.0-cp315-cp315t-win_arm64.whl", hash = "sha256:d2ba24db8a9376921b5e87b4762b9adb0f3f1deaea68f2b8b0bb2c11efb9c3e7", size = 115069, upload-time = "2026-10-07T12:23:35.77Z" }, + { url = "https://files.pythonhosted.org/packages/60/3f/3e3f8fd0919249b0200c80fbc4f9a1e70be19f9883da71dfb7f8b9ab8aca/tomli-2.5.0-py3-none-any.whl", hash = "sha256:32a7b79ac57a2e83670ce329ccf675798bc5a2094783a63676866b70503f2e2b", size = 14765, upload-time = "2026-10-07T12:23:36.875Z" }, +] + +[[package]] +name = "tomlkit" +version = "0.13.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cc/18/0bbf3884e9eaa38819ebe46a7bd25dcd56b67434402b66a58c4b8e552575/tomlkit-0.13.3.tar.gz", hash = "sha256:430cf247ee57df2b94ee3fbe588e71d362a941ebb545dec29b53961d61add2a1", size = 185207, upload-time = "2025-06-05T07:13:44.947Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bd/75/8539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85/tomlkit-0.13.3-py3-none-any.whl", hash = "sha256:c89c649d79ee40629a9fda55f8ace8c6a1b42deb912b2a8fd8d942ddadb606b0", size = 38901, upload-time = "2025-06-05T07:13:43.546Z" }, +] + +[[package]] +name = "truststore" +version = "0.10.5" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ee/9f/c5201d42a484c061e528825fc8e2d565f5abd50a4ced6fb7d29c4ec99b2b/truststore-0.10.5.tar.gz", hash = "sha256:30d36967ccaded5cbb38d602c433f53600036c79d502f4533a49b60a03bbefcd", size = 28091, upload-time = "2026-10-12T22:27:31.808Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/e9/3a7820be2bb0fe53b6bc9c3be26d3d1158004e4c3ab953aa6840b955b1e9/truststore-0.10.5-py3-none-any.whl", hash = "sha256:9aaaedaefaf06d8b206278cf8b5012bc897f485a874503501e12d776df78951c", size = 19017, upload-time = "2026-10-12T22:27:30.377Z" }, ] [[package]] @@ -5114,15 +4955,15 @@ s3 = [ [[package]] name = "types-aiobotocore" -version = "3.7.0" +version = "3.9.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "botocore-stubs" }, { name = "typing-extensions", marker = "python_full_version < '3.12'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/76/e8/ef1fcb876937dbdddc0f01b5df4ed53f33b166a6367d80a9014d5e5f091d/types_aiobotocore-3.7.0.tar.gz", hash = "sha256:fe35de52c12e5fdb89ca60b3989766e7fe827e3d2e95fcf4583e91581945205c", size = 87992, upload-time = "2026-05-10T03:19:32.353Z" } +sdist = { url = "https://files.pythonhosted.org/packages/43/cd/79562ee488be03558881bc2ae402bcfc712d234545b5d7fd7628a20a08e0/types_aiobotocore-3.9.2.tar.gz", hash = "sha256:c7ed080b6dc414cdd4e358f4deeb0eb73dccb1bfd539b2dc7b9422618ab70608", size = 90177, upload-time = "2026-10-01T04:52:56.583Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f9/68/0cdfd7df415ee3e769c8e8f9bd8013c64c88cdd7306f72453a02123c58f9/types_aiobotocore-3.7.0-py3-none-any.whl", hash = "sha256:ff4139b3eae22d242b6b39ba56048344b2b86f67daeeca4680da1a6e191681fd", size = 54804, upload-time = "2026-05-10T03:19:29.487Z" }, + { url = "https://files.pythonhosted.org/packages/b9/e2/5ccbf548bbbb370b81fbde75f331ba6bc253633d1f3a04140300637d0322/types_aiobotocore-3.9.2-py3-none-any.whl", hash = "sha256:c20d291feb09c4fd5681d7ce9ea6226ed58f9643f2364c5abc90aa29f188ebea", size = 55589, upload-time = "2026-10-01T04:52:52.341Z" }, ] [[package]] @@ -5137,31 +4978,22 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b4/0a/d0d9faefd7caa8536eb97647c38c711e73ab83341a65119d08c2cb20957d/types_aiobotocore_s3-2.25.2-py3-none-any.whl", hash = "sha256:151301e84bb2f1cbf30f0d1ef791bb75c141cfbfe47b93fd317b7f1ba3eb35e4", size = 83626, upload-time = "2025-11-12T01:52:04.763Z" }, ] -[[package]] -name = "types-awscrt" -version = "0.34.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/3e/59/44409a8fc06b444ab1a6f71dcb29d49a6e17e02424345eb51b051bebb345/types_awscrt-0.34.1.tar.gz", hash = "sha256:559aa04250f6a419a617dfb788f3e10903aaf74700ef23e521b64a411b83b803", size = 19062, upload-time = "2026-06-05T04:40:10.689Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e4/b1/214b12162b452ed6acd230065e6c587cde6b96871e3ce6d653f40888f8df/types_awscrt-0.34.1-py3-none-any.whl", hash = "sha256:20c752b6031544d8f694803c35174aee129f1be5ddf886ae46d22f7ffd9b7d75", size = 45688, upload-time = "2026-06-05T04:40:09.198Z" }, -] - [[package]] name = "types-protobuf" -version = "7.34.1.20260518" +version = "7.35.1.20260906" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/29/59/e2b13b499d15e6720150c4b1a8d91e31fcacf716b432397475b3151ff7e4/types_protobuf-7.34.1.20260518.tar.gz", hash = "sha256:28cfaded25889cb83ebfb63cfb0a43628f0b6f3785767bec17287dc6468795f2", size = 68936, upload-time = "2026-05-18T06:01:47.332Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e1/6c/e3e5b3e10bc328126a39637c138f9ebfd734bf14342b9f3540039b4ab995/types_protobuf-7.35.1.20260906.tar.gz", hash = "sha256:efd1a3862d4c967dad5512ef8d56b1530ac84f182c41735b94004756518c4998", size = 69895, upload-time = "2026-09-06T06:35:28.308Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/2a/1f/ec5caf72c2e3b688ca3927e0979a04ddad19e1afc4bf1c199bd743e0f419/types_protobuf-7.34.1.20260518-py3-none-any.whl", hash = "sha256:a0a5337413347166439c0e07cbc26c6164d091401c6f01b1dfd8cdb966c4dd8f", size = 85992, upload-time = "2026-05-18T06:01:45.696Z" }, + { url = "https://files.pythonhosted.org/packages/44/4e/f63e826c68f77ef875506d72f225918800346545ee99847bc28f3394f18d/types_protobuf-7.35.1.20260906-py3-none-any.whl", hash = "sha256:5155e48569e0dabff303fdf578db96cd31ea9a4a63b18018a4ceac6b0ae17462", size = 86419, upload-time = "2026-09-06T06:35:27.247Z" }, ] [[package]] name = "types-s3transfer" -version = "0.16.0" +version = "0.19.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/fe/64/42689150509eb3e6e82b33ee3d89045de1592488842ddf23c56957786d05/types_s3transfer-0.16.0.tar.gz", hash = "sha256:b4636472024c5e2b62278c5b759661efeb52a81851cde5f092f24100b1ecb443", size = 13557, upload-time = "2025-12-08T08:13:09.928Z" } +sdist = { url = "https://files.pythonhosted.org/packages/61/29/4df7e8eccfdaac9308e06ae94271eb0e5d2324cbe6df241363c44b70e08c/types_s3transfer-0.19.2.tar.gz", hash = "sha256:2a78a806c09b11fc6d59756402ade26b49b93a85ac6f209a39e2498211c6a41b", size = 13766, upload-time = "2026-10-13T01:42:25.222Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/98/27/e88220fe6274eccd3bdf95d9382918716d312f6f6cef6a46332d1ee2feff/types_s3transfer-0.16.0-py3-none-any.whl", hash = "sha256:1c0cd111ecf6e21437cb410f5cddb631bfb2263b77ad973e79b9c6d0cb24e0ef", size = 19247, upload-time = "2025-12-08T08:13:08.426Z" }, + { url = "https://files.pythonhosted.org/packages/93/02/3fa02c57a65f8721030247866d28c1a6601d7826297e83059c50b7d6ce7e/types_s3transfer-0.19.2-py3-none-any.whl", hash = "sha256:f1167b9a082a49fc55f12700dcbd3a8b540b9e6fec4e1d782ff44f3eef0bdbff", size = 19473, upload-time = "2026-10-13T01:42:23.813Z" }, ] [[package]] @@ -5175,159 +5007,124 @@ wheels = [ [[package]] name = "typing-inspection" -version = "0.4.2" +version = "0.4.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" }, -] - -[[package]] -name = "tzdata" -version = "2026.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/92/ff/5a28bdfd8c3ebec42564ac7d0e54ca3db65044a9314a97f9564fa7a1e926/tzdata-2026.3.tar.gz", hash = "sha256:4a1518b8993086a7982523e071643f3c0e5f213e75b21318e78bcabfff9d1415", size = 198674, upload-time = "2026-07-10T08:50:37.887Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a3/26/b09b8010994eccc3c09092e6b34058f36a460eea2d4c3e8b910c695975a0/typing_inspection-0.4.4.tar.gz", hash = "sha256:547274fa6b0a561ccf549cc9524b999a578e737d015d8709d021f9d0d13bea47", size = 76928, upload-time = "2026-08-12T12:37:25.997Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e5/6d/b53b99a9f2766d095985947a5782f1702cabb129a34f7a802d7197af832f/tzdata-2026.3-py2.py3-none-any.whl", hash = "sha256:dc096730c87af6cab1b171c9d532be840741ff5d459015e7f6947bd7d7e54931", size = 348168, upload-time = "2026-07-10T08:50:36.46Z" }, -] - -[[package]] -name = "tzlocal" -version = "5.4.4" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "tzdata", marker = "sys_platform == 'win32'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/81/5b/879b2f932adfa7a053c360d50bc896c977fa6426109185f7c12ebdd0cb9d/tzlocal-5.4.4.tar.gz", hash = "sha256:8dbb8660838688a7b6ba4fed31d18dedf842afb4d47ca050d6d891c2c15f3be4", size = 31170, upload-time = "2026-06-29T08:03:40.026Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/9e/a4/017a7a6cbe387d961a688ec31364ae60a5c4e22c96ae9921b79a947c855d/tzlocal-5.4.4-py3-none-any.whl", hash = "sha256:aae09f0126a8a86fa736be266eb4a471380d26a0de3bc14844e7821fee3e2a15", size = 18115, upload-time = "2026-06-29T08:03:38.666Z" }, + { url = "https://files.pythonhosted.org/packages/67/81/4add07e5172b7ac40d8ed5ff580409a7801a4fe26d529bdd915401dabfbe/typing_inspection-0.4.4-py3-none-any.whl", hash = "sha256:65b8397ba37ccbce054456aaccddfc91e6e3083c92824df348d96ca832f3f147", size = 14750, upload-time = "2026-08-12T12:37:24.648Z" }, ] [[package]] name = "urllib3" -version = "2.7.0" +version = "2.8.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/53/0c/06f8b233b8fd13b9e5ee11424ef85419ba0d8ba0b3138bf360be2ff56953/urllib3-2.7.0.tar.gz", hash = "sha256:231e0ec3b63ceb14667c67be60f2f2c40a518cb38b03af60abc813da26505f4c", size = 433602, upload-time = "2026-05-07T16:13:18.596Z" } +sdist = { url = "https://files.pythonhosted.org/packages/e3/05/b17359e1cefb4f909b5e40b1b90a496d987258916dbbf88e842c729f510e/urllib3-2.8.0.tar.gz", hash = "sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63", size = 458972, upload-time = "2026-09-15T19:29:36.253Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/7f/3e/5db95bcf282c52709639744ca2a8b149baccf648e39c8cc87553df9eae0c/urllib3-2.7.0-py3-none-any.whl", hash = "sha256:9fb4c81ebbb1ce9531cce37674bbc6f1360472bc18ca9a553ede278ef7276897", size = 131087, upload-time = "2026-05-07T16:13:17.151Z" }, + { url = "https://files.pythonhosted.org/packages/92/9d/c4e665119135114480843e7ab388fa94d8480650450e6f8e26b70d323a4c/urllib3-2.8.0-py3-none-any.whl", hash = "sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3", size = 135717, upload-time = "2026-09-15T19:29:34.577Z" }, ] [[package]] name = "uuid-utils" -version = "0.17.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/e7/91/63938e0e7e7876658e5e40178e7c0735b53527886fe11797a11699c55edd/uuid_utils-0.17.0.tar.gz", hash = "sha256:abb5667a36119019b3fa320c4d10c21ebccfcc87c8a739e6a0056cee7f48dde2", size = 43220, upload-time = "2026-07-09T13:49:58.433Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/7c/60/659104207938f2ac62508b9aa595fc0515ac7452dd515c8e1d47d0b91169/uuid_utils-0.17.0-cp310-cp310-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:d2d9a63a9e6f2416ace8c109043a9280d6b34f34bb2e5421903e149403db40a6", size = 564038, upload-time = "2026-07-09T13:47:51.731Z" }, - { url = "https://files.pythonhosted.org/packages/fb/e7/e0d048a268b4163058bdd2f07a45bbe13c29e3cc6b7b88f8f00b001617ce/uuid_utils-0.17.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:b776c7fc8755c7de06dd5a22b47c40ae84f67d13277ebb233cc84933ba4dcbcd", size = 286680, upload-time = "2026-07-09T13:47:53.141Z" }, - { url = "https://files.pythonhosted.org/packages/84/83/e3606dc9b4224d0c9a6675d9347e7e0da7e67fa30e061bfdb686138844d0/uuid_utils-0.17.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1edf2f8732e4ed95bd7b65f2658f4aa072efaaff321144f4e0d4bf6a22709263", size = 323533, upload-time = "2026-07-09T13:47:54.433Z" }, - { url = "https://files.pythonhosted.org/packages/22/f8/aec5c34fa80c9fef09a506a098015e728080076494b72b9e8e5cfc9669c4/uuid_utils-0.17.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:84ed3a2d5cd3ae6db87af20bfed3331116195ba4757ad7177fc8f12c1bbce2a9", size = 330691, upload-time = "2026-07-09T13:47:55.677Z" }, - { url = "https://files.pythonhosted.org/packages/08/73/85776566863514f37b0a761648368e96b07d64981a9b6c391220aa2563a9/uuid_utils-0.17.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4bf4d9cd1e80e73922073b9b27c143bedeb109d65f94cd12712e2c87118f2b7d", size = 444094, upload-time = "2026-07-09T13:47:56.936Z" }, - { url = "https://files.pythonhosted.org/packages/68/06/e0424b4268c0932e0ff8257303d70de4053f05958843268fac4cb0f79b57/uuid_utils-0.17.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:52db0e471d3d2632d35445af352591f40a8f32959a412981d9f51e068bb9514b", size = 324548, upload-time = "2026-07-09T13:47:58.217Z" }, - { url = "https://files.pythonhosted.org/packages/db/d2/a0cb3a69ef6d9becc30a6a0594ddf6f798f6204953dfa85073cbec875b94/uuid_utils-0.17.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:344f7c755e280ea0ba6aeb08022190d867a80000b1715cacded54fc4b5633607", size = 350307, upload-time = "2026-07-09T13:47:59.418Z" }, - { url = "https://files.pythonhosted.org/packages/82/81/d82766af7db541e4a78b920bc1c4303d44995f841805d1498934088cd12c/uuid_utils-0.17.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:589d9da7de8fa7f739bb970ac4632c9a268213117d634e1c4a58c1c1e821ca05", size = 500661, upload-time = "2026-07-09T13:48:00.726Z" }, - { url = "https://files.pythonhosted.org/packages/10/71/b261cd0d38497ed8c2cce0263c5607ec9cd2bbace0f73cb19a6fc2060b6e/uuid_utils-0.17.0-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:cee808b405e9095506f4e4e89924bec7ea77eac3129b6fe36eda04364b3b343b", size = 606577, upload-time = "2026-07-09T13:48:02.539Z" }, - { url = "https://files.pythonhosted.org/packages/3b/63/9e48512bb235e9533adbb25c30fd0c9cef09f6ecefe131ba392b98572b40/uuid_utils-0.17.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:53ce348ef4c6e98c02c19c522af01334fe94476ce9af0db8c4482f9f142ae9c1", size = 567054, upload-time = "2026-07-09T13:48:03.833Z" }, - { url = "https://files.pythonhosted.org/packages/b2/cc/d7bad8799a37ec33fc21b29fcb459d63d9f88aa09056d0c3e58903ba2fb0/uuid_utils-0.17.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:9e753e81457241e2200c56a898e268e8fa25796271af0489c608f24d8e631eed", size = 529682, upload-time = "2026-07-09T13:48:05.097Z" }, - { url = "https://files.pythonhosted.org/packages/4a/3b/59b1e07ada8aadd3c046c97fe9814d85e770abb7e8cf68d5d86538bf62e9/uuid_utils-0.17.0-cp310-cp310-win32.whl", hash = "sha256:c589f5023d471ce75dd2cce61acb25ed6347e562041588a1a366808f22d7176c", size = 170595, upload-time = "2026-07-09T13:48:06.411Z" }, - { url = "https://files.pythonhosted.org/packages/8b/5c/23a2d0253ada2ee8c497d541d4ef0dd5576c3d2454ec2f9d0b8a06af9304/uuid_utils-0.17.0-cp310-cp310-win_amd64.whl", hash = "sha256:981cc10163988defea96e8d6c507df151eab8f483e7df9ae543d5a41a4be073b", size = 177225, upload-time = "2026-07-09T13:48:07.561Z" }, - { url = "https://files.pythonhosted.org/packages/d7/b2/8f03b61f0aa4afc687855c4f00db35f4d3e58c480cd885abc46f6e41308f/uuid_utils-0.17.0-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:f9b093cb3b6c9d6233ef45a05cab064d2aa0a8cb3c5777084c9e20fcb77c2371", size = 563901, upload-time = "2026-07-09T13:48:08.961Z" }, - { url = "https://files.pythonhosted.org/packages/e3/cb/88b909ffb9ac11f88d2e6ceabc592ccc660b5830b06dbcbd290ab8981f1f/uuid_utils-0.17.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:0bc4c431ccd59c764080ceb43b126043325fe17861b87759d026a0cdd8423bb2", size = 286383, upload-time = "2026-07-09T13:48:10.2Z" }, - { url = "https://files.pythonhosted.org/packages/a3/b8/bc5b64e9898867227c535cd0366c571c580a736748e81329437c1773e442/uuid_utils-0.17.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c00d182e31034250690f417b9068b78eab423c10d76766664e82d9860c340479", size = 323244, upload-time = "2026-07-09T13:48:11.477Z" }, - { url = "https://files.pythonhosted.org/packages/13/d9/8a17462ce066fbf89670fb737a3f0c93a77816736d2a4d134787e759d8ea/uuid_utils-0.17.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:570db214f6d8507587a8faa968a3fe65e957daeb7bc48b27dc7f69bc3ecdd6f1", size = 330466, upload-time = "2026-07-09T13:48:13.092Z" }, - { url = "https://files.pythonhosted.org/packages/43/37/0c65d0db3bae45183419756d938f1791a82c835fd92bf234eb4f008d2e02/uuid_utils-0.17.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:351462debd866f1f25e4d4f5c7fac89525b52151f0102a1bdfe94a999b046f5f", size = 443806, upload-time = "2026-07-09T13:48:14.372Z" }, - { url = "https://files.pythonhosted.org/packages/32/d5/7e698466d1f5254620b5ee0d711fdd20a0e9c2acd7040740c37193a8f673/uuid_utils-0.17.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:622cdde768300591ac79bfcd7bb3468e4b191b1105d5dbfe8d87c39d8f63dd46", size = 324261, upload-time = "2026-07-09T13:48:15.642Z" }, - { url = "https://files.pythonhosted.org/packages/5d/48/3a5b242d7f0b8e3ca77dcd7177f3cf73e0280cee32e2349d9796ca27f183/uuid_utils-0.17.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:75d7411e8eb9259764dd60310738540649057cda4509b4af14b36b7f663bfeb0", size = 350657, upload-time = "2026-07-09T13:48:17.273Z" }, - { url = "https://files.pythonhosted.org/packages/95/f4/f32ea82a89efed2eafee2f1d925d64687a81e550a9951933fb1b75c95ca6/uuid_utils-0.17.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1019476b6bdc047216ef7414be5babe0fa5ccfde977c0cac4fd6c75ddec66ff7", size = 500613, upload-time = "2026-07-09T13:48:18.459Z" }, - { url = "https://files.pythonhosted.org/packages/f4/5c/c7b73ec4bbe28db162a4841d352c6eda582801e0dd9fe72f6ad5cc584ee4/uuid_utils-0.17.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:04452640d8b6920c480c16e5afe91ff896d236e0c972830f9247e0898d38c803", size = 606306, upload-time = "2026-07-09T13:48:19.726Z" }, - { url = "https://files.pythonhosted.org/packages/63/95/8a2777204e8691b4961e6aa619001c3e5175aa430ab43da3079142e8d310/uuid_utils-0.17.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:793229621e1ad6cac55f015cfa9f4eff102accbc3da25d607b91c6b0bec167fb", size = 567231, upload-time = "2026-07-09T13:48:21.024Z" }, - { url = "https://files.pythonhosted.org/packages/1a/6f/1d778ca3ed6d2cf35f22088e2de714675416747ab41be510f22c141043a7/uuid_utils-0.17.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:03815cea572c8a693cab5475b9d750cc161470961c7defa27e9286cad62f38f5", size = 529373, upload-time = "2026-07-09T13:48:22.312Z" }, - { url = "https://files.pythonhosted.org/packages/6e/d3/9ad1ab64b3bed0a0237d1db89dc6f5001d6116a82766753da4ac4496f979/uuid_utils-0.17.0-cp311-cp311-win32.whl", hash = "sha256:c4f845166b09acc65c5213a35551a7f81c17fa010ab467229b5813f79d17fe13", size = 169930, upload-time = "2026-07-09T13:48:23.504Z" }, - { url = "https://files.pythonhosted.org/packages/c2/1a/e01417f52eae6e2cb412260bb332b4ee4b37af2982d9c38cff4b68b2e899/uuid_utils-0.17.0-cp311-cp311-win_amd64.whl", hash = "sha256:14dc2f46abb1091260c0d203fcbdf4e045042cc07e49183fd3b255904b95eb70", size = 177242, upload-time = "2026-07-09T13:48:24.723Z" }, - { url = "https://files.pythonhosted.org/packages/35/20/396c27f996add19f8ac31e49cc4570824e51a97719087dabf94694d25bc4/uuid_utils-0.17.0-cp311-cp311-win_arm64.whl", hash = "sha256:29179ffb7b317239b6d6afb100d14c439c728770460718280b9c0a42d2561ec2", size = 177023, upload-time = "2026-07-09T13:48:25.834Z" }, - { url = "https://files.pythonhosted.org/packages/20/80/a7e685968e3cec99d6fe2fb25d0f5726310e1bba356da68c13dfd8b7d140/uuid_utils-0.17.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:9205068badf453d2f0821fd5d340389b4679992d7ff79d4f3e5608996dd1b287", size = 556403, upload-time = "2026-07-09T13:48:27.022Z" }, - { url = "https://files.pythonhosted.org/packages/56/47/3102d93bcb7b0bfe6bede63ff8f221a7f91348e10a37f682773be27c56d9/uuid_utils-0.17.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:0fcca4e838af9ac9243b3358d7c14afa4dca286a87781124c272d6c4cad9c968", size = 285608, upload-time = "2026-07-09T13:48:28.769Z" }, - { url = "https://files.pythonhosted.org/packages/55/fb/d59695f0f8db065b93c63316eaafa05a22d75a0486978a33736c52c646d5/uuid_utils-0.17.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0f3729e839209f3457d0d8b6a35a376fdf65577a5aecaf4cc3587d3305759ba6", size = 319926, upload-time = "2026-07-09T13:48:29.965Z" }, - { url = "https://files.pythonhosted.org/packages/5a/03/62fabcd1e990e07a0e220e8d552af45bc16f107fa8e55c2014a706bb1a1e/uuid_utils-0.17.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3dac0ad0cd9a2818d1775215365a4e8c2f8ada215529dd26f3f8cceeb67a6988", size = 327172, upload-time = "2026-07-09T13:48:31.187Z" }, - { url = "https://files.pythonhosted.org/packages/d9/37/a5081391338b459e2f8d8b12581f00f8caa6317fab510e0e85c18c59e938/uuid_utils-0.17.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e671b2322ef09106ecb1ca0f4c398b134d5e2c1f80d7a4f3336847a3072c0e94", size = 439075, upload-time = "2026-07-09T13:48:32.295Z" }, - { url = "https://files.pythonhosted.org/packages/59/30/91795bd01e17a13661280d4899fbf38fb05e3f38e873f9aaec106ec30aa0/uuid_utils-0.17.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8eb3e5caca8d3a6f72ea4cce024583f989f6f2e9186f98800213fff0176e8bcc", size = 320247, upload-time = "2026-07-09T13:48:33.64Z" }, - { url = "https://files.pythonhosted.org/packages/e5/11/09102b78303e4eb62069d6d88ef9fd661dc523e8f429e1fd67eaa78a6f44/uuid_utils-0.17.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8b72c2002202038666bf647f9a790906214c7c11cd0d6efef77b7d07bef3034a", size = 344738, upload-time = "2026-07-09T13:48:34.786Z" }, - { url = "https://files.pythonhosted.org/packages/74/f9/be95bad6954b60328878c3800258f01a6accd24fd75112d13f023462d53f/uuid_utils-0.17.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4e2ac1c0b56f2c91b6f158e29ed96b1503223fe8aa6e79b1be1dc55bd8a5131c", size = 496845, upload-time = "2026-07-09T13:48:36.057Z" }, - { url = "https://files.pythonhosted.org/packages/2d/02/8a19a34e0530d987488a068a71576a236f5c8c746630b870b57f71eb24ef/uuid_utils-0.17.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:6c142bd0cb4dba31c10babe00d59f7ef6460f0ef55eaa9c1a9da270684af996a", size = 603233, upload-time = "2026-07-09T13:48:37.512Z" }, - { url = "https://files.pythonhosted.org/packages/f4/a8/b1abab36ff73b0248d82179816467f6d39a2e80fd64329a895ca94f3508e/uuid_utils-0.17.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:e252db239eb41c32248e096e0d170bce5896a4fd3405556362bc3dd83d912206", size = 561401, upload-time = "2026-07-09T13:48:38.977Z" }, - { url = "https://files.pythonhosted.org/packages/61/91/70e7b528b351cc03a9ca43e6116371cdde31bb12bcead7ca2ca1367366cc/uuid_utils-0.17.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:237722b6581bb5b4eb4cefbcbe5c6e2980a440aabe781fbe50ebf1cb71eee4cc", size = 525314, upload-time = "2026-07-09T13:48:40.599Z" }, - { url = "https://files.pythonhosted.org/packages/d6/f6/9167e90cf9937d6558f92d022ff3024a69d938a514d9c8faa4080f73b001/uuid_utils-0.17.0-cp312-cp312-win32.whl", hash = "sha256:46a73cacdf512f473a81f65dbf84186e08cfe6e9118fa582b6c6b33a8288a30d", size = 166831, upload-time = "2026-07-09T13:48:41.862Z" }, - { url = "https://files.pythonhosted.org/packages/5c/7d/0b889654d9ee3413f810cf4685e241285f650d98a4103ac9f3c6bcc95f29/uuid_utils-0.17.0-cp312-cp312-win_amd64.whl", hash = "sha256:e59b60a0a4cb7541480e02090d37dc2df3b72df4c2e776fff64ce3a4e3dd4637", size = 172944, upload-time = "2026-07-09T13:48:42.992Z" }, - { url = "https://files.pythonhosted.org/packages/be/35/8c6e1bf65e4d400352885dadc656ad6d0af96e89231e3f04686bc2197128/uuid_utils-0.17.0-cp312-cp312-win_arm64.whl", hash = "sha256:d561a4c5747a1e6c7fa7c49a0292e78b4e8c456332caa084fc7abad8de828652", size = 172459, upload-time = "2026-07-09T13:48:44.271Z" }, - { url = "https://files.pythonhosted.org/packages/d2/dd/614fb9912157ac0128e6050859ccf06d9f13df9a944a803e8f80f6157e38/uuid_utils-0.17.0-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:d11a7bc1e02da8984d32e6de9e0826c6edac00eac17de270f372bf32f9a0af63", size = 557259, upload-time = "2026-07-09T13:48:45.664Z" }, - { url = "https://files.pythonhosted.org/packages/3e/11/d072711704de3d21bec08b6c2f36a215200ca1d5e01a390ea1ac434080a0/uuid_utils-0.17.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:7a49f47ac26df3e431c56b825c1bae8e6d3d591fdbb7438c227cc9845a7e3d73", size = 286271, upload-time = "2026-07-09T13:48:47.018Z" }, - { url = "https://files.pythonhosted.org/packages/18/6d/8a63e5eb2d5a6ba69a6c2036e305075bd6f5a022e7ea25fc6ce0eb7c51d2/uuid_utils-0.17.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:32df1944808877702ceea398c103881c09a679bb672a215e01c2a84231266bf9", size = 320025, upload-time = "2026-07-09T13:48:48.208Z" }, - { url = "https://files.pythonhosted.org/packages/f7/2d/bdc2caf9719d9090d7c46043242ae6136cba4f7a7ee384992ab905ad9aa1/uuid_utils-0.17.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:98c88d3edd08e7245562e9815996dbc6f0bd4745e1c76462f24af5ae4e187dd1", size = 327931, upload-time = "2026-07-09T13:48:49.673Z" }, - { url = "https://files.pythonhosted.org/packages/b6/33/9219d09d51ead282b578b2a4e0a515c2cce3ec52076cada8bfb7e35727d5/uuid_utils-0.17.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5a4370089c8b2e42f1db51d76408c7fa8eaa2934bf854d17983d16179c07c098", size = 438537, upload-time = "2026-07-09T13:48:50.842Z" }, - { url = "https://files.pythonhosted.org/packages/d8/79/e8e0f8b3955f2081c116157119d87659937893242eb834aa170da04d660b/uuid_utils-0.17.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:09a55b7a5ae764985cb46467496a1787678d0a1400356157a080ad95b1a36869", size = 320656, upload-time = "2026-07-09T13:48:52.164Z" }, - { url = "https://files.pythonhosted.org/packages/d5/5e/d1ceddc430ff04b6e21704b2030d4438074a2f478b265dab43da957791c1/uuid_utils-0.17.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:56aa6488b931246fae11924e4bd0e2b32677e63945eecb71c29e3c2ca0dc3131", size = 345310, upload-time = "2026-07-09T13:48:54.076Z" }, - { url = "https://files.pythonhosted.org/packages/d5/62/89438e12f389a843e626b7e37691319a057b3d6b80914609106891faadda/uuid_utils-0.17.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:309a35f12d99dde19032bc2259cda6431c85eeac0879134dc777cc3087d7e1cb", size = 496771, upload-time = "2026-07-09T13:48:55.365Z" }, - { url = "https://files.pythonhosted.org/packages/87/d2/eedcd99f522d60e238ead03844f0d51743ba84d33044959e230b756bf212/uuid_utils-0.17.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:21c79b61ff750abcf057163dd764ccb6196cde7a26cda1b31b45cd97769e03b3", size = 603631, upload-time = "2026-07-09T13:48:56.746Z" }, - { url = "https://files.pythonhosted.org/packages/0e/a8/bb1b38aaddd7243b6e562c6694f499bf094800918316192fd8cb2cdc2620/uuid_utils-0.17.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:4134353bfe3026ddab8e886002dc52bc5a0ab04611aabb0eaae23c32e6e57f64", size = 562008, upload-time = "2026-07-09T13:48:58.241Z" }, - { url = "https://files.pythonhosted.org/packages/b4/77/5f7ed930dc105e293845c09e4d5bd84076318a12f45a46783e1af64906d7/uuid_utils-0.17.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7c89359affecebe2e39e6a116d069b363c936511a9572b308402489a26957d89", size = 525527, upload-time = "2026-07-09T13:48:59.784Z" }, - { url = "https://files.pythonhosted.org/packages/fd/25/1b55697adf6811a6f92cff6340e6b03e31fd6bc51066a5c10698c29b3679/uuid_utils-0.17.0-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:6a019a31bc4db89a0903a3e4f6b218571f3a6ff0ad4b3d3fe1c8f91a05ff6e3e", size = 97965, upload-time = "2026-07-09T13:49:01.217Z" }, - { url = "https://files.pythonhosted.org/packages/26/bf/cd729343de4684230be8a966bad7bfc2cf10ce3e643b1189a8b5370dbe35/uuid_utils-0.17.0-cp313-cp313-win32.whl", hash = "sha256:b3131a82d0c7611f0aa480a6d36929e001a3f54ba0fc029a8118a5863cce513c", size = 167316, upload-time = "2026-07-09T13:49:02.354Z" }, - { url = "https://files.pythonhosted.org/packages/76/f0/e602ae0a1b139a7826e5189b93d91902564def06d5006324fd2faf82c8fc/uuid_utils-0.17.0-cp313-cp313-win_amd64.whl", hash = "sha256:9e311f908d2f842fca4c7dcebc4f10306b8089b204ef04cf6704b4332c9ff6ff", size = 173630, upload-time = "2026-07-09T13:49:03.529Z" }, - { url = "https://files.pythonhosted.org/packages/1a/52/024ebece265b387154115dc4f1d9727174ef82623069f4bec8b7ed7e73f7/uuid_utils-0.17.0-cp313-cp313-win_arm64.whl", hash = "sha256:c351737e2e65497c7200ab4ffb8af97e9f48be6488309abdd265fe08d66ee92f", size = 173214, upload-time = "2026-07-09T13:49:04.836Z" }, - { url = "https://files.pythonhosted.org/packages/56/44/e2fd3fdf356e1b55d2acf1b956b4f3f29ffb215a99c387eba04b1c5fba66/uuid_utils-0.17.0-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:673d89cc434cc9b97a0b4cf61272f6fca70a81f64eb0afbface2a0d9f77f06cd", size = 562232, upload-time = "2026-07-09T13:49:06.201Z" }, - { url = "https://files.pythonhosted.org/packages/19/28/65e0980d668a6d44e699f59d1acf43d6b5d4893592c115ce7c680bb4dfa1/uuid_utils-0.17.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:387cf7437c94ddec08651a0f1081381299c7075bc48a6251d8922bf39973378a", size = 287858, upload-time = "2026-07-09T13:49:07.45Z" }, - { url = "https://files.pythonhosted.org/packages/8f/8d/5e97bcebc90fb6a10f98af3dc1ba552e04183aba59e2edc0b9cf486dd998/uuid_utils-0.17.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:220b52746d99e11964badac3c0869016e0c24bafb70a7dd5c2c072a6be3da9cc", size = 321587, upload-time = "2026-07-09T13:49:09.489Z" }, - { url = "https://files.pythonhosted.org/packages/8b/d7/88b2a2370cc3d455ba0515fb6f5c8f7ac0c0f55a86801b6e56a432f22c17/uuid_utils-0.17.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0ab4a66e7a035ad6625cfc1fbdb34f5c2d25a80ae1ef4bfee458ea2036333c6d", size = 328964, upload-time = "2026-07-09T13:49:11.292Z" }, - { url = "https://files.pythonhosted.org/packages/bd/0f/181c5da673953dfc0958cb4fb3a4984a9098673ddb05cac68e994bc8511b/uuid_utils-0.17.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5641071337eb11d61a001ea08793bf72216f3241f0a433ed2764804b2a3e3cc7", size = 442909, upload-time = "2026-07-09T13:49:12.644Z" }, - { url = "https://files.pythonhosted.org/packages/ec/38/5c5e665af542884a8fd3c61725c38453239e13940326b5b70f3ef8881a97/uuid_utils-0.17.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9082e709014946b1f6e96ae6ecd93652efca2d2a6a3ab67dbe151c8b4bf193a4", size = 323076, upload-time = "2026-07-09T13:49:13.897Z" }, - { url = "https://files.pythonhosted.org/packages/f5/35/7de97de18cbf226c2a4f2104ad15e56ca4491717c81c0b71795c0c585b4e/uuid_utils-0.17.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1fd6f0e8a162dc0e9255b6aebe3cd175e76c33202f1bf39da9e6294b93db0099", size = 347360, upload-time = "2026-07-09T13:49:15.237Z" }, - { url = "https://files.pythonhosted.org/packages/26/a1/9915d5dd59fdd1957ded5d188c0ea0b9db5a1d84d42c8d8828a7b83b366e/uuid_utils-0.17.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d63010803d7c368963bbe6f7ec379593e76dd581d7db0f29118d88713c9e0354", size = 499267, upload-time = "2026-07-09T13:49:16.774Z" }, - { url = "https://files.pythonhosted.org/packages/c0/05/88108405262ec850cea0f95733445d6873e5772af3292baabd9ef8457740/uuid_utils-0.17.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a46bedc273b6f58f11dee816ff74999625ef8d007890f411b7a4975bf1c89330", size = 604940, upload-time = "2026-07-09T13:49:18.147Z" }, - { url = "https://files.pythonhosted.org/packages/89/d5/6dbcd300de47cc443cff2656cd5327a385751213dcb2101cfee7388170b2/uuid_utils-0.17.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:405233a5f625b3d995648f4647fa6befa4567cf3f74e1f6b9837e16f7310f0e0", size = 564172, upload-time = "2026-07-09T13:49:19.593Z" }, - { url = "https://files.pythonhosted.org/packages/ab/94/e8057f2288a415fba8a978bca4b589f5cb6b91a028a5dc07a1775938b33f/uuid_utils-0.17.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b6c5d2d71e1f17329150ad9427d27f4a3f29a01792e7ecdc64a98ac5368fc4d5", size = 528533, upload-time = "2026-07-09T13:49:21.075Z" }, - { url = "https://files.pythonhosted.org/packages/f0/6b/31713148c77e48e62f51aa042a98a54a8be0396912ea5130f83f52ae722d/uuid_utils-0.17.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:f7e9b8728ba07a3cb2f29d5aa1a266c2664eb8ef0fd43afa34627c92f7fac8f0", size = 99197, upload-time = "2026-07-09T13:49:22.351Z" }, - { url = "https://files.pythonhosted.org/packages/f3/f3/ca6f6ac5428312df8ed632f6dd9f9e6aba23090471fcdeae53eab027e8b3/uuid_utils-0.17.0-cp314-cp314-win32.whl", hash = "sha256:58838921e377791ef22c64cc92141bfae030f43651ff9272f0f28a208a9e6a5a", size = 169540, upload-time = "2026-07-09T13:49:23.563Z" }, - { url = "https://files.pythonhosted.org/packages/c6/cd/7ede0db66411fa09817d79b680f7454ea9bee2d374e1922e4efd065760a3/uuid_utils-0.17.0-cp314-cp314-win_amd64.whl", hash = "sha256:42275ebd0e8e74e32cdbfb8bd88fc99576567d51d54a508020611fd8f4f463a0", size = 175984, upload-time = "2026-07-09T13:49:24.703Z" }, - { url = "https://files.pythonhosted.org/packages/f0/81/533b5f80cd4918c0693f4e1b7b90ceb1caa45f4266ae8b528135d7ecca5d/uuid_utils-0.17.0-cp314-cp314-win_arm64.whl", hash = "sha256:b5d11cccba076a32321ef1380dea956821f0b51794ef59df64e58fb1cd543aae", size = 174749, upload-time = "2026-07-09T13:49:25.886Z" }, - { url = "https://files.pythonhosted.org/packages/a0/13/f400ac39d06fd8be5b099c09e41bb975205926722a3e8d53348817cb7ff9/uuid_utils-0.17.0-cp314-cp314t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:fae8b282f0cb22a5de222999f7723f4e5ec04f6fcdf4aaef879b5b36625ae2b0", size = 562610, upload-time = "2026-07-09T13:49:27.374Z" }, - { url = "https://files.pythonhosted.org/packages/03/8c/c71c8312304c56f6d0bcba87cd402fa79bec35d18ffc8c41954196ca68e5/uuid_utils-0.17.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:967955620df45e6cffe2e9950cb9903cb455649396f896b26b04363a91a5054b", size = 289473, upload-time = "2026-07-09T13:49:28.989Z" }, - { url = "https://files.pythonhosted.org/packages/bb/cd/522117e2e5184ca1d4f0f85ee833e9e21bd8c6b99eff8a4d1a8e5a194e33/uuid_utils-0.17.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:375cde148430d60a4a07c03abaa0774c4fddfdd90de99b4ba02f24088bc9d750", size = 321600, upload-time = "2026-07-09T13:49:30.4Z" }, - { url = "https://files.pythonhosted.org/packages/6d/f4/0d81f9bd346fc717bc561c08fa6457e0328966eb76e536b938fe77d56459/uuid_utils-0.17.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:975c17da26c5b9d46c336b03c52a057ac28378d6f9d98b58d32a038589bb3912", size = 329569, upload-time = "2026-07-09T13:49:31.732Z" }, - { url = "https://files.pythonhosted.org/packages/5e/41/26e1363f36a94c9e8ec2dd21d5f63088d3e7c723adbb12dcc8fdc77be417/uuid_utils-0.17.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3150d836290c88f1d26eb59c4db280d87417dd3bfaadd2889c77416c8f0ff6fa", size = 442051, upload-time = "2026-07-09T13:49:33.024Z" }, - { url = "https://files.pythonhosted.org/packages/2b/a7/2c1ed1b34d7df7fdcc11c28fd26d94d44843b37d9af2435ff9fd8abdbc08/uuid_utils-0.17.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9472a8de37faf8bd216c628e0e68c8f6bef730d3ba0a5060f3b0fa460c992ac2", size = 324372, upload-time = "2026-07-09T13:49:34.554Z" }, - { url = "https://files.pythonhosted.org/packages/78/bf/328d3c6bb22c496944a1b3b732207d71aa6964eb604e5e3b9dcb91ed0a00/uuid_utils-0.17.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d27c531edb8d1f38ca2eddaa1fa24913a460aeb721f2efd4ef42a124ce94e354", size = 348548, upload-time = "2026-07-09T13:49:35.898Z" }, - { url = "https://files.pythonhosted.org/packages/3e/76/a07de5cb7b90582fdbbc830fd19be129cbbb9897cfe239fef469d7bd2d09/uuid_utils-0.17.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5670c52a438e21483ce715776144914a4e2a2a5c62d9dee15f8a3e90cf128ae6", size = 498985, upload-time = "2026-07-09T13:49:37.142Z" }, - { url = "https://files.pythonhosted.org/packages/f4/62/9966e46ae34fcec6b06119631fb3c09705ea78835035ce3a82d3348eb61a/uuid_utils-0.17.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:6f29689a76fe7a49cbd629a794d0ec1eab48814e323a00a146a741b0195bde68", size = 605183, upload-time = "2026-07-09T13:49:38.648Z" }, - { url = "https://files.pythonhosted.org/packages/d7/4e/bb962ba0fe31e903b199f22cf4c1a6cba35a8987aef526d287277ab8ca8b/uuid_utils-0.17.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:4441600447d340ae103a353f01dbcd22ff680e5ee1a22988efe8d7b791d8fdb3", size = 565412, upload-time = "2026-07-09T13:49:40.115Z" }, - { url = "https://files.pythonhosted.org/packages/ce/9e/122adfeeeae8a84ccfd43bce627b104d12a2180a93bffd2c0e1b54dad7a6/uuid_utils-0.17.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e7b04935a79c03c41ad08d0a5f390aac968bfb561f1268897bc5b0f077971efd", size = 529885, upload-time = "2026-07-09T13:49:41.513Z" }, - { url = "https://files.pythonhosted.org/packages/b3/4f/257304dded339dc35fc9bf35722ac68fd4fdb930f255b8f7bccdf74ebba9/uuid_utils-0.17.0-cp314-cp314t-win32.whl", hash = "sha256:239d8a281fe10bae33205b5d43185834d556b18434e0a113b5dc1dfb2fd97e91", size = 169472, upload-time = "2026-07-09T13:49:42.871Z" }, - { url = "https://files.pythonhosted.org/packages/35/c8/e78c06db7e9ce317ce7b8759ff2058333eac75caa8c22b75f0059589c9be/uuid_utils-0.17.0-cp314-cp314t-win_amd64.whl", hash = "sha256:e288a06cbbbcd01b44386e767985c9e21d2ad9bf59829aa7058d9a2a494804ab", size = 176271, upload-time = "2026-07-09T13:49:44.105Z" }, - { url = "https://files.pythonhosted.org/packages/a7/11/bd1c70e1ad3301163cebe66c8d26de26e6814d52f642a849448bd2833626/uuid_utils-0.17.0-cp314-cp314t-win_arm64.whl", hash = "sha256:1776a80d16369999b21627028cc5dbce819be83e1e079fdd7a51b587d2916db9", size = 175004, upload-time = "2026-07-09T13:49:45.591Z" }, - { url = "https://files.pythonhosted.org/packages/ee/14/4ae708968b15cac7b68d5b854bfce724b21faa1c7a5147fb96d87f468a45/uuid_utils-0.17.0-pp311-pypy311_pp73-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:7b9044ce4acbf392d4b3a503fe377641f4deff82e6c341c36ef27af0dea76cdf", size = 567823, upload-time = "2026-07-09T13:49:46.902Z" }, - { url = "https://files.pythonhosted.org/packages/4c/e2/d3af9c3d1dc6efb9ee1cffab30f3f2aacacc3892b21b495d78d34c6696bc/uuid_utils-0.17.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:9a91c4814c7150a4d798da691b7804eacd78c4b84fb392a60fa0de21341861eb", size = 288763, upload-time = "2026-07-09T13:49:48.491Z" }, - { url = "https://files.pythonhosted.org/packages/bc/c2/f1b183e412387529893015a94a8447633c665f6d0392de20e245680e636a/uuid_utils-0.17.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2dd4a21baaac9a88486f0dd166c5793feb101a0bb9f006f2c401657fff5a1343", size = 324919, upload-time = "2026-07-09T13:49:49.972Z" }, - { url = "https://files.pythonhosted.org/packages/dd/3c/d32c799bdd51f3b08b6ee95f9de921b59c69075a96767f937fab55014813/uuid_utils-0.17.0-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:32abaafc8e91928b3d9f4d82e42d2094041e38ad6bb964066faadff28e4162f1", size = 332689, upload-time = "2026-07-09T13:49:51.402Z" }, - { url = "https://files.pythonhosted.org/packages/6f/90/b4cd455619ff276dc3c3262a7420ead63aa1e531362f00df4cdb07d90e0a/uuid_utils-0.17.0-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dd741c73440b328f937dc53b344ecadc46bc4f0cec0333a8f42b55f3468ce7ec", size = 445726, upload-time = "2026-07-09T13:49:52.757Z" }, - { url = "https://files.pythonhosted.org/packages/e2/f1/5cc042a37932aa9a66eb8ab4a9a5b31d80261ae4565ff0193d8cc1fb9392/uuid_utils-0.17.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:89a0980d49683c00539c59cd9f46b1908c538e6b5b0a48ad12187bb856d0f391", size = 325610, upload-time = "2026-07-09T13:49:54.191Z" }, - { url = "https://files.pythonhosted.org/packages/5e/72/9e800c41d766484484e97845a7a7f677ba94462df86c97183e0290229d16/uuid_utils-0.17.0-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:de1064663aa7c839286488a319d2b3b478ca5ab5b2091ade888ed0eeca11a98a", size = 352672, upload-time = "2026-07-09T13:49:55.748Z" }, - { url = "https://files.pythonhosted.org/packages/9d/8e/86ce2c03a1d9674530f6649e49067f7c69929600127077731de590d12132/uuid_utils-0.17.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:2db386941cfdecdd0b5a8ceeed5cf7479c83d1730dcf64a48d43cfa018cc3310", size = 178681, upload-time = "2026-07-09T13:49:57.096Z" }, +version = "0.17.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/4c/80/cf6934a2030a5f6763f604314c1105f851d90aa1fe344c2692c3b88a9d95/uuid_utils-0.17.1.tar.gz", hash = "sha256:10c51d54ecdf0617640e505eae6d2e6443d8e414d4f9d6e8d43949a450c56e6b", size = 43323, upload-time = "2026-09-08T11:29:35.42Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f8/74/61cc613cf7c94131b2d1d596c4f2c0ec22c804b2852cc740288a1519743f/uuid_utils-0.17.1-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:e698d0ffccf167ece87c864667ab69724685af9e171fc51e57038c9711fd4e0a", size = 562905, upload-time = "2026-09-08T11:27:50.715Z" }, + { url = "https://files.pythonhosted.org/packages/eb/4a/88413c15de714a76e342321d65ff82937a2bdcc35e2987c9462433025101/uuid_utils-0.17.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:d9aa5fccd372580d455ab769a60326c789c46027d3d58ff2a895dbc492200b0d", size = 286703, upload-time = "2026-09-08T11:27:52.108Z" }, + { url = "https://files.pythonhosted.org/packages/23/4f/9cfd9f64ceab2b6aeff77cd238b0033baa6364832cc9715d13a8cd49e5ff/uuid_utils-0.17.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f0cb9661bc0883e9278bc2436514298ace83121d14296cc672b2c44d37441cd0", size = 325258, upload-time = "2026-09-08T11:27:53.315Z" }, + { url = "https://files.pythonhosted.org/packages/42/eb/7057247670b903194c2739f98a0f4455f0d4e8cfa13466dde2d1fdba7216/uuid_utils-0.17.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f63557d6e9fe10cb25c1d3e73dbf7cd18c1b1620349b6be6b51ea25fcadf3a1e", size = 333013, upload-time = "2026-09-08T11:27:54.535Z" }, + { url = "https://files.pythonhosted.org/packages/6b/6d/8e26ef16da28274d3ddfe0812a7155dc8d48d0891abd84f2b1a3f905a54a/uuid_utils-0.17.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b94f1185f64d1fd2fa99ffc0b8264ee5980a862010daf1edf430412044f2aa53", size = 450348, upload-time = "2026-09-08T11:27:55.777Z" }, + { url = "https://files.pythonhosted.org/packages/e6/8d/70d8f78830ca23f40d15f95795a863e7c052f5c1dff2e4a23f51c53dfbdc/uuid_utils-0.17.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3404d50a60ec74642fd590b9d639d98770022f4b1ff8a4055b3c70742c85f096", size = 327961, upload-time = "2026-09-08T11:27:57.098Z" }, + { url = "https://files.pythonhosted.org/packages/af/f2/62ab19bc908ef6cdb2a07966a408cf8bc2cf981cd7c3c99dc34f443b5ced/uuid_utils-0.17.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:601d03cce6b8ec3734025c7dca9ab276df1ab649ca7b13d76ea03824724f5108", size = 352645, upload-time = "2026-09-08T11:27:58.262Z" }, + { url = "https://files.pythonhosted.org/packages/7f/86/f8e62e055f14b45b6faa784008a038407f9274d36acc41d39b4b8b0f00a1/uuid_utils-0.17.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1a9e8c876a5d6247572e7f8eace39b4de9a91cd1b026e24552ec631c08c91394", size = 503128, upload-time = "2026-09-08T11:27:59.678Z" }, + { url = "https://files.pythonhosted.org/packages/04/57/4bc764249cc0d40568fb3a82a72b41cedf958a169710415148e365f45e1f/uuid_utils-0.17.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:304497d360e9ca5b019254bb25a2ee886b66de884aa08a949c8812fe5bf5327f", size = 608575, upload-time = "2026-09-08T11:28:01.01Z" }, + { url = "https://files.pythonhosted.org/packages/f7/90/947976eeaf48aa6109100af1796931b8c684caf680d0fb4d2498e951c059/uuid_utils-0.17.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:7f3deaca1ba34f48da053884c1255c360fb123c4a9bc3815c05a7a8093e0bda5", size = 569118, upload-time = "2026-09-08T11:28:02.321Z" }, + { url = "https://files.pythonhosted.org/packages/a1/fc/18154e589f0c84f85b99aee9406fdf904468190a4f4fe462d86bd85ab960/uuid_utils-0.17.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:e22cf24db33a123c8e47a86fe766c770c83dedc6d1196c1172cbba0a0959cac0", size = 533401, upload-time = "2026-09-08T11:28:03.631Z" }, + { url = "https://files.pythonhosted.org/packages/7f/73/ef0bb542317ac03fc4e0e7e2804e316d84fee115c6a3ed41a6efa954b59b/uuid_utils-0.17.1-cp311-cp311-win32.whl", hash = "sha256:738b8fc2062c3dc17f1624af4aa8763bec4172cf295b13ffa3dfad3ddbdb4e0e", size = 172366, upload-time = "2026-09-08T11:28:04.977Z" }, + { url = "https://files.pythonhosted.org/packages/f4/1f/c76187e05e0fdbb3f9fef7436f86326d0f0aa25b42192cddc011997b31a7/uuid_utils-0.17.1-cp311-cp311-win_amd64.whl", hash = "sha256:297c6be22e0dd0f7d372845b171ffee5657581759982413c0a5b01b900c5f592", size = 178735, upload-time = "2026-09-08T11:28:06.215Z" }, + { url = "https://files.pythonhosted.org/packages/92/05/3d846d5423571574a1e6f4bbe16f57f755671d0f334931f893e8a734bbaa/uuid_utils-0.17.1-cp311-cp311-win_arm64.whl", hash = "sha256:1c8124c9b91fa8353d79e4e7bd44ed0f2ae683990c01818199668f7579e236ab", size = 176492, upload-time = "2026-09-08T11:28:07.368Z" }, + { url = "https://files.pythonhosted.org/packages/97/82/a509ef8b3c24b48099a4fba00f9e1b3f38417e0a7bda39cefd4b1e841388/uuid_utils-0.17.1-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:7558c84414785d6ea54a186a3c68267eb8f33e2a0d792698bd9fa50d62150f77", size = 557142, upload-time = "2026-09-08T11:28:08.586Z" }, + { url = "https://files.pythonhosted.org/packages/27/60/d48897c1bb6562c4b68a90c998f89d4eb8996d01193c930b3f6f04258619/uuid_utils-0.17.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:4f04ba62482858a975d1d38cbb5ade181faae59e8ddc1499eacc9b6b6def3115", size = 287053, upload-time = "2026-09-08T11:28:10.12Z" }, + { url = "https://files.pythonhosted.org/packages/c0/9d/6506e6c4ca08300ad7415c3b76e29bd36b491dec818ea58d9e8bf88031d3/uuid_utils-0.17.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:66ce3e84067261b2721dde6539427f4eb9286289769332ff07c859a661f87694", size = 320760, upload-time = "2026-09-08T11:28:11.3Z" }, + { url = "https://files.pythonhosted.org/packages/2c/dd/013786821eca0808282b82bb1e66a18a6b70061e1ce2f77fc9be06b88a36/uuid_utils-0.17.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4cdcb565ac4d8a005833e7c389867977e19670f1bee6ee9f8811872b86225274", size = 329130, upload-time = "2026-09-08T11:28:12.522Z" }, + { url = "https://files.pythonhosted.org/packages/60/45/ba376e0a69eb4a0bb2dfba1ad2bafc2e6729971d480701cc778719a4205d/uuid_utils-0.17.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7a93b046552730b843e9d8784691cf8b0b3d5430dd9d053ade33383ccb2574ff", size = 444047, upload-time = "2026-09-08T11:28:13.938Z" }, + { url = "https://files.pythonhosted.org/packages/02/1e/2abb7d9e3062a7889142818e2a2ae758a54a1c3b6cf8a86877e051b3d1dc/uuid_utils-0.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d45f93f362d39f63ba14bbd9e4e1dd89fbed4de9bbef6bb428a379bd86571da2", size = 323927, upload-time = "2026-09-08T11:28:15.235Z" }, + { url = "https://files.pythonhosted.org/packages/20/00/c6753d6f2dbcd9d78436e291534b5d81f42c1b50c4d3224ddf231095fde2/uuid_utils-0.17.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d0d847fb9b46b5c208f3b8d5ca6082a4ac819ec2ffe36de3548c489e8fa551bd", size = 345877, upload-time = "2026-09-08T11:28:16.62Z" }, + { url = "https://files.pythonhosted.org/packages/c2/78/6f65d3105a0588b38cdcf338397bcb63c2d88d3581698a316def47e4445e/uuid_utils-0.17.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:71f7ec7a1b54c1f84d6f8fd4e1110a66b3d1b936dbb17cda2927442621fc1e3d", size = 499635, upload-time = "2026-09-08T11:28:17.912Z" }, + { url = "https://files.pythonhosted.org/packages/e9/5b/ff56d55fde9991c332e6df2ac1c560be6dd7e2302ab51180a185cfad830d/uuid_utils-0.17.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:a140db8866a45b1ce40d91164ff48d2722ffc3b2a39bfdb412bd770c7ea88be3", size = 605502, upload-time = "2026-09-08T11:28:19.198Z" }, + { url = "https://files.pythonhosted.org/packages/09/16/d34f26cd4dad48671c7441fcf370076911dd9e7edcb3e5264e11da7fce7d/uuid_utils-0.17.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:7b296b67bf880085daa11ee496d385b941a3bf3e3d5691db7178d21f18f56f9b", size = 563186, upload-time = "2026-09-08T11:28:20.684Z" }, + { url = "https://files.pythonhosted.org/packages/ff/ef/b9bd9b412865c08e6769044cdda6e0a3db4827c88a4a2612e42e68714ca2/uuid_utils-0.17.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:61378863a5e9410fa6e816364442b9d35cccf94fa83e3f67997d0ff57d901d0e", size = 528667, upload-time = "2026-09-08T11:28:21.984Z" }, + { url = "https://files.pythonhosted.org/packages/e9/b6/981a84e9d0653e2d5fc205ba2b895d80c8e3bdb7138995f4c04b7cce8bd8/uuid_utils-0.17.1-cp312-cp312-win32.whl", hash = "sha256:a550b3963960012ff3266bdb3079abf4cc3f6363201e63a649d5d3cd44fe52cd", size = 169155, upload-time = "2026-09-08T11:28:23.427Z" }, + { url = "https://files.pythonhosted.org/packages/fb/49/85a39cef2de6948364d25f5e1452119e6a70ddb5a910eeac717f02c5eabf/uuid_utils-0.17.1-cp312-cp312-win_amd64.whl", hash = "sha256:3d6ccaebaa3b2ff2e59d11d70c64e97ba572120162a00c25d6f8e5e0c1004b9a", size = 175220, upload-time = "2026-09-08T11:28:24.582Z" }, + { url = "https://files.pythonhosted.org/packages/e0/f6/8c1c11bbf7cfa901c7c9621bcdcbb4bf432c5f20dce27e76a3ea29f0307a/uuid_utils-0.17.1-cp312-cp312-win_arm64.whl", hash = "sha256:3ca89347a01ddac94727578369feacc0969d9fc033b2c17ff7919121ee441e2f", size = 172646, upload-time = "2026-09-08T11:28:25.723Z" }, + { url = "https://files.pythonhosted.org/packages/03/0d/4c2263a05e95dc11a5c9fad78ab9ac5f76a1f5aaabb545a39c6d34d2a07b/uuid_utils-0.17.1-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:cd8043ac6d81b3f3f0dff22247866292c819e0d5e54a5a3ad2223f86f88dbd97", size = 556923, upload-time = "2026-09-08T11:28:26.974Z" }, + { url = "https://files.pythonhosted.org/packages/9e/70/9f619e86af674b8055adb29e6ad95f1d2bdec02b9d7b654d01fb479ea9ac/uuid_utils-0.17.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:586a93993769873c389d38bd9a70c51e228e734e8f78742d959610509635b86b", size = 286572, upload-time = "2026-09-08T11:28:28.265Z" }, + { url = "https://files.pythonhosted.org/packages/1e/d2/bf4c39c283a75a8893d060344b690d5ff13ddd7e65849a74a264bec9a4ee/uuid_utils-0.17.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55e2cec52e2c78d94277d4c990badd3ce97f5746d05029e63d81fb2433bc9684", size = 321366, upload-time = "2026-09-08T11:28:29.464Z" }, + { url = "https://files.pythonhosted.org/packages/d3/a3/4790fd4d6322aeb935e2222d193407902b2651dbb5eae7817f2f8eb2043e/uuid_utils-0.17.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0721f05b4f10cc7d49d91be65524a3bc6e6a5d88be054cdca05dff487a022091", size = 329210, upload-time = "2026-09-08T11:28:30.738Z" }, + { url = "https://files.pythonhosted.org/packages/66/f9/442d13050fb55c2e4cc81369df349d60f2da8dde84ffb7e330385c576bc3/uuid_utils-0.17.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:de996e58b77d3e6eeee1a209ce93f424a5f021aa8b2879df6d35eda601acc831", size = 441731, upload-time = "2026-09-08T11:28:31.966Z" }, + { url = "https://files.pythonhosted.org/packages/63/96/deded55ce54c5e6a2b7dbb790ab9bf7b5be8c7e8cb22e2355108bd8723cd/uuid_utils-0.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:01d9209d6fed20226af0d29b95c5e253a1907b61f1a00153187ac5412f1df9b6", size = 323874, upload-time = "2026-09-08T11:28:33.249Z" }, + { url = "https://files.pythonhosted.org/packages/0f/f8/4b9d64b57bf35e3e99a8e578ed1cbdcdf926816f36bf5e5b53d7ea4c65bb/uuid_utils-0.17.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a4f6b05598d0d29e8851b7668786b7cf105c98887c7ca36dac94c61321d16cb1", size = 346026, upload-time = "2026-09-08T11:28:34.516Z" }, + { url = "https://files.pythonhosted.org/packages/e8/da/8912e887f5eeeb8f44f50f1aac4c16852644b558b1b29846b14463f9b739/uuid_utils-0.17.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f9f9f6835ab3163818156022c627eda60c38c874b369642b249b483384021743", size = 500023, upload-time = "2026-09-08T11:28:35.906Z" }, + { url = "https://files.pythonhosted.org/packages/73/0b/c15c3f5006c3f89818cbe796e73f9a1927867ec6b0c32e80cf30becefa67/uuid_utils-0.17.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:33fa18507488c4dbde9a3969b6483183d934dbf7a7d46aba90bd5d664d4c81ea", size = 605833, upload-time = "2026-09-08T11:28:37.11Z" }, + { url = "https://files.pythonhosted.org/packages/e3/db/1c64eedcc55f1ac01067c208bfe7fa17957521a73ab1701c04a866c33795/uuid_utils-0.17.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:fa1a1c9a72ef9757176c069f7bd8014b7f4abf5f9930ec62b883dc864ba28092", size = 563310, upload-time = "2026-09-08T11:28:38.705Z" }, + { url = "https://files.pythonhosted.org/packages/e3/ee/314fc4f908258714e92b0fc50bbf02cb49454db4857e9da42d40b8f3539b/uuid_utils-0.17.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:cd347022f67f7fbbd6939181ab076cd17a1d856e09a160eb87e245e692cc5742", size = 528539, upload-time = "2026-09-08T11:28:40.271Z" }, + { url = "https://files.pythonhosted.org/packages/2a/83/0e9e0bdd77bbf1fe5380267c14f197f8ac442ad5172000422f46f05953fa/uuid_utils-0.17.1-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:7e32ff7bd0fe4fdefce1d95f8f673a9b012286a7f40918ed1c08936d565aac4a", size = 98270, upload-time = "2026-09-08T11:28:41.575Z" }, + { url = "https://files.pythonhosted.org/packages/14/af/d2546a514432bb970da5a6550c4587ec8096ea90a2d2ea29aa55a1c35521/uuid_utils-0.17.1-cp313-cp313-win32.whl", hash = "sha256:a0a276738fafcfd63e6a0af944ffb8fb86448fe4cedcf574dd7df1ca13259e22", size = 168846, upload-time = "2026-09-08T11:28:42.669Z" }, + { url = "https://files.pythonhosted.org/packages/e4/84/46d45f14ebdf1ff4d9e6096dea5f31a706d7f71e99e48cde933b47a2e4db/uuid_utils-0.17.1-cp313-cp313-win_amd64.whl", hash = "sha256:1cf7a837c3467f69ba3ef32caa43b1c5f5a462b7d960bcc59083459aed2b4202", size = 175479, upload-time = "2026-09-08T11:28:43.876Z" }, + { url = "https://files.pythonhosted.org/packages/58/42/558d83542ce270fdefe19a18e707e4fce58e64ed9d98658a2da78b9ac2b5/uuid_utils-0.17.1-cp313-cp313-win_arm64.whl", hash = "sha256:7a9537e7afe2cd8851e636789124bcc26ff1d671906c5e56f6e8f293fa477ec2", size = 173287, upload-time = "2026-09-08T11:28:45.133Z" }, + { url = "https://files.pythonhosted.org/packages/3a/ea/c735de118ef5c4a6ada1846699e65b3adcac92044e79b83345f90c792fe5/uuid_utils-0.17.1-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:f974aa1097b0b8245d8f29550eaac3b431c891ba7c76cc4beaa6ec7bf8cd27b6", size = 561135, upload-time = "2026-09-08T11:28:46.387Z" }, + { url = "https://files.pythonhosted.org/packages/38/eb/c16f89b3c48eecef422448b9bde07994762cf21daa3351f4c49eab705d54/uuid_utils-0.17.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:9700430eb701f18bd995787228c2202a15d9db335e8bf9c583df7eca5487d5ce", size = 289170, upload-time = "2026-09-08T11:28:47.735Z" }, + { url = "https://files.pythonhosted.org/packages/9e/05/5aec1389045f9e16afc1b8cce6414faeed40d44b3095f74d641c33ea1434/uuid_utils-0.17.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d030ce5d3cca0f2f55509035bcd33d39494c50dabb9d53dc0419ad212eb0fd7f", size = 323150, upload-time = "2026-09-08T11:28:49.064Z" }, + { url = "https://files.pythonhosted.org/packages/d8/56/8ad1da1ac6781f792e6e92cdb65bd242c5f5269e7c77de67edd704db61de/uuid_utils-0.17.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d365e0c916bd9a4b0b7f67f3305c6704c4ff44ff9da836faf455b8b5dce0399f", size = 331190, upload-time = "2026-09-08T11:28:50.478Z" }, + { url = "https://files.pythonhosted.org/packages/cb/d7/49300453d84440d6b8f45c95d9fd249f7106f8283296c948842f6fa00fd3/uuid_utils-0.17.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e9f5e23998625f6dc005a3a30238b4006424e366cb2966ec465e0287ae2534f0", size = 447676, upload-time = "2026-09-08T11:28:51.646Z" }, + { url = "https://files.pythonhosted.org/packages/9f/8f/db9fe5180418846bbc3273831468cead13e1de4956c73071fd1a4bde6ac0/uuid_utils-0.17.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:71eabda671e055415ecfa8859364438a575eda84e6f43a513436977d9377b532", size = 325838, upload-time = "2026-09-08T11:28:53.008Z" }, + { url = "https://files.pythonhosted.org/packages/f9/00/efcac8905b87ffd76323d8e46594a68a0bde2c24c8e71f44ab7d5622dde6/uuid_utils-0.17.1-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ed6821646e37f49683b3e977f856421c08eb9d03418423ac1477e09d2fb5cf62", size = 349881, upload-time = "2026-09-08T11:28:54.479Z" }, + { url = "https://files.pythonhosted.org/packages/7f/3e/37352e939a3995775a6034023bda646aeacf73f238a82e46f012d6a7eee6/uuid_utils-0.17.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d8abfd2ed04af7df7b586621b11449a061b4b899f8b073e972b7282c89ae8335", size = 502043, upload-time = "2026-09-08T11:28:55.705Z" }, + { url = "https://files.pythonhosted.org/packages/f6/c2/9f7883a730cb0e0fce25487021590a1fd28d2840bf25022b33a81c800da9/uuid_utils-0.17.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:8d31f5725c874a656fa1b7c8feb20b54b01ea70b200a9ff0568672ad3fc80b85", size = 607688, upload-time = "2026-09-08T11:28:57.026Z" }, + { url = "https://files.pythonhosted.org/packages/0b/7f/6b121cfe00742f5884fb313321fddd23a17a2326a01a0e669810eaa36b2d/uuid_utils-0.17.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:2ff6a84cf6a0a28e4a75c7b11f0d52464ddce4b7a0bfcf14c8de2e740299903d", size = 566366, upload-time = "2026-09-08T11:28:58.438Z" }, + { url = "https://files.pythonhosted.org/packages/36/64/e706ba987142e212f5af6a034ed98f9a0ec2543e1fdbb3b29b034271578e/uuid_utils-0.17.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7970905d66e55f9a52d0e694d306501e8a9468aa99da73867cc1f8eba2817261", size = 531140, upload-time = "2026-09-08T11:28:59.937Z" }, + { url = "https://files.pythonhosted.org/packages/5a/b2/7dfecd82aff24e02a6764ea88dbb7266a061bc7691d0180f01c6b1ea1efe/uuid_utils-0.17.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:b2735d128a3732e528229fc24295530caa75e79d5ea7fb0f8690ef3114d9b262", size = 100062, upload-time = "2026-09-08T11:29:01.323Z" }, + { url = "https://files.pythonhosted.org/packages/2a/8d/4840ac42764185be3fb7f7ae990c3f4bcf0b941a54ad6807e65cc312e9f7/uuid_utils-0.17.1-cp314-cp314-win32.whl", hash = "sha256:cc9da3c0d8208b53c28658340827505af437bff7a52a55fdaa262ccd4c5a5d87", size = 171234, upload-time = "2026-09-08T11:29:02.688Z" }, + { url = "https://files.pythonhosted.org/packages/90/c0/772c08a73cfc8810ff3144ed2e3701242568f83c7031b781d61bdcd74c29/uuid_utils-0.17.1-cp314-cp314-win_amd64.whl", hash = "sha256:eee4a1df744434e10a0d0a679c074e3128b58328b83c99144e363db320e801f4", size = 177462, upload-time = "2026-09-08T11:29:03.81Z" }, + { url = "https://files.pythonhosted.org/packages/f8/e3/9e3eb231cffab2df2029c4b6d015dabb077366d1194a8a0f2d4522d581ee/uuid_utils-0.17.1-cp314-cp314-win_arm64.whl", hash = "sha256:c3955fc653dc78a93ecbd880bc97a0ef8010a9a748e6307f11ad005d45390ce5", size = 174745, upload-time = "2026-09-08T11:29:04.919Z" }, + { url = "https://files.pythonhosted.org/packages/cd/3f/095e8eed10949c6ca1adde77d405268e88eeaf6e23a3968b29e549d0765e/uuid_utils-0.17.1-cp314-cp314t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:0956a9422e132c8d4a3d808cc3d754fc8e81d34295a3a202b332c9dce064eda9", size = 562178, upload-time = "2026-09-08T11:29:06.231Z" }, + { url = "https://files.pythonhosted.org/packages/bf/ad/5afb5a6fbedbce0bbd358855771c63ff233e7bad898eaaea9f9802fedef9/uuid_utils-0.17.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:691a9c16db041a8d5c55d6414398b0fc97e33aad41ad3aef67a6f3c0661dcde1", size = 289997, upload-time = "2026-09-08T11:29:07.478Z" }, + { url = "https://files.pythonhosted.org/packages/9a/04/78edc758c4dbc84bd5ed8c40b6d7ee0dd879c6ff07320f347e371d84cffc/uuid_utils-0.17.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cf419a23bbeafed0fc8efb4ca5b3e0a8ea4ef4866de41c3393f888bfd5f60e15", size = 323144, upload-time = "2026-09-08T11:29:08.856Z" }, + { url = "https://files.pythonhosted.org/packages/d8/c7/8f27ea2c1e244c0edbaac5dc2a5cbbf51e298e54674faef03132f4468a1a/uuid_utils-0.17.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:617acaeb2586e87c9bd0c2e192e4f1d33caacaeb7f3e0cc75972bc38e703e099", size = 330592, upload-time = "2026-09-08T11:29:10.107Z" }, + { url = "https://files.pythonhosted.org/packages/39/af/e7d7b372781627a6ea6ec2a2ee82f98e3fe7de7b6e4b050ae29a66fd64f8/uuid_utils-0.17.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b1fc79cd8a24bc6c553cd6f708f5ca08c4182914bdcc87192e1e468e9858add3", size = 446735, upload-time = "2026-09-08T11:29:11.334Z" }, + { url = "https://files.pythonhosted.org/packages/33/11/a2ef25dc4a3dcae5ddf8a7c2debc0d10719a991e327e43913605fd3b9c90/uuid_utils-0.17.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ce2f65e81429fcb145105a10c71bf2c71ac5cc9c8fc6c79ac3c13b9de091b2ef", size = 327402, upload-time = "2026-09-08T11:29:12.745Z" }, + { url = "https://files.pythonhosted.org/packages/4e/4b/61153f07eb7282d71a6ee10e3c05636a7d43cec6784bc6ea79979084e727/uuid_utils-0.17.1-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e9ff97bf48606e5d817a01fdd4a4a8855b91382e384f524a960149da00adab5a", size = 348998, upload-time = "2026-09-08T11:29:13.976Z" }, + { url = "https://files.pythonhosted.org/packages/e0/d2/b40991f80805d2cb3ace8c961752429e2e50d4ce0a3ed941c26a6250e3bd/uuid_utils-0.17.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:87d818e1fffc39476c7934544f54455ea04c6297fcd983598802e81c746338a0", size = 501745, upload-time = "2026-09-08T11:29:15.261Z" }, + { url = "https://files.pythonhosted.org/packages/38/84/f65e1963964b2b6fb7aa687dc819e5a39207dd9ecc7961cef82124fd3cbd/uuid_utils-0.17.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:764e4505821c20f1a45a54e9da076e6a97e4e46947159490aea893dc6b8d77be", size = 607104, upload-time = "2026-09-08T11:29:16.586Z" }, + { url = "https://files.pythonhosted.org/packages/84/3f/07c5ada40f360981ee069dbe6463a13dfa1de7eee73a6cb91f94d610821a/uuid_utils-0.17.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:cddf08ed611c2ad1c791d4133dba2c63db4d294b2111e1db687537943cac25ae", size = 566012, upload-time = "2026-09-08T11:29:18Z" }, + { url = "https://files.pythonhosted.org/packages/52/6d/ede35c5e3e3787d2e9d5d3baddbc00f3f64e3f4522d53508757fbcfd6f47/uuid_utils-0.17.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:bcf40ae13cf31727b84f00b1a505f1d4d10199bfea946c3554ef327702d2acca", size = 532218, upload-time = "2026-09-08T11:29:19.477Z" }, + { url = "https://files.pythonhosted.org/packages/97/a1/318e4bc7f04a505189233ec2409cce9e18cd5f52d06738a9e96f0eac3816/uuid_utils-0.17.1-cp314-cp314t-win32.whl", hash = "sha256:ce2fd8f8bc0026c0fc137cf5cce9de546ff9e0b4008be3eb21b5a06249eafec1", size = 171217, upload-time = "2026-09-08T11:29:20.984Z" }, + { url = "https://files.pythonhosted.org/packages/06/79/11811f97922be44ca900fc89e26b4dae173bd03ffd03672da7b28b023b29/uuid_utils-0.17.1-cp314-cp314t-win_amd64.whl", hash = "sha256:3dd5706a9874799013e82ac567425c535a0a4a7779c8551154915a4ba2fcb1c4", size = 177754, upload-time = "2026-09-08T11:29:22.227Z" }, + { url = "https://files.pythonhosted.org/packages/60/66/f56b2b497286f01ac2f6a1be8f825e871906d6aaf83dd4ad0cd7c8d54013/uuid_utils-0.17.1-cp314-cp314t-win_arm64.whl", hash = "sha256:a3cd9443d0a3b6f631e6352cb9d9c0a9b68d808d71250eb44e7b00265ec382f7", size = 174267, upload-time = "2026-09-08T11:29:23.447Z" }, + { url = "https://files.pythonhosted.org/packages/d8/23/81d75df583e3c7ff432b4f86014ae243fe7baa57d99919dc1292e9424724/uuid_utils-0.17.1-pp311-pypy311_pp73-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:653bf91ec2d1c3b0f10157815ca58b0b572d15ce17ed0823aae08ff0df207fad", size = 566472, upload-time = "2026-09-08T11:29:24.726Z" }, + { url = "https://files.pythonhosted.org/packages/8f/f3/71e7acaecfdbb5edd3cc7e13d0602f4566f16f35412edcc784569ff14733/uuid_utils-0.17.1-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:ea207557393ead4084beb08f0e9c0c944ac2050678714b65ba979fae90cf782e", size = 288766, upload-time = "2026-09-08T11:29:26.252Z" }, + { url = "https://files.pythonhosted.org/packages/52/62/1a94e2cf60ba38ef87f11cae3dd3b2787366229cc9a3f0ffc41fb89c9487/uuid_utils-0.17.1-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5629c94f65249384314831ca0a95ca5f1dce5bcd5ee79600a5cd31d4f7d0f5f6", size = 326190, upload-time = "2026-09-08T11:29:27.666Z" }, + { url = "https://files.pythonhosted.org/packages/87/81/55b12664f7fb6a69a9d18ec8a8cac1a55fc60e0dca14046d6bb972fae2a8/uuid_utils-0.17.1-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f85fddf2e5c4f7a30ebdc2b26ec585b9d814d807bcf285d248ae451ffee16a03", size = 334399, upload-time = "2026-09-08T11:29:29.023Z" }, + { url = "https://files.pythonhosted.org/packages/8d/64/844e5657be2b43ca2136ef4aa207420c1387e28cdbb90dcb395133ee63ca/uuid_utils-0.17.1-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4adbea226bef0c619b33fa257113e36269a475b2c2049f55b8b83b4c6d507a9a", size = 450440, upload-time = "2026-09-08T11:29:30.334Z" }, + { url = "https://files.pythonhosted.org/packages/87/09/ab493c7598311f9bab4dc762d3483cb35cd78588c4d848c36fcda671f4f9/uuid_utils-0.17.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ed203ff60932fe5b3a38453945bee4aa8dfb387789fd420698f607786ba42b8", size = 328684, upload-time = "2026-09-08T11:29:31.752Z" }, + { url = "https://files.pythonhosted.org/packages/4f/1d/8f2816d50d7a69416270a88f41f6820cde300719bac814989bb13e4c5ae6/uuid_utils-0.17.1-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:92e8df2bc6a33229c105ea90839d98576fcecc5cc86fdb1dd772ab10367b744b", size = 354290, upload-time = "2026-09-08T11:29:33.067Z" }, + { url = "https://files.pythonhosted.org/packages/18/e4/2bdff71a73c3d5dde6777815c910be7417fbc54f36206d0f7a1fb2f54522/uuid_utils-0.17.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:6cca251f83d3ec2988fb7355b52c4b4fd2d96159f6f040e68f51af15fab49540", size = 180288, upload-time = "2026-09-08T11:29:34.24Z" }, ] [[package]] name = "uvicorn" -version = "0.51.0" +version = "0.54.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "click" }, { name = "h11" }, - { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a2/65/b7c6c443ccc58678c91e1e973bbe2a878591538655d6e1d47f24ba1c51f3/uvicorn-0.51.0.tar.gz", hash = "sha256:f6f4b69b657c312f516dd2d268ab9ae6f254b11e4bac504f37b2ab58b24dd0b0", size = 94412, upload-time = "2026-07-08T10:59:05.962Z" } +sdist = { url = "https://files.pythonhosted.org/packages/da/34/30e9280707135d2cfc589dfff3cb796bd07a3aeb1a3e415ba09dd89d7bb4/uvicorn-0.54.0.tar.gz", hash = "sha256:a2e33cbfaa0306f8e6b0c13e0cb89d7d7a2da3e62b90c66e18c33d9807b28620", size = 112283, upload-time = "2026-09-25T06:52:37.601Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/45/ec/dbb7e5a6b91f86bfb9eb7d2988a2730907b6a729875b949c7f022e8b88fa/uvicorn-0.51.0-py3-none-any.whl", hash = "sha256:5d38af6cd620f2ae3849fb44fd4879e0890aa1febe8d47eb355fb45d93fe6a5b", size = 73219, upload-time = "2026-07-08T10:59:04.44Z" }, + { url = "https://files.pythonhosted.org/packages/38/0c/b54a4fdd7f90a3af8b02ebc9ce6712c2c208b7926a2f7bad95c33ebbe943/uvicorn-0.54.0-py3-none-any.whl", hash = "sha256:505bdb0f318731d45f1f712071fc781a8981f6847a31c902c9f5e652d4f67faf", size = 87427, upload-time = "2026-09-25T06:52:35.829Z" }, ] [[package]] @@ -5336,9 +5133,6 @@ version = "6.0.0" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/db/7d/7f3d619e951c88ed75c6037b246ddcf2d322812ee8ea189be89511721d54/watchdog-6.0.0.tar.gz", hash = "sha256:9ddf7c82fda3ae8e24decda1338ede66e1c99883db93711d8fb941eaa2d8c282", size = 131220, upload-time = "2024-11-01T14:07:13.037Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0c/56/90994d789c61df619bfc5ce2ecdabd5eeff564e1eb47512bd01b5e019569/watchdog-6.0.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d1cdb490583ebd691c012b3d6dae011000fe42edb7a82ece80965b42abd61f26", size = 96390, upload-time = "2024-11-01T14:06:24.793Z" }, - { url = "https://files.pythonhosted.org/packages/55/46/9a67ee697342ddf3c6daa97e3a587a56d6c4052f881ed926a849fcf7371c/watchdog-6.0.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:bc64ab3bdb6a04d69d4023b29422170b74681784ffb9463ed4870cf2f3e66112", size = 88389, upload-time = "2024-11-01T14:06:27.112Z" }, - { url = "https://files.pythonhosted.org/packages/44/65/91b0985747c52064d8701e1075eb96f8c40a79df889e59a399453adfb882/watchdog-6.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c897ac1b55c5a1461e16dae288d22bb2e412ba9807df8397a635d88f671d36c3", size = 89020, upload-time = "2024-11-01T14:06:29.876Z" }, { url = "https://files.pythonhosted.org/packages/e0/24/d9be5cd6642a6aa68352ded4b4b10fb0d7889cb7f45814fb92cecd35f101/watchdog-6.0.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:6eb11feb5a0d452ee41f824e271ca311a09e250441c262ca2fd7ebcf2461a06c", size = 96393, upload-time = "2024-11-01T14:06:31.756Z" }, { url = "https://files.pythonhosted.org/packages/63/7a/6013b0d8dbc56adca7fdd4f0beed381c59f6752341b12fa0886fa7afc78b/watchdog-6.0.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ef810fbf7b781a5a593894e4f439773830bdecb885e6880d957d5b9382a960d2", size = 88392, upload-time = "2024-11-01T14:06:32.99Z" }, { url = "https://files.pythonhosted.org/packages/d1/40/b75381494851556de56281e053700e46bff5b37bf4c7267e858640af5a7f/watchdog-6.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:afd0fe1b2270917c5e23c2a65ce50c2a4abb63daafb0d419fde368e272a76b7c", size = 89019, upload-time = "2024-11-01T14:06:34.963Z" }, @@ -5348,8 +5142,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/68/98/b0345cabdce2041a01293ba483333582891a3bd5769b08eceb0d406056ef/watchdog-6.0.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:490ab2ef84f11129844c23fb14ecf30ef3d8a6abafd3754a6f75ca1e6654136c", size = 96480, upload-time = "2024-11-01T14:06:42.952Z" }, { url = "https://files.pythonhosted.org/packages/85/83/cdf13902c626b28eedef7ec4f10745c52aad8a8fe7eb04ed7b1f111ca20e/watchdog-6.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:76aae96b00ae814b181bb25b1b98076d5fc84e8a53cd8885a318b42b6d3a5134", size = 88451, upload-time = "2024-11-01T14:06:45.084Z" }, { url = "https://files.pythonhosted.org/packages/fe/c4/225c87bae08c8b9ec99030cd48ae9c4eca050a59bf5c2255853e18c87b50/watchdog-6.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a175f755fc2279e0b7312c0035d52e27211a5bc39719dd529625b1930917345b", size = 89057, upload-time = "2024-11-01T14:06:47.324Z" }, - { url = "https://files.pythonhosted.org/packages/30/ad/d17b5d42e28a8b91f8ed01cb949da092827afb9995d4559fd448d0472763/watchdog-6.0.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:c7ac31a19f4545dd92fc25d200694098f42c9a8e391bc00bdd362c5736dbf881", size = 87902, upload-time = "2024-11-01T14:06:53.119Z" }, - { url = "https://files.pythonhosted.org/packages/5c/ca/c3649991d140ff6ab67bfc85ab42b165ead119c9e12211e08089d763ece5/watchdog-6.0.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:9513f27a1a582d9808cf21a07dae516f0fab1cf2d7683a742c498b93eedabb11", size = 88380, upload-time = "2024-11-01T14:06:55.19Z" }, { url = "https://files.pythonhosted.org/packages/a9/c7/ca4bf3e518cb57a686b2feb4f55a1892fd9a3dd13f470fca14e00f80ea36/watchdog-6.0.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:7607498efa04a3542ae3e05e64da8202e58159aa1fa4acddf7678d34a35d4f13", size = 79079, upload-time = "2024-11-01T14:06:59.472Z" }, { url = "https://files.pythonhosted.org/packages/5c/51/d46dc9332f9a647593c947b4b88e2381c8dfc0942d15b8edc0310fa4abb1/watchdog-6.0.0-py3-none-manylinux2014_armv7l.whl", hash = "sha256:9041567ee8953024c83343288ccc458fd0a2d811d6a0fd68c4c22609e3490379", size = 79078, upload-time = "2024-11-01T14:07:01.431Z" }, { url = "https://files.pythonhosted.org/packages/d4/57/04edbf5e169cd318d5f07b4766fee38e825d64b6913ca157ca32d1a42267/watchdog-6.0.0-py3-none-manylinux2014_i686.whl", hash = "sha256:82dc3e3143c7e38ec49d61af98d6558288c415eac98486a5c581726e0737c00e", size = 79076, upload-time = "2024-11-01T14:07:02.568Z" }, @@ -5364,23 +5156,14 @@ wheels = [ [[package]] name = "wcmatch" -version = "11.0" +version = "11.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "bracex", marker = "python_full_version >= '3.11'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/16/25/1da725838132221e33568973da484ff43813662ccc06ebf7f6e3abddfcd5/wcmatch-11.0.tar.gz", hash = "sha256:55d95c2447789712774b198ceec72939e88b5618f1f8f0a9b605bf7740b63b96", size = 141360, upload-time = "2026-07-10T05:50:24.183Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/28/12/f38b6fee116274d7221743caab07d765032e1370bb54cad8714f87aeb0e8/wcmatch-11.0-py3-none-any.whl", hash = "sha256:3a5977ace27e075eef67eb03d539563f1a19018b62881949a42932cf66926934", size = 42914, upload-time = "2026-07-10T05:50:22.995Z" }, + { name = "bracex" }, ] - -[[package]] -name = "wcwidth" -version = "0.8.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/34/74/c6428f875774288bec1396f5bfcbc2d925700a4dad61727fd5f2b12f249d/wcwidth-0.8.2.tar.gz", hash = "sha256:91fbef97204b96a3d4d421609b80340b760cf33e26da123ff243d76b1fda8dda", size = 1466253, upload-time = "2026-06-29T18:11:11.601Z" } +sdist = { url = "https://files.pythonhosted.org/packages/78/cd/0e028d8b7d906d51acdac537334fbe85f8284f2a8147d48bc9403af77a0d/wcmatch-11.1.tar.gz", hash = "sha256:f2b6f0fad6f5e2571498723fcb3c8facdd0fba0dcc139f31d32f592eb648153e", size = 129091, upload-time = "2026-10-10T13:10:54.573Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/96/42/3e5985a0a7e57de470b320c6d6a1a67c844f6737a587f3d44dd13d1819e7/wcwidth-0.8.2-py3-none-any.whl", hash = "sha256:d63947694a0539a1d51e01eda7caf800c291020e6cdd7e28ad7b14dd33ad4f85", size = 323166, upload-time = "2026-06-29T18:11:09.888Z" }, + { url = "https://files.pythonhosted.org/packages/1e/22/c4adda5a3754b7fc9429a544a0673fa6922fdd7808eab09abe18616f6e38/wcmatch-11.1-py3-none-any.whl", hash = "sha256:2863afee97a7dd62e64f7feada864848c1a5e31cb331b3aa530fa1300d2d5d3c", size = 43417, upload-time = "2026-10-10T13:10:52.939Z" }, ] [[package]] @@ -5389,17 +5172,6 @@ version = "15.0.1" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/21/e6/26d09fab466b7ca9c7737474c52be4f76a40301b08362eb2dbc19dcc16c1/websockets-15.0.1.tar.gz", hash = "sha256:82544de02076bafba038ce055ee6412d68da13ab47f0c60cab827346de828dee", size = 177016, upload-time = "2025-03-05T20:03:41.606Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/da/6462a9f510c0c49837bbc9345aca92d767a56c1fb2939e1579df1e1cdcf7/websockets-15.0.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d63efaa0cd96cf0c5fe4d581521d9fa87744540d4bc999ae6e08595a1014b45b", size = 175423, upload-time = "2025-03-05T20:01:35.363Z" }, - { url = "https://files.pythonhosted.org/packages/1c/9f/9d11c1a4eb046a9e106483b9ff69bce7ac880443f00e5ce64261b47b07e7/websockets-15.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ac60e3b188ec7574cb761b08d50fcedf9d77f1530352db4eef1707fe9dee7205", size = 173080, upload-time = "2025-03-05T20:01:37.304Z" }, - { url = "https://files.pythonhosted.org/packages/d5/4f/b462242432d93ea45f297b6179c7333dd0402b855a912a04e7fc61c0d71f/websockets-15.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5756779642579d902eed757b21b0164cd6fe338506a8083eb58af5c372e39d9a", size = 173329, upload-time = "2025-03-05T20:01:39.668Z" }, - { url = "https://files.pythonhosted.org/packages/6e/0c/6afa1f4644d7ed50284ac59cc70ef8abd44ccf7d45850d989ea7310538d0/websockets-15.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0fdfe3e2a29e4db3659dbd5bbf04560cea53dd9610273917799f1cde46aa725e", size = 182312, upload-time = "2025-03-05T20:01:41.815Z" }, - { url = "https://files.pythonhosted.org/packages/dd/d4/ffc8bd1350b229ca7a4db2a3e1c482cf87cea1baccd0ef3e72bc720caeec/websockets-15.0.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4c2529b320eb9e35af0fa3016c187dffb84a3ecc572bcee7c3ce302bfeba52bf", size = 181319, upload-time = "2025-03-05T20:01:43.967Z" }, - { url = "https://files.pythonhosted.org/packages/97/3a/5323a6bb94917af13bbb34009fac01e55c51dfde354f63692bf2533ffbc2/websockets-15.0.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ac1e5c9054fe23226fb11e05a6e630837f074174c4c2f0fe442996112a6de4fb", size = 181631, upload-time = "2025-03-05T20:01:46.104Z" }, - { url = "https://files.pythonhosted.org/packages/a6/cc/1aeb0f7cee59ef065724041bb7ed667b6ab1eeffe5141696cccec2687b66/websockets-15.0.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:5df592cd503496351d6dc14f7cdad49f268d8e618f80dce0cd5a36b93c3fc08d", size = 182016, upload-time = "2025-03-05T20:01:47.603Z" }, - { url = "https://files.pythonhosted.org/packages/79/f9/c86f8f7af208e4161a7f7e02774e9d0a81c632ae76db2ff22549e1718a51/websockets-15.0.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:0a34631031a8f05657e8e90903e656959234f3a04552259458aac0b0f9ae6fd9", size = 181426, upload-time = "2025-03-05T20:01:48.949Z" }, - { url = "https://files.pythonhosted.org/packages/c7/b9/828b0bc6753db905b91df6ae477c0b14a141090df64fb17f8a9d7e3516cf/websockets-15.0.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:3d00075aa65772e7ce9e990cab3ff1de702aa09be3940d1dc88d5abf1ab8a09c", size = 181360, upload-time = "2025-03-05T20:01:50.938Z" }, - { url = "https://files.pythonhosted.org/packages/89/fb/250f5533ec468ba6327055b7d98b9df056fb1ce623b8b6aaafb30b55d02e/websockets-15.0.1-cp310-cp310-win32.whl", hash = "sha256:1234d4ef35db82f5446dca8e35a7da7964d02c127b095e172e54397fb6a6c256", size = 176388, upload-time = "2025-03-05T20:01:52.213Z" }, - { url = "https://files.pythonhosted.org/packages/1c/46/aca7082012768bb98e5608f01658ff3ac8437e563eca41cf068bd5849a5e/websockets-15.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:39c1fec2c11dc8d89bba6b2bf1556af381611a173ac2b511cf7231622058af41", size = 176830, upload-time = "2025-03-05T20:01:53.922Z" }, { url = "https://files.pythonhosted.org/packages/9f/32/18fcd5919c293a398db67443acd33fde142f283853076049824fc58e6f75/websockets-15.0.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:823c248b690b2fd9303ba00c4f66cd5e2d8c3ba4aa968b2779be9532a4dad431", size = 175423, upload-time = "2025-03-05T20:01:56.276Z" }, { url = "https://files.pythonhosted.org/packages/76/70/ba1ad96b07869275ef42e2ce21f07a5b0148936688c2baf7e4a1f60d5058/websockets-15.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678999709e68425ae2593acf2e3ebcbcf2e69885a5ee78f9eb80e6e371f1bf57", size = 173082, upload-time = "2025-03-05T20:01:57.563Z" }, { url = "https://files.pythonhosted.org/packages/86/f2/10b55821dd40eb696ce4704a87d57774696f9451108cff0d2824c97e0f97/websockets-15.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d50fd1ee42388dcfb2b3676132c78116490976f1300da28eb629272d5d93e905", size = 173330, upload-time = "2025-03-05T20:01:59.063Z" }, @@ -5433,25 +5205,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/33/2b/1f168cb6041853eef0362fb9554c3824367c5560cbdaad89ac40f8c2edfc/websockets-15.0.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:558d023b3df0bffe50a04e710bc87742de35060580a293c2a984299ed83bc4e4", size = 182195, upload-time = "2025-03-05T20:02:51.561Z" }, { url = "https://files.pythonhosted.org/packages/86/eb/20b6cdf273913d0ad05a6a14aed4b9a85591c18a987a3d47f20fa13dcc47/websockets-15.0.1-cp313-cp313-win32.whl", hash = "sha256:ba9e56e8ceeeedb2e080147ba85ffcd5cd0711b89576b83784d8605a7df455fa", size = 176393, upload-time = "2025-03-05T20:02:53.814Z" }, { url = "https://files.pythonhosted.org/packages/1b/6c/c65773d6cab416a64d191d6ee8a8b1c68a09970ea6909d16965d26bfed1e/websockets-15.0.1-cp313-cp313-win_amd64.whl", hash = "sha256:e09473f095a819042ecb2ab9465aee615bd9c2028e4ef7d933600a8401c79561", size = 176837, upload-time = "2025-03-05T20:02:55.237Z" }, - { url = "https://files.pythonhosted.org/packages/02/9e/d40f779fa16f74d3468357197af8d6ad07e7c5a27ea1ca74ceb38986f77a/websockets-15.0.1-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:0c9e74d766f2818bb95f84c25be4dea09841ac0f734d1966f415e4edfc4ef1c3", size = 173109, upload-time = "2025-03-05T20:03:17.769Z" }, - { url = "https://files.pythonhosted.org/packages/bc/cd/5b887b8585a593073fd92f7c23ecd3985cd2c3175025a91b0d69b0551372/websockets-15.0.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:1009ee0c7739c08a0cd59de430d6de452a55e42d6b522de7aa15e6f67db0b8e1", size = 173343, upload-time = "2025-03-05T20:03:19.094Z" }, - { url = "https://files.pythonhosted.org/packages/fe/ae/d34f7556890341e900a95acf4886833646306269f899d58ad62f588bf410/websockets-15.0.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:76d1f20b1c7a2fa82367e04982e708723ba0e7b8d43aa643d3dcd404d74f1475", size = 174599, upload-time = "2025-03-05T20:03:21.1Z" }, - { url = "https://files.pythonhosted.org/packages/71/e6/5fd43993a87db364ec60fc1d608273a1a465c0caba69176dd160e197ce42/websockets-15.0.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f29d80eb9a9263b8d109135351caf568cc3f80b9928bccde535c235de55c22d9", size = 174207, upload-time = "2025-03-05T20:03:23.221Z" }, - { url = "https://files.pythonhosted.org/packages/2b/fb/c492d6daa5ec067c2988ac80c61359ace5c4c674c532985ac5a123436cec/websockets-15.0.1-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b359ed09954d7c18bbc1680f380c7301f92c60bf924171629c5db97febb12f04", size = 174155, upload-time = "2025-03-05T20:03:25.321Z" }, - { url = "https://files.pythonhosted.org/packages/68/a1/dcb68430b1d00b698ae7a7e0194433bce4f07ded185f0ee5fb21e2a2e91e/websockets-15.0.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:cad21560da69f4ce7658ca2cb83138fb4cf695a2ba3e475e0559e05991aa8122", size = 176884, upload-time = "2025-03-05T20:03:27.934Z" }, { url = "https://files.pythonhosted.org/packages/fa/a8/5b41e0da817d64113292ab1f8247140aac61cbf6cfd085d6a0fa77f4984f/websockets-15.0.1-py3-none-any.whl", hash = "sha256:f7a866fbc1e97b5c617ee4116daaa09b722101d4a3c170c787450ba409f9736f", size = 169743, upload-time = "2025-03-05T20:03:39.41Z" }, ] [[package]] name = "werkzeug" -version = "3.1.8" +version = "3.1.9" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markupsafe" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/dd/b2/381be8cfdee792dd117872481b6e378f85c957dd7c5bca38897b08f765fd/werkzeug-3.1.8.tar.gz", hash = "sha256:9bad61a4268dac112f1c5cd4630a56ede601b6ed420300677a869083d70a4c44", size = 875852, upload-time = "2026-04-02T18:49:14.268Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a4/34/4dd12fc8bb7d61c91467ec3efe415ffa7d5456f799954b40c5bbaeae470e/werkzeug-3.1.9.tar.gz", hash = "sha256:55ca7c70a75689be937aa27f8ff4b018f06ff4838fc73045560bf0f5a1291060", size = 940188, upload-time = "2026-09-27T18:33:41.637Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/93/8c/2e650f2afeb7ee576912636c23ddb621c91ac6a98e66dc8d29c3c69446e1/werkzeug-3.1.8-py3-none-any.whl", hash = "sha256:63a77fb8892bf28ebc3178683445222aa500e48ebad5ec77b0ad80f8726b1f50", size = 226459, upload-time = "2026-04-02T18:49:12.72Z" }, + { url = "https://files.pythonhosted.org/packages/a1/38/df03f564f43cec2684823f3cccae1a652ee7face1cbaa76fb223096e64d7/werkzeug-3.1.9-py3-none-any.whl", hash = "sha256:6392e50c78460ba618e5b21f08a71f59c99ce99cdc6cf6e3dd7e6ccca8754fab", size = 228700, upload-time = "2026-09-27T18:33:39.685Z" }, ] [[package]] @@ -5460,16 +5226,6 @@ version = "1.17.3" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/95/8f/aeb76c5b46e273670962298c23e7ddde79916cb74db802131d49a85e4b7d/wrapt-1.17.3.tar.gz", hash = "sha256:f66eb08feaa410fe4eebd17f2a2c8e2e46d3476e9f8c783daa8e09e0faa666d0", size = 55547, upload-time = "2025-08-12T05:53:21.714Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3f/23/bb82321b86411eb51e5a5db3fb8f8032fd30bd7c2d74bfe936136b2fa1d6/wrapt-1.17.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:88bbae4d40d5a46142e70d58bf664a89b6b4befaea7b2ecc14e03cedb8e06c04", size = 53482, upload-time = "2025-08-12T05:51:44.467Z" }, - { url = "https://files.pythonhosted.org/packages/45/69/f3c47642b79485a30a59c63f6d739ed779fb4cc8323205d047d741d55220/wrapt-1.17.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e6b13af258d6a9ad602d57d889f83b9d5543acd471eee12eb51f5b01f8eb1bc2", size = 38676, upload-time = "2025-08-12T05:51:32.636Z" }, - { url = "https://files.pythonhosted.org/packages/d1/71/e7e7f5670c1eafd9e990438e69d8fb46fa91a50785332e06b560c869454f/wrapt-1.17.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fd341868a4b6714a5962c1af0bd44f7c404ef78720c7de4892901e540417111c", size = 38957, upload-time = "2025-08-12T05:51:54.655Z" }, - { url = "https://files.pythonhosted.org/packages/de/17/9f8f86755c191d6779d7ddead1a53c7a8aa18bccb7cea8e7e72dfa6a8a09/wrapt-1.17.3-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:f9b2601381be482f70e5d1051a5965c25fb3625455a2bf520b5a077b22afb775", size = 81975, upload-time = "2025-08-12T05:52:30.109Z" }, - { url = "https://files.pythonhosted.org/packages/f2/15/dd576273491f9f43dd09fce517f6c2ce6eb4fe21681726068db0d0467096/wrapt-1.17.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:343e44b2a8e60e06a7e0d29c1671a0d9951f59174f3709962b5143f60a2a98bd", size = 83149, upload-time = "2025-08-12T05:52:09.316Z" }, - { url = "https://files.pythonhosted.org/packages/0c/c4/5eb4ce0d4814521fee7aa806264bf7a114e748ad05110441cd5b8a5c744b/wrapt-1.17.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:33486899acd2d7d3066156b03465b949da3fd41a5da6e394ec49d271baefcf05", size = 82209, upload-time = "2025-08-12T05:52:10.331Z" }, - { url = "https://files.pythonhosted.org/packages/31/4b/819e9e0eb5c8dc86f60dfc42aa4e2c0d6c3db8732bce93cc752e604bb5f5/wrapt-1.17.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e6f40a8aa5a92f150bdb3e1c44b7e98fb7113955b2e5394122fa5532fec4b418", size = 81551, upload-time = "2025-08-12T05:52:31.137Z" }, - { url = "https://files.pythonhosted.org/packages/f8/83/ed6baf89ba3a56694700139698cf703aac9f0f9eb03dab92f57551bd5385/wrapt-1.17.3-cp310-cp310-win32.whl", hash = "sha256:a36692b8491d30a8c75f1dfee65bef119d6f39ea84ee04d9f9311f83c5ad9390", size = 36464, upload-time = "2025-08-12T05:53:01.204Z" }, - { url = "https://files.pythonhosted.org/packages/2f/90/ee61d36862340ad7e9d15a02529df6b948676b9a5829fd5e16640156627d/wrapt-1.17.3-cp310-cp310-win_amd64.whl", hash = "sha256:afd964fd43b10c12213574db492cb8f73b2f0826c8df07a68288f8f19af2ebe6", size = 38748, upload-time = "2025-08-12T05:53:00.209Z" }, - { url = "https://files.pythonhosted.org/packages/bd/c3/cefe0bd330d389c9983ced15d326f45373f4073c9f4a8c2f99b50bfea329/wrapt-1.17.3-cp310-cp310-win_arm64.whl", hash = "sha256:af338aa93554be859173c39c85243970dc6a289fa907402289eeae7543e1ae18", size = 36810, upload-time = "2025-08-12T05:52:51.906Z" }, { url = "https://files.pythonhosted.org/packages/52/db/00e2a219213856074a213503fdac0511203dceefff26e1daa15250cc01a0/wrapt-1.17.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:273a736c4645e63ac582c60a56b0acb529ef07f78e08dc6bfadf6a46b19c0da7", size = 53482, upload-time = "2025-08-12T05:51:45.79Z" }, { url = "https://files.pythonhosted.org/packages/5e/30/ca3c4a5eba478408572096fe9ce36e6e915994dd26a4e9e98b4f729c06d9/wrapt-1.17.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5531d911795e3f935a9c23eb1c8c03c211661a5060aab167065896bbf62a5f85", size = 38674, upload-time = "2025-08-12T05:51:34.629Z" }, { url = "https://files.pythonhosted.org/packages/31/25/3e8cc2c46b5329c5957cec959cb76a10718e1a513309c31399a4dad07eb3/wrapt-1.17.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:0610b46293c59a3adbae3dee552b648b984176f8562ee0dba099a56cfbe4df1f", size = 38959, upload-time = "2025-08-12T05:51:56.074Z" }, @@ -5534,332 +5290,357 @@ wheels = [ [[package]] name = "xxhash" -version = "3.8.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/8e/63/71aa56b151a1b28770037a61bd4e461c2619cfc8866a4fcaf1548605e325/xxhash-3.8.1.tar.gz", hash = "sha256:b0de4bf3aa66363552d52c6a89003c479911f12098cd48a53d44a0f7a25f7c46", size = 86223, upload-time = "2026-07-06T10:49:58.937Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/55/97/1a8cebf0a6650417f08a18231590e2515aacd5ce39c3ad8b9e013ebd437d/xxhash-3.8.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:27a9e475157f7315826118e3f3127909a0fe25f1b43d3d3be9c584f9d265f937", size = 34695, upload-time = "2026-07-06T10:43:40.248Z" }, - { url = "https://files.pythonhosted.org/packages/2f/cf/745b9bc0dd9c341bc074b5fc700db7bbef0f3b69ab21446492296ab37e50/xxhash-3.8.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9b2ce44bf8f4a1d01f418b3110ff8dff32fd3f3e836c0e06333c3725f243fa6c", size = 32376, upload-time = "2026-07-06T10:43:41.97Z" }, - { url = "https://files.pythonhosted.org/packages/65/a4/8512a901b1d6ad4a9838d1b40385907a879d7e005a5afbec5d39526b69f6/xxhash-3.8.1-cp310-cp310-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:942bc86e9be6fdd6e1175048f5fe8f8fdaaf2309dd1323ef1e155a69cd346780", size = 217470, upload-time = "2026-07-06T10:43:43.572Z" }, - { url = "https://files.pythonhosted.org/packages/a0/ad/0ffd8094ea29579bb2dc42fa74d08570e9ea3d95db561e6b1105e69b9ca6/xxhash-3.8.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0204701e6d01f64254e0e5ff4255812b1febe027ddd7dda63372e27f98b5e91f", size = 237799, upload-time = "2026-07-06T10:43:45.248Z" }, - { url = "https://files.pythonhosted.org/packages/b3/90/783c6b3f9336bd07449fe672be32cef6833633936bbfda8d3b23ee18d202/xxhash-3.8.1-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7dc4bdf008f77c88d544849c48c1a40faf25a5eff6cc466de2e8edc37c191fce", size = 262587, upload-time = "2026-07-06T10:43:46.733Z" }, - { url = "https://files.pythonhosted.org/packages/c4/77/ba0316a7c3e661b86830a47ae4987798616ce1b15af8d2a6358e2d89ef60/xxhash-3.8.1-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5c566b123dce7e4867ca518434cdfb9f84e5023771235b2e3107a26c9a41cbd8", size = 238484, upload-time = "2026-07-06T10:43:48.453Z" }, - { url = "https://files.pythonhosted.org/packages/09/79/33001037c1cba90f4ced38b257161c13452024c0db44208f883e2e47f3fc/xxhash-3.8.1-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9f23083e1bd9d901f844af7a126727c486e7eada9a1a6791c8f7e73f94fac656", size = 469909, upload-time = "2026-07-06T10:43:50.188Z" }, - { url = "https://files.pythonhosted.org/packages/45/90/237eded9dd6ae638083294e5a9f77b317aaebd480a330806b39c192a0de1/xxhash-3.8.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:64af54dd1c3a45a27c04942f9a1a4683322bdd127f4745cca4e02549c1d2d2bb", size = 217166, upload-time = "2026-07-06T10:43:51.816Z" }, - { url = "https://files.pythonhosted.org/packages/0b/6a/8cb439dc9920e1468e1c2d69ef77cbeb4be3b1ae9f4b5344c07a2b59af18/xxhash-3.8.1-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8ea8a141eeced4f6262ab6dd71c681ac546a558c30bb586abe087d814b5f85ea", size = 307593, upload-time = "2026-07-06T10:43:53.436Z" }, - { url = "https://files.pythonhosted.org/packages/ec/c6/c0607d373c8affea92101a3926c4fc8b026bcf8983e05fd58f3a0380ebf8/xxhash-3.8.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a98b2f95cab589e0f5e92c48431afb4d56238b8bf6668edcc66166180e9b509b", size = 234702, upload-time = "2026-07-06T10:43:55.042Z" }, - { url = "https://files.pythonhosted.org/packages/5b/cb/f4cfd456624c1f017858168b7ba9443dad810da8aac779a612658450e827/xxhash-3.8.1-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:1b86ae798a976ccbc1d02af6ccb98f5b4d24756b1f65e995f11d10fe071f486f", size = 265749, upload-time = "2026-07-06T10:43:56.749Z" }, - { url = "https://files.pythonhosted.org/packages/33/f3/9006669c04b01206e21b2177425c649461ba188930a052c2f1728d6ec6a8/xxhash-3.8.1-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:81f4ed9ca9644bc95cd976bfe10f7a4cafab8ffdc3aed52877d4600e445be7ef", size = 221992, upload-time = "2026-07-06T10:43:58.12Z" }, - { url = "https://files.pythonhosted.org/packages/2b/0b/7e6f3eaa05df5e0b6c94aa452b0672801f7031e602081f07fd441aaaaed5/xxhash-3.8.1-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:cb3fe820c27593f170770d6c8d791936cf6275d9269405fbb7b30a55363c10c8", size = 236899, upload-time = "2026-07-06T10:43:59.562Z" }, - { url = "https://files.pythonhosted.org/packages/da/cc/bbaee4987f3aab1d7b33bb430bb49e940646160af448b9167431c931126d/xxhash-3.8.1-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:7345007c12780985de4fd740148776d1eee18c0d41407c6fa1e48c5450304fe5", size = 297934, upload-time = "2026-07-06T10:44:01.132Z" }, - { url = "https://files.pythonhosted.org/packages/a7/97/6bee358660eb8b4f73c00b00b00bc616ebde00e1ab4b67c63486ce360648/xxhash-3.8.1-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:12eaeaa9ab8b9e6033a1fa5f6b338aaf55ff4df4bee11b59fd6ee03b19186ee4", size = 439315, upload-time = "2026-07-06T10:44:02.878Z" }, - { url = "https://files.pythonhosted.org/packages/c6/50/7e35275f39256bedace0c3cd5be3c72d4ac9d5aecf5e5fdc3530337cd263/xxhash-3.8.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e2a845687219ba3214126f14a8a5861f97c9e065a7d0b8252adb6df13eea86fb", size = 214038, upload-time = "2026-07-06T10:44:04.504Z" }, - { url = "https://files.pythonhosted.org/packages/59/2d/69d02d096ee50bdf3ef0d208d874f52c71b1aa6906066bce3c52fedb8bc6/xxhash-3.8.1-cp310-cp310-win32.whl", hash = "sha256:656256c9f9303e47f07d5cb8ae4468285370adfafd7ba48aea33a458e7697626", size = 31939, upload-time = "2026-07-06T10:44:06.213Z" }, - { url = "https://files.pythonhosted.org/packages/c9/1d/e06fca9844919ca91c6587d530cfa1e745830ec73ad38f44f04b25d1bfb7/xxhash-3.8.1-cp310-cp310-win_amd64.whl", hash = "sha256:27cfc2f1ed76f956f36dfe0c56e5f5a3e94cd91eb78b893f63e2ef2ae404fcdf", size = 32729, upload-time = "2026-07-06T10:44:07.621Z" }, - { url = "https://files.pythonhosted.org/packages/8c/c2/800648d99039927b5a86d8ae02cd86a556a5ee1678d388216f6b44c8966c/xxhash-3.8.1-cp310-cp310-win_arm64.whl", hash = "sha256:c85949d02c85adf6d786eb94858e124989a632a4e65739835b2fc5761827fac3", size = 29215, upload-time = "2026-07-06T10:44:08.916Z" }, - { url = "https://files.pythonhosted.org/packages/8a/5a/05eaa129555f85476a3e16ff869e95f81a78bbe4647eef9d0229f515a317/xxhash-3.8.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:602efcad4a42c184e81d43a2b7e6e4f524d619878f2b6ee2ba469011f47c8147", size = 34699, upload-time = "2026-07-06T10:44:10.14Z" }, - { url = "https://files.pythonhosted.org/packages/80/59/0df1133958b2228929355e022aab1e958c7b2c43e27bf7f59bc9edfa8a54/xxhash-3.8.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:131324f719957b988861714de7d6ddf57b47abec3b0cc691302ffeaba0e05e10", size = 32373, upload-time = "2026-07-06T10:44:11.353Z" }, - { url = "https://files.pythonhosted.org/packages/3e/bf/1cfda5b5e6bf26617812b4a31662ef2220d2ad04e0a55b8ff9eb36e56a5c/xxhash-3.8.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:db77278a6eddadbf44ce5aae2fee5ebb4d061f026b1ce2130d058cd4d7a7b670", size = 220284, upload-time = "2026-07-06T10:44:12.683Z" }, - { url = "https://files.pythonhosted.org/packages/70/93/45dc0ad7913b69e5b08bd039236cf628380e4c9cc76a8a4c6625a328e058/xxhash-3.8.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1c332dd48b8cb050da2bb2a3c96d72b1664168650a250ef9718e423df7989e05", size = 240980, upload-time = "2026-07-06T10:44:14.297Z" }, - { url = "https://files.pythonhosted.org/packages/e9/02/f28ba7d17f2c1410ee397982c817ab1bd5b2701070c2d2c373539aad000a/xxhash-3.8.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a5cd96f6dcdf4fa657b2d95668d71d58455248f98712ecffaa9c528edf40ccae", size = 264526, upload-time = "2026-07-06T10:44:16.017Z" }, - { url = "https://files.pythonhosted.org/packages/5c/d0/f10651cec2c7981b20d693deae6bdfc438427d92be2db4ccabb6181f0021/xxhash-3.8.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c959f88160b13b4e730b0d75b459b7929fc0d2225c284c9683ac95d6feeeac6a", size = 241369, upload-time = "2026-07-06T10:44:17.698Z" }, - { url = "https://files.pythonhosted.org/packages/ff/40/136e0cbaf5db51e191423b1c98643593189f02b6cd90837bf64b19113d70/xxhash-3.8.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:027dee4355f3fcc41481650d846cf6cfc895c85a1ab7acd063063821a0df5b4c", size = 473186, upload-time = "2026-07-06T10:44:19.354Z" }, - { url = "https://files.pythonhosted.org/packages/4b/3f/6aa808a96bdc43dba9a740dec56c744526ee3c0019e32c75e810fa90ae4d/xxhash-3.8.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ad52a0e4bcc0ba956a953a169d1feec2734a64981d689e4fc8f490f7bf91af60", size = 220092, upload-time = "2026-07-06T10:44:20.956Z" }, - { url = "https://files.pythonhosted.org/packages/47/28/a8675e78a9ced96dab853416162268e10e05b452e95db7888cf69f58ac5f/xxhash-3.8.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5d3dfb1f0ff146da7952867a9414f0c7a29762f8825a84879592612fd6139342", size = 309846, upload-time = "2026-07-06T10:44:22.543Z" }, - { url = "https://files.pythonhosted.org/packages/89/0f/7fe4d4ef4e69f0033e012396ee2a115886bca7b10b7e45ce398626436bfc/xxhash-3.8.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:4482380b462ca9e59994d072a877ecadd1cf51102daeeab2db696f96ab763723", size = 237659, upload-time = "2026-07-06T10:44:24.135Z" }, - { url = "https://files.pythonhosted.org/packages/38/8f/83e9e31d4ed57fe963b99cb5b13a23e3e0f0dad1885aa0ebd2a7819dd423/xxhash-3.8.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:950ac754d16daea42038f38e7465eb84cda4d08d7343c1c915771b29470f065a", size = 268737, upload-time = "2026-07-06T10:44:25.875Z" }, - { url = "https://files.pythonhosted.org/packages/57/79/7e7de46dbe5d1f49afc96a0bc42e6b8df24eae3d6bad6007b99e42f48430/xxhash-3.8.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:0418ec8b2331b9d4d575fc9284427e8e69449d7172e99e1a86fcdd1f51a0a937", size = 224955, upload-time = "2026-07-06T10:44:27.777Z" }, - { url = "https://files.pythonhosted.org/packages/ec/34/b8540839e958d5ef5c6101af6f16032109e7099698ae8edbc8dcefe4d8f4/xxhash-3.8.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:32a94ad2763e0263d9102037d349002c3d3c401e42770542c3eeb4801f311661", size = 239653, upload-time = "2026-07-06T10:44:29.422Z" }, - { url = "https://files.pythonhosted.org/packages/ce/87/a735d05f7f859354acadabe470ff40e2c46672275f96dcf096a761904def/xxhash-3.8.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:89b11a5cdd441aa463f6d34ca0241602bc09b001a76994b6059828494108c673", size = 300213, upload-time = "2026-07-06T10:44:31.401Z" }, - { url = "https://files.pythonhosted.org/packages/98/31/3e1cb020237b68117fc212dc5f9753b87f865b4dfee7c1ce62d0836955b5/xxhash-3.8.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:09a204dd4bb0823daf938cdd0dc8057d5f1e14fe3cbde929424255f23f9de872", size = 442508, upload-time = "2026-07-06T10:44:33.023Z" }, - { url = "https://files.pythonhosted.org/packages/23/bf/f80090622141cc734b039ce1d15ce3ff6dced375e9680249bf5b9b8c6bf9/xxhash-3.8.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:e710ad822c493fb80a4fbc1e3d0a807b1422cb90adbe64378f98291b7fa48fef", size = 216853, upload-time = "2026-07-06T10:44:34.983Z" }, - { url = "https://files.pythonhosted.org/packages/a6/a3/60157acecc307b238d3651c2483168e224b48b23a36ae6d6903588341d80/xxhash-3.8.1-cp311-cp311-win32.whl", hash = "sha256:5013be3bea7612852c62a7437f3302c1cfb91ca7e703b194459db0b2b2e0d792", size = 31936, upload-time = "2026-07-06T10:44:36.542Z" }, - { url = "https://files.pythonhosted.org/packages/59/5c/ef70c418d878d187b8da56d4cdc06aea6cf5e456b301e96e51e1d2cc8625/xxhash-3.8.1-cp311-cp311-win_amd64.whl", hash = "sha256:f377012b86c0a23a1df0cf5a1b05aa7187649e472f71c7892e5f2c2815bbe74f", size = 32724, upload-time = "2026-07-06T10:44:38.177Z" }, - { url = "https://files.pythonhosted.org/packages/2c/25/f008db952cec6b2a26445b456eeed2ebebd65e08e848ebe09ed6ac0634e6/xxhash-3.8.1-cp311-cp311-win_arm64.whl", hash = "sha256:836f11d4474d3228e9909d97216faa4f7505df41cfaf3927eb29809de785a78d", size = 29212, upload-time = "2026-07-06T10:44:39.577Z" }, - { url = "https://files.pythonhosted.org/packages/42/91/f65c34a7aa7b4e7cf4854f8e6ef3f7ee32ceac41d4f008da0780db0612f6/xxhash-3.8.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:e6e49370822c1f4d8d90e678b06dbcb08b51a026a7c4b55479e7d467f2e813bc", size = 34680, upload-time = "2026-07-06T10:44:40.932Z" }, - { url = "https://files.pythonhosted.org/packages/57/04/b10a245a4c09a9cfa88f8e9ae755029413ad1ac17047f9a61906e5ae0799/xxhash-3.8.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:220d68130f83f7cc86d6edfdeab176adc73d7200bf3a8ec10c629e8cf605c215", size = 32397, upload-time = "2026-07-06T10:44:42.196Z" }, - { url = "https://files.pythonhosted.org/packages/3a/75/45ab795b5945b6388583bd75202106af505537935566c15a1577797a0e08/xxhash-3.8.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:4d365ee1892c1fa803536f8c6ce21d24b29c9718ec75eb856095c07830f8c478", size = 220549, upload-time = "2026-07-06T10:44:43.603Z" }, - { url = "https://files.pythonhosted.org/packages/13/44/5ba2bd0a14ddf4193fc7d8ec29625f659f22c06d60b28f04bf46305d8330/xxhash-3.8.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:852bfe059720632e2f16a6a4745e41d20937b2bf2a42a401e2412046bb6971cc", size = 241186, upload-time = "2026-07-06T10:44:45.534Z" }, - { url = "https://files.pythonhosted.org/packages/23/32/c4147def4d1e4538b906f82731e0ba23424377fc50a7cddd03cd284c8f63/xxhash-3.8.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2f8c25a7061d952de589bd0ea0eaadee32378ff83dd6a677b267f9cd86f401f8", size = 264852, upload-time = "2026-07-06T10:44:47.199Z" }, - { url = "https://files.pythonhosted.org/packages/6c/bd/71ed14f4f0318bb7fd7b2ec51999413487fa8da8d41208e84d50d1ef0f98/xxhash-3.8.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:868a8dcaff1a84ba78038e1cef14fc88ccf84d9b4d12ea604696e0693296aa56", size = 242663, upload-time = "2026-07-06T10:44:48.846Z" }, - { url = "https://files.pythonhosted.org/packages/91/09/70af22c565a8473b3f2ae73f88e7721af281bc4a575236dbd1970c9f76f6/xxhash-3.8.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6536d8677d2fff7e64cd0b98b976df9de7aee0e69590044c2af5f51b76b7a170", size = 473510, upload-time = "2026-07-06T10:44:50.695Z" }, - { url = "https://files.pythonhosted.org/packages/18/96/34db781c8f0cf99c544ca1f2bc2e5bf55426e1eb4ca6de8ea5da56a9f352/xxhash-3.8.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:82c0cedd280eab2e8291270e6c04894dbc096f8159a39dcf1807429f026ca3cc", size = 220469, upload-time = "2026-07-06T10:44:52.422Z" }, - { url = "https://files.pythonhosted.org/packages/93/5f/9a184f615fa5a4dce30c01534f62946ce5a11ce40f73785cbd356ccabaa9/xxhash-3.8.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:daa86e4b68221d38e669bb236ba112d0335353829fb627c82e5909e4bbe8694c", size = 310290, upload-time = "2026-07-06T10:44:54.142Z" }, - { url = "https://files.pythonhosted.org/packages/a9/dc/9b9a9789011ee153723a5eb9e7dd7fcbae2ba9b3fe7a729249ca7c252056/xxhash-3.8.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2bc7113e6f2b6b3922dd61796ca9f36af09da3773898e7003038dc992fc83b8d", size = 238173, upload-time = "2026-07-06T10:44:55.693Z" }, - { url = "https://files.pythonhosted.org/packages/ec/4d/71c6005ada9dcb608a4e1902e8475ecadb5f3fbfa04e1e244d276a2d0c43/xxhash-3.8.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:5eed32dad81d6ba8e62dc7b9ffa0500199385d7810a8dd9d4eafaceb8c6e20bb", size = 269026, upload-time = "2026-07-06T10:44:57.424Z" }, - { url = "https://files.pythonhosted.org/packages/2f/87/d6c036ba25dfbd9c8633be5aa86fc9474bbb9e2c68212a841d090abe7344/xxhash-3.8.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:83697b0ea1f10e7f5d8b26a4906fa851393c61546c63839643a2b7fe2d868061", size = 224970, upload-time = "2026-07-06T10:44:59.085Z" }, - { url = "https://files.pythonhosted.org/packages/48/62/4c1f035a41c5752aa05e195b6c904c07b94fe9061a16de61e72a6e6b135f/xxhash-3.8.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:36fc69160465ae75c6ec4ac9f781bb2aa16ae7ff869e73c26fee85fbb11b9887", size = 240820, upload-time = "2026-07-06T10:45:00.746Z" }, - { url = "https://files.pythonhosted.org/packages/da/14/d39d565069b87e86d21a2af2a31d04db79249d25aa8d5b62959056a89857/xxhash-3.8.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:445e0f5a31f2f3546ae0895d4811e159518cdc9d824c11419898d40cfadb677e", size = 300619, upload-time = "2026-07-06T10:45:02.716Z" }, - { url = "https://files.pythonhosted.org/packages/13/22/75467acc887edc8cf71c97ab1708feb3df7a88bda589b9f399765c6387d2/xxhash-3.8.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:dfe0580fbfd5e4af87d0cc52d2044f155d55ebd8c8a93568758a2ea7d8e15975", size = 443267, upload-time = "2026-07-06T10:45:04.653Z" }, - { url = "https://files.pythonhosted.org/packages/a4/b6/1da3baa5fa6ef705e3425fddd382be7dfc4dfba2686df90a20f16e9c7b1b/xxhash-3.8.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:095e1323fa108be1292c54c86da3ef3c7a7dc015b105a52133973bc07a6ad11a", size = 217338, upload-time = "2026-07-06T10:45:06.304Z" }, - { url = "https://files.pythonhosted.org/packages/78/dd/b5295a9f97484e7a1c2b283a742ca45e3104991c55a1ef670dde161829ba/xxhash-3.8.1-cp312-cp312-win32.whl", hash = "sha256:bf28f55e427e0483acb1f666bd0d869b6d5e5a716680c216ad7befe3d4cfba2e", size = 31970, upload-time = "2026-07-06T10:45:07.823Z" }, - { url = "https://files.pythonhosted.org/packages/ec/31/3fa0b807d7e21515cd975e7fe5c039d52ac3e9401a96d6ad68dae6305215/xxhash-3.8.1-cp312-cp312-win_amd64.whl", hash = "sha256:2256e80e4960ee282f63428adb349cb7f8bd8efe4db770d88eb815f4b9860724", size = 32741, upload-time = "2026-07-06T10:45:09.42Z" }, - { url = "https://files.pythonhosted.org/packages/b8/05/86feada74e239600e6875aa507afb40482a89b92700aa74a92da83bdcb77/xxhash-3.8.1-cp312-cp312-win_arm64.whl", hash = "sha256:9df56e6df96a60590935e22373041cccc91fd55858763dcffb55bf63b3a2b396", size = 29234, upload-time = "2026-07-06T10:45:10.809Z" }, - { url = "https://files.pythonhosted.org/packages/6b/8c/446bb782cd0d27007a917b5569a08dd73219c3e8d6e459014db104b27bdb/xxhash-3.8.1-cp313-cp313-android_21_arm64_v8a.whl", hash = "sha256:3c682fcd96eb4bf64be32a4d95f96107e1588005831bd8a741b324fdda01b913", size = 38562, upload-time = "2026-07-06T10:45:12.425Z" }, - { url = "https://files.pythonhosted.org/packages/d7/ec/c0c45627eaa6be7a5d6117423adf8f7a15b17ee74b4b17072cca5959a225/xxhash-3.8.1-cp313-cp313-android_21_x86_64.whl", hash = "sha256:036a024d8b9c01f70782e09ed98d532e76fd23f950ae7154bd950fe94e90ebec", size = 36656, upload-time = "2026-07-06T10:45:13.932Z" }, - { url = "https://files.pythonhosted.org/packages/f6/94/8324c04cc7597154caaeba6c094e01fbd2e7601d01e7a13eea9f5420e77b/xxhash-3.8.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d6a5c0bce213b23b0166fe0d35bcbbe23ce4b968f257cc7eb6fd57cb8e1e6297", size = 31169, upload-time = "2026-07-06T10:45:15.687Z" }, - { url = "https://files.pythonhosted.org/packages/40/a4/beb6bb26e1184e126dbe7a5682330214ef54dcfbf882078aa9f4b5428d42/xxhash-3.8.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:5177aa44eddaa97c6ef0cc00c6d540edb64d51781d2f8fb941612ec61a92c9ed", size = 32177, upload-time = "2026-07-06T10:45:17.035Z" }, - { url = "https://files.pythonhosted.org/packages/56/0f/fc4c92a5a528f839b34b6419b2e53c8597f2a629d5a1f5d721f65bfa1fd6/xxhash-3.8.1-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:7801b7223db017b9c0c9ccf37e44524edb35a1544a1c032add22c061c6af0276", size = 34642, upload-time = "2026-07-06T10:45:18.39Z" }, - { url = "https://files.pythonhosted.org/packages/d4/58/edbfb141d4000767ac6a9694f8ac0763e2c2e983e65c9e31620ba56e2667/xxhash-3.8.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9e80238259655bf69d7bcd08226a970d7f42605f3157786bfa76dd13472d7fa0", size = 34684, upload-time = "2026-07-06T10:45:20.033Z" }, - { url = "https://files.pythonhosted.org/packages/07/3f/5072f1f0f5714186f0ac2a0b5a4929ce30d4b845e94886b6c01b6ebda0be/xxhash-3.8.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bcab50a389cc04d87f90092af78a6adba2ab3deca63175a3344ca83514045315", size = 32401, upload-time = "2026-07-06T10:45:21.414Z" }, - { url = "https://files.pythonhosted.org/packages/49/c7/802ea2f9c2ed59219934d6d65c470d502b1788043eae277a52af8658bda6/xxhash-3.8.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:a2489d3a776fa380cb8e71f54c7fda268a9baf3de9b1395093fd280f95735907", size = 220617, upload-time = "2026-07-06T10:45:23.234Z" }, - { url = "https://files.pythonhosted.org/packages/99/a8/e10488efd31fcb13fcd6acbc6e788f10c6f8e3a0cc4ae3eb89dc19c55a12/xxhash-3.8.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:32ab1e5432690276e71192be7401b55f96db2d0eedea5d44eb1f164505669cc0", size = 241295, upload-time = "2026-07-06T10:45:25.364Z" }, - { url = "https://files.pythonhosted.org/packages/18/cc/14180b17d44892a631f8ae7323c30bfbb1328efc8209e528a480293528ac/xxhash-3.8.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b30e01a0b97a4bc3f519a4d7a82da3dc53251fb0de5eeea8660dcd4ff094c0c2", size = 264688, upload-time = "2026-07-06T10:45:27.09Z" }, - { url = "https://files.pythonhosted.org/packages/a9/72/a14019d0c5f6c41ee407a503036ae32787c91325ca218a96a9b5627be651/xxhash-3.8.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1f44275ddb0978b67a58a951501903f04d49335a91f7681c9ce122ecb8ccb329", size = 242740, upload-time = "2026-07-06T10:45:28.753Z" }, - { url = "https://files.pythonhosted.org/packages/68/08/92550e556c6fcfcb96c6a336945eb53a431ed43120ed749636debb16c5cf/xxhash-3.8.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e3b87cbd974512c0c5fc7b469c36b2cdc9ee6d76e4ec78bccb2c7184611c49b0", size = 473599, upload-time = "2026-07-06T10:45:30.524Z" }, - { url = "https://files.pythonhosted.org/packages/29/83/e361d3c1acd1b21e1d489616de6fa4aaf843365d8179f612e3743eac20a9/xxhash-3.8.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:98ee81b4b7f3023c9cb04a78cc67610baffcb5812d92f2096cb5a5efc6f19437", size = 220559, upload-time = "2026-07-06T10:45:32.979Z" }, - { url = "https://files.pythonhosted.org/packages/05/01/006a4243c2c2a6831827f9999f6d1c23feeef100eb023c1f886022a00bf3/xxhash-3.8.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:2666f059a1588a99267e33605365ed89cea92f424b3522806a9f4bd8ad2e3d62", size = 310383, upload-time = "2026-07-06T10:45:35.875Z" }, - { url = "https://files.pythonhosted.org/packages/d8/20/af388e8bf9f9a0f89eeef7d2a1935d176ee1c20bc6adeda05035879379cf/xxhash-3.8.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b0093cf7eeb91b84776e8742113afa4bdf47533d36cf719179aaaf1f56f6f8bf", size = 238228, upload-time = "2026-07-06T10:45:38.02Z" }, - { url = "https://files.pythonhosted.org/packages/63/6b/4666579a87eebd1744663c404297355fa0658617b015cedfa58810ee7036/xxhash-3.8.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:3a800912a2e5e975d4128969d645c4a2a80aa886ccd6c9b1c6f44529e327e8cf", size = 269137, upload-time = "2026-07-06T10:45:39.954Z" }, - { url = "https://files.pythonhosted.org/packages/de/d3/e963a8a46f900a137d91b02144d8ea07a8f812971b138204a3b2f8b8e55c/xxhash-3.8.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:0fe37f72a207223d22a4eddc3149d4298993385aa9daef25c039246ca5a309f3", size = 225068, upload-time = "2026-07-06T10:45:41.718Z" }, - { url = "https://files.pythonhosted.org/packages/aa/80/9d181dbcde4b0fe48375f48833a5832d4b8cd2b349b15110c92ee472d874/xxhash-3.8.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:5db43f249b4be9f99ef4b967863f37094fb40e67effafb78ba4f0356b6396104", size = 240874, upload-time = "2026-07-06T10:45:43.414Z" }, - { url = "https://files.pythonhosted.org/packages/39/15/ce3ab5a1cd27ead25a5196e55a7284220f6ad6e316da494ffd900b2b600f/xxhash-3.8.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c4ed42965c2cd9081f011be22f69d0e65d3b6165fe7734072fd0c232840bbd4e", size = 300702, upload-time = "2026-07-06T10:45:45.135Z" }, - { url = "https://files.pythonhosted.org/packages/96/c0/2281a8ab5f2a62dbf57a23c58a01ccc1d98abf40f71193c8a81f59e759b5/xxhash-3.8.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:3557bec8fcb11738a8920eeb68974bc76b75262f6947998d3147954ce0a4b893", size = 443351, upload-time = "2026-07-06T10:45:47.188Z" }, - { url = "https://files.pythonhosted.org/packages/81/2e/071a58c1a53a52d4f7a3aa0987be0c396dffd40da8204805fe1b130a81f4/xxhash-3.8.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:00de40f3b42240db23a82a5c682b55d7263d84a26a953240c1aee463409660e3", size = 217396, upload-time = "2026-07-06T10:45:48.925Z" }, - { url = "https://files.pythonhosted.org/packages/68/44/36ab58134badd9d3433fc7b53c4ca8d113d8e807782885628640f8297a4d/xxhash-3.8.1-cp313-cp313-win32.whl", hash = "sha256:b5196cc2574cfec572a5f3fb7cfa5ade27305ae3d06516a082132441aff4c83a", size = 31974, upload-time = "2026-07-06T10:45:50.591Z" }, - { url = "https://files.pythonhosted.org/packages/96/2a/2a0b84798448e766f7b89ceed073cb0cb5a43fc9ebbacbdea74a38de18e3/xxhash-3.8.1-cp313-cp313-win_amd64.whl", hash = "sha256:538f5f865df6cd8c32dd63158a0e5b4f5dd08d732a7da8b7228a5a0776c8ce55", size = 32739, upload-time = "2026-07-06T10:45:52.221Z" }, - { url = "https://files.pythonhosted.org/packages/d4/60/bb51dbf7c363ff88a7cbd50b7959718219577ef44d7cf255929ffc4a2194/xxhash-3.8.1-cp313-cp313-win_arm64.whl", hash = "sha256:a6617f30641ba0d8baa1635fbefb1dffc5165ec36d26921bd5cee13497cd937a", size = 29239, upload-time = "2026-07-06T10:45:53.714Z" }, - { url = "https://files.pythonhosted.org/packages/56/d3/827ca123c2ee5443a6aaed3c5dd199237dc2f010e2bebd7ec09ef36f3a5f/xxhash-3.8.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:bfcd82852c62a60e314670a9602de354c4460f8adad916e2e42a20860c7870bc", size = 34964, upload-time = "2026-07-06T10:45:55.535Z" }, - { url = "https://files.pythonhosted.org/packages/05/67/67ae2a3ccdeb8b8ef025d35aee9edd1d26c3abe5051d47da9286232afbf8/xxhash-3.8.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:08ea2081f5e88615fec8622a9f87fbe21b8ea58d88cfc02163ca11026ee62a92", size = 32697, upload-time = "2026-07-06T10:45:57.288Z" }, - { url = "https://files.pythonhosted.org/packages/38/5a/3d3994346e1f45493679cb5c1ffc2bf454e410e9d1e8a662d253becee91e/xxhash-3.8.1-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:2e32855b6f9e5b18f449e59d45e3d5778bdeb660632ef2693cca267a11246c75", size = 225954, upload-time = "2026-07-06T10:45:58.897Z" }, - { url = "https://files.pythonhosted.org/packages/3f/2c/53169270309b7cd8e05504e07fe123bac053b89d00ac63617faacf0a2ec0/xxhash-3.8.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a6e088bd7870775624256a0d84c2a6714afd223b2eeb56b0ca58398e52a32fda", size = 249776, upload-time = "2026-07-06T10:46:00.977Z" }, - { url = "https://files.pythonhosted.org/packages/70/e0/5c551d8d592f944506f7c5185e210255c15e672a3c6008c156a1bd9b775e/xxhash-3.8.1-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:72eb5ae575cc7ae2b23f6f8064a8b10f638c7149819ae9cc6d20ebd4d37a1629", size = 274776, upload-time = "2026-07-06T10:46:02.869Z" }, - { url = "https://files.pythonhosted.org/packages/a0/2a/d3a762270cee2d7bcd0e25e28c623e5f3f5c0dc637b66e3e47dd5b0bb3f0/xxhash-3.8.1-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d0b48cdf690a64cedf7258c3dc9506cc41fc86edd7739c40e3098952265dc068", size = 252056, upload-time = "2026-07-06T10:46:04.688Z" }, - { url = "https://files.pythonhosted.org/packages/c1/8f/b78e4373b2cb6d1c42af60ea2d7e9146ad0710b239ac7f706d5d31d5bb98/xxhash-3.8.1-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fb9e256a357dfcede7818c6d34e70db2d6b664394803d1de4b6984d2de76c0f1", size = 482108, upload-time = "2026-07-06T10:46:06.498Z" }, - { url = "https://files.pythonhosted.org/packages/e6/0d/642d923336ea61a15f8ce64fc7e078729e6e06c3a026e517fa79b2c23b7a/xxhash-3.8.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:51f71a6e2ad071e70c937e41fcb6c19f82c3f9f49831eba850ed4a106ffbb647", size = 226739, upload-time = "2026-07-06T10:46:08.598Z" }, - { url = "https://files.pythonhosted.org/packages/a6/0a/a37d6da6427d45a8d23e3ee3a0ca9c9d4a90364849c6637fe2963a755f9b/xxhash-3.8.1-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e4a6443968c4e8dc69967e12776776a5952c119cc1bd94168ad1c5ad667c2be1", size = 319658, upload-time = "2026-07-06T10:46:10.504Z" }, - { url = "https://files.pythonhosted.org/packages/4a/51/ebbd40da8a3f1bc53b4b7a9a87f8e28bd95c5f21bc14b8a57860cf367d1b/xxhash-3.8.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:714503083a1f2065c9ad15340dd49ac8a8e948a505a705ffa1750cb951519113", size = 246059, upload-time = "2026-07-06T10:46:12.634Z" }, - { url = "https://files.pythonhosted.org/packages/24/4c/d9014030147e1f0bb26e7da47aa240dd9ec61c763c573e558111d869f8e1/xxhash-3.8.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:77f74e45a1e5574bbbf80181c8027b3a4c65c2248fffbd557bd596fff13102f9", size = 275535, upload-time = "2026-07-06T10:46:14.614Z" }, - { url = "https://files.pythonhosted.org/packages/84/86/caee2db41fadcd5a25aa4323213f9afec5a8586d4e419241e3d659362bd7/xxhash-3.8.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:4e0e1b0fb0259c1b75d1251ac0bb4d7ab675d36f7a6bf4ba6aa630dae94f9ffa", size = 231292, upload-time = "2026-07-06T10:46:16.452Z" }, - { url = "https://files.pythonhosted.org/packages/0b/60/f52f08bcdc904c4514ea5c25caa19e9f3214144434a6ff96dc82dc1cbddd/xxhash-3.8.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:10e4393ec33633c2f05ad01869e546ad080b1a18f2650503731f153774608b31", size = 250490, upload-time = "2026-07-06T10:46:18.318Z" }, - { url = "https://files.pythonhosted.org/packages/24/a0/94dc7ae310838f250669c6ad7168e6d6fca17d49dac1053f06dc232c4a56/xxhash-3.8.1-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:b3ba794c3d885803db6c3116686923f1ec13bc86e621e169a375282b63ea1cc6", size = 309861, upload-time = "2026-07-06T10:46:20.503Z" }, - { url = "https://files.pythonhosted.org/packages/8b/f9/adeead7d0eb28cdfc2832544ea639ffbc6749ccde47a8e228d667459182e/xxhash-3.8.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:57189a69c0891e4818853feaa521c972d22c880a001453addea015f48e3c3398", size = 448739, upload-time = "2026-07-06T10:46:22.79Z" }, - { url = "https://files.pythonhosted.org/packages/04/a4/22ec0e07db57d901c9298ae98aa3cf2be45bafded6f07c13131e85b89032/xxhash-3.8.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:d59e71153fe9ff85648d00e18649b07e9b22c797291abb7e27274fa06df8b838", size = 223657, upload-time = "2026-07-06T10:46:24.831Z" }, - { url = "https://files.pythonhosted.org/packages/94/32/8a9531f37b59e5a013003db7cb7414baf4ce7e0e1268e0d5947cd3d6a2df/xxhash-3.8.1-cp313-cp313t-win32.whl", hash = "sha256:5b96f0024e9840f449bd91b2d005c921a4b666055a0d1b6492463799f32aae22", size = 32377, upload-time = "2026-07-06T10:46:26.86Z" }, - { url = "https://files.pythonhosted.org/packages/e7/ab/2ca45fd7f671de5f81fc297ef1c95080b40c86ec6be0cc6034b8f7707ac8/xxhash-3.8.1-cp313-cp313t-win_amd64.whl", hash = "sha256:37d5a56c36dcc0b9a87b814cd992598d33863ff683749de6c86081f278d5e629", size = 33274, upload-time = "2026-07-06T10:46:28.39Z" }, - { url = "https://files.pythonhosted.org/packages/5a/54/20d7163463ddb6438b73a427d1655a77a502cf9b9b0c3ada3599629d9c0a/xxhash-3.8.1-cp313-cp313t-win_arm64.whl", hash = "sha256:6696c8752aded28ff3b16f33ef28ce28fb5d209b80c206746f943199fcf5fd65", size = 29375, upload-time = "2026-07-06T10:46:29.962Z" }, - { url = "https://files.pythonhosted.org/packages/c2/8b/df2ba04f22a6cd6b39f96a6577329a8471a55c90ef8d8e2f7c102363613f/xxhash-3.8.1-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:9db455cb649dcfe4504d6d68a6d83a7315a99a3ca59871dc3ff840671f99adba", size = 38430, upload-time = "2026-07-06T10:46:31.496Z" }, - { url = "https://files.pythonhosted.org/packages/b2/4f/6a059e8ad3ca8deedc91dfe335b211204900895152212c03ebbe721de68b/xxhash-3.8.1-cp314-cp314-android_24_x86_64.whl", hash = "sha256:affb37f152e55b5e4494bb9d0107f7bb08515c6704fbed82d9f61214d74adc17", size = 36558, upload-time = "2026-07-06T10:46:33.078Z" }, - { url = "https://files.pythonhosted.org/packages/cb/95/40be178205acce092ae418feb20ac737b32a02c7b864926ed0717354c9f8/xxhash-3.8.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:460261045936975193bfd20549a0de1cd52a33b405cbb972f0d80940c42266cd", size = 31181, upload-time = "2026-07-06T10:46:34.793Z" }, - { url = "https://files.pythonhosted.org/packages/3f/89/2da4dbf051bafa156c0e3f12012db2b0ac3b84ff37ca1f021f6bfffcdfbb/xxhash-3.8.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:38c887aedb696ef8bca19983206d270848558cfae4a91afa6a2fb05dde58ffc5", size = 32192, upload-time = "2026-07-06T10:46:36.393Z" }, - { url = "https://files.pythonhosted.org/packages/7c/4e/e000bbae3566bc8e0be771a8a0f294aa99075e3f0bc4ef43922ebffdebc8/xxhash-3.8.1-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:594131ce1aad18db3689781f806db1b065cdaa04f4df36b4c038d2013aefd0bf", size = 34691, upload-time = "2026-07-06T10:46:38.1Z" }, - { url = "https://files.pythonhosted.org/packages/b4/4a/ea954aacc7d1c8711880ac2b55da94429a9b4296b151c4fc0966549ca1ee/xxhash-3.8.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:78c794b643d214f1522e7a288bcf5a2de120d26cd170516749a4009dc92722c9", size = 34807, upload-time = "2026-07-06T10:46:39.647Z" }, - { url = "https://files.pythonhosted.org/packages/ca/29/df598e738ff37558ac627264deb2e560902d9bf7f46d3bd5175c9eee593e/xxhash-3.8.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:af0c9fedc4a2c24e8664953882fe8185f3790b8338c9c700f76f5ad660817711", size = 32410, upload-time = "2026-07-06T10:46:41.359Z" }, - { url = "https://files.pythonhosted.org/packages/59/9c/81ab40e7d33ada0b3df5d1bc884894d15dbf4f805cd645b685e4606bb8e0/xxhash-3.8.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:115772daeb71b2f3b9381177017f53e6cf3f3439c840737fdabd21aba6e54920", size = 220564, upload-time = "2026-07-06T10:46:43.463Z" }, - { url = "https://files.pythonhosted.org/packages/fd/6f/62ae6f5c8606320a0e2a41c2dc8c6d91cc5d63d0f84dd9582e9543779dd8/xxhash-3.8.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:000435984a0469b0f822fe76f35bddea0f96a4d6521b3339a60a6428cdee1edc", size = 241462, upload-time = "2026-07-06T10:46:45.509Z" }, - { url = "https://files.pythonhosted.org/packages/15/a1/9c3a0ec6cb524396f551eddd102a76690a795494eb9784fc67542b0daa37/xxhash-3.8.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2f1c68394818e0595569c2ff3cbc1e6d5a36a434e796f5c526b987b80c8a8c62", size = 264491, upload-time = "2026-07-06T10:46:47.655Z" }, - { url = "https://files.pythonhosted.org/packages/64/f2/700a4674e4308eb59d2fdb973977e82eae231bea5044753fee5c9eec0e0c/xxhash-3.8.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:46b39976d008e2a845758650f0ff7136bca004f40da0c8798bd37ac37860154f", size = 242905, upload-time = "2026-07-06T10:46:49.857Z" }, - { url = "https://files.pythonhosted.org/packages/f3/8a/72d9874375c8d4cbc64a8cd1d659d5695a8765c3db82efa82dc5bd9f14d0/xxhash-3.8.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d5006c65ec507a333479e76e00e2c368781f16c24ededa764763956b32a0e93e", size = 473873, upload-time = "2026-07-06T10:46:51.953Z" }, - { url = "https://files.pythonhosted.org/packages/03/f0/6db07590ed7e0a77f186ef0bcea8d52553bf1ba57833e09467a2411f0f2d/xxhash-3.8.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c31a2649bcf1fe97cf11c79848d761df33ac46b3896942d31b640557b486ff6b", size = 220765, upload-time = "2026-07-06T10:46:55.41Z" }, - { url = "https://files.pythonhosted.org/packages/8f/10/00d12d8b8beabbf49a8bbc626fb9f40445145a8887eb41a6acfb69149ac4/xxhash-3.8.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8f759eed402448c2bdbb492e4fba1f20668ffe29688605ea61f0f67f9e4e386d", size = 310478, upload-time = "2026-07-06T10:46:57.729Z" }, - { url = "https://files.pythonhosted.org/packages/1f/f9/12a82394eefb0f185d15a7f7b9f627c61c475a72dd83718436a5b84b42ac/xxhash-3.8.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7b5f97ecfede10d5b2870383620e2d25c8561e217c7bf9081073802b54248d2b", size = 238393, upload-time = "2026-07-06T10:46:59.87Z" }, - { url = "https://files.pythonhosted.org/packages/20/f3/53f963e320b9ce678337aa7273f39ce692ded8b99e3d22a866ec722159ab/xxhash-3.8.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:1da930bbcac3e8fbe2191850e2abb57977a99348c12c4b385e1058ac1b0a9ecc", size = 268704, upload-time = "2026-07-06T10:47:01.806Z" }, - { url = "https://files.pythonhosted.org/packages/0a/50/5b5badbd87c82d9f9b5f58ac74a3f29ef08f6fc387b324b8fd482450b862/xxhash-3.8.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:747476436f6891b9773374ce8d48edcc8b12cb5b61b67c6fb6289633747d088f", size = 225015, upload-time = "2026-07-06T10:47:03.784Z" }, - { url = "https://files.pythonhosted.org/packages/30/93/3ca68265afe7b4e69435e08a7b6a1d9d0f2a071e889da1f8041ed00fe878/xxhash-3.8.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:4ef09bbc2519a93cd0f95f2ceb5f7b85919dffea643278e02362bf40e3c4bed1", size = 240951, upload-time = "2026-07-06T10:47:05.816Z" }, - { url = "https://files.pythonhosted.org/packages/dd/a6/27e19670c40f46b5e76e11f2f4713d21054804568425d870670e757172ad/xxhash-3.8.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:a5eed9d41995a83f3332b4e3396abb7f433cac584222bd7e305b606d8353861e", size = 300751, upload-time = "2026-07-06T10:47:07.95Z" }, - { url = "https://files.pythonhosted.org/packages/bc/fb/b33e27689959fe7ed2ae0b830af41560d65213943983afa9db3a8d481bce/xxhash-3.8.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:53f3ed9118397074ff63a79b66b7fec1c84c782eecde35c5bc94e420a971c231", size = 443480, upload-time = "2026-07-06T10:47:10Z" }, - { url = "https://files.pythonhosted.org/packages/26/60/0e0d973be5fe280753ef02fbc89349492ad6e903bf1dcb870b668f94b662/xxhash-3.8.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d247b34bf433c92b41689318fd25d246313cab2275a6a47e2efac178b80d6efe", size = 217657, upload-time = "2026-07-06T10:47:12.196Z" }, - { url = "https://files.pythonhosted.org/packages/ad/68/c9e3ecef4a9a417d464cb5bd200aa12f73192dee677901b9e08e0ad0d1bb/xxhash-3.8.1-cp314-cp314-win32.whl", hash = "sha256:d58ce8b6cfa9c4d2f230557f69caf7c06369e318015d0b19485095bc2c5963ab", size = 32690, upload-time = "2026-07-06T10:47:14.204Z" }, - { url = "https://files.pythonhosted.org/packages/d7/99/e9e44588c0b62837bbec5ba7927816de0afa03406b1a0b6c7a7e1d1a30a0/xxhash-3.8.1-cp314-cp314-win_amd64.whl", hash = "sha256:6cee733fe4ccb1737e0997135283c82341e5cfa9cf214b165f9087fb663aaf4f", size = 33460, upload-time = "2026-07-06T10:47:16.021Z" }, - { url = "https://files.pythonhosted.org/packages/45/2b/64f36d86380b3657ad9031967ab814f3ef31307174650853f69c18932ebc/xxhash-3.8.1-cp314-cp314-win_arm64.whl", hash = "sha256:58346024d47e84f7d8b3e7f5d6faa1d58acbbe49a8771497872059f58c1d8ea5", size = 30092, upload-time = "2026-07-06T10:47:17.81Z" }, - { url = "https://files.pythonhosted.org/packages/92/cb/18b64bff88c58a0ca209dc533e63cf02d7ae5aa6b1b9a9fd14e81b5dbd60/xxhash-3.8.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:01cab782f8a0a05ecad2c63d7ef10f7ab475f660e0d6419d069418c14d88de7c", size = 35024, upload-time = "2026-07-06T10:47:19.821Z" }, - { url = "https://files.pythonhosted.org/packages/af/1d/72d8a70520e5dcddb472ea0486d299da3240745a10658290cd7b5690ede2/xxhash-3.8.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:717b12fdc51819833704e85e6926d76981ffa3f780ef92e33ebb8b26d46bb230", size = 32697, upload-time = "2026-07-06T10:47:21.649Z" }, - { url = "https://files.pythonhosted.org/packages/9c/b8/e041f555903c56db3d0a731b3d72a6575d75e0ed868b1bd2e5176111ca44/xxhash-3.8.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:ec55d80e9b8a519d742669e0b49e8ce9e6747be42bf3c138158b6543a9c8e489", size = 226044, upload-time = "2026-07-06T10:47:23.612Z" }, - { url = "https://files.pythonhosted.org/packages/3a/7e/5cdcf06bf6ec4b5d2ac073feb23432ec1d603fd438864cbd2c09c7cb45e1/xxhash-3.8.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:98d8ac1129b4dd39098cffed94d1284aceb61c3aa396757ccc736ac392e4cee5", size = 249899, upload-time = "2026-07-06T10:47:25.812Z" }, - { url = "https://files.pythonhosted.org/packages/c0/c0/eb7e059cb5e1dba11fd30d2fdf882f56e5a417a3eaa43669d43623767f45/xxhash-3.8.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3bc0fa90830df1e1277f33cc6e55de9990b83c0319fd8c7412866cfde38b025e", size = 274892, upload-time = "2026-07-06T10:47:27.931Z" }, - { url = "https://files.pythonhosted.org/packages/66/74/a600aaf7cd39957fd1510adeedb1749c1e7eb82bd632a1153d9c664c3135/xxhash-3.8.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c73b6f652f0745425aa6378319c331293b5341756262e9408ed3d45f183375e6", size = 252243, upload-time = "2026-07-06T10:47:30.288Z" }, - { url = "https://files.pythonhosted.org/packages/ad/04/78d88fa75a6763e5d09bf1b947a392a27988903381b219006f92f3c68fc8/xxhash-3.8.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f6114692261eff4266386cdec0f7d87eee24e317ab397c218b7ae6a76b4c6339", size = 482191, upload-time = "2026-07-06T10:47:32.45Z" }, - { url = "https://files.pythonhosted.org/packages/7f/06/07a8aea1108d682de8791ce608cdf367d75ff4e7e57cd3c154bdc6f47b23/xxhash-3.8.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4df57c0b161ec1b3ed0526a67b0db0914b557e86ee8aae51887aec941b261542", size = 226877, upload-time = "2026-07-06T10:47:34.705Z" }, - { url = "https://files.pythonhosted.org/packages/ed/b5/86bade5618a524d2c06c4041aa2fe8e5749ce16e88afba60d67c1684a21f/xxhash-3.8.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9043877a917be88ccf230aa5667c1bd059bce80f4c2727e4defa1b29b7f48b08", size = 319794, upload-time = "2026-07-06T10:47:37.08Z" }, - { url = "https://files.pythonhosted.org/packages/23/69/9b1a2b89b1621bb740fbcb7beb512f60f99480c1bdc680c0c90e1f56ff75/xxhash-3.8.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:559e3cabe522231909f9de98ef06929edbd53782046bd21aae0c72db6f2a0775", size = 246202, upload-time = "2026-07-06T10:47:39.676Z" }, - { url = "https://files.pythonhosted.org/packages/08/ea/662ed6cb49f1d34078b6a3a3e0f3d29ff93fd7b5a03c0bc9ecfd9b2159c3/xxhash-3.8.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:264710bd335016f303763ce1275c6486df30bb57c2245c91b224c983d7ac39b8", size = 275628, upload-time = "2026-07-06T10:47:41.99Z" }, - { url = "https://files.pythonhosted.org/packages/13/f5/49fc9e4c6728a5a3bd8fe639199d2fa67609b3a84f938aff6e8568dd3e4f/xxhash-3.8.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:e14800b9b10bb39d7a60ad4a310e403164d7b8988a27ae933d4e40618a44088e", size = 231390, upload-time = "2026-07-06T10:47:44.233Z" }, - { url = "https://files.pythonhosted.org/packages/64/9d/3acaf8f599c0e0b30e910a3a11ba32929da53c86dc73c7c55fe6a010b4e9/xxhash-3.8.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:ea6a3e734b0fd41b82784a400be946821900daebe610c050a5e0760838a34f99", size = 250600, upload-time = "2026-07-06T10:47:47.611Z" }, - { url = "https://files.pythonhosted.org/packages/23/64/8acab4c5ec60dbe664b5b9858fd44c2413b07e535b09556a0a5022e78aa6/xxhash-3.8.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:cf399fac542a1c7a4734a435b93df2c55e858c7d31abf6c1bdf46f9ae67fbfd0", size = 310032, upload-time = "2026-07-06T10:47:49.88Z" }, - { url = "https://files.pythonhosted.org/packages/56/47/a0288d7329b1fe63e2734a32d19d444a96ae2b4810f545bc61e561224917/xxhash-3.8.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:44c89d915a75c11d2547eaee9098fcd80398987c4bff2974a0497a925bf92c07", size = 448882, upload-time = "2026-07-06T10:47:52.631Z" }, - { url = "https://files.pythonhosted.org/packages/01/e7/3071dfd3beb5c38204ce1cf56bf7749fce08de900fa92714b81d1d8ca1f2/xxhash-3.8.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:358650d5bda9c635da699c53adf4e8134af492ecc79c960f917eebf088bb6799", size = 223728, upload-time = "2026-07-06T10:47:55.093Z" }, - { url = "https://files.pythonhosted.org/packages/12/11/b99949f0ba2b07e9f9ffe83b9c86faa685f9080725dc21a916a607313be5/xxhash-3.8.1-cp314-cp314t-win32.whl", hash = "sha256:c240939e963653054fc7e4a17c382829cda4aa88a7daf0af841715dbded1b497", size = 33150, upload-time = "2026-07-06T10:47:57.274Z" }, - { url = "https://files.pythonhosted.org/packages/54/1c/09703eb341f8416e74e58d6c6732d4b5c46de59c942363203cb237cc95b0/xxhash-3.8.1-cp314-cp314t-win_amd64.whl", hash = "sha256:7258ee276e8772599bc19e14b36f6260306e21b637190cd7cb489a2449d48684", size = 34005, upload-time = "2026-07-06T10:47:59.434Z" }, - { url = "https://files.pythonhosted.org/packages/d6/f9/6ed7251bb6a8af10ac73b1821c60583d2826e5b2064e45a979c935287c98/xxhash-3.8.1-cp314-cp314t-win_arm64.whl", hash = "sha256:8f454166c2ffed45636c8d501741e649851ba2f346c4eb73a64c07ac00428f20", size = 30239, upload-time = "2026-07-06T10:48:01.874Z" }, - { url = "https://files.pythonhosted.org/packages/99/e4/4d8040435aeac814fc69ba63621565fbeb19229a138e2568324a26b2a45c/xxhash-3.8.1-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:39c9d5b61508b0bb68f29e54546de0ed2a74943c6a18585535a7e37356f1dd12", size = 32687, upload-time = "2026-07-06T10:49:42.803Z" }, - { url = "https://files.pythonhosted.org/packages/da/6a/975f1f2318c760e5bcec109ed379713ae645d8d856c2a3b9ec5d26857087/xxhash-3.8.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:83b9130b80b216d56fdf9e87131946b353c9627930c061955a101ea82b09fed9", size = 29879, upload-time = "2026-07-06T10:49:45.172Z" }, - { url = "https://files.pythonhosted.org/packages/08/0b/40a2a55ff52cf635bfdc5eae67a772bec85b4f44c6c737f73f6f528d51d1/xxhash-3.8.1-pp311-pypy311_pp73-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:8304be0982130954b7fd3aad18e2c6f8ee40254bc3d2e635991c16d77c91e2bd", size = 43246, upload-time = "2026-07-06T10:49:47.905Z" }, - { url = "https://files.pythonhosted.org/packages/9c/6d/56ed2b6b200f26fb474f3fd387d95d0601efcd5bb33430c90c68924bdd77/xxhash-3.8.1-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4b512261801b1e5fde7b6ebf2fef7977339c620cbbca88a0040ad9ad134f4d02", size = 38202, upload-time = "2026-07-06T10:49:50.59Z" }, - { url = "https://files.pythonhosted.org/packages/0d/a3/56864d895d1161a9f17502088e9c1fb7c06bde2c2efdde620d22bb7a9c43/xxhash-3.8.1-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:49aa8692507835dcc1e8ad8021f20c74c2dc13d83b5112e87877faa2a0035b20", size = 34448, upload-time = "2026-07-06T10:49:53.242Z" }, - { url = "https://files.pythonhosted.org/packages/6b/57/5c6e0908a47f61dca96d01c8ee6fce01ed1050611eb779083ba8758fed81/xxhash-3.8.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:345b07b78e2bf583d71682aa34ae5b5fab575f7a1cb31e10263ebbc6f89f8c42", size = 32869, upload-time = "2026-07-06T10:49:55.972Z" }, +version = "4.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/a5/1386f35da1475fcaeef42581deae73417c6d2a6a0b2d2e8914de18844dcd/xxhash-4.0.1.tar.gz", hash = "sha256:d55bf4ef10eb09b8b6866790e083d26d087d84caa3cc0946ba87c3ca7ecaf7b7", size = 101513, upload-time = "2026-08-17T08:24:08.557Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0e/58/bc81e25cceab76ce4b400441e3a43312bf3887fedbb2e5f80cc5a7dd7f75/xxhash-4.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8b4477edc03091f51f5309406d230851c23cf4822029e3bf40b8df53093fff1c", size = 38473, upload-time = "2026-08-17T08:20:34.303Z" }, + { url = "https://files.pythonhosted.org/packages/64/8d/d95e810c9a2930906f1fbd0e38f77554abb8e042a190aa9cbb24da39e9a2/xxhash-4.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:04f9a24de11a6647666d5302fd73d6a5224ce50ddc965fb0bb44cee736e6bd7c", size = 36228, upload-time = "2026-08-17T08:20:36.641Z" }, + { url = "https://files.pythonhosted.org/packages/72/be/ebcded2a32ba664a17a1737a91b6baa298bcda6942acdad81af81660b74c/xxhash-4.0.1-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:6a8c5ce76b94ba49f3be8a8f2611abc6564210702c72ac9e237ca2bebfd17794", size = 253292, upload-time = "2026-08-17T08:21:27.206Z" }, + { url = "https://files.pythonhosted.org/packages/52/2a/72d31d787d988d1130253bc34d249c553f02c9387e7dda789b6d5aa7963b/xxhash-4.0.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b4c8842fb19d78b5e8c2a52baf4c8357658cc56c62bc822b86ce0f942f28e286", size = 276545, upload-time = "2026-08-17T08:20:26.726Z" }, + { url = "https://files.pythonhosted.org/packages/39/ae/048f3b1f283a340bef3697fe5a9d4f10de1696a379af9af6b2352c24d82a/xxhash-4.0.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a43418e1a90b4809a9caf64aeb8b0696e3e1f300a323acc1e6ee2f93ae319fcf", size = 296295, upload-time = "2026-08-17T08:20:15.759Z" }, + { url = "https://files.pythonhosted.org/packages/8e/43/e9a593c81445c8e8d669402edb8264144624e7e5e2406df7d33e3c164d90/xxhash-4.0.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b3662719007e059abde7eddacf8517142ba076ddc7b30c807260e57d28c3c191", size = 279966, upload-time = "2026-08-17T08:21:22.217Z" }, + { url = "https://files.pythonhosted.org/packages/f9/4c/29da2b166955a300521c0abd498ad4481916c3743949b106192b781f58fc/xxhash-4.0.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:06d7fbd609503c3be5e65cdb6bb2f040d6a98574404e2e1d5c60815c97fff4aa", size = 509850, upload-time = "2026-08-17T08:20:32.731Z" }, + { url = "https://files.pythonhosted.org/packages/40/ff/e39e1900179ce7f0f23e7000d9fc672471a8d05b6b2dc657cb496c8975d0/xxhash-4.0.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:101aa300de6ceef3d9c77569706330d8921fc45dd82bceed2084f1e9f2557a24", size = 261005, upload-time = "2026-08-17T08:20:40.735Z" }, + { url = "https://files.pythonhosted.org/packages/89/79/76ee26720d13219458f4b2ec0b22f539fe2bcb1f83dc22a24be4cda4e285/xxhash-4.0.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e4296fcc790876a8b0f297edc83d3b088457b774d8f67b4636807f8a2ec69a79", size = 339620, upload-time = "2026-08-17T08:20:50.371Z" }, + { url = "https://files.pythonhosted.org/packages/2f/c7/56b53252d64ecb2f3a0d283b41033561b1bec9c268095150153b694c2e52/xxhash-4.0.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:57d7fa8f23908d173001c21a9e82bfc6ad997d1b6c270fb121812b7ed158891c", size = 272558, upload-time = "2026-08-17T08:21:33.883Z" }, + { url = "https://files.pythonhosted.org/packages/fc/76/83101a2f2ad3eb6b4b5d571e0aa394a576e3e23121707d507d80197ac385/xxhash-4.0.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:85e402dab0f9acd3604539747c6fcc57dc188a18af6ab07eb8189351cd32466c", size = 300417, upload-time = "2026-08-17T08:20:36.183Z" }, + { url = "https://files.pythonhosted.org/packages/34/5d/5be1166ec4fc4bc896e508dc51189a2dad200b373269a430e214fb152693/xxhash-4.0.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:fb59a0dd61fb2ad481c03fda399d78ce57dab6bb62c2c8fdb446a7ba4754b89a", size = 259286, upload-time = "2026-08-17T08:20:21.51Z" }, + { url = "https://files.pythonhosted.org/packages/77/6c/42f6201f13278787c58a6b3a1cd597b47e8665a7d4f68a3440d001c05a75/xxhash-4.0.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:0b20a06454b34f1531fc677c54efe2ecdec691ef9224f7fa919bf2c1363f7ff1", size = 278230, upload-time = "2026-08-17T08:21:47.62Z" }, + { url = "https://files.pythonhosted.org/packages/7f/37/3cb7f149a5a469c628604c33bec6d79764698b315700a4bbf1c6fb15622b/xxhash-4.0.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:f7db035447a0ac8959aa230c5d36545ecf9f547413eb1711c0ca6f0ba1418925", size = 329846, upload-time = "2026-08-17T08:35:10.922Z" }, + { url = "https://files.pythonhosted.org/packages/8c/ee/934eb1e11f4d0e95f3828825f8da4b6d59e338235d63edc3d929769262d2/xxhash-4.0.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:34ed93e20bfd98d722b902121643791eeb4b1641871e2dc63d0d4c2d93f187df", size = 477285, upload-time = "2026-08-17T08:20:46.297Z" }, + { url = "https://files.pythonhosted.org/packages/e2/0b/77835dcd7aec970db74f5724c94207ada83b3e2f5e1474ab44b9c8fe5ea5/xxhash-4.0.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f6247f5e23ee94f2557ac9dab738a336f607c6ff476fcf66ca70c3aef5eee15a", size = 257552, upload-time = "2026-08-17T08:20:58.211Z" }, + { url = "https://files.pythonhosted.org/packages/da/6c/a3ce7a1a9c4ec9ad8babba591a996a71c474ff9630c5fb04c8c9d8b995ca/xxhash-4.0.1-cp311-cp311-win32.whl", hash = "sha256:348c8f288dc961d6bbd1985c8152a3ed7a85c95df00e82320f0c5215d922a399", size = 34630, upload-time = "2026-08-17T08:21:53.323Z" }, + { url = "https://files.pythonhosted.org/packages/d9/58/60d2170e8cda0891aab25dcaa74797b420c3c6cde8a5bc8372f17b30c0cf/xxhash-4.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:ac0f291ab6485bd71f33941f9b92771318332a05d505460b41e893a549caadc0", size = 36992, upload-time = "2026-08-17T08:20:41.973Z" }, + { url = "https://files.pythonhosted.org/packages/ac/de/b229a39f9bbbe30cbcf9afaaa8993cb65286715c90a3b058c3769196ae02/xxhash-4.0.1-cp311-cp311-win_arm64.whl", hash = "sha256:72f34834518157a75e7090f328ee7a16c70c804cfc7c694fa069cc888e9fc03e", size = 33289, upload-time = "2026-08-17T08:20:32.176Z" }, + { url = "https://files.pythonhosted.org/packages/26/6c/dc7cffeadd06336cd934947187cd38abb263103bbc552ca0f55fe4ff595a/xxhash-4.0.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1ee523f51718e41753f04f7102bb4dc55a18d2ea5cbaceef8ec7ca08571bd428", size = 38444, upload-time = "2026-08-17T08:21:54.332Z" }, + { url = "https://files.pythonhosted.org/packages/75/c9/cf736f6db8c3273af18925061572db0d4357818a9ce425f4b5fb0021918e/xxhash-4.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:515a822c73abbf6a0b7c70976d9662be342835c9d78b8dc7c023411f39c35dbc", size = 36195, upload-time = "2026-08-17T08:35:13.004Z" }, + { url = "https://files.pythonhosted.org/packages/da/a2/ca1929354b6851529d0148f7f335b5e2b0281f83bab3e19f0896dc579796/xxhash-4.0.1-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:f5d031f35962e5483a613214e61f09fe24ab523062c3646d592dc16c4a217451", size = 253113, upload-time = "2026-08-17T08:20:52.152Z" }, + { url = "https://files.pythonhosted.org/packages/de/bb/542005206af59518bc8d78a210f1e0172217bc53beb32f64a5b632e72b6b/xxhash-4.0.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:da0264844a09b538c894e5eff25313d941deb4dedec2131b98418a71a3c9944e", size = 276525, upload-time = "2026-08-17T08:21:01.886Z" }, + { url = "https://files.pythonhosted.org/packages/1b/df/607cff25dcb0f1d35c3b04493f6ad8471edb03fd4eacbdcc5ceddef1f3e9/xxhash-4.0.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1642907941ee4b75aacc3db688af52ea02ca2305ab22af7ee686ed726b332684", size = 297703, upload-time = "2026-08-17T08:21:57.958Z" }, + { url = "https://files.pythonhosted.org/packages/15/ba/9d2275eea0b9d9c6b02921be23f7588356c60df95c763b25f0e045894d43/xxhash-4.0.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4af350bc3f329970c0e3a59af84a8a30998bf8a9167eb50cd48e59baaa1d7bec", size = 280252, upload-time = "2026-08-17T08:20:47.299Z" }, + { url = "https://files.pythonhosted.org/packages/1d/aa/2299d9f6369e550aef2abb64945e39daa34412725aa46a20d99b74d76f67/xxhash-4.0.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8ba782ca3bf1e81492611152b9a0d5264971339e95e34d69de0ac2c926be496d", size = 511041, upload-time = "2026-08-17T08:20:36.771Z" }, + { url = "https://files.pythonhosted.org/packages/83/97/31bd8b8279e6935a0719f6910ced15e9d5a2cd554b253f6027ce1b5a1c2c/xxhash-4.0.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:237b8f63a2a0fcfb1ffc06e21dad23add44e6d354b2b014364a1d41e419a4dee", size = 261812, upload-time = "2026-08-17T08:22:00.469Z" }, + { url = "https://files.pythonhosted.org/packages/2d/c1/d180a2da23c105d8e0b02d54f9f5841013fc81c233010ec781e31f1aee4c/xxhash-4.0.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:81507a68ba84c55241fb61cce1469f473a5da4205fc8ef6f698e5948eea8dd88", size = 339878, upload-time = "2026-08-17T08:35:17.626Z" }, + { url = "https://files.pythonhosted.org/packages/a8/3d/f584cd3172fe934f0f5a0a3917d0d7ce781f74d794fd43bb72be71c3ef6f/xxhash-4.0.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5f1ea31d61bcd2cd2f3ec4ca80a64187bbd7948f490b63cf0dcbc6e717b4c1e9", size = 272871, upload-time = "2026-08-17T08:20:56.067Z" }, + { url = "https://files.pythonhosted.org/packages/34/50/2c7956b2b551682e00b9aebce9ceb0a991a131d65f9850c09f5f9760be2e/xxhash-4.0.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:06713a5aaf1d0905c5579416c020c02e42b3ceb931e86c7d3b7fb85403dee3f3", size = 301440, upload-time = "2026-08-17T08:21:35.911Z" }, + { url = "https://files.pythonhosted.org/packages/eb/a2/0739f6482184a8026f4b022718f5f815d352059312e80696825433f0a8e7/xxhash-4.0.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:e8cda075b10bb3917b002c74a04f9e02b7d13b5bf732571404d51c52b11c7329", size = 260157, upload-time = "2026-08-17T08:22:01.416Z" }, + { url = "https://files.pythonhosted.org/packages/a1/25/b31a7bcf1d7d116842812e54f9b944843b4236ea4fa85634e8259f342212/xxhash-4.0.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c10b9206753b64aa791b35b201485477525b26fdec5bf86e8364c388a03e2592", size = 278233, upload-time = "2026-08-17T08:21:15.674Z" }, + { url = "https://files.pythonhosted.org/packages/db/e8/5293bae090fc6119dbc5fcf5c4cc0e1536394b52d73b7904d033836c73db/xxhash-4.0.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:f3e1a44af01b6692de0ec6caba5f0bf93ceb36896e02b7fc00952c6ea7ef39e1", size = 330270, upload-time = "2026-08-17T08:20:51.128Z" }, + { url = "https://files.pythonhosted.org/packages/72/9e/e2ab12d40921f3f34c9317637d65e011aeababf8288356ea8d527de2c1d0/xxhash-4.0.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:c6fc415b5568bd9accc7187f1729a99707330c0a67a8b9f93c1149ed573ed75d", size = 478555, upload-time = "2026-08-17T08:22:04.183Z" }, + { url = "https://files.pythonhosted.org/packages/6d/32/c6148d39a49efa95f39b4cf0d41ef35a487f3b30f6fb1fc8fe8d8eab577e/xxhash-4.0.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:96d8de55029d42251945531f6aa7590c32b48163c66a43bf29d8657d7446a377", size = 258174, upload-time = "2026-08-17T08:35:21.18Z" }, + { url = "https://files.pythonhosted.org/packages/8f/fb/0b04b68d6c5bc71c7a2c344f1287327b67e607f28fbcfd937697caca64b6/xxhash-4.0.1-cp312-cp312-pyemscripten_2024_0_wasm32.whl", hash = "sha256:0163b5d259de23ae9e07b7eabf435ce4704f6f205589a2b154e6af4be985ce1b", size = 20767, upload-time = "2026-08-17T08:21:00.806Z" }, + { url = "https://files.pythonhosted.org/packages/a6/be/476092aba34d1fcd313e1613a3bb3bc692f253d167b54bc90049043b5034/xxhash-4.0.1-cp312-cp312-win32.whl", hash = "sha256:1216f7ba5683f17a89eb7dcb4bc50a0b743dfe1902278d7b3d0786f538118433", size = 34669, upload-time = "2026-08-17T08:21:49.486Z" }, + { url = "https://files.pythonhosted.org/packages/aa/02/f9413d94fae43cec6d1a74c4f12156c6f4a7f5fd50e1d34defebdee3dec9/xxhash-4.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:5c2d525a3afabcd8e3549d85fc7e111fde6bc302d06a1893fe73adb79823415e", size = 37073, upload-time = "2026-08-17T08:22:04.886Z" }, + { url = "https://files.pythonhosted.org/packages/c1/83/6fe93c1b95acf962bc61a246df09dc2dcce895ccfc1080c9f48d0b652b92/xxhash-4.0.1-cp312-cp312-win_arm64.whl", hash = "sha256:86b2b12bec60c678ed8f5cca0258ad93a8928ebddb6ca7732f0875afe1451d1a", size = 33299, upload-time = "2026-08-17T08:35:12.708Z" }, + { url = "https://files.pythonhosted.org/packages/f3/dd/c707286b527722f776e1fb81dd202c45623355ba1a2972337a2a26075b2b/xxhash-4.0.1-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:8c9fe122444e129881afd1d4d1c7ac0d3ce2d91b68c2b40173b6025ff1c31f9a", size = 43639, upload-time = "2026-08-17T08:20:54.945Z" }, + { url = "https://files.pythonhosted.org/packages/1b/3b/bb71639a0f95635f61936a6f2653599c4261b645ddddd8d00f9dfe3613e2/xxhash-4.0.1-cp313-cp313-android_24_x86_64.whl", hash = "sha256:1f3346c5c287ac3c7f38b20380f55e8768230e7252af59fabcf3b87ab21e4256", size = 40657, upload-time = "2026-08-17T08:22:12.616Z" }, + { url = "https://files.pythonhosted.org/packages/3c/91/76f3f5385faa9886a36f21fcc603f40b4c0c40ce622382f133160c48b4d9/xxhash-4.0.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:4e5141543c7f7fe3087500bbb4ac2845cb528a980aa91f8f1e661e2292ff4a5d", size = 34708, upload-time = "2026-08-17T08:35:24.614Z" }, + { url = "https://files.pythonhosted.org/packages/9a/4a/f48f0e3e1b1ab072979fff2a5be899234e28090883e8b519d0b10215d708/xxhash-4.0.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f09ee747e2a5f876cc5ad56947734811828335e13b403dd8ea1e06d77a9dd48d", size = 35650, upload-time = "2026-08-17T08:21:09.337Z" }, + { url = "https://files.pythonhosted.org/packages/c4/53/b73d7472b196101ad1f57ed0674af3af803ac3e9ec2feadd650a7b262562/xxhash-4.0.1-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:acf52474b2494ef66dc7e0fb6d5e2b50c18313039ad4d275fbf9f9907c804bc5", size = 37958, upload-time = "2026-08-17T08:22:10.616Z" }, + { url = "https://files.pythonhosted.org/packages/d0/f2/024946ad8fa532074af4e4380179da54b7ec9facc8bd0b279ec0fac4e63a/xxhash-4.0.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1b3cccf75eeb5b01639b2feadb042a8e07889293b7ca72fa2985e7dcb64763cf", size = 38032, upload-time = "2026-08-17T08:22:09.535Z" }, + { url = "https://files.pythonhosted.org/packages/da/e0/934af8d99bb5885711006bec30a691f728edd513d2c40f053f887d8e7577/xxhash-4.0.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cd878d32f5c6cbce9783f8d6897561fb772211edba9dde49d85672b88ed45276", size = 35895, upload-time = "2026-08-17T08:35:16.53Z" }, + { url = "https://files.pythonhosted.org/packages/20/5f/a8011f6a1558f7ca66d9077bb4f192b1871afcea62fbd5733605d2015755/xxhash-4.0.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:41e579025a6e13a99e6d71e39c9cfc621a0dcdbbf19106325e145fa858f2d794", size = 259464, upload-time = "2026-08-17T08:21:06.72Z" }, + { url = "https://files.pythonhosted.org/packages/ff/89/9665a44397547e7a3d58c0942425a976d58dcfd4b538f33220a312bf6912/xxhash-4.0.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:74379a577a9f3b6afbdedf1b90e5c7764467051977f18a326d7d607336d743bd", size = 283949, upload-time = "2026-08-17T08:22:17.003Z" }, + { url = "https://files.pythonhosted.org/packages/34/2d/78774141266457468f29f3f5803092df4db87d8148ba74e4debd041649db/xxhash-4.0.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:acb31ecdd1a97fab5cd39a84ee9f515e727d319f796fec48703b8339b9998360", size = 303898, upload-time = "2026-08-17T08:35:27.951Z" }, + { url = "https://files.pythonhosted.org/packages/59/48/d78d22de576b42528bff87c14207de50de4f0b888221a50ff7c9d675d670/xxhash-4.0.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5b7875ac1a2edcb691f27642b8b94b904baa6bcecb7d79c72df2228ba8cb5c51", size = 287241, upload-time = "2026-08-17T08:21:13.042Z" }, + { url = "https://files.pythonhosted.org/packages/4c/de/7a1755a59c59fd46176f293bbdd99e399a6537ba9537fc723aa4d1bf6e27/xxhash-4.0.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4751f1d7eecae6b2d2a773630f1a7248f125c9a92a456694d03c15bceffc9d68", size = 519856, upload-time = "2026-08-17T08:22:15.35Z" }, + { url = "https://files.pythonhosted.org/packages/6f/fb/76580c08e916507859b0f335393cb5fdc59452c4402edbc6bcca6e47e7df/xxhash-4.0.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9a51b061d54cda8b83e62c44458bfbf0dabbef9b975dd9649952ba5076b9f349", size = 268572, upload-time = "2026-08-17T08:22:14.533Z" }, + { url = "https://files.pythonhosted.org/packages/d0/2b/1abde3e07b8f2077a38b4fbfaf764115008bfe0ff03bc7756a52c9fd0607/xxhash-4.0.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:74a164e8b63f1e9cf35c9a7809d082b033d1a00e7375d5d814415436e7867e57", size = 344967, upload-time = "2026-08-17T08:35:23.569Z" }, + { url = "https://files.pythonhosted.org/packages/5c/15/80b6ddf0732eef48a8b5fe717398274794392bd6dbe82af38d189d214772/xxhash-4.0.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4f5e5c6df4b703afcbe9352d238a51efd97c3b91fdc3a2052e40fdacb1e7505f", size = 279956, upload-time = "2026-08-17T08:21:24.97Z" }, + { url = "https://files.pythonhosted.org/packages/77/e0/11cbc43c205bf81fad50d69c7319cd1b1ccc01a66cd4fb8766357126c43d/xxhash-4.0.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:d54b8ae068af532c8cdf56abb9e09a60fbe7b10792444c9c27987bb6d3b450fa", size = 307583, upload-time = "2026-08-17T08:22:22.541Z" }, + { url = "https://files.pythonhosted.org/packages/1c/11/cf0bc07feb2791045b6ac075d4bf64f1a5beedef2f46ae70d7104d63a19f/xxhash-4.0.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:1749f0688020209fe0d357ce1e1cd9ec9c6161ed0405ea949d24581c4c43fa91", size = 265848, upload-time = "2026-08-17T08:35:31.298Z" }, + { url = "https://files.pythonhosted.org/packages/d4/c4/7ada4bea2a2795073dfc42d96842930efbe7a0c1857ef4b522e4e90e5d83/xxhash-4.0.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:94ac8a6b8c47951173f0b67bf862bcb971bf24e493b9fbbdb0e010cbbc7d9f54", size = 284409, upload-time = "2026-08-17T08:21:23.156Z" }, + { url = "https://files.pythonhosted.org/packages/3c/f4/d8ce83dd6b99ccfbdadaf2db968ae40334d2e5f73a0297e593b9ddb3df39/xxhash-4.0.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:a33de7633c948ab2dc144af370a66e7e7af29b425dcd0f7e4f59689fb9391b53", size = 335921, upload-time = "2026-08-17T08:22:21.802Z" }, + { url = "https://files.pythonhosted.org/packages/a6/9f/f47d8724bd8bc45b395b06b7cacea2dae0d00031af1b707184a091161df6/xxhash-4.0.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:247ece770647c0aef080561fa996f9774b4dadce2d0c42eeb98229db7dcf820d", size = 487023, upload-time = "2026-08-17T08:22:19.729Z" }, + { url = "https://files.pythonhosted.org/packages/57/54/2d87098f3371cc1e42dd04d2285ad56bca4c56667bc501bff02d2b9fd6b5/xxhash-4.0.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a4553d36cc0b7fce1f35ba8a94dfd775aa3ed12f5eab2dc3b46ac75a0706b0bb", size = 264333, upload-time = "2026-08-17T08:35:27.001Z" }, + { url = "https://files.pythonhosted.org/packages/27/b8/93795ca5898ec7d7d0455283ad261c0fc76b4f0c0a69e86233bd7badb0bd/xxhash-4.0.1-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:87aa309a93bd5ec13f14309a305ff4e9bf74c5363fc46c264c0a22edfd5b0670", size = 20581, upload-time = "2026-08-17T08:21:39.207Z" }, + { url = "https://files.pythonhosted.org/packages/b6/96/926f7335a0a1647952c00421e8da877f658094f61336306c7cadc335c94d/xxhash-4.0.1-cp313-cp313-win32.whl", hash = "sha256:cba763d84b06bda2c38d5185dee76f1b9dfdc0789e96e476d9e10005526d0788", size = 34449, upload-time = "2026-08-17T08:22:29.362Z" }, + { url = "https://files.pythonhosted.org/packages/ea/61/8a5aeb811de093bab3434e77eff0e9461624a1a56a6a93d315d080aab2aa/xxhash-4.0.1-cp313-cp313-win_amd64.whl", hash = "sha256:97b94fb29abf21f5f0bde15f7dbdd3a4aa2dc59f37026adc7b4bee8563b84375", size = 36520, upload-time = "2026-08-17T08:35:34.852Z" }, + { url = "https://files.pythonhosted.org/packages/04/14/97f3c74000ca36955e9cb86f6d270dcd5848b5c65afa623453f5cf2d83d6/xxhash-4.0.1-cp313-cp313-win_arm64.whl", hash = "sha256:08ed8da18cd4fd0a6a5d6a444852d8fbd0e565388a74a4937085451b5f1a312a", size = 33428, upload-time = "2026-08-17T08:21:31.713Z" }, + { url = "https://files.pythonhosted.org/packages/81/0e/ea406a02b561d3275232ccfdb3e29df80f7a65414940e3a15721c7bea40f/xxhash-4.0.1-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:af05a3f650220a6c59fa0ad2410249f2d2470a05225807c378fb67458693f8df", size = 43747, upload-time = "2026-08-17T08:22:31.37Z" }, + { url = "https://files.pythonhosted.org/packages/f9/f0/b0c94d61ccf6b5d1f8847b58ef8f923125ac4919ed5bd0eb082750ca7cbd/xxhash-4.0.1-cp314-cp314-android_24_x86_64.whl", hash = "sha256:a6e3653df1a70b8ac4191216324242e4be2bca18c9a7c10934e1bd56dc7ca15e", size = 40749, upload-time = "2026-08-17T08:22:29.431Z" }, + { url = "https://files.pythonhosted.org/packages/2f/c5/8085881a538983be0fd1c865d5df236242fea496044e2c8ca32b9f2ba39c/xxhash-4.0.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:4528cf80ebbbf57d40edfb31521ae265daa6dd636d615b1cf0ac86209579e59d", size = 34734, upload-time = "2026-08-17T08:35:33.68Z" }, + { url = "https://files.pythonhosted.org/packages/d3/94/8803d13c968fc75ca434eea991d29ac5fd8a36b4afc9a6a9803c53933db4/xxhash-4.0.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:90cb2a1c9cc503a054a19612b48ff6e8e47805f618bdb3224a07568aad03a37e", size = 35671, upload-time = "2026-08-17T08:21:48.322Z" }, + { url = "https://files.pythonhosted.org/packages/85/d5/ad91d7f0fd294190d37c08236fe661f5c4e3f83dcd1a121877a2e64681ce/xxhash-4.0.1-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:a949b072ea59c6eca0811ccd9e95133cc50d2afda8d464b5b077c78f78efa269", size = 38094, upload-time = "2026-08-17T08:22:39.763Z" }, + { url = "https://files.pythonhosted.org/packages/89/f4/2b7ebdc1869caca5f02c4cba8379b631050d3c3d4adb9187e4dc1a6b8d3c/xxhash-4.0.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:79a3203aadf39637869dfea1185227d8452844d78b837e54fb1117b4d34ba5c3", size = 38244, upload-time = "2026-08-17T08:35:38.081Z" }, + { url = "https://files.pythonhosted.org/packages/90/9d/f66cf6935f528e575f1ae4d6560d376e7587569747186f4fae8777cadc1b/xxhash-4.0.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d9f3848ffaf010bdbabdbf4c25641fa258b6227ff27bc74a4d06edef521a4873", size = 35904, upload-time = "2026-08-17T08:21:37.358Z" }, + { url = "https://files.pythonhosted.org/packages/07/29/34569d7b482f0dc060074faafd163c588f915cbc3e3e218f1ffd8a3ad340/xxhash-4.0.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:9283d9dd6b44acad35118e2976fc763a065509e4118debdb61916ec322ed17b9", size = 259595, upload-time = "2026-08-17T08:22:38.153Z" }, + { url = "https://files.pythonhosted.org/packages/ce/d2/a2370acfcd48732cf5c2b87f06cfbf7fa51c0ce0dd736bde42939eb9ebf7/xxhash-4.0.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1c7c642a0f79c3e3cf2965475507574d3d1a50ec71060039d60cb87358667cb2", size = 284279, upload-time = "2026-08-17T08:22:36.396Z" }, + { url = "https://files.pythonhosted.org/packages/08/15/17d33c24e6c4a1c0b9ddc5584f0c25d51d48b34bacde1416a2235a19db4b/xxhash-4.0.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:96dedccfb09a73a25751053a183159b88f4ee75f388df8166040c152ac0531c6", size = 303973, upload-time = "2026-08-17T08:35:39.22Z" }, + { url = "https://files.pythonhosted.org/packages/ec/e0/4ec0d69ad5738729098a61e631b7ed2df22a922b0e03014b597c72bd863d/xxhash-4.0.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:81664268dba92e037b740ecf37fa02f1cab4a391f93f28e35792b3341c60648f", size = 287535, upload-time = "2026-08-17T08:21:52.158Z" }, + { url = "https://files.pythonhosted.org/packages/0f/8b/4f9b17e7a9eb71c65548ecddd9c18b84e3c18ca41c4d436ad2a3000d3f7b/xxhash-4.0.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:839f58c5bd9989875be0fd28446dbf32cace2c2cd8bf2f6762acdc38a95cd1aa", size = 519257, upload-time = "2026-08-17T08:22:43.272Z" }, + { url = "https://files.pythonhosted.org/packages/68/35/3276b3e743b8ddbed9c3f71c76d9dd6a75d72aa4e678b1447b635cfd92e0/xxhash-4.0.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ffa44b4c7c5d0ffa31356b4428659516c0e47647825c74079a296b3857b6d99d", size = 268190, upload-time = "2026-08-17T08:35:44.985Z" }, + { url = "https://files.pythonhosted.org/packages/08/d4/f1555de3c96721320930dbb7988c8482d82b85970076aba1a8d40e83ad43/xxhash-4.0.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e681a6fc7e4f715252b9b5acfb30536ec7dd1f75033a32dc617e6fa95af1a3fd", size = 345553, upload-time = "2026-08-17T08:21:41.025Z" }, + { url = "https://files.pythonhosted.org/packages/ac/98/c28908f27007087b61139d290f908dd827ffd40b88af0c43f9e1a1a7ffd5/xxhash-4.0.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c6301d92545c591ad31c3e050aa40a5f8a4c16413f1f9e6f9322c6f0f9d2b736", size = 280499, upload-time = "2026-08-17T08:22:52.236Z" }, + { url = "https://files.pythonhosted.org/packages/a9/76/3ef57622c65816348f8196273485baab4752aae064959901e85cd867e067/xxhash-4.0.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:6efb8f21cc136c79b3e5bb747c8682d37916fb202cdbbc32182de5c4e47f821f", size = 307211, upload-time = "2026-08-17T08:22:40.815Z" }, + { url = "https://files.pythonhosted.org/packages/8a/4c/5804504bbc808968e57d6a50286dd8f8cc06e0ddd6e4ab4b1dc89ae42f35/xxhash-4.0.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:760de77279e9cf9c81d012ce0705cba13afccee9b09c480f17d778c8c5cefae8", size = 265865, upload-time = "2026-08-17T08:35:42.727Z" }, + { url = "https://files.pythonhosted.org/packages/aa/ee/8572fdfd70e7aaaf150af899871c2cc0bb88c3295ca82172a31e04ca5168/xxhash-4.0.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:a16a3fa6936e36bb1414d16a6bd012c9033e5161b68b426805b61d895392437d", size = 284545, upload-time = "2026-08-17T08:21:56.965Z" }, + { url = "https://files.pythonhosted.org/packages/c1/f8/6eadcca0904660c848b466524e82a233d16c9d2d5258433aaf3546142d86/xxhash-4.0.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:9c3c4b9aa9a27196b921197f7daf9e6c1412739df06a99cfa6e923879362eff6", size = 336022, upload-time = "2026-08-17T08:22:46.346Z" }, + { url = "https://files.pythonhosted.org/packages/27/df/4aa107b81602d6d6d09ab5a607c530d2d3a6b28e2e9a59b01875bd877c54/xxhash-4.0.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:863f3d3b44110f7243e86cf994aa5c5d88f2348b6e84ab4402fadadfbf9f7da7", size = 486671, upload-time = "2026-08-17T08:35:49.016Z" }, + { url = "https://files.pythonhosted.org/packages/45/b7/b2bf9b5301e9cd5f2e335fea8da0f5cf209a6594cb1fe77754774ad4a6fd/xxhash-4.0.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:63aa52659bc32bb9bd7cb5caf523b4d14429a477762cfac886132d687c1f80fc", size = 263744, upload-time = "2026-08-17T08:21:56.165Z" }, + { url = "https://files.pythonhosted.org/packages/0b/96/35b1c02177ae26234892c2310fb4822ba62411acccbf425ab8f9fd99354a/xxhash-4.0.1-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:67e57b834e07ed973cee7b6da1548ff28a56458d77696fd2a5f397f340694848", size = 20563, upload-time = "2026-08-17T08:35:11.924Z" }, + { url = "https://files.pythonhosted.org/packages/51/c2/a06300b165fbd6b0cb4a9742987f2e997a9f447ce3bf7c6ac97b862ce62a/xxhash-4.0.1-cp314-cp314-win32.whl", hash = "sha256:b6c1f9c59bbe593f88a0aad30be4150f15bd57bd64efb95feeabcb8e563f1ecd", size = 35151, upload-time = "2026-08-17T08:22:44.283Z" }, + { url = "https://files.pythonhosted.org/packages/06/96/c5b37296b78f80fc97124c0fee0c7bbd1bdb6f3b18bcd8748bb113b2d8fc/xxhash-4.0.1-cp314-cp314-win_amd64.whl", hash = "sha256:da544672efd9ad76077928a3e6c5d894e52ce82d3bf14002db4a1bf17d1a36a2", size = 37156, upload-time = "2026-08-17T08:35:46.551Z" }, + { url = "https://files.pythonhosted.org/packages/ce/5e/248f9cd169c2fb62236bedfba246d213bce728f74901e99047e3f3c55875/xxhash-4.0.1-cp314-cp314-win_arm64.whl", hash = "sha256:d0d24a4f3fb63852cd09af46ae4b7a4d00cc8b8615a046dca543786e728d1056", size = 34379, upload-time = "2026-08-17T08:21:59.446Z" }, + { url = "https://files.pythonhosted.org/packages/58/c8/db1d37c0da0324d0298f6abd931ca1d4736e049d9f2081230a8421da74d2/xxhash-4.0.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:349775ac30372b344d2338b2a168c0a1312a644194da25b8bec476d55761a128", size = 38656, upload-time = "2026-08-17T08:22:49.119Z" }, + { url = "https://files.pythonhosted.org/packages/c5/8e/e18998ec465fb977bc74272e5bf3c2e886c13b014cbef916cd607802c709/xxhash-4.0.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:43e5f9169e73d0f0db33b5f6b8554bcce69ac278c966daf83d5eb4eb2f13829f", size = 36306, upload-time = "2026-08-17T08:35:52.853Z" }, + { url = "https://files.pythonhosted.org/packages/ef/1a/b83f86f8a987a3cbcb7e005a6824ff64aecae35abc1395a0d44ee16c3319/xxhash-4.0.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:4a252fb862b0ae2590587e625f47a0e03da05cf0205e8830b67b6596c06038b1", size = 273729, upload-time = "2026-08-17T08:21:58.833Z" }, + { url = "https://files.pythonhosted.org/packages/02/4e/2db15aa8508e0cd5b632927a53b98234f24039ea65377e6cf996c06d2d4f/xxhash-4.0.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2df3ca8757dc381e75e90a4d7995a6324f58a923c7145220a7b2c0231f66fddc", size = 301083, upload-time = "2026-08-17T08:35:14.113Z" }, + { url = "https://files.pythonhosted.org/packages/26/94/ed759787ffe802bd8e31cfcdad3755cbeca2dcdafd2f790cd6f25d195199/xxhash-4.0.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:bfed61996d618eb90d6eaae0178002e3466a28b06bfc557a7a3a7266378d8c5a", size = 312745, upload-time = "2026-08-17T08:22:52.232Z" }, + { url = "https://files.pythonhosted.org/packages/45/7a/f64b4a4cc8b51e950709207f55f7f56ae9c5af6631dd31d7fb443312418c/xxhash-4.0.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9761ff4a0ffa583fe850731ad24fe82c88cccb7a2294727db0955f3279a4cb3f", size = 301419, upload-time = "2026-08-17T08:35:50.143Z" }, + { url = "https://files.pythonhosted.org/packages/a0/71/bac313b8de073569b8db3152044a7cfcce87a3fa9698c18fe9f914dee6b1/xxhash-4.0.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:edccc2ec58435a580f96a48a3ccae8cd0a480824119165dd90108718ad81ae6e", size = 534485, upload-time = "2026-08-17T08:22:11.515Z" }, + { url = "https://files.pythonhosted.org/packages/b9/0c/16b5e419f24e59507ee05626d2bb0deafdb03f9f27783bc0785a9849602e/xxhash-4.0.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4741d42d59e4e5fa1a86c17ab9c27dc8ea459c700d91b6742fdb9138d9a516cb", size = 279605, upload-time = "2026-08-17T08:22:52.934Z" }, + { url = "https://files.pythonhosted.org/packages/5f/55/5787dd6e2d8d5b61256a5039f6b18c2193c7c1de4a2fd2413288d0d9c604/xxhash-4.0.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:440c401e146ce64bdb3beb8ff0c84677b6f21307c28a34779071cecee5d4d70c", size = 358924, upload-time = "2026-08-17T08:35:58.164Z" }, + { url = "https://files.pythonhosted.org/packages/f3/68/89be41991f3b0a2e91f940bdf3128852c3ed571cf560d98ad0f67024afe4/xxhash-4.0.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5b7979f71d06ae45a769de0699900a246d8cb632db1e8bfdc79ec019063a503c", size = 295305, upload-time = "2026-08-17T08:22:13.683Z" }, + { url = "https://files.pythonhosted.org/packages/e6/5a/52ff0a0cc361aad393ff9a46ffe3aabbcf9c03d6c8f2612da7d553048276/xxhash-4.0.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:62198213fc3e0c56e567894b318ba45834e007d065f84ba6dc9165d21546fc56", size = 320228, upload-time = "2026-08-17T08:35:18.946Z" }, + { url = "https://files.pythonhosted.org/packages/0f/b5/91c60ff22c7f6cd5f6d7a5bad5a2cdcb4c33987dfa50bf13f0d856279b2e/xxhash-4.0.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:b3bece52127ac20044311ee73567f9f0893b5de64f9028aecc90cc740cfd525a", size = 279414, upload-time = "2026-08-17T08:23:03.212Z" }, + { url = "https://files.pythonhosted.org/packages/b9/94/9685954804d47d0390871a64bec606a0d536406382d71a784df3a5883fb4/xxhash-4.0.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:a865d2d470220e659220fdb59d5b6c4422802d8d6098e1324bc4d12444798914", size = 297594, upload-time = "2026-08-17T08:35:57.881Z" }, + { url = "https://files.pythonhosted.org/packages/89/62/b67ac9412907b7a07a2a0c08c3440b9e4480231a7b3de0767e87011e4564/xxhash-4.0.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:8580aab306888224074c7edeec734de0c3c5ccde65b2da4e6c9a5e28f7c0a1bd", size = 348526, upload-time = "2026-08-17T08:22:18.571Z" }, + { url = "https://files.pythonhosted.org/packages/37/ed/6723cc49a9f567d52d01fd7c1741b0f2e3a13e71d15f7ac49d753a20c115/xxhash-4.0.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:2d52dc7c33c1b83082b707f6b7814dc76d2faaa2ea62bd9c5fab4b36f83c087f", size = 499307, upload-time = "2026-08-17T08:22:56.52Z" }, + { url = "https://files.pythonhosted.org/packages/fd/2e/7b10e101ab988d93b791023be7191d7661271d6ab31ac082276b9091042a/xxhash-4.0.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6a9f98af872355e0c02439e48583958eee00e60b928bb20476460d9d40cb7b4e", size = 274989, upload-time = "2026-08-17T08:36:01.834Z" }, + { url = "https://files.pythonhosted.org/packages/9b/8d/7eabcc8d29cce40621443cff24c07d7306ef574b8956c47ac59f21098005/xxhash-4.0.1-cp314-cp314t-win32.whl", hash = "sha256:a14578102a6081465aec9cf73c76c3cd3f79f0709bdb3b8ae7ab0b54c9d8b089", size = 35482, upload-time = "2026-08-17T08:22:32.336Z" }, + { url = "https://files.pythonhosted.org/packages/ca/89/2a4268e1971f63038b79fb75e3b9c8de942cd77acabbb0c5625352a31940/xxhash-4.0.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c57963970d359a72262f7fe6be88f945e2334d4bc41462b7f08c37b0abf35ca6", size = 37490, upload-time = "2026-08-17T08:35:22.475Z" }, + { url = "https://files.pythonhosted.org/packages/90/7b/950ecab1fe4cf421d0a6211ddd9a0ac82e39e55c45a111ceb90953dc6c9a/xxhash-4.0.1-cp314-cp314t-win_arm64.whl", hash = "sha256:b659fad79c99b0238c7ad7e9d7dbf4eebfea9097c2dba65fa0a4d18a25b29a2f", size = 34596, upload-time = "2026-08-17T08:23:10.001Z" }, + { url = "https://files.pythonhosted.org/packages/c4/03/7dc3b85fac10751613bfedb0e120734e0e8710054abad3f931e9d3843a14/xxhash-4.0.1-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:5adf927dca8c47fde7e683fe69efdd81bc865c4db1fb6bb00b391e2b6185207b", size = 43749, upload-time = "2026-08-17T08:36:00.47Z" }, + { url = "https://files.pythonhosted.org/packages/a5/55/bfac071c5b1c6d6a3d48ab1ab96a15e958a1d7061f4afc97804292d87264/xxhash-4.0.1-cp315-cp315-android_24_x86_64.whl", hash = "sha256:c30dd1af66a820820398b26e0d74e7a9aa43cae705924f23ed828cd8e5c26c3d", size = 40758, upload-time = "2026-08-17T08:22:30.209Z" }, + { url = "https://files.pythonhosted.org/packages/79/87/49a260e685d1a74c56a69432a8ee0527ddcbd684a3c51f87edc3b75639c5/xxhash-4.0.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1bc591533fc975614f7e13594daee76af96b8e1fbcf8de76c8773858fa9e7cea", size = 34788, upload-time = "2026-08-17T08:23:09.014Z" }, + { url = "https://files.pythonhosted.org/packages/6c/ef/50d72ed2170dae872e1c0fe333d0908e0a2afbffe74c5c9037d5406a4b89/xxhash-4.0.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:567cbc630302a46a8ecfd943b309ccf5372bb3718f1f3762d452df30f033bcf0", size = 35746, upload-time = "2026-08-17T08:36:05.557Z" }, + { url = "https://files.pythonhosted.org/packages/66/f0/969deaa2bab3bfd5ad5b023442124d2255b9961eef6f797ec74eb8683bdf/xxhash-4.0.1-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:e998cb3685b92101ec5de0fb4d9485cf01e50bc418211955c55d98064664cf4c", size = 38098, upload-time = "2026-08-17T08:22:36.906Z" }, + { url = "https://files.pythonhosted.org/packages/86/aa/45ed7d7b8d7b66202a47bf8ff3b77cea28d2ea54dfcdd202b4cfe043e3dc/xxhash-4.0.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:c3074db513c81f764053e3da079312ecf85a50d8350c71f4cc0105d9662a9e6c", size = 38251, upload-time = "2026-08-17T08:35:25.774Z" }, + { url = "https://files.pythonhosted.org/packages/f1/9d/45e7520a7856e13800a5dc8cd038d34c6372429465b163af0c5722f16918/xxhash-4.0.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:3088dadbffa33c29e0518578430a7dff2e901a212e487aefa5faaa0dc06dad34", size = 35986, upload-time = "2026-08-17T08:23:25.854Z" }, + { url = "https://files.pythonhosted.org/packages/9e/0e/5ad466e5fea18c9f9bdc5828c0506f62190061b4a1b0e688aa54969d0a9e/xxhash-4.0.1-cp315-cp315-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1b50223d92df94d54e1a31469335a2c74b16692e6c1cb726f1e6949514458706", size = 264609, upload-time = "2026-08-17T08:36:04.229Z" }, + { url = "https://files.pythonhosted.org/packages/aa/cf/8f269f85217e3dbd45e31e25e46cc26f3aff0e159ef05d228b4b982c778c/xxhash-4.0.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:427b62d62d4f967fbb10b82a3813e4875c2a6e7e7634739f17265b650c7f65a6", size = 285910, upload-time = "2026-08-17T08:22:38.589Z" }, + { url = "https://files.pythonhosted.org/packages/ca/30/2fc1a16ee0f9501d074b798ebfae52e24fa602c7117f5c4b81de71eada72/xxhash-4.0.1-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c6370189e8e66b7e608f533b939a9de092ddca6cce084ca0d3d414d2ed5b5d59", size = 306566, upload-time = "2026-08-17T08:23:16.895Z" }, + { url = "https://files.pythonhosted.org/packages/e0/a7/08375cf2b997e1903663fe7525c5973b1987a4f8ad2b8d47463e9143f2ee/xxhash-4.0.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ec1a470c6db94ac4589c203921e89ac1bc13e796a8b1784d8135e1893559cd3b", size = 287978, upload-time = "2026-08-17T08:36:09.296Z" }, + { url = "https://files.pythonhosted.org/packages/b2/e5/90a7b404c11add9e53a497d06236152852490c3b2f21e468d97a58f26afe/xxhash-4.0.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:37f667dee0f867c42894b34e2a6fe26bf195c0ea4683d9d2b713db023f242c3a", size = 520098, upload-time = "2026-08-17T08:22:41.565Z" }, + { url = "https://files.pythonhosted.org/packages/11/02/7fba10b1b17eb46308f09cc0a4ed513d74dff16b1e22a1c439f011c77129/xxhash-4.0.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f18732adcc271741bd651c3e56fa519d8a237d2cccda01fe3afb226bf87f783b", size = 268273, upload-time = "2026-08-17T08:35:29.043Z" }, + { url = "https://files.pythonhosted.org/packages/54/49/c21b228877357a3be43eeeaa22182ad1685796f415390ada475922c084e4/xxhash-4.0.1-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0b42a5a26607e4b2409fea174773a66f2dff9dfdbf2c1a851bb7b804e2c97535", size = 350164, upload-time = "2026-08-17T08:23:29.494Z" }, + { url = "https://files.pythonhosted.org/packages/00/3c/c15bb4aa33d94b78a5553b52e7fa1070565f0199925aeadec3871de20ce9/xxhash-4.0.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:99166cc98637e8bf550cda2aab07f4f1d5f899c45fbd721801aeabcc9d404824", size = 281975, upload-time = "2026-08-17T08:36:08.139Z" }, + { url = "https://files.pythonhosted.org/packages/18/7a/b1d0388315fe7752b7725b68a912667526a1dd48ed492fcc031ac03f4b52/xxhash-4.0.1-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:6cf633df84d80a1668fcf61e330791dae46825e395549e7d34f376411e75088a", size = 307872, upload-time = "2026-08-17T08:22:42.206Z" }, + { url = "https://files.pythonhosted.org/packages/b4/a1/037cb2dd8cf725c9565dfe3712b2915c0e0276a9154913dbfcbcecbeb672/xxhash-4.0.1-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:e259bb7e1e2d8de6b35f430f5c7220b1c0ebf3962d1ba7ec7545980d5931edb8", size = 268241, upload-time = "2026-08-17T08:23:23.997Z" }, + { url = "https://files.pythonhosted.org/packages/c6/a9/67c44422d0ee082169b238ce24bd2796b82d7c21ed953471365df8c508d8/xxhash-4.0.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:704381264b36a18b9c62ecbabe2e71d0fc58c77c129c15355c989b10bf05b6b0", size = 284970, upload-time = "2026-08-17T08:36:13.476Z" }, + { url = "https://files.pythonhosted.org/packages/7f/d0/254a5f51c4014cacc77a26f321372338b924f54e89efb730164ee336d850/xxhash-4.0.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:e90b4bcf1d9eb1010fdaee7c9209fb667e74c0684f3ba17f9032bd7319da90c9", size = 338074, upload-time = "2026-08-17T08:22:51.166Z" }, + { url = "https://files.pythonhosted.org/packages/64/03/f21c4830118d72ef3a958ce8bf2152f49e0d4cf200907616c9be6caf372a/xxhash-4.0.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:a65785e653573fcd1e33062760ab4c3c3440e8e910765018e4b6ed4ad07b54a0", size = 487626, upload-time = "2026-08-17T08:35:32.768Z" }, + { url = "https://files.pythonhosted.org/packages/45/1f/268a689d741d7da649317eb4ce41760140beb4179aaf43a7216fdbe8100c/xxhash-4.0.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:e3996ff9b6f99180357024336bf5749a8ad6476a9a2523e535c5212b995b12a2", size = 263852, upload-time = "2026-08-17T08:23:41.871Z" }, + { url = "https://files.pythonhosted.org/packages/a7/f5/adaf8101cd7f143191a0b390600294d83924b32cb13770fde8803dce27a2/xxhash-4.0.1-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:99054b838b74d8d3995ea0d410976ae967c46207ae22d6ddfc535e809197dab9", size = 20569, upload-time = "2026-08-17T08:36:11.952Z" }, + { url = "https://files.pythonhosted.org/packages/ee/2c/56a5eb8c993420fc07114c08f447a2b66ee996510b4764cb368b9b44c9f0/xxhash-4.0.1-cp315-cp315-win32.whl", hash = "sha256:6c45258a37fc22721395c09927cb982d3e7a83607cab15be7e2416501bd3a330", size = 35145, upload-time = "2026-08-17T08:22:50.038Z" }, + { url = "https://files.pythonhosted.org/packages/67/c7/65f210db43e62157d0fef3b4d4d7b394821e7733c8bb4ece49f91410a725/xxhash-4.0.1-cp315-cp315-win_amd64.whl", hash = "sha256:0ab851b45c70d4992be7cdeeee16f97a0b677408c758c4b1efb1cfe8030bfd37", size = 37161, upload-time = "2026-08-17T08:23:32.438Z" }, + { url = "https://files.pythonhosted.org/packages/33/ae/1a641d1d60ba219756d9ebe907ff0ecf4445adcf4fa96f6e3da57b91d439/xxhash-4.0.1-cp315-cp315-win_arm64.whl", hash = "sha256:a5b21b42a01a343096a1c018d35e9b7aec9c7065dda53ae8da071e37478b2cea", size = 34378, upload-time = "2026-08-17T08:36:15.912Z" }, + { url = "https://files.pythonhosted.org/packages/48/7f/7698b320b251806d1249e513922a626f19027e104c829a611272250350eb/xxhash-4.0.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:44ab12e8cd17d4f001769f00ad465208b4bcb897ed29e65f058f74466b57a98f", size = 38610, upload-time = "2026-08-17T08:22:55.203Z" }, + { url = "https://files.pythonhosted.org/packages/c0/3d/436497e775b647b3b3e9a4ffe8c76c59fa4aa7a9fab6447cb59acf1b50ea/xxhash-4.0.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:45e88111ebe331de478ef8d4293efbe88f3cf8b863386c9a2357136b838e1af0", size = 36378, upload-time = "2026-08-17T08:35:36.18Z" }, + { url = "https://files.pythonhosted.org/packages/e3/d8/17a4f8182b9257898aa2a77c2a45f70233eb8e50681a280e8e09d2ee76e9/xxhash-4.0.1-cp315-cp315t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:bf430c587f447a554c53768ad76b9846fe7c5632180ef6f69c4fce8b0552fbd0", size = 273559, upload-time = "2026-08-17T08:23:51.075Z" }, + { url = "https://files.pythonhosted.org/packages/83/28/121bd5a5c5adb88e0da772c7bef61964cf9da92956a7a237c7d24c4351b8/xxhash-4.0.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:adbd48b30e3f82c89fb2b3e6a87cdd28d113b190a5ed0ee2dee286323ee9a621", size = 299133, upload-time = "2026-08-17T08:36:14.731Z" }, + { url = "https://files.pythonhosted.org/packages/11/8f/57c7b6e04642ed738a0d08a31bed7fc63fdacb661d665f98739cc9751b62/xxhash-4.0.1-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e71b34978e77868cbf2d18c5206a4603f9c644dd7181bec5643bd40141d3b8c5", size = 314527, upload-time = "2026-08-17T08:22:54.224Z" }, + { url = "https://files.pythonhosted.org/packages/8e/18/42793917dbab0ea1ff71458aea4875e17a7263f2797b798af048dc81e867/xxhash-4.0.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:488ca5c5e28ef56ec4bbb12f835b3f1cbecc5f3510062e70117bc6594851932a", size = 299199, upload-time = "2026-08-17T08:23:36.864Z" }, + { url = "https://files.pythonhosted.org/packages/37/60/51dc92443923d8e908d5614f1145d8d696450f9d6c8f1abe243c6f2a0222/xxhash-4.0.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:421b94f3ba7067958d02e38960d987756347aa150df06df11aa68ae1af78c619", size = 531967, upload-time = "2026-08-17T08:36:18.66Z" }, + { url = "https://files.pythonhosted.org/packages/88/c5/d0de77de09661fac71742c4155b1cd65e274f7cc277819d702b6c8ff2db5/xxhash-4.0.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f33cf0baa91eccd2cb7b62bf00f10c2264ef578b71dd33a12962e71a36eb4d32", size = 278764, upload-time = "2026-08-17T08:22:58.15Z" }, + { url = "https://files.pythonhosted.org/packages/08/9a/589929c655aba1bfb2c41ee03e50eec1547c39c3042a66bda9c173a9614b/xxhash-4.0.1-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:23a4376b4a3183cb50d4d2a3179f887a7773cc695eb2c908e551bec3221b8c60", size = 359876, upload-time = "2026-08-17T08:35:40.35Z" }, + { url = "https://files.pythonhosted.org/packages/3e/a8/c1d8c94d54d91db2215565f4b4151c1593af3e6d27ac4c00fd1e8d714a02/xxhash-4.0.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:38c3d22129a6958846a3098d68bc8e661704461c0be4793ae28836e4690c8478", size = 293548, upload-time = "2026-08-17T08:23:54.951Z" }, + { url = "https://files.pythonhosted.org/packages/8b/67/85d8abca94508a4dd10561d9dea3e6e68843c6986dd6d9c1b3729c8622e4/xxhash-4.0.1-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:87cbdec1a7dd930079671a60b249f3ca4e773e6fbd0676e21e36fdc9dd0f3b00", size = 318780, upload-time = "2026-08-17T08:36:17.623Z" }, + { url = "https://files.pythonhosted.org/packages/1b/16/2b920ed456b9cdcfc99ddc20c3afe42f9f807ee5850773c12fd891f3c08d/xxhash-4.0.1-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:6cbf4e21ef0890804b5bb9ad25c48f9c127758d7f6c66bef374efcacc63c738a", size = 277582, upload-time = "2026-08-17T08:22:57.156Z" }, + { url = "https://files.pythonhosted.org/packages/fa/cc/5811b5997aebb8452047f5800d32fc50eaa29d0ba08d4e426f84450b9c2f/xxhash-4.0.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:c101180495cb4ba3617b279a944345c53a5e73b0c150053d1fa8d8af32de9579", size = 295116, upload-time = "2026-08-17T08:23:40.868Z" }, + { url = "https://files.pythonhosted.org/packages/2d/dc/c2f3f9c2f4d6aadb79f17a9f1c9a7ee82638cc873680da044cf29537d2ee/xxhash-4.0.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:c0e6ccc2b19ec8a726b2e26062ac71ea63e15500d6bf85910e42481844fdffc1", size = 347065, upload-time = "2026-08-17T08:36:21.618Z" }, + { url = "https://files.pythonhosted.org/packages/a2/4c/750cc642c92252e10772ec09e1a1d995581ba4c3ceb24f6e2d57c7ce47ca/xxhash-4.0.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:8bcba9456242ebf180a04d9443812fd85ffe6bd12bda464dd116fcece8886ff3", size = 497208, upload-time = "2026-08-17T08:23:17.88Z" }, + { url = "https://files.pythonhosted.org/packages/6c/2d/58693cb13d6395f39b6b9bb40c5e0db53a5df7c9fce805aa7e792f64a1a5/xxhash-4.0.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:83b8c2013edb5dc1f9e7268b6496130705bc48d79c86bb8817b3d210b81a5513", size = 274338, upload-time = "2026-08-17T08:35:44.062Z" }, + { url = "https://files.pythonhosted.org/packages/4a/08/9aa9787586d9b3e92d63343ce7dc24f0f445fd9e74ff5d6e85dd82233df5/xxhash-4.0.1-cp315-cp315t-win32.whl", hash = "sha256:aa6ccc7f31018484d652cf52db020003433f3c9fa83189c028bd807d2adde503", size = 35471, upload-time = "2026-08-17T08:24:05.795Z" }, + { url = "https://files.pythonhosted.org/packages/f0/ab/4615789c333bee331ac417885c50105715eeb8244bfc68d2bc37dcfd63ca/xxhash-4.0.1-cp315-cp315t-win_amd64.whl", hash = "sha256:daade8936c4deaaf7b01561324ce438ba4f885d717e9adc62b4d67212ad7d7bd", size = 37488, upload-time = "2026-08-17T08:36:19.929Z" }, + { url = "https://files.pythonhosted.org/packages/fb/81/49f718beb0c55d0411bc4bd90b50a3fbe5863a0e97a2f4d11682ba13d298/xxhash-4.0.1-cp315-cp315t-win_arm64.whl", hash = "sha256:f00330ac7e24769e2032203f2b01794d670916b0c1799fd261340f1af9499875", size = 34590, upload-time = "2026-08-17T08:23:19.597Z" }, + { url = "https://files.pythonhosted.org/packages/86/79/9127ff42a887a348dc4ce3211cf1a962836887adee6f57078132bfba78b4/xxhash-4.0.1-graalpy312-graalpy250_312_native-macosx_10_13_x86_64.whl", hash = "sha256:ff48915bf1871a1f19f74c11834c6329443d306cedc0c05fe7fe617810422a80", size = 31836, upload-time = "2026-08-17T08:36:28.261Z" }, + { url = "https://files.pythonhosted.org/packages/0a/e6/f238693bfdd642adb59c99683964d46d9947fe721ff44d3bd850ae675407/xxhash-4.0.1-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:4a76345f5aceb4ec404918edf9c7f2b5507db864dc0d7455982009ac0890b57b", size = 34453, upload-time = "2026-08-17T08:23:49.795Z" }, + { url = "https://files.pythonhosted.org/packages/40/4b/796ace33cdfb75c91ba6d11615c3bd436355b9f3103e05865bbee9abce57/xxhash-4.0.1-graalpy312-graalpy250_312_native-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:31d86f9e81f3e84e00131ac7c54caf5119ae4ddd82c09c31cff597c813ce1ee2", size = 38488, upload-time = "2026-08-17T08:23:59.901Z" }, + { url = "https://files.pythonhosted.org/packages/ad/23/2d549e5d5d7759eaf9ac2d2d2ab81ff60f1bb2b52cdaae8e5ec5c6524354/xxhash-4.0.1-graalpy312-graalpy250_312_native-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:deca2a30d983d240b8375ec2ee0a4288e72042827fc61df2f7671f8467e4cb2f", size = 38206, upload-time = "2026-08-17T08:36:32.193Z" }, + { url = "https://files.pythonhosted.org/packages/79/98/1ee576b27f78e6107ee4ea8ac03e8a52888dff256e57d560f8282c195563/xxhash-4.0.1-graalpy312-graalpy250_312_native-win_amd64.whl", hash = "sha256:7c343ee174d417a44d0c3355602c0cbbfa52a04d1bbbf1723378c7d2c8f60626", size = 37127, upload-time = "2026-08-17T08:23:42.705Z" }, + { url = "https://files.pythonhosted.org/packages/ea/4f/e0648288a17d0d1084ca4f7bef206097831988fc86af74aa1dff8f1fbd68/xxhash-4.0.1-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:554f87034635bcec47c5d72447bf3db7e02da1bf493a0ada010db28a76f891c6", size = 36333, upload-time = "2026-08-17T08:23:52.913Z" }, + { url = "https://files.pythonhosted.org/packages/22/15/34b7f72e9b5a8bfd7e6178de9e1e342bc3de9f07111a5ae26c00506d9edf/xxhash-4.0.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:3c2445edafc300cc40feb6a25a8356a971c30cd0bf47b5349c2ad74c508343b1", size = 33519, upload-time = "2026-08-17T08:36:03.04Z" }, + { url = "https://files.pythonhosted.org/packages/06/4b/e0af324ccf701bf84a7a060bef11c915d45d9e3c5b9caf5b94d62ecb040b/xxhash-4.0.1-pp311-pypy311_pp73-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:bdd16718b63aa3ebd68aabb79021a40e47c81374852d41a306b9453141bbcbee", size = 47995, upload-time = "2026-08-17T08:24:14.335Z" }, + { url = "https://files.pythonhosted.org/packages/59/46/cc7130e6ca6b41ab72eb6a03177b933c7c74145545c99a8610ecc208c449/xxhash-4.0.1-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8b99ebaf9e816ac5069423b1367ee7e8078fbcebcf62545506bb0608d2f4f468", size = 42725, upload-time = "2026-08-17T08:36:34.144Z" }, + { url = "https://files.pythonhosted.org/packages/1c/24/4f26ff9a7dd0998f6d1036bdddef7ce3e78972a74f7fffa7967e7bc3b7e4/xxhash-4.0.1-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f484ed57bb3e4142f9d6439568658c38be5f94b702ba00a1ff32c69783b6c66d", size = 39532, upload-time = "2026-08-17T08:23:57.556Z" }, + { url = "https://files.pythonhosted.org/packages/7d/f3/1ac078fc8fceadcf066469acecacb35d2821cbfaf7d6fc5ac2107c7a314d/xxhash-4.0.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:fac4832b638000106207bc44e44b9616a6a416aaee56c62b01d61f3705e49f58", size = 37252, upload-time = "2026-08-17T08:24:06.652Z" }, ] [[package]] name = "yarl" -version = "1.24.2" +version = "1.25.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "idna" }, { name = "multidict" }, { name = "propcache" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/79/12/1e8f37460ea0f7eb59c221fdaf0ed75e7ac43e97f8093b9c6f411df50a78/yarl-1.24.2.tar.gz", hash = "sha256:9ac374123c6fd7abf64d1fec93962b0bd4ee2c19751755a762a72dd96c0378f8", size = 210798, upload-time = "2026-05-19T21:31:05.599Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/3f/df/f1c7a3de0831cd83194f1a85c5bb431b13f81e6b45079314c86d1c4ef3f2/yarl-1.24.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:5249a113065c2b7a958bc699759e359cd61cfc81e3069662208f48f191b7ed12", size = 129057, upload-time = "2026-05-19T21:27:47.564Z" }, - { url = "https://files.pythonhosted.org/packages/48/41/7daafb32dd7562bf45b1ce56562e7e1a9146f6479b6456873eb8a3413c40/yarl-1.24.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7f4425fa244fbf530b006d0c5f79ce920114cfff5b4f5f6056e669f8e160fdc0", size = 91545, upload-time = "2026-05-19T21:27:50.089Z" }, - { url = "https://files.pythonhosted.org/packages/a8/8f/7b3ec212f1ea0683f55f978e3246bc313c38818664edfc97a9f349a4901e/yarl-1.24.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:15c0b5e49d3c44e2a0b93e6a49476c5edad0a7686b92c395765a7ea775572a75", size = 91380, upload-time = "2026-05-19T21:27:51.953Z" }, - { url = "https://files.pythonhosted.org/packages/8a/1b/8bafab7db23b0567ae9db749099b329d91e3b82bc6028b2050ba583e116c/yarl-1.24.2-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:246d32a53a947c8f0189f5d699cbd4c7036de45d9359e13ba238d1239678c727", size = 105957, upload-time = "2026-05-19T21:27:53.98Z" }, - { url = "https://files.pythonhosted.org/packages/7f/77/21030c2f8d21d21559719beafc772ada2014be933418ed1eaed9cc800e42/yarl-1.24.2-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:64480fb3e4d4ed9ed71c48a91a477384fc342a50ca30071d2f8a88d51d9c9413", size = 97242, upload-time = "2026-05-19T21:27:55.981Z" }, - { url = "https://files.pythonhosted.org/packages/50/d8/f9ea63d1b6aa910a866e089d871fff6cbd49caab29b86b35221a62dfa0d5/yarl-1.24.2-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:349de4701dc3760b6e876628423a8f147ef4f5599d10aba1e10702075d424ed9", size = 114719, upload-time = "2026-05-19T21:27:58.037Z" }, - { url = "https://files.pythonhosted.org/packages/e9/a3/04e0ee98ac58a249ea7ed75223f5f901ba81a834f0b4921b58e5cec11757/yarl-1.24.2-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d162677af8d5d3d6ebab8394b021f4d041ac107a4b705873148a77a49dc9e1b2", size = 112140, upload-time = "2026-05-19T21:27:59.618Z" }, - { url = "https://files.pythonhosted.org/packages/02/ad/0b9cc9f38a7324a7eb1d80f834eaa5283d17e9271bbda3186e598dddaeac/yarl-1.24.2-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f5f5c6ec23a9043f2d139cc072f53dd23168d202a334b9b2fda8de4c3e890d90", size = 106721, upload-time = "2026-05-19T21:28:02.586Z" }, - { url = "https://files.pythonhosted.org/packages/65/e7/a52478ebfc66ec989e085c6ae038b9f1bfa4190baa193b133b669c709e2f/yarl-1.24.2-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:60de6742447fbbf697f16f070b8a443f1b5fe6ca3826fbef9fe70ecd5328e643", size = 106478, upload-time = "2026-05-19T21:28:04.523Z" }, - { url = "https://files.pythonhosted.org/packages/04/d8/5508530fea8472542de00013ae280765fc938ee196fc4030c43a498afb36/yarl-1.24.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:acf93187c3710e422368eb768aee98db551ec7c85adc250207a95c16548ab7ac", size = 105423, upload-time = "2026-05-19T21:28:06.515Z" }, - { url = "https://files.pythonhosted.org/packages/84/f1/ece28505e9628e8b756e11bb4f28864a17cc33b6b44db4d2aaf0622bf630/yarl-1.24.2-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:f4b0352fd41fd34b6651934606268816afd6914d09626f9bcbbf018edb0afb3f", size = 99878, upload-time = "2026-05-19T21:28:08.637Z" }, - { url = "https://files.pythonhosted.org/packages/3f/52/fb5d34529b46dd84013afcfb30b8d2bc2832ed03d412736f577d604fa393/yarl-1.24.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:6b208bb939099b4b297438da4e9b25357f0b1c791888669b963e45b203ea9f36", size = 114025, upload-time = "2026-05-19T21:28:10.64Z" }, - { url = "https://files.pythonhosted.org/packages/43/f0/ff9d31aaab024f7a251c0ed308a98ae29bf9f7dc344e78f28b1322431ca2/yarl-1.24.2-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:4b85b8825e631295ff4bc8943f7471d54c533a9360bbe15ebb38e018b555bb8a", size = 105613, upload-time = "2026-05-19T21:28:12.784Z" }, - { url = "https://files.pythonhosted.org/packages/31/7d/3296fb3f3ecd52bf9ae6c16b0895c1cda7e9170a2083861552b683f70264/yarl-1.24.2-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:e26acf20c26cb4fefc631fdb75aca2a6b8fa8b7b5d7f204fb6a8f1e63c706f53", size = 111665, upload-time = "2026-05-19T21:28:14.393Z" }, - { url = "https://files.pythonhosted.org/packages/1a/74/77aa6ddaca4fbf42e45e675a465c43956dd40702281049975a2aa04eae59/yarl-1.24.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:819ca24f8eafcfb683c1bd5f44f2f488cea1274eb8944731ffd2e1f10f619342", size = 106914, upload-time = "2026-05-19T21:28:15.893Z" }, - { url = "https://files.pythonhosted.org/packages/d8/02/7611f22cd1d4ed7373eb7f9ee21fde1046edba2e7c0e514880d760352f48/yarl-1.24.2-cp310-cp310-win_amd64.whl", hash = "sha256:5cb0f995a901c36be096ccbf4c673591c2faabbe96279598ffaec8c030f85bf4", size = 92658, upload-time = "2026-05-19T21:28:17.471Z" }, - { url = "https://files.pythonhosted.org/packages/91/00/671d0add79938127292839ae44506ce2f7fe8909c72d5a931864f128fd0b/yarl-1.24.2-cp310-cp310-win_arm64.whl", hash = "sha256:f408eace7e22a68b467a0562e0d27d322f91fe3eaaa6f466b962c6cfaea9fa39", size = 87887, upload-time = "2026-05-19T21:28:19.021Z" }, - { url = "https://files.pythonhosted.org/packages/c5/c5/1ce244152ff2839645e7cae92f90e7bafcb2c52bea7ff586ac714f14f5df/yarl-1.24.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:36348bebb147b83818b9d7e673ea4debc75970afc6ffdc7e3975ad05ce5a58c1", size = 128971, upload-time = "2026-05-19T21:28:20.543Z" }, - { url = "https://files.pythonhosted.org/packages/87/5a/00f36967203ed89cb3acd2c8ed526cc3fed9418eb70ce128160a911c8499/yarl-1.24.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1a97e42c8a2233f2f279ecadd9e4a037bcb5d813b78435e8eedd4db5a9e9708c", size = 91507, upload-time = "2026-05-19T21:28:22.556Z" }, - { url = "https://files.pythonhosted.org/packages/31/d0/1fb0c1cd27288f39f6974da4318c32768d72c9890984541fdf1e2e32a51d/yarl-1.24.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8d027d56f1035e339d1001ac33eceab5b2ec8e42e449787bb75e289fb9a5cd1d", size = 91343, upload-time = "2026-05-19T21:28:24.092Z" }, - { url = "https://files.pythonhosted.org/packages/03/ce/d4a646508bed2f8dec6435b40166fe9308dd191262033d3f307b2bbcaecd/yarl-1.24.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0a6377060e7927187a42b7eb202090cbe2b34933a4eeaf90e3bd9e33432e5cae", size = 105704, upload-time = "2026-05-19T21:28:25.872Z" }, - { url = "https://files.pythonhosted.org/packages/4b/07/b3278e82d8bc41485bcf6d856cd0433262593de615b1d3dc43bd3f5bead4/yarl-1.24.2-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:17076578bce0049a5ce57d14ad1bded391b68a3b213e9b81b0097b090244999a", size = 97281, upload-time = "2026-05-19T21:28:27.352Z" }, - { url = "https://files.pythonhosted.org/packages/17/5b/4cee6e7c92e487bebe7afc797da0aa54a248ab4e776a68fe369ec29665a5/yarl-1.24.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:50713f1d4d6be6375bb178bb43d140ee1acb8abe589cd723320b7925a275be1e", size = 114020, upload-time = "2026-05-19T21:28:29.458Z" }, - { url = "https://files.pythonhosted.org/packages/5c/82/111076571545a7d4f9cca3fbd5c6f40615af58642be09f12328f48022468/yarl-1.24.2-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:34263e2fa8fb5bb63a0d97706cda38edbad62fddb58c7f12d6acbc092812aa50", size = 111450, upload-time = "2026-05-19T21:28:31.262Z" }, - { url = "https://files.pythonhosted.org/packages/b6/ec/08f671f69a444d704aeecebf92af659b67b97a869942411d0a578b08c334/yarl-1.24.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:49016d82f032b1bd1e10b01078a7d29ae71bf468eeae0ea22df8bab691e60003", size = 106384, upload-time = "2026-05-19T21:28:32.856Z" }, - { url = "https://files.pythonhosted.org/packages/e5/86/ce41e7a7a199340b2330d52b60f25c4074b6636dd0e60b1a80d31a9db042/yarl-1.24.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3f6d2c216318f8f32038ca3f72501ba08536f0fd18a36e858836b121b2deed9f", size = 106153, upload-time = "2026-05-19T21:28:35.222Z" }, - { url = "https://files.pythonhosted.org/packages/c4/5d/31be8a729531ab3e55ac3e7e5c800be8c89ea98947f418b2f6ea259fb6ee/yarl-1.24.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:08d3a33218e0c64393e7610284e770409a9c31c429b078bcb24096ed0a783b8f", size = 105322, upload-time = "2026-05-19T21:28:36.642Z" }, - { url = "https://files.pythonhosted.org/packages/47/9b/b57afb22b386ae87ac9940f09878b98d8c333f89113e6fc96fcf4ca9eb64/yarl-1.24.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:5d699376c4ca3cba49bbfae3a05b5b70ded572937171ce1e0b8d87118e2ba294", size = 99057, upload-time = "2026-05-19T21:28:38.386Z" }, - { url = "https://files.pythonhosted.org/packages/a3/4f/06348c27c8389256c313e8a57d796808fc0264c915dd5e7cfd3c0e314dc7/yarl-1.24.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:a1cab588b4fa14bea2e55ebea27478adfb05372f47573738e1acc4a36c0b05d2", size = 113502, upload-time = "2026-05-19T21:28:40.091Z" }, - { url = "https://files.pythonhosted.org/packages/5f/1c/284f307b298e4a17b7943b07d9d7ecc4151537f8d137ba51f3bb6c31ca20/yarl-1.24.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:ec87ccc31bd21db7ad009d8572c127c1000f268517618a4cc09adba3c2a7f21c", size = 105253, upload-time = "2026-05-19T21:28:41.987Z" }, - { url = "https://files.pythonhosted.org/packages/c8/bf/0de123bec8619e45c80cbded9085f61b5b4a9eddb8abe6d25d28ee1ec866/yarl-1.24.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:d1dd47a22843b212baa8d74f37796815d43bd046b42a0f41e9da433386c3136b", size = 111345, upload-time = "2026-05-19T21:28:43.93Z" }, - { url = "https://files.pythonhosted.org/packages/90/af/0248eb065e51129d2a9b2436cd1b5c772c19a6b04e5b6a186955671e3319/yarl-1.24.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:7b54b9c67c2b06bd7b9a77253d242124b9c95d2c02def5a1144001ee547dd9d5", size = 106558, upload-time = "2026-05-19T21:28:45.806Z" }, - { url = "https://files.pythonhosted.org/packages/21/3c/f960d7a65ef97d8ba9b424fb5128796a4bc710fc6df2ddbbd7dfdc3bbd20/yarl-1.24.2-cp311-cp311-win_amd64.whl", hash = "sha256:f8fdbcff8b2c7c9284e60c196f693588598ddcee31e11c18e14949ce44519d45", size = 92808, upload-time = "2026-05-19T21:28:48.465Z" }, - { url = "https://files.pythonhosted.org/packages/03/1a/49fb03750e4de4d2284cd5b885a383133c34eef45bd59631b2bb8b7e81e8/yarl-1.24.2-cp311-cp311-win_arm64.whl", hash = "sha256:b32c37a7a337e90822c45797bf3d79d60875cfcccd3ecc80e9f453d87026c122", size = 87610, upload-time = "2026-05-19T21:28:50.07Z" }, - { url = "https://files.pythonhosted.org/packages/f0/da/866bcb01076ba49d2b42b309867bed3826421f1c479655eb7a607b44f20b/yarl-1.24.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:b975866c184564c827e0877380f0dae57dcca7e52782128381b72feff6dfceb8", size = 129957, upload-time = "2026-05-19T21:28:51.695Z" }, - { url = "https://files.pythonhosted.org/packages/bf/1d/fcefb70922ea2268a8971d8e5874d9a8218644200fb8465f1dcad55e6851/yarl-1.24.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3b075301a2836a0e297b1b658cb6d6135df535d62efefdd60366bd589c2c82f2", size = 92164, upload-time = "2026-05-19T21:28:53.242Z" }, - { url = "https://files.pythonhosted.org/packages/29/b6/170e2b8d4e3bc30e6bfdcca53556537f5bf595e938632dfcb059311f3ff6/yarl-1.24.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8ae44649b00947634ab0dab2a374a638f52923a6e67083f2c156cd5cbd1a881d", size = 91688, upload-time = "2026-05-19T21:28:54.865Z" }, - { url = "https://files.pythonhosted.org/packages/fe/a5/c9f655d5553ea0b99fdac9d6a99ad3f9b3e73b8e5758bb46f58c9831f74c/yarl-1.24.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:507cc19f0b45454e2d6dcd62ff7d062b9f77a2812404e62dbdaec05b50faa035", size = 102902, upload-time = "2026-05-19T21:28:56.963Z" }, - { url = "https://files.pythonhosted.org/packages/5d/bc/6b9664d815d79af4ee553337f9d606c56bbf269186ada9172de45f1b5f60/yarl-1.24.2-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c4c17bad5a530912d2111825d3f05e89bab2dd376aaa8cbc77e449e6db63e576", size = 97931, upload-time = "2026-05-19T21:28:58.56Z" }, - { url = "https://files.pythonhosted.org/packages/98/ec/32ba48acae30fecd60928f5791188b80a9d6ee3840507ffda29fecd37b71/yarl-1.24.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f5f0cbb112838a4a293985b6ed73948a547dadcc1ba6d2089938e7abdedceef8", size = 111030, upload-time = "2026-05-19T21:29:00.148Z" }, - { url = "https://files.pythonhosted.org/packages/82/5a/6f4cd081e5f4934d2ae3a8ef4abe3afacc010d26f0035ee91b35cd7d7c37/yarl-1.24.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5ec8356b8a6afcf81fc7aeeef13b1ff7a49dec00f313394bbb9e83830d32ccd7", size = 110392, upload-time = "2026-05-19T21:29:02.155Z" }, - { url = "https://files.pythonhosted.org/packages/7a/da/323a01c349bd5fb01bb6652e314d9bb218cee630a736bdb810ad50e4013f/yarl-1.24.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7e7ebcdef69dec6c6451e616f32b622a6d4a2e92b445c992f7c8e5274a6bbc4c", size = 105612, upload-time = "2026-05-19T21:29:04.247Z" }, - { url = "https://files.pythonhosted.org/packages/7c/80/264ab684f181e1a876389374519ff05d10248725535ae2ac4e8ac4e563d6/yarl-1.24.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:47a55d6cf6db2f401017a9e96e5288844e5051911fb4e0c8311a3980f5e59a7d", size = 104487, upload-time = "2026-05-19T21:29:06.491Z" }, - { url = "https://files.pythonhosted.org/packages/41/07/efabe5df87e96d7ad5959760b888344be48cd6884db127b407c6b5503adc/yarl-1.24.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3065657c80a2321225e804048597ad55658a7e76b32d6f5ee4074d04c50401db", size = 102333, upload-time = "2026-05-19T21:29:08.267Z" }, - { url = "https://files.pythonhosted.org/packages/44/0c/bcf7c42603e1009295f586d8890f2ba032c8b53310e815adf0a202c73d9f/yarl-1.24.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:cb84b80d88e19ede158619b80813968713d8d008b0e2497a576e6a0557d50712", size = 99025, upload-time = "2026-05-19T21:29:10.682Z" }, - { url = "https://files.pythonhosted.org/packages/4f/82/84482ab1a57a0f21a08afe6a7004c61d741f8f2ecc3b05c321577c612164/yarl-1.24.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:990de4f680b1c217e77ff0d6aa0029f9eb79889c11fb3e9a3942c7eba29c1996", size = 110507, upload-time = "2026-05-19T21:29:12.954Z" }, - { url = "https://files.pythonhosted.org/packages/c4/8d/a546ba1dfe1b0f290e05fef145cd07614c0f15df1a707195e512d1e39d1d/yarl-1.24.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:abb8ec0323b80161e3802da3150ef660b41d0e9be2048b76a363d93eee992c2b", size = 103719, upload-time = "2026-05-19T21:29:14.893Z" }, - { url = "https://files.pythonhosted.org/packages/1a/b6/267f2a09213138473adfce6b8a6e17791d7fee70bd4d9003218e4dec58b0/yarl-1.24.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:e7977781f83638a4c73e0f88425563d70173e0dfd90ac006a45c65036293ee3c", size = 110438, upload-time = "2026-05-19T21:29:16.485Z" }, - { url = "https://files.pythonhosted.org/packages/48/2d/1c8d89c7c5f9cad9fb2902445d94e2ab1d7aa35de029afbb8ae95c42d00f/yarl-1.24.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e30dd55825dc554ec5b66a94953b8eda8745926514c5089dfcacecb9c99b5bd1", size = 105719, upload-time = "2026-05-19T21:29:18.367Z" }, - { url = "https://files.pythonhosted.org/packages/a7/25/722e3b93bd687009afb2d59a35e13d30ddd8f80571445bb0c4e4ce26ec66/yarl-1.24.2-cp312-cp312-win_amd64.whl", hash = "sha256:7dafe10c12ddd4d120d528c4b5599c953bd7b12845347d507b95451195bb6cad", size = 92901, upload-time = "2026-05-19T21:29:20.014Z" }, - { url = "https://files.pythonhosted.org/packages/39/47/4486ccfb674c04854a1ef8aa77868b6a6f765feaf69633409d7ca4f02cb8/yarl-1.24.2-cp312-cp312-win_arm64.whl", hash = "sha256:044a09d8401fcf8681977faef6d286b8ade1e2d2e9dceda175d1cfa5ca496f30", size = 87229, upload-time = "2026-05-19T21:29:22.1Z" }, - { url = "https://files.pythonhosted.org/packages/82/62/fcf0ce677f17e5c471c06311dd25964be38a4c586993632910d2e75278bc/yarl-1.24.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:491ac9141decf49ee8030199e1ee251cdff0e131f25678817ff6aa5f837a3536", size = 128978, upload-time = "2026-05-19T21:29:23.83Z" }, - { url = "https://files.pythonhosted.org/packages/d3/58/8e63299bb71ed61a834121d9d3fe6c9fcf2a6a5d09754ff4f20f2d20baf5/yarl-1.24.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e89418f65eda18f99030386305bd44d7d504e328a7945db1ead514fbe03a0607", size = 91733, upload-time = "2026-05-19T21:29:25.375Z" }, - { url = "https://files.pythonhosted.org/packages/c1/24/16748d5dab6daec8b0ed81ccec639a1cded0f18dcc62a4f696b4fe366c37/yarl-1.24.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cdfcce633b4a4bb8281913c57fcafd4b5933fbc19111a5e3930bbd299d6102f1", size = 91113, upload-time = "2026-05-19T21:29:26.928Z" }, - { url = "https://files.pythonhosted.org/packages/1b/66/b63fff7b71211e866624b21432d5943cbb633eb0c2872d9ee3070648f22c/yarl-1.24.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:863297ddede92ee49024e9a9b11ecb59f310ca85b60d8537f56bed9bbb5b1986", size = 103899, upload-time = "2026-05-19T21:29:28.842Z" }, - { url = "https://files.pythonhosted.org/packages/9d/ac/ba1974b8533909636f7733fe86cf677e3619527c3c2fa913e0ea89c48757/yarl-1.24.2-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:374423f70754a2c96942ede36a29d37dc6b0cb8f92f8d009ddf3ed78d3da5488", size = 97862, upload-time = "2026-05-19T21:29:31.086Z" }, - { url = "https://files.pythonhosted.org/packages/1b/a5/123ac993b5c2ba6f554a140305620cb8f150fa543711bbc49be3ec0a65a4/yarl-1.24.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:33a29b5d00ccbf3219bb3e351d7875739c19481e030779f48cc46a7a71681a9b", size = 111060, upload-time = "2026-05-19T21:29:32.657Z" }, - { url = "https://files.pythonhosted.org/packages/23/37/c472d3af3509688392134a88a825276770a187f1daa4de3f6dc0a327a751/yarl-1.24.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a9532c57211730c515341af11fef6e9b61d157487272a096d0c04da445642592", size = 110613, upload-time = "2026-05-19T21:29:34.379Z" }, - { url = "https://files.pythonhosted.org/packages/df/88/09c28dad91e662ccfaa1b78f1c57badde74fc9d0b23e74aef644750ecd73/yarl-1.24.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:91e72cf093fd833483a97ee648e0c053c7c629f51ff4a0e7edd84f806b0c5617", size = 107012, upload-time = "2026-05-19T21:29:36.216Z" }, - { url = "https://files.pythonhosted.org/packages/07/ab/9d4f69d571a94f4d112fa7e2e007200f5a54d319f58c82ac7b7baa61f5c6/yarl-1.24.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b3177bc0a768ef3bacceb4f272632990b7bea352f1b2f1eee9d6d6ff16516f92", size = 105887, upload-time = "2026-05-19T21:29:38.746Z" }, - { url = "https://files.pythonhosted.org/packages/8e/9a/000b2b66c0d772a499fc531d21dab92dfeb73b640a12eed6ba89f49bb2d0/yarl-1.24.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:e196952aacaf3b232e265ff02980b64d483dc0972bd49bcb061171ff22ac203a", size = 103620, upload-time = "2026-05-19T21:29:40.368Z" }, - { url = "https://files.pythonhosted.org/packages/41/7c/7c1050f73450fbdaa3f0c72017059f00ce5e13366692f3dba25275a1083d/yarl-1.24.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:204e7a61ce99919c0de1bf904ab5d7aa188a129ea8f690a8f76cfb6e2844dc44", size = 100599, upload-time = "2026-05-19T21:29:42.66Z" }, - { url = "https://files.pythonhosted.org/packages/ec/b1/29e5756b3926705f5f6089bd5b9f50a56eaac550da6e260bf713ead44d04/yarl-1.24.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:4b156914620f0b9d78dc1adb3751141daee561cfec796088abb89ed49d220f1a", size = 110604, upload-time = "2026-05-19T21:29:44.632Z" }, - { url = "https://files.pythonhosted.org/packages/a3/4b/8415bc96e9b150cde942fbac9a8182985e58f40ce5c54c34ed015407d3ee/yarl-1.24.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:8372a2b976cf70654b2be6619ab6068acabb35f724c0fda7b277fbf53d66a5cf", size = 105161, upload-time = "2026-05-19T21:29:46.755Z" }, - { url = "https://files.pythonhosted.org/packages/8b/d4/cde059abfa229553b7298a2eadde2752e723d50aeedaef86ce59da2718ee/yarl-1.24.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:f9a1e9b622ca284143aab5d885848686dcd85453bb1ca9abcdb7503e64dc0056", size = 110619, upload-time = "2026-05-19T21:29:48.972Z" }, - { url = "https://files.pythonhosted.org/packages/e7/2c/d6a6c9a61549f7b6c7e6dc6937d195bcf069582b47b7200dcd0e7b256acf/yarl-1.24.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:810e19b685c8c3c5862f6a38160a1f4e4c0916c9390024ec347b6157a45a0992", size = 107362, upload-time = "2026-05-19T21:29:51Z" }, - { url = "https://files.pythonhosted.org/packages/92/dd/3ae5fe417e9d1c353a548553326eb9935e76b6b727161563b424cc296df3/yarl-1.24.2-cp313-cp313-win_amd64.whl", hash = "sha256:7d37fb7c38f2b6edab0f845c4f85148d4c44204f52bc127021bd2bc9fdbf1656", size = 92667, upload-time = "2026-05-19T21:29:52.743Z" }, - { url = "https://files.pythonhosted.org/packages/10/cc/a7beb239f78f27fca1b053c8e8595e4179c02e62249b4687ec218c370c50/yarl-1.24.2-cp313-cp313-win_arm64.whl", hash = "sha256:1e831894be7c2954240e49791fa4b50c05a0dc881de2552cfe3ffd8631c7f461", size = 87069, upload-time = "2026-05-19T21:29:54.442Z" }, - { url = "https://files.pythonhosted.org/packages/40/0e/e08087695fc12789263821c5dc0f8dc52b5b17efd0887cacf419f8a43ba3/yarl-1.24.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:f9312b3c02d9b3d23840f67952913c9c8721d7f1b7db305289faefa878f364c2", size = 129670, upload-time = "2026-05-19T21:29:56.631Z" }, - { url = "https://files.pythonhosted.org/packages/3a/98/ab4b5ed1b1b5cd973c8a3eb994c3a6aefb6ce6d399e21bb5f0316c33815c/yarl-1.24.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a4f4d6cd615823bfc7fb7e9b5987c3f41666371d870d51058f77e2680fbe9630", size = 91916, upload-time = "2026-05-19T21:29:58.645Z" }, - { url = "https://files.pythonhosted.org/packages/ba/b1/5297bb6a7df4782f7605bffc43b31f5044070935fbbcaa6c705a07e6ac65/yarl-1.24.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0c3063e5c0a8e8e62fae6c2596fa01da1561e4cd1da6fec5789f5cf99a8aefd8", size = 91625, upload-time = "2026-05-19T21:30:00.412Z" }, - { url = "https://files.pythonhosted.org/packages/02/a7/45baabfff76829264e623b185cff0c340d7e11bf3e1cd9ea37e7d17934bd/yarl-1.24.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fecd17873a096036c1c87ab3486f1aef7f269ada7f23f7f856f93b1cc7744f14", size = 104574, upload-time = "2026-05-19T21:30:02.544Z" }, - { url = "https://files.pythonhosted.org/packages/f3/40/3a5ab144d3d650ca37d4f4b57e56169be8af3ca34c448793e064b30baaed/yarl-1.24.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a46d1ab4ba4d32e6dc80daf8a28ce0bd83d08df52fbc32f3e288663427734535", size = 97534, upload-time = "2026-05-19T21:30:04.319Z" }, - { url = "https://files.pythonhosted.org/packages/9c/b5/5658fef3681fb5776b4513b052bec750009f47b3a592251c705d75375798/yarl-1.24.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:73e68edf6dfd5f73f9ca127d84e2a6f9213c65bdffb736bda19524c0564fcd14", size = 111481, upload-time = "2026-05-19T21:30:05.988Z" }, - { url = "https://files.pythonhosted.org/packages/4c/06/fdcd7dde037f00866dce123ed4ba23dba94beb56fc4cf561668d27be37f2/yarl-1.24.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a296ca617f2d25fbceafb962b88750d627e5984e75732c712154d058ae8d79a3", size = 111529, upload-time = "2026-05-19T21:30:07.738Z" }, - { url = "https://files.pythonhosted.org/packages/c2/53/d81269aaafccea0d33396c03035de997b743f11e648e6e27a0df99c72980/yarl-1.24.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e51b2cf5ec89a8b8470177641ed62a3ba22d74e1e898e06ad53aa77972487208", size = 107338, upload-time = "2026-05-19T21:30:09.713Z" }, - { url = "https://files.pythonhosted.org/packages/ae/04/23049463f729bd899df203a7960505a75333edd499cda8aa1d5a82b64df5/yarl-1.24.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:310fc687f7b2044ec54e372c8cbe923bb88f5c37bded0d3079e5791c2fc3cf50", size = 106147, upload-time = "2026-05-19T21:30:11.365Z" }, - { url = "https://files.pythonhosted.org/packages/14/18/04a4b5830b43ed5e4c5015b40e9f6241ad91487d71611061b4e111d6ac80/yarl-1.24.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:297a2fe352ecf858b30a98f87948746ec16f001d279f84aebdbd3bd965e2f1bd", size = 104272, upload-time = "2026-05-19T21:30:12.978Z" }, - { url = "https://files.pythonhosted.org/packages/5a/f7/8cffdf319aee7a7c1dbd07b61d91c3e3fda460c7a93b5f93e445f3806c4c/yarl-1.24.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:2a263e76b97bc42bdcd7c5f4953dec1f7cd62a1112fa7f869e57255229390d67", size = 99962, upload-time = "2026-05-19T21:30:15.001Z" }, - { url = "https://files.pythonhosted.org/packages/d7/39/b3cce3b7dbef64ac700ad4cea156a207d01bede0f507587616c364b5468e/yarl-1.24.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:822519b64cf0b474f1a0aaef1dc621438ea46bb77c94df97a5b4d213a7d8a8b1", size = 111063, upload-time = "2026-05-19T21:30:16.683Z" }, - { url = "https://files.pythonhosted.org/packages/a1/ea/100818505e7ebf165c7242ff17fdf7d9fee79e27234aeca871c1082920d7/yarl-1.24.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:b6067060d9dc594899ba83e6db6c48c68d1e494a6dab158156ed86977ca7bcb1", size = 105438, upload-time = "2026-05-19T21:30:18.769Z" }, - { url = "https://files.pythonhosted.org/packages/8f/d2/e075a0b32aa6625087de9e653087df0759fed5de4a435fef594181102a77/yarl-1.24.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:0063adad533e57171b79db3943b229d40dfafeeee579767f96541f106bac5f1b", size = 111458, upload-time = "2026-05-19T21:30:21.024Z" }, - { url = "https://files.pythonhosted.org/packages/e6/5c/ceea7ba98b65c8eb8d947fdc52f9bedfcd43c6a57c9e3c90c17be8f324a3/yarl-1.24.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ee8e3fb34513e8dc082b586ef4910c98335d43a6fab688cd44d4851bacfce3e8", size = 107589, upload-time = "2026-05-19T21:30:23.412Z" }, - { url = "https://files.pythonhosted.org/packages/fa/d9/5582d57e2b2db9b85eb6663a22efdd78e08805f3f5389566e9fcad254d1b/yarl-1.24.2-cp314-cp314-win_amd64.whl", hash = "sha256:afb00d7fd8e0f285ca29a44cc50df2d622ff2f7a6d933fa641577b5f9d5f3db0", size = 94424, upload-time = "2026-05-19T21:30:25.425Z" }, - { url = "https://files.pythonhosted.org/packages/92/10/7dc07a0e22806a9280f42a57361395506e800c64e22737cd7b0886feab42/yarl-1.24.2-cp314-cp314-win_arm64.whl", hash = "sha256:68cf6eacd6028ef1142bc4b48376b81566385ca6f9e7dde3b0fa91be08ffcb57", size = 88690, upload-time = "2026-05-19T21:30:27.623Z" }, - { url = "https://files.pythonhosted.org/packages/9e/13/d5b8e2c8667db955bcb3de233f18798fefe7edf1d7429c2c9d4f9c401114/yarl-1.24.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:221ce1dd921ac4f603957f17d7c18c5cc0797fbb52f156941f92e04605d1d67b", size = 136248, upload-time = "2026-05-19T21:30:29.297Z" }, - { url = "https://files.pythonhosted.org/packages/de/46/a4a97c05c9c9b8fd266bb2a0df12992c7fbd02391eb9640583411b6dab32/yarl-1.24.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:5f3224db28173a00d7afacdee07045cc4673dfab2b15492c7ae10deddbece761", size = 95084, upload-time = "2026-05-19T21:30:31.031Z" }, - { url = "https://files.pythonhosted.org/packages/95/b2/845cf2074a015e6fe0d0808cf1a2d9e868386c4220d657ebd8302b199043/yarl-1.24.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c557165320d6244ebe3a02431b2a201a20080e02f41f0cfa0ccc47a183765da8", size = 95272, upload-time = "2026-05-19T21:30:33.062Z" }, - { url = "https://files.pythonhosted.org/packages/fe/16/e69d4aa244aef45235ddfebc0e04036a6829842bc5a6a795aedc6c998d23/yarl-1.24.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:904065e6e85b1fa54d0d87438bd58c14c0bad97aad654ad1077fd9d87e8478ed", size = 101497, upload-time = "2026-05-19T21:30:34.842Z" }, - { url = "https://files.pythonhosted.org/packages/15/94/c07107715d621076863ee88b3ddf183fa5e9d4aba5769623c9979828410a/yarl-1.24.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:8cec2a38d70edc10e0e856ceda886af5327a017ccbde8e1de1bd44d300357543", size = 94002, upload-time = "2026-05-19T21:30:37.724Z" }, - { url = "https://files.pythonhosted.org/packages/a9/35/fc1bbdd895b5e4010b8fdd037f7ed3aa289d3863e08231b30231ca9a0815/yarl-1.24.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e7484b9361ed222ee1ca5b4337aa4cbdcc4618ce5aff57d9ef1582fd95893fc0", size = 106524, upload-time = "2026-05-19T21:30:40.196Z" }, - { url = "https://files.pythonhosted.org/packages/1f/f2/32b66d0a4ba47c296cf86d03e2c67bff58399fe6d6d84d5205c04c66cc6d/yarl-1.24.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:84f9670b89f34db07f81e53aee83e0b938a3412329d51c8f922488be7fcc4024", size = 106165, upload-time = "2026-05-19T21:30:41.888Z" }, - { url = "https://files.pythonhosted.org/packages/95/47/37cb5ff50c5e825d4d38e81bb04d1b7e96bf960f7ab89f9850b162f3f114/yarl-1.24.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:abb2759733d63a28b4956500a5dd57140f26486c92b2caedfb964ab7d9b79dbf", size = 103010, upload-time = "2026-05-19T21:30:43.985Z" }, - { url = "https://files.pythonhosted.org/packages/6f/d2/4597912315096f7bb359e46e13bf8b60994fcbb2db29b804c0902ef4eff5/yarl-1.24.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:081c2bf54efe03774d0311172bc04fedf9ca01e644d4cd8c805688e527209bdc", size = 101128, upload-time = "2026-05-19T21:30:46.291Z" }, - { url = "https://files.pythonhosted.org/packages/b9/d5/c8e86e120521e646013d02a8e3b8884392e28494be8f392366e50d208efc/yarl-1.24.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:86746bef442aa479107fe28132e1277237f9c24c2f00b0b0cf22b3ee0904f2bb", size = 101382, upload-time = "2026-05-19T21:30:48.085Z" }, - { url = "https://files.pythonhosted.org/packages/fa/98/70b229236118f89dbeb739b76f10225bbf53b5497725502594c9a01d699a/yarl-1.24.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:2d07d21d0bc4b17558e8de0b02fbfdf1e347d3bb3699edd00bb92e7c57925420", size = 95964, upload-time = "2026-05-19T21:30:49.785Z" }, - { url = "https://files.pythonhosted.org/packages/87/f8/56c386981e3c8648d279fdef2397ffec577e8320fd5649745e34d54faeb7/yarl-1.24.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:4fb1ac3fc5fecd8ae7453ea237e4d22b49befa70266dfe1629924245c21a0c7f", size = 106204, upload-time = "2026-05-19T21:30:51.862Z" }, - { url = "https://files.pythonhosted.org/packages/1a/1e/765afe97811ca35933e2a7de70ac57b1997ea2e4ee895719ee7a231fb7e5/yarl-1.24.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:4da31a5512ed1729ca8d8aacde3f7faeb8843cde3165d6bcf7f88f74f17bb8aa", size = 101510, upload-time = "2026-05-19T21:30:53.62Z" }, - { url = "https://files.pythonhosted.org/packages/ee/78/393913f4b9039e1edd09ae8a9bbb9d539be909a8abf6d8a2084585bed4b7/yarl-1.24.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:533ded4dceb5f1f3da7906244f4e82cf46cfd40d84c69a1faf5ac506aa65ecbe", size = 105584, upload-time = "2026-05-19T21:30:55.962Z" }, - { url = "https://files.pythonhosted.org/packages/78/87/deb17b7049bbe74ea11a713b86f8f27800cc1c8648b0b797243ebb4830ba/yarl-1.24.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:7b3a85525f6e7eeabcfdd372862b21ee1915db1b498a04e8bf0e389b607ff0bd", size = 103410, upload-time = "2026-05-19T21:30:57.962Z" }, - { url = "https://files.pythonhosted.org/packages/8f/be/f9f7594e23b5b93affff0318e4593c1920331bcaefda326cabcad94296a1/yarl-1.24.2-cp314-cp314t-win_amd64.whl", hash = "sha256:a7624b1ca46ca5d7b864ef0d2f8efe3091454085ee1855b4e992314529972215", size = 102980, upload-time = "2026-05-19T21:30:59.735Z" }, - { url = "https://files.pythonhosted.org/packages/65/a4/ba80dccd3593ff1f01051a818694d07b58cb8232677ee9a22a5a1f93a9fc/yarl-1.24.2-cp314-cp314t-win_arm64.whl", hash = "sha256:e434a45ce2e7a947f951fc5a8944c8cc080b7e59f9c50ae80fd39107cf88126d", size = 91219, upload-time = "2026-05-19T21:31:01.934Z" }, - { url = "https://files.pythonhosted.org/packages/fd/4d/4b880086bd0d3e034d25647be1d830afc3e3f610e98c4ab3490af6b1b6d5/yarl-1.24.2-py3-none-any.whl", hash = "sha256:2783d9226db8797636cd6896e4de81feed252d1db72265686c9558d97a4d94b9", size = 53576, upload-time = "2026-05-19T21:31:03.909Z" }, +sdist = { url = "https://files.pythonhosted.org/packages/75/16/e8be8e2fb175bbf41a0680381a319f1199fae256588241a2ac8677eafb49/yarl-1.25.1.tar.gz", hash = "sha256:03dd38de09bc213e9a8b29761eec33ee1d5318dac0e49d8af36e4d27830e23a7", size = 246245, upload-time = "2026-09-15T19:35:02.264Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/83/b3/2cea721d495ca57f8f414aa4867ee263f486b274e07463158cf52f02ba7f/yarl-1.25.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9d693bf4bf534e9ba3ae2780cfd577f5135629f7b5ac653490859d0b77864865", size = 143794, upload-time = "2026-09-15T19:30:26.946Z" }, + { url = "https://files.pythonhosted.org/packages/55/e6/cd145cff8e5cf60b8b3c41fbecfa2a45028a8dec3fbc52bec03595ff3d3b/yarl-1.25.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ab2054c5531af2a9ba7b69b8ec91e4f884420e83a8c5e579b013084cb57e5e5d", size = 103993, upload-time = "2026-09-15T19:30:28.661Z" }, + { url = "https://files.pythonhosted.org/packages/ce/7c/fbb40fe2d53747c40aa36a9e2bd2178a202f942bda0b670f3306d4aefbce/yarl-1.25.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:564fdc7085d2245ab84f88882fdb1d6ac0723124bff6ded35bfb1c00f812630d", size = 104010, upload-time = "2026-09-15T19:30:31.069Z" }, + { url = "https://files.pythonhosted.org/packages/f0/0b/5a516f70641092283f57cf3670bdb75e7327bcc0dcb5038697e4dfbfd569/yarl-1.25.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:acae6b45d1ace09b6ba3876da43b88366ef368f73b988c7f57e14231753d4420", size = 116444, upload-time = "2026-09-15T19:30:32.894Z" }, + { url = "https://files.pythonhosted.org/packages/b6/8a/d1a627f827b0a404ae0f5647cab0534959081cde13b0756a783469fb3b5e/yarl-1.25.1-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1fb2a01ba8cd9c5d2c5dc1ec35e0fc951d04b4f037541d4ac090c993ce58b3d7", size = 107565, upload-time = "2026-09-15T19:30:35.188Z" }, + { url = "https://files.pythonhosted.org/packages/aa/cf/c8e0aaec886840a6c4480fe44eaec7cd4319f79a563b79321473be79c56f/yarl-1.25.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e92b6bcc741b86d67606c40d3cb9c7cc8e6c737f81e31f4a94efc204456c92e3", size = 125006, upload-time = "2026-09-15T19:30:37.1Z" }, + { url = "https://files.pythonhosted.org/packages/50/26/0cce366d54a93cdc8342965dc7663385e4db161625cc1e8b18e786753d24/yarl-1.25.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:72c34ac7ad4314c19362d5ce27626dcc8429bd30bbf8c179f4234078851f9492", size = 128717, upload-time = "2026-09-15T19:30:38.904Z" }, + { url = "https://files.pythonhosted.org/packages/95/0c/a71501bbc1a674ff72c4d6c2b75f4d9a5af819f5244c3a7558080a8802c5/yarl-1.25.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d5add7b4ca7afeea91d52e4d4e4db3b1fe9885b71f07054560d8c4296b7441a2", size = 117728, upload-time = "2026-09-15T19:30:40.809Z" }, + { url = "https://files.pythonhosted.org/packages/e7/6f/c3267ca01defeed9ed9c4ff9b17bd54915432c405945233265b707475d1c/yarl-1.25.1-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:def538065f9e4d4cf1ae164bd59aba00dfa84f03923e0de4c3788f252d6bcd17", size = 116224, upload-time = "2026-09-15T19:30:42.818Z" }, + { url = "https://files.pythonhosted.org/packages/8f/69/fad57ee52d648431718ee0f1f68966a99c1352c3924688ffbdcc9d3fe51a/yarl-1.25.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0a191bfdb30a79b98e5d175d75285f9fcb78bf0e46ba5efda042e1c72071a0de", size = 116299, upload-time = "2026-09-15T19:30:44.966Z" }, + { url = "https://files.pythonhosted.org/packages/2a/d4/6a8c1e29f33338687ca278cba0a8fbf6525a322c2c02a9a500ccbe041152/yarl-1.25.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:71f42c5b9a948c113bbdebfa544598321431d064ff959d32e99b1feb61d68345", size = 108625, upload-time = "2026-09-15T19:30:46.874Z" }, + { url = "https://files.pythonhosted.org/packages/e8/d2/3a35ae791c9cb6522c106923ff25c3230d999091e5e65511bca23bbd9914/yarl-1.25.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:72849d892954be4d09e569b8b831ac39ce58417fedc767d4308a0fe542018a40", size = 124515, upload-time = "2026-09-15T19:30:49.082Z" }, + { url = "https://files.pythonhosted.org/packages/be/fd/2b022109a6b4af0f7dc371cf7500af380b0d4f034010243e1b0ce218dc93/yarl-1.25.1-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:efb01a106f971cb3752856bca2318bbdf7f01bd8823779c461586cbe5ffd5258", size = 115711, upload-time = "2026-09-15T19:30:51.208Z" }, + { url = "https://files.pythonhosted.org/packages/18/59/f7586271136c3ddb0126bbfe661844699369b76b555fe38c4efe86870b2e/yarl-1.25.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:a1daf47cd95a7c3a63456336bc5aaa8c86dd3a47d07ed3d0e76132ae4666a5a1", size = 122751, upload-time = "2026-09-15T19:30:53.535Z" }, + { url = "https://files.pythonhosted.org/packages/a0/0b/07f7a2d881f7e16c385b47fc1753382600847cad305dcc7fa0c25828acf8/yarl-1.25.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9489e6abf47ba37f332075a91444c7cfedb03e6ce99fbb2f116bfe1ce810da3b", size = 117983, upload-time = "2026-09-15T19:30:55.277Z" }, + { url = "https://files.pythonhosted.org/packages/aa/9d/8cdceec66a9b940700cb45931741403f045b162afd79bcb93c41cadd0972/yarl-1.25.1-cp311-cp311-win_amd64.whl", hash = "sha256:d7306dee25b8a0e737363f347362b875094b4dc4e367311470656ae420fdbf8e", size = 102894, upload-time = "2026-09-15T19:30:57.606Z" }, + { url = "https://files.pythonhosted.org/packages/17/f1/7ec357db1d3ad2863542d71e8fe64a126bbec17b134cd7d30951196809a5/yarl-1.25.1-cp311-cp311-win_arm64.whl", hash = "sha256:abb1384477f5901d436b5d2e5465954de46ea6098f59163d243660b5c4461d35", size = 98609, upload-time = "2026-09-15T19:30:59.705Z" }, + { url = "https://files.pythonhosted.org/packages/75/b3/cd32ac66ae622b854c2df0ac52106dda220d361b65a64fde7d5b3684aa3f/yarl-1.25.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:94d7aa6debf92a1dd14cb5280b083a764169a13cfb23a452111160274ed989f4", size = 144798, upload-time = "2026-09-15T19:31:01.821Z" }, + { url = "https://files.pythonhosted.org/packages/61/fb/a2c52a8007c2051ba74662afb112ecf3d00346af4c25e33df9d80fd14fb8/yarl-1.25.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:83d4a37e4b95da4d8bda930d6d35b75b4cdadbacbb4980cae290ea3100b5d51d", size = 104583, upload-time = "2026-09-15T19:31:04.05Z" }, + { url = "https://files.pythonhosted.org/packages/be/dd/ee38aec8e09fdf957e50d4085453fbe202f56c6c3b4cf07b81cdb4f09ee9/yarl-1.25.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e029648f9c951db30e98a7d7ec90835db88ec4b32820efe2a9bdc2287e032eb6", size = 104325, upload-time = "2026-09-15T19:31:06.338Z" }, + { url = "https://files.pythonhosted.org/packages/1e/b3/058dbfb1857b484c9cf9cc135659f50b85ce66e03c99e44dc2f7b6161f55/yarl-1.25.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4d781294bb815ecb5ea57ff6bbf8038e0a31a95fdf3e1788f66e0dc100d64b58", size = 115358, upload-time = "2026-09-15T19:31:08.593Z" }, + { url = "https://files.pythonhosted.org/packages/db/39/29693446cf0cf6b15a0e2f75a5d40f93c56819b05b0622196f45e95b5cc0/yarl-1.25.1-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e12c538e00e7c1b286a07061046b90e8124e6a9793efae2c70db6a4aad07faad", size = 107658, upload-time = "2026-09-15T19:31:10.802Z" }, + { url = "https://files.pythonhosted.org/packages/86/b3/3c4dd7e1af43b931fba95e0a722737f2ea94a6d199c802585282831d7abd/yarl-1.25.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7e4de3ac4adbad3d0bc7c6f4360a7dbff5de2f15e3b723be3198074e17fd9c40", size = 122660, upload-time = "2026-09-15T19:31:12.84Z" }, + { url = "https://files.pythonhosted.org/packages/bd/b5/1b60dbc3cfc9c5712b15148c206748f2bc93953ffdbe25ea75b63dfc89c9/yarl-1.25.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:419f392a1da624877975709e3864dfe833af6cc7671b39318086d456e288380c", size = 126506, upload-time = "2026-09-15T19:31:15.088Z" }, + { url = "https://files.pythonhosted.org/packages/bc/7b/ca212cbe170ac8b96e45317ecbcf9c3c3ecf0cdec98d5b088a9c4088929b/yarl-1.25.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c6f117789d22dce188e5754e8bc65b7e6ebf8cb73963b9fa761f672a5883769d", size = 117050, upload-time = "2026-09-15T19:31:17.241Z" }, + { url = "https://files.pythonhosted.org/packages/cb/c3/72b4938cdbe619ad71ac156182faef4908846b84dc3ca4dbb4c4e6f84014/yarl-1.25.1-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:80e47012e730da131c9f059c80936783f9659aae22dc31c03c0595590d11ed54", size = 114174, upload-time = "2026-09-15T19:31:19.294Z" }, + { url = "https://files.pythonhosted.org/packages/e8/43/268717870f9ba0cc9701a95181587f6dc8c5f387aab4aeecc83158f38a79/yarl-1.25.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e80f557716fd765439577131e526b8942ffc2c07bdbc5e39fa62f660ba1e963f", size = 114944, upload-time = "2026-09-15T19:31:21.414Z" }, + { url = "https://files.pythonhosted.org/packages/da/84/baa5bf504d51fe062c4bcaf62936da97fffb43285978d0b39984824231fd/yarl-1.25.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:f61964f235a43738bfac50da46fc4254943a7eea3051aeb0b6fc7c992c29fadc", size = 108263, upload-time = "2026-09-15T19:31:23.388Z" }, + { url = "https://files.pythonhosted.org/packages/a4/28/779a2ed9e0152a601a27039bed9aead3f0b79797a67e2c44bfa444622dd8/yarl-1.25.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:e546fe1d4a93ebc2910f0d768baff19faa09843ab3f2036a67ed6e69fae4419d", size = 122184, upload-time = "2026-09-15T19:31:25.343Z" }, + { url = "https://files.pythonhosted.org/packages/f8/1f/118e9e5b8f07694d63fd3222e801d7782270003f1a222aa798df3f8d5933/yarl-1.25.1-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:cce0727fd5ac04d372fa9bbfde9febc2bcf209aadfcf0468e45dec72719895d1", size = 114001, upload-time = "2026-09-15T19:31:27.465Z" }, + { url = "https://files.pythonhosted.org/packages/0f/ae/a4cf1cf372313734b17996d4007f9f73596e7a178b9485802e5494ecf484/yarl-1.25.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:af4ea5b37403ef4e30f3927eaed540db942bde01d8d3ff083527c0704d1c9c68", size = 120565, upload-time = "2026-09-15T19:31:29.47Z" }, + { url = "https://files.pythonhosted.org/packages/05/79/ad94f93ca731bc9e44d321833ab96b82a4f9f5f63cf773f81a4aeea5ecc1/yarl-1.25.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:68782fdb4027b8d1eee25ec35e9a6db05e863b899eb0310b3a33b6c3fef55707", size = 117060, upload-time = "2026-09-15T19:31:31.367Z" }, + { url = "https://files.pythonhosted.org/packages/bb/cc/51a7b4abf4ac593b8e7eb3794b28e5a35ae26eed8bc04787628d215af82f/yarl-1.25.1-cp312-cp312-win_amd64.whl", hash = "sha256:7d575b54cb3863ef9bc290ea4b009999d55dc237326131e4853cf33e888fee03", size = 102593, upload-time = "2026-09-15T19:31:33.329Z" }, + { url = "https://files.pythonhosted.org/packages/9d/21/0941a6b93a58b59a1ec75e5333bf06929b671309c43c0cd201c172d9c39f/yarl-1.25.1-cp312-cp312-win_arm64.whl", hash = "sha256:bc3ac7bf569f6b64dad04dd7808c7872dae8a97df657856eac05e9b7e3614a85", size = 97697, upload-time = "2026-09-15T19:31:35.855Z" }, + { url = "https://files.pythonhosted.org/packages/7b/ed/2f3129bbcc9a5c8ba12cc2b29d8060a3bab9c8043c456cfd4b5ca3188890/yarl-1.25.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:25868beca8b6765f8f7d0e11fe6dd7c66dd4b0793b9500286d20cc92352126a5", size = 143623, upload-time = "2026-09-15T19:31:37.966Z" }, + { url = "https://files.pythonhosted.org/packages/17/e1/f1bc3390fdca352826676b531d0712736f156919090206700421d46b2c37/yarl-1.25.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:10b2fd95332f0d716d5eee3c9fb2ce8eada19082de7fee83d32e37992fd75c26", size = 104011, upload-time = "2026-09-15T19:31:40.25Z" }, + { url = "https://files.pythonhosted.org/packages/a8/aa/50acc5c3e5da04172ae3c281c75405af4d2ca911e16120ab0563f4dffb66/yarl-1.25.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0f12afda4eea8c8994a76d4df1875c765194f5fbe8a9d197929ea303caee29ec", size = 103677, upload-time = "2026-09-15T19:31:42.46Z" }, + { url = "https://files.pythonhosted.org/packages/30/d2/7d1e0ab9f8390e1fbcede5a6dbf70d23c96ad09b8c5567f3a514d1ddb0e2/yarl-1.25.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:14b79a30a93a3ce2e8832603fd0ab780ada281b0ba5110b519a634f2d7d7d1fc", size = 115392, upload-time = "2026-09-15T19:31:44.371Z" }, + { url = "https://files.pythonhosted.org/packages/71/e1/5ba1e3a2a22139213655e760919038e8ed7e2d4a99826d0bbddb3beb96e5/yarl-1.25.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4bd6340d20ae2c7ca719b87b426e808e90743b676d05d4c26c4fb5ca71f41184", size = 107493, upload-time = "2026-09-15T19:31:46.273Z" }, + { url = "https://files.pythonhosted.org/packages/f5/53/780653d5e0f73831f467cf13548912e5eec97f21dc49fc8daf21da027df4/yarl-1.25.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:126a2533570c554719ca40a1288fdee1700b6bc82e7131aa69fa85252d92e651", size = 122537, upload-time = "2026-09-15T19:31:48.654Z" }, + { url = "https://files.pythonhosted.org/packages/03/92/d54fa70236c6036271c9c9c09fd978df5cbe3ef49ef6c46e9b833476d215/yarl-1.25.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a3faadac7d812ddac258feb57b9846b60c1b437c4f4b9ad42595c6f6fe4390df", size = 126170, upload-time = "2026-09-15T19:31:50.872Z" }, + { url = "https://files.pythonhosted.org/packages/0e/b7/a82a49bf88340b837ef6972b508a1604ae377b9e6904b46b10cf5f1cf925/yarl-1.25.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:be80550d9bfe83d9b62398a37081a90434e6df2d978ec345c3d2820de6beddab", size = 117012, upload-time = "2026-09-15T19:31:53.189Z" }, + { url = "https://files.pythonhosted.org/packages/ef/78/5d684b411e3f3602464ee9b538db48205038f8605872985f61efb809ced0/yarl-1.25.1-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e07595c7d6f4db270ceede356a1bd1c07a34f1c26f958d1ed0cd7b48e0d2bba3", size = 114950, upload-time = "2026-09-15T19:31:55.694Z" }, + { url = "https://files.pythonhosted.org/packages/2f/11/51d82b852c64f7fad0fc7a7ff3031517204887e874c722bbca839c0b23ac/yarl-1.25.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:eb96ed1ae6c7d072d60840c0434aef07a2df611812810807fbc54263a6053e9a", size = 115428, upload-time = "2026-09-15T19:31:57.966Z" }, + { url = "https://files.pythonhosted.org/packages/e4/49/9d1978049bf646b9ea918313926453c6901b71c92f097467777d47d36a88/yarl-1.25.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:3feb99222553a8cbedfa52c2f59dd84c3f50d5b582c728d522caf8d72769a54b", size = 108428, upload-time = "2026-09-15T19:32:00.048Z" }, + { url = "https://files.pythonhosted.org/packages/43/35/7b8f1ebb45d7ec3dda7d1909bf44f458de41ef91e2937f107733582a5166/yarl-1.25.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:a2ed0ba415ccdf08f14bf544cb78346d0f76086707ffee24921a2c84dbf1305a", size = 121961, upload-time = "2026-09-15T19:32:02.436Z" }, + { url = "https://files.pythonhosted.org/packages/63/d6/d8b689ab7ca26edeb85f6ff28812aac7a25376eefc1780e303a7bfbaceff/yarl-1.25.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:2b49375d22299b0a834c2bca72f39aaecc270d96fb24c30424899676f487b22a", size = 114961, upload-time = "2026-09-15T19:32:04.456Z" }, + { url = "https://files.pythonhosted.org/packages/cf/d5/1a1798ea4dc6b7ee3260010a27907ebc697c95dae99817d817ed446d24aa/yarl-1.25.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:ef74070ac553c59eb4f04258722066d6c6135b7baa03b2e9f2da65c096e96d98", size = 120036, upload-time = "2026-09-15T19:32:06.5Z" }, + { url = "https://files.pythonhosted.org/packages/91/8d/b1b35ed7903da6669b1d367cb2c09436acd4ff508029b4f39a0c0c2058fc/yarl-1.25.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:0a66db89ea473abeac4b70523cafd94db3772380e565f9d28af7a179b7af71fa", size = 117276, upload-time = "2026-09-15T19:32:09.401Z" }, + { url = "https://files.pythonhosted.org/packages/3a/8f/4db01cef62caff0d7a4593ed694fb8a41a27a11158cab80d290221f13e57/yarl-1.25.1-cp313-cp313-win_amd64.whl", hash = "sha256:1f51020b2eb8a003c84925638ec63c21a750a4bddd3a22ec8eac6a742dadf1b9", size = 101945, upload-time = "2026-09-15T19:32:11.545Z" }, + { url = "https://files.pythonhosted.org/packages/c0/5e/3ce00497c5c0babb74d4130c10c3828ccd215b4819d12020c42429f991ac/yarl-1.25.1-cp313-cp313-win_arm64.whl", hash = "sha256:b10dd0557ba422715b5206b3743192135a6022acca8baec51aa127d0a75db8fe", size = 97270, upload-time = "2026-09-15T19:32:14.127Z" }, + { url = "https://files.pythonhosted.org/packages/80/cf/54023edfab7aa773b860503db0c56e962ccab0922803ee97988c176ea090/yarl-1.25.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:a9ca696eb02e5c02a8afd872ada510eba9b7fe6e68b9572c2e9a9b1941e31e2e", size = 143975, upload-time = "2026-09-15T19:32:16.416Z" }, + { url = "https://files.pythonhosted.org/packages/d7/a8/e6c1be0e6761d0f2d10bbf33a3e1e02b99dc83874d92945d7b461a72481e/yarl-1.25.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a5877f2255aab518ebe528289037699201d5dc5f045f2396cb30aa02db22f57f", size = 104018, upload-time = "2026-09-15T19:32:18.364Z" }, + { url = "https://files.pythonhosted.org/packages/6e/bb/dda344765ffd3430afe1a1c66c866a57fae67786537d4f14607df6505ac1/yarl-1.25.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:7a5c3115595995779ee21f2567035793911c3802a43c74f3fbb0314929ec67ac", size = 104156, upload-time = "2026-09-15T19:32:20.459Z" }, + { url = "https://files.pythonhosted.org/packages/e5/5f/ed1538bcd06009fe990d6d283dd7667f639e62a81e35c6d8c6ef6c08fb3c/yarl-1.25.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:77e5099b99b37f3cf79c246998ca9f7313a78054cd1809ec46bc1afad47e1c4c", size = 116025, upload-time = "2026-09-15T19:32:22.766Z" }, + { url = "https://files.pythonhosted.org/packages/a2/af/2185daf56b99830d3356ecfada46faaa49945de6626e842b7728088d4980/yarl-1.25.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6efaf45df6a849cef613a03a94c845647456662f85438c886bb67a9c027c8c2c", size = 106985, upload-time = "2026-09-15T19:32:24.749Z" }, + { url = "https://files.pythonhosted.org/packages/c1/65/bc1ae564fb4b04a30b6a8f250e787772581c57e4c3d5cf07ac3359de3103/yarl-1.25.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d5f90e44653c4e0f78501ed9bb7d3fce835a8d62b7c6ed0cb16557534087e743", size = 123030, upload-time = "2026-09-15T19:32:27.084Z" }, + { url = "https://files.pythonhosted.org/packages/6a/3e/e2afcde10d74e53b3fa889960991efb3019beda2b1682a01de720a302056/yarl-1.25.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:632da579b2d879f6bad20f2cfa35ded1efe2f4f77f8abb26a6234a5b236acd2f", size = 126765, upload-time = "2026-09-15T19:32:29.332Z" }, + { url = "https://files.pythonhosted.org/packages/a2/be/415b00c0fe5a0615b062a456b26623d7ec91c2bee20faea1a14045aa0469/yarl-1.25.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:30eec96e8a91bd588ce897c9543f6d5d8d34b28fbcba28a4dedf20ebeae9fe57", size = 117199, upload-time = "2026-09-15T19:32:31.49Z" }, + { url = "https://files.pythonhosted.org/packages/97/27/3d8c63ddd3e8bcfd033748ab93876678ce59bacd66e4cb1ed851c9c5b37e/yarl-1.25.1-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:12b6bc4906e11f5e1a1cdcb12296e7afbd366c783cc8073403cd2fb74334e453", size = 115187, upload-time = "2026-09-15T19:32:34.137Z" }, + { url = "https://files.pythonhosted.org/packages/39/b7/7a81d0be1a502a26a0d4326c6f2ecb736c824f570ea1c6529f2b0b227b50/yarl-1.25.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9d6ed3d17bccce4c05343e1ca8da13bc5c02c812a4e7282ddd05e8769322d3fc", size = 116085, upload-time = "2026-09-15T19:32:36.438Z" }, + { url = "https://files.pythonhosted.org/packages/f0/69/39fff459916aa0fab42215dc47b759586fd80f94aa56dfc4a7c15ba6e0dc/yarl-1.25.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:f38a70074041d3b7e138e452799f5174198bae5bd5ab2000917badf403908c5f", size = 107996, upload-time = "2026-09-15T19:32:38.959Z" }, + { url = "https://files.pythonhosted.org/packages/c0/39/80b9a55a3335590451d9ecf3eb593a8c635351f4c905ef056d7e8a8fd9e7/yarl-1.25.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:4ca89e4e21854ed27ec753297dde84b16c9f8e53b14a4866fb44457d643c19f8", size = 122549, upload-time = "2026-09-15T19:32:41.151Z" }, + { url = "https://files.pythonhosted.org/packages/42/7d/a179c6757818bb59372a4adafd09f7f26a3b4a0f04c3ae404b544c0b0c82/yarl-1.25.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:1ab7618921a93767387a4b83776f751588f5b5ae9bb5bc96620e2e2e00bca868", size = 115107, upload-time = "2026-09-15T19:32:43.072Z" }, + { url = "https://files.pythonhosted.org/packages/32/2b/a773ac867e4ab53a98ed98e5cefe3bae31e6f550252ca9d1de266f1a40c5/yarl-1.25.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:0ae12ff2b805fa02c4dab838005caef735e39986322698c48588d3beacb65c62", size = 120666, upload-time = "2026-09-15T19:32:45.061Z" }, + { url = "https://files.pythonhosted.org/packages/bc/41/52be6505e85b0f76b4f85b01b5de7e06a0512201abc2c95e14e099549174/yarl-1.25.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:90c30ed53546da833c700115c0064c22120d1b1560f474699fd31f22dd668233", size = 117505, upload-time = "2026-09-15T19:32:47.177Z" }, + { url = "https://files.pythonhosted.org/packages/f5/01/349c0386caedbbe488d519f252df54efac8a1459282d466c474bdd84a620/yarl-1.25.1-cp314-cp314-win_amd64.whl", hash = "sha256:acfa7e22aa6c6e7a5996a41d275bfa01efa7ea56ab890590280e9063e2cf5c1b", size = 103446, upload-time = "2026-09-15T19:32:49.615Z" }, + { url = "https://files.pythonhosted.org/packages/5c/f0/8ec63180f77912f0dc4e5a42760cb8c08d20da1d5ace3578a01b84d1f3d8/yarl-1.25.1-cp314-cp314-win_arm64.whl", hash = "sha256:8e7d98cdbb6d71e726f7d525952867096053d1f290dd4e3c50d7d313a136f414", size = 99159, upload-time = "2026-09-15T19:32:51.686Z" }, + { url = "https://files.pythonhosted.org/packages/47/7d/92d2220d6886b70ab1ed8579533ac2af2dfac716d5d929001daff7986df9/yarl-1.25.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:d21f0fa80a02d05299207eeaafef345d812ace96d5306e4ef265e1d419a615fa", size = 150071, upload-time = "2026-09-15T19:32:53.911Z" }, + { url = "https://files.pythonhosted.org/packages/64/fc/b245e448124bcda9340df38e3553fa222b50260fca027a84095e9bd8642d/yarl-1.25.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:17c9877a89fb6e2bca6f9087eb24cd7fb434653946ef5075e470d23d49b52287", size = 106780, upload-time = "2026-09-15T19:32:56.443Z" }, + { url = "https://files.pythonhosted.org/packages/51/e2/9a6ce2e334ebf218a30335ae76fb1696459430d42f733b8cb0d7d65b84d3/yarl-1.25.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:29273edf1530e397bd07cb784db1fbe0d2590b77569f2e24679a9c0a2d763b94", size = 107361, upload-time = "2026-09-15T19:32:58.827Z" }, + { url = "https://files.pythonhosted.org/packages/ed/70/66e8c76b569b450d16e190f15071c916c3df70b0e33927e415ac497cf0c2/yarl-1.25.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b7abffdf37af1cec6a2ad69b827aa84320db5894791bc8ed932dc93fb274b7e9", size = 114396, upload-time = "2026-09-15T19:33:02.24Z" }, + { url = "https://files.pythonhosted.org/packages/73/23/0d82838a05c57fdc05bc8b66e8c92dcc0df15e27463a5f163142d521c682/yarl-1.25.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2239a02249d9326655419e0168a28ca9008938eaab31dc29fc875c217927a6c0", size = 104882, upload-time = "2026-09-15T19:33:04.494Z" }, + { url = "https://files.pythonhosted.org/packages/86/d4/ea08615c4edaa6049a13a2f1128944d068d1893abda7d708d4d7ea01599a/yarl-1.25.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:664ec6a520b74a1df2810666eb67695fcb77fa663e6ea0a25aaf2e529cb24dfa", size = 119485, upload-time = "2026-09-15T19:33:06.583Z" }, + { url = "https://files.pythonhosted.org/packages/1a/82/0898bdce9b1ae403b308b9c733d0d24af4a3464270c2c081f457b16c3e0d/yarl-1.25.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4f1c91f5a5980a937ff8e238e98e6897e1ad74a4b1e2c0d68c73b5ffbb3f5c0b", size = 122490, upload-time = "2026-09-15T19:33:08.653Z" }, + { url = "https://files.pythonhosted.org/packages/d1/38/97d79b81c342b78246cfedb74809e68841f3198d21653e10d3232bd9c622/yarl-1.25.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7c88edaec8c349ad4c5ad4c486a3defcc4b80ceb2f074436ffa0a87caf5e76a6", size = 115336, upload-time = "2026-09-15T19:33:11.056Z" }, + { url = "https://files.pythonhosted.org/packages/8e/9d/2577896554cd310dc470adb6da0b7dd0b435cb63e2565204a7ac240e504c/yarl-1.25.1-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:35dcbea443fafb3eece757ad4e514560ddeb6c34cfae1582c620d7b293d7feee", size = 111825, upload-time = "2026-09-15T19:33:13.204Z" }, + { url = "https://files.pythonhosted.org/packages/29/6b/7ac49d8ba84a5c4bd73415a4c949d22c749cb3762579b3d50e48019a78aa/yarl-1.25.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:882569ff613758cac762a457a5d72d6e211b28d4bcfea89d1d71ea942b02eac0", size = 114655, upload-time = "2026-09-15T19:33:15.553Z" }, + { url = "https://files.pythonhosted.org/packages/e5/18/e5942a16723f5b72f9b1297fd5a85a54f6300cd15c0dcb5005b90cd89156/yarl-1.25.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:d0f1489233a254bb3643d2f05de7d59019254d81daeca6b9162fe9edef57e0c7", size = 106395, upload-time = "2026-09-15T19:33:17.599Z" }, + { url = "https://files.pythonhosted.org/packages/7b/2d/549fa46240781513ebc47ae7eb418df428a163a2a3d644cc9cbb3ecb7846/yarl-1.25.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:f41753a76f4f63927d03a0d8ba8f5ce0f2083bec29a8cfaccc55371b1564b96b", size = 119277, upload-time = "2026-09-15T19:33:19.973Z" }, + { url = "https://files.pythonhosted.org/packages/76/16/4763f78dcdc0b3b9fb3842b04afe72b9320857c6a69300c62a0eab03d119/yarl-1.25.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:8fb0eb4955adf0579001581f2f71a126e8781ba61bcd120f127b0401163c6c2d", size = 112504, upload-time = "2026-09-15T19:33:22.464Z" }, + { url = "https://files.pythonhosted.org/packages/ae/b4/974e3edfe0d188393ce1cb9de400111c63fe61f4eb3b772a500d84c970d1/yarl-1.25.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:a1e32763e641a1566507d90a8d3b19bfc3cc04a9d4e5ae3e32189874ed4b58a3", size = 116243, upload-time = "2026-09-15T19:33:24.788Z" }, + { url = "https://files.pythonhosted.org/packages/b0/aa/157b940428da80c104ca09666a740e51c94963df65d5b112e06b52e4d7a8/yarl-1.25.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:65b5b2066651b7432d389e9799d979c703bcc6ef44266bb8153ef54e91e4aab3", size = 115822, upload-time = "2026-09-15T19:33:26.886Z" }, + { url = "https://files.pythonhosted.org/packages/7e/af/19fbdce41412e1b96825544cc52cd7029d3724655d0988237972f078bd29/yarl-1.25.1-cp314-cp314t-win_amd64.whl", hash = "sha256:734f6e5400352ac4254456003d462866c684703570929cff7a7bde015d0cb371", size = 107386, upload-time = "2026-09-15T19:33:29.009Z" }, + { url = "https://files.pythonhosted.org/packages/2a/99/f6431c8968e89be608d74b28ae2d024521b2953f27dd44e0dece5e04f67a/yarl-1.25.1-cp314-cp314t-win_arm64.whl", hash = "sha256:287e99ff5aa4dc1c7630bfc683ded6f106d756c99dec432a2d7f197a784f51c6", size = 102094, upload-time = "2026-09-15T19:33:31.151Z" }, + { url = "https://files.pythonhosted.org/packages/c7/3b/4f51eab40c2eabea6c3d5b121dff4b8988dc35087732ffede12d2be8b8dd/yarl-1.25.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:9b1bdaae98bc016825dd3c9d8ee1832f829b3341f9cc6ebd1a1b0a7fef7367cc", size = 143875, upload-time = "2026-09-15T19:33:33.52Z" }, + { url = "https://files.pythonhosted.org/packages/41/05/bbd58fc063f5f299a883f810760b265ca26c8167c91cb9a494d0fe2387e1/yarl-1.25.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:e7011b8fb8c4054bf0c12e5edc6cd83778b0028e99ce59b18586ed036f92cfdc", size = 104028, upload-time = "2026-09-15T19:33:36.22Z" }, + { url = "https://files.pythonhosted.org/packages/12/ee/2fba0aecb52e7020e189f684148783aa0b9cfa3b3bfb0b400646eef70ad4/yarl-1.25.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:f074e8d4aa0a5798920ddb6de3d08b228c614ff3724c3e8bd7577f4bafea867b", size = 104041, upload-time = "2026-09-15T19:33:38.86Z" }, + { url = "https://files.pythonhosted.org/packages/38/35/884beab53ed88c7247d1671972b5ef116f7351fe0c7e6de8c3558372cb16/yarl-1.25.1-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7d42e7e3ca399555578b4d617e3a6ecf13371b3743a115995fa010c7bf341459", size = 116018, upload-time = "2026-09-15T19:33:44.265Z" }, + { url = "https://files.pythonhosted.org/packages/e2/cc/1a91b685afb55cc18608443ace95280e96e263a97565811732b6788d3269/yarl-1.25.1-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:aa4ed3dd308548f9e707d9caaf005d2d7f8c1e7868f858dfeb47fe76e16b391d", size = 107033, upload-time = "2026-09-15T19:33:46.45Z" }, + { url = "https://files.pythonhosted.org/packages/c5/c1/58b379fcb1d68d907b7fcf75200c44321896509b2a6a74abbb4b19d864d2/yarl-1.25.1-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:42a66563d8cc056ee32e6191e05097a7b2b3bc302e0bc3133daf8710eb18bd26", size = 123257, upload-time = "2026-09-15T19:33:48.631Z" }, + { url = "https://files.pythonhosted.org/packages/d7/2d/1fe96cf5c2aeab10095e48f38585cf5a8451fb7253234822398e52aa5336/yarl-1.25.1-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:98d370568f393215d605304cdb77b3d5539bd192c75b623c7304c42c8d6d8273", size = 126745, upload-time = "2026-09-15T19:33:50.999Z" }, + { url = "https://files.pythonhosted.org/packages/ad/60/8674394ce43f4dadae573a1d6f451716438e9eab7d7fe8d643c673a32d85/yarl-1.25.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:23bf5b403c879a54964e0feac7285688e04bb220074878d737d331522da0a5bf", size = 117255, upload-time = "2026-09-15T19:33:53.456Z" }, + { url = "https://files.pythonhosted.org/packages/2f/72/0faa30e02605d56127d42bb987dcc97da3863b7bf70b9bfbf5f739c05e30/yarl-1.25.1-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:d45673badd08456d0340e9364eddafe1c53a9d2896424294de4d7dd71ad3ee57", size = 115166, upload-time = "2026-09-15T19:33:55.669Z" }, + { url = "https://files.pythonhosted.org/packages/8c/90/9a46eac564c437e128285c5c1d7bb385d268394e9209d84f6bf4a14471ef/yarl-1.25.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:0136d640dfa9b0523853e411430a99f8a91eca85774c6420285a33b755bc6de3", size = 116082, upload-time = "2026-09-15T19:33:57.78Z" }, + { url = "https://files.pythonhosted.org/packages/ad/38/4b1a686a3758878f93d2f1ea943f5a165f3555769cd16e761cfd0efdca17/yarl-1.25.1-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:59ba3a6e1aa8cfe5adf4bd270fd965db21955401b7ca6f1696010c55ed4daec2", size = 108048, upload-time = "2026-09-15T19:34:00.25Z" }, + { url = "https://files.pythonhosted.org/packages/da/14/f348eb967f31a58348612a2b93bd8a2ab664548e2b5e879cac7f592f7201/yarl-1.25.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:87796fedc3ba97ec14fab55acb48584276e6c1e4c1e89c422bda62c838e754a9", size = 122775, upload-time = "2026-09-15T19:34:02.455Z" }, + { url = "https://files.pythonhosted.org/packages/ab/e9/4f7b79700f88cb9e8bb66f8b54f9bce1844c013a2c39fdc47112e9334c95/yarl-1.25.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:bd0912757081f89b107d6c00b2ff8a194401b0b87eadcf4481de2b865a8fd44f", size = 115096, upload-time = "2026-09-15T19:34:05.283Z" }, + { url = "https://files.pythonhosted.org/packages/cf/37/f9cb020331997d3eb887bd28d5410ecfd3d80bf163c23d7cec490d78dade/yarl-1.25.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:b51c159a9794633f5e0db7ecec7b2b6e3734eca1f5d17dc989ff3552a43ff78b", size = 120655, upload-time = "2026-09-15T19:34:07.382Z" }, + { url = "https://files.pythonhosted.org/packages/12/83/52fceb22891a41f168db7ec22fd1d81e06b6a0b8d9f70921bd3e785defd0/yarl-1.25.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:319e070a01db9920fb63761843f96a104c8e2b9427266731810dc1e22595b17c", size = 117488, upload-time = "2026-09-15T19:34:09.988Z" }, + { url = "https://files.pythonhosted.org/packages/f5/5c/ce6c4ff1247fcbe4b33d462c23a097106d909b173fde7042bc52290466e2/yarl-1.25.1-cp315-cp315-win_amd64.whl", hash = "sha256:a2059a2d891bd156bc5184e7ab7a56e78a84dfcfdeac8c501b552533ad1c36ee", size = 103434, upload-time = "2026-09-15T19:34:12.56Z" }, + { url = "https://files.pythonhosted.org/packages/3c/a1/766a906b0704fb26d52b19dc22bed48a8ba0544203b70dcf44da350e8194/yarl-1.25.1-cp315-cp315-win_arm64.whl", hash = "sha256:a78b50b4f7918a3de71105d5c0b93bbc57bb8339a4d03a9dfd449f9068e76f3d", size = 99155, upload-time = "2026-09-15T19:34:15.132Z" }, + { url = "https://files.pythonhosted.org/packages/bd/d3/a1d09b32cb6ab14f66b44939f5b4255b8b9e747aef3974af1d5d80ccc2fd/yarl-1.25.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:b5402a340723fa7da00b5cff987ddab61276be6d11251ea71ae02bcac54890d8", size = 149284, upload-time = "2026-09-15T19:34:17.452Z" }, + { url = "https://files.pythonhosted.org/packages/7f/3b/fe554d879692650bca70bfbc0df124e82e4d2bb7456f698c7756f1279a96/yarl-1.25.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:eda19ea5ee88742f47a2340816e6f2d40b53bed3ab5b69794769f36af9f35bb4", size = 106399, upload-time = "2026-09-15T19:34:21.474Z" }, + { url = "https://files.pythonhosted.org/packages/e1/4b/e7af56177ac8d40094c82d7728224c0b8472157d50d362e5fb3b014b2bc8/yarl-1.25.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:75baa6cf9b6d1c52f3e111a130e202fd8cf0a5b3a066c3f73d615e885092e4ec", size = 106968, upload-time = "2026-09-15T19:34:23.619Z" }, + { url = "https://files.pythonhosted.org/packages/da/4f/2df41fd738d46f23ef829ae8b4468d94bb6070038fc6dfab6165ed44fea8/yarl-1.25.1-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dbcef5a9119ef653653132cccaf999b30a0af6f33bb0a4ba80bec30056868487", size = 114717, upload-time = "2026-09-15T19:34:25.879Z" }, + { url = "https://files.pythonhosted.org/packages/69/ea/002b66df53bbd1aed1c23358ff99c9bdc744fe3f4d2740e1b2fdd7192885/yarl-1.25.1-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7efc9f082dfed77c316edffa9deb52888e1bc6789171887cc1f68e06d65465c8", size = 105198, upload-time = "2026-09-15T19:34:28.204Z" }, + { url = "https://files.pythonhosted.org/packages/b1/7c/95c8bc0c8f97d71e59c94525ad60d76f5c57d3f2820f08137ca8b9f0542a/yarl-1.25.1-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fe01645169a2112aa1d4ebc3e4c5f029c5c8f97adfc32e5d37c993b39a994d75", size = 120271, upload-time = "2026-09-15T19:34:30.5Z" }, + { url = "https://files.pythonhosted.org/packages/5d/7a/6fe9da56ec77927baa669fd86c39c567ce6205bab53d581082c6744c8ae7/yarl-1.25.1-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1c557dfd5e3db046053a0bdc72261ade790ebe8e2c7a41b36b0ca1f14cb95f3", size = 123572, upload-time = "2026-09-15T19:34:32.73Z" }, + { url = "https://files.pythonhosted.org/packages/8b/83/35f222d17fa70a14c7c74fdf112ccf5515e0c2a87082b1f9b99f7693bf57/yarl-1.25.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8ce4d6ccafb33d39bd78444612d14938ead674c25702ded2ee9c54a47735d225", size = 115228, upload-time = "2026-09-15T19:34:35.344Z" }, + { url = "https://files.pythonhosted.org/packages/da/6f/fbaaf619423578a7d898d0f226ae47bc1906c293865c416d83c17b828b0e/yarl-1.25.1-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:80a063f8297fc796296f00f100be520f209b23dc98f93ce8eba6ee7122598209", size = 111618, upload-time = "2026-09-15T19:34:37.656Z" }, + { url = "https://files.pythonhosted.org/packages/ba/78/7383278f1b3cf8e0496bd95b3281a7b09b89217b6b428db24c6b99b3deca/yarl-1.25.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:7cb414a73e21a7ab58254926073f2930cb22f5b4314ea4260a687e2b3fd4dce3", size = 114839, upload-time = "2026-09-15T19:34:40.099Z" }, + { url = "https://files.pythonhosted.org/packages/62/49/5506e5b6d29aab91bd845cc9016d88c3d3f81b81bc242b8100bdd5737825/yarl-1.25.1-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:85a18376073f8a39aa07be34f9fc77e2869aa72c55c441efdd2cf79a0407504d", size = 106212, upload-time = "2026-09-15T19:34:42.768Z" }, + { url = "https://files.pythonhosted.org/packages/46/8a/19877c193b7c5929f4b07118c18bbe390f3fadd0f59dd98c0cd12b31fa5c/yarl-1.25.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:77716e245c90f058466a05e6a465bb8600f767a8f4b18b4d40f3aff958e5f73c", size = 119985, upload-time = "2026-09-15T19:34:44.976Z" }, + { url = "https://files.pythonhosted.org/packages/4e/6c/0a46fbbf9ecbcbd0cc20d2193394254b9e19817f22c814aab60f99847400/yarl-1.25.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:1e80dcf1446e1b080b1932b0d103c464a04112f5bc31f0f983ad418172063cde", size = 112081, upload-time = "2026-09-15T19:34:47.45Z" }, + { url = "https://files.pythonhosted.org/packages/ef/30/93f5d471230c74ccd06255d0842739f86551f937f9e63a5e947853c6244a/yarl-1.25.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:bdc8d8b8c22e9e43ac68316b5e6cf083dec537f4ec213cb4aa967b583bc3fa64", size = 116995, upload-time = "2026-09-15T19:34:49.972Z" }, + { url = "https://files.pythonhosted.org/packages/2b/80/c386593035ee3f9c6c6af0847b5578f2830c674794a9d7701b744a3ebd42/yarl-1.25.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:dfbf531053a0935f2e871bcd4753f90313688772ff8c017f5ea402e315a78c1f", size = 115570, upload-time = "2026-09-15T19:34:52.628Z" }, + { url = "https://files.pythonhosted.org/packages/38/02/eef443559563ef8f2e10469387b8b1e97cb5efee95b288a56da60801f7ee/yarl-1.25.1-cp315-cp315t-win_amd64.whl", hash = "sha256:b13b88747769537f3d32e89e3a735da10c0a9e35d7322928c701b5f93d3afffd", size = 106811, upload-time = "2026-09-15T19:34:54.935Z" }, + { url = "https://files.pythonhosted.org/packages/88/91/41e284ca2cf5211e05dae031d126a3668aea88fa759df56e7e35c6ad25ba/yarl-1.25.1-cp315-cp315t-win_arm64.whl", hash = "sha256:783dd1467083f4d3f7722ad6a313f24c173e7571372738fcb7a6e6d1ba48df25", size = 101804, upload-time = "2026-09-15T19:34:57.231Z" }, + { url = "https://files.pythonhosted.org/packages/54/22/318c7980066769c6bcd9221ed2248294f5698811da099013098c670565ed/yarl-1.25.1-py3-none-any.whl", hash = "sha256:681c758b0490f9e96b78e5fa8e8dc6e648e9185bb6eaebe73183c33ea0c445f3", size = 63617, upload-time = "2026-09-15T19:34:59.616Z" }, ] [[package]] name = "zipp" -version = "4.1.0" +version = "4.1.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/b9/d8/eab98a517c14134c0b2eb4e2387bc5f457334293ec5d2dd3857ec2966802/zipp-4.1.0.tar.gz", hash = "sha256:4cb57381f544315db7688e976e922a2b18cdb513d21cc194eb42232ba2a3e602", size = 26214, upload-time = "2026-05-18T20:08:57.967Z" } +sdist = { url = "https://files.pythonhosted.org/packages/dc/23/655a1802fe8041302c959774ca7c80b53bc24737ff3ef45cb50ef11bd96c/zipp-4.1.1.tar.gz", hash = "sha256:7ebb7a44c021b29fd8dbd7cce6812d0d7b5b454521f93cc71af6ccd155aaa70b", size = 27649, upload-time = "2026-10-03T17:03:03.452Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3a/13/547360d81e6d88d58492968ffda9f9542854f11310ee556fef14260cc886/zipp-4.1.0-py3-none-any.whl", hash = "sha256:25ad4e16390cd314347dd8f1de67a2ac538ae658ed4ab9db16029c07c188e97f", size = 10238, upload-time = "2026-05-18T20:08:57.045Z" }, + { url = "https://files.pythonhosted.org/packages/b5/98/df615823cd9419131ce19fba00de53a663794369e198aade064a244b385d/zipp-4.1.1-py3-none-any.whl", hash = "sha256:8979f52d874162f485ff2981e3891f3a3317b7a3dd43ff1e1775b9304f307a9c", size = 10582, upload-time = "2026-10-03T17:03:02.506Z" }, ] [[package]] name = "zope-interface" -version = "8.5" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/08/dc/50550cfcbb2ea3cbca5f1d7ed05c8aa840f831a0f2d63aec0a953f7c590e/zope_interface-8.5.tar.gz", hash = "sha256:7a3ba1c5877f0f3e3906b02ddf793abed2becc2948116414ce0e1dd820b68d6d", size = 257957, upload-time = "2026-05-26T06:50:14.574Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b6/43/9cd98bee951d23848de690ba2809f87e3b22c67c370987acc960da15ad37/zope_interface-8.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0c8aa2bf8f3911ef37b87deb1bbe225a310e6eb6522a16d77f5d8330c4f6fbe", size = 210951, upload-time = "2026-05-26T06:49:00.178Z" }, - { url = "https://files.pythonhosted.org/packages/17/0f/8f1a29966bcf863e3a2121edcafb81c55715de7886bcc9544749cc79e7da/zope_interface-8.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:efe234a0fafb4b6b1602e9be9245b97c2bf06d67c07af5a4bc3c0438978b555c", size = 211309, upload-time = "2026-05-26T06:49:02.732Z" }, - { url = "https://files.pythonhosted.org/packages/9f/9f/37e564eaaf85e3abc1ada40a79fa43f2ab45bdb67431b0ec0fe29e4763e2/zope_interface-8.5-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:dabeb6fe1228d411994f300811edc6866fff0cdcbc9cef98a78f05ea0da42e37", size = 254881, upload-time = "2026-05-26T06:49:04.303Z" }, - { url = "https://files.pythonhosted.org/packages/06/61/e6501d8ea7a2cac3217e03f404e1f98c1df7191d83cfe86b1895fbba5dac/zope_interface-8.5-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:147a9442dcc2b7339ecdb1be2b3cdb098e90462e39425054053ebfb50d99125a", size = 259811, upload-time = "2026-05-26T06:49:06.373Z" }, - { url = "https://files.pythonhosted.org/packages/91/15/bfa25ef480b02af6e9452c478483fec75e87c9e2b60c407fd0b1f6054b9c/zope_interface-8.5-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a17e681224267880707c9ec9e730ad9a1ad2d65c371256843efba6cf48711b58", size = 260358, upload-time = "2026-05-26T06:49:08.317Z" }, - { url = "https://files.pythonhosted.org/packages/64/51/2b518072fea76242da64451d501c69b7b5ccdef9b57fead584ccf1c180d5/zope_interface-8.5-cp310-cp310-win_amd64.whl", hash = "sha256:d178968a1a611df30549a717d1624cb38ca810347339e3e37b7baa6f6781a170", size = 214822, upload-time = "2026-05-26T06:49:10.441Z" }, - { url = "https://files.pythonhosted.org/packages/ce/f1/83ad110fb847413affe71609bb50e59e1aa082e1236030122227c7c283d3/zope_interface-8.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:afc66ccaef2a3c0bef6ca02aad40d29a39276389dad16a8eac36f9f385e4d057", size = 211426, upload-time = "2026-05-26T06:49:12.595Z" }, - { url = "https://files.pythonhosted.org/packages/bb/a7/6b6e0c31ac240cb9fc015ae9ed45ca54be886c18fcf7bfa2377a4d7a8785/zope_interface-8.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c28044972187245d7a309e4699319bfdbd2ffcbf7176d1d4ddf5adffb2dea80f", size = 211850, upload-time = "2026-05-26T06:49:14.474Z" }, - { url = "https://files.pythonhosted.org/packages/37/36/7599ecabcf80ce4fef2e1ef3c5ac0d4696b61f03f724cc44022f4d226af9/zope_interface-8.5-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:03bbecc7982af713d7499d4084bc03916413d17ffd45f89009348cc0c1d9e376", size = 260711, upload-time = "2026-05-26T06:49:16.568Z" }, - { url = "https://files.pythonhosted.org/packages/03/3e/1774b0ee46ccbb5498ee3c33ece40315b6ef58bc71957be94bd345340bc1/zope_interface-8.5-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:bf917009a4a7457c7290225a019f4a0aa706d96accd2cfdba2418d3bc1fcde2f", size = 265277, upload-time = "2026-05-26T06:49:18.656Z" }, - { url = "https://files.pythonhosted.org/packages/b6/09/e533b2ffabaae4e5d5730d6768a591cf335defe8e37bec2ad905d09be656/zope_interface-8.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:31cff25b2aaedb5267e6e77b1e9be6b0ec4f622032de8a069202b8ffacda7dc2", size = 266369, upload-time = "2026-05-26T06:49:20.174Z" }, - { url = "https://files.pythonhosted.org/packages/49/4a/3ebe6a4c122b2d5340db45cbe7e490663d3228b172710ec71060cd5d541e/zope_interface-8.5-cp311-cp311-win_amd64.whl", hash = "sha256:17a3114bbdddb5e75e5784cdf318944636190cbbc72d357ef9fb1a8b0351f955", size = 215161, upload-time = "2026-05-26T06:49:21.799Z" }, - { url = "https://files.pythonhosted.org/packages/d2/59/056ad97af5b16db1975ee98ec7ab03d2ce3f3355efad904ced1dbce0e39f/zope_interface-8.5-cp311-cp311-win_arm64.whl", hash = "sha256:aab6bb5bee10f38ea688b95ba054396b67f613552d2c8378be7fcb2d2fba7646", size = 213481, upload-time = "2026-05-26T06:49:25.085Z" }, - { url = "https://files.pythonhosted.org/packages/97/cc/b84123a948f3162a34623e188922827cd845244fdd043ed20f8d02228caa/zope_interface-8.5-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:8e6ee90c2e6de7c37058d5fa41f123c8b13a312db8d1e0fb5840d7f4bcdff9c9", size = 212165, upload-time = "2026-05-26T06:49:26.566Z" }, - { url = "https://files.pythonhosted.org/packages/4e/78/cbceec44f1b27208a76c1a688c131302685852406a23df5aab68324109cc/zope_interface-8.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c1adc90d3576b3b4c4de4953e6002c37bef28b78d7fa54c1bbfd0c50f022fe7c", size = 212341, upload-time = "2026-05-26T06:49:28.182Z" }, - { url = "https://files.pythonhosted.org/packages/e1/c3/005032195ff3b210c139b7c560ed5c534e844b0907d8e44d2b3d8919305e/zope_interface-8.5-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:e6347b8d8d12c5eca6502450a92be30079b7acfade2c4f693efa0deb8871b06e", size = 265296, upload-time = "2026-05-26T06:49:29.741Z" }, - { url = "https://files.pythonhosted.org/packages/c5/66/1036543d6a66bc04c19df3cf650f3ad938a002ab0a443c24e23e8de5e8b9/zope_interface-8.5-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:5e970dabea777a24b0b0bbf9dae3ab75ce8b2d8e948edf4875627034b21f3560", size = 270689, upload-time = "2026-05-26T06:49:31.767Z" }, - { url = "https://files.pythonhosted.org/packages/30/4c/8b56259558cace4414e753ca6740396a1f59d4a95ddb55b4658600408670/zope_interface-8.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f0b48ccadaa9839e09ff81e969703cecb3f402c813bfe8b958652e699bea69f5", size = 270280, upload-time = "2026-05-26T06:49:33.489Z" }, - { url = "https://files.pythonhosted.org/packages/f9/ea/649908c83aa8fdb7faf2ddca4d3cf6fb8f2157121267dc56e8f72681e26c/zope_interface-8.5-cp312-cp312-win_amd64.whl", hash = "sha256:e0e311f1277468c08fd59a2b41f71b43d25dff639789d364747acd1705c0df6e", size = 215019, upload-time = "2026-05-26T06:49:35.607Z" }, - { url = "https://files.pythonhosted.org/packages/9f/97/da13037b4c563e4df32eedbc819f8c00b754af494f68211e3dffd48d52da/zope_interface-8.5-cp312-cp312-win_arm64.whl", hash = "sha256:652b73107a04159ec6c020db6c1543d4f1e8f4d069bd2aac88a947820923517b", size = 213569, upload-time = "2026-05-26T06:49:37.317Z" }, - { url = "https://files.pythonhosted.org/packages/f4/8c/4c15755d701f2ec0e80d64a18e1ebaf5be2c584c0ec153fd516f5d13eada/zope_interface-8.5-cp313-cp313-macosx_10_9_x86_64.whl", hash = "sha256:28e80457c134d1fa57a7d758004dece348654e1b1467ac22dcdc20fc1d127c52", size = 212512, upload-time = "2026-05-26T06:49:38.996Z" }, - { url = "https://files.pythonhosted.org/packages/9a/2e/4360c54c465db042cc8fbeeec92abac28b4cedbf6ba63c1f092fd08a190f/zope_interface-8.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:09495ce9d559c06b70f2d4855b3e4f48a822a9ddc8be1d30c5b4e5be14ae1ace", size = 212541, upload-time = "2026-05-26T06:49:41.186Z" }, - { url = "https://files.pythonhosted.org/packages/aa/a5/692a2b8d70f78e848793231d5fae5fecbf8d0cccd73430fdc34802a6d3c1/zope_interface-8.5-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:7849ad8fa90763cc1087f4dda78ca3a233e950b3e08fac7079297c9cafbbd7bb", size = 265191, upload-time = "2026-05-26T06:49:43.449Z" }, - { url = "https://files.pythonhosted.org/packages/70/8d/454a9cfc7a050c394ab4f11b3371f7897828b7415e096afff724637e65e0/zope_interface-8.5-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:5578c9421ca409a1f39f153d6f7803e4cde01da592ec75a9ac5e1b777d18d33b", size = 270626, upload-time = "2026-05-26T06:49:45.425Z" }, - { url = "https://files.pythonhosted.org/packages/51/8c/db8409cfa3575b8e9b4800babd7d49f8228433cd1f0c56814bd0ada49c33/zope_interface-8.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e1bd7d96b4ca5fa311f54c9eac16dce4886b428c1531dbe06067763ccdf123b4", size = 270444, upload-time = "2026-05-26T06:49:47.025Z" }, - { url = "https://files.pythonhosted.org/packages/4a/df/a386940e41469ef615e100a216d8b386521e9e598817147f87932ca203c4/zope_interface-8.5-cp313-cp313-win_amd64.whl", hash = "sha256:0c8123d2a4dfde2a613c7cb772605477724782c20bc2e0ad1d9435376a6a44a3", size = 215021, upload-time = "2026-05-26T06:49:48.478Z" }, - { url = "https://files.pythonhosted.org/packages/89/75/477eb5669b6b2a7a843decd1a075e9b1971a8720017654143a7183abd3d9/zope_interface-8.5-cp313-cp313-win_arm64.whl", hash = "sha256:6d02be14f3173c6c7288bc2fdf530090c01c3cf8764ad46c68024686f364278e", size = 213610, upload-time = "2026-05-26T06:49:50.01Z" }, - { url = "https://files.pythonhosted.org/packages/d4/19/5032e954827fdf02db2d2f49737ac4378bb9cfc2cd95a8f2e2a5ae2ec01a/zope_interface-8.5-cp314-cp314-macosx_10_9_x86_64.whl", hash = "sha256:ffaecf013251a89d0de6feb49a46eba48ad8cbbf8a40aeb6045e459e7bec6784", size = 212597, upload-time = "2026-05-26T06:49:51.63Z" }, - { url = "https://files.pythonhosted.org/packages/f1/53/3ef644012cf8a6a234a2d6134aab5a5c65ac5467c86296865501d4fbc406/zope_interface-8.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:126fa9d1c52295ae076d4cf968634f0a1826afa408a20808b57ff72877b8f69f", size = 212626, upload-time = "2026-05-26T06:49:53.236Z" }, - { url = "https://files.pythonhosted.org/packages/32/67/bc8b4f465d388039255003e230c284a175cedf1203c692f23cb7bff64efe/zope_interface-8.5-cp314-cp314-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:3090e3a663d20194756a59a272e0c8508b889341e31d5894223331fe6b4f9b21", size = 266827, upload-time = "2026-05-26T06:49:54.873Z" }, - { url = "https://files.pythonhosted.org/packages/a7/eb/37d05b935ede53d79690fecc8d201440084418e590bcfc05f384451c7593/zope_interface-8.5-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9342fb74e2afefdb081bf1df727d209ea56995c6e13f5a0540e6d7aff4beafb8", size = 270139, upload-time = "2026-05-26T06:49:57.116Z" }, - { url = "https://files.pythonhosted.org/packages/8b/0b/fd0c54579e2ce8dc6cf1a757903f3374bc6fbda929a46af9e0f53cb0e5f0/zope_interface-8.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6c54725d818f1b57a7efb8b16528326e1f3c257b602b32393fd255c45af8799d", size = 270338, upload-time = "2026-05-26T06:49:58.698Z" }, - { url = "https://files.pythonhosted.org/packages/c1/1d/c420dcd777bb761067ea92879ac766694a5ca78608185f1aecea64cbfc11/zope_interface-8.5-cp314-cp314-win_amd64.whl", hash = "sha256:29d74febbae1afeb6834c4ccbf42e242a673c860060f09e53142825270456140", size = 215789, upload-time = "2026-05-26T06:50:00.405Z" }, - { url = "https://files.pythonhosted.org/packages/62/94/50b5eb8f94e527edceac14f9955e58917424ea79bb572ddc18548561cbc2/zope_interface-8.5-cp314-cp314-win_arm64.whl", hash = "sha256:633c8c49396f38df030340797c533e9fe460d1b5d1e42d88e55e938e525f548c", size = 213757, upload-time = "2026-05-26T06:50:01.973Z" }, - { url = "https://files.pythonhosted.org/packages/17/6f/5d5f32c4dfcdb16ce2ec5363da686840f13c13e1a1214cb70b49e1cd6d9f/zope_interface-8.5-cp314-cp314t-macosx_10_9_x86_64.whl", hash = "sha256:133999820fdbae513c36c03d6f29ef87317aaa3edef39112222b155083664714", size = 213591, upload-time = "2026-05-26T06:50:03.529Z" }, - { url = "https://files.pythonhosted.org/packages/f3/55/de0c3459ff717fce3342f9a29464c281fdeb0d36c3171ee88d119d5f0650/zope_interface-8.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:8bd75c96966e573232f0599deaff717564828031c7f05563ccc1ac35c5ee0304", size = 213733, upload-time = "2026-05-26T06:50:05.101Z" }, - { url = "https://files.pythonhosted.org/packages/c2/95/d97430abd5ae9677e8b9295b58720c0064a5b557dbb6b8bf5928484cf0d8/zope_interface-8.5-cp314-cp314t-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:14b0e9799351d4c34fe99afd67f0cdd76e55ba15c66a98699d5fc22ea8241e08", size = 294905, upload-time = "2026-05-26T06:50:07.384Z" }, - { url = "https://files.pythonhosted.org/packages/41/ec/a0f8f3dad6e74992f4654bdd94802be0929eabca7b871cac3b6fbb5e961b/zope_interface-8.5-cp314-cp314t-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:0cd6a732ac84b94eb1ef9222a117347a27efd294ee16810ffdf7ecd307677ed5", size = 300885, upload-time = "2026-05-26T06:50:08.997Z" }, - { url = "https://files.pythonhosted.org/packages/0f/da/6881b48803a0ee8d23eb5efa30fce3ed218a2bd9de5758ce489d224fee81/zope_interface-8.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:798b7c87d0e59a7d5d086d642208d0d8700ff0d55c4029134b3c479c3bfb110f", size = 304672, upload-time = "2026-05-26T06:50:10.563Z" }, - { url = "https://files.pythonhosted.org/packages/2e/0e/b4c01320859ff1d585438bc231fd60bd258d096359bccf6654fecdf0cffb/zope_interface-8.5-cp314-cp314t-win_amd64.whl", hash = "sha256:0fc3a9d45f114d27eaa1e53beeb144533689edca8a9f66505b1e8e8b3f075e42", size = 217241, upload-time = "2026-05-26T06:50:12.171Z" }, +version = "8.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/26/39/a8481b926e42c44a6fcc670904f8251469ec42edbff1ba066719ca1e7fb4/zope_interface-8.6.tar.gz", hash = "sha256:b40ef9b4873afb5d0dec02b8d2dfde1cf18c72337b60c99cb735961e0bac05c0", size = 257973, upload-time = "2026-08-20T11:18:08.717Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/df/b0/5715b7635e5e25dd26ae32453e784cab59401078aeb3e401027675068583/zope_interface-8.6-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:dd25d6da3b3c8216080a0eefb3c01719913782690427fb9ba2ddad98ed8970f4", size = 211445, upload-time = "2026-08-20T11:17:03.377Z" }, + { url = "https://files.pythonhosted.org/packages/a2/9b/60a71a998fd819a7b9ed24c3544f862280f222828f421561e28885dcecc5/zope_interface-8.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ebb513c9e47702525897148e38271f7b6bf12c61bd084cdddfd0e03b542f8100", size = 211839, upload-time = "2026-08-20T11:17:05.05Z" }, + { url = "https://files.pythonhosted.org/packages/85/55/3092a23c3bdbcc9402ad74e69dae3fa49cc9f12bceef35079c98449bc60e/zope_interface-8.6-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:919510e0d470c189cb84164b953f81e8a513aa2593fdc9e4982340838cd1099b", size = 260720, upload-time = "2026-08-20T11:17:06.755Z" }, + { url = "https://files.pythonhosted.org/packages/41/7d/d3abda21695ee441f2278f226b4b22ecb604cf0d96efb3d39507415abdcb/zope_interface-8.6-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:a43e669d68fd8c10fe315812f7e1d262c6c00e9667f29f799a3771f9a3b5b41d", size = 265288, upload-time = "2026-08-20T11:17:08.858Z" }, + { url = "https://files.pythonhosted.org/packages/21/00/27467685e40d5ee01f542c8b0b33682b07af363419f4c64cbb61b8bf48d5/zope_interface-8.6-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:826f99c38f4bfcf7165885a0c59f03c6c25e0df8cdb0544f882cda61616fe845", size = 266373, upload-time = "2026-08-20T11:17:10.786Z" }, + { url = "https://files.pythonhosted.org/packages/bd/7b/ee35b4a5ee56ff609868291404b3ac30814417912fd8cbf4bbdcf1da8280/zope_interface-8.6-cp311-cp311-win_amd64.whl", hash = "sha256:d97c96c79c389d1031c86f8e797b94db4fe647dfbfebdbe48247c1899dc930bb", size = 214544, upload-time = "2026-08-20T11:17:12.793Z" }, + { url = "https://files.pythonhosted.org/packages/6c/ea/f63bedc8f3331fbd8d74971201bdb0be41ebbeda800aee08e9afcf41f46b/zope_interface-8.6-cp311-cp311-win_arm64.whl", hash = "sha256:ec5a5c01a54fc06b69da71164c9bba8cc71fde79bdd1b835bb734f96bca693f2", size = 213497, upload-time = "2026-08-20T11:17:14.541Z" }, + { url = "https://files.pythonhosted.org/packages/be/0a/33bcf5c825c749205c832e82d14224ff38011d20dd9dbf7a0ffe51a589ae/zope_interface-8.6-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:192bb756a8f62395b4fe47cbb853c171f20389d5226fbfa97128bb2f76abad8d", size = 212192, upload-time = "2026-08-20T11:17:16.522Z" }, + { url = "https://files.pythonhosted.org/packages/17/4f/41bde1796fa8cbb32f50facd261dd4124daa850c29666270e85e2bb8e91a/zope_interface-8.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a38b221cc649a2daacaff9d629a2ba9c4a8967669d253f9a6a597f46d46732f0", size = 212337, upload-time = "2026-08-20T11:17:18.305Z" }, + { url = "https://files.pythonhosted.org/packages/98/e1/b2d78ecb8aec59114111ed8c25894c0421afecc5e89b36fc356e2b07a607/zope_interface-8.6-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:780a66db884c0e2b0e6b34b4900f86916945a7c03d3be40ec845b051fcc052cd", size = 265308, upload-time = "2026-08-20T11:17:20.02Z" }, + { url = "https://files.pythonhosted.org/packages/dc/5a/126eeee4da016f5cca4db2297496069d5f1ba901fb53ebf104f9c087a113/zope_interface-8.6-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9217b1123f6aeec9ddf1789bffd83da3123546d551c164a99f862a5d1f5ac0f8", size = 270703, upload-time = "2026-08-20T11:17:22.016Z" }, + { url = "https://files.pythonhosted.org/packages/05/89/7767a6f9b0bb41a4d3777e8f93bfeb1b9a23ea643f83ce96163d9d672c8b/zope_interface-8.6-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:28b68c24131545c1d13fd2178bbd065e67f09db885d8426adf1fbdf2b6b66372", size = 270292, upload-time = "2026-08-20T11:17:23.905Z" }, + { url = "https://files.pythonhosted.org/packages/1e/66/bd63f493284f492003ebc494e9706abe389fdab45d6d6dd09a21012a7077/zope_interface-8.6-cp312-cp312-win_amd64.whl", hash = "sha256:64ed939d725876071823505b1c90074a86847a6e9be8617cec7ba759e0b86a7e", size = 214371, upload-time = "2026-08-20T11:17:25.606Z" }, + { url = "https://files.pythonhosted.org/packages/1c/03/64069137ef7da70ec796ad9a90ba23796fded06c4e7d06ae600a3141f3cc/zope_interface-8.6-cp312-cp312-win_arm64.whl", hash = "sha256:b08808d1196810f76928ad13d37dae18d92b1c9485c113628f41dbd6351413de", size = 213578, upload-time = "2026-08-20T11:17:27.396Z" }, + { url = "https://files.pythonhosted.org/packages/30/01/860c4879f072968375ec82fabaa5d83256e6ad8d3dce9527b00931e54b10/zope_interface-8.6-cp313-cp313-macosx_10_9_x86_64.whl", hash = "sha256:add6e226c6568de6d0ea9f6abe6353072387afcf5f817610ea266495d0c1ee72", size = 212548, upload-time = "2026-08-20T11:17:29.161Z" }, + { url = "https://files.pythonhosted.org/packages/38/09/d4b7c46c020394c830e749c6c4ca6a2ca0b6defed6f4c2eeeb97116c7343/zope_interface-8.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:47030c08e39d690299e02973ac845d0f534121b3618efa9ce9599a512a1c97fa", size = 212536, upload-time = "2026-08-20T11:17:30.922Z" }, + { url = "https://files.pythonhosted.org/packages/4c/2d/5b4dbbe618b816f626f2a640fcd9911a461e3733a608c4043a8cc79c12b3/zope_interface-8.6-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:c2bf932006229788d6bb41963dfc0345cba6ee24141a39316bd52a283a7d115f", size = 265203, upload-time = "2026-08-20T11:17:33.059Z" }, + { url = "https://files.pythonhosted.org/packages/79/96/c02befafb8e5d3c92898aa02fffca94d164830013fd0a50c4a652a728712/zope_interface-8.6-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:09522cdc6a77376bc36988b531db3b568c8cb0b6ca7286d8316aab283888770f", size = 270637, upload-time = "2026-08-20T11:17:35.167Z" }, + { url = "https://files.pythonhosted.org/packages/fa/c4/d61b18724597ca62c1a3a753370fff7b76f43c01b44e9a13c18e2300eaf0/zope_interface-8.6-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:edf1bd7ed576319241b2b314eaa549cee3e3e0f81f46911086b387d03a303ad3", size = 270456, upload-time = "2026-08-20T11:17:37.146Z" }, + { url = "https://files.pythonhosted.org/packages/0c/7a/96f177daba3f9d9d69d42659ae6c602c76b1d725e7dddff08ed49d9d02af/zope_interface-8.6-cp313-cp313-win_amd64.whl", hash = "sha256:00fd6a6da085beb90cdcdce6ed6e6973edf338d1ea63a807e213b1eb7013833d", size = 214763, upload-time = "2026-08-20T11:17:39.064Z" }, + { url = "https://files.pythonhosted.org/packages/d0/34/ce4a0ff71a1a93bd403c511307d70d32ae876e657d96063985f6672c92ec/zope_interface-8.6-cp313-cp313-win_arm64.whl", hash = "sha256:105da41198a1990b18d566bd30656a19064d4c313e4c0dd8f0dd9714026e47f1", size = 213621, upload-time = "2026-08-20T11:17:40.805Z" }, + { url = "https://files.pythonhosted.org/packages/3d/28/8ec94b15ebde2da2ebe643aac3c4238a55c2e95b746049721b50908ecafe/zope_interface-8.6-cp314-cp314-macosx_10_9_x86_64.whl", hash = "sha256:449727fc79f0b1317ec190632e13699b732d3f4704ea90c8e1339bb78e451bee", size = 212628, upload-time = "2026-08-20T11:17:42.566Z" }, + { url = "https://files.pythonhosted.org/packages/85/47/f06d4dbbc1464d9d4520b9c047d4a0f0062264eeb2c0b7fd1bec79a9327d/zope_interface-8.6-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:81793c9b12816ac7f8b71b366be36b7025fcf7205ec4a236642b15a82cb027ef", size = 212627, upload-time = "2026-08-20T11:17:44.571Z" }, + { url = "https://files.pythonhosted.org/packages/1c/56/01f84b4e966a32088e9076b1e7b2afa310f52bf9b9a077d2958cf66e81aa/zope_interface-8.6-cp314-cp314-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:a91eb220d9ae6aa6d746d6dac5b4db35b1417903301b3315ba3275b19570be0b", size = 266840, upload-time = "2026-08-20T11:17:46.366Z" }, + { url = "https://files.pythonhosted.org/packages/c6/40/2a644e32cd6f0516e7df1fc0c58e544a8cc11ba06b0d55d308519b02459d/zope_interface-8.6-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:3f7f6da49911ffe75ae3f7a9a45619f205420cc6578aff02f8ca29ed1de10f14", size = 270145, upload-time = "2026-08-20T11:17:48.195Z" }, + { url = "https://files.pythonhosted.org/packages/1e/18/02ebd81feff11a2766159fcb49c5b773fef5ae4414c38fb19114aad9e961/zope_interface-8.6-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ef15a2f6258f809334a19c1fcce64648813066ceebe3f3f6077871483fd0f50d", size = 270351, upload-time = "2026-08-20T11:17:50.07Z" }, + { url = "https://files.pythonhosted.org/packages/26/56/0725e960cf581399b7f4136d5951f7d87bc659492e49db1794334f6c5153/zope_interface-8.6-cp314-cp314-win_amd64.whl", hash = "sha256:5ef166337880b0e78138bbd32fcbc5ab1da3337febe8d2a247f3690bcae3ede5", size = 215098, upload-time = "2026-08-20T11:17:52.062Z" }, + { url = "https://files.pythonhosted.org/packages/f1/b3/7f864a6f9d9aebddceaac0a8c5cab0b450090f42fe316e48e6dd0c684478/zope_interface-8.6-cp314-cp314-win_arm64.whl", hash = "sha256:23ae710094fdcfcf715dae7054cd5abfefa4a527c5853d7b76ebb2541499c41a", size = 213759, upload-time = "2026-08-20T11:17:54.157Z" }, + { url = "https://files.pythonhosted.org/packages/19/b8/2f7a65ac046d3bb54e4a0664acfa152021804aa4101cbbec11526740c8af/zope_interface-8.6-cp314-cp314t-macosx_10_9_x86_64.whl", hash = "sha256:a84ac0010f054f3516710804a0c22026b4b0d30085d7666cfc2f30545775bf99", size = 213631, upload-time = "2026-08-20T11:17:56.063Z" }, + { url = "https://files.pythonhosted.org/packages/12/c1/889dc114e9a9e8d59fec53facb71dd26345f60c504ad20fd17121af0449c/zope_interface-8.6-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e36adea8ab93eb4d2076a47d5f4c7d7e1267eb9a4e33202da7ea71439a3bcaef", size = 213713, upload-time = "2026-08-20T11:17:57.998Z" }, + { url = "https://files.pythonhosted.org/packages/a9/96/ac48a6b7cfe972e4a9b0d7ec8b9f36a7956cc95d72029f0013ff096c55af/zope_interface-8.6-cp314-cp314t-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:5dbe120cfcfc8e6aed418f340c3d1ad4072253e17176503e363ddac27fcb2ac6", size = 294916, upload-time = "2026-08-20T11:17:59.952Z" }, + { url = "https://files.pythonhosted.org/packages/a2/54/4df4bb0b1aace2298386375ab2fb752378683b558d2db713e25c40a3e96a/zope_interface-8.6-cp314-cp314t-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:27e6de8e593736210d2a9f1bbf766a5653aa4819c184f864ab9d1f8bd3590a60", size = 300898, upload-time = "2026-08-20T11:18:02.224Z" }, + { url = "https://files.pythonhosted.org/packages/08/9c/0c8c80c1eeb62ac0c3ed1f51ad8cdd6da9373c53247c659c49f0ea29f742/zope_interface-8.6-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:66ab8c5d8820aa378968c16b7a3cb051aca342eafa649c9a363182f572d75ccb", size = 304684, upload-time = "2026-08-20T11:18:04.105Z" }, + { url = "https://files.pythonhosted.org/packages/54/69/3afc11a58b9ea814fdfb9297a8c36d10871c1f0cc06d42c106282109b952/zope_interface-8.6-cp314-cp314t-win_amd64.whl", hash = "sha256:fcc86414ee0e6b77416de81b8dead5900719b3f71b7875d8d1f87ae4e166a11f", size = 215500, upload-time = "2026-08-20T11:18:06.259Z" }, ] [[package]] @@ -5868,22 +5649,6 @@ version = "0.25.0" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/fd/aa/3e0508d5a5dd96529cdc5a97011299056e14c6505b678fd58938792794b1/zstandard-0.25.0.tar.gz", hash = "sha256:7713e1179d162cf5c7906da876ec2ccb9c3a9dcbdffef0cc7f70c3667a205f0b", size = 711513, upload-time = "2025-09-14T22:15:54.002Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/56/7a/28efd1d371f1acd037ac64ed1c5e2b41514a6cc937dd6ab6a13ab9f0702f/zstandard-0.25.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e59fdc271772f6686e01e1b3b74537259800f57e24280be3f29c8a0deb1904dd", size = 795256, upload-time = "2025-09-14T22:15:56.415Z" }, - { url = "https://files.pythonhosted.org/packages/96/34/ef34ef77f1ee38fc8e4f9775217a613b452916e633c4f1d98f31db52c4a5/zstandard-0.25.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4d441506e9b372386a5271c64125f72d5df6d2a8e8a2a45a0ae09b03cb781ef7", size = 640565, upload-time = "2025-09-14T22:15:58.177Z" }, - { url = "https://files.pythonhosted.org/packages/9d/1b/4fdb2c12eb58f31f28c4d28e8dc36611dd7205df8452e63f52fb6261d13e/zstandard-0.25.0-cp310-cp310-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:ab85470ab54c2cb96e176f40342d9ed41e58ca5733be6a893b730e7af9c40550", size = 5345306, upload-time = "2025-09-14T22:16:00.165Z" }, - { url = "https://files.pythonhosted.org/packages/73/28/a44bdece01bca027b079f0e00be3b6bd89a4df180071da59a3dd7381665b/zstandard-0.25.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e05ab82ea7753354bb054b92e2f288afb750e6b439ff6ca78af52939ebbc476d", size = 5055561, upload-time = "2025-09-14T22:16:02.22Z" }, - { url = "https://files.pythonhosted.org/packages/e9/74/68341185a4f32b274e0fc3410d5ad0750497e1acc20bd0f5b5f64ce17785/zstandard-0.25.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:78228d8a6a1c177a96b94f7e2e8d012c55f9c760761980da16ae7546a15a8e9b", size = 5402214, upload-time = "2025-09-14T22:16:04.109Z" }, - { url = "https://files.pythonhosted.org/packages/8b/67/f92e64e748fd6aaffe01e2b75a083c0c4fd27abe1c8747fee4555fcee7dd/zstandard-0.25.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:2b6bd67528ee8b5c5f10255735abc21aa106931f0dbaf297c7be0c886353c3d0", size = 5449703, upload-time = "2025-09-14T22:16:06.312Z" }, - { url = "https://files.pythonhosted.org/packages/fd/e5/6d36f92a197c3c17729a2125e29c169f460538a7d939a27eaaa6dcfcba8e/zstandard-0.25.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4b6d83057e713ff235a12e73916b6d356e3084fd3d14ced499d84240f3eecee0", size = 5556583, upload-time = "2025-09-14T22:16:08.457Z" }, - { url = "https://files.pythonhosted.org/packages/d7/83/41939e60d8d7ebfe2b747be022d0806953799140a702b90ffe214d557638/zstandard-0.25.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:9174f4ed06f790a6869b41cba05b43eeb9a35f8993c4422ab853b705e8112bbd", size = 5045332, upload-time = "2025-09-14T22:16:10.444Z" }, - { url = "https://files.pythonhosted.org/packages/b3/87/d3ee185e3d1aa0133399893697ae91f221fda79deb61adbe998a7235c43f/zstandard-0.25.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:25f8f3cd45087d089aef5ba3848cd9efe3ad41163d3400862fb42f81a3a46701", size = 5572283, upload-time = "2025-09-14T22:16:12.128Z" }, - { url = "https://files.pythonhosted.org/packages/0a/1d/58635ae6104df96671076ac7d4ae7816838ce7debd94aecf83e30b7121b0/zstandard-0.25.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3756b3e9da9b83da1796f8809dd57cb024f838b9eeafde28f3cb472012797ac1", size = 4959754, upload-time = "2025-09-14T22:16:14.225Z" }, - { url = "https://files.pythonhosted.org/packages/75/d6/57e9cb0a9983e9a229dd8fd2e6e96593ef2aa82a3907188436f22b111ccd/zstandard-0.25.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:81dad8d145d8fd981b2962b686b2241d3a1ea07733e76a2f15435dfb7fb60150", size = 5266477, upload-time = "2025-09-14T22:16:16.343Z" }, - { url = "https://files.pythonhosted.org/packages/d1/a9/ee891e5edf33a6ebce0a028726f0bbd8567effe20fe3d5808c42323e8542/zstandard-0.25.0-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:a5a419712cf88862a45a23def0ae063686db3d324cec7edbe40509d1a79a0aab", size = 5440914, upload-time = "2025-09-14T22:16:18.453Z" }, - { url = "https://files.pythonhosted.org/packages/58/08/a8522c28c08031a9521f27abc6f78dbdee7312a7463dd2cfc658b813323b/zstandard-0.25.0-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:e7360eae90809efd19b886e59a09dad07da4ca9ba096752e61a2e03c8aca188e", size = 5819847, upload-time = "2025-09-14T22:16:20.559Z" }, - { url = "https://files.pythonhosted.org/packages/6f/11/4c91411805c3f7b6f31c60e78ce347ca48f6f16d552fc659af6ec3b73202/zstandard-0.25.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:75ffc32a569fb049499e63ce68c743155477610532da1eb38e7f24bf7cd29e74", size = 5363131, upload-time = "2025-09-14T22:16:22.206Z" }, - { url = "https://files.pythonhosted.org/packages/ef/d6/8c4bd38a3b24c4c7676a7a3d8de85d6ee7a983602a734b9f9cdefb04a5d6/zstandard-0.25.0-cp310-cp310-win32.whl", hash = "sha256:106281ae350e494f4ac8a80470e66d1fe27e497052c8d9c3b95dc4cf1ade81aa", size = 436469, upload-time = "2025-09-14T22:16:25.002Z" }, - { url = "https://files.pythonhosted.org/packages/93/90/96d50ad417a8ace5f841b3228e93d1bb13e6ad356737f42e2dde30d8bd68/zstandard-0.25.0-cp310-cp310-win_amd64.whl", hash = "sha256:ea9d54cc3d8064260114a0bbf3479fc4a98b21dffc89b3459edd506b69262f6e", size = 506100, upload-time = "2025-09-14T22:16:23.569Z" }, { url = "https://files.pythonhosted.org/packages/2a/83/c3ca27c363d104980f1c9cee1101cc8ba724ac8c28a033ede6aab89585b1/zstandard-0.25.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:933b65d7680ea337180733cf9e87293cc5500cc0eb3fc8769f4d3c88d724ec5c", size = 795254, upload-time = "2025-09-14T22:16:26.137Z" }, { url = "https://files.pythonhosted.org/packages/ac/4d/e66465c5411a7cf4866aeadc7d108081d8ceba9bc7abe6b14aa21c671ec3/zstandard-0.25.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a3f79487c687b1fc69f19e487cd949bf3aae653d181dfb5fde3bf6d18894706f", size = 640559, upload-time = "2025-09-14T22:16:27.973Z" }, { url = "https://files.pythonhosted.org/packages/12/56/354fe655905f290d3b147b33fe946b0f27e791e4b50a5f004c802cb3eb7b/zstandard-0.25.0-cp311-cp311-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:0bbc9a0c65ce0eea3c34a691e3c4b6889f5f3909ba4822ab385fab9057099431", size = 5348020, upload-time = "2025-09-14T22:16:29.523Z" },